Skip to content

Version Packages - #1371

Merged
tenphi merged 1 commit into
mainfrom
changeset-release/main
Aug 27, 2026
Merged

Version Packages#1371
tenphi merged 1 commit into
mainfrom
changeset-release/main

Conversation

@tenphi

@tenphi tenphi commented Aug 27, 2026

Copy link
Copy Markdown
Member

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

@cube-dev/ui-kit@0.171.0

Minor Changes

  • #1370 154a701f Thanks @tenphi! - <Board collisionMode="swap"> now places a widget arriving from another board instead of cancelling the transfer.

    swap used to treat a cross-board arrival as strict insertion: the anchor cell had to be empty, and releasing over an occupied one cancelled the whole transfer — both boards snapped back and onWidgetTransfer never fired. That made the mode's two halves unusable together, since a board that wanted in-board swapping had to give up cross-board drops (or pick downscale and give up the swap).

    A cross-board arrival now resolves the same way downscale does: it keeps its size where the drop cell allows, downscales into the room to its right and below where it does not, and holds the last cell it fitted in as the pointer sweeps across a destination widget — so releasing over an occupied cell commits what the preview was showing. Entering a board directly over an occupied cell places the widget in the nearest cell that fits. Destination widgets are still never exchanged, pushed, or reflowed to make space — only the arrival moves. In-board drops are unchanged and still swap.

    Also fixes a cross-board landing under any collisionMode where a refused placement committed the widget one row above the board (y: -1) instead of on it.

Patch Changes

  • #1370 154a701f Thanks @tenphi! - <Board collisionMode="downscale"> (and the cross-board half of "swap") now shrinks a widget into free room on either side of a blocker, not just the left.

    gridBounds clamps a drag anchor to cols - w, which assumes the widget keeps the width it started with. So when the blocker sat to the left and the room to its right was narrower than the widget, every anchor a pointer could produce landed inside the blocker — the mode whose whole job is to shrink the widget into that room never got offered it, and the drop just reverted. Dropping into room on the left always worked, because column 0 is reachable whatever the widget's width.

    A blocked drop whose anchor is pinned against the grid edge now also considers the cells beyond it that the clamp hid, taking the largest fit among them. An anchor short of the limit is the pointer's own choice — every cell between it and the limit was available to aim at — so a blocked drop there still reverts, and every drop that resolved before resolves to exactly the same cell. The row axis clamps the same way, so boards with a finite maxRows get the same fix below a blocker.


Note

Low Risk
This diff only versions and documents the release; runtime risk comes from the already-merged Board collision changes affecting grid drag-and-drop UX, not from security or data paths.

Overview
Release packaging for @cube-dev/ui-kit 0.171.0: bumps package.json, appends 0.171.0 to CHANGELOG.md, and removes the consumed changeset entries.

The release notes capture Board drag/drop behavior from #1370: collisionMode="swap" now places cross-board arrivals (downscale-style fitting and preview commit) instead of cancelling transfers and blocking onWidgetTransfer; downscale (and swap’s cross-board path) can shrink into free space on either side of a blocker when the anchor is edge-clamped by gridBounds; and refused cross-board placements no longer land at y: -1.

Reviewed by Cursor Bugbot for commit b25dc3f. Bugbot is set up for automated code reviews on this repo. Configure here.

@vercel

vercel Bot commented Aug 27, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
cube-ui-kit Ready Ready Preview Aug 27, 2026 11:03am

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

🧪 Storybook is successfully deployed!

@github-actions

Copy link
Copy Markdown
Contributor

🏋️ Size limit report

Name Size Passed?
All 500.4 KB (0% 🟰) Yes 🎉
Tree shaking (just a Button) 118.96 KB (0% 🟰) Yes 🎉

Compared against main at 154a701run 33065369602, 2026-08-27T10:59:03Z.

To see which modules changed, download the size-limit-statoscope-report artifact from this run and open report.html.

@tenphi
tenphi merged commit ae2b2d1 into main Aug 27, 2026
16 checks passed
@tenphi
tenphi deleted the changeset-release/main branch August 27, 2026 11:26
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