diff --git a/.changeset/stupid-ants-buy.md b/.changeset/stupid-ants-buy.md deleted file mode 100644 index 6cced8280..000000000 --- a/.changeset/stupid-ants-buy.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -'slate': minor ---- - -- When removing a text node containing the cursor, always perfer placing the cursor in a sibling text node if one exists. - - Previously, the selection would enter a sibling inline in some circumstances, even when a sibling text node was available. - - The most noticeable effect of this change occurs when pressing backspace at the start of line N when the last non-empty node in line N-1 is an inline. - - Before, the cursor would be placed inside the inline. - - Now, the cursor is placed outside the inline. diff --git a/packages/slate-dom/package.json b/packages/slate-dom/package.json index 79e615249..0148860eb 100644 --- a/packages/slate-dom/package.json +++ b/packages/slate-dom/package.json @@ -29,7 +29,7 @@ "@types/jsdom": "^21.1.4", "@types/lodash": "^4.14.200", "@types/resize-observer-browser": "^0.1.8", - "slate": "^0.117.0", + "slate": "^0.118.0", "slate-hyperscript": "^0.115.0", "source-map-loader": "^4.0.1" }, diff --git a/packages/slate-history/package.json b/packages/slate-history/package.json index aa48c01df..1a36f4d99 100644 --- a/packages/slate-history/package.json +++ b/packages/slate-history/package.json @@ -16,7 +16,7 @@ "devDependencies": { "@babel/runtime": "^7.23.2", "lodash": "^4.17.21", - "slate": "^0.117.0", + "slate": "^0.118.0", "slate-hyperscript": "^0.115.0", "source-map-loader": "^4.0.1" }, diff --git a/packages/slate-hyperscript/package.json b/packages/slate-hyperscript/package.json index 091088a9d..0d6bd96db 100644 --- a/packages/slate-hyperscript/package.json +++ b/packages/slate-hyperscript/package.json @@ -15,7 +15,7 @@ ], "devDependencies": { "@babel/runtime": "^7.23.2", - "slate": "^0.117.0", + "slate": "^0.118.0", "source-map-loader": "^4.0.1" }, "peerDependencies": { diff --git a/packages/slate-react/package.json b/packages/slate-react/package.json index 5baffd01a..e4701f386 100644 --- a/packages/slate-react/package.json +++ b/packages/slate-react/package.json @@ -34,7 +34,7 @@ "@types/resize-observer-browser": "^0.1.8", "react": "^18.2.0", "react-dom": "^18.2.0", - "slate": "^0.117.2", + "slate": "^0.118.0", "slate-dom": "^0.117.4", "slate-hyperscript": "^0.115.0", "source-map-loader": "^4.0.1" diff --git a/packages/slate/CHANGELOG.md b/packages/slate/CHANGELOG.md index 241833e06..4a898be52 100644 --- a/packages/slate/CHANGELOG.md +++ b/packages/slate/CHANGELOG.md @@ -1,5 +1,15 @@ # slate +## 0.118.0 + +### Minor Changes + +- [#5923](https://github.com/ianstormtaylor/slate/pull/5923) [`ba33735a`](https://github.com/ianstormtaylor/slate/commit/ba33735a8ca7ca7437e891365451d25a6646a4c7) Thanks [@12joan](https://github.com/12joan)! - - When removing a text node containing the cursor, always perfer placing the cursor in a sibling text node if one exists. + - Previously, the selection would enter a sibling inline in some circumstances, even when a sibling text node was available. + - The most noticeable effect of this change occurs when pressing backspace at the start of line N when the last non-empty node in line N-1 is an inline. + - Before, the cursor would be placed inside the inline. + - Now, the cursor is placed outside the inline. + ## 0.117.2 ### Patch Changes diff --git a/packages/slate/package.json b/packages/slate/package.json index fa7550e3b..b8f4798dd 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.117.2", + "version": "0.118.0", "license": "MIT", "repository": "git://github.com/ianstormtaylor/slate.git", "main": "dist/index.js", diff --git a/yarn.lock b/yarn.lock index 7f5fb395f..521d7d6f8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -13341,7 +13341,7 @@ __metadata: is-plain-object: "npm:^5.0.0" lodash: "npm:^4.17.21" scroll-into-view-if-needed: "npm:^3.1.0" - slate: "npm:^0.117.0" + slate: "npm:^0.118.0" slate-hyperscript: "npm:^0.115.0" source-map-loader: "npm:^4.0.1" tiny-invariant: "npm:1.3.1" @@ -13356,7 +13356,7 @@ __metadata: dependencies: "@babel/runtime": "npm:^7.23.2" lodash: "npm:^4.17.21" - slate: "npm:^0.117.0" + slate: "npm:^0.118.0" slate-hyperscript: "npm:^0.115.0" source-map-loader: "npm:^4.0.1" peerDependencies: @@ -13369,7 +13369,7 @@ __metadata: resolution: "slate-hyperscript@workspace:packages/slate-hyperscript" dependencies: "@babel/runtime": "npm:^7.23.2" - slate: "npm:^0.117.0" + slate: "npm:^0.118.0" source-map-loader: "npm:^4.0.1" peerDependencies: slate: ">=0.114.3" @@ -13483,7 +13483,7 @@ __metadata: react: "npm:^18.2.0" react-dom: "npm:^18.2.0" scroll-into-view-if-needed: "npm:^3.1.0" - slate: "npm:^0.117.2" + slate: "npm:^0.118.0" slate-dom: "npm:^0.117.4" slate-hyperscript: "npm:^0.115.0" source-map-loader: "npm:^4.0.1" @@ -13496,7 +13496,7 @@ __metadata: languageName: unknown linkType: soft -"slate@npm:^0.117.0, slate@npm:^0.117.2, slate@workspace:*, slate@workspace:packages/slate": +"slate@npm:^0.118.0, slate@workspace:*, slate@workspace:packages/slate": version: 0.0.0-use.local resolution: "slate@workspace:packages/slate" dependencies: