Skip to content

try to fix the undo after block removal#2456

Draft
pepahlavacek wants to merge 1 commit intofeat/range-decoration-shifts-in-mutationfrom
feat/fix-undo-after-block-removal
Draft

try to fix the undo after block removal#2456
pepahlavacek wants to merge 1 commit intofeat/range-decoration-shifts-in-mutationfrom
feat/fix-undo-after-block-removal

Conversation

@pepahlavacek
Copy link
Copy Markdown

@pepahlavacek pepahlavacek commented Apr 2, 2026

Targets: #2451

Attempt to fix clamping ranges when a block with anchor is deleted. (And subsequently undo is hit)

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 2, 2026

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

Project Deployment Actions Updated (UTC)
portable-text-example-basic Ready Ready Preview, Comment Apr 2, 2026 2:35pm
portable-text-playground Error Error Apr 2, 2026 2:35pm

Request Review

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 2, 2026

⚠️ No Changeset found

Latest commit: 5eefde0

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

@socket-security
Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedhusky@​9.1.71001006280100
Addedtailwindcss-animate@​1.0.710010010080100
Addedtailwindcss@​4.1.181001008498100
Addedtypescript@​5.9.31001009010090

View full report

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 2, 2026

📦 Bundle Stats — @portabletext/editor

Compared against feat/range-decoration-shifts-in-mutation (1047ceea)

@portabletext/editor

Metric Value vs feat/range-decoration-shifts-in-mutation (1047cee)
Internal (raw) 783.4 KB +3.4 KB, +0.4%
Internal (gzip) 147.2 KB +752 B, +0.5%
Bundled (raw) 1.38 MB +3.4 KB, +0.2%
Bundled (gzip) 307.6 KB +747 B, +0.2%
Import time 95ms +1ms, +1.0%

@portabletext/editor/behaviors

Metric Value vs feat/range-decoration-shifts-in-mutation (1047cee)
Internal (raw) 467 B -
Internal (gzip) 207 B -
Bundled (raw) 424 B -
Bundled (gzip) 171 B -
Import time 2ms +0ms, +0.5%

@portabletext/editor/plugins

Metric Value vs feat/range-decoration-shifts-in-mutation (1047cee)
Internal (raw) 2.5 KB -
Internal (gzip) 910 B -
Bundled (raw) 2.3 KB -
Bundled (gzip) 839 B -
Import time 8ms -0ms, -0.1%

@portabletext/editor/selectors

Metric Value vs feat/range-decoration-shifts-in-mutation (1047cee)
Internal (raw) 60.5 KB -
Internal (gzip) 9.5 KB -
Bundled (raw) 56.9 KB -
Bundled (gzip) 8.7 KB -
Import time 6ms +0ms, +1.5%

@portabletext/editor/utils

Metric Value vs feat/range-decoration-shifts-in-mutation (1047cee)
Internal (raw) 24.2 KB -
Internal (gzip) 4.7 KB -
Bundled (raw) 22.2 KB -
Bundled (gzip) 4.4 KB -
Import time 6ms +0ms, +3.7%

🗺️ . · ./behaviors · ./plugins · ./selectors · ./utils · Artifacts

Details
  • Import time regressions over 10% are flagged with ⚠️
  • Sizes shown as raw / gzip 🗜️. Internal bytes = own code only. Total bytes = with all dependencies. Import time = Node.js cold-start median.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant