Astryx v0.7.0
Astryx 0.7.0 — all @astryxdesign/* packages ship at this version.
This release makes forms easier to style, improves phone typography and touch menus, keeps Markdown transforms composable, and moves spacing to rem units.
Start here:
-
Pin Core and the CLI to 0.7.0, plus every other stable Astryx package your project uses.
OLD_VERSION=0.6.8 # replace with the Core version your project uses today npm i @astryxdesign/core@0.7.0 @astryxdesign/cli@0.7.0 @astryxdesign/build@0.7.0 @astryxdesign/theme-neutral@0.7.0The example includes Neutral; update every other stable Astryx theme in your project in the same install step.
-
Run the 0.7.0 upgrade. It rewrites supported callsites, validates data-color ownership, and leaves a TODO where it cannot choose safely.
npx @astryxdesign/cli upgrade --from "$OLD_VERSION" --apply --path .
-
Check the items below. Four need a manual code edit, ten affect CLI commands or scripts, four are visual or token changes to inspect in your app, and eight are handled or checked by the upgrade.
Biggest risk: props that used to be ignored now reach the DOM. Layout, MetadataList, NavHeadingMenuItem, and TopNavMegaMenuItem already accepted BaseProps, so there is no type error or codemod. Audit callsites that pass IDs, ARIA or data attributes, event handlers, or style props only if they relied on those props doing nothing.
- Banner announcements are no longer inferred from status → call
useAnnounce()from the async transition, or add an explicit persistent role. - Previously ignored BaseProps now apply → audit the four components in the risk callout only where a passed prop was meant to stay inert.
- Complete icon registries require
upload→ add anuploadentry and artwork to every custom completeIconRegistry. - Standalone empty-operator filters no longer save on open → save at the callsite when opening should commit the filter, or skip opening it.
-
theme addnow imports built themes → change source-copying scripts totheme eject; existingtheme add --importcalls need no change.- npx @astryxdesign/cli theme add neutral ./src/theme --overwrite + npx @astryxdesign/cli theme eject neutral ./src/theme --overwrite
-
init --remove-agentsreportsremoved: false→ treatdata.removedas a boolean, not literaltrue. -
Conflicting CLI options are refused → remove the formerly ignored option from affected command pairs.
-
Invalid CLI input now fails → pass valid types, packages, limits, and arguments, and handle
ERR_AMBIGUOUS_COMPONENT. -
Empty positional arguments are rejected → omit
""when the intended operation is to list entries. -
Integration validation needs a package → run it where
package.jsonexists, or handle exit 1. -
Astryx-prefixed agent variables are removed → use
AGENTandAGENT_SESSION_ID; agent metadata has no replacement. -
The
layoutcommand group is removed → useastryx build,astryx template, orastryx docs layout. -
Private theme variables fail the build → fix every reported private
--_*input instead of relying on exit 0. -
Doctor fails on unloadable configured projects → install or repair the named integration, remove it from config, or fix the reported field.
reset.cssnow reaches pseudo-elements and search fields → do nothing unless you need the old browser result; then add a later-layer override.- Phone typography starts at 16px in four themes → take the new Neutral, Chocolate, Butter, and Stone scale, or add a touch-and-narrow override to keep 14px.
- Core spacing uses rem → CSS variable users do nothing; code that parses px must convert with the root size or read the computed length.
- Matcha and Y2K spacing uses rem → take the pixel-equal default at a 16px root, or override spacing tokens in px for fixed sizing.
- Data-color defaults move to StyleX → fix anything
validate-data-token-ownershipreports, then rebuild committed theme CSS. - Date and time input styling targets the control → review the
migrate-field-input-stylingrewrite or TODO. - Typeahead, Tokenizer, CheckboxList, RadioList, and Slider styling targets the field → review the generated
container*orcontrol*prop. - Selector styling targets the control → review the rewritten control styling and forwarded trigger props.
- Text input styling targets the control → review the rewritten control styling and native input ID.
- Theme styling uses current names and data attributes → review rewritten keys and selectors, especially any TODO for custom CSS.
- BottomSheet adds default content padding → review the generated
padding={0}or TODO; remove the prop when your theme already supplies padding. emptySearchResultsTextis removed → review the rename toemptySearchTextand any TODO on spreads or trigger objects.
See the complete visual guide and all 26 detailed migrations in #7333; its public URL goes live after npm and the GitHub Release.
-
Stop deriving live-region roles from
Banner.status. Banners are non-live by default; calluseAnnouncefrom the actual async transition handler, or provide an explicitrole="status"for a persistent semantic mirror. (#6630)role="alert"is now opt-in rather than automatic for warning and error banners.Old usage:
Bannerderivedrole="status"orrole="alert"from itsstatusvariant.Replacement: The caller sets the role explicitly, or announces with
useAnnounce.Migration: Call
useAnnouncefrom the actual async transition handler, or provide an explicitrole="status"for a persistent semantic mirror.Codemod: None — the right announcement depends on the callsite.
-
Layout, MetadataList, NavHeadingMenuItem and TopNavMegaMenuItem now apply the BaseProps they accept (id, role, aria-*, data-*, hidden, inert, dir, event handlers; TopNavMegaMenuItem also xstyle/className/style) instead of silently dropping them; NavHeadingMenu keeps arrow navigation when an item handler cancels. (#7331) Migration: remove any of those props you passed that you relied on being ignored; a TopNavMegaMenuItem styled through xstyle/className/style now shows that styling.
From #5656 by @harjothkhara.
-
BottomSheet pads its content by default, like Dialog. With no
paddingprop and no theme padding, the content box now pads by--spacing-4(it had no padding before) and publishes that inset. (#6884) A sheet whose only child is a paddedSectionor aLayoutrenders as before, because both escape the inset. Content that supplies its own inset is now padded twice: drop that inset, or passpadding={0}to keep the unpadded content box.astryx upgradeshipspreserve-bottom-sheet-content-padding, which addspadding={0}where needed.Migration: pass
padding={0}to keep the unpadded content box, or drop your own inset to take the default;astryx upgradeaddspadding={0}to every BottomSheet that sets no padding unless its only child is a padded Section or a Layout. An app whose theme already setsbottom-sheetpadding on every edge is not affected by the new default; the codemod cannot see the theme, so remove thepadding={0}it adds there to keep the theme inset. A sheet whose content wraps aLayoutgets a TODO:padding={0}also removes the inset between that Layout's regions, which the Layout's ownpaddingdoes not restore. -
Require
uploadon completeIconRegistrytypes (#7329) Old usage: A custom complete icon registry typed asIconRegistrythat omitted theuploadkey.Replacement:
IconRegistrynow requires all semanticIconNamekeys, includingupload.Migration: Add an
uploadentry drawn in your registry's icon style to complete icon registries typed asIconRegistry.Codemod: No
astryx upgradecodemod applies because icon artwork is bespoke design artwork tailored to each theme and cannot be automatically synthesized. -
Move canonical data-color defaults from generated theme CSS to the public StyleX
dataVarsgroup. (#6834) ImportdataVarsfrom@astryxdesign/core/theme/dataTokens.stylexfor CSS-capable code. Canvas and other non-CSS APIs continue to useresolveThemeToken()oruseTheme().token(). Rebuild committed theme CSS withastryx theme build; concrete themes now emit only explicitly authored data-color overrides.Old usage: Generated theme CSS owned the canonical
--color-data-*root defaults.Replacement: The public StyleX
dataVarsgroup in@astryxdesign/core/theme/dataTokens.stylexowns the defaults; concrete themes emit only explicitly authored data-color overrides.Migration: Import
dataVarsfrom@astryxdesign/core/theme/dataTokens.stylexfor CSS-capable code. Canvas and other non-CSS APIs continue to useresolveThemeToken()oruseTheme().token(). Rebuild committed theme CSS withastryx theme build.Codemod:
astryx upgraderunsvalidate-data-token-ownership, which rewrites nothing and reports fallback-lessvar(--color-data-*)uses (whole or embedded source strings, and stylesheets) and stale generated theme CSS for manual migration.Also released in
@astryxdesign/cli. -
DateInput, DateRangeInput, DateTimeInput, and TimeInput no longer accept root
xstyle,className, orstyle. Style the field withcontainerXstyle/containerClassName/containerStyle(the Field box; no effect inside InputGroup or ahorizontal-labelsFormLayout) and the visual control box withcontrolXstyle/controlClassName/controlStyle. Base props such asref,id,data-*,aria-*, and DOM handlers reach the field's semantic control on every surface (the date, time, or date-time input; DateRangeInput's range trigger) instead of the wrapper, TimeInput no longer drops them, and a calleridis now honored there. A calleraria-describedbyis added to the component's own description ids, and a calleraria-labelledbyis read after the field's own label (on DateRangeInput, after its label and selected range); a calleraria-labelon DateRangeInput replaces the trigger's name. (#7337) Migration: rename rootxstyle/className/styleon these components tocontrolXstyle/controlClassName/controlStyle, which style the same element as before (for DateTimeInput, the row holding the date and time segments). Rename by hand, or runastryx upgrade; it runsmigrate-field-input-styling, which rewrites JSX usage; styling passed through a wrapper's own props or a spread is never rewritten and now fails type-checking at that callsite, so rename it there. Untyped callers get a development warning and the value is ignored. A DOM handler ordata-*attribute that relied on landing on the wrapper now lands on the control; a handler still runs after the component's own and still receives events the component handled.From #5656 by @harjothkhara.
-
Typeahead, Tokenizer, CheckboxList, RadioList, and Slider no longer accept root
xstyle,className, orstyle. Style the field withcontainerXstyle/containerClassName/containerStyle(the Field box; no effect inside InputGroup or ahorizontal-labelsFormLayout) and the visual control box withcontrolXstyle/controlClassName/controlStyle. Base props now reach the primary semantic control: the combobox input for Typeahead and Tokenizer, therole="group"/role="radiogroup"element for CheckboxList and RadioList, and therole="slider"thumb for Slider (therole="group"control in range mode). A calleraria-describedbyis kept alongside the field's own description and status, on these components and on TextInput, TextArea, and NumberInput, which previously dropped it. CLI templates use the new props. (#7339) Migration: rename rootxstyle/className/styleto the part they styled before:containerXstyle/containerClassName/containerStyleon all five components, except a Typeahead inside InputGroup, whose root styling painted the control surface and moves tocontrolXstyle/controlClassName/controlStyle. The release'sastryx upgradecodemod,migrate-field-input-styling, performs these renames on JSX usage.Not rewritten by the codemod, so update by hand:
refandid, plusdata-*(except Typeahead and Tokenizerdata-testid, which marked the control surface),aria-*, and DOM event handlers such asonClick, previously landed on the outer Field (or were dropped by RadioList and Slider). They now land on the primary semantic control. Update code that measured, queried, or listened on the outer field, and wrap the component in your own element when you need an outer boundary.- Typeahead and Tokenizer refs are now
HTMLInputElement. - A consumer
onKeyDownon Typeahead or Tokenizer still runs after the built-in key handling, cannot cancel it, and still fires for keys on the clear button and tokens; for keys on the input it now runs on the combobox input itself. - RadioList and Slider used to drop DOM event handlers; they now run after the component's own handling, so a Slider
onPointerDown,onKeyDown,onFocus, oronBlurthat never fired before now fires (on the thumb, or on the group in range mode). - Tokenizer's
onFocus/onBlurkeep their meaning: focus entering or leaving the field. - Styling passed through a wrapper's own props or a spread is not rewritten and now fails type-checking at that callsite.
Untyped callers get a development warning and the value is ignored.
From #5656 by @harjothkhara.
Also released in
@astryxdesign/cli. -
Selector, MultiSelector, and ComplexSelector no longer accept root
xstyle,className, orstyle. Style the field withcontainerXstyle/containerClassName/containerStyle(the Field box; no effect inside InputGroup, ahorizontal-labelsFormLayout, or withrenderTrigger) and the visual control box withcontrolXstyle/controlClassName/controlStyle. Base props such asref,id,data-*(includingdata-testid),aria-*, and DOM handlers reach the trigger button that carries the combobox role (or, withrenderTrigger, the caller's control), and a calleraria-describedbyis kept alongside the field's own description and status instead of being replaced. Handlers keep their existing order: a ComplexSelectoronClickon its own trigger can still cancel opening, and newly forwarded handlers (including those reaching arenderTriggercontrol) run after the built-in toggle and keyboard handling. CLI templates use the new props. (#7341) Migration: rename rootxstyle/className/styleon these components tocontrolXstyle/controlClassName/controlStyle, which style the same element as before. Not a rename: adata-testidor other base prop now lands on the trigger button rather than the bordered box around it (query the box with.closest()if a test measured it), and withrenderTriggerbase props andrefnow reach the caller's control. Rename JSX usage by hand, or runastryx upgrade; it runsmigrate-field-input-styling, which does not follow styling passed through a wrapper's own props or a spread, which now fails type-checking at that callsite, so rename it there. Untyped callers get a development warning and the value is ignored.From #5656 by @harjothkhara.
Also released in
@astryxdesign/cli. -
TextInput, TextArea, NumberInput, and FileInput no longer accept root
xstyle,className, orstyle. Style the field withcontainerXstyle/containerClassName/containerStyle(the Field box; no effect inside InputGroup or ahorizontal-labelsFormLayout) and the visual control box withcontrolXstyle/controlClassName/controlStyle. Base props such asref,id,data-*,aria-*, and DOM handlers reach the native control, and a calleridis now honored there. CLI templates use the new props. (#7336) Migration: rename rootxstyle/className/styleon these components tocontrolXstyle/controlClassName/controlStyle, which style the same element as before.astryx upgraderewrites JSX usage; styling passed through a wrapper's own props or a spread is not rewritten and now fails type-checking at that callsite, so rename it there. Untyped callers get a development warning and the value is ignored. Not rewritten by the codemod: a calleridused to be replaced by a generated one and now reaches the native control (the label stays associated), so remove anidyou passed but relied on being ignored. Other base props already reached the native control and are unchanged.From #5656 by @harjothkhara.
Also released in
@astryxdesign/cli. -
PowerSearchFilterEditorno longer callsonSavewhen it opens on an already-complete empty-operator filter (such as "is empty"). (#7347) Old usage: opening a standalonePowerSearchFilterEditoron a complete empty-operator filter saved that filter immediately, with no Apply rendered for it, and saved it again whenever the editor remounted.Replacement: the editor saves only from a user choice in it. Opening it saves nothing.
Migration: if you relied on that save-on-open, call your own
onSavehandler with the filter at the point where you open the editor (or skip opening the editor for empty-operator filters, as PowerSearch now does). This cannot be rewritten by a codemod, because the right place to commit depends on your code. -
Remove the deprecated component-theming compatibility surface scheduled for 0.7.0. Components now emit only canonical target classes and reflected
data-*prop/state selectors. Theme discovery and build output no longer expose deprecated targets, andThemePropsOptionsplusComponentThemingTarget.deprecatedForare removed. Thetheme targets --jsonresponse drops theThemeTargetEntry.deprecatedForfield, because no target it lists is deprecated. (#7302) Migration: run the required codemodmigrate-deprecated-theme-surfacewithastryx upgrade --from <your 0.6 version> --apply --path .after upgrading.The codemod renames removed target keys inside theme
componentsmaps (an importeddefineTheme()call, an object typed as an Astryx theme, or a theme object with a staticname), renames target classes in CSS, and replaces target-qualified bare prop/value/state classes with reflecteddata-*selectors, using every bare class the final 0.6 release emitted. It leaves dynamic/computed theme keys, unqualified or unknown classes, and CSS embedded in JavaScript/TypeScript strings for manual review. It addsTODO(astryx upgrade)when old and canonical keys coexist, and when a bare class Astryx once emitted has no known meaning on the target it qualifies.The four per-component clear-icon aliases all become the shared
input-clear-icon, which styles every input's clear icon. In CSS the codemod keeps each rule on its component with:where(.astryx-<component> *), which adds no specificity. Theme keys cannot carry that scope, so the codemod adds a TODO naming the CSS selector to use.Code that passed
{legacyNames}tothemeProps()or setdeprecatedForin a component doc should delete that argument or field; the canonical target is unchanged.Rename theme keys and CSS target classes with this complete mapping:
base-table→tablecheckbox→checkbox-indicatorcodeblock→code-blockcodeblock-copy-button→code-block-copy-buttoncodeblock-header→code-block-headercodeblock-title→code-block-titledate-input-clear-icon→input-clear-icondate-range-input-clear-icon→input-clear-iconhovercard→hover-cardmulti-selector-clear-icon→input-clear-iconnavicon→nav-iconpopover-surface→popoverprogressbar→progress-barprogressbar-fill→progress-bar-fillprogressbar-mark→progress-bar-markprogressbar-track→progress-bar-trackradio→radio-indicatorradio-dot→radio-indicator-dotselector-clear-icon→input-clear-iconstatusdot→status-dottextarea→text-area
For custom CSS, replace removed bare selectors with the corresponding reflected attribute on a canonical target—for example,
.astryx-button.primary.smbecomes.astryx-button[data-variant="primary"][data-size="sm"], and.astryx-switch.checkedbecomes.astryx-switch[data-checked="checked"]. Review unqualified classes such as.primarymanually because they may be application-owned.Also released in
@astryxdesign/cli. -
Remove the deprecated
emptySearchResultsTextprop. UseemptySearchText. (#7289) Old usage:emptySearchResultsTextonTokenizer,Typeahead, andBaseTypeahead, and theemptySearchResultsTextkey on aChatComposerInputtrigger.Replacement:
emptySearchText, shipped in 0.6.6. It takes aReactNode, so every old string value stays valid. The old name is no longer in the types and is no longer read; a JavaScript caller that still passes it sees the default empty message.Migration: Rename
emptySearchResultsTexttoemptySearchText. Where both are set, keepemptySearchTextand delete the old one — unlessemptySearchTextcould benullorundefined: 0.6.x then fell back to the old value, so move that value intoemptySearchText(for exampleemptySearchText={value ?? 'Old copy'}).Codemod:
astryx upgraderunsrename-empty-search-results-text, a straight rename at the JSX boundary: the prop on importedTokenizer,Typeahead, andBaseTypeaheadelements, and the key on trigger objects written inline inChatComposerInput'striggers, each renamed as written. Like every Astryx codemod it does not follow variables, helpers, spreads, wrappers, or types; where it cannot attribute the value —emptySearchTextalready set, any spread onto one of these elements (whether or not the element writes the old name), atriggersvalue not written inline, a trigger object with a spread or computed key (whether or not it writes the old name) — it leaves a TODO instead of choosing a winner. The type checker reports any literalemptySearchResultsTextit did not reach; the TODOs cover the values that reach an element through a spread, which it cannot. -
reset.cssnow reaches::before,::after,::placeholderand the search field's cancel button, as its comments document. Three of its rules wrote the pseudo-element inside:where(), where pseudo-elements are invalid, so browsers dropped those parts of the selector and the rules never applied to them. Each pseudo-element now follows the:where(), as in:where(*)::before, and the rules stay in@layer reset, so any later layer or unlayered style still overrides them. (#7355) What changes on a page that loads the reset: a::beforeor::afterwith padding or a border used to size ascontent-boxand now sizes asborder-box; setting onlyborder-widthon one used to draw nothing and now draws a solidcurrentColorborder; a placeholder with no color of its own used to show the browser's grey and now shows--color-text-secondary(or that token's own default,light-dark(#4E606F, #AAAFB5), when no Astryx CSS defines it); and atype="search"field no longer shows the browser's cancel button.To keep the old result for one of your own elements, set it in your own CSS:
box-sizing: content-boxorborder-style: noneon the pseudo-element, acoloron the::placeholder, orappearance: autoon the field's::-webkit-search-cancel-button. There is no codemod: whether a stylesheet relied on the old result cannot be read from its source. -
Spacing tokens are rem (
--spacing-2: 0.5rem), so gaps and padding follow the reader's root font size the way the type scale does. Every token value is unchanged at the default 16px root. (#7359) One change shows at the default root: theuseTableRowExpansionchevron now sits centered in its fixed 40px column instead of running past its edge (its button moves from 24–48px to 8–32px of the column). Under a theme with a larger spacing scale, such as matcha, the chevron is visible again and the detail panel lines up with the first column instead of starting 20px past it.Old usage: The
--spacing-*defaults were fixed px (--spacing-2: 8px), souseTheme().token(),resolveThemeToken(),tokenDefaultsandspacingDefaultsreturned px strings, and spacing stayed the same size when a reader raised the browser font size.Replacement: The defaults are rem with the same value at a 16px root (
--spacing-2: 0.5rem,--spacing-4: 1rem), and those readers return the rem string.Migration: CSS that reads
var(--spacing-*)needs no change. Code that parses a spacing token as a px number converts the rem value with the root font size, or reads the element's computed length. A theme that wants fixed px spacing sets the tokens back, for exampledefineTheme({tokens: {'--spacing-2': '8px'}}).Codemod: None. A token read and parsed at runtime cannot be found and rewritten statically, and CSS uses need no rewrite.
Also released in
@astryxdesign/cli.
-
DropdownMenutakesheaderandfooter: content above and below the rows that sits in the popover beside the menu, never inside it. This is the place for a filter field or a "Create" button. The menu still holds only its rows, so it stays a valid menu to a screen reader. The controls keep their own keys and presses, and Tab walks header, menu, footer. The bottom sheet shows them above and below the actions. (#7344) -
DropdownMenuSubMenupasses host attributes, DOM event handlers and arefto its trigger row, asDropdownMenuItemdoes: a sub-menu row can carryaria-keyshortcuts, adata-*mark or anid, and a caller can reach the row element. The row keeps its own role, tab stop and popup state; a caller'sonClick,onKeyDown,onPointerMove,onMouseEnterandonMouseLeaverun after the row's own handling, except for an event the row consumes: the keys that open the flyout (the open arrow, Enter and Space) and a click on a disabled row. A caller'sidnames the row the flyout is labelled by. (#7318)
-
A standalone
BottomSheetnow joins the shared layer dismissal stack, so one Escape press closes only the top-most layer. A Popover, Dialog, or menu opened inside the sheet closes first, and the next press closes the sheet.purpose="required"still blocks Escape without letting the press close a layer behind it, a sheet that is animating out keeps the press, and the native close request answers with the same top-most and IME composition rules. (#7225) -
ContextMenuputs only its four touch handlers on the trigger element. It used to spread everythinguseLongPressreturns, which since the press model includes the hook's imperativestart,moveToandcancel, so React warned "does not recognize themoveToprop" and "Invalid values for propsstart,cancel" on the first ContextMenu of a page. Long-press opening is unchanged. (#7322) -
DateInput: run changeAction with optimistic busy feedback on the native picker surface (#7243)
-
Dialog's initial focus and the focus it returns on close now follow the last input: the shared focus indicator is hidden after a mouse click or tap and shown after keyboard input, including focus returned after a keyboard open and a mouse close (#7306). Text fields keep their own focus treatment. (#7313)
-
A DropdownMenu hung off its own control through
renderTriggernames a drilled-in sub-menu's Back row after the menu: "Back to <the menu's aria-label>", or the name of the control it hangs off, instead of "Back to Menu". (#7304) -
Lightbox shows the next or previous image unzoomed from its first frame. The zoom and pan reset when the image changes now happens in the same update, instead of painting the new image at the previous image's zoom for one frame. (#7351)
-
With
markdownSourceLinesPlugininstalled, a transform plugin no longer falls back to its readable fallback on documents that contain a list or a quote. Blocks nested in a list item or a quote carry lines without offsets, and the transform check now accepts those Core-assigned lines while still refusing a transform that adds, shifts, or forges them. (#7345) -
A two-finger pinch over an open DropdownMenu, sub-menu flyout, ContextMenu or Selector list now zooms the page. The menus declared
touch-action: nonewhile their rows fit andpan-yonce they scroll, and neither allows a pinch, so a phone could not zoom the page while a menu was open. They now declarepinch-zoomandpan-y pinch-zoom; a one-finger slide over the rows and the press model behave as before. (#7201) -
DropdownMenu, ContextMenu and sub-menus no longer special-case text fields and buttons placed among their rows. This reverts an unreleased change. A menu holds only menu items; a control that is not a row belongs outside the menu. (#7338)
-
The PowerSearch filter editor saves an "empty" operator filter (such as "is empty") exactly once, from the choice that completes it. Choosing such an operator, or switching to a field whose default operator is one, now saves from that choice instead of from an effect. The filter is no longer saved again when the parent re-renders with a new
onSave, or twice in React StrictMode. Re-choosing the current operator or field saves nothing, and focus still returns to the search input after the editor closes. Clicking an existing empty-operator token in PowerSearch commits it once without opening the built-in editor; acomponents.empty.Editoroverride still opens. (#7347) -
The PowerSearch filter editor saves once when a value that saves on choice is picked (an enum option, a relative-date preset, a suggestion). The save no longer runs inside a React state updater, which React may call more than once, so it no longer fires twice in StrictMode. (#7350)
-
Toasts stay visible and clickable while a Dialog is open. The
ToastViewportfromLayerProvider(or the oneuseToastmounts on its own) now moves into the open Dialog, and back when it closes. Before, a Dialog opened after the viewport mounted painted over it, and clicking a toast's close button hit the backdrop and closed the Dialog. Moving the viewport does not reset visible toasts or their timers. A viewport rendered withisTopLayer={false}keeps rendering in place. (#7238) -
DateTimeInput's touch picker no longer paints a stale frame. Clearing the value from outside clears the time display in the same update, instead of showing the previous time for one frame, and narrowing
max(or raisingmin) while the sheet is open keeps the visible month in range in the same update, instead of showing the out-of-range month and then jumping. (#7349)
- An
ItemwithoutswipeActionsno longer bundles the swipe gesture. The panels and the drag that uncovers them now live in a moduleItemloads on demand the first time a row has swipe actions, so an app whose rows never swipe ships about 2.7 KB (gzip) less on its first load and a row that does swipe keeps its DOM, props and behavior; its gesture becomes live once that module has arrived, which on a first load is a moment after the row paints. (#7296)
- Describe
CommandPaletteListas the listCommandPaletterenders itself, and as a component to render directly only for a standalone results list. (#7370)
-
theme addnow imports built themes; usetheme ejectto copy theme source. (#7138) The old contract copied theme source withtheme add <slug> [path] [--overwrite] [--package <package>]and returnedtheme.addJSON. TheThemeAddResponsetype and thetheme.addresponse type are removed, with theirThemeAddResponse.type,ThemeAddResponse.data, andThemeAddResponse.metafields. The replacement imports the built theme withtheme add <slug> [--package <package>]and returnstheme.app;--importremains an accepted no-op. Plaintheme addnow returnstheme.appwith the ownerpackagedirectly aftertype. Local themes carry no package.A path after
theme addnow exits 1 withERR_INVALID_ARGUMENT, and--overwriteexits 1 withERR_INVALID_OPTION; neither writes files. To migrate a script that copied source, runtheme ejectwith the same slug, path,--overwrite, and--packagearguments. A script that already runstheme add --importkeeps the same meaning and needs no change. -
init --remove-agentssays when there was nothing to remove. (#6623) Migration: a consumer readingdata.removedas a boolean keeps working; a consumer that narrowed on the literaltruemust accept the corrected value. -
Four commands refuse silently ignored option pairs. (#7132) Migration: remove the option the command was ignoring.
-
Refuse invalid input that used to silently succeed. (#7149) Migration: pass a valid type or package, an integer limit, or the documented arguments, and catch
ERR_AMBIGUOUS_COMPONENTfor a multi-package name. -
An empty-string argument no longer discards the rest of the command. (#6620) Migration: remove the empty string from the invocation; omit the argument to list.
-
doctor integration validateexits 1 when there is no package.json. (#7150) A missing package.json now produces ano_packageerror, so the existing error-severity exit rule applies. A directory with package.json but no integration manifest still exits 0.Migration: run the command in a directory that has a
package.json, or handle exit 1 for that case. -
Doctor fails when the CLI cannot load what astryx.config asks for (#7130) A new
configured-integrationscheck fails when an integration named in astryx.config cannot be loaded: not installed, installed without a manifest, or a manifest that throws or fails its schema. Such an integration is withdrawn whole and contributes nothing. The config check fails, instead of warning, when astryx.config imports but the CLI cannot load the project from it.Unchanged: a problem inside one contribution kind (an invalid component doc, a missing or unreadable root, or an unresolved replacement) stays a warning under
integration-issues, and an autolinked dependency that cannot be loaded stays informational.No codemod applies: nothing in a project's source changes; install the integration, repair its manifest, or edit
integrationsin astryx.config.What counts as configured is every name astryx.config lists, including a package set aside for a provider conflict and the package being authored when its own config names it. Migration: install the integration, fix its manifest, or remove it from
integrations; fix the astryx.config field the message names. -
Stop reading the Astryx-owned agent variables ASTRYX_AGENT_ID, ASTRYX_AGENT_SESSION_ID, and ASTRYX_AGENT_METADATA (#7127) The theme-import change already stopped reading
ASTRYX_THEME; these three were the last Astryx-owned agent variables. A test now fails on anyprocess.env.ASTRYX_*read in the CLI source.Migration: set
AGENTandAGENT_SESSION_ID, which the CLI already reads, instead of the Astryx-prefixed variants.ASTRYX_AGENT_METADATAhas no replacement variable. -
Remove the
astryx layoutcommand group. (#7137) Removes the deprecatedastryx layoutcommand group (expand,check,grammar), its three response types (layout.expand,layout.check,layout.grammar), and the programmatic API exports (layoutExpand,layoutCheck,layoutGrammar).Use
astryx buildto choose the template to start from,astryx templateto scaffold it, andastryx docs layoutfor layout guidance. The layout guide is unaffected. The error codesERR_LAYOUT_PARSEandERR_LAYOUT_INVALIDare retained.Removed JSON ids:
LayoutBlockReference.modeLayoutBlockReference.nameLayoutCheckOptions.cwdLayoutCheckOptions.formLayoutCheckOptions.looseLayoutCheckResponse.dataLayoutCheckResponse.data.compactLayoutCheckResponse.data.errorsLayoutCheckResponse.data.formLayoutCheckResponse.data.outlineLayoutCheckResponse.data.validLayoutCheckResponse.data.warningsLayoutCheckResponse.typeLayoutExpandOptions.cwdLayoutExpandOptions.formLayoutExpandOptions.looseLayoutExpandOptions.nameLayoutExpandOptions.targetPathLayoutExpandResponse.dataLayoutExpandResponse.data.blocksReferencedLayoutExpandResponse.data.codeLayoutExpandResponse.data.componentsUsedLayoutExpandResponse.data.demoMediaReplacedLayoutExpandResponse.data.formLayoutExpandResponse.data.statesLayoutExpandResponse.data.todosLayoutExpandResponse.data.warningsLayoutExpandResponse.data.writtenLayoutExpandResponse.typeLayoutGrammarOptions.cwdLayoutGrammarResponse.dataLayoutGrammarResponse.data.aliasesLayoutGrammarResponse.data.textLayoutGrammarResponse.typeLayoutIssue.colLayoutIssue.formattedLayoutIssue.lineLayoutIssue.messageLayoutIssue.suggestions -
theme buildexits 1 when it reports private--_*variables. (#6872) The old contract reported private-variable errors but exited 0. The corrected contract keeps the same warnings, receipts, generated files, and--checkoutput, but exits 1.To migrate, a CI step that relied on exit 0 must fix the theme's private
--_*inputs.
-
astryx upgradeaddspadding={0}to BottomSheet elements that do not setpadding, keeping their unpadded content box now that BottomSheet pads like Dialog. Sheets whose only child is a Section or a Layout are left unchanged. A sheet with a Layout anywhere in its content also gets a TODO comment, becausepadding={0}removes the inset between that Layout's regions and the Layout's ownpaddingrestores only its outer edges. A shadowedBottomSheetbinding is left alone, and a second run changes nothing. (#6884) -
astryx upgraderunsmigrate-field-input-styling, which renames rootxstyle/className/styleon Field-composed inputs to the part they styled before:controlXstyle/controlClassName/controlStyleon TextInput, TextArea, NumberInput, FileInput, DateInput, DateRangeInput, DateTimeInput, TimeInput, Selector, MultiSelector, and ComplexSelector, andcontainerXstyle/containerClassName/containerStyleon Typeahead, Tokenizer, CheckboxList, RadioList, and Slider. It rewrites JSX written directly on an Astryx import (named, aliased, or namespace). Spreads and wrappers that forward their own styling props are left for manual migration, and a callsite that already sets the target prop gets a TODO instead of a rename. (#7342) -
astryx upgraderenamesemptySearchResultsTexttoemptySearchTextonTokenizer,Typeahead,BaseTypeahead, andChatComposerInputtrigger objects, for the release that removes the old name. (#7289)
-
templateandbuildfollow the project's package manager. The nearest directory from the target up to the workspace root that has apackageManagerfield or a lockfile decides. With neither, the command uses npm, whatever package manager launched the CLI. When that directory's lockfiles disagree and nothing it commits picks one,installCommandisnulland the note names the missing packages, the directory, and the lockfiles that disagree, instead of guessing a command that would write a second lockfile. (#7343) -
Teach generated palette references in the full custom-theme authoring guide. (#7268)
- Clarify release-branch codemod promotion and version ownership. (#7293)
-
matcha's and y2k's spacing steps are rem (
--spacing-2: 0.75rem), so their gaps and padding follow the reader's root font size like the core scale. Every step is the same pixel value at the default 16px root; a reader with a larger root font size now sees proportionally larger spacing on these themes. The CLI's copies of both theme templates and the annotated theme template's spacing example change the same way. (#7374) Migration: nothing to change to take the new behaviour. To keep fixed pixel spacing on one of these themes, extend it and override the steps in px, which is honoured as written:defineTheme({name: 'app', extends: matchaTheme, tokens: {'--spacing-2': '12px'}}).Also released in
@astryxdesign/cli(templates). -
On touch devices narrower than the
lgbreakpoint ((width < 1024px) and (pointer: coarse)), the 14px-base first-party themes now floor their type base to 16px and re-derive the ratio so Display 1 keeps its desktop size: neutral and chocolate (base 14, ratio 1.2 → 1.1736) and butter and stone (base 14, ratio 1.25 → 1.2225). On phones, body, label and code text rise from 14px to 16px; supporting text, the headings and Display 2 and 3 grow by 1–2px; only Display 1 holds its desktop size. Desktop sizes are unchanged. gothic, matcha and y2k already use a 16px base and need no rule. The CLI's theme templates carry the same rule, so a newly scaffolded theme gets it too. (#6699) An app theme that extends one of these four themes and sets its owntypography.scaleor type-size tokens inherits this rule, and on touch + narrow screens the rule replaces those values (a base-18 child drops to a 16px body and a 42px Display 1). Append your own rule for the same condition with the values you want; a later rule for the same condition wins.Migration: nothing to change to take the new phone scale. To keep the previous 14px phone scale in an app, extend the theme and append a later rule for the same condition:
defineTheme({name: 'app', extends: neutralTheme, adaptations: {rules: [{when: {pointer: 'coarse', width: {below: 'lg'}}, value: {typography: {scale: {base: 14, ratio: 1.2}}}}]}}). For butter and stone useratio: 1.25and also settokens: {'--text-supporting-size': '12px'}in that rule's value, because those themes pin supporting text at 12px rather than the 11px the scale alone gives. This cannot be rewritten by a codemod: whether an app wants the floor is a product choice.Also released in
@astryxdesign/cli(templates).
-
Generate Neutral's runtime palette references from the stops its theme uses, and fail verification when the package or CLI template copy drifts. (#7255)
Also released in
@astryxdesign/cli(templates).
- Preserve native
light-dark()token values in Vite source builds by defaulting Lightning CSS to Astryx's supported browser floor. (#7330)
Thanks to everyone who contributed to this release:
@cixzhang @Geervan @harjothkhara @imdreamrunner @josephfarina @ksying @rubyycheung @vjeux
Full Changelog: https://github.com/facebook/astryx/compare/v0.6.8...v0.7.0
Release 2026-10-12 23:58
Release 2026-10-12 23:58
- skip unused Start request setup (#8451) (740b0ce177) by @schiller-manuel
- reuse prepared SSR request locations (#8441) (d6ba115d57) by @schiller-manuel
- @tanstack/react-router@1.170.44
- @tanstack/react-start@1.169.1
- @tanstack/react-start-client@1.168.42
- @tanstack/react-start-rsc@0.1.62
- @tanstack/react-start-server@1.167.49
- @tanstack/router-cli@1.167.43
- @tanstack/router-core@1.171.37
- @tanstack/router-generator@1.167.43
- @tanstack/router-plugin@1.168.45
- @tanstack/router-vite-plugin@1.167.45
- @tanstack/solid-router@1.170.41
- @tanstack/solid-start@1.169.1
- @tanstack/solid-start-client@1.168.40
- @tanstack/solid-start-server@1.167.47
- @tanstack/start-client-core@1.170.37
- @tanstack/start-plugin-core@1.171.52
- @tanstack/start-server-core@1.169.42
- @tanstack/start-static-server-functions@1.167.42
- @tanstack/start-storage-context@1.167.39
- @tanstack/vue-router@1.170.40
- @tanstack/vue-start@1.169.1
- @tanstack/vue-start-client@1.167.43
- @tanstack/vue-start-server@1.167.47
@tanstack/vue-router@1.170.40
- Updated dependencies [
d6ba115]:- @tanstack/router-core@1.171.37
@tanstack/start-storage-context@1.167.39
-
#8451
740b0ce- Skip request middleware bookkeeping when no request middleware is configured, and stop copying serialization adapters when the router adds none.Server route handlers and route middleware now receive the router's decoded pathname, the same one used for route matching. Characters that would change how the path is read, such as
%2F,%3F, and%23, stay encoded. -
Updated dependencies [
d6ba115]:- @tanstack/router-core@1.171.37
@tanstack/vue-start-client@1.167.43
- Updated dependencies [
d6ba115]:- @tanstack/router-core@1.171.37
- @tanstack/start-client-core@1.170.37
- @tanstack/vue-router@1.170.40
@tanstack/start-server-core@1.169.42
-
#8451
740b0ce- Skip request middleware bookkeeping when no request middleware is configured, and stop copying serialization adapters when the router adds none.Server route handlers and route middleware now receive the router's decoded pathname, the same one used for route matching. Characters that would change how the path is read, such as
%2F,%3F, and%23, stay encoded. -
#8441
d6ba115- Reuse the parsed request location during SSR instead of repeating input rewrites. Match server routes against the app router's parsed pathname while preserving encoded pathnames for server handlers and middleware. -
Updated dependencies [
740b0ce,d6ba115]:- @tanstack/start-storage-context@1.167.39
- @tanstack/router-core@1.171.37
- @tanstack/start-client-core@1.170.37