Skip to content

Version Packages - #3220

Merged
christianhg merged 1 commit into
mainfrom
changeset-release/main
Sep 3, 2026
Merged

christianhg merged 1 commit into
mainfrom
changeset-release/main

Conversation

@ecoscript

@ecoscript ecoscript Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

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/plugin-dnd@2.0.8

Patch Changes

  • #3218 8a71561 Thanks @christianhg! - fix: derive the dragged-block facts once per drag instead of per dragover

    The dragover guard no longer re-derives which blocks are being dragged (the drag selection, the dragged block keys, and the entire-blocks check, all of which scan the document) on every pointer move. These facts are now computed once per drag and reused, so dragging over large documents does less work per dragover. They are recomputed when the document changes mid-drag, for example when a remote edit lands, so the indicator keeps reflecting the current document.

  • #3218 a448def Thanks @christianhg! - fix: stop clearing the drop position on dragenter

    Crossing a block boundary during a drag no longer clears and re-sets the drop position. dragenter precedes every dragover on a crossing, so clearing on it toggled the indicator and wrote the editor's caret color twice per crossing; on large pages each style write costs a layout reflow. The caret color and the indicator now only change when the drop position genuinely transitions, and the drop position still clears on dragstart, dragend, dragleave, and drop.

@vercel

vercel Bot commented Sep 3, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
portable-text-editor-documentation Ready Ready Preview Sep 3, 2026 11:51am UTC
portable-text-example-basic Ready Ready Preview Sep 3, 2026 11:51am UTC
portable-text-playground Ready Ready Preview Sep 3, 2026 11:51am UTC

Request Review

@github-actions

github-actions Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Bundle Stats

✅ No significant changes.

All scenario measurements (7)

🗺️ @portabletext/editor / @portabletext/editor · @portabletext/editor / @portabletext/editor/behaviors · @portabletext/editor / @portabletext/editor/plugins · @portabletext/editor / @portabletext/editor/selectors · @portabletext/editor / @portabletext/editor/traversal · @portabletext/editor / @portabletext/editor/utils · @portabletext/markdown / @portabletext/markdown · Artifacts

Scenario Kind Bundle (raw / gzip) Gzip change Import time Import change
⚪ @portabletext/editor / @portabletext/editor export 1.09 MB / 253.7 KB None 67 ms +0 ms, +0.2%
⚪ @portabletext/editor / @portabletext/editor/behaviors export 4.0 KB / 1.4 KB None 2 ms -0 ms, -3.0%
⚪ @portabletext/editor / @portabletext/editor/plugins export 5.1 KB / 1.8 KB None 7 ms -0 ms, -0.5%
⚪ @portabletext/editor / @portabletext/editor/selectors export 93.7 KB / 21.3 KB None 8 ms -0 ms, -0.5%
⚪ @portabletext/editor / @portabletext/editor/traversal export 41.7 KB / 10.8 KB None 6 ms +0 ms, +1.7%
⚪ @portabletext/editor / @portabletext/editor/utils export 33.1 KB / 8.7 KB None 6 ms -0 ms, -2.0%
⚪ @portabletext/markdown / @portabletext/markdown export 272.2 KB / 79.6 KB None 40 ms +3 ms, +8.3%

Significant means at least 1.0 KB and 1% gzip, or at least 5 ms and 10% import time.

@christianhg
christianhg merged commit 5cb04a2 into main Sep 3, 2026
17 checks passed
@christianhg
christianhg deleted the changeset-release/main branch September 3, 2026 12:29

This branch was successfully deployed

3 active deployments
Preview – portable-text-playground — 14d8ad87 Deployed Sep 3, 2026 by vercel[bot]
Preview – portable-text-editor-documentation — 14d8ad87 Deployed Sep 3, 2026 by vercel[bot]
Preview – portable-text-example-basic — 14d8ad87 Deployed Sep 3, 2026 by vercel[bot]
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