meta/astryx
 Watch   
 Star   
 Fork   
4 days ago
astryx

Astryx v0.7.17

Astryx v0.7.17

Upgrade every Astryx package your app uses to 0.7.17, then run:

astryx upgrade --from 0.7.16 --apply

Highlights

  • Item and ListItem swipe actions now track a finger through the full UIKit-like open, confirm, fire, and cancel motion.
  • TextInput, TextArea, and NumberInput stay visible above a phone or tablet keyboard and restore the page or scroll area after it closes.
  • TopNavMenu and TopNavMegaMenu close once after a touch or keyboard selection and return focus to the trigger.
  • Selector and MultiSelector return focus after a selection, while growing option lists keep the selected row aligned with the trigger.
  • Core adds touch motion for AlertDialog, safer clipboard fallback in restricted frames, more reliable focus and layer behavior, stronger accessibility states, and smaller initial bundles for optional menus and tooltips.
  • The CLI gains one-base routing, MCP tools for every command, faster kept catalogs and upgrade scans, clearer theme and integration diagnostics, safer rendering, and page templates whose demo controls work.
  • RichTextEditor can re-mark a list item with a Markdown block marker, fixes direction detection across more scripts, and no longer restores a trailing hard break as a backslash.
  • The Build package and all seven official themes improve host color-scheme handling and role-text contrast.

The release updates 11 packages and credits 24 contributors. See the full commit comparison and the per-package changelogs below for every shipped change.

11 days ago
astryx

Astryx v0.7.16

Astryx 0.7.16 — all @astryxdesign/* packages ship at this version.

OLD_VERSION=0.7.15  # replace with the Core version your project uses today
npm install @astryxdesign/core@0.7.16 @astryxdesign/cli@0.7.16  # plus every other @astryxdesign/* package you use, at 0.7.16
npx @astryxdesign/cli upgrade --from "$OLD_VERSION" --apply --path .

@astryxdesign/core

Experimental APIs

  • Adds the English strings of the Lab media player (@astryx.mediaPlayer.*): control names, spoken times, chapter and marker context, and previous and next track. They are Lab strings shipped in Core's locale file, as Lab ListInput's strings are; they add no public API to @astryxdesign/core. (#11438)

New Features

  • NumberInput takes entryErrorBehavior, so a form can pass one value to all of its date, time, and number fields. A typed number is complete only at Enter or blur, so both values keep NumberInput's current timing: its rejection, aria-invalid, announcement, and onEntryErrorChange report appear at Enter or blur, never while a person types. Setting the prop, or FormLayout's defaultEntryErrorBehavior, changes nothing a person sees in a NumberInput. Pagination's page box passes 'complete', so a FormLayout around it never changes it. (#11492)

  • DateInput, DateTimeInput, and TimeInput take entryErrorBehavior, and FormLayout takes defaultEntryErrorBehavior. The prop sets when a field shows its own entry error, such as a date the calendar does not have or a time outside min and max. It does not set when validation runs, and it is not React Aria's validationBehavior. 'complete', the default, keeps each field's current timing. 'blur-or-enter' holds the message, aria-invalid, the invalid styling, the announcement, and the onEntryErrorChange report until the person presses Enter or leaves the field; an edit that makes the entry valid or empty still clears the error at once. A field's own prop wins over the form default, a nested FormLayout replaces it, and a Dialog opened from the form starts without it. PowerSearch value editors and Table filter editors keep 'complete'. The new EntryErrorBehavior type names the two values. (#11485)

  • A Lightbox gallery's caption sits in a band two lines tall under every photo, so the photo keeps one size and place from item to item. A photo with no caption keeps the band's space without its backing. A longer caption shows two lines, the second ending in an inline "more" link, which opens the whole caption over the photo. The whole caption is always the viewer's accessible description. (#9810) The viewer is a media surface: its controls, caption and counter take the theme's dark surface tokens through MediaTheme. The caption is body Text whose lines start at one edge, "more" and "less" are Link's button form in the caption's own type, and the band clears the screen's bottom edge and its safe area. A gallery's caption sits on a backing that keeps it at 4.5:1 over any photo. A tap that opens the viewer paints no focus ring on its first control, and paging from a focused "more" or "less" keeps focus in the viewer.

  • NumberInput: onEntryErrorChange reports why the field rejects typed text, so an app can word its own message. It receives a NumberInputEntryError with a kind that does not depend on the locale (unreadable, fractional for a fraction when isIntegerOnly, or outOfRange for any number while min is above max), the typed text, and, for fractional and outOfRange, the number as value. It runs each time the rejection changes: at Enter or blur, when an edit makes the text valid or empty, when a new value, min, max, or isIntegerOnly changes or ends it, and when disabling the field drops the text. It reports null when the rejection ends, or when the field unmounts while one stands, and never twice for the same rejection. Pass an error status with a message to word the rejection; that message is the one announced. (#11415)

  • New message @astryx.richTextEditor.link.urlPlaceholder ("example.com"), the placeholder of the RichText toolbar's link field. The descriptions of the other @astryx.richTextEditor.link.* messages and @astryx.richTextEditor.toolbar.link now describe the link popover that replaces the link dialog; their messages are unchanged. (#8717)

  • Column windowing keeps focus and place: with useTableColumnsVirtualization, a focused cell whose column scrolls out of the window stays mounted with its original element until focus leaves the table, moves to another cell, or its column is removed, when focus returns to the Table's scroll area. Focus in a menu that a cell opens keeps the cell's column too. Changing column order, widths, visibility or pinning keeps the first visible column and how far it is scrolled. Tables that do not opt in are unchanged. (#11018)

  • Tables can window their columns: pass useTableColumnsVirtualization({initialViewportWidth}) to Table.virtualization. Table keeps every column definition and width, mounts only the unpinned columns near the inline viewport plus two overscan columns per side, keeps pinned columns mounted, and gives mounted cells full-table aria-colindex values with aria-colcount on the table. When the scroll area is at least as wide as the table's minimum width, every column mounts. Table.virtualization also accepts a list with at most one rows and one columns capability. Unsupported content or structure renders every column with a development warning. Adding or removing the columns capability remounts the table. Tables that do not opt in render as before; their Table import carries about 0.5 KB gzip of column windowing wiring, and the column planner loads only with the hook. (#11014)

  • Add Table infinite loading with useTableInfiniteScroll({hasMore, isLoading, onLoadMore}). One Promise request latch coordinates automatic and manual loading, failures pause automatic retry, and the persistent busy Button owns progress announcements and focus continuity. (#10570)

    Also released in @astryxdesign/cli.

  • Tables can window rows and columns together: pass both useTableRowsVirtualization and useTableColumnsVirtualization to Table.virtualization as a list. Table mounts only the cells near the viewport on both axes, keeps full-table aria-rowindex and aria-colindex values, and keeps a focused cell's row and column mounted while either scrolls away. Tables that do not opt in are unchanged. (#11019)

  • TextArea htmlMaxLength sets the native maxlength attribute, so a form can cap typing in UTF-16 code units, including an SSR form before hydration. It is independent of maxLength, the soft counter, which still counts user-perceived characters and never blocks typing. TextArea adds no truncation or validation of its own, and renders no native maxlength when htmlMaxLength is unset. (#11295)

  • TimeInput: onEntryErrorChange reports why the field rejects typed text, so an app can word its own message. It receives a TimeInputEntryError with a kind that does not depend on the locale (unreadable, or outOfRange for a time before min or after max), the typed text, and, for outOfRange, the ISO time value. It runs each time the shown rejection changes, including when a new min, max, or value, or disabling the field, changes it, never twice for the same rejection, and with null when the rejection ends or the field unmounts while it stands. The native and bottom-sheet surfaces take no typed text, so they never report. (#11413)

  • useTruncation takes isExpanded: pass true while the text is shown in full; the hook keeps reporting whether it is cut off when clamped. A Lightbox caption uses it, so its "less" stays while the caption is open. (#9810)

Fixes

  • AppShell keeps server-rendered content when a screen is narrower than the server assumed. On a phone, the shell learned its mobile layout in an urgent update right after it hydrated. When the content inside the shell had not hydrated yet, because its code streams in or loads later, React rendered that content again in place of its server HTML: a visitor lost scroll position and focus, and images inside loaded twice. The shell now takes the client's breakpoint answer in a transition, which waits for that content to hydrate. A client-rendered app and a correct mobileNav.defaultIsMobile hint behave as before. No API changes. (#11441)

  • BottomSheet syncs its focus return target at commit, and no longer copies its stack view during render. A sheet removed after a render React discards, as a suspended transition does, returns focus to its committed finalFocusRef. (#10918)

  • BottomSheet: when a touch flick closes a sheet, the dim behind it now clears in step with the sheet. Before, the sheet was gone in about a tenth of a second while the dim was still mostly there, and it kept fading for over half a second more. The fade now follows the close spring's own progress. Reduced motion and every other close are unchanged. (#11400)

  • BottomSheet keeps its snap points and its reactivated entrance in state, and syncs its drag's stop resolver at commit. A render React discards that changes snapPoints, as a suspended transition can, no longer changes the stop a released drag rests at. (#10873)

  • ChatComposerInput: an empty input keeps its one-line height and takes typing after a page restyle, for example after an open Dialog that holds a SegmentedControl unmounts. Before, its editable area could collapse to 0px, so a click landed beside it and typing did nothing until a reload. (#11428)

  • useContainerReveal keeps revealed content always visible only when the primary pointer is coarse (a phone or tablet). A touchscreen laptop used with a mouse or trackpad now reveals on hover and keyboard focus like any other mouse device. Previously any touchscreen kept the content visible at rest, so a Thumbnail's hover remove button, Markdown heading links, and every app's hover-revealed row actions never hid. (#11218)

  • A theme's padding written with clamp(), calc(), min(), max() or var() with a fallback now builds as written. The theme compiler splits padding, paddingBlock and paddingInline on the spaces between values only, never on a space inside parentheses or quotes, so padding: clamp(8px, 2vw, 16px) stays one value instead of becoming broken CSS. No API changes. (#11347)

  • DateInput, DateTimeInput: a value that the app passes at an Enter or blur that keeps a rejected date no longer erases it, so the entry meets WCAG 2.2 3.3.1 (Error Identification). Before, when an app set value in the same update as an Enter or blur that kept unreadable, incomplete, nonexistent, or out-of-range date text, as an app does when it restores the date it had before the edit, the field dropped the text, its message, and aria-invalid, and reported null through onEntryErrorChange; a native date control lost its rejection message the same way. Now the text, its rejection, and its message stay at every such Enter or blur, a blur after an Enter included, so the person can correct the entry, and nothing is reported. A later new value replaces the text, as before. No app code changes are needed. (#11470)

  • DateInput, DateTimeInput: in a standalone field, rejected dates now meet WCAG 2.2 1.4.1 (Use of Color) and 3.3.1 (Error Identification); inside an InputGroup they set aria-invalid and are announced. Before, text that is not a date was marked invalid and announced on every keystroke, with no visible message, and Enter or blur reverted it. A native date control flagged each partial year while the year was typed, showed no message, and dropped the rejection when it restored the committed date at blur. Now text that is not a date shows nothing while you type; Enter or blur keeps it in the field and shows "Invalid date" as the field's error status, with aria-invalid and one announcement. Its message replaces a caller status, as the field's other rejections already do; with onEntryErrorChange, a caller error status with a message still wins. A native date control's rejection waits for Enter or blur, shows the out-of-range message a typed date shows, under the same status rules, and stays shown after the control restores the committed date at blur. A shown rejection stays through an edit that leaves the date wrong or unfinished, and clears once the date is valid or empty. What a form posts does not change: while kept text is not a date, a hidden input posts the committed date under the field's name, and the next Enter submits the form. (#11407)

  • SideNav, TopNav, Breadcrumbs: a Ctrl-, Cmd-, Shift- or Alt-click on a link in the mobile navigation drawer opens it the way the browser decides, a new tab for instance, and leaves the drawer open. A plain click still closes it, and so does a modified click that the row's own onClick cancels, since nothing opens elsewhere. (#8979) (#9390)

  • DropdownMenu syncs the refs its show and hide call at commit. After a render React discards, as a suspended transition does, its entrance under a finger holds input as the committed menu says. (#10905)

  • In forced-colors mode (Windows contrast themes), primary and secondary Buttons gain a ButtonText border, and destructive keeps its CanvasText border; in a connected ButtonGroup the solid buttons keep the group's dividers and close the group's outer edge, with no doubled seam. Floating surfaces that separate from the page with a box shadow alone gain a CanvasText border: Popover and every surface usePopover paints (including DropdownMenu), DropdownMenuSubMenu flyouts, ContextMenu, and an isInline Dialog. Forced colors removes fills and box shadows, which left these controls and surfaces without an edge. The borders exist only in forced colors, so nothing changes elsewhere. A theme that sets a solid variant's own border width keeps it, so Gothic's secondary Button stays borderless. (#7677)

  • A layer with several triggers now opens at another trigger when the press on that trigger is the one that closes it, with a mouse or a finger. A press on the open trigger still closes it. (#11337)

  • An anchored layer flush against its trigger, or over its edge, no longer slides over it: its entrance scales in place, as it does for a layer over its trigger's center. A menu at the pointer still slides from the side it lands on. (#11417)

  • An anchored layer that has room to its trigger no longer starts its entrance over it: its first step toward the trigger stops at that room. So a tall tooltip 4 px beside its trigger no longer covers it on its first frame in Safari. (#11396)

  • The layer runtime syncs its close-start and replayed-show refs at commit, not during render, and its keep-open press reads the committed open state or the shown layer. A render React discards no longer leaves its values for later callbacks. (#10912)

  • A light-dismiss layer opened while a press is released no longer closes at that release. A DropdownMenu or ContextMenu row that opens a Popover when chosen with a mouse now leaves it open, as it already did with a finger; the next press outside, or Escape, closes it as before. (#11258)

  • A mouse click on the dark space beside a Lightbox photo now closes the viewer. Before, the viewer stayed open after a click there within the photo's natural width, or within a wider caption's width. (#11354)

  • A single photo's caption in a Lightbox now shows as a gallery's does. It sits in the band at the bottom of the viewer, on the caption's backing, which keeps 4.5:1 over any page behind it. The photo centres above it. A caption longer than two lines ends in "more", which opens it in full over the photo. A single photo with no caption shows no band. (#10284)

  • When a reorderable List row does not render again, its handle's name still follows it. A handle named after its place ("Reorder item N") follows that place when rows above it go or the rows reorder. A label that gains or loses its text renames the handle. (#10815)

  • DropdownMenu, ContextMenu, Selector, TabList, TopNav, SideNav, Breadcrumbs: when a finger picks a menu row, the click guard cancels only that finger's touchend once the menu has named the touch, so another finger's touchend passes. The menu names the touch from the touchstart that follows its pointerdown. A touchend without changedTouches, or a lift whose touch the menu could not name, keeps the old rule: the next touchend is cancelled. (#11164)

  • MoreMenu, InfoTip, PowerSearch (with its PowerSearchToken and PowerSearchFilterEditor defaults), Toast, and InputClearButton now pass host data-* attributes to their own element, as other components do: the trigger button for MoreMenu and InfoTip, the primary control for PowerSearch, the token and editor root for the PowerSearch defaults, the toast element for Toast, and the button for InputClearButton. Component-owned attributes stay with the component. A new test renders every exported component that renders an element of its own with a data-* attribute, and fails when the attribute does not reach the DOM. (#11406)

  • NumberInput: a rejected entry now shows a message and stays in the field, so the field meets WCAG 2.2 1.4.1 (Use of Color) and 3.3.1 (Error Identification). Before, every draft that was not an accepted number, an unfinished one such as - included, set aria-invalid and was announced on each keystroke, while the text only turned secondary; blur then reverted a draft that did not parse, with no message. Now nothing is marked or announced while a person types, because a typed number is complete only at Enter or blur. At Enter or blur, text that is not a number, a fraction when isIntegerOnly, or any number while min is above max stays in the field: the field shows "Invalid number" as its error status, tied to the input by aria-describedby, sets aria-invalid, and announces it once. Inside an InputGroup the rejection sets aria-invalid and is announced. An edit that makes the draft valid or empty clears it at once. A number outside an ordinary range still clamps and commits through onChange. A caller error status with a message still shows in place of the field's message; a warning or success status no longer hides a rejection. What a form posts does not change: while blur keeps a rejected draft, a hidden input posts the committed number as the field showed it before. Pagination's input variant shows the message on its page box's status icon and widens the box beside the typed text while a rejected entry stays, so the bar keeps its height. No app code changes are needed. (#11415)

  • Under a finger, a Popover that overlaps its trigger now grows from where it meets the trigger, as the pointer entrance does. A popover a few pixels over its trigger's side grows from that side, not from below. A popover over its trigger's center grows from that center by scale only. Every other landing grows as before. (#10949)

  • Toast announces the rendered message when a body's text comes only from a component, and from custom layouts (#7853) (#11175)

  • SegmentedControl: where the control has no layout, as in a unit test's DOM, a click on a later segment keeps that segment selected instead of switching to the first segment a moment later. Browsers are unaffected. (#11487)

  • Selector's presentation syncs its show, hide and popover-content refs at commit. After a render React discards, as a suspended transition does, opening the popover runs the committed show. (#10917)

  • Slider syncs its values, change-end callback and touch update refs at commit. After a render React discards, as a suspended transition does, a press on the track reports the committed value to the committed onChangeEnd, and a finger dragging a thumb reports to the committed onChange. (#10913)

  • Table: useTableSortableState calls the onSortChange of the last committed render. Before, a sort click during a transition that had not committed yet called the callback from that pending render. (#11433)

  • TimeInput, DateTimeInput: a rejected typed time now meets WCAG 2.2 1.4.1 (Use of Color) and 3.3.1 (Error Identification). Before, every draft that was not an accepted time, an unfinished one such as 1 included, was marked invalid and announced on each keystroke, shown only as secondary-color text, and blur reverted it with no message; a native time edit outside min or max showed no message and its rejection cleared at blur. Now an unfinished time is never flagged: a time outside min or max shows once it is complete (its hours, both minute digits, both second digits when the field shows seconds, and in 12-hour text its day period unless the hour reads 0 or 13–23), and text that is not a time shows at Enter or blur. The rejected text stays in the field, and a standalone field shows the "Invalid time" message as its error status, with aria-invalid and one announcement; inside an InputGroup the rejection sets aria-invalid and is announced. Enter in TimeInput and in DateTimeInput's time field commits the typed time and still submits a surrounding form; in DateTimeInput's open preset-time list, Enter picks a time as before. A native time control restores the committed time at blur and keeps its rejection shown. A caller error status with a message still shows over the field's message, and the rejection is announced once; a warning or success status no longer hides a rejection. In DateTimeInput, a date rejection's message comes first and a time rejection under it is announced. What a form posts does not change: while blur keeps a rejected TimeInput draft, a hidden input carries the field's name with the committed time. (#11413)

  • TimeInput and DateTimeInput: a bound with no whole minute inside the range keeps its own seconds, so the clamp stays inside the range. Before, clampTime('12:00','23:59:30') answered 23:59 — below the minimum the caller set. In a TimeInput sheet a wheel rest past such a bound committed nothing; in a DateTimeInput sheet, changing the date onto such a bound committed the out-of-range 23:59. (#10159) (#10159)

  • Tooltip's and HoverCard's touch trigger, and Tooltip's handlers with the controlled and enabled flags they carry, sync at commit. After a render React discards, as a suspended transition does, a tap answers with the committed props, and a press outside still closes a shown tooltip. (#10892)

Performance

  • Markdown text transforms that declare requiredSubstrings look for those substrings in one pass over the source. Before, each paragraph searched the rest of the document again, so long Markdown (such as a long streamed chat answer) rendered more slowly with each paragraph. Output is unchanged. (#11403)

Documentation

  • The docs playgrounds for TextInput, TextArea, NumberInput, CheckboxInput, Switch, ProgressBar and StatusDot open with realistic values instead of prop-name placeholders, the Heading playground opens as a level-1 heading instead of inheriting Text's sample with type: 'body', and the ButtonGroup, TabList, SegmentedControl and TopNav playgrounds open with named sample items instead of numbered ones. (#11351)

  • Hook docs for useOutlineFromDOM, so astryx hook useOutlineFromDOM and astryx search return it, and a useOutlineFromDOM — Article example block: an article and an Outline built from its headings through the hook, with a button that adds a section and its linked entry. (#11234)

    Also released in @astryxdesign/cli.

  • ListItem's startContent and endContent docs now say that the content sits inside the row, before the label or after the label and description, not before or after the item. (#11336)

  • MetadataList's guidance now says that assistive technology reads each label with its value, and that the title does not name the list or add a heading. Its prop docs now list className and style, and the label docs say that position: 'start' places a label at the inline start of its value, not on the left. (#11391)

    Also released in @astryxdesign/cli.

@astryxdesign/richtext

New Features

  • RichTextEditorToolbar's Link button, and Cmd/Ctrl+K in the editor, open a popover anchored to the button instead of a modal dialog. The popover holds one URL field, applied with Enter, and Apply, Remove (when the selection is in a link), and Cancel icon buttons with tooltips. It is not modal: Escape or Cancel closes it and returns focus and the selection to the editor, and a URL that cannot be linked shows an error under the field, which keeps focus. The URL rules (sanitizeUrl), hasNewTabLinks, and promptForUrl are unchanged; with promptForUrl the Link button opens no popover, as it opened no dialog. (#8717) The popover opens above the toolbar and flips below it only when there is no room above. Apply and Cancel use the shared check and close icons, so a theme that restyles those icons restyles them too; Remove's glyph is fixed artwork. RICHTEXT_ICON_KEYS is unchanged.

Fixes

  • Pasting into a RichTextEditor table no longer drops the paste or empties cells. A pasted table fills the cells one by one from the caret's cell, or within the selected cells. A merged cell in it fills only the cell where it starts instead of emptying the cells it covered, and a table whose rows differ in length arrives whole. A table pasted together with other content, as a web page copies it, goes into the cell as text instead of being discarded. (#8577)

  • A link typed without a scheme, whose host has a dot or is localhost, followed by a port, such as example.com:8080, www.example.com:8080/docs or localhost:3000, now gets the default https:// like example.com does, instead of being read as an unknown scheme and turned into about:blank (#11042)

@astryxdesign/cli

Experimental APIs

  • astryx experimental theme editor: a new accent or neutral color keeps the base theme's own secondary text shade on selected items and rows, a dropzone, numbered citations and segmented-control labels while that shade still reads at 4.5:1; it moves only when it no longer does, and the note says it was kept readable. A write that repeats what the base theme already shows is no longer listed as a styled change. (#11468)

  • astryx experimental theme editor: the app copy in src/themes/<theme>/ is written exactly as theme build of its source writes it (the build header names that source), so theme build --check and astryx doctor read it as current, and a stable rebuild of it leaves it the editor's (the next change writes it again). A change that fails after its build no longer leaves the refused build in the app copy: the copy is written only once the change is saved. (#11468)

  • astryx experimental theme editor show: a show that is refused (or fails to render) leaves the app copy in src/themes/<theme>/ as it was; the copy is written once show succeeds. System files such as .DS_Store in the copy folder no longer stop the copy; a file of yours there does, and wiring then gives the steps by hand, naming that file. (#11468)

  • astryx experimental theme editor: CSS read with the current specifications' grammar. (#11378)

    • The editor also reads the current specifications' grammar from @csstools/css-syntax-patches-for-csstree (a new dependency, pinned). It adds about 0.1 MB unpacked to the install (one 79 KB JSON file, no dependencies of its own), and loads only when the editor checks a CSS value; no other command loads it, and startup is unchanged. A property MDN marks obsolete but the specifications still define, as browsers ship it, is taken: font-stretch, so the font shorthand split names a command that works.
    • A negative number the current grammar ranges at 0 or more is refused on a part (line-height -1, gap -2px), with the positive value as the suggestion.
    • A color-mix() share outside 0% to 100% is refused for tokens, part colors and the color dials, and the mix with the share at its limit is suggested.
    • A font size or weight given alone to font on a part (small, 1rem, 700) is suggested as font-size or font-weight, never as a family.
    • A relative color that keeps its channels (rgb(from red r g b)) and light-dark() with the same color twice are read as that color. A color-mix() in a space the editor does not mix in, or a relative color that changes its channels, says so and suggests the nearest color it can work out.
  • astryx experimental theme editor: more refusals and notes that are true. (#11378)

    • A negative percentage the current CSS grammar ranges at 0 or more is refused on a part (line-height -50%, gap -10%).
    • A color-mix() share may be written as any CSS percentage (5e1%, +50%, calc(50%)).
    • Line-height tokens (--text-*-leading) take a number with no unit, as Core multiplies them by a text size; 1.5em and 150% suggest 1.5.
    • headings in other letters or as a weight number suggests the word meant (BOLD is bold), and a weight number the nearest weight rung (800 and 900 are heavy), never a lighter one.
    • A whole-theme font under fonts set for body and headings says which role fonts it sits under and how to clear them.
    • A font one of the editor's own presets leads with (Comic Sans MS) gets no "must load" note.
    • text-size more or less at the end of the dial's range suggests the base font size token, never a size the dial refuses.
    • A CSS font value on a part made of keywords (italic bold, bold 1rem) is split into its longhands, never a family; after the size, the rest is the family, as CSS reads it (1rem bold is size 1rem with the family bold).
  • astryx experimental theme editor: number tokens read as CSS reads them. (#11378)

    • Only the tokens Core's stylesheet multiplies by a size inside calc() (the line heights) refuse a unit; weight tokens take the font-weight keywords again (bold, normal), so a theme saved with one stays editable.
    • Numbers are read as the browser reads them: 1.5e0, +1.5, 15E-1 and 1.5EM are numbers, and a color-mix() share like 50.% is refused.
    • A CSS font value on a part with a size and line height (1rem/1.5) or a size written as math (calc(1rem + 2px)) is split into its longhands; a part named twice (bold bold) is refused, never written as a family.
  • astryx experimental theme editor: weights on phones, and values read as CSS reads them. (#11419)

    • Heading and text weights (the headings weight dial, --text-*-weight tokens) now apply on phones too: they are written into the phone rules the base theme sets, as font families are.
    • A token set to var(--x, <fallback>) checks the fallback as the token's own kind.
    • Size tokens and color channels read numbers as CSS does: 1.px and rgb(255. 0 0) are refused (with 1px suggested where that is all), and +4px and 4e+1px are taken.
    • vibrancy suggests the value meant (MORE is more, 70% and 7e1 are 70), and no value when the theme has no color to saturate.
    • The headings result lists its weights in words, not [object Object].
    • The whole-theme and role font take a family alone: a size, a weight or a whole CSS font value is refused with the family, and the base size or headings command where it applies.
  • astryx experimental theme editor set: when a part does not read the token named, the suggestions name only tokens of the same kind (a weight goes to a weight token, never to a size or a line height). A var() fallback is checked wherever it sits (inside calc(), max(), color-mix()), and an empty fallback on a typed token is refused. A size token given a bare number suggests that number in px (16 → 16px), and text-size 20px, 2e1, +20 and 1.25rem suggest text-size 20. (#11419)

  • astryx experimental theme editor: fallbacks, saved font dials and size suggestions. (#11419)

    • A part value's var() fallbacks are checked against the property (padding 'var(--nope, red)' is refused), as token fallbacks are.
    • A saved font dial that set would refuse (a CSS keyword such as inherit, a size, a whole CSS font value) is reported with the commands that fix it, and never built.
    • A size one slip from a valid one suggests that size: 16 px and 16pxx suggest 16px, 1,5rem suggests 1.5rem. text-size suggests the nearest size it takes: 20 px and 125% are 20, and a size past either end is that end.
  • astryx experimental theme editor: font math is accepted as the CSS generic family it is; the generic families are read from the CSS grammar. With an exact --font-size-base set, how 'bigger text' steps that token (14px to 17.5px) instead of offering a text-size the token would mask. A color dial edited by hand to a see-through, system or variable color (#2563ebcc, transparent, Canvas, var(--x)) is refused by name with the undo that removes it, instead of building a gray accent. A value typed with full-width characters, a trailing dot or a CSS comment (18, 18., #2563eb, #2563eb /* brand */) is suggested as the value meant. set refuses a var() loop that closes through a token in the theme's own <theme>.theme.ts. show notes each token the theme's own source sets that a whole-theme dial also writes. (#11419)

  • astryx experimental theme editor: suggestions keep the value meant, and fractional text sizes say how they build. (#11419)

    • An exact token refused only for how its value was typed (a trailing ;, a comment, quotes around it, full-width #) suggests that same value, not a stock one.
    • A font name that needs quotes (Font Awesome 6 Free) on a font token or a part's font-family is suggested quoted, as the font dial writes it.
    • A fractional text-size (15.5) is saved as the whole pixel the type scale builds, and the result says so.
  • astryx experimental theme editor how: mode phrases, questions about what is set, the focus ring, and changes by an amount. (#11378)

    • "The same accent in light and dark" sets both modes, and a trailing "and dark mode only" still makes the theme dark-only.
    • A step that cannot move (badges already fully round) says so, with no command that would be refused.
    • Questions about what is set now or the choices ("how round are the cards now?", "what are the available corner values") get show and the lookup, never a change.
    • "Remove the focus outline" sets its width to 0 and says what that costs; "outline offset" and "focus ring offset" set --focus-outline-offset.
    • "Decrease the radius by 2px" moves the corners from the theme's own radius now (its corners setting applied); a change by an amount on a part points to its current value instead of setting the amount.
    • "Caret color" sets caret-color; placeholder text and the selection highlight say they have no setting.
    • Screen-size, print and device conditions ("below 600px", "on tablets", "the print version") say the editor has no such conditions, instead of reading "600px" as a radius or "tablets" as tables.
    • "Text less black" lightens the text.
    • Each item of a list keeps its own values: "headings 32px bold, body 16px regular, captions 12px" sets the headings and the body as asked, with no contradiction, and "captions" (no part) takes nothing from its neighbors.
  • astryx experimental theme editor how: a negated mode, the CSS cursor, device words beside an ask, and labels. (#11378)

    • "Don't touch dark mode, make the accent orange" changes light mode only.
    • cursor: pointer sets the CSS cursor; only "caret" or "cursor color" is the text cursor's color.
    • A device or print word ("cramped on mobile", "when printing") no longer drops the ask: the rest is answered, with a note that the editor has no such conditions.
    • A question about one part's state or group ("which parts are in the inputs group", "how round are the cards now?") gets that part's lookup as well as show.
    • "Not so round" is one step less; "avoid pure black text" picks a near-black; "flat cards, not flat buttons" changes only the cards.
    • NaNpx and Infinitypx are refused as not numbers; 1e3px is 1000px.
    • Labels are the field label part (a checkbox's or switch's own label when named); "visited links" says a link has no visited state set can name.
    • Tailwind border-2 is a 2px border width and rounded-full a pill; .btn-primary { … } is the primary button only.
    • "Remove all my changes" takes back every setting; a question in a script how cannot read gets no guess.
  • astryx experimental theme editor how: "2px rounder" is a change from the corners now, and "all corners like the buttons" copies the buttons' radius. (#11378)

    • An amount with a comparative ("2px rounder", "2px sharper", "8px larger") is a change from the value now: the theme's corners move from its own current radius (its settings applied, not the base theme's), and a part's corners move from the radius token it reads. Anywhere else ("4px wider") how says set takes the new value instead of setting the amount.
    • "All corners like the buttons" sets every other radius token to the one buttons read.
  • astryx experimental theme editor how: a negated dark mode, undo of what is set, typed times and transforms, and the right targets. (#11419)

    • "Except in dark mode", "but not in dark mode" and "leave dark mode alone" change light mode only; "not pure black" is a near-black and "not pure white" a near-white.
    • "Undo the corners" on a theme that sets no corners says there is nothing to undo.
    • "animation-duration 0s" is 0ms; "translateY(-2px) on hover" is a transform on hover; "shrink headings by 20%" says set takes the new value; "fade in tooltips" says the tooltip has no motion of its own.
    • "Why are my buttons black" is a lookup, never a change; "is my theme valid", "how many dials" and "list every change" get the command that answers them.
    • "radius sm/lg", "setRadius(4)" and "½rem" are read as values; "#22c55e in light, #4ade80 in dark" sets the accent for each mode; two-word CSS color names ("midnight blue") are the CSS color.
    • "Text on the accent is hard to read" sets the on-accent text color that reads in each mode; "5 lines tall text box" sets the text area's height in lines; "dropdown shadow" is the dropdown's menu; "checkboxes green" is the checked fill.
  • astryx experimental theme editor how: an amount in rem or em with a comparative ("0.5rem rounder") is a change from the value now, counted at a 16px root, and "tighter", "roomier", "looser", "bolder" and "heavier" read as comparatives too. Where how cannot work out the new value, it says to set the value now plus or minus the amount. (#11419)

  • astryx experimental theme editor how: a confidence gate, and dislikes, take-backs and dark-mode selectors read. (#11419)

    • When a question is a question ("is the card too round?"), says "tell me" or "but not too", or asks to "stop" something, how gives the lookup and asks for the change in words instead of guessing a write; "explain X" is the lookup of X.
    • "I hate the shadows", "skip …" and "not a fan of …" ask for none of it when that is the whole ask.
    • A change on one member of a group ("the text area") carries --only, so it does not reach the whole group.
    • "3 pixels sharper", "take 2px off" and "remove 4px from" move the value down from where it is.
    • "darkmode", html.dark .card {…} and @media (prefers-color-scheme: dark) {…} scope the change to dark mode.
    • "Take back the shadow change" and "shadows like before" undo only what the theme sets, else say there is nothing to take back.
    • "Pointer cursor on hover" sets the cursor; "opened accordion title" is the open state; "squre" and "eckiger" are square; "cards look flat" adds depth; "darker while being clicked" is the pressed state.
  • astryx experimental theme editor how: every change by an amount or a direction starts from the theme itself, not the base theme. A darker or lighter color starts from the theme's own color in each mode, and says when it is already as dark or as light as it goes; a bigger text size on a part starts from the size the theme set there; a part's corners moved by an amount start from the radius the theme set on it. Token lookups show the theme's own value. (#11419)

  • astryx experimental theme editor how: the confidence gate works per clause, and a one-mode change never removes a mode. (#11419)

    • A clause that is a question, a "tell me", a "stop …" or a "don't touch …" holds back only itself: "stop making the buttons so round, make them square" makes them square, "don't explain, just set the accent to crimson" sets crimson, "don't touch spacing, just make text larger" changes only the text. A whole question ("can the cards be rounder?", "are buttons too round?!") gets the lookup; "can you make …" is an ask.
    • Questions without a question mark ("are my corners too round", "does it use a shadow on cards") are lookups; suggestions ("why not square buttons", "what about a teal accent", "is there a way to …") are asks. Sarcasm ("yeah, because …", "just what I wanted", "…, nice") gets no write.
    • "Enough with X", "quit with X", "nobody asked for X", "who needs X", "loathe X", "X 👎" and "❌ X" ask for none of X; "I hate it" after a description leaves the description as the ask.
    • "Too airy" is tighter, "headings too thin" bolder, "not bright enough" brighter.
    • "Keep the dark mode accent, change only light to violet" sets the light accent; a light-only or dark-only theme only when the ask is about the theme's modes.
    • "Links not underlined until hover" removes the underline and adds it on hover.
  • astryx experimental theme editor how: "bolder" or "a bit lighter" headings move one rung from the headings rung the theme sets (and say so when there is no rung further), and "a bit bigger" text moves a numeric text size by the dial's own step. how <theme> <question> takes a first word that names an existing theme as the theme, as set, show and undo do. (#11419)

  • astryx experimental theme editor how: a write only for a direct ask. A clause that is a condition ("if the corners are round, …", "unless …"), an indirect question ("I wonder if …", "is 4px a good radius", "would #333 work", "should corners be 6px or 8px"), a double negative ("don't not round …") or a check ("can you check if …", "just checking: …") gets the lookup and a request to say it as an ask, not a guessed change. Politeness ("if you can, …") is not a condition. "Can the buttons be rounder?" and "can I get a serif font?" are asks; a question followed by an ask ("whats the padding on cards make it 12", "do badges have borders? remove them either way") answers the ask, with "it" or "them" read as what the question named; "dark page #0b0b0f" sets the dark page. (#11419)

  • astryx experimental theme editor how: "more muted", "pastel", "duller" and "subdued" lower vibrancy and "less muted" raises it (a token name such as --color-background-muted is never read as the word); "less light" or "less thin" headings are one rung bolder, "less heavy" one rung lighter, "less tight" wider letter spacing; a weight question lists only the weight tokens a part reads; "too dark" asks for lighter and "too light" for darker; "no big gaps" is less spacing; sarcasm anywhere in a question ("great, even more shadows, just what I wanted", "…, nice") holds back every clause. (#11419)

  • astryx experimental theme editor how: a write for a clause that reads as an ask: an imperative, a thing with a value, a style word with a part, a wish about a named thing, or a description of the look wanted ("the page is white"). A tag question ("cards have a shadow, right?"), a hypothetical ("imagine …", "consider …"), a condition ("whenever …", "once …", "should the cards …"), sarcasm or a double negative gets the lookup instead. "nuke", "zero out", "sharpen", "flatten", X++ / X-- and X: off say which way to go; "dark.page=#…" and "dark mode only: accent #…" set dark mode. (#11419)

  • astryx experimental theme editor how: "show me …" and "give me …" are lookups. "decrease", "shrink", "trim", "minimize" and "scale down" mean less. "Only when dark mode is on" and "except in dark mode" keep their mode. Removal words in other languages and 🚫 remove; "X are heavy" lightens; "don't touch the buttons" and "leave the corners" never write the excluded part. Inline list numbers ("1. … 2. …") are breaks, a color asked for a part in a long note stays with that part, and "tooltips darker" stays a color. (#11419)

  • astryx experimental theme: the thirteenth pass of fixes. (#11378)

    • undo leaves out what this Core refuses in the step it goes back to. A saved setting that names no design token or CSS property, or a property with no part, is reported.
    • show builds an own change to <name>.theme.ts, and names a theme source that no longer builds. Its colors say where the theme source wins over the generated shade.
    • A setting covered by a later one that spreads over its part is named in set and show.
    • corners 2e1px and +4px are sizes. A state is refused for padding on a part whose padding Core sets from the plain value only. --state disabled also matches a wrapper whose input inside is the one disabled. how <part> lists the states set takes there.
    • new suggestions keep every option given; --like twice is refused. More suggestions run as printed in JSON. The merge snippet's paths start from the generated themes module's folder. The help names experimental theme compile to build an editor theme again.
  • astryx experimental theme editor: corners set for a state (corners pill --on button --state hover) are accepted, and the result names the part's derived radius variable, which Core sets from the plain value only. Padding that a part expands into container spacing is refused with a state, judged on the part named (--only keeps it to one member of a group). focus-within is taken on a part that holds content. A one-mode value that is not a color is refused for that reason first. (#11378) show leaves every file in place when the theme source does not build, and names a token value that is not text. A theme named by a path or in capitals (use ./themes/t, use T) gets the editor-theme answer.

  • astryx experimental theme: show builds a change in a module the theme source imports, and an unreadable build with a broken source line says what to put back. compile of an editor theme from a subfolder names the run from the app root. --state disabled reaches the inner control only on form controls styled on a wrapper, never a whole button group. A step back writes the same color files. (#11378)

  • astryx experimental theme editor: every suggestion a refusal gives runs and does what it says. undo t Corners reads the setting name in any case, and a near name (undo t corner) suggests undo t corners, never a bare undo t that would step back another change. A hand-edited setting suggests a value to set only for a token whose value has the wrong type. A flag given twice suggests its first value that the flag takes (--like neutral, --corners small, --section actions, and for a color dial the first that is a color: --accent banana --accent red suggests --accent red), or drops it. A folder of your own files suggests a free, valid theme name (u-2). After damaged or lost settings, the note says undo steps back to the settings from before the last change, and that the last change itself is not kept. A corrected new keeps every other option given, with --like in another case read as the built-in theme it names. (#11378)

  • astryx experimental theme editor: --state disabled reaches the control inside only on a part that holds one control (a typeahead), never a radio list, input group or field. corners none, sharp, zero and 0% are square; spacing none names the tightest rung. Undoing a part's state setting names the group's setting for the same state. focus-within is taken on a part that holds content in a prop (a chat composer's input) or children (a popover). (#11419) A token in your own theme source that is not text, alone or in a pair, is refused before anything is written, with an example of the token's own type. A helper imported as ./x.js counts when only x.ts exists. A set refused for your own file suggests reading it. The compile help lists the editor-theme refusals.

  • astryx experimental theme editor: an invalid theme name suggests a name new takes (my-neutral for a built-in theme's name, a free numbered name for a taken folder), and says "a theme here already" only for the same name in another case. new on an existing theme suggests set <theme> base <the --like given> and a free name with the same options. A setting listed twice by hand names both values, and setting it to one value or undoing it fixes the list, without stepping back another change. With the built module missing, set and undo say the token changes are not listed, and never that the change shows nothing. (#11419)

  • astryx experimental theme editor show follows every local file the theme source reads, as the build resolves it (./tok to tok/index.tsx, ./c.cjs to c.cts, ./j.jsx to j.tsx), including your own files in the theme's tokens/ folder; only the editor's generated palette files there are left to their own stamps. A pair of values in quotes such as ['600', '700'] is no longer called "not text"; a size given as a number without a unit is named, with an example that passes, and a {light, dark} object is named instead of a raw error. experimental theme template in a folder the theme editor made guards only the editor's own files: an earlier template there is replaced with --overwrite, and for an editor file the skip names a free path instead of --overwrite. undo refuses an --only the setting was not made with, matches a value whatever its comma spacing (rgb(255,0,0)), and undo <theme> mode/base says when the history does not reach back to how the theme was made. A build that fails puts the files back and says nothing was changed, and show no longer says it built a theme its source cannot carry. (#11419)

  • astryx experimental theme editor: a bare number on a length (padding 4) suggests 4px with every flag kept, never the property's reset value. A part named by its class (.astryx-card) or its component (<Card>) suggests the part. What the buttons and surfaces dials write is read from the build, so an exact property under them is named in set and show, and undoing it names the dial that applies. An unknown state suggests the one meant (pressed is active), or how to see the part's states. After a change and its undo, the sheet no longer says it is out of date. (#11419)

  • astryx experimental theme editor show: a light/dark pair with a missing half is named even when the other half holds commas (rgb(0, 0, 0)). A helper the theme source reaches with require() or import x = require() counts as part of the source. A stylesheet or module that another theme's build wrote (compile other.theme.ts --out themes/g/g.css) is built again from the editor's settings. (#11419) A number given to a part property gets px on each bare number (4 8px, 8 / 4, 4 px), within the property's range, and never falls back to its reset value. --on checkboxes names the checks group as how does. corners sharper and spacing roomier step from the value now. A state in another spelling (focusVisible, focus_visible) is that state.

    When themes in the app is a file (or a link to one), every editor command refuses, saying to rename or move it, instead of failing with a raw error.

  • astryx experimental theme: template overwrite on any disk, and undo answers that are true. (#11419)

    • experimental theme template … --overwrite never replaces a theme editor file under another spelling of its name (themes/t/T.theme.ts on a case-insensitive disk, or through a link).
    • undo <theme> mode or base on a theme with no saved change says so, instead of claiming its history does not reach back; after every step is undone it says the value was never changed.
    • undo <theme> headings <word> with only the other half set names the half that is set.
    • A mistyped base suggests only a base this project has installed, and says when the name is a theme made here (which cannot be a base).
    • undo <thing> <value> matches the saved value in either quote style and with any spacing around /.
  • astryx experimental theme editor: a mistyped --like or base suggests only a base the app has installed, and with none near, base none and the installed bases. undo <theme> base or mode after a change and its reverse says it is back at the value the theme was made with. new refuses an option it does not take with its help, like the other editor commands. A theme folder copied or renamed by hand names the files to rename. A padding (or other) shorthand set after its sides on a part removes them, as its note says, and undo brings them back. A hand-edited part property value its CSS grammar refuses is named, like a dial's. show builds again when an output is missing or was edited by hand, as compile --check finds them. (#11419) When your own <theme>.theme.ts does not parse, set, undo and show refuse before writing or removing anything (the palette files under tokens/ stay), with cat of the file; a failed change that removed the tokens/ folder puts it back. A build temp file left by a command stopped mid-build is swept after ten minutes.

  • astryx experimental theme editor show renders its preview pages again only when what they show changed (the CLI, Core, the page or the theme's build): a show with nothing new takes about a second. A built output that cannot be read, or a folder in its place, is refused by name with a command to inspect it, in show and compile alike. Every file the editor's build writes counts when show checks the build, the generated color references too, and a hand edit inside the generated settings module is built over from the settings (and compile refuses it). A check of the outputs that cannot run is no longer read as a match. A theme busy with another command suggests this same command again, once the other ends. (#11419)

  • astryx experimental theme editor: a theme file that is a folder or cannot be read (its settings, source, stylesheet, module or undo history) is named with what is wrong and ls -la <file>, instead of a crash or "damaged"/"not valid JSON"; no message suggests deleting a file (a damaged history is moved out of the theme folder instead). ./t and .\t name the theme t. A mode or base written in other letters (Dark-Only, Neutral) is offered back fixed, and a base is suggested only when it is installed. A missing argument names what the command takes and what it was given (set corners small reads corners as the theme), with its usage and --help. (#11419)

  • astryx experimental theme editor: a settings file whose lifted field is not a list of text is named, with the undo that puts it back, instead of a crash. Setting a whole-theme dial notes each token your own <theme>.theme.ts sets itself, which wins over the dial, so a change that does not show is explained. (#11419)

  • astryx experimental theme editor show renders its pages again when the Core or base theme package it runs from changes, even at the same version (a linked or patched copy), and when a page was edited by hand: the page records a hash of itself beside its render key. A folder in place of an output the build writes for some themes only (the variants types) is refused by name, like the other outputs. (#11419)

  • astryx experimental theme editor: a built type file (<theme>.d.ts, .css.d.ts, .variants.d.ts) replaced by a folder is named with ls -la <file>, never with an --out the editor does not have. A theme name one letter off an existing theme suggests the same command with that theme's name first (set brnad corners small → set brand corners small), and new with the typed name only after. An empty theme name ('', -, an unset variable) says the name is empty and names the themes here instead of new my-theme. (#11419)

  • astryx experimental theme editor: a token your own <theme>.theme.ts sets only in a scope (onDark, components) no longer counts as page-wide, so it never masks a dial or closes a token loop; only its top-level tokens do. A preview page with text added after its render stamp is rendered again. The editor show docs list ERR_FILE_EXISTS and ERR_WRITE_FAILED, say ERR_UNKNOWN_THEME also covers a base theme package that is not installed, and the exit-code row names every refusal. (#11419)

  • astryx experimental theme editor: a render that fails in show (two copies of React, a component that throws) is refused with doctor and "Nothing was written" wherever it happens; outputs that show made again are put back first. Two copies of React are now named as the cause (Core's own React is found from its entry). In a workspace whose root does not use @astryxdesign/core (Core hoisted to the root), the root and folders without a package.json of their own are refused, naming the workspace's apps that use Core with the cd to run from, so no theme lands outside an app. undo <theme> radius-element and undo <theme> padding suggest the token (--radius-element) or the property with its --on <part>, never a step back that undoes another change. (#11419)

  • astryx experimental theme editor: a word that names a JavaScript object built-in (constructor, __proto__, toString and the like), given as a value, a scope, a state, a flag or a how question, gets the same refusal as any other unknown word instead of an ERR_UNKNOWN crash. Every word table the editor reads with typed text now answers only for its own entries. (#11419)

  • astryx experimental theme editor finds the app by one rule: the nearest folder at or above the working folder whose package.json lists @astryxdesign/core (in dependencies, devDependencies or peerDependencies). A workspace member that does not use Core, a subfolder of an app that does not list it, a workspace root with deep globs or any pnpm-workspace.yaml form are refused with where Core resolves from and the workspace's apps that list it, each with the cd to run from; nothing is written into the wrong folder. A nested repository inside an app no longer hides the app above it. (#11440)

  • astryx experimental theme editor: the home folder is the app when its own package.json lists Core; a folder inside node_modules is never the app; a dependency field that is not an object reads as no Core instead of failing; install suggestions use the app's package manager; a Yarn Plug'n'Play app gets its own refusal from any of its folders; the workspace refusal names apps up to six folders deep and writes a folder starting with - as ./-name; a package.json that does not parse is named with the parser's error and its place. (#11440)

  • astryx experimental theme editor: a token set on one part (--on) that reads a whole-theme token is checked for a loop only within the scope it is set in. The part reads its own settings first and the whole theme's after, and a whole-theme value never reads a part's, so --color-accent var(--color-text-primary) with --color-text-primary var(--color-accent) --on top-nav-heading is accepted in either order, and the saved settings no longer leave show and every set refusing; a loop within one part or within the whole theme is still refused. An exact accent (or other fill color) given as var() of another token, a two-color light-dark() or a color function of tokens is read as the color it shows in each mode, so the text on it is picked to read on that color and the notes name it (var(--color-warning) = #ffce2f); a value that still cannot be read as one color is named as unchecked instead of the generated shade. (#11419)

  • astryx experimental theme editor: a theme's own <theme>.theme.ts deleted by hand is written again by show or the next set, which say so, and compile of it suggests editor show. text-size and type name an exact role size they keep (--text-body-size, heading sizes), and a role or whole-theme font names an exact --font-family-<role> it keeps, with the undo that frees it; undoing a role font names that token as what applies. A value pasted with !important says it is not used and suggests the value without it, and the font dial reads a pasted Georgia, serif; or a comment as the font meant. (#11440)

  • astryx experimental theme editor reads the tokens your own <theme>.theme.ts sets from what the build made of it, so any way of writing the file counts (a namespace import, a renamed defineTheme, a template, a spread of a shared object); before its first build the file is read as written, and a change the next build shows to make tokens read each other is refused with the files put back. The base theme's own values are never counted as yours, and they close a token loop and make a part read a token as the base theme's rules do. An accent your theme file sets is the color the palette picks text for, and an exact token your theme file also sets says the file's value shows. (#11440)

  • astryx experimental theme editor: an exact token hand-edited in the settings file to a var() that names no design token (and has no fallback) is named by show and every later command, with the undo that removes it, as set refuses it; it is never built. The font dial reads any run of spaces or tabs inside a family name as one space, so font 'Open Sans' names Open Sans. (#11440)

  • astryx experimental theme editor: a Yarn Plug'n'Play workspace (its .pnp.cjs at the workspace root) gets the Plug'n'Play refusal from a member app or its subfolders; a repository inside an app in the home folder is refused naming that app and its cd, never an install into the repository; a suggested new my-<name> is a free, valid name, and names the user's own my-<name> when there is one; a base typed as its package name (@astryxdesign/theme-butter, theme-butter) or in other letters stays that base in the suggestion, after its install line when it is not installed. (#11440)

  • astryx experimental theme editor: the font, text-size and type dials no longer say your theme file sets the tokens they write; a palette token your theme file sets gets no shade note, and your theme file comes first in every note (before an exact setting, before a dial) and after an undo. A token loop inside one part is refused when it closes through the base theme's or your theme file's rule for that part, a setting on a part that your theme file also sets on it says the file's value shows, and undo counts only the steps it can still go back to. (#11440)

  • astryx experimental theme editor set: a font family list missing a comma ("Open Sans" serif) is refused with the comma put back ("Open Sans", serif), read with css-tree; a suggestion never folds the list into one family holding an escaped quote. A font pasted with its property name (font-family: Georgia, serif;, or a font: shorthand) is read as the family list it names, for the font dial and exact font tokens. A var() with a fallback is never refused as reading nothing; when its name is a slip from a design token, a note says the fallback always shows. (#11440)

  • astryx experimental theme editor: your theme file comes first in more places. A token loop inside a part's state or variant rule is refused when it closes through the part's plain rule (the base theme's or your file's); a part dial, a group or a variant setting that your file sets on a part says so; undoing a part setting your file also sets names the file's value; show names every exact setting your file sets itself; and a note that says to take a token out of your file names the exact setting that then shows. After compile of an edited theme file, show reads the build as current when compile --check would, instead of building it again. (#11453)

  • astryx experimental theme editor: undo <theme> headings Tracking (or TRACKING, Tight) removes the tracking half, never the weight half; a change removes only the pictures the editor took (and only while they are as it wrote them), never a file of the user's, and marks the section sheets show --section made as out of date (in sheetStale) instead of deleting them; a link in the theme folder whose target is gone is named with where it points, by set and by undo alike, instead of a copy step that fails or "Nothing to undo". (#11453)

  • astryx experimental theme editor set: a font file or link (./fonts/My.woff2, Inter.woff2, a font service URL, url(…)) and a name holding a colon are refused as font family names, for the font dial and exact font tokens, with how to load a file (@font-face or a font package) and never a suggestion that quotes them. A value pasted with its property name (color: #e11d48;, font-weight: 700, font-size: 18px) is offered as the value given, a var() with a fallback as its fallback, and light-dark() on a color dial as its light color with a note; font-family: ; with no value is refused as no value. A size suggestion is the token's own default instead of 6px, and a token typed with its colon (--color-accent:) is offered without it first. (#11453)

  • astryx experimental theme editor: its phone rule repeats only your exact font settings, and the notes say what phones show (on top of a base theme, phones show the base theme's type for fonts your file sets as plain tokens; the note says to set them on the theme's typography, or in a rule for the same screens). A [light, dark] pair your theme file gives a token that is not a color (a font, a size, a weight) is refused by name, as --mode is on those tokens, and a font your file sets through typography is seen as the file's. (#11453)

  • astryx experimental theme editor: --png writes a picture only over one the editor took (unchanged since); a file of the user's by that name is named and left as it is, and no picture is taken. The record of the editor's pictures is a file of the theme (<theme>.pictures.json), so it moves and is copied with the theme. A new refused for its name never suggests a dial value the dial refuses: the value is left out and the refusal says so. A section sheet's out-of-date notice names show <theme> --section <section>, the command that makes it again. A theme folder renamed by hand is refused with every step it takes to edit it under the new name: the file renames and the names inside <theme>.theme.ts. (#11453)

  • astryx experimental theme editor set: in a font family name, every Unicode space (a no-break space, a thin space) is one space and zero-width characters are dropped, so Open<no-break space>Sans names Open Sans. A dial's value pasted with its property name (border-radius: pill, font-size: 18px; for text-size, color: #e11d48 for accent) is read as the value, one path for every dial. A declaration pasted as one argument (set b '--color-accent: #e11d48' or --color-accent:#e11d48) sets that token to that value; set's usage now shows the value as [value...], and a set with no value gives the same missing-value error as before. (#11453)

  • astryx experimental theme editor: a [light, dark] pair on a token that is not a color (a shadow too) is refused however your theme file writes it (a constant, as const, satisfies, a spread from an imported module), by set, show and undo and by experimental theme compile and --check. A state rule your theme file sets on a part (:hover) is named like a variant: in set, show (with no contrast caveat for a setting that does not show) and undo. compile of a theme whose saved settings hold a value the editor refuses names the undo that removes it, and the phone note says to set fonts on the theme's typography, or in a rule for the same screens, to keep them on phones. (#11468)

  • astryx experimental theme editor: one entry normalizer reads every setting before any check, typed or saved. Every Unicode space (no-break, thin) is a plain space and zero-width characters go, for every value type; a saved value holding one is named with the clean value to set. A declaration typed whole or split (accent: #e11d48, --color-accent=#e11d48, font:inter, accent: then the value) is the setting and its value, for dials and tokens; a token typed with an em or en dash or as var(--x) is that token, and one typed without its dashes is offered with them. A refused value's suggestion comes from that setting's own check: text-size 14pt suggests the size in pixels, type large or type 18px suggests text-size (never corners), mode lists its modes, and a saved size token suggests its own value with a unit. (#11468)

  • astryx experimental theme editor: an empty theme folder (or one holding only system files such as .DS_Store) is no theme yet: set, show and undo say so and suggest new <theme>, which makes it there, instead of calling it a theme the editor did not make. (#11468)

  • astryx experimental theme editor: new and show end with wiring, the steps that put the theme into this app: astryx theme add <theme> for its app copy (a one-mode theme's mode for the <Theme> too), and what builds it; only when a folder of yours holds the copy's place does it give the root file's imports and the <Theme> by hand. The editor's help says the same. A token set on a group names the members that read it and take the change, and what the others read instead; a part that never reads it is still refused. (#11468)

  • astryx experimental theme editor: every build of a theme (new, set, undo, show, and experimental theme compile of its source) also writes its app copy, src/themes/<theme>/: a standard local theme (descriptor, a source that re-exports the built module, the built module, its stylesheet and font stylesheet), marked as written by the editor and never edited by hand. astryx theme add <theme> then puts the theme into the app, and theme use, remove and list take it as any local theme; new and show say so in wiring. The first time the copy is written (by new, or by the first build of a theme made before), the result names its files (appCopy in JSON); later builds write it quietly. A folder there that is not the editor's own copy is never written, and the wiring gives the imports by hand instead. (#11468)

  • astryx experimental theme editor: a part setting saved for one mode no longer locks a theme switched to one mode (it stays saved, is named as not applying, and applies again with both modes); a part's length (padding, a corner radius, a gap) that reads a design token of another kind (a color, a font, a duration) is refused like the token form, naming a length token that works; and a var() whose name is not a CSS variable (var(color-x), var(-x), var()) is refused for every value, with the repaired form. (#11468)

  • astryx experimental theme editor: a saved setting written in a form the editor cleans up when typed (Corners, var(--radius-element), an em dash, backgroundColor, state Hover) is removed by the undo its refusal suggests, and only that setting: a valid setting the cleaned name also matches (corners = pill, the real hover rule) stays. A saved value's cleaned form is offered as a set line only when set takes it. Curly quotes in any value are the straight ones CSS reads (a font family in curly quotes is no longer saved with the marks in its name), a quoted CSS string keeps its no-break spaces, and any run of dash-like characters at the start of a token name (em or en dash, non-breaking hyphen, minus sign, full-width hyphen) is its two dashes. (#11468)

  • astryx experimental theme: list, add, use, remove and eject given an editor theme with no app copy yet name the same steps editor new and show give in wiring (build it once, then theme add <theme>, and a one-mode theme's mode for the <Theme>). A color change stopped before its settings were saved no longer leaves its color config and tokens/ behind: the editor records the config before it writes it, and the next build removes it when the saved settings set no color; a config of your own is never removed. (#11468)

  • astryx experimental theme editor how: a focus ring request keeps its scope ("focus ring on inputs only" sets the ring's tokens --on inputs, the other parts keep theirs), and an exact amount ("half", "double", "twice", "50% strength", "x0.5") is worked out from the theme's own value: the ring's width, a part's corner radius or its padding when the theme sets one. An amount alone after a comma ("…, at half strength") belongs to the ask before it. A comparison ("cards with twice the padding of buttons") is of the other part's value, when the theme sets one; otherwise the answer is a step and says so. The answer names the value it starts from and, for "strength", that it reads it as the ring's width. (#11490)

  • astryx experimental theme editor how: "header(s)" or "title(s)" with a text word (bolder, bigger, font, weight, size, serif) means the headings' type, and with a surface word (background, bar, border, sticky, height) the app header part; a part that owns its header ("table header") keeps it. "just" and "only" keep the scope they name ("just the headers bolder" changes the headings, never the body text). (#11490)

  • astryx experimental theme editor: a dark-only or light-only theme keeps both halves of its colors, and its mode is the one the app's <Theme> is given. (#11468)

    • The theme's colors keep their light and dark values, so a toast, a lightbox or an overlay Core draws in the other mode stays readable; the generated settings module carries only names Core's types take, so the app type-checks.
    • set <theme> mode dark-only (or light-only) says to give the app's <Theme> mode="dark" (or "light"), and the wiring after theme add says where it goes; the preview passes it already.
    • Settings for the other mode stay out of a one-mode theme and are named, as before.
  • astryx experimental theme editor new ends with how to look at the theme after each change: editor show <name> --png writes themes/<name>/preview.png and sheet.png from real components and changes nothing in the app; open the pictures and check them against what was asked. (#11500)

  • astryx experimental theme editor reads the page-wide tokens of your own <theme>.theme.ts however they are written (inline, a const, a spread, as const or satisfies), from the defineTheme the build loads, never a sibling theme in the same file; a value it cannot read in the file comes from the build. The experimental theme template --overwrite and compile --out help match what they do. (#11419)

  • astryx experimental theme editor: shorthands by what they set, and part values Core can carry. (#11419)

    • A shorthand set after its longhands replaces only the longhands it really sets, read from MDN's data (overflow keeps overflow-wrap, transform keeps transform-origin, flex keeps flex-direction), and a part's background keeps reaching its variants when background-blend-mode comes later.
    • A group's shorthand replaces its members' longhands as a part's does, so the later setting wins either way.
    • On a part whose padding Core writes one variable per side (card), a variant's padding after a side set for every variant is refused, with the commands that work: it would not show.
    • --on cards, dialogs, tabs and other plurals name the part, with the set command.
    • Word hints keep the value given: shadow none is box-shadow none, rounded 8px is corners 8px, bold false is font-weight normal.
  • astryx experimental theme editor: card padding and radius written exactly. (#11419)

    • On a part whose padding Core writes one variable per side (card and the other containers), the editor writes each side itself, split as CSS splits a shorthand: calc(4px + 2px) 8px, clamp(12px, 2vw, 24px) and four different sides reach the part as typed.
    • A variant's padding after a side set for every variant now shows: the editor writes the variant's side variables too, instead of refusing it.
    • A card radius of more than one value (12px 12px 0 0, 10px / 20px) gives each corner its own radius; the content that reaches the card's edges takes one radius, the first corner's, and the result says so.
  • astryx experimental theme editor: variant values win over lifted base values, and card padding keywords written exactly. (#11419)

    • A part's base value lifted onto a variant (so Core's own variant rule does not hide it) now goes before the variant's own declarations, so a longhand or shorthand set for the variant wins (border-color for the destructive button after a base border).
  • astryx experimental theme editor: padding sides and inner radii that win as written. (#11419)

    • A later part padding replaces a side its group set.
    • A part's own multi-value radius keeps the content's radius it gives over a single radius from a group, a dial or the base theme's lifted onto a variant.
  • astryx experimental theme editor: the chat composer's box is reached as it is drawn. (#11419)

    • padding on chat-composer goes to the padding of the visible composer box, with no gap outside it. Background, border, shadow, a side padding or a padding for one density, which would land on the composer's transparent wrapper, are refused with the reason.
  • astryx experimental theme editor: one padding model for parts whose box reads Core's padding variables. (#11440)

    • On card, clickable-card, selectable-card, dialog, drawer, bottom-sheet, section and number-input, each part's padding is worked out per variant and per state from every padding setting in the order made, side by side for each text direction (a physical left is the start in a left-to-right box and the end in a right-to-left one; so is the padding shorthand's left), and written to the variables the box reads. The later setting wins in both directions, a variant or a state out-ranks the base, and the content that reaches the box's edges stays in line.
    • A clickable or selectable card is padded as a card.
    • A part's base rules come before its variants', and its rules for a direction before its states', whatever order the settings were made in.
    • padding on chat-composer takes one length, as Core reads it inside calc(): a length, a variable such as var(--spacing-3) (Core's own default), or calc(), min(), max() or clamp() giving one. Several values, a bare number or a percentage is refused with one that works.
  • astryx experimental theme editor: padding that stays where it is set, and one length wherever Core reads it inside calc(). (#11453)

    • Padding set on a clickable or selectable card, or on a card's variant or state, no longer reaches plain cards nested inside it: each side the narrower rule writes is reset on a plain card inside it, so Core's own fallback holds, and the narrower rule writes each side rather than the whole padding.
    • Every part whose padding Core reads inside calc() (found from Core's own stylesheet: chat-composer, dropdown-menu, context-menu, segmented-control, and an item's inline padding) takes one length there, as chat-composer does, also through a group (--on menus).
    • A padding with --state on a card, dialog or a group of containers is now taken: the padding model writes the state's own sides.
  • astryx experimental theme editor: nested sections that follow their parent, and lengths Core can calculate with. (#11453)

    • A section padding the same on every side is written as the section's whole padding, which Core reads after the padding a parent section passes down, so nested sections keep following their parent.
    • A padding of 0 is written as 0px on parts where Core calculates with it (card, section, dialog, drawer, bottom-sheet); initial and unset leave the padding to Core's own default.
    • A hand edit to the settings file that set would refuse is reported by the next set with the command that removes it, as compile does, instead of being built.
  • astryx experimental theme editor: a part's padding replaces the base theme's, and every padding writes a length Core can calculate with. (#11453)

    • A padding on a card, section, dialog, drawer, bottom-sheet or number-input replaces the base theme's padding there, whichever sides the base theme set: the editor writes it as padding properties Core works out together with the base theme's, where the later one wins.
    • A clickable or selectable card's padding wins over a card's left or right padding in each text direction.
    • A plain part nested in a narrower one is reset only on the sides its own rule leaves unset, so a padding in your own theme source on that part still applies.
    • A zero written any way (0e0, 0.0) is written as 0px; initial and unset name the part's own default padding from Core.
    • A hand-edited padding on one part is reported when a set changes padding on another part too.
  • astryx experimental theme editor: what the editor builds, compile --check takes. (#11468)

    • Two to four corner radii on card, button, dialog, avatar, banner, popover and the other parts with an inner-corner radius are written as CSS properties Core reads (the whole radius, which Core turns into the content's radius, then each corner), never as a private variable, so compile and compile --check pass.
    • A padding on chat-composer is refused with the reason: the box inside its transparent wrapper reads its padding only from a variable of Core's own, which a theme cannot set, and a padding on the wrapper would add a gap outside the box.
  • astryx experimental theme editor: a padding in your own theme source wins over the editor's on the same part, whatever sides each names. (#11490)

    • A padding your <theme>.theme.ts sets on a part's plain rule, a variant or a state wins over an editor padding there (padding 20px --on card under your own card padding of 6px shows 6px), and the result says so, also right after an edit to that file, before any build.
    • An editor padding on a part's plain rule that differs by text direction keeps the plain rule's weight, so any variant, your own included, out-ranks it.
    • padding inherit (and revert) on parts whose padding Core keeps in its own variables is taken like initial and unset, and the result names the default it means.
  • astryx experimental theme editor: the spacing dial keeps the small, medium and large control sizes apart and in order at every step. (#11490)

    • A denser spacing still makes controls shorter by the plain scale, but no size meets the one below it: one that would keeps its own step, scaled, above it, and none goes under 24px (spacing tight on Neutral gives 24px, 27px and 30px, where small and medium both ended at 24px). The dial's help says control heights follow it.
  • astryx experimental theme editor: every picture --png takes carries the editor's stamp (a PNG text chunk naming the theme), so it is known as the editor's even without its record; a picture an earlier version took, with no record yet, is taken over when it is the editor's 1280-pixel window, and the result says so once. Only links among the files the editor reads or writes are refused, each named with where it points; a link to a file of yours (notes, a mockup) is left alone. A new refused for its name leaves out of its suggestion a vibrancy that would change nothing (no color given), and says so. The --png help of new, set, show and undo names the picture record and when no picture is taken. (#11453)

  • astryx experimental theme preview: the route and pages it writes type-check with noUncheckedIndexedAccess, noImplicitOverride and noUnusedLocals. add --path refuses a folder name that is no plain URL segment (a space, an accent, #, %), suggesting a slugged one. Folder names Windows does not allow are refused in full: reserved characters, a trailing dot or space, and COM¹-style device names. The free folder a URL conflict suggests is one whose URL no other page serves. preview app leaves out a temp file a stopped command left in the theme folder. (#11419)

  • astryx experimental theme preview: in the preview's nav, only a plain left click switches the page in place; a Ctrl/Cmd, Shift, Alt or middle click opens the page's URL as a link does. The see line after an editor change now leads with a look that changes nothing in the app (the editor's own preview.html, current after every change it renders, and --png), then the in-app preview page when there is one; adding the preview to the app comes last, as an option. (#11490)

  • astryx experimental theme preview add: a folder name that Next serves at a plain URL (letters, digits and . _ ~ ! $ & ' ( ) + , ; = @ -) is accepted. For any other name, every odd segment is slugged and the suggested folder is a free one. A folder that differs from another only in case is refused, since macOS and Windows treat them as one. In an app with no TypeScript, the result names the install line. When the app's tsconfig turns on noUncheckedIndexedAccess, the result names the template pages written as their template ships. The Colors page shows a seed color as it is stored. (#11419)

  • astryx experimental theme: going back to the preview's bare URL shows its first page, as a reload does. editor undo points its see line at the page about what it reverted. A preview whose URL depends on the app's routing, or whose folder was renamed by hand, is named where it is, by see and by preview list, instead of suggesting a new one. preview add --theme takes a pasted label (theme: t, name: t) as the theme t; an editor command given one refuses it and suggests show t. A change the editor could not render says why in its see line instead of pointing at a preview.html it did not write. (#11490)

  • astryx experimental theme preview: a default page's id beside another page asked for is refused ("drop one of them") instead of dropping the other. preview add colors on a theme with no generated colors says how to get them. preview list marks a page whose file is gone and notes a change that was stopped part way, and add writes a missing page back as added. Running a stopped preview remove again finishes it and exits 0. basePath is certain only when set as a literal on the exported config at the top of next.config; one set in an if or a function, deleted, or added by a wrapper is named as set from code. (#11378)

  • astryx experimental theme preview: the preview route renders its pages only in the browser, so a component that crashes a server render no longer stops next build when Components is the first page. next.config is read the way Next loads it: .js before .mjs, .mts, export {config as default}, a key set after the object, and the last of a repeated key; a config changed in other ways gets a note instead of a guess. Table pieces (TableHeader, TableBody, TableFooter) are no longer shown alone on the Components page. preview add overview (or another default page's id) brings back the default pages that are missing. (#11378)

  • astryx experimental theme preview app --theme <t>: the new app installs the Core and base theme versions this project has, the ones the copied build was made on, so the theme is current after install; a note names them and how to move to this CLI's release. (#11468)

  • astryx experimental theme preview: add rebuilds the theme whenever its build is not current (an output missing, or a build that does not match the settings), the same rule preview app uses, so the route never imports a missing file. A pasted --theme 'theme: t' names the theme t. A distDir with a subfolder blocks only that folder. remove --path on a folder with no preview names the preview there is, with its remove. The preview app help says that with --theme Core and the base theme are pinned to the project's versions. (#11468)

  • astryx experimental theme: every in-app preview page has its own URL (/theme-preview?page=components), which the nav links to, so a link, a reload, the back button or a screenshot reaches any page; preview add, list and app give each page's URL. Every editor change carries a see line: first a look that changes nothing in the app (the editor's preview.html, current after the change, and --png, which takes pictures with no dev server), then the in-app preview page most about it (Colors after a color, Components after a part, Overview otherwise) at its URL when there is a preview, and adding one last, as an option. The --png help says it needs a Playwright or a Chrome and adds a few seconds. (#11490)

  • astryx experimental theme preview: a --path that goes through a file, has a folder name longer than 255 bytes, or is longer than 3,500 bytes, is refused with a reason. A folder that differs from another only in case is refused for preview app and for a --path outside the routes folder too. preview remove leaves a page file it cannot read in place, says so and keeps it recorded. A preview flag given twice with different values is refused. (#11419)

  • astryx experimental theme preview remove: a page the app's own code imports is kept, and the importing file is named, for one page and for the whole preview. The check reads the whole project, following relative imports, @/ and tsconfig path aliases. (#11453)

  • astryx experimental theme preview: popovers shown open on the Overview and Components pages no longer take focus, so the page stays where it opened. The Overview points to the Colors page only when the preview has one, and a color set on a theme whose preview has no Colors page says which preview add adds it. preview remove takes away the empty folders the preview's first add made, never one that was there before. The Overview reads its font line again when the theme changes while the page is open. The preview app starter lists @types/node, so its first npm run dev installs nothing. (#11440)

  • astryx experimental theme preview add: an app frame's exact name as the description (blank, shell-top-nav) is refused with a clear reason and the --template command. An exact template name is called the page named, not the closest page. With no routes folder, the refusal names the Next apps below with a --path into each, and a --path that would make a routes folder with no root layout is refused before writing. Page packages are read from the app the preview is in. The Core stylesheet check starts from the root layout over the preview, route groups included, and follows tsconfig path aliases. (#11440)

  • astryx experimental theme preview add: a short description that names a page template (checkout, hero, a landing page) takes the page build ranks first, instead of being refused. A description that is exactly a template's id or display name adds that page, or says why it was skipped. The Core stylesheet note follows the root layout's imports, so a stylesheet imported from a root styles/ file counts. A theme font whose package the app lacks gets a note with the install line, and the Overview marks a font that is not installed. (#11440)

  • astryx experimental theme preview remove: the check that keeps a page your code imports now reads the whole project (every source file outside installs, build output and dot folders), parses each file's imports, exports, import() and require() calls, template-string ones included, and also guards the route a file re-exports. A project too big to check is refused rather than half-checked. A route changed by hand is told to move out of the preview folder. preview add --template overview|components|colors adds just that page when it is missing, or says why not. Temp files a stopped preview command left are cleaned by the next one and by a full remove. (#11453)

  • astryx experimental theme preview: when both spellings of a folder are already there, the case-clash refusal suggests a new folder beside them, and names preview remove for a preview already inside. A theme-preview.json entry that leads outside the folder (../) is reported as damaged by add and list. remove drops such an entry and deletes nothing outside, and its messages show paths from the project. (#11419)

  • astryx experimental theme preview: the route of a one-mode theme no longer imports the mode switch it does not draw, so apps with noUnusedLocals build. A refused --theme says exactly what leaving it out does in this app: the theme the preview keeps wearing, or the one theme under themes/ it picks. (#11453)

  • astryx experimental theme preview: no demo on the Components page takes focus as it mounts. A dialog part such as DialogHeader shows inside an open inline Dialog, and an open Popover is named. When the preview's theme is gone, its Colors page goes with it. preview remove refuses while a file of yours in the folder imports the preview pages, and its advice for a route changed by hand is to move it out of the folder. preview list with no preview says why add would refuse the folder instead of suggesting it. remove takes away the empty folders add made outside the routes folder too. Every page-template list suggestion names the command the way the app runs the CLI, in --json as in text. (#11453)

  • astryx experimental theme preview: the base theme's fonts stylesheet is imported only while the theme's build still names a family it loads, so a theme on font system or its own fonts fetches nothing it does not use. preview add names every page it writes again, the Colors page included, when the preview switches theme. (#11419)

  • astryx experimental theme preview: add --path refuses an intercepting route folder ((.)x, (..)x, (..)(..)x, (...)x), where a page breaks the whole app. The preview loads the fonts stylesheet of the theme it is built on (Figtree for neutral), and so does the preview app starter, so the Overview shows the family it names. preview list text marks a page whose file is gone as missing, matching --json. (#11419)

  • astryx experimental theme: padding sides by direction, a failed show leaves the folder as it was, and how reads "not dark enough". (#11419)

    • On dropdown-menu, context-menu and segmented-control, one logical padding side is written for each direction (the left in a left-to-right box, the right in a right-to-left one), so it changes that side only; under a state it is one rule per direction (:hover:dir(ltr)), and a later padding or physical side replaces it.
    • show whose render fails puts back every output it touched, removing one it made new and restoring the palette files in tokens/.
    • how "not dark enough" / "not light enough" asks for darker or lighter, not for one mode.
  • astryx experimental theme editor: a card's physical padding side beside others, a failed show beside your own folders, and the busy-lock suggestion from the API. (#11419)

    • A card padding-left or padding-right set beside another side, as a keyword (initial) or as math (calc()), reaches that side.
    • show whose render fails leaves a folder you put in tokens/ alone.
    • When another command holds the theme, the suggestion to run again names the call's own command with every option it got (--only, --like and each dial of new, --png), never the arguments of the process the API runs in; a preview command waiting on another names preview list.
  • astryx experimental theme editor: every set a refusal suggests is now checked the way set checks it, without writing anything, and a suggestion set would refuse is left out. Suggestions carry what was asked instead of a fixed example. headings light --on heading offers headings light and weight 300 on one level. text-size large --on card offers that size on the card. A number token reads the number meant (700px is 700, 1,5 is 1.5, calc(1rem+2px) gets its spaces). A word dial given a number offers its own words, or the nearest type preset for a scale ratio. An invalid color is never copied into the text color token. A color property refuses a var() fallback inside color-mix() that is not a color. how "more washed out colors" lowers vibrancy. (#11419)

  • Icon sets: a project picks one look for every icon. astryx experimental icon use <main> --variant <variant> writes experimental.iconVariant beside experimental.iconSet, in one write, and refuses a variant the main set does not declare; without --variant it removes the key. Each set in the list draws its variant of that name, or its default look when it declares none, and the receipt (icon.use) adds variant, previousVariant, looks, and themeMap. A copied template imports each icon in that look where its set has it, reports the look as icons.variant, and moves an icon a template imports from the main set's own library, or from a listed set in another look (by: 'variant'), to that look. A set's generated module also writes a theme map for each other look an icon draws (themeIconsFilled), and integration check holds it to map. astryx doctor fails when the main set does not declare the variant, and experimental icon --list shows the variant and each set's look. A CLI before 0.7.16 refuses an astryx.config that sets experimental.iconVariant, so use warns when the project's CLI range admits one. An icon-set package whose generated module an earlier CLI wrote, and whose icons draw a look other than the default, fails integration check until it runs experimental icon add --variant <variant> --from <module> --all again; the finding names that run. Projects that do not set experimental.iconSet see no change. (#11499)

  • astryx experimental theme editor counts a base theme as installed only when the project installs it, in its node_modules folders or through Yarn Plug'n'Play, as the app's bundler sees it. A theme found only through NODE_PATH or Node's global folders is no longer taken as installed: new and set base offer to install it instead of writing a theme the app could not build. (#11444)

New Features

  • astryx doctor warns when the @astryxdesign/core peer range of a loaded integration, other than the packages of added themes, which theme-core-peers already checks, excludes the installed Core (integration-core-range). A package made for another Core installs with only a package manager warning, and its components, themes and docs may not work; the warning names the package, its version and range, and the installed Core, and the fix names the release to look for. A project whose other integrations all declare a range that includes its Core gets a passing row naming them; a project where none of them declares one sees no new row. It is a warning, so no project that passed before fails. (#10350)

  • Doc examples take an optional kind: 'demo' | 'setup' (default 'demo'), on component, sub-component and function examples. A setup example is code that cannot run on its own, such as an app setup file, a server route, or a snippet that uses variables defined elsewhere: astryx component <Name> labels it "(setup, code only)", and a docs site shows it as code with no live preview. In astryx component <Name> --json, every example carries its kind. Any other value fails to load with a message that names both kinds. astryx docs authoring explains when to use setup. (#11434)

Fixes

  • In the AI Chat page template, the chevron on the artifact card now points toward the end of the line in right-to-left layouts, as it does in left-to-right. (#11477)

  • In the AI Chat page template, the message list's scrollbar no longer sits under the artifact panel's resize handle. On desktop the chat column keeps a small gap before the handle, so the whole scrollbar scrolls the messages; before, a press on the half of the scrollbar nearest the handle resized the panel. Mobile, where the handle is hidden, is unchanged. (#11473)

  • astryx build starts more whole-page ideas from a page template instead of the empty app shell. When build would start an idea on an app shell and search matched no template directly, a fixed decision over the scores build already computes (plus a fixed word table) gives a whole-page probability; at 0.30 or more, the start is build's best-ranked page template. Ideas with an edit phrase keep the shell, and block suggestions do not change. The decision picks only templates build's word tables list, so an integration's own template is never the lifted start; its other results are unchanged. (#11519)

  • Running any command from a folder that no longer exists now gives a plain error with a cd to the nearest existing folder (text and --json, code ERR_PROJECT_REQUIRED) instead of a stack trace; --help, --version and docs still answer. (#11440)

  • astryx doctor's theme stylesheet check no longer fails on a theme's own files when the theme it extends is added too (theme add d and theme add neutral): a theme source, its build and the editor's generated files only extend the other theme, so they are not asked to import its stylesheet. An app file that imports an added theme's module without its stylesheet still fails the check. (#11506)

  • A refusal longer than a pipe holds (64 KiB) reaches a slow reader whole, such as bash $(…) or a reader that takes its time: the --json envelope stays valid JSON with its code, and the text refusal keeps its last line. The CLI writes its final error output out before it exits. This is a small change to the shared error output, made for the theme editor's long refusals. (#11419)

  • No public API function takes an undocumented __-prefixed option. themeBuild() reads only its documented out, check, and iconsSpecifier options; what theme build hands a batch, family, or package-check build now travels through the CLI's own internal path, so theme build and integration pack-check behave and print exactly as before. A test fails if a hidden option comes back on any exported function. (#11446)

  • Kept catalogs and check results no longer depend on the value of every environment variable when code only lists the variables' names (as a TypeScript transform does). Tools that set a new value per call, such as AI agent harnesses, missed every kept answer on every call; they now hit like any other run. A variable whose value is read still decides the kept answer, including one read inside a kept gather that another one wraps. (#11427)

  • astryx doctor integration validate and astryx integration check name unreachable contribution metadata with forward slashes on every platform. On Windows the path in "Found contribution metadata ... outside every declared integration root" used backslashes, while the fix in the same message used forward slashes. (#11084)

  • A kept entry in the per-user cache whose value is missing or has the wrong shape for what it holds is now worked out again and stored over, instead of being used: a damaged entry could make search, doctor or template --list fail until the folder was cleared. (#11474)

  • astryx theme palette generate and generateTonalPalette() honor darkChromaTaper, so every official theme palette regenerates from its saved config exactly as committed. Neutral's config asks for a muted dark edge on its chromatic families, but the generator dropped the field: 99 of Neutral's 420 colors came out more saturated than the committed ones (blue.dark[25] was #003978, not #253c5a). A dark stop now keeps edgeMultiplier of its in-gamut chroma through throughStop, then recovers along a smoothstep to the standard recipe at recoverAtStop; familyMultipliers sets the edge share for one family. Light ramps, neutral families, the black and white endpoints, and configs without the field generate the same colors as before. A taper with a field it does not read, a stop outside the layout, a family the request does not have, a neutral family, or a multiplier outside 0 to 1 is refused. (#11491)

  • astryx experimental render says why a page ended without an answer: the stage it reached (such as importing the page or rendering on the server), how long it ran, the memory left, and the page's last error output. A page process that loses its channel or reaches its own time limit is reported as that, never as a clean exit. (#11398)

  • theme build: the refusal for a quoted glob keeps --family and --family-key in a family run, and builds its suggestion with the same builder as the build's other refusals of a source; the experimental compile's refusals for the editor's settings file and for a subfolder keep --out (rebased onto the app root for the cd one), so the suggested check reads the output you asked about. (Minimal change to shared code: buildSuggestion gains an optional shape for a glob or a family run, and the build command passes --out to a group's preflight.) (#11461)

  • On Windows, astryx theme build prints install snippets that import the built theme with a working path. The import path joined the output folder with backslashes and kept a stray one after the dropped src/, so the snippet read import { oceanTheme } from './\themes\ocean/ocean';, which is not a valid specifier (and \t is a tab in a JS string). It now reads ./themes/ocean/ocean on every platform. (#11288)

  • From a project subfolder, theme template and theme eject print a build step that works from that folder (cd ../.. && … theme build theme.template.ts when the file is above it), and a blank template path is refused with theme template (no path) suggested, which writes at the project root; an absolute template path is told that paths are read from the current folder. theme build --out warns that it replaces another source's output only once every output may be written, reads a backslash in --out as a folder separator, and its --check "Rebuild with" line uses the project's invocation and quotes a path with a space. Building a theme the theme editor made with theme build still works, as released, and now warns (once per --watch session), naming experimental theme editor show <theme>. A theme file that is a link and fails on a relative import is named with the file it points to, with a build of that file that keeps its outputs in the working folder; no load error shows Node's require stack. (#11422)

  • A command theme build (or experimental theme compile) suggests after refusing a source (a Windows-style path, a folder, a file that is not a theme module, or a build output) keeps the --check, --out and --icons-specifier it was given, so following it still checks instead of writing outputs. This holds for a family check, a theme file that is a link, a plain-object family member and a file that changed while loading, and the suggested command is quoted for the shell it runs in (PowerShell too). (#11461)

  • The install example theme build --detail full (and experimental theme compile --detail full) prints says its paths are relative to a file in src/, and now they are, from whichever folder you run it: an output beside src/, such as themes/ocean/ocean, is imported as ../themes/ocean/ocean, not ./themes/ocean/ocean, which does not resolve from src/. The theme build --family snippet uses the same paths and says the same thing in its header. (#11471)

  • theme build and experimental theme compile refuse a theme that sets a private --_* variable: the build fails with ERR_THEME_INVALID (exit 1, a JSON error envelope) and writes nothing, a --check included. Before, it printed the errors and exited 1 but still wrote the outputs and reported [ok] and a success receipt, so a reader of the JSON saw a pass. (#11475)

  • theme template run from a folder inside a project reads its path from that folder within the project root, and with no path writes theme.template.ts at the project root, as its help says; a backslash in the path separates folders, as for theme eject; astryx init --features theme, run below the project root, writes theme.template.ts at that root too, because it uses the same template step. Outside any project (no package.json in the folder or above it) it writes in the current folder, as released CLIs did, and when it writes the file it warns once on stderr in text mode, naming how to write it at a project root (run it inside a project, or npm init -y first); --json stays silent. A stale theme build --check (and experimental theme compile --check) result carries code: "ERR_THEME_STALE" beside upToDate: false, the code it exits 1 with. A file at an --out path that the build did not write is left alone with its real reason and, when one exists, an --out path where no output of this build exists yet (a new folder when the theme's module beside it is taken); the build never suggests deleting it. The build-beside-the-source suggestion keeps --icons-specifier. --out into a folder the theme editor made, for a theme source outside that folder, writes there as released CLIs did, and warns once on stderr in text mode, naming how to keep the editor's folder to its own theme (build beside the source, or pick another --out); --json stays silent, and --watch prints it once per session, not on every rebuild. (#11389)

  • theme build --check (and experimental theme compile --check) names every output the build writes as checked, the .css.d.ts stylesheet types too. When the only missing output is a .css.d.ts stub, as in projects that keep it out of version control, the check prints one warning line in text mode naming it, and the stub alone does not fail it; --json stays silent and the result is unchanged. Every output the check failed on before still fails it, a missing .d.ts or .variants.d.ts included. theme eject into a subfolder of a folder the theme editor made (themes/g/sub, where themes/g/g.settings.json exists) writes there as released CLIs did, and warns once on stderr in text mode, naming how to keep the editor's folder to its own theme (fork into the project's local themes folder, or pick a path outside the editor's folder); --json stays silent and the receipt is unchanged. (#11410)

  • The dashboard page template typechecks in an app with noUncheckedIndexedAccess (it renders the same), so experimental theme preview add --template dashboard no longer adds a type error to a strict app. themeBuild() no longer takes internal hand-off options for theme build --watch or the private-var exit code; --watch still warns once per session about a theme editor folder. (#11420)

  • astryx theme template --overwrite no longer replaces a theme editor file reached through a link to its folder. (#11419)

  • An installed dependency that ships an Astryx integration manifest which fails to load because a package it requires (a dependencies entry or a peer not marked optional) is missing (a broken install) is now reported as that package's integration issue: component, template, theme, discover and search print the usual one-line warning, and doctor's integration contributions check names it with the load error. Exit codes are unchanged. A command that cannot load also reports why whatever options it was given (component --list used to answer "unknown option"). (#11486)

  • A dry run of astryx upgrade no longer tells you to review a .astryx-conflict file it has not written. When a copied ShadCN composition conflicts with a newer release, the dry run now says that --apply writes the file for review, and an apply still names the file it wrote. The JSON result is unchanged. (#11356)

Performance

  • In a project with integrations, docs keeps the integration check results it gathers, with the theme records they include, so a repeated docs call reads them back instead of checking every integration again. An edit to a doc topic shows on the very next call. doctor's cache row names docs among the commands that keep what they gather. (#11483)

  • Once the per-user cache folder exists, doctor keeps its three checks that read only files (the docs tree, progressive disclosure and the CLI's docs) beside search's catalogs, and reads each back while every file it read is unchanged, so a later doctor skips them (about 0.2 s, more with large integrations). An edit to any doc shows on the very next run. Its cache row names doctor among the commands that keep what they gather, and doctor --help no longer calls it read-only. (#11394)

  • In a project where no integration can load (no Astryx config, no integration manifest of its own, and no installed dependency that ships one), help and commands that don't need the project no longer load it first just to read the commands integrations declare: --help, manifest and blog answer about 65 ms sooner. Output is unchanged. (#11495)

  • In a project with integrations, each integration's discovered themes are kept beside search's catalogs and read back while every file they read is unchanged, so theme list and the other theme commands skip re-reading an integration's themes on later calls (about 0.1 s with a large integration). An edit to a theme, or to a module it imports, shows on the next run. doctor's cache row names the kept theme records. (#11469)

  • In a project with integrations, the whole integration issue list is kept beside search's catalogs (the template and component replacement checks over Core and every integration, as well as each integration's own checks) and read back while every file it read is unchanged, so component, template, theme and search skip those passes on later calls (about 0.1–0.25 s each with a large integration). (#11384)

  • In a project with integrations, template discovery's records are kept beside search's catalogs and read back while every file and folder discovery read is unchanged, so template --list, template <name> and build skip discovering templates on later calls (about 0.1 s with a large integration), and a template added, renamed or edited in an integration shows on the next call. A record that would not read back exactly (a function, a Map, a shared object, -0 and the like) is never kept. doctor's cache row names template discovery's records. (#11393)

  • Importing @astryxdesign/cli/api, as integration codemods and other integration code do, no longer loads Babel, recast, jscodeshift and postcss-selector-parser up front: each loads the first time it is used (about 0.25 s and 350 fewer modules per import). The API's exports are unchanged. (#11432)

  • component --list finds a component that has no folder of its own about 20 ms sooner: one index of Core's folders replaces a check of each folder in turn. Output is unchanged. (#11504)

  • The published CLI reads the icon definitions and built-in theme descriptors it ships from values stored at publish instead of parsing each file, so docs answers about 45 ms sooner and doctor and theme list about 10 ms sooner. An edited or unknown descriptor is parsed as before. Output is unchanged. (#11496)

  • experimental theme commands read each folder of Core's sources once while they build Core's component docs. experimental theme preview app and experimental theme preview add do the same as they write the Overview and Components pages, instead of once per component name. Every run writes and prints the same. (#11426)

Documentation

  • The CLI points agents and people to the experimental theme editor for making or changing a theme, labeled experimental each time: the agent block astryx init writes (its one theme line, which also keeps extending an imported theme before ejecting one to fork it), one added line in astryx init's next steps (its other steps stay), astryx --help, the theme docs (astryx docs theme, the author-a-theme guide, in English and Chinese) and the theme command's help and summary name astryx experimental theme editor new <name> --like neutral, then editor set / editor how, theme add <name> to wire it, and editor show <name> --png to look at each change. theme eject adds one line, experimental theme editor new <name> --like <base> (the ejected theme when it is a built-in base the editor knows and its package is installed, else neutral), and theme palette generate adds one line, experimental theme editor set <name> accent <color>. (#11500)

  • astryx docs styling/tokens-and-setup has a Next.js with webpack section. It shows experimental.optimizePackageImports: ['@astryxdesign/core'] in next.config.mjs and recommends a component entry, such as @astryxdesign/core/Button, in Server Components. Without either, a webpack build ships every Astryx client component to a page whose Server Component imports from the package root. The theme preview starter app that astryx experimental theme preview app copies has the same setting. No API changes. (#11305)

  • A new example block shows useTableColumnsVirtualization: a 121-column Table with a pinned first column that mounts only the columns near its horizontal scroll position. (#11014)

@astryxdesign/theme-butter

Documentation

  • Fix the theme README usage examples to import Theme from @astryxdesign/core/theme instead of the removed XDSTheme alias, and refresh the bundled theme lists in the package index and contributor guide. (#11016)

    Also released in @astryxdesign/theme-chocolate, @astryxdesign/theme-gothic, @astryxdesign/theme-matcha, @astryxdesign/theme-neutral, @astryxdesign/theme-stone, @astryxdesign/theme-y2k.

Contributors

Thanks to everyone who contributed to this release:

@aashish254 @charlie5188 @cixzhang @ejc3 @emilyhorsman @ernestt @HelloOjasMutreja @humbertovirtudes @josephfarina @karlmoriaty @kentonquatman @kevin9327 @korkt-kim @LekhNayak @lzcmian @nynexman4464 @parinith-web @popsiclelmlm @prath47 @shashank03-dev @vjeux

Full Changelog: https://github.com/meta/astryx/compare/v0.7.15...v0.7.16

12 days ago
astryx

v0.7.15

Astryx 0.7.15 — all @astryxdesign/* packages ship at this version.

OLD_VERSION=0.7.14  # replace with the Core version your project uses today
npm install @astryxdesign/core@0.7.15 @astryxdesign/cli@0.7.15  # plus every other @astryxdesign/* package you use, at 0.7.15
npx @astryxdesign/cli upgrade --from "$OLD_VERSION" --apply --path .

Known issue

In Safari/WebKit with default motion, a tall tooltip can briefly cover its trigger for its first entrance frame before settling beside it. Interaction is unaffected; this is fixed in v0.7.16.

@astryxdesign/core

New Features

  • DateInput, DateTimeInput: onEntryErrorChange reports why the field rejects typed text, so an app can word its own message. It receives a DateInputEntryError (exported from both components) with a kind that does not depend on the locale (unreadable, incomplete, nonexistent, outOfRange for a date before min or after max, or unavailable for a day that dateConstraints rules out), the typed text, and, for outOfRange and unavailable, the Gregorian ISO date. It runs each time the rejection changes, including when a new min, max, dateConstraints, or value, a calendar pick, disabling the field, or Enter or blur changes it, and with null when the rejection ends, or when the typed field leaves while its rejection stands, as when a presentation or pointer change shows the native or touch picker. With the callback, an error status that has a message is the message the field shows and announces, and the field's own message applies only without one; a warning or success status never replaces a rejection. When a rejection starts while that error message stays the same, the field announces the message once more for it. Without the callback, nothing else changes. For every DateTimeInput, while a native date control replaces the typed date field, kept typed text and its rejection wait for the typed field, so the field shows the caller's status meanwhile. The native and touch pickers take no typed text, so the callback never reports a rejection there. Fixes #10366. (#11311)

  • SegmentedControl: under a finger, pressing the selected segment lifts its surface as UIKit's does, and it settles back when the finger lets go. A pen lifts it the same way on a touch device. With a mouse on a desktop, or with Reduce Motion, nothing lifts. (#9724)

  • Where the primary pointer is fine, a mouse press on a CheckboxInput or a RadioList option paints at once on pointerdown and fades on release, as a finger's press does, instead of the browser's :active. A right click, or a press on a link or a button inside a RadioList option, does not paint the option. Other controls keep :active for a mouse. (#8696)

Fixes

  • Calendar, DateRangeInput: a two-month calendar whose max falls in the month it would open on now opens with that month in the second pane. Before, with max set to today, or with a selected value starting in max's month, it opened on that month and the next one, and every day of the next month was disabled while the previous month stayed hidden. The first pane still never goes before min's month, an explicit focusDate is shown as given, and a one-month calendar is unchanged. (#11202)

  • Calendar: with hasWeekNumbers, each row shows the ISO 8601 week number of its Thursday, the ISO week that holds most of its days. Before, most rows that start on Sunday or Saturday showed the previous ISO week, so the first two rows of a month could show the same number. Rows that start on Monday are unchanged. (#11271)

  • DateInput, DateTimeInput: a typed date that the calendar does not have, such as February 30, shows "Enter a real date". The message names the calendar, as in "Enter a real date (Persian Calendar)", only when the field's calendar differs from the InternationalizationProvider calendar. A day that dateConstraints rules out shows "Enter an available date". (#11309)

  • DateInput keeps its typed field's and native field's bookkeeping in state. A render React discards, as a suspended transition does, no longer drops typed text, clears a refused date, or reports the same date twice. (#10877)

  • DateTimeInput keeps its native pickers' last value and commit epoch in state. A render React discards, as a suspended transition does, no longer drops a time chosen before the date, clears a refused date or time, or lets the same native edit commit twice. (#10861)

  • Drawer keeps the side it exits to in state. A render React discards, as a suspended transition does, no longer changes the edge a closing drawer slides out to. (#10859)

  • useLinkify and RichTextEditorAutoLinkPlugin: email detection now takes linear time. A long word with no email in it, such as a pasted hash or base64 string, no longer freezes the page for seconds. Valid email addresses link as before, with three exceptions. In the rich-text editor, an address directly after a period no longer links, and a quoted local part ends at the next quote. In useLinkify, a fragment glued to the end of an earlier address no longer links on its own. (#11306)

    Also released in @astryxdesign/richtext.

  • Dialog, CommandPalette, BottomSheet, Lightbox, Drawer, MobileNav, Popover: a Tab pressed with Ctrl or Meta on the first or last control of a modal no longer moves focus to the other end, and the modal no longer cancels the press. A page or a host app that handles Ctrl+Tab or Meta+Tab itself, for example to switch its own tabs, now gets the press on every control, as it already did between the first and the last. Alt+Tab still wraps, because Safari moves focus to each item on Option+Tab. (#11247)

  • Gestures in a same-origin iframe or a Picture-in-Picture window now time touches on that window's own clock. Before, a short tap there could start a long press, because the page's clock reads ahead of the window's. (#11155)

  • Item's swipe actions: under reveal, a fling opens the row at its actions; under either model a fling never fires an entry. On a side with two or more entries, only a drag that starts on the open row fires the outermost entry. The panel shows no entry's colour behind another. The entries fill it, and the entry that fires covers it until the row comes back or holds out. No API changes. (#11054)

  • Keep disabled Item actions focusable (#11169)

  • After the window loses focus during a finger's press, lifting that finger no longer acts on any menu (DropdownMenu, MoreMenu, ContextMenu, Selector, and menus built on the public useMenuPress), and a tap on a menu's trigger still opens it. Under a finger, a row lit by a press that is cancelled (a scroll, a second finger, the window losing focus) now clears, as on iOS. It clears in DropdownMenu and its sub-menus under any presentation, MoreMenu, ContextMenu, Selector's list and the bottom sheet's action list, and in a menu built on the public useMenuPress whose root can take focus. A mouse keeps its highlight. (#8508)

  • The menu press model behind DropdownMenu, ContextMenu and their submenus syncs its option, step and trigger-context refs at commit. A press after a render React discards, as a suspended transition does, now uses the committed options. (#10901)

  • The mobile keyboard hook syncs its enabled, expanded and open flags at commit. After a render React discards, as a suspended transition does, a dismissal and the keyboard's listeners follow the committed options. (#10914)

  • Outline's scroll spy reads its items, its onActiveIdChange and its active item as committed. A render React discards, as a suspended transition does, no longer changes which item a scroll marks or which callback a landed navigation calls. (#10802)

  • Carousel paging: a row that resizes while it settles no longer stops at once or runs back to an earlier page. The settle plays on at its speed, to the last page when it was heading there, and otherwise to the page nearest where it was heading. It ends on that page with no step when it goes back to native scrolling. A resize that leaves the row past its new last page, or that gives the row its first width, still lands it at once on the page it was heading for. (#10592)

  • ResizeHandle reads its region, direction and disabled state as committed. A render React discards, as a suspended transition does, no longer makes a key press resize another region or refuse an enabled handle. (#10803)

  • In a swizzled AppShell, the first Tab into the main region now stops on the region, as in the package's AppShell, when its first link or button sits inside a package scroll region that does not overflow (ScrollableArea, Table, CodeBlock, Tokenizer, BottomSheet), and the reverse. Arrow and Page keys are unchanged. No API changes. (#11225)

  • A disabled Step now reflects disabled on the step-indicator theming target, beside step-label, so a theme can restyle a disabled step's indicator. In a compact horizontal Stepper with on-track indicators, where a disabled step's label is not shown, the indicator is the only target a theme can reach. The step and step-description targets do not gain the selector. (#8997) (#9192)

  • useStreamingText keeps where its reveal restarts in state. A render React discards, as a suspended transition does, no longer restarts a streaming reveal from the start or jumps it to the end. (#10862)

  • Table keeps one array for each list of columns, and for each list of plugins, compared by identity. A render React throws away, as a suspended transition does, can no longer replace the array the table last displayed. The next committed render reuses the array, so rows skip rendering when the columns and plugins match the committed ones. useBaseTablePlugins also keeps its array when the base plugins come in a new array of the same plugins. A column plugin with its own render-time cache, such as the tree plugin, still re-renders every row. (#10940)

  • useTableSortableState sorts only when its data, sort or locale changes. It re-sorted every row on every render of its owner. (#10942)

  • Table sorting with useTableSortableState calls the latest onSortChange. Before, a sort header kept the handler from the last time the sort changed, so a parent that passed a new handler without a sort change had its old handler called, and that handler saw out-of-date state. (#11349)

  • Text and Heading: on Android, the first tap on a button or link inside truncated text opens the truncation tooltip, as on iOS. The tap focused the element first, and that focus took the tap; now only a keyboard focus counts. Tooltip: a tap on a text field inside a tooltip's trigger focuses the field and no longer opens or closes the tooltip. This includes a text field inside truncated text. (#11213)

  • A Timestamp hover card's copy button now shows when the clipboard write fails, as CodeBlock's copy button does: the icon becomes a cross for 1.5 seconds, and the button is named, tooltipped and announces "Failed to copy value to clipboard." It used to do nothing. A theme that maps the timestamp-copy slot keeps its rest glyph during a failure (copied is false). The error itself is not shown. (#10434)

  • ToastViewport syncs its committed list at commit. A toast that only a render React discards showed, such as a suspended transition, reports no onHide when a repeat replaces it and the same handler then dismisses it. (#10902)

  • Tokenizer's sheet numbers its searches and its opens in state. A render React discards, as a suspended transition does, no longer makes a reopen announce a search that never ran. (#10886)

  • In Tokenizer's inline field on a touch screen (a tablet, or presentation="popover" on a phone), removing a token with a finger no longer raises the touch keyboard. A tap on a token's own remove button (Token's ×) used to move focus to the field's input inside the tap, which makes iOS and Android show their keyboard; when the input was not focused before the tap (the keyboard was down), focus now stays where it was, unless the tapped × or another control in its token held focus, when focus moves to the input as before. A tap made while typing, a pen's tap, a mouse click, a key press on the remove button, and a remove control drawn by a custom renderToken still put focus in the input. PowerSearch's filter tokens, which render Token, get the same fix. (#8160)

Documentation

  • Hook docs for useThemeName, so astryx hook useThemeName and astryx search return it, and a useThemeName — Active theme example block: the name of the theme wrapped around the caller. (#11235)

    Also released in @astryxdesign/cli.

  • List's anatomy now names its optional header and drops a description part that List does not render. The ref docs now say that the ref reaches the list element, with or without a header. (#11277)

    Also released in @astryxdesign/cli.

  • DefinedTheme.__componentIcons is now documented public API; its presence and shape follow the compatibility policy. (#11192)

Other Changes

  • Internal: Core's internal touch entry re-exports UIKit's timing table and the motion engine's AnimateOptions and MotionHandle types for Lab's SearchField. Apps import nothing new. (#10956)

  • Internal: the close button name of Lab's SearchField joins Core's message catalog. Apps import nothing new. (#10956)

  • Internal: Core adds two internal hooks that keep a ref at the latest committed prop or callback for event and gesture callbacks, and an internal entry through which Lab reaches them. Outline's scroll spy, ResizeHandle and resizing logic, menu press handling, the mobile keyboard hook, and ToastViewport use them. Apps import nothing new. (#11352)

  • Internal: one shared context request from a long press, a right click, or Shift+F10 and the context-menu key, reporting which input made it, one per gesture. A held finger's hold loses to a claim another gesture already made on that finger, and a control that keeps its press for a hold-repeat owns only its hold, so its right click and Shift+F10 still reach the request. A held pen's own context menu event is refused like a held finger's. The hold is UIKit's long press and requests as it begins. Not exported from the package entry point. (#8670)

  • Internal: Core's internal layer hook drops a dismissal-check field that no component reads. The layer still refuses to reopen during the press that closed it. Apps see no change. (#11332)

  • Internal: Markdown records its streaming fade-in refs as an exception to the runtime's ref rule, with tests that pin why it is harmless. (#10939)

  • Internal: the rule that ends a container's press for a press on a nested control is named for every pointer it covers, and its comments and records say what it does. No change to any component's behavior or API. (#11304)

@astryxdesign/richtext

Fixes

  • RichTextEditor: importing Markdown no longer freezes the page on a block that has a backtick and, below its first line, a line with a |, a dash and a long run of spaces. The check for a table delimiter row now takes linear time; which lines count as delimiter rows is unchanged. (#11338)

@astryxdesign/cli

Experimental APIs

  • astryx experimental theme: the component catalog and the all-components sheet are now built from each component's doc playground. Overlays show open, and each component shows its variants, its checked and disabled states, and a heading's levels. The editor's own copies of these demos are gone. A playground default that lists several elements now renders, so the editor now knows the tokens that radio lists, steppers, carousels and similar components read. (#11350)

  • astryx experimental theme editor: colors and fonts that stay safe and say what they do. (#11244)

    • Undo never deletes the generated color file (tokens/<theme>.palette.ts) when you edited it by hand. The file stays, and the result names it. The theme reads only the selected-shades file (tokens/<theme>.palette-refs.ts), which the editor writes from the generator on every change, so a hand edit to the palette file never shows; the result says so.
    • A focus color (--focus-outline-color) or any other color token set for one mode no longer locks the theme. Every later command checks it as the color it is.
    • A color file counts as edited only when its colors differ. Formatting, a byte order mark, semicolons or a hand edit to palette.config.json without a receipt do not count. When an edit blocks a color change, the refusal says how to keep or discard it and names the command to run next.
    • An exact main color (--color-accent and the other fills, tints and on-colors) reports what it changes around it, including the light-page check, when you set it.
    • The accent tint stays at the official shade. Secondary text on the parts that sit on it (selected items and rows, a dropzone, numbered citations) and on segmented-control labels (which sit on the neutral track) is lifted, as the official Neutral theme lifts it, to the nearest gray that reads at 4.5:1 there and under a hover: the neutral color's shades, else grays grown from the base theme's own secondary text, so every accent gets it. An exact --color-text-secondary, for the whole theme or on one of those parts, wins there, per mode. The contrast check measures those parts with the text they show, at 4.5:1.
    • On a base whose light page is dark (Gothic), the colors take the shades meant for a dark page in light mode too, so text reads on it. See-through exact colors (a hover tint, a fill) are measured as they show over the surface.
    • On a layout without shade 85, the light accent tint takes the lighter neighbor. Shades are shown rounded.
    • font inherit and the other CSS keywords are refused, because the browser would drop the whole font. Generic families (serif, system-ui) and the usual desktop fonts (Arial, Segoe UI) count as system fonts, and the fallback never repeats the family. A family name that is not a plain CSS name (3Dumb, My/Font) is quoted, and @fontsource/<font> names its preset.
  • astryx experimental theme editor: every CSS math function is read by its type, and fonts are judged against the theme build's own list. (#11350)

    • pow(), sqrt(), hypot(), log(), exp(), the trigonometric functions, mod(), rem(), abs(), sign() and round() are accepted where the type they give fits; sqrt(4px) and mod(10px, 3s) are refused.
    • Which system fonts need no install comes from the list astryx theme build warns by, unchanged; the editor only knows which of them ship on one system.
    • font more names the commands that work.
    • Math inside a color is checked too (rgb(calc(1px) 0 0) is refused), and color-mix() needs a share of at least one color. calc(1fr) is refused, since math takes no fr.
    • A token only widths and offsets read (--border-width, --focus-outline-width) refuses a percentage, which those properties drop.
    • A font that ships on one system says which one ("Segoe UI" ships only on Windows), instead of calling it no system font.
    • The check for a hand-edited settings module reads files with Windows line endings.
  • astryx experimental theme editor: every refusal on fonts and part colors names a command that works. (#11350)

    • A dial typed in other letters (Font, FONT) is answered as the dial.
    • A CSS font shorthand on a part (bold 16px/1.5 Georgia, serif) is split into the longhands to set, one command each.
    • A suggestion is never MDN's note in place of a value (dependsOnUserAgent).
    • A bad color on a part's color property suggests a color that works.
  • astryx experimental theme editor: per-mode part colors with commas, both-mode values and every color() space. (#11350)

    • A part color set for one mode, then the other, keeps a color that holds commas (rgb(0, 0, 255)) whole, in either order.
    • A value that already gives both modes (light-dark(…)) is refused with --mode; drop --mode.
    • The color dials read every color() space CSS has: rec2020, a98-rgb, prophoto-rgb and xyz, as well as srgb and display-p3.
  • astryx experimental theme editor: font shorthands on a part split whole, and color mixes read. (#11350)

    • A CSS font value on a part is split into every longhand it holds (font-variant-caps small-caps, font-stretch condensed, style, weight, size, line height, family). A lone keyword goes to its own longhand (bold is font-weight bold), never to font-family, and a system font keyword (caption) gets a family that works.
    • A color-mix() of two fixed colors in srgb, srgb-linear, xyz, oklab or oklch is worked out to the color it gives, so a color dial takes it. A mix the editor cannot work out says so and asks for the mixed color.
  • astryx experimental theme editor: values the browser would drop are refused, and type and font settings do what they say. (#11350)

    • An installed @fontsource/<font> package always loads the font it names.
    • Math inside calc() and the other math functions must be sound (calc(1px banana) is refused).
    • A duration or easing token takes one value, never a list.
    • A line height of 0 is accepted.
    • An exact --color-text-secondary reaches the parts that lift secondary text, with or without a color dial.
    • A font for the body alone keeps the headings' font.
    • After font <x> --on body, later commands keep working.
    • more or less past the last text-size step is refused, instead of going the other way.
    • A dial whose tokens an exact setting holds says so.
    • A token only the base theme's part styles read is no longer called unused.
  • astryx experimental theme editor: what set accepts always loads, and a theme keeps the colors it shows. (#11350)

    • A setting that the theme could not load is refused when you set it, such as a font with !important or a comment.
    • A border or outline width below 0, a duration below 0, and an unquoted url with brackets are refused on a part.
    • Switching a theme to light-only or dark-only lists the colors that visitors in the other mode lose.
    • A change that leaves the colors, the mode and the base as they were keeps the shades the theme already shows, so a theme an earlier editor built keeps its colors, and undo brings them back. The next color change maps every color with the current rules.
  • astryx experimental theme editor: a theme an earlier editor built gets its colors right on the first change. (#11350)

    • The color files are brought up to date before the theme is built from them. A font or corner change on such a theme no longer moves its colors, and the next change no longer moves them back.
    • filter and backdrop-filter take only values the browser reads; filter banana is refused.
    • A font for code alone falls back to a monospace font.
  • astryx experimental theme editor: math, keywords and fonts checked the way the browser reads them. (#11350)

    • Math in calc() and the other math functions must add like types and give the type the value needs. calc(4px + 2), calc(10px / 2px) and padding calc(1s) are refused.
    • A token never takes a CSS-wide keyword (--font-family-body inherit): it would leave the token empty.
    • A font that ships on one system only (Segoe UI, Consolas, Menlo, Helvetica Neue, Roboto) is named as such.
    • font refuses var() and names the role's token that takes it. font geist-sans is the geist preset, and text-size Medium suggests medium.
    • A hand edit to the generated settings module is built over from the settings, as the module says, instead of being kept by the next change.
    • how font no longer says a body font moves the headings.
  • astryx experimental theme editor how: number words, typed token names and states worded as actions. (#11350)

    • Numbers written as words are read: "zero radius everywhere" is square, "twelve pixel corners" 12px, "a two pixel border" 2px, "forty pixels tall", "a quarter rem", "one and a half line height".
    • "least", "minimum", "as little as possible" and "barely any" mean less; "maximum roundness" is a pill.
    • A token typed by name with a value ("--focus-outline-width: 3px", "--color-background-card to #fafafa in light mode") is set exactly. A token name that does not exist is refused with the nearest names, never answered with another token.
    • States worded as actions keep the state: hover, click and press (active), typing and tabbing to (focus), "after I check" (checked), "picked" (selected). "Tab to" no longer names the tab part, and a link's color in one state is set for that state.
    • "Cards the same radius as buttons" gives cards the token buttons read; "buttons twice as round as inputs" changes buttons; "the same color as the danger color" uses that color's token.
    • "Shouldn't links be underlined?" asks for the underline.
    • A pasted h1, h2, h3 { … } includes h1.
  • astryx experimental theme editor how: a mode phrase scopes the ask, and typed tokens are read only when they are real. (#11350)

    • "In dark mode only, cards #111111" sets the cards in dark mode; the theme becomes dark-only only when the ask is about the theme's modes. A clause that only names a mode scopes every clause after it. "Daytime" is light mode; "at night", "night mode" and "OLED" are dark mode (a bare "day" or "night" is not a mode); "dark: …, light: …" sets each mode, and two values for different modes are not a contradiction.
    • A token typed at the start of a question is set exactly; a flag-like word that is no token (--like, --value) is read as words, and a real token in a later clause ("and set --border-width 2px") joins the other changes. A quoted font stack keeps its quotes.
    • "No more than 2px borders" and "at most 2px" are 2px, not none.
    • "Error text" and "labels" with no part name give a lookup, never the whole theme's text.
  • astryx experimental theme editor how: lists of parts, undo wording and typed numbers beside direction words. (#11350)

    • Parts listed before the ask all take it: "cards and dialogs with no shadow", "tooltips and toasts black". "Less padding on cards but more on buttons" answers both, each its own way.
    • "Every part bold except body text" makes the headings bold and leaves the body as it is.
    • "Remove my accent override", "revert the cards to default", "I set the accent to red by mistake" and "put the card shadows back" take back what the theme sets with undo.
    • A typed number beside a direction word is the value: "thicker focus outline, 4px" is 4px, "bigger tap targets, at least 44px" is a 44px minimum height, "8 or so px" is 8px.
  • astryx experimental theme editor how: lists, several colors and per-mode colors. (#11229)

    • Each line of a question, and each item of a bulleted or numbered list, is its own ask. A "no" on one line never reaches the next.
    • Several colors in one question are each kept: "accent #0ea5e9; danger #ef4444; success #22c55e" sets all three. A hex binds to its word whether it comes before or after it ("#0d6efd primary"), "bg=#fff text=#000" splits per color, and "primary" is the accent. "Secondary" has no setting of its own, so it is offered as the secondary button fill.
    • A color that how works out (darker, lighter, more contrast, stronger borders, a darker overlay) is set per mode, each from that mode's own value, so dark mode keeps light text. "More contrast" acts in light and dark mode and says so. "Fails contrast on white" never picks white. Text already at full contrast says so instead of changing nothing.
    • CSS property names read as their properties: letter-spacing, line-height, font-size, font-weight.
    • Better meaning: "drop shadow: x 0, y 4, blur 6, spread -1, " sets that shadow; "ditch" removes; "revert the rounded corners" takes back the corner settings the theme has; "swap A for B" asks for B; a radius of 0 is square; "12 pixels" is exactly 12px; "taller (44px)" sets that height; "too warm" makes the grays cooler; a part with no recorded fill gets darker or lighter through a brightness filter.
    • Typed values are kept: gradients written "from A to B", shadows with several layers, quoted font names and font names before the word "font". Quoted text that is not a font name is read as words.
    • Parts: a table's header, the error banner (--when status:error), "button color" as the text color. Markup and comment text in a question are ignored.
    • Italian, Spanish, Korean, Russian, Arabic and Hindi words for buttons, cards, rounded, shadow, remove and accent are read; "y", "et", "und" and "и" join two asks.
    • A step given twice in one answer runs once. undo is suggested only when there is a change to undo.
    • When font --on body also changes the heading font (the theme sets no heading font), how font says so, and a body font question uses --font-family-body.
    • An answer with no command says why. Commands in an error's suggestions start the same way in JSON as in text.
  • astryx experimental theme editor how: "swap A for B" and "replace A with B" ask for B only when A and B are both colors or both fonts. "Replace the shadow on cards with a border" removes the shadow and adds a border, and "switch off" or "switch the buttons to" no longer names the Switch component. (#11262)

  • astryx experimental theme editor how: right way round, whole font names, and the app's themes from any folder. (#11262)

    • Polarity: "flat cards" removes the cards' shadow ("too flat" adds one); "not round enough" is rounder; "nothing rounded except avatars" is square with round avatars; "shadows too strong" is softer; "borders too dark" is fainter and "too light" stronger, per mode; "not so much padding" is less.
    • "Border radius" in two words is the radius, never the border width. A rem or em radius for the whole theme is set in pixels (0.75rem is 12px), and a % radius keeps its %. "button padding 8" is 8px.
    • Font names of several words are kept: shipped fonts by their full name (DM Sans, IBM Plex Sans, Geist Mono, JetBrains Mono), and other names as typed (Roboto Mono, Source Sans 3). "Sans-serif" is never read as serif.
    • "Off-white" is #fafafa. "Headings too big" changes the heading scale. "#e5e5e5 not pure white" sets #e5e5e5.
    • "1) … 2) …" markers and "Feedback round 2" are not values. primary=#7c3aed radius=10 font=Geist reads each pair. "Body text 16px" is the text size.
    • A link's color is --color-text-accent, the token a link reads; the answer says it also colors other accent text.
    • Parts: table cells, menu items, radio buttons, text areas, selects, skeletons and popovers. A variant word before a part ("success badge") adds --when variant:success. "Card and Dialog" answers both. "Match the header to the sidebar" changes the header. A shadow ask after "serif headings" is for the theme, and a tab's text color is on the tab.
    • "What does spacing more do" is a lookup. Light and dark values in one question set each mode. "I hate the purple, make it orange" sets the accent.
    • A typed text color that one mode's page would make unreadable is set for the other mode only, unless the question asks for every mode or sets the page too. A sequence never gives the page the color it gives the text.
    • how from a subfolder of the app finds the app's themes, like the other editor commands; a picture named from there still opens.
  • astryx experimental theme editor how: a picture named from a subfolder of the app opens from that folder. A number that ends a sentence ("Use radius 8. Shadows off.") is a value, not a list marker; only "N)", or "N." at the start of a line or after a semicolon, starts a list item. "Shadows off" and "borders off" remove them. (#11303)

  • astryx experimental theme editor how: named CSS properties, typed values kept whole, and parts it cannot name. (#11350)

    • A CSS property named in the question is set as named, with its value checked against the property's grammar: caret-color, outline-offset, text-shadow, accent-color, text-underline-offset, font-variant-numeric, text-wrap, transition, padding-block, any property set accepts. It is never swapped for another property.
    • Typed values are kept whole: clamp(), calc(), color-mix(), a four-value radius, line-height: normal. A font size of 0 is refused by name.
    • "Modal" names the dialog again; "carrd" and "caard" are corrected to card, and "lines" is no longer corrected to "links".
    • A typed color is the target: "too bright, use #b91c1c" sets #b91c1c.
    • Gray stops are read ("gray-50", "zinc-900", "slate 100", "neutral-200"); "subtle gray" is a light gray; "charcoal text instead of black" sets a charcoal.
    • Fonts any machine has (Arial, Menlo, Times New Roman, Helvetica Neue, SF Pro) and typed names (Plus Jakarta Sans, Noto Sans, Fira Code) are set as named; "the default Mac font" is the system font.
    • "menu", "select", "list", "divider" and "footer" name their parts, and so do "combobox" (the complex selector) and "accordion" (the collapsible). A part word how cannot name ("image") gets the closest parts and a lookup, never a whole-theme change.
    • "too shadowy" is softer. "On focus" reaches the next clause; "night mode" is dark mode; "dark by default" is a dark-only theme; "lift it with a bigger shadow" is the hover shadow only; "ON: CARD" names the part; "the cards and the dialogs both" answers both.
    • A picture whose name has spaces, as macOS names screenshots, is read as a picture.
    • Questions about the tool get the command that answers them: help, "list every dial", "which token sets the page background?", "explain text-size", "how do I see my changes", "difference between corners and border-radius".
    • The corners lookup's example is a token whose change shows.
  • astryx experimental theme editor how: typed values win without a colon, and words read the right way round. (#11350)

    • A percent inside a gradient or after a color is never an opacity; "50% opacity" still is. A typed gradient with stops ("#2563eb 0% to #9333ea 100%") is kept.
    • A typed value after a property word is used whole, colon or not: gradients, opacity 0.5, border 0, border color transparent, light-dark(), var(), margin 16px, filter: blur(2px), backdrop-filter blur(8px), two-layer shadows. A property name never picks a part ("backdrop-filter" is not the backdrop). A value the property cannot take ("padding NaNpx") is refused by name, and so is a font size of 0.
    • drop-shadow() is kept as typed.
    • "halve", "half", "cut in half" and "x0.8" mean less; "twice" and "double" mean more. "0.5 rem", "1.5 em", "14 px" are one length.
    • "reset", "revert", "back to default", "what it was", "clear the override" with a setting take it back with undo <theme> <setting>, or say the theme does not set it.
    • "lighten up" is lighter, "tighten" is tighter tracking, "knock the contrast down" is less contrast, "open up the leading" is line height, and "the gray text fails contrast, darken it" darkens the secondary text. A clause that only describes the problem ("the hierarchy is flat") is not a change; "or maybe not. actually yes" keeps the ask.
    • "heading color" is the text color. Accordions, comboboxes and notifications name their parts; a part list with no match lists the parts of components that use the word. "error toasts" adds --when type:error, "read-only" is the readonly state, and "loading" or "unchecked" say the part has no such state.
    • CSS named colors such as tomato are read.
  • astryx experimental theme editor how: complete border values, layer opacity, and the right kind of change. (#11350)

    • A border or outline value is complete or goes to the right longhand: "card border 2px" sets border-width (a border with no line style draws nothing), "border width 2px" and "border bottom width 2px" set those properties, "border 0 0 2px" keeps all four widths, a width with a color gets a solid line, and "text-decoration #2563eb" sets text-decoration-color. "border width" never sets the part's width.
    • "shadow opacity 0.2" sets the shadow's alpha, and "background opacity" or "border opacity" make that layer see-through, never the whole part.
    • Font names win over dial words: "Space Grotesk headings" and "headings in Space Mono" set the font.
    • Negation is kept: "should not shrink when pressed" is no scale, "but not bold" is a regular weight, and "why are my headings not bold" asks for bold.
    • The right kind of change: "thinner body text" is a lighter weight; "faster hover transitions" sets transition-duration; "turn off all animations" and "transition duration 300ms everywhere" set the shared duration tokens; a part with no motion of its own, or no fill (the spinner), says so; "dim the white text" dims it; "a border instead of a shadow" removes the shadow and adds the border; "button press scale 0.98" scales on press.
    • Point sizes are read (11pt is 15px), and a rem text size is read in pixels.
    • A heading's color, which comes from its prop, is set with --color-text-primary --on heading; "headings red" is the text color.
    • The divider is a part: its thickness and color are --border-width and --color-border on the divider.
    • "go back to the neutral theme" takes back every setting, one undo each.
    • Small caps, tabular numbers, balanced heading lines, "I can barely see the borders" and "hover does nothing visible" are read; tool questions about using, renaming, versions, files and hand edits get the command that answers them.
    • A fully see-through picture is refused: it has no visible colors.
  • astryx experimental theme editor how: a question names a part by any theming target name in Core's catalog ("drawer", "date range input"), read from Core instead of a list of its own; phrases, groups and variant words stay as overrides. Near misses are corrected with the CLI's shared edit distance. (#11350)

  • astryx experimental theme editor how: "day" is light mode only in a mode phrase ("daytime", "day mode", "in the day"), so "the selected day in the calendar" or "all day" no longer scopes the change to light mode; a token typed in a later clause ("and set --shadow-high 0 4px 12px black") keeps its whole value. (#11350)

  • astryx experimental theme: the tenth pass of fixes. (#11350)

    • --state disabled styles a disabled button, link or tab the way Core marks it (aria-disabled as well as :disabled). A focus or active state on a part that never takes it is refused.
    • A spacing step on a group member set alone starts from the group's value. Refusals keep every scope flag they can (--when, --state, --only). A tab inside a value is white space.
    • Undoing an exact property names the dial that applies after it. A font var(...) refusal suggests only a command that works. A name Windows reserves (con, nul, com1) is refused, with one that works.
    • compile of an editor theme finds the theme from the file, from any folder, and never mistakes a src/themes/<name> folder for one. A damaged settings file is refused as a normal error. Its suggestions run as printed in JSON too.
    • The refusal for list, add, use, remove and eject on an editor theme says how to use its module, and not to edit the generated themes module.
  • astryx experimental theme: the eleventh pass of fixes. (#11350)

    • A local theme with the same name as an editor theme keeps the stable message. Compile guards only the editor's own files, also through a linked folder. The refusal for an editor theme shows a merge snippet that runs, with its stylesheet.
    • A list where one theme goes names each theme. corners more at pill and less at square write nothing. A corner word on buttons or surfaces names the corners dial.
    • A bad property value suggests a value the property takes (no-wrap → nowrap), in the same scope.
    • --state disabled is refused on a part that is never marked disabled. focus-within is refused where nothing inside takes focus. how <part> lists only states set takes there.
    • Option errors suggest a help command that runs as printed in JSON too.
  • astryx experimental theme: a build is judged by its content, never by file times, so a settings module saved again (a format-on-save, a checkout) no longer fails compile --check, and preview app --theme copies a build that matches its settings without building it again. --state disabled on a tab styles it the way Core marks it. (#11350)

  • astryx experimental theme: the third pass of fixes. (#11262)

    • Saved settings are checked on load as set checks them, including where they apply. Each setting the editor no longer accepts is listed with a command that removes it. Each command works on its own, however many are listed. A setting that is not accepted never reaches the build.
    • corners more and less read the base theme's radius in any unit. A saved corners value must be a rung or a pixel size.
    • undo <theme> base and undo <theme> mode go back to what the theme was made with. undo <theme> headings weight|tracking removes that half. A value given to undo is compared as set reads it. undo <theme> <thing> <part> names --on <part>. A blank --on, --when, --state or --mode is refused.
    • If a group setting hides a value, setting the value again moves it last, so it wins. A change that changes nothing writes nothing, the preview included. A newer background wins over an older background-color on every variant. A color on text, a heading or a link is refused, naming the text color token, because the color prop decides it. A quoted string may hold < or >, and a value may span lines.
    • A <theme>.theme.ts that no longer extends its settings is refused, and show says so. A built-in theme's name is refused for new. A theme written by hand or ejected gets a clear refusal from the editor. In both cases the refusal gives a command that works.
    • show rebuilds a damaged build and says so, and show --section --png photographs the section's own sheet. A damaged palette.config.json is made again from the settings, and its text is kept as palette.config.damaged.json. The preview route compiles for names like b-2. preview.html is the same on every build, and a change of letter case alone is not listed as a token change.
    • Refusals show control characters as escapes. Suggested commands quote their words for any shell, and fill in real values. A misspelled property points to the property.
    • In experimental theme, a moved or misspelled subcommand names where it is now. A bare group answers --json with its help. --detail compact and --dense print the status line alone. compile refuses the editor's own settings files and --family for an editor theme. compile --check checks an editor theme by the editor's rules, and waits for a change in progress. The editor's builds write the same headers as compile. Compile errors and stale checks name the experimental commands and never change text that you typed. add, use, remove and eject explain what an editor theme is.
  • astryx experimental theme: the fourth pass of fixes. (#11303)

    • The theme lock is the release cache's lock, renewed while a command runs, so a long build is never taken over from another computer or container. The lock and the part-data cache come from the same node_modules.
    • Corners keep the base theme's proportions between radii, so a step up never makes a container or page radius smaller. Going up the scale never makes any radius smaller, inner corners included. A step on a part moves to the next rung that part shows bigger or smaller. A group setting that covers an earlier part setting says so, and show marks the part setting as not shown.
    • A word for a value names that value (surfaces elevated suggests raised). how base lists installed bases and names the rest with their install line. Values a property does not take (display flexx, padding auto) are refused. A plain value that replaces per-mode values says which it replaced.
    • A base theme updated since the build is noticed, and the theme is built again. A folder where a file goes is refused. When React is missing, show still lists the settings and builds the theme, skips the pages and pictures, and names the install line. The editor's own temp files left by a stopped command are removed.
  • astryx experimental theme: the fifth pass of fixes. (#11303)

    • A theme lock whose holder stopped renewing it is taken over after 30 seconds, whatever computer it names, and a lock renewed or taken a moment before that takeover is put back. compile holds an editor theme's lock while it builds or checks it. The editor's cache stays in the project's node_modules.
    • A corners rung gives a part what it gives the radius token that part reads, pill keeps checkboxes square, and corner sizes written any way are read plainly. Spacing is refused where it shows nothing, and controls stay at least 24px.
    • Saved settings on a part, state or variant that does not exist are refused with the undo that removes them. A damaged mode or base is fixed by setting it. Text contrast is measured for each variant of a part.
    • A one-mode theme changes the build. A per-mode color keeps the other mode as a color. Big files beside a theme are never read. Undo after a gray color writes the same bytes. A render folder a stopped command left is removed once it is ten minutes old. A damaged palette config is copied aside only by a command that writes, and the result names the copy.
  • astryx experimental theme: review follow-ups. (#11303)

    • A corners step on a part moves to the next rung that part shows bigger or smaller, counting a group setting that covers it, and show reports the radius the build writes.
    • CSS values are checked against the property's grammar, so valid values such as 12pt, stretch and env() are taken, a value that is only a var() is taken on any property, and values the browser would drop are refused, with a value that works.
    • A color set for one mode on a part keeps the base theme's own value in the other mode. Text contrast reads the same values.
    • Every saved setting the editor no longer accepts is named, and each suggested undo works while the others are still saved.
    • The CLI now depends on css-tree for these checks. It adds about 2.09 MB unpacked to the install (css-tree 1.36 MB and its mdn-data 0.73 MB), and loads only when the editor checks a CSS value; no other command loads it, and startup is unchanged.
    • show suggests installing React only when React is missing, and the busy message says how long the other command has held the lock.
  • astryx experimental theme: the sixth pass of fixes. (#11350)

    • A theme lock is never taken from a command that still runs: not from one in a container on the same computer, and not from one that is only stopped. A command that lost its lock while stopped writes nothing more, and leaves the files as the command that took the lock left them.
    • A theme whose settings were deleted or damaged, or left by a stopped new, is made again by new with its name. Your own files stay, the damaged file is kept, and undo steps back to the earlier settings.
    • show rebuilds a cut-short stylesheet, and names a picture cut to the window. Demo images open from disk. Leftover temp files are removed.
    • Refusals for a bad argument, a damaged or missing theme file, a busy theme and a missing project lead with a command that runs.
  • astryx experimental theme: the seventh pass of fixes. (#11350)

    • Settings of the wrong shape are recovered like damaged ones: new with the theme's name makes it again and keeps the file. A new that recovers a folder changes nothing until every check has passed.
    • A command that lost its lock while stopped puts nothing back and leaves the other command's files alone.
    • Pill never makes a container or page less round, and a whole group of containers gets the container radius. A step reads every setting that reaches the part. Focus on a text input is named as focus-within.
    • show works without React and says what it skipped. The sheet says when a change made it out of date. A variable that is not a design token needs a fallback, and a value that is only a variable is taken on any property.
    • compile --watch builds an editor theme again.
  • astryx experimental theme: a theme an earlier version built keeps its corner radii until corners or the base change, and undo restores the radii a step was built with, exactly. Each undo step now records those radii; steps an older version wrote are still read. (#11350)

  • astryx experimental theme: the ninth pass of fixes. (#11350)

    • The undo history is never deleted by a recovering new, and a stopped new's leftover marker is removed by the next change.
    • A theme typed as a file name (t.theme.ts) is refused with a suggestion of the theme it names. An undo that is refused suggests undos.
    • Undoing a radius token rebuilds the corners without it. Inner corners never get smaller going up the scale. A step never moves a part the other way, starts from an exact border-radius, and for a variant starts from the part's plain setting.
    • A --state that a part never takes (disabled on a card, which is never marked disabled) is refused and says what to do.
    • undo names the setting that applies after it. Refusals suggest the nearest value that works.
    • A command that lost its theme lock publishes no build output. A change that changes nothing rebuilds a build left stale.
  • astryx experimental theme preview: add refuses a folder whose URL the app's own route handler or page already serves, including a route.ts or page.jsx in the folder itself and a route.ts in a route group. add --path and app refuse Next's build folder (.next/, out/ or the distDir next.config names), which the next build empties. On the Components page, a component as tall as the window scrolls in a bounded frame, and each cell is only as tall as its content. (#11350)

  • astryx experimental theme preview add: next.config is read from its syntax, not its text. Comments, keys inside other objects and constants are read as Next reads them. A pageExtensions list built from a spread no longer refuses the app; the result notes that only running the config tells. basePath and distDir are read the same way. (#11350)

  • astryx experimental theme preview: last fixes. (#11262)

    • Install suggestions name npm when nothing says which package manager the app uses, never npx add or npx install.
    • A change stopped before its route was written is undone, so list shows only the pages the route shows. A refusal says what finishing a stopped change wrote. editor set names a preview it left as it was while such a change waits. A damaged step record no longer leaves temp files behind. A move of an older preview's pages stopped part way is finished: the old copies go once they still hold what the move planned to remove.
    • remove --path at a folder that holds the app suggests a plain remove.
    • Suggested --path and preview app folders are written from the folder the command ran in.
    • preview app -app says to put the folder after --.
  • astryx experimental theme preview: running prettier over the preview, with any options, no longer makes its files count as changed by hand. The check compares the code, not its formatting. An edit to code, a string or a comment still counts. (#11303)

  • astryx experimental theme preview add: only an optional catch-all route ([[...slug]]) in or at the preview's URL is refused; a required one ([...slug]) never serves the folder's own URL. A root layout inside nested route groups is found. basePath is read with comments left out, and one set from code is named in the URL to open. (#11350)

  • astryx experimental theme preview: safer refusals and recovery. (#11209)

    • No refusal suggests deleting files: a damaged theme-preview.json, a page changed by hand, or a file in the way gets plain instructions (fix it by hand, rename it, or move it into a folder of its own) instead.
    • --path at the project root, in src/ or at the routes folder itself is refused: those folders hold the app. An older preview found there is named, with the remove that clears it.
    • A whole remove stops, deleting nothing, when page.tsx was changed by hand, since it imports the pages.
    • A formatter run no longer counts as a change by hand. editor set and show name the preview files they left as they were (previewStale).
    • A recorded page whose file is gone is written again, or left out of the nav, so the route always builds. Moved pages get a hash. A failed write leaves no temp file or empty folder, and says which step failed. A read-only file keeps its mode.
    • preview app --theme waits for other commands changing that theme, and its retry suggestion keeps --theme.
  • astryx experimental theme: with an older installed Core whose component docs have no playground defaults, the catalog now builds each component's demo from its doc's props. Required props get a sample, and a group gets three of the items its doc suggests. The contact sheet, the Components page, how answers and contrast checks keep every component. A part with its own doc, such as Heading, now shows on its own. An open overlay shows once on the pages people see, and a switched-off switch or checkbox is labeled for the state it shows. preview list marks a theme whose folder is gone (themeMissing). After a damaged step record, a page file in no record is named, never deleted. --png with a browser that is installed but fails now names the error. (#11350)

  • astryx experimental theme preview: removes that never touch project files, and previews only where Next serves them. (#11229)

    • remove deletes only the route file, the record and recorded page files, and only when a recorded hash shows they are as the preview wrote them. Any other file the record names, and any file with no recorded hash, is kept and named.
    • add refuses a folder that holds a package.json, a URL another page already serves, an app whose next.config leaves out tsx page files, src/app/ while app/ is what Next serves, and a folder outside the root layout. An app with its root layout in [locale]/ gets the preview there.
    • A template's needs come from its real imports, never words in comments or strings. A package the app does not name gets the command that adds it.
    • A theme with no build is built only after every check passed, holding the theme's lock, with a note. An edit inside a string counts as a change by hand.
    • editor show and preview app run when the lock folder cannot be written.
    • A damaged record in a folder that holds the app names renaming the record. A record with a byte-order mark is read. list says when the theme is gone. Base themes count as package themes, installed or not. --template takes any case. preview app refuses public/ and names Windows does not allow. An empty route group folder goes with the preview.
  • astryx experimental theme preview: a preview change stopped part way (a kill, a crash) is finished by the next preview add or preview remove. The change writes a step record before its first rename. The next command removes leftover temp files, records the preview's own files, keeps a page whose new file never landed at its old place, and says so in a note. (#11262)

  • astryx experimental theme preview add: in an app with a root layout in each route group, the preview is accepted under any of them, and a refusal names each one. (#11262)

  • astryx experimental theme preview: the Components page now uses the playground a doc gives a component in its own entry, so Stack shows its cards. A nav that opens over the page, such as MobileNav, is left out like a drawer. The Text cell now suggests the text color token, a command that works. A divider fills its row, and a one-pixel line no longer counts as showing nothing. For an app folder named like a flag, preview app prints cd ./-k. (#11350)

  • astryx experimental theme preview add: refuses a folder with an optional catch-all route ([[...slug]]) in it or at its URL, an app whose routes folder has no root layout anywhere, and a default or recorded preview folder that leads outside the project through a link. The URL to open now starts with the basePath next.config sets. When the app never imports Core's stylesheet, the result names the import line to add. When a theme loses its last color under a Colors page changed by hand, the page is kept and the palette module it imports becomes an empty stand-in, so the app still builds, and the result says so. A link inside the preview folder that leads outside is refused, naming the link. (#11350)

  • astryx experimental theme preview add: the refusal for a next.config whose pageExtensions leaves out tsx now suggests commands: the same add once tsx is listed, or preview app for a new app of its own. (#11350)

  • astryx experimental theme editor reads CSS from one source instead of its own lists. Property names and value grammar now come from css-tree. The neutral color's shades come from the shipped Neutral theme, and system fonts from the list astryx theme build already uses. (#11350)

    • Six newer standard properties (timeline-trigger-range and its relatives) are accepted. An outline style in capitals (SOLID) is accepted.

New Features

  • The integration file takes an optional logo ({light, dark?}, paths to images the package ships): the logo catalogs show beside the package name. When the integration file has no logo, the check uses package.json marketplace.logo. astryx integration check adds two notes that say what a catalog needs to list a package: package_without_logo, when the logo names no PNG, JPEG, WebP or shapes-only SVG of at most 512 KB that the package ships, and package_without_example, when the package has components but no example block. A package of themes, docs or codemods alone needs no example, and a package of icon sets alone draws neither note. Both are information only: they fail no check, with or without --strict or --next. The new "Get your package ready to list" section of astryx docs authoring/ship/checks shows how to add both. (#11278)

  • integration verify adds an information line, in text output only, after a successful pack whose manifest is astryx.integration.ts: the CLI transpiles it on first read on each machine, so shipping astryx.integration.mjs loads faster (pointing at astryx docs authoring/ship/publishing keep-private-files-out). It changes neither the result nor the exit code. (#11382)

Fixes

  • In a run under Yarn Plug'n'Play's loader, such as yarn astryx, doctor's search catalog cache row still names the folder and its size and adds that such a run keeps no catalogs, as search and build gather every time there. The plain astryx command in the same project keeps them as usual. (#11299)

  • The code the CLI transpiles from TypeScript files (an integration's astryx.integration.ts, a TypeScript config, codemod or template doc) is kept in the CLI's per-user cache folder (~/.cache/astryx/jiti on Linux, ~/Library/Caches/astryx/jiti on macOS), made for the user alone, instead of the system temp folder, which on Linux every account on a machine shares; on macOS, where that folder is already per-user, the copy now survives temp clean-ups. A folder another account owns or can write to is not used; the transpiled code is then kept in memory only. Emptying the temp folder no longer makes the next run transpile everything again. (#11360)

  • A catalog search or build kept between runs now records which inputs it is for and is used only for those, so a cache file copied under another entry's name is never used. (#11301)

  • A run under Yarn Plug'n'Play's loader, such as yarn astryx, no longer reads a search catalog that a plain astryx run kept: it gathers every time, as doctor says, since its modules resolve through Plug'n'Play, which a kept catalog's checks do not follow. (#11344)

  • The release cache's lock takeover checks the owner record of the lock it moved aside. A lock another command took in the moment between the check and the move is put back instead of removed, and the takeover waits for it. (#11313)

  • astryx swizzle reports ERR_WRITE_FAILED when its output path is a file on the minimum supported Node version. The original file stays unchanged, and the error identifies the failed write relative to the project instead of exposing a cleanup error. (#11186)

  • theme build --out warns, naming both sources, when it replaces the built output of another theme source that still exists; an output there is its own when its header names this source, or names a source that no longer exists. A build output's header names its source from the project root of the outputs, so a build from any folder writes the same outputs and --check agrees with it from every folder; the source a header names is matched exactly. Builds to the default paths beside the source are unchanged. An --out path that does not end in .css still builds, with a warning, and the import line the build prints names the file as written. Several themes that build the same outputs are refused before any of them writes. The next steps after theme eject and theme template quote their paths, and theme template on a file --overwrite would refuse names a free path instead (its receipt adds overwritable and alternative). A damaged generated theme module names how to rebuild it (delete it, then theme add each theme it held), a default that is not added names theme use with an added theme, and a folder where the module goes is refused in plain words. A --family member that is a plain object says so and names a build of it on its own. (#11346)

  • Every refusal of theme use, theme remove, theme add, theme eject, theme template, theme targets, theme build and theme list names a command that works. theme use and theme remove of a theme that is not added suggest theme add <slug> only when that theme exists, and theme list otherwise; removing the default names theme use with another added theme. Unknown slugs in theme add and theme eject suggest whole commands for the closest themes, theme targets with no match suggests the full list, and refused paths, flag combinations and loads suggest the command that runs. A theme that imports a package the app lacks names the install command in theme build, without absolute paths, and in doctor, followed by the rebuild command of any other stale local theme. theme use or theme remove of a theme that is not added and that more than one package provides names theme add <slug> --package <package> for each. theme build --check text lists the checked outputs, as the JSON does. (#11346)

  • theme build refuses one of its own outputs (.css, .d.ts, .js) or a file of a kind no theme module has (a plain .css file) before loading it, and names the theme source to build instead of a loader error. A missing input that is a bare theme name (theme build brand) or a path with backslashes suggests the theme source that exists. theme eject from a subfolder forks into the project's src/themes, as theme list and theme add read it, and reads a relative path from the working folder. theme targets .astryx-switch reads the class as the output prints it. The experimental theme copies no longer reword text you typed that holds astryx theme …. (#11323)

  • theme build --watch (and experimental theme compile --watch, whose help says so too) rebuilds when the theme source or any local file it imports changes (an ejected fork's palettes, a split theme), not only the entry file. theme eject refuses the local themes folder itself, which made theme list and theme add fail for every theme, and a folder in it named after another theme, which they skipped; it names the default target. A fork into a new folder in the local themes folder takes the folder's name: its entry, descriptor and export are renamed to the build's binding (src/themes/acme-ocean → acmeOceanTheme.ts, acmeOceanTheme), so theme list, theme build and theme add find it as that theme; a backslash in its path separates folders. --package on theme add, theme list and theme eject also takes the package a bundled theme is imported from (@astryxdesign/theme-butter), the name the CLI records and prints. A bundled theme whose package is missing names the install command and then the add. An unknown subcommand of theme or experimental suggests whole commands, closest first, and theme editor / theme preview point at experimental theme editor / experimental theme preview. The discovery refusals for a theme descriptor outside a theme folder, or in a folder with another name, say where to move the files. (#11375)

Performance

  • build keeps its block picker's per-block vectors beside the kept search catalog and reads them back on a later run with the same catalog, instead of working them out on every call. Every answer is the same. (#11342)

  • Checking whether a kept search catalog is still fresh no longer builds an error for each absent path it looked up, so warm search and build start a little faster. Every answer is the same. (#11316)

  • component, template, theme, discover and search keep each integration's contribution-check results in the per-user cache folder beside search's catalogs, and read them back while every file, folder and environment variable the checks read is unchanged, instead of checking the integration again on every call. On a project with a large integration this takes about 0.2–0.3 s off each of these commands. doctor's cache row names the commands that keep what they gather. (#11367)

  • search and build keep the catalog they gather in a private folder in the user's cache folder (catalogs, beside the release cache), and a later run uses it only while every file and folder it read, every module it loaded, and every environment variable it read (kept as a digest, never its value) are unchanged. Otherwise the run gathers fresh, exactly as before. A run with unchanged inputs answers in about a third of the time, with the same output. Only a published CLI keeps catalogs, and not where folder ownership cannot be checked (Windows) or under Yarn Plug'n'Play; doctor lists the folder and its size, and deleting the folder clears it. (#11251)

  • search keeps the index it builds over a kept catalog beside that catalog, so a later search over the same catalog reads the index back instead of building it again. The index is a function of the catalog's text, so it reads back exactly as built; it is keyed by that text and by the CLI code and files that build it (the CLI files the catalog depends on, the index's own code and the component cards), so an edit to an installed copy, as patch-package or a hand edit leaves it, is never answered from an index built before the edit. It is kept only where catalogs are kept. Every search prints the same answer. (#11300)

  • Contribution validation now loads @babel/parser only when it parses a contribution's source, so a run where nothing else loads the parser, such as component <Name> --json or hook --list, no longer loads it. Every command prints the same output. (#11256)

  • jiti now loads on first use instead of with every command, and component --json no longer loads the theme API, which only component's text output needs, so commands that never need them start faster. Every command prints the same output. (#11242)

  • search (and build, which ranks with it) splits each name into words, lowercases each description, and builds each query term's word pattern once per run instead of once per candidate and term. Every result is the same. (#11243)

  • In a project with no integration (no Astryx config, not an integration itself, and no installed dependency that ships one), component, template, theme and discover no longer record their run for kept check results, so they skip that work entirely (about 15–40 ms each). (#11380)

  • The stored doc exports now cover Core's docs and the CLI's own command and API docs too, and a read parses only the docs it needs. Any doc file whose text matches a stored doc reads the stored exports, since such a doc's exports depend on its text alone. search and build print the same output faster. (#11240)

  • astryx manifest reads the manifest stored in the package when it is published, instead of loading every command to build it. The stored manifest is what the fully loaded CLI builds, and the publish step checks it is the same beside each package manager's lockfile, so while every command loads manifest prints the same output. A command whose module fails to load is listed in the published manifest under its normal entry, instead of being marked as failed; running that command still reports the failure. (#11233)

  • doctor reads its audit of the CLI's own authoring docs from a copy stored in the package when it is published, instead of parsing the CLI's authoring sources on every run. The copy is used only while the package version and every doc, type file and folder the audit reads are unchanged, so an installed CLI's doctor reports the same thing. (#11232)

  • build reads which packages a template Astryx ships imports from a copy stored when the package is published, instead of parsing the template's source on every call. Any other template, such as an integration's, is parsed as before, and every answer is the same. (#11315)

  • upgrade --from a version before 0.7.0 skips the theme-alias codemod on source files that name none of the removed theme targets, as it already skips other codemods on files they cannot change. Every run writes and prints the same. (#11265)

  • upgrade skips a codemod on a file it cannot change: a core codemod may declare the words a file must say for it to act, and a file that says none of them, holds no backslash, and parses, is left untouched without running the transform. A file that does not parse still reaches the transform, so it is reported as before. One codemod that checked every spread against every component now checks only components the file imports. Every run writes and prints the same. (#11249)

Documentation

  • The calendars guide is titled "Calendars", and the docsite shows it under Internationalization in the sidebar, at the same address. (#11269)

  • astryx docs authoring/ship/publishing recommends shipping astryx.integration.mjs rather than .ts (and .mjs doc files and codemods): the CLI transpiles each TypeScript file it loads on first read per machine. It also says a package with two manifests fails to load. (#11364)

Other Changes

  • Internal: the scanner that finds template fixture references takes the replacement as a function, so the docsite's preview build finds those references the same way a copy does. No change to any command's output. (#11320)

  • On Windows, the CLI's test setup now rebuilds a stale Core. It started pnpm directly, which Windows installs as a pnpm.cmd batch file that cannot start without a shell, so the setup stopped with spawnSync pnpm ENOENT before any test ran. It now runs the build through cmd.exe. macOS and Linux run the same command as before. (#11051)

Contributors

Thanks to everyone who contributed to this release:

@aashish254 @astracat-bot @ChenyangLi4288 @cixzhang @duytbp @Geervan @josephfarina @nynexman4464 @popsiclelmlm @prath47 @Varshavia @vjeux

Full Changelog: https://github.com/meta/astryx/compare/v0.7.14...v0.7.15

13 days ago
astryx

v0.7.14

Astryx 0.7.14 — all @astryxdesign/* packages ship at this version.

OLD_VERSION=0.7.13  # replace with the Core version your project uses today
npm install @astryxdesign/core@0.7.14 @astryxdesign/cli@0.7.14  # plus every other @astryxdesign/* package you use, at 0.7.14
npx @astryxdesign/cli upgrade --from "$OLD_VERSION" --apply --path .

@astryxdesign/core

New Features

  • ComplexSelector: disabledMessage explains why a disabled selector is disabled. With isDisabled, a tooltip shows the reason on hover and keyboard focus, and the reason describes the trigger through aria-describedby. The disabled trigger keeps its tab stop, and pointer, keyboard and the imperative handle still cannot open the popup. With renderTrigger, the caller owns the control, and disabledMessage works with it too: the tooltip and the description go to that control. Drop the control's own tooltip while the selector is disabled, for example tooltip={isDisabled ? undefined : 'Filter'}, so it never shows two. Separately, a caller's own aria-disabled now reaches an enabled built-in trigger. (#5984)

  • An anchored layer's entrance now slides from, and scales about, the side the layer lands on. Before, a layer that flipped because its requested side had no room still slid from that requested side, onto its trigger. The entrance also scales about the point where the layer meets its trigger, not the center of its box. A Selector list that opens over its selected item scales about the trigger's center and does not slide. This applies to Popover, DropdownMenu and its submenus, ContextMenu, Selector, ComplexSelector, Tooltip, HoverCard, Breadcrumbs and PowerSearch menus, and any layer that uses the shared entrance. Built-in layers have no option that keeps the old entrance. The public layerAnimations styles now also set transform-origin; a caller's own transformOrigin listed after them still wins. (#10771)

  • useMenuPress with no longPressDelayMs now follows DropdownMenu's finger rules on every device: a finger or a pen opens the menu as it presses (inside a scroll view, once the 150 ms content-touch delay has passed), and the finger that opened it picks a row only after moving 10 px. To keep the previous behavior, a 500 ms hold and a pick at the opening finger's lift, pass longPressDelayMs: 500. (#8078)

  • Under a finger or a pen, on every device, the trigger of an anchored DropdownMenu or MoreMenu now opens its menu as it is pressed, instead of after a 500 ms hold. Inside a scroll view it opens once the 150 ms content-touch delay has passed with no scroll, so a scroll that starts on it still scrolls. To keep the previous behavior, a tap that opens at the lift and a 500 ms hold, pass presentation="popover". A menu shown as a bottom sheet, and a mouse, are unchanged. (#8078)

  • SegmentedControl: a drag that drifts off the control keeps choosing by its horizontal position, clamped to the end segments, and the lift commits that segment. A mouse or a pen drags the same way. Escape or a browser cancel takes the press back, and the highlight returns at once. (#10978)

  • Tokenizer is now an InputGroup-compatible control (#3520). Inside an InputGroup it consumes InputGroupContext instead of rendering its own Field, so the group owns the single label, description, and status chrome — no more duplicated label or nested field wrapper. The typeahead input is named by the group label plus the Tokenizer's own label (composed with getInputARIA, so aria-describedby merges the group's description/status with the input-local disabled reason rather than replacing it), and the control adopts the shared groupStyles.inGroup border/radius treatment so it joins the group's seam. The group also owns size, the disabled state, and validation: a disabled group disables its Tokenizer, a grouped Tokenizer takes the group's size (an explicit larger size no longer escapes the row), and its local description/status are neither referenced from aria-describedby nor painted beside the group's status. Because the group is a fixed-height single-line surface, a grouped Tokenizer keeps its tokens on one scrolling row instead of wrapping past the shared border — cap selections with maxEntries or summarize them with tokenOverflowBehavior. Its end controls (the clear button, endContent, and the busy indicator) hold the end of that row: tokens scroll beside them, never underneath. The row hides its native scrollbar and fades whichever edge hides tokens instead; forced colors bring back a thin native scrollbar. Keyboard users reach hidden tokens through their remove buttons (Shift+Tab from the input), and a disabled Tokenizer's row becomes its own Tab stop while it overflows, named by the Tokenizer's label, so the arrow keys can scroll it. (#4405)

  • TimeInput, DateTimeInput: under a finger, the bottom sheet's minute wheel loops, as UIDatePicker's does: past 59 comes 00, and the hour stays, as on iOS. A drag, a fling, a tap or an arrow key passes the seam. Home, End and a click on a minute never pass it. The hour wheel does not loop yet. Each minute is still listed once for assistive technology. (#10953)

Fixes

  • When a page mounts both the package's AppShell and a swizzled AppShell as outermost shells, only the first now keeps the fixed main-region id; the other takes a generated id, as two package shells already did. Before, each copy kept its own claim list, so both shells used astryx-app-shell-main and the page had a duplicate id. No API changes. (#11208)

  • BottomSheet: a finger's pull down on the sheet's content is handled by the sheet's touch listeners alone, and it releases at the speed of the whole pull. Before, the content's pointer handlers, which serve a mouse or a pen, began the same drag first and took pointer capture, and the capture change cancelled that drag one move later. The touch listeners then began the drag again, or, in Chromium, the content's own pan could start under it. The release speed counted only the moves after the drag began, so a fast flick on the content that the page received as two or three moves read as no speed and sprang back, where the same flick on the grab handle closed the sheet. A flick on the content now closes the sheet as a flick on the grab handle does. This also applies to the sheets that Tokenizer and PowerSearch open. A mouse or pen pull from the content also releases at the speed of the whole pull. No release threshold changes. (#11145)

  • BottomSheet: a move of a touch drag no longer restyles the sheet's content. Each move writes the scrim's opacity on the dialog as a custom property, and the property inherited into the sheet, so the browser restyled every element in the sheet on every move: 51 elements a move in a Tall sheet with a short list, 84 in PowerSearch's Filters sheet with three filters, and more with more content. The sheet's panel now ends that inheritance, and a move restyles the dialog, its backdrop, the panel and the edge tint. The scrim follows the drag as before. This applies to the sheet that owns the scrim: a single BottomSheet, or the first sheet of a stack, such as PowerSearch's Filters sheet and Tokenizer's sheet. (#11154)

  • BottomSheet: in Safari, and in every browser on iPhone and iPad, a swipe on the sheet's content that starts slowly now moves the sheet, so a slow swipe down can close it. Before, on content that fits, when the finger's first move was 8 px or less, in either direction, the sheet stopped answering that swipe: it stayed open, or moved a few pixels and fell back. Fast swipes and swipes on the grab bar already worked, and Chromium browsers were not affected. The fix applies wherever the touched content has nothing to scroll: a sheet whose content fits, and the fixed header or footer around a list. That includes the PowerSearch and Tokenizer sheets. At the top of a list that scrolls, a pull down now also moves the sheet when the finger first wobbles up by less than 5 px; a move up of 5 px or more still scrolls the list. In every browser, the sheet now decides who owns a touch on its content once, at the first move past 8 px. A mostly vertical pull at a scroll edge is the sheet's. A mostly sideways move, such as a swipe along a row of chips, is not the sheet's for the rest of that touch. Before, at the top of a list, a sideways swipe that drifted more than 8 px down, or a pull that began more sideways than down, also moved the sheet. (#11140)

  • Button: a disabled or loading submit or reset Button, including one in a disabled ButtonGroup or InputGroup, no longer submits or resets its form when clicked in server-rendered HTML before the page hydrates or when JavaScript fails to load. It renders as a plain button until hydration, then takes its own type again, with no change to what people see or hear. (#11107)

  • A Carousel's scroll buttons no longer cover the scroller's keyboard focus ring. Each button now sits just inside the ring instead of straddling the carousel's edge, so the whole ring stays visible while the scroller has focus (#10722). (#10726)

  • A transient copy that carries an animation still waiting for its first frame now runs it in step with the original. On a busy page, the SideNav rail's leaving copy could start the toggle's press fade a frame or more after the toggle's own. (#10983)

  • CommandPalette: refresh results when its searchSource changes while it is open. (#9679)

  • createISOTimeString answers null unless the trimmed string is H:M or H:M:S with one or two digits per field (a seconds fraction is still accepted and dropped), instead of reading "2:30 PM" as 02:30 (12 hours off) and "14:30abc" as 14:30 (#11023)

  • FileInput's dropzone shows its status message below the drop area by default, so it no longer covers the drop area; an explicit statusVariant="attached" still renders as before. (#11195)

  • A pan over the page that the browser doesn't take as a scroll no longer closes an open popover or selector list, and no longer taps the page element under the finger. (#11038)

  • A swizzled overlay and the package's components now share one set of focus regions and one mobile keyboard model: nested focus regions from the package and a copy no longer both answer the same Tab, and package and copied fields agree on the keyboard's height, its layout guide and which elements ride it. No API changes. (#10831)

  • On a phone, a press on a control at rest no longer measures the page, so a scroll that starts there does not wait. Hit areas no longer measure while the page scrolls or while a parent's animation moves them, such as a screen that slides in. A press on a control that a parent moves still measures the page. When a parent starts to move after the last measurement, the browser's own hit test decides the tap. No API changes. (#11083)

  • The arrow-key hint that Toolbar, TabList and SegmentedControl show on first keyboard focus now stays until you press an arrow key or Escape, or move focus out of the group (WCAG 2.2 SC 1.4.13 Content on Hover or Focus). It used to disappear after 3 seconds, sometimes before it could be read, and Escape did not close it. Escape now closes only the hint, through the shared layer dismissal stack, and keeps focus where it is. useKeyboardHint's dismissAfterMs no longer defaults to 3000; leave it unset. (#10564)

  • Closing a Lightbox stops a video that was playing. The viewer stays mounted, so the picture and its sound would otherwise continue after Close, Escape, or a tap outside. A viewer that is already closed does not start playback either. Opening it again plays the current video when hasAutoPlay is set. A video inside the caption stays stopped. (#10692)

  • A swizzled ListItem inside the package's List (or a package ListItem inside a swizzled List) now leaves the way a package row does: it keeps what it showed on screen, such as a swipe's travel, for its exit. Before, the List and the ListItem kept separate records of the rows the List reported and of the presentation a leaving row kept, so the row's exit lost that presentation. No API changes. (#11214)

  • Make onClick-only TopNav items keyboard accessible (#9334) Previously, onClick-only TopNav actions could be skipped by Tab or could not be activated from the keyboard. TopNavItem now provides button semantics and Enter/Space activation while preserving its anchor ref/event types and custom link rendering. Desktop TopNavMegaMenuItem actions and drawer TopNavMenu actions now use non-submitting native buttons.

    This restores keyboard operation and action semantics for WCAG 2.2 A criteria 2.1.1 and 4.1.2. Disabled TopNavItem actions remain focusable but cannot activate; href navigation and the existing desktop menu keyboard model are unchanged.

  • A fence plugin made with the package's createMarkdownFenceTransform now renders its node in a swizzled Markdown, and the reverse. Before, the copy described the plugin to its transform under its own keys, so the package's fence transform refused to run and the fence fell back to a plain code block. No new props, exports or defaults. (#11167)

  • Under right-to-left, plain text in InputGroupText, a Badge label and a Token label keeps the character order it was written in. Text with no right-to-left letter, such as a URL scheme (https://), a domain suffix (.com), a count (+3), C++, a handle (@alice) or a tag (#design), used to show reordered (//:https, com., 3+); it now lays out left to right. Text that contains a right-to-left letter keeps the page's direction, isolated from its neighbours, so iPhone جديد still reads right to left. A rich (non-string) label or child is isolated but keeps the page's direction: mark mixed directions on your own content. Plain InputGroupText text with no right-to-left letter sits in an inner span. Left-to-right pages are unchanged. (#10114)

  • A swizzled component that carries its own copy of Core's layout motion, spinner rotor or gesture sync now shares the package's: a layout change in one copy starts at the frame the other copy's change started in, so their glides land together; spinners from both copies are pinned to the timeline in one batch, so rings mounted together cost one style recalculation instead of one per copy; and a gesture sync running in one copy holds the other copy's gesture callbacks too. No API changes. (#11027)

  • Popover: initial focus takes the first content control in document order everywhere. This changes the focused control only where querySelectorAll does not return document order, as in jsdom; browsers focus the same control as before. (#11177)

  • Icons registered with registerIcons() now reach swizzled Icon, CodeBlock, Table and Timestamp copies on the same React. Themes registered by name are now shared by every Core bundle loaded on one React. Each registry is one per React, so a second React on the page never renders the first one's elements. No API changes. (#11096)

  • A swizzled ResizeHandle or LayoutPanel now finds the package's panel or handle beside it, and the reverse. When the region collapses, focus inside the panel moves to the handle and the panel goes inert. Before, each copy kept its own records of lent panels and handles, so the panel resized, but focus could drop to the page as it collapsed. No API changes. (#11131)

  • The package root and the component barrels no longer carry 'use client'. Inside a React Server Component, import {Card, Stack, Badge, Code} from '@astryxdesign/core' now renders the components that need no client code on the server, as their own modules intend; components that need the client stay client references. A Server Component that imports from the package root now builds with Next.js webpack. Client code renders the same as before. No API changes. To pass one of these components itself as a prop to a Client Component (for example components={{inlineCode: Code}} on Markdown), pass it from a 'use client' module. (#11106)

    In a Next.js app that uses next build --webpack, importing the package root from a Server Component page or layout now builds; v0.7.13 failed with “export * in a client boundary.” The root import includes every client component on that route. Add experimental: {optimizePackageImports: ['@astryxdesign/core']} to next.config, or import component subpaths such as @astryxdesign/core/Button. In a measured Button-only server page, this reduced first-load gzip from 846 kB to 224 kB. Turbopack (the Next.js default), Vite, and Client Component imports are not affected.

  • In iOS Safari, a tap that wobbles less than 5 px on content under a scroll-edge pan keeps its click. The pan now holds the finger only once it has moved 5 px along its axis. In Lab, in iOS Safari, a tap on a pushed NavigationStack screen that drifts less than 5 px toward the back swipe now runs; one that drifts 5 px or more toward it still loses its click. (#10829)

  • A component built on useScrollableArea, such as ScrollableArea or BottomSheet, no longer renders again when focus moves between two descendants of a fitting viewport just after the component's own update. (#11135)

  • Toast ids are now one sequence across the package and a swizzled copy of useToast. Before, each copy counted from 1, so a toast from a swizzled Toast and a toast from the package could share an id in the same queue, and dismissing one removed the other. No API changes. (#11092)

  • A windowed Table keeps windowing when a text-size, zoom or theme change makes every row taller than rowHeight. It windows at the height the rows measure, instead of rendering every row, and warns in development. Rows of unequal height still render every row. (#11000)

  • Without a LayerProvider, toasts from a swizzled useToast and from the package now show in one fallback stack. Before, each copy mounted its own fallback container, so the page showed two toast stacks that overlapped. No API changes. (#11161)

  • Tokenizer: with hasEntriesOnFocus, picking a choice from the list shown on focus keeps the input focused and the list open, with the next choice active, so you can pick several in a row. The list closes when no choice remains, at maxEntries, or when you press elsewhere, Tab away or press Escape. A pick from typed search results still closes the list. (#11031)

  • Typeahead and Tokenizer keep a dismissed menu closed when a search or focus bootstrap that was still running answers afterwards. Closing the menu with Escape, an outside click, Tab, or moving focus away also clears the busy indicator and drops a search still waiting on its debounce. A late answer for the same text is kept and shown the next time the menu opens, without searching again (reopening while that search still runs waits for its answer); an answer for text the person has since changed is dropped. Previously the late answer reopened the menu after it had been dismissed. (#8778)

Documentation

  • AppShell's guidance on naming its navigation landmarks now says to pass label to TopNav and aria-label to SideNav. SideNav has no label prop; it has a translated default name, and aria-label renames it. (#11151)

    Also released in @astryxdesign/cli.

  • Add hook documentation and interactive table cell truncation example block for useTruncation, demonstrating responsive string truncation and accessibility tooltips. (#10555)

    Also released in @astryxdesign/cli.

  • InternationalizationProvider shows its examples in reading order: load a shipped locale, mirror the layout for right-to-left text (a new code example), override one string, then the calendar examples. Each live example is titled after its code example, so the two lists match. (#11094)

    Also released in @astryxdesign/cli.

  • LinkProvider docs say what component receives, including the to prop that router components read, that a link's own as or a nearer provider wins over it, and that a disabled Link does not use it. (#11065)

Other Changes

  • Internal: Core's internal finger-scroll reader accepts a ref that names the document, so Lab's ChatVirtualizer can watch the page's own scroll when it attaches to document.scrollingElement. Apps import nothing new. (#10883)

  • Internal: MobileNav keeps its dialog rendered from the open until its delayed close has run through the layer runtime's presentation hold (Layer/presentationHold.ts). No behavior change. (#8590)

  • Internal: useChatStreamScroll's page-scroller rules move to one owner module: whether a container scrolls the page, where its visible area starts, and where its scroll events fire. The hook behaves as before, and the undocumented @astryxdesign/core/internal/page-scroller entry gives the same rules to Lab's ChatVirtualizer. Internal entries are outside the public API and its compatibility promise. (#11160)

  • Internal: Core's reorder controller finds a collection's rows through an internal rows reader, so a later change can reorder plain elements. List behaves as before, and apps import nothing new. (#11199)

@astryxdesign/cli

Experimental APIs

  • astryx discover lists WeightedSVGIcon among @astryxdesign/lab's components: an experimental SVG icon whose drawing follows the surrounding font-weight. (#7918)

  • astryx experimental theme editor how answers a question that names the background ("a yellow background") for the background, with its tokens first, instead of as a color question. The preview's Overview page shows its open popover and tooltip first, below their anchors in space kept free for them, so they no longer cover the table. (#11159)

  • astryx experimental theme editor: colors are generated the way the official themes are. (#11209)

    • An exact color you give stays exactly as given. In light it never moves: when no text reads on it, the text changes, and a pale fill that does not stand out from the page is reported. In dark it is kept too when text on it reads at 4.5:1 and it stands out from the dark page at 3:1, so the dark shades around it follow it; otherwise dark mode starts at shade 70, as the official themes do, and the result says why. A dark side never uses a light shade.
    • set <theme> neutral <color>: your exact color sits at its own shade in light and dark, and the shades around it follow it.
    • Text on accent and status fills comes from the neutral color's white or near-black (near-black first on warning), or pure black or white without a neutral color. Status tints are see-through in dark, and their text is measured over the surface; the accent tint is dark shade 30, or the nearest darker shade that citation text reads on; a tint is never the fill's own shade.
    • An exact --color-accent (or another main color token) wins over the color it would replace: the text on it is picked to read on your color, the focus ring keeps following it, a pale one is reported, and the result says so.
    • Text, icons and the focus ring take the nearest shade that reads, lighter or darker, so bases with dark light-mode surfaces get readable colors too.
    • Hand edits to palette.config.json are kept: your own anchors, names, kind, neutralProfile, vibrancy written by hand, and colors of your own. One-mode themes generate one mode. A stop layout maps by its own shades, half stops included; one without black and white, with too few shades or with a wide gap is refused. Fields the generator does not read are named. What the editor replaced is named when a color change touches the config.
    • A hand-edited generated color file is never overwritten, receipt or not; formatting is not an edit. Only color changes wait, and the refusal says how to keep or discard the edit; other changes go ahead. A file from another generator version is generated again. No unresolved color ever reaches the built CSS.
    • The theme imports only the shades it uses, from tokens/<theme>.palette-refs.ts.
    • Colors are read as browsers read them: negative hues, out-of-range saturation and chroma, color(srgb …) and color(display-p3 …). Malformed functions, system colors and see-through colors are refused with the reason and a command that works, such as the color with its #, without quotes, opaque, or the nearest color name. A dial named another way (gray, brand, error, saturation, Accent) suggests the dial; a color dial with --on suggests what the part really reads.
    • vibrancy more at 100 and less at 0 are refused, a number out of range suggests the nearest one, undoing the last color removes vibrancy too, a vibrancy edited by hand into something invalid can be fixed with undo or set, and a replaced color shows what it was. A wide-gamut color says it is used as its nearest sRGB color.
  • astryx experimental theme editor: colors without palette commands. Colors come only from editor set <theme> accent|neutral|success|warning|danger|info <color>, which generates the light and dark shades and points the color tokens at them, as before. The new vibrancy <0-100> setting (more/less step by 10) sets how saturated the generated colors are; it needs a color and applies to the whole theme. editor new <theme> now takes any setting as a flag (--accent "#7c3aed" --font inter --corners round --vibrancy 60), checked the same way as set and applied in one build. The experimental copy experimental theme palette generate is gone; theme palette generate is unchanged, and editor set lists it as the command it replaces. Help, results and errors say "colors" and "shades" instead of palette, family and stop; show lists each color with its seed and the shade each token uses, with the generated files last (colors, colorNotes, vibrancy and colorFiles replace palette). Component families are now groups: how --list groups, and the group field in set and how results. how colors (or how palette) explains how colors are made, and plain-words color questions ("brand color", "make it more colorful", "dark mode colors", "error red", "see all shades", "exact color for one token") answer with the commands. preview add with no description adds a Colors page when the theme sets a color: every shade in light and dark with its number, hex and the tokens that use it, kept in step with each change. (#11149)

  • astryx experimental theme: make and change a theme one checked change at a time (editor), and preview it on real pages in your app (preview). Only the new experimental command group changes; astryx theme and its output stay as they were. (#11101)

    • Checked changes. editor set <theme> <thing> <value> takes a dial (corners, spacing, accent, neutral, success, warning, danger, info, font, headings, surfaces, buttons, type, text-size, base, mode), a design token, or a CSS property on a part, with --on <part|family>, --when <prop>:<value>, --state, --mode light|dark and --only. Each change is checked against what the installed Core's parts really read and against the token's type. A change that cannot take effect is refused (exit 1, an ERR_THEME_* code, nothing written), and the error leads with the command that works.
    • What parts read. It is derived from the installed Core itself, version for version: a catalog of every component renders on the server with the project's own React, joined to Core's stylesheet. The result is cached under node_modules/.cache/astryx-theme/. No new dependency.
    • An ordinary local theme. <theme>.settings.json holds the settings; <theme>.settings.ts is generated from it; <theme>.theme.ts extends it, is written once, and keeps your own edits; the CSS and JS are built by the same build as astryx theme build. A plain part setting that a more specific base-theme rule would beat is repeated on those variant keys, and the result says so.
    • Families, modes, contrast. Styling one input or check styles its whole family unless --only; --on containers and --on menus style every member. Only colors and shadows take --mode. Text this theme makes unreadable (below 4.5:1, and not that low in the base theme) is reported.
    • Editor commands. editor new, editor set, editor undo (one step back; with a thing, removes that one setting so it goes back to the base theme's value), editor show (every setting, key values, contrast problems, and two self-contained HTML pages: the sample app page and every component; PNG pictures only with --png, using a Playwright or Chrome found on the machine), and editor how (what a part reads, a family, a setting or aspect, a question in plain words answered with exact commands, a PNG picture's colors, or --list dials|tokens|parts|families|properties).
    • Preview in your app. preview add writes one route into the app's routes folder (theme-preview/ in app/ or src/app/, or --path): a normal page that keeps your layout and providers, in an app shell with a nav item per page and, when it wears a theme made by editor, a light, dark and system switch. With no description it adds the sample app page and every component; with a description it adds the page templates the build ranking picks for it (--top); --template adds one. preview list and preview remove manage the pages; only files the preview wrote are replaced or deleted, only inside its folder, and every check runs before the first write. A template page that needs a package the app lacks is skipped, with the install command. With no app, preview app <dir> writes a starter Next.js app with the preview in it (--theme copies a theme in for the pages to wear) and prints the install and dev commands.
    • Experimental copies of astryx theme. compile (the copy of theme build), list, add, remove, use, eject, template, targets and palette generate run the same functions with the same flags and JSON. Each experimental command doc names the stable command it will replace in a new replaces field, shown in its help as "Will replace: astryx theme build".
  • astryx experimental theme editor how: questions read the way people write them. (#11209)

    • Negation and "too" read the right way round: "shouldn't", "turn off", "never", "stop", "unbold", "too sharp" (rounder) and "too heavy" (lighter). "Everything except X", "but not in X" and "all but X" keep X as it is now. "Without" is read in the shipped languages, and "sans" means a typeface only before serif or font.
    • A typed value always wins. A hex beats a color word. A hex with the wrong number of digits is refused by name and never replaced with a sample. The sign, multi-value padding, % opacity, em tracking, numeric weights, written-out shadows and "40px tall" are kept. No color is picked when the question gives none.
    • "In dark mode" carries --mode dark to every color command, parts included. A change that is the same in both modes, or a dark-mode ask on a light-only theme, says so instead of changing light.
    • Better parts and properties: side nav items, focus rings as outlines, tab underlines, icons, border colors (darker, subtler, contrast), the overlay, transparent backgrounds, progress bar thickness, smaller headings, underlines, line height and body weight. A question about what something is ("what does --color-accent do") gets the lookup.
    • Typos with swapped letters and short forms (bttn, brdr) are corrected. Portuguese, Italian and Korean words for buttons and rounded are read.
    • Sequences drop repeated and overwritten steps and stop at 12. Two asks that contradict each other are offered as choices, not run in turn. Changes come before lookups.
    • Text output prints each command on its own line and never wraps one. A sequence prints as one line.
    • --theme "" and a repeated --theme are refused, for every subject. The default theme is the one an editor command changed last, not the newest settings file, and themeChosenBy says how it was picked.
    • Pictures: every pixel is read up to 4 million, so 1-pixel lines count. tRNS is honored for gray and RGB pictures. A 0x0 picture names its size. 16-bit pictures are capped at 20 million pixels.
    • Parallel lookups in an app with no themes leave no empty themes/ folder. A refusal's commands start the same way as the answer's.
  • astryx experimental theme editor how: answers that are safe, bounded and right. (#11209)

    • Every command how suggests names your theme (the only one, the one changed last, or --theme <name>; with no theme, my-theme, made first), has a real value instead of a <placeholder>, carries no shell comment, and is checked as set checks it: a command that set would refuse, or that changes nothing, is left out, and the answer says why.
    • Plain-words questions read negations and more or less ("remove shadows from cards" gives box-shadow none, "less rounded cards" gives corners less), the values you type (hex, rgb(), lengths, dashed), states (hover, focus, checked, selected, disabled, pressed, invalid), dark or light mode, several changes in one question, a few words in other languages, and small typos. A question with no answer says so in JSON too, with the next commands to try.
    • how <part> writes each condition as the --when and --state flags set takes, or says why no flag reaches it; lists every state set accepts; and says when a part has no recorded reads, with commands that still apply.
    • how <token> says when no part in the part data reads a token but Core's stylesheet does.
    • Lookups take any case, plurals and token names without dashes; --list takes the kind anywhere, singular or plural, --list=tokens and a filter that starts with --, and refuses --list given twice.
    • Pictures: a header bigger than 40 million pixels or pixel data shorter than the header says is refused at once; damaged files are refused; see-through pixels are skipped; --at gives each point's alpha and refuses points it cannot read exactly or that fall outside the picture; any file name works, and other formats are refused by their bytes.
    • set refuses a value that holds a <placeholder> or a # comment.
    • A damaged part-data cache is built again, the cache is written whole, and a lookup in an app with no themes leaves no themes/ folder.
    • Text and JSON start commands the same way, and text output escapes control characters in what you typed.
  • astryx experimental theme: data safety and value checks. (#11180)

    • A refused change puts back only the files that command wrote in that run, each whole, and only while they still hold what it wrote; a file changed by someone else meanwhile, or one it cannot restore, is left and named. The settings and undo history are written inside that rollback, and a refused new leaves no trace. A link anywhere in themes/ or the theme folder is refused, and never followed or removed. A palette.config.json the editor did not write is kept. show finds a build that does not match the settings (a command stopped mid-build, a hand edit) and builds it again, saying so. Temp files have their own editor names and are removed by the write that made them; nothing else is ever removed. Run from a subfolder, a command acts on the Astryx project above it, found as upgrade finds it: the search stops at a repository root and never takes the home folder. A package without Astryx inside that project is refused with the folder to run from, a package.json that does not parse is never walked past, and reply paths are absolute when the project is above the current folder. Yarn Plug'n'Play and a package.json without Core get their own messages. A full or read-only disk is ERR_WRITE_FAILED.
    • Commands on one theme run one after the other, so no change is lost. The lock lives in the project's node_modules/.cache (a folder that cannot be written is refused with ERR_WRITE_FAILED); a lock left by a stopped command, or by one on another computer that stopped, is taken over. A command that waits more than 30 seconds is refused with the new code ERR_THEME_BUSY, naming the lock.
    • Every name the name check accepts builds (brand-2). Names are at most 64 characters. new refuses a link or a file where the theme goes, a stray word, a flag given two values, and an empty --like; --headings takes a weight and a tracking; a refused flag suggests a new command.
    • Settings edited by hand are checked on load, and so is the step undo goes back to. A saved value the editor no longer accepts names the undo <theme> <thing> that removes it, and that command works; a step undo goes back to that holds one is passed with that value left out, and the result says so. A damaged undo step drops only itself and the steps before it. A quoted string or a data URL may hold a semicolon.
    • Token values are checked by their type: time, easing, font, shadow and outline style too, and heading weights as numbers. A value that would break the CSS, read itself, or name a placeholder such as <color> is refused. Only colors take --mode; a shadow per mode would remove it in both.
    • Code highlighting, display text sizes and colored icon tokens can be set.
    • An exact font family applies on phones too; phones keep their own reading sizes.
    • A text size or type scale keeps the base theme's ratio and the theme's heading weights (an exact weight token still feeds them), on phones too.
    • text-size takes 10 to 32 pixels. font refuses values that would not build. vibrancy is refused when every color is a gray.
    • undo <theme> <token> names the dial that still writes the token.
    • Reading a built theme writes no copy into the theme folder.
  • astryx experimental theme editor: settings that do what they say. (#11222)

    • An exact token or part property always wins over a dial, whatever the order. A changed setting moves last, so it wins over what came before it. A shorthand set after its longhands says it replaces them. A setting for both modes replaces the one-mode settings it would sit under.

    • One mode on a part whose variants each have their own value is refused, with the command that names the variant. A setting saved for a mode a one-mode theme does not have can still be removed. A base theme package that is gone no longer blocks moving off it.

    • --when must be one property and value, and on a group it must belong to a member, as --state must. An empty or repeated --on, --when, --state or --mode is refused, and so are extra words after undo and show.

    • undo <theme> <thing> <value> removes the setting only when that is its value. Scope flags without a thing are refused. undo <theme> base and undo <theme> mode set them back to their defaults. A stored setting this Core does not know can still be removed.

    • show builds the theme again when its settings were edited by hand or built by another CLI; --section writes sheet-<section>.html, not over the full sheet, and takes any case. A setting listed twice is refused.

    • spacing scales the base theme's spacing; a corners step starts from the base theme's radius or the whole-theme setting; corners pill keeps checkboxes square; headings refuses --mode; font refuses --when and --state and takes a preset in any case.

    • A change that shows nothing says so. A switch of base or mode lists the parts it restyles and the color notes. A misspelled token in var() and a typed path or capital letter for a theme get a did-you-mean. Text contrast that is not measured (one variant or state, the soft or outline button) is listed as not checked. The colors in show give each mode its own exact value.

    • The copied theme commands name experimental theme commands in their refusals. editor new and editor how no longer claim to replace stable commands their copies replace. A package.json without Core gets the install command.

    • A whole-theme token that no rendered part was seen reading is set with a note saying so, not refused. A part that reads the token the user named takes it for whatever property it feeds. A token named for another variant value (--color-error-muted with --when status:error on a banner, --color-icon-pink on an icon) is taken. A part name such as constructor is an unknown part, not a crash.

    • A font for one role keeps its font after a whole-theme font, whatever the order.

    • Easings, font family lists, light-dark() and color-mix() colors, shadows and times are checked the way the browser reads them. A shadow may use a token color, any length unit or a stacked shadow token. var() with a fallback, relative colors and system colors are taken. A time is at most 60 seconds. A font name may hold an apostrophe. var( --x ) with spaces is checked for cycles.

    • Saved exact tokens are checked on every command; one the rules no longer take names the undo that removes it.

    • A size change says that phones keep the base theme's reading sizes, and names scale steps outside 9 to 200 pixels. A refusal that suggests setting a property directly names the property that takes the value. Every suggestion set, undo and show give names the theme and a value it takes, never a placeholder.

    • The theme lock lives beside the Core the command reads, and a command outside a project takes none. When show builds again, it says why: a file missing, another CLI version, settings changed after the build, or a build that did not finish.

  • astryx experimental theme editor: theme colors now come from the palette generator. set <theme> accent <color> (and the new neutral, success, warning, danger and info dials) writes the color as a family in themes/<theme>/palette.config.json, in the shape theme palette generate reads, and runs the same generator to write tokens/<theme>.palette.ts and its receipt. The theme's color tokens point at stops of that palette, light and dark from one color, following the stops the official themes use. A token moves to a nearer stop of the same family when it must read (text at 4.5:1, the focus ring at 3:1); the editor no longer mixes colors of its own. show reports the palette, which stop feeds each token, and the contrast behind each choice; how palette explains it; undo <theme> accent removes the family and its tokens. An exact token (set <theme> --color-accent <color>) still wins over the palette. Color dials apply to the whole theme: --on and --mode are refused, with the exact-token command to use instead. (#11134)

  • experimental theme preview add checks the theme before it writes any page, and skips a StyleX template page in an app with no StyleX compiler (the result says why). experimental theme preview app checks the folder before it builds a --theme, so a refusal writes nothing. (#11134)

  • astryx experimental theme preview: the preview pages work in a production build. Leaving the Components page no longer crashes the route: a typeahead part (Tokenizer, CommandPalette) gets a small sample search source. On the Components page, a part renders inside the parent its playground names (Step in a Stepper, a SegmentedControlItem in a SegmentedControl, a RadioListItem in a RadioList), a part that only works deeper inside its parent is left out, a status variant is passed as {type}, ButtonGroup shows three buttons, and layers that stay closed are left out. A component that still throws shows a short note instead of a blank cell. The Overview page is the sample page's content, without a second app shell. Font: editor set <theme> font <name> and editor show say near the top when the font's package is not installed, with the exact install line; once it is installed, the next set or show makes the preview route import its stylesheet. (#11134)

  • astryx experimental theme preview: safer refusals and recovery. (#11209)

    • No refusal suggests deleting or moving files: a damaged theme-preview.json, a page changed by hand, or a file in the way gets plain instructions instead.
    • --path at the project root, in src/ or at the routes folder itself is refused: those folders hold the app. An older preview found there is named, with the remove that clears it.
    • A whole remove stops, deleting nothing, when page.tsx was changed by hand, since it imports the pages.
    • A formatter run no longer counts as a change by hand. editor set and show name the preview files they left as they were (previewStale).
    • A recorded page whose file is gone is written again, or left out of the nav, so the route always builds. Moved pages get a hash. A failed write leaves no temp file or empty folder, and says which step failed. A read-only file keeps its mode.
    • preview app --theme waits for other commands changing that theme, and its retry suggestion keeps --theme.
  • astryx experimental theme preview: safer adds, removes and starter apps. (#11209)

    • Preview pages go in _pages/, a folder Next never routes, so a preview at the project root or in src/ no longer turns on the Pages Router. A preview an older release wrote into pages/ is moved on the next add or remove.
    • A refusal deletes nothing: remove <page> loads the theme before it deletes a file, and names the whole-preview remove when the theme does not load. A theme that is gone is replaced by the app's own theme, with a note.
    • Only files the preview wrote are replaced or deleted, and never one changed by hand since (theme-preview.json records a hash of each). remove names the files it kept, the ones already gone, and the ones it wrote again.
    • Files are staged and renamed into place together; a failed write puts every file back and is refused with ERR_WRITE_FAILED.
    • A damaged theme-preview.json is refused with ERR_THEME_INVALID, naming the file and the way out, in add, list and remove.
    • --path is refused when it is a file, in themes/, node_modules/ or a Pages Router folder, in a folder Next does not route, or written with Windows separators, ~ or white space at either end. The open line drops route groups and encodes each folder name.
    • Without --path, list and remove find a preview recorded for a theme.
    • add: an empty --template is refused; a block passed to --template says it is not a page and suggests page templates as commands; --top is taken as typed and only with a description; a description may be several words without quotes, and only its first 40 different words are ranked; a package that is named but not installed counts as missing; a changed theme writes the default pages again; a page file an interrupted run left behind with the same text is taken over.
    • Suggested commands are shell-safe, and a wrong --theme names the closest editor theme.
    • list, remove and preview app refuse extra arguments.
    • preview app: the app is written into a temp folder and moved into place, so a failure leaves nothing; folders inside the routes, themes/ or node_modules/, files, dangling links and odd names are refused; a folder with only .git counts as empty; every open font the theme names is added with a pinned range; the Colors page is included; a one-mode theme starts in its mode; a stale theme build is rebuilt first; the home page links to the preview, the .gitignore covers node_modules, and the open line is quoted.
  • astryx experimental theme editor how --list is now a switch, as --list is everywhere else in the CLI: the first word says what to list and any words after it filter the list (how --list tokens accent), and --list alone lists the kinds. Reading a built theme no longer writes a temporary file into themes/<theme>/; it uses the project's cache folder. (#11173)

  • astryx experimental theme: fixes from a third theming round. preview add "<description>" adds the closest page when no page is exactly the one described, and matched says which words of the description it covers; only a description no page relates to is refused, and its suggestions repeat --theme and --path. A page the app cannot show is skipped and the next match is taken, from the ranking and then the template search. A page's nav label is its template's name, however it was added. The accent and status fills keep your exact color in dark mode too when text on them reads at 4.5:1; otherwise dark mode uses the nearest shade that reads, and the result says why. Setting vibrancy names the status colors the theme does not set, which keep the base theme's colors (and so do info-tinted surfaces such as colored cards), with the commands that bring them in. new lists the mode it applied with the other settings. show prints your exact value where an exact token setting wins, and sizes, numbers and fonts once instead of per mode. Notes name a part inside the part a token is set on ("button inside toast"). A token no part reads says it changes nothing you see now. how names the resting border (border … --when variant:secondary), answers a part's fill and text together ("light gray button with dark text"), and answers a status background ("the error background") with the status color. The Overview page's tabs and other controlled samples no longer throw when clicked, and its open popover and tooltip keep clear of each other at narrow widths too. (#11163)

  • astryx experimental theme: fixes from a fourth theming round. preview add "<description>" adds an app page when the description names one (an issue tracker, a board, a dashboard, an app screenshot) instead of a hero, takes the side hero for a left-aligned or split hero, says that no page has a top nav of its own, and always says why it picked a page. A base preview add says which pages were there already and are written again (refreshed). how gives each token a value of its own type (--color-border "<color>", --border-width 1px; only the border property takes a whole border), keeps the fill for a named tint ("light blue tint with blue text"), and no longer reads "border color" as a fill. undo <theme> <thing> names the setting it removed (removed) instead of printing it as the value in effect. A light-only or dark-only theme lists only its own mode's shades and notes. show lists corners or spacing set on a part or group, with what its parts get beside the whole-theme value (partValues). neutral names the base theme's page background and the command for a white page. type says what it still sets when headings sets weight or tracking; type and text-size keep each other's part of the scale in any order. A token no part reads says which tokens are built from it instead of claiming it changes nothing. An installed font says it is installed. A color's text switching between white and near-black says why. (#11165)

  • astryx experimental theme: an accent or status fill keeps your exact color in dark mode only when it also stands out from the dark page (3:1) besides text reading on it; otherwise dark mode uses the nearest shade that does both, and the result says why. The preview's Colors page marks such a fill under the shade it really uses, for dark mode too. Suggestions from preview add quote the options they repeat, such as a --path with a space. (#11165)

  • astryx experimental theme: preview add "<description>" picks an app page only when the description names the app in a phrase (an issue tracker, an issue detail, a kanban board), so a page with a "buy tickets" button or a landing page for an AI tool no longer gets an app page; a detail view comes before its list, and the ranked page stays first when it already is that app. how keeps the fill when a color word belongs to it ("a dark card with a thin border", "colored buttons with a border"). show names the radius token each part's corners really read. The neutral note offers a white page only in a theme with a light mode. When your exact accent or status color cannot be the dark fill, dark mode uses the shade nearest your color where text reads at 4.5:1 and the fill stands out from the dark page at 3:1. undo <theme> <thing> prints setting and removed as its JSON does. (#11168)

  • astryx experimental theme: fixes from a full review. (#11173)

    • preview app --theme copies the whole theme folder, generated colors included, byte for byte, so the new app type-checks.
    • preview app <dir> writes only into a new or empty folder (its --overwrite option is gone): a folder that is not empty is refused, with a free folder name to use.
    • Translucent text and backgrounds are measured as drawn: each is laid over what is under it before contrast is checked.
    • Two commands can run at once: each render uses a folder of its own.
    • A change that is saved but cannot be checked says "saved, not checked" and exits 0.
    • A light-only or dark-only theme applies only its own mode's settings and names the others, writes one value for the colors it sets, and its in-app preview starts in that mode with no switch.
    • A damaged undo history no longer breaks set (a new history starts, with a note), and undo says how to fix it.
    • Colors are picked against the theme's own exact page and surface colors.
    • A change that changes nothing builds nothing and adds no undo step.
    • undo <theme> <thing> says what applies now (now).
    • show names the radius token each part reads, or says it is unknown.
    • how answers border-only questions without a fill.
    • The preview picker matches app and article pages by phrase: a news story or blog post gets an article page, never a record page; a description no page relates to (no phrase, and fewer than three words or two fifths of them matched) is refused.
    • A preview outside the routes folder says the app does not serve it.
    • More than eight contrast problems end with "and N more".
  • astryx experimental theme editor show: the text output prints the palette paths and contrast notes whole instead of one character per line, and keeps one line for each token a palette family feeds. (#11149)

  • astryx experimental theme: fixes from a real theming round. headings now keeps heading weight and letter spacing whatever order it and type are set in; type says what it no longer sets, and show marks a setting another one partly hides. A steep type scale (editorial, display) keeps text below the base size at its standard sizes, so small text stays readable. show lists every setting with its whole scope (--on, --when, --state, --mode). A gray color (accent #171717) makes gray shades in light and dark instead of inventing a hue. neutral no longer tints the page background (--color-background-body stays the base theme's). set accepts every token a color, type, headings, corners, spacing or text-size writes, so a dial's notes never name a token set refuses. When the components cannot be rendered (two copies of React, say), new, set and undo save the change and say "saved, not checked" with the cause and the code ERR_THEME_NOT_CHECKED, instead of failing after writing; how says what it could not check instead of listing no readers. A font that is not installed names the closest font that needs no install. how answers each aspect once, turns sizes in the question into --when size:…, takes each color from the word it belongs to, says when text takes the page's text color, and how --list with no kind lists the kinds. preview add "<description>" says what it matched and why, leaves app frames out, refuses with the closest pages to name when no page really matches, and takes the next match when a page cannot be shown here. The preview fills the whole window with the theme, shell and edges included; the Overview page now shows what themes most often break, and each cell of the Components page names the command that changes it most. show --group is now show --section: it picks a section of the theme-building sheet, so "group" only means a group of parts (--on inputs). (#11149)

  • Icon sets: authoring a set is easier. An author sees which icon meanings the bundled templates use that the set does not map yet, such as document and share; a copied template shows a placeholder for each. Only the experimental icon commands, the icon-set lists in integration check and Doctor, two icon definitions' search words, and the icon-set guide change. (#11090)

    • Authoring receipts. experimental icon new-set, add, and map end with one line when the set leaves template meanings unmapped: how many there are, the most used first with their template counts, and the map command to run. The JSON adds templateMeanings: {unmapped: [{definition, templates}]}. A dry run adds nothing.
    • experimental icon --definitions. Each definition shows how many bundled templates use it (templates) and whether the set maps it (mapped). The set is the one --set names, else the project's main set, else the only set of the icon-set package you run it in. --set is now accepted with --definitions.
    • integration check. Each set's iconSets entry adds templateMeanings, printed under "Template icon meanings not mapped". It is never counted and never fails a check, even with --strict.
    • new-set --adapter ./<path>#<export>. Declares the adapter a library of icon data objects or SVG strings needs, so the set wraps it with no hand edit to the data file.
    • Clearer receipts. The first new-set --from into a set with no icons says the set was created, not refreshed. add --variant <look> --all names the first ten icons the module lacks and how many more; the JSON still lists every one. The command that adds unlisted sets as backups (from icon use and Doctor) names every set the same way: by its name, or as <package>/<set> when two packages ship that name.
    • Better suggestions. A suggested icon whose id only starts with the definition's name and adds another thing (delete-left, a backspace key) comes after the icons the definition's words name (trash), and a word two definitions share (store) comes after the words only one has. save adds the word "floppy disk", and bank reads "building library" instead of "library".
  • Icon sets: copied templates draw the right icons in more sets, once a set maps the five new icon definitions. Only the experimental icon-set rewrite of astryx template, five new icon definitions, the bundled templates' icons declarations, and the icon-set guide change. (#11142)

    • Distinct icons keep distinct meanings. Some bundled templates gave two different icons one meaning, so both drew the same icon in every set. The Settings Dialog's "Keyboard shortcuts" and "Developer" rows, and its paintbrush and swatch, now draw different icons, and so do the icon pairs in Table Filter, Theme Showcase, and the Button Group showcase block. New icon definitions: keyboard, paintBrush, documentSearch, bookmarkAdd, and wallet. No set released before this change maps them, so with such a set the Settings Dialog's "Keyboard shortcuts", "Color theme" and "Verbose logging" rows, Table Filter's save-view button, and Theme Showcase's wallet draw the placeholder. A set draws these icons once it maps the new definitions (astryx experimental icon map <definition> <icon> --set <main>); until then each draws the placeholder, unless a set in your list wraps the template's library.
    • An icon from a set's own library stays. When a set in your list wraps the library a template imports an icon from, the icon is one your project chose. With the main set's own library, the icon keeps its import as written. With a backup set's library, an icon that no set maps keeps its import instead of becoming a placeholder. The report lists each one under kept with the reason.

New Features

  • Open a sign-in dialog from the theme showcase's Sign in button, which was an inert link, so a theme's dialog header, close control, fields and footer buttons can be reviewed together. (#11130)

Fixes

  • astryx component <ExampleName>, given an example block, still fails with ERR_UNKNOWN_COMPONENT and the same name suggestions, but its message now says the name is an example block, that astryx template <ExampleName> prints its source, and which astryx component <Parent> --blocks lists it. (#11153)

  • astryx search no longer counts a component or hook keyword that is another entry's name as a match for that entry, so spinner lists Spinner without NumberInput beside it. A keyword still counts when the entry's own description uses the word, or when it names the entry's own family member or its hook. build reads keywords as before. (#11162)

  • astryx template and astryx build read a template's needs from its real imports only. Words in comments, strings and JSX text no longer count as packages, so templates such as form-wizard, form-wizard-vertical and table-tree no longer ask you to install Next, Distribution or canvas-editor. A path alias such as ~/lib or #internal, or a name npm does not accept, is not reported as a package to install. (#11224)

  • Template placeholder images follow dark mode. The placeholder a copied template page shows in place of its demo pictures is now a soft gray at low opacity that takes its tone from the surface behind it, so it no longer shows as a bright light-gray block in a dark theme. The gallery-hero, side-gallery and lightbox gallery examples no longer warn about duplicate keys when every picture is the placeholder. (#11150)

  • Theme commands no longer replace files they do not own, and they report the right errors. theme template --overwrite replaces only an earlier copy of the template or a theme source file, and refuses folders, blank paths and paths that are not .ts. theme eject --overwrite never writes into another theme's folder or a theme the theme editor made, and the result names the packages the fork needs (missingPackages, installCommand). theme build --out <folder> writes <name>.css into the folder; a build never replaces its source, or a file at a path --out names that it did not write, and two themes with one name in one run are refused (a header-less output of a CLI before 0.6.7 at the default paths, family outputs included, is still replaced). When --out names a file that a CLI before 0.6.7 wrote, the build says so: delete that file and run the same build again. Two theme add, use or remove commands at once keep both changes. A theme whose local folder or package is gone no longer blocks use, add or remove of other themes; it is left out with a note; one broken local theme folder no longer hides every other theme from list and add. add says which owner it chose when a local theme shadows a package theme. An option without its value is ERR_MISSING_ARGUMENT with the command's usage, and astryx help <group> <command> prints that command's help. (#11210)

  • The theme showcase's Sign in dialog opens empty each time, not with what was typed before a Cancel. (#11139)

Performance

  • The CLI turns on Node's compile cache, so a run skips most of compiling the CLI's modules again. The cache sits in the user's own folder in the system temp folder (node-compile-cache-<uid>), used only once it exists (the first run on a machine just makes the folder, so a one-off run pays nothing for it) and only while it is a real folder the user owns and no one else can reach. Where the system has no user ids (Windows), that cannot be checked, so the cache stays off. NODE_DISABLE_COMPILE_CACHE=1 turns it off. A cache that cannot be read or written is skipped without a word, and every command prints the same output. (#11217)

  • astryx --help, -h and help print the root help from a command list stored in the package when it is published, instead of loading every command first. The list holds the terms and descriptions the fully loaded CLI prints, so while every command loads the help reads the same. A command whose module fails to load is listed in the published root help under its normal description, instead of being marked as failed; running that command still reports the failure. (#11194)

  • Commands that read the docs Astryx ships (search, build, docs, template) read each shipped doc that holds only plain data from a copy of its exports stored in the package when it is published, instead of importing the file. The copy is keyed by the file's text, so an edited doc, a doc that imports or calls anything as it loads, and every integration's docs are imported as before. Every command prints the same output. (#11191)

  • search and build read the components of a template Astryx ships from a list stored in the package when it is published, instead of parsing the template's source on every call; template does too when it leaves a template's demo content unchanged. The list holds exactly what parsing returns, keyed by the source text, so a changed source or an integration's template is parsed as before. Every command prints the same output. (#11190)

  • A process that calls themeTargets() more than once scans Core's component docs once. It reuses that scan while every folder and doc it read is unchanged, as the docs and search catalogs do. A Core reached through a symlink, as a project's node_modules reaches it, shares the scan of its real path. A one-shot astryx theme targets and the theme build's target check still scan once. Every command reports the same targets. (#10981)

Documentation

  • The calendars guide names every calendar by its CLDR name, such as Minguo, Dangi, Hijri, and Ethiopic, with its identifier beside it. (#11102)

  • The token tables in astryx docs say that their values are Core's defaults, which a theme replaces: the columns read "Core default", "Core default (light)" and "Core default (dark)". The Color topic also says that each theme defines its own values and that astryx theme list shows the themes that are available. (#11089)

Other Changes

  • Internal: the module loader imports a user module through the same small module the doc importers use, which the CLI's own test project loads natively, so a theme build's doc reads no longer time out its tests on a busy machine. No change to any command's output. (#11119)

Contributors

Thanks to everyone who contributed to this release:

@AKnassa @bstcoc @cixzhang @fullstackhacker @humbertovirtudes @hurrymaplelad @imdreamrunner @josephfarina @korkt-kim @nynexman4464 @SebTardif @utkarshpatwa393-sys @vjeux @whispering3

Full Changelog: https://github.com/meta/astryx/compare/v0.7.13...v0.7.14

14 days ago
astryx

v0.7.13

Astryx 0.7.13 — all @astryxdesign/* packages ship at this version.

OLD_VERSION=0.7.12  # replace with the Core version your project uses today
npm install @astryxdesign/core@0.7.13 @astryxdesign/cli@0.7.13  # plus every other @astryxdesign/* package you use, at 0.7.13
npx @astryxdesign/cli upgrade --from "$OLD_VERSION" --apply --path .

@astryxdesign/core

New Features

  • Tokenizer forwards BaseTypeahead's menu and onOpenChange in its inline presentation, and its handle gains open() and close(). A token whose own button calls open() with a dialog-role menu opens the dialog, and Escape returns focus to that token: focus that a press puts on a token's control, and the menu's focus return, stay there instead of moving to the input. The sheet presentation keeps its own sheet. (#10624)

  • Typeahead: Backspace or Delete on the selected Token clears the value, as the clear button does, when the clear button shows: it calls onChange(null), announces the cleared value, and moves focus to the empty input. Without hasClear, the keys start editing, as a click does. (#10847)

Fixes

  • A swizzled component and the package's components now announce through one pair of live regions: messages from both join the same frame, and a copy no longer mounts a second pair that screen readers would read twice or skip. The modal announcement route is shared the same way. No API changes. (#10996)

  • BottomSheet: a finger's pull on the sheet's content at a scroll edge cancels the content's native pan as soon as the pull reaches a tap's wobble (5 px), before the sheet's own drag begins at 8 px. In iOS Safari the first touchmove a page keeps committed the touch to the content's scroll, so a slow-starting swipe down rubber-banded the content under the finger while the sheet moved beside it. A tap that wobbles less than 5 px keeps its click, while a tap that wobbles 5 to 8 px toward the edge now loses it. A real scroll is never cancelled. A mostly sideways swipe on a horizontal row is not cancelled before the sheet's drag begins; a first move past 8 px starts the drag in any direction, as before. (#10033)

  • A swizzled overlay that carries its own copy of the layer runtime now shares the package's: one layer stack, one modal outlet order, one gesture counter, and one record of outside dismissals, popover show and hide operations, layer surfaces and press claims per page. Before, such a copy kept its own, so Escape over a swizzled HoverCard inside a package Dialog could close the Dialog too, and the two copies could race each other's popover operations or miss each other's outside presses. No API changes. (#10998)

  • A disabled Link stays announced as disabled, with its own role, when the caller also passes aria-disabled or role. Before, those caller props replaced Link's own, so aria-disabled={false} announced a disabled link as enabled, and role="button" announced a button that does nothing. (#11030)

  • Markdown's public parser drops every data: link and image URL, and <Markdown> renders data: links and images as source text. (#11020)

  • Carousel snap paging: in Safari, a held row's stops and span stay on each item's start edge when the settle moves between an item's rect read and its translate read. (#10992)

Documentation

  • Add hook documentation and interactive sparkline example block for useDirection, detailing render-time direction handling and CSS logical properties best practices. (#10547)

    Also released in @astryxdesign/cli.

  • InternationalizationProvider has a calendar example: the provider's calendar prop shows a Calendar and a DateInput in the Japanese or Buddhist calendar, and the value stays a Gregorian ISO date. Both calendars work without Temporal. (#10135)

    Also released in @astryxdesign/cli.

Other Changes

  • Internal: Table's row virtualization now runs on one shared list-windowing module inside Core, which later long lists will reuse. The undocumented @astryxdesign/core/internal/virtualization entry gives Lab the same module. Table's behavior and public API do not change. Internal entries are outside the public API and its compatibility promise. (#10810)

@astryxdesign/cli

Experimental APIs

  • astryx discover lists the experimental TabBarMoreList component from @astryxdesign/lab. (#10619)

  • Icon sets: a project picks one main icon set and backup sets in order, and an icon no set has becomes a placeholder in the copied file. Only the experimental icon commands, projects that set experimental.iconSet, templates that declare icons, and the icon-set guide change. (#10959)

    • Main set and backups. astryx experimental icon use <main> --backup <set> (repeatable, order kept) writes experimental.iconSet as a list, the main set first; with no --backup it writes the plain string as before. The receipt adds backups, the installed sets the list leaves out (unlisted), and the command that adds them (next). experimental icon --list shows the order and each set's role and rank, and, when two or more sets are installed and none is the main set, the command to run. A CLI before 0.7.12 refuses the list form, and use warns when the project's CLI range admits one.
    • Copied templates follow the list. astryx template takes each icon from the first set in the list that has its meaning, never mixing sets within one icon, and reports the set used, a missing look (variant: {asked, used}), and each set used with its license (icons.sets).
    • No stray library imports. An icon no set in the list loses the template's original import. The copied file declares a small MissingIcon component once (a dashed square, 1em, in the current text color, hidden from screen readers unless a use gives it a label), and each place the icon was renders it, with a comment naming the meaning. It needs no new package. The output prints a note naming the meaning and both fixes (map it in the main set, or add a backup set), and the JSON lists it in icons.placeholder.
    • Doctor. With the opt-in, the icon-sets check fails when the list names a set that is not installed, withdrawn, or shipped by two packages, and when more than one set is installed and the list leaves one out. A new icon-placeholders check warns while copied code still uses the placeholder, naming each file and meaning; a commented-out or quoted copy does not count. Projects that have not opted in see no change.
    • Labeled template icons. Every icon a bundled template uses now declares its meaning, with 30 new icon definitions. integration check notes an icon a template imports but does not declare (template_icon_undeclared), in a package whose templates declare icons: an import from a module the package declares icons from, which the template renders as an element with no children or passes as a value. Any other import from that module, such as a type, a function it calls, or a provider with children, is listed as not checked. The note fails --strict --next and leaves --strict as it was. A generic renderer (a bare Icon, or one every use gives an icon prop) and an import that matches an icon by its name only are listed as not checked instead.

New Features

  • The CLI adds a BaseTypeaheadMenu block: a BaseTypeahead whose listbox menu shows information around the result list, and whose pick or filter button opens a dialog-role menu on the same layer. (#10625)

Themes (@astryxdesign/theme-*)

Fixes

  • dependency floors move to current releases: the build package needs autoprefixer 10.6.2, browserslist 4.29.5 and lightningcss 1.33.0; the CLI needs ignore 7.0.14, jscodeshift 17.4.0, linkedom 0.18.15, zod 4.6.7 and @stylexjs/babel-plugin 0.19.1; each theme needs lucide-react 1.66.0. Peer ranges do not change. (#10709)

    Also released in @astryxdesign/cli (templates).

Contributors

Thanks to everyone who contributed to this release:

@cixzhang @humbertovirtudes @imdreamrunner @josephfarina @nynexman4464 @utkarshpatwa393-sys @vjeux

Full Changelog: https://github.com/meta/astryx/compare/v0.7.12...v0.7.13

14 days ago
astryx

v0.7.12

Astryx 0.7.12 — all @astryxdesign/* packages ship at this version.

OLD_VERSION=0.7.11  # replace with the Core version your project uses today
npm install @astryxdesign/core@0.7.12 @astryxdesign/cli@0.7.12  # plus every other @astryxdesign/* package you use, at 0.7.12
npx @astryxdesign/cli upgrade --from "$OLD_VERSION" --apply --path .

@astryxdesign/core

New Features

  • BottomSheet: at rest, a sheet's content starts below the grab bar whatever its padding, so the first line is no longer drawn through the bar's fade. The block-start inset is never less than the bar's height (--spacing-6): the band under the bar is not padding a child escapes, so a lone Section starts below the bar too; scrolled content still passes beneath it. A sheet at the default padding starts its content 8 px lower, one with padding={0} starts it below the bar, and one whose only child is a Section starts that Section 24 px lower and grows by the same amount. Core's own padding={0} sheets (the touch date and time pickers, the DropdownMenu and ContextMenu sheets, and the PowerSearch and Tokenizer sheets) no longer reserve that band themselves, so the pickers, PowerSearch and Tokenizer look the same and a menu's first row sits 8 px lower. The CLI's table-filter and table-inbox page templates drop their own band too, so it is not doubled. (#8558)

    Also released in @astryxdesign/cli.

  • ChatLayout keeps its composer on top of the software keyboard where the visual viewport shrinks for it, instead of leaving it underneath until the browser scrolls the whole page. In Chrome on Android the dock rides Gboard's measured slides up and down, in step with the keyboard. In Safari on iOS (in the browser and as a home-screen app) and in Firefox for Android, it moves above the keyboard once the browser reports it. Where a page sets interactive-widget=resizes-content, Chrome shrinks the page for the keyboard itself and the composer stays above it without moving. A conversation at its newest message stays there, and the rest of the transcript can still be scrolled above the composer. On a touch screen, in a top-level page, every way into the composer's text (a tap, the keyboard's previous and next buttons, Tab, the input's focus()) reaches it without the page scrolling; under a mouse or inside an iframe the browser's own focus applies. In a top-level page on a touch screen, the composer's wrapper (without the scroll-to-bottom button) is a group with no name. When the keyboard's Done ends typing, focus rests there (it is no tab stop), so the next tap or Tab starts from the composer; it shows the focus ring after keyboard input only. A tap that focuses the composer still raises its click once. Under a mouse or inside an iframe, the wrapper is a plain container. Under Reduce Motion the composer never travels with Gboard: it cross-fades to its place above the keyboard. Under a mouse, with no software keyboard, nothing changes. The browser-support guide's section on the on-screen keyboard covers ChatLayout's composer. (#8176)

    Also released in @astryxdesign/cli.

  • Kbd shows meta as ⌘ on Apple platforms, where it showed "META". (#10528)

  • Kbd shows ctrl, alt and shift as text ("Ctrl", "Alt", "Shift") off Apple platforms and before hydration, and meta as "Win" off Apple platforms and before hydration, instead of Apple's ⌃ ⌥ ⇧ symbols and "META". Apple platforms keep the symbols, and spoken names are unchanged. The text comes from the catalog, so other locales can translate it. (#10524)

  • A LayoutPanel that takes a useResizable region in its resizable prop slides closed and open from the edge facing its ResizeHandle when the region collapses or opens, under every pointer, with the content beside it moving on the same motion: through collapse(), expand(), Enter, a double-click, the grow arrow, a controlled isCollapsed, or a lift past the collapse threshold. A drag that reopens the panel follows the pointer, and Reduce Motion is honored. A hand-built ResizableProps object does not slide. No prop or option is added. (#9989)

  • On a phone or tablet, drag a Lightbox photo down to close the viewer, as in the iOS Photos viewer. The photo follows your finger and shrinks a little as you pull, while the backdrop fades and the controls fade faster. The backdrop fades without its blur, which comes back once it is at rest. Let go moving down, however short the pull, and the photo carries on down as the viewer closes. Flick it back up, or bring it back to where you started, and it springs back into place. A zoomed photo still pans when you drag it; the drag to close starts from the fitted size. Videos are unchanged. (#8215) The viewer's controls now sit in their own layers, which fade together during the drag.

  • A Lightbox gallery now pages the way the iOS Photos viewer does. On a phone or tablet, drag or flick between items: the row follows your finger, and the release lands on the next or previous item, one at most. A gap of 40 px separates the items while they move. A zoomed photo pans with your finger until it reaches its edge; a new drag from that edge moves to the next item. A photo you leave zoomed returns to its fitted size once the gallery rests. Under a finger, the previous and next buttons and the arrow keys slide to the item instead of swapping it in place. (#8197) Each item's caption moves with its item, right under its photo. onIndexChange also reports a swipe.

    Lightbox now loads its touch code with it, as Toast and Slider do. Its import grows from 51.4 KB to 99.6 KB gzip with the zoom and paging beneath, mostly shared touch modules that a page loads once; Lightbox's own code adds 14.1 KB minified.

  • List takes animatedLayout, the handle from useAnimatedLayout({containerRef}), and ListItem takes itemKey, the row's identity. With the handle, when rows are inserted, removed or reordered, an inserted row enters, a removed row (a swiped one with its action showing) collapses in place, and a row that crosses rows moving the other way rides above them with the surface color behind it, as an iOS table's opaque cell does. The rows after a change and the content after the list, up to the handle's container, glide to their new places. All of it runs on one shared motion and starts together, under every pointer; under Reduce Motion nothing travels. A row without an itemKey changes at once, and without the handle the whole list does. (#8106)

  • While a reorderable List row is in reorder mode, a hint anchored to its handle, in the keyboard hint's layer and theme roles, shows the moves and Done. Each is a button that does what its key does and leaves the focus on the handle, so a row can be reordered by taps alone: the handle, the moves, then Done. (#8139)

  • createReorderable({onReorder, isReorderable}) makes a collection's reorder behavior, and List takes it as reorderable: each ListItem with an itemKey gets a reorder handle at its end, and each committed move calls onReorder({key, to}) once, with the row's key and its index after the move. On a touch screen a finger held still on a handle picks up its row the way an iOS table's reorder control does (a flick on it still scrolls): the row stays in its place, dimmed, while a copy of it follows the finger and an accent line marks where it would land; the other rows stay still, the page scrolls near the edges, and on release the rows rearrange, gliding to their new places. A pen held on a handle picks up its row the same way where the primary pointer is coarse. A mouse, or a pen where the primary pointer is fine, drags a handle at once with the same copy and line, and rows take their places without motion; a cancelled drag puts everything back at once. Without a drag, a click, Space or Enter on a handle turns on reorder mode for its row: the insertion line marks the row's place, each arrow key moves it a place at once, announced with its place and neighbours, and Escape or another activation ends the mode, keeping the moves. The object's start(key) enters the same mode from the app's own UI, such as a row's context menu. A List without reorderable loads none of the reorder code. (#8139)

  • A ResizeHandle that any pointer pulls past the maximum, or under the minimum, of a region whose pane a LayoutPanel renders now moves the handle with resistance, at most about 8 px past the limit and over the content beside it, while the panes keep their sizes, and the handle springs back to the limit after the lift. A panel sized by the region's size alone stops at the limit. A collapsible region no longer collapses mid-drag: only the lift collapses it, when the pointer is past collapsedSize, or released fast enough to come to rest past it, and a LayoutPanel's pane slides shut on a spring from the release velocity. Any other lift under the minimum returns to the minimum. A pointer that grabs the handle again catches it where it shows. Arrow keys still stop at the limit. Reduce Motion lands both at once. (#10292)

  • Tables can window fixed-height flat data: pass useTableRowsVirtualization({rowHeight, initialViewportHeight}) to Table.virtualization. Table keeps the complete data and row identity, mounts only the rows in its viewport plus a few overscan rows, keeps native table semantics with full-table row positions, keeps the focused row mounted, and falls back to rendering every row for content or geometry it cannot window. Tables that do not opt in are unchanged. (#8280)

    Also released in @astryxdesign/cli.

  • useTableRowsVirtualization's viewportHeight is renamed initialViewportHeight before the hook's first stable release. It only sizes the first window, on the server and before the viewport is measured; it no longer sets the Table's height. A windowed Table scrolls inside the height its parent gives it, so give the parent a height. rowHeight is unchanged. (#10894)

  • Table plugins can now read where a row sits. Table passes each body row and cell transform an immutable TableRowContext (the row's key, its zero-based logicalIndex in the complete data, the row and header counts, and the row model). It passes the scroll-wrapper transform a TableRenderContext with a stable viewport reference. A plugin declares rowModel: 'flat' when its body transforms keep one row per data item. useTableSelection and useTableStickyColumns declare it. useTableRowIndex() without options now numbers rows from the context (passing data still numbers from that array), and rows that move re-render only for plugins that read the index. Read context values during the transform; a later read from a callback warns in development. The CLI's numbered-rows block no longer passes data. (#10171)

    Also released in @astryxdesign/cli.

  • Windowed tables stay windowed with row selection and row numbers. A windowed row-number column widens to fit its last number before that row mounts, at the table's font and density, and pinned columns after it move with it. (#10658)

  • Under the touch presentation, ToggleButtonGroup tracks a finger's or a pen's press across its toggles, like a menu. Press a toggle and slide across the others: the highlight follows, and only the toggle you lift on changes. Lifting outside the group changes nothing. A mouse press is unchanged: it acts as a native toggle's, on the toggle it began on. With a finger, a toggle the group tracks keeps its 44 px target, now drawn by the group. A toggle without a value keeps its own press, and the keyboard is unchanged. Before, each toggle tracked only its own press, and sliding off it changed nothing. An enabled ToggleButtonGroup root is position: relative under a coarse pointer, so absolutely positioned children anchor to the group. With a fine primary pointer, the group is unchanged. (#8660)

  • Under a coarse primary pointer, expanding a TreeList row glides the rows below it to their new places on the shared layout glide while its children fade in on the same timing, so the tree moves as one. A collapse fades the children out as the rows below glide up, and the chevron turns on that timing. The rows used to appear and leave in a single frame. Without an animatedLayout handle the motion stays inside the tree, so content after the tree takes its place at once, and the tree clips its bottom edge while it moves so no row paints over that content; pass a handle for it to glide too. The guide lines beside a group now show and hide with its rows. With reduced motion on and a finger, the children fade in where they land. With a mouse the rows still change at once. Under every pointer, a guide line now ends at the last row it joins instead of running on beside an expanded last row's children. (#8088)

  • BaseTypeahead takes menu, which chooses what its anchored menu shows while Astryx keeps the layer: its position, top layer, outside press, Escape, focus return and ARIA. {role: 'listbox', render} places information such as a header or a key hint around the result list, and anything a person acts on stays a result, so the arrow keys reach it (a control outside the list warns in development). {role: 'dialog', label, render} shows content that takes focus in a dialog named by label; closing it returns focus to the element focused when it opened, or to the input. A new handleRef exposes open() and close(), and onOpenChange reports each change; there is no controlled open state. Calling open() from onChange keeps the menu open, so a pick can switch the list to a dialog on the same layer. Typeahead forwards menu and handleRef. (#10544)

Fixes

  • a month position past the end of a Gregorian-aligned calendar's year constrains to that year's last month in calendarMonthFromYearMonth and useCalendarDays, instead of returning a NaN CalendarMonth and laying out the next year's January (#10461)

  • Declare renderer-owned DOM boundaries so decorator overlays mount outside managed content without changing safe inline hosting. RichTextEditor also mirrors its dir prop onto the wrapper around the editable surface, so the editing surface and its content blocks, the placeholder, UI rendered through plugins, and relocated overlays follow dir; the editing surface previously kept the surrounding direction. (#7633)

    Also released in @astryxdesign/richtext.

  • On Android, text follows the reader's system font scale in every theme with no setup, in browsers that report env(preferred-text-scale) (verified on Chromium and on Chrome stable). The root Theme reads env(preferred-text-scale) and scales every font size by it, as it already follows Dynamic Type on iPhone. Before, the system font scale reached Astryx text only when the page added <meta name="text-scale" content="scale">. A page with content="scale" keeps working as it did: its root font size carries the scale, and the root Theme adds none. Browsers without either see no change. astryx docs typography/type-scale describes it. (#10727)

    Also released in @astryxdesign/cli.

  • Motion: in WebKit on Linux, the last frame of an animatedLayout change shows where each motion ends once a frame has drawn the motion near its end. Under load, that frame, and every frame of a long task over its end, could show a glide, an exit's fade or an indicator's turn part of the way through: a collapsing TreeList drew the rows below 44 px back, its leaving rows half faded and its chevron mid-turn. A long task that starts before that frame, or a motion near its end only at its last keyframe, can still show it. At normal speed the motion is unchanged. (#10663)

  • Motion: a Switch's value change mid-travel keeps the thumb's running speed. A rebase toward the new rest shifts the curve whole. (#10369)

  • Avatar: initials are drawn as generated content with empty alternative text instead of text, so axe's Label in Name check (label-content-name-mismatch) no longer flags a link or button avatar that shows initials. The accessible name, the name tooltip and the initials' appearance are unchanged. (#10816)

  • Under reduced motion, a BottomSheet that a finger's swipe dismisses fades out where the finger left it. Before, it jumped back to its open position in one frame and faded from there. With motion, the next open after such a swipe rises from below the screen again, instead of starting where the finger left the sheet. (#10925)

  • BottomSheet: a drag reads its release velocity from Core's velocity tracker, on each event's own timestamp, also when a touch drag starts on the sheet's content. The release depends on the last two moves, so a move that reaches the page late earlier in a flick no longer slows the flick. A hold weighs on the first move after it, as iOS's filter does. Two rules differ from iOS: a finger that holds still for more than 40 ms before the lift releases nothing in motion, and a release needs two moves. (#10463)

  • A stacked BottomSheet whose close waits in a suspended transition takes over the dim when the sheet beneath it closes, so the page behind it stays dimmed. (#10776)

  • BottomSheet: an open sheet that renders again no longer reads the viewport height. It keeps the viewport height that its resize listener reads, so a tap that renders the sheet again forces no style recalculation or layout in React's commit. The sheet's height, reserve and detents are unchanged. (#10363)

  • Button: disabled buttons no longer render the native disabled attribute. They stay focusable in keyboard tab order, keep focus when they become disabled while focused (a link Button, which becomes a <button> when disabled, still moves focus), and expose aria-disabled="true". All activation paths (mouse clicks, Enter, Space) and clickAction/onClick callbacks remain blocked without losing focus to the document body. A disabled named submit Button withholds its name so new FormData(form, submitter) omits its value. A ButtonGroup whose members are all disabled (whether on the group or individually) keeps its one Tab stop instead of dropping out of the Tab order or giving every member its own stop, and Carousel's hidden scroll buttons are never Tab stops. Tests that assert toBeDisabled() or :disabled should query [aria-disabled="true"] instead. (#7906)

  • A labelled Button grows with its label when the text size grows: its height is its size, or one line of its label when that is taller, so the label stays inside the button. At the default text size Buttons render exactly as before, a caller's height still applies, and icon-only buttons keep their fixed square. (#10588)

  • Calendar day buttons grow with their numbers when the person's text size grows, such as a larger browser default font size. Their size is now a minimum, so a day's number stays inside its own tap target and a tap no longer lands on the day below. At the default text size nothing changes. (#10596)

  • Under snap paging (hasSnap={useSnapPaging()}), Carousel's edge buttons and handleRef's scrollNext, scrollPrev and scrollTo move the row through the paging, also from rest. A touch that catches such a move now leaves the row on a page, as a flick's settle does. On iOS a still touch used to stop the browser's smooth scroll between two items. (#10384)

  • Under snap paging (hasSnap={useSnapPaging()}), Carousel's edge scroll buttons and edge fades follow the row as it moves. They change in the frame where it leaves an edge. A flick used to leave them as they were until the settle ended and the row went back to native scrolling, so the start button came back about half a second after the row had visibly left the start. (#10359)

  • ChatComposerInput: composing with an input method (for example Japanese or Chinese) right after picking a mention, inserting a token, or inserting text after a token now commits only the composed text. The composer places its caret inside the trailing text, not on an element boundary, so the first raw letter of the composition is no longer committed. Right after a mention pick, one Backspace now removes the mention with its space, and no stray line break is left. (#6423)

  • ChatLayout's scroll-to-bottom button now appears when scrollRef names the document's scroller and the reader scrolls the page up. The stream scroll also stops following there, so a streaming reply no longer pulls that reader back to the newest message. (#10779)

  • ChatLayout with a scrollRef now rests the newest message above the fixed composer dock at the scroll's end. The message area's end padding holds the dock's height and follows it as the composer grows. (#10676)

  • useChatStreamScroll's scrollToMessage now puts the message at the top of the viewport when the scroller is the page itself. It landed off by the page's own scroll. (#10781)

  • CommandPalette stays open with no results when a search or bootstrap request rejects (#10675)

  • A Table, or a List with edge="bleed", that is the first or last child of a rounded Card or Dialog that holds no other Table or bleeding List deeper inside now rounds with the corner it reaches, so the table's focus ring stays whole at the container's corners instead of being cut off. A bleeding List with a header rounds only its last row. Every other corner stays square: standalone, inside a square container or a wrapper element, between other content, at the top of a BottomSheet (below its grab bar), or while another Table or bleeding List sits deeper in the same container. (#10586)

  • CodeBlock's "Failed to copy value to clipboard." announcement now uses the assertive live region instead of the polite one, as status announcements require for errors, so screen readers report a failed copy right away. A successful copy is still announced politely. (#10448)

  • A swizzled Outline (or another copy that carries Core's Markdown plugin protocol) now type-checks against the package's Markdown plugins: MarkdownPluginEntry and MarkdownTransform carry their node type on a shared, versioned key instead of a module-local symbol, so the package's and the copy's types match. The member exists only in types; runtime trust and claim checks are unchanged. No API changes. (#10641)

  • A swizzled copy and the package now agree on the animated-layout handle, code-language values and snap paging. A handle from useAnimatedLayout passed to a swizzled AppShell, List, Table, TreeList, Collapsible or SideNav no longer throws when the layout changes, and those copies type-check: each brand is read through a registered, versioned key at runtime, and the types carry one optional brand member that is never present. No API changes. (#10576)

  • Core registers every React context, and the English its components register, under a versioned key, so two copies of Core's modules on one page share them: a provider from one copy reaches consumers from the other, a layer boundary from either resets the layer-scoped contexts of both, and a component from either shows its English. A copy built against another version of a context keeps its own. No API changes. (#10233)

  • A swizzled component that carries Core's touch code, such as a swizzled Switch or Slider, now joins the package's gesture host, window input listeners, click guard, layer input holds and moving-element hit testing for the page instead of keeping a second set, so the copy and package components do not both claim the same touches. No API changes. (#10599)

  • A swizzled List, TransferList or ListInput and the package now agree on a createReorderable object: its reorder machinery is read through a registered, versioned key. Before, a swizzled List found no machinery on an object from the package and showed no reorder handles. No API changes. (#10741)

  • A DateInput or DateTimeInput with presentation="bottom-sheet" no longer causes a hydration mismatch when the server and the browser are on different dates. The closed sheet's calendar now renders right after hydration, once the browser's today is known. (#10400)

  • Dialog: under React StrictMode, a Dialog with a DialogHeader that is first mounted open and then removed while open (rendered only while open) now returns focus to the element that opened it, instead of leaving focus on the page body. The opener is captured only on the closed-to-open edge. (#5642)

  • Dialog: a DialogHeader title now takes focus only after the dialog is modal, also when the header mounts in the render that opens the dialog. When no other control asks for focus, initial focus now starts on the title in every browser. Before, a header with a start control, and any header in Firefox, started on the first control. (#10408)

  • Drawer: a non-modal drawer (hasScrim={false}) that unmounts while it is open, for example one rendered only while open ({isEditing && <Drawer isOpen …>}) or removed with the rest of a view, now returns focus to the control that opened it instead of dropping it to the page. A modal drawer already did. (#9672)

  • DropdownMenu: a finger's hold-slide-lift no longer flashes the focus outline on the menu button. When a held press opens the menu, the button takes focus first, so focus can return to it when the menu closes; that focus now shows the outline only after keyboard input. A keyboard open and close still show the outline on the button. (#10079)

  • Dialog, CommandPalette, BottomSheet, Lightbox, Drawer, MobileNav, Popover: Tab no longer escapes a modal through a radio group. The browser gives a same-name group of native radios one Tab stop: its checked radio, or, when none is checked, its first moving forward and its last moving backward. The focus region now finds its first and last stops the same way. Before, Tab from a group's checked radio left the modal for the browser's toolbar when the group ended the modal and that radio was not last in it, and Shift+Tab did the same when a group started it. Reported by @duytbp. (#10304)

  • Gestures: a finger's lift is read on the clock its moves came on. In WebKit on Linux, a page pointerup listener that runs long no longer makes a fast flick read as a resting finger, or a tap lifted in time read as a long press. (#10583)

  • HoverCard and useHoverCard no longer open on keyboard focus of the trigger while isOpen={false} is passed. The controlled false already refused hover, but tabbing onto the trigger opened the card and reported onOpenChange(true) against the owner's state; focus now takes the same refusal as hover. (#10181)

  • HoverCard: a labelled card no longer puts aria-haspopup="dialog" on a role-less trigger, such as text or a <time>. Such a trigger names the open card through aria-controls only; a button or link trigger still gets aria-haspopup and aria-expanded. (#10733)

  • A HoverCard rendered into another document, such as an iframe or a Picture-in-Picture window, now closes when Escape is pressed there, and Escape from inside the card returns focus to its trigger. Moving focus from the trigger into such a card also keeps it open. Before, the card read only the page's document, so Escape in the other document never closed it. The card now also ranks on the shared dismissal stack by its trigger's place, so a card whose trigger sits inside a focus-trap container takes Escape before that container, as the topmost layer. (#9592)

  • HoverCard and Tooltip: a controlled isOpen={true} (or isDefaultOpen) no longer strands the layer in the viewport corner when its trigger mounts with no layout box yet, for example inside a Dialog that has not called showModal() yet. (#5398) Dialog mounts its children before it opens (isOpen gates showModal(), not rendering), so a HoverCard or Tooltip inside one with a controlled isOpen={true} runs its show effect while the trigger sits in a still non-modal <dialog> and has no box. A trigger with no box is not a valid CSS anchor: the popover resolves to its fallback position in the viewport corner, and unlike a live layout change that resolution is not revisited once the trigger later gets a box.

    Layer's show() now opens immediately when the trigger already has a layout box (an empty one, such as a ContextMenu's cursor anchor, counts), so a menu or popover still opens in the same task as the press that asked for it. Only a trigger with no layout box (display: none, or inside a <dialog> that is not showing) waits: first for it to get a layout box and for its dialog to show, then for any running animation on the document timeline that ends on its own, on the trigger or an ancestor, to finish, so the layer anchors to the trigger's settled position and not to a mid-transition one. Paused, infinite, and scroll- or view-driven animations are not waited on.

    The box wait is driven by signals and polls nothing: a ResizeObserver for a trigger that gains a layout box, an IntersectionObserver for a purely display: inline trigger (such as the wrapper <span> of a text-only trigger), which a ResizeObserver never delivers an entry for, and the enclosing dialog's open attribute and toggle event. A dialog counts as showing when it is open or shown as a popover, so triggers inside a non-modal Drawer still open their layers. The wait has no time limit and ends when the trigger gets a box inside a showing dialog or the open is cancelled (a later show() or hide(), or unmount). If the trigger element is replaced while waiting, the wait restarts on the new one, and a trigger that unmounts for good stops observing. Without a layout engine to wait on (no ResizeObserver or no Web Animations API, as in jsdom) the layer opens immediately.

    A transient null then same-element call on the trigger ref, as a combined ref utility makes when a handler changes identity, no longer removes and re-adds the element's anchor-name, which could also leave an open layer stranded in the corner.

  • Layers with an entrance input hold: a finger or pen that was already down when a light-dismissing layer opened, and lifts while it enters, now lifts through the hold's shield onto what is under it in WebKit, so the layer dismisses as it already did in Chromium. The shield leaves a small opening at each such press until it lifts. New presses during the entrance are still held. (#10398)

  • Layer: a light-dismissible layer that opens from a right click's contextmenu event stays open when that same press is released. Before, the release counted as a press outside, so a DropdownMenu opened through isMenuOpen from a right click closed at once. A later press outside still dismisses the layer. (#10128)

  • A popover taller than the room on both sides of its trigger keeps its top when the keyboard shortens it. The field being typed into stays under the caret. It used to jump below the trigger as the keyboard arrived, and back as it went. (#10497)

  • Once the keyboard caps a layer such as a popover, a scroll a person starts in it afterwards is no longer undone. On a busy page, the layer could scroll back to the focused field just after. A later keyboard change still brings the field being typed into back into view. (#10457)

  • A Tooltip, including a Slider's value bubble, no longer jumps to another side of its trigger in the middle of a scroll. Before, when a scroll carried the trigger toward the edge, the layer runtime took the Tooltip out of rendering for one forced layout so the browser would choose its position again, and it did this again on later frames of the scroll. Now the Tooltip has one fallback list from the start, and no option in it covers the trigger: it tries the opposite side first, then beside the trigger, then a side sized to the room. During a scroll, the Tooltip keeps its side: it is not checked or placed afresh until the scroll stops. In the first frame painted after the scroll stops (at scrollend, or 150 ms after the last scroll event where the browser has no scrollend), it is checked once and moves to the side with room if it needs to. At a show, a remount or a size change it is checked as before. (#10439)

  • A Tooltip's content scrolls by CSS alone, and nothing watches its trigger move. A Tooltip now has overflow-y: auto from its first frame, with no overscroll containment. It scrolls only while its content overflows, so a wheel over a Tooltip that fits still scrolls the page. Once a tall Tooltip has scrolled to its end, the next wheel moves on to the page, where before the page held. A Tooltip is now always a scroll container, so position: sticky and scroll(nearest) timelines inside its content resolve against the Tooltip. The layer runtime no longer reads the Tooltip's scroll size after its trigger moves, and it no longer observes a trigger that moves without resizing. (#10472)

  • A swizzled LayerProvider now shows the package's toasts: the viewport the package's Toast registers renders in a copied provider's outlet, and the package's provider renders a copy's. Before, each copy kept its own registry, so toasts added under a swizzled provider never showed. The registry lives under a registered, versioned key. No API changes. (#10800)

  • Layout: a false, true, or empty-string slot, such as false from isOpen && <LayoutPanel />, now counts as empty. The neighbouring regions move out to the layout edge, the same as when the slot is omitted, and with contentWidth a closed side panel no longer stops the content area at the content-width frame. The docs now list children and ref, show how to hide a region, and say that landmark roles go on the region components. (#10500)

  • LayoutContent: the edge away from a single start panel now takes the Layout-edge inset, so padding={0} on the Layout makes it full bleed, and with contentWidth its children end one Layout-edge inset inside the content-width frame, as they do without panels. Each edge now publishes the padding it applies, so a full-bleed child such as a Table lines up beside an end panel and under a header without a divider. A Layout nested under a header or footer without a divider keeps its own content spacing instead of taking the outer collapse. (#10516)

  • A Layout with no contentWidth no longer caps its LayoutHeader and LayoutFooter at the viewport's width. In a frame wider than the viewport, such as a scrolling canvas or a wide embed, their content now spans the frame like the rest of the Layout. (#10715)

  • LayoutFooter: a data-divider attribute passed by the caller no longer replaces the divider state the footer reflects, so the content above a footer without a divider keeps its collapsed spacing, and a footer with a divider keeps its spacing above the line. The docs now list padding and ref, and say that an unset hasDivider follows the Layout's defaultHasDividers. (#10674)

  • LayoutHeader: a data-divider attribute passed by the caller no longer replaces the divider state the header reflects, so the content below a header without a divider keeps its collapsed spacing, and a header with a divider keeps its spacing below the line. The docs now list padding and ref, and say that an unset hasDivider follows the Layout's defaultHasDividers. (#10686)

  • LayoutPanel: on an edge that takes the Layout's own inset, the panel now tells its children the padding it applies there. Children that read their container's padding, such as a full-bleed Divider, Table, or TabList, or a nested Layout, now follow the panel's outer edge whenever the Layout's padding differs from the inner inset. Before, they used the inner inset: with padding={6} a full-bleed Divider stopped 8px short of the edge, and with padding={0} it ran 16px past it. The docs now say which edge hasDivider draws on, that the Layout's defaultHasDividers does not apply, and that padding={0} is full bleed, and they list ref. (#10774)

  • Lightbox: a screen reader now hears the viewer's own messages while it is open. Moving to another item ("Mountain lake, 2 of 4") and zooming in or out are announced inside the open viewer; before, they went to the page behind the modal viewer, where a screen reader does not read them. The 0 key now returns a zoomed photo to its fitted size. The docs list the 0 key, and no longer say that the lightbox is only for images. (#10775)

  • Lightbox's drag to close now plays at the theme's tempo, like the viewer's other motion. At the default tempo it plays exactly as before. (#10630)

  • An open Lightbox shows the nearest item when index or defaultIndex is NaN or a fraction between the first and last item. A fraction rounds to the nearest item, and NaN shows the first item. Before, the viewer rendered nothing for those values. (#10632)

  • A reorderable List in its own scroll box keeps the dragged row under the pointer when a wheel during a mouse or pen drag scrolls the page, as a wheel at the box's end does. The wheel scrolls as before. (#10742)

  • Markdown: each paragraph, heading, quote and list item lays out in the direction of its own text. A Hebrew or Arabic paragraph in a left-to-right page now starts on the right, and an English paragraph in a right-to-left page starts on the left. A block with no letters, such as digits, punctuation or an image, takes the page's direction from the InternationalizationProvider, also inside a quote or list item that reads the other way. Lists, code blocks and tables keep the direction around them too, and the text in each table cell reads in its own direction. A numbered item that reads against its list shows its number beside its own text, and a table cell that reads against its table keeps the table's column lines and any explicit column alignment. A task list now keeps to the same prose width as other lists. (#10293)

  • Menus: the arrow keys, Home, End and type-ahead now reach a disabled row in DropdownMenu, its sub-menus, MoreMenu, ContextMenu and NavHeadingMenu, so a keyboard or screen-reader user finds the row and its description. The row takes focus, is announced as disabled, and Enter, Space or a click on it still does nothing and leaves the menu open. Opening a menu from the keyboard still lands on an enabled row. (#10160)

  • DropdownMenu: a held mouse dragged from the trigger onto a row keeps that row lit. On a loaded page the menu's open focus could land after the drag reached the row and take the highlight back to the menu container until the pointer moved again. (#10590)

  • DropdownMenu: a menu that a mouse press opens stays open when that press is released quickly away from the trigger, or after the trigger moved away under the pointer. Before, the browser's light dismiss read that release as a press outside and closed the menu at once. A press released after the settle time outside the menu still closes it, and a later press outside dismisses it. (#10689)

  • Under a finger, the month and year wheels behind the calendar title in the DateInput and DateTimeInput bottom sheets now behave like the iOS date picker's: (#8209)

    • Turning a wheel moves a chosen date to the new month and keeps its day, so October 15 becomes May 15. A day the month lacks becomes its last day, the result stays within min and max, and DateTimeInput keeps the time. A date that dateConstraints refuses is not chosen; the calendar still moves.
    • With no date chosen, the wheels only move the calendar.

    With a mouse, the wheels still move only the calendar.

  • Motion: elements that start moving from rest in the same frame now start at one time. Before, each element took its own reading of the clock in that frame, so items starting together, such as a carousel's pages as they settle, could start apart by as long as the frame callbacks between them ran. (#10584)

  • Motion: a spring retarget that the browser commits late, behind a busy main thread, now starts at that frame, from where the element is on screen. Before, it kept the clock of the call, so the element jumped to where the new curve had got to: 42 px back in one frame for a retarget behind a 200 ms block. Motion calls made in one callback now share one clock, so the children of a pager line up after a retarget. A retarget made inside a page's own frame or ResizeObserver callback now shows its new curve one frame later. (#10607)

  • MultiSelector: opening the closed list never highlights a disabled option. ArrowDown, Enter, Space and a press highlight the first enabled option in the order the list opens in, and ArrowUp the last, so Enter no longer lands on an option it cannot toggle. A list with search still highlights nothing when a press or Enter opens it. (#10820)

  • Carousel paging: a finger or a pen that lands on a row still settling after a swipe no longer reaches the item under it: no press highlight and no click, as on iOS. A mouse click is unchanged. (#10370)

  • Carousel paging: a finger or a pen that lands on the row during an edge button's move now stops it at the touch, as on iOS, instead of letting it run on for about 85 ms. The item under the finger still takes the tap. A mouse is unchanged. (#10545)

  • A page that a swipe releases now settles at the theme's tempo, as the rest of its motion does: in a Carousel given hasSnap={useSnapPaging()}, and in a Lightbox gallery. At the default tempo the settle is unchanged. (#8197)

  • Pagination's ellipsis grows with a larger text size, as its page buttons now do through Button. Its size is now a minimum height, so the "…" stays inside its own box. At the default text size nothing changes. (#10567)

  • Pagination wraps its row when its controls don't fit, as at a larger text size on a phone, instead of scrolling the page sideways and pushing Next off-screen. Previous stays first and Next stays last. Beside other content in a flex row, Pagination can now shrink to its widest control and wrap at the default text size too, where it held one line before; give it flexShrink: 0 through xstyle to keep one line there. (#10552)

  • parseColor answers null for constructor and __proto__ (in any case), as for any unknown name, instead of a truthy empty RGBA that made composed callers such as chart colors.alpha return rgba(NaN, NaN, NaN, …) (or #NANNANNAN at full opacity) instead of the original string (#10468)

  • A closed Popover, and any usePopover composition, no longer leaves a hidden role="dialog" with its label in the DOM. The surface stays mounted but carries the dialog role, name and aria-modal only while open, so [role="dialog"] selectors and tests that include hidden elements find no dialog that is not on screen. The accessibility tree already omitted the hidden surface. Reopening restores them. (#10487)

  • A dialog Popover starts focus on its first enabled tab stop. It skips a disabled control, lets an element that holds tabindex="-1" yield to a later tab stop, and starts on its labelled surface when every control is disabled. Before, a DateInput or DateTimeInput calendar whose range starts in the shown month opened on the disabled Previous month button. Now it opens on Next month, or, in a one-month range, on the selected day, else today, else the first enabled day. Disabled controls stay reachable by Tab. (#10503)

  • Under a finger, Popover's growth shows its content from its first frame. The growth starts at opacity 0.001 rather than 0: Chromium skips drawing a layer at exactly 0, so the first frames of a growth from 0 showed the popover without its content. No 8-bit pixel differs from transparent at 0.001. (#10757)

  • In PowerSearch's phone sheet, a date range is now picked on a calendar inside the sheet, instead of a calendar popover opening over it. The desktop editor popover is unchanged. (#10618)

  • PowerSearch's phone sheet now edits single and multiple choices with the standard RadioList and CheckboxList at their usual spacing, instead of its own 48 px rows, and its Operator radios put the radio at the start of the row, as every RadioList does. The choices use the shared touch band, so their touch targets are smaller than before. End, Home and Enter no longer pick a choice; the arrow keys and Space work as in any RadioList or CheckboxList. Adds a "Sheet presentation · realistic config" story that covers every value type. The desktop editor popover is unchanged. (#10608)

  • PowerSearch: a filter token's field and operator now come from one catalog message (@astryx.powersearch.token.fieldOperator, "{field}: {operator}" in English), and its full text, which also names its remove button and editor, joins that label and the value with another (@astryx.powersearch.token.labelValue, "{label} {value}"). A locale can reorder the parts and change the punctuation. PowerSearchToken uses the same message. English tokens read as before, except that a filter with no operator text no longer shows a trailing colon. (#10437)

  • Press feedback: a pointerup that carries no pointerId, such as a bare event a test helper or drag script dispatches, no longer throws Cannot read properties of null (reading 'live') when no press is held. It is ignored, as pointercancel already does. (#10695)

  • Inside a scroll view, a pressable's highlight now comes 150 ms after the touch, even when a busy page handles the touch late. Before, the wait started when the page handled the touch, so the highlight came late by that delay. This covers every pressable, and SegmentedControl, Switch, Slider and usePressTracker controls, in a scroll view. (#10260)

  • A theme duration token written with calc() now times a press's release as the browser resolves it. Before, the release clock fell back to 175 ms while the fade played the token's value. (#10069)

  • Two loads of Core's scroll-lock modules on one page now share one page scroll lock: closing the overlay that opened first no longer unlocks the page while the other overlay is still open. Text-selection locks, which a swizzled copy carries, are shared the same way, so a copy's release no longer restores a selection lock the package still holds. No API changes. (#10822)

  • useScrollableArea: an ancestor's inline style change measures the scroll area again only when it changes the axis mapping or the boxes' existence (direction, writing-mode, display, visibility, content-visibility); a size change still reaches it through the resize observers. A BottomSheet writes its transform, and its scrim's custom property, on every input sample of a drag, and each write forced a full measurement (its computed-style reads and the scroll geometry) in the next frame, a style recalculation and a layout on every frame of the drag. (#10034)

  • getContentProps from useScrollableArea now applies a caller's xstyle instead of leaking it to the DOM. (#6314) A viewport that lost overflow while focused drops its leftover tabindex as soon as it is blurred, and a focused viewport in another document keeps focus when it loses overflow. ScrollableArea's viewport also sheds the obsolete -webkit-overflow-scrolling and initial-value scrollbar declarations.

  • Selector: when the options move or reload while the list is open, the highlight stays on its option instead of naming whatever option now sits at its old position. If its option leaves, the highlight moves to the next remaining enabled option after it, or the previous one when none remains after it, and with none left nothing is highlighted. (#10818)

  • Selector and useCombobox: opening a closed list starts on the selected option, as the WAI-ARIA listbox pattern asks, and never on a disabled option. Before, ArrowDown and ArrowUp opened on the first or last option even when it was disabled, and ArrowDown then Enter changed "Hard" to the first option. Now opening highlights the selected option when it is enabled. Otherwise ArrowUp opens on the last enabled option and ArrowDown, a press, Enter or Space on the first; with no enabled option nothing is highlighted. A search list opened by a press, Enter or typing still highlights nothing. MultiSelector is unchanged. (#8868)

  • A Selector whose trigger sits near the bottom of the screen now opens its list on screen. The selected-item overlay's clamp did not count the layer's viewport gutter, so near the bottom edge the browser flipped the list below the viewport and its last options could not be reached. (#10697)

  • In a searchable Selector or MultiSelector, typing now clears the highlight, so Enter never picks an option you did not highlight. Before, the highlight kept its old position, which could point at a different option of the filtered list or at nothing. ArrowDown then starts at the first row: the first enabled match in Selector, and Select all or the create row when shown in MultiSelector. (#8871)

  • Selector with hasSearch: a required field no longer puts aria-required on its trigger, a button where the attribute is not allowed. The search field carries it while the list is open, and the closed trigger still announces "Required", through the field label or, when the label shows no marker, through its description. (#10878)

  • SideNav no longer adds space below a footer when it has no footerIcons and no built-in collapse button. The sidebar rendered an empty footer row there, and the gap of the sticky bottom area added space after the footer. The row now renders only when it holds the collapse button or footerIcons, as the drawer already does. (#10721)

  • Navigation rows grow with a larger text size. The shared nav item styles (navItemStyles, used by SideNavItem and by TopNavItem and the mega menu in the mobile drawer) now take their size as a minimum height instead of a fixed one, so above 200% text a row's label no longer overlaps the next row, and its end content (such as a count Badge) stays inside the row. Collapsed rail rows keep their fixed square. At the default text size, TopNav drawer menu and mega menu rows with a description now fit their text instead of overlapping the next row; other rows are unchanged. A caller height on these styles no longer brings a row below its size; override minHeight instead. (#10550)

  • Carousel snap paging: a stop that sits within half a step of the row's end is part of the last page, so a flick, a wheel or a key never rests a pixel short of the end, and a step back from the end moves a full step. (#10591)

  • Carousel paging: a row that narrows while a finger holds it now rests where the row ends, instead of short of its end by as much as it narrowed. (#10425)

  • Carousel paging: while the paging holds a row, the pager measures its pages and travel from the row's layout, as at rest. (#10860)

  • A Step keeps its own aria-current over a caller's. Before, an aria-current passed to a Step replaced the reflected value, so a step that was not in progress could be marked current and the in-progress step could lose aria-current="step". Now only the in-progress step carries aria-current="step", whatever the caller passes. No API changes. (#10640)

  • Under a mouse, a key that cannot scroll a DateInput, TimeInput or DateTimeInput wheel, as Tab, no longer ends the wheel's key step. On a busy page, Tab right after an arrow key could commit the row the wheel was leaving. (#10924)

  • Table's column settings plugin keeps its active columns in state. When the table re-renders on its own after a render React discards, such as a suspended transition, it shows the committed columns. (#10911)

  • Table: three of its keyboard tab stops draw the theme's focus ring instead of the browser's default: the scroll wrapper once the table scrolls inline, and the tree plugin's row expander and expand-all toggle. A theme's --focus-outline-* tokens now reach them. The scroll wrapper's ring sits inside its box, clear of a bordered Card's border, so a Card no longer cuts off its edges (a Card's rounded corners still trim the ring's square corners); at density="compact" the tree toggles' ring sits inside the toggle, so the row does not clip it. The row-expansion, grouped-rows and filter buttons are unchanged. (#8873)

  • Table: a row expansion panel with panelVariant="muted" now paints its wash on its cell, so with an animatedLayout handle the wash slides in with the panel's content. On iOS Safari the panel's edge trailed the rows gliding below it for a few frames; now they stay together. At rest the panel looks the same. (#10403)

  • A Table column-resize handle now announces its column's rendered width from the first render after layout, and its announced range always holds that width, also when the layout renders a column past its maximum or minimum width. Before, until a column was first resized, its handle announced the column's minimum width, so a screen reader read the wrong width. (#10593)

  • A Table column-resize handle on a column with no maximum width now announces a maximum at or above its value, so a screen reader no longer reads the width past ARIA's default maximum of 100. It uses the window's width as the stand-in maximum, as an unbounded Resizable region does, and announces its value in words, for example "133 pixels". A column with maxWidth is unchanged. (#10577)

  • A Table plugin's transformScrollWrapper className now reaches the table's scroll container beside the wrapper's own class; before, the wrapper replaced it. (#10702)

  • TableTree rows no longer carry aria-expanded, which is valid on a row only in a treegrid. Each row's expand and collapse button still exposes its expanded state, and rows keep aria-level for their depth. (#10538)

  • A swizzled Table now honors virtualization from the package's useTableRowsVirtualization, and the package Table honors a capability from a swizzled copy. Before, each copy recognized only its own capability, so a swizzled Table rendered every row and its code failed to type-check. The capability is read through a registered, versioned key, and its type carries one required brand member that is never present at runtime, so only the hook makes a capability. A virtualization value the hook did not make now gets its own development warning. No API changes. (#10798)

  • TabList tabs, including a TabMenu tab, grow with a larger text size. Their size now sets a minimum height instead of a fixed one, so at 200% text and above a tab label is no longer clipped. At the default text size nothing changes. (#10534)

  • TextInput, TextArea, NumberInput, DateInput, DateRangeInput, DateTimeInput, TimeInput, Tokenizer, Typeahead, PowerSearch, ChatComposer and RichTextEditor: when the primary pointer is coarse (a phone or tablet), the focus look shows at once, with no fade, so a tapped field repaints once while the keyboard rises. With a fine primary pointer, such as a mouse, a click and the Tab key keep the fade. ChatComposer's focus depth also shows at once under reduced motion, as the other fields' focus look already does. (#10611)

    Also released in @astryxdesign/richtext.

  • TextInput: the clear button now runs changeAction with the empty value and shows the optimistic empty value and busy state, as typing does. The clear goes through the input's own change handler, so onChange and changeAction receive a real change event (before, onChange received null as its event and changeAction did not run), onChange runs first, and its preventDefault() cancels the Action. (#6425)

  • A truncated Text or Heading mounts its tooltip on the first hover, tap or focus, not as soon as it renders, so a long table or list of truncated cells mounts no closed tooltip layers at load. The hover delay, the tap and the focus rules are the tooltip's own: a touch that becomes a scroll opens nothing, and a tap outside closes it. No visual change. (#10290)

  • Theming: a theme's :active override now follows the touch press model. With a mouse it still paints on :active. Under a finger it paints only while Astryx believes the press, so a themed control no longer flashes the theme's press color on the touch itself or while the page scrolls. (#10420)

  • In Safari on iPhone, text follows the reader's text size (Dynamic Type) in every theme, branded included. Where the browser exposes that size through font: -apple-system-body, as Safari on iPhone does, the theme's font sizes scale with the size the reader picked in Settings (Display & Text Size, then Larger Text), each size on the curve of the iOS text style it plays: body text like Body, heading-1 like Title 1, display text like Large Title, with every role kept in order. A semantic size a theme fixes at a length, such as the 0.75rem supporting text of Butter, Stone and Y2K, scales on the curve of the step it reads by default. At the default size every font size is the theme's own; the family, spacing, line-height ratios and the root font size never change, text inputs keep their 16px floor on iOS, and browsers without the keyword see no change. There is no option, prop or document attribute: the root Theme reads the reader's size from a hidden element. astryx docs typography/type-scale describes it. (#10416)

    Also released in @astryxdesign/cli.

  • Theme keeps its runtime-injected CSS in the document until the last mounted Theme using that theme unmounts. Before, the Theme that injected the CSS first owned the shared <style> tags, so unmounting it (a nested Theme around a dialog that mounted first, for example) stripped the component overrides and prose defaults from every other Theme still using that theme. Built themes, which import their CSS as a file, are unaffected. (#10178)

  • TimeInput shows the stepped time after an arrow-key adjustment made while a typed draft is pending, and leaving the field keeps that step. Before, the text typed before pressing ArrowUp or ArrowDown stayed in the box while the committed value and the screen-reader announcement had moved on, and blurring re-parsed that stale text and committed it over the step, silently undoing it. (#10179)

  • Timestamp exposes its details popup on the focusable time element. (#6298)

  • Toast: the viewport is each toast's only announcement owner. While an open modal hosts a top-layer viewport (the default), it announces each toast through that modal's own live regions, so a toast shown over a Dialog is announced once. Elsewhere it announces through the shared channel. A viewport rendered in place announces through useAnnounce, which delivers inside an enclosing Astryx modal. The toast card is no longer a live region inside a viewport, including while a modal hosts it. (#7871)

  • Tokenizer forwards cancel to its searchSource, so a newer search, closing the menu or the sheet, focus leaving the field, or unmounting cancels the consumer's in-flight search (for example, to abort its request). Previously the inline field wrapped the source to filter selected items and dropped cancel, and the bottom-sheet presentation never called it. (#8777)

  • A Toolbar with centerContent wraps its row when its lanes don't fit, as at a larger text size on a phone, instead of letting the center title spill over the buttons beside it and past the screen's edge. The end lane, and the center lane when it does not fit beside the start lane, move to a following line. The center sits at the toolbar's middle as before while each side lane fits in half of the width it leaves. In a narrow container, a center TabList now shows all its tabs and the row wraps, and its tabs scroll only when they are wider than the toolbar. (#10563)

  • A controlled Tooltip held closed (isOpen={false}) no longer opens on keyboard focus or a click into a text-field trigger. It reports that focus as onOpenChange(true) and shows nothing, so the caller decides, the same way Escape on a held-open tooltip reports onOpenChange(false) without hiding. Before, focus opened a held-closed tooltip anyway, and Escape could not close it. useTooltip reports the same focus through onShow under isOpen={false}. (#10490)

  • on a touch screen, keys typed into a text field no longer make the focus a closing dialog returns to a Tooltip or HoverCard trigger open its layer; Tab, Escape and arrow keys still count as keyboard input. useTouchTrigger's isTouchInteraction() from @astryxdesign/core/Layer stays true in that case too. A field in an iframe or Picture-in-Picture window is not read as a text-entry field, so typing there still opens the tooltip as before. (#10639)

  • A disabled TopNavItem now keeps its Tab stop, in both the bar and the drawer. Before, it rendered with tabIndex={-1}, so Tab skipped it and keyboard and screen-reader users could not reach it. Now it is a focusable link that exposes aria-disabled="true", while a click, Enter or Space still runs no onClick or onKeyDown, does not navigate, and does not close the mobile drawer. No API changes. (#9208)

  • TopNav's heading can now shrink, so a heading wider than the whole bar ends in an ellipsis instead of running off the bar and scrolling the page sideways. TopNavHeading keeps its logo whole, and independently linked lines wrap and keep their longest word; a plain line beside them still keeps its full width. (#9551)

  • TopNav wraps its bar when its regions don't fit one row, as at a larger text size, instead of letting the end content (such as buttons) cover the navigation items. The end content moves to a second line. While the regions fit, the bar and its centered content look as before. (#10571)

  • DateInput's touch sheet keeps keyboard focus when the month reaches the end of the range, by an arrow press or a swipe, while a month arrow holds focus. That arrow hides there, so focus now moves first to the other month arrow, or to the month-and-year button when both arrows hide. Before, focus fell to the page. (#10231)

  • Toast: the useToast fallback warning and its server-rendering error no longer tell you to wrap the app in <AppShell>. AppShell provides no layer context, so that advice left the warning in place. They now name only <LayerProvider>, which removes it. (#10875)

  • With a mouse or trackpad, a date or time sheet's wheel no longer turns back to the row a key step is leaving. A key step commits its row at once and then scrolls there. On a busy page or a slow device the scroll could draw no frame for longer than the wheel's quiet period, or the browser could end it part-way, and the wheel took that pause for rest: it committed the row under the band and turned back there. A rest before the step's row is reached now finishes the scroll instead. A scroll a person makes still rests where it stops. (#10610)

Performance

  • Closing a Popover or DropdownMenu with Escape, or a DropdownMenu with a pick or a press on its trigger, runs one layout again, not two. A closed trigger stops being a CSS anchor, and these closes took the trigger's anchor name away after the hide's own layout, so the browser laid out once more. Our hide now drops the name before its layout, unless the layer's closed state keeps it shown to fade out. A close the browser runs itself, such as a light dismiss, still drops the name at its toggle event. A layer that fades out keeps the name until its fade ends. (#10346)

  • Popover, DropdownMenu and its submenus, Selector, ComplexSelector, PowerSearch and Breadcrumbs' menu play their entrance on the surface inside the layer, not on the anchored layer. Chromium laid the anchored layer out again on every frame of its 150 ms entrance, two to four times per frame, whenever the page had other frame work. The entrance looks the same. layerAnimations is unchanged; its docs now say to apply it to the surface. Applied to the layer, it still plays as before. (#10561)

  • While a Tooltip or another anchored layer plays its entrance, most reads of the layer's box write no styles. Before, each read during the entrance overrode the layer's transform, read the box and put the transform back, so the browser recomputed style and layout twice in that frame (measured in Chromium: 8 style writes, 2 style recalculations and 2 layouts per read). Now a read on the middle frames of an entrance takes the entrance transform out of one box read by calculation, and gets the same box. The read that shows the layer and any read while its entrance is pending, a read whose box does not yet carry the entrance (in Chromium, a layer at a fallback position), the last frames of an entrance, a layer under a CSS zoom other than 1, and a translate given as a percentage still use the override, as before. Placement, the entrance animation and the keyboard cap do not change. (#10240)

  • Motion: a Switch at rest holds no compositing layer under a coarse pointer. Its colour fade and its lift's shadow take a layer only while they move. (#10542)

  • Motion: the motions that one callback starts on elements that came in the same task read their stylesheets' will-change in one style pass, after the callback. Before, each element forced a style pass of its own: eight for a list whose eight rows glide together. (#10728)

  • Under a finger, Popover plays its growth on the surface inside the layer, not on the anchored layer. Chromium restyles the growth's animations twice as they start and once as they end, and each restyle laid the anchored layer out twice, its backdrop included. Under load those layouts landed inside the growth. The popover looks the same. (#10717)

  • Under snap paging, a Carousel's release bakes the settle's keyframes once, not once per item, and plays the settle only on the items that can show. With 9 items the release takes about a third less main-thread time, and with 30 items about two thirds less. (#10568)

  • useTableRowIndex builds its number column once per plugin, so a parent re-render no longer re-renders every row of a table that shows row numbers. (#10654)

  • Truncating Text and Heading take a newly mounted element's first measurement from the shared resize observer's first notification, after the browser's own layout, instead of forcing a layout pass after each commit. Pages and windowed tables that mount many truncating texts commit faster; the tooltip behaves as before. (#10668)

Documentation

  • The source header of Layout/containerCorners.stylex.ts (shipped in the package) now says that the --container-corner-* variables Card and Dialog set are in astryx.css, undocumented, and read only by Table and List; it had said they stay out of public API. (#10701)

  • Hook docs for useCalendarConstraints, so astryx hook useCalendarConstraints and astryx search return it, and a useCalendarConstraints — Hotel Booking Range example block: a booking range picker that enforces min/max dates, disables closed Mondays, and caps reservations at 7 nights once check-in is selected. Copy it with astryx template useCalendarConstraintsHookUsage <path>. (#10151)

    Also released in @astryxdesign/cli.

  • Hook docs for useCalendarNavigation, so astryx hook useCalendarNavigation and astryx search return it, and a useCalendarNavigation — Month Pager example block: a month-by-month calendar with Previous/Next controls, localized month-year header, and cross-month arrow key navigation using pendingFocus. Copy it with astryx template useCalendarNavigationHookUsage <path>. (#10154)

    Also released in @astryxdesign/cli.

  • Hook docs for useLinkify, so astryx hook useLinkify and astryx search return it, and a useLinkify — Links in a Comment Thread example block: plain-text comments where the URL and email become Links and a custom #123 issue-reference pattern shows the patterns option, while a comment without matches stays plain. (#9969)

    Also released in @astryxdesign/cli.

  • Add usePowerSearchConfig hook docs and a filtered directory table example block (#10660)

    Also released in @astryxdesign/cli.

  • Add useTableColumnSettingsState hook docs and a column visibility picker example block (#10652)

    Also released in @astryxdesign/cli.

  • HoverCard: a trigger inside SVG <foreignObject> cannot be a CSS anchor in Chromium, so its card opens at the viewport corner. The docs now say so and show the fix: render the trigger in an HTML layer positioned over the SVG node. (#10908)

  • LayoutPanel's JSDoc example wraps its Layout in a Card instead of LayoutContainer, a component Astryx does not have. (#10716)

  • ChatLayout's guidance explains how a reply gets one right edge: Markdown prose keeps its 680px measure while code blocks and tables span the message column, so pass contentWidth="100%" to the reply's Markdown. Markdown's default measure is unchanged. (#6608)

  • useClickableContainer documents a pressable surface without Card chrome: the hook on the surface, usePressFeedback with interactionOverlayStyles.backgroundColor for the hover tint and touch press, a visually hidden <button> or <a> as the named control, and focusOutlineStyles.focusWithin for the shared focus ring that ClickableCard draws. ClickableCard's docs point chrome-free use to it. (#10880)

  • The collapsible, collapsedSize, isCollapsed and onCollapseChange descriptions in the Resizable and useResizable docs name what collapses a region, a lift or a key step under the collapsed size rather than a drag alone, and what reports a collapse change. (#10635)

  • Section's docs show how to center it: set marginInlineStart and marginInlineEnd to 'auto' in xstyle. (#10207)

  • SegmentedControl: the label contrast guidance says the track is translucent, so label contrast depends on the background behind the control, and asks you to check the labels on every background it sits on, including a custom page color. (#10882)

  • SideNavCollapseButton's docs now list every key its collapsible prop takes: the whole controlled config SideNav gets, not only isCollapsed and onCollapsedChange. (#10282)

  • The Skeleton radius prop's description no longer says 4 is 16px. 4 maps to the same container radius as 3 (12px), so the two values draw the same corners. No behavior change. (#10750)

  • Tab's docs show how to give a tab help text: anchor a Tooltip on the Tab through its ref, so the description lands on the tab, and put a decorative info Icon in endContent. endContent is documented as non-interactive: a button, link, or InfoTip inside it would nest a control inside the tab's button. (#10734)

    Also released in @astryxdesign/cli.

  • Tab's docs show how to run the selected indicator edge to edge in one strip: a nested Theme that takes the app's color mode, extends the app's theme and sets insetInline: '0' on the tab-indicator target, so other TabLists keep the default indicator. The override is best effort across releases. (#10814)

  • TableSelectionToolbar documents how to select every row that matches a query across server pages with today's API: the app keeps "every matching row minus exclusions" and passes the toolbar its own count and label. In this mode the toolbar's selectedKeys holds only the loaded rows. (#10271)

  • The Tailwind guide (astryx docs styling-libraries/tailwind) adds a recipe for an app that already uses Tailwind: keep the app's own @import "tailwindcss", put the @layer line above it, and add the Astryx stylesheets after it. It explains why the @layer line must come before the Tailwind import: below it, the Astryx reset outranks every utility class, and nothing reports it. The Core README's Next.js + Tailwind section points to it. (#10532)

    Also released in @astryxdesign/cli.

Other Changes

  • Internal: a ChatComposerInput source comment that restated the code is removed. No change to behavior or output. (#10811)

  • Internal: Core's internal touch entry re-exports the action-group tracking hook, which gains a no-paint option and press callbacks for Lab's TabBar. A tab-bar string joins Core's message catalog. Apps import nothing new. (#9699)

  • Internal: the undocumented @astryxdesign/core/internal/reorder entry also gives Lab's ListInput List's reorder session for rows that are not ListItems: useListReorderScope and ListReorderScope. List runs its own rows' session through the same session hooks, so its callers see no change. A ListInput string joins Core's message catalog. Internal entries are outside the public API and its compatibility promise. (#8163)

  • Internal: the undocumented @astryxdesign/core/internal/reorder entry lets Lab's TransferList and TransferListSelector reorder through a createReorderable object: adaptReorderable runs the owner's engine with the collection's own moves, and the owner's start(key) still finds the collection's list. Existing List callers are unchanged. Internal entries are outside the public API and its compatibility promise. (#8143)

  • Internal: Core's internal touch entry re-exports its scroll test for Lab's TabBar. Apps import nothing new. (#10791)

  • Internal: per-instance warning deduplication and temporary focus targets each have one shared owner in Core. Resizable, Dialog and TabList dedupe their development warnings through it, and Chat's Done button parks focus through it. Warning text and focus behavior are unchanged; apps import nothing new. (#10655)

  • Internal: the More tab's label, a tab-bar string, joins Core's message catalog for Lab's TabBar. Apps import nothing new. (#10791)

  • Internal: Core's internal finger-scroll reader can answer for a past time on the page's clock, for Lab's NavigationStack scroll edge. Apps import nothing new. (#10540)

  • Internal: the undocumented @astryxdesign/core/internal/line-clamp entry gives Lab's LineClamp Core's focusable selector, the shared mutation observer and its flush, and the shared truncation tooltip. The shared mutation observer now passes each registration the records that reached it, and existing callers ignore them, so their behaviour is unchanged. Internal entries are outside the public API and its compatibility promise. (#4259)

  • Internal: the layer's outside-press watch can follow chosen pointer types, close as a press that starts outside begins to pan (on either axis, at core's pan threshold) or when the browser takes it, and judge a press inside a closed shadow root, which the document sees as its host. No component passes these options yet, so every watch keeps today's behavior. Not exported from the package entry point. (#9814)

  • Internal: Popover keeps its chosen presentation (the sheet or the anchored layer, the touch grow or the pointer entrance) from the open until its close settles through the layer runtime's one presentation hold (Layer/presentationHold.ts). No behavior change. (#8587)

  • Internal: one owner module now turns the browser's scroll anchoring off on a container whose position a component owns. useChatStreamScroll uses it while it follows the end, with the same behaviour as before, and the undocumented @astryxdesign/core/internal/scroll-anchoring entry gives its writer to Lab. Internal entries are outside the public API and its compatibility promise. (#10173)

  • Internal: Selector and MultiSelector keep the presentation an opening chose, and a closing sheet mounted until its focus handoff, through the layer runtime's presentation hold (Layer/presentationHold.ts). No behavior change. (#8591)

  • Internal: Core's shared-realm module gains helpers for state that the package and a swizzled copy share (state, maps, stores, brands and sequences). No API or behavior changes. (#10817)

  • Timer's tick pipeline, format ladder, cadence switch, and resource cleanup were audited with no behavior defect found. Two previously untested guards are now pinned: the wait for a distant future startTime is capped at the 32-bit setTimeout ceiling, and an unknown format value coerces to elapsed. The Default story now asserts in a real browser that the display advances on its own. (#6609)

@astryxdesign/richtext

New Features

  • In RichTextEditor, Tab and Shift+Tab in a code block indent and outdent every line the selection touches, by the indent the block already uses (a tab when one of its lines starts with a tab, otherwise the fewest leading spaces of any indented line, kept between 2 and 8, otherwise 2 spaces). The selection stays on the same characters and each press is one undo step. Tab used to put a tab character in place of the selection, and Shift+Tab did the same. Escape then Tab still moves focus out of the editor. (#8579)

Fixes

  • RichTextEditorAutoLinkPlugin no longer turns a URL inside a code block into a link. A URL typed or pasted into a code block, or one in an imported fence, now stays code. Before, the link nested inside the code block, and the exported Markdown fence lost it. (#10664)

  • In RichTextEditor, pasting rich content into a code block inserts plain text: the plain text on the clipboard, or, when there is none, each pasted block as one line of its text. Headings, lists, tables, and formatting used to land inside the code block, where the Markdown export wrote them as plain lines of the fence, so the document read back differently from what the editor showed. (#8580)

  • A link inside a disabled RichTextEditor no longer navigates, shows no pointer cursor, and is not a tab stop. Before, a disabled editor's links acted as live links: a click or Enter opened them, and Tab stopped on each one. (#10679)

Documentation

  • RichTextView, RichTextEditorToolbar and RichTextEditorAutoLinkPlugin each ship a doc file, so astryx component, astryx discover and the docs list their props, defaults and usage. (#10407)

    Also released in @astryxdesign/cli.

  • A source comment in the editor theme now says that core Markdown gives each block the direction of its own text, while the editor keeps blocks in the surface's direction. (#10293)

  • RichTextEditor documents how to switch between reading and editing in place without reflow: set the field's inset and border outside the reading width with xstyle, so every paragraph keeps its line count across the switch. A standalone editor keeps its form width. (#10429)

@astryxdesign/cli

New Features

  • astryx discover lists the Lab DialogHeroHeaderShowcase template from @astryxdesign/lab. (#10109)

  • astryx discover lists the Lab DialogHeroHeader component from @astryxdesign/lab. (#10108)

  • astryx lists a create… factory documented as a hook, such as createReorderable, with the hooks. (#8139)

  • astryx docs also opens a docs-tree node by its bare name, or by a route that drops the prefix its name repeats, when exactly one node matches: astryx docs tokens-color and astryx docs tokens/color both open tokens/tokens-color. Two or more nodes answering one name still fail with the suggestions they always listed, and an experimental doc still opens only by its marked route. (#10387)

  • astryx docs --depth <levels> now names the docs below each namespace on the topic list, by the route that opens them, so one read learns every route instead of one read per namespace. Without --depth the list is unchanged, and the JSON keeps its shape: the new children sit inside each meta.namespaces entry. (#10393)

  • The official-packages discovery list now includes the Lab LineClamp component, so astryx can find and describe it. (#4259)

  • Replace the theme showcase's custom layout, text and icon styling with Astryx components. The embedded preview paints the theme's body behind card-token surfaces instead of a surface-colored card band. The new standalone top-navigation shell uses the theme's surface canvas; the embedded view stays shell-free. Make demo inputs, cart feedback, inventory filters and chat respond locally, with clearable filters and no payment submission. Keep the template id, gallery visibility and demo content. (#10404)

Fixes

  • Comments, a codemod note and the grouped-table template's sample data no longer use internal-format identifiers. (#10958)

  • astryx swizzle --list no longer lists Core's shared folders (animator, gestures, i18n, internal, keyboard, motion, privateAttributes, __tests__) as components. A copy of gestures imports @astryxdesign/core/motion, which the core package does not export. (#10185)

  • astryx component prints a theme warning as one line: control and format characters in the configured astryx.theme value or the generated theme record print as �, so a newline or an escape sequence in a checkout cannot rewrite the terminal. (#10764)

  • astryx docs <topic> reads a topic authored as .doc.ts from an installed integration on every supported Node, and from a linked integration below Node 22.18. Topic and docs-tree files now load .ts through the same TypeScript loader as component docs, where a plain import failed under node_modules ("Stripping types is currently unsupported") and below Node 22.18 ("Unknown file extension .ts"). astryx search also reads an installed .doc.ts component doc, so it finds the component by its keywords, shows its description, and lists a family's members. .doc.mjs topics load as before. (#10763)

  • A long-running process that calls the CLI's API, such as a docs site's search route, now reads an edited CommonJS .doc.js file again in docs, search and template reads. It read the doc as first loaded. (#10760)

  • A command that reads a project module again after changing it, such as astryx integration add checking the manifest it just wrote, now reads the change for an ES module .js file in a package without a "type" field. It read the module as first loaded. (#10745)

  • Icon sets: integration check now accepts a generated declaration file (*.generated.d.ts) whose long type arguments a formatter such as Prettier re-wrapped. Before, the re-wrapped line made the check report icon_generated_types_mismatch and fail. A changed declaration still fails the check. The experimental icon commands are unchanged. (#10898)

  • astryx build: when an idea names a family only after its head ("a saml for a login") and the family's base template matches no other word, the variant that outranks the base now stays the start (login-sso, not login), so adding page templates no longer flips such ideas to the base. Ideas that name the family in their head ("saml login") start as before. (#10431)

  • astryx experimental render no longer dies silently with exit 139 when Node itself crashes while it renders a page. The page now renders in a separate process, so a crash (a crash signal, or a crash status on Windows) ends only that process, and the render fails with ERR_RENDER_FAILED and a message that names the Node version and path; a signal that stops it names them too. That process ends when the CLI ends, so a page that never finishes does not outlive a stopped CLI. Some Node builds crash in Intl.Segmenter, which components such as Avatar use to split text: on such a build the render runs the page once more without Intl.Segmenter and adds a node-crash warning that names the Node build and says the output may differ slightly (a joined emoji, a flag, or a letter with a separate accent mark in initials), so pages with Avatar render again. (#10915)

  • astryx search puts the results that fit the whole query higher. The first result stays the same. At the default limit, and at any limit of 10 or more, the set of results stays the same. A smaller --limit shows the top of the new order, so it can show a different result. Below the first result, inside each group of equally strong matches, a result whose docs fit the query much worse than the others in its group moves after them. A result whose name spells two or more of the query's words never moves down; it can still move up. The fit uses the same word-meaning weights astryx build uses to pick blocks, so a new component or template is placed from its own docs. A query that is an entry's whole name keeps its answer. (#10926)

  • Every import in an astryx swizzle copy now names a file the copy holds or a path the owner package exports. Before, the copy sent every import that left the component folder to the package's folder entry, which does not export the internal helpers most components use, so Button, Dialog, Table and about 100 other copies failed to type-check or bundle. Now the copy imports what the package exports from the package, carries every internal module it needs beside it in the package's folder layout, and copies the nested folders it imports (such as Table's plugins/). Test helpers and notes are no longer copied. A helper an earlier swizzle wrote is reused when it is the same and is never replaced by a copy that carries it, even with --overwrite: a different one stays, and the new copy writes its own under a version-suffixed name. Swizzling the component whose folder holds that helper treats it as one of that component's own files, which --overwrite replaces. A private attribute owner module and the style modules it imports are the exception, as before: a changed copy fails the command without --overwrite and is replaced with it. Fixes #3506. (#10197)

  • A swizzled component whose source imports another Astryx package's internal module, such as a Lab component that uses Core's gesture primitives, no longer imports that private path, except a StyleX module that package exports, which the copy keeps importing by that path because its identity is its path. Swizzle carries every other such module, and what it reaches, into the copy under a folder named after its package (for example components/astryx/core/internal/touch.ts); that package's public names are still imported from the package. (#10595)

  • astryx swizzle reports the npm packages a copy imports, such as d3-scale for a chart, with the version range the owner package declares, so the copy builds once you install them. The swizzle.copy receipt lists them in dependencies, and the text output names them to install. Node's built-in modules and the owner package itself are not listed. (#10502)

  • astryx swizzle writes an astryx-swizzle.json marker into an output folder it owns (one the copy creates, an empty one, or one it marked before), naming each package the folder's copies came from and its version. @astryxdesign/build's Babel, PostCSS and Vite integrations, and withAstryx() under webpack, compile the copies under that folder below astryx-theme, so a theme's component overrides reach a swizzled component as they reach the package component. For a folder that already holds other files it writes no marker and says what it found and how to add the marker by hand; the swizzle.copy receipt reports this in a new optional marker field. Under Turbopack and with the stock StyleX plugins, a copy's styles still land above the theme. The marker is not listed among the copy's files. (#10483)

    Also released in @astryxdesign/build.

  • The table-filter template's link-style header actions set minHeight: 0 with their auto height, so no minimum holds them taller than their text. (#10588)

  • astryx template <name> puts the template a typo slips from first in its suggestions: a name one or two slips away (a letter added, dropped or changed, or two letters swapped, as in AppShellCotnentOnly or dasbhoard) ranks just below the templates that carry every typed word. The suggestion list is never longer than before. (#10712)

Documentation

  • A new Course Detail page template: a long-form sales page for a single offering in two columns — the long read (a preview poster with a fact row, an about block with skill chips, a module syllabus whose sections collapse module by module, an instructor card, reviews with a scored-aspects panel, and a FAQ) beside a sticky enroll rail (the price with a compare-at, a self-paced or cohort start picker, and a weekly-pace slider that computes a finish date). Copy it with astryx template course-detail <path>. (#9753)

  • The File Explorer page template scrolls its columns with StackItem and HStack isScrollable instead of custom overflow and flex styles, and names each column after the folder it lists while the column scrolls. Its chevrons now mirror in right-to-left, and a detail pane scrolled to its end keeps its bottom padding. (#10421)

  • A useInteractiveRole — One Tile, Four Roles example block for the existing hook docs: a polymorphic Tile rendered four ways — href link, onClick button, Popover-trigger context button, inert content — showing the resolution order in one place. (#9972)

  • Fix the useStreamingText — Streaming Response example block: it passed isStreaming as false, so the streaming reveal it exists to show never ran. The block is now a chat-style reply card with a Regenerate button that streams the response in bursts — the hook reveals it steadily while streaming and snaps to the full text when it ends. (#9975)

  • The grouped table page template groups its rows with useTableGroupedRows instead of hand-rendered header rows and a hand-written colgroup. Its columns now have headers, each group's toggle is a button that reports whether its group is expanded, and the row menu's Move to project arrow mirrors in right-to-left. (#10423)

  • The useInputStatusIcon — Coupon Code Status example block's field applies inputWrapperStyles.textField. A field copied from it now shows its focus look at once when the primary pointer is coarse, as Core's text fields do. (#10649)

Other Changes

  • Internal: doctor.mjs and template.mjs are formatted with Prettier. No change to any command's output. (#10988)

  • Internal: the icon-set export reader reuses the shared top-level helper, and a source comment on look refreshes is shorter. No change to any command's output. (#10449)

  • Internal: the doc importers import each doc file through one small module that the CLI's own test project loads natively, so its tests no longer time out on a busy machine. No change to any command's output. (#10740)

Themes (@astryxdesign/theme-*)

Fixes

  • Gothic: accent text and accent icons stay readable on a light media surface. They used Gothic's light accent there, near-white on a light band (1.14:1); now they follow the surface's dark accent (18.7:1 against a white surface). The CLI's Gothic theme template carries the same change. (#10852)

    Also released in @astryxdesign/cli (templates).

  • Neutral: an unselected SegmentedControl label meets 4.5:1 in dark mode on AppShell's surface. The track is translucent, so it lightens the surface under the label: #9e9e9e on #3c3c3c measured 4.11:1. The label now takes neutral.dark[80] (6.46:1), the same lift Neutral already gives secondary text on its selected rows and pills. Light mode is unchanged, and the CLI's Neutral theme template matches. (#10881)

    Also released in @astryxdesign/cli (templates).

  • Matcha: light-mode secondary text is slightly darker (Neutral Light 30), so it meets 4.5:1 on the body (5.11:1, was 3.83:1), the surface and the card. (#10932) [fix] Y2K: light-mode secondary text is slightly darker (Neutral Light 35), so it meets 4.5:1 on the Periwinkle body (5.14:1, was 4.25:1). The CLI's Matcha and Y2K theme templates match.

    Also released in @astryxdesign/cli (templates).

  • The Butter, Stone and Y2K themes set supporting text (--text-supporting-size) in rem instead of a fixed 12px, so it grows when a reader raises the browser's default font size, like the rest of the text. At the default size it is still 12px. The CLI's copies of these themes match. (#10320)

    Also released in @astryxdesign/cli (templates).

@astryxdesign/build

Fixes

  • A swizzled copy can now compile as Astryx source in the Babel, PostCSS, and Vite integrations. Every module under a folder that holds an astryx-swizzle.json marker gets the library class prefix and lands in @layer astryx-base, below astryx-theme, so a theme's component overrides reach it. astryx swizzle does not write the marker yet: add the file to the swizzle output folder. Under webpack, withAstryx() rebuilds a cached copy when its marker appears or disappears. Turbopack builds do not read the marker yet. No API changes. (#10334)

@astryxdesign/theme-butter

Fixes

  • Butter's buttons take inline padding only and use Button's own block padding. Their height is unchanged. (#10588)

  • Theme packages publish the declarations of their ./theme.css export. The export pointed types at theme.css.d.ts, which the package didn't ship, so TypeScript found no types for import '@astryxdesign/theme-<name>/theme.css'. The export is unchanged; the file is now published. (#10903)

    Also released in @astryxdesign/theme-chocolate, @astryxdesign/theme-gothic, @astryxdesign/theme-matcha, @astryxdesign/theme-neutral, @astryxdesign/theme-stone, @astryxdesign/theme-y2k.

  • Theme packages declare "type": "module", so bundlers and Node read the ./built entry as the ES module it is. Before, it was an ES module in a .js file in a package without a type, which tools that follow the package's type read as CommonJS. Every export subpath stays the same. The CommonJS build of the source entry is now dist/source.cjs behind the same require condition, with its own CommonJS declarations (dist/source.d.cts), so TypeScript types each condition in the format it loads. As before, require('…/built') loads an ES module, so it needs a Node version with require(esm) (22.12 or later). Deep imports that reach past exports into dist/ change too: dist/source.js is now dist/source.cjs, and a require of dist/<theme>.js gets an ES module (require(esm), Node 22.12 or later). (#10876)

    Also released in @astryxdesign/theme-chocolate, @astryxdesign/theme-gothic, @astryxdesign/theme-matcha, @astryxdesign/theme-neutral, @astryxdesign/theme-stone, @astryxdesign/theme-y2k.

Known issue

  • If your bundler lowers CSS light-dark(), media surfaces in themes other than Gothic may lose their color overrides, which can make accent text low contrast. This will be fixed in the next stable release. Gothic does not have this issue in v0.7.12.

Contributors

Thanks to everyone who contributed to this release:

@aashish254 @AKnassa @bhamodi @cixzhang @duytbp @emilyhorsman @ernestt @freddymeta @Geervan @harjothkhara @HelloOjasMutreja @humbertovirtudes @hurrymaplelad @imdreamrunner @jiunshinn @josephfarina @LetMeSleep8h @ManoharPaturi @mego1123 @parinith-web @potatowagon @rubyycheung @thecodebasedot @utkarshpatwa393-sys @Varshavia @vittoriobusatta @vjeux @WeAreResilience

Full Changelog: https://github.com/meta/astryx/compare/v0.7.11...v0.7.12

17 days ago
astryx

Astryx v0.7.11

Astryx 0.7.11 — all @astryxdesign/* packages ship at this version.

OLD_VERSION=0.7.10  # replace with the Core version your project uses today
npm install @astryxdesign/core@0.7.11 @astryxdesign/cli@0.7.11  # plus every other @astryxdesign/* package you use, at 0.7.11
npx @astryxdesign/cli upgrade --from "$OLD_VERSION" --apply --path .

@astryxdesign/core

New Features

  • Under a finger (a coarse primary pointer, on any touch device), Popover grows out of its trigger, wide before tall, with its edge held on the trigger, and shrinks back into the trigger when it closes. The growth plays the theme's --duration-medium-min (in the Storybook theme, the step nearest iOS's 206 ms growth) with its entrance easing, and the shrink plays its exit duration and easing, on the compositor. A close during the growth, or an open during the shrink, turns back from where the popover is. With reduced motion it cross-fades in and out, opacity only, in 200 ms or less. A fine primary pointer (a mouse) keeps its entrance. A tap that lands while it grows is ignored, and a pan started then scrolls nothing. The shrink plays on the layer runtime's exit copy, of which Popover is the first user. The growth starts in the next animation frame, before that frame paints, so the opening tap does no extra layout. (#8187)
  • DropdownMenuSubMenu accepts delay and hideDelay, in milliseconds, the same options Tooltip, HoverCard and TopNavMenu have. delay is how long a hovering pointer waits before the flyout opens (default 150), and hideDelay is how long the flyout stays after the pointer leaves (default 200). The defaults match today's timing, so nothing changes unless you pass them. Keyboard focus and touch never wait. (#10298)
  • Timestamp takes a timezoneID prop naming the IANA zone its absolute formats render in, such as 'UTC' or 'America/Los_Angeles'. An explicit zone renders identically on the server and the client, so a server-rendered absolute time no longer depends on the server's zone and hydrates without a mismatch. Omit it (or pass 'local') to keep the viewer's own zone, relative formats' visible text ignores it (configured tooltipEntries rows still follow it), and an unknown identifier warns once in development and falls back to the viewer's zone. (#9789)

Fixes

  • Animated layout glides now use the theme's --duration-medium instead of --duration-medium-min: 300 ms instead of 225 ms in the Neutral theme, and 410 ms instead of 310 ms with no theme. Their move curve, Reduce Motion behavior, and support for linear() and steps() easing stay unchanged. (#10261)
  • Under Reduce Motion, a cross-fade's move and its call's settle wait while a sampler pauses its fade, so the element never moves, and an exit's element never goes, while the paused fade still shows. (#10378)
  • Avatar initials and the default person icon paint in primary text on the neutral tint, a pair at 4.5:1 or more in light and dark mode; secondary text fell below 4.5:1 in dark mode. Initials read darker in light mode and lighter in dark mode. (#10205)
  • Banner: role="alert" now sits on the title and description only, not on the whole banner, so an urgent alert holds only its message (component:Banner FR8; WCAG 2.2 4.1.3 Status Messages). The dismiss and expand controls, their tooltips, a caller's action, and the supporting content are outside the alert. ARIA attributes passed with role="alert", such as aria-label, move with it. Other roles still land on the banner frame. Use role="alert" only for an urgent message, and announce every other message with useAnnounce. No visual change: the banner renders the same pixels as before. (#6779)
  • BottomSheet: a touch release takes the iOS sheet's measured values, and a release moving back toward where the drag began cancels. A release faster than about 1,000 px/s is a flick: it goes at least to the next detent in its direction, so a short fast flick at the lowest detent closes the sheet instead of springing back. From a higher detent, a flick that would carry past the next detent goes on, so a hard flick closes the sheet and a softer one stops at the next detent. A slow or medium touch throw now travels less than before, and a slow touch drag closes the sheet only past halfway to closed. A mouse or pen drag is unchanged. (#10234)
  • A labelled Button has its accessible name again in VoiceOver on macOS 14 (Safari 17 and WKWebView). The label sat inside a display: contents wrapper, which that WebKit drops names through, so it read an unnamed "button". The wrapper is now a flex box that takes the Button's own layout, and the Button looks the same. (#10256)
  • Under a finger, a Button or IconButton is easier to hit. Its touch target grows toward 44 px through an invisible band, as far as its neighbors leave room, and its box doesn't change. A disabled button, or a busy one that can't be interrupted, gets no band, and a button in a ButtonGroup uses the group's band. Input clear buttons now use the same band in place of their fixed 24 px overlay, and in Safari a tap on that band clears the field. Nothing changes under a mouse. Swizzling a ListItem, CheckboxInput, RadioListItem, InfoTip or SegmentedControl no longer leaves an import of the touch band's styles that can't resolve. (#10216)
  • Calendar and DateRangeInput no longer cause a hydration mismatch when the server and the browser are on different dates, for example a UTC server and a visitor already in tomorrow. Today is read only after hydration: a server-rendered Calendar shows no today marker until then, and a Calendar with no focusDate or value keeps its month grid's space empty until the browser's month is known. A DateRangeInput shows the year in its range text until then. (#10226)
  • Shift and one mouse wheel notch now scroll a Carousel row by the notch, once. Before, Firefox also scrolled the row on its own, so each notch moved it twice: React's wheel listener is passive, so Carousel could not stop the browser's scroll. A wheel with a horizontal delta, such as a trackpad swipe, and a row with nothing to scroll keep the browser's own scroll. (#10246)
  • A theme's borderRadius and padding on the chat-composer target now also set the composer's --_chat-composer-radius and --_chat-composer-padding, so the composer body, its status strip, and the concentric send and attach button radius follow the theme. With density="compact", the body keeps its compact padding, and its radius still follows. Before, the derived-variable registry filed these two mappings under chat, a key no element renders, so defineTheme({components: {'chat-composer': {base: {borderRadius: '16px', padding: '8px'}}}}) emitted only border-radius and padding on the composer root, and everything that reads the two variables kept the default geometry. (#10249)
  • CodeBlock's copy button now says when copying fails. A rejected clipboard write used to look like nothing happened. Now the button shows a cross in place of the copy icon for 2 seconds, as a copy shows its check mark (a theme that maps the code-block-copy icon slot keeps its own rest glyph during the failure), and is named, tooltipped and announced as "Failed to copy value to clipboard." (a new localized key, @astryx.codeBlock.copyFailed). A new onCopyError(error) prop receives the rejection once per failed copy; the error itself is never shown. (#10272)
  • The Core modules that read process.env.NODE_ENV for development warnings now declare it themselves, so those files type-check in a project that does not install @types/node, such as a swizzled Breadcrumbs, Stepper or TabList. Bundlers still replace the value at build time, so production builds drop the warnings as before. No API changes. (#10252)
  • A block-edge reveal or conceal, as in Collapsible, TreeList and Table's row expansion with an animatedLayout handle, now slides the revealed element's children on the same frames as the content beside it, under a still clip on the element's box. An element that paints its own box, such as Table's panelVariant="muted" panel, keeps the moving clip. On iOS Safari a moving clip ran on its own clock and parted from that content for a few frames; now the two stay together. The glide's timing and curve are unchanged. Collapsible's region now wraps its children in one inner element; selectors like region > * or :first-child on the region's children need updating. (#10296)
  • Kbd: a key badge grows with a larger text size instead of holding its fixed height, so a bigger glyph stays inside its badge. At the default text size nothing changes. The docs now list ref, say how a screen reader names the shortcut, and say that Kbd only shows keys and does not listen for them. (#10267)
  • In a List with hasDividers, a hovered or pressed row keeps both of its dividers visible through its tint, with a mouse and under a finger. The divider above the row used to merge into the tint, and under a finger both dividers did. The dividers keep --color-border; nothing hides. (#10280)
  • Overlay, AppShell and MobileNav work in a DOM with no matchMedia, such as an app's jsdom test. Before, Overlay threw on its first render, AppShell as it mounted (with React 19.2 or later), and MobileNav as it closed. Where matchMedia exists, nothing changes. (#10327)
  • Carousel paging: on a busy page, a finger held on a settling row now stops it, as on an idle page. Before, when the page received the touch and its lift together, a short hold read as a tap and the row ran on to its target. (#10330)
  • Carousel paging: a row that resizes while it settles back onto the page it left now hands back to native scrolling, instead of staying held by the paging. (#10419)
  • presentation="adaptive" no longer crashes in environments without matchMedia (jsdom tests). (#10275)
  • A Selector's list, opened over its trigger near the bottom of the screen while a software keyboard is up, now slides up and ends above the keyboard with its options in view. Before, it shrank to a sliver or opened under the keyboard. Without a keyboard it opens where it did. (#10169)
  • A searchable Selector's closed trigger now names the selected option after its label, so a screen reader announces the selection (for example "Team, Banana, button, collapsed"). (#10170)
  • BottomSheet: in iOS Safari, focus moving from a Tall sheet's field to a plain button inside a web component now rides the content down from the blur, as focus moving to any other control that brings up no keyboard does. A frame, or a custom element that can hold a field the page cannot see, still keeps the content in place. (#10388)
  • StatusDot's success, warning and error dots paint their status icon role (--color-icon-<status>) instead of the strong status fill, so the dot keeps 3:1 or more against the page and card surfaces; the warning dot used to read near 1.8:1 on a muted card. Success and error dots change colour too: they take their status icon colour, which is darker in light mode in the default theme. An icon inside a status dot now paints in the surface colour. (#10204)
  • On a touch screen with a mouse, after a finger opens a menu, a dialog, a drawer, a mobile nav or a popover, a click with a mouse that has not moved since reaches what is under it while the layer enters. Before, that click landed on the entrance's input hold and did nothing. A finger's or a pen's tap during the entrance is still ignored. A mouse that has sent no pointer event since the page loaded still meets the hold. (#10303)
  • BottomSheet: in iOS Safari, which publishes no keyboard slide, when the on-screen keyboard closes, a Tall sheet's content rides down with it on UIKit's keyboard spring, instead of jumping back to its earlier scroll once the keyboard is gone. A field that takes focus again before the keyboard is down rides back up, and focus moving to a select, whose picker takes the keyboard's place, starts no ride. In Chrome on Android, a busy page that reads the keyboard's hide late no longer moves the content back up before it settles. (#9776)
  • A toast shown over a Dialog no longer blinks out for a frame or more when the Dialog closes outside a click, for example when it closes once an awaited save finishes. The toast stays on screen while the Dialog closes. A close from a click, the Escape key or the backdrop already kept it. (#10251)
  • DateInput: under a finger, a bottom-sheet wheel's turn onto a tapped row, a key's row or a value set from outside now plays the shared settle spring from rest, instead of a fixed 300 ms ease-in-ease-out. The wheel's main interaction is a gesture, so all its motion springs; a flick's coast and a slow release's snap stay as they are. (#9924)

Performance

  • Closing a Popover, menu or other anchored layer no longer lays out the page an extra time. The layer runtime reads a closing layer's animations only when the layer's closed state declares a discrete display transition or a keyframe animation. It reads that style while the layer is still closed. Such a layer, as TopNavMegaMenu's panel is, still keeps its trigger's anchor name until its fade ends. An animation a script starts is not tracked. (#10368)

Documentation

  • FormLayout says to wrap it in a native <form>, and that <form> has no Astryx replacement. (#10349)
  • LayerProvider: editors and generated docs now show its description and example; they were attached to an internal constant. The docs no longer say that a nested provider is ignored: a nested provider keeps the outer toast configuration and mounts no second toast viewport, and one that declares inset applies its declared edges to the anchored layers in its subtree. (#10283)
  • Layout's height prop says that fill needs a container with a set height, such as AppShell's content area. (#10348)

Other Changes

  • Internal: a source comment in Carousel now says that the wheel listener reads no style or layout unless a flick holds the row. Apps see no change. (#10281)
  • Internal: the input hold's constant for the mouse's opening is named for the half side it holds, and its comment goes. Apps see no change. (#10317)
  • Internal: Core's keyboard module reads the press slop that press feedback uses for its tap route, instead of its own copy of the same 10 px, and three source comments that restated names are gone. Apps see no change. (#10389)
  • Internal: Core's keyboard module keeps a field above the on-screen keyboard where its nearest scroller can bring it up: a field in scrolling content is scrolled into view by its nearest scroller, the document included, a field in a container fixed at the viewport's bottom moves that container up by the part of it the keyboard still covers, unless the container sets its own translate, the app is moving it itself, or it is taller than the room above the keyboard, where its scroller reveals the field instead, or with none it moves only as far as the field needs, and focus moves and first taps into those fields arrive without the browser's reveal. A field in a fixed container the app positions itself (a dialog or a sheet that fills the viewport, a bar floating above the bottom edge, or a bar with its own translate) is revealed by a scroller around it there, and with none keeps the browser's own reveal. Core's fields adopt it next; apps import nothing new. (#9776)
  • Internal: the layer runtime gains one exit copy for touch presentations that animate a popover out: a static, inert copy of the closing popover, shown only in the top layer where the popover was drawn, for the close to play on. Core's other inert copies now join no form, carry no anchor name and keep their color scheme, as their documentation says. (#8186)
  • Internal: Dialog, Drawer and BottomSheet hand the toast viewport back to the page through a callback ref when they close or unmount, in place of a layout cleanup. A toast still stays on screen while the modal closes. Apps see no change. (#10351)
  • Internal: source comments in Popover's touch presentation and the transient copy now match what the code does: a touch that starts before the input hold can close the popover, and measure reads before the frame writes. Apps see no change. (#10300)

@astryxdesign/cli

New Features

  • astryx build ranks Core blocks of component families its picker was not fitted with somewhat better: the block picker's doc-side word weights are refitted from paraphrases of each block's own source. (#10355)

Fixes

  • astryx build names its two alternative page templates in the same order it chooses the start from, so the three templates it shows for a whole page are its best three. The start, the number of alternatives, the blocks and the JSON shape are unchanged. (#10357)
  • astryx build --type doc and --type theme now point to astryx search <query> --type doc or --type theme: a build kit has no docs or themes, so build says so once on stderr and names the search that finds them. Stdout, JSON output and exit codes are unchanged. (#10401)
  • astryx doctor no longer warns that no theme is wired in an app that imports its themes itself. Without a generated theme module or a package.json astryx.theme, the themes check now passes when the source of the app imports a theme's built module or stylesheet (the imports theme add writes) or passes a theme to Theme, followed through module-scope variables, defineTheme({extends}), re-exports and installed packages to its package, and names the file. Only a theme whose package is installed, or a local theme, counts. A theme passed to Theme that doctor cannot trace (a prop, a function result, a variable declared inside a component) is reported as not confirmed (info), not as missing. (#10353)
  • The CLI's semver range check reads ^0 as any 0.x.y and ^0.0 as any 0.0.y, and reads a hyphen range (1.0.0 - 2.0.0) as inclusive bounds, with a partial upper bound (1.0.0 - 2) covering its whole series as npm does. Before, ^0 and ^0.0 were locked to a single patch version and a hyphen range could never match, so astryx doctor and the peer-version checks reported a false mismatch for projects that declare those ranges. (#10184)
  • The reminder to run astryx init in a project that has not run it no longer prints before every command. It now prints after a command that succeeds, at most once a day per project, recorded in the per-user state as the daily hints are. It does not print with --json, after a command that fails, or when CI is set. astryx doctor still reports the missing setup in its agent-docs check every time. No JSON shape or exit code changes. (#10343)
  • In a folder inside an Astryx project whose own package.json declares no Astryx package, such as a tool folder that installs its own @astryxdesign/core, the setup reminder's init command now names the project's release, as run from the project's folder: the project's own CLI when it installs one, otherwise the package runner pinned to the project's Core, such as npx @astryxdesign/cli@0.7.3 init. It used to pin the release of the CLI that answered the run, whatever the project records. No JSON shape or exit code changes. (#10343)
  • astryx experimental render: a page outside a project now renders. Outside a project (no Core or CLI the folder reads, and no package.json that declares one), the page takes the @astryxdesign/* packages its folder lacks, and the integrations a host approves, from the copy the CLI itself runs with, instead of failing with ERR_RENDER_MISSING_DEPENDENCY. React and StyleX come from that copy too, so the page loads one copy of each, even in a React app that installs its own. When that copy's Core cannot be downloaded, a page that needs it fails with ERR_VERSIONS_UNAVAILABLE, as other commands that read Core do. Inside a project, the page uses only the project's own packages. (#10362)
  • A link to a topic that an integration replaces under the same name opens the replacement. In an app whose integration replaced theme or getting-started, doctor reported Core's links to them as naming no doc. (#10342)
  • swizzle no longer copies a component's browser test harnesses (*.spec.ts, *.spec.tsx, such as Item's ItemMarkerColumns.a11y.chromium.spec.ts) when the installed Core source holds them: @astryxdesign/core 0.7.5 and earlier, or Core's repository source. They import Playwright and an unpublished test package, so a project that swizzled such a component failed to type-check or build. Core 0.7.6 and later ship no harnesses, so swizzling from them is unchanged. (#10230)
  • astryx theme build no longer depends on the order it loads the core component docs. A parent doc that lists a sub-component by name only, such as Avatar.doc.mjs listing AvatarStatusDot, erased the values the sub-component's own doc declares when it loaded after that doc; when Avatar.doc.mjs loaded last, avatar-status-dot variant:success counted as a custom value. The build now merges every doc's entry for a component. (#10288)
  • astryx integration verify no longer reports theme_module_stale for a theme whose built module differs only in the command its comment says built it, such as a theme built with yarn astryx and verified where pnpm exec astryx runs. Any other difference still fails. (#10344)

Performance

  • A compact or full hook list, and the suggestions for an unknown hook name, list each of Core's folders once. Before, they listed a folder again for each hook they looked up. (#10324)
  • A search, build or component read lists each folder once. A process that runs several reads, such as a docs site's search or an agent harness, reuses a folder's listing once the folder has stayed unchanged for two seconds. A later read lists the folder again after an entry is added, removed or renamed. (#10274)
  • Within one operation, component discovery reads each component doc once, and the component matcher looks for each component's doc once, not once for each name they resolve. Resolving 30 names that only the matcher finds, such as names in another case, makes 14,794 file-system calls instead of 305,108. Results are unchanged. (#10277)

Documentation

  • The Authoring guides (Quick Start, Field reference, Building Blocks, Ship, Help, and Make your integration work globally) now carry the keyword "authoring", so astryx search authoring lists them right after the Authoring overview instead of after API function pages. (#10354)
  • astryx build --help lists every value --type accepts (component, hook, doc, template, theme), matching the invalid-type error and what build actually runs, and says that doc and theme give an empty kit, since the kit has no doc or theme group. A test keeps the help text, the choices, the API doc and the error message on build and search naming the same set, and checks what each value returns. (#10361)
  • Getting Started has an Upgrade section: upgrade every Astryx package your app lists in one command, to the same release, then run astryx upgrade. If your package manager holds new releases back, exempt the whole @astryxdesign/* scope, not only some of its packages. (#10241)
  • The custom theme guide names the files of a local theme, including the same-stem descriptor theme add reads. (#10347)
  • The CLI's bundled colour token docs say the status icon colours (--color-icon-<status>) paint status marks on the page or a card, such as a StatusDot. (#10204)
  • New block, "Table — Selection in the Leading Mark": row selection with no checkbox column. Each row shows its avatar, and the checkbox takes the avatar's slot while a mouse is over it, on keyboard focus, and on every row once anything is selected. On touch screens the checkbox always shows. It uses the existing useTableSelectionState and renders the checkboxes in the name column, so no new Table API is involved. (#10395)

Other Changes

  • Internal: the export reader can report type-only exports and map a module's whole public surface in one pass. No change to any command's output. (#10365)

@astryxdesign/richtext

Fixes

  • In RichTextEditor, Backspace at the very start of a code block turns it into a paragraph holding its lines, with the caret at its start. It used to merge the code into the block above, so a heading above took the code in, and the Markdown read back as a longer heading and a stray paragraph. A code block with nothing above it, which already became a paragraph, now keeps its lines when its Markdown is read back. (#8581)
  • RichText: an image in Markdown, inline (![alt](url)) or by reference (![alt][ref]), comes back exactly as written after you edit the text around it; a shortcut reference image (![alt]) followed directly by a link is written in its collapsed form (![alt][]), so the link stays a link. Before, an edit in an image's paragraph could escape its brackets (!\[\](…)), so other Markdown readers saw text instead of an image. RichText has no image node: an image shows as its Markdown source, one token that Backspace deletes whole and autolinking leaves alone. A caret placed inside it moves to its edge, so typing adds text beside the image instead of replacing it. Copying it, or splitting or joining its paragraph, keeps the source. (#10356)

Contributors

Thanks to everyone who contributed to this release:

@cixzhang @emilyhorsman @ernestt @josephfarina @nbozidarevic @thecodebasedot @utsavo-afk @vjeux

Full Changelog: https://github.com/meta/astryx/compare/v0.7.10...v0.7.11

18 days ago
astryx

Astryx v0.7.10

Astryx 0.7.10 — all @astryxdesign/* packages ship at this version.

OLD_VERSION=0.7.9  # replace with the Core version your project uses today
npm install @astryxdesign/core@0.7.10 @astryxdesign/cli@0.7.10  # plus every other @astryxdesign/* package you use, at 0.7.10
npx @astryxdesign/cli upgrade --from "$OLD_VERSION" --apply --path .

@astryxdesign/core

New Features

  • Carousel's hasSnap also takes useSnapPaging(), from @astryxdesign/core/SnapPaging: iOS paging on native snap's stops, under a finger and on a trackpad swipe. A flick moves one view, or one item with useSnapPaging({pages: 'item'}). A mouse wheel keeps native snapping. Only a carousel given the hook's value loads the pager, and hasSnap alone is unchanged. (#8153)

  • Lightbox: a ctrl-wheel or a trackpad pinch now zooms a photo, and a trackpad's scroll pans a zoomed photo. (#8148)

  • Lightbox's zoom now works under a finger the way the iOS Photos viewer does, on a phone, a tablet or a touchscreen laptop. Pinch the photo to zoom around your fingers, and move them to pan while you zoom. Past the zoom limits the photo gives way, then springs back when you let go, at the speed your fingers had. Double-tap zooms until the photo fills the screen, at least 2×, and keeps the tapped point under your finger; double-tap again to go back. On a phone or a tablet, a zoomed photo pans with momentum, stretches past its edges and settles back. The keyboard keeps the zoom it had, 2× about the centre, and keyboard panning now stops at the photo's edges instead of carrying it out of view. Every zoom, a double tap's and a key's included, settles on the same spring. (#8148) The photo's stage fills the viewer. A pinch on the photo no longer zooms the page, and a pinch on the controls or caption still does. With hasZoom on, a tap on the dark area beside the photo closes the viewer after the double-tap wait instead of at once; a click still closes it at once. The zoom animations run on the compositor, so they stay smooth while the page is busy. With hasZoom off, nothing changes. With hasZoom, Close, Previous, Next and the counter sit on a dark translucent backing, so they stay readable over a zoomed photo.

  • createDragToSnapPoints and its hook useDragToSnapPoints let a drag move an element along one axis and settle it on snap points (px offsets from its resting position) at the release: the nearest one, the next one in its direction after a flick faster than flickThreshold (default 1008 px/s), or the one it started from when the release moves back. The settle continues the release velocity, settleTo(index) settles without a drag, and onSettle(index) reports where it landed. createDragToSnapPoints is exported from the package root and useDragToSnapPoints from @astryxdesign/core/hooks; the CLI's templates gain a playing-card example of each. (#8658)

    Also released in @astryxdesign/cli.

Fixes

  • Animated layout: the glide, the in-place swap and the edge reveal play the theme's move curve (--ease-move) over --duration-medium-min instead of a spring, so they follow the theme's character and tempo and land with the motion around them. Reduce Motion is unchanged: a cross-fade under a coarse pointer, an immediate change otherwise. The glides of AppShell's content area, Collapsible, Table's row expansion and TreeList change feel: 225 ms in the Neutral theme, 310 ms with no theme, instead of about 735 ms. A theme whose move easing is a linear() or steps() function glides on it, as the browser plays it. The segmented control's selection, which reads its timing the same way, now plays such an easing too instead of moving at once. (#10236)

  • Two AppShells on one page no longer share the main region's id. The first mounted shell keeps id="astryx-app-shell-main", so single-shell pages, skip links and selectors that name it keep working. Each other shell's main region gets its own generated id, which its skip link targets. (#10199)

  • BottomSheet: a sheet a touch drag closes leaves on its close spring, starting at the speed of the drag, and its scrim fades out with it on one clock, at the theme's tempo. A BottomSheetSwitcher flow's scrim does too. A mouse or pen drag is unchanged. (#8105)

  • A BottomSheet that opens, on its own or pushed over another sheet, modal or not, now focuses its data-autofocus field (a TextInput with hasAutoFocus) in every browser; for example, a pushed "Edit delivery note" sheet opens on its note field. A BottomSheetSwitcher step with such a field opens on it too. Before, Chromium left focus on the sheet's panel, so on Android a person had to tap the field before typing. A sheet with no such field still focuses where the browser's own dialog focusing puts it. (#10156)

  • Under a finger or a pen, holding the box of a CheckboxInput, a CheckboxList row, a RadioList option or a Switch no longer selects the text beside it, and lifting it activates the control as a tap does. On iOS such a hold selected the label's text and, except on a Switch, toggled nothing. A long press that opens a ContextMenu or runs a row's own long press no longer also toggles a box under it, and a row that opens its own menu from its contextmenu keeps its box unchanged. A long press on the label still selects its text, and a mouse is unchanged. (#10091)

  • Calendar and useCalendarNavigation keep moving the visible month when onFocusDateChange is given without focusDate. The focus date is controlled only when both props are present, as the imperative navigateTo handle already treated it; but the Previous/Next buttons and keyboard month crossing switched on the callback alone, so a listener-only calendar reported the new month and then stayed on the old one, with no way to move. The callback still fires in every mode. (#10180)

  • Inserting a token through ChatComposerInput's handle (insertToken) now reports the new value through onChange once, as typing does, and hides the placeholder. Before, a controlled host's Send button stayed disabled or sent a stale prompt. The ai-chat-landing page template drops the input-event workaround it used to sync the composer after an insert. (#10167)

    Also released in @astryxdesign/cli.

  • Code: the code theme target now reflects size as data-size, so a theme can restyle code that inherits the surrounding text size (size="inherit") differently from code at the default code size. When size is omitted, no data-size attribute is rendered. (#10186)

  • CodeBlock and Carousel: the code viewport (while the code overflows) and the carousel scroller draw the theme's focus ring instead of the browser's default, and a theme's --focus-outline-* tokens reach them. Both rings sit inside their component's clipped box, so they show whole. The Carousel ring is painted by the carousel itself rather than the scroller, so the scroller's edge-fade mask no longer fades it, at rest or mid-scroll. The Carousel ring is drawn by an internal shared overlay. (#8875)

  • DateInput, TimeInput, DateTimeInput: value now accepts an explicit undefined. In a project with exactOptionalPropertyTypes, value={state} failed to compile when state held what onChange gave, because onChange sends undefined for a cleared field and an optional property no longer took one. A controlled field no longer needs a cast there. (#10129, part of #8961)

  • Dialog: when the first data-autofocus request is hidden, inert, aria-hidden or cannot take focus, the next eligible request takes initial focus. This also holds for a Dialog rendered inside an inert region of the page or in an iframe or Picture-in-Picture window (#10105, part of #4182)

  • FieldLabel's labelTooltip is now an info button after the label, named "About {label}", so keyboard and screen-reader users can reach the help (WCAG 2.2 2.1.1, 4.1.2), and a click or key press on it opens the help without focusing or toggling the field. (#6414)

  • Gestures: a pan on its own scroller takes a trackpad's scroll on the axis its touch-action keeps, as it takes a finger's; a scroller inside it still takes the wheel first. A recognizer attached with manageStyle: false leaves the element's styles to its caller for that recognizer only. (#10212)

  • Touch gestures work on a component rendered into another window's document, such as a same-origin iframe or a Document Picture-in-Picture window. The gesture host checked nodes and touches against this window's classes, so it ignored that window's own. A finger's scroll, a layer's input hold, the press delay inside a scroll view and the iOS selection lock read that window's nodes too. (#10224)

  • Animated layout: on iOS Safari, an Astryx gesture on gliding content goes to what is drawn under the finger. Gestures here are gesture recognizers, long presses, and Switch, Slider and SegmentedControl presses. Before, such a touch went to the element that sat under the finger when the glide started. A plain tap that no Astryx gesture handles still goes to that element until the glide ends, at most the theme's move duration. (#10239)

  • Lightbox: a double-click now zooms 2× about the clicked point instead of about the centre, and the next goes back; the keyboard keeps its 2× zoom about the centre. (#8148)

  • Link: inside a <Text maxLines> the link now truncates with the text. There its root lays out inline, in the text's lines, so the clamp can cut through the link, and its keyboard focus ring is inset into each line, so the clamp keeps the ring's top and bottom edges visible. Elsewhere, and for a Link that sets its own display or maxLines or renders as a button, the root keeps its inline-flex box. A Link with block-level content, such as an HStack with an icon, is not supported inside a clamped Text, because it breaks the clamp; place that composition outside the clamp. (#6021, fixed in #6038)

  • MobileNav: the drawer's content region is now a navigation landmark (<nav>) named like the drawer's dialog, so someone moving by landmarks on a phone finds the drawer's links, as they find SideNav's on a wide screen. SideNav items and a TopNav's drawer content both sit inside that one landmark. (#10130)

  • Under a coarse primary pointer (a touch screen as the main input), a button's touch press release now runs on the compositor. It keeps fading while the page's script is busy, instead of freezing at full strength and snapping off, and it paints nothing per frame. The release keeps the theme's exit motion timing. With any other pointer, a finger on a touch screen beside a mouse included, nothing changes. Under a coarse primary pointer, while a press is on or fading, Button paints it on its own ::before and sets isolation: isolate. At rest it adds neither, so a ::before you style, through xstyle or a className rule, merges into that layer only during a press. Style a child element to keep it unchanged. (#9783)

  • Under a coarse pointer, a SegmentedControl segment's touch target grows toward 44 px through an invisible hit area, stopping halfway to a neighbor. No segment changes size, and nothing changes under a mouse. (#10137)

  • SideNav: during a collapse, the copy of the expanded rail now paints at the rail's own level, just below the rail, instead of at z-index: 1 with the rail raised to 2. Page content stacks against the leaving rail as it does against the nav: a positioned sibling with no z-index no longer sits under the copy, and content positioned above the nav also covers the copy. The motion's timing and curve are unchanged, and Reduce Motion stays instant. (#10145)

  • Slider's value tooltip stays on its thumb in every frame of a drag and of the coast after a finger lifts. It trailed the thumb by up to 14 px, because it was anchored to a box that moved only when the owner rendered the new value. The tooltip now moves with the thumb by the same translate, and its anchor box keeps its place until the drag ends. (#10228)

  • DropdownMenu, ContextMenu and BreadcrumbItem menus without a header or footer: Tab or Shift+Tab on a row inside an open sub-menu flyout now closes every open level and the menu, calls onOpenChange(false) once, and lets focus move on from the trigger, as Tab already did from a top-level row (WAI-ARIA Menu Button). Before, the menu stayed open. A menu or sub-menu with a header or footer keeps its Tab cycle. (#8870)

  • useTableSelectionState, useTableTreeState, useTableColumnSettingsState and useTableColumnResize read their latest values as last committed. A render that React discards, as a suspended transition does, no longer reaches their handlers. "Select all rows" now selects the rows on screen, not those of a page still loading. A row's expand toggle, a column toggle and a keyboard resize also start from what is on screen. (#10176)

  • Timestamp: every value in the hover card now has a name for screen readers (WCAG 2.2 1.3.1). A copy button sits inside its row's value, so the card passes the description-list check, and a row without a label is named by its time zone's long name, which is visually hidden. (#9041)

  • A bottom toast now keeps its 16 px gap above the bottom safe-area inset instead of sitting on the inset's edge. Under a coarse pointer it clears at least 34 px plus that gap, even on a page that reports no inset (Safari reports one only with viewport-fit=cover). (#8047)

  • An empty toast viewport now has no box, so iOS Safari's bottom toolbar returns to the page color once the last toast leaves. Before, a toast swiped out through the bottom edge left its color on the toolbar until the page reloaded. (#8047)

  • A touch on a toast is now decided by its first move. A first move toward the toast's edge belongs to the swipe and never scrolls the page; any other first move leaves the page its scroll. The shared gesture host makes that claim, so importing Toast now brings in the host: about 24 KB gzip on its own (Toast from about 74 KB to 99 KB), and nothing more on a page whose other touch components already load it. LayerProvider without a Toast import is unchanged. (#8047)

  • A quick flick toward a toast's edge now dismisses it whatever its height. Before, a flick also had to travel 48 px (the distance that already dismisses a one-line toast), so on any toast up to 120 px tall a flick could only snap back; and its speed was timed by when the browser handled the touches rather than when they happened, which in browsers that deliver moves on the next frame made a quick flick look up to twice as slow. (#8047)

  • useImageMode samples the image once for a region written inline. The effect depended on the region object's identity, so the documented call shape (a fresh object literal each render) re-fetched and re-decoded the image on every render, and each result re-rendered, without end. The effect now depends on the region's four numbers. (#10183)

Performance

  • On a touch screen, a control that grows its touch target toward 44 px (CheckboxInput, RadioList, Switch, List rows, InfoTip, action groups) measures its neighbours in a shared pass. Each pass used to match every element on the page against the list of interactive selectors. The pass now keeps that list until an element is added, removed or moved, an attribute the list reads changes, or a control starts or stops its watch. It still reads every neighbour's box in each pass, so the touch targets are the same. Measured in Chromium at 4× CPU slowdown on a page with 240 interactive elements, a pass during a scroll took about 70% less time. (#10242)

  • While a Tooltip is open, the observer that follows its trigger through a scroll no longer reads layout to re-arm. It used to read the trigger's box once or twice and the viewport's size on each frame of a scroll. It now takes them from its own report. The Tooltip still checks its placement once per move, on the same frames as before. (#10235)

Documentation

  • ButtonGroup's docs no longer promise that arrow keys skip disabled members. Arrow keys still move between members, Home and End still jump to the ends, and the group is still one Tab stop. (#10203)

  • FieldStatus: the guidance now says that a field's status is announced when its message or type changes, not again when a repeated submit fails with the same errors, and shows how the form announces such a repeated submit, with unchanged errors, once with useAnnounce (the error count and the first error) and moves focus to the first invalid field. (#10122)

Other Changes

  • Internal: Carousel's Shift+wheel handler carries a lint suppression for the new passive-handler rule until it moves to a native listener. Apps see no change. (#10248)

  • Internal: Core's internal touch entry also names, for Lab's NavigationStack, the gesture host and the coarse-pointer check. Its scroll edge effect reads the internal finger-scroll hook and its end call. Apps import nothing new. (#8396)

  • Internal: @astryxdesign/core/internal/touch also re-exports an element's shared animator, the Reduce Motion cross-fade, and the coarse-pointer touch hit area's hook and layer, for Lab's PageControl. It is an internal entry reserved for Astryx's own packages, outside the public API. (#9669)

  • Internal: useFingerScroll(scroller, {onEnd}) calls onEnd each time a finger's scroll on the scroller ends, and the hook is re-exported from the internal touch subpath for Lab components that watch a finger's scroll. Internal entries are outside the public API and its compatibility promise; the hook is not exported from the package entry point or the gestures barrel. (#10172)

  • Internal: an internal entry reserved for Astryx's own packages exposes the Dialog's title id, inline state and syncDefaultName() (a header whose title renders after the dialog mounted asks the dialog to look for its name again), so Lab's upcoming DialogHeroHeader can name the dialog and request title focus the way DialogHeader does. A data-autofocus="dialog-title" request is tried after every explicit request, in preparation for that header; nothing a consumer sees changes (#10105, part of #4182)

  • Two source comments, LayerProvider's inset note and ToastViewport's file header, are split into shorter sentences. Nothing that runs changes. (#10244)

  • Internal: the motion foundation's resolveSettleMs gives a spring role's settling time at the theme's tempo, so a CSS part that plays with the spring can start and land with it. Not exported from the package entry point. (#8105)

  • A toast's card no longer runs a hidden transform transition, with its transitionrun and transitionend events, when a Dialog, a modal Drawer or a scrim sheet opens or closes over it. The toast already stayed in place. (#10223)

  • Internal: the UIKit constants table gains UIScrollView zooming for a photo viewer, measured on iOS 26.2. It holds the give past the zoom limits and Photos' aspect-fill double tap and maximum zoom. The zoom stage geometry that Lightbox's touch zoom is built on comes with it. Neither is exported from the package entry point, and Lightbox's touch zoom reads them. (#8147)

@astryxdesign/cli

New Features

  • astryx discover lists the experimental PageControl component from @astryxdesign/lab. (#9684)

Fixes

  • The CLI no longer lists @astryxdesign/theme-neutral, @astryxdesign/lab or @astryxdesign/charts as optional peers. Before, a package manager could keep a theme from an older release as the CLI's peer after an app removed the theme and upgraded Core, and then warn that the theme's Core peer was not met. @astryxdesign/core stays the CLI's one optional peer. In a Yarn Plug'n'Play workspace member, or a pnpm workspace member with hoist: false, a legacy package.json#astryx.theme of neutral now makes astryx component warn that it cannot resolve the theme. Add the theme to the app with astryx theme add neutral instead. (#10232)

Documentation

  • A new useMultiCombobox — Issue Labels example block builds a Labels field on useMultiCombobox: typing filters the labels, the arrow keys move the active option while focus stays in the field, Enter or a click toggles a label and the list stays open, and selected labels show as removable tokens above the field. Copy it with astryx template useMultiComboboxHookUsage <path>. (#9578)

  • A useSnapPaging — Onboarding Pages example block: onboarding cards in a Carousel with hasSnap={useSnapPaging()} move one view per flick, and a switch moves one card per flick through the hook's pages option. Copy it with astryx template CarouselSnapPaging <path>. (#8153)

Contributors

Thanks to everyone who contributed to this release:

@cixzhang @GuillaumeMMM @HelloOjasMutreja @jiunshinn @kyu-rong @ManoharPaturi @thecodebasedot @vjeux

Full Changelog: https://github.com/meta/astryx/compare/v0.7.9...v0.7.10

18 days ago
astryx

Astryx v0.7.9

Astryx 0.7.9 — all @astryxdesign/* packages ship at this version.

OLD_VERSION=0.7.8  # replace with the Core version your project uses today
npm install @astryxdesign/core@0.7.9 @astryxdesign/cli@0.7.9  # plus every other @astryxdesign/* package you use, at 0.7.9
npx @astryxdesign/cli upgrade --from "$OLD_VERSION" --apply --path .

@astryxdesign/cli

Experimental APIs

  • astryx discover lists the experimental NavigationStack and NavigationScreen components from @astryxdesign/lab.

New Features

  • astryx discover lists the experimental CircleCheckIndicator component from @astryxdesign/lab.
  • astryx theme build keeps a theme's componentIcons slot functions. The built module imports each slot function from the module the theme source imports it from, writes static slot values beside it as JSON, and reads back the same static componentIcons view, so component icon slots resolve the same for the built theme as for the runtime theme. This includes slots inherited from a built, package, or family base. A slot function defined in the theme file still fails the build: move it to its own module and import it. In --family output, a member supplies its own slot functions through a named import of its whole componentIcons map. The module keeps each slot import as the theme source spells it (--icons-specifier rewrites only the icon registry import), so with --out in another directory, a module must answer to that specifier from the output directory.
  • A theme chooses which shared icon a component's own icon role uses, by slot, with defineTheme({componentIcons}). The first slot is code-block-copy: CodeBlock's copy button passes {copied} and, with no theme entry, draws copy, then check while copied. A slot value is a shared icon name, null to hide the icon, a partial {icon, variant, size} request, or a pure function of the slot's state that returns one; a field the request leaves out keeps the component's own value. For the copy button, null hides only the glyph. theme.componentIcons reads back the static values. ComponentIconSlotMap and the slot value types are exported from @astryxdesign/core/Icon. astryx theme build carries static slot values into built themes and fails on a slot function, and astryx component lists a component's slots.
  • createPanGesture(element, {axis?, onPan}) and usePanGesture(ref, {axis?, onPan}) report a drag on an element as values: onPan gets {state, translation, velocity} as the drag begins, changes, ends at the release, or is cancelled, and a finger, a mouse and a pen all drive it. A mouse or pen drag that starts on selectable text selects it instead; give text the drag should move user-select: none. axis limits the drag to 'x' or 'y'; a drag along the other axis is not reported. translation counts from where the drag began, so an element that follows it does not jump, and velocity at ended is the release velocity in pixels per second. The drag claims its touch at UIKit's 10 pt and leaves presses and long presses alone. destroy() removes every listener; the hook creates one pan for the element behind ref and destroys it at unmount.
  • Motion: a theme's tempo now times the springs of touch motion as well as its CSS durations. Each spring keeps its shape and takes tempo times as long, and so does the animated-layout glide. Finger tracking and busy loops stay as measured. A theme with only a duration scale keeps its springs at tempo 1, even inside a theme with a tempo. The springs don't follow character yet. The motion doc says so.

Fixes

  • astryx docs <namespace> <section> loads the project once instead of once for every guide below the namespace, so on a namespace with many guides, such as astryx docs authoring <section>, the read itself takes tens of milliseconds instead of hundreds. The answer is unchanged.
  • A run that takes over a crashed run's release-cache lock now also recognizes the npm install that run left behind by its original command line, as npm shows it before renaming its process, when Node's own file is not named node, such as nodejs or node-linux-x64.
  • The lexical ranker behind astryx build's search ranks the candidates search gathers, reused the same way. A later query in the same folder, for the same type, gathers again only when an input changed. In a long-running caller, a build that follows a build or a search no longer reads every component, hook, doc, template and theme again. A search that follows a build no longer reads them again either. Results are unchanged.
  • Under the Neutral theme, a selected row, a calendar range and the other selected fills on Neutral's surfaces are visible again, and highlighted code lines are stronger. --color-accent-muted matched the surface in dark mode and barely differed from the hover tint in light mode; it is now #d4d4d4 in light and #474747 in dark. In dark mode a selected Item, TreeListItem or checked CheckboxListItem row, a numbered Citation and a FileInput dropzone lift their secondary text so it stays readable on the fill; a dropzone's hint is slightly lighter at rest too. Neutral's code comments, operators and punctuation are slightly less muted so they stay readable on a highlighted line. The CLI's Neutral theme template carries the same values.
  • The stock theme's dark-mode accent (--color-accent) is now #0171E3 instead of #2694FE, so white text on an accent fill, such as a primary Button's label at rest, meets 4.5:1 (4.70:1, was 3.11:1). Hovered and pressed primary Buttons improve too (about 4.36:1 and 4.03:1, from under 3:1) but stay under 4.5:1. Light mode keeps #0064E0. Everything else painted with --color-accent in dark mode also darkens: accent fills, focus rings and accent icons. MetadataList's "Show more", Table's sort rank and DateRangeInput's applied preset now use --color-text-accent, so their text stays readable on dark surfaces. The theme template that astryx theme template writes uses the same dark accent, and the generated color token docs list it. To keep the previous look, a theme can set '--color-accent': ['#0064E0', '#2694FE'].
  • astryx swizzle no longer runs gh auth status before it reports: the ready gh issue create line appears when gh is on your PATH, found without running it, so a copy never waits on a process start or on GitHub. The line now also appears when gh is installed but not logged in; running it, gh asks you to log in.
  • astryx swizzle now copies the private attribute owner modules a component imports, and the unexported style modules they need, beside the copy in the package's layout. A swizzled Item, CheckboxList, RadioList or TreeList no longer imports a privateAttributes/*.stylex subpath that @astryxdesign/core does not export. A second swizzle reuses an identical copy and refuses a changed one without --overwrite. The receipt's files and filesCopied include the modules it copied.
  • astryx theme build reads the theme's icon import from the source it loaded: a theme saved in place while it builds now builds with its import, or fails and builds on the next save, instead of producing a module without the import.
  • theme: support CustomTextTypes module augmentation for custom Text variants (#5013)

Performance

  • astryx search and astryx build read Core's exports map once per run, not once per component. With the other readers, a search now reads Core's package.json 10 times instead of 183. Results are unchanged.
  • When no loaded integration ships templates, the integration-issue check no longer imports every Core template doc. astryx doctor in a project whose integrations only ship icon sets now imports none of them.
  • With no integration loaded, the integration-issue check no longer imports every Core template doc. astryx discover, and astryx component without --showcase or --blocks, now import none of them.
  • The integration manifest writer loads the code-rewrite toolkit only when it patches a manifest. astryx component, astryx theme list and astryx doctor outside a project no longer load it, and a component lookup loads about 70 fewer modules.
  • astryx search and astryx build look for a component's doc only in the Core folders whose listing holds its name, not in every folder. A search makes about a quarter of the file checks it made before. Results are unchanged.
  • Outside a project whose config names debug or integrations, astryx --version no longer loads the project, integration and code-rewrite modules. In a folder with no project config, it uses about three quarters less CPU. When no integration is installed, astryx docs and astryx hook --list load the project but not the code-rewrite modules. Output and exit codes are unchanged.
  • astryx search and astryx build work out a query word's forms once per entry they score, not once per word compared. Answers are unchanged.
  • astryx search and astryx build compute a typo's edit distance only up to the most edits that can count. A fuzzy match now computes far fewer table cells, with unchanged answers.
  • A standalone astryx theme build against the current Core loads Core's root entry only when the theme imports it. A theme that imports only @astryxdesign/core/theme no longer loads all of Core and its components. Family builds and builds against an older Core still load the root. Some builds hand the theme its Core: family builds, builds against an older Core, and themes whose folder has no Core. There, a theme that imports a Core root require() cannot load, such as one that awaits at its top level, fails with ERR_THEME_LOAD. The error names that root.
  • astryx doctor's theme checks, family builds and builds against an older Core defer an installed Core's root entry. It loads only when the theme or one of its .cjs dependencies imports it. A theme that does not import Core's root no longer loads all of Core and its components for them.

Documentation

  • The calendars guide says Calendar, DateInput, DateRangeInput, and DateTimeInput show the Gregorian calendar unless the application chooses another one. (#9842)
  • Hook docs for useCalendarDays, so astryx hook useCalendarDays and astryx search return it, and a useCalendarDays — Month Grid example block: a compact month table built from the hook's weeks and dayNames, with the previous and next months' days dimmed and a Week starts on control (Sunday or Monday) that reorders both the header and the grid. Copy it with astryx template useCalendarDaysHookUsage <path>.
  • Hook docs for useIcon, so astryx hook useIcon and astryx search return it, and a useIcon — Status Row example block: a custom status row draws the success, warning and error icons with useIcon, and under a Theme that overrides those icons the same row draws the theme's icons. Copy it with astryx template useIconHookUsage <path>.
  • Hook docs for useLinkComponent, so astryx hook useLinkComponent and astryx search return it, and a useLinkComponent — Article Cards example block: custom Article cards render their title link with the component the hook resolves. Inside a LinkProvider wired to a client-side router the title navigates without a page load, as="a" gives a native anchor even inside the provider, and outside the provider the title falls back to the next provider up or a native anchor. Copy it with astryx template useLinkComponentHookUsage <path>.
  • Hook docs for useOverlay, so astryx hook useOverlay and astryx search return it, and a useOverlay — Product Quick View example block: a product Card spreads the hook's containerRef and containerProps and renders the returned scrim once over its image. Hovering the card, or moving keyboard focus into it, reveals a Quick view button, and the image link before it lets Tab reach the button. Copy it with astryx template useOverlayHookUsage <path>.
  • Hook docs for useTableSortableState, so astryx hook useTableSortableState and astryx search return it, and a useTableSortableState — Multi-Sort Orders example block: an orders Table with no sort code of its own, where clicking Customer and then Shift-clicking Total sorts by customer and then by total. Copy it with astryx template useTableSortableStateHookUsage <path>.
  • Internationalization gains a short Other calendars guide: choose a calendar on InternationalizationProvider or Calendar, values stay Gregorian ISO dates, and most calendars need Temporal (load temporal-polyfill/full/global where it is missing). A new astryx docs calendars namespace has the detail: the supported calendars, loading Temporal on the server and in the browser, why the lunisolar calendars (chinese, dangi) can differ by a day between runtimes, and ISO 8601 week numbers. The guide and Calendar's calendar prop docs say how to get identical server and browser markup for those calendars: installImplementation() from temporal-polyfill/full/shim on both sides, since the full/global import keeps a native Temporal.
  • InfoTip: the component page, astryx component InfoTip --showcase, and astryx component InfoTip --blocks now have worked examples — a showcase metric label, a row of metric definitions, and read-only settings with permission notes. InfoTip's docs list its anatomy (trigger button, info icon, help surface) and say it follows the toggletip pattern: the button reports aria-expanded="true" while the help is pinned, and a screen reader hears the help once when it pins.
  • The usePanGesture page opens with a draggable box in two forms side by side: the hook and createPanGesture, which takes any element, with the same StyleX styles and Astryx tokens. The playing card follows as the advanced example. The createPanGesture page points to that example, and the usePanGesture guidance warns against holding the drag offset in a large component's state.
  • A new useClickableContainer — Clickable Project Card example block makes a project card clickable anywhere with useClickableContainer: a click on the card follows its title link, while the Star button, the owner link and a text selection keep their own behavior, and Ctrl/Cmd+click or middle-click opens the project in a new tab. Copy it with astryx template useClickableContainerHookUsage <path>.
  • A new useImageMode — Photo Caption example block shows a caption over a photo's sky. useImageMode samples only the strip under the caption, and MediaTheme gives the caption light or dark text from the result. A Beach photo switch swaps a night photo for a bright beach photo, and the caption keeps the dark fallback while the new photo loads. Copy it with astryx template useImageModeHookUsage <path>.
  • A new useInputContainer — Search Field Wrapper example block builds a custom search field with a leading search icon, padding and a trailing Clear button. useInputContainer puts focus in the input when the icon or the padding is clicked, and a click on Clear stays with Clear. Copy it with astryx template useInputContainerHookUsage <path>.
  • A useMergedRefs — AutoGrowTextArea example block: an AutoGrowTextArea forwards the caller's ref and keeps its own ref to measure its height, and the merged ref attaches both to the same textarea, so it resizes itself while a parent button focuses it through the forwarded ref. Copy it with astryx template useMergedRefsHookUsage <path>.
  • A new useScrollLock — Full-screen Mobile Menu example block opens a custom full-screen menu from a Menu button and locks the page behind it with useScrollLock, so the page neither scrolls nor shifts sideways, and closing the menu returns the reader to the same scroll position. Copy it with astryx template useScrollLockHookUsage <path>.
  • A new useScrollOverflow — Filter Strip Edge Fades example block shows a row of active filters that scrolls sideways and fades only the edge where useScrollOverflow reports hidden filters. Adding or removing a filter updates the fades, and a right-to-left switch moves the start edge to the right. Copy it with astryx template useScrollOverflowHookUsage <path>.

Other Changes

  • Internal: the search gather runs in its own listing-cache operation, so a caller that gathers candidates directly lists each folder about once, as astryx search already does. The command's results and output are unchanged. Not exported from the package entry point.
  • Internal: the CLI's in-process test helper builds only the commands its arguments need, as a run of the bin does.
  • The CLI's test setup rebuilds Core when its build is older than Core's sources or translations. It does so before any test starts, so a reused checkout no longer tests the CLI against an old Core build. A test waiting on another's build reads it only once that build is finished. One checkout's build no longer holds up another's tests. A run that cannot rebuild a stale Core, while an earlier run in the checkout uses it, stops with an error naming that run.
  • The PowerSearch blocks fit a phone-sized screen. Each sizes its field through a grid column, minmax(0, <width>): the old width where there is room, and the container's width where there is not. The Search with Table block's table scrolls inside its own frame on a narrow screen instead of widening the example.
  • Internal: the main searcher's test checks the count contract for each query, not a byte total over eight queries.
  • The Tokenizer blocks and the table-inbox and work-item-detail page templates follow Tokenizer's 'adaptive' default, so on a compact touch screen they show the bottom sheet. Their endContent and renderToken work there as in the inline field; hasClear and the overflow modes apply to the inline field, and the Clear and Overflow blocks say so. The rule: docs examples follow adaptive; the stories that are fixtures for inline-field geometry (Caret placement, Logical order, RTL end lane, Long token beside the end lane) keep presentation="popover". The table-inbox and work-item-detail back arrows mirror in right-to-left.

Contributors

Thanks to everyone who contributed to this release:

  • @cixzhang
  • @imdreamrunner
  • @jibin7jose
  • @MannXo
  • @nynexman4464
  • @Sainath-Reddy7
  • @vjeux

@astryxdesign/core

New Features

  • Under the touch presentation, ButtonGroup tracks a finger's or a pen's press across its buttons, like a menu. Press a button and slide across the others: the highlight follows, and the button you lift on runs. Lifting outside the group runs nothing. A mouse press is unchanged: it acts as a native button's, on the button it began on. With a finger, each button's target grows toward 44 px, up to half the gap to a neighbour, without the buttons growing. A menu trigger in the group keeps its own opening, and the keyboard is unchanged. Before, each button tracked only its own press, and sliding off it ran nothing. An enabled ButtonGroup root is position: relative under a coarse pointer, so absolutely positioned children anchor to the group. With a fine primary pointer, the group is unchanged.
  • DateInput, DateTimeInput: the bottom sheet shows the calendar. With a calendar such as 'persian', 'hebrew', or 'japanese', the bottom sheet shows months of the calendar, with its month names and the locale's digits, in panes of one fixed height, and its closed field writes the date in the calendar. Its month wheel lists the months of the selected calendar year, including leap months such as Adar I and Adar II, and a year change keeps the month or moves to its common counterpart (Adar I becomes Adar). Year labels carry the era, such as 令和8, and a year in which the era changes is labeled with the era of the shown month, as on iOS: 2019 reads 平成31 in January and 令和元 in July, and the month heading follows the same date, so January 3, 1989 reads 昭和64年1月. A provider locale with a -u-ca- keyword keeps the Gregorian sheet; set calendar to choose a calendar. Values stay Gregorian ISO dates. (#9842)
  • Core gains an internal parser for dates typed in a calendar system. It reads dates typed in any CalendarSystem, in any decimal digits, with month and era names, leap months such as Adar I, and Japanese eras such as 令和元年, and returns a Gregorian date. A date the calendar does not have is rejected and never adjusted. It also writes the committed text and the format hint, and reads them back as the same date in each calendar's own locale, in English and Swedish, and in locales whose weekday names are also month or era names. No component reads typed text with it yet, and no public API changes. Calendar output does not change.
  • useCalendarDays and useCalendarNavigation take an optional calendar (default gregory) for custom month views in other calendar systems; they never read the provider's calendar.
  • DateInput, DateTimeInput: never show the native date control in a calendar it cannot show. With a calendar other than gregory or iso8601, such as 'persian' or 'hebrew', adaptive-native (the default), the deprecated nativePicker values, and presentation="native" use the calendar popover on a mouse and the bottom sheet on a touch screen, because the native date control shows only Gregorian dates. An explicit presentation="native" also warns in development. A provider locale with a -u-ca- keyword keeps Gregorian dates and the native control; set calendar to choose a calendar. Values stay Gregorian ISO dates. Without Temporal, calendars other than gregory, iso8601, buddhist, roc, and japanese show Gregorian dates and the native control as before. (#9842)
  • DateRangeInput: show the range in the calendar. DateRangeInput takes a calendar prop, such as 'persian' or 'hebrew', defaulting to the InternationalizationProvider calendar (a provider locale with a -u-ca- keyword keeps Gregorian dates; set calendar to choose one), and writes its trigger text and shows its popover calendar in it. Values stay Gregorian ISO dates. Without Temporal, calendars other than gregory, iso8601, buddhist, roc, and japanese show Gregorian dates. (#9842)
  • InternationalizationProvider takes a calendar prop (CalendarSystem, exported from @astryxdesign/core/i18n), such as 'persian', 'hebrew', 'islamic-umalqura', or 'buddhist', and exposes the resolved calendar on InternationalizationContext as calendar. A locale never selects the calendar: fa-IR resolves to Gregorian until you set calendar="persian", and a provider locale with a -u-ca- keyword, such as th-TH-u-ca-buddhist, keeps Gregorian dates; set calendar to choose one. An unknown identifier resolves to Gregorian and warns once in development. The Gregorian-aligned calendars (gregory, iso8601, buddhist, roc, japanese) work everywhere; the others need Temporal. The context keeps the requested calendar; where Temporal is missing, a date component that resolves it shows Gregorian dates and warns once in development. Astryx date components keep showing Gregorian dates, and date values stay Gregorian ISO strings.
  • Calendar shows dates in other calendar systems. Calendar takes a calendar prop (CalendarSystem), such as 'persian', 'hebrew', 'islamic-umalqura', or 'buddhist', and otherwise shows the InternationalizationProvider calendar. A provider locale with a -u-ca- keyword, such as en-u-ca-buddhist, keeps Gregorian dates; set calendar to choose one. Values do not change: value, min, max, focusDate, and every callback stay Gregorian ISO dates. DateInput, DateTimeInput, and DateRangeInput show dates in the same calendar. In the selected calendar, the grid shows that calendar's months, including leap months such as Adar I and Adar II and the five- or six-day thirteenth month of the Ethiopic and Coptic calendars. Its heading, day names, and announcements use the calendar; Previous, Next, PageUp, and PageDown move one calendar month; and Shift+PageUp and Shift+PageDown move one calendar year to the same month. Day numbers use the locale's digits, and week numbers stay ISO 8601. The Gregorian-aligned calendars (gregory, iso8601, buddhist, roc, japanese) work everywhere. The others need Temporal; where the runtime lacks it, such as Safari or Node.js 24, load a polyfill like temporal-polyfill/full/global on the server and in the browser, or those calendars show Gregorian dates and warn once in development. A server-rendered app loads Temporal on the server too, since a server without it renders Gregorian markup.
  • Built-in date formats follow the calendar of the InternationalizationProvider. With calendar="persian", Timestamp's date, date_long, date_weekday, and date_time formats, the full date in its hover card and accessible name, and PowerSearch date values are written in that calendar, the same one Calendar shows. A provider locale with a -u-ca- keyword keeps Gregorian dates; set calendar to choose one. date_time keeps its time of day. time, the relative formats, system_*, and unix_seconds do not change, and without a provider calendar every output stays the same. formatSharedDate from @astryxdesign/core/utils and formatFilterValue from @astryxdesign/core/PowerSearch/utils take an optional trailing calendar argument that defaults to 'gregory'. Each of these dates names the month and day that Calendar shows for the same day, as does plainDateFormat with a calendar option other than 'gregory'. A calendar that needs Temporal shows Gregorian dates where the runtime lacks it, as the date components do.
  • DateInput, DateTimeInput: type dates in other calendar systems. Both take a calendar prop, such as 'persian', 'hebrew', 'japanese', or 'buddhist', and otherwise use the InternationalizationProvider calendar. A provider locale with a -u-ca- keyword keeps Gregorian dates; set calendar to choose one. value, onChange, min, and max stay Gregorian ISO dates. People type a date the way the locale writes it in that calendar, in any decimal digits, such as ۱۴۰۵/۸/۱۱, 1 Adar 5784, or 令和元年5月1日; the committed text, the popover calendar, and the date, date_long, and date_weekday formats use the calendar, and system_date stays the ISO date. Years are years of the calendar, so a Buddhist field reads 2026 as Buddhist year 2026: set min and max on Buddhist and Minguo calendar fields to catch a Gregorian year typed by mistake. A date the calendar does not have, such as 30 Esfand in a common Persian year, is named and never adjusted. An empty focused field without a placeholder shows an example date that the field accepts, and its description names the calendar when it differs from the InternationalizationProvider calendar. Calendars other than gregory, iso8601, buddhist, roc, and japanese need Temporal, native or a polyfill you load; without it the field shows Gregorian dates. (#9842) Typing changes for Gregorian fields too:
  • ClickableCard and SelectableCard no longer show their pressed look when a finger press starts on a control inside them, such as an info button, a button, or a link. A mouse press is unchanged. useClickableContainer returns onPointerDown; on a container that paints its press with usePressFeedback, spreading it drops a touch press that starts on a nested control. A mouse :active press paint is unchanged. A container that does not spread it works as before.
  • Table: the row-expansion toggle resolves its glyph through the table-row-expand component icon slot with state {expanded}. With no theme entry it draws chevronRight, as before. The toggle still turns the glyph a quarter turn while expanded and mirrors it in right-to-left layouts, whatever the slot resolves. A theme maps it with defineTheme({componentIcons: {'table-row-expand': …}}); null hides only the glyph, and the toggle keeps its name, aria-expanded, and its toggling.
  • Table: a sortable column's sort indicator resolves its glyph through the table-sort-indicator component icon slot with state {direction} ('ascending' | 'descending' | 'none'). With no theme entry it draws arrowUp, arrowDown, or arrowsUpDown, as before. A theme maps it with defineTheme({componentIcons: {'table-sort-indicator': …}}); null hides only the glyph, and the sort control keeps its label, its sorting, and the header's aria-sort.
  • Timestamp: the hover card's copy button resolves its glyph through the timestamp-copy component icon slot with state {copied}. With no theme entry it draws copy, then check while copied, as before. A theme maps it with defineTheme({componentIcons: {'timestamp-copy': …}}); null hides only the glyph, and the button keeps its name, tooltip, and copy action.
  • A theme chooses which shared icon a component's own icon role uses, by slot, with defineTheme({componentIcons}). The first slot is code-block-copy: CodeBlock's copy button passes {copied} and, with no theme entry, draws copy, then check while copied. A slot value is a shared icon name, null to hide the icon, a partial {icon, variant, size} request, or a pure function of the slot's state that returns one; a field the request leaves out keeps the component's own value. For the copy button, null hides only the glyph. theme.componentIcons reads back the static values. ComponentIconSlotMap and the slot value types are exported from @astryxdesign/core/Icon. astryx theme build carries static slot values into built themes and fails on a slot function, and astryx component lists a component's slots.
  • Under a finger (a coarse primary pointer), an interactive List row's hit target grows toward 44px where its neighbors leave room: the shared touch hit area measures each row and stops at half the gap to the nearest neighboring row or control. Rows look and lay out exactly as before, and a mouse is unchanged. Under a finger a list row's ::after is that invisible layer, so decorate a row with a child instead. An Item that stops delegating to a nested control now drops its pressable-container marker, so a clickable card around it gets a mouse click in the row's padding again. InfoTip's button takes taps through the same layer: it still grows toward 44px where its neighbors leave room, and waits for motion around it to end before it grows; it clears when it stops taking taps. A labelled CheckboxInput and a RadioListItem option keep their band's insets through the same hook, so the insets clear when the control stops taking taps.
  • Under a finger, on every device, the finger that opened a DropdownMenu or MoreMenu now picks a row only after it has moved 10 px (spec:AST-094 FR29, FR43), so a menu that appears under a resting finger never picks the row beneath it, however long the finger rests. To keep the previous behavior, where that finger's lift picked once the press had lasted 300 ms, pass presentation="popover". A mouse and the public useMenuPress hook are unchanged.
  • Holding a NumberInput stepper with a mouse or a pen repeats the step: the first repeat comes after 0.5 s, and later ones come faster. The field shows each repeated value as its draft and calls onChange once, when the hold ends by release or pointer cancel. A click still steps and commits at once.
  • createPanGesture(element, {axis?, onPan}) and usePanGesture(ref, {axis?, onPan}) report a drag on an element as values: onPan gets {state, translation, velocity} as the drag begins, changes, ends at the release, or is cancelled, and a finger, a mouse and a pen all drive it. A mouse or pen drag that starts on selectable text selects it instead; give text the drag should move user-select: none. axis limits the drag to 'x' or 'y'; a drag along the other axis is not reported. translation counts from where the drag began, so an element that follows it does not jump, and velocity at ended is the release velocity in pixels per second. The drag claims its touch at UIKit's 10 pt and leaves presses and long presses alone. destroy() removes every listener; the hook creates one pan for the element behind ref and destroys it at unmount.
  • LayoutPanel, ResizeHandle and SideNav take useResizable's output directly in their resizable prop: const resizable = useResizable({…}); <LayoutPanel resizable={resizable}>…</LayoutPanel> <ResizeHandle resizable={resizable} />. The output's props still works, and SideNav's true and config object are unchanged. Given the output, SideNav's rail follows the region: its width and collapse state come from the region, its toggle calls the region's collapse and expand, and the region's autoSaveId saves the width. When collapsible also sets a collapsed state, the region wins and SideNav warns in development. Any other element can use the hook's size; the Resizable docs show one sized with a StyleX dynamic style.
  • Under a finger, a labelled CheckboxInput and each RadioList option get an invisible hit area. It grows toward 44 px, never makes the target smaller than the control’s own box, and stops at half the gap to a closer neighbour, so neighbouring targets never overlap. Nothing changes size. Under a finger a RadioListItem row’s ::after is that hit area, so decorate a row with a child. A label-hidden checkbox inside another component’s row keeps that row’s target. With a mouse or trackpad nothing changes.
  • Motion: a theme's tempo now times the springs of touch motion as well as its CSS durations. Each spring keeps its shape and takes tempo times as long, and so does the animated-layout glide. Finger tracking and busy loops stay as measured. A theme with only a duration scale keeps its springs at tempo 1, even inside a theme with a tempo. The springs don't follow character yet. The motion doc says so.

Fixes

  • A backdrop press that closes a menu or popover open inside a Dialog (purpose="info"), a Drawer with its scrim, or CommandPalette now closes only that menu or popover. The next backdrop press closes the dialog, as a second Escape does. Fixes #9920.
  • BottomSheet: a finger's pull up past the top stretches the sheet on every pull, on iOS's rubber band, with no 48 px cap, unless the caller sizes or styles the sheet (an inline block size, any xstyle or class name), which keeps it. The sheet keeps enough of its surface below the screen that the page never shows. A pull on the content stretches it too once the content has no room left to scroll: at once for content that fits, and after a long list reaches its end. A mouse or a pen keeps its current stretch.
  • BottomSheet, Tokenizer, PowerSearch: a swipe that asks to close a sheet whose owner keeps it open — the Tokenizer and PowerSearch sheets ask before a changed draft is discarded — no longer leaves the page behind the sheet undimmed. The scrim the drag thinned returns with the sheet to its resting detent, so the page stays dimmed while the confirmation is open and after Keep editing; Discard still closes the sheet with its exit.
  • BottomSheet: a standalone sheet (not a BottomSheetSwitcher step) removed while it is open (rendered only while open, or removed with the rest of a view) returns focus where a close would send it, while that place is still on the page: to finalFocusRef, else the control that opened it, or into the sheet beneath. A whole stack of standalone sheets removed at once returns focus to the first sheet's finalFocusRef or opener. When none of these is left on the page, for example when the opener is removed with the sheet, focus stays where the browser leaves it. Focus the person had already moved out of a sheet, to the page body, stays where it is. A sheet that opens in the same update keeps focus, and removing a covered sheet under a top sheet that stays moves no focus.
  • The internal calendar date parser reads back the text it writes in more locales. It reads month names that start with a number, such as Latvian 1. adars for Adar I and 1. rabī for Rabi' I, and still reads 1. adars as day 1 of Adar when no other number can be the day. It reads a numeric pattern that uses two separators, such as the Hindi Buddhist format hint. In the Japanese and Minguo calendars, whose era changes between 1900 and 2100, a year without its era can read as the wrong date. There, a format hint that would otherwise leave out the era shows the narrow era when it keeps the locale's field order, such as Amharic 1/1/8 R. Where every era width moves the fields, a date of an earlier era adds the era, such as Colognian BROC 1. Jan. 12, which no longer reads as a date in 1923. Calendars with one era in that range, such as Buddhist, Ethiopic or Hijri, write the same text as before. No public API changes.
  • useChatNewMessages (which ChatLayout uses), useSpeechRecognition and useChatDictation read their callbacks and other latest values as last committed. A render that React discards, as a suspended transition does, no longer has its callbacks called on the next resize or recognition event. Its audio context is no longer used either. After such a render, useChatNewMessages also no longer flags new messages while the list follows the bottom.
  • A checked, enabled, editable CheckboxListItem row now reflects data-selected="selected" on its row, the element that carries its item and list-item targets, so a theme's selected rules for those targets restyle checked rows and the text on their fill.
  • On a touch screen, a CheckboxList row now answers a finger the same way wherever it lands. Under a finger, pressing a row's label painted the whole row while pressing its box painted only the box; under a coarse primary pointer the row is now the one touch press surface, so the row and its checkbox show the pressed state together whether the finger lands on the label, the description or the box. Where the primary pointer is fine (a mouse, a trackpad, or a pen on a desktop page), the box keeps its own press and hover, as before.
  • A disabled CheckboxInput no longer runs a caller's onKeyDown, onKeyUp, onPointerDown, onMouseDown or any other on* prop except onFocus and onBlur. Before, a disabled checkbox stayed focusable and clickable, so a key or pointer press on it still reached them; only onClick was withheld. Now a disabled CheckboxInput runs no caller handler other than onFocus and onBlur, as a disabled Slider, TextInput and TextArea do (spec:AST-085 FR2). An enabled CheckboxInput is unchanged. No API changes.
  • When a LayoutPanel beside a ResizeHandle collapses with focus inside it, focus moves to the handle, and the collapsed panel is inert and hidden from assistive technology until it opens, instead of keeping focus, and a Tab stop, in a panel of no width. This holds for a panel that takes a useResizable region's resizable props, whether the hook's own or a hand-built object, and for a panel at the region's size beside a handle given them. A collapse started from the handle or from outside the panel keeps focus where it is.
  • ComplexSelector with a status and the default attached placement now shows the status icon on its trigger in place of the chevron, as Selector and MultiSelector do, so an error is no longer shown by color alone on the field.
  • The transient copy a layout motion holds of old content (an in-place swap's old content, the SideNav rail's and AppShell content's old state during a collapse or expand) carries on the CSS animations and transitions running in it from where they were. It no longer starts each CSS animation again (a press highlight lit again, an entrance that had played playing again, whatever its fill) or shows a transition's end at once.
  • DateInput and DateTimeInput keep typed text that has not reported a date, without an error, while disabled or busy, and commit it on the next Enter or blur once editable. A new value still replaces it. Typed text whose date onChange already reported gives way to the field's value once the field is editable again, on the next Enter or blur if the field has focus. (#9842)
  • DateTimeInput: a press that never becomes a click no longer leaves its document click watchers behind when the field unmounts (#10155)
  • On a phone or tablet (a coarse primary pointer), a tap or a drag that lands while a Dialog or a Drawer is still entering no longer closes it, runs one of its actions, moves focus or scrolls the page: it reaches nothing until the entrance has played, and the dialog or drawer finishes entering and stays open. Around a Drawer without a scrim only a tap or a drag on the panel is held, and the page stays live. Keys and assistive technology stay live during the entrance, the content stays in the accessibility tree, a pinch still zooms the page, and a mouse or a trackpad still clicks: at once when it was the last pointer used, otherwise once it moves.
  • On a phone or a tablet, a finger's tap or drag that lands while a DropdownMenu is still opening is now ignored, as on iOS: the menu finishes opening, stays open and keeps focus, and nothing under the tap reacts. The finger that opened the menu still picks a row. Keys and assistive technology stay live. A mouse, a finger on a touchscreen laptop and presentation="popover" are unchanged.
  • DropdownMenu trigger tooltips stay closed after pointer selection and still reappear for returning keyboard focus.
  • FileInput: a busy or disabled dropzone now shows the no-drop cursor for a dragged file instead of the copy cursor, and the browser no longer delivers a drop the zone would ignore.
  • Focusing the clear or status button of a ghost or secondary Selector no longer also rings the whole trigger: each tab stop shows one focus ring.
  • Under a finger, a Switch or InfoTip measured while an ancestor is scaled keeps the touch insets of its unscaled layout. Before, that measurement kept the scaled frame's insets until the next resize.
  • InputGroup: a focused input now stays above an unfocused input beside it, so the neighbour's border no longer covers part of its focus ring.
  • A selected interactive Item or ListItem row now shows hover and mouse-press paint over its fill, and a highlighted Item row shows mouse-press paint. Before, the fill hid both. A highlighted row shows no extra hover, because its fill is already the hover tone.
  • Item: the item theme target now reflects the row's state as data-highlighted, data-selected, and data-disabled, so a theme can restyle a highlighted, selected, or disabled row. A row that composes Item reflects the states it passes to Item: for example, ListItem reflects selected and disabled, and DropdownMenuItem reflects disabled. The docs list className and style, give ref the root element type, and give xstyle its standard description.
  • Keep TabMenu arrow-key navigation from moving focus to the outer tab strip.
  • A layer's trigger (Tooltip, Popover, HoverCard, DropdownMenu, ContextMenu and every other useLayer caller) now carries its CSS anchor-name only while the layer is shown or its exit animation runs. A closed trigger is no anchor, so in WebKit's Linux ports a transform animation on an element that contains a closed trigger keeps running while the main thread is busy. A layer that fades out keeps its trigger's anchor name until the fade ends. If you write a layer's anchorId as an anchor name yourself, write it only while the layer is shown or its exit animation runs.
  • An anchored layer (a Popover, a menu, a Selector's or MultiSelector's panel, a Typeahead's list) that would run under the software keyboard, in Safari on iOS, now keeps its top and shrinks to end 10 px above the keyboard, its content scrolling, and grows back when the keyboard goes down; before, the keyboard covered its lower part and a button there could not be reached. A layer clear of the keyboard, or placed above its trigger, does not change.
  • A LayoutPanel whose width is the number 0, such as one given a collapsed useResizable region's resizable props or width={0}, now takes no space and shows none of its children. Before, its padding kept it about 32px wide and its children showed squeezed into that strip, one letter per line. This is visual only: keyboard and assistive-technology hiding for a collapsed panel is separate.
  • Link: the label now takes the link's own color, at rest and on hover, so on hover a primary, secondary, or accent Link tints its text with its underline and external-link icon. Before, only the underline and the icon took the hover tint. A theme override on the text target (for example text[data-color="accent"]) no longer reaches Link labels: restyle Link labels through the link target. A theme that styles the text target's color now also keeps any Text with color="inherit" on its parent's color.
  • A list row's touch press release keeps fading while the page runs script, once the release has started. ListItem, Item and TreeList rows used to freeze mid-fade until the main thread was free, and every frame of the fade repainted the row; the release now runs on the compositor, with the same color as before. Script that runs in the tap's own handlers, before the next frame, still holds the row pressed until it ends. Under a finger, while a row is pressed and through its release, the press paints on the row's ::before and the row is its own stacking context; at rest nothing of it applies, so a row's own ::before decoration and its children's stacking are as they were. During a press the layer is the row's ::before, and any ::before property a caller sets, from xstyle (which Item composes after the layer) or from a stylesheet, wins over the layer's: a decoration with its own size and background jumps to the row's corner, and the row shows no pressed fill until the release ends. Decoration that should stay through a press belongs on ::after or a child element. With a mouse or trackpad the row is unchanged: no layer and no new stacking context.
  • ChatMessageList, Tooltip and HoverCard: the chat log and the span that Tooltip and HoverCard wrap around text-only children draw the theme's focus ring instead of the browser's default. A theme's --focus-outline-* tokens now reach them. The chat log's ring sits inside its box, so the area that scrolls it no longer cuts it off.
  • Markdown's GFM autolink option (autolink: 'gfm') no longer slows to seconds on long text. The bare-email scan started over at every character of a long run, so its time grew with the square of the run: a 100,000-character word took over 10 seconds. It now starts from each @, and trailing ) are peeled off a link in one pass, so a long run costs about as much as a plain parse. Linked emails and URLs are unchanged.
  • While a finger or a pen is held in a DropdownMenu, MoreMenu or ContextMenu, the row under it now takes the pressed overlay, and no other row keeps it, so the highlight can be seen following it (spec:AST-094 FR27, FR43). A held mouse, the keyboard and a hover keep the hover overlay.
  • On a phone or tablet (a coarse primary pointer), a tap or a drag during MobileNav's slide-in reaches nothing; keys and assistive technology stay live, and a mouse or a trackpad still clicks: at once when it was the last pointer used, otherwise once it moves.
  • MobileNav: Tab now wraps inside the open navigation drawer. Tab from the last control moves to the first, and Shift+Tab from the first moves to the last, so keyboard users no longer move from inside the drawer to the browser's toolbar. The drawer uses the same focus-region module as Dialog, BottomSheet and Lightbox.
  • Dialog, AlertDialog, CommandPalette, BottomSheet, Lightbox: Tab now wraps inside an open modal Dialog, AlertDialog, CommandPalette, modal BottomSheet or Lightbox. Tab from the last control moves to the first, and Shift+Tab from the first moves to the last, so keyboard and screen-reader users no longer land in the browser's toolbar from inside these modals. They now use the same focus-region module that Drawer and Popover use. When modals nest, the innermost one handles Tab. Non-modal sheets and inline dialogs do not trap focus. Fixes #8841.
  • MultiSelector: in the open list, a repeated letter now moves to the next option that starts with it, so t, t, t over Tea, Toast and Tofu walks Toast, Tofu, Tea instead of staying on Tea. A single letter typed after a pause searches from the option after the highlighted one, not from the top of the list, as in Selector. Space still toggles the highlighted option, so a typed Space does not extend the prefix as it does in Selector. useMultiCombobox gets the same behavior. (#9921)
  • With a finger, a press that starts on a control inside a list row with onClick or href, a TreeList row with onClick or children, or a clickable or link Token with onRemove no longer makes the row or token look pressed, since it does not run the row's or token's action. A press on the row or token itself still looks pressed. Mouse presses are unchanged.
  • When an OverflowList (or a useOverflow host) resizes, it now shows the new visible set in the same frame. Before, the resize rendered after the frame painted, so one frame showed the old set at the new width: items spilled past the edge as the box shrank, or stayed collapsed as it grew. A resize now measures again in a microtask before paint, every list that one resize reports renders together, and a resize that changes nothing renders nothing. A resize whose new set can change the list's own height (a taller indicator appearing, a multi-row list filling a different number of rows or measuring a new row height, or, with behavior="observeParent", the indicator appearing or disappearing, which changes how the list fills its parent, or a list sized from its items, such as a flex item beside a menu that can shrink) still renders one frame later, as before, because rendering it before paint would make the browser report a ResizeObserver loop error. A resize that folds the list before paint can make Chromium report "ResizeObserver loop completed with undelivered notifications" once in that frame when another observer watches an outer element (Storybook's preview observes <body>); no notification is lost, and an error monitor should ignore this message. Tests: a resize the observer reports now applies in a microtask, still before paint. A test that calls a mocked ResizeObserver callback and asserts synchronously right after it should first await the update by wrapping the call in await act(async () => { … }).
  • BottomSheet and Dialog: the page no longer jumps after a sheet or a dialog closes in Safari and on iOS. Returning focus to the control that opened the overlay asks the browser not to scroll. WebKit focuses the nearest focusable ancestor of a tapped button, such as an app's tabindex="-1" main region, and records it as the opener; the focus return then scrolled the page to that region's top edge. The focus ring still follows the last input.
  • Pagination: the dots variant now exposes the APG radio group it already behaves as. Before, the dots were a group of buttons named "Go to page N", with aria-current="page" on the current page. Now the container is a radiogroup named by the page-indicators label, and each dot is a radio named "Page N" with aria-checked on the current page and no aria-current. Keyboard behavior is unchanged. A press on a dot now chooses its page on release, so sliding off before release takes the press back.
  • PowerSearch: in the sheet presentation, a placeholder longer than the trigger stays on one line and ends in an ellipsis. Before, it ran under the result count and, on a narrow field, past the field's border.
  • A press's release now fades on the theme's exit motion tokens, --duration-exit and --ease-exit, instead of 200 ms, scaled by the theme's tempo, on a curve of its own. This covers every release that fades: a finger, mouse, pen or key press on a phone or tablet, and a pen press on a desktop, on buttons, cards, switches, checkboxes, list and tree rows, tabs, menu items and action groups. With the default tokens the release is 175 ms and holds its colour a little longer before it goes. A theme that changes --duration-exit or --ease-exit now changes the release too; a theme's tempo still does, through --duration-exit. Under Reduce Motion a finger's release still fades for no more than 200 ms. A mouse press on a desktop is unchanged.
  • Under a finger, a pressable (a button, card, link, list row or any other surface) outside a scroll view now highlights in the frame the finger lands, as UIKit's controls do, instead of after a 150 ms delay. Inside a scroll view it still waits that delay, so a flick paints nothing, and a scroll that takes a held press cancels it with no fade. A page that scrolls counts as a scroll view, so on a page taller than the screen a press still waits; a control in a fixed bar, or on a page that fits, highlights at once. A mouse on a desktop keeps :active.
  • Under reduced motion, a pressed Button no longer shrinks, and ClickableCard, SelectableCard and Thumbnail change their hover, border and selection colors at once on every pointer, whatever the theme's duration. A finger's press highlight still fades out on release, within 200 ms.
  • LayoutContent, LayoutPanel and a scrollable div or span StackItem name their region while it scrolls. Before, a scrolling region was a nameless element that Chromium could make a Tab stop, so a screen reader announced nothing about it. It is now a group named by the caller's label, or by a translated "Content" (accessibility target: LayoutContent AR3, LayoutPanel AR3 and Stack AR2). A caller's role stays with only the caller's name, and Tab behavior stays the browser's.
  • Selector: after keyboard input, the active option draws the standard focus ring inside its edge, so people moving through the list with the keyboard can see where they are. The overlay fill alone measured about 1.09:1 against the listbox in light mode and 1.15:1 in dark, under the 3:1 a state indicator needs; with the stock theme the ring measures 5.39:1 (light) and 3.10:1 (dark). The ring takes its width, style and color from the --focus-outline-* tokens, like every other focus ring. After pointer input the active option keeps the fill alone, as a focused DropdownMenu row does. This includes a mouse that moves onto another option after keyboard input, without a click.
  • A disabled SideNavItem no longer runs a caller's onKeyDown, onKeyUp, onPointerDown, onMouseDown or any other on* prop except onFocus and onBlur. Before, a key other than Enter or Space on a disabled item still reached onKeyDown, every key reached onKeyUp, and pointer or mouse input that bypasses pointer-events: none (programmatic or assistive-technology input) reached onPointerDown and onMouseDown. This covers the plain, link, collapsed leaf and split-row forms; the flyout trigger of a collapsed parent item is not covered. Now a disabled SideNavItem runs no caller handler other than onFocus and onBlur, as a disabled Slider, TextInput and TextArea do (spec:AST-085 FR2). An enabled SideNavItem is unchanged. No API changes.
  • Spinner: a turning ring now wakes the main thread once every 100 turns instead of every turn. In a React app, Chromium recalculated style at the end of each turn, about seven times a second with one ring at a 525 ms turn. The ring looks and turns the same, and reduced motion still slows it to 3 seconds a turn.
  • A standalone Spinner used to mount role="status" already holding its name, so screen readers often said nothing when it appeared. It is now an indeterminate progress indicator (role="progressbar" with no aria-valuenow, named by its visible string label, its aria-label or a translated "Loading") that announces once through the shared polite channel when it appears after page load, reading its rendered text in order with stacked lines kept apart, or its accessible name (AST-020 FR15; AST-086 FR2, FR7, FR11–FR12; WCAG 2.2 4.1.3). BaseTypeahead, Typeahead and Tokenizer keep their search Spinner named and never live while they announce the search themselves, and app code silences a composed Spinner with aria-hidden. No app change is needed (AST-017 FR53): a Spinner given a role other than progressbar stays silent, as before. The lab EmojiPicker and Schedule now hide their loading rings and announce their own busy start once, and the Comments history dialog announces it inside the dialog (AST-086 FR6, FR8, FR14); their loading words stay readable. Every Spinner's indicator changes from status to progressbar, so a test that queries it by role changes, including the hidden rings inside Button, CheckboxInput, CheckboxList, CheckIndicator, ChatMessageList, ChatToolCalls, CommandPaletteInput, ComplexSelector, DateInput, DateRangeInput, DateTimeInput, DropdownMenu's sub-menus, FileInput, MultiSelector, Selector, Switch, TextArea, TextInput, Thumbnail and TimeInput, and lab's EmojiPicker, Comments and Schedule.
  • The stock theme's dark-mode accent (--color-accent) is now #0171E3 instead of #2694FE, so white text on an accent fill, such as a primary Button's label at rest, meets 4.5:1 (4.70:1, was 3.11:1). Hovered and pressed primary Buttons improve too (about 4.36:1 and 4.03:1, from under 3:1) but stay under 4.5:1. Light mode keeps #0064E0. Everything else painted with --color-accent in dark mode also darkens: accent fills, focus rings and accent icons. MetadataList's "Show more", Table's sort rank and DateRangeInput's applied preset now use --color-text-accent, so their text stays readable on dark surfaces. The theme template that astryx theme template writes uses the same dark accent, and the generated color token docs list it. To keep the previous look, a theme can set '--color-accent': ['#0064E0', '#2694FE'].
  • A disabled Tab no longer runs a caller's onPointerDown, onMouseDown, onKeyDown or any other on* prop except onFocus and onBlur. Before, a press or key on a disabled tab still reached them, for both the button and the link form; only onClick was withheld. Now a disabled Tab runs no caller handler other than onFocus and onBlur, as a disabled Slider, TextInput and TextArea do (spec:AST-085 FR2). An enabled Tab is unchanged. No API changes.
  • A toast plays its entrance once. When a Dialog, a modal Drawer or a bottom sheet with a scrim opens or closes while toasts show, the viewport moves into it or back out, and a toast already on screen now stays where it is instead of sliding in again.
  • Toast: without a LayerProvider, a toast dismissed before the fallback viewport mounts no longer shows, and its onHide runs once with 'manual'.
  • Tokenizer: in the sheet presentation, endContent renders at the field's inline end and renderToken renders the field's tokens, as in the inline field, so the same props work on a phone under the 'adaptive' default. Their own controls act without opening the sheet: an end-content button runs its handler, and a custom token's remove control commits onChange at once and moves focus to the trigger. A tap on a token, the placeholder or the field's empty space still opens the sheet. Before, the sheet dropped both props with a development warning. renderItem, hasClear (the sheet has its own Clear all), hasEntriesOnFocus, menuWidth, tokenOverflowBehavior and hasAutoFocus still apply to the inline field only.
  • A disabled TopNavItem no longer runs a caller's onPointerDown, onMouseDown, onKeyDown or any other on* prop except onFocus and onBlur. Before, a key pressed while script had focused a disabled item, or an event dispatched to it, still reached them, in both the default and the drawer form; only onClick was withheld. Now a disabled TopNavItem runs no caller handler other than onFocus and onBlur, as a disabled Slider, TextInput and TextArea do (spec:AST-085 FR2). An enabled TopNavItem is unchanged. No API changes.
  • DateInput: under a finger, every row in view of the bottom-sheet picker's columns meets WCAG AA contrast; their edge fade is shallower.
  • Typeahead, Tokenizer: picking a result now calls onChangeQuery(''). The pick empties the input but never reported it, so an app that mirrored the query kept the text typed before the pick. A pick made while the query was already empty reports nothing, as nothing changed. (#8929)
  • useMediaQuery now shares one listener per query among all its callers, so a long list of components that ask the same query adds one listener, not one per component. Every caller still reads the same answer. It also listens on Safari before 14, which has only the older listener pair, where it threw before.
  • Gestures: a late or merged trackpad wheel that keeps the glide falling stays in the flick. When the next wheel grows instead, the new gesture keeps the late wheel's travel. A mouse wheel's notches keep their rules.

Performance

  • Under a finger, the touch-inset pass of a Switch or InfoTip resolves a control's style only when a transform scales it.
  • LayerProvider no longer carries the toast viewport. An app that imports LayerProvider from @astryxdesign/core/Layer and never imports Toast loads about 45 KB (46,161 bytes) less JavaScript (gzip). Toast registers its viewport when it is imported, and LayerProvider then renders it after the app. Without a Toast import, LayerProvider renders no empty viewport. A toast shown before the viewport mounts waits, then shows. On the server, LayerProvider renders no viewport; it mounts after hydration.
  • A single-line OverflowList no longer renders again after mount only to record an item height it never shows: it does not track the row count and item height that only its multi-row form (maxRows above 1) renders from. One whose items all fit now renders once on mount; one that collapses items still renders again for the new visible count. The public useOverflow hook is unchanged and still reports both on every path.

Documentation

  • A BottomSheet source comment names the pen beside the mouse for the resisted stretch past fully open. Nothing a consumer imports or renders changes.
  • astryx hook --list groups the motion hooks under one category, "Motion & gestures": useAnimatedLayout, useAnimator, useEntryAnimation, usePanGesture and usePressFeedback; the docs of createAnimator and createPanGesture carry the same category. The "Animation" group goes away. useLongPress, useMenuPress and the other interaction hooks stay under "Interaction".
  • Hook docs for useCalendarDays, so astryx hook useCalendarDays and astryx search return it, and a useCalendarDays — Month Grid example block: a compact month table built from the hook's weeks and dayNames, with the previous and next months' days dimmed and a Week starts on control (Sunday or Monday) that reorders both the header and the grid. Copy it with astryx template useCalendarDaysHookUsage <path>.
  • Hook docs for useIcon, so astryx hook useIcon and astryx search return it, and a useIcon — Status Row example block: a custom status row draws the success, warning and error icons with useIcon, and under a Theme that overrides those icons the same row draws the theme's icons. Copy it with astryx template useIconHookUsage <path>.
  • Hook docs for useLinkComponent, so astryx hook useLinkComponent and astryx search return it, and a useLinkComponent — Article Cards example block: custom Article cards render their title link with the component the hook resolves. Inside a LinkProvider wired to a client-side router the title navigates without a page load, as="a" gives a native anchor even inside the provider, and outside the provider the title falls back to the next provider up or a native anchor. Copy it with astryx template useLinkComponentHookUsage <path>.
  • Hook docs for useOverlay, so astryx hook useOverlay and astryx search return it, and a useOverlay — Product Quick View example block: a product Card spreads the hook's containerRef and containerProps and renders the returned scrim once over its image. Hovering the card, or moving keyboard focus into it, reveals a Quick view button, and the image link before it lets Tab reach the button. Copy it with astryx template useOverlayHookUsage <path>.
  • Hook docs for useTableSortableState, so astryx hook useTableSortableState and astryx search return it, and a useTableSortableState — Multi-Sort Orders example block: an orders Table with no sort code of its own, where clicking Customer and then Shift-clicking Total sorts by customer and then by total. Copy it with astryx template useTableSortableStateHookUsage <path>.
  • Internationalization gains a short Other calendars guide: choose a calendar on InternationalizationProvider or Calendar, values stay Gregorian ISO dates, and most calendars need Temporal (load temporal-polyfill/full/global where it is missing). A new astryx docs calendars namespace has the detail: the supported calendars, loading Temporal on the server and in the browser, why the lunisolar calendars (chinese, dangi) can differ by a day between runtimes, and ISO 8601 week numbers. The guide and Calendar's calendar prop docs say how to get identical server and browser markup for those calendars: installImplementation() from temporal-polyfill/full/shim on both sides, since the full/global import keeps a native Temporal.
  • InfoTip: the component page, astryx component InfoTip --showcase, and astryx component InfoTip --blocks now have worked examples — a showcase metric label, a row of metric definitions, and read-only settings with permission notes. InfoTip's docs list its anatomy (trigger button, info icon, help surface) and say it follows the toggletip pattern: the button reports aria-expanded="true" while the help is pinned, and a screen reader hears the help once when it pins.
  • InputGroup: the docs no longer say status paints the group border or that the group shares one focus ring. status shows its message below the group and reflects its type as data-status; a focused member stays above its neighbours. isOptional names the "Optional" indicator it shows.
  • InputGroupText: the docs now say when to use a text addon and what it is not: short fixed text or a decorative icon, read as plain text and not part of the input's accessible name. They document ref, give xstyle its standard description, and the code example no longer gives the group and its input the same label, which made a screen reader read the name twice.
  • Long comment sentences in some menu press sources and tests are split into shorter ones, and DropdownMenu's presentation description no longer says "as before". Nothing a consumer imports or renders changes.
  • The usePanGesture page opens with a draggable box in two forms side by side: the hook and createPanGesture, which takes any element, with the same StyleX styles and Astryx tokens. The playing card follows as the advanced example. The createPanGesture page points to that example, and the usePanGesture guidance warns against holding the drag offset in a large component's state.

Other Changes

  • Internal: the undocumented @astryxdesign/core/internal/calendar-system entry gives Lab's Schedule the calendar that Core's date components resolve, and the helpers that name its months, days, and date ranges as Calendar does. Internal entries are outside the public API and its compatibility promise. Lab's Schedule follows that calendar. Without a provider calendar, the accessible label of a timed event that spans days now writes its dates in the Gregorian calendar; before, the dates followed the locale's default calendar, such as the Persian calendar under fa-IR. A locale never selects the calendar.

  • onChange fires while typing only once the date is complete, and once for each date, so partial input such as 12/0 or 12/01/202 no longer reports wrong dates. A two-digit year, such as 12/01/90, or a date without a year commits on Enter or blur, and is read in the locale's field order. A one-digit or three-digit year, such as 1/5/2 or 12/01/202, is not a date: Enter or blur keeps it and shows it as invalid. parseDateInput still reads, on Enter or blur, text the field cannot otherwise read and a date the locale's field order does not have, such as 13/5/2026 in en-US.

  • A typed date outside min, max, or dateConstraints stays in the field with an error that names the allowed range, or says the date is not available when only a dateConstraints rule rejects it, instead of reverting on blur; the error shows even when you set status. Unreadable text, a date that does not exist, and an out-of-range date each announce their own message, once.

    Fixes #8958.

  • Internal: Core's internal touch entry also names, for Lab, the screen-edge pan recognizer, the spring solver, the motion resolver, UIKit's navigation table and four navigation springs, and the focus helpers that follow the last input. Core's English catalog gains @astryx.navigationStack.back. Apps import nothing new.

  • Internal: Core's internal motion engine factory is renamed createMotionEngine (from createMotionAnimator), with its types MotionEngine and MotionEngineOptions, at its source and in every internal caller. Core's internal touch entry also re-exports, by name, the UIKit gesture values, the right-to-left check, and the touch-presentation hook and query that Lab components read. Lab's useMotionEngine hook wraps the engine, and Lab's refresh control uses it. Apps import nothing new.

  • Internal: Core's internal touch entry re-exports what Lab's useRefreshControl reads. That is the pan recognizer, its hook and the gesture types, and the motion animator. It is also the motion math, the map of a companion curve, the UIKit scroll table of its pull, and the motion-role parsers. None is in the public entry. Apps import nothing new.

  • Internal: one input hold for every layer (Layer/inputHold). While a layer presents, a finger's or a pen's touch, press or click reaches nothing: anywhere around a modal layer, and only on the layer itself around a non-modal one, whose page stays live. A mouse passes once it moves, at once when the page last heard a mouse (keys and assistive technology still act, and a pinch still zooms the page). While it dismisses, every press and click reaches nothing, and the layer's content is inert. The gesture host asks the hold about each touch (holdsTouch), and isInputShield lets a hit test see past a hold's shield. Not exported from the package entry point; Dialog's and Drawer's entrance holds and MobileNav's drawer use it.

  • Internal: each spring role, and the navigation, paging and picker motion tables, register themselves when their module loads, so a spring role plays at the theme's tempo wherever it plays, with no register call. A page that plays no spring ships no springs registry. A module that imports single spring rows carries only those rows, unless it also reads the whole springs table or calls registerSpringsTable(). Not exported from the package entry point.

  • Internal: usePanGesture copies onPan into its ref at commit, not during render, before the hook's first release. A render React discards, as a suspended transition does, no longer hands the next drag to its onPan.

  • Internal: a pan gesture's begin threshold can be read from each press's first touch, so a mouse or a pen can begin a pan sooner than a finger. It is not exported from the package entry point, and nothing changes for existing callers.

  • Internal cleanups in SideNav and in how a resize handle finds its panel: a source comment that only restated the line after it goes, and one lookup function replaces two. No behavior change.

  • Internal: Spinner's rotor (the turning arc's keyframe, timing and timeline-origin pin) moves into one internal module that Lab's indeterminate CircularProgress also uses. Spinner does not change.

  • Internal: one shared reader times motion from the theme's duration and easing, as a computed transition resolves them. SegmentedControl's selection slide now reads its timing with it; its timing is unchanged, calc() tokens included.

  • Internal: DateInput and DateTimeInput keep their typed-entry state, rejection status, and commits in one shared hook instead of two copies. Typing, committing, and rejection messages are unchanged. Not exported from the package entry point. (#9842)

Contributors

Thanks to everyone who contributed to this release:

  • @aashish254
  • @cixzhang
  • @duytbp
  • @harjothkhara
  • @HelloOjasMutreja
  • @imdreamrunner
  • @korkt-kim
  • @MannXo
  • @nynexman4464
  • @parinith-web
  • @vjeux

@astryxdesign/richtext

Fixes

  • RichTextExtensionNode is constructible with no arguments, as a registered node class must be. A Yjs collaboration binding builds one instance of every registered node class, with no arguments, to read its default properties, so creating a binding over an editor with this package's default nodes threw TypeError: Cannot read properties of undefined (reading 'display') before any document was loaded. Its facts now default to the same empty values the class already reads for damaged stored state, so a no-argument node reports an empty inline extension instead of throwing. A node built with facts is unchanged.

Contributors

Thanks to everyone who contributed to this release:

  • @potatowagon

@astryxdesign/theme-neutral

Fixes

  • Under the Neutral theme, a selected row, a calendar range and the other selected fills on Neutral's surfaces are visible again, and highlighted code lines are stronger. --color-accent-muted matched the surface in dark mode and barely differed from the hover tint in light mode; it is now #d4d4d4 in light and #474747 in dark. In dark mode a selected Item, TreeListItem or checked CheckboxListItem row, a numbered Citation and a FileInput dropzone lift their secondary text so it stays readable on the fill; a dropzone's hint is slightly lighter at rest too. Neutral's code comments, operators and punctuation are slightly less muted so they stay readable on a highlighted line. The CLI's Neutral theme template carries the same values.

Contributors

Thanks to everyone who contributed to this release:

  • @cixzhang
20 days ago
astryx

Astryx v0.7.8

Astryx 0.7.8 — all @astryxdesign/* packages ship at this version.

OLD_VERSION=0.7.7  # replace with the Core version your project uses today
npm install @astryxdesign/core@0.7.8 @astryxdesign/cli@0.7.8  # plus every other @astryxdesign/* package you use, at 0.7.8
npx @astryxdesign/cli upgrade --from "$OLD_VERSION" --apply --path .

@astryxdesign/core

New Features

  • In Chrome on Android, on a touch screen, a Tall BottomSheet places the focused field just above the on-screen keyboard when Chrome reports it, then rides the rest of Gboard's slide; through the hide the sheet's scroll room stays while its content rides down, so nothing jumps while the keyboard is still on screen. Under Reduce Motion it cross-fades instead of moving. The browser-support guide says so.

    Also released in @astryxdesign/cli.

  • Calendar: weekday headers show the locale's abbreviated names where all seven fit in four characters, and keep the short names otherwise. English now reads Sun Mon Tue instead of Su Mo Tu; French reads dim. lun. mar., and Spanish, Swedish, Norwegian, Romanian, Greek, Serbian, Turkish, German, and Traditional Chinese switch the same way. Portuguese (Portugal), Arabic, Hebrew, Polish, Danish, and Vietnamese, whose abbreviated names are longer, keep their short names. A locale Astryx ships no translations for shows its own names instead of English: the abbreviated names where they fit the same way (Indonesian Min Sen Sel), else the narrow ones (Swahili S M T). The popovers of DateInput, DateRangeInput, and DateTimeInput follow because they render Calendar. The touch bottom sheets of DateInput and DateTimeInput now show the same names as Calendar in every locale: Portuguese (Portugal) no longer runs whole words such as domingo together, and Polish, Danish, Vietnamese, Arabic, and Hebrew switch to their short names there.

  • CheckboxList takes isOptional, as RadioList and CheckboxInput do. It shows the optional indicator after the group label, so an optional checkbox group can say so, including as the exception in a FormLayout with defaultOptionality="required". Under defaultOptionality="optional" the indicator stays hidden, as for every field. A checkbox group takes no required state from a form default: with or without isOptional, its checkboxes carry no aria-required from it, and it adds no native required.

  • CheckboxList takes isRequired. The group label shows the required indicator by the same rules as every input field. While no box is checked, the first box that is neither disabled nor read-only carries native required, so the browser blocks submit and moves focus to it with its own message. Once any box is checked, the form submits. A disabled or read-only group requires nothing. Show your own error text through status.

  • CodeBlock adds startLineNumber so code excerpts show real file line numbers

  • A component doc can mark its component deprecated with deprecated: {replacement, description}: the name of the component to use instead and the modernization route. astryx search results and astryx build kit entries for that component carry the field as deprecated (a deprecated: line in their text output), and the docsite shows a Deprecated badge in the component's page header (beside any stability badge) and a notice at the top of its page that names and links the replacement, and labels it Deprecated on its components index tile and in site search. BottomSheetSwitcher sets it, naming BottomSheet; the component keeps working unchanged.

    Also released in @astryxdesign/cli.

  • CheckboxInput can leave its rounded-square press layer off over a first-party replacement indicator that paints its own press. Indicators in this release are unchanged.

  • PowerSearch gains a touch surface through a new presentation prop, 'popover' | 'bottom-sheet' | 'adaptive', typed by the new exported PowerSearchPresentation, with 'adaptive' the default. bottom-sheet makes the whole field one trigger showing display-only filter tokens, and moves filter editing into a flow of tall modal sheets that stack: each step opens above the one that led to it, and dismissing a step reveals the one beneath, so no sheet has a Back action. A Filters sheet lists the active filters as rows that edit a filter, each with a trailing remove button, under a fixed header with Add filter and over a fixed footer with Clear all and Done; with no filter it shows one centered Add filter. The flow edits a draft of the filter list: adding, editing and removing a filter, and Clear all, change the draft, and Done applies it by calling onChange once per edit, in order, each with the list after that edit; a swipe, scrim or Escape close of a changed draft asks before discarding it, a clean one closes directly, and Done on a field that became read-only while the flow was open drops the draft. Clear all asks for confirmation, removes the editable filters, keeps read-only ones, and leaves Filters open. An Add filter sheet lists the fields grouped (searchable from eight fields), or the content search with the field typeahead's suggestions listed inline, and leaves its search unfocused until tapped; a field whose only operator takes no value adds at once. A value step stages operator → value and confirms from its footer, the editor on the sheet's surface, or in muted sections beside the operator choice. Closed vocabularies are full-width rows, numbers stage as typed, and string_list / entity_list values edit through the Tokenizer's own sheet presentation titled with the field label. adaptive uses the sheet on compact coarse-pointer screens and the popover otherwise, resolved the same way Selector resolves it. The sheet flow loads on demand, only when a field presents it. New @astryx.powersearch.sheet.* catalog keys for the sheets' strings; no new theming target. The API change is additive: the prop is new and optional, and no existing prop, type or export is removed or narrowed. The behavior changes only on compact coarse-pointer screens (phones), which is what 'adaptive' is for: there a PowerSearch with no presentation shows the trigger and the sheet flow, a filter reaches onChange when Done applies the sheet's draft, and menuWidth and tokenOverflowBehavior have no surface, with a development warning that names them. With a mouse or trackpad, on a screen that is not compact, in the server render and while hydrating, nothing changes. Pass presentation="popover" to keep the previous behavior on every device. Shipping this default in a patch is a product decision of the engineering owner, agreed with the owner of the compatibility policy.

  • createAnimator(element) and its hook useAnimator(ref) animate one element with the motion Astryx's components use; the hook takes the element's ref, so a gesture hook can share the element. animate springs x, y, scale, rotate and opacity to a target on the state-change motion, decay coasts any of them from a release velocity, set jumps, get and getVelocity read, and stop halts; animate and decay return a promise. Reduce Motion is planned for every call. createAnimator is exported from the package root and useAnimator from @astryxdesign/core/hooks; the CLI's templates gain a playing-cards example of each.

    Also released in @astryxdesign/cli.

  • Table: let row-expansion and tree plugins include row identities in localized expand and collapse labels.

  • Tokenizer's presentation prop is stable, and its default is 'adaptive'. presentation takes 'popover' | 'bottom-sheet' | 'adaptive', typed by the new exported TokenizerPresentation. The API change is additive: the prop is new and optional, and no existing stable prop, type or export is removed or narrowed (TokenizerProps['ref'] keeps its input type, and the component also accepts a ref typed Ref<HTMLInputElement | HTMLButtonElement>). The behavior changes only on compact coarse-pointer screens (phones), which is what 'adaptive' is for: there a Tokenizer with no presentation shows a trigger that opens the bottom sheet, the sheet edits a draft so onChange reports once, on Save, ref receives the trigger button, and renderItem, renderToken, endContent, hasClear, hasEntriesOnFocus, menuWidth, tokenOverflowBehavior and hasAutoFocus are not rendered, with one development warning that names them. With a mouse or trackpad, on a screen that is not compact, in the server render and while hydrating, nothing changes. Pass presentation="popover" to keep the previous behavior on every device. Shipping this default in a patch is a product decision of the engineering owner, agreed with the owner of the compatibility policy.

  • useTooltip returns show() and hide(). show() opens the tooltip and keeps it open until hide(), Escape, a press outside, or focus leaving its trigger, and its text is announced once. hide() closes it. Both fire onShow and onHide. Under a controlled isOpen, they only call those callbacks. Use them to build a toggle-style trigger: your own button calls them on each press, sets aria-expanded and aria-controls={describedBy}, and keeps its own accessible name.

  • On a touch device with a trackpad or a mouse, such as a tablet with a keyboard, the picker wheels in the TimeInput, DateTimeInput and DateInput bottom sheets now take a trackpad's two-finger scroll as a finger: the rows follow the fingers, coast on at their lift, and rest on a row. One mouse-wheel notch turns a wheel one row, as an arrow key does, with no coast. Before, both moved the rows by each scroll's own distance, so a trackpad's momentum ran at the browser's rate and one notch moved several rows. A ctrl-scroll still zooms the page.

  • Under a coarse primary pointer, as on a phone or a tablet, the picker wheels in the TimeInput, DateTimeInput and DateInput bottom sheets now move like UIPickerView. Their rows keep the 28 px pitch and lie flat, fading toward the edges of the column in every browser; the scrolling column under a mouse tilts and fades its rows only where the browser supports scroll-driven animations, and shows a plain list elsewhere. The row under the band is in semibold accent text on its plate while the wheel rests and while a finger drags it; no row is marked while the wheel coasts, snaps or turns. A flick coasts at UIKit's deceleration onto the row UIKit's projection picks. A finger landing on a moving wheel stops it. A tap on a row turns it onto the band, and a value changed from outside while the sheet is open, as when a bound clamps the time, turns the wheel onto its row. Past the first or last row, a drag rubber-bands and the wheel bounces back. As on iOS, the value commits when the wheel comes to rest, and the coast keeps running while the page's main thread is busy. Arrow keys and clicks on a row still commit at once. Under reduced motion a flick still coasts, as scrolling does; a tap, a key or a slow release cross-fades onto its row. presentation="popover" keeps the previous surface; no value keeps the native-scroll column under a finger. Each row that reaches the band ticks with a short vibration where the browser supports it, as on Android; iOS Safari has no vibration. Under a fine primary pointer, as with a mouse on a desktop, the wheels keep the scrolling column.

Fixes

  • AlertDialog: under the touch presentation, an action lifted while the alert stays open now ends its release fade on the theme's tempo-scaled clock, as the stylesheet's fade does, instead of at a fixed 200 ms.

  • AlertDialog: under the touch presentation, its two actions are tracked as one group for a finger and a pen, the way iOS tracks an alert's actions. A press that lands on one action and slides to the other runs the action it lifts on, and lifting off both runs nothing. The pressed action highlights at once, and the highlight follows the finger between the actions. A second finger or the window losing focus ends the press with nothing run. A press on the title or the message is not tracked. A mouse press stays the native button's, and the keyboard and assistive technology keep each button's own activation.

  • Motion: a call made while an animation settles, with the element already still on screen, waits for the browser's first frame as a call from rest does. A busy page no longer skips the start of the new motion, a jump of up to about 14 px at a Switch's return.

  • BottomSheet: a sheet whose height moves by a fraction of a pixel as it starts closing now slides off instead of vanishing. This happens in Chromium, for example, when a sheet that fits its content is dismissed by a drag. The browser replaces the exit's transform transition when that transition's end value changes mid-flight. The exit treated the cancelled transition as its end and closed the dialog before the sheet had moved. It now waits for the replacement transition to finish.

  • BottomSheet: on iOS Safari the grabber stays drawn while the sheet moves between detents, instead of vanishing until the sheet comes to rest.

  • Calendar: day numbers and week numbers now use the locale's digits, the same as the month heading. Under InternationalizationProvider locale="fa-IR" the days read ۱ ۲ ۳…, and under "ar-EG" they read ١ ٢ ٣…; English is unchanged. The month panes of DateInput's touch calendar follow the same rule. The dates themselves do not change: each number is still the Gregorian day.

  • Calendar: Shift+Page Up and Shift+Page Down now move the focused day to the same date one year earlier or later, as in the WAI-ARIA date picker pattern, instead of one month. A February 29 lands on February 28 in a year without one. The year step follows the same rules as Page Up and Page Down: it changes nothing past min or max, and on a day that dateConstraints disables it focuses that month's first enabled day. useGridFocus now passes the key event to onPageUp and onPageDown, so a grid can read event.shiftKey; callbacks that take no argument keep working.

    Fixes #8947.

  • CheckboxInput, Switch and CheckboxList: in a FormLayout with defaultOptionality="required", an unchecked box, an off switch or an empty checkbox group no longer carries aria-required. A screen reader used to say "required", which on a checkbox means "must be ticked", while the form still submitted. Unchecked or off is an answer, so these controls take no required state from the form default. A CheckboxInput or Switch is required only through its own isRequired, which still sets aria-required and native required. The "Optional" and "Required" labels follow the same rules as on every other field. No code change is needed (WCAG 4.1.2).

  • clampTime without seconds now gives the nearest whole minute inside a bound that falls between minutes. Before, clampTime('08:00', '09:00:30') gave 09:00, a time outside the range.

  • Closing a ComplexSelector by clicking into another control now leaves focus in that control instead of pulling it back to the selector, as Selector and MultiSelector already do. Escape, a close from the content, or a click on nothing focusable still returns focus to the trigger. A caller-rendered trigger (renderTrigger) still gets focus back on every close.

  • Typing a numeric date into DateInput or DateTimeInput no longer reports month-first dates on the way in day-first locales.

  • The theme token --duration-exit, the standard dismissal duration, now exists. It defaults to var(--duration-fast), so it follows a theme's tempo through that token, and a theme can set it like any duration token. Before, a theme or component that read var(--duration-exit) found no value. The motion and token docs, and the theme template's token list, name it.

    Also released in @astryxdesign/cli.

  • A text selection that an action's own handlers make when a claimed mouse or pen press lifts on it now stays. Before, the drag's selection hold put the press's selection back over it. When the handlers change nothing, the press's selection still comes back, as before.

  • Under focusTrigger="auto", a HoverCard now decides whether focus opens it when the focus arrives, as Tooltip does. A roving-tabindex trigger that was tabindex="-1" when the card attached, such as a toolbar member, opens on arrow-key focus, and a focusable trigger such as a <summary> or an SVG link opens on focus.

  • A HoverCard whose trigger is text written around an expression, such as Edited {when}, now wraps that text in its focusable trigger, so hover and keyboard focus open the card, the trigger carries its popup attributes or description, and it shows the same hover cue as a plain text trigger. Before, such text had no trigger at all.

  • When a HoverCard's trigger element is replaced after mount, by new children or by a child component that swaps its own root element, the new element now gets the card's popup attributes or description and opens the card on hover and focus. Before, it stayed unwired until the card next opened or closed or its label changed.

  • Icon: a labelled icon component that hides itself unless a prop replaces it, such as a Heroicons icon, is now exposed to assistive technology as an image with its label. Before, the component's own aria-hidden="true" stayed on the SVG and hid the label. If a parent control already names the icon, remove label so the name is not announced twice.

  • Icon's ref now reaches the rendered <svg> for a semantic or namespaced name, as its type promises. Before, it reached the <svg> only when icon was a component; for a name, the ref stayed empty. For a name whose glyph has no <svg>, the ref is null.

  • InfoTip renders only its button and its help: the display: contents wrapper around the button is gone, and the button is the tooltip's trigger directly, built on useTooltip's show() and hide(). Hover and keyboard focus still preview the help, and a click, tap, Enter, or Space still pins it until Escape, a second press, a press outside, or focus leaving. A mouse press on a previewed help keeps it in view as it pins, and a press that ends off the button does not pin it. A right-click on a previewed help now closes it at once, as it does on any tooltip trigger. Styles that reached the button through a wrapper selector now select the button itself.

  • BottomSheet reads the on-screen keyboard from core's shared keyboard module. It now takes over focus moves into a fully expanded Tall sheet wherever a top-level document has a visual viewport and the primary pointer is coarse, Chrome and Firefox on Android included, instead of only under an iOS user agent. A pinch zoom no longer reads as a keyboard, and a pinch-zoomed page still reads the keyboard's full height. The sheet lays its keyboard room out through its own style rather than a CSS custom property. The browser-support guide documents Chrome on Android's interactive-widget viewport setting.

  • A layout motion made late in a long main-thread task, such as a tap on a slow device, now plays instead of being skipped: under Reduce Motion the side navigation rail's cross-fade showed no fade at all after such a block. A layout change's animations start on the frame time the page last read only while that frame is at most 34 ms old; otherwise they start at the moment the change makes its first animation, so the block delays the motion. A glide such a change retargets carries on from where the compositor has it. An edge that rides such a glide, as the side navigation rail's does, moves with it. In Safari, a change that reverses such an edge mid-motion reads where the glide shows on the motion's own clock, so the edge no longer trails the content. Such a reversal also starts the rail's and the content area's fades from that moment, so the rail's icons no longer flash back. A change keeps one start from its first animation through the flush of its glides, and the parts riding those glides, however long the rest of the commit runs. A change that begins after a block since the last layout motion takes a fresh start, unless it joins an earlier change in the same area whose glides have not started yet. A side navigation collapse or expand made before the rail first paints, other than by its own toggle, lands at once, so a restored state never animates on load.

  • Lightbox: a viewer that unmounts while it is open (rendered only while open, or removed with its view) now returns focus to the element that opened it, when that element is still on the page, instead of dropping it to the page. A control the user pressed to remove the viewer keeps its focus.

  • useLongPress times a hold on the touch events' own timestamps (spec:AST-094 FR16). When a busy page handles the lift late, a finger held for the full delay still reports its long press before the lift acts, instead of losing it, so a ContextMenu's long press opens on a loaded page too. A touch the page handled late no longer lengthens the hold, and a lift stamped before the deadline still cancels the press when its timer ran late. onTouchEnd and onTouchCancel take the touch event, optionally; spreading the handlers passes it.

  • Tooltip and HoverCard: a pen held on the trigger before it lifts no longer closes the tooltip or card it just opened.

  • PowerSearch: a date-only date_absolute value (isDateOnly unset or true) reads as one day in one zone — on the token, in the accessible label and announcements, and in the edit popover's date editor — and the editor writes the day picked. Before, the token showed the device's day, the label showed a date and a time in timezoneID, and the editor read and wrote the UTC day without receiving timezoneID, so west of UTC a filter opened on the day after the one its token showed and re-picking that day moved the value a day earlier. Now a date-only value (isDateOnly unset or true) is a calendar day in timezoneID, else the UTC day: the token shows that day; the accessible label and formatFilterValue show that day with no time of day (UTC midnight March 9 in Los Angeles read "Mar 8, 2024, 4:00 PM" and reads "Mar 9, 2024"); the editor opens on it; and a picked day stores as that zone's midnight — with timezoneID set this is a different instant from the UTC midnight stored before, so a caller that derived the day from the instant's UTC date reads it in timezoneID instead, and a value the old editor stored as UTC midnight under a timezoneID west of UTC now reads the day before in the editor on every device, and on the token for a viewer at or east of UTC (UTC midnight March 9 under America/Los_Angeles reads March 8 everywhere; a Los Angeles viewer's token and the label already did), the day it would have stored — re-save such values, or read them as UTC days; with timezoneID unset no stored value changes. Each absolute date_range part is read and written as a calendar day the same way in the range editor. An operator with isDateOnly: false keeps its label; its token and editor change as its own entry describes. In the sheet presentation the rows and the value step read and write the same day. The exported PowerSearchToken and a components Token override receive timezoneID (a new optional prop on PowerSearchTokenProps), and PowerSearchToken shows that day too, where it showed the label's date and time. A [fix], not a breaking change: the released popover read one value in three zones, so nothing valid relied on how a day was stored, and timezoneID is documented for date formatting. A components Editor override and PowerSearchFilterEditor receive timezoneID.

  • PowerSearch: a date_absolute operator with isDateOnly: false gets the time of day the option names. The edit popover shows a time field beside the date picker, the token shows the date and the time, and both read and write the instant in timezoneID when it is set, else the viewer's zone, so the time typed is the time shown. Before, isDateOnly was read nowhere: every date_absolute edited in the date picker and stored UTC midnight of the picked day. Only operators that set isDateOnly: false change: a value saved from their editor now carries the time entered where it carried midnight, and their token shows the time; isDateOnly unset or true is unchanged, and stored values are read as the instants they are.

  • Under a finger, a press's release now lasts until its fade has played. The touch press controller ended the release on a clock started at the lift, so when the page's script delayed the fade's first frame, the release was cut short mid-fade. It now ends when the press's release animation ends, on the surface or on a part inside it that a component draws the release on, or on its clock where no release animation runs (an instant release, a surface without one, or an engine without Web Animations). This applies to every surface the touch press controller drives: buttons, switches, checkboxes, cards, menu rows and list rows.

  • A server-rendered useResizable region whose defaultSize is a percentage and that has no containerRef hydrates with the server's markup, then resolves the percentage against the window, instead of keeping the size the server resolved.

  • A server-rendered useResizable region with an autoSaveId hydrates with the server's markup and takes its saved size in the next commit, so hydration no longer reports a mismatch and the handle announces the saved size.

  • A disabled ResizeHandle keeps its tab stop. Before, it left the tab order, so keyboard users could not reach it to hear that it is disabled. Now it stays in the tab order, as a disabled control keeps its tab stop, and it still ignores pointer and keyboard input and says so with aria-disabled.

  • ResizeHandle's grab zone stays centred on the divider whatever pillPlacement says, which now moves only the pill. An inline zone takes at most half of a pane shorter than it, and an overlay Handle takes at most half of the pane it sits in. A short item, such as a 30-minute calendar event resized from its edge, keeps its own drag, and a drag on the pill still resizes wherever the pill is drawn.

  • useScrollLock, and so Dialog, BottomSheet, Drawer, Lightbox and MobileNav, keeps the page where it is while an overlay is open. The lock used to pin <body> with position: fixed at minus the scroll offset and scroll back on release: the page's offset read 0 for the whole lock, and on iOS Safari the jump to the top brought the toolbar back, where it stayed after the overlay closed. Now the page gets overflow: hidden (on the root, or on <body> when the body's own overflow is the one the viewport uses), and where the primary pointer is coarse (phones and tablets), a one-finger pan that would scroll the page is cancelled, which iOS Safari needs because it scrolls an overflow: hidden page under a finger. Pans that a scroller inside the overlay can take, drags on a native range input, pinch-zoom, and one-finger drags on a pinch-zoomed page (they pan the zoomed view) still work. The lock no longer pins <body>, and window.scrollY keeps its value while the lock holds. The lock cancels those pans itself, leaving a touch a gesture recognizer owns to it, and judges each pan after a small slop so a swipe's first wobble does not fix the wrong axis. It follows the browser's scroll chain, so an overlay rendered inside a scrolling container still holds the page: a modal dialog's pans go to the page, not to that container. It also sets overscroll-behavior-y: none on the root and <body>, which stops the page's overscroll bounce while an overlay is open. MobileNav now takes the same lock: while it is open, the page's bounce stops and one-finger pans are held as behind any other modal, and closing it while another modal holds the page keeps that modal's scrollbar gutter.

  • A Selector's open option list is now named by the field's label in every presentation. In the popover without search, the list was named by the trigger, so a screen reader announced the selected value, or the placeholder when nothing was selected (for example "Banana" instead of "Fruit"), against WCAG 2.2 SC 4.1.2. getByLabelText(<label>) now matches the list as well as the trigger.

  • A disabled Slider no longer runs a caller's onPointerDown, onPointerMove, onPointerUp, onPointerCancel, onKeyDown, onClick or any other on* prop. Before, a press, drag or key on a disabled slider still reached them, for both the single and the range form. Now a disabled Slider runs no caller handler other than onFocus and onBlur, as a disabled TextInput and TextArea do (spec:AST-085 FR2). An enabled Slider is unchanged. No API changes.

  • Spinner keeps turning while a script runs. The ring used to move by repainting its arc on the main thread every frame, so it stopped for as long as the page ran JavaScript, which is exactly when a loading indicator is on screen. The arc now sits in its own layer that the browser turns on its compositor: through a 700 ms main-thread block it keeps turning at full rate, and it paints nothing per frame. The ring looks the same at rest and turns at the same speed; sizes, shades, the themeable vars and reduced motion are unchanged.

  • In a Table with resizable columns, the resize handle's name and width value no longer join the column header's name. Before, screen readers read "Name 60" with every cell in the column.

  • Under a finger, the time wheels in the TimeInput and DateTimeInput bottom sheets now follow iOS's date picker:

    • The AM/PM column follows the hour. Turning the hour from 11 to 12 now gives 12 PM, not 12 AM, and the AM/PM column turns onto PM. From 12 PM to 1 it stays PM.
    • A bound that falls between whole minutes, such as min="09:00:30" without a seconds column, now commits the nearest whole minute inside it, with a finger as with a mouse.

    With a mouse, each column still turns on its own.

  • Toast: a toast updated through uniqueID (collisionBehavior: 'overwrite') now updates in place, so focus on its controls stays put instead of dropping to the page. If the update removes the focused control, focus moves to a control in the toasts (such as a dismiss button) or, with none, back to where it was before entering the toasts. Dismissing a focused toast when only toasts without controls remain also returns focus there. An update that makes a toast auto-hide keeps its timer held while focus is inside it. Outside a modal, toasts in a ToastViewport no longer carry their own live region, so each toast and each update is announced once, by the viewport; while a modal hosts the viewport, each toast announces itself, because the modal hides the viewport's channel.

  • Tokenizer's bottom-sheet presentation (presentation="bottom-sheet", and the default adaptive on compact touch screens): a confirmed Clear all keeps focus on the Clear all action, now disabled with its reason, instead of moving it to the search field, which raised the on-screen keyboard over the rows the person had just cleared. The inline presentation is unchanged.

  • Typeahead, Tokenizer, PowerSearch: a search no longer stays busy forever when React renders a new search source and then discards that render, for example a transition that suspends and that a newer update replaces before it commits. The search of the source that stays now finishes: its results show, and the loading indicator and aria-busy clear.

  • In the DateInput, TimeInput and DateTimeInput bottom sheets, a wheel's Arrow, Page, Home and End keys move through its enabled values in time order, skipping disabled ones, and stop at the first or last enabled value, with a mouse as with a finger. On a 12-hour hour wheel 12 PM comes before 1 PM, so ArrowDown from 12 PM moves to 1 PM, and a key past the last allowed hour commits nothing.

  • DateInput: with a mouse, the rows of the bottom-sheet picker's columns meet WCAG AA contrast at every scroll position; enabled rows fade by the theme's text colors instead of opacity.

Performance

  • BottomSheet: opening a sheet no longer forces a layout to measure its height while it mounts; the sheet reads its height from the browser's own layout instead. On a phone-sized page with a 4× slowed CPU, a Selector's sheet shows its first frame about one frame sooner (about 110 ms to 94 ms after the tap) and the open does about 7 ms less forced layout. The open motion and the sheet's size are unchanged.

  • Popover, DropdownMenu, Carousel, ContextMenu, DateRangeInput, Markdown, MoreMenu and Table no longer load BottomSheet's container padding styles up front. Popover loads a BottomSheet on demand for its phone presentation, and a bundler that splits code put the padding module both of them use into one chunk that loads with the component, keeping every export either side uses. paddingStyles and overlayPaddingReset now have their own modules, still exported from @astryxdesign/core/Layout/padding.stylex, and isFocusDetached has its own module, still exported from @astryxdesign/core/utils. A component that uses BottomSheet's padding itself still loads it. Rendering is unchanged.

Documentation

  • Source comments above 88 kept Effects in Core now name the external system each one syncs. Nothing a consumer imports or renders changes.

  • Hook docs for useLightbox, so astryx hook useLightbox and astryx search return it, and a useLightbox — Gallery Grid example block: a grid of photo thumbnails that opens a fullscreen gallery at the clicked item.

    Also released in @astryxdesign/cli.

  • Icon: list the ten palette color values and namespaced icon keys, and document className, style, and ref in every doc language.

  • IconButton: document isInterruptible, width, the form props (type, name, value, form), and the link props (href, as, target, rel), and say that a disabled IconButton with a tooltip stays focusable through aria-disabled.

  • Icon's documented color type now lists every value the component takes: the ten semantic colors and the ten palette colors (blue, red, green, gray, cyan, teal, yellow, orange, pink, purple). Before, the type listed only the semantic colors, though the description named the palette. Native platforms still draw only the semantic colors.

  • The source comment above the Effect that copies an Overlay's first-child corner radius onto its wrapper now says why it stays an Effect. New tests pin when the radius is read. Nothing a consumer imports or renders changes.

  • TypeaheadItem: the docs say that the group prop has no effect, and that results are grouped through item.auxiliaryData.group on search-source items.

Other Changes

  • Internal: the undocumented @astryxdesign/core/internal/touch-sheet entry is removed. It re-exported the touch sheets' confirmation, search-drag dismissal and draft rules for the Lab prototypes of the Tokenizer and PowerSearch sheet presentations, which no longer exist; Core's sheets import the same modules by relative path. Internal entries are outside the public API and its compatibility promise.

  • The configuration-object useResizable builds on one internal resize region, through the same size model as before, so the region's state has one implementation.

  • The internal resize factory can drive a plain handle element: it gives the element the separator's role, name, value and tab stop, and answers its pointer drag, keys, Enter and double-click. ResizeHandle and the factory derive the separator's attributes from one helper, with no behavior change.

  • Internal: useLongPress runs its long-press detection through an internal detector with no React, so a press model that runs without React can share it. The hook and its handlers behave as before; onLongPress now also comes from the committed render. Not exported from the package entry point.

  • Internal: one progress module for the motion foundation. progressCurve gives a spring's progress from 0 to 1 as a closed-form curve, mapProgress maps any curve from another (a companion's dim following a sheet, a clamped range), mapRange is the clamped linear map they share, and presentedProgressVelocity reads the velocity an interrupted motion continues from. One velocity unit throughout: progress per second. Nothing public changes; no component imports it yet.

  • Internal: the touch press controller leaves the press of an action that its group's own tracker paints (data-astryx-press-group-item) to that tracker, so one writer paints each press. A key's press on the action still paints as before.

  • Internal: press tracking imports only the UIKit timing table's press clocks, so Switch, Slider, SegmentedControl and DateTimeInput, the controls built on press tracking, no longer ship the whole table. Nothing changes in how a press behaves.

  • Internal: the scroll lock's touch guard asks the gesture system's native-scroll test whether an element under a finger can scroll, instead of keeping its own copy. The copy left out overflow: overlay, which current Chromium and WebKit compute as auto, so pages there behave the same.

  • Internal: SelectableCard reads an internal input context that Lab's SelectableCardGroup uses to render its cards as a native radio group. SelectableCard's public props and behavior do not change.

  • Internal: a horizontal Stepper stops measuring its list from the cleanup that the list's ref callback returns, not from an Effect. It still measures before the first paint, and it still stops when the list detaches or the Stepper turns vertical. Nothing a consumer imports or renders changes.

  • Internal: a theme's reduced-motion mark and its readers are in place for reducedMotion: 'always'. No theme can set it yet, so nothing changes for anyone.

  • Internal: the Tokenizer bottom sheet checks its result rows for action while it renders, not in an Effect after the commit. The development warning, its text and the rows are unchanged. Not exported from the package entry point.

  • Internal: the rules UIDatePicker adds to its wheels, measured on iOS 26.2, join the UIKit constants table: the month/year wheels changing the date, the AM/PM column following the hour, the turn back onto a bound, and the day clamped to the month. Each rule comes with its source. None is exported from the package entry point.

  • Internal: browser proofs for the touch picker wheel in Chromium and WebKit, which a finger gets on every engine. A flick coasts on UIKit's curve onto the row it projects and commits on arrival. A finger landing on a coasting wheel stops it, and it then eases onto the nearest row. A storyboard films a flick and its coast. In Chromium, the coast also keeps advancing every frame while the main thread is blocked, and does no Layout or Paint per frame. Under reduced motion, a flick still coasts as momentum with its rows flat, and a tap cross-fades onto its row, animating opacity alone for 200 ms or less. Opening the month and year wheels writes no element per year, and each year is drawn once. Under a mouse, a drag still scrolls the column onto a row.

  • Internal: the Wheel's two presentations, the scrolling column under a mouse and the picker wheel under a finger, share one listbox hook for their ids, ARIA attributes, Arrow, Page, Home and End keys, and row clicks. Each keeps where its moves start: the scrolling column steps from the row under its band, and the picker wheel from the row it is heading to.

  • Internal: the picker wheel turns from script, for the time columns that use it. Under a finger, spinTo on the wheel's ref turns it onto a row on the tap spin, then commits it as a rest would; under a fine pointer it commits the row at once. Either way it reports whether that row was committed: it refuses a disabled row and an index outside the rows, and a turn the wheel's unmounting cuts short reports that it did not arrive. Nothing public changes: the wheel is not exported from the package entry point.

  • Internal: UIPickerView's values measured on iOS 26.2 join the touch motion tables as internal constants: the row pitch, the picker's height and its rubber band, the coast's stop speed and velocity floor, the snap at rest, the tap spin and the selection tick. The pure math a wheel moves with comes with them. It projects the row a release rests on as UIScrollView sums its deceleration, coasts with the rate re-solved to stop on that row, snaps, bounces at an end, rubber-bands, and spins to a tapped row. It is checked against UIKit's recorded frames. Nothing public changes: none of it is exported from the package entry point, and themes do not set these values.

@astryxdesign/richtext

New Features

  • In RichTextEditor, Cmd+A (Ctrl+A on other platforms) in a code block or a table cell now selects the code or the cell text first, and the whole document on the next press. Anywhere else it still selects the whole document at once.

@astryxdesign/cli

New Features

  • astryx upgrade gains the promote-tokenizer-presentation codemod. It rewrites a static experimental={{presentation: x}} on Tokenizer, the 0.7.7 spelling that Tokenizer no longer reads, to presentation={x}. Where it cannot prove the rewrite, including any Tokenizer that spreads props (a spread may also set presentation), it leaves the call unchanged with a TODO.

Fixes

  • astryx component takes a component's exact name in another case as that component's, never a module's that only shares the spelling. tokenizer opens Tokenizer's doc instead of CodeBlock's, which it reached through CodeBlock/tokenizer.ts. --source with tokenizer, slider, switch or progressBar no longer prints CodeBlock/tokenizer.ts or the motion tables in motion/uikit/, and answers ERR_NO_SOURCE, as --source badge does.

Performance

  • integrationComponentConflicts(), integrationDocConflicts() and integrationCheck() from @astryxdesign/cli/api, and doctor integration components, doctor integration docs and integration check, find Core's components from the folder listings they already read, with far fewer file system calls. Their results are unchanged.

  • A run of astryx loads only the command it names, so it starts with less work: astryx --version uses about 0.31 s less CPU, and astryx docs --json, astryx component --list and astryx theme build about 0.25–0.3 s less. Help, the manifest and an unknown command still load every command. Output and exit codes are unchanged.

  • astryx search and astryx build parse a page template's source for the components it renders only when the query could match one of them. A query no page renders parses only the few pages whose source holds an escape, and a first search for it uses about 20% less CPU. A query whose words name components on most pages still parses most of them and can take up to about 4% more. Results are unchanged.

Documentation

  • The browser-support guide has a section on the on-screen keyboard: a fully expanded Tall BottomSheet measures it as the layout viewport's height minus the visual viewport's, and keeps the focused field above it in Safari on iOS, Firefox for Android and Chrome on Android. In Chrome, by default (interactive-widget=resizes-visual), the sheet adds its scroll room once Chrome reports the keyboard; with interactive-widget=resizes-content Chrome shrinks the page for the keyboard itself and the sheet changes nothing. Your app owns its viewport <meta> element; Astryx never sets it.

  • A new useAnnounce — Filter Result Count example block shows the hook on a product filter: once typing pauses for 500 ms, a screen reader hears the result count ("3 results", or "No results"). The count has its own hasReplace instance, as the hook's docs advise for a changing value. Copy it with astryx template useAnnounceHookUsage <path>.

  • A new useClipboard — Share Link example block shows the hook on a share card: Copy writes the invite link, the button reads "Copied" while isCopied is true and resets on the hook's timer, and a screen reader hears "Link copied". Copy it with astryx template useClipboardHookUsage <path>.

  • A new useFocusTrap — Quick Edit Panel example block traps focus in a custom quick-edit panel that is not built on Dialog: focusFirst moves focus to its field on open, Tab and Shift+Tab stay inside it, Escape closes it through onEscape, and closing returns focus to the Quick edit button. Copy it with astryx template useFocusTrapHookUsage <path>.

  • A new useHotkeys — Search and Help Shortcuts example block shows the hook on a page header: "/" focuses the search field and "?" opens the shortcut help, typing either character in the field does not trigger them, and a switch turns the single-key shortcuts off through isDisabled. Copy it with astryx template useHotkeysHookUsage <path>.

  • A new useInputStatusIcon — Coupon Code Status example block shows a custom bordered input that takes its status affordance from useInputStatusIcon: a wrong code shows the error status and the valid code shows success, and the variant switch moves between a glyph with a message below (attached), no icon on the field (detached), and a focusable button with a tooltip that keyboard and screen-reader users can reach (tooltip). Copy it with astryx template useInputStatusIconHookUsage <path>.

  • The useKeyboardHint — Arrow-key Hint example block now calls useKeyboardHint itself instead of relying on Toolbar, which calls the hook internally. It is a five-star rating with one Tab stop, where Left and Right change the rating: tabbing into it shows the "← → to navigate" hint, the first arrow press dismisses it, and tabbing back in does not show it again. Copy it with astryx template useKeyboardHintHookUsage <path>.

  • A new useLocale — Invoice Summary example block formats an invoice date and amount with Intl using the locale from useLocale, so switching the provider from English to German changes "Nov 2, 2026 · $1,234.50" to "2. Nov. 2026 · 1.234,50 $" with no second locale source. Copy it with astryx template useLocaleHookUsage <path>.

  • A new useScrollableArea — Activity Log Panel example block shows a fixed-height Activity log whose entries scroll. useScrollableArea makes the panel a keyboard tab stop only when its entries overflow, shows a top or bottom edge shadow only where entries are hidden, and stops a scroll at the end from scrolling the page. Add entry flips it from not scrollable to scrollable. Copy it with astryx template useScrollableAreaHookUsage <path>.

  • A new useTreeFocus — Keyboard File Tree example block builds a small file tree from plain rows with tree roles and gives it the WAI-ARIA tree keyboard model with useTreeFocus: arrow keys move over the visible rows and open, enter, leave or close folders, Home and End jump to the ends, a typed letter jumps to a matching name, Enter opens a file, and one row is the tab stop. Copy it with astryx template useTreeFocusHookUsage <path>.

  • A new useTypeahead — Type to Focus a Country example block adds type-to-focus to a country list of buttons. Typing "can" focuses Canada, pressing "b" again and again cycles through Belgium, Brazil and Bulgaria, and "e" finds Éire with the accent ignored. useTypeahead reports each match through onMatch, and useListFocus moves focus. Copy it with astryx template useTypeaheadHookUsage <path>.

Other Changes

  • Internal: the file read behind astryx doctor --built takes its file limit as an option, 20,000 unless a caller passes one, and the checks' messages name the limit the read used. The command's checks and output are unchanged. Not exported from the package entry point.

  • astryx discover no longer lists the Lab components MobileTokenizer and MobilePowerSearch, which are removed from @astryxdesign/lab; their touch flows are Core's Tokenizer and PowerSearch presentation sheets.

  • Internal: the public-import check's declaredTargets and missingNames are exported from their foundation module, so the docsite's production registry judges a copied example's imports by the same rule. The CLI's checks and their output are unchanged. Not exported from the package entry point.

  • Internal: a gap-report handler's time budget starts once its module has loaded. Starting its worker and loading the module have the default deadline, so a short budget in a contract test no longer covers a slow start on a busy machine. The 30-second handler budget is unchanged.

  • Internal: generating the CLI's type declarations no longer fails when builds in two checkouts run at once on one machine, and it no longer needs pnpm on PATH.

  • The Tokenizer blocks and page templates that show a prop the bottom sheet does not render (hasClear, endContent, tokenOverflowBehavior, hasEntriesOnFocus, renderToken) pass presentation="popover", so they keep the inline field on phones under Tokenizer's new 'adaptive' default.

Contributors

Thanks to everyone who contributed to this release:

@10k11 @cixzhang @duytbp @emilyhorsman @ernestt @Geervan @humbertovirtudes @imdreamrunner @korkt-kim @ksying @kyu-rong @MannXo @nbozidarevic @nynexman4464 @parinith-web @vjeux

Full Changelog: https://github.com/meta/astryx/compare/v0.7.7...v0.7.8