From 4561cd4301526c1601dccf336e12971768571ae7 Mon Sep 17 00:00:00 2001 From: Yifei Date: Sun, 8 Dec 2024 13:30:19 +0800 Subject: [PATCH 1/4] feat: add DecoratedRange/TDecoratedRange types --- .changeset/twenty-mayflies-fry.md | 6 ++++++ package.json | 2 +- packages/core/package.json | 2 +- packages/core/src/lib/plugin/SlatePlugin.ts | 4 ++-- packages/core/src/react/plugin/PlatePlugin.ts | 4 ++-- packages/slate/src/types/interfaces.ts | 11 ++++++++++- yarn.lock | 15 +++++++++++++-- 7 files changed, 35 insertions(+), 9 deletions(-) create mode 100644 .changeset/twenty-mayflies-fry.md diff --git a/.changeset/twenty-mayflies-fry.md b/.changeset/twenty-mayflies-fry.md new file mode 100644 index 0000000000..db3183e7d9 --- /dev/null +++ b/.changeset/twenty-mayflies-fry.md @@ -0,0 +1,6 @@ +--- +'@udecode/slate': minor +'@udecode/plate-core': minor +--- + +feat: Change Decorate's return type to DecoratedRange/TDecoratedRange diff --git a/package.json b/package.json index 05c25d4f6a..758c96caed 100644 --- a/package.json +++ b/package.json @@ -148,7 +148,7 @@ "react-test-renderer": "18.3.1", "rimraf": "^6.0.1", "shadcx": "workspace:^", - "slate": "0.110.2", + "slate": "0.112.0", "slate-dom": "0.111.0", "slate-history": "0.110.3", "slate-hyperscript": "0.100.0", diff --git a/packages/core/package.json b/packages/core/package.json index ae240e5f5c..f6786d3781 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -77,7 +77,7 @@ "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/core/src/lib/plugin/SlatePlugin.ts b/packages/core/src/lib/plugin/SlatePlugin.ts index b8ab4240e9..58e99ffc32 100644 --- a/packages/core/src/lib/plugin/SlatePlugin.ts +++ b/packages/core/src/lib/plugin/SlatePlugin.ts @@ -1,6 +1,6 @@ import type { TDescendant, TNodeEntry, Value } from '@udecode/slate'; import type { AnyObject } from '@udecode/utils'; -import type { Range } from 'slate'; +import type { DecoratedRange } from 'slate'; import type { SlateEditor } from '../editor'; import type { Nullable } from '../types/misc'; @@ -393,7 +393,7 @@ export type HtmlSerializer = */ export type Decorate = ( ctx: SlatePluginContext & { entry: TNodeEntry } -) => Range[] | undefined; +) => DecoratedRange[] | undefined; export type InjectNodeProps = BaseInjectProps & { diff --git a/packages/core/src/react/plugin/PlatePlugin.ts b/packages/core/src/react/plugin/PlatePlugin.ts index 74db0a508a..5511b16678 100644 --- a/packages/core/src/react/plugin/PlatePlugin.ts +++ b/packages/core/src/react/plugin/PlatePlugin.ts @@ -6,10 +6,10 @@ import type { Keys, } from '@udecode/react-hotkeys'; import type { + TDecoratedRange, TDescendant, TElement, TNodeEntry, - TRange, TText, Value, } from '@udecode/slate'; @@ -657,7 +657,7 @@ export type HtmlReactSerializer = { */ export type Decorate = ( ctx: PlatePluginContext & { entry: TNodeEntry } -) => TRange[] | undefined; +) => TDecoratedRange[] | undefined; /** Properties used by Plate to inject props into any {@link NodeComponent}. */ export type InjectNodeProps = diff --git a/packages/slate/src/types/interfaces.ts b/packages/slate/src/types/interfaces.ts index ec0f9b9c03..6b8b053939 100644 --- a/packages/slate/src/types/interfaces.ts +++ b/packages/slate/src/types/interfaces.ts @@ -1,4 +1,11 @@ -import type { Location, Path, Range, Selection, Span } from 'slate'; +import type { + DecoratedRange, + Location, + Path, + Range, + Selection, + Span, +} from 'slate'; export type TLocation = Location; @@ -9,3 +16,5 @@ export type TRange = Range; export type TSelection = Selection; export type TSpan = Span; + +export type TDecoratedRange = DecoratedRange; diff --git a/yarn.lock b/yarn.lock index b115033ec6..4b06bfe669 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6677,7 +6677,7 @@ __metadata: peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -17444,7 +17444,7 @@ __metadata: react-test-renderer: "npm:18.3.1" rimraf: "npm:^6.0.1" shadcx: "workspace:^" - slate: "npm:0.110.2" + slate: "npm:0.112.0" slate-dom: "npm:0.111.0" slate-history: "npm:0.110.3" slate-hyperscript: "npm:0.100.0" @@ -19824,6 +19824,17 @@ __metadata: languageName: node linkType: hard +"slate@npm:0.112.0": + version: 0.112.0 + resolution: "slate@npm:0.112.0" + dependencies: + immer: "npm:^10.0.3" + is-plain-object: "npm:^5.0.0" + tiny-warning: "npm:^1.0.3" + checksum: 10c0/e31dc1eb13c20505d243398bb91efeb8a8ef602eef6c8d4b55f616a39dd80ba4405916a4e40f30b0aa4ba8fbfd52a83508ecb947ad4b4cbc68d8e1f6b518eb96 + languageName: node + linkType: hard + "slick@npm:^1.12.2": version: 1.12.2 resolution: "slick@npm:1.12.2" From 6e1922a197be89e9e4f04d403b3427d8aa992325 Mon Sep 17 00:00:00 2001 From: Ziad Beyens Date: Sun, 8 Dec 2024 10:14:15 +0100 Subject: [PATCH 2/4] Update twenty-mayflies-fry.md --- .changeset/twenty-mayflies-fry.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.changeset/twenty-mayflies-fry.md b/.changeset/twenty-mayflies-fry.md index db3183e7d9..cbba6b866d 100644 --- a/.changeset/twenty-mayflies-fry.md +++ b/.changeset/twenty-mayflies-fry.md @@ -1,6 +1,6 @@ --- -'@udecode/slate': minor -'@udecode/plate-core': minor +'@udecode/slate': patch +'@udecode/plate-core': patch --- feat: Change Decorate's return type to DecoratedRange/TDecoratedRange From b37a1c30c913e93d931d7769389d744a84abd1c5 Mon Sep 17 00:00:00 2001 From: Yifei Date: Sun, 8 Dec 2024 22:56:32 +0800 Subject: [PATCH 3/4] chore: bump slate dependencies to 0.112 --- .github/ISSUE_TEMPLATE/bug.yml | 2 +- apps/www/package.json | 2 +- packages/ai/package.json | 2 +- packages/alignment/package.json | 2 +- packages/autoformat/package.json | 2 +- packages/basic-elements/package.json | 2 +- packages/basic-marks/package.json | 2 +- packages/block-quote/package.json | 2 +- packages/break/package.json | 2 +- packages/callout/package.json | 2 +- packages/caption/package.json | 2 +- packages/cloud/package.json | 2 +- packages/code-block/package.json | 2 +- packages/combobox/package.json | 2 +- packages/comments/package.json | 2 +- packages/common/package.json | 2 +- packages/csv/package.json | 2 +- packages/cursor/package.json | 2 +- packages/diff/package.json | 2 +- packages/dnd/package.json | 2 +- packages/docx/package.json | 2 +- packages/emoji/package.json | 2 +- packages/excalidraw/package.json | 2 +- packages/find-replace/package.json | 2 +- packages/floating/package.json | 2 +- packages/font/package.json | 2 +- packages/heading/package.json | 2 +- packages/highlight/package.json | 2 +- packages/horizontal-rule/package.json | 2 +- packages/html/package.json | 2 +- packages/indent-list/package.json | 2 +- packages/indent/package.json | 2 +- packages/juice/package.json | 2 +- packages/kbd/package.json | 2 +- packages/layout/package.json | 2 +- packages/line-height/package.json | 2 +- packages/link/package.json | 2 +- packages/list/package.json | 2 +- packages/markdown/package.json | 2 +- packages/math/package.json | 2 +- packages/media/package.json | 2 +- packages/mention/package.json | 2 +- packages/node-id/package.json | 2 +- packages/normalizers/package.json | 2 +- packages/plate-utils/package.json | 2 +- packages/plate/package.json | 2 +- packages/playwright/package.json | 2 +- packages/reset-node/package.json | 2 +- packages/resizable/package.json | 2 +- packages/select/package.json | 2 +- packages/selection/package.json | 2 +- packages/slash-command/package.json | 2 +- packages/slate-react/package.json | 2 +- packages/slate-utils/package.json | 2 +- packages/slate/package.json | 2 +- packages/suggestion/package.json | 2 +- packages/tabbable/package.json | 2 +- packages/table/package.json | 2 +- packages/tag/package.json | 2 +- packages/test-utils/package.json | 2 +- packages/toggle/package.json | 2 +- packages/trailing-block/package.json | 2 +- packages/yjs/package.json | 2 +- .../plate-playground-template/package.json | 2 +- templates/plate-template/package.json | 2 +- yarn.lock | 135 ++++++++---------- 66 files changed, 127 insertions(+), 138 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml index 205ea7f732..8696c4ae39 100644 --- a/.github/ISSUE_TEMPLATE/bug.yml +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -42,7 +42,7 @@ body: attributes: label: "Slate React version" description: Please give the version of slate-react - placeholder: ex. 0.103.0 + placeholder: ex. 0.112.0 validations: required: true - type: textarea diff --git a/apps/www/package.json b/apps/www/package.json index a2a303c607..99e75a3e81 100644 --- a/apps/www/package.json +++ b/apps/www/package.json @@ -170,7 +170,7 @@ "react-wrap-balancer": "^1.1.1", "remark-emoji": "5.0.1", "sass": "^1.78.0", - "slate": "0.110.2", + "slate": "0.112.0", "slate-dom": "0.111.0", "slate-history": "0.110.3", "slate-hyperscript": "0.100.0", diff --git a/packages/ai/package.json b/packages/ai/package.json index 04aa7a26fd..b60c5c6fa1 100644 --- a/packages/ai/package.json +++ b/packages/ai/package.json @@ -62,7 +62,7 @@ "@udecode/plate-common": ">=40.0.0", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/alignment/package.json b/packages/alignment/package.json index 498d491857..acd367f082 100644 --- a/packages/alignment/package.json +++ b/packages/alignment/package.json @@ -56,7 +56,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/autoformat/package.json b/packages/autoformat/package.json index 356b6208dc..05d64832b8 100644 --- a/packages/autoformat/package.json +++ b/packages/autoformat/package.json @@ -59,7 +59,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/basic-elements/package.json b/packages/basic-elements/package.json index e12df20c19..3d925cf76b 100644 --- a/packages/basic-elements/package.json +++ b/packages/basic-elements/package.json @@ -61,7 +61,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/basic-marks/package.json b/packages/basic-marks/package.json index 93b5d3f163..b49085c36e 100644 --- a/packages/basic-marks/package.json +++ b/packages/basic-marks/package.json @@ -55,7 +55,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/block-quote/package.json b/packages/block-quote/package.json index 0fc63914bd..a2e997d124 100644 --- a/packages/block-quote/package.json +++ b/packages/block-quote/package.json @@ -56,7 +56,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/break/package.json b/packages/break/package.json index 50be291100..792f5c1874 100644 --- a/packages/break/package.json +++ b/packages/break/package.json @@ -56,7 +56,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/callout/package.json b/packages/callout/package.json index 32c4d4712e..e7e334dfb4 100644 --- a/packages/callout/package.json +++ b/packages/callout/package.json @@ -56,7 +56,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/caption/package.json b/packages/caption/package.json index 6d7ae316b8..0e61ad84e5 100644 --- a/packages/caption/package.json +++ b/packages/caption/package.json @@ -58,7 +58,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/cloud/package.json b/packages/cloud/package.json index d10e8f9063..97f15b8dd4 100644 --- a/packages/cloud/package.json +++ b/packages/cloud/package.json @@ -55,7 +55,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/code-block/package.json b/packages/code-block/package.json index bf97665fbc..ea4f5088ee 100644 --- a/packages/code-block/package.json +++ b/packages/code-block/package.json @@ -57,7 +57,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/combobox/package.json b/packages/combobox/package.json index 7c6552d8f6..de6b85be83 100644 --- a/packages/combobox/package.json +++ b/packages/combobox/package.json @@ -56,7 +56,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/comments/package.json b/packages/comments/package.json index 9c9cf7128d..beb5ae2ab1 100644 --- a/packages/comments/package.json +++ b/packages/comments/package.json @@ -59,7 +59,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/common/package.json b/packages/common/package.json index 0404cfc207..41903046e9 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -62,7 +62,7 @@ "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/csv/package.json b/packages/csv/package.json index d4cd19cd07..e78e2e3b4e 100644 --- a/packages/csv/package.json +++ b/packages/csv/package.json @@ -57,7 +57,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/cursor/package.json b/packages/cursor/package.json index c693e2143d..a9632a7544 100644 --- a/packages/cursor/package.json +++ b/packages/cursor/package.json @@ -50,7 +50,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/diff/package.json b/packages/diff/package.json index 6b5af7aa9a..8a9411c2c2 100644 --- a/packages/diff/package.json +++ b/packages/diff/package.json @@ -53,7 +53,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/dnd/package.json b/packages/dnd/package.json index 2575c28527..981ea87675 100644 --- a/packages/dnd/package.json +++ b/packages/dnd/package.json @@ -56,7 +56,7 @@ "react-dnd": ">=14.0.0", "react-dnd-html5-backend": ">=14.0.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/docx/package.json b/packages/docx/package.json index 88c06cc110..fc759ec22a 100644 --- a/packages/docx/package.json +++ b/packages/docx/package.json @@ -60,7 +60,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/emoji/package.json b/packages/emoji/package.json index 03b3fda358..761f0bf37f 100644 --- a/packages/emoji/package.json +++ b/packages/emoji/package.json @@ -60,7 +60,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/excalidraw/package.json b/packages/excalidraw/package.json index c77fb62788..80e6ecddee 100644 --- a/packages/excalidraw/package.json +++ b/packages/excalidraw/package.json @@ -59,7 +59,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/find-replace/package.json b/packages/find-replace/package.json index 32e818cc7a..4dd36b9f99 100644 --- a/packages/find-replace/package.json +++ b/packages/find-replace/package.json @@ -50,7 +50,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/floating/package.json b/packages/floating/package.json index 109d6b8665..c3ca6ab6e7 100644 --- a/packages/floating/package.json +++ b/packages/floating/package.json @@ -54,7 +54,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/font/package.json b/packages/font/package.json index edb6a29302..c5fccfc75b 100644 --- a/packages/font/package.json +++ b/packages/font/package.json @@ -59,7 +59,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/heading/package.json b/packages/heading/package.json index ab74abca88..08d294b52a 100644 --- a/packages/heading/package.json +++ b/packages/heading/package.json @@ -56,7 +56,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/highlight/package.json b/packages/highlight/package.json index f0d65a1567..eba34dc746 100644 --- a/packages/highlight/package.json +++ b/packages/highlight/package.json @@ -56,7 +56,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/horizontal-rule/package.json b/packages/horizontal-rule/package.json index 1cef8988bc..1a2949f32d 100644 --- a/packages/horizontal-rule/package.json +++ b/packages/horizontal-rule/package.json @@ -56,7 +56,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/html/package.json b/packages/html/package.json index a3edfa86d0..5a9c6841cd 100644 --- a/packages/html/package.json +++ b/packages/html/package.json @@ -62,7 +62,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/indent-list/package.json b/packages/indent-list/package.json index fd5b72ad6b..113fd978dd 100644 --- a/packages/indent-list/package.json +++ b/packages/indent-list/package.json @@ -61,7 +61,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/indent/package.json b/packages/indent/package.json index 764d5f6665..a743d4c2c2 100644 --- a/packages/indent/package.json +++ b/packages/indent/package.json @@ -56,7 +56,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/juice/package.json b/packages/juice/package.json index 756caa8fbd..b43d43b89b 100644 --- a/packages/juice/package.json +++ b/packages/juice/package.json @@ -53,7 +53,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/kbd/package.json b/packages/kbd/package.json index 6a8561dd40..919ac2e3c9 100644 --- a/packages/kbd/package.json +++ b/packages/kbd/package.json @@ -56,7 +56,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/layout/package.json b/packages/layout/package.json index ce61537a7b..2e09cbbe3e 100644 --- a/packages/layout/package.json +++ b/packages/layout/package.json @@ -56,7 +56,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/line-height/package.json b/packages/line-height/package.json index 76b598e809..01f9204fd2 100644 --- a/packages/line-height/package.json +++ b/packages/line-height/package.json @@ -56,7 +56,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/link/package.json b/packages/link/package.json index fa6785eab7..26a3cb63b1 100644 --- a/packages/link/package.json +++ b/packages/link/package.json @@ -60,7 +60,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/list/package.json b/packages/list/package.json index d785da5373..1fe49aff99 100644 --- a/packages/list/package.json +++ b/packages/list/package.json @@ -60,7 +60,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/markdown/package.json b/packages/markdown/package.json index 8b78b68c92..58498d22e7 100644 --- a/packages/markdown/package.json +++ b/packages/markdown/package.json @@ -59,7 +59,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/math/package.json b/packages/math/package.json index 0922ccc3d6..283db16b2c 100644 --- a/packages/math/package.json +++ b/packages/math/package.json @@ -60,7 +60,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/media/package.json b/packages/media/package.json index 09980c9f9b..19ab381c8c 100644 --- a/packages/media/package.json +++ b/packages/media/package.json @@ -59,7 +59,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/mention/package.json b/packages/mention/package.json index 0c72dc1f3c..c7daa2dcf9 100644 --- a/packages/mention/package.json +++ b/packages/mention/package.json @@ -59,7 +59,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/node-id/package.json b/packages/node-id/package.json index 35154d3fa6..09e21f30b6 100644 --- a/packages/node-id/package.json +++ b/packages/node-id/package.json @@ -53,7 +53,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/normalizers/package.json b/packages/normalizers/package.json index 183386914c..e5611460dc 100644 --- a/packages/normalizers/package.json +++ b/packages/normalizers/package.json @@ -53,7 +53,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/plate-utils/package.json b/packages/plate-utils/package.json index 5bb2d61ed7..71c4d53715 100644 --- a/packages/plate-utils/package.json +++ b/packages/plate-utils/package.json @@ -62,7 +62,7 @@ "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", "slate-react": ">=0.110.0" diff --git a/packages/plate/package.json b/packages/plate/package.json index 917d836f57..ee678aa7b6 100644 --- a/packages/plate/package.json +++ b/packages/plate/package.json @@ -102,7 +102,7 @@ "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/playwright/package.json b/packages/playwright/package.json index e1f67d5463..a6fa0fc486 100644 --- a/packages/playwright/package.json +++ b/packages/playwright/package.json @@ -49,7 +49,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/reset-node/package.json b/packages/reset-node/package.json index 544c58da7c..53da489bda 100644 --- a/packages/reset-node/package.json +++ b/packages/reset-node/package.json @@ -56,7 +56,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/resizable/package.json b/packages/resizable/package.json index fc66189dc0..1218b0917d 100644 --- a/packages/resizable/package.json +++ b/packages/resizable/package.json @@ -49,7 +49,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/select/package.json b/packages/select/package.json index 995f760630..e4d2522ad5 100644 --- a/packages/select/package.json +++ b/packages/select/package.json @@ -50,7 +50,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/selection/package.json b/packages/selection/package.json index 0ac142662e..c38264cbed 100644 --- a/packages/selection/package.json +++ b/packages/selection/package.json @@ -59,7 +59,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/slash-command/package.json b/packages/slash-command/package.json index 28c326e682..b8e68a7ee0 100644 --- a/packages/slash-command/package.json +++ b/packages/slash-command/package.json @@ -59,7 +59,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/slate-react/package.json b/packages/slate-react/package.json index 1337f80bd3..9e521b2ff3 100644 --- a/packages/slate-react/package.json +++ b/packages/slate-react/package.json @@ -49,7 +49,7 @@ "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-history": ">=0.93.0", "slate-react": ">=0.111.0" }, diff --git a/packages/slate-utils/package.json b/packages/slate-utils/package.json index aad3ed3b56..61ae9c35bf 100644 --- a/packages/slate-utils/package.json +++ b/packages/slate-utils/package.json @@ -47,7 +47,7 @@ "lodash": "^4.17.21" }, "peerDependencies": { - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-history": ">=0.93.0" }, "publishConfig": { diff --git a/packages/slate/package.json b/packages/slate/package.json index d3b8e493a7..8db6b6f412 100644 --- a/packages/slate/package.json +++ b/packages/slate/package.json @@ -46,7 +46,7 @@ "is-plain-object": "^5.0.0" }, "peerDependencies": { - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-history": ">=0.93.0" }, "publishConfig": { diff --git a/packages/suggestion/package.json b/packages/suggestion/package.json index c4a50ceb6d..24e674625d 100644 --- a/packages/suggestion/package.json +++ b/packages/suggestion/package.json @@ -59,7 +59,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/tabbable/package.json b/packages/tabbable/package.json index 779263387c..079b00d8b3 100644 --- a/packages/tabbable/package.json +++ b/packages/tabbable/package.json @@ -59,7 +59,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/table/package.json b/packages/table/package.json index 4d61740b00..b94c744d32 100644 --- a/packages/table/package.json +++ b/packages/table/package.json @@ -60,7 +60,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-react": ">=0.111.0" diff --git a/packages/tag/package.json b/packages/tag/package.json index 9adb361a99..db45f02ac8 100644 --- a/packages/tag/package.json +++ b/packages/tag/package.json @@ -56,7 +56,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json index 9c5c5011e1..fa19e7478a 100644 --- a/packages/test-utils/package.json +++ b/packages/test-utils/package.json @@ -45,7 +45,7 @@ "typecheck": "yarn p:typecheck" }, "peerDependencies": { - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-hyperscript": ">=0.66.0" }, "publishConfig": { diff --git a/packages/toggle/package.json b/packages/toggle/package.json index 0cadb0fdcc..8508d97563 100644 --- a/packages/toggle/package.json +++ b/packages/toggle/package.json @@ -61,7 +61,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/trailing-block/package.json b/packages/trailing-block/package.json index 2be147c6fa..7ec8c2a222 100644 --- a/packages/trailing-block/package.json +++ b/packages/trailing-block/package.json @@ -50,7 +50,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/packages/yjs/package.json b/packages/yjs/package.json index a2a8240fa0..9c82a69ad7 100644 --- a/packages/yjs/package.json +++ b/packages/yjs/package.json @@ -62,7 +62,7 @@ "@udecode/plate-common": ">=40.2.8", "react": ">=16.8.0", "react-dom": ">=16.8.0", - "slate": ">=0.103.0", + "slate": ">=0.112.0", "slate-dom": ">=0.111.0", "slate-history": ">=0.93.0", "slate-hyperscript": ">=0.66.0", diff --git a/templates/plate-playground-template/package.json b/templates/plate-playground-template/package.json index a27f08ff69..a15149b830 100644 --- a/templates/plate-playground-template/package.json +++ b/templates/plate-playground-template/package.json @@ -93,7 +93,7 @@ "react-player": "^2.16.0", "react-resizable-panels": "^2.1.6", "react-tweet": "^3.2.1", - "slate": "^0.110.2", + "slate": "^0.112.0", "slate-dom": "^0.111.0", "slate-history": "^0.110.3", "slate-hyperscript": "^0.100.0", diff --git a/templates/plate-template/package.json b/templates/plate-template/package.json index 48def9b5b9..41ae4c0c12 100644 --- a/templates/plate-template/package.json +++ b/templates/plate-template/package.json @@ -23,7 +23,7 @@ "next": "^15.0.3", "react": "^18.3.1", "react-dom": "^18.3.1", - "slate": "^0.110.2", + "slate": "^0.112.0", "slate-dom": "^0.111.0", "slate-history": "^0.110.3", "slate-hyperscript": "^0.100.0", diff --git a/yarn.lock b/yarn.lock index 4b06bfe669..d21c3e7b69 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6408,7 +6408,7 @@ __metadata: "@udecode/plate-common": ">=40.0.0" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -6425,7 +6425,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -6443,7 +6443,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -6463,7 +6463,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -6480,7 +6480,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -6497,7 +6497,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -6514,7 +6514,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -6531,7 +6531,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -6549,7 +6549,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -6569,7 +6569,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -6587,7 +6587,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -6604,7 +6604,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -6622,7 +6622,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -6645,7 +6645,7 @@ __metadata: peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -6697,7 +6697,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -6714,7 +6714,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -6749,7 +6749,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -6770,7 +6770,7 @@ __metadata: react-dnd: ">=14.0.0" react-dnd-html5-backend: ">=14.0.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -6793,7 +6793,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -6812,7 +6812,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -6830,7 +6830,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -6847,7 +6847,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -6866,7 +6866,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -6884,7 +6884,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -6901,7 +6901,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -6918,7 +6918,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -6935,7 +6935,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -6954,7 +6954,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -6974,7 +6974,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -6991,7 +6991,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -7009,7 +7009,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -7026,7 +7026,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -7043,7 +7043,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -7060,7 +7060,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -7079,7 +7079,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -7098,7 +7098,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -7119,7 +7119,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -7138,7 +7138,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -7156,7 +7156,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -7174,7 +7174,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -7192,7 +7192,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -7210,7 +7210,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -7228,7 +7228,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -7245,7 +7245,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -7262,7 +7262,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -7279,7 +7279,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -7297,7 +7297,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -7315,7 +7315,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -7334,7 +7334,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -7352,7 +7352,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -7371,7 +7371,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-react: ">=0.111.0" @@ -7387,7 +7387,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -7399,7 +7399,7 @@ __metadata: version: 0.0.0-use.local resolution: "@udecode/plate-test-utils@workspace:packages/test-utils" peerDependencies: - slate: ">=0.103.0" + slate: ">=0.112.0" slate-hyperscript: ">=0.66.0" languageName: unknown linkType: soft @@ -7416,7 +7416,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -7433,7 +7433,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -7456,7 +7456,7 @@ __metadata: peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" slate-react: ">=0.110.0" @@ -7475,7 +7475,7 @@ __metadata: "@udecode/plate-common": ">=40.2.8" react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -7532,7 +7532,7 @@ __metadata: peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-dom: ">=0.111.0" slate-history: ">=0.93.0" slate-hyperscript: ">=0.66.0" @@ -7572,7 +7572,7 @@ __metadata: peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" - slate: ">=0.103.0" + slate: ">=0.112.0" slate-history: ">=0.93.0" slate-react: ">=0.111.0" languageName: unknown @@ -7586,7 +7586,7 @@ __metadata: "@udecode/utils": "npm:37.0.0" lodash: "npm:^4.17.21" peerDependencies: - slate: ">=0.103.0" + slate: ">=0.112.0" slate-history: ">=0.93.0" languageName: unknown linkType: soft @@ -7598,7 +7598,7 @@ __metadata: "@udecode/utils": "npm:37.0.0" is-plain-object: "npm:^5.0.0" peerDependencies: - slate: ">=0.103.0" + slate: ">=0.112.0" slate-history: ">=0.93.0" languageName: unknown linkType: soft @@ -19813,17 +19813,6 @@ __metadata: languageName: node linkType: hard -"slate@npm:0.110.2": - version: 0.110.2 - resolution: "slate@npm:0.110.2" - dependencies: - immer: "npm:^10.0.3" - is-plain-object: "npm:^5.0.0" - tiny-warning: "npm:^1.0.3" - checksum: 10c0/90ed1b3c92898ccd4b3cb33216797acfb6eacbc2e60c7b8d8af4f02305195c3832a8cddb4651b10c4beb1da122bfaa42bb748e6464d75c8bfd545f017297041c - languageName: node - linkType: hard - "slate@npm:0.112.0": version: 0.112.0 resolution: "slate@npm:0.112.0" @@ -22617,7 +22606,7 @@ __metadata: rimraf: "npm:^6.0.1" sass: "npm:^1.78.0" shiki: "npm:^1.17.5" - slate: "npm:0.110.2" + slate: "npm:0.112.0" slate-dom: "npm:0.111.0" slate-history: "npm:0.110.3" slate-hyperscript: "npm:0.100.0" From 7eab6dfb7a08cada8970b7a9e806572b7f4f5942 Mon Sep 17 00:00:00 2001 From: Yifei Date: Mon, 9 Dec 2024 16:55:38 +0800 Subject: [PATCH 4/4] fix: remove wrong test case --- .../withNormalizeType/invalid-path.spec.tsx | 49 ------------------- 1 file changed, 49 deletions(-) delete mode 100644 packages/normalizers/src/__tests__/withNormalizeType/invalid-path.spec.tsx diff --git a/packages/normalizers/src/__tests__/withNormalizeType/invalid-path.spec.tsx b/packages/normalizers/src/__tests__/withNormalizeType/invalid-path.spec.tsx deleted file mode 100644 index f4a0536183..0000000000 --- a/packages/normalizers/src/__tests__/withNormalizeType/invalid-path.spec.tsx +++ /dev/null @@ -1,49 +0,0 @@ -/** @jsx jsxt */ - -import { createSlateEditor } from '@udecode/plate-common'; -import { ParagraphPlugin } from '@udecode/plate-common/react'; -import { HEADING_KEYS } from '@udecode/plate-heading'; -import { jsxt } from '@udecode/plate-test-utils'; - -import { NormalizeTypesPlugin } from '../../lib/NormalizeTypesPlugin'; - -jsxt; - -const input = ( - - - - - -) as any; - -const output = ( - - - - - -) as any; - -it('should be', () => { - const editor = createSlateEditor({ - editor: input, - plugins: [ - NormalizeTypesPlugin.configure({ - options: { - rules: [ - { - path: [0, 0], - strictType: HEADING_KEYS.h1, - }, - { path: [0, 1], type: ParagraphPlugin.key }, - ], - }, - }), - ], - }); - - editor.normalizeNode([input, []]); - - expect(input.children).toEqual(output.children); -});