From 942fbd7cebc7f2d9d47b94ad4bc6e5c9ce61a04a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 22 Feb 2023 13:53:03 -0700 Subject: [PATCH] Version Packages (#5304) Co-authored-by: github-actions[bot] --- .changeset/large-steaks-try.md | 5 ----- .changeset/two-books-bow.md | 21 --------------------- packages/slate-react/CHANGELOG.md | 6 ++++++ packages/slate-react/package.json | 4 ++-- packages/slate/CHANGELOG.md | 22 ++++++++++++++++++++++ packages/slate/package.json | 2 +- yarn.lock | 4 ++-- 7 files changed, 33 insertions(+), 31 deletions(-) delete mode 100644 .changeset/large-steaks-try.md delete mode 100644 .changeset/two-books-bow.md diff --git a/.changeset/large-steaks-try.md b/.changeset/large-steaks-try.md deleted file mode 100644 index f78db1668..000000000 --- a/.changeset/large-steaks-try.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Allow pasting plain text into editable voids diff --git a/.changeset/two-books-bow.md b/.changeset/two-books-bow.md deleted file mode 100644 index f3c9ab156..000000000 --- a/.changeset/two-books-bow.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -'slate': patch ---- - -New `editor` method that can be overridden to control when the normalization should stop. Default behavior (unchanged) is to throw an error when it iterates over 42 times the dirty paths length. - -```ts -shouldNormalize: ({ - iteration, - dirtyPaths, - operation, -}: { - iteration: number - dirtyPaths: Path[] - operation?: Operation -}) => boolean -``` - -- `editor.onChange` signature change: `(options?: { operation?: Operation }) => void` where `operation` is triggering the function. -- `editor.normalizeNode` signature change: `(entry: NodeEntry, options?: { operation?: Operation }) => void` where `operation` is triggering the function. -- `EditorNormalizeOptions` new option `operation?: Operation` where `operation` is triggering the function. diff --git a/packages/slate-react/CHANGELOG.md b/packages/slate-react/CHANGELOG.md index 9861bd016..fa653bf41 100644 --- a/packages/slate-react/CHANGELOG.md +++ b/packages/slate-react/CHANGELOG.md @@ -1,5 +1,11 @@ # slate-react +## 0.91.3 + +### Patch Changes + +- [#5305](https://github.com/ianstormtaylor/slate/pull/5305) [`11adbf96`](https://github.com/ianstormtaylor/slate/commit/11adbf966c764ffde866be38ada2d32e00105e48) Thanks [@alex-vladut](https://github.com/alex-vladut)! - Allow pasting plain text into editable voids + ## 0.91.2 ### Patch Changes diff --git a/packages/slate-react/package.json b/packages/slate-react/package.json index 8cab4e776..e3eb43154 100644 --- a/packages/slate-react/package.json +++ b/packages/slate-react/package.json @@ -1,7 +1,7 @@ { "name": "slate-react", "description": "Tools for building completely customizable richtext editors with React.", - "version": "0.91.2", + "version": "0.91.3", "license": "MIT", "repository": "git://github.com/ianstormtaylor/slate.git", "main": "dist/index.js", @@ -35,7 +35,7 @@ "react": ">=16.8.0", "react-dom": ">=16.8.0", "react-test-renderer": ">=16.8.0", - "slate": "^0.91.1", + "slate": "^0.91.3", "slate-hyperscript": "^0.81.3", "source-map-loader": "^4.0.0" }, diff --git a/packages/slate/CHANGELOG.md b/packages/slate/CHANGELOG.md index 77d1aaa03..00d1178db 100644 --- a/packages/slate/CHANGELOG.md +++ b/packages/slate/CHANGELOG.md @@ -1,5 +1,27 @@ # slate +## 0.91.3 + +### Patch Changes + +- [#5295](https://github.com/ianstormtaylor/slate/pull/5295) [`84f811a7`](https://github.com/ianstormtaylor/slate/commit/84f811a79c9b76050cb3dbe424efca3192cc44c6) Thanks [@zbeyens](https://github.com/zbeyens)! - New `editor` method that can be overridden to control when the normalization should stop. Default behavior (unchanged) is to throw an error when it iterates over 42 times the dirty paths length. + + ```ts + shouldNormalize: ({ + iteration, + dirtyPaths, + operation, + }: { + iteration: number + dirtyPaths: Path[] + operation?: Operation + }) => boolean + ``` + + - `editor.onChange` signature change: `(options?: { operation?: Operation }) => void` where `operation` is triggering the function. + - `editor.normalizeNode` signature change: `(entry: NodeEntry, options?: { operation?: Operation }) => void` where `operation` is triggering the function. + - `EditorNormalizeOptions` new option `operation?: Operation` where `operation` is triggering the function. + ## 0.91.1 ### Patch Changes diff --git a/packages/slate/package.json b/packages/slate/package.json index 644eb5df1..62b7e9995 100644 --- a/packages/slate/package.json +++ b/packages/slate/package.json @@ -1,7 +1,7 @@ { "name": "slate", "description": "A completely customizable framework for building rich text editors.", - "version": "0.91.1", + "version": "0.91.3", "license": "MIT", "repository": "git://github.com/ianstormtaylor/slate.git", "main": "dist/index.js", diff --git a/yarn.lock b/yarn.lock index 66adb4765..0b48bce26 100644 --- a/yarn.lock +++ b/yarn.lock @@ -13936,7 +13936,7 @@ resolve@^2.0.0-next.3: react-dom: ">=16.8.0" react-test-renderer: ">=16.8.0" scroll-into-view-if-needed: ^2.2.20 - slate: ^0.91.1 + slate: ^0.91.3 slate-hyperscript: ^0.81.3 source-map-loader: ^4.0.0 tiny-invariant: 1.0.6 @@ -13947,7 +13947,7 @@ resolve@^2.0.0-next.3: languageName: unknown linkType: soft -"slate@^0.91.1, slate@workspace:*, slate@workspace:packages/slate": +"slate@^0.91.1, slate@^0.91.3, slate@workspace:*, slate@workspace:packages/slate": version: 0.0.0-use.local resolution: "slate@workspace:packages/slate" dependencies: