Skip to content

chore(deps): update dependency @portabletext/editor to ^7.10.16 - #1828

Open
squiggler-app[bot] wants to merge 1 commit into
mainfrom
renovate/portabletext-editor-7.x
Open

chore(deps): update dependency @portabletext/editor to ^7.10.16#1828
squiggler-app[bot] wants to merge 1 commit into
mainfrom
renovate/portabletext-editor-7.x

Conversation

@squiggler-app

@squiggler-app squiggler-app Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
@portabletext/editor (source) ^7.10.13^7.10.16 age confidence

Release Notes

portabletext/editor (@​portabletext/editor)

v7.10.16

Compare Source

Patch Changes
  • #​3046 b18469f Thanks @​christianhg! - fix: treat undefined and [] as equal empty values in value sync

    An update value event carrying an empty array no longer clears text the user has typed when the editor's last synced value was undefined. Both shapes mean "empty", so the update is now a no-op instead of counting as a remote change that wipes local content. This could surface as typed text suddenly disappearing in Sanity Studio when a stale document snapshot presented an empty field as [] after a dropped listener connection.

    A genuine remote clear, where the previously synced value was non-empty, still empties the editor as before.

v7.10.15

Compare Source

Patch Changes
  • 520e1be Thanks @​christianhg! - fix: run markDef and empty-span-annotation cleanup only as fallout of local edits

    Unused and duplicate markDefs, and annotations on empty spans, are no longer cleaned up while adopting outside content or applying a collaborator's patches: adopted blocks keep those shapes exactly as the document has them. A local edit touching the block still cleans them up, emitted as part of that edit. Note that unused markDefs arriving via initialValue or update value are still pruned at ingress by value validation.

  • #​3030 ff7e095 Thanks @​christianhg! - fix: report the sub-schema default style from getActiveStyle for blocks missing style

    getActiveStyle now reports the block's sub-schema default style (its first declared style) when the block carries no style field, instead of undefined. Observable for values adopted without the field; toolbar style selectors stay populated on such blocks. A sub-schema declaring no styles still reports undefined.

  • #​3016 03a0aaa Thanks @​christianhg! - fix: normalize optional-field defaults only when a local edit touches the block

    Loading a document (initialValue) or receiving an update value no longer fills in missing style, marks, or markDefs fields: adopted blocks stay exactly as the document has them, in the editor's value too, and no patches are held back for them. When a local edit touches such a block, its defaults are filled in and emitted as part of that edit.

    Consumers reading editor.getSnapshot().context.value will see adopted blocks without these optional fields until the user edits them (renderers already default the fields at read time). The first edit after opening no longer flushes a document-wide wave of default writes; each block's defaults ride the edit that touches it. Validity-critical repairs (missing _key/_type/text, duplicate keys, empty blocks) still run on every path.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • "before 3am on the first day of the month"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate using a curated preset maintained by Sanity. View repository job log here

@squiggler-app
squiggler-app Bot requested a review from a team as a code owner August 4, 2026 07:22
@squiggler-app
squiggler-app Bot requested review from pedrobonamin and removed request for a team August 4, 2026 07:22
@squiggler-app
squiggler-app Bot enabled auto-merge (squash) August 4, 2026 07:22
@vercel

vercel Bot commented Aug 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
plugins-studio Ready Ready Preview Aug 6, 2026 12:45pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
plugins-e2e-test-studio Ignored Ignored Aug 6, 2026 12:45pm

Request Review

@changeset-bot

changeset-bot Bot commented Aug 4, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: bf64195

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

✅ E2E Tests

🟢 26 passedview full reportview run

Studio: https://plugins-e2e-test-studio-98xlnbr42.sanity.dev

Datasets: pr-1828-chromium-31102717122, pr-1828-firefox-31102717122

@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 32% 5508 / 17209
🔵 Statements 31.78% 5812 / 18288
🔵 Functions 27.78% 1427 / 5136
🔵 Branches 23.33% 2828 / 12118
File CoverageNo changed files found.
Generated in workflow #8796 for commit bf64195 by the Vitest Coverage Report Action

@squiggler-app
squiggler-app Bot force-pushed the renovate/portabletext-editor-7.x branch from a5a3abb to ea0e0ec Compare August 4, 2026 09:16
@squiggler-app
squiggler-app Bot force-pushed the renovate/portabletext-editor-7.x branch from ea0e0ec to b1ce743 Compare August 4, 2026 09:26
@squiggler-app
squiggler-app Bot force-pushed the renovate/portabletext-editor-7.x branch from b1ce743 to 50da52d Compare August 4, 2026 14:54
@squiggler-app squiggler-app Bot changed the title chore(deps): update dependency @portabletext/editor to ^7.10.14 chore(deps): update dependency @portabletext/editor to ^7.10.15 Aug 4, 2026
@socket-security

socket-security Bot commented Aug 4, 2026

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 2db0ad6. Configure here.

Comment thread plugins/@sanity/block-insert-picker/package.json Outdated
@squiggler-app
squiggler-app Bot force-pushed the renovate/portabletext-editor-7.x branch from 2db0ad6 to bf64195 Compare August 6, 2026 12:44
@squiggler-app squiggler-app Bot changed the title chore(deps): update dependency @portabletext/editor to ^7.10.15 chore(deps): update dependency @portabletext/editor to ^7.10.16 Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants