Version Packages - #1363
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
🧪 Storybook is successfully deployed!
|
Contributor
🏋️ Size limit report
Compared against main at cc13939 — run 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
Bot
force-pushed
the
changeset-release/main
branch
from
August 26, 2026 09:40
aac7cea to
5cf367e
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
August 26, 2026 10:56
5cf367e to
4acd73d
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
August 26, 2026 11:05
4acd73d to
5f7ece3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
cc139397Thanks @tenphi! - AddeduseSchema()anduseHighContrast()— the JS answer to the@darkand@hcstates, 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 andprefers-color-scheme/prefers-contrastsecond, exactly as the states do, and re-render on a change.resolveSchema(),resolveHighContrast()andsubscribeSchema()cover the same ground outside React. Styling still belongs in a state map.#1362
cc139397Thanks @tenphi! - Breaking: renamed theschemeterm toschemaacross the API, so one word names the concept thedata-schemaattribute and the@root(schema=…)state already use.renderColorTokens()/renderPaletteTokens()/RenderPaletteOptions: theschemeoption is nowschema—renderColorTokens({ schema: 'dark' }).<CubeLogo>/<CubeFullLogo>: theschemeprop is nowschema.tokenOptions.schemeis nowtokenOptions.schema, and thepnpm probeCLI flag--schemeis now--schema(--schema hcstill means light + high contrast).No aliases: update the call sites.
Patch Changes
9cf2d8d7Thanks @tenphi! -Board: pressing an interactive control inside a widget now always drops the selection.selectionCancelpromises that a press on an interactive descendant drops the selection, but the reset used to ride on the widget host's bubble-phaseonPointerDown— so it only happened for presses that actually reached the host. A control that callsstopPropagation()first (React Aria'susePressdoes 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
scheme→schemarename requires consumer updates; Board pointer/selection behavior changes affect dashboard interactions.Overview
Automated Changesets release that bumps
@cube-dev/ui-kitfrom 0.169.1 to 0.170.0, rolls pending changesets into CHANGELOG.md, and removes the consumed.changesetfiles. Merging publishes the already-merged feature work to npm.0.170.0 adds React/non-React helpers for ambient theme:
useSchema(),useHighContrast(), plusresolveSchema(),resolveHighContrast(), andsubscribeSchema()(aligned withdata-schema/data-contrastand system preferences).Breaking: renames
scheme→schemaeverywhere (token render APIs,CubeLogo/CubeFullLogo, probetokenOptionsand--schemaCLI). No aliases.Patch:
Boardclears widget selection on interactive presses via capture-phase handlers sostopPropagation()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.