From ce63a08c8e76661fc53032d7e68bfb9d7016d257 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 25 Mar 2022 01:03:44 +0000 Subject: [PATCH] Version Packages (#4898) Co-authored-by: github-actions[bot] --- .changeset/fair-forks-hope.md | 8 -------- .changeset/friendly-dogs-judge.md | 5 ----- .changeset/funny-humans-whisper.md | 5 ----- .changeset/fuzzy-teachers-develop.md | 7 ------- .changeset/poor-hats-design.md | 5 ----- packages/slate-history/package.json | 2 +- packages/slate-hyperscript/package.json | 2 +- packages/slate-react/CHANGELOG.md | 18 ++++++++++++++++++ packages/slate-react/package.json | 4 ++-- packages/slate/CHANGELOG.md | 12 ++++++++++++ packages/slate/package.json | 2 +- yarn.lock | 8 ++++---- 12 files changed, 39 insertions(+), 39 deletions(-) delete mode 100644 .changeset/fair-forks-hope.md delete mode 100644 .changeset/friendly-dogs-judge.md delete mode 100644 .changeset/funny-humans-whisper.md delete mode 100644 .changeset/fuzzy-teachers-develop.md delete mode 100644 .changeset/poor-hats-design.md diff --git a/.changeset/fair-forks-hope.md b/.changeset/fair-forks-hope.md deleted file mode 100644 index 4e28b6896c..0000000000 --- a/.changeset/fair-forks-hope.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'slate': minor -'slate-react': minor ---- - -A different behavior for inserting a soft break with shift+enter is quite common in rich text editors. Right now you have to do this in onKeyDown which is not so nice. This adds a separate insertSoftBreak method on the editor instance that gets called when a soft break is inserted. This maintains the current default behavior for backwards compatibility (it just splits the block). But at least you can easily overwrite it now. - -If you rely on overwriting editor.insertBreak for extra behavior for soft breaks this might be a breaking change for you and you should overwrite editor.insertSoftBreak instead. diff --git a/.changeset/friendly-dogs-judge.md b/.changeset/friendly-dogs-judge.md deleted file mode 100644 index 1553e45a50..0000000000 --- a/.changeset/friendly-dogs-judge.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate': patch ---- - -feat: add merge to setNodes and test diff --git a/.changeset/funny-humans-whisper.md b/.changeset/funny-humans-whisper.md deleted file mode 100644 index 9b15892f59..0000000000 --- a/.changeset/funny-humans-whisper.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Fixes a bug where nodes remounted on split_node and merge_node diff --git a/.changeset/fuzzy-teachers-develop.md b/.changeset/fuzzy-teachers-develop.md deleted file mode 100644 index 772a16c537..0000000000 --- a/.changeset/fuzzy-teachers-develop.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'slate-react': patch ---- - -toSlatePoint should not consider a selection within a void node if the void node isn't in the editor itself. - -Prior to this fix, a nested Slate editor inside a void node in a parent editor would not allow you to start typing text in a blank editor state correctly. After the first character insertion, the selection would jump back to the start of the nested editor. diff --git a/.changeset/poor-hats-design.md b/.changeset/poor-hats-design.md deleted file mode 100644 index 0a236bd2fe..0000000000 --- a/.changeset/poor-hats-design.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Fix decorations applied across nested elements diff --git a/packages/slate-history/package.json b/packages/slate-history/package.json index a217f24e8e..15dfdf5590 100644 --- a/packages/slate-history/package.json +++ b/packages/slate-history/package.json @@ -19,7 +19,7 @@ "devDependencies": { "@babel/runtime": "^7.7.4", "lodash": "^4.17.21", - "slate": "^0.75.0", + "slate": "^0.76.0", "slate-hyperscript": "^0.67.0", "source-map-loader": "^0.2.4" }, diff --git a/packages/slate-hyperscript/package.json b/packages/slate-hyperscript/package.json index e995ac61dd..ad5745e370 100644 --- a/packages/slate-hyperscript/package.json +++ b/packages/slate-hyperscript/package.json @@ -18,7 +18,7 @@ }, "devDependencies": { "@babel/runtime": "^7.7.4", - "slate": "^0.75.0", + "slate": "^0.76.0", "source-map-loader": "^0.2.4" }, "peerDependencies": { diff --git a/packages/slate-react/CHANGELOG.md b/packages/slate-react/CHANGELOG.md index 0176bc8f2c..5ca2db955c 100644 --- a/packages/slate-react/CHANGELOG.md +++ b/packages/slate-react/CHANGELOG.md @@ -1,5 +1,23 @@ # slate-react +## 0.76.0 + +### Minor Changes + +- [#4873](https://github.com/ianstormtaylor/slate/pull/4873) [`20acca4b`](https://github.com/ianstormtaylor/slate/commit/20acca4bc8f31bd1aa6fbca2c49aaae5f31cadfe) Thanks [@bryanph](https://github.com/bryanph)! - A different behavior for inserting a soft break with shift+enter is quite common in rich text editors. Right now you have to do this in onKeyDown which is not so nice. This adds a separate insertSoftBreak method on the editor instance that gets called when a soft break is inserted. This maintains the current default behavior for backwards compatibility (it just splits the block). But at least you can easily overwrite it now. + + If you rely on overwriting editor.insertBreak for extra behavior for soft breaks this might be a breaking change for you and you should overwrite editor.insertSoftBreak instead. + +### Patch Changes + +- [#4901](https://github.com/ianstormtaylor/slate/pull/4901) [`5ef346fe`](https://github.com/ianstormtaylor/slate/commit/5ef346feb9e6430b3b6af66f196e5445a9ee3ff2) Thanks [@bryanph](https://github.com/bryanph)! - Fixes a bug where nodes remounted on split_node and merge_node + +* [#4885](https://github.com/ianstormtaylor/slate/pull/4885) [`07669dca`](https://github.com/ianstormtaylor/slate/commit/07669dca4b0641506ca857bd781c460dae7606a9) Thanks [@ryanmitts](https://github.com/ryanmitts)! - toSlatePoint should not consider a selection within a void node if the void node isn't in the editor itself. + + Prior to this fix, a nested Slate editor inside a void node in a parent editor would not allow you to start typing text in a blank editor state correctly. After the first character insertion, the selection would jump back to the start of the nested editor. + +- [#4910](https://github.com/ianstormtaylor/slate/pull/4910) [`2a8d86f1`](https://github.com/ianstormtaylor/slate/commit/2a8d86f1a40bcc806422e6fe3658ddd810ce73a5) Thanks [@jasonphillips](https://github.com/jasonphillips)! - Fix decorations applied across nested elements + ## 0.75.0 ### Minor Changes diff --git a/packages/slate-react/package.json b/packages/slate-react/package.json index 000dd02fdd..8ab5fdbe89 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.75.0", + "version": "0.76.0", "license": "MIT", "repository": "git://github.com/ianstormtaylor/slate.git", "main": "dist/index.js", @@ -33,7 +33,7 @@ "react": ">=16.8.0", "react-dom": ">=16.8.0", "react-test-renderer": ">=16.8.0", - "slate": "^0.75.0", + "slate": "^0.76.0", "slate-hyperscript": "^0.67.0", "source-map-loader": "^0.2.4" }, diff --git a/packages/slate/CHANGELOG.md b/packages/slate/CHANGELOG.md index 761f46a8f0..7e223884de 100644 --- a/packages/slate/CHANGELOG.md +++ b/packages/slate/CHANGELOG.md @@ -1,5 +1,17 @@ # slate +## 0.76.0 + +### Minor Changes + +- [#4873](https://github.com/ianstormtaylor/slate/pull/4873) [`20acca4b`](https://github.com/ianstormtaylor/slate/commit/20acca4bc8f31bd1aa6fbca2c49aaae5f31cadfe) Thanks [@bryanph](https://github.com/bryanph)! - A different behavior for inserting a soft break with shift+enter is quite common in rich text editors. Right now you have to do this in onKeyDown which is not so nice. This adds a separate insertSoftBreak method on the editor instance that gets called when a soft break is inserted. This maintains the current default behavior for backwards compatibility (it just splits the block). But at least you can easily overwrite it now. + + If you rely on overwriting editor.insertBreak for extra behavior for soft breaks this might be a breaking change for you and you should overwrite editor.insertSoftBreak instead. + +### Patch Changes + +- [#4912](https://github.com/ianstormtaylor/slate/pull/4912) [`43ca2b56`](https://github.com/ianstormtaylor/slate/commit/43ca2b56c8bd8bcc30dd38808dd191f804d53ae4) Thanks [@zhugexinxin](https://github.com/zhugexinxin)! - feat: add merge to setNodes and test + ## 0.75.0 ### Patch Changes diff --git a/packages/slate/package.json b/packages/slate/package.json index b1dd8b1d10..158685c1a9 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.75.0", + "version": "0.76.0", "license": "MIT", "repository": "git://github.com/ianstormtaylor/slate.git", "main": "dist/index.js", diff --git a/yarn.lock b/yarn.lock index 99d85039f1..63b4c54b4a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -14503,7 +14503,7 @@ resolve@^2.0.0-next.3: "@babel/runtime": ^7.7.4 is-plain-object: ^5.0.0 lodash: ^4.17.21 - slate: ^0.75.0 + slate: ^0.76.0 slate-hyperscript: ^0.67.0 source-map-loader: ^0.2.4 peerDependencies: @@ -14517,7 +14517,7 @@ resolve@^2.0.0-next.3: dependencies: "@babel/runtime": ^7.7.4 is-plain-object: ^5.0.0 - slate: ^0.75.0 + slate: ^0.76.0 source-map-loader: ^0.2.4 peerDependencies: slate: ">=0.65.3" @@ -14624,7 +14624,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.75.0 + slate: ^0.76.0 slate-hyperscript: ^0.67.0 source-map-loader: ^0.2.4 tiny-invariant: 1.0.6 @@ -14635,7 +14635,7 @@ resolve@^2.0.0-next.3: languageName: unknown linkType: soft -"slate@^0.75.0, slate@workspace:*, slate@workspace:packages/slate": +"slate@^0.76.0, slate@workspace:*, slate@workspace:packages/slate": version: 0.0.0-use.local resolution: "slate@workspace:packages/slate" dependencies: