From c8ab9193717f3fb4fa5a1eb08450b8e242633aa1 Mon Sep 17 00:00:00 2001 From: "ecoscript[bot]" <143032650+ecoscript[bot]@users.noreply.github.com> Date: Wed, 26 Aug 2026 11:28:38 +0000 Subject: [PATCH] Version Packages --- .changeset/fix-key-rename-undo-inverse.md | 7 ------- .changeset/rekey-point-transform-path-scoped.md | 7 ------- .changeset/rename-colliding-keys-before-merge.md | 7 ------- packages/editor/CHANGELOG.md | 16 ++++++++++++++++ packages/editor/package.json | 2 +- .../plugin-character-pair-decorator/CHANGELOG.md | 7 +++++++ .../plugin-character-pair-decorator/package.json | 2 +- packages/plugin-dnd/CHANGELOG.md | 2 ++ packages/plugin-dnd/package.json | 2 +- packages/plugin-emoji-picker/CHANGELOG.md | 7 +++++++ packages/plugin-emoji-picker/package.json | 2 +- packages/plugin-input-rule/CHANGELOG.md | 2 ++ packages/plugin-input-rule/package.json | 2 +- packages/plugin-list-index/CHANGELOG.md | 2 ++ packages/plugin-list-index/package.json | 2 +- packages/plugin-markdown-shortcuts/CHANGELOG.md | 8 ++++++++ packages/plugin-markdown-shortcuts/package.json | 2 +- packages/plugin-one-line/CHANGELOG.md | 2 ++ packages/plugin-one-line/package.json | 2 +- packages/plugin-paste-link/CHANGELOG.md | 2 ++ packages/plugin-paste-link/package.json | 2 +- packages/plugin-sdk-value/CHANGELOG.md | 2 ++ packages/plugin-sdk-value/package.json | 2 +- packages/plugin-table/CHANGELOG.md | 2 ++ packages/plugin-table/package.json | 2 +- packages/plugin-typeahead-picker/CHANGELOG.md | 7 +++++++ packages/plugin-typeahead-picker/package.json | 2 +- packages/plugin-typography/CHANGELOG.md | 7 +++++++ packages/plugin-typography/package.json | 2 +- packages/toolbar/CHANGELOG.md | 2 ++ packages/toolbar/package.json | 2 +- 31 files changed, 82 insertions(+), 35 deletions(-) delete mode 100644 .changeset/fix-key-rename-undo-inverse.md delete mode 100644 .changeset/rekey-point-transform-path-scoped.md delete mode 100644 .changeset/rename-colliding-keys-before-merge.md diff --git a/.changeset/fix-key-rename-undo-inverse.md b/.changeset/fix-key-rename-undo-inverse.md deleted file mode 100644 index 339b22c532..0000000000 --- a/.changeset/fix-key-rename-undo-inverse.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@portabletext/editor': patch ---- - -fix: locate a renamed node by its new key when undoing a `_key` change - -Undoing an edit that renamed a node's own `_key` (a collision-avoiding rename ahead of a block merge, for example) left the node stuck under its new key instead of restoring the old one: the undo step tried to find the node by the key it had before the rename, which no longer resolved to anything once the rename had applied. Undoing now locates the node by its current key first, so a rename reverts cleanly along with everything else in the same undo step. diff --git a/.changeset/rekey-point-transform-path-scoped.md b/.changeset/rekey-point-transform-path-scoped.md deleted file mode 100644 index 3501898b9e..0000000000 --- a/.changeset/rekey-point-transform-path-scoped.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@portabletext/editor': patch ---- - -fix: re-point positions only at the renamed node's own path when a `_key` changes - -Renaming a node's `_key` no longer drags carets, selections, or tracked ranges sitting on an unrelated node that happens to carry the same key (keys are only unique among siblings, so twins across blocks are legal). Positions on the renamed node itself follow the rename as before; everything else stays put. diff --git a/.changeset/rename-colliding-keys-before-merge.md b/.changeset/rename-colliding-keys-before-merge.md deleted file mode 100644 index 4424201903..0000000000 --- a/.changeset/rename-colliding-keys-before-merge.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@portabletext/editor': patch ---- - -fix: rename colliding keys before a text block merge deletes the merging block - -Merging a text block into its neighbor (backspace at its start, or forward delete at the end of the block before it) could silently mint fresh `_key`s for any child span or annotation whose key collided with one already in the destination block. On the wire this read as those nodes being destroyed and re-created rather than moved, so a collaborator applying the same patches lost their caret through the merge instead of following it. The merge now renames the colliding keys first, so the emitted patches express the rename followed by the move instead of a destroy-and-create. diff --git a/packages/editor/CHANGELOG.md b/packages/editor/CHANGELOG.md index 0b5e13ceee..10946fd084 100644 --- a/packages/editor/CHANGELOG.md +++ b/packages/editor/CHANGELOG.md @@ -1,5 +1,21 @@ # Changelog +## 8.0.3 + +### Patch Changes + +- [#3182](https://github.com/portabletext/editor/pull/3182) [`ec6191e`](https://github.com/portabletext/editor/commit/ec6191eb024b3f9846a01fc9d391d54cc51c0178) Thanks [@christianhg](https://github.com/christianhg)! - fix: locate a renamed node by its new key when undoing a `_key` change + + Undoing an edit that renamed a node's own `_key` (a collision-avoiding rename ahead of a block merge, for example) left the node stuck under its new key instead of restoring the old one: the undo step tried to find the node by the key it had before the rename, which no longer resolved to anything once the rename had applied. Undoing now locates the node by its current key first, so a rename reverts cleanly along with everything else in the same undo step. + +- [#3182](https://github.com/portabletext/editor/pull/3182) [`f910394`](https://github.com/portabletext/editor/commit/f910394080cc184aee5bb5b2af74448f7641e6d3) Thanks [@christianhg](https://github.com/christianhg)! - fix: re-point positions only at the renamed node's own path when a `_key` changes + + Renaming a node's `_key` no longer drags carets, selections, or tracked ranges sitting on an unrelated node that happens to carry the same key (keys are only unique among siblings, so twins across blocks are legal). Positions on the renamed node itself follow the rename as before; everything else stays put. + +- [#3182](https://github.com/portabletext/editor/pull/3182) [`e653db5`](https://github.com/portabletext/editor/commit/e653db53b87e9c6791a7320c11f23cffb9e69d24) Thanks [@christianhg](https://github.com/christianhg)! - fix: rename colliding keys before a text block merge deletes the merging block + + Merging a text block into its neighbor (backspace at its start, or forward delete at the end of the block before it) could silently mint fresh `_key`s for any child span or annotation whose key collided with one already in the destination block. On the wire this read as those nodes being destroyed and re-created rather than moved, so a collaborator applying the same patches lost their caret through the merge instead of following it. The merge now renames the colliding keys first, so the emitted patches express the rename followed by the move instead of a destroy-and-create. + ## 8.0.2 ### Patch Changes diff --git a/packages/editor/package.json b/packages/editor/package.json index 8d7d5e075b..2a8dce9a5b 100644 --- a/packages/editor/package.json +++ b/packages/editor/package.json @@ -1,6 +1,6 @@ { "name": "@portabletext/editor", - "version": "8.0.2", + "version": "8.0.3", "description": "Portable Text Editor made in React", "keywords": [ "collaborative", diff --git a/packages/plugin-character-pair-decorator/CHANGELOG.md b/packages/plugin-character-pair-decorator/CHANGELOG.md index 9148c69818..29b434f571 100644 --- a/packages/plugin-character-pair-decorator/CHANGELOG.md +++ b/packages/plugin-character-pair-decorator/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 9.0.3 + +### Patch Changes + +- Updated dependencies []: + - @portabletext/plugin-input-rule@7.0.3 + ## 9.0.2 ### Patch Changes diff --git a/packages/plugin-character-pair-decorator/package.json b/packages/plugin-character-pair-decorator/package.json index 5cfacf728a..da6ad56fa3 100644 --- a/packages/plugin-character-pair-decorator/package.json +++ b/packages/plugin-character-pair-decorator/package.json @@ -1,6 +1,6 @@ { "name": "@portabletext/plugin-character-pair-decorator", - "version": "9.0.2", + "version": "9.0.3", "description": "Automatically match a pair of characters and decorate the text in between", "keywords": [ "behaviors", diff --git a/packages/plugin-dnd/CHANGELOG.md b/packages/plugin-dnd/CHANGELOG.md index 6ca13c68cc..55dc98941c 100644 --- a/packages/plugin-dnd/CHANGELOG.md +++ b/packages/plugin-dnd/CHANGELOG.md @@ -1,5 +1,7 @@ # @portabletext/plugin-dnd +## 2.0.3 + ## 2.0.2 ### Patch Changes diff --git a/packages/plugin-dnd/package.json b/packages/plugin-dnd/package.json index 138d806d8c..38e3e70097 100644 --- a/packages/plugin-dnd/package.json +++ b/packages/plugin-dnd/package.json @@ -1,6 +1,6 @@ { "name": "@portabletext/plugin-dnd", - "version": "2.0.2", + "version": "2.0.3", "description": "Track the drop position during drag and drop for custom drop indicators", "keywords": [ "dnd", diff --git a/packages/plugin-emoji-picker/CHANGELOG.md b/packages/plugin-emoji-picker/CHANGELOG.md index 9af5db97e1..746e77deeb 100644 --- a/packages/plugin-emoji-picker/CHANGELOG.md +++ b/packages/plugin-emoji-picker/CHANGELOG.md @@ -1,5 +1,12 @@ # @portabletext/plugin-emoji-picker +## 8.0.3 + +### Patch Changes + +- Updated dependencies []: + - @portabletext/plugin-input-rule@7.0.3 + ## 8.0.2 ### Patch Changes diff --git a/packages/plugin-emoji-picker/package.json b/packages/plugin-emoji-picker/package.json index 85396c6a52..048c3ac785 100644 --- a/packages/plugin-emoji-picker/package.json +++ b/packages/plugin-emoji-picker/package.json @@ -1,6 +1,6 @@ { "name": "@portabletext/plugin-emoji-picker", - "version": "8.0.2", + "version": "8.0.3", "description": "Easily configure an Emoji Picker for the Portable Text Editor", "keywords": [ "emoji-picker", diff --git a/packages/plugin-input-rule/CHANGELOG.md b/packages/plugin-input-rule/CHANGELOG.md index d25bfcbe90..a81ceea39c 100644 --- a/packages/plugin-input-rule/CHANGELOG.md +++ b/packages/plugin-input-rule/CHANGELOG.md @@ -1,5 +1,7 @@ # @portabletext/plugin-input-rule +## 7.0.3 + ## 7.0.2 ### Patch Changes diff --git a/packages/plugin-input-rule/package.json b/packages/plugin-input-rule/package.json index 31ccc0c6f6..29ad33b1f2 100644 --- a/packages/plugin-input-rule/package.json +++ b/packages/plugin-input-rule/package.json @@ -1,6 +1,6 @@ { "name": "@portabletext/plugin-input-rule", - "version": "7.0.2", + "version": "7.0.3", "description": "Easily configure Input Rules in the Portable Text Editor", "keywords": [ "input-rule", diff --git a/packages/plugin-list-index/CHANGELOG.md b/packages/plugin-list-index/CHANGELOG.md index 17b9c539d4..1bceb4fbd8 100644 --- a/packages/plugin-list-index/CHANGELOG.md +++ b/packages/plugin-list-index/CHANGELOG.md @@ -1,5 +1,7 @@ # @portabletext/plugin-list-index +## 2.0.3 + ## 2.0.2 ### Patch Changes diff --git a/packages/plugin-list-index/package.json b/packages/plugin-list-index/package.json index b9f92326a0..0d95732198 100644 --- a/packages/plugin-list-index/package.json +++ b/packages/plugin-list-index/package.json @@ -1,6 +1,6 @@ { "name": "@portabletext/plugin-list-index", - "version": "2.0.2", + "version": "2.0.3", "description": "Compute the list index of each list item for custom list rendering", "keywords": [ "list-index", diff --git a/packages/plugin-markdown-shortcuts/CHANGELOG.md b/packages/plugin-markdown-shortcuts/CHANGELOG.md index 2a5556bfa0..d4cb1d3fa1 100644 --- a/packages/plugin-markdown-shortcuts/CHANGELOG.md +++ b/packages/plugin-markdown-shortcuts/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 9.0.3 + +### Patch Changes + +- Updated dependencies []: + - @portabletext/plugin-character-pair-decorator@9.0.3 + - @portabletext/plugin-input-rule@7.0.3 + ## 9.0.2 ### Patch Changes diff --git a/packages/plugin-markdown-shortcuts/package.json b/packages/plugin-markdown-shortcuts/package.json index 7bcff12763..738e67c40a 100644 --- a/packages/plugin-markdown-shortcuts/package.json +++ b/packages/plugin-markdown-shortcuts/package.json @@ -1,6 +1,6 @@ { "name": "@portabletext/plugin-markdown-shortcuts", - "version": "9.0.2", + "version": "9.0.3", "description": "Add helpful Markdown shortcuts to the editor", "keywords": [ "behaviors", diff --git a/packages/plugin-one-line/CHANGELOG.md b/packages/plugin-one-line/CHANGELOG.md index e9754e1452..8968c67a62 100644 --- a/packages/plugin-one-line/CHANGELOG.md +++ b/packages/plugin-one-line/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog +## 8.0.3 + ## 8.0.2 ### Patch Changes diff --git a/packages/plugin-one-line/package.json b/packages/plugin-one-line/package.json index 3f77e306c2..5b6434f9c7 100644 --- a/packages/plugin-one-line/package.json +++ b/packages/plugin-one-line/package.json @@ -1,6 +1,6 @@ { "name": "@portabletext/plugin-one-line", - "version": "8.0.2", + "version": "8.0.3", "description": "Restrict the Portable Text Editor to a single line", "keywords": [ "behaviors", diff --git a/packages/plugin-paste-link/CHANGELOG.md b/packages/plugin-paste-link/CHANGELOG.md index 23488f4959..ecfdd86406 100644 --- a/packages/plugin-paste-link/CHANGELOG.md +++ b/packages/plugin-paste-link/CHANGELOG.md @@ -1,5 +1,7 @@ # @portabletext/plugin-paste-link +## 5.0.3 + ## 5.0.2 ### Patch Changes diff --git a/packages/plugin-paste-link/package.json b/packages/plugin-paste-link/package.json index 9978c90556..135369a58c 100644 --- a/packages/plugin-paste-link/package.json +++ b/packages/plugin-paste-link/package.json @@ -1,6 +1,6 @@ { "name": "@portabletext/plugin-paste-link", - "version": "5.0.2", + "version": "5.0.3", "description": "Allow pasting links in the Portable Text Editor", "keywords": [ "behaviors", diff --git a/packages/plugin-sdk-value/CHANGELOG.md b/packages/plugin-sdk-value/CHANGELOG.md index fbff192d4b..7c37c2e06e 100644 --- a/packages/plugin-sdk-value/CHANGELOG.md +++ b/packages/plugin-sdk-value/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog +## 8.0.3 + ## 8.0.2 ### Patch Changes diff --git a/packages/plugin-sdk-value/package.json b/packages/plugin-sdk-value/package.json index 0fdf0eeb55..01b624db6c 100644 --- a/packages/plugin-sdk-value/package.json +++ b/packages/plugin-sdk-value/package.json @@ -1,6 +1,6 @@ { "name": "@portabletext/plugin-sdk-value", - "version": "8.0.2", + "version": "8.0.3", "description": "Connect a Portable Text Editor with a Sanity document using the SDK", "keywords": [ "@sanity/sdk", diff --git a/packages/plugin-table/CHANGELOG.md b/packages/plugin-table/CHANGELOG.md index b36d80dbd8..155917ed7f 100644 --- a/packages/plugin-table/CHANGELOG.md +++ b/packages/plugin-table/CHANGELOG.md @@ -1,5 +1,7 @@ # @portabletext/plugin-table +## 2.0.3 + ## 2.0.2 ### Patch Changes diff --git a/packages/plugin-table/package.json b/packages/plugin-table/package.json index 6438126f09..2be74942ab 100644 --- a/packages/plugin-table/package.json +++ b/packages/plugin-table/package.json @@ -1,6 +1,6 @@ { "name": "@portabletext/plugin-table", - "version": "2.0.2", + "version": "2.0.3", "description": "Tables as real Portable Text, edited with spreadsheet-grade selection", "keywords": [ "plugin", diff --git a/packages/plugin-typeahead-picker/CHANGELOG.md b/packages/plugin-typeahead-picker/CHANGELOG.md index da19c20166..303850a156 100644 --- a/packages/plugin-typeahead-picker/CHANGELOG.md +++ b/packages/plugin-typeahead-picker/CHANGELOG.md @@ -1,5 +1,12 @@ # @portabletext/plugin-typeahead-picker +## 7.0.3 + +### Patch Changes + +- Updated dependencies []: + - @portabletext/plugin-input-rule@7.0.3 + ## 7.0.2 ### Patch Changes diff --git a/packages/plugin-typeahead-picker/package.json b/packages/plugin-typeahead-picker/package.json index 668419ab0f..d4559f380f 100644 --- a/packages/plugin-typeahead-picker/package.json +++ b/packages/plugin-typeahead-picker/package.json @@ -1,6 +1,6 @@ { "name": "@portabletext/plugin-typeahead-picker", - "version": "7.0.2", + "version": "7.0.3", "description": "Build typeahead pickers (emoji, mentions, slash commands) for the Portable Text Editor", "keywords": [ "autocomplete", diff --git a/packages/plugin-typography/CHANGELOG.md b/packages/plugin-typography/CHANGELOG.md index f34f3c8512..aa75b217ea 100644 --- a/packages/plugin-typography/CHANGELOG.md +++ b/packages/plugin-typography/CHANGELOG.md @@ -1,5 +1,12 @@ # @portabletext/plugin-typography +## 9.0.3 + +### Patch Changes + +- Updated dependencies []: + - @portabletext/plugin-input-rule@7.0.3 + ## 9.0.2 ### Patch Changes diff --git a/packages/plugin-typography/package.json b/packages/plugin-typography/package.json index d6bf915474..ee6549b8b8 100644 --- a/packages/plugin-typography/package.json +++ b/packages/plugin-typography/package.json @@ -1,6 +1,6 @@ { "name": "@portabletext/plugin-typography", - "version": "9.0.2", + "version": "9.0.3", "description": "Automatically transform text to typographic variants", "keywords": [ "plugin", diff --git a/packages/toolbar/CHANGELOG.md b/packages/toolbar/CHANGELOG.md index c527318fc9..ac39101d80 100644 --- a/packages/toolbar/CHANGELOG.md +++ b/packages/toolbar/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog +## 9.0.3 + ## 9.0.2 ### Patch Changes diff --git a/packages/toolbar/package.json b/packages/toolbar/package.json index 1c949f7ceb..f39cb35315 100644 --- a/packages/toolbar/package.json +++ b/packages/toolbar/package.json @@ -1,6 +1,6 @@ { "name": "@portabletext/toolbar", - "version": "9.0.2", + "version": "9.0.3", "description": "Utilities for building a toolbar for the Portable Text Editor", "keywords": [ "portabletext",