diff --git a/.changeset/calm-books-applaud.md b/.changeset/calm-books-applaud.md deleted file mode 100644 index 1e25cacf4..000000000 --- a/.changeset/calm-books-applaud.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -[slate-react]: fix selection bugs when multiple editors share value diff --git a/.changeset/cold-beans-give.md b/.changeset/cold-beans-give.md deleted file mode 100644 index 0db97622a..000000000 --- a/.changeset/cold-beans-give.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'slate-react': patch -'slate': patch ---- - -Make onDomSelectionChange trigger after onClick. diff --git a/.changeset/cool-rings-help.md b/.changeset/cool-rings-help.md deleted file mode 100644 index 5924eec86..000000000 --- a/.changeset/cool-rings-help.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate': minor ---- - -Fix paste to empty node losing structure of first block diff --git a/.changeset/curly-mails-allow.md b/.changeset/curly-mails-allow.md deleted file mode 100644 index a4ea4bb72..000000000 --- a/.changeset/curly-mails-allow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Update error message for useSlate diff --git a/.changeset/fix-ime-cursor-position.md b/.changeset/fix-ime-cursor-position.md deleted file mode 100644 index fb4b2f7cb..000000000 --- a/.changeset/fix-ime-cursor-position.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Changed so that the onKeyDown event do not fired while IME converting. diff --git a/.changeset/flat-carpets-sort.md b/.changeset/flat-carpets-sort.md deleted file mode 100644 index d9fe8e09c..000000000 --- a/.changeset/flat-carpets-sort.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -double ime fix for qq browser diff --git a/.changeset/gold-planets-pump.md b/.changeset/gold-planets-pump.md deleted file mode 100644 index 4a85d7abb..000000000 --- a/.changeset/gold-planets-pump.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'slate-history': patch -'slate-hyperscript': patch -'slate-react': patch -'slate': patch ---- - -Upgrade `is-plain-object` to v5.0.0 diff --git a/.changeset/healthy-ads-trade.md b/.changeset/healthy-ads-trade.md deleted file mode 100644 index 007d959c3..000000000 --- a/.changeset/healthy-ads-trade.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Add key for Children SelectedContext.Provider diff --git a/.changeset/lucky-schools-bake.md b/.changeset/lucky-schools-bake.md deleted file mode 100644 index b55c00e4a..000000000 --- a/.changeset/lucky-schools-bake.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate': minor ---- - -Add support for [flag](https://emojipedia.org/emoji-flag-sequence/), [keycap](https://emojipedia.org/emoji-keycap-sequence/) and [tag](https://emojipedia.org/emoji-tag-sequence/) unicode sequences. diff --git a/.changeset/mighty-zebras-relax.md b/.changeset/mighty-zebras-relax.md deleted file mode 100644 index 2a829ee48..000000000 --- a/.changeset/mighty-zebras-relax.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': minor ---- - -Use native character insertion to fix browser/OS text features diff --git a/.changeset/neat-flies-eat.md b/.changeset/neat-flies-eat.md deleted file mode 100644 index 1debb9bc1..000000000 --- a/.changeset/neat-flies-eat.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate': patch ---- - -Fix cursor not correct issue after insert multiple nodes with `Transform.insertNodes` diff --git a/.changeset/nervous-planes-wonder.md b/.changeset/nervous-planes-wonder.md deleted file mode 100644 index 3728d59c8..000000000 --- a/.changeset/nervous-planes-wonder.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Fix to read fragment from data-slate-fragment when application/x-slate-fragment is missing diff --git a/.changeset/nine-windows-rush.md b/.changeset/nine-windows-rush.md deleted file mode 100644 index 254501d03..000000000 --- a/.changeset/nine-windows-rush.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -fix double character insertion regression due to unnecessary memo diff --git a/.changeset/old-bees-design.md b/.changeset/old-bees-design.md deleted file mode 100644 index ec9aaff03..000000000 --- a/.changeset/old-bees-design.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -fix IME double input with editor mark diff --git a/.changeset/old-planes-trade.md b/.changeset/old-planes-trade.md deleted file mode 100644 index cd1edb958..000000000 --- a/.changeset/old-planes-trade.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Fix incorrect selection when triple clicking blocks in Editable component diff --git a/.changeset/orange-jeans-sing.md b/.changeset/orange-jeans-sing.md deleted file mode 100644 index 79390c51c..000000000 --- a/.changeset/orange-jeans-sing.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate': patch ---- - -Fix mergeNodes moving node into parent sibling diff --git a/.changeset/polite-readers-talk.md b/.changeset/polite-readers-talk.md deleted file mode 100644 index 6bd161ffc..000000000 --- a/.changeset/polite-readers-talk.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate': minor ---- - -Switched from `fast-deep-equal` to a custom deep equality check. This restores the ability for text nodes with mark values set to `undefined` to merge with text nodes missing those keys. diff --git a/.changeset/popular-ways-fail.md b/.changeset/popular-ways-fail.md deleted file mode 100644 index 12e4de2ab..000000000 --- a/.changeset/popular-ways-fail.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate': minor ---- - -Fixed regression in #4208 where normalization on empty block nodes could not be overridden diff --git a/.changeset/seven-fishes-check.md b/.changeset/seven-fishes-check.md deleted file mode 100644 index d8118fc56..000000000 --- a/.changeset/seven-fishes-check.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate': patch ---- - -Normalization now removes empty text nodes after nonempty nodes with differing styles, but before inline nodes. diff --git a/.changeset/sharp-moose-explode.md b/.changeset/sharp-moose-explode.md deleted file mode 100644 index eafa15857..000000000 --- a/.changeset/sharp-moose-explode.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate': patch ---- - -Immer 9 security update, refactor to support immer 9 API changes diff --git a/.changeset/shy-planets-eat.md b/.changeset/shy-planets-eat.md deleted file mode 100644 index c97c44458..000000000 --- a/.changeset/shy-planets-eat.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate': minor ---- - -unwrapNode call liftNode in reverse order to keep nested block diff --git a/.changeset/spotty-squids-walk.md b/.changeset/spotty-squids-walk.md deleted file mode 100644 index 43a7a142e..000000000 --- a/.changeset/spotty-squids-walk.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate': minor ---- - -Don't set `null` in `set_node`'s `newProperties` object when using `Transforms.unsetNodes()` diff --git a/.changeset/strange-rabbits-refuse.md b/.changeset/strange-rabbits-refuse.md deleted file mode 100644 index 56175fe32..000000000 --- a/.changeset/strange-rabbits-refuse.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Fix copy-paste a slate fragment on android editable diff --git a/.changeset/tender-crabs-begin.md b/.changeset/tender-crabs-begin.md deleted file mode 100644 index 6fee5572b..000000000 --- a/.changeset/tender-crabs-begin.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -fix a bug where element selections were not captured by useSelected diff --git a/.changeset/thick-geckos-kick.md b/.changeset/thick-geckos-kick.md deleted file mode 100644 index 369a13a11..000000000 --- a/.changeset/thick-geckos-kick.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Fix editor mark is not inserted on android diff --git a/packages/slate-history/CHANGELOG.md b/packages/slate-history/CHANGELOG.md index f847b4066..ac649b7fb 100644 --- a/packages/slate-history/CHANGELOG.md +++ b/packages/slate-history/CHANGELOG.md @@ -1,5 +1,11 @@ # slate-history +## 0.66.0 + +### Patch Changes + +- [#4500](https://github.com/ianstormtaylor/slate/pull/4500) [`50bb3d7e`](https://github.com/ianstormtaylor/slate/commit/50bb3d7e32d640957018831526235ca656963f1d) Thanks [@tubbo](https://github.com/tubbo)! - Upgrade `is-plain-object` to v5.0.0 + ## 0.65.3 ### Patch Changes diff --git a/packages/slate-history/package.json b/packages/slate-history/package.json index fc1a7099c..a6462a66b 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.65.3", + "version": "0.66.0", "license": "MIT", "repository": "git://github.com/ianstormtaylor/slate.git", "main": "dist/index.js", @@ -19,8 +19,8 @@ "devDependencies": { "@babel/runtime": "^7.7.4", "lodash": "^4.17.21", - "slate": "^0.65.3", - "slate-hyperscript": "^0.62.0", + "slate": "^0.66.0", + "slate-hyperscript": "^0.66.0", "source-map-loader": "^0.2.4" }, "peerDependencies": { diff --git a/packages/slate-hyperscript/CHANGELOG.md b/packages/slate-hyperscript/CHANGELOG.md index 6d80bff04..4b4e4b272 100644 --- a/packages/slate-hyperscript/CHANGELOG.md +++ b/packages/slate-hyperscript/CHANGELOG.md @@ -1,5 +1,11 @@ # slate-hyperscript +## 0.66.0 + +### Patch Changes + +- [#4500](https://github.com/ianstormtaylor/slate/pull/4500) [`50bb3d7e`](https://github.com/ianstormtaylor/slate/commit/50bb3d7e32d640957018831526235ca656963f1d) Thanks [@tubbo](https://github.com/tubbo)! - Upgrade `is-plain-object` to v5.0.0 + ## 0.62.0 ### Minor Changes diff --git a/packages/slate-hyperscript/package.json b/packages/slate-hyperscript/package.json index 234a3a703..cd05bc82d 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.62.0", + "version": "0.66.0", "license": "MIT", "repository": "git://github.com/ianstormtaylor/slate.git", "main": "dist/index.js", @@ -18,7 +18,7 @@ }, "devDependencies": { "@babel/runtime": "^7.7.4", - "slate": "^0.65.3", + "slate": "^0.66.0", "source-map-loader": "^0.2.4" }, "peerDependencies": { diff --git a/packages/slate-react/CHANGELOG.md b/packages/slate-react/CHANGELOG.md index 6a2bb14f4..35625a58e 100644 --- a/packages/slate-react/CHANGELOG.md +++ b/packages/slate-react/CHANGELOG.md @@ -1,5 +1,41 @@ # slate-react +## 0.66.0 + +### Minor Changes + +- [#3888](https://github.com/ianstormtaylor/slate/pull/3888) [`25afbd43`](https://github.com/ianstormtaylor/slate/commit/25afbd43001cdee852af6386d2b701d943b788da) Thanks [@bkrausz](https://github.com/bkrausz)! - Use native character insertion to fix browser/OS text features + +### Patch Changes + +- [#4475](https://github.com/ianstormtaylor/slate/pull/4475) [`c1433f56`](https://github.com/ianstormtaylor/slate/commit/c1433f56cfe13feb826264989bb4f68a0eefab62) Thanks [@skogsmaskin](https://github.com/skogsmaskin)! - [slate-react]: fix selection bugs when multiple editors share value + +* [#4132](https://github.com/ianstormtaylor/slate/pull/4132) [`48b71294`](https://github.com/ianstormtaylor/slate/commit/48b7129447347c9cf7a0535026287896ef59779b) Thanks [@ulion](https://github.com/ulion)! - Make onDomSelectionChange trigger after onClick. + +- [#4493](https://github.com/ianstormtaylor/slate/pull/4493) [`3dd74dd5`](https://github.com/ianstormtaylor/slate/commit/3dd74dd58daa907bfa1fb44bc5655ae2fc8ddb35) Thanks [@dylans](https://github.com/dylans)! - Update error message for useSlate + +* [#4450](https://github.com/ianstormtaylor/slate/pull/4450) [`220f2d2c`](https://github.com/ianstormtaylor/slate/commit/220f2d2ce6dffcc1a0f2ea1e8725601b8ea1949b) Thanks [@neko-neko](https://github.com/neko-neko)! - Changed so that the onKeyDown event do not fired while IME converting. + +- [#4452](https://github.com/ianstormtaylor/slate/pull/4452) [`935b3a79`](https://github.com/ianstormtaylor/slate/commit/935b3a79d6ec7d7e8f20804b2703e984e9c396e0) Thanks [@dylans](https://github.com/dylans)! - double ime fix for qq browser + +* [#4500](https://github.com/ianstormtaylor/slate/pull/4500) [`50bb3d7e`](https://github.com/ianstormtaylor/slate/commit/50bb3d7e32d640957018831526235ca656963f1d) Thanks [@tubbo](https://github.com/tubbo)! - Upgrade `is-plain-object` to v5.0.0 + +- [#4480](https://github.com/ianstormtaylor/slate/pull/4480) [`e51566ad`](https://github.com/ianstormtaylor/slate/commit/e51566ada84cfa107c445cc6f3908e78c18656b6) Thanks [@imdbsd](https://github.com/imdbsd)! - Add key for Children SelectedContext.Provider + +* [#4454](https://github.com/ianstormtaylor/slate/pull/4454) [`d06706c9`](https://github.com/ianstormtaylor/slate/commit/d06706c9e15bbbdd7cdd9a1bbb38c87d37c85ea1) Thanks [@imdbsd](https://github.com/imdbsd)! - Fix to read fragment from data-slate-fragment when application/x-slate-fragment is missing + +- [#4460](https://github.com/ianstormtaylor/slate/pull/4460) [`ace397f9`](https://github.com/ianstormtaylor/slate/commit/ace397f96602d93ab9216e3d3434f55eef981e4d) Thanks [@dylans](https://github.com/dylans)! - fix double character insertion regression due to unnecessary memo + +* [#4451](https://github.com/ianstormtaylor/slate/pull/4451) [`8e4120ae`](https://github.com/ianstormtaylor/slate/commit/8e4120ae315151705152e62944737ca4f62ad446) Thanks [@githoniel](https://github.com/githoniel)! - fix IME double input with editor mark + +- [#4503](https://github.com/ianstormtaylor/slate/pull/4503) [`2065c5bd`](https://github.com/ianstormtaylor/slate/commit/2065c5bdfd0de9f7d5ea049b23cd22b71bb80225) Thanks [@bytrangle](https://github.com/bytrangle)! - Fix incorrect selection when triple clicking blocks in Editable component + +* [#4433](https://github.com/ianstormtaylor/slate/pull/4433) [`a1f925bd`](https://github.com/ianstormtaylor/slate/commit/a1f925bddfb8e4507977b3449972d4521d05b148) Thanks [@imdbsd](https://github.com/imdbsd)! - Fix copy-paste a slate fragment on android editable + +- [#4365](https://github.com/ianstormtaylor/slate/pull/4365) [`906e5af1`](https://github.com/ianstormtaylor/slate/commit/906e5af1b1af07454da0a93490fca70b58fd9986) Thanks [@samarsault](https://github.com/samarsault)! - fix a bug where element selections were not captured by useSelected + +* [#4342](https://github.com/ianstormtaylor/slate/pull/4342) [`834ce348`](https://github.com/ianstormtaylor/slate/commit/834ce3483dc407a6293ba29cac8f192c13f57b01) Thanks [@imdbsd](https://github.com/imdbsd)! - Fix editor mark is not inserted on android + ## 0.65.3 ### Patch Changes diff --git a/packages/slate-react/package.json b/packages/slate-react/package.json index 1be436937..359b69bfa 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.65.3", + "version": "0.66.0", "license": "MIT", "repository": "git://github.com/ianstormtaylor/slate.git", "main": "dist/index.js", @@ -31,8 +31,8 @@ "react": ">=16.8.0", "react-dom": ">=16.8.0", "react-test-renderer": ">=16.8.0", - "slate": "^0.65.3", - "slate-hyperscript": "^0.62.0", + "slate": "^0.66.0", + "slate-hyperscript": "^0.66.0", "source-map-loader": "^0.2.4" }, "peerDependencies": { diff --git a/packages/slate/CHANGELOG.md b/packages/slate/CHANGELOG.md index 887483525..293d6c24b 100644 --- a/packages/slate/CHANGELOG.md +++ b/packages/slate/CHANGELOG.md @@ -1,5 +1,35 @@ # slate +## 0.66.0 + +### Minor Changes + +- [#4489](https://github.com/ianstormtaylor/slate/pull/4489) [`1b560de3`](https://github.com/ianstormtaylor/slate/commit/1b560de3e13d08cdc95d7f659a497ff0f07d296a) Thanks [@nemanja-tosic](https://github.com/nemanja-tosic)! - Fix paste to empty node losing structure of first block + +* [#4326](https://github.com/ianstormtaylor/slate/pull/4326) [`00259003`](https://github.com/ianstormtaylor/slate/commit/0025900349b2c2ff92c044b97389969fa32a9200) Thanks [@oliger](https://github.com/oliger)! - Add support for [flag](https://emojipedia.org/emoji-flag-sequence/), [keycap](https://emojipedia.org/emoji-keycap-sequence/) and [tag](https://emojipedia.org/emoji-tag-sequence/) unicode sequences. + +- [#4276](https://github.com/ianstormtaylor/slate/pull/4276) [`6f47cbbe`](https://github.com/ianstormtaylor/slate/commit/6f47cbbe0d8f320be8baf02a6e26d756d226cfca) Thanks [@TheSpyder](https://github.com/TheSpyder)! - Switched from `fast-deep-equal` to a custom deep equality check. This restores the ability for text nodes with mark values set to `undefined` to merge with text nodes missing those keys. + +* [#4431](https://github.com/ianstormtaylor/slate/pull/4431) [`55ff8f00`](https://github.com/ianstormtaylor/slate/commit/55ff8f00e46e5fd0f2aef41da321c02b6d3a0f70) Thanks [@TheSpyder](https://github.com/TheSpyder)! - Fixed regression in #4208 where normalization on empty block nodes could not be overridden + +- [#3820](https://github.com/ianstormtaylor/slate/pull/3820) [`c6203a2d`](https://github.com/ianstormtaylor/slate/commit/c6203a2d682325e550d4f4b9fc3ee3ca3429e466) Thanks [@githoniel](https://github.com/githoniel)! - unwrapNode call liftNode in reverse order to keep nested block + +* [#4428](https://github.com/ianstormtaylor/slate/pull/4428) [`b47d3fd1`](https://github.com/ianstormtaylor/slate/commit/b47d3fd191c6b76585898ec9b8c490f15dcff2da) Thanks [@TheSpyder](https://github.com/TheSpyder)! - Don't set `null` in `set_node`'s `newProperties` object when using `Transforms.unsetNodes()` + +### Patch Changes + +- [#4132](https://github.com/ianstormtaylor/slate/pull/4132) [`48b71294`](https://github.com/ianstormtaylor/slate/commit/48b7129447347c9cf7a0535026287896ef59779b) Thanks [@ulion](https://github.com/ulion)! - Make onDomSelectionChange trigger after onClick. + +* [#4500](https://github.com/ianstormtaylor/slate/pull/4500) [`50bb3d7e`](https://github.com/ianstormtaylor/slate/commit/50bb3d7e32d640957018831526235ca656963f1d) Thanks [@tubbo](https://github.com/tubbo)! - Upgrade `is-plain-object` to v5.0.0 + +- [#4482](https://github.com/ianstormtaylor/slate/pull/4482) [`dd752df1`](https://github.com/ianstormtaylor/slate/commit/dd752df11dc90da6bd6add88d1cfa6f00f03912b) Thanks [@Jokcy](https://github.com/Jokcy)! - Fix cursor not correct issue after insert multiple nodes with `Transform.insertNodes` + +* [#4296](https://github.com/ianstormtaylor/slate/pull/4296) [`479a7591`](https://github.com/ianstormtaylor/slate/commit/479a759108bc0f903715e08d542307566b077227) Thanks [@kellyjosephprice](https://github.com/kellyjosephprice)! - Fix mergeNodes moving node into parent sibling + +- [#4458](https://github.com/ianstormtaylor/slate/pull/4458) [`95c759a1`](https://github.com/ianstormtaylor/slate/commit/95c759a19c1e057bbc99148867298a73b014831d) Thanks [@taj-codaio](https://github.com/taj-codaio)! - Normalization now removes empty text nodes after nonempty nodes with differing styles, but before inline nodes. + +* [#4505](https://github.com/ianstormtaylor/slate/pull/4505) [`269e59c9`](https://github.com/ianstormtaylor/slate/commit/269e59c93aea31cdb438e9cc07d34cec0e482798) Thanks [@dylans](https://github.com/dylans)! - Immer 9 security update, refactor to support immer 9 API changes + ## 0.65.3 ### Patch Changes diff --git a/packages/slate/package.json b/packages/slate/package.json index 7f56c512c..408772e00 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.65.3", + "version": "0.66.0", "license": "MIT", "repository": "git://github.com/ianstormtaylor/slate.git", "main": "dist/index.js", @@ -21,7 +21,7 @@ "devDependencies": { "@babel/runtime": "^7.7.4", "lodash": "^4.17.21", - "slate-hyperscript": "^0.62.0", + "slate-hyperscript": "^0.66.0", "source-map-loader": "^0.2.4" }, "keywords": [