An open source design system that's fully customizable and agent ready
TypeScript
chore: merge v0.7.3 release outputs to main (#7937)
Cindy Zhangf0554174add0
diff --git a/.changeset/adjusttime-returns-the-time-unchanged-for-a-frac-7bdh.md b/.changeset/adjusttime-returns-the-time-unchanged-for-a-frac-7bdh.mddeleted file mode 100644index 1a4df05ce0..0000000000--- a/.changeset/adjusttime-returns-the-time-unchanged-for-a-frac-7bdh.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/core': patch------[fix] adjustTime returns the time unchanged for a fractional minute delta instead of a malformed value such as "14:30.5", so TimeInput's arrow keys ignore a fractional increment (#7823)-@aashish254diff --git a/.changeset/build-blocks-by-meaning.md b/.changeset/build-blocks-by-meaning.mddeleted file mode 100644index 969d128220..0000000000--- a/.changeset/build-blocks-by-meaning.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/cli': patch------[feat] `astryx build` names the right block first far more often: it now ranks every block in the catalog by what the request means, read from each block's own name, description, and component, so a block search's words missed can still come first, with its own score and reason. A block the request names by its exact name, and a block from an integration, keep their place; the kit never lists more blocks than before, and the page call, start template, and alternatives are unchanged.--@josephfarinadiff --git a/.changeset/build-blocks-picker-refit.md b/.changeset/build-blocks-picker-refit.mddeleted file mode 100644index 82586bb34f..0000000000--- a/.changeset/build-blocks-picker-refit.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/cli': patch------[feat] `astryx build` names the right block first more often, especially for requests worded in a product's own terms: the block picker's fixed values are refitted on a larger, more varied set of written example requests. Which fields the kit returns, its block count, the page call, start template, and alternatives are unchanged.--@josephfarinadiff --git a/.changeset/build-search-routing.md b/.changeset/build-search-routing.mddeleted file mode 100644index e69f94ff7b..0000000000--- a/.changeset/build-search-routing.md+++ /dev/null@@ -1,8 +0,0 @@-----'@astryxdesign/cli': patch------[feat] `astryx search` orders the matches inside each score band so the entry you are after comes first more often; every result keeps its match score and reason, and a query that is an entry's exact name still answers with that entry first. Introduced in [#7752](https://github.com/facebook/astryx/pull/7752); final-state evidence: [#7895](https://github.com/facebook/astryx/pull/7895) and [#7897](https://github.com/facebook/astryx/pull/7897).-`astryx build` names the right block first more often; its page call, start template, and alternatives are unchanged.--@josephfarinadiff --git a/.changeset/build-unlisted-template-own-words.md b/.changeset/build-unlisted-template-own-words.mddeleted file mode 100644index 27055e877b..0000000000--- a/.changeset/build-unlisted-template-own-words.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/cli': patch------[fix] `astryx build` starts from a page template its word weights do not list (an integration's template, or one added since the weights were fit) only when the request names as many words of that template's own display name, category and keywords (search's stopwords aside) as of the best listed template, or names that template's family (the first part of its category) before the listed template's family and at most two fewer of its words; otherwise it starts from that listed template and offers the other as the first alternative.--@josephfarinadiff --git a/.changeset/button-loading-region-mounts-empty.md b/.changeset/button-loading-region-mounts-empty.mddeleted file mode 100644index f382b2d26e..0000000000--- a/.changeset/button-loading-region-mounts-empty.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[fix] A `Button` first rendered with `isLoading` (for example after a remount) now mounts its visually hidden loading live region empty and writes "Loading" into it on the next frame, so screen readers announce the busy start instead of skipping a live region born holding its text (`spec:AST-086` FR3). A Button that becomes loading after it mounts is unchanged, and a Button mounted idle does no extra render.--@cixzhangdiff --git a/.changeset/chat-composer-status-announcement.md b/.changeset/chat-composer-status-announcement.mddeleted file mode 100644index a37136d6cc..0000000000--- a/.changeset/chat-composer-status-announcement.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[fix] ChatComposer: a status message is announced through the shared announcement channel, errors assertively and warnings politely, once per occasion: a rerender does not repeat it, and a status that clears and then returns is announced again. Before, the status bar mounted as a `role="alert"` or `role="status"` region already holding its text, which screen readers often skip. The visible bar no longer carries a live role. No API changes.--@kyu-rongdiff --git a/.changeset/chatsystemmessage-no-live-role.md b/.changeset/chatsystemmessage-no-live-role.mddeleted file mode 100644index a30f918813..0000000000--- a/.changeset/chatsystemmessage-no-live-role.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[fix] `ChatSystemMessage` no longer forces `role="status"` on its root, in either variant, so a new chat notice inside a `ChatMessageList` has one live owner, the list's polite log, instead of being a second live region nested in it (WCAG 2.2 SC 4.1.3 Status Messages; `spec:AST-086` FR1 and FR4). Date and divider rows are no longer presented as status messages. Before, every system message was a status region inside the list's polite log; now the log owns content added inside it, and a `role` passed to the component reaches its root. Tests that found a system message by the `status` role should query it by its text instead.--@cixzhangdiff --git a/.changeset/choice-controls-focusable-disabled.md b/.changeset/choice-controls-focusable-disabled.mddeleted file mode 100644index cd0f324db9..0000000000--- a/.changeset/choice-controls-focusable-disabled.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[fix] Disabled CheckboxInput, CheckboxList items, Switch, Slider and FileInput stay focusable. Before, they rendered the native `disabled` attribute unless a `disabledMessage` was set, so keyboard and screen-reader users could not reach them. Now every disabled control exposes `aria-disabled="true"` and keeps the Tab stop it has when enabled, while toggling, selecting, dragging, opening the file picker and any `onClick` stay blocked, and its value is still left out of form submission. A focused disabled checkbox, switch, slider thumb or file input shows its keyboard focus indicator. This meets the focusable-disabled requirement in spec:AST-085 (FR1–FR3, FR6). No API changes.--@cixzhangdiff --git a/.changeset/cli-command-layout-check.md b/.changeset/cli-command-layout-check.mddeleted file mode 100644index cce65eaa47..0000000000--- a/.changeset/cli-command-layout-check.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/cli': patch------[docs] `astryx docs cli/commands/postinstall` now documents the hidden `postinstall` hook, `astryx docs cli/commands` lists it, and `astryx postinstall --help` shows its exit code and an example. The summary of `astryx docs cli/commands/manifest` (text and `--json`) drops its final period, so it matches the description the manifest has always printed. What each command prints when it runs, its JSON and its exit codes are unchanged.--@josephfarinadiff --git a/.changeset/cli-component-doc-name-check.md b/.changeset/cli-component-doc-name-check.mddeleted file mode 100644index 863499a3e2..0000000000--- a/.changeset/cli-component-doc-name-check.md+++ /dev/null@@ -1,12 +0,0 @@-----'@astryxdesign/cli': patch------[feat] `astryx doctor integration validate` and `astryx integration check` check the component names a package's docs and blocks give, and list what they find as notes beside validate's issues, each with its fix. Nothing counts a note and `integration check --strict` does not fail on them; they become failing warnings in the next minor release:--- `doc_name_mismatch` lists a component doc whose `name` is not the name the component is listed under when the module its printed import names (the doc's `import`, the published subpath, or the package root) provably does not export that name, so `astryx component` would print a broken import. The `Fix:` proposes the file name when that module exports it, otherwise the component it exports. A name that module's exports cannot prove or rule out (a re-export from another package, `export =`, a destructured binding, a namespace, an import that resolves to no file, or, when no import can be resolved, a source that only exports a default) is listed as not checked, with the reason, in validate's new `docNames` report.-- `unknown_block_component` lists a name a template's `exampleFor` or `componentsUsed` gives that neither the package nor Core has (every doc `astryx component` resolves in Core counts) and the template does not import it. Imports the template's local helpers make count too, including through a barrel such as `parts/index.ts`. A name is judged only where the template reaches components solely through named imports and re-exports from Core, React, StyleX, local helpers read in full, or the package's own name (followed through its `exports` like a helper): anything else (an import from another package, which may render other components, any `default` binding (other than React's or StyleX's), a namespace import, an alias of or member read off an imported binding, a component held in a variable, `require()`, a dynamic `import()`, a file that does not parse cleanly, or a local module this check cannot read), and, without Core installed, any name only Core could resolve, is listed as not checked in validate's new `blockComponents` report.--`integration check --strict` does not fail on anything listed as not checked.--@josephfarinadiff --git a/.changeset/cli-find-core-from-any-folder.md b/.changeset/cli-find-core-from-any-folder.mddeleted file mode 100644index 194964d844..0000000000--- a/.changeset/cli-find-core-from-any-folder.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/cli': patch------[fix] The CLI finds the project's `@astryxdesign/core` from any folder inside the project. `component`, `hook`, `build`, `search`, `swizzle`, `theme targets` and `doctor` still search the folders they searched before, and past them continue up to the workspace root of the nearest folder whose package.json declares an Astryx package. They now work five or more folders deep, in workspace members whose Core the workspace installs at its root, and in Yarn Plug'n'Play projects. `upgrade --from` run from any folder in a project upgrades that project, the nearest folder whose package.json declares an Astryx package or that an Astryx workspace lists, found without passing a repository root or counting the home folder: it scans the project's `src` by default, reads a `--path` you type from the folder you ran in, names the files in its `--json` result relative to that folder, and refreshes the project's agent docs. It targets only the project's own Core: the one in its `node_modules`, or for a member its workspace lists, the one the workspace installs. With no such project, `upgrade` reads only the current folder, as before. It names the project root and the source folder it scans before it changes anything. An `upgrade` run in a folder that installs Core but declares no Astryx package now upgrades the Astryx project above it instead of that folder alone: a compatible fix under `architecture:cli-surface` INV10b, since such a folder was never a separate upgrade root. To keep a sub-folder that installs Core its own project, declare an Astryx package in that folder's package.json. A `packages/core` folder that holds another package is no longer read as Core, and an integration named in `astryx.config` now loads when the workspace installs it at its root, as an autolinked one already did.--@josephfarinadiff --git a/.changeset/cli-host-entry.md b/.changeset/cli-host-entry.mddeleted file mode 100644index d82fedf97f..0000000000--- a/.changeset/cli-host-entry.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/cli': patch------[feat] Add the `@astryxdesign/cli/host` entry: `runHostedCli` runs the CLI once per process for a tool that carries it, with the command name that tool's users type (printed commands start with it) and, when the tool skipped the project's own CLI, the reason, so that CLI is never run-@josephfarinadiff --git a/.changeset/cli-install-advice-non-astryx-folder.md b/.changeset/cli-install-advice-non-astryx-folder.mddeleted file mode 100644index 17e28edbfe..0000000000--- a/.changeset/cli-install-advice-non-astryx-folder.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/cli': patch------[fix] The daily hint, the setup reminder, the update notice, `astryx doctor`'s version-alignment and integration fixes, and `astryx discover`'s install command for an integration installed for the computer no longer add a package to a `package.json` that is not an Astryx project's. The project is the one `spec:AST-040` FR9 finds: the nearest folder whose `package.json` declares an Astryx package, or a member its workspace lists, never the home folder and never past a repository root. Run from a folder inside such a project whose own `package.json` is not the project's, such as a tool folder that installs its own `@astryxdesign/core`, the daily hint that matches a project's CLI to its Core, the setup reminder and `astryx doctor`'s version-alignment fix used to name a command that added the CLI to that folder's `package.json`, making it a separate Astryx project. They now compare the CLI with the Core the run reads, as before, and when the two differ they say to run from the project's folder, or to declare an Astryx package in that folder; the update notice upgrades the project from its folder, with the project's release. For an integration installed for the computer, `astryx discover` gives no install command from such a folder, and `astryx doctor`'s fix says to run from the project's folder, where the command adds it for the project; in a folder that belongs to no project, neither names a command. The official packages `astryx discover` lists and the theme packages `astryx doctor` suggests still use the folder the command runs in. A member its workspace lists keeps its own advice. In a folder that belongs to no Astryx project, the hint, the setup reminder and the update notice no longer print, and `astryx doctor`'s fix says how to reach a project. In a folder whose `package.json` declares an Astryx package, the advice is unchanged. No JSON shape or exit code changes.--@josephfarinadiff --git a/.changeset/cli-integration-check-gaps.md b/.changeset/cli-integration-check-gaps.mddeleted file mode 100644index fc465250cb..0000000000--- a/.changeset/cli-integration-check-gaps.md+++ /dev/null@@ -1,14 +0,0 @@-----'@astryxdesign/cli': patch------[fix] `astryx doctor integration validate`, `astryx integration check` and `astryx integration verify` catch more package mistakes, and each new finding ends in a `Fix:` that clears it. Findings that 0.7.2 did not fail on are listed as notes beside validate's issues, which nothing counts, until the next minor:--- Two docs for one component (`AcmeWidget.doc.mjs` and `AcmeWidget.doc.js`) are listed as `duplicate_component_doc`, naming the one read; discovery now always reads the same one.-- A component doc whose file name differs from its source only in letter case is one finding that says which file to rename: an error where the pair fails (Linux), a listed `source_without_component_doc` where it still pairs (a case-insensitive disk); a hidden doc that does not pair keeps the source warning it had.-- A root reached through a symlinked folder is listed as `symlinked_root`: npm pack does not follow it.-- An absolute root says roots are relative and gives the relative path; a root that is a file is reported by every check instead of crashing it.-- A package.json without `name` or `version` is listed with a fix, instead of a crash; `verify` fails on it. A package whose `name` and manifest `providerId` give no provider ID is listed as `no_provider_id`.-- A contribution file Astryx cannot read is listed as `unreadable_file`, before npm pack fails on it.--@josephfarinadiff --git a/.changeset/cli-integration-clearer-messages.md b/.changeset/cli-integration-clearer-messages.mddeleted file mode 100644index 89490b0450..0000000000--- a/.changeset/cli-integration-clearer-messages.md+++ /dev/null@@ -1,14 +0,0 @@-----'@astryxdesign/cli': patch------[fix] `astryx doctor integration validate`, `astryx integration check` and `astryx integration verify` say more plainly what is wrong in findings they already reported, and how to fix it:--- An empty doc or manifest, or one with no default export, says so and names what it does export, instead of "(root): Invalid input".-- A manifest key one or two letters off a known key asks "did you mean `components`?" before suggesting a newer CLI.-- A theme descriptor named for the built file (`ocean.doc.mjs` beside a built `ocean.js` that lacks the `ocean` export) says it must share its stem with the `defineTheme` source, naming that source when the built module's `Source:` line or the source's `defineTheme` name confirms it.-- A template doc with no source, a theme descriptor with no source, a theme source with no descriptor, and a component whose source is `.jsx` get a `Fix:`.-- A theme source named for its theme (`brand.ts`) beside the module the build writes (`brand.js`) is told to take the `brandTheme` stem.-- `verify` names packed files by their path in the package, not the scratch copy's; says npm pack does not follow a symlinked root instead of asking for a `files` entry; and, when a theme's `defineTheme` name differs from the files its package exports, says a rebuild writes files under the new name.--@josephfarinadiff --git a/.changeset/cli-integration-import-names.md b/.changeset/cli-integration-import-names.mddeleted file mode 100644index 2c36657edc..0000000000--- a/.changeset/cli-integration-import-names.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/cli': patch------[feat] `astryx doctor integration validate` now also lists, from source and without a build, an import that names something its module does not export, as notes on its result (`data.notes`, each with its fix in the message). The notes are listed only: neither `doctor integration validate` nor `astryx integration check --strict` counts them or fails on them in 0.7.3, and they become failing warnings in the next minor release, so fix them now. It notes a component's import (the doc's `import`, or the one the CLI derives when the doc has none) that leads to a module that does not export the component, naming the subpath that does or the `exports` entry to add; a component example or a template that imports a name the package does not export; and a template source with no default export (`astryx template` still copies it, but its public import and anything that renders it get nothing), suggesting an exported PascalCase function, class or `const` (never a hook such as `useAccount`, a helper such as `formatBalance`, an ALL-CAPS constant or a type; with none, the fix stays generic). A name is judged only when a file the `exports` entry names is there to read in full: `export *` is followed, cycles included; a built module's declaration file (`x.d.ts` beside `x.js`, and the `.d.ts` files a declaration file's `export *` names) is read for the types it exports; and `export import Alias = Inner.Value` counts as an export. TypeScript source resolves a `./x.js` specifier to `./x.ts`, and a declaration file that is a module exports every top-level declaration unless it has an export list, `export *`, `export =` or a default export of an expression, as TypeScript does. Whatever the reader does not fully model is listed under `unchecked` in the `publicImports` report instead of as a note: a file the `exports` entry names that does not exist yet, a module whose list cannot be read in full (CommonJS, `export *` from another package), a declaration file with no import or export (a global script), every name it would report (other than a component doc's own component, which is always judged) while a TypeScript file in the package (outside `node_modules`) has a parsed `declare module` block for a relative path or the package's own name or a subpath of it, since such an augmentation can add names to that module (the reason names that file; `declare global`, a wildcard spec such as `'*.css'`, another package's name and a `declare module` in a comment do not count, and a file with `declare module` in its text that cannot be parsed counts), or a name missing from a JavaScript module with no declaration file, which may be a type.--@josephfarinadiff --git a/.changeset/cli-integration-layout-listed.md b/.changeset/cli-integration-layout-listed.mddeleted file mode 100644index 5df98adf02..0000000000--- a/.changeset/cli-integration-layout-listed.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/cli': patch------[fix] `astryx integration check` lists the pairing, root and package.json findings without failing `--strict`; they become failures in the next minor. `astryx doctor integration validate` lists them as notes beside its issues (two docs for one component, a root reached through a symlink, a contribution file that cannot be read, a package.json without `name` or `version`, no provider ID, and a doc whose file name differs from its source only in letter case where the two still pair), each with its fix; nothing counts a note. A hidden component doc that does not pair with its source keeps the source warning it had. `astryx integration verify` still fails on a package.json npm cannot pack.--@josephfarinadiff --git a/.changeset/cli-integration-public-imports.md b/.changeset/cli-integration-public-imports.mddeleted file mode 100644index 962c278476..0000000000--- a/.changeset/cli-integration-public-imports.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/cli': patch------[feat] `astryx doctor integration validate` now lists, from source and without a build, what an integration package tells apps to import that they cannot import, as notes on its result (`data.notes`, each with its fix in the message), the way it lists an ignored `cliCommand`. The notes are listed only: neither `doctor integration validate` nor `astryx integration check --strict` counts them or fails on them in 0.7.3, and they become failing warnings in the next minor release, so fix them now. It lists a component's import (the doc's `import`, or the one the CLI derives when the doc has none) or a template's public import whose subpath package.json `exports` does not declare (a missing key, a key whose only conditions an ES module import does not load, such as `require` or `types`, an `exports` that is a single string, a wildcard that does not match; an empty `exports` map declares nothing) or that names another package; a component example that imports a subpath the package does not declare; and a template that imports a relative path outside the templates root, or a path its own package or Core does not export. Each note names the fix, such as the exact `exports` entry to add. A subpath is judged from its `exports` declaration alone, never by its target file, so `exports` may point at build output that does not exist yet; whether the module there exports the names an import asks for is noted too, also listed only in 0.7.3, when a target file is there to read in full (see the import-names note). Wildcards and condition objects with `import` or `default` pass, an import of a subpath whose `exports` entry has only `types` targets is never judged as a run-time import (it passes when it is `import type`, when every binding is an inline `type`, or when every name it imports is one the `types` file declares as a type, and is listed under `unchecked` otherwise), a subpath an ES module import reaches only through `types` (such as `types` beside `require`) is judged the same way, and a `types` target under `require` does not count, and a package with no `exports` keeps its deep paths to files it ships. What it cannot judge (in a package with no `exports`, a deep path into build output not built yet, such as `dist/`; a template import of Core when `@astryxdesign/core` is not installed beside the package; every import of the package's own name when package.json has no `name`) is listed under `unchecked` in a new `publicImports` report on the result (`{status: 'checked', findings: [], unchecked: [{file, specifier, reason}]}`), which `integration check` counts as not compared.--@josephfarinadiff --git a/.changeset/cli-peer-version-warning.md b/.changeset/cli-peer-version-warning.mddeleted file mode 100644index 1a389bd5bd..0000000000--- a/.changeset/cli-peer-version-warning.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/cli': patch------[fix] `astryx doctor integration validate` and `astryx integration check` now list a `cli_peer_version` note when the running CLI is outside the package's `@astryxdesign/cli` peer range, naming the package, the range and the running version. Below the range the note gives the project's commands to install a newer `@astryxdesign/core` and `@astryxdesign/cli` together (as dev dependencies in the package's own folder) and then run `astryx upgrade --from <version> --apply`. Above the range it asks for a release of an installed package that supports this CLI, or asks the author of the package in the current folder to test with this CLI and widen the range. A note fails nothing: `--strict`, `integration verify`, `doctor`, and exit codes are unchanged.--@josephfarinadiff --git a/.changeset/cli-scoped-core-member.md b/.changeset/cli-scoped-core-member.mddeleted file mode 100644index 9c609d8e13..0000000000--- a/.changeset/cli-scoped-core-member.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/cli': patch------[fix] `astryx component <Member> --package @astryxdesign/core` now answers with that member, as the unscoped lookup does. A Core component documented in its family's doc (HStack and VStack in the Stack doc) used to come back as the family doc, named after the family and with no props.--@cixzhangdiff --git a/.changeset/cli-skill-build-workflow.md b/.changeset/cli-skill-build-workflow.mddeleted file mode 100644index 4ecf5d42ef..0000000000--- a/.changeset/cli-skill-build-workflow.md+++ /dev/null@@ -1,8 +0,0 @@-----'@astryxdesign/cli': patch-'@astryxdesign/core': patch------[fix] The agent guide that global mode writes to the home folder now says how to build, not only how to find things. It tells agents to work in a project folder (creating one if there is none) with `@astryxdesign/core` and `@astryxdesign/cli` added to a new project or one without Core, or, in a project that already has `@astryxdesign/core`, the CLI at the same version, and `astryx init` run there, then gives the same template-first workflow and self-check the project agent docs give, and ends with building the project and delivering that build. Before, agents that found the right template could still build the page with a tool that cannot install packages and deliver a page with no Astryx in it. The guide stays version-free and names only commands every release keeps. The project agent docs are unchanged, and so is what `@astryxdesign/core`'s install script prints: its copy of the shared agent-docs file only gains the same workflow lines.--@josephfarinadiff --git a/.changeset/cli-skill-restore-step.md b/.changeset/cli-skill-restore-step.mddeleted file mode 100644index c7a6b6afa2..0000000000--- a/.changeset/cli-skill-restore-step.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/cli': patch------[fix] The agent guide that global mode writes to the home folder now says what to do when `astryx` is not found: run the command that installed the CLI for the computer first, with the same package manager and folder, such as `npm i -g @astryxdesign/cli` or `pnpm add -g @astryxdesign/cli`. On machines that keep the home folder but reset system folders on restart, the guide outlived the CLI installed for the computer and told agents to run a command that was gone. Outside a project, when the guide names `astryx` and no `astryx` command is on the search path, apart from a package runner's own copy, `astryx doctor` now says so and names the install step the guide records, or npm's when it records none. The global-mode guide for CI and containers explains how to keep the CLI across restarts. A guide written for a host's own command is unchanged. No JSON shape or exit code changes.--@josephfarinadiff --git a/.changeset/codeblock-highlight-styles-early.md b/.changeset/codeblock-highlight-styles-early.mddeleted file mode 100644index 1d6d44cae0..0000000000--- a/.changeset/codeblock-highlight-styles-early.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[perf] CodeBlock inserts its syntax-highlight rules before the first layout read instead of after it, so a page with many code blocks, such as a long Markdown document, paints about a fifth sooner on first load; the rules and the highlighted output are unchanged.--@cixzhangdiff --git a/.changeset/complexselector-focusable-disabled.md b/.changeset/complexselector-focusable-disabled.mddeleted file mode 100644index cb1b4352ca..0000000000--- a/.changeset/complexselector-focusable-disabled.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[fix] A disabled `ComplexSelector` keeps its place in the tab order, so keyboard and screen-reader users can reach it and hear that it is unavailable (WCAG 2.2 SC 2.1.1 Keyboard and 4.1.2 Name, Role, Value; `spec:AST-085` FR1, FR2 and FR4). Before, its trigger rendered the native `disabled` attribute, so Tab skipped it and a focused trigger lost focus when disabled; now it exposes `aria-disabled="true"`, keeps focus, shows its keyboard focus outline, and still opens nothing. A press or key on it reaches no handler: not the toggle, not a caller's `onClick` or `onKeyDown`, and not an ancestor's click handler.--@cixzhangdiff --git a/.changeset/complexselector-theme-disabled-guard.md b/.changeset/complexselector-theme-disabled-guard.mddeleted file mode 100644index a39578660b..0000000000--- a/.changeset/complexselector-theme-disabled-guard.md+++ /dev/null@@ -1,10 +0,0 @@-----'@astryxdesign/theme-butter': patch-'@astryxdesign/theme-stone': patch-'@astryxdesign/theme-y2k': patch-'@astryxdesign/cli': patch------[fix] The butter, stone, and y2k themes keep the secondary hover fill off a disabled `ComplexSelector` trigger whether the trigger is natively disabled or exposes `aria-disabled="true"`, the focusable disabled form `spec:AST-085` gives every control (FR6: no hover affordance on a disabled control). Before, the guard only recognized a natively disabled trigger. The themes `astryx theme eject` copies carry the same guard.--@cixzhangdiff --git a/.changeset/composites-focusable-disabled.md b/.changeset/composites-focusable-disabled.mddeleted file mode 100644index f294cc39e3..0000000000--- a/.changeset/composites-focusable-disabled.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[fix] Disabled TreeList rows' expand toggle and action button, disabled Pagination dots and disabled Calendar days no longer render the native `disabled` attribute. Each exposes `aria-disabled="true"` instead, so a disabled Calendar day or Pagination dot can take focus and be announced as disabled, while clicks, Enter and Space still do nothing and arrow keys still skip disabled days as before. This meets the focusable-disabled requirement in spec:AST-085 (FR1, FR2). No API changes.--@cixzhangdiff --git a/.changeset/date-input-focusable-disabled.md b/.changeset/date-input-focusable-disabled.mddeleted file mode 100644index 95668b39c4..0000000000--- a/.changeset/date-input-focusable-disabled.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[fix] DateInput: a disabled or busy field no longer renders native `disabled`. Its input and calendar button keep their place in the focus order and expose `aria-disabled`, while typing and opening stay blocked. A focused disabled field shows its focus ring, so keyboard and screen-reader users can reach a disabled date field and hear that it is disabled. Tests that query a disabled DateInput with `toBeDisabled()` or `:disabled` should check `aria-disabled="true"` instead.--@cixzhangdiff --git a/.changeset/date-range-input-focusable-disabled.md b/.changeset/date-range-input-focusable-disabled.mddeleted file mode 100644index 204b8b2aef..0000000000--- a/.changeset/date-range-input-focusable-disabled.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[fix] DateRangeInput: a disabled or busy field and a disabled preset no longer render native `disabled`. The trigger, calendar button and presets keep their place in the focus order and expose `aria-disabled`, while opening and selecting stay blocked, and a focused disabled field shows its focus ring. This meets the focusable-disabled requirement in spec:AST-085 (FR1, FR2, FR6) and DateRangeInput AR3. Tests that query them with `toBeDisabled()` or `:disabled` should check `aria-disabled="true"` instead. Introduced in [#7866](https://github.com/facebook/astryx/pull/7866); final-state evidence: [#7887](https://github.com/facebook/astryx/pull/7887).--@cixzhangdiff --git a/.changeset/date-time-input-focusable-disabled.md b/.changeset/date-time-input-focusable-disabled.mddeleted file mode 100644index ed2ed596a4..0000000000--- a/.changeset/date-time-input-focusable-disabled.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[fix] DateTimeInput: a disabled or busy field no longer renders native `disabled` on its text, native-picker or touch fields, or on its calendar and clock buttons. They keep their place in the focus order and expose `aria-disabled`, while typing, picking, opening and a caller's `onClick` stay blocked, and a focused disabled field shows its focus ring. This meets the focusable-disabled requirement in spec:AST-085 (FR1, FR2, FR6). TimeInput's native picker button, which shares the time segment and stays out of the tab order, also moves from `disabled` to `aria-disabled` and stays inert. Tests that query a disabled DateTimeInput with `toBeDisabled()` or `:disabled` should check `aria-disabled="true"` instead.--@cixzhangdiff --git a/.changeset/define-the-canonical-datavars-defaults-in-prebui-6x0i.md b/.changeset/define-the-canonical-datavars-defaults-in-prebui-6x0i.mddeleted file mode 100644index 4cb2a22d68..0000000000--- a/.changeset/define-the-canonical-datavars-defaults-in-prebui-6x0i.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch-'@astryxdesign/cli': patch------[fix] Define the canonical dataVars defaults in prebuilt Core CSS so compiled imports and raw CSS references paint correctly without a StyleX build step.-@ejhammonddiff --git a/.changeset/dialog-sheet-ignore-descendant-cancel.md b/.changeset/dialog-sheet-ignore-descendant-cancel.mddeleted file mode 100644index cde34cd795..0000000000--- a/.changeset/dialog-sheet-ignore-descendant-cancel.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[fix] Dialog, BottomSheet and BottomSheetSwitcher stay open when a file picker inside them is dismissed. A file input fires a bubbling `cancel` event when its picker closes without a choice, and all three took that event for a close request of their own and closed (a switcher closed its whole flow). They now act only on a `cancel` aimed at their own `<dialog>`, so Escape and platform close requests (the Android back gesture) behave as before. No API changes.--@vjeuxdiff --git a/.changeset/docs-authoring-home.md b/.changeset/docs-authoring-home.mddeleted file mode 100644index 25c5e526ff..0000000000--- a/.changeset/docs-authoring-home.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/cli': patch------[docs] Everything an integration author reads now lives under one home, `astryx docs authoring`: the integration guides' routes moved from `cli/integrations/…` to `authoring/…` (for example, `cli/integrations/quick-start` is now `authoring/quick-start`), beside the field reference at `astryx docs authoring/field-reference`. `astryx docs authoring <name>` still opens one field reference section, and an old `cli/integrations/…` route's error names its new route. The loose topics now sit in Guides or Foundations instead of Unorganized, under the same names: `astryx docs getting-started` still opens, and its Up is `astryx docs guides`.--@josephfarinadiff --git a/.changeset/dropdown-menu-item-audit-docs.md b/.changeset/dropdown-menu-item-audit-docs.mddeleted file mode 100644index 69e2e6b937..0000000000--- a/.changeset/dropdown-menu-item-audit-docs.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[docs] Clarify DropdownMenuItem action, destination, disabled, and supporting-content guidance.--@cixzhangdiff --git a/.changeset/dropdown-menu-radio-group-audit-docs.md b/.changeset/dropdown-menu-radio-group-audit-docs.mddeleted file mode 100644index 10bb5ea39d..0000000000--- a/.changeset/dropdown-menu-radio-group-audit-docs.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[fix] Forward DropdownMenuRadioGroup refs and clarify its controlled selection, naming, close policy, and root composition guidance.--@cixzhangdiff --git a/.changeset/dropdown-menu-submenu-regions.md b/.changeset/dropdown-menu-submenu-regions.mddeleted file mode 100644index 465b02170d..0000000000--- a/.changeset/dropdown-menu-submenu-regions.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[feat] `DropdownMenuSubMenu` takes `header` and `footer`, as the root `DropdownMenu` does: a field that filters a sub-menu's rows, or a door below them, sits beside the sub-menu's menu rather than inside it. With either, the sub-menu's surface (the flyout, or the drilled-in view on a phone) is a modal dialog named by its row: the row says `aria-haspopup="dialog"`, Tab and Shift+Tab walk the header, the rows and the footer and wrap, Escape returns to the row, and a pointer leaving the flyout closes it only once focus leaves too. A `ContextMenu` does not show a sub-menu's `header` or `footer`. Without them nothing changes.--@vjeuxdiff --git a/.changeset/init-agent-docs-one-copy.md b/.changeset/init-agent-docs-one-copy.mddeleted file mode 100644index 1aed82f2fe..0000000000--- a/.changeset/init-agent-docs-one-copy.md+++ /dev/null@@ -1,20 +0,0 @@-----'@astryxdesign/cli': patch-'@astryxdesign/core': patch------[fix] `astryx init` writes the agent docs at the project root, in files the project commits, so that Codex, Gemini CLI, Copilot CLI and Claude Code all read the block, from the project root or any folder below it. It no longer writes agent docs into a project's subfolder, the home folder, or a settings folder in it such as `~/.gemini`. Introduced in [#7497](https://github.com/facebook/astryx/pull/7497); final-state evidence: [#7888](https://github.com/facebook/astryx/pull/7888).-@josephfarina--- `AGENTS.md` holds the block, created when missing. Before, a project with only `CLAUDE.md` got the block only there, so Codex and Gemini CLI never saw it.-- Claude Code skips `AGENTS.md` in a folder that has a `CLAUDE.md` or `.claude/CLAUDE.md`, so the Claude Code file the project already has keeps a full copy: root `CLAUDE.md`, else `.claude/CLAUDE.md`. It keeps the copy even when it imports `AGENTS.md`, because Claude Code does not follow that import in a session started in a subfolder; started at the root, Claude Code then reads two. When both exist, the copy goes in root `CLAUDE.md`, which projects commit even when they ignore `.claude/`, and a block in `.claude/CLAUDE.md` is removed. Init creates no Claude file. `astryx upgrade` refreshes every copy, except in a project at the top of a home settings folder (below).-- Gemini CLI reads only `GEMINI.md`: init adds a one-line import, `@./AGENTS.md`, creating `GEMINI.md` when it is missing. It adds none when `GEMINI.md` already imports `AGENTS.md`, inline or on its own line. It adds the import even when the project's `.gemini/settings.json` has Gemini read `AGENTS.md` through `context.fileName`: Gemini loads those settings only when it starts at the project root, so a session started in a subfolder would otherwise get no copy. Started at the root, Gemini then reads two.-- The project root is the nearest folder at or above where init runs whose `package.json` declares an `@astryxdesign` package, else the nearest with any `package.json`. The search stops at a repository root and never counts the home folder. With no `package.json` found, init writes where it runs, as before. `docsWritten` still lists each file relative to where init ran, for example `../../AGENTS.md`.-- In the home folder, or in a settings folder in it such as `~/.gemini` or `~/.claude` outside a project, init writes no agent docs, reports `docsError` as `install-failed` with the reason, and still exits 0. This is a compatible fix under `architecture:cli-surface` INV31 (where init writes, and that no mode writes agent docs into the home folder or a settings folder in it) and INV10a (a refusal of a write outside its confined root, made before anything is written). The refused inputs: the home folder itself, and the top of a folder of the home folder whose name starts with a dot (every such folder is a settings folder), even when it holds a `package.json`; a folder below it with its own `package.json` is a project. With `--agent-docs-path`, each file's own folder is checked: from the home folder, `notes/AI.md` is written as before, while `AI.md` or `.claude/CLAUDE.md` is refused. How it fails: no agent docs are written, `docsError` is `install-failed` with the reason, and the exit status stays 0, as before. Migration: run `astryx init` from the project's own folder, or add the block to the file by hand. A project inside a settings folder, such as an agent worktree in `~/.codex/worktrees/` or `~/.cursor/worktrees/`, is set up normally, and `astryx upgrade` refreshes it. Agents read the files in those folders in every project. Run `astryx init --remove-agents` in the home folder to remove a block an earlier version wrote into `~/.claude/CLAUDE.md`. `astryx upgrade` refuses the same folders when it would refresh a block there (INV10a), with or without `--apply`, and with no block there it gives the same reason instead of suggesting `astryx init`; `astryx doctor`'s agent-docs fix and the setup reminder after each command do the same, the reminder by staying quiet. The refused input: a project whose root is the home folder or the top of a settings folder, such as `~/.dotfiles` with a `package.json`. How it fails: the block is left as it is, `agentDocs.action` is `error` (never `would-refresh`), and the warning names the folder and why; the upgrade's other steps and its exit status are as before. Migration: move the project into a folder of its own, or update or remove the block there by hand.-- A `GEMINI.md` that resolves outside the project, for example a link to a shared file, is skipped and reported in `docsError` with one note (not an error line), in the default layout and in a project's own layout; the rest is written and init exits 0.-- The managed block is Astryx-owned (`architecture:cli-surface` INV31): init and `astryx upgrade` write, refresh, and remove only the block, whatever ignore rules or generated markers say, as 0.7.1 did, and never change the text around it. Every write stays inside the project (INV10): run in the folder 0.7.1 wrote, an agent file 0.7.1 wrote there whose path leaves the project still refuses the run with exit 1. The project's Claude Code file (root `CLAUDE.md`, or `.claude/CLAUDE.md` when there is no root one) that resolves outside the project and is a block-less import of an existing `AGENTS.md`, which 0.7.1 left alone, is skipped and reported in `docsError` with one note, and init exits 0. Run from a folder below the project root, where 0.7.1 wrote in that folder instead, a project-root file whose path leaves the project is skipped and reported in `docsError` with one note, the rest is written, and init exits 0.-- While root `CLAUDE.md` is untracked and ignored by the repository's ignore rules (its ignore files from the repository root down, such as a monorepo's root `.gitignore`, its local exclude file, and configured excludes; init asks git, Sapling or Mercurial), a `.claude/CLAUDE.md` the project commits gets the copy too: one the repository tracks counts as committed whatever the ignore rules say, as git and Mercurial ignore only untracked files, and when the repository cannot answer the copy is kept, on the first run as on later ones, and `--agent claude` and `--agent all` write it there, so a fresh clone still gives Claude Code a copy. Such a copy that resolves outside the project refuses the run with exit 1 where 0.7.1 wrote it too; one 0.7.1 did not write (the one `--agent claude` adds, or a block-less import of an existing `AGENTS.md`) is skipped and reported in `docsError` with one note, and init exits 0. So is a `.claude/CLAUDE.md` whose block `--agent claude` would remove beside a `CLAUDE.md`, since 0.7.1's `claude` preset wrote only `CLAUDE.md` there. Beside a committed root `CLAUDE.md`, with `.claude` linked outside the project, three cases that 0.7.1 refused now exit 0 with nothing written: the default with a `.claude/CLAUDE.md` of plain text, and `--agent all` with one of plain text or a block-less import of `AGENTS.md`. 0.7.1 wrote that `.claude/CLAUDE.md`; now root `CLAUDE.md` holds the copy and the linked file gets none, so no write leaves the project and none needs refusing. In a project that keeps its own layout, a `GEMINI.md` that imports no agent file now gets a copy, as the other agent files do.-- The copy in `.claude/CLAUDE.md` is removed only once root `CLAUDE.md` holds the same block, and only the managed block between its markers: the rest of the file stays, and the file is deleted only when nothing but whitespace is left. `astryx init --remove-agents` deletes a file it created only when nothing but whitespace or init's own heading is left; 0.7.0 also deleted a file whose remaining text had a heading and any line with the word "guidance".-- `astryx init --remove-agents` removes the block at the project root, where `init` writes it, and in the folder it runs in. Run from a subfolder, it removes what `init` wrote at the root, and a block an earlier version left in that subfolder; a root agent file with a block that resolves outside the project is left as it is with a note, and the run exits 0, as 0.7.1 did when it touched only the subfolder. Exit codes and the JSON shape are unchanged.-- `--agent claude` and `--agent all` never leave a block in both `CLAUDE.md` and `.claude/CLAUDE.md`, unless the project ignores `CLAUDE.md`: when `CLAUDE.md` gets the block, a block in `.claude/CLAUDE.md` is removed. `--agent all` keeps the `GEMINI.md` import. The `--agent` help and the working-with-AI guide say so. `--agent-docs-path` writes where init runs, as before.-- `astryx doctor` fails when the `GEMINI.md` import points at an `AGENTS.md` with no block. The setup check in the CLI and in `@astryxdesign/core` no longer counts that import as set up, and looks at `GEMINI.md`. The reminder to run `init` that commands print looks at the project root too, so it stops once `init` has run in a nested package.diff --git a/.changeset/is-my-code-good.md b/.changeset/is-my-code-good.mddeleted file mode 100644index d0357d67b6..0000000000--- a/.changeset/is-my-code-good.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/cli': patch------[docs] Add `astryx docs is-my-code-good`, one shareable guide that checks component use, icons, custom styles, layout, assets, and code health from source and rendered evidence. It includes an agent prompt and requires missing evidence to stay visible. The template grading rubric now links each category to these shared criteria instead of repeating them, and keeps its own weights, counting rules, and version 1.4.--@josephfarinadiff --git a/.changeset/lookup-suggestion-order.md b/.changeset/lookup-suggestion-order.mddeleted file mode 100644index c6fb1dad7c..0000000000--- a/.changeset/lookup-suggestion-order.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/cli': patch------[feat] A failed `astryx component`, `template` or `docs` lookup lists the entry you most likely meant first. Components that tie on match score are ordered by how early the name you typed appears in their keywords and by how close their names are, instead of alphabetically; among the suggestions offered, a component one of whose other names was typed (including another library's name for it, such as `MUI TextField`, with or without the library's name) comes first; a compound name that does not exist (a family part named with other words, or without one of its family's words) suggests the real part or its family. Templates are ordered by how closely their id or title matches the name you typed, and unknown docs routes by how closely the route matches. Suggestion lists never get longer, every suggestion is a real entry, and a name that resolved before still resolves to the same entry.--@josephfarinadiff --git a/.changeset/markdown-skip-unchanged-rerender.md b/.changeset/markdown-skip-unchanged-rerender.mddeleted file mode 100644index 01b0b0e2cb..0000000000--- a/.changeset/markdown-skip-unchanged-rerender.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[perf] Markdown skips re-rendering its document when a parent re-renders without changing the text or any rendering prop, so pages that update around a long document stay responsive; a link handler passed as a new function on each render no longer forces that work, and the rendered output is unchanged.--@cixzhangdiff --git a/.changeset/multiselector-focusable-disabled.md b/.changeset/multiselector-focusable-disabled.mddeleted file mode 100644index 9f989ece75..0000000000--- a/.changeset/multiselector-focusable-disabled.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[fix] A disabled `MultiSelector` keeps its place in the tab order, so keyboard and screen-reader users can reach it and hear that it is unavailable (WCAG 2.2 SC 2.1.1 Keyboard and 4.1.2 Name, Role, Value; `spec:AST-085` FR1–FR4). Before, its trigger rendered the native `disabled` attribute and `tabIndex={-1}`, so Tab skipped it and a focused trigger lost focus when disabled; now it exposes `aria-disabled="true"`, keeps focus, still opens nothing, and submits no form value. Like a natively disabled button, it runs no caller event handler other than focus and blur, and a press on it reaches no handler. A focused disabled trigger shows a keyboard focus ring, dimmed with the rest of the control (SC 2.4.7 Focus Visible; `spec:AST-085` FR6).--@cixzhangdiff --git a/.changeset/nav-items-focusable-disabled.md b/.changeset/nav-items-focusable-disabled.mddeleted file mode 100644index cfecb860bb..0000000000--- a/.changeset/nav-items-focusable-disabled.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[fix] Disabled Link and ClickableCard, and the buttons of a disabled Token, stay focusable. Before, they rendered the native `disabled` attribute or `tabIndex={-1}`, so keyboard and screen-reader users could not reach them. Now each disabled control exposes `aria-disabled="true"` and keeps the Tab stop it has when enabled, while activation by click, Enter or Space, `onClick`, removal and navigation stay blocked; a disabled Link keeps no live destination and is exposed with the link role. A `Popover` no longer opens from a wrapped or `anchorRef` trigger marked `aria-disabled="true"` (for example a disabled `Button` with a `tooltip`), including for a click dispatched straight on the trigger; before, such a click opened it. This meets the focusable-disabled requirement in spec:AST-085 (FR1, FR2, FR5). No API changes.--@cixzhangdiff --git a/.changeset/runner-commands.md b/.changeset/runner-commands.mddeleted file mode 100644index de185733e6..0000000000--- a/.changeset/runner-commands.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/cli': patch------[feat] From 0.7.3, `doctor integration validate` (and so `integration check`) lists each Astryx command a topic writes with a package runner as a `runner_command` note in `data.notes`, with its file, line and the bare `astryx <command>` to write. A note fails nothing, so `integration check --strict` exits as before. The unscoped name after a download runner (`npx astryx`) always counts, because it fetches an unrelated package; the scoped `npx @astryxdesign/cli`, for install steps, does not.-@josephfarinadiff --git a/.changeset/search-consumer-ranking.md b/.changeset/search-consumer-ranking.mddeleted file mode 100644index fc645dae8f..0000000000--- a/.changeset/search-consumer-ranking.md+++ /dev/null@@ -1,13 +0,0 @@-----'@astryxdesign/cli': patch------[docs] A new "Use integrations" guide, so consumer queries find consumer docs first, not authoring content.--@josephfarina--Added a "Use integrations" guide (`use-integrations.doc.mjs`) that covers-discovering, installing, and using integration packages in an app. Search-now ranks it above authoring and API-function docs for consumer-phrased-queries like "add an integration" or "install a package". Authoring-queries like "build an integration" still rank authoring content first.diff --git a/.changeset/search-entry-cache-guard.md b/.changeset/search-entry-cache-guard.mddeleted file mode 100644index bd84f65e6a..0000000000--- a/.changeset/search-entry-cache-guard.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/cli': patch------[fix] `astryx search` ties its entry-index reuse to one list of the fields the index reads, so the index is never reused after any of them changes; answers are unchanged.--@josephfarinadiff --git a/.changeset/search-entry-cache.md b/.changeset/search-entry-cache.mddeleted file mode 100644index 6e8c97a914..0000000000--- a/.changeset/search-entry-cache.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/cli': patch------[fix] `astryx search` reuses its entry index across searches in one process while the catalog is unchanged, so repeated searches answer faster; every answer is unchanged.--@josephfarinadiff --git a/.changeset/search-function-trace.md b/.changeset/search-function-trace.mddeleted file mode 100644index 276885beea..0000000000--- a/.changeset/search-function-trace.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/cli': patch------[fix] Hosts that bundle the CLI into a server function no longer pack their whole project folder into it: one path in `integration check`'s import checks was built in a way file tracers cannot follow. The path and its results are unchanged.--@josephfarinadiff --git a/.changeset/search-reuses-gathered-catalog.md b/.changeset/search-reuses-gathered-catalog.mddeleted file mode 100644index f2c6b62b6c..0000000000--- a/.changeset/search-reuses-gathered-catalog.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/cli': patch------[fix] `search()` from `@astryxdesign/cli/api` answers faster when one process searches again: it reuses the components, docs, templates and themes it gathered for the same folder and `type` while no file it read, and no folder it listed, has changed since (a linked workspace package included). To see those reads, the first such search in a process wraps `node:fs`'s read functions for that process; outside a search they behave exactly as before. Results are unchanged. Short-lived runs are unaffected: each `astryx search` command gathers once, as before. Introduced in [#7830](https://github.com/facebook/astryx/pull/7830); final-state evidence: [#7885](https://github.com/facebook/astryx/pull/7885).--@josephfarinadiff --git a/.changeset/search-template-display-name.md b/.changeset/search-template-display-name.mddeleted file mode 100644index 28096e2235..0000000000--- a/.changeset/search-template-display-name.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/cli': patch------[fix] `astryx search` and `astryx build` find a block by its authored display name when that name has two words or more and holds every word of the component the block shows: a query naming it, such as "rich text editor" for an integration's Rich Text Editor block, ranks it first. A display name that labels only the variant, such as "Inside a card", is not read.--@josephfarinadiff --git a/.changeset/selector-focusable-disabled.md b/.changeset/selector-focusable-disabled.mddeleted file mode 100644index 9f71b56c26..0000000000--- a/.changeset/selector-focusable-disabled.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[fix] A disabled `Selector` keeps its place in the tab order, so keyboard and screen-reader users can reach it and hear that it is unavailable (WCAG 2.2 SC 2.1.1 Keyboard and 4.1.2 Name, Role, Value; `spec:AST-085` FR1–FR4). Before, its trigger rendered the native `disabled` attribute and `tabIndex={-1}`, so Tab skipped it and a focused trigger lost focus when disabled; now it exposes `aria-disabled="true"`, keeps focus, still opens nothing, and submits no form value. Like a natively disabled button, it runs no caller event handler other than focus and blur, and a press on it reaches no handler. A focused disabled trigger shows a keyboard focus ring, dimmed with the rest of the control (SC 2.4.7 Focus Visible; `spec:AST-085` FR6).--@cixzhangdiff --git a/.changeset/selector-option-narrow-ellipsis.md b/.changeset/selector-option-narrow-ellipsis.mddeleted file mode 100644index 37b22a7039..0000000000--- a/.changeset/selector-option-narrow-ellipsis.md+++ /dev/null@@ -1,6 +0,0 @@-----'@astryxdesign/core': patch------[fix] Selector options in a narrow list now shrink and truncate a long label with an ellipsis instead of being clipped past the list edge-@kyu-rongdiff --git a/.changeset/switch-busy-one-announcement.md b/.changeset/switch-busy-one-announcement.mddeleted file mode 100644index 5b15e0e938..0000000000--- a/.changeset/switch-busy-one-announcement.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[fix] Switch: a busy switch announces "Loading" once per busy start. Under React StrictMode the announcement used to be made twice.--@cixzhangdiff --git a/.changeset/time-input-focusable-disabled.md b/.changeset/time-input-focusable-disabled.mddeleted file mode 100644index c0542c40c2..0000000000--- a/.changeset/time-input-focusable-disabled.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[fix] TimeInput: a disabled field, or a busy bottom-sheet field, no longer renders native `disabled` on its typed, native-picker or touch input or its picker button. They keep their place in the focus order and expose `aria-disabled`, while typing, arrow-key adjustment, opening, submitting a surrounding form with Enter, and a caller's `onClick` stay blocked, a draft typed before the field became disabled is dropped, and a focused disabled field shows its focus ring. This meets the focusable-disabled requirement in spec:AST-085 (FR1, FR2, FR6). Tests that query a disabled or busy TimeInput with `toBeDisabled()` or `:disabled` should check `aria-disabled="true"` instead.--@cixzhangdiff --git a/.changeset/timestamp-server-clock.md b/.changeset/timestamp-server-clock.mddeleted file mode 100644index c4e585a232..0000000000--- a/.changeset/timestamp-server-clock.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[fix] Timestamp no longer reads the current time while rendering on the server. Absolute formats (`date`, `time`, `date_time` and the other fixed formats) never read the clock, so pages that use them prerender in Next.js with `cacheComponents` turned on, the default for new Next.js 16 apps, where they used to fail the build. `relative`, `relative_short` and `auto` read the clock on the client only: a server render or static prerender shows the full date and time in UTC, labelled, and the client switches to the format's normal output right after hydration, so server and client markup now always match. Client-only rendering is unchanged. No API changes. Introduced in [#7883](https://github.com/facebook/astryx/pull/7883); current release evidence: [#7921](https://github.com/facebook/astryx/pull/7921), not the Timestamp implementation.--@josephfarinadiff --git a/.changeset/tooltip-hover-bridge-one-step.md b/.changeset/tooltip-hover-bridge-one-step.mddeleted file mode 100644index 6c6c1ab24d..0000000000--- a/.changeset/tooltip-hover-bridge-one-step.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[fix] Tooltip: moving the pointer straight from the trigger onto the tooltip in one step no longer hides it, so it stays open while hovered (WCAG 1.4.13).--@cixzhangdiff --git a/.changeset/tooltip-sibling-anchor-attaches-when-rendered-inside.md b/.changeset/tooltip-sibling-anchor-attaches-when-rendered-inside.mddeleted file mode 100644index 41d7389d3d..0000000000--- a/.changeset/tooltip-sibling-anchor-attaches-when-rendered-inside.md+++ /dev/null@@ -1,11 +0,0 @@-----'@astryxdesign/core': patch------[fix] Tooltip: attach sibling-mode anchors that render inside their own anchor (#7692)--A `Tooltip` with an `anchorRef` that renders inside the very element the ref points at (how `SideNavItem` anchors its collapsed rail tooltip) never attached: React attaches an ancestor's ref after its descendants' layout effects, so the sibling-mode effect read `anchorRef.current` as `null` on mount, and its dependencies never changed to re-run it. An item that mounted inside an already-collapsed `SideNav` — the common case for persisted collapse state — showed no tooltip on hover and never got `aria-describedby`, while an item that collapsed after mounting worked because the anchor ref was already set by then.--The effect now re-checks the anchor once the commit has finished attaching refs, so the tooltip attaches however it mounted. The attach/detach bookkeeping (event listeners, `aria-describedby` merge and restore) is unchanged.--@Pushpak731diff --git a/.changeset/top-nav-mobile-long-heading.md b/.changeset/top-nav-mobile-long-heading.mddeleted file mode 100644index 0c35dab542..0000000000--- a/.changeset/top-nav-mobile-long-heading.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[fix] `TopNav` on narrow screens: a long `TopNavHeading` now gives way (it truncates with an ellipsis, or wraps when the heading is a link) instead of pushing the end content and the menu toggle past the edge of the bar, and the mobile drawer's close button is back on screen.--@josephfarinadiff --git a/.changeset/typeahead-clear-in-edit-mode.md b/.changeset/typeahead-clear-in-edit-mode.mddeleted file mode 100644index 0b062f1fd0..0000000000--- a/.changeset/typeahead-clear-in-edit-mode.md+++ /dev/null@@ -1,7 +0,0 @@-----'@astryxdesign/core': patch------[fix] Typeahead: clearing the value while editing it now empties the input and reports `onChangeQuery('')`, instead of leaving the old label in a field with no value. Fixes #7038.--@HelloOjasMutrejadiff --git a/packages/build/CHANGELOG.md b/packages/build/CHANGELOG.mdindex 2f1557a398..61cf69fced 100644--- a/packages/build/CHANGELOG.md+++ b/packages/build/CHANGELOG.md@@ -1,5 +1,9 @@# @astryxdesign/build+# 0.7.3++---+# 0.7.2#### Fixesdiff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.mdindex 1c0fca4fb4..e7276d92c7 100644--- a/packages/cli/CHANGELOG.md+++ b/packages/cli/CHANGELOG.md@@ -1,5 +1,120 @@# @xds/cli+# 0.7.3++#### New Features++- `astryx build` names the right block first far more often. It ranks every block in the catalog by what the request means, read from each block's own name, description, and component, so a block that word matching missed can still come first, with its own score and reason; and the block picker's fixed values are refitted on a larger, more varied set of written example requests, which helps most with requests worded in a product's own terms. A block the request names by its exact name, and a block from an integration, keep their place. The kit never lists more blocks than before, and its fields, page call, start template, and alternatives are unchanged.+- `astryx search` puts the entry you are after first more often: it orders the matches inside each score band, every result keeps its match score and reason, and a query that is an entry's exact name still answers with that entry first ([#7752](https://github.com/facebook/astryx/pull/7752)).+- `astryx doctor integration validate` and `astryx integration check` check the component names a package's docs and blocks give, and list what they find as notes beside validate's issues, each with its fix. Nothing counts a note and `integration check --strict` does not fail on them; they become failing warnings in the next minor release:+ - `doc_name_mismatch` lists a component doc whose `name` is not the name the component is listed under when the module its printed import names (the doc's `import`, the published subpath, or the package root) provably does not export that name, so `astryx component` would print a broken import. The `Fix:` proposes the file name when that module exports it, otherwise the component it exports. A name that module's exports cannot prove or rule out (a re-export from another package, `export =`, a destructured binding, a namespace, an import that resolves to no file, or, when no import can be resolved, a source that only exports a default) is listed as not checked, with the reason, in validate's new `docNames` report.+ - `unknown_block_component` lists a name a template's `exampleFor` or `componentsUsed` gives that neither the package nor Core has (every doc `astryx component` resolves in Core counts) and the template does not import it. Imports the template's local helpers make count too, including through a barrel such as `parts/index.ts`. A name is judged only where the template reaches components solely through named imports and re-exports from Core, React, StyleX, local helpers read in full, or the package's own name (followed through its `exports` like a helper). Anything else is listed as not checked in validate's new `blockComponents` report: an import from another package, which may render other components; any `default` binding other than React's or StyleX's; a namespace import; an alias of or member read off an imported binding; a component held in a variable; `require()`; a dynamic `import()`; a file that does not parse cleanly; a local module this check cannot read; and, without Core installed, any name only Core could resolve.++ `integration check --strict` does not fail on anything listed as not checked.++- New `@astryxdesign/cli/host` entry for tools that carry the CLI: `runHostedCli` runs the CLI once per process, with the command name that tool's users type (printed commands start with it) and, when the tool skipped the project's own CLI, the reason, so that CLI is never run.++ ```js+ import {runHostedCli} from '@astryxdesign/cli/host';++ const result = await runHostedCli({+ argv: ['search', 'button'],+ cliCommand: 'acme astryx',+ });+ ```++- `astryx doctor integration validate` now notes, from source and without a build, what an integration package tells apps to import that they cannot import, the way it lists an ignored `cliCommand`. Each note is in `data.notes` and names its fix, such as the exact `exports` entry to add. Notes are listed only: neither `doctor integration validate` nor `astryx integration check --strict` counts or fails on them in 0.7.3, and they become failing warnings in the next minor release, so fix them now. It notes:+ - a component's import (the doc's `import`, or the one the CLI derives when the doc has none) or a template's public import whose subpath package.json `exports` does not declare, or that names another package. A subpath is not declared by a missing key, a key whose only conditions an ES module import does not load (such as `require` or `types`), an `exports` that is a single string, a wildcard that does not match, or an empty `exports` map;+ - a component example that imports a subpath the package does not declare;+ - a template that imports a relative path outside the templates root, or a path its own package or Core does not export.++ A subpath is judged from its `exports` declaration alone, never by its target file, so `exports` may point at build output that does not exist yet; whether that module exports the names an import asks for is the next entry's check. Wildcards and condition objects with `import` or `default` pass. An import of a subpath whose `exports` entry has only `types` targets, or that an ES module import reaches only through `types` (such as `types` beside `require`), is never judged as a run-time import: it passes when it is `import type`, when every binding is an inline `type`, or when every name it imports is one the `types` file declares as a type, and is listed under `unchecked` otherwise. A `types` target under `require` does not count, and a package with no `exports` keeps its deep paths to files it ships. What it cannot judge (in a package with no `exports`, a deep path into build output not built yet, such as `dist/`; a template import of Core when `@astryxdesign/core` is not installed beside the package; every import of the package's own name when package.json has no `name`) is listed under `unchecked` in a new `publicImports` report on the result (`{status: 'checked', findings: [], unchecked: [{file, specifier, reason}]}`), which `integration check` counts as not compared.++- `astryx doctor integration validate` now also notes, from source and without a build, an import that names something its module does not export (in `data.notes`, each with its fix). These notes are listed only in 0.7.3 too, and become failing warnings in the next minor release. It notes:+ - a component's import (the doc's `import`, or the one the CLI derives) that leads to a module that does not export the component, naming the subpath that does or the `exports` entry to add;+ - a component example or a template that imports a name the package does not export;+ - a template source with no default export (`astryx template` still copies it, but its public import and anything that renders it get nothing), suggesting an exported PascalCase function, class or `const`, never a hook such as `useAccount`, a helper such as `formatBalance`, an ALL-CAPS constant or a type; with none, the fix stays generic.++ A name is judged only when a file the `exports` entry names is there to read in full. `export *` is followed, cycles included; a built module's declaration file (`x.d.ts` beside `x.js`, and the `.d.ts` files its `export *` names) is read for the types it exports; `export import Alias = Inner.Value` counts as an export; TypeScript source resolves a `./x.js` specifier to `./x.ts`; and a declaration file that is a module exports every top-level declaration unless it has an export list, `export *`, `export =` or a default export of an expression, as TypeScript does. Whatever the reader does not fully model is listed under `unchecked` in the `publicImports` report instead of as a note: a file the `exports` entry names that does not exist yet; a module whose list cannot be read in full (CommonJS, `export *` from another package); a declaration file with no import or export (a global script); a name missing from a JavaScript module with no declaration file, which may be a type; and every name it would report, other than a component doc's own component, while a TypeScript file in the package (outside `node_modules`) has a parsed `declare module` block for a relative path, the package's own name or a subpath of it, since that can add names to the module. The reason names that file; `declare global`, a wildcard spec such as `'*.css'`, another package's name and a `declare module` in a comment do not count, and a file with `declare module` in its text that cannot be parsed counts. `astryx docs authoring/ship/checks` explains each check.++- A failed `astryx component`, `template` or `docs` lookup lists the entry you most likely meant first. Components that tie on match score are ordered by how early the name you typed appears in their keywords and by how close their names are, instead of alphabetically; among the suggestions offered, a component one of whose other names was typed (including another library's name for it, such as `MUI TextField`, with or without the library's name) comes first; a compound name that does not exist (a family part named with other words, or without one of its family's words) suggests the real part or its family. Templates are ordered by how closely their id or title matches the name you typed, and unknown docs routes by how closely the route matches. Suggestion lists never get longer, every suggestion is a real entry, and a name that resolved before still resolves to the same entry.+- Integration docs that tell readers to run an Astryx command through a package runner now get a `runner_command` note from `doctor integration validate` (and so `integration check`) in `data.notes`, with its file, line and the bare `astryx <command>` to write instead. A note fails nothing, so `integration check --strict` exits as before. The unscoped name after a download runner (`npx astryx`) always counts, because it fetches an unrelated package; the scoped `npx @astryxdesign/cli`, for install steps, does not.++#### Fixes++- `astryx build` starts from a page template its word weights do not list (an integration's template, or one added since the weights were fit) only when the request names as many words of that template's own display name, category and keywords (search's stopwords aside) as of the best listed template, or names that template's family (the first part of its category) before the listed template's family and at most two fewer of its words; otherwise it starts from that listed template and offers the other as the first alternative.+- The CLI finds the project's `@astryxdesign/core` from any folder inside the project, so `component`, `hook`, `build`, `search`, `swizzle`, `theme targets` and `doctor` now work five or more folders deep, in workspace members whose Core the workspace installs at its root, and in Yarn Plug'n'Play projects. They still search the folders they searched before, and past them continue up to the workspace root of the nearest folder whose package.json declares an Astryx package.+ - `upgrade --from` run from any folder in a project upgrades that project: the nearest folder whose package.json declares an Astryx package or that an Astryx workspace lists, found without passing a repository root or counting the home folder. It targets only the project's own Core (the one in its `node_modules`, or for a member its workspace lists, the one the workspace installs), scans the project's `src` by default, reads a `--path` you type from the folder you ran in, names the files in its `--json` result relative to that folder, refreshes the project's agent docs, and names the project root and the source folder it scans before it changes anything. With no such project, `upgrade` reads only the current folder, as before.+ - An `upgrade` run in a folder that installs Core but declares no Astryx package now upgrades the Astryx project above it instead of that folder alone, since such a folder was never a separate upgrade root. To keep a sub-folder that installs Core its own project, declare an Astryx package in that folder's package.json.+ - A `packages/core` folder that holds another package is no longer read as Core, and an integration named in `astryx.config` now loads when the workspace installs it at its root, as an autolinked one already did.+- The CLI's install advice no longer adds a package to a `package.json` that is not an Astryx project's. This covers the daily hint, the setup reminder, the update notice, `astryx doctor`'s version-alignment and integration fixes, and `astryx discover`'s install command for an integration installed for the computer. The project is the nearest folder whose `package.json` declares an Astryx package, or a member its workspace lists, never the home folder and never past a repository root.+ - From a folder inside such a project whose own `package.json` is not the project's, such as a tool folder that installs its own `@astryxdesign/core`, the daily hint that matches a project's CLI to its Core, the setup reminder and `astryx doctor`'s version-alignment fix used to name a command that added the CLI to that folder's `package.json`, making it a separate Astryx project. They still compare the CLI with the Core the run reads, and when the two differ they say to run from the project's folder, or to declare an Astryx package in that folder; the update notice upgrades the project from its folder, with the project's release.+ - For an integration installed for the computer, `astryx discover` gives no install command from such a folder, and `astryx doctor`'s fix says to run from the project's folder, where the command adds it for the project; in a folder that belongs to no project, neither names a command.+ - In a folder that belongs to no Astryx project, the hint, the setup reminder and the update notice no longer print, and `astryx doctor`'s fix says how to reach a project.+ - Unchanged: the official packages `astryx discover` lists and the theme packages `astryx doctor` suggests still use the folder the command runs in; a member its workspace lists keeps its own advice; in a folder whose `package.json` declares an Astryx package, the advice is the same. No JSON shape or exit code changes.+- `astryx doctor integration validate`, `astryx integration check` and `astryx integration verify` catch more package mistakes, and each new finding ends in a `Fix:` that clears it. Findings that 0.7.2 did not fail on are listed as notes beside validate's issues, which nothing counts, until the next minor:+ - Two docs for one component (`AcmeWidget.doc.mjs` and `AcmeWidget.doc.js`) are listed as `duplicate_component_doc`, naming the one read; discovery now always reads the same one.+ - A component doc whose file name differs from its source only in letter case is one finding that says which file to rename: an error where the pair fails (Linux), a listed `source_without_component_doc` where it still pairs (a case-insensitive disk); a hidden doc that does not pair keeps the source warning it had.+ - A root reached through a symlinked folder is listed as `symlinked_root`: npm pack does not follow it.+ - An absolute root says roots are relative and gives the relative path; a root that is a file is reported by every check instead of crashing it.+ - A package.json without `name` or `version` is listed with a fix, instead of a crash; `verify` fails on it. A package whose `name` and manifest `providerId` give no provider ID is listed as `no_provider_id`.+ - A contribution file Astryx cannot read is listed as `unreadable_file`, before npm pack fails on it.++ `astryx integration check --strict` does not fail on these pairing, root and package.json notes either; they become failures in the next minor. `astryx integration verify` still fails on a package.json npm cannot pack.++- `astryx doctor integration validate`, `astryx integration check` and `astryx integration verify` say more plainly what is wrong in findings they already reported, and how to fix it:+ - An empty doc or manifest, or one with no default export, says so and names what it does export, instead of "(root): Invalid input".+ - A manifest key one or two letters off a known key asks "did you mean `components`?" before suggesting a newer CLI.+ - A theme descriptor named for the built file (`ocean.doc.mjs` beside a built `ocean.js` that lacks the `ocean` export) says it must share its stem with the `defineTheme` source, naming that source when the built module's `Source:` line or the source's `defineTheme` name confirms it.+ - A template doc with no source, a theme descriptor with no source, a theme source with no descriptor, and a component whose source is `.jsx` get a `Fix:`.+ - A theme source named for its theme (`brand.ts`) beside the module the build writes (`brand.js`) is told to take the `brandTheme` stem.+ - `verify` names packed files by their path in the package, not the scratch copy's; says npm pack does not follow a symlinked root instead of asking for a `files` entry; and, when a theme's `defineTheme` name differs from the files its package exports, says a rebuild writes files under the new name.+- Integration authors now learn when the running CLI is outside their package's `@astryxdesign/cli` peer range: `astryx doctor integration validate` and `astryx integration check` list a `cli_peer_version` note naming the package, the range and the running version. Below the range the note gives the project's commands to install a newer `@astryxdesign/core` and `@astryxdesign/cli` together (as dev dependencies in the package's own folder) and then run `astryx upgrade --from <version> --apply`. Above the range it asks for a release of an installed package that supports this CLI, or asks the author of the package in the current folder to test with this CLI and widen the range. A note fails nothing: `--strict`, `integration verify`, `doctor`, and exit codes are unchanged.+- `astryx component <Member> --package @astryxdesign/core` now answers with that member, as the unscoped lookup does. A Core component documented in its family's doc (HStack and VStack in the Stack doc) used to come back as the family doc, named after the family and with no props.+- The agent guide that global mode writes to the home folder now tells agents to deliver a page built with Astryx, not only how to find things. Before, agents that found the right template could still build the page with a tool that cannot install packages and deliver a page with no Astryx in it. The guide now tells agents to work in a project folder (creating one if there is none); add `@astryxdesign/core` and `@astryxdesign/cli` to a new project or one without Core, or, in a project that already has `@astryxdesign/core`, the CLI at the same version; run `astryx init` there; follow the same template-first workflow and self-check the project agent docs give; and end by building the project and delivering that build. The guide stays version-free and names only commands every release keeps. The project agent docs are unchanged, and so is what `@astryxdesign/core`'s install script prints: its copy of the shared agent-docs file only gains the same workflow lines.+- Agents that follow the guide global mode writes to the home folder now know what to do when `astryx` is not found: run the command that installed the CLI for the computer first, with the same package manager and folder, such as `npm i -g @astryxdesign/cli` or `pnpm add -g @astryxdesign/cli`. On machines that keep the home folder but reset system folders on restart, the guide outlived the CLI installed for the computer and told agents to run a command that was gone. Outside a project, when the guide names `astryx` and no `astryx` command is on the search path, apart from a package runner's own copy, `astryx doctor` now says so and names the install step the guide records, or npm's when it records none. The global-mode guide for CI and containers explains how to keep the CLI across restarts. A guide written for a host's own command is unchanged. No JSON shape or exit code changes.+- The butter, stone, and y2k themes no longer show the secondary hover fill on a disabled `ComplexSelector` trigger, whether the trigger is natively disabled or exposes `aria-disabled="true"`, the focusable form every disabled control now uses. Before, the guard only recognized a natively disabled trigger. The themes `astryx theme eject` copies carry the same guard.+- Apps that use Core's prebuilt CSS without a StyleX build step now get the default data colors: the prebuilt CSS defines the canonical `dataVars` defaults, so compiled imports and raw CSS references paint correctly.+- `astryx init` writes the agent docs at the project root, in files the project commits, so Codex, Gemini CLI, Copilot CLI and Claude Code all read the block from the project root or any folder below it ([#7497](https://github.com/facebook/astryx/pull/7497)). It no longer writes agent docs into a project's subfolder, the home folder, or a settings folder in it such as `~/.gemini`.+ - `AGENTS.md` holds the block, created when missing. Before, a project with only `CLAUDE.md` got the block only there, so Codex and Gemini CLI never saw it.+ - Claude Code skips `AGENTS.md` in a folder that has a `CLAUDE.md` or `.claude/CLAUDE.md`, so the Claude Code file the project already has keeps a full copy: root `CLAUDE.md`, else `.claude/CLAUDE.md`. It keeps the copy even when it imports `AGENTS.md`, because Claude Code does not follow that import in a session started in a subfolder; started at the root, Claude Code then reads two. When both exist, the copy goes in root `CLAUDE.md`, which projects commit even when they ignore `.claude/`, and a block in `.claude/CLAUDE.md` is removed. Init creates no Claude file. `astryx upgrade` refreshes every copy, except in a project at the top of a home settings folder (see the next entry).+ - Gemini CLI reads only `GEMINI.md`: init adds a one-line import, `@./AGENTS.md`, creating `GEMINI.md` when it is missing. It adds none when `GEMINI.md` already imports `AGENTS.md`, inline or on its own line. It adds the import even when the project's `.gemini/settings.json` has Gemini read `AGENTS.md` through `context.fileName`: Gemini loads those settings only when it starts at the project root, so a session started in a subfolder would otherwise get no copy. Started at the root, Gemini then reads two.+ - The project root is the nearest folder at or above where init runs whose `package.json` declares an `@astryxdesign` package, else the nearest with any `package.json`. The search stops at a repository root and never counts the home folder. With no `package.json` found, init writes where it runs, as before. `docsWritten` still lists each file relative to where init ran, for example `../../AGENTS.md`.+ - A `GEMINI.md` that resolves outside the project, for example a link to a shared file, is skipped and reported in `docsError` with one note (not an error line), in the default layout and in a project's own layout; the rest is written and init exits 0.+ - The managed block belongs to Astryx: init and `astryx upgrade` write, refresh, and remove only the block, whatever ignore rules or generated markers say, as 0.7.1 did, and never change the text around it. Every write stays inside the project: run in the folder 0.7.1 wrote, an agent file 0.7.1 wrote there whose path leaves the project still refuses the run with exit 1. The project's Claude Code file (root `CLAUDE.md`, or `.claude/CLAUDE.md` when there is no root one) that resolves outside the project and is a block-less import of an existing `AGENTS.md`, which 0.7.1 left alone, is skipped and reported in `docsError` with one note, and init exits 0. Run from a folder below the project root, where 0.7.1 wrote in that folder instead, a project-root file whose path leaves the project is skipped and reported in `docsError` with one note, the rest is written, and init exits 0.+ - While root `CLAUDE.md` is untracked and ignored by the repository's ignore rules (any ignore file from the repository root down, such as a monorepo's root `.gitignore`, the local exclude file, or configured excludes; init asks git, Sapling or Mercurial), a `.claude/CLAUDE.md` the project commits gets the copy too, so a fresh clone still gives Claude Code a copy; `--agent claude` and `--agent all` write it there as well. A file the repository tracks counts as committed whatever the ignore rules say, as git and Mercurial ignore only untracked files, and when the repository cannot answer, the copy is kept, on the first run as on later ones. Such a copy that resolves outside the project refuses the run with exit 1 where 0.7.1 wrote it too; one 0.7.1 did not write (the one `--agent claude` adds, or a block-less import of an existing `AGENTS.md`) is skipped and reported in `docsError` with one note, and init exits 0. So is a `.claude/CLAUDE.md` whose block `--agent claude` would remove beside a `CLAUDE.md`, since 0.7.1's `claude` preset wrote only `CLAUDE.md` there. Beside a committed root `CLAUDE.md`, with `.claude` linked outside the project, three cases that 0.7.1 refused now exit 0 with nothing written: the default with a `.claude/CLAUDE.md` of plain text, and `--agent all` with one of plain text or a block-less import of `AGENTS.md`; root `CLAUDE.md` holds the copy, so no write leaves the project. In a project that keeps its own layout, a `GEMINI.md` that imports no agent file now gets a copy, as the other agent files do.+ - The copy in `.claude/CLAUDE.md` is removed only once root `CLAUDE.md` holds the same block, and only the managed block between its markers: the rest of the file stays, and the file is deleted only when nothing but whitespace is left. `astryx init --remove-agents` deletes a file it created only when nothing but whitespace or init's own heading is left; 0.7.0 also deleted a file whose remaining text had a heading and any line with the word "guidance".+ - `astryx init --remove-agents` removes the block at the project root, where `init` writes it, and in the folder it runs in. Run from a subfolder, it removes what `init` wrote at the root, and a block an earlier version left in that subfolder; a root agent file with a block that resolves outside the project is left as it is with a note, and the run exits 0, as 0.7.1 did when it touched only the subfolder. Exit codes and the JSON shape are unchanged.+ - `--agent claude` and `--agent all` never leave a block in both `CLAUDE.md` and `.claude/CLAUDE.md`, unless the project ignores `CLAUDE.md`: when `CLAUDE.md` gets the block, a block in `.claude/CLAUDE.md` is removed. `--agent all` keeps the `GEMINI.md` import. The `--agent` help and the working-with-AI guide say so. `--agent-docs-path` writes where init runs, as before.+ - `astryx doctor` fails when the `GEMINI.md` import points at an `AGENTS.md` with no block. The setup check in the CLI and in `@astryxdesign/core` no longer counts that import as set up, and looks at `GEMINI.md`. The reminder to run `init` that commands print looks at the project root too, so it stops once `init` has run in a nested package.+- `astryx init` and `astryx upgrade` no longer write agent docs into your home folder, or into a settings folder in it such as `~/.gemini` or `~/.claude` outside a project. Agents read the files in those folders in every project, so a block there reached unrelated work. This follows the CLI's existing rules that no command writes agent docs into those folders and that a write outside a command's own folder is refused before anything is written.+ - **Refused by `init`:** the home folder itself, and the top of any folder in it whose name starts with a dot (every such folder is a settings folder), even when it holds a `package.json`. A folder below it with its own `package.json` is a project and is set up normally, such as an agent worktree in `~/.codex/worktrees/` or `~/.cursor/worktrees/`, and `astryx upgrade` refreshes it. With `--agent-docs-path`, each file's own folder is checked: from the home folder, `notes/AI.md` is written as before, while `AI.md` or `.claude/CLAUDE.md` is refused.+ - **What `init` does instead:** it writes no agent docs, reports `docsError` as `install-failed` with the reason, and exits 0, as before.+ - **Refused by `upgrade`:** refreshing a block in a project whose root is the home folder or the top of a settings folder, such as `~/.dotfiles` with a `package.json`, with or without `--apply`. It leaves the block as it is, sets `agentDocs.action` to `error` (never `would-refresh`), and warns with the folder and why; its other steps and its exit status are as before. With no block there, it gives the same reason instead of suggesting `astryx init`. `astryx doctor`'s agent-docs fix does the same, and the setup reminder after each command stays quiet.+ - **Migration:** run `astryx init` from the project's own folder, or add the block to the file by hand. Move a project rooted at the home folder or a settings folder into a folder of its own, or update or remove its block by hand. To remove a block an earlier version wrote into `~/.claude/CLAUDE.md`, run `astryx init --remove-agents` in the home folder.+- Repeated searches in one process answer faster: `astryx search` reuses its entry index while the catalog is unchanged, and ties that reuse to one list of the fields the index reads, so the index is never reused after any of them changes. Every answer is unchanged.+- Tools that bundle the CLI into a server function no longer pack their whole project folder into it: one path in `integration check`'s import checks was built in a way file tracers cannot follow. The path and its results are unchanged.+- `search()` from `@astryxdesign/cli/api` answers faster when one process searches again: it reuses the components, docs, templates and themes it gathered for the same folder and `type` while no file it read, and no folder it listed, has changed since (a linked workspace package included). To see those reads, the first such search in a process wraps `node:fs`'s read functions for that process; outside a search they behave exactly as before. Results are unchanged. Short-lived runs are unaffected: each `astryx search` command gathers once, as before ([#7830](https://github.com/facebook/astryx/pull/7830)).+- `astryx search` and `astryx build` find a block by its authored display name when that name has two words or more and holds every word of the component the block shows: a query naming it, such as "rich text editor" for an integration's Rich Text Editor block, ranks it first. A display name that labels only the variant, such as "Inside a card", is not read.++#### Documentation++- `astryx docs cli/commands/postinstall` now documents the hidden `postinstall` hook, `astryx docs cli/commands` lists it, and `astryx postinstall --help` shows its exit code and an example. The summary of `astryx docs cli/commands/manifest` (text and `--json`) drops its final period, so it matches the description the manifest has always printed. What each command prints when it runs, its JSON and its exit codes are unchanged.+- Everything an integration author reads now lives under one home, `astryx docs authoring`: the integration guides' routes moved from `cli/integrations/…` to `authoring/…` (for example, `cli/integrations/quick-start` is now `authoring/quick-start`), beside the field reference at `astryx docs authoring/field-reference`. `astryx docs authoring <name>` still opens one field reference section, and an old `cli/integrations/…` route's error names its new route. The loose topics now sit in Guides or Foundations instead of Unorganized, under the same names: `astryx docs getting-started` still opens, and its Up is `astryx docs guides`.+- A new guide, `astryx docs is-my-code-good`, checks component use, icons, custom styles, layout, assets, and code health from source and rendered evidence, in one page you can share. It includes an agent prompt and requires missing evidence to stay visible. The template grading rubric now links each category to these shared criteria instead of repeating them, and keeps its own weights, counting rules, and version 1.4.+- Questions like "add an integration" or "install a package" now find a guide for app builders first.+ Added a "Use integrations" guide (`use-integrations.doc.mjs`) that covers discovering, installing, and using integration packages in an app; open it with `astryx docs use-integrations`. Search ranks it above authoring and API-function docs for those questions, while queries like "build an integration" still rank authoring content first.++#### Contributors++Thanks to everyone who contributed to this release:++- @cixzhang+- @ejhammond+- @josephfarina++---+# 0.7.2#### New Componentsdiff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.mdindex 9f194d5a73..cde461f9e8 100644--- a/packages/core/CHANGELOG.md+++ b/packages/core/CHANGELOG.md@@ -1,5 +1,93 @@# @xds/core+# 0.7.3++#### New Features++- `DropdownMenuSubMenu` takes `header` and `footer`, as the root `DropdownMenu` does, so a sub-menu can have a filter field above its rows, or an action such as "New folder" below them, outside the sub-menu's menu itself. With either, the sub-menu's surface (the flyout, or the drilled-in view on a phone) is a modal dialog named by its row: the row says `aria-haspopup="dialog"`, Tab and Shift+Tab walk the header, the rows and the footer and wrap, Escape returns to the row, and a pointer leaving the flyout closes it only once focus leaves too. A `ContextMenu` does not show a sub-menu's `header` or `footer`. Without them nothing changes.++ ```diff+ <DropdownMenuSubMenu+ label="Move to"+ + header={<TextInput label="Filter folders" isLabelHidden value={query} onChange={setQuery} />}+ + footer={<Button label="New folder" onClick={createFolder} />}+ >+ <DropdownMenuItem label="Folder A" onClick={() => move('a')} />+ </DropdownMenuSubMenu>+ ```++#### Fixes++- `TimeInput`'s arrow keys ignore a fractional increment instead of writing a malformed time such as "14:30.5": `adjustTime` returns the time unchanged for a fractional minute delta ([#7823](https://github.com/facebook/astryx/pull/7823)).+- Screen readers now announce a `Button` that is first rendered with `isLoading` (for example after a remount). Its visually hidden loading live region mounts empty and gets "Loading" on the next frame, because screen readers skip a live region that already holds its text when it appears. A Button that becomes loading after it mounts is unchanged, and a Button mounted idle does no extra render.+- `ChatComposer`: screen readers now announce a status message, errors assertively and warnings politely, once per occasion: a rerender does not repeat it, and a status that clears and then returns is announced again. Before, the status bar mounted as a `role="alert"` or `role="status"` region already holding its text, which screen readers often skip. The message now goes through the shared announcement channel, and the visible bar no longer carries a live role. No API changes.+- `ChatSystemMessage`: a new chat notice inside a `ChatMessageList` now has one live region announcing it, the list's polite log, instead of also being a second live region nested in it (WCAG 2.2 SC 4.1.3). Its root no longer forces `role="status"`, in either variant, so date and divider rows are no longer presented as status messages, and a `role` passed to the component reaches its root. Tests that found a system message by the `status` role should query it by its text instead.+- Keyboard and screen-reader users can now reach disabled `CheckboxInput`, `CheckboxList` items, `Switch`, `Slider` and `FileInput`, and hear that they are disabled. Before, they rendered the native `disabled` attribute unless a `disabledMessage` was set, so Tab skipped them. Now every disabled control exposes `aria-disabled="true"` and keeps the Tab stop it has when enabled, while toggling, selecting, dragging, opening the file picker and any `onClick` stay blocked, and its value is still left out of form submission. A focused disabled checkbox, switch, slider thumb or file input shows its keyboard focus indicator. No API changes.+- The agent guide that global mode writes to the home folder now tells agents to deliver a page built with Astryx, not only how to find things. Before, agents that found the right template could still build the page with a tool that cannot install packages and deliver a page with no Astryx in it. The guide now tells agents to work in a project folder (creating one if there is none); add `@astryxdesign/core` and `@astryxdesign/cli` to a new project or one without Core, or, in a project that already has `@astryxdesign/core`, the CLI at the same version; run `astryx init` there; follow the same template-first workflow and self-check the project agent docs give; and end by building the project and delivering that build. The guide stays version-free and names only commands every release keeps. The project agent docs are unchanged, and so is what `@astryxdesign/core`'s install script prints: its copy of the shared agent-docs file only gains the same workflow lines.+- Keyboard and screen-reader users can now reach a disabled `ComplexSelector` and hear that it is unavailable (WCAG 2.2 SC 2.1.1 and 4.1.2). Before, its trigger rendered the native `disabled` attribute, so Tab skipped it and a focused trigger lost focus when disabled; now it exposes `aria-disabled="true"`, keeps focus, shows its keyboard focus outline, and still opens nothing. A press or key on it reaches no handler: not the toggle, not a caller's `onClick` or `onKeyDown`, and not an ancestor's click handler.+- Keyboard and screen-reader users can now reach a disabled `Calendar` day or `Pagination` dot and hear that it is disabled. Disabled `TreeList` rows' expand toggle and action button, disabled `Pagination` dots and disabled `Calendar` days expose `aria-disabled="true"` instead of the native `disabled` attribute, while clicks, Enter and Space still do nothing and arrow keys still skip disabled days as before. No API changes.+- `DateInput`: keyboard and screen-reader users can now reach a disabled date field and hear that it is disabled. A disabled or busy field no longer renders native `disabled`: its input and calendar button keep their place in the focus order and expose `aria-disabled`, while typing and opening stay blocked, and a focused disabled field shows its focus ring. Tests that query a disabled DateInput with `toBeDisabled()` or `:disabled` should check `aria-disabled="true"` instead.+- `DateRangeInput`: keyboard and screen-reader users can now reach a disabled field or preset and hear that it is disabled. A disabled or busy field and a disabled preset no longer render native `disabled`: the trigger, calendar button and presets keep their place in the focus order and expose `aria-disabled`, while opening and selecting stay blocked, and a focused disabled field shows its focus ring. Tests that query them with `toBeDisabled()` or `:disabled` should check `aria-disabled="true"` instead ([#7866](https://github.com/facebook/astryx/pull/7866)).+- `DateTimeInput`: keyboard and screen-reader users can now reach a disabled or busy field and hear that it is disabled. It no longer renders native `disabled` on its text, native-picker or touch fields, or on its calendar and clock buttons: they keep their place in the focus order and expose `aria-disabled`, while typing, picking, opening and a caller's `onClick` stay blocked, and a focused disabled field shows its focus ring. `TimeInput`'s native picker button, which shares the time segment and stays out of the tab order, also moves from `disabled` to `aria-disabled` and stays inert. Tests that query a disabled DateTimeInput with `toBeDisabled()` or `:disabled` should check `aria-disabled="true"` instead.+- Apps that use Core's prebuilt CSS without a StyleX build step now get the default data colors: the prebuilt CSS defines the canonical `dataVars` defaults, so compiled imports and raw CSS references paint correctly.+- `Dialog`, `BottomSheet` and `BottomSheetSwitcher` stay open when a file picker inside them is dismissed. A file input fires a bubbling `cancel` event when its picker closes without a choice, and all three took that event for a close request of their own and closed (a switcher closed its whole flow). They now act only on a `cancel` aimed at their own `<dialog>`, so Escape and platform close requests (the Android back gesture) behave as before. No API changes.+- `DropdownMenuRadioGroup` now forwards `ref`, and its docs explain controlled selection, how to name the group, when the menu closes, and how it composes inside a `DropdownMenu`.+- `astryx init` writes the agent docs at the project root, in files the project commits, so Codex, Gemini CLI, Copilot CLI and Claude Code all read the block from the project root or any folder below it ([#7497](https://github.com/facebook/astryx/pull/7497)). It no longer writes agent docs into a project's subfolder, the home folder, or a settings folder in it such as `~/.gemini`.+ - `AGENTS.md` holds the block, created when missing. Before, a project with only `CLAUDE.md` got the block only there, so Codex and Gemini CLI never saw it.+ - Claude Code skips `AGENTS.md` in a folder that has a `CLAUDE.md` or `.claude/CLAUDE.md`, so the Claude Code file the project already has keeps a full copy: root `CLAUDE.md`, else `.claude/CLAUDE.md`. It keeps the copy even when it imports `AGENTS.md`, because Claude Code does not follow that import in a session started in a subfolder; started at the root, Claude Code then reads two. When both exist, the copy goes in root `CLAUDE.md`, which projects commit even when they ignore `.claude/`, and a block in `.claude/CLAUDE.md` is removed. Init creates no Claude file. `astryx upgrade` refreshes every copy, except in a project at the top of a home settings folder (see the next entry).+ - Gemini CLI reads only `GEMINI.md`: init adds a one-line import, `@./AGENTS.md`, creating `GEMINI.md` when it is missing. It adds none when `GEMINI.md` already imports `AGENTS.md`, inline or on its own line. It adds the import even when the project's `.gemini/settings.json` has Gemini read `AGENTS.md` through `context.fileName`: Gemini loads those settings only when it starts at the project root, so a session started in a subfolder would otherwise get no copy. Started at the root, Gemini then reads two.+ - The project root is the nearest folder at or above where init runs whose `package.json` declares an `@astryxdesign` package, else the nearest with any `package.json`. The search stops at a repository root and never counts the home folder. With no `package.json` found, init writes where it runs, as before. `docsWritten` still lists each file relative to where init ran, for example `../../AGENTS.md`.+ - A `GEMINI.md` that resolves outside the project, for example a link to a shared file, is skipped and reported in `docsError` with one note (not an error line), in the default layout and in a project's own layout; the rest is written and init exits 0.+ - The managed block belongs to Astryx: init and `astryx upgrade` write, refresh, and remove only the block, whatever ignore rules or generated markers say, as 0.7.1 did, and never change the text around it. Every write stays inside the project: run in the folder 0.7.1 wrote, an agent file 0.7.1 wrote there whose path leaves the project still refuses the run with exit 1. The project's Claude Code file (root `CLAUDE.md`, or `.claude/CLAUDE.md` when there is no root one) that resolves outside the project and is a block-less import of an existing `AGENTS.md`, which 0.7.1 left alone, is skipped and reported in `docsError` with one note, and init exits 0. Run from a folder below the project root, where 0.7.1 wrote in that folder instead, a project-root file whose path leaves the project is skipped and reported in `docsError` with one note, the rest is written, and init exits 0.+ - While root `CLAUDE.md` is untracked and ignored by the repository's ignore rules (any ignore file from the repository root down, such as a monorepo's root `.gitignore`, the local exclude file, or configured excludes; init asks git, Sapling or Mercurial), a `.claude/CLAUDE.md` the project commits gets the copy too, so a fresh clone still gives Claude Code a copy; `--agent claude` and `--agent all` write it there as well. A file the repository tracks counts as committed whatever the ignore rules say, as git and Mercurial ignore only untracked files, and when the repository cannot answer, the copy is kept, on the first run as on later ones. Such a copy that resolves outside the project refuses the run with exit 1 where 0.7.1 wrote it too; one 0.7.1 did not write (the one `--agent claude` adds, or a block-less import of an existing `AGENTS.md`) is skipped and reported in `docsError` with one note, and init exits 0. So is a `.claude/CLAUDE.md` whose block `--agent claude` would remove beside a `CLAUDE.md`, since 0.7.1's `claude` preset wrote only `CLAUDE.md` there. Beside a committed root `CLAUDE.md`, with `.claude` linked outside the project, three cases that 0.7.1 refused now exit 0 with nothing written: the default with a `.claude/CLAUDE.md` of plain text, and `--agent all` with one of plain text or a block-less import of `AGENTS.md`; root `CLAUDE.md` holds the copy, so no write leaves the project. In a project that keeps its own layout, a `GEMINI.md` that imports no agent file now gets a copy, as the other agent files do.+ - The copy in `.claude/CLAUDE.md` is removed only once root `CLAUDE.md` holds the same block, and only the managed block between its markers: the rest of the file stays, and the file is deleted only when nothing but whitespace is left. `astryx init --remove-agents` deletes a file it created only when nothing but whitespace or init's own heading is left; 0.7.0 also deleted a file whose remaining text had a heading and any line with the word "guidance".+ - `astryx init --remove-agents` removes the block at the project root, where `init` writes it, and in the folder it runs in. Run from a subfolder, it removes what `init` wrote at the root, and a block an earlier version left in that subfolder; a root agent file with a block that resolves outside the project is left as it is with a note, and the run exits 0, as 0.7.1 did when it touched only the subfolder. Exit codes and the JSON shape are unchanged.+ - `--agent claude` and `--agent all` never leave a block in both `CLAUDE.md` and `.claude/CLAUDE.md`, unless the project ignores `CLAUDE.md`: when `CLAUDE.md` gets the block, a block in `.claude/CLAUDE.md` is removed. `--agent all` keeps the `GEMINI.md` import. The `--agent` help and the working-with-AI guide say so. `--agent-docs-path` writes where init runs, as before.+ - `astryx doctor` fails when the `GEMINI.md` import points at an `AGENTS.md` with no block. The setup check in the CLI and in `@astryxdesign/core` no longer counts that import as set up, and looks at `GEMINI.md`. The reminder to run `init` that commands print looks at the project root too, so it stops once `init` has run in a nested package.+- `astryx init` and `astryx upgrade` no longer write agent docs into your home folder, or into a settings folder in it such as `~/.gemini` or `~/.claude` outside a project. Agents read the files in those folders in every project, so a block there reached unrelated work. This follows the CLI's existing rules that no command writes agent docs into those folders and that a write outside a command's own folder is refused before anything is written.+ - **Refused by `init`:** the home folder itself, and the top of any folder in it whose name starts with a dot (every such folder is a settings folder), even when it holds a `package.json`. A folder below it with its own `package.json` is a project and is set up normally, such as an agent worktree in `~/.codex/worktrees/` or `~/.cursor/worktrees/`, and `astryx upgrade` refreshes it. With `--agent-docs-path`, each file's own folder is checked: from the home folder, `notes/AI.md` is written as before, while `AI.md` or `.claude/CLAUDE.md` is refused.+ - **What `init` does instead:** it writes no agent docs, reports `docsError` as `install-failed` with the reason, and exits 0, as before.+ - **Refused by `upgrade`:** refreshing a block in a project whose root is the home folder or the top of a settings folder, such as `~/.dotfiles` with a `package.json`, with or without `--apply`. It leaves the block as it is, sets `agentDocs.action` to `error` (never `would-refresh`), and warns with the folder and why; its other steps and its exit status are as before. With no block there, it gives the same reason instead of suggesting `astryx init`. `astryx doctor`'s agent-docs fix does the same, and the setup reminder after each command stays quiet.+ - **Migration:** run `astryx init` from the project's own folder, or add the block to the file by hand. Move a project rooted at the home folder or a settings folder into a folder of its own, or update or remove its block by hand. To remove a block an earlier version wrote into `~/.claude/CLAUDE.md`, run `astryx init --remove-agents` in the home folder.+- Keyboard and screen-reader users can now reach a disabled `MultiSelector` and hear that it is unavailable (WCAG 2.2 SC 2.1.1 and 4.1.2). Before, its trigger rendered the native `disabled` attribute and `tabIndex={-1}`, so Tab skipped it and a focused trigger lost focus when disabled; now it exposes `aria-disabled="true"`, keeps focus, still opens nothing, and submits no form value. Like a natively disabled button, it runs no caller event handler other than focus and blur, and a press on it reaches no handler. A focused disabled trigger shows a keyboard focus ring, dimmed with the rest of the control (WCAG 2.2 SC 2.4.7).+- Keyboard and screen-reader users can now reach a disabled `Link` or `ClickableCard`, and the buttons of a disabled `Token`. Before, they rendered the native `disabled` attribute or `tabIndex={-1}`, so Tab skipped them. Now each disabled control exposes `aria-disabled="true"` and keeps the Tab stop it has when enabled, while activation by click, Enter or Space, `onClick`, removal and navigation stay blocked; a disabled Link keeps no live destination and is exposed with the link role. A `Popover` no longer opens from a wrapped or `anchorRef` trigger marked `aria-disabled="true"` (for example a disabled `Button` with a `tooltip`), including for a click dispatched straight on the trigger; before, such a click opened it. No API changes.+- Keyboard and screen-reader users can now reach a disabled `Selector` and hear that it is unavailable (WCAG 2.2 SC 2.1.1 and 4.1.2). Before, its trigger rendered the native `disabled` attribute and `tabIndex={-1}`, so Tab skipped it and a focused trigger lost focus when disabled; now it exposes `aria-disabled="true"`, keeps focus, still opens nothing, and submits no form value. Like a natively disabled button, it runs no caller event handler other than focus and blur, and a press on it reaches no handler. A focused disabled trigger shows a keyboard focus ring, dimmed with the rest of the control (WCAG 2.2 SC 2.4.7).+- `Selector` options in a narrow list now shrink and truncate a long label with an ellipsis instead of being clipped past the list edge.+- `Switch`: a busy switch announces "Loading" once per busy start. Under React StrictMode the announcement used to be made twice.+- `TimeInput`: keyboard and screen-reader users can now reach a disabled field, or a busy bottom-sheet field, and hear that it is disabled. It no longer renders native `disabled` on its typed, native-picker or touch input or its picker button: they keep their place in the focus order and expose `aria-disabled`, while typing, arrow-key adjustment, opening, submitting a surrounding form with Enter, and a caller's `onClick` stay blocked, a draft typed before the field became disabled is dropped, and a focused disabled field shows its focus ring. Tests that query a disabled or busy TimeInput with `toBeDisabled()` or `:disabled` should check `aria-disabled="true"` instead.+- Pages that use `Timestamp` with an absolute format (`date`, `time`, `date_time` and the other fixed formats) now prerender in Next.js with `cacheComponents` turned on, where they used to fail the build: `Timestamp` no longer reads the current time while rendering on the server, and absolute formats never read the clock. `relative`, `relative_short` and `auto` read the clock on the client only: a server render or static prerender shows the full date and time in UTC, labelled, and the client switches to the format's normal output right after hydration, so server and client markup now always match. Client-only rendering is unchanged. No API changes ([#7883](https://github.com/facebook/astryx/pull/7883)).+- `Tooltip`: moving the pointer straight from the trigger onto the tooltip in one step no longer hides it, so it stays open while hovered (WCAG 2.2 SC 1.4.13).+- A `SideNavItem` in a collapsed `SideNav` now shows its tooltip on hover and gets `aria-describedby`, even when the item first appears inside an already-collapsed `SideNav`, the common case for saved collapse state. Before, only an item that collapsed after it appeared got a tooltip. Fixes [#7692](https://github.com/facebook/astryx/issues/7692).++ A `Tooltip` with an `anchorRef` that renders inside the very element the ref points at, as `SideNavItem` does, now attaches however it mounted. The effect now re-checks the anchor once the commit has finished attaching refs; event listeners and the `aria-describedby` merge and restore are unchanged.++- `TopNav` on narrow screens: a long `TopNavHeading` now gives way (it truncates with an ellipsis, or wraps when the heading is a link) instead of pushing the end content and the menu toggle past the edge of the bar, and the mobile drawer's close button is back on screen.+- `Typeahead`: clearing the value while editing it now empties the input and reports `onChangeQuery('')`, instead of leaving the old label in a field with no value. Fixes [#7038](https://github.com/facebook/astryx/issues/7038).++#### Performance++- Pages with many code blocks, such as a long Markdown document, paint sooner on first load: `CodeBlock` inserts its syntax-highlight rules before the first layout read instead of after it, which cut first paint by 16–19% in 100–500 KB test documents ([#7875](https://github.com/facebook/astryx/pull/7875)). The rules and the highlighted output are unchanged.+- Pages that update around a long `Markdown` document stay responsive: Markdown skips re-rendering its document when a parent re-renders without changing the text or any rendering prop, and a link handler passed as a new function on each render no longer forces that work. The rendered output is unchanged.++#### Documentation++- The `DropdownMenuItem` docs now explain when an item is an action or a destination, disabled items, and supporting content.++#### Contributors++Thanks to everyone who contributed to this release:++- @aashish254+- @cixzhang+- @ejhammond+- @HelloOjasMutreja+- @josephfarina+- @kyu-rong+- @Pushpak731+- @vjeux++---+# 0.7.2#### Experimental APIsdiff --git a/packages/richtext/CHANGELOG.md b/packages/richtext/CHANGELOG.mdindex 2cfb729aff..4aaeee69c3 100644--- a/packages/richtext/CHANGELOG.md+++ b/packages/richtext/CHANGELOG.md@@ -1,5 +1,9 @@# @astryxdesign/richtext+# 0.7.3++---+# 0.7.2#### New Featuresdiff --git a/packages/themes/butter/CHANGELOG.md b/packages/themes/butter/CHANGELOG.mdindex e268247cea..d37804d3f0 100644--- a/packages/themes/butter/CHANGELOG.md+++ b/packages/themes/butter/CHANGELOG.md@@ -1,5 +1,19 @@# @xds/theme-butter+# 0.7.3++#### Fixes++- The butter, stone, and y2k themes no longer show the secondary hover fill on a disabled `ComplexSelector` trigger, whether the trigger is natively disabled or exposes `aria-disabled="true"`, the focusable form every disabled control now uses. Before, the guard only recognized a natively disabled trigger. The themes `astryx theme eject` copies carry the same guard.++#### Contributors++Thanks to everyone who contributed to this release:++- @cixzhang++---+# 0.7.2---diff --git a/packages/themes/chocolate/CHANGELOG.md b/packages/themes/chocolate/CHANGELOG.mdindex 34dd5bf741..3d9640e45f 100644--- a/packages/themes/chocolate/CHANGELOG.md+++ b/packages/themes/chocolate/CHANGELOG.md@@ -1,5 +1,9 @@# @xds/theme-chocolate+# 0.7.3++---+# 0.7.2---diff --git a/packages/themes/gothic/CHANGELOG.md b/packages/themes/gothic/CHANGELOG.mdindex 00593e8be4..58eff9fce4 100644--- a/packages/themes/gothic/CHANGELOG.md+++ b/packages/themes/gothic/CHANGELOG.md@@ -1,5 +1,9 @@# @xds/theme-gothic+# 0.7.3++---+# 0.7.2---diff --git a/packages/themes/matcha/CHANGELOG.md b/packages/themes/matcha/CHANGELOG.mdindex d74fd3d1ba..66a00b7434 100644--- a/packages/themes/matcha/CHANGELOG.md+++ b/packages/themes/matcha/CHANGELOG.md@@ -1,5 +1,9 @@# @xds/theme-matcha+# 0.7.3++---+# 0.7.2---diff --git a/packages/themes/neutral/CHANGELOG.md b/packages/themes/neutral/CHANGELOG.mdindex bf1518652d..ca21143253 100644--- a/packages/themes/neutral/CHANGELOG.md+++ b/packages/themes/neutral/CHANGELOG.md@@ -1,5 +1,9 @@# @xds/theme-neutral+# 0.7.3++---+# 0.7.2---diff --git a/packages/themes/stone/CHANGELOG.md b/packages/themes/stone/CHANGELOG.mdindex 788f71178c..b4dcb776de 100644--- a/packages/themes/stone/CHANGELOG.md+++ b/packages/themes/stone/CHANGELOG.md@@ -1,5 +1,19 @@# @xds/theme-stone+# 0.7.3++#### Fixes++- The butter, stone, and y2k themes no longer show the secondary hover fill on a disabled `ComplexSelector` trigger, whether the trigger is natively disabled or exposes `aria-disabled="true"`, the focusable form every disabled control now uses. Before, the guard only recognized a natively disabled trigger. The themes `astryx theme eject` copies carry the same guard.++#### Contributors++Thanks to everyone who contributed to this release:++- @cixzhang++---+# 0.7.2---diff --git a/packages/themes/y2k/CHANGELOG.md b/packages/themes/y2k/CHANGELOG.mdindex 04114508ed..0f1df86201 100644--- a/packages/themes/y2k/CHANGELOG.md+++ b/packages/themes/y2k/CHANGELOG.md@@ -1,5 +1,19 @@# @xds/theme-y2k+# 0.7.3++#### Fixes++- The butter, stone, and y2k themes no longer show the secondary hover fill on a disabled `ComplexSelector` trigger, whether the trigger is natively disabled or exposes `aria-disabled="true"`, the focusable form every disabled control now uses. Before, the guard only recognized a natively disabled trigger. The themes `astryx theme eject` copies carry the same guard.++#### Contributors++Thanks to everyone who contributed to this release:++- @cixzhang++---+# 0.7.2---