From f76ff2a276f984971d077aee60c7bd7404f3e9a0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 1 Apr 2021 00:20:29 -0400 Subject: [PATCH] v0.62.0 (#4156) Co-authored-by: github-actions[bot] --- .changeset/afraid-donuts-flow.md | 5 -- .changeset/afraid-swans-pay.md | 5 -- .changeset/brave-lions-approve.md | 5 -- .changeset/clean-buses-perform.md | 5 -- .changeset/cyan-islands-heal.md | 5 -- .changeset/dirty-carrots-brush.md | 5 -- .changeset/dry-deers-applaud.md | 5 -- .changeset/fifty-ducks-sip.md | 5 -- .changeset/five-dryers-boil.md | 5 -- .changeset/fuzzy-yaks-drive.md | 5 -- .changeset/heavy-rice-drive.md | 5 -- .changeset/kind-flies-build.md | 5 -- .changeset/late-pumas-eat.md | 5 -- .changeset/late-squids-deny.md | 5 -- .changeset/lazy-trains-sell.md | 5 -- .changeset/light-peas-sip.md | 5 -- .changeset/lovely-rats-suffer.md | 8 -- .changeset/nasty-beds-occur.md | 5 -- .changeset/nice-lemons-chew.md | 5 -- .changeset/ninety-radios-lay.md | 5 -- .changeset/pretty-cooks-remember.md | 5 -- .changeset/quiet-rules-turn.md | 5 -- .changeset/real-suns-matter.md | 5 -- .changeset/rich-suits-hammer.md | 5 -- .changeset/rude-lemons-crash.md | 5 -- .changeset/seven-suns-move.md | 5 -- .changeset/shiny-icons-hammer.md | 5 -- .changeset/strong-apricots-remain.md | 5 -- .changeset/tasty-apes-juggle.md | 5 -- .changeset/tasty-tables-learn.md | 5 -- .changeset/tiny-walls-deliver.md | 5 -- .changeset/tough-parents-exercise.md | 5 -- .changeset/violet-toes-hear.md | 5 -- packages/slate-history/CHANGELOG.md | 15 ++++ packages/slate-history/package.json | 6 +- packages/slate-hyperscript/CHANGELOG.md | 8 ++ packages/slate-hyperscript/package.json | 4 +- packages/slate-react/CHANGELOG.md | 107 ++++++++++++++++++++++++ packages/slate-react/package.json | 8 +- packages/slate/CHANGELOG.md | 39 +++++++++ packages/slate/package.json | 2 +- 41 files changed, 179 insertions(+), 178 deletions(-) delete mode 100644 .changeset/afraid-donuts-flow.md delete mode 100644 .changeset/afraid-swans-pay.md delete mode 100644 .changeset/brave-lions-approve.md delete mode 100644 .changeset/clean-buses-perform.md delete mode 100644 .changeset/cyan-islands-heal.md delete mode 100644 .changeset/dirty-carrots-brush.md delete mode 100644 .changeset/dry-deers-applaud.md delete mode 100644 .changeset/fifty-ducks-sip.md delete mode 100644 .changeset/five-dryers-boil.md delete mode 100644 .changeset/fuzzy-yaks-drive.md delete mode 100644 .changeset/heavy-rice-drive.md delete mode 100644 .changeset/kind-flies-build.md delete mode 100644 .changeset/late-pumas-eat.md delete mode 100644 .changeset/late-squids-deny.md delete mode 100644 .changeset/lazy-trains-sell.md delete mode 100644 .changeset/light-peas-sip.md delete mode 100644 .changeset/lovely-rats-suffer.md delete mode 100644 .changeset/nasty-beds-occur.md delete mode 100644 .changeset/nice-lemons-chew.md delete mode 100644 .changeset/ninety-radios-lay.md delete mode 100644 .changeset/pretty-cooks-remember.md delete mode 100644 .changeset/quiet-rules-turn.md delete mode 100644 .changeset/real-suns-matter.md delete mode 100644 .changeset/rich-suits-hammer.md delete mode 100644 .changeset/rude-lemons-crash.md delete mode 100644 .changeset/seven-suns-move.md delete mode 100644 .changeset/shiny-icons-hammer.md delete mode 100644 .changeset/strong-apricots-remain.md delete mode 100644 .changeset/tasty-apes-juggle.md delete mode 100644 .changeset/tasty-tables-learn.md delete mode 100644 .changeset/tiny-walls-deliver.md delete mode 100644 .changeset/tough-parents-exercise.md delete mode 100644 .changeset/violet-toes-hear.md create mode 100644 packages/slate-history/CHANGELOG.md create mode 100644 packages/slate-hyperscript/CHANGELOG.md create mode 100644 packages/slate-react/CHANGELOG.md create mode 100644 packages/slate/CHANGELOG.md diff --git a/.changeset/afraid-donuts-flow.md b/.changeset/afraid-donuts-flow.md deleted file mode 100644 index 31d90c47a..000000000 --- a/.changeset/afraid-donuts-flow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Added support for using the new `beforeInput` events in the latest Firefox. diff --git a/.changeset/afraid-swans-pay.md b/.changeset/afraid-swans-pay.md deleted file mode 100644 index 4a43be0e5..000000000 --- a/.changeset/afraid-swans-pay.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': minor ---- - -**Add directional awareness to `Editor.deleteFragment`.** This is an obscure change, but is a required distinction when implementing features that need to "fake delete" content (like Google Docs's suggestions). Previously deleting always collapsed to the end of a range, but now it can collapse forwards as well. diff --git a/.changeset/brave-lions-approve.md b/.changeset/brave-lions-approve.md deleted file mode 100644 index 919efc18c..000000000 --- a/.changeset/brave-lions-approve.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Fixed spellcheck disabling logic to always work in older versions of Firefox. diff --git a/.changeset/clean-buses-perform.md b/.changeset/clean-buses-perform.md deleted file mode 100644 index f6eeb80aa..000000000 --- a/.changeset/clean-buses-perform.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Fixed browser-detection behavior to work with Deno. diff --git a/.changeset/cyan-islands-heal.md b/.changeset/cyan-islands-heal.md deleted file mode 100644 index 57776d849..000000000 --- a/.changeset/cyan-islands-heal.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Updated placeholder styles to allow for wrapping long placeholder text. diff --git a/.changeset/dirty-carrots-brush.md b/.changeset/dirty-carrots-brush.md deleted file mode 100644 index f20f186f0..000000000 --- a/.changeset/dirty-carrots-brush.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -slate: minor ---- - -**Updated `Text.equals` to deeply compare text node properties.** Previously it only did a shallow comparison, but this made it harder to keep track of more complex data structures at the text level. diff --git a/.changeset/dry-deers-applaud.md b/.changeset/dry-deers-applaud.md deleted file mode 100644 index 6581d132f..000000000 --- a/.changeset/dry-deers-applaud.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Fixed selection updating with IME inputs in browsers that support `beforeinput`. diff --git a/.changeset/fifty-ducks-sip.md b/.changeset/fifty-ducks-sip.md deleted file mode 100644 index 65acfcec4..000000000 --- a/.changeset/fifty-ducks-sip.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Fixed selection logic when a controlled editor's nodes change out from under it. diff --git a/.changeset/five-dryers-boil.md b/.changeset/five-dryers-boil.md deleted file mode 100644 index bf779ba9a..000000000 --- a/.changeset/five-dryers-boil.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Fixed a bug where memoization logic would prevent placeholders from re-rendering properly. diff --git a/.changeset/fuzzy-yaks-drive.md b/.changeset/fuzzy-yaks-drive.md deleted file mode 100644 index 71102f33d..000000000 --- a/.changeset/fuzzy-yaks-drive.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Added invariants when passing invalud `value` or `editor` props to ``. diff --git a/.changeset/heavy-rice-drive.md b/.changeset/heavy-rice-drive.md deleted file mode 100644 index 2d9d1767f..000000000 --- a/.changeset/heavy-rice-drive.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Fixed cursor movement in RTL text. diff --git a/.changeset/kind-flies-build.md b/.changeset/kind-flies-build.md deleted file mode 100644 index 6b072eda1..000000000 --- a/.changeset/kind-flies-build.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -slate: patch ---- - -Fixed `move_node` operations to normalize the node in question. diff --git a/.changeset/late-pumas-eat.md b/.changeset/late-pumas-eat.md deleted file mode 100644 index aa3f07299..000000000 --- a/.changeset/late-pumas-eat.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -slate: patch ---- - -Added memoization logic to `Node.isNodeList` and `Editor.isEditor` to speed up common code paths. diff --git a/.changeset/late-squids-deny.md b/.changeset/late-squids-deny.md deleted file mode 100644 index ee2451a40..000000000 --- a/.changeset/late-squids-deny.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Fixed a bug in the conversion of DOM points to Slate points. diff --git a/.changeset/lazy-trains-sell.md b/.changeset/lazy-trains-sell.md deleted file mode 100644 index 3f0d4cb48..000000000 --- a/.changeset/lazy-trains-sell.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Fixed auto-scrolling behavior when a block is bigger than the viewport. diff --git a/.changeset/light-peas-sip.md b/.changeset/light-peas-sip.md deleted file mode 100644 index cfa935219..000000000 --- a/.changeset/light-peas-sip.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Fixed a bug that occurred when using Babel's `loose` mode. diff --git a/.changeset/lovely-rats-suffer.md b/.changeset/lovely-rats-suffer.md deleted file mode 100644 index 05d0e573b..000000000 --- a/.changeset/lovely-rats-suffer.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'slate': minor -'slate-history': minor -'slate-hyperscript': minor -'slate-react': minor ---- - -**Start using [🦋 Changesets](https://github.com/atlassian/changesets) to manage releases.** Going forward, whenever a pull request is made that fixes or adds functionality to Slate, it will need to be accompanied by a changset Markdown file describing the change. These files will be automatically used in the release process when bump the versions of Slate and compiling the changelog. diff --git a/.changeset/nasty-beds-occur.md b/.changeset/nasty-beds-occur.md deleted file mode 100644 index fecf98610..000000000 --- a/.changeset/nasty-beds-occur.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-history': patch ---- - -Fixed history logic to not store focus and blur selection changes in the history. diff --git a/.changeset/nice-lemons-chew.md b/.changeset/nice-lemons-chew.md deleted file mode 100644 index c03e1ff0b..000000000 --- a/.changeset/nice-lemons-chew.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Fixed deleting void elements when using cut-and-paste. diff --git a/.changeset/ninety-radios-lay.md b/.changeset/ninety-radios-lay.md deleted file mode 100644 index d6e59d27e..000000000 --- a/.changeset/ninety-radios-lay.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Fixed a bug that crashed the editor when using IME input. diff --git a/.changeset/pretty-cooks-remember.md b/.changeset/pretty-cooks-remember.md deleted file mode 100644 index 55009643c..000000000 --- a/.changeset/pretty-cooks-remember.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -slate: patch ---- - -Fixed a bug when merging deeply nested multi-child nodes. diff --git a/.changeset/quiet-rules-turn.md b/.changeset/quiet-rules-turn.md deleted file mode 100644 index 7395b4a62..000000000 --- a/.changeset/quiet-rules-turn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -slate: minor ---- - -**Added support for custom selection properties.** Previously you could set custom properties on the selection objects but it was not a fully supported feature because there was no way to delete them later. Now custom properties are officially supported and deleting them once set is possible. diff --git a/.changeset/real-suns-matter.md b/.changeset/real-suns-matter.md deleted file mode 100644 index c71ccd029..000000000 --- a/.changeset/real-suns-matter.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Fixed allowing the `onPaste` handler to be overridden in all browsers. diff --git a/.changeset/rich-suits-hammer.md b/.changeset/rich-suits-hammer.md deleted file mode 100644 index c0f9203f2..000000000 --- a/.changeset/rich-suits-hammer.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Fixed internal decoration logic to be faster and require fewer re-renders. diff --git a/.changeset/rude-lemons-crash.md b/.changeset/rude-lemons-crash.md deleted file mode 100644 index 6a635f721..000000000 --- a/.changeset/rude-lemons-crash.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Fixed an error that happened when selecting void nodes in a read-only editor. diff --git a/.changeset/seven-suns-move.md b/.changeset/seven-suns-move.md deleted file mode 100644 index 653485ae5..000000000 --- a/.changeset/seven-suns-move.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Fixed `move_node` operations to not always require a full re-render. diff --git a/.changeset/shiny-icons-hammer.md b/.changeset/shiny-icons-hammer.md deleted file mode 100644 index 84e644050..000000000 --- a/.changeset/shiny-icons-hammer.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Fixed normalization of DOM points to be more accurate when triple-clicking. diff --git a/.changeset/strong-apricots-remain.md b/.changeset/strong-apricots-remain.md deleted file mode 100644 index 2d37692ea..000000000 --- a/.changeset/strong-apricots-remain.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Fixed a bug that prevented `isFocused` from updating on certain focus changes. diff --git a/.changeset/tasty-apes-juggle.md b/.changeset/tasty-apes-juggle.md deleted file mode 100644 index 61d9f5c48..000000000 --- a/.changeset/tasty-apes-juggle.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -slate: patch ---- - -Fixed a bug when deleting a hanging range with a trailing void block node. diff --git a/.changeset/tasty-tables-learn.md b/.changeset/tasty-tables-learn.md deleted file mode 100644 index 0b962fcee..000000000 --- a/.changeset/tasty-tables-learn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Fixed IME input to not insert repeated characters. diff --git a/.changeset/tiny-walls-deliver.md b/.changeset/tiny-walls-deliver.md deleted file mode 100644 index db40136d0..000000000 --- a/.changeset/tiny-walls-deliver.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Fixes Slate to work with the Shadow DOM. diff --git a/.changeset/tough-parents-exercise.md b/.changeset/tough-parents-exercise.md deleted file mode 100644 index b23d37701..000000000 --- a/.changeset/tough-parents-exercise.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Fixed deleting by line to account for the line breaks in the browser. diff --git a/.changeset/violet-toes-hear.md b/.changeset/violet-toes-hear.md deleted file mode 100644 index da0a1cd80..000000000 --- a/.changeset/violet-toes-hear.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate': patch ---- - -Fixed a bug in `Editor.positions` which caused it to sometimes skip positions in text nodes that were segmented across inlines or marks. diff --git a/packages/slate-history/CHANGELOG.md b/packages/slate-history/CHANGELOG.md new file mode 100644 index 000000000..a6409c5d9 --- /dev/null +++ b/packages/slate-history/CHANGELOG.md @@ -0,0 +1,15 @@ +# slate-history + +## 0.62.0 +### Minor Changes + + + +- [#4154](https://github.com/ianstormtaylor/slate/pull/4154) [`7283c51f`](https://github.com/ianstormtaylor/slate/commit/7283c51feb83cb8522bc16efce09bb01c29400b9) Thanks [@ianstormtaylor](https://github.com/ianstormtaylor)! - **Start using [🦋 Changesets](https://github.com/atlassian/changesets) to manage releases.** Going forward, whenever a pull request is made that fixes or adds functionality to Slate, it will need to be accompanied by a changset Markdown file describing the change. These files will be automatically used in the release process when bump the versions of Slate and compiling the changelog. + + +### Patch Changes + + + +- [`c6002024`](https://github.com/ianstormtaylor/slate/commit/c60020244b9d25094edb0ffcca8b49dead9b31dc) Thanks [@ianstormtaylor](https://github.com/ianstormtaylor)! - Fixed history logic to not store focus and blur selection changes in the history. diff --git a/packages/slate-history/package.json b/packages/slate-history/package.json index 9aea452fb..fe56f40c9 100644 --- a/packages/slate-history/package.json +++ b/packages/slate-history/package.json @@ -1,7 +1,7 @@ { "name": "slate-history", "description": "An operation-based history implementation for Slate editors.", - "version": "0.61.3", + "version": "0.62.0", "license": "MIT", "repository": "git://github.com/ianstormtaylor/slate.git", "main": "dist/index.js", @@ -18,8 +18,8 @@ "is-plain-object": "^3.0.0" }, "devDependencies": { - "slate": "^0.61.3", - "slate-hyperscript": "^0.61.3" + "slate": "^0.62.0", + "slate-hyperscript": "^0.62.0" }, "peerDependencies": { "slate": ">=0.55.0" diff --git a/packages/slate-hyperscript/CHANGELOG.md b/packages/slate-hyperscript/CHANGELOG.md new file mode 100644 index 000000000..ea740a330 --- /dev/null +++ b/packages/slate-hyperscript/CHANGELOG.md @@ -0,0 +1,8 @@ +# slate-hyperscript + +## 0.62.0 +### Minor Changes + + + +- [#4154](https://github.com/ianstormtaylor/slate/pull/4154) [`7283c51f`](https://github.com/ianstormtaylor/slate/commit/7283c51feb83cb8522bc16efce09bb01c29400b9) Thanks [@ianstormtaylor](https://github.com/ianstormtaylor)! - **Start using [🦋 Changesets](https://github.com/atlassian/changesets) to manage releases.** Going forward, whenever a pull request is made that fixes or adds functionality to Slate, it will need to be accompanied by a changset Markdown file describing the change. These files will be automatically used in the release process when bump the versions of Slate and compiling the changelog. diff --git a/packages/slate-hyperscript/package.json b/packages/slate-hyperscript/package.json index 36cf8610e..a58b979f5 100644 --- a/packages/slate-hyperscript/package.json +++ b/packages/slate-hyperscript/package.json @@ -1,7 +1,7 @@ { "name": "slate-hyperscript", "description": "A hyperscript helper for creating Slate documents.", - "version": "0.61.3", + "version": "0.62.0", "license": "MIT", "repository": "git://github.com/ianstormtaylor/slate.git", "main": "dist/index.js", @@ -17,7 +17,7 @@ "is-plain-object": "^3.0.0" }, "devDependencies": { - "slate": "^0.61.3" + "slate": "^0.62.0" }, "peerDependencies": { "slate": ">=0.55.0" diff --git a/packages/slate-react/CHANGELOG.md b/packages/slate-react/CHANGELOG.md new file mode 100644 index 000000000..63fff7a04 --- /dev/null +++ b/packages/slate-react/CHANGELOG.md @@ -0,0 +1,107 @@ +# slate-react + +## 0.62.0 +### Minor Changes + + + +- [`c6002024`](https://github.com/ianstormtaylor/slate/commit/c60020244b9d25094edb0ffcca8b49dead9b31dc) Thanks [@ianstormtaylor](https://github.com/ianstormtaylor)! - **Add directional awareness to `Editor.deleteFragment`.** This is an obscure change, but is a required distinction when implementing features that need to "fake delete" content (like Google Docs's suggestions). Previously deleting always collapsed to the end of a range, but now it can collapse forwards as well. + + + +- [#4154](https://github.com/ianstormtaylor/slate/pull/4154) [`7283c51f`](https://github.com/ianstormtaylor/slate/commit/7283c51feb83cb8522bc16efce09bb01c29400b9) Thanks [@ianstormtaylor](https://github.com/ianstormtaylor)! - **Start using [🦋 Changesets](https://github.com/atlassian/changesets) to manage releases.** Going forward, whenever a pull request is made that fixes or adds functionality to Slate, it will need to be accompanied by a changset Markdown file describing the change. These files will be automatically used in the release process when bump the versions of Slate and compiling the changelog. + + +### Patch Changes + + + +- [#4150](https://github.com/ianstormtaylor/slate/pull/4150) [`bbd7d9c3`](https://github.com/ianstormtaylor/slate/commit/bbd7d9c33023add223ef9f1a33b657a468552caf) Thanks [@nivekithan](https://github.com/nivekithan)! - Added support for using the new `beforeInput` events in the latest Firefox. + + + +- [`c6002024`](https://github.com/ianstormtaylor/slate/commit/c60020244b9d25094edb0ffcca8b49dead9b31dc) Thanks [@ianstormtaylor](https://github.com/ianstormtaylor)! - Fixed spellcheck disabling logic to always work in older versions of Firefox. + + + +- [`c6002024`](https://github.com/ianstormtaylor/slate/commit/c60020244b9d25094edb0ffcca8b49dead9b31dc) Thanks [@ianstormtaylor](https://github.com/ianstormtaylor)! - Fixed browser-detection behavior to work with Deno. + + + +- [`d5589279`](https://github.com/ianstormtaylor/slate/commit/d5589279e8792185c1082af720a73f55b16797dd) Thanks [@ianstormtaylor](https://github.com/ianstormtaylor)! - Updated placeholder styles to allow for wrapping long placeholder text. + + + +- [#3698](https://github.com/ianstormtaylor/slate/pull/3698) [`bf83f333`](https://github.com/ianstormtaylor/slate/commit/bf83f333e689bc17b96504b497bb7fcdf6dc7fc1) Thanks [@pubuzhixing8](https://github.com/pubuzhixing8)! - Fixed selection updating with IME inputs in browsers that support `beforeinput`. + + + +- [#3652](https://github.com/ianstormtaylor/slate/pull/3652) [`f3fb40cc`](https://github.com/ianstormtaylor/slate/commit/f3fb40cce044b73b6da13013f90bd7018f2f5d8a) Thanks [@Andarist](https://github.com/Andarist)! - Fixed selection logic when a controlled editor's nodes change out from under it. + + + +- [`c6002024`](https://github.com/ianstormtaylor/slate/commit/c60020244b9d25094edb0ffcca8b49dead9b31dc) Thanks [@ianstormtaylor](https://github.com/ianstormtaylor)! - Fixed a bug where memoization logic would prevent placeholders from re-rendering properly. + + + +- [#3326](https://github.com/ianstormtaylor/slate/pull/3326) [`d5b2d7f5`](https://github.com/ianstormtaylor/slate/commit/d5b2d7f55e2982019b246fdea1e9eb845d0e2fc2) Thanks [@rockettomatooo](https://github.com/rockettomatooo)! - Added invariants when passing invalud `value` or `editor` props to ``. + + + +- [`c6002024`](https://github.com/ianstormtaylor/slate/commit/c60020244b9d25094edb0ffcca8b49dead9b31dc) Thanks [@ianstormtaylor](https://github.com/ianstormtaylor)! - Fixed cursor movement in RTL text. + + + +- [`c6002024`](https://github.com/ianstormtaylor/slate/commit/c60020244b9d25094edb0ffcca8b49dead9b31dc) Thanks [@ianstormtaylor](https://github.com/ianstormtaylor)! - Fixed a bug in the conversion of DOM points to Slate points. + + + +- [#3746](https://github.com/ianstormtaylor/slate/pull/3746) [`f8be509e`](https://github.com/ianstormtaylor/slate/commit/f8be509e4d0b5c13bb791e0fd5702242319d114f) Thanks [@gztomas](https://github.com/gztomas)! - Fixed auto-scrolling behavior when a block is bigger than the viewport. + + + +- [`c6002024`](https://github.com/ianstormtaylor/slate/commit/c60020244b9d25094edb0ffcca8b49dead9b31dc) Thanks [@ianstormtaylor](https://github.com/ianstormtaylor)! - Fixed a bug that occurred when using Babel's `loose` mode. + + + +- [`c6002024`](https://github.com/ianstormtaylor/slate/commit/c60020244b9d25094edb0ffcca8b49dead9b31dc) Thanks [@ianstormtaylor](https://github.com/ianstormtaylor)! - Fixed deleting void elements when using cut-and-paste. + + + +- [`c6002024`](https://github.com/ianstormtaylor/slate/commit/c60020244b9d25094edb0ffcca8b49dead9b31dc) Thanks [@ianstormtaylor](https://github.com/ianstormtaylor)! - Fixed a bug that crashed the editor when using IME input. + + + +- [#3396](https://github.com/ianstormtaylor/slate/pull/3396) [`469e6b26`](https://github.com/ianstormtaylor/slate/commit/469e6b26f50857ef0d68cdf5a54793f8fe9033fd) Thanks [@cvlmtg](https://github.com/cvlmtg)! - Fixed allowing the `onPaste` handler to be overridden in all browsers. + + + +- [`c6002024`](https://github.com/ianstormtaylor/slate/commit/c60020244b9d25094edb0ffcca8b49dead9b31dc) Thanks [@ianstormtaylor](https://github.com/ianstormtaylor)! - Fixed internal decoration logic to be faster and require fewer re-renders. + + + +- [#3894](https://github.com/ianstormtaylor/slate/pull/3894) [`7fe41f15`](https://github.com/ianstormtaylor/slate/commit/7fe41f156614453479cb9ea649fe5665b616d3a7) Thanks [@msc117](https://github.com/msc117)! - Fixed an error that happened when selecting void nodes in a read-only editor. + + + +- [`c6002024`](https://github.com/ianstormtaylor/slate/commit/c60020244b9d25094edb0ffcca8b49dead9b31dc) Thanks [@ianstormtaylor](https://github.com/ianstormtaylor)! - Fixed `move_node` operations to not always require a full re-render. + + + +- [`d5589279`](https://github.com/ianstormtaylor/slate/commit/d5589279e8792185c1082af720a73f55b16797dd) Thanks [@ianstormtaylor](https://github.com/ianstormtaylor)! - Fixed normalization of DOM points to be more accurate when triple-clicking. + + + +- [`d5589279`](https://github.com/ianstormtaylor/slate/commit/d5589279e8792185c1082af720a73f55b16797dd) Thanks [@ianstormtaylor](https://github.com/ianstormtaylor)! - Fixed a bug that prevented `isFocused` from updating on certain focus changes. + + + +- [`c6002024`](https://github.com/ianstormtaylor/slate/commit/c60020244b9d25094edb0ffcca8b49dead9b31dc) Thanks [@ianstormtaylor](https://github.com/ianstormtaylor)! - Fixed IME input to not insert repeated characters. + + + +- [#3749](https://github.com/ianstormtaylor/slate/pull/3749) [`0473d0bf`](https://github.com/ianstormtaylor/slate/commit/0473d0bf93808b0e4e98abe833b7f7f4f5aff3b1) Thanks [@davidruisinger](https://github.com/davidruisinger)! - Fixes Slate to work with the Shadow DOM. + + + +- [`c6002024`](https://github.com/ianstormtaylor/slate/commit/c60020244b9d25094edb0ffcca8b49dead9b31dc) Thanks [@ianstormtaylor](https://github.com/ianstormtaylor)! - Fixed deleting by line to account for the line breaks in the browser. diff --git a/packages/slate-react/package.json b/packages/slate-react/package.json index abf111c2d..1289383ff 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.61.3", + "version": "0.62.0", "license": "MIT", "repository": "git://github.com/ianstormtaylor/slate.git", "main": "dist/index.js", @@ -24,9 +24,9 @@ "tiny-invariant": "1.0.6" }, "devDependencies": { - "slate": "^0.61.3", - "slate-history": "^0.61.3", - "slate-hyperscript": "^0.61.3" + "slate": "^0.62.0", + "slate-history": "^0.62.0", + "slate-hyperscript": "^0.62.0" }, "peerDependencies": { "react": ">=16.8.0", diff --git a/packages/slate/CHANGELOG.md b/packages/slate/CHANGELOG.md new file mode 100644 index 000000000..641dd4157 --- /dev/null +++ b/packages/slate/CHANGELOG.md @@ -0,0 +1,39 @@ +# slate + +## 0.62.0 +### Minor Changes + + + +- [`c6002024`](https://github.com/ianstormtaylor/slate/commit/c60020244b9d25094edb0ffcca8b49dead9b31dc) Thanks [@ianstormtaylor](https://github.com/ianstormtaylor)! - **Updated `Text.equals` to deeply compare text node properties.** Previously it only did a shallow comparison, but this made it harder to keep track of more complex data structures at the text level. + + + +- [#4154](https://github.com/ianstormtaylor/slate/pull/4154) [`7283c51f`](https://github.com/ianstormtaylor/slate/commit/7283c51feb83cb8522bc16efce09bb01c29400b9) Thanks [@ianstormtaylor](https://github.com/ianstormtaylor)! - **Start using [🦋 Changesets](https://github.com/atlassian/changesets) to manage releases.** Going forward, whenever a pull request is made that fixes or adds functionality to Slate, it will need to be accompanied by a changset Markdown file describing the change. These files will be automatically used in the release process when bump the versions of Slate and compiling the changelog. + + + +- [`c6002024`](https://github.com/ianstormtaylor/slate/commit/c60020244b9d25094edb0ffcca8b49dead9b31dc) Thanks [@ianstormtaylor](https://github.com/ianstormtaylor)! - **Added support for custom selection properties.** Previously you could set custom properties on the selection objects but it was not a fully supported feature because there was no way to delete them later. Now custom properties are officially supported and deleting them once set is possible. + + +### Patch Changes + + + +- [`c6002024`](https://github.com/ianstormtaylor/slate/commit/c60020244b9d25094edb0ffcca8b49dead9b31dc) Thanks [@ianstormtaylor](https://github.com/ianstormtaylor)! - Fixed `move_node` operations to normalize the node in question. + + + +- [`c6002024`](https://github.com/ianstormtaylor/slate/commit/c60020244b9d25094edb0ffcca8b49dead9b31dc) Thanks [@ianstormtaylor](https://github.com/ianstormtaylor)! - Added memoization logic to `Node.isNodeList` and `Editor.isEditor` to speed up common code paths. + + + +- [`c6002024`](https://github.com/ianstormtaylor/slate/commit/c60020244b9d25094edb0ffcca8b49dead9b31dc) Thanks [@ianstormtaylor](https://github.com/ianstormtaylor)! - Fixed a bug when merging deeply nested multi-child nodes. + + + +- [`c6002024`](https://github.com/ianstormtaylor/slate/commit/c60020244b9d25094edb0ffcca8b49dead9b31dc) Thanks [@ianstormtaylor](https://github.com/ianstormtaylor)! - Fixed a bug when deleting a hanging range with a trailing void block node. + + + +- [`c6002024`](https://github.com/ianstormtaylor/slate/commit/c60020244b9d25094edb0ffcca8b49dead9b31dc) Thanks [@ianstormtaylor](https://github.com/ianstormtaylor)! - Fixed a bug in `Editor.positions` which caused it to sometimes skip positions in text nodes that were segmented across inlines or marks. diff --git a/packages/slate/package.json b/packages/slate/package.json index ebb79e9d8..a40c89a7a 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.61.3", + "version": "0.62.0", "license": "MIT", "repository": "git://github.com/ianstormtaylor/slate.git", "main": "dist/index.js",