From 49ea5df958a046dfba9a89ccbef348b8b34aeab3 Mon Sep 17 00:00:00 2001 From: Felix Feng Date: Tue, 29 Oct 2024 10:59:18 +0800 Subject: [PATCH 1/2] fix --- .../ai/src/react/copilot/CopilotPlugin.tsx | 15 ++---- .../ai/src/react/copilot/utils/getNextWord.ts | 48 +++++++++++++++++++ packages/ai/src/react/copilot/withCopilot.ts | 5 +- 3 files changed, 55 insertions(+), 13 deletions(-) create mode 100644 packages/ai/src/react/copilot/utils/getNextWord.ts diff --git a/packages/ai/src/react/copilot/CopilotPlugin.tsx b/packages/ai/src/react/copilot/CopilotPlugin.tsx index 84e81dec49..a8541bf059 100644 --- a/packages/ai/src/react/copilot/CopilotPlugin.tsx +++ b/packages/ai/src/react/copilot/CopilotPlugin.tsx @@ -28,6 +28,7 @@ import type { CompleteOptions } from './utils/callCompletionApi'; import { renderCopilotBelowNodes } from './renderCopilotBelowNodes'; import { acceptCopilot } from './transforms/acceptCopilot'; import { acceptCopilotNextWord } from './transforms/acceptCopilotNextWord'; +import { type GetNextWord, getNextWord } from './utils/getNextWord'; import { triggerCopilotSuggestion } from './utils/triggerCopilotSuggestion'; import { withCopilot } from './withCopilot'; @@ -44,11 +45,6 @@ type CompletionState = { export type CopilotPluginConfig = PluginConfig< 'copilot', CompletionState & { - /** Get the next word to be inserted. */ - getNextWord?: (options: { text: string }) => { - firstWord: string; - remainingText: string; - }; /** * Conditions to auto trigger copilot, used in addition to triggerQuery. * Disabling defaults to: @@ -69,6 +65,8 @@ export type CopilotPluginConfig = PluginConfig< * @default 0 */ debounceDelay?: number; + /** Get the next word to be inserted. */ + getNextWord?: GetNextWord; /** * Get the prompt for AI completion. * @@ -139,12 +137,7 @@ export const CopilotPlugin = createTPlatePlugin({ completion: '', debounceDelay: 0, error: null, - getNextWord: ({ text }) => { - const firstWord = /^\s*\S+/.exec(text)?.[0] || ''; - const remainingText = text.slice(firstWord.length); - - return { firstWord, remainingText }; - }, + getNextWord: getNextWord, getPrompt: ({ editor }) => { const contextEntry = getAncestorNode(editor); diff --git a/packages/ai/src/react/copilot/utils/getNextWord.ts b/packages/ai/src/react/copilot/utils/getNextWord.ts new file mode 100644 index 0000000000..f3cf35485d --- /dev/null +++ b/packages/ai/src/react/copilot/utils/getNextWord.ts @@ -0,0 +1,48 @@ +export type GetNextWord = (options: { text: string }) => { + firstWord: string; + remainingText: string; +}; + +export const getNextWord: GetNextWord = ({ text }) => { + if (!text) return { firstWord: '', remainingText: '' }; + + // Check if the first non-space character is a CJK character + const nonSpaceMatch = /^\s*(\S)/.exec(text); + + if (!nonSpaceMatch) return { firstWord: '', remainingText: '' }; + + const firstNonSpaceChar = nonSpaceMatch[1]; + + // Regular expression for matching CJK characters + // 1. [\u4E00-\u9FA5] - Chinese Characters + // 2. [\u3040-\u309F] - Japanese Hiragana + // 3. [\u30A0-\u30FF] - Japanese Katakana + // 4. [\u3400-\u4DBF] - CJK Extension A + // 5. [\u4E00-\u9FFF] - CJK Unified Ideographs + // 6. [\uF900-\uFAFF] - CJK Compatibility Ideographs + // 7. [\uAC00-\uD7AF] - Korean Syllables + // 8. [\u1100-\u11FF] - Korean Jamo + const isCJKChar = + /[\u1100-\u11FF\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uAC00-\uD7AF\uF900-\uFAFF]/.test( + firstNonSpaceChar + ); + + let firstWord, remainingText; + + if (isCJKChar) { + // CJK characters: match leading spaces + first character + trailing spaces + const match = + // eslint-disable-next-line regexp/no-unused-capturing-group + /^(\s*[\u1100-\u11FF\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uAC00-\uD7AF\uF900-\uFAFF]\s*)/.exec( + text + ); + firstWord = match?.[0] || ''; + remainingText = text.slice(firstWord.length); + } else { + // Other characters (e.g., English): use space-based word separation + firstWord = /^\s*\S+/.exec(text)?.[0] || ''; + remainingText = text.slice(firstWord.length); + } + + return { firstWord, remainingText }; +}; diff --git a/packages/ai/src/react/copilot/withCopilot.ts b/packages/ai/src/react/copilot/withCopilot.ts index 889ab66143..c2a703e876 100644 --- a/packages/ai/src/react/copilot/withCopilot.ts +++ b/packages/ai/src/react/copilot/withCopilot.ts @@ -117,10 +117,11 @@ export const withCopilot: ExtendEditor = ({ editor.insertText = (text) => { const suggestionText = getOptions().suggestionText; - if (suggestionText && text.length === 1 && text === suggestionText?.at(0)) { + // When using IME input, it’s possible to enter two characters at once. + if (suggestionText?.startsWith(text)) { withoutAbort(editor, () => { withoutMergingHistory(editor, () => { - const newText = suggestionText?.slice(1); + const newText = suggestionText?.slice(text.length); setOption('suggestionText', newText); insertText(text); }); From d56391341eb5bfa5b005fba8a9c47df35583f686 Mon Sep 17 00:00:00 2001 From: Felix Feng Date: Tue, 29 Oct 2024 11:14:10 +0800 Subject: [PATCH 2/2] docs --- .changeset/big-lobsters-run.md | 6 ++ yarn.lock | 138 ++++++++++++++++----------------- 2 files changed, 75 insertions(+), 69 deletions(-) create mode 100644 .changeset/big-lobsters-run.md diff --git a/.changeset/big-lobsters-run.md b/.changeset/big-lobsters-run.md new file mode 100644 index 0000000000..bbc292f3e4 --- /dev/null +++ b/.changeset/big-lobsters-run.md @@ -0,0 +1,6 @@ +--- +'@udecode/plate-ai': patch +--- +Copilot: +- Fix the issue where `getNextWord` returns the entire sentence in Chinese/Korean/Japanese. +- When entering two characters using IME, the suggestion text should not be lost. diff --git a/yarn.lock b/yarn.lock index 3187c78ccc..302c421c30 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6197,11 +6197,11 @@ __metadata: dependencies: "@udecode/plate-combobox": "npm:39.0.0" "@udecode/plate-markdown": "npm:39.2.0" - "@udecode/plate-selection": "npm:39.2.3" + "@udecode/plate-selection": "npm:39.2.12" ai: "npm:^3.4.10" lodash: "npm:^4.17.21" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.13" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6217,7 +6217,7 @@ __metadata: dependencies: "@udecode/plate-common": "workspace:^" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6234,7 +6234,7 @@ __metadata: "@udecode/plate-common": "workspace:^" lodash: "npm:^4.17.21" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6253,7 +6253,7 @@ __metadata: "@udecode/plate-common": "workspace:^" "@udecode/plate-heading": "npm:39.0.0" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6269,7 +6269,7 @@ __metadata: dependencies: "@udecode/plate-common": "workspace:^" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6285,7 +6285,7 @@ __metadata: dependencies: "@udecode/plate-common": "workspace:^" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6301,7 +6301,7 @@ __metadata: dependencies: "@udecode/plate-common": "workspace:^" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6317,7 +6317,7 @@ __metadata: dependencies: "@udecode/plate-common": "workspace:^" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6334,7 +6334,7 @@ __metadata: "@udecode/plate-common": "workspace:^" react-textarea-autosize: "npm:^8.5.3" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6353,7 +6353,7 @@ __metadata: delay: "npm:5.0.0" p-defer: "npm:^4.0.1" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6370,7 +6370,7 @@ __metadata: "@udecode/plate-common": "workspace:^" prismjs: "npm:^1.29.0" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6386,7 +6386,7 @@ __metadata: dependencies: "@udecode/plate-common": "workspace:^" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6403,7 +6403,7 @@ __metadata: "@udecode/plate-common": "workspace:^" lodash: "npm:^4.17.21" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6413,12 +6413,12 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-common@npm:39.2.1, @udecode/plate-common@workspace:^, @udecode/plate-common@workspace:packages/common": +"@udecode/plate-common@npm:39.2.15, @udecode/plate-common@workspace:^, @udecode/plate-common@workspace:packages/common": version: 0.0.0-use.local resolution: "@udecode/plate-common@workspace:packages/common" dependencies: - "@udecode/plate-core": "npm:39.2.1" - "@udecode/plate-utils": "npm:39.2.1" + "@udecode/plate-core": "npm:39.2.15" + "@udecode/plate-utils": "npm:39.2.15" "@udecode/react-hotkeys": "npm:37.0.0" "@udecode/react-utils": "npm:39.0.0" "@udecode/slate": "npm:39.2.1" @@ -6435,7 +6435,7 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-core@npm:39.2.1, @udecode/plate-core@workspace:^, @udecode/plate-core@workspace:packages/core": +"@udecode/plate-core@npm:39.2.15, @udecode/plate-core@workspace:^, @udecode/plate-core@workspace:packages/core": version: 0.0.0-use.local resolution: "@udecode/plate-core@workspace:packages/core" dependencies: @@ -6475,7 +6475,7 @@ __metadata: "@udecode/plate-table": "npm:39.1.6" papaparse: "npm:^5.4.1" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6491,7 +6491,7 @@ __metadata: dependencies: "@udecode/plate-common": "workspace:^" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6507,7 +6507,7 @@ __metadata: dependencies: "@udecode/plate-common": "workspace:^" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.94.0" @@ -6525,7 +6525,7 @@ __metadata: diff-match-patch-ts: "npm:^0.6.0" lodash: "npm:^4.17.21" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6543,7 +6543,7 @@ __metadata: lodash: "npm:^4.17.21" raf: "npm:^3.4.1" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dnd: ">=14.0.0" react-dnd-html5-backend: ">=14.0.0" @@ -6555,7 +6555,7 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-docx@npm:39.2.4, @udecode/plate-docx@workspace:^, @udecode/plate-docx@workspace:packages/docx": +"@udecode/plate-docx@npm:39.2.13, @udecode/plate-docx@workspace:^, @udecode/plate-docx@workspace:packages/docx": version: 0.0.0-use.local resolution: "@udecode/plate-docx@workspace:packages/docx" dependencies: @@ -6563,11 +6563,11 @@ __metadata: "@udecode/plate-heading": "npm:39.0.0" "@udecode/plate-indent": "npm:39.0.0" "@udecode/plate-indent-list": "npm:39.1.10" - "@udecode/plate-media": "npm:39.2.4" + "@udecode/plate-media": "npm:39.2.13" "@udecode/plate-table": "npm:39.1.6" validator: "npm:^13.12.0" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6585,7 +6585,7 @@ __metadata: "@udecode/plate-combobox": "npm:39.0.0" "@udecode/plate-common": "workspace:^" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6602,7 +6602,7 @@ __metadata: "@excalidraw/excalidraw": "npm:0.16.4" "@udecode/plate-common": "workspace:^" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6618,7 +6618,7 @@ __metadata: dependencies: "@udecode/plate-common": "workspace:^" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6636,7 +6636,7 @@ __metadata: "@floating-ui/react": "npm:^0.26.23" "@udecode/plate-common": "workspace:^" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6653,7 +6653,7 @@ __metadata: "@udecode/plate-common": "workspace:^" lodash: "npm:^4.17.21" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6669,7 +6669,7 @@ __metadata: dependencies: "@udecode/plate-common": "workspace:^" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6685,7 +6685,7 @@ __metadata: dependencies: "@udecode/plate-common": "workspace:^" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6701,7 +6701,7 @@ __metadata: dependencies: "@udecode/plate-common": "workspace:^" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6719,7 +6719,7 @@ __metadata: "@udecode/plate-common": "workspace:^" html-entities: "npm:^2.5.2" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6738,7 +6738,7 @@ __metadata: "@udecode/plate-list": "npm:39.0.0" clsx: "npm:^2.1.1" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6754,7 +6754,7 @@ __metadata: dependencies: "@udecode/plate-common": "workspace:^" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6771,7 +6771,7 @@ __metadata: "@udecode/plate-common": "workspace:^" juice: "npm:^8.1.0" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6787,7 +6787,7 @@ __metadata: dependencies: "@udecode/plate-common": "workspace:^" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6803,7 +6803,7 @@ __metadata: dependencies: "@udecode/plate-common": "workspace:^" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6819,7 +6819,7 @@ __metadata: dependencies: "@udecode/plate-common": "workspace:^" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6837,7 +6837,7 @@ __metadata: "@udecode/plate-floating": "npm:39.1.6" "@udecode/plate-normalizers": "npm:39.0.0" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6855,7 +6855,7 @@ __metadata: "@udecode/plate-reset-node": "npm:39.0.0" lodash: "npm:^4.17.21" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6874,7 +6874,7 @@ __metadata: remark-parse: "npm:^9.0.0" unified: "npm:^11.0.5" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6892,7 +6892,7 @@ __metadata: "@udecode/plate-common": "workspace:^" katex: "npm:0.16.11" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6902,14 +6902,14 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-media@npm:39.2.4, @udecode/plate-media@workspace:^, @udecode/plate-media@workspace:packages/media": +"@udecode/plate-media@npm:39.2.13, @udecode/plate-media@workspace:^, @udecode/plate-media@workspace:packages/media": version: 0.0.0-use.local resolution: "@udecode/plate-media@workspace:packages/media" dependencies: "@udecode/plate-common": "workspace:^" js-video-url-parser: "npm:^0.5.1" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6926,7 +6926,7 @@ __metadata: "@udecode/plate-combobox": "npm:39.0.0" "@udecode/plate-common": "workspace:^" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6943,7 +6943,7 @@ __metadata: "@udecode/plate-common": "workspace:^" lodash: "npm:^4.17.21" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6960,7 +6960,7 @@ __metadata: "@udecode/plate-common": "workspace:^" lodash: "npm:^4.17.21" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6977,7 +6977,7 @@ __metadata: "@udecode/plate-common": "workspace:^" peerDependencies: "@playwright/test": ">=1.42.1" - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -6993,7 +6993,7 @@ __metadata: dependencies: "@udecode/plate-common": "workspace:^" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -7009,7 +7009,7 @@ __metadata: dependencies: "@udecode/plate-common": "workspace:^" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -7025,7 +7025,7 @@ __metadata: dependencies: "@udecode/plate-common": "workspace:^" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -7035,14 +7035,14 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-selection@npm:39.2.3, @udecode/plate-selection@workspace:^, @udecode/plate-selection@workspace:packages/selection": +"@udecode/plate-selection@npm:39.2.12, @udecode/plate-selection@workspace:^, @udecode/plate-selection@workspace:packages/selection": version: 0.0.0-use.local resolution: "@udecode/plate-selection@workspace:packages/selection" dependencies: "@udecode/plate-common": "workspace:^" copy-to-clipboard: "npm:^3.3.3" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -7059,7 +7059,7 @@ __metadata: "@udecode/plate-combobox": "npm:39.0.0" "@udecode/plate-common": "workspace:^" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -7077,7 +7077,7 @@ __metadata: "@udecode/plate-diff": "npm:39.0.0" lodash: "npm:^4.17.21" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -7094,7 +7094,7 @@ __metadata: "@udecode/plate-common": "workspace:^" tabbable: "npm:^6.2.0" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -7112,7 +7112,7 @@ __metadata: "@udecode/plate-resizable": "npm:39.1.6" lodash: "npm:^4.17.21" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -7139,7 +7139,7 @@ __metadata: "@udecode/plate-node-id": "npm:39.0.0" lodash: "npm:^4.17.21" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -7155,7 +7155,7 @@ __metadata: dependencies: "@udecode/plate-common": "workspace:^" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -7165,11 +7165,11 @@ __metadata: languageName: unknown linkType: soft -"@udecode/plate-utils@npm:39.2.1, @udecode/plate-utils@workspace:^, @udecode/plate-utils@workspace:packages/plate-utils": +"@udecode/plate-utils@npm:39.2.15, @udecode/plate-utils@workspace:^, @udecode/plate-utils@workspace:packages/plate-utils": version: 0.0.0-use.local resolution: "@udecode/plate-utils@workspace:packages/plate-utils" dependencies: - "@udecode/plate-core": "npm:39.2.1" + "@udecode/plate-core": "npm:39.2.15" "@udecode/react-utils": "npm:39.0.0" "@udecode/slate": "npm:39.2.1" "@udecode/slate-react": "npm:39.2.1" @@ -7196,7 +7196,7 @@ __metadata: "@udecode/plate-common": "workspace:^" yjs: "npm:^13.6.19" peerDependencies: - "@udecode/plate-common": ">=39.2.1" + "@udecode/plate-common": ">=39.2.15" react: ">=16.8.0" react-dom: ">=16.8.0" slate: ">=0.103.0" @@ -7219,10 +7219,10 @@ __metadata: "@udecode/plate-code-block": "npm:39.0.0" "@udecode/plate-combobox": "npm:39.0.0" "@udecode/plate-comments": "npm:39.0.0" - "@udecode/plate-common": "npm:39.2.1" + "@udecode/plate-common": "npm:39.2.15" "@udecode/plate-csv": "npm:39.1.6" "@udecode/plate-diff": "npm:39.0.0" - "@udecode/plate-docx": "npm:39.2.4" + "@udecode/plate-docx": "npm:39.2.13" "@udecode/plate-find-replace": "npm:39.0.0" "@udecode/plate-floating": "npm:39.1.6" "@udecode/plate-font": "npm:39.0.0" @@ -7238,14 +7238,14 @@ __metadata: "@udecode/plate-link": "npm:39.1.9" "@udecode/plate-list": "npm:39.0.0" "@udecode/plate-markdown": "npm:39.2.0" - "@udecode/plate-media": "npm:39.2.4" + "@udecode/plate-media": "npm:39.2.13" "@udecode/plate-mention": "npm:39.0.0" "@udecode/plate-node-id": "npm:39.0.0" "@udecode/plate-normalizers": "npm:39.0.0" "@udecode/plate-reset-node": "npm:39.0.0" "@udecode/plate-resizable": "npm:39.1.6" "@udecode/plate-select": "npm:39.0.0" - "@udecode/plate-selection": "npm:39.2.3" + "@udecode/plate-selection": "npm:39.2.12" "@udecode/plate-slash-command": "npm:39.0.0" "@udecode/plate-suggestion": "npm:39.0.0" "@udecode/plate-tabbable": "npm:39.0.0"