You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@portabletext/editor@8.2.12
Patch Changes
#35894b5d159 Thanks @christianhg! - fix: clamp the caret to a span's new length when a children replacement shrinks it
#3589694a6c8 Thanks @christianhg! - fix: keep a pending caret after its pending edit when the span shrinks
Medium Risk
Releases targeted fixes to caret/selection after shrinking spans and patch path handling, which touch core editing and document updates but are scoped bugfixes rather than new behavior.
Overview
This is a Changesets release PR: it bumps package versions, updates changelogs, and removes the consumed changeset files—no new application code in the diff.
@portabletext/editor@8.2.12 ships two caret fixes when a span’s children is replaced and the text gets shorter: the caret is clamped to the span’s new length, and a pending caret stays tied to its pending edit instead of drifting past the shortened span. The editor also picks up @portabletext/patches@3.0.4 and @portabletext/repair@1.0.2.
@portabletext/patches@3.0.4 treats patches whose path has no field segment between two array indices as a no-op (leave the value unchanged), aligning compact-path behavior with Sanity.
Downstream packages (plugins, toolbar, plugin-sdk-value, repair) get patch releases mostly for dependency alignment on @portabletext/editor@^8.2.12 or @portabletext/patches@3.0.4.
Reviewed by Cursor Bugbot for commit 7f06be7. Bugbot is set up for automated code reviews on this repo. Configure here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@portabletext/editor@8.2.12
Patch Changes
#3589
4b5d159Thanks @christianhg! - fix: clamp the caret to a span's new length when a children replacement shrinks it#3589
694a6c8Thanks @christianhg! - fix: keep a pending caret after its pending edit when the span shrinksUpdated dependencies [
3729248]:@portabletext/patches@3.0.4
Patch Changes
3729248Thanks @christianhg! - fix: change nothing for a path without a field name between two array items@portabletext/plugin-character-pair-decorator@9.0.26
Patch Changes
@portabletext/plugin-decorations@1.0.13
Patch Changes
@portabletext/editor@^8.2.12@portabletext/plugin-dnd@2.0.27
Patch Changes
@portabletext/editor@^8.2.12@portabletext/plugin-emoji-picker@8.0.26
Patch Changes
@portabletext/plugin-input-rule@7.0.26
Patch Changes
@portabletext/editor@^8.2.12@portabletext/plugin-list-index@2.0.25
Patch Changes
@portabletext/editor@^8.2.12@portabletext/plugin-markdown-shortcuts@9.0.26
Patch Changes
@portabletext/plugin-one-line@8.0.25
Patch Changes
@portabletext/editor@^8.2.12@portabletext/plugin-paste-link@5.0.25
Patch Changes
@portabletext/editor@^8.2.12@portabletext/plugin-sdk-value@8.1.20
Patch Changes
3729248]:@portabletext/plugin-table@2.0.25
Patch Changes
@portabletext/editor@^8.2.12@portabletext/plugin-typeahead-picker@7.0.26
Patch Changes
@portabletext/plugin-typography@9.0.26
Patch Changes
@portabletext/repair@1.0.2
Patch Changes
3729248]:@portabletext/toolbar@9.0.26
Patch Changes
@portabletext/editor@^8.2.12Note
Medium Risk
Releases targeted fixes to caret/selection after shrinking spans and patch path handling, which touch core editing and document updates but are scoped bugfixes rather than new behavior.
Overview
This is a Changesets release PR: it bumps package versions, updates changelogs, and removes the consumed changeset files—no new application code in the diff.
@portabletext/editor@8.2.12 ships two caret fixes when a span’s
childrenis replaced and the text gets shorter: the caret is clamped to the span’s new length, and a pending caret stays tied to its pending edit instead of drifting past the shortened span. The editor also picks up @portabletext/patches@3.0.4 and @portabletext/repair@1.0.2.@portabletext/patches@3.0.4 treats patches whose path has no field segment between two array indices as a no-op (leave the value unchanged), aligning compact-path behavior with Sanity.
Downstream packages (plugins, toolbar, plugin-sdk-value, repair) get patch releases mostly for dependency alignment on
@portabletext/editor@^8.2.12or@portabletext/patches@3.0.4.Reviewed by Cursor Bugbot for commit 7f06be7. Bugbot is set up for automated code reviews on this repo. Configure here.