diff --git a/.changeset/curly-timers-watch.md b/.changeset/curly-timers-watch.md deleted file mode 100644 index 8a588d8fa..000000000 --- a/.changeset/curly-timers-watch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Fixed a bug that removed the selection when hovering over a non-selectable DOM element diff --git a/.changeset/fast-shrimps-begin.md b/.changeset/fast-shrimps-begin.md deleted file mode 100644 index 9bda348da..000000000 --- a/.changeset/fast-shrimps-begin.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'slate-hyperscript': patch ---- - -createEditor is now exported from slate-hyperscript, making it easier to set up custom editor tests - -For example: - -``` -const jsx = createHyperscript({ - creators: { - editor: createEditor(aFunctionThatReturnsAnEditorObject) - }, - elements: { - block: { type: 'block' }, - inline: { type: 'inline' } - } -}) -``` diff --git a/.changeset/lovely-goats-argue.md b/.changeset/lovely-goats-argue.md deleted file mode 100644 index efad563fb..000000000 --- a/.changeset/lovely-goats-argue.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': minor ---- - -The Slate Provider's "value" prop is now only used as initial state for editor.children as was intended before. If your code relies on replacing editor.children you should do so by replacing it directly instead of relying on the "value" prop to do this for you. diff --git a/.changeset/many-baboons-stare.md b/.changeset/many-baboons-stare.md deleted file mode 100644 index 04ef86890..000000000 --- a/.changeset/many-baboons-stare.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -defer native events within Editable to avoid bugs with Editor diff --git a/.changeset/shy-brooms-notice.md b/.changeset/shy-brooms-notice.md deleted file mode 100644 index 1a443d8ce..000000000 --- a/.changeset/shy-brooms-notice.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'slate-react': patch ---- - -Fixed bug: setting selection from `contentEditable:false` element causes crash diff --git a/packages/slate-history/package.json b/packages/slate-history/package.json index a6462a66b..b5128cef8 100644 --- a/packages/slate-history/package.json +++ b/packages/slate-history/package.json @@ -20,7 +20,7 @@ "@babel/runtime": "^7.7.4", "lodash": "^4.17.21", "slate": "^0.66.0", - "slate-hyperscript": "^0.66.0", + "slate-hyperscript": "^0.67.0", "source-map-loader": "^0.2.4" }, "peerDependencies": { diff --git a/packages/slate-hyperscript/CHANGELOG.md b/packages/slate-hyperscript/CHANGELOG.md index 4b4e4b272..0f4744f11 100644 --- a/packages/slate-hyperscript/CHANGELOG.md +++ b/packages/slate-hyperscript/CHANGELOG.md @@ -1,5 +1,25 @@ # slate-hyperscript +## 0.67.0 + +### Patch Changes + +- [#4555](https://github.com/ianstormtaylor/slate/pull/4555) [`c29eea02`](https://github.com/ianstormtaylor/slate/commit/c29eea022ec943f0c63278e9058fe1267f7dff01) Thanks [@bryanph](https://github.com/bryanph)! - createEditor is now exported from slate-hyperscript, making it easier to set up custom editor tests + + For example: + + ``` + const jsx = createHyperscript({ + creators: { + editor: createEditor(aFunctionThatReturnsAnEditorObject) + }, + elements: { + block: { type: 'block' }, + inline: { type: 'inline' } + } + }) + ``` + ## 0.66.0 ### Patch Changes diff --git a/packages/slate-hyperscript/package.json b/packages/slate-hyperscript/package.json index cd05bc82d..6b716c9d6 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.66.0", + "version": "0.67.0", "license": "MIT", "repository": "git://github.com/ianstormtaylor/slate.git", "main": "dist/index.js", diff --git a/packages/slate-react/CHANGELOG.md b/packages/slate-react/CHANGELOG.md index b52d88f44..2f13af653 100644 --- a/packages/slate-react/CHANGELOG.md +++ b/packages/slate-react/CHANGELOG.md @@ -1,5 +1,19 @@ # slate-react +## 0.67.0 + +### Minor Changes + +- [#4540](https://github.com/ianstormtaylor/slate/pull/4540) [`11ef83b4`](https://github.com/ianstormtaylor/slate/commit/11ef83b47fca84d1f908b5c9eeefada516fe9fed) Thanks [@bryanph](https://github.com/bryanph)! - The Slate Provider's "value" prop is now only used as initial state for editor.children as was intended before. If your code relies on replacing editor.children you should do so by replacing it directly instead of relying on the "value" prop to do this for you. + +### Patch Changes + +- [#4577](https://github.com/ianstormtaylor/slate/pull/4577) [`4b2e4000`](https://github.com/ianstormtaylor/slate/commit/4b2e4000d6253bd86fab237b6f2c70e9f8d30f09) Thanks [@jameshfisher](https://github.com/jameshfisher)! - Fixed a bug that removed the selection when hovering over a non-selectable DOM element + +* [#4605](https://github.com/ianstormtaylor/slate/pull/4605) [`87ab2efa`](https://github.com/ianstormtaylor/slate/commit/87ab2efa41a5b7a1324b3fc97117a1cdd3b41d66) Thanks [@jaked](https://github.com/jaked)! - defer native events within Editable to avoid bugs with Editor + +- [#4584](https://github.com/ianstormtaylor/slate/pull/4584) [`f40e515d`](https://github.com/ianstormtaylor/slate/commit/f40e515dc7f956b7fd859688c0170f2c1763fecf) Thanks [@jameshfisher](https://github.com/jameshfisher)! - Fixed bug: setting selection from `contentEditable:false` element causes crash + ## 0.66.7 ### Patch Changes diff --git a/packages/slate-react/package.json b/packages/slate-react/package.json index 11d2db3bd..004633c62 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.66.7", + "version": "0.67.0", "license": "MIT", "repository": "git://github.com/ianstormtaylor/slate.git", "main": "dist/index.js", @@ -32,7 +32,7 @@ "react-dom": ">=16.8.0", "react-test-renderer": ">=16.8.0", "slate": "^0.66.2", - "slate-hyperscript": "^0.66.0", + "slate-hyperscript": "^0.67.0", "source-map-loader": "^0.2.4" }, "peerDependencies": { diff --git a/packages/slate/package.json b/packages/slate/package.json index 6d7f4f3eb..5633fdaf6 100644 --- a/packages/slate/package.json +++ b/packages/slate/package.json @@ -21,7 +21,7 @@ "devDependencies": { "@babel/runtime": "^7.7.4", "lodash": "^4.17.21", - "slate-hyperscript": "^0.66.0", + "slate-hyperscript": "^0.67.0", "source-map-loader": "^0.2.4" }, "keywords": [ diff --git a/yarn.lock b/yarn.lock index 2052670a0..efc8eb853 100644 --- a/yarn.lock +++ b/yarn.lock @@ -14312,14 +14312,14 @@ resolve@^2.0.0-next.3: is-plain-object: ^5.0.0 lodash: ^4.17.21 slate: ^0.66.0 - slate-hyperscript: ^0.66.0 + slate-hyperscript: ^0.67.0 source-map-loader: ^0.2.4 peerDependencies: slate: ">=0.65.3" languageName: unknown linkType: soft -"slate-hyperscript@^0.66.0, slate-hyperscript@workspace:*, slate-hyperscript@workspace:packages/slate-hyperscript": +"slate-hyperscript@^0.67.0, slate-hyperscript@workspace:*, slate-hyperscript@workspace:packages/slate-hyperscript": version: 0.0.0-use.local resolution: "slate-hyperscript@workspace:packages/slate-hyperscript" dependencies: @@ -14430,7 +14430,7 @@ resolve@^2.0.0-next.3: react-test-renderer: ">=16.8.0" scroll-into-view-if-needed: ^2.2.20 slate: ^0.66.2 - slate-hyperscript: ^0.66.0 + slate-hyperscript: ^0.67.0 source-map-loader: ^0.2.4 tiny-invariant: 1.0.6 peerDependencies: @@ -14448,7 +14448,7 @@ resolve@^2.0.0-next.3: immer: ^9.0.6 is-plain-object: ^5.0.0 lodash: ^4.17.21 - slate-hyperscript: ^0.66.0 + slate-hyperscript: ^0.67.0 source-map-loader: ^0.2.4 tiny-warning: ^1.0.3 languageName: unknown