diff --git a/.changeset/remote-patches-cosmetic-normalization.md b/.changeset/remote-patches-cosmetic-normalization.md deleted file mode 100644 index 11de4e0057..0000000000 --- a/.changeset/remote-patches-cosmetic-normalization.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@portabletext/editor': patch ---- - -fix: skip cosmetic normalization while applying remote patches - -Adjacent same-mark spans and empty sibling spans arriving through remote patches are now kept as-is instead of being merged away by the receiving editor. Those merges were emitted and pushed back at the originator, so two people editing the same block concurrently could see formatting silently revert and the tail of the block duplicate. The unmerged structure renders identically and is canonicalized on the block's next local edit; `update value` still normalizes loaded documents, and structural repairs (missing keys, types, required fields) still run on every path. diff --git a/packages/editor/CHANGELOG.md b/packages/editor/CHANGELOG.md index 94a4cb5364..d6f5bc426b 100644 --- a/packages/editor/CHANGELOG.md +++ b/packages/editor/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 7.10.11 + +### Patch Changes + +- [#3001](https://github.com/portabletext/editor/pull/3001) [`86bf426`](https://github.com/portabletext/editor/commit/86bf426af85f54c3acab61bffa3e3bfa8d976d5b) Thanks [@christianhg](https://github.com/christianhg)! - fix: skip cosmetic normalization while applying remote patches + + Adjacent same-mark spans and empty sibling spans arriving through remote patches are now kept as-is instead of being merged away by the receiving editor. Those merges were emitted and pushed back at the originator, so two people editing the same block concurrently could see formatting silently revert and the tail of the block duplicate. The unmerged structure renders identically and is canonicalized on the block's next local edit; `update value` still normalizes loaded documents, and structural repairs (missing keys, types, required fields) still run on every path. + ## 7.10.10 ### Patch Changes diff --git a/packages/editor/package.json b/packages/editor/package.json index f13d977cb3..cea1a1fb3a 100644 --- a/packages/editor/package.json +++ b/packages/editor/package.json @@ -1,6 +1,6 @@ { "name": "@portabletext/editor", - "version": "7.10.10", + "version": "7.10.11", "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 6171ae9bbc..39d3897e56 100644 --- a/packages/plugin-character-pair-decorator/CHANGELOG.md +++ b/packages/plugin-character-pair-decorator/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 8.0.39 + +### Patch Changes + +- Updated dependencies [[`86bf426`](https://github.com/portabletext/editor/commit/86bf426af85f54c3acab61bffa3e3bfa8d976d5b)]: + - @portabletext/editor@7.10.11 + - @portabletext/plugin-input-rule@6.0.8 + ## 8.0.38 ### Patch Changes diff --git a/packages/plugin-character-pair-decorator/package.json b/packages/plugin-character-pair-decorator/package.json index 1820d1095d..a8a5af955e 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": "8.0.38", + "version": "8.0.39", "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 943e09d3de..fea039f6b1 100644 --- a/packages/plugin-dnd/CHANGELOG.md +++ b/packages/plugin-dnd/CHANGELOG.md @@ -1,5 +1,12 @@ # @portabletext/plugin-dnd +## 1.0.23 + +### Patch Changes + +- Updated dependencies [[`86bf426`](https://github.com/portabletext/editor/commit/86bf426af85f54c3acab61bffa3e3bfa8d976d5b)]: + - @portabletext/editor@7.10.11 + ## 1.0.22 ### Patch Changes diff --git a/packages/plugin-dnd/package.json b/packages/plugin-dnd/package.json index c491a4ef18..c6deff3e3a 100644 --- a/packages/plugin-dnd/package.json +++ b/packages/plugin-dnd/package.json @@ -1,6 +1,6 @@ { "name": "@portabletext/plugin-dnd", - "version": "1.0.22", + "version": "1.0.23", "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 e38bf6bd23..1bfe32481d 100644 --- a/packages/plugin-emoji-picker/CHANGELOG.md +++ b/packages/plugin-emoji-picker/CHANGELOG.md @@ -1,5 +1,13 @@ # @portabletext/plugin-emoji-picker +## 7.0.39 + +### Patch Changes + +- Updated dependencies [[`86bf426`](https://github.com/portabletext/editor/commit/86bf426af85f54c3acab61bffa3e3bfa8d976d5b)]: + - @portabletext/editor@7.10.11 + - @portabletext/plugin-input-rule@6.0.8 + ## 7.0.38 ### Patch Changes diff --git a/packages/plugin-emoji-picker/package.json b/packages/plugin-emoji-picker/package.json index adeac80c86..60abb37891 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": "7.0.38", + "version": "7.0.39", "description": "Easily configure an Emoji Picker for the Portable Text Editor", "keywords": [ "emoji-picker", @@ -84,7 +84,7 @@ "vitest": "catalog:tooling" }, "peerDependencies": { - "@portabletext/editor": "workspace:^7.10.10", + "@portabletext/editor": "workspace:^7.10.11", "react": "^19.2" }, "engines": { diff --git a/packages/plugin-input-rule/CHANGELOG.md b/packages/plugin-input-rule/CHANGELOG.md index f0c0a8339b..1f740fb4f5 100644 --- a/packages/plugin-input-rule/CHANGELOG.md +++ b/packages/plugin-input-rule/CHANGELOG.md @@ -1,5 +1,12 @@ # @portabletext/plugin-input-rule +## 6.0.8 + +### Patch Changes + +- Updated dependencies [[`86bf426`](https://github.com/portabletext/editor/commit/86bf426af85f54c3acab61bffa3e3bfa8d976d5b)]: + - @portabletext/editor@7.10.11 + ## 6.0.7 ### Patch Changes diff --git a/packages/plugin-input-rule/package.json b/packages/plugin-input-rule/package.json index 999e79139d..5946420660 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": "6.0.7", + "version": "6.0.8", "description": "Easily configure Input Rules in the Portable Text Editor", "keywords": [ "input-rule", @@ -84,7 +84,7 @@ "vitest": "catalog:tooling" }, "peerDependencies": { - "@portabletext/editor": "workspace:^7.10.10", + "@portabletext/editor": "workspace:^7.10.11", "react": "^19.2" }, "engines": { diff --git a/packages/plugin-list-index/CHANGELOG.md b/packages/plugin-list-index/CHANGELOG.md index b1b87a4643..00d8d61dd1 100644 --- a/packages/plugin-list-index/CHANGELOG.md +++ b/packages/plugin-list-index/CHANGELOG.md @@ -1,5 +1,12 @@ # @portabletext/plugin-list-index +## 1.0.23 + +### Patch Changes + +- Updated dependencies [[`86bf426`](https://github.com/portabletext/editor/commit/86bf426af85f54c3acab61bffa3e3bfa8d976d5b)]: + - @portabletext/editor@7.10.11 + ## 1.0.22 ### Patch Changes diff --git a/packages/plugin-list-index/package.json b/packages/plugin-list-index/package.json index dbbbfc63bb..b10d5424d5 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": "1.0.22", + "version": "1.0.23", "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 298e55be3f..9b929fcd41 100644 --- a/packages/plugin-markdown-shortcuts/CHANGELOG.md +++ b/packages/plugin-markdown-shortcuts/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 8.0.39 + +### Patch Changes + +- Updated dependencies [[`86bf426`](https://github.com/portabletext/editor/commit/86bf426af85f54c3acab61bffa3e3bfa8d976d5b)]: + - @portabletext/editor@7.10.11 + - @portabletext/plugin-character-pair-decorator@8.0.39 + - @portabletext/plugin-input-rule@6.0.8 + ## 8.0.38 ### Patch Changes diff --git a/packages/plugin-markdown-shortcuts/package.json b/packages/plugin-markdown-shortcuts/package.json index 0441634198..ef64ef53bf 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": "8.0.38", + "version": "8.0.39", "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 8759c9b2d1..67b0dee9bc 100644 --- a/packages/plugin-one-line/CHANGELOG.md +++ b/packages/plugin-one-line/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 7.0.38 + +### Patch Changes + +- Updated dependencies [[`86bf426`](https://github.com/portabletext/editor/commit/86bf426af85f54c3acab61bffa3e3bfa8d976d5b)]: + - @portabletext/editor@7.10.11 + ## 7.0.37 ### Patch Changes diff --git a/packages/plugin-one-line/package.json b/packages/plugin-one-line/package.json index 7a196b579d..e476c06c39 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": "7.0.37", + "version": "7.0.38", "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 e7ece441b0..54b2a8a94a 100644 --- a/packages/plugin-paste-link/CHANGELOG.md +++ b/packages/plugin-paste-link/CHANGELOG.md @@ -1,5 +1,12 @@ # @portabletext/plugin-paste-link +## 4.0.38 + +### Patch Changes + +- Updated dependencies [[`86bf426`](https://github.com/portabletext/editor/commit/86bf426af85f54c3acab61bffa3e3bfa8d976d5b)]: + - @portabletext/editor@7.10.11 + ## 4.0.37 ### Patch Changes diff --git a/packages/plugin-paste-link/package.json b/packages/plugin-paste-link/package.json index bc636c6157..2e423fca5d 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": "4.0.37", + "version": "4.0.38", "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 a052c7abbe..16cdc0006d 100644 --- a/packages/plugin-sdk-value/CHANGELOG.md +++ b/packages/plugin-sdk-value/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 7.1.3 + +### Patch Changes + +- Updated dependencies [[`86bf426`](https://github.com/portabletext/editor/commit/86bf426af85f54c3acab61bffa3e3bfa8d976d5b)]: + - @portabletext/editor@7.10.11 + ## 7.1.2 ### Patch Changes diff --git a/packages/plugin-sdk-value/package.json b/packages/plugin-sdk-value/package.json index 874893f555..003d9ad526 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": "7.1.2", + "version": "7.1.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 356bf807ec..9932315e58 100644 --- a/packages/plugin-table/CHANGELOG.md +++ b/packages/plugin-table/CHANGELOG.md @@ -1,5 +1,12 @@ # @portabletext/plugin-table +## 1.3.8 + +### Patch Changes + +- Updated dependencies [[`86bf426`](https://github.com/portabletext/editor/commit/86bf426af85f54c3acab61bffa3e3bfa8d976d5b)]: + - @portabletext/editor@7.10.11 + ## 1.3.7 ### Patch Changes diff --git a/packages/plugin-table/package.json b/packages/plugin-table/package.json index b8cf66ca58..b471a37e11 100644 --- a/packages/plugin-table/package.json +++ b/packages/plugin-table/package.json @@ -1,6 +1,6 @@ { "name": "@portabletext/plugin-table", - "version": "1.3.7", + "version": "1.3.8", "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 f5b1089e3d..f392ec7ff0 100644 --- a/packages/plugin-typeahead-picker/CHANGELOG.md +++ b/packages/plugin-typeahead-picker/CHANGELOG.md @@ -1,5 +1,13 @@ # @portabletext/plugin-typeahead-picker +## 6.0.39 + +### Patch Changes + +- Updated dependencies [[`86bf426`](https://github.com/portabletext/editor/commit/86bf426af85f54c3acab61bffa3e3bfa8d976d5b)]: + - @portabletext/editor@7.10.11 + - @portabletext/plugin-input-rule@6.0.8 + ## 6.0.38 ### Patch Changes diff --git a/packages/plugin-typeahead-picker/package.json b/packages/plugin-typeahead-picker/package.json index 0b9be6c4bb..2703b693f8 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": "6.0.38", + "version": "6.0.39", "description": "Build typeahead pickers (emoji, mentions, slash commands) for the Portable Text Editor", "keywords": [ "autocomplete", @@ -89,7 +89,7 @@ "vitest": "catalog:tooling" }, "peerDependencies": { - "@portabletext/editor": "workspace:^7.10.10", + "@portabletext/editor": "workspace:^7.10.11", "react": "^19.2" }, "engines": { diff --git a/packages/plugin-typography/CHANGELOG.md b/packages/plugin-typography/CHANGELOG.md index 8f3a29e1cd..8231a6b6c9 100644 --- a/packages/plugin-typography/CHANGELOG.md +++ b/packages/plugin-typography/CHANGELOG.md @@ -1,5 +1,13 @@ # @portabletext/plugin-typography +## 8.0.39 + +### Patch Changes + +- Updated dependencies [[`86bf426`](https://github.com/portabletext/editor/commit/86bf426af85f54c3acab61bffa3e3bfa8d976d5b)]: + - @portabletext/editor@7.10.11 + - @portabletext/plugin-input-rule@6.0.8 + ## 8.0.38 ### Patch Changes diff --git a/packages/plugin-typography/package.json b/packages/plugin-typography/package.json index f4f402ea25..ec2692a111 100644 --- a/packages/plugin-typography/package.json +++ b/packages/plugin-typography/package.json @@ -1,6 +1,6 @@ { "name": "@portabletext/plugin-typography", - "version": "8.0.38", + "version": "8.0.39", "description": "Automatically transform text to typographic variants", "keywords": [ "plugin", @@ -81,7 +81,7 @@ "vitest": "catalog:tooling" }, "peerDependencies": { - "@portabletext/editor": "workspace:^7.10.10", + "@portabletext/editor": "workspace:^7.10.11", "react": "^19.2" }, "engines": { diff --git a/packages/toolbar/CHANGELOG.md b/packages/toolbar/CHANGELOG.md index 2691ae368a..69bf46f516 100644 --- a/packages/toolbar/CHANGELOG.md +++ b/packages/toolbar/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 8.0.38 + +### Patch Changes + +- Updated dependencies [[`86bf426`](https://github.com/portabletext/editor/commit/86bf426af85f54c3acab61bffa3e3bfa8d976d5b)]: + - @portabletext/editor@7.10.11 + ## 8.0.37 ### Patch Changes diff --git a/packages/toolbar/package.json b/packages/toolbar/package.json index f271d8185d..2fd341b6bf 100644 --- a/packages/toolbar/package.json +++ b/packages/toolbar/package.json @@ -1,6 +1,6 @@ { "name": "@portabletext/toolbar", - "version": "8.0.37", + "version": "8.0.38", "description": "Utilities for building a toolbar for the Portable Text Editor", "keywords": [ "portabletext", @@ -81,7 +81,7 @@ "vitest": "catalog:tooling" }, "peerDependencies": { - "@portabletext/editor": "workspace:^7.10.10", + "@portabletext/editor": "workspace:^7.10.11", "react": "^19.2.7" }, "engines": {