From 8b301535bea15a02e12159ce9f88c8a4d1c7ce8b Mon Sep 17 00:00:00 2001
From: "ecoscript[bot]" <143032650+ecoscript[bot]@users.noreply.github.com>
Date: Thu, 26 Nov 2026 09:03:56 +0000
Subject: [PATCH] Version Packages (next)
---
.../{ => pre}/chunk-container-children.md | 0
.../compact-paths-address-nothing.md | 0
.../editor-remove-non-object-entries.md | 0
.changeset/{ => pre}/emit-change-events.md | 0
.../keep-caret-after-pasted-blocks.md | 0
.../{ => pre}/misplaced-nodes-as-objects.md | 0
.changeset/{ => pre}/path-sanity-format.md | 0
.../{ => pre}/plugin-dnd-path-format.md | 0
.../plugin-list-index-path-format.md | 0
.../remote-patch-history-only-applied.md | 0
...emote-patch-negative-index-unusable-key.md | 0
.../{ => pre}/remote-patch-negative-index.md | 0
.../remote-patch-no-op-operations.md | 0
...ove-character-pair-decorator-schema-arg.md | 0
...move-markdown-shortcuts-deprecated-args.md | 0
.../remove-node-on-non-object-set.md | 0
.../{ => pre}/remove-non-object-entries.md | 0
.../{ => pre}/remove-patch-mutation-events.md | 0
.changeset/{ => pre}/remove-patches-event.md | 0
.changeset/{ => pre}/remove-update-value.md | 0
.changeset/{ => pre}/repair-node-positions.md | 0
packages/editor/CHANGELOG.md | 168 ++++++++++++++++++
packages/editor/package.json | 2 +-
.../CHANGELOG.md | 33 ++++
.../package.json | 2 +-
packages/plugin-decorations/CHANGELOG.md | 7 +
packages/plugin-decorations/package.json | 2 +-
packages/plugin-dnd/CHANGELOG.md | 10 ++
packages/plugin-dnd/package.json | 2 +-
packages/plugin-emoji-picker/CHANGELOG.md | 8 +
packages/plugin-emoji-picker/package.json | 2 +-
packages/plugin-input-rule/CHANGELOG.md | 7 +
packages/plugin-input-rule/package.json | 2 +-
packages/plugin-list-index/CHANGELOG.md | 10 ++
packages/plugin-list-index/package.json | 2 +-
.../plugin-markdown-shortcuts/CHANGELOG.md | 32 ++++
.../plugin-markdown-shortcuts/package.json | 2 +-
packages/plugin-one-line/CHANGELOG.md | 7 +
packages/plugin-one-line/package.json | 2 +-
packages/plugin-paste-link/CHANGELOG.md | 7 +
packages/plugin-paste-link/package.json | 2 +-
packages/plugin-table/CHANGELOG.md | 7 +
packages/plugin-table/package.json | 2 +-
packages/plugin-typeahead-picker/CHANGELOG.md | 8 +
packages/plugin-typeahead-picker/package.json | 2 +-
packages/plugin-typography/CHANGELOG.md | 8 +
packages/plugin-typography/package.json | 2 +-
packages/repair/CHANGELOG.md | 25 +++
packages/repair/package.json | 2 +-
packages/toolbar/CHANGELOG.md | 7 +
packages/toolbar/package.json | 2 +-
51 files changed, 359 insertions(+), 15 deletions(-)
rename .changeset/{ => pre}/chunk-container-children.md (100%)
rename .changeset/{ => pre}/compact-paths-address-nothing.md (100%)
rename .changeset/{ => pre}/editor-remove-non-object-entries.md (100%)
rename .changeset/{ => pre}/emit-change-events.md (100%)
rename .changeset/{ => pre}/keep-caret-after-pasted-blocks.md (100%)
rename .changeset/{ => pre}/misplaced-nodes-as-objects.md (100%)
rename .changeset/{ => pre}/path-sanity-format.md (100%)
rename .changeset/{ => pre}/plugin-dnd-path-format.md (100%)
rename .changeset/{ => pre}/plugin-list-index-path-format.md (100%)
rename .changeset/{ => pre}/remote-patch-history-only-applied.md (100%)
rename .changeset/{ => pre}/remote-patch-negative-index-unusable-key.md (100%)
rename .changeset/{ => pre}/remote-patch-negative-index.md (100%)
rename .changeset/{ => pre}/remote-patch-no-op-operations.md (100%)
rename .changeset/{ => pre}/remove-character-pair-decorator-schema-arg.md (100%)
rename .changeset/{ => pre}/remove-markdown-shortcuts-deprecated-args.md (100%)
rename .changeset/{ => pre}/remove-node-on-non-object-set.md (100%)
rename .changeset/{ => pre}/remove-non-object-entries.md (100%)
rename .changeset/{ => pre}/remove-patch-mutation-events.md (100%)
rename .changeset/{ => pre}/remove-patches-event.md (100%)
rename .changeset/{ => pre}/remove-update-value.md (100%)
rename .changeset/{ => pre}/repair-node-positions.md (100%)
diff --git a/.changeset/chunk-container-children.md b/.changeset/pre/chunk-container-children.md
similarity index 100%
rename from .changeset/chunk-container-children.md
rename to .changeset/pre/chunk-container-children.md
diff --git a/.changeset/compact-paths-address-nothing.md b/.changeset/pre/compact-paths-address-nothing.md
similarity index 100%
rename from .changeset/compact-paths-address-nothing.md
rename to .changeset/pre/compact-paths-address-nothing.md
diff --git a/.changeset/editor-remove-non-object-entries.md b/.changeset/pre/editor-remove-non-object-entries.md
similarity index 100%
rename from .changeset/editor-remove-non-object-entries.md
rename to .changeset/pre/editor-remove-non-object-entries.md
diff --git a/.changeset/emit-change-events.md b/.changeset/pre/emit-change-events.md
similarity index 100%
rename from .changeset/emit-change-events.md
rename to .changeset/pre/emit-change-events.md
diff --git a/.changeset/keep-caret-after-pasted-blocks.md b/.changeset/pre/keep-caret-after-pasted-blocks.md
similarity index 100%
rename from .changeset/keep-caret-after-pasted-blocks.md
rename to .changeset/pre/keep-caret-after-pasted-blocks.md
diff --git a/.changeset/misplaced-nodes-as-objects.md b/.changeset/pre/misplaced-nodes-as-objects.md
similarity index 100%
rename from .changeset/misplaced-nodes-as-objects.md
rename to .changeset/pre/misplaced-nodes-as-objects.md
diff --git a/.changeset/path-sanity-format.md b/.changeset/pre/path-sanity-format.md
similarity index 100%
rename from .changeset/path-sanity-format.md
rename to .changeset/pre/path-sanity-format.md
diff --git a/.changeset/plugin-dnd-path-format.md b/.changeset/pre/plugin-dnd-path-format.md
similarity index 100%
rename from .changeset/plugin-dnd-path-format.md
rename to .changeset/pre/plugin-dnd-path-format.md
diff --git a/.changeset/plugin-list-index-path-format.md b/.changeset/pre/plugin-list-index-path-format.md
similarity index 100%
rename from .changeset/plugin-list-index-path-format.md
rename to .changeset/pre/plugin-list-index-path-format.md
diff --git a/.changeset/remote-patch-history-only-applied.md b/.changeset/pre/remote-patch-history-only-applied.md
similarity index 100%
rename from .changeset/remote-patch-history-only-applied.md
rename to .changeset/pre/remote-patch-history-only-applied.md
diff --git a/.changeset/remote-patch-negative-index-unusable-key.md b/.changeset/pre/remote-patch-negative-index-unusable-key.md
similarity index 100%
rename from .changeset/remote-patch-negative-index-unusable-key.md
rename to .changeset/pre/remote-patch-negative-index-unusable-key.md
diff --git a/.changeset/remote-patch-negative-index.md b/.changeset/pre/remote-patch-negative-index.md
similarity index 100%
rename from .changeset/remote-patch-negative-index.md
rename to .changeset/pre/remote-patch-negative-index.md
diff --git a/.changeset/remote-patch-no-op-operations.md b/.changeset/pre/remote-patch-no-op-operations.md
similarity index 100%
rename from .changeset/remote-patch-no-op-operations.md
rename to .changeset/pre/remote-patch-no-op-operations.md
diff --git a/.changeset/remove-character-pair-decorator-schema-arg.md b/.changeset/pre/remove-character-pair-decorator-schema-arg.md
similarity index 100%
rename from .changeset/remove-character-pair-decorator-schema-arg.md
rename to .changeset/pre/remove-character-pair-decorator-schema-arg.md
diff --git a/.changeset/remove-markdown-shortcuts-deprecated-args.md b/.changeset/pre/remove-markdown-shortcuts-deprecated-args.md
similarity index 100%
rename from .changeset/remove-markdown-shortcuts-deprecated-args.md
rename to .changeset/pre/remove-markdown-shortcuts-deprecated-args.md
diff --git a/.changeset/remove-node-on-non-object-set.md b/.changeset/pre/remove-node-on-non-object-set.md
similarity index 100%
rename from .changeset/remove-node-on-non-object-set.md
rename to .changeset/pre/remove-node-on-non-object-set.md
diff --git a/.changeset/remove-non-object-entries.md b/.changeset/pre/remove-non-object-entries.md
similarity index 100%
rename from .changeset/remove-non-object-entries.md
rename to .changeset/pre/remove-non-object-entries.md
diff --git a/.changeset/remove-patch-mutation-events.md b/.changeset/pre/remove-patch-mutation-events.md
similarity index 100%
rename from .changeset/remove-patch-mutation-events.md
rename to .changeset/pre/remove-patch-mutation-events.md
diff --git a/.changeset/remove-patches-event.md b/.changeset/pre/remove-patches-event.md
similarity index 100%
rename from .changeset/remove-patches-event.md
rename to .changeset/pre/remove-patches-event.md
diff --git a/.changeset/remove-update-value.md b/.changeset/pre/remove-update-value.md
similarity index 100%
rename from .changeset/remove-update-value.md
rename to .changeset/pre/remove-update-value.md
diff --git a/.changeset/repair-node-positions.md b/.changeset/pre/repair-node-positions.md
similarity index 100%
rename from .changeset/repair-node-positions.md
rename to .changeset/pre/repair-node-positions.md
diff --git a/packages/editor/CHANGELOG.md b/packages/editor/CHANGELOG.md
index 7bdd915a6c..8dafc07f68 100644
--- a/packages/editor/CHANGELOG.md
+++ b/packages/editor/CHANGELOG.md
@@ -1,5 +1,173 @@
# Changelog
+## 9.0.0-next.0
+
+### Major Changes
+
+- [#3723](https://github.com/portabletext/editor/pull/3723) [`e99d949`](https://github.com/portabletext/editor/commit/e99d9493249eb80078033527e523b7339340b2d4) Thanks [@christianhg](https://github.com/christianhg)! - feat!: remove the `patch` and `mutation` events
+
+ The `patch` and `mutation` events and the `MutationEvent` type are removed. Listen to `change` instead. Local `change.patches` are emitted at once, including fixes on load and while the editor is read-only.
+
+ Read `editor.getSnapshot().context.value` instead of `mutation.value`. There is no typing debounce. To take a burst of changes at once, listen with `editor.on('change', listener, {batch: true})`, and the listener receives the burst's `change` events as one array. To relay local patches to another editor, send each local `change`'s `patches` in order. With `{batch: true}`, you can send a whole burst in one `apply` by concatenating the local events' patches in order.
+
+ Before:
+
+ ```ts
+ editor.on('mutation', (event) => {
+ publish(event.patches)
+ })
+ ```
+
+ After:
+
+ ```ts
+ editor.on('change', (event) => {
+ if (event.origin === 'local') {
+ publish(event.patches)
+ }
+ })
+ ```
+
+- [#3619](https://github.com/portabletext/editor/pull/3619) [`b993cec`](https://github.com/portabletext/editor/commit/b993cec04e90ffaf0c44292a2671f6d6f026d5c9) Thanks [@christianhg](https://github.com/christianhg)! - feat!: replace the `patches` event with `apply`
+
+ `editor.send({type: 'apply', patches})` applies patches that came from someone else, such as a collaborator's change arriving from your backend. It replaces the `patches` event, which is removed along with the `PatchesEvent` type.
+
+ The patches apply in order as another writer's change. They don't become steps in your undo history, and the caret stays put in text they don't touch. If they change the content, the editor emits one remote `change` event, followed by a local change if it had to fix something. An `unset` of the whole value clears the undo history.
+
+ Every patch counts as another writer's, so the patches need no `origin` and there is no `snapshot` to pass. If you relayed your own editor's patches back to it marked `origin: 'local'`, stop sending those, since `apply` would apply them a second time.
+
+ ```ts
+ // Before
+ editor.send({type: 'patches', patches: incomingPatches, snapshot})
+
+ // After
+ editor.send({type: 'apply', patches: incomingPatches})
+ ```
+
+ The `ApplyEvent` type is exported.
+
+- [#3654](https://github.com/portabletext/editor/pull/3654) [`0b3524c`](https://github.com/portabletext/editor/commit/0b3524c6aeb6bb0705de1d7b742708056b5c9509) Thanks [@christianhg](https://github.com/christianhg)! - feat!: remove the `update value` event and value validation
+
+ The `update value` event and the `value changed` and `invalid value` notifications are removed, along with the `InvalidValueResolution` type. The initial value is read once from `initialConfig` and loads in one step. To show another document or a new snapshot of the same document, remount with a `key`:
+
+ ```tsx
+
+
+
+ ```
+
+ The editor no longer validates the value it receives, but it still removes `null`, string, number, boolean and array entries and emits the removal as a local change. A block of a type the schema does not know shows as a block object. A start value with a missing `_key` gets its key as a local change with `patches`. A root block with an empty or missing `_key` or no `_type` used to drop content from the start value. It now shows, and its key or the schema's text block type is emitted as a local change with `patches`. A block with no `_type` already got the same fix through remote patches and inside containers. A span outside a text block now throws on render too, as it already did for remote patches. An unused mark definition is kept. `operation` listeners see one `set` of the whole value on mount, followed by the editor's own fixes.
+
+### Minor Changes
+
+- [#3413](https://github.com/portabletext/editor/pull/3413) [`77b4cda`](https://github.com/portabletext/editor/commit/77b4cda5764d7b392d710c6578060d623b9e5507) Thanks [@christianhg](https://github.com/christianhg)! - feat: emit `change` events for local and remote changes
+
+ The editor now emits a `change` event, synchronously, every time its content changes. Each event carries the `operations` the editor applied to its content (the public `Operation` type), never the input it received:
+
+ ```ts
+ editor.on('change', (event) => {
+ if (event.origin === 'local') {
+ // Send `event.patches` to your backend.
+ publish(event.patches)
+ }
+ })
+ ```
+
+ - `origin: 'local'`: one event for a user action, including everything the action's Behaviors raised and any fixes it caused, such as merging adjacent spans that share marks after a paste. Undo and redo are one action each. Operations and patches stay in application order. `patches` holds the change as Sanity patches, available as soon as the action finishes. A fix that no user action caused is its own local change. That covers fixes after loading the value, after a value arrives through `apply` (also while the editor is read-only), and after registering or unregistering a node with `editor.registerNode`. When the editor repairs a value it receives, every child without a `_key` gets a new `_key`, and a text block without children gets an empty span. The remote `change` holds the value as received, without the repair. A fix's `patches` are emitted at once, without waiting for the editor to become editable.
+ - `origin: 'remote'`: one event per `apply` event that changed the content. Remote changes carry no `patches`.
+
+ A remote `change` and the local `change` that fixes it are delivered before any `change` that a listener sets off while receiving them. A local `change` is too. Loading the initial value emits no `change`, except a local change when the editor fixes the loaded value, and a `change` never has an empty `operations` array. The empty block the editor shows in an empty field is part of the snapshot and never reported, but when the editor puts one back later, because the last block was deleted or another writer unset the field, its insert is in the `operations` of the change that caused it. After a remote unset it arrives as a local change with `patches: []`, since the field is already gone. `ChangeEvent` is exported as a beta type. `EditorEmittedEvent` gains the `change` member, so exhaustive switches over `event.type` gain a case.
+
+ An `operation` listener now sees a block the editor repairs on arrival as it was received, followed by each repair as its own operation. A child without a `_key` gets its key through a `set` operation. An `operation` listener sees that `set` with the origin of the received content, so `remote` for a loaded or applied value. The `set` itself is in a local `change`. When the DOM selection leaves a read-only editor's content, the editor now deselects through the `select` event with `at: null`, so Behaviors listening to `select` see it.
+
+### Patch Changes
+
+- [#3655](https://github.com/portabletext/editor/pull/3655) [`216fb52`](https://github.com/portabletext/editor/commit/216fb5210eec66f79e6c070b218be1e23aa05f59) Thanks [@christianhg](https://github.com/christianhg)! - fix: render large block lists in chunks at every depth
+
+ Typing in a large document no longer rebuilds an element for every block in the list being edited. At 20,000 root blocks, a keystroke improves from about 180ms to 81ms. Typing 20 keys in a 2,000-block callout improves from about 930ms to 660ms. Splitting a block with Enter at 8,000 root blocks improves from about 104ms to 51ms. Block lists at the editor root and inside registered containers render in chunks whose elements are reused unless their blocks or container scope changed. Blocks keep their DOM nodes when chunks split or merge, so the caret, selection and IME composition are unaffected and the rendered DOM is unchanged. A chunk an edit leaves with 50 blocks or fewer is merged into a neighbour when the two hold 200 blocks or fewer together.
+
+- [#3608](https://github.com/portabletext/editor/pull/3608) [`91d91a4`](https://github.com/portabletext/editor/commit/91d91a4af5e4a4c7f97eb340981a84afe43770c8) Thanks [@christianhg](https://github.com/christianhg)! - fix: resolve paths with one walk and drop operations that address nothing
+
+ A path with two node segments and no field name between them, such as `[{_key: 'b1'}, {_key: 's1'}]` or `[0, 0]`, now addresses nothing at any depth: at the root, inside a container, inside a container inside a container, and inside a block object's own Portable Text field. A Behavior event, a remote patch, a `select` or a range decoration at such a path changes nothing, emits no `change`, and logs nothing. The other patches in the same `apply` event still apply. A `select` at such a path keeps the current selection, and a range decoration with such an endpoint is never listed, rendered or mapped.
+
+ An edit at a well-formed path whose key is not in the document also changes nothing and emits nothing. Previously a `set`, `unset` or `insert` at a missing key still emitted a patch, and an `unset` or `insert` at a missing span key logged `Cannot apply an "unset" (node removal) operation at path ... because the node was not found`. The event still reaches Behaviors, and a `select` at a missing key behaves as before.
+
+ ```ts
+ // Previously edited the first span's text, emitted a patch and a change
+ editor.send({type: 'set', at: [{_key: 'b1'}, {_key: 's1'}, 'text'], value: 'baz'})
+ // Previously logged console.error "... because the node was not found"
+ editor.send({type: 'apply', patches: [{type: 'unset', path: [{_key: 'b1'}, 'children', {_key: 'gone'}], origin: 'remote'}]})
+ ```
+
+- [#3662](https://github.com/portabletext/editor/pull/3662) [`a8e5f6b`](https://github.com/portabletext/editor/commit/a8e5f6bef83793ed7885d5f61221eead8d79e90a) Thanks [@christianhg](https://github.com/christianhg)! - fix: remove non-object entries at any depth
+
+ A `null`, string, number, boolean or array entry that a collaborator's patch puts in the value is now removed, at the root, in a text block's children and annotations, and in container fields at any depth. Such entries in a start value are removed too. Each removal emits an `unset` patch that addresses the entry by index, so the host's copy stays equal to the editor's. Before, these entries could crash the editor or stay in the host's copy.
+
+ Node lookups such as `getNode` now return nothing for a non-object entry, and traversal skips it.
+
+- [#3602](https://github.com/portabletext/editor/pull/3602) [`be03281`](https://github.com/portabletext/editor/commit/be03281252910647eb369d18092bcfaa164cdea7) Thanks [@pepahlavacek](https://github.com/pepahlavacek)! - fix: keep the caret after pasted blocks inserted mid-block
+
+- [#3720](https://github.com/portabletext/editor/pull/3720) [`9758101`](https://github.com/portabletext/editor/commit/97581019a8024c583ea12e4ee4f998ec2aff2197) Thanks [@christianhg](https://github.com/christianhg)! - fix: draw a misplaced span or text block as an object
+
+ A span where a block belongs, or a text block inside another text block's `children`, is now drawn as an object box, not as editable text. The editor keeps these nodes as received and sends no correction patches for them. A collaborator's misplaced span no longer crashes the editable. Backspace just after a misplaced text block removes it and joins the text around it.
+
+ The traversal functions in `@portabletext/editor/traversal` treat these nodes as objects. `getSpan` and `getTextBlock` return nothing for them. `getBlock` and `isLeafObject` treat a misplaced span as a block object, and `getText` returns `''` for it. `getChildren`, `getNode` and `getNodes` do not go into a text block inside another text block's `children`, and `getAnnotation` does not read its `markDefs`.
+
+ `getFocusChild` and `getAnchorChild` return a text block inside a text block's `children` as an inline object. Inline object bracketing can add an empty span beside it, as it does beside any inline object.
+
+- [#3702](https://github.com/portabletext/editor/pull/3702) [`c822e68`](https://github.com/portabletext/editor/commit/c822e68640ec33342bb790909193300bbc3a330a) Thanks [@christianhg](https://github.com/christianhg)! - fix: write and read editor paths in Sanity's path format
+
+ A nested field named `true`, `false` or `null` is now written in its quoted form, as `@sanity/util/paths` writes it. A block inside a container field named `null` now has `data-pt-path` `[_key=="k0"]["null"][_key=="k1"]` instead of `[_key=="k0"].null[_key=="k1"]`, and its `blockIndexMap` key changes the same way. Selectors and code that read those keys need the new form. Every other `data-pt-path` value and `blockIndexMap` key is unchanged.
+
+- [#3762](https://github.com/portabletext/editor/pull/3762) [`b560b03`](https://github.com/portabletext/editor/commit/b560b031bd8549d254f1c200518df22447646546) Thanks [@christianhg](https://github.com/christianhg)! - fix: rebase undo and redo only against remote patches that changed the value
+
+ Undo after a remote patch that didn't apply now undoes the local edit. Previously the editor recorded every incoming remote patch for undo and redo to rebase against, including one that changed nothing, such as a stale `diffMatchPatch` whose hunks don't match the current text. Undo then rebased the local edit over a change that never happened, and the edit could stay in place:
+
+ ```ts
+ // The span reads 'foobar', and the user types 'x' at the end
+ editor.send({
+ type: 'apply',
+ patches: [diffMatchPatch('bazbazbaz', 'qbazbazbaz', textPath)],
+ })
+ editor.send({type: 'history.undo'})
+ // Previously the span still read 'foobarx'; it now reads 'foobar'
+ ```
+
+ A remote whole-value `unset` still clears the undo and redo stacks.
+
+- [#3616](https://github.com/portabletext/editor/pull/3616) [`e4e4d1b`](https://github.com/portabletext/editor/commit/e4e4d1bc8cff842e5e4176979479a4bafc5061a8) Thanks [@christianhg](https://github.com/christianhg)! - fix: address the item counted from the end when its key is empty or shared with a sibling
+
+ A remote patch at a negative index now changes the item counted from the end of the array, like Sanity, even when that item's key is empty or shared with a sibling. Before, such a patch could land on another item with the same key.
+
+- [#3607](https://github.com/portabletext/editor/pull/3607) [`0bab687`](https://github.com/portabletext/editor/commit/0bab6879efdd0443bb5d9295130927e64799190c) Thanks [@christianhg](https://github.com/christianhg)! - fix: resolve negative indexes in remote patch paths from the end of the array
+
+ Remote `set`, `unset` and single-item `insert` patches with negative indexes now resolve from the end of the array at any depth, like Sanity. A negative index that falls before the start of the array changes nothing, except that an insert at `-1` into an empty array still inserts.
+
+- [#3756](https://github.com/portabletext/editor/pull/3756) [`5824234`](https://github.com/portabletext/editor/commit/5824234bd36536248d2ef9082b6eb7cee65ad0dc) Thanks [@christianhg](https://github.com/christianhg)! - fix: emit no operation for a remote patch that cannot change a field
+
+ A remote `diffMatchPatch` on a string outside span text, such as a block's `style`, no longer emits an `operation` event when the resulting string is identical to the current one. That covers a stale diff whose hunks all miss and a diff that leaves the string as it is. Previously both emitted a `set` operation writing the current string back. A diff whose hunks match only in part still emits a `set` when the hunks that match change the string.
+
+ A remote range `unset` on a field that isn't an array no longer emits an `operation` event either. Previously it emitted an operation at the range path, though the field was unchanged:
+
+ ```ts
+ editor.send({
+ type: 'apply',
+ patches: [
+ {type: 'unset', path: [{_key: 'b1'}, 'style', [0, '']], origin: 'remote'},
+ ],
+ })
+ // Previously emitted an `operation` event for this `unset`, though `style` was unchanged
+ ```
+
+- [#3634](https://github.com/portabletext/editor/pull/3634) [`b3125b6`](https://github.com/portabletext/editor/commit/b3125b657a0b1d186b0a22f9224cea3db93c385c) Thanks [@christianhg](https://github.com/christianhg)! - fix: remove a block or span when `set` gives it a non-object value
+
+ A `set` of a block or span to a value that is not an object, such as `null` or a string, now removes it. Before, the block stayed on screen while the host received `set null`, so anything typed in it afterwards was lost.
+- Updated dependencies [[`9b432f7`](https://github.com/portabletext/editor/commit/9b432f73f98c295d3946bc223ed383c02ecff785), [`28b16ee`](https://github.com/portabletext/editor/commit/28b16eebb14eec3d42ce2cbfa38f66758ac2b950)]:
+ - @portabletext/repair@2.0.0-next.0
+
## 8.2.15
### Patch Changes
diff --git a/packages/editor/package.json b/packages/editor/package.json
index 39f7fc0329..f8ee8ad41c 100644
--- a/packages/editor/package.json
+++ b/packages/editor/package.json
@@ -1,6 +1,6 @@
{
"name": "@portabletext/editor",
- "version": "8.2.15",
+ "version": "9.0.0-next.0",
"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 fa7143de69..732596c47d 100644
--- a/packages/plugin-character-pair-decorator/CHANGELOG.md
+++ b/packages/plugin-character-pair-decorator/CHANGELOG.md
@@ -1,5 +1,38 @@
# Changelog
+## 10.0.0-next.0
+
+### Major Changes
+
+- [#3712](https://github.com/portabletext/editor/pull/3712) [`b32d78a`](https://github.com/portabletext/editor/commit/b32d78acdbb248a0cf038482f317ca40dfd1bc54) Thanks [@christianhg](https://github.com/christianhg)! - feat!: remove the deprecated `schema` argument from the `decorator` callback
+
+ The `decorator` callback of `CharacterPairDecoratorPlugin` no longer receives a top-level `schema`. Read `context.schema` instead, which is the schema at the caret.
+
+ ```tsx
+ // Before
+
+ schema.decorators.find((decorator) => decorator.name === 'em')?.name
+ }
+ pair={{char: '_', amount: 1}}
+ />
+
+ // After
+
+ context.schema.decorators.find((decorator) => decorator.name === 'em')
+ ?.name
+ }
+ pair={{char: '_', amount: 1}}
+ />
+ ```
+
+### Patch Changes
+
+- Updated dependencies [[`216fb52`](https://github.com/portabletext/editor/commit/216fb5210eec66f79e6c070b218be1e23aa05f59), [`91d91a4`](https://github.com/portabletext/editor/commit/91d91a4af5e4a4c7f97eb340981a84afe43770c8), [`a8e5f6b`](https://github.com/portabletext/editor/commit/a8e5f6bef83793ed7885d5f61221eead8d79e90a), [`77b4cda`](https://github.com/portabletext/editor/commit/77b4cda5764d7b392d710c6578060d623b9e5507), [`be03281`](https://github.com/portabletext/editor/commit/be03281252910647eb369d18092bcfaa164cdea7), [`9758101`](https://github.com/portabletext/editor/commit/97581019a8024c583ea12e4ee4f998ec2aff2197), [`c822e68`](https://github.com/portabletext/editor/commit/c822e68640ec33342bb790909193300bbc3a330a), [`b560b03`](https://github.com/portabletext/editor/commit/b560b031bd8549d254f1c200518df22447646546), [`e4e4d1b`](https://github.com/portabletext/editor/commit/e4e4d1bc8cff842e5e4176979479a4bafc5061a8), [`0bab687`](https://github.com/portabletext/editor/commit/0bab6879efdd0443bb5d9295130927e64799190c), [`5824234`](https://github.com/portabletext/editor/commit/5824234bd36536248d2ef9082b6eb7cee65ad0dc), [`b3125b6`](https://github.com/portabletext/editor/commit/b3125b657a0b1d186b0a22f9224cea3db93c385c), [`e99d949`](https://github.com/portabletext/editor/commit/e99d9493249eb80078033527e523b7339340b2d4), [`b993cec`](https://github.com/portabletext/editor/commit/b993cec04e90ffaf0c44292a2671f6d6f026d5c9), [`0b3524c`](https://github.com/portabletext/editor/commit/0b3524c6aeb6bb0705de1d7b742708056b5c9509)]:
+ - @portabletext/editor@9.0.0-next.0
+ - @portabletext/plugin-input-rule@7.0.30-next.0
+
## 9.0.29
### Patch Changes
diff --git a/packages/plugin-character-pair-decorator/package.json b/packages/plugin-character-pair-decorator/package.json
index fd5f5de847..8de339fff3 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.29",
+ "version": "10.0.0-next.0",
"description": "Automatically match a pair of characters and decorate the text in between",
"keywords": [
"behaviors",
diff --git a/packages/plugin-decorations/CHANGELOG.md b/packages/plugin-decorations/CHANGELOG.md
index 5cd69fb6a8..b850790deb 100644
--- a/packages/plugin-decorations/CHANGELOG.md
+++ b/packages/plugin-decorations/CHANGELOG.md
@@ -1,5 +1,12 @@
# @portabletext/plugin-decorations
+## 1.0.17-next.0
+
+### Patch Changes
+
+- Updated dependencies [[`216fb52`](https://github.com/portabletext/editor/commit/216fb5210eec66f79e6c070b218be1e23aa05f59), [`91d91a4`](https://github.com/portabletext/editor/commit/91d91a4af5e4a4c7f97eb340981a84afe43770c8), [`a8e5f6b`](https://github.com/portabletext/editor/commit/a8e5f6bef83793ed7885d5f61221eead8d79e90a), [`77b4cda`](https://github.com/portabletext/editor/commit/77b4cda5764d7b392d710c6578060d623b9e5507), [`be03281`](https://github.com/portabletext/editor/commit/be03281252910647eb369d18092bcfaa164cdea7), [`9758101`](https://github.com/portabletext/editor/commit/97581019a8024c583ea12e4ee4f998ec2aff2197), [`c822e68`](https://github.com/portabletext/editor/commit/c822e68640ec33342bb790909193300bbc3a330a), [`b560b03`](https://github.com/portabletext/editor/commit/b560b031bd8549d254f1c200518df22447646546), [`e4e4d1b`](https://github.com/portabletext/editor/commit/e4e4d1bc8cff842e5e4176979479a4bafc5061a8), [`0bab687`](https://github.com/portabletext/editor/commit/0bab6879efdd0443bb5d9295130927e64799190c), [`5824234`](https://github.com/portabletext/editor/commit/5824234bd36536248d2ef9082b6eb7cee65ad0dc), [`b3125b6`](https://github.com/portabletext/editor/commit/b3125b657a0b1d186b0a22f9224cea3db93c385c), [`e99d949`](https://github.com/portabletext/editor/commit/e99d9493249eb80078033527e523b7339340b2d4), [`b993cec`](https://github.com/portabletext/editor/commit/b993cec04e90ffaf0c44292a2671f6d6f026d5c9), [`0b3524c`](https://github.com/portabletext/editor/commit/0b3524c6aeb6bb0705de1d7b742708056b5c9509)]:
+ - @portabletext/editor@9.0.0-next.0
+
## 1.0.16
### Patch Changes
diff --git a/packages/plugin-decorations/package.json b/packages/plugin-decorations/package.json
index f153c17449..597825184a 100644
--- a/packages/plugin-decorations/package.json
+++ b/packages/plugin-decorations/package.json
@@ -1,6 +1,6 @@
{
"name": "@portabletext/plugin-decorations",
- "version": "1.0.16",
+ "version": "1.0.17-next.0",
"description": "Compose independent decoration layers (highlights, comments, presence) for the Portable Text Editor",
"keywords": [
"decorations",
diff --git a/packages/plugin-dnd/CHANGELOG.md b/packages/plugin-dnd/CHANGELOG.md
index ffeb2f7cd7..fc8ee90a71 100644
--- a/packages/plugin-dnd/CHANGELOG.md
+++ b/packages/plugin-dnd/CHANGELOG.md
@@ -1,5 +1,15 @@
# @portabletext/plugin-dnd
+## 2.0.31-next.0
+
+### Patch Changes
+
+- [#3702](https://github.com/portabletext/editor/pull/3702) [`ff692fc`](https://github.com/portabletext/editor/commit/ff692fc8d56a59f4b655b3c38a6ddf9725bb2c2f) Thanks [@christianhg](https://github.com/christianhg)! - fix(plugin-dnd): write drop position keys in the editor's path format
+
+ `useDropPosition` finds the drop position for a block by a string built from its path. That string now follows the editor's path format. An array index is written as `[2]` instead of `.2`, so it can no longer match a field named `"2"`, and a nested field named `true`, `false` or `null` is written as `["null"]`. Drop positions for keyed paths are found as before.
+- Updated dependencies [[`216fb52`](https://github.com/portabletext/editor/commit/216fb5210eec66f79e6c070b218be1e23aa05f59), [`91d91a4`](https://github.com/portabletext/editor/commit/91d91a4af5e4a4c7f97eb340981a84afe43770c8), [`a8e5f6b`](https://github.com/portabletext/editor/commit/a8e5f6bef83793ed7885d5f61221eead8d79e90a), [`77b4cda`](https://github.com/portabletext/editor/commit/77b4cda5764d7b392d710c6578060d623b9e5507), [`be03281`](https://github.com/portabletext/editor/commit/be03281252910647eb369d18092bcfaa164cdea7), [`9758101`](https://github.com/portabletext/editor/commit/97581019a8024c583ea12e4ee4f998ec2aff2197), [`c822e68`](https://github.com/portabletext/editor/commit/c822e68640ec33342bb790909193300bbc3a330a), [`b560b03`](https://github.com/portabletext/editor/commit/b560b031bd8549d254f1c200518df22447646546), [`e4e4d1b`](https://github.com/portabletext/editor/commit/e4e4d1bc8cff842e5e4176979479a4bafc5061a8), [`0bab687`](https://github.com/portabletext/editor/commit/0bab6879efdd0443bb5d9295130927e64799190c), [`5824234`](https://github.com/portabletext/editor/commit/5824234bd36536248d2ef9082b6eb7cee65ad0dc), [`b3125b6`](https://github.com/portabletext/editor/commit/b3125b657a0b1d186b0a22f9224cea3db93c385c), [`e99d949`](https://github.com/portabletext/editor/commit/e99d9493249eb80078033527e523b7339340b2d4), [`b993cec`](https://github.com/portabletext/editor/commit/b993cec04e90ffaf0c44292a2671f6d6f026d5c9), [`0b3524c`](https://github.com/portabletext/editor/commit/0b3524c6aeb6bb0705de1d7b742708056b5c9509)]:
+ - @portabletext/editor@9.0.0-next.0
+
## 2.0.30
### Patch Changes
diff --git a/packages/plugin-dnd/package.json b/packages/plugin-dnd/package.json
index 75acaab1b3..6413a4d56c 100644
--- a/packages/plugin-dnd/package.json
+++ b/packages/plugin-dnd/package.json
@@ -1,6 +1,6 @@
{
"name": "@portabletext/plugin-dnd",
- "version": "2.0.30",
+ "version": "2.0.31-next.0",
"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 1ff9718cd1..70c9bb5960 100644
--- a/packages/plugin-emoji-picker/CHANGELOG.md
+++ b/packages/plugin-emoji-picker/CHANGELOG.md
@@ -1,5 +1,13 @@
# @portabletext/plugin-emoji-picker
+## 8.0.30-next.0
+
+### Patch Changes
+
+- Updated dependencies [[`216fb52`](https://github.com/portabletext/editor/commit/216fb5210eec66f79e6c070b218be1e23aa05f59), [`91d91a4`](https://github.com/portabletext/editor/commit/91d91a4af5e4a4c7f97eb340981a84afe43770c8), [`a8e5f6b`](https://github.com/portabletext/editor/commit/a8e5f6bef83793ed7885d5f61221eead8d79e90a), [`77b4cda`](https://github.com/portabletext/editor/commit/77b4cda5764d7b392d710c6578060d623b9e5507), [`be03281`](https://github.com/portabletext/editor/commit/be03281252910647eb369d18092bcfaa164cdea7), [`9758101`](https://github.com/portabletext/editor/commit/97581019a8024c583ea12e4ee4f998ec2aff2197), [`c822e68`](https://github.com/portabletext/editor/commit/c822e68640ec33342bb790909193300bbc3a330a), [`b560b03`](https://github.com/portabletext/editor/commit/b560b031bd8549d254f1c200518df22447646546), [`e4e4d1b`](https://github.com/portabletext/editor/commit/e4e4d1bc8cff842e5e4176979479a4bafc5061a8), [`0bab687`](https://github.com/portabletext/editor/commit/0bab6879efdd0443bb5d9295130927e64799190c), [`5824234`](https://github.com/portabletext/editor/commit/5824234bd36536248d2ef9082b6eb7cee65ad0dc), [`b3125b6`](https://github.com/portabletext/editor/commit/b3125b657a0b1d186b0a22f9224cea3db93c385c), [`e99d949`](https://github.com/portabletext/editor/commit/e99d9493249eb80078033527e523b7339340b2d4), [`b993cec`](https://github.com/portabletext/editor/commit/b993cec04e90ffaf0c44292a2671f6d6f026d5c9), [`0b3524c`](https://github.com/portabletext/editor/commit/0b3524c6aeb6bb0705de1d7b742708056b5c9509)]:
+ - @portabletext/editor@9.0.0-next.0
+ - @portabletext/plugin-input-rule@7.0.30-next.0
+
## 8.0.29
### Patch Changes
diff --git a/packages/plugin-emoji-picker/package.json b/packages/plugin-emoji-picker/package.json
index 3167af6c42..ae6ac6a0f9 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.29",
+ "version": "8.0.30-next.0",
"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 e167b810d9..0ea7a576ad 100644
--- a/packages/plugin-input-rule/CHANGELOG.md
+++ b/packages/plugin-input-rule/CHANGELOG.md
@@ -1,5 +1,12 @@
# @portabletext/plugin-input-rule
+## 7.0.30-next.0
+
+### Patch Changes
+
+- Updated dependencies [[`216fb52`](https://github.com/portabletext/editor/commit/216fb5210eec66f79e6c070b218be1e23aa05f59), [`91d91a4`](https://github.com/portabletext/editor/commit/91d91a4af5e4a4c7f97eb340981a84afe43770c8), [`a8e5f6b`](https://github.com/portabletext/editor/commit/a8e5f6bef83793ed7885d5f61221eead8d79e90a), [`77b4cda`](https://github.com/portabletext/editor/commit/77b4cda5764d7b392d710c6578060d623b9e5507), [`be03281`](https://github.com/portabletext/editor/commit/be03281252910647eb369d18092bcfaa164cdea7), [`9758101`](https://github.com/portabletext/editor/commit/97581019a8024c583ea12e4ee4f998ec2aff2197), [`c822e68`](https://github.com/portabletext/editor/commit/c822e68640ec33342bb790909193300bbc3a330a), [`b560b03`](https://github.com/portabletext/editor/commit/b560b031bd8549d254f1c200518df22447646546), [`e4e4d1b`](https://github.com/portabletext/editor/commit/e4e4d1bc8cff842e5e4176979479a4bafc5061a8), [`0bab687`](https://github.com/portabletext/editor/commit/0bab6879efdd0443bb5d9295130927e64799190c), [`5824234`](https://github.com/portabletext/editor/commit/5824234bd36536248d2ef9082b6eb7cee65ad0dc), [`b3125b6`](https://github.com/portabletext/editor/commit/b3125b657a0b1d186b0a22f9224cea3db93c385c), [`e99d949`](https://github.com/portabletext/editor/commit/e99d9493249eb80078033527e523b7339340b2d4), [`b993cec`](https://github.com/portabletext/editor/commit/b993cec04e90ffaf0c44292a2671f6d6f026d5c9), [`0b3524c`](https://github.com/portabletext/editor/commit/0b3524c6aeb6bb0705de1d7b742708056b5c9509)]:
+ - @portabletext/editor@9.0.0-next.0
+
## 7.0.29
### Patch Changes
diff --git a/packages/plugin-input-rule/package.json b/packages/plugin-input-rule/package.json
index f7778b65a4..9bca9c81ee 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.29",
+ "version": "7.0.30-next.0",
"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 4f04361c25..7c33d5204a 100644
--- a/packages/plugin-list-index/CHANGELOG.md
+++ b/packages/plugin-list-index/CHANGELOG.md
@@ -1,5 +1,15 @@
# @portabletext/plugin-list-index
+## 2.0.29-next.0
+
+### Patch Changes
+
+- [#3702](https://github.com/portabletext/editor/pull/3702) [`ac02df7`](https://github.com/portabletext/editor/commit/ac02df7d6871d601fec5e9a782119be398452279) Thanks [@christianhg](https://github.com/christianhg)! - fix(plugin-list-index): write list index keys in the editor's path format
+
+ `useListIndex` finds the list number for a block by a string built from its path. That string now follows the editor's path format. An array index is written as `[2]` instead of `.2`, so it can no longer match a field named `"2"`, and a nested field named `true`, `false` or `null` is written as `["null"]`. List numbers for keyed paths are unchanged.
+- Updated dependencies [[`216fb52`](https://github.com/portabletext/editor/commit/216fb5210eec66f79e6c070b218be1e23aa05f59), [`91d91a4`](https://github.com/portabletext/editor/commit/91d91a4af5e4a4c7f97eb340981a84afe43770c8), [`a8e5f6b`](https://github.com/portabletext/editor/commit/a8e5f6bef83793ed7885d5f61221eead8d79e90a), [`77b4cda`](https://github.com/portabletext/editor/commit/77b4cda5764d7b392d710c6578060d623b9e5507), [`be03281`](https://github.com/portabletext/editor/commit/be03281252910647eb369d18092bcfaa164cdea7), [`9758101`](https://github.com/portabletext/editor/commit/97581019a8024c583ea12e4ee4f998ec2aff2197), [`c822e68`](https://github.com/portabletext/editor/commit/c822e68640ec33342bb790909193300bbc3a330a), [`b560b03`](https://github.com/portabletext/editor/commit/b560b031bd8549d254f1c200518df22447646546), [`e4e4d1b`](https://github.com/portabletext/editor/commit/e4e4d1bc8cff842e5e4176979479a4bafc5061a8), [`0bab687`](https://github.com/portabletext/editor/commit/0bab6879efdd0443bb5d9295130927e64799190c), [`5824234`](https://github.com/portabletext/editor/commit/5824234bd36536248d2ef9082b6eb7cee65ad0dc), [`b3125b6`](https://github.com/portabletext/editor/commit/b3125b657a0b1d186b0a22f9224cea3db93c385c), [`e99d949`](https://github.com/portabletext/editor/commit/e99d9493249eb80078033527e523b7339340b2d4), [`b993cec`](https://github.com/portabletext/editor/commit/b993cec04e90ffaf0c44292a2671f6d6f026d5c9), [`0b3524c`](https://github.com/portabletext/editor/commit/0b3524c6aeb6bb0705de1d7b742708056b5c9509)]:
+ - @portabletext/editor@9.0.0-next.0
+
## 2.0.28
### Patch Changes
diff --git a/packages/plugin-list-index/package.json b/packages/plugin-list-index/package.json
index 9b487106aa..89e483139f 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.28",
+ "version": "2.0.29-next.0",
"description": "Compute the list index of each list item for custom list rendering",
"keywords": [
"bullet-list",
diff --git a/packages/plugin-markdown-shortcuts/CHANGELOG.md b/packages/plugin-markdown-shortcuts/CHANGELOG.md
index 096591444e..c90467d0f6 100644
--- a/packages/plugin-markdown-shortcuts/CHANGELOG.md
+++ b/packages/plugin-markdown-shortcuts/CHANGELOG.md
@@ -1,5 +1,37 @@
# Changelog
+## 10.0.0-next.0
+
+### Major Changes
+
+- [#3712](https://github.com/portabletext/editor/pull/3712) [`f8f688b`](https://github.com/portabletext/editor/commit/f8f688bf946890c77523a7962be793143010317e) Thanks [@christianhg](https://github.com/christianhg)! - feat!: remove the deprecated `schema` and `level` arguments from the config callbacks
+
+ The callbacks of `MarkdownShortcutsPlugin` (`blockquoteStyle`, `defaultStyle`, `headingStyle`, `unorderedList`, `orderedList`, `boldDecorator`, `codeDecorator`, `italicDecorator` and `strikeThroughDecorator`) no longer receive a top-level `schema`. Read `context.schema` instead, which is the schema at the caret. `headingStyle` no longer receives a top-level `level` either, so read `props.level`.
+
+ ```tsx
+ // Before
+
+ schema.styles.find((style) => style.name === `h${level}`)?.name
+ }
+ />
+
+ // After
+
+ context.schema.styles.find((style) => style.name === `h${props.level}`)
+ ?.name
+ }
+ />
+ ```
+
+### Patch Changes
+
+- Updated dependencies [[`216fb52`](https://github.com/portabletext/editor/commit/216fb5210eec66f79e6c070b218be1e23aa05f59), [`91d91a4`](https://github.com/portabletext/editor/commit/91d91a4af5e4a4c7f97eb340981a84afe43770c8), [`a8e5f6b`](https://github.com/portabletext/editor/commit/a8e5f6bef83793ed7885d5f61221eead8d79e90a), [`77b4cda`](https://github.com/portabletext/editor/commit/77b4cda5764d7b392d710c6578060d623b9e5507), [`be03281`](https://github.com/portabletext/editor/commit/be03281252910647eb369d18092bcfaa164cdea7), [`9758101`](https://github.com/portabletext/editor/commit/97581019a8024c583ea12e4ee4f998ec2aff2197), [`c822e68`](https://github.com/portabletext/editor/commit/c822e68640ec33342bb790909193300bbc3a330a), [`b560b03`](https://github.com/portabletext/editor/commit/b560b031bd8549d254f1c200518df22447646546), [`e4e4d1b`](https://github.com/portabletext/editor/commit/e4e4d1bc8cff842e5e4176979479a4bafc5061a8), [`0bab687`](https://github.com/portabletext/editor/commit/0bab6879efdd0443bb5d9295130927e64799190c), [`5824234`](https://github.com/portabletext/editor/commit/5824234bd36536248d2ef9082b6eb7cee65ad0dc), [`b32d78a`](https://github.com/portabletext/editor/commit/b32d78acdbb248a0cf038482f317ca40dfd1bc54), [`b3125b6`](https://github.com/portabletext/editor/commit/b3125b657a0b1d186b0a22f9224cea3db93c385c), [`e99d949`](https://github.com/portabletext/editor/commit/e99d9493249eb80078033527e523b7339340b2d4), [`b993cec`](https://github.com/portabletext/editor/commit/b993cec04e90ffaf0c44292a2671f6d6f026d5c9), [`0b3524c`](https://github.com/portabletext/editor/commit/0b3524c6aeb6bb0705de1d7b742708056b5c9509)]:
+ - @portabletext/editor@9.0.0-next.0
+ - @portabletext/plugin-character-pair-decorator@10.0.0-next.0
+ - @portabletext/plugin-input-rule@7.0.30-next.0
+
## 9.0.29
### Patch Changes
diff --git a/packages/plugin-markdown-shortcuts/package.json b/packages/plugin-markdown-shortcuts/package.json
index d86c23c6da..3cb576c0de 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.29",
+ "version": "10.0.0-next.0",
"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 106c6977e3..ca2c78f390 100644
--- a/packages/plugin-one-line/CHANGELOG.md
+++ b/packages/plugin-one-line/CHANGELOG.md
@@ -1,5 +1,12 @@
# Changelog
+## 8.0.29-next.0
+
+### Patch Changes
+
+- Updated dependencies [[`216fb52`](https://github.com/portabletext/editor/commit/216fb5210eec66f79e6c070b218be1e23aa05f59), [`91d91a4`](https://github.com/portabletext/editor/commit/91d91a4af5e4a4c7f97eb340981a84afe43770c8), [`a8e5f6b`](https://github.com/portabletext/editor/commit/a8e5f6bef83793ed7885d5f61221eead8d79e90a), [`77b4cda`](https://github.com/portabletext/editor/commit/77b4cda5764d7b392d710c6578060d623b9e5507), [`be03281`](https://github.com/portabletext/editor/commit/be03281252910647eb369d18092bcfaa164cdea7), [`9758101`](https://github.com/portabletext/editor/commit/97581019a8024c583ea12e4ee4f998ec2aff2197), [`c822e68`](https://github.com/portabletext/editor/commit/c822e68640ec33342bb790909193300bbc3a330a), [`b560b03`](https://github.com/portabletext/editor/commit/b560b031bd8549d254f1c200518df22447646546), [`e4e4d1b`](https://github.com/portabletext/editor/commit/e4e4d1bc8cff842e5e4176979479a4bafc5061a8), [`0bab687`](https://github.com/portabletext/editor/commit/0bab6879efdd0443bb5d9295130927e64799190c), [`5824234`](https://github.com/portabletext/editor/commit/5824234bd36536248d2ef9082b6eb7cee65ad0dc), [`b3125b6`](https://github.com/portabletext/editor/commit/b3125b657a0b1d186b0a22f9224cea3db93c385c), [`e99d949`](https://github.com/portabletext/editor/commit/e99d9493249eb80078033527e523b7339340b2d4), [`b993cec`](https://github.com/portabletext/editor/commit/b993cec04e90ffaf0c44292a2671f6d6f026d5c9), [`0b3524c`](https://github.com/portabletext/editor/commit/0b3524c6aeb6bb0705de1d7b742708056b5c9509)]:
+ - @portabletext/editor@9.0.0-next.0
+
## 8.0.28
### Patch Changes
diff --git a/packages/plugin-one-line/package.json b/packages/plugin-one-line/package.json
index 991d461c4a..44b1f85c5c 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.28",
+ "version": "8.0.29-next.0",
"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 ade4bd53ec..c1ec3c9bb2 100644
--- a/packages/plugin-paste-link/CHANGELOG.md
+++ b/packages/plugin-paste-link/CHANGELOG.md
@@ -1,5 +1,12 @@
# @portabletext/plugin-paste-link
+## 5.0.29-next.0
+
+### Patch Changes
+
+- Updated dependencies [[`216fb52`](https://github.com/portabletext/editor/commit/216fb5210eec66f79e6c070b218be1e23aa05f59), [`91d91a4`](https://github.com/portabletext/editor/commit/91d91a4af5e4a4c7f97eb340981a84afe43770c8), [`a8e5f6b`](https://github.com/portabletext/editor/commit/a8e5f6bef83793ed7885d5f61221eead8d79e90a), [`77b4cda`](https://github.com/portabletext/editor/commit/77b4cda5764d7b392d710c6578060d623b9e5507), [`be03281`](https://github.com/portabletext/editor/commit/be03281252910647eb369d18092bcfaa164cdea7), [`9758101`](https://github.com/portabletext/editor/commit/97581019a8024c583ea12e4ee4f998ec2aff2197), [`c822e68`](https://github.com/portabletext/editor/commit/c822e68640ec33342bb790909193300bbc3a330a), [`b560b03`](https://github.com/portabletext/editor/commit/b560b031bd8549d254f1c200518df22447646546), [`e4e4d1b`](https://github.com/portabletext/editor/commit/e4e4d1bc8cff842e5e4176979479a4bafc5061a8), [`0bab687`](https://github.com/portabletext/editor/commit/0bab6879efdd0443bb5d9295130927e64799190c), [`5824234`](https://github.com/portabletext/editor/commit/5824234bd36536248d2ef9082b6eb7cee65ad0dc), [`b3125b6`](https://github.com/portabletext/editor/commit/b3125b657a0b1d186b0a22f9224cea3db93c385c), [`e99d949`](https://github.com/portabletext/editor/commit/e99d9493249eb80078033527e523b7339340b2d4), [`b993cec`](https://github.com/portabletext/editor/commit/b993cec04e90ffaf0c44292a2671f6d6f026d5c9), [`0b3524c`](https://github.com/portabletext/editor/commit/0b3524c6aeb6bb0705de1d7b742708056b5c9509)]:
+ - @portabletext/editor@9.0.0-next.0
+
## 5.0.28
### Patch Changes
diff --git a/packages/plugin-paste-link/package.json b/packages/plugin-paste-link/package.json
index 7f4e34d105..686e558938 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.28",
+ "version": "5.0.29-next.0",
"description": "Allow pasting links in the Portable Text Editor",
"keywords": [
"behaviors",
diff --git a/packages/plugin-table/CHANGELOG.md b/packages/plugin-table/CHANGELOG.md
index 888daced30..627d56e076 100644
--- a/packages/plugin-table/CHANGELOG.md
+++ b/packages/plugin-table/CHANGELOG.md
@@ -1,5 +1,12 @@
# @portabletext/plugin-table
+## 2.0.29-next.0
+
+### Patch Changes
+
+- Updated dependencies [[`216fb52`](https://github.com/portabletext/editor/commit/216fb5210eec66f79e6c070b218be1e23aa05f59), [`91d91a4`](https://github.com/portabletext/editor/commit/91d91a4af5e4a4c7f97eb340981a84afe43770c8), [`a8e5f6b`](https://github.com/portabletext/editor/commit/a8e5f6bef83793ed7885d5f61221eead8d79e90a), [`77b4cda`](https://github.com/portabletext/editor/commit/77b4cda5764d7b392d710c6578060d623b9e5507), [`be03281`](https://github.com/portabletext/editor/commit/be03281252910647eb369d18092bcfaa164cdea7), [`9758101`](https://github.com/portabletext/editor/commit/97581019a8024c583ea12e4ee4f998ec2aff2197), [`c822e68`](https://github.com/portabletext/editor/commit/c822e68640ec33342bb790909193300bbc3a330a), [`b560b03`](https://github.com/portabletext/editor/commit/b560b031bd8549d254f1c200518df22447646546), [`e4e4d1b`](https://github.com/portabletext/editor/commit/e4e4d1bc8cff842e5e4176979479a4bafc5061a8), [`0bab687`](https://github.com/portabletext/editor/commit/0bab6879efdd0443bb5d9295130927e64799190c), [`5824234`](https://github.com/portabletext/editor/commit/5824234bd36536248d2ef9082b6eb7cee65ad0dc), [`b3125b6`](https://github.com/portabletext/editor/commit/b3125b657a0b1d186b0a22f9224cea3db93c385c), [`e99d949`](https://github.com/portabletext/editor/commit/e99d9493249eb80078033527e523b7339340b2d4), [`b993cec`](https://github.com/portabletext/editor/commit/b993cec04e90ffaf0c44292a2671f6d6f026d5c9), [`0b3524c`](https://github.com/portabletext/editor/commit/0b3524c6aeb6bb0705de1d7b742708056b5c9509)]:
+ - @portabletext/editor@9.0.0-next.0
+
## 2.0.28
### Patch Changes
diff --git a/packages/plugin-table/package.json b/packages/plugin-table/package.json
index ffef02a392..4eb5c10e99 100644
--- a/packages/plugin-table/package.json
+++ b/packages/plugin-table/package.json
@@ -1,6 +1,6 @@
{
"name": "@portabletext/plugin-table",
- "version": "2.0.28",
+ "version": "2.0.29-next.0",
"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 43cc6b44e1..5132c38156 100644
--- a/packages/plugin-typeahead-picker/CHANGELOG.md
+++ b/packages/plugin-typeahead-picker/CHANGELOG.md
@@ -1,5 +1,13 @@
# @portabletext/plugin-typeahead-picker
+## 7.0.30-next.0
+
+### Patch Changes
+
+- Updated dependencies [[`216fb52`](https://github.com/portabletext/editor/commit/216fb5210eec66f79e6c070b218be1e23aa05f59), [`91d91a4`](https://github.com/portabletext/editor/commit/91d91a4af5e4a4c7f97eb340981a84afe43770c8), [`a8e5f6b`](https://github.com/portabletext/editor/commit/a8e5f6bef83793ed7885d5f61221eead8d79e90a), [`77b4cda`](https://github.com/portabletext/editor/commit/77b4cda5764d7b392d710c6578060d623b9e5507), [`be03281`](https://github.com/portabletext/editor/commit/be03281252910647eb369d18092bcfaa164cdea7), [`9758101`](https://github.com/portabletext/editor/commit/97581019a8024c583ea12e4ee4f998ec2aff2197), [`c822e68`](https://github.com/portabletext/editor/commit/c822e68640ec33342bb790909193300bbc3a330a), [`b560b03`](https://github.com/portabletext/editor/commit/b560b031bd8549d254f1c200518df22447646546), [`e4e4d1b`](https://github.com/portabletext/editor/commit/e4e4d1bc8cff842e5e4176979479a4bafc5061a8), [`0bab687`](https://github.com/portabletext/editor/commit/0bab6879efdd0443bb5d9295130927e64799190c), [`5824234`](https://github.com/portabletext/editor/commit/5824234bd36536248d2ef9082b6eb7cee65ad0dc), [`b3125b6`](https://github.com/portabletext/editor/commit/b3125b657a0b1d186b0a22f9224cea3db93c385c), [`e99d949`](https://github.com/portabletext/editor/commit/e99d9493249eb80078033527e523b7339340b2d4), [`b993cec`](https://github.com/portabletext/editor/commit/b993cec04e90ffaf0c44292a2671f6d6f026d5c9), [`0b3524c`](https://github.com/portabletext/editor/commit/0b3524c6aeb6bb0705de1d7b742708056b5c9509)]:
+ - @portabletext/editor@9.0.0-next.0
+ - @portabletext/plugin-input-rule@7.0.30-next.0
+
## 7.0.29
### Patch Changes
diff --git a/packages/plugin-typeahead-picker/package.json b/packages/plugin-typeahead-picker/package.json
index 41b1b26fd9..82aee4b8e9 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.29",
+ "version": "7.0.30-next.0",
"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 966ba13b31..6c5ddfb849 100644
--- a/packages/plugin-typography/CHANGELOG.md
+++ b/packages/plugin-typography/CHANGELOG.md
@@ -1,5 +1,13 @@
# @portabletext/plugin-typography
+## 9.0.30-next.0
+
+### Patch Changes
+
+- Updated dependencies [[`216fb52`](https://github.com/portabletext/editor/commit/216fb5210eec66f79e6c070b218be1e23aa05f59), [`91d91a4`](https://github.com/portabletext/editor/commit/91d91a4af5e4a4c7f97eb340981a84afe43770c8), [`a8e5f6b`](https://github.com/portabletext/editor/commit/a8e5f6bef83793ed7885d5f61221eead8d79e90a), [`77b4cda`](https://github.com/portabletext/editor/commit/77b4cda5764d7b392d710c6578060d623b9e5507), [`be03281`](https://github.com/portabletext/editor/commit/be03281252910647eb369d18092bcfaa164cdea7), [`9758101`](https://github.com/portabletext/editor/commit/97581019a8024c583ea12e4ee4f998ec2aff2197), [`c822e68`](https://github.com/portabletext/editor/commit/c822e68640ec33342bb790909193300bbc3a330a), [`b560b03`](https://github.com/portabletext/editor/commit/b560b031bd8549d254f1c200518df22447646546), [`e4e4d1b`](https://github.com/portabletext/editor/commit/e4e4d1bc8cff842e5e4176979479a4bafc5061a8), [`0bab687`](https://github.com/portabletext/editor/commit/0bab6879efdd0443bb5d9295130927e64799190c), [`5824234`](https://github.com/portabletext/editor/commit/5824234bd36536248d2ef9082b6eb7cee65ad0dc), [`b3125b6`](https://github.com/portabletext/editor/commit/b3125b657a0b1d186b0a22f9224cea3db93c385c), [`e99d949`](https://github.com/portabletext/editor/commit/e99d9493249eb80078033527e523b7339340b2d4), [`b993cec`](https://github.com/portabletext/editor/commit/b993cec04e90ffaf0c44292a2671f6d6f026d5c9), [`0b3524c`](https://github.com/portabletext/editor/commit/0b3524c6aeb6bb0705de1d7b742708056b5c9509)]:
+ - @portabletext/editor@9.0.0-next.0
+ - @portabletext/plugin-input-rule@7.0.30-next.0
+
## 9.0.29
### Patch Changes
diff --git a/packages/plugin-typography/package.json b/packages/plugin-typography/package.json
index 9c408e5598..1e79cdc42d 100644
--- a/packages/plugin-typography/package.json
+++ b/packages/plugin-typography/package.json
@@ -1,6 +1,6 @@
{
"name": "@portabletext/plugin-typography",
- "version": "9.0.29",
+ "version": "9.0.30-next.0",
"description": "Automatically transform text to typographic variants",
"keywords": [
"plugin",
diff --git a/packages/repair/CHANGELOG.md b/packages/repair/CHANGELOG.md
index b0f1d0b74c..c0fdf7b2f6 100644
--- a/packages/repair/CHANGELOG.md
+++ b/packages/repair/CHANGELOG.md
@@ -1,5 +1,30 @@
# @portabletext/repair
+## 2.0.0-next.0
+
+### Major Changes
+
+- [#3675](https://github.com/portabletext/editor/pull/3675) [`9b432f7`](https://github.com/portabletext/editor/commit/9b432f73f98c295d3946bc223ed383c02ecff785) Thanks [@christianhg](https://github.com/christianhg)! - feat!: remove non-object array entries
+
+ A string, number, boolean, null or array entry in an array of objects is removed with one `unset` correction.
+
+ A correction can now contain an `unset` patch. Code that applies corrections must handle `unset` as well as `set`. `StructuralRule` gains `'non-object'`, so an exhaustive switch over correction types needs a new case.
+
+- [#3720](https://github.com/portabletext/editor/pull/3720) [`28b16ee`](https://github.com/portabletext/editor/commit/28b16eebb14eec3d42ce2cbfa38f66758ac2b950) Thanks [@christianhg](https://github.com/christianhg)! - fix!: stop setting span `text` outside a text block and text block `children` inside one
+
+ `getStructuralCorrection` no longer returns a `span-text` correction for a span whose parent is missing or is not a text block, such as a span at the root or in a container field. It no longer returns a `missing-children` correction for a text block inside another text block. The `non-object`, `missing-type`, `missing-key` and `duplicate-key` rules are unchanged. Code that relied on those two corrections must apply them itself.
+
+ ```ts
+ getStructuralCorrection(context, {
+ node: {_type: 'block', _key: 'b2'},
+ path: [{_key: 'b1'}, 'children', {_key: 'b2'}],
+ parent: {node: {_type: 'block', _key: 'b1', children: []}, path: [{_key: 'b1'}]},
+ siblings: () => [],
+ })
+ // Previously: {type: 'missing-children', patches: [{type: 'set', path: [..., 'children'], value: []}]}
+ // Now: undefined
+ ```
+
## 1.0.4
### Patch Changes
diff --git a/packages/repair/package.json b/packages/repair/package.json
index 6aa1ae2e05..10b7935e6e 100644
--- a/packages/repair/package.json
+++ b/packages/repair/package.json
@@ -1,6 +1,6 @@
{
"name": "@portabletext/repair",
- "version": "1.0.4",
+ "version": "2.0.0-next.0",
"description": "Structural corrections for Portable Text values",
"keywords": [
"portabletext",
diff --git a/packages/toolbar/CHANGELOG.md b/packages/toolbar/CHANGELOG.md
index 762f204895..a4d675e8b2 100644
--- a/packages/toolbar/CHANGELOG.md
+++ b/packages/toolbar/CHANGELOG.md
@@ -1,5 +1,12 @@
# Changelog
+## 9.0.30-next.0
+
+### Patch Changes
+
+- Updated dependencies [[`216fb52`](https://github.com/portabletext/editor/commit/216fb5210eec66f79e6c070b218be1e23aa05f59), [`91d91a4`](https://github.com/portabletext/editor/commit/91d91a4af5e4a4c7f97eb340981a84afe43770c8), [`a8e5f6b`](https://github.com/portabletext/editor/commit/a8e5f6bef83793ed7885d5f61221eead8d79e90a), [`77b4cda`](https://github.com/portabletext/editor/commit/77b4cda5764d7b392d710c6578060d623b9e5507), [`be03281`](https://github.com/portabletext/editor/commit/be03281252910647eb369d18092bcfaa164cdea7), [`9758101`](https://github.com/portabletext/editor/commit/97581019a8024c583ea12e4ee4f998ec2aff2197), [`c822e68`](https://github.com/portabletext/editor/commit/c822e68640ec33342bb790909193300bbc3a330a), [`b560b03`](https://github.com/portabletext/editor/commit/b560b031bd8549d254f1c200518df22447646546), [`e4e4d1b`](https://github.com/portabletext/editor/commit/e4e4d1bc8cff842e5e4176979479a4bafc5061a8), [`0bab687`](https://github.com/portabletext/editor/commit/0bab6879efdd0443bb5d9295130927e64799190c), [`5824234`](https://github.com/portabletext/editor/commit/5824234bd36536248d2ef9082b6eb7cee65ad0dc), [`b3125b6`](https://github.com/portabletext/editor/commit/b3125b657a0b1d186b0a22f9224cea3db93c385c), [`e99d949`](https://github.com/portabletext/editor/commit/e99d9493249eb80078033527e523b7339340b2d4), [`b993cec`](https://github.com/portabletext/editor/commit/b993cec04e90ffaf0c44292a2671f6d6f026d5c9), [`0b3524c`](https://github.com/portabletext/editor/commit/0b3524c6aeb6bb0705de1d7b742708056b5c9509)]:
+ - @portabletext/editor@9.0.0-next.0
+
## 9.0.29
### Patch Changes
diff --git a/packages/toolbar/package.json b/packages/toolbar/package.json
index 63315684b7..61966a0c24 100644
--- a/packages/toolbar/package.json
+++ b/packages/toolbar/package.json
@@ -1,6 +1,6 @@
{
"name": "@portabletext/toolbar",
- "version": "9.0.29",
+ "version": "9.0.30-next.0",
"description": "Utilities for building a toolbar for the Portable Text Editor",
"keywords": [
"portabletext",