Skip to content

Commit 26ec10e

Browse files
committed
Remove logs
1 parent 5015800 commit 26ec10e

File tree

3 files changed

+3
-26
lines changed

3 files changed

+3
-26
lines changed

apps/extension/src/background.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ chrome.contextMenus.create({
9090

9191
chrome.contextMenus.create({
9292
id: 'open-ai-tools',
93-
title: 'Perform AI enrichment',
93+
title: 'Enhance with AI',
9494
contexts: ['page', 'selection']
9595
})
9696

@@ -258,7 +258,6 @@ chrome.notifications.onClosed.addListener((notificationId, byUser) => {
258258
chrome.omnibox.onInputChanged.addListener((text, suggest) => {
259259
const workspaceDetails = useAuthStore.getState().workspaceDetails
260260
const linkCaptures = useLinkStore.getState().links?.filter((item) => item.alias) ?? []
261-
console.log('captures', { linkCaptures })
262261
const suggestions = fuzzySearch(linkCaptures, text, (item) => item.alias).map((item) => {
263262
return {
264263
content: `${API_BASE_URLS.url}/${workspaceDetails.id}/${item.alias}`,

libs/shared/src/Components/AIPreview/Floater.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { RemoveScroll } from 'react-remove-scroll'
44

55
import {
66
arrow,
7-
autoUpdate,
87
flip,
98
FloatingArrow,
109
FloatingFocusManager,
@@ -56,8 +55,7 @@ const DefaultFloater: React.FC<DefaultFloaterProps> = ({ onClose, root, ...props
5655
element: arrowRef,
5756
padding: 10
5857
})
59-
],
60-
whileElementsMounted: autoUpdate
58+
]
6159
})
6260

6361
const click = useClick(context)

libs/shared/src/Components/AIPreview/index.tsx

+1-21
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
11
import React, { useEffect, useMemo } from 'react'
22

3-
import {
4-
deserializeMd,
5-
focusEditor,
6-
getEdgePoints,
7-
getEndPoint,
8-
getPlateEditorRef,
9-
getPointAfter,
10-
getPointBefore,
11-
getPointBeforeLocation,
12-
getStartPoint,
13-
insertNodes
14-
} from '@udecode/plate'
3+
import { deserializeMd, focusEditor, getPlateEditorRef, getPointAfter, insertNodes } from '@udecode/plate'
154
import Highlighter from 'web-highlighter'
165

176
import { IconButton } from '@workduck-io/mex-components'
@@ -62,15 +51,6 @@ const AIPreviewContainer: React.FC<AIPreviewProps> = (props) => {
6251
const deserializedContent = getContent(content)
6352

6453
if (Array.isArray(deserializedContent) && deserializedContent.length > 0) {
65-
console.log('EDGES', {
66-
selection: editor.selection,
67-
getPointAfter: getPointAfter(editor, editor.selection),
68-
getPointBefore: getPointBefore(editor, editor.selection),
69-
getEdgePoints: getEdgePoints(editor, editor.selection),
70-
getEndPoint: getEndPoint(editor, editor.selection),
71-
getStartPoint: getStartPoint(editor, editor.selection),
72-
point: getPointBeforeLocation(editor, editor.selection)
73-
})
7454
const at = replace ? editor?.selection : getPointAfter(editor, editor.selection)
7555

7656
insertNodes(editor, deserializedContent, {

0 commit comments

Comments
 (0)