Skip to content

Version Packages - #1363

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

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

Conversation

@tenphi

@tenphi tenphi commented Aug 25, 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.170.0

Minor Changes

  • #1362 cc139397 Thanks @tenphi! - Added useSchema() and useHighContrast() — the JS answer to the @dark and @hc states, for the two places a state map cannot reach: surfaces that take values rather than CSS (a Vega spec, a CodeMirror/Monaco theme, an iframe) and controls whose value is the ambient condition. Both follow the <html data-schema> / <html data-contrast> opt-in first and prefers-color-scheme / prefers-contrast second, exactly as the states do, and re-render on a change. resolveSchema(), resolveHighContrast() and subscribeSchema() cover the same ground outside React. Styling still belongs in a state map.

  • #1362 cc139397 Thanks @tenphi! - Breaking: renamed the scheme term to schema across the API, so one word names the concept the data-schema attribute and the @root(schema=…) state already use.

    • renderColorTokens() / renderPaletteTokens() / RenderPaletteOptions: the scheme option is now schemarenderColorTokens({ schema: 'dark' }).
    • <CubeLogo> / <CubeFullLogo>: the scheme prop is now schema.
    • The probe's tokenOptions.scheme is now tokenOptions.schema, and the pnpm probe CLI flag --scheme is now --schema (--schema hc still means light + high contrast).

    No aliases: update the call sites.

Patch Changes

  • #1364 9cf2d8d7 Thanks @tenphi! - Board: pressing an interactive control inside a widget now always drops the selection. selectionCancel promises that a press on an interactive descendant drops the selection, but the reset used to ride on the widget host's bubble-phase onPointerDown — so it only happened for presses that actually reached the host. A control that calls stopPropagation() first (React Aria's usePress does by default, and charting libraries do it on the native event) or one that renders in a portal never got there, which is why a widget's gear button dropped the selection while the chart's own toolbar button silently left it standing. The reset now runs in the capture phase, both through React (so a portal declared inside the widget is still covered) and as a native listener on the host node itself (so a descendant that stops the native event cannot pre-empt it). Nothing is stopped or prevented in either handler, so every control keeps its press, its focus and its default behaviour. A press on content a widget portaled outside the board also no longer starts a marquee behind the overlay.

Note

Medium Risk
Breaking schemeschema rename requires consumer updates; Board pointer/selection behavior changes affect dashboard interactions.

Overview
Automated Changesets release that bumps @cube-dev/ui-kit from 0.169.1 to 0.170.0, rolls pending changesets into CHANGELOG.md, and removes the consumed .changeset files. Merging publishes the already-merged feature work to npm.

0.170.0 adds React/non-React helpers for ambient theme: useSchema(), useHighContrast(), plus resolveSchema(), resolveHighContrast(), and subscribeSchema() (aligned with data-schema / data-contrast and system preferences).

Breaking: renames schemeschema everywhere (token render APIs, CubeLogo / CubeFullLogo, probe tokenOptions and --schema CLI). No aliases.

Patch: Board clears widget selection on interactive presses via capture-phase handlers so stopPropagation() and portaled controls still cancel selection and don’t start marquee behind overlays.

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

@vercel

vercel Bot commented Aug 25, 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 26, 2026 11:06am

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.19 KB (0% 🟰) Yes 🎉
Tree shaking (just a Button) 118.96 KB (0% 🟰) Yes 🎉

Compared against main at cc13939run 32876741389, 2026-08-25T17:14:44Z.

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

@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 4acd73d to 5f7ece3 Compare August 26, 2026 11:05
@tenphi
tenphi merged commit 4375677 into main Aug 26, 2026
4 checks passed
@tenphi
tenphi deleted the changeset-release/main branch August 26, 2026 13:33
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