An open source design system that's fully customizable and agent ready
TypeScript
refactor(cli): consolidate authoring into @astryxdesign/cli/authoring (combined stack) (#4623)
Joey19a921d434c8
diff --git a/.changeset/cli-authoring-consolidation.md b/.changeset/cli-authoring-consolidation.mdnew file mode 100644index 0000000000..21def3cb11--- /dev/null+++ b/.changeset/cli-authoring-consolidation.md@@ -0,0 +1,12 @@+---+'@astryxdesign/cli': minor+---++[breaking] CLI — authoring is consolidated into a single entrypoint, `@astryxdesign/cli/authoring`, that exposes only TYPES (the plain objects authors write) and PARSERS (the CLI's load-boundary validators). Zod is sealed inside each parser and never exported.++- **The `create*` factories are removed** (`createConfig`, `createIntegration`, `createComponentDoc`, `createFunctionDoc`, `createDoc`, `createPageTemplate`, `createBlockTemplate`, `createCodemod`, `createConfigCodemod`). Author a plain object and stamp its `type` directly (`{type: 'component', ...}`, `{type: 'page', ...}`, `{type: 'code', ...}`); config and integration manifests are plain objects with no discriminant.+- **Import authoring types from `@astryxdesign/cli/authoring`** — the doc types `ComponentDoc`, `HookDoc`, `ReferenceDoc`, `TemplateDoc`, and the project-file types `AstryxConfig`, `AstryxIntegration`, `AstryxCodemod`. The old split surfaces (`@astryxdesign/cli/{config,doc,integration,template,codemod}` and the authoring exports of `@astryxdesign/core`) are superseded.+- **Doc field types are renamed to explicit, domain-prefixed names** so the surface reads clearly: `PropDoc → ComponentPropDoc`, `ThemingTarget → ComponentThemingTarget`, `ComponentVar → ComponentThemingVar`, `DerivedVar → ComponentThemingDerivedVar`, `ElementDescriptor → ComponentSlotElement`, `GroupDoc → ComponentGroupDoc`, `TranslationDoc → ComponentTranslationDoc`, `ExampleDoc/AnatomyElement/BestPractice/PlaygroundConfig → Component*`, and `ContentBlock/TokenPreviewType → Reference*`. The authorable entry types (`ComponentDoc`/`HookDoc`/`ReferenceDoc`/`TemplateDoc`) are unchanged.+- **`astryx upgrade` migrates you automatically.** Three codemods ship in this release: `unwrap-authoring-factories` rewrites every `create*` call to the plain stamped object, `migrate-authoring-imports` repoints the import specifiers to `@astryxdesign/cli/authoring`, and `rename-authoring-doctypes` applies the doc field-type renames (imports, type references, and JSDoc `@type` refs).++@josephfarinadiff --git a/.changeset/core-authoring-removal.md b/.changeset/core-authoring-removal.mdnew file mode 100644index 0000000000..613bdc802a--- /dev/null+++ b/.changeset/core-authoring-removal.md@@ -0,0 +1,7 @@+---+'@astryxdesign/core': minor+---++[breaking] Core — the authoring surfaces move to `@astryxdesign/cli/authoring`. `@astryxdesign/core/authoring` (`createIntegration`/`createPageTemplate`/`createBlockTemplate`/`createComponentDoc`/`createFunctionDoc`/`createDoc` and their types) and `@astryxdesign/core/config` (`createConfig` + `AstryxConfig`) are removed. The doc-type vocabulary re-exported from `@astryxdesign/core` (`ComponentDoc`, `ReferenceDoc`, `ComponentPropDoc`, `ComponentTranslationDoc`, …) is now a deprecated alias that re-exports from `@astryxdesign/cli/authoring` and will be removed next release. Author docs/configs/integrations as plain objects and import types from `@astryxdesign/cli/authoring`; `astryx upgrade` repoints existing imports automatically.++@josephfarinadiff --git a/.claude/skills/dense-compression-protocol.md b/.claude/skills/dense-compression-protocol.mdindex 31eaa6c1c6..3bc1a23c79 100644--- a/.claude/skills/dense-compression-protocol.md+++ b/.claude/skills/dense-compression-protocol.md@@ -4,12 +4,12 @@ Apply this protocol to create a dense translation for an Astryx component `.doc.## Purpose-Produce a `docsDense` `TranslationDoc` that compresses the prose of a component's `docs` export while preserving every piece of guidance an agent needs to call the API correctly. Dense is a translation, not a different document — same information, fewer tokens.+Produce a `docsDense` `ComponentTranslationDoc` that compresses the prose of a component's `docs` export while preserving every piece of guidance an agent needs to call the API correctly. Dense is a translation, not a different document — same information, fewer tokens.-## TranslationDoc Shape+## ComponentTranslationDoc Shape```js-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'compressed component description',features: ['compressed feature 1', 'compressed feature 2'],diff --git a/.claude/skills/writing-component-docs.md b/.claude/skills/writing-component-docs.mdindex 1375c06465..93a8d9d450 100644--- a/.claude/skills/writing-component-docs.md+++ b/.claude/skills/writing-component-docs.md@@ -6,11 +6,11 @@ Every component directory has a `{Name}.doc.mjs` file with structured documentat## Exports-| Export | Type | Purpose | Required? |-| ----------- | ---------------- | -------------------------------- | ------------------------------- |-| `docs` | `ComponentDoc` | English docs (source of truth) | Yes |-| `docsZh` | `TranslationDoc` | Chinese Simplified prose overlay | Optional, falls back to English |-| `docsDense` | `TranslationDoc` | Compressed prose overlay | Optional, falls back to English |+| Export | Type | Purpose | Required? |+| ----------- | ------------------------- | -------------------------------- | ------------------------------- |+| `docs` | `ComponentDoc` | English docs (source of truth) | Yes |+| `docsZh` | `ComponentTranslationDoc` | Chinese Simplified prose overlay | Optional, falls back to English |+| `docsDense` | `ComponentTranslationDoc` | Compressed prose overlay | Optional, falls back to English |**English first.** When adding a new component, write the `docs` export. That's it. Both `--lang zh` and `--lang dense` fall back to English if their exports don't exist. Translations are generated from English by AI and can be added later.@@ -33,10 +33,10 @@ This means:## Writing `docs` (English)-See `docs-types.ts` for the full type definition.+See `@astryxdesign/cli/authoring` for the full type definitions.```js-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Button',description:@@ -70,7 +70,7 @@ export const docs = {## Writing Translations (docsZh / docsDense)-Translations use the `TranslationDoc` type. Only prose fields, no structure.+Translations use the `ComponentTranslationDoc` type. Only prose fields, no structure.```js// -------------------------------------------------------@@ -79,7 +79,7 @@ Translations use the `TranslationDoc` type. Only prose fields, no structure.// See .context/decisions/dense-compression-protocol.md// --------------------------------------------------------/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'multi-variant btn w/ loading state',features: [@@ -120,7 +120,7 @@ astryx --detail compact --lang dense component Button # Compact + compressed## Reference Docs (non-component)-Reference docs (tokens, principles, theme) use a different type: `ReferenceDoc` from `docs-types.ts`.+Reference docs (tokens, principles, theme) use a different type: `ReferenceDoc` from `@astryxdesign/cli/authoring`.They live in `packages/cli/docs/` as `.doc.mjs` files with translations in `*.doc.dense.mjs` and `*.doc.zh.mjs`.diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.mdindex 388aa4dea0..6b77f1a105 100644--- a/.github/copilot-instructions.md+++ b/.github/copilot-instructions.md@@ -33,10 +33,10 @@ until they merge to `main`.- **TypeScript strict**, functional components with `forwardRef`, exported proptypes alongside the component, and a set `displayName`.- **Changesets.** Consumer-visible changes need a changeset (`pnpm- changeset:new`) with a `[category]` first line and a `@handle` contributor+changeset:new`) with a `[category]` first line and a `@handle` contributorline. Pre-1.0 bumps are always `patch`; signal breaking changes with the`[breaking]` category, not a `major` bump.-- **Keep code comments minimal.** Comment *why*, not *what*. Flag narration+- **Keep code comments minimal.** Comment _why_, not _what_. Flag narrationcomments, commented-out code, and changelog-in-code.Focus review on production and consumer-facing changes. Do not block on@@ -55,7 +55,7 @@ never to decide whether it blocks.When a finding is blocking, **lead with 🔴, recommend request-changes, cite thespecific rule, and point at the concrete fix** (the token to use, the API asibling already establishes, the accessible path that must work). Separate the-*finding* from the *remedy*: a blocking bug stays blocking even when the exact+_finding_ from the _remedy_: a blocking bug stays blocking even when the exactfix is an open question — state the block, then ask about the approach.**🔴 Always blocking:**@@ -71,7 +71,7 @@ fix is an open question — state the block, then ask about the approach.shadow — token or derived-from-token, never a raw value.- **Removing a themeable surface.** Replacing a token, a `themeProps` target, ora `MediaTheme`-flowed override with a fixed value so a theme can no longer- influence it. Ask *"is this still themeable?"* before *"is this lint-clean?"*.+ influence it. Ask _"is this still themeable?"_ before _"is this lint-clean?"_.A value pinned on `xstyle` / `style` sits at the top of the cascade (see theCascade Model in [Theming Infrastructure](https://github.com/facebook/astryx/wiki/Theming-Infrastructure))and takes that surface out of the theme system — blocking even when it renders@@ -84,7 +84,7 @@ fix is an open question — state the block, then ask about the approach.hover-gated reveals break **hybrid devices** (touchscreen laptops report`hover: hover` + `pointer: fine`), so a control that only appears on `:hover`can leave an invisible-but-clickable element — especially destructive ones.- Prefer `@media (any-pointer: coarse)` ("the device *has* touch", incl.+ Prefer `@media (any-pointer: coarse)` ("the device _has_ touch", incl.hybrids) over `hover: none` for "always show". Also blocking: focus lost onstate change, a focusable element removed from the DOM, or an interactivetarget below the minimum size.@@ -98,7 +98,7 @@ fix is an open question — state the block, then ask about the approach.etc.), dropping `...rest` / passthrough, or `xstyle`/`className`/`style`overwritten instead of merged via `mergeProps`. Public API shape is hard towalk back — treat it as blocking, not a nit.-- **A real bug or breaking change**, including *latent* ones: a passthrough+- **A real bug or breaking change**, including _latent_ ones: a passthroughsilently dropped, a feature that breaks when composed with another, aregression in an existing behavior.- **Public-repo leak** — internal identifiers (T/D/S/P-numbers), infra names,@@ -107,7 +107,7 @@ fix is an open question — state the block, then ask about the approach.- **Missing changeset** for a consumer-visible change.**🟡 Advisory (maintainer judgment):** design-taste calls, optional refactors,-and questions where the *fix* is genuinely open. The underlying *finding* may+and questions where the _fix_ is genuinely open. The underlying _finding_ maystill be blocking — if so, file it as 🔴 and route only the remedy to judgment.**🟢 Clean:** none of the above, within what's verifiable. Never a merge@@ -135,9 +135,9 @@ wrote it, and do not treat an owner's PR as pre-vetted.> finding at its true severity for every PR. See> [Review gate](./REVIEW_GATE.md) for the gating policy.-**High-risk vs. low-risk areas.** *High-risk* = public API changes, new-components/modules, new packages, or a suspected regression. *Low-risk* = themes-(`packages/themes/**`), templates (`packages/cli/templates/**`), sandbox+**High-risk vs. low-risk areas.** _High-risk_ = public API changes, new+components/modules, new packages, or a suspected regression. _Low-risk_ = themes+(`packages/themes/**`), templates (`packages/cli/assets/templates/**`), sandbox(`apps/sandbox/**`), storybook (`apps/storybook/**`), and docsite(`apps/docsite/**`). The low-risk carve-out applies to the **code** gate; thedesign gate is not area-gated (a theme or template edit is exactly where design@@ -170,7 +170,7 @@ new component in packages/core (needs:code-review)`.verdict/recommendation, and cross-cutting judgment (design blast radius,API-shape concerns, "needs human judgment" notes). One per review.- **Inline comments** anchor to a specific line/hunk and are reserved for- concrete, localized findings: a convention violation on *this* line, a risky+ concrete, localized findings: a convention violation on _this_ line, a riskydiff hunk, a specific fix. Keep them actionable and few — don't restate thesummary inline, and don't inline-comment a point that is really onecross-cutting concern. If a finding isn't tied to a specific line, it belongs@@ -181,31 +181,31 @@ new component in packages/core (needs:code-review)`.A deterministic workflow (`.github/workflows/review-signal.yml`) applies twolabels from the changed paths + author, and disables auto-merge when eitherfires. **It posts no explanation of its own — that's your job.** When a PR-carries one of these labels, explain *why* review is needed with real judgment+carries one of these labels, explain _why_ review is needed with real judgment(the workflow only knows the area; you assess the actual change):- **`needs:code-review`** — a high-risk **code** area (new package, newcomponent/module, public API surface). **Lead with 🔴 Code review required**- and focus on *what* a human should scrutinize — API shape,+ and focus on _what_ a human should scrutinize — API shape,regression/blast-radius, spec/lab coverage — rather than re-deciding whetherit's risky.- **`needs:design-review`** — a **design-affecting** change (StyleX,theme/token files, templates, a new component). Lead with 🔴 and evaluate thechange against **Design Conventions** — the checkable smells especially:tokens-not-raw-values, 4px-grid spacing, concentric radius- (`r_inner ≈ r_outer − gap`), WCAG AA contrast in light *and* dark, alpha (not+ (`r_inner ≈ r_outer − gap`), WCAG AA contrast in light _and_ dark, alpha (notopaque) interaction overlays, status paired with an icon (never color alone),elevation↔z-index order, `transform`/`opacity`-only motion with reduced-motionhonored, and type hierarchy ≥1.25 / leading ≥1.3 / body ≥12px. The- path-detection only knows a design *area* was touched — you supply the design+ path-detection only knows a design _area_ was touched — you supply the designcritique.-Both labels are path-based determinations of *area*, so treat them as+Both labels are path-based determinations of _area_, so treat them asauthoritative for whether review is needed:- **The labels sharpen your review; they never replace your judgment.** Stillraise 🟡 for regression or judgment concerns the path detection can't see- (e.g. an unintended behavior change) even on an *unlabeled* PR.+ (e.g. an unintended behavior change) even on an _unlabeled_ PR.- **You do not set or remove these labels.** The workflow applies them and anentitled owner's approval clears them. One-way: the workflow informs you; younever gate the merge.diff --git a/.github/instructions/templates.instructions.md b/.github/instructions/templates.instructions.mdindex da06103c04..f52b5cc405 100644--- a/.github/instructions/templates.instructions.md+++ b/.github/instructions/templates.instructions.md@@ -1,13 +1,14 @@----applyTo: "packages/cli/templates/**"+applyTo: 'packages/cli/assets/templates/**'---# Template review instructionsThese are Astryx **templates** — page templates (`templates/pages/<name>/page.tsx`-+ `template.doc.mjs`) and block templates (`templates/blocks/.../[Name].tsx` +-`[Name].doc.mjs`). They are copy-paste examples, so they carry design-responsibility beyond any single component.++- `template.doc.mjs`) and block templates (`templates/blocks/.../[Name].tsx` ++ `[Name].doc.mjs`). They are copy-paste examples, so they carry design+ responsibility beyond any single component.> **Scope note.** These files also match `packages.instructions.md`. For> template files, the component-authoring checklist there (forwardRef,@@ -26,14 +27,14 @@ hard-block).Quick triage before grading. Two questions:-- **New template vs. edit to an existing one?** A *new* template that lands+- **New template vs. edit to an existing one?** A _new_ template that landsalready-visible (its `.doc.mjs` isn't `hidden: true`) skipped hidden-staging —flag it (see Lifecycle note) and hold it to the full B+ bar. An edit to anexisting template is scoped to what changed.- **Content-only vs. structural?** A copy/mock-data tweak is a fast grade(purity + metadata); a layout/root/`AppShell` change needs the full Layout &Structure pass. State it briefly, e.g. `Triage: edit to existing template,- layout change → full structure pass`.+layout change → full structure pass`.## Score the 7 categories (100 pts)@@ -54,13 +55,13 @@ Quick triage before grading. Two questions:`className`/`stylex.props()` usage. Token-valued Astryx props do **not**count.4. **Layout & structure (15)** —- - *Page templates:* root is `Layout` or `Center`, never `AppShell` or a raw+ - _Page templates:_ root is `Layout` or `Center`, never `AppShell` or a raw`<div>` — **exception:** `Shell -` category templates must root in`AppShell` with global `TopNav`/`SideNav`. No global app chrome otherwise(in-page nav → `LayoutPanel` start slot; page header → `LayoutHeader`).Responsive grids use `Grid` + `minChildWidth`; centering uses `Center`.Single page only — navigation links inert (`href="#"` / `onClick`).- - *Block templates:* not wrapped in `AppShell`, single-pattern focus,+ - _Block templates:_ not wrapped in `AppShell`, single-pattern focus,~20–100 lines.5. **Doc metadata (10)** — read the `.doc.mjs`. Pages need`type:'page'`, `name`, `description`, `isReady`. Blocks need `type:'block'`,@@ -98,7 +99,7 @@ dark.Templates are authored **hidden** and revealed only after they clear this bar(`hidden: true` / a `hiddenComponents` entry in the `.doc.mjs` keeps a templateout of `--list`). The thing to catch is a template that **skips hidden-staging**:-**flag a diff that adds a *new* template/block whose `.doc.mjs` is not+**flag a diff that adds a _new_ template/block whose `.doc.mjs` is not`hidden: true`** — it's publicly listed the moment it lands and may not behardened yet. Ask the author to confirm it grades **B or above**, or to add`hidden: true` until it does. Seediff --git a/.github/scripts/api-cli-parity-test.mjs b/.github/scripts/api-cli-parity-test.mjsindex f147cc5351..df83dd2230 100644--- a/.github/scripts/api-cli-parity-test.mjs+++ b/.github/scripts/api-cli-parity-test.mjs@@ -19,7 +19,7 @@ import * as path from 'node:path';import * as fs from 'node:fs';const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../..');-const CLI = path.join(ROOT, 'packages/cli/bin/astryx.mjs');+const CLI = path.join(ROOT, 'packages/cli/clients/cli/bin/astryx.mjs');const skipBaseline = process.argv.includes('--no-baseline');const baselineRef = process.argv.includes('--baseline')? process.argv[process.argv.indexOf('--baseline') + 1]@@ -316,7 +316,12 @@ if (!skipBaseline) {if (!fs.existsSync(path.join(wt, 'node_modules'))) {execSync('pnpm install --frozen-lockfile 2>/dev/null || true', {cwd: wt, timeout: 60_000});}- const oldCli = path.join(wt, 'packages/cli/bin/astryx.mjs');+ const oldCli =+ [+ path.join(wt, 'packages/cli/clients/cli/bin/astryx.mjs'),+ path.join(wt, 'packages/cli/bin/astryx.mjs'),+ ].find(p => fs.existsSync(p)) ??+ path.join(wt, 'packages/cli/clients/cli/bin/astryx.mjs');for (const r of results) {const old = spawnSync(process.execPath, [oldCli, '--json', ...r.cli], {cwd: wt, encoding: 'utf8', timeout: 30_000,diff --git a/.github/scripts/cli-json-smoke-test.mjs b/.github/scripts/cli-json-smoke-test.mjsindex 3f15f1d3ad..d454b30ba6 100644--- a/.github/scripts/cli-json-smoke-test.mjs+++ b/.github/scripts/cli-json-smoke-test.mjs@@ -25,7 +25,7 @@ import * as path from 'node:path';const __dirname = path.dirname(fileURLToPath(import.meta.url));const ROOT = path.resolve(__dirname, '../..');-const CLI = path.join(ROOT, 'packages/cli/bin/astryx.mjs');+const CLI = path.join(ROOT, 'packages/cli/clients/cli/bin/astryx.mjs');let passed = 0;let failed = 0;diff --git a/.github/scripts/cli-smoke-test.mjs b/.github/scripts/cli-smoke-test.mjsindex f51c46e9a3..adea930130 100644--- a/.github/scripts/cli-smoke-test.mjs+++ b/.github/scripts/cli-smoke-test.mjs@@ -25,7 +25,7 @@ import * as path from 'node:path';const __dirname = path.dirname(fileURLToPath(import.meta.url));const ROOT = path.resolve(__dirname, '../..');-const CLI = path.join(ROOT, 'packages/cli/bin/astryx.mjs');+const CLI = path.join(ROOT, 'packages/cli/clients/cli/bin/astryx.mjs');let passed = 0;let failed = 0;diff --git a/.github/scripts/codemod-verify.mjs b/.github/scripts/codemod-verify.mjsindex 215fdb93d9..6ac2dd8732 100644--- a/.github/scripts/codemod-verify.mjs+++ b/.github/scripts/codemod-verify.mjs@@ -20,8 +20,8 @@import {execSync} from 'node:child_process';import * as fs from 'node:fs';import * as path from 'node:path';-import {getTransformsBetween} from '../../packages/cli/codemods/registry.mjs';-import {runCodemods} from '../../packages/cli/codemods/runner.mjs';+import {getTransformsBetween} from '../../packages/cli/assets/codemods/registry.mjs';+import {runCodemods} from '../../packages/cli/assets/codemods/runner.mjs';// Consumer directories whose changes should be reproducible by codemodsconst CONSUMER_DIRS = ['apps/storybook', 'apps/sandbox', 'e2e'];@@ -39,7 +39,8 @@ function getChangedFiles() {}function getCodemodVersions(changedFiles) {- const versionPattern = /^packages\/cli\/src\/codemods\/transforms\/v([\d.]+)\//;+ const versionPattern =+ /^packages\/cli\/assets\/codemods\/transforms\/v([\d.]+)\//;const versions = new Set();for (const file of changedFiles) {const match = file.match(versionPattern);@@ -117,7 +118,7 @@ async function main() {const latestVersion = codemodVersions[codemodVersions.length - 1];// Find the version just before the earliest modified one- const {versions: allVersions} = await import('../../packages/cli/codemods/registry.mjs');+ const {versions: allVersions} = await import('../../packages/cli/assets/codemods/registry.mjs');const earliestIdx = allVersions.indexOf(earliestVersion);const fromVersion = earliestIdx > 0 ? allVersions[earliestIdx - 1] : '0.0.0';diff --git a/.github/workflows/codemod-verify.yml b/.github/workflows/codemod-verify.ymlindex 8d46cd1c0a..210675ed7d 100644--- a/.github/workflows/codemod-verify.yml+++ b/.github/workflows/codemod-verify.yml@@ -17,7 +17,7 @@ on:pull_request:branches: ["main"]paths:- - "packages/cli/codemods/**"+ - "packages/cli/assets/codemods/**"permissions: {}diff --git a/CLAUDE.md b/CLAUDE.mdindex 71974f4aa1..c35364089e 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -57,7 +57,7 @@ For architectural context, decisions, and research, see the **[GitHub Wiki](http- **Research** — AI + Design Systems, AI Model Trajectory, Swizzle Ergonomics- **Future** — Animation System, RSC Utilities, Distribution Strategy-For component-specific documentation, see the `{Name}.doc.mjs` file in each component directory under `packages/core/src/` (e.g. `Button/Button.doc.mjs`). These are plain JS files with JSDoc type annotations exporting a `ComponentDoc` object (typed via `packages/core/src/docs-types.ts`).+For component-specific documentation, see the `{Name}.doc.mjs` file in each component directory under `packages/core/src/` (e.g. `Button/Button.doc.mjs`). These are plain JS files with JSDoc type annotations exporting a `ComponentDoc` object (typed via `@astryxdesign/cli/authoring`).## Documentation Standard@@ -119,7 +119,7 @@ Documentation lives in two places:<!-- ASTRYX-CLI:START -->Astryx CLI|Run from repo root. Load agent docs before any component work.-ASTRYX="node packages/cli/bin/astryx.mjs"+ASTRYX="node packages/cli/clients/cli/bin/astryx.mjs"BOOTSTRAP (run every branch, <500ms):$ASTRYX help # discover all commands and options$ASTRYX docs # list available doc topicsdiff --git a/README.md b/README.mdindex fdd09ca3f4..aed28999f6 100644--- a/README.md+++ b/README.md@@ -59,7 +59,7 @@ For reliable CLI access, add a script to your `package.json`:```json"scripts": {- "astryx": "node node_modules/@astryxdesign/cli/bin/astryx.mjs"+ "astryx": "node node_modules/@astryxdesign/cli/clients/cli/bin/astryx.mjs"}```diff --git a/apps/docsite/postcss.config.js b/apps/docsite/postcss.config.jsindex 6fb2a25480..aa4f8352ab 100644--- a/apps/docsite/postcss.config.js+++ b/apps/docsite/postcss.config.js@@ -11,7 +11,7 @@ module.exports = {// StyleX too — otherwise template-only classes ship without CSS.include: ['src/**/*.{js,jsx,ts,tsx}',- '../../packages/cli/templates/**/*.{js,jsx,ts,tsx}',+ '../../packages/cli/assets/templates/**/*.{js,jsx,ts,tsx}',],babelConfig: {babelrc: false,diff --git a/apps/docsite/scripts/backfill-display-name.mjs b/apps/docsite/scripts/backfill-display-name.mjsindex 7dd39d7f48..7439cf23d4 100644--- a/apps/docsite/scripts/backfill-display-name.mjs+++ b/apps/docsite/scripts/backfill-display-name.mjs@@ -5,7 +5,7 @@* @file backfill-display-name.mjs** One-time codemod that adds a `displayName` field to every doc file in- * the monorepo (`.doc.mjs` under packages/cli/templates and packages/{core,lab}/src).+ * the monorepo (`.doc.mjs` under packages/cli/assets/templates and packages/{core,lab}/src).** Why: the docsite gallery + sidebar previously derived a human-readable* version of each component name at render time via a regex. Joey called@@ -14,7 +14,7 @@* the field across all existing doc files so the convention can be enforced.** Behavior:- * - Finds every `.doc.mjs` file under packages/cli/templates and+ * - Finds every `.doc.mjs` file under packages/cli/assets/templates and* packages/{core,lab}/src.* - Reads the file, extracts the `name:` literal.* - Skips files that already declare a `displayName:` field.@@ -48,7 +48,7 @@ const DOCSITE_ROOT = path.resolve(__dirname, '..');const REPO_ROOT = path.resolve(DOCSITE_ROOT, '..', '..');const SCAN_ROOTS = [- path.join(REPO_ROOT, 'packages', 'cli', 'templates'),+ path.join(REPO_ROOT, 'packages', 'cli', 'assets', 'templates'),path.join(REPO_ROOT, 'packages', 'core', 'src'),path.join(REPO_ROOT, 'packages', 'lab', 'src'),];diff --git a/apps/docsite/scripts/generate-data.mjs b/apps/docsite/scripts/generate-data.mjsindex 69adcf9ec9..3579f952f4 100644--- a/apps/docsite/scripts/generate-data.mjs+++ b/apps/docsite/scripts/generate-data.mjs@@ -984,7 +984,7 @@ export const groupedComponents: Record<string, GroupedComponents> = ${JSON.strinasync function generateBlockRegistry() {console.log('Generating block registry...');- const BLOCKS_DIR = path.join(CLI_ROOT, 'templates', 'blocks');+ const BLOCKS_DIR = path.join(CLI_ROOT, 'assets', 'templates', 'blocks');const docFiles = findDocFilesRecursive(BLOCKS_DIR);const blocks = [];@@ -1091,7 +1091,7 @@ export const showcaseCount = ${showcaseCount};async function generateTemplateRegistry() {console.log('Generating template registry...');- const PAGES_DIR = path.join(CLI_ROOT, 'templates', 'pages');+ const PAGES_DIR = path.join(CLI_ROOT, 'assets', 'templates', 'pages');if (!fs.existsSync(PAGES_DIR)) {writeRegistry('templateRegistry.ts', `// Auto-generated — no templates found\nexport const templates = [];\nexport const templateCount = 0;\n`);return {templates: [], templateCount: 0};@@ -1162,7 +1162,7 @@ export const templateCount = ${templates.length};async function generateDocsRegistry() {console.log('Generating docs registry...');- const DOCS_DIR = path.join(CLI_ROOT, 'docs');+ const DOCS_DIR = path.join(CLI_ROOT, 'assets', 'docs');if (!fs.existsSync(DOCS_DIR)) {writeRegistry('docsRegistry.ts', `// Auto-generated — no docs found\nexport const docTopics = [];\nexport const docsCount = 0;\n`);return {docTopics: [], docsCount: 0};@@ -1356,7 +1356,7 @@ ${body}function generateShowcaseRegistry() {console.log('Generating showcase registry...');- const BLOCKS_DIR = path.join(CLI_ROOT, 'templates', 'blocks');+ const BLOCKS_DIR = path.join(CLI_ROOT, 'assets', 'templates', 'blocks');const SHOWCASE_OUT = path.join(OUT_DIR, 'showcases');// Clean and recreate@@ -1434,7 +1434,7 @@ ${importLines}function generateExampleRegistry() {console.log('Generating example registry...');- const BLOCKS_DIR = path.join(CLI_ROOT, 'templates', 'blocks');+ const BLOCKS_DIR = path.join(CLI_ROOT, 'assets', 'templates', 'blocks');const EXAMPLES_OUT = path.join(OUT_DIR, 'examples');if (fs.existsSync(EXAMPLES_OUT)) {diff --git a/apps/docsite/src/__tests__/data-extraction.test.ts b/apps/docsite/src/__tests__/data-extraction.test.tsindex 47cb3afb26..1439523521 100644--- a/apps/docsite/src/__tests__/data-extraction.test.ts+++ b/apps/docsite/src/__tests__/data-extraction.test.ts@@ -896,7 +896,10 @@ describe('exampleRegistry', () => {// "Selectable Card Multi".describe('block example title convention', () => {const blocksDir = fileURLToPath(- new URL('../../../../packages/cli/templates/blocks', import.meta.url),+ new URL(+ '../../../../packages/cli/assets/templates/blocks',+ import.meta.url,+ ),);function displayNameOf(relPath: string): string | null {diff --git a/apps/docsite/src/app/(site)/_landing/ThemesPreview.tsx b/apps/docsite/src/app/(site)/_landing/ThemesPreview.tsxindex 39fb6789b0..d392bb78fe 100644--- a/apps/docsite/src/app/(site)/_landing/ThemesPreview.tsx+++ b/apps/docsite/src/app/(site)/_landing/ThemesPreview.tsx@@ -15,7 +15,7 @@ import {shadowVars,spacingVars,} from '@astryxdesign/core/theme/tokens.stylex';-import {ThemeShowcaseStore} from '../../../../../../packages/cli/templates/pages/theme-showcase/page';+import {ThemeShowcaseStore} from '../../../../../../packages/cli/assets/templates/pages/theme-showcase/page';import {getThemeShowcaseContent} from '../../../components/themeShowcaseContent';import {themeObjects} from '../../../generated/themeRegistry';import {useThemeMode} from '../../providers';diff --git a/apps/docsite/src/components/ShowcaseThumbnail.tsx b/apps/docsite/src/components/ShowcaseThumbnail.tsxindex 4e456fdb3c..c90332523b 100644--- a/apps/docsite/src/components/ShowcaseThumbnail.tsx+++ b/apps/docsite/src/components/ShowcaseThumbnail.tsx@@ -93,7 +93,7 @@ function lazyShowcase(category: string, dirName: string) {() =>import(/* webpackChunkName: "showcase-[request]" */- `../../../../packages/cli/templates/blocks/${category}/${dirName}`+ `../../../../packages/cli/assets/templates/blocks/${category}/${dirName}`),);}diff --git a/apps/docsite/src/components/ThemePackagePage.tsx b/apps/docsite/src/components/ThemePackagePage.tsxindex fdc7c39e6e..36777521ce 100644--- a/apps/docsite/src/components/ThemePackagePage.tsx+++ b/apps/docsite/src/components/ThemePackagePage.tsx@@ -23,7 +23,7 @@ import {SelectableCard} from '@astryxdesign/core/SelectableCard';import {Selector} from '@astryxdesign/core/Selector';import {Divider} from '@astryxdesign/core/Divider';import {useMediaQuery} from '@astryxdesign/core/hooks';-import {ThemeShowcaseStore} from '../../../../packages/cli/templates/pages/theme-showcase/page';+import {ThemeShowcaseStore} from '../../../../packages/cli/assets/templates/pages/theme-showcase/page';import {getThemeShowcaseContent} from './themeShowcaseContent';import {buildPlaygroundHref} from './playgroundLink';import {packages} from '../generated/packageRegistry';diff --git a/apps/docsite/src/components/templateComponents.ts b/apps/docsite/src/components/templateComponents.tsindex fd4c1ba878..ab9c81118c 100644--- a/apps/docsite/src/components/templateComponents.ts+++ b/apps/docsite/src/components/templateComponents.ts@@ -9,7 +9,7 @@* single source of truth.** SYNC: when a page template is added under- * packages/cli/templates/pages/<slug>/, add a matching entry here.+ * packages/cli/assets/templates/pages/<slug>/, add a matching entry here.*/import {lazy} from 'react';@@ -20,136 +20,159 @@ export const TEMPLATE_COMPONENTS: Record<React.LazyExoticComponent<React.ComponentType>> = {'ai-chat': lazy(- () => import('../../../../packages/cli/templates/pages/ai-chat/page'),+ () =>+ import('../../../../packages/cli/assets/templates/pages/ai-chat/page'),),'ai-chat-landing': lazy(() =>- import('../../../../packages/cli/templates/pages/ai-chat-landing/page'),+ import('../../../../packages/cli/assets/templates/pages/ai-chat-landing/page'),),blank: lazy(- () => import('../../../../packages/cli/templates/pages/blank/page'),+ () => import('../../../../packages/cli/assets/templates/pages/blank/page'),),'centered-hero': lazy(- () => import('../../../../packages/cli/templates/pages/centered-hero/page'),+ () =>+ import('../../../../packages/cli/assets/templates/pages/centered-hero/page'),),'classic-gallery': lazy(() =>- import('../../../../packages/cli/templates/pages/classic-gallery/page'),+ import('../../../../packages/cli/assets/templates/pages/classic-gallery/page'),),'contact-form': lazy(- () => import('../../../../packages/cli/templates/pages/contact-form/page'),+ () =>+ import('../../../../packages/cli/assets/templates/pages/contact-form/page'),),dashboard: lazy(- () => import('../../../../packages/cli/templates/pages/dashboard/page'),+ () =>+ import('../../../../packages/cli/assets/templates/pages/dashboard/page'),),'dashboard-portfolio': lazy(() =>- import('../../../../packages/cli/templates/pages/dashboard-portfolio/page'),+ import('../../../../packages/cli/assets/templates/pages/dashboard-portfolio/page'),),'detail-page': lazy(- () => import('../../../../packages/cli/templates/pages/detail-page/page'),+ () =>+ import('../../../../packages/cli/assets/templates/pages/detail-page/page'),),documentation: lazy(- () => import('../../../../packages/cli/templates/pages/documentation/page'),+ () =>+ import('../../../../packages/cli/assets/templates/pages/documentation/page'),),'documentation-design': lazy(() =>- import('../../../../packages/cli/templates/pages/documentation-design/page'),+ import('../../../../packages/cli/assets/templates/pages/documentation-design/page'),),'documentation-technical': lazy(() =>- import('../../../../packages/cli/templates/pages/documentation-technical/page'),+ import('../../../../packages/cli/assets/templates/pages/documentation-technical/page'),),editor: lazy(- () => import('../../../../packages/cli/templates/pages/editor/page'),+ () => import('../../../../packages/cli/assets/templates/pages/editor/page'),),'file-explorer': lazy(- () => import('../../../../packages/cli/templates/pages/file-explorer/page'),+ () =>+ import('../../../../packages/cli/assets/templates/pages/file-explorer/page'),),'form-two-column': lazy(() =>- import('../../../../packages/cli/templates/pages/form-two-column/page'),+ import('../../../../packages/cli/assets/templates/pages/form-two-column/page'),),'gallery-hero': lazy(- () => import('../../../../packages/cli/templates/pages/gallery-hero/page'),+ () =>+ import('../../../../packages/cli/assets/templates/pages/gallery-hero/page'),+ ),+ ide: lazy(+ () => import('../../../../packages/cli/assets/templates/pages/ide/page'),),- ide: lazy(() => import('../../../../packages/cli/templates/pages/ide/page')),'kanban-board': lazy(- () => import('../../../../packages/cli/templates/pages/kanban-board/page'),+ () =>+ import('../../../../packages/cli/assets/templates/pages/kanban-board/page'),),library: lazy(- () => import('../../../../packages/cli/templates/pages/library/page'),+ () =>+ import('../../../../packages/cli/assets/templates/pages/library/page'),),login: lazy(- () => import('../../../../packages/cli/templates/pages/login/page'),+ () => import('../../../../packages/cli/assets/templates/pages/login/page'),),'login-card': lazy(- () => import('../../../../packages/cli/templates/pages/login-card/page'),+ () =>+ import('../../../../packages/cli/assets/templates/pages/login-card/page'),),'login-split': lazy(- () => import('../../../../packages/cli/templates/pages/login-split/page'),+ () =>+ import('../../../../packages/cli/assets/templates/pages/login-split/page'),),'login-sso': lazy(- () => import('../../../../packages/cli/templates/pages/login-sso/page'),+ () =>+ import('../../../../packages/cli/assets/templates/pages/login-sso/page'),),'mixed-gallery': lazy(- () => import('../../../../packages/cli/templates/pages/mixed-gallery/page'),+ () =>+ import('../../../../packages/cli/assets/templates/pages/mixed-gallery/page'),),'payment-form': lazy(- () => import('../../../../packages/cli/templates/pages/payment-form/page'),+ () =>+ import('../../../../packages/cli/assets/templates/pages/payment-form/page'),),'product-detail': lazy(() =>- import('../../../../packages/cli/templates/pages/product-detail/page'),+ import('../../../../packages/cli/assets/templates/pages/product-detail/page'),),'product-gallery': lazy(() =>- import('../../../../packages/cli/templates/pages/product-gallery/page'),+ import('../../../../packages/cli/assets/templates/pages/product-gallery/page'),),settings: lazy(- () => import('../../../../packages/cli/templates/pages/settings/page'),+ () =>+ import('../../../../packages/cli/assets/templates/pages/settings/page'),),'settings-dialog': lazy(() =>- import('../../../../packages/cli/templates/pages/settings-dialog/page'),+ import('../../../../packages/cli/assets/templates/pages/settings-dialog/page'),),'settings-sidebar': lazy(() =>- import('../../../../packages/cli/templates/pages/settings-sidebar/page'),+ import('../../../../packages/cli/assets/templates/pages/settings-sidebar/page'),),'side-gallery': lazy(- () => import('../../../../packages/cli/templates/pages/side-gallery/page'),+ () =>+ import('../../../../packages/cli/assets/templates/pages/side-gallery/page'),),'shell-nav': lazy(- () => import('../../../../packages/cli/templates/pages/shell-nav/page'),+ () =>+ import('../../../../packages/cli/assets/templates/pages/shell-nav/page'),),'shell-side-nav': lazy(() =>- import('../../../../packages/cli/templates/pages/shell-side-nav/page'),+ import('../../../../packages/cli/assets/templates/pages/shell-side-nav/page'),),'shell-top-nav': lazy(- () => import('../../../../packages/cli/templates/pages/shell-top-nav/page'),+ () =>+ import('../../../../packages/cli/assets/templates/pages/shell-top-nav/page'),),table: lazy(- () => import('../../../../packages/cli/templates/pages/table/page'),+ () => import('../../../../packages/cli/assets/templates/pages/table/page'),),'table-grouped': lazy(- () => import('../../../../packages/cli/templates/pages/table-grouped/page'),+ () =>+ import('../../../../packages/cli/assets/templates/pages/table-grouped/page'),),'table-page': lazy(- () => import('../../../../packages/cli/templates/pages/table-page/page'),+ () =>+ import('../../../../packages/cli/assets/templates/pages/table-page/page'),),'table-page-chart': lazy(() =>- import('../../../../packages/cli/templates/pages/table-page-chart/page'),+ import('../../../../packages/cli/assets/templates/pages/table-page-chart/page'),),'table-page-heatmap-status': lazy(() =>- import('../../../../packages/cli/templates/pages/table-page-heatmap-status/page'),+ import('../../../../packages/cli/assets/templates/pages/table-page-heatmap-status/page'),),'table-page-shoe-store-heatmap': lazy(() =>- import('../../../../packages/cli/templates/pages/table-page-shoe-store-heatmap/page'),+ import('../../../../packages/cli/assets/templates/pages/table-page-shoe-store-heatmap/page'),),};diff --git a/apps/docsite/src/components/themeShowcaseContent.ts b/apps/docsite/src/components/themeShowcaseContent.tsindex 41e9c6c952..b07d44974c 100644--- a/apps/docsite/src/components/themeShowcaseContent.ts+++ b/apps/docsite/src/components/themeShowcaseContent.ts@@ -16,7 +16,7 @@import type {ProductSpec,InventoryRow,-} from '../../../../packages/cli/templates/pages/theme-showcase/page';+} from '../../../../packages/cli/assets/templates/pages/theme-showcase/page';export interface ThemeShowcaseContent {images: Record<string, string>;diff --git a/apps/sandbox/postcss.config.js b/apps/sandbox/postcss.config.jsindex accd2241ac..6303d2cde0 100644--- a/apps/sandbox/postcss.config.js+++ b/apps/sandbox/postcss.config.js@@ -11,6 +11,6 @@ const rootDir = path.resolve(__dirname, '../..');// plugin only needs to handle product code here.module.exports = postcss(rootDir, {appDir: path.relative(rootDir, path.resolve(__dirname, 'src')),- extraInclude: ['packages/cli/templates/**/*.{ts,tsx}'],+ extraInclude: ['packages/cli/assets/templates/**/*.{ts,tsx}'],classNamePrefix: 'p',});diff --git a/apps/sandbox/scripts/generate-xle-registry.mjs b/apps/sandbox/scripts/generate-xle-registry.mjsindex 577a6de0a9..be32636176 100644--- a/apps/sandbox/scripts/generate-xle-registry.mjs+++ b/apps/sandbox/scripts/generate-xle-registry.mjs@@ -23,7 +23,7 @@ const REPO = resolve(ROOT, '../..');const OUT = resolve(ROOT, 'src/generated/xle-registry.json');const {buildRegistry, serializeRegistry} = await import(- resolve(REPO, 'packages/cli/lib/xle/registry.mjs')+ resolve(REPO, 'packages/cli/foundation/xle/registry.mjs'));const {discoverTemplates} = await import(resolve(REPO, 'packages/cli/api/template/template.mjs')diff --git a/apps/sandbox/src/app/(sandbox)/pages/doc-preview/SectionRenderer.tsx b/apps/sandbox/src/app/(sandbox)/pages/doc-preview/SectionRenderer.tsxindex 225a28790e..bc4091bff2 100644--- a/apps/sandbox/src/app/(sandbox)/pages/doc-preview/SectionRenderer.tsx+++ b/apps/sandbox/src/app/(sandbox)/pages/doc-preview/SectionRenderer.tsx@@ -6,7 +6,7 @@ import {useMemo} from 'react';import * as stylex from '@stylexjs/stylex';import {VStack} from '@astryxdesign/core/Layout';import {Heading} from '@astryxdesign/core/Text';-import type {ReferenceSection, ContentBlock} from '@astryxdesign/core';+import type {ReferenceSection, ReferenceContentBlock} from '@astryxdesign/core';import {ContentBlockRenderer} from './content-blocks';const styles = stylex.create({@@ -18,8 +18,10 @@ const styles = stylex.create({/*** Merge adjacent do/dont list blocks into a single unified table.*/-function mergeDosDonts(blocks: ContentBlock[]): ContentBlock[] {- const merged: ContentBlock[] = [];+function mergeDosDonts(+ blocks: ReferenceContentBlock[],+): ReferenceContentBlock[] {+ const merged: ReferenceContentBlock[] = [];let pendingDo: string[] = [];let pendingDont: string[] = [];diff --git a/apps/sandbox/src/app/(sandbox)/pages/doc-preview/content-blocks/ContentBlockRenderer.tsx b/apps/sandbox/src/app/(sandbox)/pages/doc-preview/content-blocks/ContentBlockRenderer.tsxindex 12d9c80dcf..8b9fc603e9 100644--- a/apps/sandbox/src/app/(sandbox)/pages/doc-preview/content-blocks/ContentBlockRenderer.tsx+++ b/apps/sandbox/src/app/(sandbox)/pages/doc-preview/content-blocks/ContentBlockRenderer.tsx@@ -2,21 +2,23 @@'use client';-import type {ContentBlock} from '@astryxdesign/core';+import type {ReferenceContentBlock} from '@astryxdesign/core';import {ProseBlock} from './ProseBlock';import {CodeBlock} from './CodeBlock';import {TableBlock} from './TableBlock';import {ListBlock} from './ListBlock';/**- * Renders a single ContentBlock by dispatching to the appropriate component.+ * Renders a single ReferenceContentBlock by dispatching to the appropriate component.*/-export function ContentBlockRenderer({block}: {block: ContentBlock}) {+export function ContentBlockRenderer({block}: {block: ReferenceContentBlock}) {switch (block.type) {case 'prose':return <ProseBlock text={block.text} />;case 'code':- return <CodeBlock lang={block.lang} code={block.code} label={block.label} />;+ return (+ <CodeBlock lang={block.lang} code={block.code} label={block.label} />+ );case 'table':return <TableBlock headers={block.headers} rows={block.rows} />;case 'list':diff --git a/apps/sandbox/src/app/(sandbox)/pages/doc-preview/content-blocks/TableBlock.tsx b/apps/sandbox/src/app/(sandbox)/pages/doc-preview/content-blocks/TableBlock.tsxindex 6e98054ae4..cebf5b5efb 100644--- a/apps/sandbox/src/app/(sandbox)/pages/doc-preview/content-blocks/TableBlock.tsx+++ b/apps/sandbox/src/app/(sandbox)/pages/doc-preview/content-blocks/TableBlock.tsx@@ -6,7 +6,7 @@ import {Text} from '@astryxdesign/core/Text';import {Table} from '@astryxdesign/core/Table';/**- * Generic table renderer for ContentBlock type='table'.+ * Generic table renderer for ReferenceContentBlock type='table'.* Renders headers + rows as a simple data table.*/export function TableBlock({diff --git a/apps/sandbox/src/app/(sandbox)/templates/page.tsx b/apps/sandbox/src/app/(sandbox)/templates/page.tsxindex e387c5b3c7..923ce4367e 100644--- a/apps/sandbox/src/app/(sandbox)/templates/page.tsx+++ b/apps/sandbox/src/app/(sandbox)/templates/page.tsx@@ -17,7 +17,10 @@ import {pixel,} from '@astryxdesign/core/Table';import type {TableColumn, TableSortState} from '@astryxdesign/core/Table';-import type {TableFilterState, TableFilterValue} from '@astryxdesign/core/Table';+import type {+ TableFilterState,+ TableFilterValue,+} from '@astryxdesign/core/Table';import {usePowerSearchConfig} from '@astryxdesign/core/PowerSearch';import type {PowerSearchFilter} from '@astryxdesign/core/PowerSearch';import {Link} from '@astryxdesign/core/Link';@@ -48,8 +51,8 @@ const rows: TemplateRow[] = [href: t.href,type: 'Page' as const,component: 'n/a',- codePath: `packages/cli/templates/pages/${t.slug}/page.tsx`,- docPath: `packages/cli/templates/pages/${t.slug}/template.doc.mjs`,+ codePath: `packages/cli/assets/templates/pages/${t.slug}/page.tsx`,+ docPath: `packages/cli/assets/templates/pages/${t.slug}/template.doc.mjs`,isReady: t.isReady,isShowcase: false,})),@@ -60,8 +63,8 @@ const rows: TemplateRow[] = [href: b.href,type: 'Block' as const,component: b.component,- codePath: `packages/cli/templates/blocks/components/${b.component}/${b.slug}.tsx`,- docPath: `packages/cli/templates/blocks/components/${b.component}/${b.slug}.doc.mjs`,+ codePath: `packages/cli/assets/templates/blocks/components/${b.component}/${b.slug}.tsx`,+ docPath: `packages/cli/assets/templates/blocks/components/${b.component}/${b.slug}.doc.mjs`,isReady: b.isReady,isShowcase: b.isShowcase,})),diff --git a/apps/sandbox/src/app/sandboxPages.ts b/apps/sandbox/src/app/sandboxPages.tsindex fd7cc4684a..f4836090e5 100644--- a/apps/sandbox/src/app/sandboxPages.ts+++ b/apps/sandbox/src/app/sandboxPages.ts@@ -4,13 +4,13 @@* @file sandboxPages.ts* @position Central registry of all sandbox pages, grouped by category.*- * The "Templates" category is auto-populated from packages/cli/templates/+ * The "Templates" category is auto-populated from packages/cli/assets/templates/* via `node scripts/sync-templates.js`. Each template has a template.doc.mjs* that provides metadata. The sync script generates a registry file at* src/generated/templateRegistry.ts.** To add a new template:- * 1. Create packages/cli/templates/<name>/page.tsx + template.doc.mjs+ * 1. Create packages/cli/assets/templates/<name>/page.tsx + template.doc.mjs* 2. Run `node scripts/sync-templates.js`* 3. It appears in the sandbox and CLI automatically*diff --git a/apps/template-viewer/README.md b/apps/template-viewer/README.mdindex 1fd20832db..d6fd65e4a0 100644--- a/apps/template-viewer/README.md+++ b/apps/template-viewer/README.md@@ -2,7 +2,7 @@# Template Viewer-A tiny Vite app that renders any template from `packages/cli/templates` in the+A tiny Vite app that renders any template from `packages/cli/assets/templates` in thebrowser. Replaces the heavier `apps/sandbox` for previewing templates.## Usage@@ -13,14 +13,14 @@ pnpm -F @astryxdesign/template-viewer devThen open the path to a template directory as the URL, e.g.:-- http://localhost:5173/packages/cli/templates/pages/ai-chat-- http://localhost:5173/packages/cli/templates/blocks/components/Avatar+- http://localhost:5173/packages/cli/assets/templates/pages/ai-chat+- http://localhost:5173/packages/cli/assets/templates/blocks/components/AvatarOpening `/` lists every available template.## How it works-`src/App.tsx` globs every `.tsx` under `packages/cli/templates`, matches the one+`src/App.tsx` globs every `.tsx` under `packages/cli/assets/templates`, matches the onein the directory named by the URL path, and lazy-renders it inside `<Theme>`.StyleX is compiled from `@astryxdesign/core` source by `astryxStylex()` — nocodegen, no Babel/PostCSS/Next.js.diff --git a/apps/template-viewer/src/App.tsx b/apps/template-viewer/src/App.tsxindex 7c5953cd53..8dfcdb52ec 100644--- a/apps/template-viewer/src/App.tsx+++ b/apps/template-viewer/src/App.tsx@@ -7,11 +7,13 @@ import {LayerProvider} from '@astryxdesign/core/Layer';import {neutralTheme} from '@astryxdesign/theme-neutral/built';// Every renderable template, keyed by its path relative to this file, e.g.-// "../../../packages/cli/templates/pages/ai-chat/page.tsx".-const templates = import.meta.glob('../../../packages/cli/templates/**/*.tsx');+// "../../../packages/cli/assets/templates/pages/ai-chat/page.tsx".+const templates = import.meta.glob(+ '../../../packages/cli/assets/templates/**/*.tsx',+);// The URL pathname is a template directory,-// e.g. /packages/cli/templates/pages/ai-chat+// e.g. /packages/cli/assets/templates/pages/ai-chatconst dir = window.location.pathname.replace(/^\/+|\/+$/g, '');// Each directory holds a single .tsx, so a substring match uniquely finds it.diff --git a/apps/template-viewer/vite.config.ts b/apps/template-viewer/vite.config.tsindex e11589a225..c96d2e65fc 100644--- a/apps/template-viewer/vite.config.ts+++ b/apps/template-viewer/vite.config.ts@@ -6,6 +6,6 @@ import {astryxStylex} from '@astryxdesign/build/vite';export default defineConfig({plugins: [...astryxStylex(), react()],- // Templates live outside this app's root (packages/cli/templates).+ // Templates live outside this app's root (packages/cli/assets/templates).server: {fs: {allow: ['../..']}},});diff --git a/eslint.config.js b/eslint.config.jsindex 171381d4f2..c756bdd2cf 100644--- a/eslint.config.js+++ b/eslint.config.js@@ -61,13 +61,13 @@ export default defineConfig(// purpose — other packages' .mjs stay unlinted (#2468)."**/*.mjs","!packages/cli/api/**/*.mjs",- "!packages/cli/cli/**/*.mjs",- "!packages/cli/codemods/**/*.mjs",+ "!packages/cli/clients/cli/**/*.mjs",+ "!packages/cli/assets/codemods/**/*.mjs","!packages/cli/authoring/**/*.mjs","!packages/cli/lib/**/*.mjs","!packages/cli/utils/**/*.mjs",- "!packages/cli/schemas/**/*.mjs",- "!packages/cli/bin/**/*.mjs",+ "!packages/cli/foundation/**/*.mjs",+ "!packages/cli/clients/cli/bin/**/*.mjs","**/*.test-violations.tsx","apps/example-nextjs/*.js",// Generated declaration files (e.g. the CLI's `./api` type surface emitted@@ -323,7 +323,7 @@ export default defineConfig("apps/sandbox/**/*.{ts,tsx}","apps/example-*/**/*.{ts,tsx}","internal/**/*.{ts,tsx}",- "packages/cli/templates/**/*.{ts,tsx}",+ "packages/cli/assets/templates/**/*.{ts,tsx}",],rules: {"no-console": "off",@@ -336,13 +336,13 @@ export default defineConfig({files: ["packages/cli/api/**/*.mjs",- "packages/cli/cli/**/*.mjs",- "packages/cli/codemods/**/*.mjs",+ "packages/cli/clients/cli/**/*.mjs",+ "packages/cli/assets/codemods/**/*.mjs","packages/cli/authoring/**/*.mjs","packages/cli/lib/**/*.mjs","packages/cli/utils/**/*.mjs",- "packages/cli/schemas/**/*.mjs",- "packages/cli/bin/**/*.mjs",+ "packages/cli/foundation/**/*.mjs",+ "packages/cli/clients/cli/bin/**/*.mjs",],plugins: {'@astryx': astryxEslintPlugin,@@ -391,13 +391,13 @@ export default defineConfig({files: ["packages/cli/api/**/*.mjs",- "packages/cli/cli/**/*.mjs",- "packages/cli/codemods/**/*.mjs",+ "packages/cli/clients/cli/**/*.mjs",+ "packages/cli/assets/codemods/**/*.mjs","packages/cli/authoring/**/*.mjs","packages/cli/lib/**/*.mjs","packages/cli/utils/**/*.mjs",- "packages/cli/schemas/**/*.mjs",- "packages/cli/bin/**/*.mjs",+ "packages/cli/foundation/**/*.mjs",+ "packages/cli/clients/cli/bin/**/*.mjs",],plugins: {'@astryx': astryxEslintPlugin,diff --git a/internal/eslint-plugin-astryx/no-raw-console-cli.js b/internal/eslint-plugin-astryx/no-raw-console-cli.jsindex c7ac76af22..8e4eb8faf4 100644--- a/internal/eslint-plugin-astryx/no-raw-console-cli.js+++ b/internal/eslint-plugin-astryx/no-raw-console-cli.js@@ -21,15 +21,15 @@** A handful of files legitimately write raw stdout — the JSON envelope writers* and the banner — and are exempt:- * - packages/cli/lib/json.mjs (defines humanLog / jsonOut)- * - packages/cli/cli/index.mjs (wiring / banner)- * - packages/cli/bin/astryx.mjs (entrypoint / error boundary)+ * - packages/cli/foundation/response/json.mjs (defines humanLog / jsonOut)+ * - packages/cli/clients/cli/index.mjs (wiring / banner)+ * - packages/cli/clients/cli/bin/astryx.mjs (entrypoint / error boundary)*/const EXEMPT_SUFFIXES = [- 'packages/cli/lib/json.mjs',- 'packages/cli/cli/index.mjs',- 'packages/cli/bin/astryx.mjs',+ 'packages/cli/foundation/response/json.mjs',+ 'packages/cli/clients/cli/index.mjs',+ 'packages/cli/clients/cli/bin/astryx.mjs',];function isExempt(filename) {diff --git a/internal/eslint-plugin-astryx/no-raw-console-cli.test.mjs b/internal/eslint-plugin-astryx/no-raw-console-cli.test.mjsindex 50562268c9..6ba4e6be41 100644--- a/internal/eslint-plugin-astryx/no-raw-console-cli.test.mjs+++ b/internal/eslint-plugin-astryx/no-raw-console-cli.test.mjs@@ -19,44 +19,44 @@ ruleTester.run('no-raw-console-cli', rule, {// console.error is allowed (stderr — never corrupts --json stdout){code: `console.error('boom');`,- filename: '/repo/packages/cli/cli/commands/search.mjs',+ filename: '/repo/packages/cli/clients/cli/commands/search.mjs',},// console.warn is allowed (stderr){code: `console.warn('heads up');`,- filename: '/repo/packages/cli/cli/commands/search.mjs',+ filename: '/repo/packages/cli/clients/cli/commands/search.mjs',},// humanLog is the sanctioned json-aware stdout primitive{code: `import {humanLog} from '../../lib/json.mjs'; humanLog('hi');`,- filename: '/repo/packages/cli/cli/commands/search.mjs',+ filename: '/repo/packages/cli/clients/cli/commands/search.mjs',},// Exempt: lib/json.mjs defines the raw writers{code: `console.log('raw');`,- filename: '/repo/packages/cli/lib/json.mjs',+ filename: '/repo/packages/cli/foundation/response/json.mjs',},// Exempt: cli/index.mjs (wiring / banner){code: `console.log('banner');`,- filename: '/repo/packages/cli/cli/index.mjs',+ filename: '/repo/packages/cli/clients/cli/index.mjs',},// Exempt: bin/astryx.mjs (entrypoint / error boundary){code: `console.log('raw');`,- filename: '/repo/packages/cli/bin/astryx.mjs',+ filename: '/repo/packages/cli/clients/cli/bin/astryx.mjs',},// Exemption is path-suffix based and tolerant of Windows separators{code: `console.log('raw');`,- filename: 'C:\\repo\\packages\\cli\\lib\\json.mjs',+ filename: 'C:\\repo\\packages\\cli\\foundation\\response\\json.mjs',},],invalid: [// Bare console.log -> humanLog{code: `console.log('hello');`,- filename: '/repo/packages/cli/cli/commands/search.mjs',+ filename: '/repo/packages/cli/clients/cli/commands/search.mjs',output: `humanLog('hello');`,errors: [{messageId: 'noRawConsoleLog'}],},@@ -70,7 +70,7 @@ ruleTester.run('no-raw-console-cli', rule, {// Multiple violations{code: `console.log('a'); console.log('b');`,- filename: '/repo/packages/cli/cli/commands/init.mjs',+ filename: '/repo/packages/cli/clients/cli/commands/init.mjs',output: `humanLog('a'); humanLog('b');`,errors: [{messageId: 'noRawConsoleLog'},diff --git a/internal/vibe-tests/cli-discovery-test/run-isolated.mjs b/internal/vibe-tests/cli-discovery-test/run-isolated.mjsindex 5f8d5d278f..428e4fa153 100644--- a/internal/vibe-tests/cli-discovery-test/run-isolated.mjs+++ b/internal/vibe-tests/cli-discovery-test/run-isolated.mjs@@ -35,7 +35,7 @@ const EXP_DIR = __dirname;const VIBE_DIR = path.resolve(EXP_DIR, '..');const REPO_ROOT = path.resolve(VIBE_DIR, '../..');const RESULTS_DIR = path.join(VIBE_DIR, 'results');-const REAL_CLI_BIN = path.join(REPO_ROOT, 'packages', 'cli', 'bin', 'astryx.mjs');+const REAL_CLI_BIN = path.join(REPO_ROOT, 'packages', 'cli', 'clients', 'cli', 'bin', 'astryx.mjs');const TMP_ROOT = path.join(os.tmpdir(), 'astryx-disco');const generateId = () => crypto.randomBytes(4).toString('hex');diff --git a/internal/vibe-tests/cli-discovery-test/setup-discovery.mjs b/internal/vibe-tests/cli-discovery-test/setup-discovery.mjsindex 5150a2d9a4..2220bddb63 100644--- a/internal/vibe-tests/cli-discovery-test/setup-discovery.mjs+++ b/internal/vibe-tests/cli-discovery-test/setup-discovery.mjs@@ -37,7 +37,7 @@ const EXP_DIR = __dirname; // internal/vibe-tests/cli-discovery-testconst VIBE_DIR = path.resolve(EXP_DIR, '..'); // internal/vibe-testsconst REPO_ROOT = path.resolve(VIBE_DIR, '../..');const RESULTS_DIR = path.join(VIBE_DIR, 'results');-const REAL_CLI_BIN = path.join(REPO_ROOT, 'packages', 'cli', 'bin', 'astryx.mjs');+const REAL_CLI_BIN = path.join(REPO_ROOT, 'packages', 'cli', 'clients', 'cli', 'bin', 'astryx.mjs');// ── Helpers ──────────────────────────────────────────────────────────diff --git a/internal/vibe-tests/prompt-purity-test/setup-purity.mjs b/internal/vibe-tests/prompt-purity-test/setup-purity.mjsindex 9b836f2c7d..803a5a63c0 100644--- a/internal/vibe-tests/prompt-purity-test/setup-purity.mjs+++ b/internal/vibe-tests/prompt-purity-test/setup-purity.mjs@@ -39,7 +39,7 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));const EXP_DIR = __dirname; // internal/vibe-tests/prompt-purity-testconst VIBE_DIR = path.resolve(EXP_DIR, '..'); // internal/vibe-testsconst REPO_ROOT = path.resolve(VIBE_DIR, '../..');-const REAL_CLI_BIN = path.join(REPO_ROOT, 'packages', 'cli', 'bin', 'astryx.mjs');+const REAL_CLI_BIN = path.join(REPO_ROOT, 'packages', 'cli', 'clients', 'cli', 'bin', 'astryx.mjs');// ── Helpers ──────────────────────────────────────────────────────────diff --git a/internal/vibe-tests/src/setup-environment.mjs b/internal/vibe-tests/src/setup-environment.mjsindex db04554649..64841bee8c 100644--- a/internal/vibe-tests/src/setup-environment.mjs+++ b/internal/vibe-tests/src/setup-environment.mjs@@ -78,7 +78,7 @@ export function createAgentProject(target, iterDir, promptId) {// Symlink node_modules/.bin/astryx → cli bin so npx astryx worksconst binDir = path.join(projectDir, 'node_modules', '.bin');ensureDir(binDir);- fs.symlinkSync(path.join(REPO_ROOT, 'packages', 'cli', 'bin', 'astryx.mjs'), path.join(binDir, 'astryx'), 'file');+ fs.symlinkSync(path.join(REPO_ROOT, 'packages', 'cli', 'clients', 'cli', 'bin', 'astryx.mjs'), path.join(binDir, 'astryx'), 'file');}if (target === 'baseline') {diff --git a/packages/charts/package.json b/packages/charts/package.jsonindex a3b45a2511..ddb78321b9 100644--- a/packages/charts/package.json+++ b/packages/charts/package.json@@ -68,6 +68,7 @@"d3-shape": "^3.2.0"},"devDependencies": {+ "@astryxdesign/cli": "workspace:*","@types/d3-scale": "^4.0.9","@types/d3-shape": "^3.1.8"}diff --git a/packages/charts/src/Chart.doc.mjs b/packages/charts/src/Chart.doc.mjsindex f2845e86ee..58c0704f6e 100644--- a/packages/charts/src/Chart.doc.mjs+++ b/packages/charts/src/Chart.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Chart',diff --git a/packages/charts/src/ChartSwatch.doc.mjs b/packages/charts/src/ChartSwatch.doc.mjsindex 6b494f6cf1..05d3761aeb 100644--- a/packages/charts/src/ChartSwatch.doc.mjs+++ b/packages/charts/src/ChartSwatch.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ChartSwatch',diff --git a/packages/charts/tsconfig.docs.json b/packages/charts/tsconfig.docs.jsonindex 37e141a39c..f19aeb0097 100644--- a/packages/charts/tsconfig.docs.json+++ b/packages/charts/tsconfig.docs.json@@ -6,5 +6,5 @@"checkJs": true,"noEmit": true},- "include": ["src/**/*.doc.mjs", "../core/src/docs-types.ts"]+ "include": ["src/**/*.doc.mjs"]}diff --git a/packages/cli/.gitignore b/packages/cli/.gitignoreindex aa07e48713..af858921cf 100644--- a/packages/cli/.gitignore+++ b/packages/cli/.gitignore@@ -5,3 +5,7 @@api/**/*.d.mtsapi/*.d.mts.api-verify/++# Transient fixture dir written by authoring-migration.tsc.test.mjs (runs the+# real tsc over migrated output); created + removed per test run.+.codemod-tsc-*/diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.mdindex 40736310e1..e55a000dea 100644--- a/packages/cli/CHANGELOG.md+++ b/packages/cli/CHANGELOG.md@@ -704,7 +704,7 @@ npx astryx upgrade --apply --to 0.0.6#### Features- **`astryx theme build`** — Renamed from `build-theme` to `theme build` (#570)-- **`--lang` flag** — TranslationDoc support for i18n/compressed docs (#611)+- **`--lang` flag** — ComponentTranslationDoc support for i18n/compressed docs (#611)- **`--zh` flag** — Chinese Simplified doc output (#567)#### Refactorsdiff --git a/packages/cli/CONTRIBUTING.md b/packages/cli/CONTRIBUTING.mdindex 1be2d2577f..0b95df0067 100644--- a/packages/cli/CONTRIBUTING.md+++ b/packages/cli/CONTRIBUTING.md@@ -10,63 +10,50 @@ The CLI is a thin wrapper around type-safe API functions. Each command follows tUser calls API function User runs CLI| |v v- api/component.mjs ◄──────── commands/component/index.mjs+ api/component/component.mjs ◄─ clients/cli/commands/component/index.mjs| |v v- { type, data } jsonOut(type, data) or formatText(data)+ { type, data } jsonOut(response) or formatText(data)```Both paths run identical code. The CLI handler just adds argument parsing and output formatting.-The package is organized into pillars (no `src/` — it was dissolved in the reorg). The-top-level directory _is_ the module boundary:+The package is organized into four product surfaces plus a shared substrate (no+`src/` — it was dissolved in the reorg). The top-level directory _is_ the module boundary:```packages/cli/api/ # Programmatic API (exported as @astryxdesign/cli/api)- index.mjs # barrel: component, docs, blog, discover, template,- # theme, hook, search, build, swizzle, doctor,- # layout*, validateIntegration, AstryxError- error.mjs # AstryxError class (carries .suggestions + .code)- component/component.mjs # component(name?, opts?) → { type, data }- docs/docs.mjs # docs(topic?, section?, opts?) → { type, data }- build/build.mjs # build(query, opts?) → build.kit | build.help (raw entries)- swizzle/swizzle.mjs # swizzle(component?, opts?) → receipt (side effect in API)- integration/ # validateIntegration(pkg?, opts?) → integration.validate- ... # one dir per command surface- cli/ # CLI layer — MUST NOT be imported by api/- index.mjs # program setup + JSON_SUPPORTED set + fallback hook- commands/ # thin wrappers: parse args → one API call → render- component/index.mjs # calls api/component- swizzle.mjs # thin: calls api/swizzle, renders receipt + error codes- build.mjs # thin: calls api/build, renders kit (pm-prefixing lives here)- upgrade.mjs # side-effect (codemods) — API extraction pending (see Roadmap)- build-theme.mjs # side-effect (theme→CSS/TS) — API extraction pending- init.mjs # interactive prompts stay CLI-side; core → api/init pending- codemods/ # version-to-version migrations (consumed by upgrade)- authoring/ # component/doc authoring scaffolds- lib/ # shared infra (NOT a data API)- json.mjs # jsonOut(type, data), jsonError(msg) — internal- parse.mjs # parseResponse, isError, assertResponse — consumer- agent-docs/ # ~700-line doc generator/injector (shared: init/upgrade/hook)- manifest.mjs # CLI-special: reflects the command tree (injects `program`)- utils/ # small pure helpers (package-manager, path-safety, ...)- schemas/ # zod/JSON schemas- types/ # public type surface- *.type.mjs (in api/) # source of truth — colocated JSDoc; ./api regenerates from it- base.d.ts # CLIError, CLIResult<T>, CLIResponse (structural — no central union)- component.d.ts # re-export barrel: ComponentListResponse, ComponentDetailResponse, ...- build.d.ts # re-export barrel: BuildKitResponse, BuildHelpResponse- swizzle.d.ts # re-export barrel: SwizzleListResponse, SwizzleCopyResponse- ... # one barrel per command; index.d.ts is the ./json barrel- bin/ scripts/ docs/ templates/+ index.mjs # barrel: command functions + re-exported .type.mjs types+ error.mjs logger.mjs # AstryxError (.suggestions + .code); the injectable logger+ component/component.mjs # one dir per command; colocated <cmd>.type.mjs + tests+ json/ # the ./json consumer surface — parse.mjs + index.d.ts+ ... # command-internal helpers take a `_` prefix (_adapter, _site, …)+ clients/ # user-facing apps over api/ — MUST NOT be imported by api/+ cli/ # the CLI app (room for a future clients/interactive/)+ bin/astryx.mjs # entry: Node-version gate + top-level error boundary+ index.mjs # program setup + JSON_SUPPORTED set + fallback hook+ commands/ # thin wrappers: parse args → one API call → render+ lib/ # CLI-only support (cli-error, manifest, *-format, json-shim, …)+ authoring/ # public authoring surface + colocated .d.ts+ # (./config ./doc ./template ./codemod ./integration)+ assets/ # data/content the CLI ships+ codemods/ docs/ templates/+ foundation/ # shared substrate (proven used by 2+ surfaces), by concern+ response/ # json.mjs (emitter), parse's contract, base.d.ts, error-codes+ config/ discovery/ integrations/ text/ fs/ env/+ agent-docs/ # doc generator/injector (shared: init/upgrade/hook)+ schemas/ # zod/JSON schemas+ xle/ # the ./xle layout engine (self-contained, extract-ready)+ scripts/ test-utils/ # package tooling + the in-process CLI test harness```-**Hard boundary:** `api/` never imports from `cli/`. The API is the reusable core;+**Hard boundary:** `api/` never imports from `clients/`. The API is the reusable core;the CLI is one consumer of it. Anything shared by both (doc generation, manifest,-package-manager detection) lives in `lib/` or `utils/`, not `cli/`. Side-effecting-commands perform the effect _in the API_ and return a `{type, data}` receipt; the CLI-only chooses how to render it and what exit code to set.+package-manager detection) lives in `foundation/` (or, if CLI-only, in `clients/cli/lib/`),+never in a place `api/` would reach up into. Side-effecting commands perform the effect+_in the API_ and return a `{type, data}` receipt; the CLI only chooses how to render it+and what exit code to set.## Adding a new command@@ -192,7 +179,7 @@ If the component has no `.doc.mjs`, `astryx component {Name}` returns a clean er### Adding a new doc topic-1. Add `{topic}.doc.mjs` in `packages/cli/docs/`+1. Add `{topic}.doc.mjs` in `packages/cli/assets/docs/`2. Done — auto-discovered by `astryx docs` and the `docs()` API function### Adding a new template@@ -200,13 +187,13 @@ If the component has no `.doc.mjs`, `astryx component {Name}` returns a clean erEvery template is exactly **two files** — no exceptions:```-packages/cli/templates/{name}/+packages/cli/assets/templates/{name}/├── page.tsx ← the template code (single self-contained file)└── template.doc.mjs ← metadata (name, description, isReady)```-1. Create `packages/cli/templates/{name}/page.tsx` with a default-exported React component-2. Create `packages/cli/templates/{name}/template.doc.mjs` with a `doc` export (`TemplateDoc`)+1. Create `packages/cli/assets/templates/{name}/page.tsx` with a default-exported React component+2. Create `packages/cli/assets/templates/{name}/template.doc.mjs` with a `doc` export (`TemplateDoc`)3. Done — auto-discovered by `astryx template --list` and the `template()` API function**Rules:**@@ -305,9 +292,9 @@ if (!json) p.log.step('Running...');The CLI ships as hand-written `.mjs` (no build step) but is type-checked withTypeScript's `checkJs` against the JSDoc annotations in the source. `tsconfig.strict.json`-runs the compiler over the **whole package** — every pillar (`api`, `cli`, `codemods`,-`authoring`, `lib`, `utils`, `types`, `schemas`), plus `bin`, `scripts`, `docs`, and the-emitted `templates` (including their `.tsx` source) — under full `strict`, including+runs the compiler over the **whole package** — every surface (`api`, `clients`,+`authoring`, `foundation`) plus the `assets/` content (codemods, docs, and the emitted+`templates` `.tsx` source) and `scripts` — under full `strict`, including`noImplicitAny`, so an un-annotated parameter is an error.```bashdiff --git a/packages/cli/README.md b/packages/cli/README.mdindex ba84ace6e8..2f3d3da55e 100644--- a/packages/cli/README.md+++ b/packages/cli/README.md@@ -461,20 +461,15 @@ The CLI reads an optional `astryx.config.{ts,mjs,js}` from your project rootCLI runs on defaults.```typescript-import {createConfig} from '@astryxdesign/core/config';--export default createConfig({+export default {integrations: ['@acme/astryx-widgets'],issuesUrl: 'https://github.com/your-org/your-repo/issues',-});+};```-`createConfig` is a type-preserving helper: it returns its argument unchanged-and exists only to give the config file editor autocomplete and type-checking. A-plain `export default {}` object works identically. It's exported from-`@astryxdesign/core` (not the CLI) so your config file gets type feedback-without depending on the CLI; the same helper is re-exported from-`@astryxdesign/cli/config` for back-compat.+There is no factory: write a plain object. For editor autocomplete and+type-checking, annotate it with the `AstryxConfig` type exported from+`@astryxdesign/cli/authoring`.| Field | Type | Purpose || ----------------------------- | ------------------------------ | ----------------------------------------------------------------------------------------------- |@@ -514,14 +509,12 @@ manifest points at where each kind of contribution lives; identity (name,version) comes from `package.json`, not the manifest.```typescript-import {createIntegration} from '@astryxdesign/core/authoring';--export default createIntegration({+export default {components: './components',templates: './templates',codemods: './codemods',issuesUrl: 'https://github.com/acme/widgets/issues',-});+};```| Field | Type | Purpose |@@ -531,10 +524,9 @@ export default createIntegration({| `codemods` | `string` | Directory holding upgrade codemods run by `astryx upgrade`. || `issuesUrl` | `string` | Where "report an issue" links for this package's contributions point. |-Every field is optional; declare only the roots the package ships.-`createIntegration` is a type-preserving helper (editor autocomplete and-type-checking); it lives in `@astryxdesign/core/authoring` and is re-exported-from `@astryxdesign/cli/integration` for back-compat.+Every field is optional; declare only the roots the package ships. There is no+factory: write a plain object, and annotate it with the `AstryxIntegration` type+from `@astryxdesign/cli/authoring` for editor autocomplete and type-checking.### How it worksdiff --git a/packages/cli/api/blog/_adapter.mjs b/packages/cli/api/blog/_adapter.mjsindex 6d0699283e..6eeb0ac2ed 100644--- a/packages/cli/api/blog/_adapter.mjs+++ b/packages/cli/api/blog/_adapter.mjs@@ -14,8 +14,8 @@*/import {AstryxError} from '../error.mjs';-import {ERROR_CODES} from '../../lib/error-codes.mjs';-import {SITE_URL, SITE_ORIGIN} from '../../lib/site.mjs';+import {ERROR_CODES} from '../../foundation/response/error-codes.mjs';+import {SITE_URL, SITE_ORIGIN} from './_site.mjs';/** Abort a feed/post fetch that hangs, and cap how much we'll read. */const FETCH_TIMEOUT_MS = 15000;diff --git a/packages/cli/api/blog/_adapter.test.mjs b/packages/cli/api/blog/_adapter.test.mjsindex 17686e6f30..42df90f0b7 100644--- a/packages/cli/api/blog/_adapter.test.mjs+++ b/packages/cli/api/blog/_adapter.test.mjs@@ -10,7 +10,7 @@import {describe, it, expect, afterEach, vi} from 'vitest';import {loadFeed, fetchPostText, FEED_URL} from './_adapter.mjs';import {AstryxError} from '../error.mjs';-import {SITE_URL} from '../../lib/site.mjs';+import {SITE_URL} from './_site.mjs';const FEED = `<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">diff --git a/packages/cli/lib/site.mjs b/packages/cli/api/blog/_site.mjssimilarity index 100%rename from packages/cli/lib/site.mjsrename to packages/cli/api/blog/_site.mjsdiff --git a/packages/cli/api/blog/blog.test.mjs b/packages/cli/api/blog/blog.test.mjsindex 291e9de977..1fddc6e41f 100644--- a/packages/cli/api/blog/blog.test.mjs+++ b/packages/cli/api/blog/blog.test.mjs@@ -10,7 +10,7 @@import {describe, it, expect, beforeEach, afterEach, vi} from 'vitest';import {blog} from './blog.mjs';import {AstryxError} from '../error.mjs';-import {SITE_URL} from '../../lib/site.mjs';+import {SITE_URL} from './_site.mjs';const FEED = `<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">diff --git a/packages/cli/api/blog/detail/detail.mjs b/packages/cli/api/blog/detail/detail.mjsindex e692ca9bc9..d36daba608 100644--- a/packages/cli/api/blog/detail/detail.mjs+++ b/packages/cli/api/blog/detail/detail.mjs@@ -14,7 +14,7 @@*/import {AstryxError} from '../../error.mjs';-import {ERROR_CODES} from '../../../lib/error-codes.mjs';+import {ERROR_CODES} from '../../../foundation/response/error-codes.mjs';import {loadFeed, fetchPostText} from '../_adapter.mjs';/**diff --git a/packages/cli/api/blog/detail/detail.test.mjs b/packages/cli/api/blog/detail/detail.test.mjsindex 0ba394feb2..ef5012a9de 100644--- a/packages/cli/api/blog/detail/detail.test.mjs+++ b/packages/cli/api/blog/detail/detail.test.mjs@@ -10,7 +10,7 @@import {describe, it, expect, beforeEach, afterEach, vi} from 'vitest';import {detail} from './detail.mjs';import {AstryxError} from '../../error.mjs';-import {SITE_URL} from '../../../lib/site.mjs';+import {SITE_URL} from '../_site.mjs';const FEED = `<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">diff --git a/packages/cli/api/blog/list/list.test.mjs b/packages/cli/api/blog/list/list.test.mjsindex f48bc57062..a3757f1ca7 100644--- a/packages/cli/api/blog/list/list.test.mjs+++ b/packages/cli/api/blog/list/list.test.mjs@@ -8,7 +8,7 @@import {describe, it, expect, beforeEach, afterEach, vi} from 'vitest';import {list} from './list.mjs';-import {SITE_URL} from '../../../lib/site.mjs';+import {SITE_URL} from '../_site.mjs';const FEED = `<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">diff --git a/packages/cli/api/build/build.mjs b/packages/cli/api/build/build.mjsindex 2f2433dfe2..89b6eba7d2 100644--- a/packages/cli/api/build/build.mjs+++ b/packages/cli/api/build/build.mjs@@ -24,7 +24,7 @@ export {buildHelp, buildKit};* grouped composition kit.** @param {string} [query] what you're building (e.g. "analytics dashboard")- * @param {{cwd?: string, type?: import('../../types/search').SearchDomain, limit?: number}} [options]+ * @param {{cwd?: string, type?: import('../search/search.type.mjs').SearchDomain, limit?: number}} [options]* @returns {Promise<import('./build.type.mjs').BuildHelpResponse | import('./build.type.mjs').BuildKitResponse>}*/export async function build(query, options = {}) {diff --git a/packages/cli/api/build/build.type.mjs b/packages/cli/api/build/build.type.mjsindex d49b40f78b..8b718119c7 100644--- a/packages/cli/api/build/build.type.mjs+++ b/packages/cli/api/build/build.type.mjs@@ -28,9 +28,9 @@* @property {string} data.query* @property {boolean} data.hasResults False when search returned nothing (renderer shows "No matches").* @property {boolean} data.directMatch True when the top page template is a confident direct match.- * @property {import('../../types/search').SearchResultEntry[]} data.pages Closest page templates (≤3).- * @property {import('../../types/search').SearchResultEntry[]} data.blocks Drop-in block patterns covering parts of the idea (≤5).- * @property {import('../../types/search').SearchResultEntry[]} data.domain Idea-specific components/hooks (≤6), excluding frame/foundation.+ * @property {import('../search/search.type.mjs').SearchResultEntry[]} data.pages Closest page templates (≤3).+ * @property {import('../search/search.type.mjs').SearchResultEntry[]} data.blocks Drop-in block patterns covering parts of the idea (≤5).+ * @property {import('../search/search.type.mjs').SearchResultEntry[]} data.domain Idea-specific components/hooks (≤6), excluding frame/foundation.* @property {string[]} data.frame Always-on page-shell component names.* @property {string[]} data.foundation Always-on layout/typography/action component names.*/diff --git a/packages/cli/api/build/kit/kit.mjs b/packages/cli/api/build/kit/kit.mjsindex c7449ad8f9..73044f3b0b 100644--- a/packages/cli/api/build/kit/kit.mjs+++ b/packages/cli/api/build/kit/kit.mjs@@ -39,7 +39,7 @@ const ALWAYS = new Set([...FRAME, ...FOUNDATION]);* The grouped composition kit for what you're building.** @param {string} query what you're building (e.g. "analytics dashboard")- * @param {{cwd?: string, type?: import('../../../types/search').SearchDomain, limit?: number}} [options]+ * @param {{cwd?: string, type?: import('../../search/search.type.mjs').SearchDomain, limit?: number}} [options]* @returns {Promise<import('../build.type.mjs').BuildKitResponse>}*/export async function buildKit(query, options = {}) {@@ -47,7 +47,7 @@ export async function buildKit(query, options = {}) {// search()'s JSDoc @returns widens results to object[]; the SearchResponse// shape is the contract (api/search/search.type.mjs). Cast locally rather than// tightening the search @returns (a separate follow-up).- const result = /** @type {import('../../../types/search').SearchResponse} */ (+ const result = /** @type {import('../../search/search.type.mjs').SearchResponse} */ (await search(query, {cwd, type, limit}));const results = result.data.results;diff --git a/packages/cli/api/component/_adapter.mjs b/packages/cli/api/component/_adapter.mjsindex b7d4ee8c6a..dc73046892 100644--- a/packages/cli/api/component/_adapter.mjs+++ b/packages/cli/api/component/_adapter.mjs@@ -18,8 +18,8 @@* deduped, so each leaf stays a thin projection.*/-import {ERROR_CODES} from '../../lib/error-codes.mjs';-import {findCoreDir, discoverExternalPackages} from '../../utils/paths.mjs';+import {ERROR_CODES} from '../../foundation/response/error-codes.mjs';+import {findCoreDir, discoverExternalPackages} from '../../foundation/fs/paths.mjs';import {CORE_PACKAGE,discoverComponents,@@ -29,10 +29,10 @@ import {findIntegrationComponentDoc,findIntegrationComponentSource,resolveImportPath,-} from '../../lib/component-discovery.mjs';-import {Project} from '../../lib/project.mjs';-import {loadDocs} from '../../lib/component-loader.mjs';-import {searchComponents} from '../../lib/string-utils.mjs';+} from '../../foundation/discovery/component-discovery.mjs';+import {Project} from '../../foundation/config/project.mjs';+import {loadDocs} from '../../foundation/discovery/component-loader.mjs';+import {searchComponents} from '../../foundation/text/string-utils.mjs';import {AstryxError} from '../error.mjs';export {CORE_PACKAGE};@@ -65,7 +65,7 @@ export {CORE_PACKAGE};* @property {string} docPath* @property {string|null} sourcePath* @property {string|undefined} issuesUrl- * @property {import('../../lib/integrations.mjs').LoadedIntegration|null} integration+ * @property {import('../../foundation/integrations/integrations.mjs').LoadedIntegration|null} integration*//**@@ -110,12 +110,12 @@ export function requireCoreDir(cwd) {* component discovery never hard-fails on a malformed/absent integration. An* empty list means "core only".* @param {string} cwd- * @returns {Promise<import('../../lib/integrations.mjs').LoadedIntegration[]>}+ * @returns {Promise<import('../../foundation/integrations/integrations.mjs').LoadedIntegration[]>}*/export async function loadIntegrationsSafely(cwd) {try {const project = await Project.load(cwd);- return /** @type {import('../../lib/integrations.mjs').LoadedIntegration[]} */ (+ return /** @type {import('../../foundation/integrations/integrations.mjs').LoadedIntegration[]} */ (project.loadedIntegrations);} catch {@@ -125,9 +125,9 @@ export async function loadIntegrationsSafely(cwd) {/*** Resolve a loaded integration by package name.- * @param {import('../../lib/integrations.mjs').LoadedIntegration[]} loadedIntegrations+ * @param {import('../../foundation/integrations/integrations.mjs').LoadedIntegration[]} loadedIntegrations* @param {string} packageName- * @returns {import('../../lib/integrations.mjs').LoadedIntegration|null}+ * @returns {import('../../foundation/integrations/integrations.mjs').LoadedIntegration|null}*/function findLoadedIntegration(loadedIntegrations, packageName) {return loadedIntegrations.find(i => i.name === packageName) ?? null;@@ -150,7 +150,7 @@ function resolveExternalPackage(packageName, cwd) {* disambiguate by package and expose the owner's source + issuesUrl.* @param {string} coreDir* @param {string} dirName - bare component name (no `XDS` prefix)- * @param {import('../../lib/integrations.mjs').LoadedIntegration[]} loadedIntegrations+ * @param {import('../../foundation/integrations/integrations.mjs').LoadedIntegration[]} loadedIntegrations* @returns {ComponentOwner[]}*/export function resolveOwners(coreDir, dirName, loadedIntegrations) {@@ -185,7 +185,7 @@ export function resolveOwners(coreDir, dirName, loadedIntegrations) {* component that exists in both core and an external package (e.g. AppShell,* Button, SideNav) resolves to the package the caller asked for.* @param {string} packageScope- * @param {{owners: ComponentOwner[], loadedIntegrations: import('../../lib/integrations.mjs').LoadedIntegration[], cwd: string, name: string}} ctx+ * @param {{owners: ComponentOwner[], loadedIntegrations: import('../../foundation/integrations/integrations.mjs').LoadedIntegration[], cwd: string, name: string}} ctx* @returns {ScopeResolution}*/export function classifyScope(packageScope, {owners, loadedIntegrations, cwd, name}) {diff --git a/packages/cli/api/component/component.mjs b/packages/cli/api/component/component.mjsindex 09529b7238..3f946d47e8 100644--- a/packages/cli/api/component/component.mjs+++ b/packages/cli/api/component/component.mjs@@ -12,7 +12,7 @@* Every leaf is also re-exported for direct scripting use.*/-import {ERROR_CODES} from '../../lib/error-codes.mjs';+import {ERROR_CODES} from '../../foundation/response/error-codes.mjs';import {AstryxError} from '../error.mjs';import {CORE_PACKAGE,diff --git a/packages/cli/api/component/component.type.mjs b/packages/cli/api/component/component.type.mjsindex d7f06750c1..5c4110f737 100644--- a/packages/cli/api/component/component.type.mjs+++ b/packages/cli/api/component/component.type.mjs@@ -45,7 +45,7 @@* @typedef {(* | {detail: 'names'; components: Record<string, ComponentListEntry[]>}* | {detail: 'compact'; components: Record<string, ComponentBriefEntry[]>}- * | {detail: 'full'; components: Record<string, import('../../../core/src/docs-types').ComponentDoc[]>}+ * | {detail: 'full'; components: Record<string, import('@astryxdesign/cli/authoring').ComponentDoc[]>}* )} ComponentListData*/@@ -70,7 +70,7 @@* xds --json component <name>* @typedef {object} ComponentDetailResponse* @property {'component.detail'} type- * @property {import('../../../core/src/docs-types').ComponentDoc & ComponentOwnership} data+ * @property {import('@astryxdesign/cli/authoring').ComponentDoc & ComponentOwnership} data*//**@@ -87,7 +87,7 @@* xds --json component <name> --props* @typedef {object} ComponentDetailPropsResponse* @property {'component.detail.props'} type- * @property {import('../../../core/src/docs-types').PropDoc[]} data+ * @property {import('@astryxdesign/cli/authoring').ComponentPropDoc[]} data*//**diff --git a/packages/cli/api/component/detail/showcase/showcase.mjs b/packages/cli/api/component/detail/showcase/showcase.mjsindex fcc3a75238..69eb15de61 100644--- a/packages/cli/api/component/detail/showcase/showcase.mjs+++ b/packages/cli/api/component/detail/showcase/showcase.mjs@@ -10,7 +10,7 @@import * as fs from 'node:fs';import {AstryxError} from '../../../error.mjs';-import {ERROR_CODES} from '../../../../lib/error-codes.mjs';+import {ERROR_CODES} from '../../../../foundation/response/error-codes.mjs';import {findShowcase} from '../../../template/template.mjs';/**diff --git a/packages/cli/api/component/detail/source/source.mjs b/packages/cli/api/component/detail/source/source.mjsindex d496f43ccb..07ea97c6d2 100644--- a/packages/cli/api/component/detail/source/source.mjs+++ b/packages/cli/api/component/detail/source/source.mjs@@ -10,7 +10,7 @@import * as fs from 'node:fs';import {AstryxError} from '../../../error.mjs';-import {ERROR_CODES} from '../../../../lib/error-codes.mjs';+import {ERROR_CODES} from '../../../../foundation/response/error-codes.mjs';/*** Read a resolved component source path into the `component.detail.source`diff --git a/packages/cli/api/component/list/list.mjs b/packages/cli/api/component/list/list.mjsindex 0a79d96985..50d8aec8f1 100644--- a/packages/cli/api/component/list/list.mjs+++ b/packages/cli/api/component/list/list.mjs@@ -18,9 +18,9 @@ import {discoverIntegrationComponents,findComponentReadme,resolveImportPath,-} from '../../../lib/component-discovery.mjs';-import {discoverExternalPackages} from '../../../utils/paths.mjs';-import {ERROR_CODES} from '../../../lib/error-codes.mjs';+} from '../../../foundation/discovery/component-discovery.mjs';+import {discoverExternalPackages} from '../../../foundation/fs/paths.mjs';+import {ERROR_CODES} from '../../../foundation/response/error-codes.mjs';import {AstryxError} from '../../error.mjs';import {loadComponentDoc, loadIntegrationsSafely} from '../_adapter.mjs';diff --git a/packages/cli/api/discover/_adapter.mjs b/packages/cli/api/discover/_adapter.mjsindex 927e200c4d..ec5eea814d 100644--- a/packages/cli/api/discover/_adapter.mjs+++ b/packages/cli/api/discover/_adapter.mjs@@ -15,17 +15,17 @@* and lib/component-loader; the discover dispatcher + leaves consume it.*/-import {Project} from '../../lib/project.mjs';+import {Project} from '../../foundation/config/project.mjs';import {scanAllPackages,findComponentInPackages,-} from '../../lib/package-scanner.mjs';-import {loadDocs} from '../../lib/component-loader.mjs';+} from './_package-scanner.mjs';+import {loadDocs} from '../../foundation/discovery/component-loader.mjs';import {AstryxError} from '../error.mjs';-import {ERROR_CODES} from '../../lib/error-codes.mjs';+import {ERROR_CODES} from '../../foundation/response/error-codes.mjs';/**- * @typedef {import('../../lib/package-scanner.mjs').ScannedPackage} ScannedPackage+ * @typedef {import('./_package-scanner.mjs').ScannedPackage} ScannedPackage*//**@@ -71,7 +71,7 @@ function validateDocs(docs) {export async function discoverPackages() {const project = await Project.load();const loadedIntegrations =- /** @type {import('../../lib/integrations.mjs').LoadedIntegration[]} */ (+ /** @type {import('../../foundation/integrations/integrations.mjs').LoadedIntegration[]} */ (project.loadedIntegrations);diff --git a/packages/cli/lib/package-scanner.mjs b/packages/cli/api/discover/_package-scanner.mjssimilarity index 100%rename from packages/cli/lib/package-scanner.mjsrename to packages/cli/api/discover/_package-scanner.mjsdiff --git a/packages/cli/lib/package-scanner.test.mjs b/packages/cli/api/discover/_package-scanner.test.mjssimilarity index 99%rename from packages/cli/lib/package-scanner.test.mjsrename to packages/cli/api/discover/_package-scanner.test.mjsindex bd79efcccb..69d9bd9670 100644--- a/packages/cli/lib/package-scanner.test.mjs+++ b/packages/cli/api/discover/_package-scanner.test.mjs@@ -15,7 +15,7 @@ import {scanDirectory,scanAllPackages,findComponentInPackages,-} from './package-scanner.mjs';+} from './_package-scanner.mjs';let tmp;afterEach(() => {diff --git a/packages/cli/api/discover/detail/detail.mjs b/packages/cli/api/discover/detail/detail.mjsindex 10b93ca3b1..3ea135e2f2 100644--- a/packages/cli/api/discover/detail/detail.mjs+++ b/packages/cli/api/discover/detail/detail.mjs@@ -9,14 +9,14 @@import {toEntry} from '../_adapter.mjs';import {AstryxError} from '../../error.mjs';-import {ERROR_CODES} from '../../../lib/error-codes.mjs';+import {ERROR_CODES} from '../../../foundation/response/error-codes.mjs';/*** Build the discover.detail response for a scoped package name. Throws* AstryxError (ERR_UNKNOWN_PACKAGE) — with the available packages as* suggestions — when no package matches.*- * @param {import('../../../lib/package-scanner.mjs').ScannedPackage[]} packages+ * @param {import('../_package-scanner.mjs').ScannedPackage[]} packages* @param {string} query scoped package name, e.g. `@scope/name`* @returns {import('../discover.type.mjs').DiscoverDetailResponse}*/diff --git a/packages/cli/api/discover/detail/doc/doc.mjs b/packages/cli/api/discover/detail/doc/doc.mjsindex 14ab2504ac..331471458f 100644--- a/packages/cli/api/discover/detail/doc/doc.mjs+++ b/packages/cli/api/discover/detail/doc/doc.mjs@@ -14,9 +14,9 @@*/import {findComponent, loadValidatedDoc} from '../../_adapter.mjs';-import {levenshteinDistance} from '../../../../lib/string-utils.mjs';+import {levenshteinDistance} from '../../../../foundation/text/string-utils.mjs';import {AstryxError} from '../../../error.mjs';-import {ERROR_CODES} from '../../../../lib/error-codes.mjs';+import {ERROR_CODES} from '../../../../foundation/response/error-codes.mjs';/*** Wrap an already-resolved component in the discover.detail.doc envelope by@@ -36,7 +36,7 @@ export async function docFromResult(result, opts) {* (ERR_UNKNOWN_COMPONENT) — with substring/fuzzy suggestions — when the* component is not in the package.*- * @param {import('../../../../lib/package-scanner.mjs').ScannedPackage[]} packages+ * @param {import('../../_package-scanner.mjs').ScannedPackage[]} packages* @param {string} pkgName* @param {string} compName* @param {{lang?: string | null, zh?: boolean}} optsdiff --git a/packages/cli/api/discover/discover.mjs b/packages/cli/api/discover/discover.mjsindex ce2df94fae..ed4e7b5013 100644--- a/packages/cli/api/discover/discover.mjs+++ b/packages/cli/api/discover/discover.mjs@@ -22,7 +22,7 @@ import {detail} from './detail/detail.mjs';import {doc} from './detail/doc/doc.mjs';import {search} from './search/search.mjs';import {AstryxError} from '../error.mjs';-import {ERROR_CODES} from '../../lib/error-codes.mjs';+import {ERROR_CODES} from '../../foundation/response/error-codes.mjs';/*** @param {string} [query]diff --git a/packages/cli/api/discover/discover.type.mjs b/packages/cli/api/discover/discover.type.mjsindex d28203e1b8..7b7a515a8b 100644--- a/packages/cli/api/discover/discover.type.mjs+++ b/packages/cli/api/discover/discover.type.mjs@@ -45,7 +45,7 @@* xds --json discover @scope/name/Component* @typedef {object} DiscoverDetailDocResponse* @property {'discover.detail.doc'} type- * @property {import('../../../core/src/docs-types').ComponentDoc} data+ * @property {import('@astryxdesign/cli/authoring').ComponentDoc} data*//**diff --git a/packages/cli/api/discover/list/list.mjs b/packages/cli/api/discover/list/list.mjsindex 9ae1e3d52d..3953077a4c 100644--- a/packages/cli/api/discover/list/list.mjs+++ b/packages/cli/api/discover/list/list.mjs@@ -14,7 +14,7 @@ import {toEntry} from '../_adapter.mjs';* envelope carrying `meta.configured`, so callers can distinguish "nothing* configured" from "configured but nothing discovered".*- * @param {import('../../../lib/package-scanner.mjs').ScannedPackage[]} packages+ * @param {import('../_package-scanner.mjs').ScannedPackage[]} packages* @param {{configured: boolean}} meta* @returns {import('../discover.type.mjs').DiscoverListResponse}*/diff --git a/packages/cli/api/discover/search/search.mjs b/packages/cli/api/discover/search/search.mjsindex 7a5ca3e4be..a65b0ba2f0 100644--- a/packages/cli/api/discover/search/search.mjs+++ b/packages/cli/api/discover/search/search.mjs@@ -16,12 +16,12 @@import {findComponent} from '../_adapter.mjs';import {docFromResult} from '../detail/doc/doc.mjs';-import {levenshteinDistance} from '../../../lib/string-utils.mjs';+import {levenshteinDistance} from '../../../foundation/text/string-utils.mjs';import {AstryxError} from '../../error.mjs';-import {ERROR_CODES} from '../../../lib/error-codes.mjs';+import {ERROR_CODES} from '../../../foundation/response/error-codes.mjs';/**- * @typedef {import('../../../lib/package-scanner.mjs').ScannedPackage} ScannedPackage+ * @typedef {import('../_package-scanner.mjs').ScannedPackage} ScannedPackage*//**diff --git a/packages/cli/api/docs/_adapter.mjs b/packages/cli/api/docs/_adapter.mjsindex 378e37aade..5ddb0cb7c4 100644--- a/packages/cli/api/docs/_adapter.mjs+++ b/packages/cli/api/docs/_adapter.mjs@@ -3,7 +3,7 @@/*** @file Shared doc-loading and topic-resolution helpers for the docs leaves.*- * @input packages/cli/docs/{topic}.doc.mjs and, when a --dense/--zh overlay is+ * @input packages/cli/assets/docs/{topic}.doc.mjs and, when a --dense/--zh overlay is* requested, the sibling {topic}.doc.dense.mjs / {topic}.doc.zh.mjs.* @output Topic discovery map, overlay-merged reference-doc data, and a combined* resolve step ({topics, docsData}) that the detail and section leaves share.@@ -14,11 +14,11 @@import * as fs from 'node:fs';import * as path from 'node:path';import {pathToFileURL} from 'node:url';-import {CLI_ROOT} from '../../utils/paths.mjs';+import {CLI_ROOT} from '../../foundation/fs/paths.mjs';import {AstryxError} from '../error.mjs';-import {ERROR_CODES} from '../../lib/error-codes.mjs';+import {ERROR_CODES} from '../../foundation/response/error-codes.mjs';-const DOCS_DIR = path.join(CLI_ROOT, 'docs');+const DOCS_DIR = path.join(CLI_ROOT, 'assets', 'docs');/*** @returns {Record<string, string>}@@ -71,7 +71,7 @@ export async function loadReferenceDocs(docPath, {lang} = {}) {...docs,description: translation.description || docs.description,sections: docs.sections.map(- (/** @type {import('../../../core/src/docs-types').ReferenceSection} */ section) => {+ (/** @type {import('@astryxdesign/cli/authoring').ReferenceSection} */ section) => {const ts = bySection.get(section.title);if (!ts) return section;return {@@ -79,7 +79,7 @@ export async function loadReferenceDocs(docPath, {lang} = {}) {title: ts.title || section.title,content: section.content.map((- /** @type {import('../../../core/src/docs-types').ContentBlock} */ block,+ /** @type {import('@astryxdesign/cli/authoring').ReferenceContentBlock} */ block,/** @type {number} */ bi,) => {const tb = ts.content?.[bi];diff --git a/packages/cli/api/docs/detail/detail.mjs b/packages/cli/api/docs/detail/detail.mjsindex 5836f577c8..8bccb5b354 100644--- a/packages/cli/api/docs/detail/detail.mjs+++ b/packages/cli/api/docs/detail/detail.mjs@@ -25,7 +25,7 @@ async function resolveTokenRefs(docsData, topics) {const resolved = {...docsData, sections: [...docsData.sections]};for (let si = 0; si < resolved.sections.length; si++) {const section = resolved.sections[si];- /** @type {import('../../../../core/src/docs-types').ContentBlock[]} */+ /** @type {import('@astryxdesign/cli/authoring').ReferenceContentBlock[]} */const newContent = [];for (const block of section.content) {if (block.type === 'token-ref') {@@ -37,7 +37,7 @@ async function resolveTokenRefs(docsData, topics) {const refMod = await import(pathToFileURL(refPath).href);const refDocs = refMod.docs;const refSection = refDocs.sections.find(- (/** @type {import('../../../../core/src/docs-types').ReferenceSection} */ s) =>+ (/** @type {import('@astryxdesign/cli/authoring').ReferenceSection} */ s) =>s.title.toLowerCase() === block.section.toLowerCase(),);if (!refSection) {diff --git a/packages/cli/api/docs/detail/section/section.mjs b/packages/cli/api/docs/detail/section/section.mjsindex f7675c7db0..73681007b3 100644--- a/packages/cli/api/docs/detail/section/section.mjs+++ b/packages/cli/api/docs/detail/section/section.mjs@@ -14,7 +14,7 @@*/import {AstryxError} from '../../../error.mjs';-import {ERROR_CODES} from '../../../../lib/error-codes.mjs';+import {ERROR_CODES} from '../../../../foundation/response/error-codes.mjs';import {resolveTopicDocs} from '../../_adapter.mjs';/**diff --git a/packages/cli/api/docs/docOverlays.test.mjs b/packages/cli/api/docs/docOverlays.test.mjsindex 0ee56249ea..b463c79cda 100644--- a/packages/cli/api/docs/docOverlays.test.mjs+++ b/packages/cli/api/docs/docOverlays.test.mjs@@ -2,7 +2,7 @@/*** @file Guards the --dense / --zh reference-doc overlays against drift (#2182).- * @input packages/cli/docs/{topic}.doc.mjs and its .doc.dense.mjs / .doc.zh.mjs overlays.+ * @input packages/cli/assets/docs/{topic}.doc.mjs and its .doc.dense.mjs / .doc.zh.mjs overlays.* @output Vitest failures naming any overlay section that does not anchor to a* real base section, or whose content overrides land on the wrong block type.* @position Regression gate for the docs API. Sits with the loader it guards.@@ -25,7 +25,7 @@ import * as path from 'node:path';import {pathToFileURL} from 'node:url';import {docs} from './docs.mjs';-const DOCS_DIR = path.join(import.meta.dirname, '..', '..', 'docs');+const DOCS_DIR = path.join(import.meta.dirname, '..', '..', 'assets', 'docs');/** Every base reference doc that has at least one overlay. */function overlayPairs() {diff --git a/packages/cli/api/docs/docs.type.mjs b/packages/cli/api/docs/docs.type.mjsindex 5ef3436f73..996f11b347 100644--- a/packages/cli/api/docs/docs.type.mjs+++ b/packages/cli/api/docs/docs.type.mjs@@ -29,14 +29,14 @@* xds --json docs <topic>* @typedef {object} DocsDetailResponse* @property {'docs.detail'} type- * @property {import('../../../core/src/docs-types').ReferenceDoc} data+ * @property {import('@astryxdesign/cli/authoring').ReferenceDoc} data*//*** xds --json docs <topic> <section>* @typedef {object} DocsDetailSectionResponse* @property {'docs.detail.section'} type- * @property {import('../../../core/src/docs-types').ReferenceSection} data+ * @property {import('@astryxdesign/cli/authoring').ReferenceSection} data*//**diff --git a/packages/cli/api/docs/list/list.mjs b/packages/cli/api/docs/list/list.mjsindex 4728867cce..1d50fbf2a0 100644--- a/packages/cli/api/docs/list/list.mjs+++ b/packages/cli/api/docs/list/list.mjs@@ -3,7 +3,7 @@/*** @file docs.list leaf — enumerate the available reference-doc topics.*- * @input Reads packages/cli/docs/{topic}.doc.mjs via the shared adapter's+ * @input Reads packages/cli/assets/docs/{topic}.doc.mjs via the shared adapter's* topic discovery. Each topic's English `description` is read directly; the* listing never applies --dense/--zh overlays.* @output { type: 'docs.list', data: DocsListEntry[] } — one entry per topic,diff --git a/packages/cli/api/doctor/doctor.mjs b/packages/cli/api/doctor/doctor.mjsindex 9c86716592..c45d0ab4fd 100644--- a/packages/cli/api/doctor/doctor.mjs+++ b/packages/cli/api/doctor/doctor.mjs@@ -24,11 +24,11 @@ import * as fs from 'node:fs';import * as path from 'node:path';import {createRequire} from 'node:module';-import {MIN_NODE_VERSION, isNodeVersionSupported} from '../../lib/node-version.mjs';-import {CLI_ROOT, findCoreDir} from '../../utils/paths.mjs';-import {detectPackageManager, getCliInvocation} from '../../utils/package-manager.mjs';-import {findConfigPath, Project} from '../../lib/project.mjs';-import {semverCompare, isValidSemver} from '../../utils/semver.mjs';+import {MIN_NODE_VERSION, isNodeVersionSupported} from '../../foundation/env/node-version.mjs';+import {CLI_ROOT, findCoreDir} from '../../foundation/fs/paths.mjs';+import {detectPackageManager, getCliInvocation} from '../../foundation/env/package-manager.mjs';+import {findConfigPath, Project} from '../../foundation/config/project.mjs';+import {semverCompare, isValidSemver} from '../../foundation/env/semver.mjs';const _require = createRequire(import.meta.url);diff --git a/packages/cli/api/error.mjs b/packages/cli/api/error.mjsindex 6b3728fa52..29a3c04a53 100644--- a/packages/cli/api/error.mjs+++ b/packages/cli/api/error.mjs@@ -5,16 +5,16 @@** `AstryxError` is what the API layer throws. Alongside the human-readable* message and optional `suggestions`, it carries a stable machine-readable- * `code` (see ../lib/error-codes.mjs). When the CLI catches an AstryxError and+ * `code` (see ../foundation/response/error-codes.mjs). When the CLI catches an AstryxError and* routes it through `cliError`, it propagates `e.code` so the JSON error* envelope's `code` field matches the API contract exactly. The code defaults* to `ERR_UNKNOWN` so older throw sites still produce a valid envelope.*/-import {ERROR_CODES} from '../lib/error-codes.mjs';+import {ERROR_CODES} from '../foundation/response/error-codes.mjs';export class AstryxError extends Error {- /** @type {import('../types/base').Suggestion[] | undefined} */+ /** @type {import('../foundation/response/base').Suggestion[] | undefined} */suggestions;/**@@ -26,7 +26,7 @@ export class AstryxError extends Error {/*** @param {string} message- * @param {import('../types/base').Suggestion[]} [suggestions]+ * @param {import('../foundation/response/base').Suggestion[]} [suggestions]* @param {string} [code] - Stable error code. Defaults to ERR_UNKNOWN.*/constructor(message, suggestions, code) {diff --git a/packages/cli/api/hook/_adapter.mjs b/packages/cli/api/hook/_adapter.mjsindex 4a650836be..6ef1699db4 100644--- a/packages/cli/api/hook/_adapter.mjs+++ b/packages/cli/api/hook/_adapter.mjs@@ -14,12 +14,12 @@* @position api/hook/_adapter.mjs — shared by ./list, ./detail, ./detail/params*/-import {findCoreDir} from '../../utils/paths.mjs';-import {findHookDoc, getAllHookNames} from '../../lib/hook-discovery.mjs';-import {loadDocs} from '../../lib/component-loader.mjs';-import {levenshteinDistance} from '../../lib/string-utils.mjs';+import {findCoreDir} from '../../foundation/fs/paths.mjs';+import {findHookDoc, getAllHookNames} from '../../foundation/discovery/hook-discovery.mjs';+import {loadDocs} from '../../foundation/discovery/component-loader.mjs';+import {levenshteinDistance} from '../../foundation/text/string-utils.mjs';import {AstryxError} from '../error.mjs';-import {ERROR_CODES} from '../../lib/error-codes.mjs';+import {ERROR_CODES} from '../../foundation/response/error-codes.mjs';/*** Locate the @astryxdesign/core package directory, or throw the samediff --git a/packages/cli/api/hook/hook.mjs b/packages/cli/api/hook/hook.mjsindex 65abffc51a..58c8360bcc 100644--- a/packages/cli/api/hook/hook.mjs+++ b/packages/cli/api/hook/hook.mjs@@ -18,7 +18,7 @@ import {list} from './list/list.mjs';import {detail as detailLeaf} from './detail/detail.mjs';import {params as paramsLeaf} from './detail/params/params.mjs';import {AstryxError} from '../error.mjs';-import {ERROR_CODES} from '../../lib/error-codes.mjs';+import {ERROR_CODES} from '../../foundation/response/error-codes.mjs';/*** @param {string} [name]diff --git a/packages/cli/api/hook/hook.type.mjs b/packages/cli/api/hook/hook.type.mjsindex 15cd29726a..2444f6baec 100644--- a/packages/cli/api/hook/hook.type.mjs+++ b/packages/cli/api/hook/hook.type.mjs@@ -2,7 +2,7 @@/*** @file Colocated types for the `hook` command — source of truth for its JSON- * responses (mirrored by `../../types/hook.d.ts`).+ * responses (re-exported by the `./json` barrel at `../json/index.d.ts`).** Detail-level contract for list views (brief < compact < full):* --detail brief Names only. Smallest, most scannable. (DEFAULT for --list)@@ -24,8 +24,8 @@// Re-export the authored-doc types from core so the hook leaves reference these// colocated aliases here (the leaf @returns reference these rather than reaching// into core directly).-/** @typedef {import('../../../core/src/docs-types').HookDoc} HookDoc */-/** @typedef {import('../../../core/src/docs-types').HookParamDoc} HookParamDoc */+/** @typedef {import('@astryxdesign/cli/authoring').HookDoc} HookDoc */+/** @typedef {import('@astryxdesign/cli/authoring').HookParamDoc} HookParamDoc *//*** xds --json hook [--list] [--category X] [--detail names|compact|full]diff --git a/packages/cli/api/hook/list/list.mjs b/packages/cli/api/hook/list/list.mjsindex 070bf0c28b..7679f25909 100644--- a/packages/cli/api/hook/list/list.mjs+++ b/packages/cli/api/hook/list/list.mjs@@ -13,10 +13,10 @@* @position api/hook/list/list.mjs — dispatched from ../hook.mjs*/-import {discoverHooks, findHookDoc} from '../../../lib/hook-discovery.mjs';-import {loadDocs} from '../../../lib/component-loader.mjs';+import {discoverHooks, findHookDoc} from '../../../foundation/discovery/hook-discovery.mjs';+import {loadDocs} from '../../../foundation/discovery/component-loader.mjs';import {AstryxError} from '../../error.mjs';-import {ERROR_CODES} from '../../../lib/error-codes.mjs';+import {ERROR_CODES} from '../../../foundation/response/error-codes.mjs';import {resolveCoreDir} from '../_adapter.mjs';/**diff --git a/packages/cli/api/init/init.test.mjs b/packages/cli/api/init/init.test.mjsindex 3017319e4d..a6f0dba6f4 100644--- a/packages/cli/api/init/init.test.mjs+++ b/packages/cli/api/init/init.test.mjs@@ -15,7 +15,7 @@ import * as os from 'node:os';import {init, getNextSteps} from './init.mjs';import {logger} from '../logger.mjs';import {AstryxError} from '../error.mjs';-import {ERROR_CODES} from '../../lib/error-codes.mjs';+import {ERROR_CODES} from '../../foundation/response/error-codes.mjs';const MARKER_START = '<!-- ASTRYX:START -->';diff --git a/packages/cli/api/init/remove/remove.mjs b/packages/cli/api/init/remove/remove.mjsindex 6ffdf0d2a4..586db9aedf 100644--- a/packages/cli/api/init/remove/remove.mjs+++ b/packages/cli/api/init/remove/remove.mjs@@ -12,7 +12,7 @@* Threading a logger through agent-docs is a separate cleanup.*/-import {removeAgentDocs} from '../../../lib/agent-docs/agent-docs.mjs';+import {removeAgentDocs} from '../../../foundation/agent-docs/agent-docs.mjs';import {logger} from '../../logger.mjs';/**diff --git a/packages/cli/api/init/run/run.mjs b/packages/cli/api/init/run/run.mjsindex dc63d36193..db93d8cb49 100644--- a/packages/cli/api/init/run/run.mjs+++ b/packages/cli/api/init/run/run.mjs@@ -16,13 +16,13 @@import * as path from 'node:path';import * as fs from 'node:fs';-import {CLI_ROOT} from '../../../utils/paths.mjs';-import {PathSafetyError} from '../../../utils/path-safety.mjs';-import {getCliInvocation} from '../../../utils/package-manager.mjs';-import {installAgentDocs} from '../../../lib/agent-docs/agent-docs.mjs';+import {CLI_ROOT} from '../../../foundation/fs/paths.mjs';+import {PathSafetyError} from '../../../foundation/fs/path-safety.mjs';+import {getCliInvocation} from '../../../foundation/env/package-manager.mjs';+import {installAgentDocs} from '../../../foundation/agent-docs/agent-docs.mjs';import {listTemplates} from '../../template/template.mjs';import {AstryxError} from '../../error.mjs';-import {ERROR_CODES} from '../../../lib/error-codes.mjs';+import {ERROR_CODES} from '../../../foundation/response/error-codes.mjs';import {logger} from '../../logger.mjs';const VALID_FEATURES = ['agents', 'theme', 'template'];@@ -150,7 +150,7 @@ function applyTemplate(cwd, {templateName}, invocation, data) {}const outputDir = path.resolve(cwd, `./src/pages/${templateName}`);- const srcPath = path.join(CLI_ROOT, 'templates', 'pages', templateName, 'page.tsx');+ const srcPath = path.join(CLI_ROOT, 'assets', 'templates', 'pages', templateName, 'page.tsx');const destFile = path.join(outputDir, 'page.tsx');// Don't clobber a user's existing page — same guard the peer template/copy and// theme/add write-leaves apply (init is a public API surface too).diff --git a/packages/cli/api/integration/validate-integration.mjs b/packages/cli/api/integration/validate-integration.mjsindex d920ec0318..abb1b588b8 100644--- a/packages/cli/api/integration/validate-integration.mjs+++ b/packages/cli/api/integration/validate-integration.mjs@@ -28,13 +28,13 @@ import {findManifestPaths,loadManifestObject,resolvePackageDir,-} from '../../lib/integrations.mjs';-import {discoverIntegrationCodemods} from '../../codemods/integration-discovery.mjs';+} from '../../foundation/integrations/integrations.mjs';+import {discoverIntegrationCodemods} from '../../assets/codemods/integration-discovery.mjs';import {discoverIntegrationTemplatesForOne} from '../template/template.mjs';-import * as componentDiscovery from '../../lib/component-discovery.mjs';+import * as componentDiscovery from '../../foundation/discovery/component-discovery.mjs';/**- * @typedef {import('../../types/integration').AstryxIntegrationIssue} Issue+ * @typedef {import('../../foundation/integrations/issue').AstryxIntegrationIssue} Issue*//**diff --git a/packages/cli/api/integration/validate-integration.test.mjs b/packages/cli/api/integration/validate-integration.test.mjsindex 1240055dd3..47741a4e5b 100644--- a/packages/cli/api/integration/validate-integration.test.mjs+++ b/packages/cli/api/integration/validate-integration.test.mjs@@ -12,7 +12,6 @@import {afterEach, beforeEach, describe, expect, it} from 'vitest';import * as fs from 'node:fs';import * as path from 'node:path';-import {pathToFileURL} from 'node:url';import {validateLocalIntegration,validateInstalledIntegration,@@ -21,12 +20,6 @@ import {let tmpDir;-// Absolute file:// URL to the codemod helper so codemod modules in the temp-// package can import createCodemod without node_modules wiring.-const codemodModuleUrl = pathToFileURL(- path.resolve(process.cwd(), 'packages/cli/authoring/codemod.mjs'),-).href;-beforeEach(() => {tmpDir = fs.mkdtempSync(path.join(process.cwd(), '.astryx-validate-it-'));});@@ -64,8 +57,7 @@ describe('validate-integration API', () => {fs.mkdirSync(cmDir, {recursive: true});fs.writeFileSync(path.join(cmDir, 'drop-foo.mjs'),- `import {createCodemod} from ${JSON.stringify(codemodModuleUrl)};\n` +- `export default createCodemod({ title: 'Drop foo', transform: (file) => file.source });\n`,+ `export default { type: 'code', title: 'Drop foo', transform: (file) => file.source };\n`,);const result = await validateLocalIntegration(pkgDir);diff --git a/packages/cli/api/integration/validate-integration.type.mjs b/packages/cli/api/integration/validate-integration.type.mjsindex 9313194cc9..415366b7d7 100644--- a/packages/cli/api/integration/validate-integration.type.mjs+++ b/packages/cli/api/integration/validate-integration.type.mjs@@ -33,7 +33,7 @@* `astryx --json validate-integration [package]`.* @typedef {object} ValidateIntegrationResponse* @property {'integration.validate'} type- * @property {{name: string | null, version: string | null, issues: import('../../types/integration').AstryxIntegrationIssue[]}} data+ * @property {{name: string | null, version: string | null, issues: import('../../foundation/integrations/issue').AstryxIntegrationIssue[]}} data*/export {};diff --git a/packages/cli/api/json/index.ts b/packages/cli/api/json/index.tsnew file mode 100644index 0000000000..1bdb7e173d--- /dev/null+++ b/packages/cli/api/json/index.ts@@ -0,0 +1,32 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * Type surface for the `@astryxdesign/cli/json` export — the out-of-process+ * consumer's view of `astryx --json` output.+ *+ * It re-exports every command's response types (the same colocated+ * `api/<cmd>/<cmd>.type.mjs` source of truth the in-process `./api` surface+ * uses) plus the shared response contract: the envelope/error/suggestion base+ * (foundation/response/base), the error-code union (foundation/response/error-codes),+ * and the manifest types (clients/cli/lib/manifest). This keeps `./json` and+ * `./api` describing the same data from one source, with no drift.+ */++export type * from '../component/component.type.mjs';+export type * from '../docs/docs.type.mjs';+export type * from '../blog/blog.type.mjs';+export type * from '../discover/discover.type.mjs';+export type * from '../template/template.type.mjs';+export type * from '../theme/theme.type.mjs';+export type * from '../hook/hook.type.mjs';+export type * from '../search/search.type.mjs';+export type * from '../build/build.type.mjs';+export type * from '../swizzle/swizzle.type.mjs';+export type * from '../upgrade/upgrade.type.mjs';+export type * from '../init/init.type.mjs';+export type * from '../doctor/doctor.type.mjs';+export type * from '../layout/layout.type.mjs';+export type * from '../integration/validate-integration.type.mjs';+export type * from '../../foundation/response/base';+export type * from '../../foundation/response/error-codes';+export type * from '../../clients/cli/lib/manifest';diff --git a/packages/cli/lib/parse.mjs b/packages/cli/api/json/parse.mjssimilarity index 100%rename from packages/cli/lib/parse.mjsrename to packages/cli/api/json/parse.mjsdiff --git a/packages/cli/lib/parse.test.mjs b/packages/cli/api/json/parse.test.mjssimilarity index 100%rename from packages/cli/lib/parse.test.mjsrename to packages/cli/api/json/parse.test.mjsdiff --git a/packages/cli/api/layout/_adapter.mjs b/packages/cli/api/layout/_adapter.mjsindex f51b838d8a..17e333d449 100644--- a/packages/cli/api/layout/_adapter.mjs+++ b/packages/cli/api/layout/_adapter.mjs@@ -15,12 +15,12 @@*/import {AstryxError} from '../error.mjs';-import {ERROR_CODES} from '../../lib/error-codes.mjs';-import {parse, XLEParseError} from '../../lib/xle/parse.mjs';-import {validate} from '../../lib/xle/validate.mjs';-import {buildRegistry} from '../../lib/xle/registry.mjs';+import {ERROR_CODES} from '../../foundation/response/error-codes.mjs';+import {parse, XLEParseError} from '../../foundation/xle/parse.mjs';+import {validate} from '../../foundation/xle/validate.mjs';+import {buildRegistry} from '../../foundation/xle/registry.mjs';import {discoverTemplates} from '../template/template.mjs';-import {Project} from '../../lib/project.mjs';+import {Project} from '../../foundation/config/project.mjs';/*** @typedef {object} LayoutBlock@@ -78,7 +78,7 @@ async function loadBlocks(cwd) {return blocks;}-/** @param {import('../../lib/xle/xle-ast').RawIssue} issue */+/** @param {import('../../foundation/xle/xle-ast').RawIssue} issue */export function formatIssue(issue) {const where = issue.line != null ? `line ${issue.line}: ` : '';return `${where}${issue.message}`;@@ -108,12 +108,12 @@ export async function analyze(expression, {form = 'auto', loose = false, cwd = pERROR_CODES.ERR_INVALID_OPTION,);}- const registry = /** @type {import('../../lib/xle/xle-ast').Registry} */ (+ const registry = /** @type {import('../../foundation/xle/xle-ast').Registry} */ (/** @type {unknown} */ (await buildRegistry({cwd})));const blocks = await loadBlocks(cwd);- /** @type {import('../../lib/xle/xle-ast').XLEDoc} */+ /** @type {import('../../foundation/xle/xle-ast').XLEDoc} */let doc;try {doc = parse(expression, {form});diff --git a/packages/cli/api/layout/check/check.mjs b/packages/cli/api/layout/check/check.mjsindex 901dec6136..c69678446b 100644--- a/packages/cli/api/layout/check/check.mjs+++ b/packages/cli/api/layout/check/check.mjs@@ -11,7 +11,7 @@* @position api — leaf over ../_adapter.mjs + lib/xle/print*/-import {toCompact, toOutline} from '../../../lib/xle/print.mjs';+import {toCompact, toOutline} from '../../../foundation/xle/print.mjs';import {analyze, formatIssue} from '../_adapter.mjs';/**diff --git a/packages/cli/api/layout/expand/expand.mjs b/packages/cli/api/layout/expand/expand.mjsindex e1bf5d32f0..4cd295e6fd 100644--- a/packages/cli/api/layout/expand/expand.mjs+++ b/packages/cli/api/layout/expand/expand.mjs@@ -14,10 +14,10 @@import * as fs from 'node:fs';import * as path from 'node:path';import {AstryxError} from '../../error.mjs';-import {ERROR_CODES} from '../../../lib/error-codes.mjs';-import {assertWithin, isFilePathArg, PathSafetyError} from '../../../utils/path-safety.mjs';-import {detectForm} from '../../../lib/xle/parse.mjs';-import {expand} from '../../../lib/xle/expand.mjs';+import {ERROR_CODES} from '../../../foundation/response/error-codes.mjs';+import {assertWithin, isFilePathArg, PathSafetyError} from '../../../foundation/fs/path-safety.mjs';+import {detectForm} from '../../../foundation/xle/parse.mjs';+import {expand} from '../../../foundation/xle/expand.mjs';import {stripTemplateAssetRefs} from '../../template/template.mjs';import {analyze, formatIssue} from '../_adapter.mjs';@@ -26,12 +26,12 @@ const normKey = (name) => name.toLowerCase().replace(/[^a-z0-9]/g, '');/*** Collect the block names referenced by {hints} anywhere in the doc.- * @param {import('../../../lib/xle/xle-ast').XLEDoc} doc+ * @param {import('../../../foundation/xle/xle-ast').XLEDoc} doc*/function collectHintNames(doc) {/** @type {Set<string>} */const names = new Set();- /** @param {import('../../../lib/xle/xle-ast').XLEItem} node */+ /** @param {import('../../../foundation/xle/xle-ast').XLEItem} node */const visitNode = (node) => {if (!node || node.kind === 'group') {(node?.children || []).forEach(visit);@@ -49,7 +49,7 @@ function collectHintNames(doc) {}(node.children || []).forEach(visit);};- /** @param {import('../../../lib/xle/xle-ast').XLEItem} item */+ /** @param {import('../../../foundation/xle/xle-ast').XLEItem} item */const visit = (item) => (item?.kind === 'group' ? item.children.forEach(visit) : visitNode(item));doc.roots.forEach(visit);doc.overlays.forEach(visit);@@ -61,23 +61,23 @@ function collectHintNames(doc) {* splice-mode (reading + asset-stripping the block source) for template blocks.* Only blocks actually referenced are read.*- * @param {import('../../../lib/xle/xle-ast').XLEDoc} doc+ * @param {import('../../../foundation/xle/xle-ast').XLEDoc} doc* @param {import('../_adapter.mjs').LayoutBlock[]} blocks- * @returns {Map<string, import('../../../lib/xle/xle-ast').BlockModule>}+ * @returns {Map<string, import('../../../foundation/xle/xle-ast').BlockModule>}*/function buildBlockModules(doc, blocks) {const referenced = collectHintNames(doc);if (referenced.size === 0) return new Map();const byKey = new Map(blocks.map(b => [normKey(b.dirName), b]));- /** @type {Map<string, import('../../../lib/xle/xle-ast').BlockModule>} */+ /** @type {Map<string, import('../../../foundation/xle/xle-ast').BlockModule>} */const modules = new Map();for (const name of referenced) {const block = byKey.get(normKey(name));if (!block) continue;if (block.kind === 'component') {- modules.set(name, /** @type {import('../../../lib/xle/xle-ast').BlockModule} */ (/** @type {unknown} */ ({mode: 'import', componentName: block.name, importPath: block.importPath, isDefault: block.isDefault})));+ modules.set(name, /** @type {import('../../../foundation/xle/xle-ast').BlockModule} */ (/** @type {unknown} */ ({mode: 'import', componentName: block.name, importPath: block.importPath, isDefault: block.isDefault})));} else if (block.filePath && fs.existsSync(block.filePath)) {- modules.set(name, /** @type {import('../../../lib/xle/xle-ast').BlockModule} */ ({mode: 'splice', componentName: block.dirName, source: stripTemplateAssetRefs(fs.readFileSync(block.filePath, 'utf-8'))}));+ modules.set(name, /** @type {import('../../../foundation/xle/xle-ast').BlockModule} */ ({mode: 'splice', componentName: block.dirName, source: stripTemplateAssetRefs(fs.readFileSync(block.filePath, 'utf-8'))}));}}return modules;diff --git a/packages/cli/api/layout/grammar/grammar.mjs b/packages/cli/api/layout/grammar/grammar.mjsindex b43951364f..e9d1b7edda 100644--- a/packages/cli/api/layout/grammar/grammar.mjs+++ b/packages/cli/api/layout/grammar/grammar.mjs@@ -9,7 +9,7 @@* @position api — leaf over lib/xle/registry*/-import {buildRegistry} from '../../../lib/xle/registry.mjs';+import {buildRegistry} from '../../../foundation/xle/registry.mjs';/*** `astryx layout grammar` — the agent cheatsheet, with the alias tablediff --git a/packages/cli/api/layout/layout.test.mjs b/packages/cli/api/layout/layout.test.mjsindex 15868b9910..b3a5394ef6 100644--- a/packages/cli/api/layout/layout.test.mjs+++ b/packages/cli/api/layout/layout.test.mjs@@ -13,7 +13,7 @@ import {tmpdir} from 'node:os';import {join} from 'node:path';import ts from 'typescript';import {layoutExpand, layoutCheck, layoutGrammar} from './layout.mjs';-import {buildRegistry} from '../../lib/xle/registry.mjs';+import {buildRegistry} from '../../foundation/xle/registry.mjs';// The registry imports ~140 .doc.mjs modules on first use; under full-suite// parallel load that can exceed the default 5s test timeout. Warm it once.diff --git a/packages/cli/api/logger.mjs b/packages/cli/api/logger.mjsindex 773c5c1938..675bde9d8c 100644--- a/packages/cli/api/logger.mjs+++ b/packages/cli/api/logger.mjs@@ -20,7 +20,7 @@* @property {(silent: boolean) => void} setSilent Enable/disable output.*/-import {humanLog} from '../lib/json.mjs';+import {humanLog} from '../foundation/response/json.mjs';/*** The single logger instance. Silent until the CLI enables output.diff --git a/packages/cli/api/search/search.mjs b/packages/cli/api/search/search.mjsindex 5d080602bb..19f1726fd7 100644--- a/packages/cli/api/search/search.mjs+++ b/packages/cli/api/search/search.mjs@@ -33,19 +33,19 @@import * as fs from 'node:fs';import * as path from 'node:path';import {pathToFileURL} from 'node:url';-import {findCoreDir, CLI_ROOT} from '../../utils/paths.mjs';+import {findCoreDir, CLI_ROOT} from '../../foundation/fs/paths.mjs';import {discoverComponents,findComponentReadme,resolveImportPath,-} from '../../lib/component-discovery.mjs';-import {discoverHooks, findHookDoc} from '../../lib/hook-discovery.mjs';-import {levenshteinDistance} from '../../lib/string-utils.mjs';+} from '../../foundation/discovery/component-discovery.mjs';+import {discoverHooks, findHookDoc} from '../../foundation/discovery/hook-discovery.mjs';+import {levenshteinDistance} from '../../foundation/text/string-utils.mjs';import {discoverTemplates, extractComponents} from '../template/template.mjs';import {AstryxError} from '../error.mjs';-import {ERROR_CODES} from '../../lib/error-codes.mjs';+import {ERROR_CODES} from '../../foundation/response/error-codes.mjs';-const DOCS_DIR = path.join(CLI_ROOT, 'docs');+const DOCS_DIR = path.join(CLI_ROOT, 'assets', 'docs');/*** A search candidate gathered from one content domain. Extra underscore-diff --git a/packages/cli/api/swizzle/_adapter.mjs b/packages/cli/api/swizzle/_adapter.mjsindex c37ae2edda..b460a81388 100644--- a/packages/cli/api/swizzle/_adapter.mjs+++ b/packages/cli/api/swizzle/_adapter.mjs@@ -11,8 +11,8 @@* (ERR_CORE_NOT_FOUND) when core can't be located.*/-import {findCoreDir, listComponents} from '../../utils/paths.mjs';-import {ERROR_CODES} from '../../lib/error-codes.mjs';+import {findCoreDir, listComponents} from '../../foundation/fs/paths.mjs';+import {ERROR_CODES} from '../../foundation/response/error-codes.mjs';import {AstryxError} from '../error.mjs';/**diff --git a/packages/cli/utils/github.mjs b/packages/cli/api/swizzle/_github.mjssimilarity index 100%rename from packages/cli/utils/github.mjsrename to packages/cli/api/swizzle/_github.mjsdiff --git a/packages/cli/utils/github.test.mjs b/packages/cli/api/swizzle/_github.test.mjssimilarity index 97%rename from packages/cli/utils/github.test.mjsrename to packages/cli/api/swizzle/_github.test.mjsindex e095ab2497..555b6f3b5b 100644--- a/packages/cli/utils/github.test.mjs+++ b/packages/cli/api/swizzle/_github.test.mjs@@ -12,7 +12,7 @@import {describe, it, expect, vi, afterEach} from 'vitest';import {execFileSync} from 'node:child_process';-import {checkGhCli} from './github.mjs';+import {checkGhCli} from './_github.mjs';vi.mock('node:child_process', () => ({execFileSync: vi.fn()}));diff --git a/packages/cli/api/swizzle/copy/copy.mjs b/packages/cli/api/swizzle/copy/copy.mjsindex 5f55510277..96d34ff3b3 100644--- a/packages/cli/api/swizzle/copy/copy.mjs+++ b/packages/cli/api/swizzle/copy/copy.mjs@@ -16,15 +16,15 @@import * as fs from 'node:fs';import * as path from 'node:path';import {resolveCore} from '../_adapter.mjs';-import {assertWithin, sanitizeName, PathSafetyError} from '../../../utils/path-safety.mjs';-import {checkGhCli} from '../../../utils/github.mjs';-import {Project} from '../../../lib/project.mjs';+import {assertWithin, sanitizeName, PathSafetyError} from '../../../foundation/fs/path-safety.mjs';+import {checkGhCli} from '../_github.mjs';+import {Project} from '../../../foundation/config/project.mjs';import {CORE_PACKAGE,findIntegrationComponentDoc,findIntegrationComponentSource,-} from '../../../lib/component-discovery.mjs';-import {ERROR_CODES} from '../../../lib/error-codes.mjs';+} from '../../../foundation/discovery/component-discovery.mjs';+import {ERROR_CODES} from '../../../foundation/response/error-codes.mjs';import {AstryxError} from '../../error.mjs';/** Default issue tracker for maintainer feedback after swizzling. */@@ -110,7 +110,7 @@ function buildFeedback(component, issuesUrl) {* Load the configured integrations + core issues URL for `cwd`, swallowing any* config errors so swizzle never hard-fails on a malformed/absent config.* @param {string} cwd- * @returns {Promise<{loadedIntegrations: import('../../../lib/integrations.mjs').LoadedIntegration[], issuesUrl: string|undefined, project: Project|null}>}+ * @returns {Promise<{loadedIntegrations: import('../../../foundation/integrations/integrations.mjs').LoadedIntegration[], issuesUrl: string|undefined, project: Project|null}>}*/async function loadConfigSafely(cwd) {try {diff --git a/packages/cli/api/template/_adapter.mjs b/packages/cli/api/template/_adapter.mjsindex 0a1239e93a..fce74b0c44 100644--- a/packages/cli/api/template/_adapter.mjs+++ b/packages/cli/api/template/_adapter.mjs@@ -19,10 +19,10 @@import * as fs from 'node:fs';import * as path from 'node:path';import {createJiti} from 'jiti';-import {loadModuleWithSchema} from '../../lib/module-loader.mjs';-import {TemplateEnvelopeSchema} from '../../schemas/template-schema.mjs';-import {CLI_ROOT, discoverExternalPackages} from '../../utils/paths.mjs';-import {Project} from '../../lib/project.mjs';+import {loadModuleWithParser} from '../../foundation/fs/module-loader.mjs';+import {parseTemplate} from '../../authoring/doctypes/template/parse.mjs';+import {CLI_ROOT, discoverExternalPackages} from '../../foundation/fs/paths.mjs';+import {Project} from '../../foundation/config/project.mjs';/** Identity used for core (built-in) templates in package-scoped listings. */const CORE_PACKAGE = '@astryxdesign/core';@@ -72,8 +72,9 @@ export function pkgOf(t) {/*** Canonical basename suffixes for template-spec files, in precedence order.- * A template spec exports a `createBlockTemplate`/`createPageTemplate` result- * (a scaffoldable TEMPLATE), so `.template.*` is the descriptive family name.+ * A template spec is a scaffoldable TEMPLATE (a plain object stamped with a+ * `type` of `'page'` or `'block'`), so `.template.*` is the descriptive family+ * name.*/const TEMPLATE_SUFFIXES = ['.template.ts', '.template.mjs', '.template.js'];@@ -122,7 +123,7 @@ function getJiti() {* Load an integration template doc module and validate it against the template* envelope at the load boundary. Default export only — `.ts` via jiti,* `.mjs`/`.js` via dynamic import. Throws (caught by discovery) if the default- * export is missing or fails {@link TemplateEnvelopeSchema}. NOTE: the built-in+ * export is missing or fails {@link parseTemplate}. NOTE: the built-in* core templates use `export const doc = {...}` and are loaded by a different* function ({@link loadDocModule}) — this path is for INTEGRATION templates.*@@ -130,10 +131,10 @@ function getJiti() {* @param {string} [label]*/async function loadIntegrationDoc(file, label) {- return loadModuleWithSchema(file, TemplateEnvelopeSchema, {label});+ return loadModuleWithParser(file, parseTemplate, {label});}-const TEMPLATES_DIR = path.join(CLI_ROOT, 'templates');+const TEMPLATES_DIR = path.join(CLI_ROOT, 'assets', 'templates');const PAGES_DIR = path.join(TEMPLATES_DIR, 'pages');const BLOCKS_DIR = path.join(TEMPLATES_DIR, 'blocks');@@ -185,8 +186,8 @@ export function stripTemplateAssetRefs(source) {* Load a template-spec module and return its metadata object. Supports both* families of suffix:* - Legacy `.doc.*` core/external specs export `export const doc = {...}`.- * - Specs authored with `createPageTemplate`/`createBlockTemplate` export the- * stamped object as the default export.+ * - Canonical `.template.*` specs export the stamped object (`type: 'page' |+ * 'block'`) as the default export.* Prefers the default export, falling back to the named `doc` export, so a* `Foo.template.ts` (default export) is read identically to a legacy* `Foo.doc.mjs` (`doc` export). `.ts` is loaded via jiti; `.mjs`/`.js` via a@@ -457,7 +458,7 @@ async function discoverIntegrationTemplates(cwd = process.cwd()) {try {const project = await Project.load(cwd);loadedIntegrations =- /** @type {import('../../lib/integrations.mjs').LoadedIntegration[]} */ (+ /** @type {import('../../foundation/integrations/integrations.mjs').LoadedIntegration[]} */ (project.loadedIntegrations);} catch (err) {@@ -543,7 +544,7 @@ export async function discoverIntegrationTemplatesForOne(integration) {errors.push({package: pkgLabel,template: id,- message: `Template "${id}" is missing a "type" of "page" or "block". Author it with createPageTemplate/createBlockTemplate.`,+ message: `Template "${id}" is missing a "type" of "page" or "block". Stamp the default export with type: 'page' or type: 'block'.`,});continue;}@@ -556,7 +557,11 @@ export async function discoverIntegrationTemplatesForOne(integration) {category: doc?.category || '',isReady: true,scaffold: false,- componentsUsed: doc?.componentsUsed ?? [],+ // The integration envelope carries `componentsUsed` for both page and+ // block templates; the rich TemplateDoc union only declares it on blocks,+ // so read it off the envelope shape here.+ componentsUsed:+ /** @type {{componentsUsed?: string[]}} */ (doc).componentsUsed ?? [],filePath: sourcePath,docPath,package: pkgLabel,diff --git a/packages/cli/api/template/copy/copy.mjs b/packages/cli/api/template/copy/copy.mjsindex 0010faf8b8..c77fa49db0 100644--- a/packages/cli/api/template/copy/copy.mjs+++ b/packages/cli/api/template/copy/copy.mjs@@ -15,9 +15,9 @@ import {assertWithin,isFilePathArg,PathSafetyError,-} from '../../../utils/path-safety.mjs';+} from '../../../foundation/fs/path-safety.mjs';import {AstryxError} from '../../error.mjs';-import {ERROR_CODES} from '../../../lib/error-codes.mjs';+import {ERROR_CODES} from '../../../foundation/response/error-codes.mjs';import {stripTemplateAssetRefs} from '../_adapter.mjs';/**diff --git a/packages/cli/api/template/show/show.mjs b/packages/cli/api/template/show/show.mjsindex 7f807ad329..546077e482 100644--- a/packages/cli/api/template/show/show.mjs+++ b/packages/cli/api/template/show/show.mjs@@ -10,7 +10,7 @@import * as fs from 'node:fs';import {AstryxError} from '../../error.mjs';-import {ERROR_CODES} from '../../../lib/error-codes.mjs';+import {ERROR_CODES} from '../../../foundation/response/error-codes.mjs';import {extractComponents} from '../_adapter.mjs';/**diff --git a/packages/cli/api/template/skeleton/skeleton.mjs b/packages/cli/api/template/skeleton/skeleton.mjsindex fc35fd68a7..d75b83758b 100644--- a/packages/cli/api/template/skeleton/skeleton.mjs+++ b/packages/cli/api/template/skeleton/skeleton.mjs@@ -10,7 +10,7 @@import * as fs from 'node:fs';import {AstryxError} from '../../error.mjs';-import {ERROR_CODES} from '../../../lib/error-codes.mjs';+import {ERROR_CODES} from '../../../foundation/response/error-codes.mjs';import {extractComponents} from '../_adapter.mjs';const STRUCTURAL = new Set([diff --git a/packages/cli/api/template/template-integration.test.mjs b/packages/cli/api/template/template-integration.test.mjsindex 6b42e3620e..5a4e5cb2dd 100644--- a/packages/cli/api/template/template-integration.test.mjs+++ b/packages/cli/api/template/template-integration.test.mjs@@ -17,9 +17,6 @@ import {template} from './template.mjs';let tmpDir;let originalCwd;-/** Absolute path to the CLI package so integrations can import /template. */-const CLI_PKG = path.resolve(import.meta.dirname, '..', '..');-function makeConsumer() {const dir = fs.mkdtempSync(path.join(process.cwd(), '.astryx-template-it-'),@@ -58,12 +55,10 @@ function installWidgets(consumerDir) {function writeTemplate(pkgDir, id, {kind, body, withSource = true}) {const docPath = path.join(pkgDir, 'templates', `${id}.doc.mjs`);fs.mkdirSync(path.dirname(docPath), {recursive: true});- const create = kind === 'page' ? 'createPageTemplate' : 'createBlockTemplate';fs.writeFileSync(docPath,body ??- `import {${create}} from '${CLI_PKG}/authoring/template.mjs';\n` +- `export default ${create}({name: '${id} name', description: '${id} desc'});\n`,+ `export default {type: '${kind}', name: '${id} name', description: '${id} desc'};\n`,);if (withSource) {fs.writeFileSync(@@ -166,8 +161,7 @@ describe('integration template discovery', () => {);fs.writeFileSync(path.join(pkg2, 'templates', 'hero.doc.mjs'),- `import {createBlockTemplate} from '${CLI_PKG}/authoring/template.mjs';\n` +- `export default createBlockTemplate({name: 'Hero block', description: 'b'});\n`,+ `export default {type: 'block', name: 'Hero block', description: 'b'};\n`,);fs.writeFileSync(path.join(pkg2, 'templates', 'hero.tsx'),diff --git a/packages/cli/api/template/template-suffix.test.mjs b/packages/cli/api/template/template-suffix.test.mjsindex 3044b5e2cf..21fe948a42 100644--- a/packages/cli/api/template/template-suffix.test.mjs+++ b/packages/cli/api/template/template-suffix.test.mjs@@ -4,8 +4,8 @@* @file The canonical `.template.{ts,mjs,js}` suffix is discovered identically* to the legacy `.doc.{ts,mjs,js}` suffix.*- * Template-spec files are named for what they are: a scaffoldable TEMPLATE that- * exports `createBlockTemplate`/`createPageTemplate`. The `.doc.*` suffix was+ * Template-spec files are named for what they are: a scaffoldable TEMPLATE+ * stamped with `type: 'page' | 'block'`. The `.doc.*` suffix was* inherited from the component-doc convention and is still accepted during the* transition. These tests stand up integration templates and external blocks in* both families and assert byte-for-byte-equivalent discovery + scaffolding.@@ -21,9 +21,6 @@ import {findRelatedBlocks,} from './template.mjs';-/** Absolute path to the CLI package so fixtures can import /authoring/template.mjs. */-const CLI_PKG = path.resolve(import.meta.dirname, '..', '..');-let tmpDir;let originalCwd;@@ -55,8 +52,8 @@ function installWidgets(consumerDir) {}/**- * Write a template-spec file (default-export createPageTemplate/BlockTemplate)- * plus its same-stem `.tsx` source under the templates root.+ * Write a template-spec file (default-export a stamped `type: 'page' | 'block'`+ * object) plus its same-stem `.tsx` source under the templates root.* @param {string} pkgDir* @param {string} id* @param {{kind: 'page'|'block', suffix: string}} opts@@ -64,12 +61,9 @@ function installWidgets(consumerDir) {function writeTemplate(pkgDir, id, {kind, suffix}) {const docPath = path.join(pkgDir, 'templates', `${id}${suffix}`);fs.mkdirSync(path.dirname(docPath), {recursive: true});- const create =- kind === 'page' ? 'createPageTemplate' : 'createBlockTemplate';fs.writeFileSync(docPath,- `import {${create}} from '${CLI_PKG}/authoring/template.mjs';\n` +- `export default ${create}({name: '${id} name', description: '${id} desc'});\n`,+ `export default {type: '${kind}', name: '${id} name', description: '${id} desc'};\n`,);fs.writeFileSync(path.join(pkgDir, 'templates', `${id}.tsx`),@@ -172,19 +166,19 @@ describe('external showcase blocks: .template.* discovered like legacy .doc.*',const extDir = path.join(tmpDir, 'node_modules', '@test', 'ext');const blocksDir = path.join(extDir, 'blocks', 'components');- // Foo showcase — canonical .template.ts (default-export createBlockTemplate).+ // Foo showcase — canonical .template.ts (stamped type: 'block' default export).const fooDir = path.join(blocksDir, 'Foo');fs.mkdirSync(fooDir, {recursive: true});fs.writeFileSync(path.join(fooDir, 'FooShowcase.template.ts'),- `import {createBlockTemplate} from '${CLI_PKG}/authoring/template.mjs';\n` +- `export default createBlockTemplate({\n` ++ `export default {\n` ++ ` type: 'block',\n` +` name: 'Foo — Showcase',\n` +` description: 'Foo showcase.',\n` +` isShowcase: true,\n` +` aspectRatio: 16 / 9,\n` +` componentsUsed: ['Foo'],\n` +- `});\n`,+ `};\n`,);fs.writeFileSync(path.join(fooDir, 'FooShowcase.tsx'),diff --git a/packages/cli/api/template/template.mjs b/packages/cli/api/template/template.mjsindex 9b264d4926..a3aca951fa 100644--- a/packages/cli/api/template/template.mjs+++ b/packages/cli/api/template/template.mjs@@ -17,7 +17,7 @@import {discoverAll, pkgOf} from './_adapter.mjs';import {AstryxError} from '../error.mjs';-import {ERROR_CODES} from '../../lib/error-codes.mjs';+import {ERROR_CODES} from '../../foundation/response/error-codes.mjs';import {templateList} from './list/list.mjs';import {templateShow} from './show/show.mjs';import {templateSkeleton} from './skeleton/skeleton.mjs';diff --git a/packages/cli/api/theme/_adapter.mjs b/packages/cli/api/theme/_adapter.mjsindex 5a0974bc8c..227c41ea6a 100644--- a/packages/cli/api/theme/_adapter.mjs+++ b/packages/cli/api/theme/_adapter.mjs@@ -9,12 +9,12 @@import * as fs from 'node:fs';import * as path from 'node:path';-import {CLI_ROOT} from '../../utils/paths.mjs';+import {CLI_ROOT} from '../../foundation/fs/paths.mjs';import {AstryxError} from '../error.mjs';-import {ERROR_CODES} from '../../lib/error-codes.mjs';+import {ERROR_CODES} from '../../foundation/response/error-codes.mjs';/** Directory holding the generated theme bundle. */-export const THEMES_DIR = path.join(CLI_ROOT, 'templates', 'themes');+export const THEMES_DIR = path.join(CLI_ROOT, 'assets', 'templates', 'themes');/** The bundle manifest that lists every theme (+ its files). */export const MANIFEST_PATH = path.join(THEMES_DIR, 'manifest.json');diff --git a/packages/cli/api/theme/add/add.mjs b/packages/cli/api/theme/add/add.mjsindex 3becff3a44..e07c07d750 100644--- a/packages/cli/api/theme/add/add.mjs+++ b/packages/cli/api/theme/add/add.mjs@@ -9,9 +9,9 @@import * as fs from 'node:fs';import * as path from 'node:path';-import {assertWithin, PathSafetyError} from '../../../utils/path-safety.mjs';+import {assertWithin, PathSafetyError} from '../../../foundation/fs/path-safety.mjs';import {AstryxError} from '../../error.mjs';-import {ERROR_CODES} from '../../../lib/error-codes.mjs';+import {ERROR_CODES} from '../../../foundation/response/error-codes.mjs';import {THEMES_DIR, listThemes, findTheme} from '../_adapter.mjs';// Stripped from scaffolded files so the consumer's copy doesn't carry ourdiff --git a/packages/cli/api/theme/build/build.mjs b/packages/cli/api/theme/build/build.mjsindex 0c5c7f72ae..61679d17d4 100644--- a/packages/cli/api/theme/build/build.mjs+++ b/packages/cli/api/theme/build/build.mjs@@ -22,12 +22,12 @@ import * as fs from 'node:fs';import * as path from 'node:path';import {pathToFileURL, fileURLToPath} from 'node:url';import {createJiti} from 'jiti';-import {getCliInvocation} from '../../../utils/package-manager.mjs';+import {getCliInvocation} from '../../../foundation/env/package-manager.mjs';import {sanitizeName,PathSafetyError,-} from '../../../utils/path-safety.mjs';-import {ERROR_CODES} from '../../../lib/error-codes.mjs';+} from '../../../foundation/fs/path-safety.mjs';+import {ERROR_CODES} from '../../../foundation/response/error-codes.mjs';import {AstryxError} from '../../error.mjs';import {logger} from '../../logger.mjs';diff --git a/packages/cli/api/upgrade/_adapter.mjs b/packages/cli/api/upgrade/_adapter.mjsindex d68ae5e874..47603210eb 100644--- a/packages/cli/api/upgrade/_adapter.mjs+++ b/packages/cli/api/upgrade/_adapter.mjs@@ -18,19 +18,19 @@ import * as fs from 'node:fs';import * as path from 'node:path';import {execFile} from 'node:child_process';import {promisify} from 'node:util';-import {ensureJscodeshift} from '../../codemods/ensure-jscodeshift.mjs';-import {getTransformsBetween, latestVersion} from '../../codemods/registry.mjs';-import {runCodemods} from '../../codemods/runner.mjs';+import {ensureJscodeshift} from '../../assets/codemods/ensure-jscodeshift.mjs';+import {getTransformsBetween, latestVersion} from '../../assets/codemods/registry.mjs';+import {runCodemods} from '../../assets/codemods/runner.mjs';import {discoverIntegrationCodemods,selectIntegrationCodemods,-} from '../../codemods/integration-discovery.mjs';-import {runIntegrationCodemods} from '../../codemods/integration-runner.mjs';-import {installAgentDocs, inspectAgentDocs} from '../../lib/agent-docs/agent-docs.mjs';-import {formatCliCommand} from '../../utils/package-manager.mjs';-import {Project} from '../../lib/project.mjs';-import {loadIntegrations} from '../../lib/integrations.mjs';-import {warnOnIntegrationIssues} from '../../lib/integration-warnings.mjs';+} from '../../assets/codemods/integration-discovery.mjs';+import {runIntegrationCodemods} from '../../assets/codemods/integration-runner.mjs';+import {installAgentDocs, inspectAgentDocs} from '../../foundation/agent-docs/agent-docs.mjs';+import {formatCliCommand} from '../../foundation/env/package-manager.mjs';+import {Project} from '../../foundation/config/project.mjs';+import {loadIntegrations} from '../../foundation/integrations/integrations.mjs';+import {warnOnIntegrationIssues} from '../../foundation/integrations/integration-warnings.mjs';import {logger} from '../logger.mjs';const execFileAsync = promisify(execFile);@@ -38,7 +38,7 @@ const execFileAsync = promisify(execFile);/*** @typedef {object} CoreTransformEntry* @property {string} name- * @property {import('../../types/codemod').CodemodTransform} transform+ * @property {import('../../authoring/codemod/type').CodemodTransform} transform* @property {{title: string, description?: string, pr?: string, codemodType?: string}} meta* @property {boolean} [optional]*/@@ -95,7 +95,7 @@ export function uniqueFiles(files) {/*** Run the app config's post-codemod hooks (config.hooks.postCodemod).* Dry-run PREVIEWS (buildCommand still called, so a throw fails); apply executes.- * @param {import('../../types/config').PostCodemodHook[]} hooks+ * @param {import('../../authoring/config/type').PostCodemodHook[]} hooks* @param {{packageDir: string, files: string[], apply: boolean}} context*/export async function runPostCodemodHooks(hooks, context) {@@ -269,7 +269,7 @@ export async function runCoreCodemods(versionManifests, {apply, path: srcPath, c* the run leaf decides between the config_fixable preview and a hard abort.* @param {string} cwd* @param {string[]} [extraIntegrationSpecs] explicit `--integration` specs- * @returns {Promise<{postCodemodHooks: import('../../types/config').PostCodemodHook[], integrations: import('../../lib/integrations.mjs').LoadedIntegration[]}>}+ * @returns {Promise<{postCodemodHooks: import('../../authoring/config/type').PostCodemodHook[], integrations: import('../../foundation/integrations/integrations.mjs').LoadedIntegration[]}>}*/export async function loadProjectContext(cwd, extraIntegrationSpecs = []) {const project = await Project.load(cwd);@@ -286,7 +286,7 @@ export async function loadProjectContext(cwd, extraIntegrationSpecs = []) {* Non-blocking nudge for integration validation issues. Never throws (a broken* nudge must not fail the upgrade) and is suppressed for --json/programmatic* callers (the silent logger).- * @param {Array<import('../../lib/integrations.mjs').LoadedIntegration>} integrations+ * @param {Array<import('../../foundation/integrations/integrations.mjs').LoadedIntegration>} integrations* @returns {Promise<void>}*/export async function warnIntegrationIssues(integrations) {@@ -301,20 +301,20 @@ export async function warnIntegrationIssues(integrations) {* Discover + select the integration codemods that apply in the (from, to]* range. An integration whose codemods fail to load is SKIPPED (a definition* error is surfaced by the nudge, not a hard failure of the upgrade).- * @param {Array<import('../../lib/integrations.mjs').LoadedIntegration>} integrations+ * @param {Array<import('../../foundation/integrations/integrations.mjs').LoadedIntegration>} integrations* @param {string} from* @param {string} to- * @returns {Promise<Array<{version: string, codemods: import('../../types/codemod').CodemodEntry[]}>>}+ * @returns {Promise<Array<{version: string, codemods: import('../../authoring/codemod/type').CodemodEntry[]}>>}*/export async function selectIntegrationCodemodsFor(integrations, from, to) {- /** @type {Map<string, Array<import('../../types/codemod').CodemodEntry>>} */+ /** @type {Map<string, Array<import('../../authoring/codemod/type').CodemodEntry>>} */const integrationCodemodsByVersion = new Map();for (const integration of integrations) {if (!integration?.codemods) continue;try {const byVersion = await discoverIntegrationCodemods([integration]);for (const [version, rawList] of byVersion) {- const list = /** @type {Array<import('../../types/codemod').CodemodEntry>} */ (/** @type {unknown} */ (rawList));+ const list = /** @type {Array<import('../../authoring/codemod/type').CodemodEntry>} */ (/** @type {unknown} */ (rawList));const existing = integrationCodemodsByVersion.get(version);if (existing) existing.push(...list);else integrationCodemodsByVersion.set(version, [...list]);@@ -323,14 +323,14 @@ export async function selectIntegrationCodemodsFor(integrations, from, to) {// Skip this integration's codemods (definition error); nudge above surfaces it.}}- return /** @type {Array<{version: string, codemods: import('../../types/codemod').CodemodEntry[]}>} */ (+ return /** @type {Array<{version: string, codemods: import('../../authoring/codemod/type').CodemodEntry[]}>} */ (selectIntegrationCodemods(integrationCodemodsByVersion, from, to));}/*** Run the file-based INTEGRATION codemods (config codemods first, then code).- * @param {Array<{version: string, codemods: import('../../types/codemod').CodemodEntry[]}>} versionGroups+ * @param {Array<{version: string, codemods: import('../../authoring/codemod/type').CodemodEntry[]}>} versionGroups* @param {{apply: boolean, path: string, codemod?: string, skipCodemods: Set<string>}} options*/export async function runIntegrationCodemodsStep(versionGroups, {apply, path: srcPath, codemod, skipCodemods}) {diff --git a/packages/cli/api/upgrade/run/run.mjs b/packages/cli/api/upgrade/run/run.mjsindex 529a57bd51..968b6e5390 100644--- a/packages/cli/api/upgrade/run/run.mjs+++ b/packages/cli/api/upgrade/run/run.mjs@@ -36,12 +36,12 @@ import {statusNoCodemods,statusConfigFixable,} from '../status/status.mjs';-import {semverGte} from '../../../utils/semver.mjs';-import {getCliInvocation} from '../../../utils/package-manager.mjs';-import {ERROR_CODES} from '../../../lib/error-codes.mjs';+import {semverGte} from '../../../foundation/env/semver.mjs';+import {getCliInvocation} from '../../../foundation/env/package-manager.mjs';+import {ERROR_CODES} from '../../../foundation/response/error-codes.mjs';import {AstryxError} from '../../error.mjs';import {logger} from '../../logger.mjs';-import {assertWithin, PathSafetyError} from '../../../utils/path-safety.mjs';+import {assertWithin, PathSafetyError} from '../../../foundation/fs/path-safety.mjs';/*** Run the upgrade pipeline for a validated, non-list invocation. Returns the@@ -137,9 +137,9 @@ export async function run(options = {}, {cwd = process.cwd()} = {}) {});const coreResult = codemodResult && 'totalFilesChanged' in codemodResult ? codemodResult : null;- /** @type {Array<import('../../../lib/integrations.mjs').LoadedIntegration>} */+ /** @type {Array<import('../../../foundation/integrations/integrations.mjs').LoadedIntegration>} */let integrations;- /** @type {import('../../../types/config').PostCodemodHook[]} */+ /** @type {import('../../../authoring/config/type').PostCodemodHook[]} */let postCodemodHooks;try {const projectContext = await loadProjectContext(cwd, options.integration ?? []);diff --git a/packages/cli/api/upgrade/status/status.mjs b/packages/cli/api/upgrade/status/status.mjsindex 8796f331b3..0049c2c88b 100644--- a/packages/cli/api/upgrade/status/status.mjs+++ b/packages/cli/api/upgrade/status/status.mjs@@ -15,7 +15,7 @@* just returns what they hand back.*/-import {formatCliCommand} from '../../../utils/package-manager.mjs';+import {formatCliCommand} from '../../../foundation/env/package-manager.mjs';import {logger} from '../../logger.mjs';/**diff --git a/packages/cli/api/upgrade/upgrade.mjs b/packages/cli/api/upgrade/upgrade.mjsindex 31963c57b8..b28ccec33a 100644--- a/packages/cli/api/upgrade/upgrade.mjs+++ b/packages/cli/api/upgrade/upgrade.mjs@@ -21,9 +21,9 @@import {list} from './list/list.mjs';import {run} from './run/run.mjs';-import {isValidSemver} from '../../utils/semver.mjs';-import {getCliInvocation} from '../../utils/package-manager.mjs';-import {ERROR_CODES} from '../../lib/error-codes.mjs';+import {isValidSemver} from '../../foundation/env/semver.mjs';+import {getCliInvocation} from '../../foundation/env/package-manager.mjs';+import {ERROR_CODES} from '../../foundation/response/error-codes.mjs';import {AstryxError} from '../error.mjs';import {logger} from '../logger.mjs';diff --git a/packages/cli/api/upgrade/upgrade.test.mjs b/packages/cli/api/upgrade/upgrade.test.mjsindex 5302951138..c9621ab4f3 100644--- a/packages/cli/api/upgrade/upgrade.test.mjs+++ b/packages/cli/api/upgrade/upgrade.test.mjs@@ -17,8 +17,8 @@ import * as os from 'node:os';import {upgrade} from './upgrade.mjs';import {logger} from '../logger.mjs';import {AstryxError} from '../error.mjs';-import {ERROR_CODES} from '../../lib/error-codes.mjs';-import {generateCompressedIndex} from '../../lib/agent-docs/agent-docs.mjs';+import {ERROR_CODES} from '../../foundation/response/error-codes.mjs';+import {generateCompressedIndex} from '../../foundation/agent-docs/agent-docs.mjs';vi.setConfig({testTimeout: 30000});diff --git a/packages/cli/codemods/__tests__/registry.test.mjs b/packages/cli/assets/codemods/__tests__/registry.test.mjssimilarity index 99%rename from packages/cli/codemods/__tests__/registry.test.mjsrename to packages/cli/assets/codemods/__tests__/registry.test.mjsindex 12cc692f03..d2ab4cfe59 100644--- a/packages/cli/codemods/__tests__/registry.test.mjs+++ b/packages/cli/assets/codemods/__tests__/registry.test.mjs@@ -24,6 +24,7 @@ describe('registry', () => {'0.1.8','0.2.0','0.2.1',+ '0.3.0',]);});});diff --git a/packages/cli/codemods/__tests__/rename-imperative-ref-to-handleRef.test.mjs b/packages/cli/assets/codemods/__tests__/rename-imperative-ref-to-handleRef.test.mjssimilarity index 100%rename from packages/cli/codemods/__tests__/rename-imperative-ref-to-handleRef.test.mjsrename to packages/cli/assets/codemods/__tests__/rename-imperative-ref-to-handleRef.test.mjsdiff --git a/packages/cli/codemods/__tests__/rename-isStreaming-to-isStopShown.test.mjs b/packages/cli/assets/codemods/__tests__/rename-isStreaming-to-isStopShown.test.mjssimilarity index 100%rename from packages/cli/codemods/__tests__/rename-isStreaming-to-isStopShown.test.mjsrename to packages/cli/assets/codemods/__tests__/rename-isStreaming-to-isStopShown.test.mjsdiff --git a/packages/cli/codemods/__tests__/rename-section-wash-to-muted.test.mjs b/packages/cli/assets/codemods/__tests__/rename-section-wash-to-muted.test.mjssimilarity index 100%rename from packages/cli/codemods/__tests__/rename-section-wash-to-muted.test.mjsrename to packages/cli/assets/codemods/__tests__/rename-section-wash-to-muted.test.mjsdiff --git a/packages/cli/codemods/__tests__/runner.test.mjs b/packages/cli/assets/codemods/__tests__/runner.test.mjssimilarity index 100%rename from packages/cli/codemods/__tests__/runner.test.mjsrename to packages/cli/assets/codemods/__tests__/runner.test.mjsdiff --git a/packages/cli/codemods/__tests__/toolbar-density-to-size.test.mjs b/packages/cli/assets/codemods/__tests__/toolbar-density-to-size.test.mjssimilarity index 100%rename from packages/cli/codemods/__tests__/toolbar-density-to-size.test.mjsrename to packages/cli/assets/codemods/__tests__/toolbar-density-to-size.test.mjsdiff --git a/packages/cli/codemods/__tests__/validation.test.mjs b/packages/cli/assets/codemods/__tests__/validation.test.mjssimilarity index 100%rename from packages/cli/codemods/__tests__/validation.test.mjsrename to packages/cli/assets/codemods/__tests__/validation.test.mjsdiff --git a/packages/cli/codemods/ensure-jscodeshift.mjs b/packages/cli/assets/codemods/ensure-jscodeshift.mjssimilarity index 94%rename from packages/cli/codemods/ensure-jscodeshift.mjsrename to packages/cli/assets/codemods/ensure-jscodeshift.mjsindex 24fb2e3456..4c8bbbaa9a 100644--- a/packages/cli/codemods/ensure-jscodeshift.mjs+++ b/packages/cli/assets/codemods/ensure-jscodeshift.mjs@@ -11,8 +11,8 @@*/import {execSync} from 'node:child_process';-import * as p from '../lib/term-log.mjs';-import {detectPackageManager} from '../utils/package-manager.mjs';+import * as p from './term-log.mjs';+import {detectPackageManager} from '../../foundation/env/package-manager.mjs';/*** @param {object} [options]diff --git a/packages/cli/codemods/integration-discovery.mjs b/packages/cli/assets/codemods/integration-discovery.mjssimilarity index 91%rename from packages/cli/codemods/integration-discovery.mjsrename to packages/cli/assets/codemods/integration-discovery.mjsindex f8c6a0bf90..4eb38f9143 100644--- a/packages/cli/codemods/integration-discovery.mjs+++ b/packages/cli/assets/codemods/integration-discovery.mjs@@ -11,10 +11,9 @@* where `<version>` is the immediate folder name (e.g. "0.2.0") and `<id>` is* the codemod module's relative path under that version folder WITHOUT its* extension (kebab-case; may include nested segments like "config/rename").- * Each module DEFAULT-EXPORTS a codemod envelope — typically a `createCodemod`- * / `createConfigCodemod` result, though any plain object matching- * {@link CodemodEnvelopeSchema} is accepted. Validation happens here at the- * load boundary via `loadModuleWithSchema`, not in the factories.+ * Each module DEFAULT-EXPORTS a codemod envelope — a plain object stamped with+ * a `type` of `'code'` or `'config'`. Validation happens here at the load+ * boundary via `loadModuleWithParser` + `parseCodemod`.** Version selection mirrors the core registry's getTransformsBetween(from,to):* a codemod under folder X runs when upgrading to include X.@@ -26,9 +25,9 @@import * as fs from 'node:fs';import * as path from 'node:path';-import {loadModuleWithSchema} from '../lib/module-loader.mjs';-import {CodemodEnvelopeSchema} from '../authoring/codemod.mjs';-import {semverCompare} from '../utils/semver.mjs';+import {loadModuleWithParser} from '../../foundation/fs/module-loader.mjs';+import {parseCodemod} from '../../authoring/codemod/parse.mjs';+import {semverCompare} from '../../foundation/env/semver.mjs';/** File extensions recognized as codemod modules. */const CODEMOD_EXTENSIONS = ['.ts', '.mjs', '.js'];@@ -125,7 +124,7 @@ export async function discoverIntegrationCodemods(loadedIntegrations = []) {}idToVersion.set(id, version);- const codemod = await loadModuleWithSchema(file, CodemodEnvelopeSchema, {+ const codemod = await loadModuleWithParser(file, parseCodemod, {label,});diff --git a/packages/cli/codemods/integration-discovery.test.mjs b/packages/cli/assets/codemods/integration-discovery.test.mjssimilarity index 86%rename from packages/cli/codemods/integration-discovery.test.mjsrename to packages/cli/assets/codemods/integration-discovery.test.mjsindex 27fbeff7d9..5a43f4e66d 100644--- a/packages/cli/codemods/integration-discovery.test.mjs+++ b/packages/cli/assets/codemods/integration-discovery.test.mjs@@ -3,8 +3,7 @@import {afterEach, beforeEach, describe, expect, it} from 'vitest';import * as fs from 'node:fs';import * as path from 'node:path';-import {pathToFileURL} from 'node:url';-import {Project} from '../lib/project.mjs';+import {Project} from '../../foundation/config/project.mjs';import {discoverIntegrationCodemods,selectIntegrationCodemods,@@ -50,14 +49,6 @@ function scaffold(codemodFiles) {// Resolve the codemod helper module to an absolute file:// URL so codemod// modules in the temp package can import it without node_modules wiring.-// vitest reports import.meta.url as an http:// URL, so derive the on-disk path-// from the vitest cwd (the repo root) instead.-const codemodModulePath = path.resolve(- process.cwd(),- 'packages/cli/authoring/codemod.mjs',-);-const codemodModuleUrl = pathToFileURL(codemodModulePath).href;-beforeEach(() => {originalCwd = process.cwd();tmpDir = fs.mkdtempSync(path.join(process.cwd(), '.astryx-codemod-test-'));@@ -73,11 +64,11 @@ describe('integration codemod discovery', () => {it('discovers a code codemod and runs it for an applicable --from', async () => {scaffold({'0.2.0/drop-foo.mjs': `- import {createCodemod} from ${JSON.stringify(codemodModuleUrl)};- export default createCodemod({+ export default {+ type: 'code',title: 'Drop foo',transform: (file) => file.source.replace(/foo/g, 'bar'),- });+ };`,});@@ -124,11 +115,11 @@ describe('integration codemod discovery', () => {it('discovers and runs a config codemod against astryx.config.*', async () => {scaffold({'0.2.0/bump-config.mjs': `- import {createConfigCodemod} from ${JSON.stringify(codemodModuleUrl)};- export default createConfigCodemod({+ export default {+ type: 'config',title: 'Bump config',transform: (file) => file.source.replace('consumer-old', 'consumer-new'),- });+ };`,});// Make the config file a transform target. (Project.load only needs a valid@@ -164,9 +155,9 @@ describe('integration codemod discovery', () => {'0.2.0/broken.mjs': `export const notDefault = 1;\n`,});const project = await Project.load(tmpDir);- // Validation now happens at the LOAD boundary (loadModuleWithSchema against- // CodemodEnvelopeSchema); a missing default export is a schema-invalid- // failure rather than the old bespoke "must default-export" message.+ // Validation now happens at the LOAD boundary (loadModuleWithParser ++ // parseCodemod); a missing default export is a schema-invalid failure+ // rather than the old bespoke "must default-export" message.await expect(discoverIntegrationCodemods(project.loadedIntegrations),).rejects.toThrow(/is invalid/i);@@ -218,12 +209,10 @@ describe('integration codemod discovery', () => {it('fails discovery on a duplicate id across versions within a package', async () => {scaffold({'0.2.0/dup.mjs': `- import {createCodemod} from ${JSON.stringify(codemodModuleUrl)};- export default createCodemod({title: 'a', transform: () => null});+ export default {type: 'code', title: 'a', transform: () => null};`,'0.3.0/dup.mjs': `- import {createCodemod} from ${JSON.stringify(codemodModuleUrl)};- export default createCodemod({title: 'b', transform: () => null});+ export default {type: 'code', title: 'b', transform: () => null};`,});const project = await Project.load(tmpDir);diff --git a/packages/cli/codemods/integration-runner.mjs b/packages/cli/assets/codemods/integration-runner.mjssimilarity index 88%rename from packages/cli/codemods/integration-runner.mjsrename to packages/cli/assets/codemods/integration-runner.mjsindex 0e6cb63a90..e5cac31079 100644--- a/packages/cli/codemods/integration-runner.mjs+++ b/packages/cli/assets/codemods/integration-runner.mjs@@ -31,15 +31,15 @@ import {* Optional codemods (isOptional) are skipped unless explicitly requested via* `codemod` (matched against the codemod id).*- * @param {Array<{version: string, codemods: Array<import('../types/codemod').CodemodEntry>}>} versionGroups+ * @param {Array<{version: string, codemods: Array<import('../../authoring/codemod/type').CodemodEntry>}>} versionGroups* @param {object} options* @param {boolean} options.apply* @param {string} options.path source directory to scan* @param {string} [options.codemod] run only this codemod id* @param {Set<string>} [options.skipCodemods] codemod ids to exclude- * @param {import('../types/codemod').JscodeshiftFactory} options.jscodeshift+ * @param {import('../../authoring/codemod/type').JscodeshiftFactory} options.jscodeshift* @param {boolean} [options.silent]- * @returns {{totalFilesChanged: number, totalTransformsApplied: number, writtenFiles: string[], errors: Array<{file: string, codemod: string, error: string}>, skippedOptional: Array<import('../types/codemod').CodemodEntry>}}+ * @returns {{totalFilesChanged: number, totalTransformsApplied: number, writtenFiles: string[], errors: Array<{file: string, codemod: string, error: string}>, skippedOptional: Array<import('../../authoring/codemod/type').CodemodEntry>}}*/export function runIntegrationCodemods(versionGroups,@@ -53,13 +53,13 @@ export function runIntegrationCodemods(const writtenFiles = [];/** @type {Array<{file: string, codemod: string, error: string}>} */const errors = [];- /** @type {Array<import('../types/codemod').CodemodEntry>} */+ /** @type {Array<import('../../authoring/codemod/type').CodemodEntry>} */const skippedOptional = [];// Flatten and split by type, preserving version ordering.- /** @type {Array<import('../types/codemod').CodemodEntry>} */+ /** @type {Array<import('../../authoring/codemod/type').CodemodEntry>} */const configEntries = [];- /** @type {Array<import('../types/codemod').CodemodEntry>} */+ /** @type {Array<import('../../authoring/codemod/type').CodemodEntry>} */const codeEntries = [];for (const {version, codemods} of versionGroups) {for (const entry of codemods) {diff --git a/packages/cli/types/jscodeshift.d.ts b/packages/cli/assets/codemods/jscodeshift.d.tssimilarity index 100%rename from packages/cli/types/jscodeshift.d.tsrename to packages/cli/assets/codemods/jscodeshift.d.tsdiff --git a/packages/cli/codemods/registry.mjs b/packages/cli/assets/codemods/registry.mjssimilarity index 86%rename from packages/cli/codemods/registry.mjsrename to packages/cli/assets/codemods/registry.mjsindex 6e424b7b6a..fd87bb63a5 100644--- a/packages/cli/codemods/registry.mjs+++ b/packages/cli/assets/codemods/registry.mjs@@ -25,11 +25,12 @@ const registry = new Map([['0.1.8', () => import('./transforms/v0.1.8/index.mjs')],['0.2.0', () => import('./transforms/v0.2.0/index.mjs')],['0.2.1', () => import('./transforms/v0.2.1/index.mjs')],+ ['0.3.0', () => import('./transforms/v0.3.0/index.mjs')],]);// Re-export from the shared utility so registry callers and other consumers// (upgrade gate, update-check) all use the same comparator.-import {semverCompare} from '../utils/semver.mjs';+import {semverCompare} from '../../foundation/env/semver.mjs';/*** All registered versions, sorted ascending.@@ -47,13 +48,13 @@ export const latestVersion = versions[versions.length - 1];** @param {string} from - Current version (exclusive)* @param {string} to - Target version (inclusive)- * @returns {Promise<Array<{version: string, transforms: Array<{name: string, transform: import('../types/codemod').CodemodTransform, meta: {title: string, description?: string}}>}>>}+ * @returns {Promise<Array<{version: string, transforms: Array<{name: string, transform: import('../../authoring/codemod/type').CodemodTransform, meta: {title: string, description?: string}}>}>>}*/export async function getTransformsBetween(from, to) {const applicable = versions.filter(v => semverCompare(v, from) > 0 && semverCompare(v, to) <= 0,);- /** @type {Array<{version: string, transforms: Array<{name: string, transform: import('../types/codemod').CodemodTransform, meta: {title: string, description?: string}}>}>} */+ /** @type {Array<{version: string, transforms: Array<{name: string, transform: import('../../authoring/codemod/type').CodemodTransform, meta: {title: string, description?: string}}>}>} */const results = [];for (const version of applicable) {diff --git a/packages/cli/codemods/run-codemod.mjs b/packages/cli/assets/codemods/run-codemod.mjssimilarity index 89%rename from packages/cli/codemods/run-codemod.mjsrename to packages/cli/assets/codemods/run-codemod.mjsindex b052a073d5..4bd65eeb36 100644--- a/packages/cli/codemods/run-codemod.mjs+++ b/packages/cli/assets/codemods/run-codemod.mjs@@ -29,8 +29,8 @@import * as fs from 'node:fs';import * as path from 'node:path';-import * as p from '../lib/term-log.mjs';-import {findConfigPath} from '../lib/project.mjs';+import * as p from './term-log.mjs';+import {findConfigPath} from '../../foundation/config/project.mjs';import {fixDirectiveCorruption, validateOutput, IGNORED_DIRS} from './runner.mjs';export const DEFAULT_CODE_EXTENSIONS = [@@ -79,7 +79,7 @@ export function findSourceFiles(dir) {/*** No-op log surface for silent (`--json`) mode.* @param {boolean} silent- * @returns {import('../types/codemod').CliLog}+ * @returns {import('../../authoring/codemod/type').CliLog}*/export function makeLog(silent) {return silent@@ -90,9 +90,9 @@ export function makeLog(silent) {/*** Apply a config codemod to the consumer's astryx.config.* file.*- * @param {import('../types/codemod').CodemodEntry} entry normalized codemod entry {id, codemod, package}- * @param {{apply: boolean, log: import('../types/codemod').CliLog, jscodeshift: import('../types/codemod').JscodeshiftFactory}} ctx- * @returns {import('../types/codemod').CodemodRunResult}+ * @param {import('../../authoring/codemod/type').CodemodEntry} entry normalized codemod entry {id, codemod, package}+ * @param {{apply: boolean, log: import('../../authoring/codemod/type').CliLog, jscodeshift: import('../../authoring/codemod/type').JscodeshiftFactory}} ctx+ * @returns {import('../../authoring/codemod/type').CodemodRunResult}*/export function runConfigCodemod(entry, {apply, log, jscodeshift}) {const {codemod, id, package: pkg} = entry;@@ -170,10 +170,10 @@ export function runConfigCodemod(entry, {apply, log, jscodeshift}) {/*** Apply a code codemod to discovered source files.*- * @param {import('../types/codemod').CodemodEntry} entry normalized codemod entry {id, codemod, package}+ * @param {import('../../authoring/codemod/type').CodemodEntry} entry normalized codemod entry {id, codemod, package}* @param {string[]} files- * @param {{apply: boolean, log: import('../types/codemod').CliLog, jscodeshift: import('../types/codemod').JscodeshiftFactory}} ctx- * @returns {import('../types/codemod').CodemodRunResult}+ * @param {{apply: boolean, log: import('../../authoring/codemod/type').CliLog, jscodeshift: import('../../authoring/codemod/type').JscodeshiftFactory}} ctx+ * @returns {import('../../authoring/codemod/type').CodemodRunResult}*/export function runCodeCodemod(entry, files, {apply, log, jscodeshift}) {const {codemod, id, package: pkg} = entry;diff --git a/packages/cli/codemods/runner.mjs b/packages/cli/assets/codemods/runner.mjssimilarity index 94%rename from packages/cli/codemods/runner.mjsrename to packages/cli/assets/codemods/runner.mjsindex be0a8c0145..918dcf4740 100644--- a/packages/cli/codemods/runner.mjs+++ b/packages/cli/assets/codemods/runner.mjs@@ -10,8 +10,8 @@import * as fs from 'node:fs';import * as path from 'node:path';-import * as p from '../lib/term-log.mjs';-import {humanLog} from '../lib/json.mjs';+import * as p from './term-log.mjs';+import {humanLog} from '../../foundation/response/json.mjs';import {runConfigCodemod} from './run-codemod.mjs';// Known corruption patterns that indicate a broken transform.@@ -120,7 +120,7 @@ function findSourceFiles(dir) {** @param {string} result - The transformed source code* @param {string} source - The original source code- * @param {import('../types/codemod').JscodeshiftFactory} j - jscodeshift instance (with parser configured)+ * @param {import('../../authoring/codemod/type').JscodeshiftFactory} j - jscodeshift instance (with parser configured)* @param {{parse?: boolean}} [options]* @returns {{ valid: true } | { valid: false, reason: string }}*/@@ -173,9 +173,9 @@ export function validateOutput(result, source, j, {parse = true} = {}) {* with the same `(file, api) => string | null | undefined` contract used by* `createConfigCodemod`.*- * @param {{name: string, transform: import('../types/codemod').CodemodTransform, meta: {title: string, description?: string, fileExtensions?: string[], codemodType?: string}, optional?: boolean}} transformEntry+ * @param {{name: string, transform: import('../../authoring/codemod/type').CodemodTransform, meta: {title: string, description?: string, fileExtensions?: string[], codemodType?: string}, optional?: boolean}} transformEntry* @param {string} version- * @returns {import('../types/codemod').CodemodEntry}+ * @returns {import('../../authoring/codemod/type').CodemodEntry}*/function toUnifiedEntry(transformEntry, version) {const {name, transform, meta, optional} = transformEntry;@@ -197,7 +197,7 @@ function toUnifiedEntry(transformEntry, version) {/*** Run codemods against source files.*- * @param {Array<{version: string, transforms: Array<{name: string, transform: import('../types/codemod').CodemodTransform, meta: {title: string, description?: string, fileExtensions?: string[], codemodType?: string}, optional?: boolean}>}>} versionManifests+ * @param {Array<{version: string, transforms: Array<{name: string, transform: import('../../authoring/codemod/type').CodemodTransform, meta: {title: string, description?: string, fileExtensions?: string[], codemodType?: string}, optional?: boolean}>}>} versionManifests* @param {object} options* @param {boolean} options.apply - Write changes to disk* @param {string} options.path - Source directory to scan@@ -250,7 +250,7 @@ export async function runCodemods(// Dynamically import jscodeshiftconst jscodeshift =- /** @type {import('../types/codemod').JscodeshiftFactory} */ (+ /** @type {import('../../authoring/codemod/type').JscodeshiftFactory} */ ((await import('jscodeshift')).default);diff --git a/packages/cli/lib/term-log.mjs b/packages/cli/assets/codemods/term-log.mjssimilarity index 96%rename from packages/cli/lib/term-log.mjsrename to packages/cli/assets/codemods/term-log.mjsindex 0553014d86..7aa0c861d7 100644--- a/packages/cli/lib/term-log.mjs+++ b/packages/cli/assets/codemods/term-log.mjs@@ -16,7 +16,7 @@* they write through the shared `logger` (api/logger.mjs).*/-import {humanLog} from './json.mjs';+import {humanLog} from '../../foundation/response/json.mjs';/** @param {unknown} msg */const toStr = (msg) => (msg === undefined || msg === null ? '' : String(msg));diff --git a/packages/cli/lib/term-log.test.mjs b/packages/cli/assets/codemods/term-log.test.mjssimilarity index 96%rename from packages/cli/lib/term-log.test.mjsrename to packages/cli/assets/codemods/term-log.test.mjsindex 1cb8416fee..8c94265a4c 100644--- a/packages/cli/lib/term-log.test.mjs+++ b/packages/cli/assets/codemods/term-log.test.mjs@@ -11,7 +11,7 @@import {describe, it, expect, beforeEach, afterEach, vi} from 'vitest';import * as p from './term-log.mjs';-import {setJsonMode} from './json.mjs';+import {setJsonMode} from '../../foundation/response/json.mjs';let logSpy;let errSpy;diff --git a/packages/cli/codemods/transforms/v0.0.10/__tests__/remove-size-props.test.mjs b/packages/cli/assets/codemods/transforms/v0.0.10/__tests__/remove-size-props.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.10/__tests__/remove-size-props.test.mjsrename to packages/cli/assets/codemods/transforms/v0.0.10/__tests__/remove-size-props.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.10/index.mjs b/packages/cli/assets/codemods/transforms/v0.0.10/index.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.10/index.mjsrename to packages/cli/assets/codemods/transforms/v0.0.10/index.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.10/remove-size-props.mjs b/packages/cli/assets/codemods/transforms/v0.0.10/remove-size-props.mjssimilarity index 94%rename from packages/cli/codemods/transforms/v0.0.10/remove-size-props.mjsrename to packages/cli/assets/codemods/transforms/v0.0.10/remove-size-props.mjsindex 9616fa1441..3a5103c9b7 100644--- a/packages/cli/codemods/transforms/v0.0.10/remove-size-props.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.10/remove-size-props.mjs@@ -33,8 +33,8 @@ export const meta = {};/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.0.12/__tests__/add-is-icon-only.test.mjs b/packages/cli/assets/codemods/transforms/v0.0.12/__tests__/add-is-icon-only.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.12/__tests__/add-is-icon-only.test.mjsrename to packages/cli/assets/codemods/transforms/v0.0.12/__tests__/add-is-icon-only.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.12/add-is-icon-only.mjs b/packages/cli/assets/codemods/transforms/v0.0.12/add-is-icon-only.mjssimilarity index 98%rename from packages/cli/codemods/transforms/v0.0.12/add-is-icon-only.mjsrename to packages/cli/assets/codemods/transforms/v0.0.12/add-is-icon-only.mjsindex 960f4bedf7..cc6ea7e62d 100644--- a/packages/cli/codemods/transforms/v0.0.12/add-is-icon-only.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.12/add-is-icon-only.mjs@@ -51,8 +51,8 @@ export const meta = {};/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.0.12/index.mjs b/packages/cli/assets/codemods/transforms/v0.0.12/index.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.12/index.mjsrename to packages/cli/assets/codemods/transforms/v0.0.12/index.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.13/__tests__/icon-name-deprecations.test.mjs b/packages/cli/assets/codemods/transforms/v0.0.13/__tests__/icon-name-deprecations.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.13/__tests__/icon-name-deprecations.test.mjsrename to packages/cli/assets/codemods/transforms/v0.0.13/__tests__/icon-name-deprecations.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.13/__tests__/rename-attachments-to-drawer.test.mjs b/packages/cli/assets/codemods/transforms/v0.0.13/__tests__/rename-attachments-to-drawer.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.13/__tests__/rename-attachments-to-drawer.test.mjsrename to packages/cli/assets/codemods/transforms/v0.0.13/__tests__/rename-attachments-to-drawer.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.13/icon-name-deprecations.mjs b/packages/cli/assets/codemods/transforms/v0.0.13/icon-name-deprecations.mjssimilarity index 96%rename from packages/cli/codemods/transforms/v0.0.13/icon-name-deprecations.mjsrename to packages/cli/assets/codemods/transforms/v0.0.13/icon-name-deprecations.mjsindex 33a3185539..2a6831b335 100644--- a/packages/cli/codemods/transforms/v0.0.13/icon-name-deprecations.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.13/icon-name-deprecations.mjs@@ -33,8 +33,8 @@ const RENAMES = {const ICON_PROPS = new Set(['icon', 'name', 'selectedIcon']);/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.0.13/index.mjs b/packages/cli/assets/codemods/transforms/v0.0.13/index.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.13/index.mjsrename to packages/cli/assets/codemods/transforms/v0.0.13/index.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.13/rename-attachments-to-drawer.mjs b/packages/cli/assets/codemods/transforms/v0.0.13/rename-attachments-to-drawer.mjssimilarity index 97%rename from packages/cli/codemods/transforms/v0.0.13/rename-attachments-to-drawer.mjsrename to packages/cli/assets/codemods/transforms/v0.0.13/rename-attachments-to-drawer.mjsindex be7f9e5eeb..6bdd6989af 100644--- a/packages/cli/codemods/transforms/v0.0.13/rename-attachments-to-drawer.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.13/rename-attachments-to-drawer.mjs@@ -34,8 +34,8 @@ const CSS_CLASS_RENAMES = {};/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.0.13/toolbar-density-to-size.mjs b/packages/cli/assets/codemods/transforms/v0.0.13/toolbar-density-to-size.mjssimilarity index 97%rename from packages/cli/codemods/transforms/v0.0.13/toolbar-density-to-size.mjsrename to packages/cli/assets/codemods/transforms/v0.0.13/toolbar-density-to-size.mjsindex 2065c6b81e..93671cf047 100644--- a/packages/cli/codemods/transforms/v0.0.13/toolbar-density-to-size.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.13/toolbar-density-to-size.mjs@@ -31,8 +31,8 @@ const DENSITY_TO_SIZE = {};/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.0.14/__tests__/rename-action-props.test.mjs b/packages/cli/assets/codemods/transforms/v0.0.14/__tests__/rename-action-props.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.14/__tests__/rename-action-props.test.mjsrename to packages/cli/assets/codemods/transforms/v0.0.14/__tests__/rename-action-props.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.14/__tests__/rename-status-variants.test.mjs b/packages/cli/assets/codemods/transforms/v0.0.14/__tests__/rename-status-variants.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.14/__tests__/rename-status-variants.test.mjsrename to packages/cli/assets/codemods/transforms/v0.0.14/__tests__/rename-status-variants.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.14/index.mjs b/packages/cli/assets/codemods/transforms/v0.0.14/index.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.14/index.mjsrename to packages/cli/assets/codemods/transforms/v0.0.14/index.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.14/rename-action-props.mjs b/packages/cli/assets/codemods/transforms/v0.0.14/rename-action-props.mjssimilarity index 97%rename from packages/cli/codemods/transforms/v0.0.14/rename-action-props.mjsrename to packages/cli/assets/codemods/transforms/v0.0.14/rename-action-props.mjsindex 74f0d52e15..4e150b2cb7 100644--- a/packages/cli/codemods/transforms/v0.0.14/rename-action-props.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.14/rename-action-props.mjs@@ -39,8 +39,8 @@ const PROP_RENAMES = {};/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.0.14/rename-section-wash-to-muted.mjs b/packages/cli/assets/codemods/transforms/v0.0.14/rename-section-wash-to-muted.mjssimilarity index 96%rename from packages/cli/codemods/transforms/v0.0.14/rename-section-wash-to-muted.mjsrename to packages/cli/assets/codemods/transforms/v0.0.14/rename-section-wash-to-muted.mjsindex 2eb18a0f16..f0b4b10229 100644--- a/packages/cli/codemods/transforms/v0.0.14/rename-section-wash-to-muted.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.14/rename-section-wash-to-muted.mjs@@ -27,8 +27,8 @@ export const meta = {const TARGET_COMPONENTS = new Set(['XDSSection', 'XDSToolbar']);/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.0.14/rename-status-variants.mjs b/packages/cli/assets/codemods/transforms/v0.0.14/rename-status-variants.mjssimilarity index 98%rename from packages/cli/codemods/transforms/v0.0.14/rename-status-variants.mjsrename to packages/cli/assets/codemods/transforms/v0.0.14/rename-status-variants.mjsindex c338985dbc..c40eb506c8 100644--- a/packages/cli/codemods/transforms/v0.0.14/rename-status-variants.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.14/rename-status-variants.mjs@@ -87,8 +87,8 @@ function matchesPropName(/** @type {any} */ keyName) {}/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.0.15/__tests__/migrate-item-children-to-endcontent.test.mjs b/packages/cli/assets/codemods/transforms/v0.0.15/__tests__/migrate-item-children-to-endcontent.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.15/__tests__/migrate-item-children-to-endcontent.test.mjsrename to packages/cli/assets/codemods/transforms/v0.0.15/__tests__/migrate-item-children-to-endcontent.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.15/__tests__/migrate-selector-children-to-render-option.test.mjs b/packages/cli/assets/codemods/transforms/v0.0.15/__tests__/migrate-selector-children-to-render-option.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.15/__tests__/migrate-selector-children-to-render-option.test.mjsrename to packages/cli/assets/codemods/transforms/v0.0.15/__tests__/migrate-selector-children-to-render-option.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.15/__tests__/migrate-theme-selectors-to-data-attrs.test.mjs b/packages/cli/assets/codemods/transforms/v0.0.15/__tests__/migrate-theme-selectors-to-data-attrs.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.15/__tests__/migrate-theme-selectors-to-data-attrs.test.mjsrename to packages/cli/assets/codemods/transforms/v0.0.15/__tests__/migrate-theme-selectors-to-data-attrs.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.15/__tests__/rename-date-picker-to-input.test.mjs b/packages/cli/assets/codemods/transforms/v0.0.15/__tests__/rename-date-picker-to-input.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.15/__tests__/rename-date-picker-to-input.test.mjsrename to packages/cli/assets/codemods/transforms/v0.0.15/__tests__/rename-date-picker-to-input.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.15/__tests__/rename-stack-element-to-as.test.mjs b/packages/cli/assets/codemods/transforms/v0.0.15/__tests__/rename-stack-element-to-as.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.15/__tests__/rename-stack-element-to-as.test.mjsrename to packages/cli/assets/codemods/transforms/v0.0.15/__tests__/rename-stack-element-to-as.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.15/index.mjs b/packages/cli/assets/codemods/transforms/v0.0.15/index.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.15/index.mjsrename to packages/cli/assets/codemods/transforms/v0.0.15/index.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.15/migrate-item-children-to-endcontent.mjs b/packages/cli/assets/codemods/transforms/v0.0.15/migrate-item-children-to-endcontent.mjssimilarity index 96%rename from packages/cli/codemods/transforms/v0.0.15/migrate-item-children-to-endcontent.mjsrename to packages/cli/assets/codemods/transforms/v0.0.15/migrate-item-children-to-endcontent.mjsindex 868df1c308..fca2c6a2a9 100644--- a/packages/cli/codemods/transforms/v0.0.15/migrate-item-children-to-endcontent.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.15/migrate-item-children-to-endcontent.mjs@@ -81,8 +81,8 @@ function getJSXAttribute(/** @type {any} */ openingElement, /** @type {any} */ n}/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.0.15/migrate-selector-children-to-render-option.mjs b/packages/cli/assets/codemods/transforms/v0.0.15/migrate-selector-children-to-render-option.mjssimilarity index 97%rename from packages/cli/codemods/transforms/v0.0.15/migrate-selector-children-to-render-option.mjsrename to packages/cli/assets/codemods/transforms/v0.0.15/migrate-selector-children-to-render-option.mjsindex a0c8c0a1ab..853269d7cb 100644--- a/packages/cli/codemods/transforms/v0.0.15/migrate-selector-children-to-render-option.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.15/migrate-selector-children-to-render-option.mjs@@ -131,8 +131,8 @@ function getJSXAttribute(/** @type {any} */ openingElement, /** @type {any} */ n}/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.0.15/migrate-theme-selectors-to-data-attrs.mjs b/packages/cli/assets/codemods/transforms/v0.0.15/migrate-theme-selectors-to-data-attrs.mjssimilarity index 98%rename from packages/cli/codemods/transforms/v0.0.15/migrate-theme-selectors-to-data-attrs.mjsrename to packages/cli/assets/codemods/transforms/v0.0.15/migrate-theme-selectors-to-data-attrs.mjsindex 1a7bf5e9e3..cddf981912 100644--- a/packages/cli/codemods/transforms/v0.0.15/migrate-theme-selectors-to-data-attrs.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.15/migrate-theme-selectors-to-data-attrs.mjs@@ -230,7 +230,7 @@ export function migrateThemeSelectors(/** @type {any} */ source) {}/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file* @returns {string | null | undefined}*/export default function transformer(file) {diff --git a/packages/cli/codemods/transforms/v0.0.15/rename-date-picker-to-input.mjs b/packages/cli/assets/codemods/transforms/v0.0.15/rename-date-picker-to-input.mjssimilarity index 96%rename from packages/cli/codemods/transforms/v0.0.15/rename-date-picker-to-input.mjsrename to packages/cli/assets/codemods/transforms/v0.0.15/rename-date-picker-to-input.mjsindex 1f2030d796..9f003fb734 100644--- a/packages/cli/codemods/transforms/v0.0.15/rename-date-picker-to-input.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.15/rename-date-picker-to-input.mjs@@ -46,8 +46,8 @@ const IDENTIFIER_RENAMES = new Map([]);/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.0.15/rename-imperative-ref-to-handleRef.mjs b/packages/cli/assets/codemods/transforms/v0.0.15/rename-imperative-ref-to-handleRef.mjssimilarity index 92%rename from packages/cli/codemods/transforms/v0.0.15/rename-imperative-ref-to-handleRef.mjsrename to packages/cli/assets/codemods/transforms/v0.0.15/rename-imperative-ref-to-handleRef.mjsindex 259a7e7a07..5a2e0fb193 100644--- a/packages/cli/codemods/transforms/v0.0.15/rename-imperative-ref-to-handleRef.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.15/rename-imperative-ref-to-handleRef.mjs@@ -30,8 +30,8 @@ const IMPERATIVE_REF_COMPONENTS = new Set([]);/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.0.15/rename-isStreaming-to-isStopShown.mjs b/packages/cli/assets/codemods/transforms/v0.0.15/rename-isStreaming-to-isStopShown.mjssimilarity index 92%rename from packages/cli/codemods/transforms/v0.0.15/rename-isStreaming-to-isStopShown.mjsrename to packages/cli/assets/codemods/transforms/v0.0.15/rename-isStreaming-to-isStopShown.mjsindex 00640f6767..44d8880e51 100644--- a/packages/cli/codemods/transforms/v0.0.15/rename-isStreaming-to-isStopShown.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.15/rename-isStreaming-to-isStopShown.mjs@@ -27,8 +27,8 @@ export const meta = {const TARGET_COMPONENTS = new Set(['XDSChatComposer', 'XDSChatSendButton']);/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.0.15/rename-stack-element-to-as.mjs b/packages/cli/assets/codemods/transforms/v0.0.15/rename-stack-element-to-as.mjssimilarity index 88%rename from packages/cli/codemods/transforms/v0.0.15/rename-stack-element-to-as.mjsrename to packages/cli/assets/codemods/transforms/v0.0.15/rename-stack-element-to-as.mjsindex f52fc24cbb..6814e77f93 100644--- a/packages/cli/codemods/transforms/v0.0.15/rename-stack-element-to-as.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.15/rename-stack-element-to-as.mjs@@ -18,8 +18,8 @@ const TARGET_COMPONENTS = new Set([]);/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.0.2/__tests__/migrate-badge-dot-to-statusdot.test.mjs b/packages/cli/assets/codemods/transforms/v0.0.2/__tests__/migrate-badge-dot-to-statusdot.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.2/__tests__/migrate-badge-dot-to-statusdot.test.mjsrename to packages/cli/assets/codemods/transforms/v0.0.2/__tests__/migrate-badge-dot-to-statusdot.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.2/__tests__/migrate-gap-to-numeric.test.mjs b/packages/cli/assets/codemods/transforms/v0.0.2/__tests__/migrate-gap-to-numeric.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.2/__tests__/migrate-gap-to-numeric.test.mjsrename to packages/cli/assets/codemods/transforms/v0.0.2/__tests__/migrate-gap-to-numeric.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.2/__tests__/migrate-isFullBleed-to-padding.test.mjs b/packages/cli/assets/codemods/transforms/v0.0.2/__tests__/migrate-isFullBleed-to-padding.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.2/__tests__/migrate-isFullBleed-to-padding.test.mjsrename to packages/cli/assets/codemods/transforms/v0.0.2/__tests__/migrate-isFullBleed-to-padding.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.2/__tests__/migrate-useXDSIcon-to-getIcon.test.mjs b/packages/cli/assets/codemods/transforms/v0.0.2/__tests__/migrate-useXDSIcon-to-getIcon.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.2/__tests__/migrate-useXDSIcon-to-getIcon.test.mjsrename to packages/cli/assets/codemods/transforms/v0.0.2/__tests__/migrate-useXDSIcon-to-getIcon.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.2/__tests__/rename-banner-endButton-to-endContent.test.mjs b/packages/cli/assets/codemods/transforms/v0.0.2/__tests__/rename-banner-endButton-to-endContent.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.2/__tests__/rename-banner-endButton-to-endContent.test.mjsrename to packages/cli/assets/codemods/transforms/v0.0.2/__tests__/rename-banner-endButton-to-endContent.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.2/__tests__/rename-form-tooltip-startIcon.test.mjs b/packages/cli/assets/codemods/transforms/v0.0.2/__tests__/rename-form-tooltip-startIcon.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.2/__tests__/rename-form-tooltip-startIcon.test.mjsrename to packages/cli/assets/codemods/transforms/v0.0.2/__tests__/rename-form-tooltip-startIcon.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.2/__tests__/rename-isShown-to-isOpen.test.mjs b/packages/cli/assets/codemods/transforms/v0.0.2/__tests__/rename-isShown-to-isOpen.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.2/__tests__/rename-isShown-to-isOpen.test.mjsrename to packages/cli/assets/codemods/transforms/v0.0.2/__tests__/rename-isShown-to-isOpen.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.2/__tests__/rename-selector-items-to-options.test.mjs b/packages/cli/assets/codemods/transforms/v0.0.2/__tests__/rename-selector-items-to-options.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.2/__tests__/rename-selector-items-to-options.test.mjsrename to packages/cli/assets/codemods/transforms/v0.0.2/__tests__/rename-selector-items-to-options.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.2/__tests__/rename-sidenav-header-to-heading.test.mjs b/packages/cli/assets/codemods/transforms/v0.0.2/__tests__/rename-sidenav-header-to-heading.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.2/__tests__/rename-sidenav-header-to-heading.test.mjsrename to packages/cli/assets/codemods/transforms/v0.0.2/__tests__/rename-sidenav-header-to-heading.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.2/__tests__/rename-topnav-title-to-heading.test.mjs b/packages/cli/assets/codemods/transforms/v0.0.2/__tests__/rename-topnav-title-to-heading.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.2/__tests__/rename-topnav-title-to-heading.test.mjsrename to packages/cli/assets/codemods/transforms/v0.0.2/__tests__/rename-topnav-title-to-heading.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.2/__tests__/unify-uncontrolled-to-defaultX.test.mjs b/packages/cli/assets/codemods/transforms/v0.0.2/__tests__/unify-uncontrolled-to-defaultX.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.2/__tests__/unify-uncontrolled-to-defaultX.test.mjsrename to packages/cli/assets/codemods/transforms/v0.0.2/__tests__/unify-uncontrolled-to-defaultX.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.2/__tests__/unify-visibility-to-onOpenChange.test.mjs b/packages/cli/assets/codemods/transforms/v0.0.2/__tests__/unify-visibility-to-onOpenChange.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.2/__tests__/unify-visibility-to-onOpenChange.test.mjsrename to packages/cli/assets/codemods/transforms/v0.0.2/__tests__/unify-visibility-to-onOpenChange.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.2/index.mjs b/packages/cli/assets/codemods/transforms/v0.0.2/index.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.2/index.mjsrename to packages/cli/assets/codemods/transforms/v0.0.2/index.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.2/migrate-badge-dot-to-statusdot.mjs b/packages/cli/assets/codemods/transforms/v0.0.2/migrate-badge-dot-to-statusdot.mjssimilarity index 97%rename from packages/cli/codemods/transforms/v0.0.2/migrate-badge-dot-to-statusdot.mjsrename to packages/cli/assets/codemods/transforms/v0.0.2/migrate-badge-dot-to-statusdot.mjsindex 0f4e936a47..140284d541 100644--- a/packages/cli/codemods/transforms/v0.0.2/migrate-badge-dot-to-statusdot.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.2/migrate-badge-dot-to-statusdot.mjs@@ -52,8 +52,8 @@ function isDotMode(/** @type {any} */ path) {}/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.0.2/migrate-gap-to-numeric.mjs b/packages/cli/assets/codemods/transforms/v0.0.2/migrate-gap-to-numeric.mjssimilarity index 95%rename from packages/cli/codemods/transforms/v0.0.2/migrate-gap-to-numeric.mjsrename to packages/cli/assets/codemods/transforms/v0.0.2/migrate-gap-to-numeric.mjsindex b00bb9479a..b8526fa8c2 100644--- a/packages/cli/codemods/transforms/v0.0.2/migrate-gap-to-numeric.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.2/migrate-gap-to-numeric.mjs@@ -60,8 +60,8 @@ const XDS_LAYOUT_ELEMENTS = new Set([]);/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.0.2/migrate-isFullBleed-to-padding.mjs b/packages/cli/assets/codemods/transforms/v0.0.2/migrate-isFullBleed-to-padding.mjssimilarity index 95%rename from packages/cli/codemods/transforms/v0.0.2/migrate-isFullBleed-to-padding.mjsrename to packages/cli/assets/codemods/transforms/v0.0.2/migrate-isFullBleed-to-padding.mjsindex 642f321523..91835f6cc3 100644--- a/packages/cli/codemods/transforms/v0.0.2/migrate-isFullBleed-to-padding.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.2/migrate-isFullBleed-to-padding.mjs@@ -30,8 +30,8 @@ const TARGET_COMPONENTS = [];/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.0.2/migrate-useXDSIcon-to-getIcon.mjs b/packages/cli/assets/codemods/transforms/v0.0.2/migrate-useXDSIcon-to-getIcon.mjssimilarity index 96%rename from packages/cli/codemods/transforms/v0.0.2/migrate-useXDSIcon-to-getIcon.mjsrename to packages/cli/assets/codemods/transforms/v0.0.2/migrate-useXDSIcon-to-getIcon.mjsindex 65226c07ab..1ac0cc6170 100644--- a/packages/cli/codemods/transforms/v0.0.2/migrate-useXDSIcon-to-getIcon.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.2/migrate-useXDSIcon-to-getIcon.mjs@@ -19,8 +19,8 @@ export const meta = {};/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.0.2/rename-banner-endButton-to-endContent.mjs b/packages/cli/assets/codemods/transforms/v0.0.2/rename-banner-endButton-to-endContent.mjssimilarity index 85%rename from packages/cli/codemods/transforms/v0.0.2/rename-banner-endButton-to-endContent.mjsrename to packages/cli/assets/codemods/transforms/v0.0.2/rename-banner-endButton-to-endContent.mjsindex 8de6ae8082..8df7a68bad 100644--- a/packages/cli/codemods/transforms/v0.0.2/rename-banner-endButton-to-endContent.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.2/rename-banner-endButton-to-endContent.mjs@@ -12,8 +12,8 @@ export const meta = {};/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.0.2/rename-form-tooltip-startIcon.mjs b/packages/cli/assets/codemods/transforms/v0.0.2/rename-form-tooltip-startIcon.mjssimilarity index 90%rename from packages/cli/codemods/transforms/v0.0.2/rename-form-tooltip-startIcon.mjsrename to packages/cli/assets/codemods/transforms/v0.0.2/rename-form-tooltip-startIcon.mjsindex fabec4e11c..6d39069318 100644--- a/packages/cli/codemods/transforms/v0.0.2/rename-form-tooltip-startIcon.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.2/rename-form-tooltip-startIcon.mjs@@ -32,8 +32,8 @@ const PROP_RENAMES = {};/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.0.2/rename-isShown-to-isOpen.mjs b/packages/cli/assets/codemods/transforms/v0.0.2/rename-isShown-to-isOpen.mjssimilarity index 87%rename from packages/cli/codemods/transforms/v0.0.2/rename-isShown-to-isOpen.mjsrename to packages/cli/assets/codemods/transforms/v0.0.2/rename-isShown-to-isOpen.mjsindex 9fed81c1c0..3e2e0f078b 100644--- a/packages/cli/codemods/transforms/v0.0.2/rename-isShown-to-isOpen.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.2/rename-isShown-to-isOpen.mjs@@ -15,8 +15,8 @@ export const meta = {const TARGET_COMPONENTS = ['XDSDialog', 'XDSPopover'];/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.0.2/rename-selector-items-to-options.mjs b/packages/cli/assets/codemods/transforms/v0.0.2/rename-selector-items-to-options.mjssimilarity index 86%rename from packages/cli/codemods/transforms/v0.0.2/rename-selector-items-to-options.mjsrename to packages/cli/assets/codemods/transforms/v0.0.2/rename-selector-items-to-options.mjsindex c687ca6bb8..3b624a9392 100644--- a/packages/cli/codemods/transforms/v0.0.2/rename-selector-items-to-options.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.2/rename-selector-items-to-options.mjs@@ -12,8 +12,8 @@ export const meta = {};/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.0.2/rename-sidenav-header-to-heading.mjs b/packages/cli/assets/codemods/transforms/v0.0.2/rename-sidenav-header-to-heading.mjssimilarity index 94%rename from packages/cli/codemods/transforms/v0.0.2/rename-sidenav-header-to-heading.mjsrename to packages/cli/assets/codemods/transforms/v0.0.2/rename-sidenav-header-to-heading.mjsindex d2eb57a4a4..9ff78fc5d7 100644--- a/packages/cli/codemods/transforms/v0.0.2/rename-sidenav-header-to-heading.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.2/rename-sidenav-header-to-heading.mjs@@ -43,8 +43,8 @@ const IMPORT_RENAMES = {};/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.0.2/rename-topnav-title-to-heading.mjs b/packages/cli/assets/codemods/transforms/v0.0.2/rename-topnav-title-to-heading.mjssimilarity index 94%rename from packages/cli/codemods/transforms/v0.0.2/rename-topnav-title-to-heading.mjsrename to packages/cli/assets/codemods/transforms/v0.0.2/rename-topnav-title-to-heading.mjsindex 6a64869a74..c5ec75a46f 100644--- a/packages/cli/codemods/transforms/v0.0.2/rename-topnav-title-to-heading.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.2/rename-topnav-title-to-heading.mjs@@ -30,8 +30,8 @@ const IMPORT_RENAMES = {};/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.0.2/unify-uncontrolled-to-defaultX.mjs b/packages/cli/assets/codemods/transforms/v0.0.2/unify-uncontrolled-to-defaultX.mjssimilarity index 90%rename from packages/cli/codemods/transforms/v0.0.2/unify-uncontrolled-to-defaultX.mjsrename to packages/cli/assets/codemods/transforms/v0.0.2/unify-uncontrolled-to-defaultX.mjsindex 9912694a98..0cf25a28c5 100644--- a/packages/cli/codemods/transforms/v0.0.2/unify-uncontrolled-to-defaultX.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.2/unify-uncontrolled-to-defaultX.mjs@@ -33,8 +33,8 @@ const RENAMES = [];/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.0.2/unify-visibility-to-onOpenChange.mjs b/packages/cli/assets/codemods/transforms/v0.0.2/unify-visibility-to-onOpenChange.mjssimilarity index 95%rename from packages/cli/codemods/transforms/v0.0.2/unify-visibility-to-onOpenChange.mjsrename to packages/cli/assets/codemods/transforms/v0.0.2/unify-visibility-to-onOpenChange.mjsindex 8f1207b42f..e94aaad919 100644--- a/packages/cli/codemods/transforms/v0.0.2/unify-visibility-to-onOpenChange.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.2/unify-visibility-to-onOpenChange.mjs@@ -34,8 +34,8 @@ const SIMPLE_RENAMES = [const MERGE_COMPONENTS = ['XDSHoverCard', 'XDSTooltip'];/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.0.6/__tests__/migrate-badge-children-to-label.test.mjs b/packages/cli/assets/codemods/transforms/v0.0.6/__tests__/migrate-badge-children-to-label.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.6/__tests__/migrate-badge-children-to-label.test.mjsrename to packages/cli/assets/codemods/transforms/v0.0.6/__tests__/migrate-badge-children-to-label.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.6/__tests__/migrate-collapse-to-collapsible.test.mjs b/packages/cli/assets/codemods/transforms/v0.0.6/__tests__/migrate-collapse-to-collapsible.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.6/__tests__/migrate-collapse-to-collapsible.test.mjsrename to packages/cli/assets/codemods/transforms/v0.0.6/__tests__/migrate-collapse-to-collapsible.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.6/__tests__/migrate-radius-tokens.test.mjs b/packages/cli/assets/codemods/transforms/v0.0.6/__tests__/migrate-radius-tokens.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.6/__tests__/migrate-radius-tokens.test.mjsrename to packages/cli/assets/codemods/transforms/v0.0.6/__tests__/migrate-radius-tokens.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.6/__tests__/migrate-shadow-tokens.test.mjs b/packages/cli/assets/codemods/transforms/v0.0.6/__tests__/migrate-shadow-tokens.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.6/__tests__/migrate-shadow-tokens.test.mjsrename to packages/cli/assets/codemods/transforms/v0.0.6/__tests__/migrate-shadow-tokens.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.6/__tests__/migrate-skeleton-radius.test.mjs b/packages/cli/assets/codemods/transforms/v0.0.6/__tests__/migrate-skeleton-radius.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.6/__tests__/migrate-skeleton-radius.test.mjsrename to packages/cli/assets/codemods/transforms/v0.0.6/__tests__/migrate-skeleton-radius.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.6/__tests__/migrate-token-names.test.mjs b/packages/cli/assets/codemods/transforms/v0.0.6/__tests__/migrate-token-names.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.6/__tests__/migrate-token-names.test.mjsrename to packages/cli/assets/codemods/transforms/v0.0.6/__tests__/migrate-token-names.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.6/index.mjs b/packages/cli/assets/codemods/transforms/v0.0.6/index.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.6/index.mjsrename to packages/cli/assets/codemods/transforms/v0.0.6/index.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.6/migrate-badge-children-to-label.mjs b/packages/cli/assets/codemods/transforms/v0.0.6/migrate-badge-children-to-label.mjssimilarity index 95%rename from packages/cli/codemods/transforms/v0.0.6/migrate-badge-children-to-label.mjsrename to packages/cli/assets/codemods/transforms/v0.0.6/migrate-badge-children-to-label.mjsindex bd3022d5b4..3ea2620774 100644--- a/packages/cli/codemods/transforms/v0.0.6/migrate-badge-children-to-label.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.6/migrate-badge-children-to-label.mjs@@ -20,8 +20,8 @@ export const meta = {};/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.0.6/migrate-collapse-to-collapsible.mjs b/packages/cli/assets/codemods/transforms/v0.0.6/migrate-collapse-to-collapsible.mjssimilarity index 96%rename from packages/cli/codemods/transforms/v0.0.6/migrate-collapse-to-collapsible.mjsrename to packages/cli/assets/codemods/transforms/v0.0.6/migrate-collapse-to-collapsible.mjsindex 4d2861699a..dbc271ea45 100644--- a/packages/cli/codemods/transforms/v0.0.6/migrate-collapse-to-collapsible.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.6/migrate-collapse-to-collapsible.mjs@@ -37,8 +37,8 @@ const APPSHELL_DEPRECATED_PROPS = [];/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.0.6/migrate-radius-tokens.mjs b/packages/cli/assets/codemods/transforms/v0.0.6/migrate-radius-tokens.mjssimilarity index 94%rename from packages/cli/codemods/transforms/v0.0.6/migrate-radius-tokens.mjsrename to packages/cli/assets/codemods/transforms/v0.0.6/migrate-radius-tokens.mjsindex fd1c67bd8b..c4551a2c94 100644--- a/packages/cli/codemods/transforms/v0.0.6/migrate-radius-tokens.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.6/migrate-radius-tokens.mjs@@ -51,8 +51,8 @@ function replaceTokens(/** @type {any} */ str) {}/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.0.6/migrate-shadow-tokens.mjs b/packages/cli/assets/codemods/transforms/v0.0.6/migrate-shadow-tokens.mjssimilarity index 96%rename from packages/cli/codemods/transforms/v0.0.6/migrate-shadow-tokens.mjsrename to packages/cli/assets/codemods/transforms/v0.0.6/migrate-shadow-tokens.mjsindex 8afb3d8530..a7bd19a6b4 100644--- a/packages/cli/codemods/transforms/v0.0.6/migrate-shadow-tokens.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.6/migrate-shadow-tokens.mjs@@ -73,8 +73,8 @@ function replaceTokens(/** @type {any} */ str) {}/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.0.6/migrate-skeleton-radius.mjs b/packages/cli/assets/codemods/transforms/v0.0.6/migrate-skeleton-radius.mjssimilarity index 93%rename from packages/cli/codemods/transforms/v0.0.6/migrate-skeleton-radius.mjsrename to packages/cli/assets/codemods/transforms/v0.0.6/migrate-skeleton-radius.mjsindex 10f5aff910..62a0f73d13 100644--- a/packages/cli/codemods/transforms/v0.0.6/migrate-skeleton-radius.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.6/migrate-skeleton-radius.mjs@@ -25,8 +25,8 @@ const RADIUS_MAP = {};/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.0.6/migrate-token-names.mjs b/packages/cli/assets/codemods/transforms/v0.0.6/migrate-token-names.mjssimilarity index 97%rename from packages/cli/codemods/transforms/v0.0.6/migrate-token-names.mjsrename to packages/cli/assets/codemods/transforms/v0.0.6/migrate-token-names.mjsindex ba77fbc0b7..163c84bc90 100644--- a/packages/cli/codemods/transforms/v0.0.6/migrate-token-names.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.6/migrate-token-names.mjs@@ -122,8 +122,8 @@ function replaceTokens(/** @type {any} */ str) {}/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.0.7/__tests__/rename-banner-variant-to-container.test.mjs b/packages/cli/assets/codemods/transforms/v0.0.7/__tests__/rename-banner-variant-to-container.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.7/__tests__/rename-banner-variant-to-container.test.mjsrename to packages/cli/assets/codemods/transforms/v0.0.7/__tests__/rename-banner-variant-to-container.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.7/index.mjs b/packages/cli/assets/codemods/transforms/v0.0.7/index.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.7/index.mjsrename to packages/cli/assets/codemods/transforms/v0.0.7/index.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.7/rename-banner-variant-to-container.mjs b/packages/cli/assets/codemods/transforms/v0.0.7/rename-banner-variant-to-container.mjssimilarity index 92%rename from packages/cli/codemods/transforms/v0.0.7/rename-banner-variant-to-container.mjsrename to packages/cli/assets/codemods/transforms/v0.0.7/rename-banner-variant-to-container.mjsindex 456f868298..870facd472 100644--- a/packages/cli/codemods/transforms/v0.0.7/rename-banner-variant-to-container.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.7/rename-banner-variant-to-container.mjs@@ -21,8 +21,8 @@ export const meta = {};/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.0.8/__tests__/migrate-token-renames.test.mjs b/packages/cli/assets/codemods/transforms/v0.0.8/__tests__/migrate-token-renames.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.8/__tests__/migrate-token-renames.test.mjsrename to packages/cli/assets/codemods/transforms/v0.0.8/__tests__/migrate-token-renames.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.8/__tests__/rename-endslot-to-endcontent.test.mjs b/packages/cli/assets/codemods/transforms/v0.0.8/__tests__/rename-endslot-to-endcontent.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.8/__tests__/rename-endslot-to-endcontent.test.mjsrename to packages/cli/assets/codemods/transforms/v0.0.8/__tests__/rename-endslot-to-endcontent.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.8/index.mjs b/packages/cli/assets/codemods/transforms/v0.0.8/index.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.0.8/index.mjsrename to packages/cli/assets/codemods/transforms/v0.0.8/index.mjsdiff --git a/packages/cli/codemods/transforms/v0.0.8/migrate-token-renames.mjs b/packages/cli/assets/codemods/transforms/v0.0.8/migrate-token-renames.mjssimilarity index 98%rename from packages/cli/codemods/transforms/v0.0.8/migrate-token-renames.mjsrename to packages/cli/assets/codemods/transforms/v0.0.8/migrate-token-renames.mjsindex ae9b83929f..8e33b21c36 100644--- a/packages/cli/codemods/transforms/v0.0.8/migrate-token-renames.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.8/migrate-token-renames.mjs@@ -226,8 +226,8 @@ function replaceTokens(/** @type {any} */ str) {// =============================================================================/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.0.8/rename-endslot-to-endcontent.mjs b/packages/cli/assets/codemods/transforms/v0.0.8/rename-endslot-to-endcontent.mjssimilarity index 93%rename from packages/cli/codemods/transforms/v0.0.8/rename-endslot-to-endcontent.mjsrename to packages/cli/assets/codemods/transforms/v0.0.8/rename-endslot-to-endcontent.mjsindex 5bc9111e9e..da7402299f 100644--- a/packages/cli/codemods/transforms/v0.0.8/rename-endslot-to-endcontent.mjs+++ b/packages/cli/assets/codemods/transforms/v0.0.8/rename-endslot-to-endcontent.mjs@@ -24,8 +24,8 @@ export const meta = {};/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.1.0/__tests__/drop-xds-prefix-imports.test.mjs b/packages/cli/assets/codemods/transforms/v0.1.0/__tests__/drop-xds-prefix-imports.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.1.0/__tests__/drop-xds-prefix-imports.test.mjsrename to packages/cli/assets/codemods/transforms/v0.1.0/__tests__/drop-xds-prefix-imports.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.1.0/__tests__/migrate-xds-css-surfaces.test.mjs b/packages/cli/assets/codemods/transforms/v0.1.0/__tests__/migrate-xds-css-surfaces.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.1.0/__tests__/migrate-xds-css-surfaces.test.mjsrename to packages/cli/assets/codemods/transforms/v0.1.0/__tests__/migrate-xds-css-surfaces.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.1.0/__tests__/migrate-xds-declare-module.test.mjs b/packages/cli/assets/codemods/transforms/v0.1.0/__tests__/migrate-xds-declare-module.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.1.0/__tests__/migrate-xds-declare-module.test.mjsrename to packages/cli/assets/codemods/transforms/v0.1.0/__tests__/migrate-xds-declare-module.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.1.0/__tests__/migrate-xds-module-specifiers.test.mjs b/packages/cli/assets/codemods/transforms/v0.1.0/__tests__/migrate-xds-module-specifiers.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.1.0/__tests__/migrate-xds-module-specifiers.test.mjsrename to packages/cli/assets/codemods/transforms/v0.1.0/__tests__/migrate-xds-module-specifiers.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.1.0/__tests__/v0.1.0-ordering.test.mjs b/packages/cli/assets/codemods/transforms/v0.1.0/__tests__/v0.1.0-ordering.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.1.0/__tests__/v0.1.0-ordering.test.mjsrename to packages/cli/assets/codemods/transforms/v0.1.0/__tests__/v0.1.0-ordering.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.1.0/drop-xds-prefix-imports.mjs b/packages/cli/assets/codemods/transforms/v0.1.0/drop-xds-prefix-imports.mjssimilarity index 98%rename from packages/cli/codemods/transforms/v0.1.0/drop-xds-prefix-imports.mjsrename to packages/cli/assets/codemods/transforms/v0.1.0/drop-xds-prefix-imports.mjsindex 02787b1fcb..bf9f7057b9 100644--- a/packages/cli/codemods/transforms/v0.1.0/drop-xds-prefix-imports.mjs+++ b/packages/cli/assets/codemods/transforms/v0.1.0/drop-xds-prefix-imports.mjs@@ -159,8 +159,8 @@ function renameMockFactoryKeys(/** @type {any} */ node, /** @type {any} */ seen,}/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.1.0/index.mjs b/packages/cli/assets/codemods/transforms/v0.1.0/index.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.1.0/index.mjsrename to packages/cli/assets/codemods/transforms/v0.1.0/index.mjsdiff --git a/packages/cli/codemods/transforms/v0.1.0/migrate-xds-css-surfaces.mjs b/packages/cli/assets/codemods/transforms/v0.1.0/migrate-xds-css-surfaces.mjssimilarity index 98%rename from packages/cli/codemods/transforms/v0.1.0/migrate-xds-css-surfaces.mjsrename to packages/cli/assets/codemods/transforms/v0.1.0/migrate-xds-css-surfaces.mjsindex 37a2dd83f4..762ccdeb3b 100644--- a/packages/cli/codemods/transforms/v0.1.0/migrate-xds-css-surfaces.mjs+++ b/packages/cli/assets/codemods/transforms/v0.1.0/migrate-xds-css-surfaces.mjs@@ -105,7 +105,7 @@ const REPLACEMENTS = [];/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file* @returns {string | null | undefined}*/export default function transformer(file /*, api */) {diff --git a/packages/cli/codemods/transforms/v0.1.0/migrate-xds-declare-module.mjs b/packages/cli/assets/codemods/transforms/v0.1.0/migrate-xds-declare-module.mjssimilarity index 95%rename from packages/cli/codemods/transforms/v0.1.0/migrate-xds-declare-module.mjsrename to packages/cli/assets/codemods/transforms/v0.1.0/migrate-xds-declare-module.mjsindex 21bd103bf5..af7cd5152a 100644--- a/packages/cli/codemods/transforms/v0.1.0/migrate-xds-declare-module.mjs+++ b/packages/cli/assets/codemods/transforms/v0.1.0/migrate-xds-declare-module.mjs@@ -58,8 +58,8 @@ function renamePackageSpecifier(/** @type {any} */ value) {}/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.1.0/migrate-xds-module-specifiers.mjs b/packages/cli/assets/codemods/transforms/v0.1.0/migrate-xds-module-specifiers.mjssimilarity index 97%rename from packages/cli/codemods/transforms/v0.1.0/migrate-xds-module-specifiers.mjsrename to packages/cli/assets/codemods/transforms/v0.1.0/migrate-xds-module-specifiers.mjsindex 2832da5feb..b33b45d2ac 100644--- a/packages/cli/codemods/transforms/v0.1.0/migrate-xds-module-specifiers.mjs+++ b/packages/cli/assets/codemods/transforms/v0.1.0/migrate-xds-module-specifiers.mjs@@ -117,8 +117,8 @@ function remapThemeExportNames(/** @type {any} */ importPath, /** @type {any} */}/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.1.2/__tests__/rename-text-color-active-to-accent.test.mjs b/packages/cli/assets/codemods/transforms/v0.1.2/__tests__/rename-text-color-active-to-accent.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.1.2/__tests__/rename-text-color-active-to-accent.test.mjsrename to packages/cli/assets/codemods/transforms/v0.1.2/__tests__/rename-text-color-active-to-accent.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.1.2/index.mjs b/packages/cli/assets/codemods/transforms/v0.1.2/index.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.1.2/index.mjsrename to packages/cli/assets/codemods/transforms/v0.1.2/index.mjsdiff --git a/packages/cli/codemods/transforms/v0.1.2/rename-text-color-active-to-accent.mjs b/packages/cli/assets/codemods/transforms/v0.1.2/rename-text-color-active-to-accent.mjssimilarity index 97%rename from packages/cli/codemods/transforms/v0.1.2/rename-text-color-active-to-accent.mjsrename to packages/cli/assets/codemods/transforms/v0.1.2/rename-text-color-active-to-accent.mjsindex 005cfebd75..620e892ed5 100644--- a/packages/cli/codemods/transforms/v0.1.2/rename-text-color-active-to-accent.mjs+++ b/packages/cli/assets/codemods/transforms/v0.1.2/rename-text-color-active-to-accent.mjs@@ -41,8 +41,8 @@ const NEW_VALUE = 'accent';const TARGET_COMPONENTS = new Set(['Text', 'Heading', 'Link', 'Timestamp']);/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.1.3/__tests__/migrate-layout-components-to-experimental.test.mjs b/packages/cli/assets/codemods/transforms/v0.1.3/__tests__/migrate-layout-components-to-experimental.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.1.3/__tests__/migrate-layout-components-to-experimental.test.mjsrename to packages/cli/assets/codemods/transforms/v0.1.3/__tests__/migrate-layout-components-to-experimental.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.1.3/index.mjs b/packages/cli/assets/codemods/transforms/v0.1.3/index.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.1.3/index.mjsrename to packages/cli/assets/codemods/transforms/v0.1.3/index.mjsdiff --git a/packages/cli/codemods/transforms/v0.1.3/migrate-layout-components-to-experimental.mjs b/packages/cli/assets/codemods/transforms/v0.1.3/migrate-layout-components-to-experimental.mjssimilarity index 98%rename from packages/cli/codemods/transforms/v0.1.3/migrate-layout-components-to-experimental.mjsrename to packages/cli/assets/codemods/transforms/v0.1.3/migrate-layout-components-to-experimental.mjsindex b7ef0d8510..f538a7da6f 100644--- a/packages/cli/codemods/transforms/v0.1.3/migrate-layout-components-to-experimental.mjs+++ b/packages/cli/assets/codemods/transforms/v0.1.3/migrate-layout-components-to-experimental.mjs@@ -59,8 +59,8 @@ const MANUAL =* @returns {string|null}*//**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.1.5/__tests__/rename-switch-label-spacing-default-to-hug.test.mjs b/packages/cli/assets/codemods/transforms/v0.1.5/__tests__/rename-switch-label-spacing-default-to-hug.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.1.5/__tests__/rename-switch-label-spacing-default-to-hug.test.mjsrename to packages/cli/assets/codemods/transforms/v0.1.5/__tests__/rename-switch-label-spacing-default-to-hug.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.1.5/index.mjs b/packages/cli/assets/codemods/transforms/v0.1.5/index.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.1.5/index.mjsrename to packages/cli/assets/codemods/transforms/v0.1.5/index.mjsdiff --git a/packages/cli/codemods/transforms/v0.1.5/rename-switch-label-spacing-default-to-hug.mjs b/packages/cli/assets/codemods/transforms/v0.1.5/rename-switch-label-spacing-default-to-hug.mjssimilarity index 97%rename from packages/cli/codemods/transforms/v0.1.5/rename-switch-label-spacing-default-to-hug.mjsrename to packages/cli/assets/codemods/transforms/v0.1.5/rename-switch-label-spacing-default-to-hug.mjsindex 2d09bcd574..a0993e3eef 100644--- a/packages/cli/codemods/transforms/v0.1.5/rename-switch-label-spacing-default-to-hug.mjs+++ b/packages/cli/assets/codemods/transforms/v0.1.5/rename-switch-label-spacing-default-to-hug.mjs@@ -45,8 +45,8 @@ const TARGET_PROP = 'labelSpacing';const TARGET_COMPONENTS = new Set(['Switch']);/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.1.7/__tests__/migrate-table-tableprops-to-direct-props.test.mjs b/packages/cli/assets/codemods/transforms/v0.1.7/__tests__/migrate-table-tableprops-to-direct-props.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.1.7/__tests__/migrate-table-tableprops-to-direct-props.test.mjsrename to packages/cli/assets/codemods/transforms/v0.1.7/__tests__/migrate-table-tableprops-to-direct-props.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.1.7/__tests__/rename-table-renderprops-styles-to-xstyle.test.mjs b/packages/cli/assets/codemods/transforms/v0.1.7/__tests__/rename-table-renderprops-styles-to-xstyle.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.1.7/__tests__/rename-table-renderprops-styles-to-xstyle.test.mjsrename to packages/cli/assets/codemods/transforms/v0.1.7/__tests__/rename-table-renderprops-styles-to-xstyle.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.1.7/index.mjs b/packages/cli/assets/codemods/transforms/v0.1.7/index.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.1.7/index.mjsrename to packages/cli/assets/codemods/transforms/v0.1.7/index.mjsdiff --git a/packages/cli/codemods/transforms/v0.1.7/migrate-table-tableprops-to-direct-props.mjs b/packages/cli/assets/codemods/transforms/v0.1.7/migrate-table-tableprops-to-direct-props.mjssimilarity index 97%rename from packages/cli/codemods/transforms/v0.1.7/migrate-table-tableprops-to-direct-props.mjsrename to packages/cli/assets/codemods/transforms/v0.1.7/migrate-table-tableprops-to-direct-props.mjsindex 1b39c3dd6f..c5856d2f6a 100644--- a/packages/cli/codemods/transforms/v0.1.7/migrate-table-tableprops-to-direct-props.mjs+++ b/packages/cli/assets/codemods/transforms/v0.1.7/migrate-table-tableprops-to-direct-props.mjs@@ -71,8 +71,8 @@ function getPropertyKeyName(/** @type {any} */ prop) {}/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.1.7/rename-table-renderprops-styles-to-xstyle.mjs b/packages/cli/assets/codemods/transforms/v0.1.7/rename-table-renderprops-styles-to-xstyle.mjssimilarity index 97%rename from packages/cli/codemods/transforms/v0.1.7/rename-table-renderprops-styles-to-xstyle.mjsrename to packages/cli/assets/codemods/transforms/v0.1.7/rename-table-renderprops-styles-to-xstyle.mjsindex 645a4a060d..0fb5fb756b 100644--- a/packages/cli/codemods/transforms/v0.1.7/rename-table-renderprops-styles-to-xstyle.mjs+++ b/packages/cli/assets/codemods/transforms/v0.1.7/rename-table-renderprops-styles-to-xstyle.mjs@@ -69,8 +69,8 @@ function typeNameOf(/** @type {any} */ typeAnnotation) {}/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.1.8/__tests__/rename-avatar-size-scale.test.mjs b/packages/cli/assets/codemods/transforms/v0.1.8/__tests__/rename-avatar-size-scale.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.1.8/__tests__/rename-avatar-size-scale.test.mjsrename to packages/cli/assets/codemods/transforms/v0.1.8/__tests__/rename-avatar-size-scale.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.1.8/index.mjs b/packages/cli/assets/codemods/transforms/v0.1.8/index.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.1.8/index.mjsrename to packages/cli/assets/codemods/transforms/v0.1.8/index.mjsdiff --git a/packages/cli/codemods/transforms/v0.1.8/rename-avatar-size-scale.mjs b/packages/cli/assets/codemods/transforms/v0.1.8/rename-avatar-size-scale.mjssimilarity index 98%rename from packages/cli/codemods/transforms/v0.1.8/rename-avatar-size-scale.mjsrename to packages/cli/assets/codemods/transforms/v0.1.8/rename-avatar-size-scale.mjsindex d73c6aa93f..b36b4ee38e 100644--- a/packages/cli/codemods/transforms/v0.1.8/rename-avatar-size-scale.mjs+++ b/packages/cli/assets/codemods/transforms/v0.1.8/rename-avatar-size-scale.mjs@@ -108,8 +108,8 @@ function literalString(/** @type {any} */ node) {}/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.2.0/__tests__/remove-tablist-orientation.test.mjs b/packages/cli/assets/codemods/transforms/v0.2.0/__tests__/remove-tablist-orientation.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.2.0/__tests__/remove-tablist-orientation.test.mjsrename to packages/cli/assets/codemods/transforms/v0.2.0/__tests__/remove-tablist-orientation.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.2.0/index.mjs b/packages/cli/assets/codemods/transforms/v0.2.0/index.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.2.0/index.mjsrename to packages/cli/assets/codemods/transforms/v0.2.0/index.mjsdiff --git a/packages/cli/codemods/transforms/v0.2.0/remove-tablist-orientation.mjs b/packages/cli/assets/codemods/transforms/v0.2.0/remove-tablist-orientation.mjssimilarity index 94%rename from packages/cli/codemods/transforms/v0.2.0/remove-tablist-orientation.mjsrename to packages/cli/assets/codemods/transforms/v0.2.0/remove-tablist-orientation.mjsindex e6ea612d8f..179e23f814 100644--- a/packages/cli/codemods/transforms/v0.2.0/remove-tablist-orientation.mjs+++ b/packages/cli/assets/codemods/transforms/v0.2.0/remove-tablist-orientation.mjs@@ -38,8 +38,8 @@ const IMPORT_SOURCES = new Set([const TARGET_IMPORTED_NAMES = new Set(['TabList']);/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/codemods/transforms/v0.2.1/__tests__/migrate-dialog-position-to-logical.test.mjs b/packages/cli/assets/codemods/transforms/v0.2.1/__tests__/migrate-dialog-position-to-logical.test.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.2.1/__tests__/migrate-dialog-position-to-logical.test.mjsrename to packages/cli/assets/codemods/transforms/v0.2.1/__tests__/migrate-dialog-position-to-logical.test.mjsdiff --git a/packages/cli/codemods/transforms/v0.2.1/index.mjs b/packages/cli/assets/codemods/transforms/v0.2.1/index.mjssimilarity index 100%rename from packages/cli/codemods/transforms/v0.2.1/index.mjsrename to packages/cli/assets/codemods/transforms/v0.2.1/index.mjsdiff --git a/packages/cli/codemods/transforms/v0.2.1/migrate-dialog-position-to-logical.mjs b/packages/cli/assets/codemods/transforms/v0.2.1/migrate-dialog-position-to-logical.mjssimilarity index 96%rename from packages/cli/codemods/transforms/v0.2.1/migrate-dialog-position-to-logical.mjsrename to packages/cli/assets/codemods/transforms/v0.2.1/migrate-dialog-position-to-logical.mjsindex 1b59bbe3ac..984c68a7e0 100644--- a/packages/cli/codemods/transforms/v0.2.1/migrate-dialog-position-to-logical.mjs+++ b/packages/cli/assets/codemods/transforms/v0.2.1/migrate-dialog-position-to-logical.mjs@@ -67,8 +67,8 @@ function keyName(key) {}/**- * @param {import('../../../types/codemod').AstryxCodemodFile} file- * @param {import('../../../types/codemod').CodemodTransformApi} api+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api* @returns {string | null | undefined}*/export default function transformer(file, api) {diff --git a/packages/cli/assets/codemods/transforms/v0.3.0/__tests__/authoring-migration.e2e.test.mjs b/packages/cli/assets/codemods/transforms/v0.3.0/__tests__/authoring-migration.e2e.test.mjsnew file mode 100644index 0000000000..fabaf9cf19--- /dev/null+++ b/packages/cli/assets/codemods/transforms/v0.3.0/__tests__/authoring-migration.e2e.test.mjs@@ -0,0 +1,296 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * @file End-to-end validation of the v0.3.0 authoring migration.+ *+ * Unlike the per-codemod unit tests, this exercises the two codemods TOGETHER+ * (in the order `astryx upgrade` runs them: unwrap-factories, then+ * migrate-imports) over a realistic corpus, and then proves the migrated output+ * is not merely string-correct but is ACCEPTED BY THE REAL PARSERS+ * (`parseConfig`/`parseIntegration`/`parseDoc`/`parseTemplate`/`parseCodemod`).+ * That closes the loop the unit tests can't: a consumer who ran `astryx upgrade`+ * ends up with authoring files the CLI actually loads. Also checks idempotency+ * (running the pair twice is a fixed point) and the tricky import shapes.+ */++import {afterAll, beforeAll, describe, expect, it} from 'vitest';+import * as fs from 'node:fs';+import * as path from 'node:path';+import {pathToFileURL} from 'node:url';++import unwrapFactories from '../unwrap-authoring-factories.mjs';+import migrateImports from '../migrate-authoring-imports.mjs';+import {parseConfig} from '../../../../../authoring/config/parse.mjs';+import {parseIntegration} from '../../../../../authoring/integration/parse.mjs';+import {parseDoc} from '../../../../../authoring/doctypes/parse.mjs';+import {parseTemplate} from '../../../../../authoring/doctypes/template/parse.mjs';+import {parseCodemod} from '../../../../../authoring/codemod/parse.mjs';++/** Run the full v0.3.0 authoring migration (both codemods, in release order). */+async function migrate(source, filePath = 'input.ts') {+ const jscodeshift = (await import('jscodeshift')).default;+ const j = jscodeshift.withParser('tsx');+ const api = {jscodeshift: j, stats: () => {}, report: () => {}};+ const afterUnwrap = unwrapFactories({source, path: filePath}, api) ?? source;+ const afterImports =+ migrateImports({source: afterUnwrap, path: filePath}, api) ?? afterUnwrap;+ return afterImports;+}++let tmpDir;+beforeAll(() => {+ // Repo-local temp dir: Vite's dynamic import blocks /tmp.+ tmpDir = fs.mkdtempSync(path.join(process.cwd(), '.astryx-codemod-e2e-'));+});+afterAll(() => {+ fs.rmSync(tmpDir, {recursive: true, force: true});+});++/** Write migrated source to a temp .mjs and return its default export. */+async function loadDefault(source) {+ const file = path.join(+ tmpDir,+ `m${Math.random().toString(36).slice(2)}.mjs`,+ );+ fs.writeFileSync(file, source);+ const mod = await import(pathToFileURL(file).href);+ return mod.default;+}++// ---------------------------------------------------------------------------+// Corpus — realistic consumer files, one per authoring kind. Each authors with+// the removed factory + the old import surface, exactly what a pre-v0.3.0+// integration/app shipped. Content mirrors real Astryx docs/configs.+// ---------------------------------------------------------------------------++const CONFIG = `import {createConfig} from '@astryxdesign/core/config';++export default createConfig({+ integrations: ['@acme/widgets', '@acme/charts'],+ issuesUrl: 'https://github.com/acme/app/issues',+ hooks: {postCodemod: [{name: 'reinstall', buildCommand: () => ({command: 'pnpm', args: ['install']})}]},+ experimental: {xle: {components: {KpiCard: {from: '@/components/KpiCard', default: true}}}},+});+`;++const INTEGRATION = `import {createIntegration} from '@astryxdesign/core/authoring';++export default createIntegration({+ components: './components',+ templates: './templates',+ codemods: './codemods',+ issuesUrl: 'https://github.com/acme/widgets/issues',+});+`;++const COMPONENT_DOC = `import {createComponentDoc} from '@astryxdesign/core/authoring';++export default createComponentDoc({+ name: 'AcmeCarousel',+ displayName: 'Acme Carousel',+ description: 'A carousel that cycles through slides.',+ category: 'Content',+ keywords: ['carousel', 'slider', 'gallery'],+ props: [+ {name: 'slides', type: 'ReactNode[]', description: 'The slides to render.', required: true},+ {name: 'autoPlay', type: 'boolean', description: 'Advance automatically.', default: 'false'},+ ],+ usage: {description: 'Use to cycle related media.', bestPractices: [{guidance: true, description: 'Keep slides consistent in size.'}]},+ examples: [{label: 'Basic', code: '<AcmeCarousel slides={slides} />'}],+});+`;++const FUNCTION_DOC = `import {createFunctionDoc} from '@astryxdesign/core/authoring';++export default createFunctionDoc({+ name: 'useCarousel',+ displayName: 'useCarousel',+ description: 'Drives carousel state.',+ params: [{name: 'count', type: 'number', description: 'Slide count.', required: true}],+ returns: [{name: 'index', type: 'number', description: 'Active slide index.'}],+});+`;++const GENERIC_DOC = `import {createDoc} from '@astryxdesign/core/authoring';++export default createDoc({+ name: 'Theming',+ displayName: 'Theming',+ description: 'How theming works in this package.',+});+`;++const PAGE_TEMPLATE = `import {createPageTemplate} from '@astryxdesign/core/authoring';++export default createPageTemplate({+ name: 'Acme Landing',+ description: 'A marketing landing page.',+ category: 'Marketing',+ componentsUsed: ['AcmeCarousel', 'Button'],+ preview: {image: './preview.png', aspectRatio: '16 / 9'},+});+`;++const BLOCK_TEMPLATE = `import {createBlockTemplate} from '@astryxdesign/core/authoring';++export default createBlockTemplate({+ name: 'Acme Hero',+ description: 'A hero block.',+ componentsUsed: ['AcmeCarousel'],+});+`;++const CODE_CODEMOD = `import {createCodemod} from '@astryxdesign/cli/codemod';++export default createCodemod({+ title: 'Rename slides prop to items',+ description: 'v2 renamed AcmeCarousel.slides to items.',+ transform: (file) => file.source.replace(/slides=/g, 'items='),+});+`;++const CONFIG_CODEMOD = `import {createConfigCodemod} from '@astryxdesign/cli/codemod';++export default createConfigCodemod({+ title: 'Bump acme integration id',+ transform: (file) => file.source.replace('@acme/old', '@acme/new'),+});+`;++/** Each corpus entry: what to run, the parser it must satisfy, extra checks. */+const CORPUS = [+ {name: 'astryx.config', source: CONFIG, parse: parseConfig, stamp: null, keep: ["integrations: ['@acme/widgets'"]},+ {name: 'astryx.integration', source: INTEGRATION, parse: parseIntegration, stamp: null, keep: ["components: './components'"]},+ {name: 'component .doc', source: COMPONENT_DOC, parse: parseDoc, stamp: "type: 'component'", keep: ["name: 'AcmeCarousel'"]},+ {name: 'function .doc', source: FUNCTION_DOC, parse: parseDoc, stamp: "type: 'function'", keep: ["name: 'useCarousel'"]},+ {name: 'generic .doc', source: GENERIC_DOC, parse: parseDoc, stamp: "type: 'generic'", keep: ["name: 'Theming'"]},+ {name: 'page .template', source: PAGE_TEMPLATE, parse: parseTemplate, stamp: "type: 'page'", keep: ["name: 'Acme Landing'"]},+ {name: 'block .template', source: BLOCK_TEMPLATE, parse: parseTemplate, stamp: "type: 'block'", keep: ["name: 'Acme Hero'"]},+ {name: 'code codemod', source: CODE_CODEMOD, parse: parseCodemod, stamp: "type: 'code'", keep: ['title:']},+ {name: 'config codemod', source: CONFIG_CODEMOD, parse: parseCodemod, stamp: "type: 'config'", keep: ['title:']},+];++const FACTORY_NAMES = [+ 'createConfig', 'createIntegration', 'createComponentDoc', 'createFunctionDoc',+ 'createDoc', 'createPageTemplate', 'createBlockTemplate', 'createCodemod',+ 'createConfigCodemod',+];++describe('v0.3.0 authoring migration — end to end over a realistic corpus', () => {+ for (const entry of CORPUS) {+ describe(entry.name, () => {+ it('migrates: drops factories, stamps type, repoints imports', async () => {+ const out = await migrate(entry.source);+ // No factory call or import survives.+ for (const f of FACTORY_NAMES) expect(out).not.toContain(f);+ // Old surfaces are gone; only the unified entrypoint may remain.+ expect(out).not.toContain('@astryxdesign/core/authoring');+ expect(out).not.toContain('@astryxdesign/core/config');+ expect(out).not.toContain('@astryxdesign/cli/codemod');+ // The discriminant is stamped for doc/template/codemod kinds.+ if (entry.stamp) expect(out).toContain(entry.stamp);+ // Payload is preserved.+ for (const k of entry.keep) expect(out).toContain(k);+ });++ it('output is accepted by the real parser', async () => {+ const out = await migrate(entry.source);+ const value = await loadDefault(out);+ // The load boundary the CLI actually uses must accept it.+ expect(() => entry.parse(value)).not.toThrow();+ // And the parsed value round-trips the stamp where applicable.+ if (entry.stamp) {+ const kind = entry.stamp.match(/'([^']+)'/)[1];+ expect(entry.parse(value).type).toBe(kind);+ }+ });++ it('is idempotent (running the migration twice is a fixed point)', async () => {+ const once = await migrate(entry.source);+ const twice = await migrate(once);+ expect(twice).toBe(once);+ });+ });+ }+});++describe('v0.3.0 authoring migration — import shapes & edge cases', () => {+ it('follows an aliased factory import', async () => {+ const out = await migrate(+ `import {createDoc as mkDoc} from '@astryxdesign/core/authoring';\nexport default mkDoc({name: 'X', description: 'y'});\n`,+ );+ expect(out).not.toMatch(/mkDoc|createDoc/);+ expect(out).toContain("type: 'generic'");+ expect(() => parseDoc(0)).toThrow(); // sanity: parser is real+ expect(parseDoc(await loadDefault(out)).type).toBe('generic');+ });++ it('keeps a sibling type import and repoints its source', async () => {+ const out = await migrate(+ `import {createComponentDoc, type ComponentDoc} from '@astryxdesign/core/authoring';\nconst d: ComponentDoc = createComponentDoc({name: 'X', props: []});\nexport default d;\n`,+ );+ expect(out).not.toContain('createComponentDoc');+ expect(out).toContain('ComponentDoc');+ expect(out).toContain("from '@astryxdesign/cli/authoring'");+ expect(out).toContain("type: 'component'");+ });++ it('wraps a non-object argument with a spread to preserve the stamp', async () => {+ const out = await migrate(+ `import {createComponentDoc} from '@astryxdesign/core/authoring';\nexport default createComponentDoc(baseDoc);\n`,+ );+ expect(out).toContain('...baseDoc');+ expect(out).toContain("type: 'component'");+ });++ it('overwrites an existing (wrong) type discriminant', async () => {+ const out = await migrate(+ `import {createComponentDoc} from '@astryxdesign/core/authoring';\nexport default createComponentDoc({type: 'wrong', name: 'X', props: []});\n`,+ );+ expect(out).toContain("type: 'component'");+ expect(out).not.toContain("'wrong'");+ expect(parseDoc(await loadDefault(out)).type).toBe('component');+ });++ it('handles multiple factories + type re-export in one module', async () => {+ const out = await migrate(+ `import {createDoc, createComponentDoc} from '@astryxdesign/core/authoring';\n` ++ `export const a = createDoc({name: 'A', description: 'a'});\n` ++ `export const b = createComponentDoc({name: 'B', props: []});\n` ++ `export {ComponentDoc} from '@astryxdesign/cli/doc';\n`,+ );+ expect(out).not.toMatch(/createDoc|createComponentDoc/);+ expect(out).toContain("type: 'generic'");+ expect(out).toContain("type: 'component'");+ // both the core value-import source and the cli/doc re-export collapse+ expect(out).not.toContain('@astryxdesign/core/authoring');+ expect(out).not.toContain('@astryxdesign/cli/doc');+ expect(out).toContain("from '@astryxdesign/cli/authoring'");+ });++ it('repoints a dynamic import and a TS import-type', async () => {+ const out = await migrate(+ `type C = import('@astryxdesign/cli/config').AstryxConfig;\n` ++ `const m = await import('@astryxdesign/cli/codemod');\n`,+ );+ expect(out).toContain("import('@astryxdesign/cli/authoring').AstryxConfig");+ expect(out).toContain("import('@astryxdesign/cli/authoring')");+ expect(out).not.toContain('@astryxdesign/cli/config');+ expect(out).not.toContain('@astryxdesign/cli/codemod');+ });++ it('all five old CLI subpaths collapse to /authoring', async () => {+ for (const sub of ['config', 'doc', 'integration', 'template', 'codemod']) {+ const out = await migrate(+ `import type {T} from '@astryxdesign/cli/${sub}';\nexport const x: T = null;\n`,+ );+ expect(out).toContain("from '@astryxdesign/cli/authoring'");+ expect(out).not.toContain(`@astryxdesign/cli/${sub}'`);+ }+ });++ it('is a no-op on a file with no authoring usage', async () => {+ const input = `import {Button} from '@astryxdesign/core';\nexport const x = <Button />;\n`;+ expect(await migrate(input)).toBe(input);+ });+});diff --git a/packages/cli/assets/codemods/transforms/v0.3.0/__tests__/authoring-migration.tsc.test.mjs b/packages/cli/assets/codemods/transforms/v0.3.0/__tests__/authoring-migration.tsc.test.mjsnew file mode 100644index 0000000000..34e4940b7b--- /dev/null+++ b/packages/cli/assets/codemods/transforms/v0.3.0/__tests__/authoring-migration.tsc.test.mjs@@ -0,0 +1,139 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * @file Type-level validation of the v0.3.0 authoring migration.+ *+ * `migrate-authoring-imports` changes TYPE import paths, so the decisive proof+ * is that migrated consumer code still type-checks: the new+ * `@astryxdesign/cli/authoring` path must resolve and export the types, and the+ * unwrapped objects must still satisfy them. This runs both codemods over+ * type-annotated fixtures, writes the result inside `packages/cli` (so+ * `@astryxdesign/cli` self-resolves and `@astryxdesign/core` resolves via its+ * deps), and runs the real `tsc` over it.+ *+ * A negative control asserts the PRE-migration source fails `tsc` (the old+ * `@astryxdesign/core/authoring|config` paths and the `create*` factories are+ * gone in v0.3.0) — so the check can't pass vacuously.+ */++import {afterAll, beforeAll, describe, expect, it} from 'vitest';+import {execFileSync} from 'node:child_process';+import * as fs from 'node:fs';+import * as path from 'node:path';++import unwrap from '../unwrap-authoring-factories.mjs';+import migrate from '../migrate-authoring-imports.mjs';++const CLI_DIR = path.resolve(import.meta.dirname, '../../../../..'); // packages/cli+const REPO_ROOT = path.resolve(CLI_DIR, '../..');++async function migrateSource(src) {+ const jscodeshift = (await import('jscodeshift')).default;+ const j = jscodeshift.withParser('tsx');+ const api = {jscodeshift: j, stats: () => {}, report: () => {}};+ const a = unwrap({source: src, path: 'f.ts'}, api) ?? src;+ return migrate({source: a, path: 'f.ts'}, api) ?? a;+}++// Pre-migration TS: authored with the removed factory + removed import surface,+// and a type annotation that only holds once the migrated types resolve + match.+const FIXTURES = {+ 'config.ts': `import {createConfig} from '@astryxdesign/core/config';+import type {AstryxConfig} from '@astryxdesign/core/config';+const config: AstryxConfig = createConfig({integrations: ['@acme/widgets'], issuesUrl: 'https://example.com/i'});+export default config;+`,+ 'integration.ts': `import {createIntegration} from '@astryxdesign/core/authoring';+import type {AstryxIntegration} from '@astryxdesign/core/authoring';+const integration: AstryxIntegration = createIntegration({components: './components', codemods: './codemods'});+export default integration;+`,+ 'component.doc.ts': `import {createComponentDoc} from '@astryxdesign/core/authoring';+import type {ComponentDoc} from '@astryxdesign/core/authoring';+const doc: ComponentDoc = createComponentDoc({name: 'AcmeCarousel', displayName: 'Acme Carousel', usage: {description: 'Cycle related media.'}, props: [{name: 'slides', type: 'ReactNode[]', description: 'Slides.'}]});+export default doc;+`,+ 'function.doc.ts': `import {createFunctionDoc} from '@astryxdesign/core/authoring';+import type {HookDoc} from '@astryxdesign/core/authoring';+const doc: HookDoc = createFunctionDoc({name: 'useCarousel', displayName: 'useCarousel', usage: {description: 'Drive carousel state.'}, params: [{name: 'count', type: 'number', description: 'Count.'}], returns: [{name: 'index', type: 'number', description: 'Index.'}]});+export default doc;+`,+ 'generic.doc.ts': `import {createDoc} from '@astryxdesign/core/authoring';+import type {ReferenceDoc} from '@astryxdesign/core/authoring';+const doc: ReferenceDoc = createDoc({name: 'theming', title: 'Theming', description: 'How theming works.', sections: [{title: 'Overview', content: [{type: 'prose', text: 'Themes cascade.'}]}]});+export default doc;+`,+ 'page.template.ts': `import {createPageTemplate} from '@astryxdesign/core/authoring';+import type {TemplateDoc} from '@astryxdesign/core/authoring';+const t: TemplateDoc = createPageTemplate({name: 'Landing', displayName: 'Landing', description: 'A landing page.'});+export default t;+`,+ 'block.template.ts': `import {createBlockTemplate} from '@astryxdesign/core/authoring';+import type {TemplateDoc} from '@astryxdesign/core/authoring';+const t: TemplateDoc = createBlockTemplate({name: 'Hero', displayName: 'Hero', exampleFor: 'Button', aspectRatio: 1.5, description: 'A hero block.'});+export default t;+`,+ 'codemod.ts': `import {createCodemod} from '@astryxdesign/cli/codemod';+import type {AstryxCodemodTransform} from '@astryxdesign/cli/codemod';+const transform: AstryxCodemodTransform = file => file.source.replace(/a/g, 'b');+export default createCodemod({title: 'Rename', transform});+`,+};++const TSCONFIG = JSON.stringify(+ {+ extends: '../../../../tsconfig.json',+ // allowJs mirrors the CLI's own tsconfigs: the authoring `.ts` barrel+ // re-exports the parser values from `.mjs`, which need to be readable.+ compilerOptions: {noEmit: true, skipLibCheck: true, allowJs: true, checkJs: false},+ include: ['*.ts'],+ },+ null,+ 2,+);++let dir;+beforeAll(async () => {+ dir = fs.mkdtempSync(path.join(CLI_DIR, '.codemod-tsc-'));+ fs.mkdirSync(path.join(dir, 'pre'));+ fs.mkdirSync(path.join(dir, 'post'));+ for (const [name, src] of Object.entries(FIXTURES)) {+ fs.writeFileSync(path.join(dir, 'pre', name), src);+ fs.writeFileSync(path.join(dir, 'post', name), await migrateSource(src));+ }+ fs.writeFileSync(path.join(dir, 'pre', 'tsconfig.json'), TSCONFIG);+ fs.writeFileSync(path.join(dir, 'post', 'tsconfig.json'), TSCONFIG);+});++afterAll(() => {+ if (dir) fs.rmSync(dir, {recursive: true, force: true});+});++/** Run the real tsc on a fixture dir; return {ok, output}. */+function tsc(which) {+ const project = path.join(dir, which, 'tsconfig.json');+ try {+ execFileSync('pnpm', ['exec', 'tsc', '-p', project], {+ cwd: REPO_ROOT,+ stdio: 'pipe',+ });+ return {ok: true, output: ''};+ } catch (err) {+ return {ok: false, output: `${err.stdout || ''}${err.stderr || ''}`};+ }+}++describe('v0.3.0 authoring migration — type-level (tsc)', () => {+ it('migrated consumer code type-checks against the real authoring types', () => {+ const {ok, output} = tsc('post');+ expect(ok, `tsc reported errors on migrated output:\n${output}`).toBe(true);+ }, 60000);++ it('negative control: pre-migration code fails tsc (removed paths + factories)', () => {+ const {ok, output} = tsc('pre');+ expect(ok).toBe(false);+ // The failures are the ones the codemod exists to fix.+ expect(output).toMatch(/Cannot find module '@astryxdesign\/core\/(authoring|config)'/);+ expect(output).toMatch(/has no exported member 'createCodemod'|Cannot find module/);+ }, 60000);+});diff --git a/packages/cli/assets/codemods/transforms/v0.3.0/__tests__/migrate-authoring-imports.test.mjs b/packages/cli/assets/codemods/transforms/v0.3.0/__tests__/migrate-authoring-imports.test.mjsnew file mode 100644index 0000000000..521478fdad--- /dev/null+++ b/packages/cli/assets/codemods/transforms/v0.3.0/__tests__/migrate-authoring-imports.test.mjs@@ -0,0 +1,80 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++import {describe, it, expect} from 'vitest';++async function applyTransform(source, path = 'test.tsx') {+ const {default: transform} = await import('../migrate-authoring-imports.mjs');+ const jscodeshift = (await import('jscodeshift')).default;+ const j = jscodeshift.withParser('tsx');+ const api = {jscodeshift: j, stats: () => {}, report: () => {}};+ const result = transform({source, path}, api);+ return result ?? source;+}++const OLD_SOURCES = [+ '@astryxdesign/cli/config',+ '@astryxdesign/cli/doc',+ '@astryxdesign/cli/integration',+ '@astryxdesign/cli/template',+ '@astryxdesign/cli/codemod',+ '@astryxdesign/core/authoring',+ '@astryxdesign/core/config',+];++describe('migrate-authoring-imports', () => {+ for (const src of OLD_SOURCES) {+ it(`repoints a type import from ${src}`, async () => {+ const input = `import type {AstryxConfig} from '${src}';\nconst c: AstryxConfig = {};\n`;+ const output = await applyTransform(input);+ expect(output).toContain("from '@astryxdesign/cli/authoring'");+ expect(output).not.toContain(src);+ // Bindings are untouched — only the specifier moved.+ expect(output).toContain('AstryxConfig');+ });+ }++ it('repoints a value import and preserves the bindings', async () => {+ const input = `import {parseConfig} from '@astryxdesign/cli/config';\n`;+ const output = await applyTransform(input);+ expect(output).toContain(+ "import {parseConfig} from '@astryxdesign/cli/authoring'",+ );+ });++ it('repoints a re-export', async () => {+ const input = `export {AstryxIntegration} from '@astryxdesign/cli/integration';\n`;+ const output = await applyTransform(input);+ expect(output).toContain("from '@astryxdesign/cli/authoring'");+ expect(output).not.toContain('@astryxdesign/cli/integration');+ });++ it('repoints a dynamic import', async () => {+ const input = `const m = await import('@astryxdesign/cli/codemod');\n`;+ const output = await applyTransform(input);+ expect(output).toContain("import('@astryxdesign/cli/authoring')");+ });++ it('repoints a TS import-type', async () => {+ const input = `type C = import('@astryxdesign/core/config').AstryxConfig;\n`;+ const output = await applyTransform(input);+ expect(output).toContain("import('@astryxdesign/cli/authoring').AstryxConfig");+ });++ it('leaves unrelated imports untouched', async () => {+ const input = `import {Button} from '@astryxdesign/core';\nimport {parseDoc} from '@astryxdesign/cli/doc';\n`;+ const output = await applyTransform(input);+ expect(output).toContain("from '@astryxdesign/core'");+ expect(output).toContain("from '@astryxdesign/cli/authoring'");+ expect(output).not.toContain('@astryxdesign/cli/doc');+ });++ it('is a no-op when there is no authoring import', async () => {+ const input = `import {Button} from '@astryxdesign/core';\n`;+ const {default: transform} = await import('../migrate-authoring-imports.mjs');+ const jscodeshift = (await import('jscodeshift')).default;+ const j = jscodeshift.withParser('tsx');+ const api = {jscodeshift: j, stats: () => {}, report: () => {}};+ const result = transform({source: input, path: 'test.tsx'}, api);+ expect(result).toBeUndefined();+ });+});diff --git a/packages/cli/assets/codemods/transforms/v0.3.0/__tests__/rename-authoring-doctypes.test.mjs b/packages/cli/assets/codemods/transforms/v0.3.0/__tests__/rename-authoring-doctypes.test.mjsnew file mode 100644index 0000000000..4d1cfa1ac9--- /dev/null+++ b/packages/cli/assets/codemods/transforms/v0.3.0/__tests__/rename-authoring-doctypes.test.mjs@@ -0,0 +1,94 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++import {describe, it, expect} from 'vitest';++async function applyTransform(source, path = 'test.tsx') {+ const {default: transform} = await import('../rename-authoring-doctypes.mjs');+ const jscodeshift = (await import('jscodeshift')).default;+ const j = jscodeshift.withParser('tsx');+ const api = {jscodeshift: j, stats: () => {}, report: () => {}};+ const result = transform({source, path}, api);+ return result ?? source;+}++describe('rename-authoring-doctypes', () => {+ it('renames an import specifier and its references', async () => {+ const input =+ `import type {PropDoc} from '@astryxdesign/cli/authoring';\n` ++ `const p: PropDoc = {name: 'x', type: 'string', description: 'y'};\n`;+ const output = await applyTransform(input);+ expect(output).toContain(+ "import type {ComponentPropDoc} from '@astryxdesign/cli/authoring'",+ );+ expect(output).toContain('const p: ComponentPropDoc =');+ expect(output).not.toMatch(/\bPropDoc\b/);+ });++ it('renames from the @astryxdesign/core re-export source', async () => {+ const input = `import type {ThemingTarget} from '@astryxdesign/core';\n`;+ const output = await applyTransform(input);+ expect(output).toContain(+ "import type {ComponentThemingTarget} from '@astryxdesign/core'",+ );+ });++ it('renames a JSDoc @type import() reference', async () => {+ const input =+ `/** @type {import('@astryxdesign/cli/authoring').TranslationDoc} */\n` ++ `export const docsZh = {};\n`;+ const output = await applyTransform(input);+ expect(output).toContain(+ "import('@astryxdesign/cli/authoring').ComponentTranslationDoc",+ );+ expect(output).not.toContain('.TranslationDoc}');+ });++ it('preserves an `as` alias, renaming only the imported name', async () => {+ const input =+ `import type {DerivedVar as DV} from '@astryxdesign/cli/authoring';\n` ++ `const d: DV = {property: 'padding'};\n`;+ const output = await applyTransform(input);+ expect(output).toContain('ComponentThemingDerivedVar as DV');+ expect(output).toContain('const d: DV =');+ });++ it('renames a re-export', async () => {+ const input = `export type {ContentBlock} from '@astryxdesign/core';\n`;+ const output = await applyTransform(input);+ expect(output).toContain('ReferenceContentBlock');+ expect(output).not.toMatch(/\bContentBlock\b/);+ });++ it('leaves the authorable entry types unchanged', async () => {+ const input =+ `import type {ComponentDoc, HookDoc} from '@astryxdesign/cli/authoring';\n`;+ const output = await applyTransform(input);+ expect(output).toContain('ComponentDoc');+ expect(output).toContain('HookDoc');+ // No accidental Component-prefixing of the entry types.+ expect(output).not.toContain('ComponentComponentDoc');+ });++ it('does not touch a local type of the same name from another module', async () => {+ const input =+ `import type {ComponentVar} from './themeEditor/constants';\n` ++ `const v: ComponentVar = {};\n`;+ const output = await applyTransform(input);+ expect(output).toContain(+ "import type {ComponentVar} from './themeEditor/constants'",+ );+ expect(output).toContain('const v: ComponentVar =');+ });++ it('is a no-op when there is no authoring doc-type reference', async () => {+ const input = `import {Button} from '@astryxdesign/core';\n`;+ const {default: transform} = await import(+ '../rename-authoring-doctypes.mjs'+ );+ const jscodeshift = (await import('jscodeshift')).default;+ const j = jscodeshift.withParser('tsx');+ const api = {jscodeshift: j, stats: () => {}, report: () => {}};+ const result = transform({source: input, path: 'test.tsx'}, api);+ expect(result).toBeUndefined();+ });+});diff --git a/packages/cli/assets/codemods/transforms/v0.3.0/__tests__/unwrap-authoring-factories.test.mjs b/packages/cli/assets/codemods/transforms/v0.3.0/__tests__/unwrap-authoring-factories.test.mjsnew file mode 100644index 0000000000..4bd29250bb--- /dev/null+++ b/packages/cli/assets/codemods/transforms/v0.3.0/__tests__/unwrap-authoring-factories.test.mjs@@ -0,0 +1,112 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++import {describe, it, expect} from 'vitest';++async function applyTransform(source, path = 'test.ts') {+ const {default: transform} = await import('../unwrap-authoring-factories.mjs');+ const jscodeshift = (await import('jscodeshift')).default;+ const j = jscodeshift.withParser('tsx');+ const api = {jscodeshift: j, stats: () => {}, report: () => {}};+ const result = transform({source, path}, api);+ return result ?? source;+}++describe('unwrap-authoring-factories', () => {+ it('unwraps createConfig without stamping a type, dropping the import', async () => {+ const input = `import {createConfig} from '@astryxdesign/core/config';+export default createConfig({integrations: ['@acme/widgets']});+`;+ const output = await applyTransform(input);+ expect(output).not.toContain('createConfig');+ expect(output).toContain("export default {");+ expect(output).toContain("integrations: ['@acme/widgets']");+ expect(output).not.toContain('type:');+ });++ it('unwraps createIntegration without a discriminant', async () => {+ const input = `import {createIntegration} from '@astryxdesign/core/authoring';+export default createIntegration({components: './src'});+`;+ const output = await applyTransform(input);+ expect(output).not.toContain('createIntegration');+ expect(output).toContain("components: './src'");+ expect(output).not.toContain('type:');+ });++ const DOC_CASES = [+ ['createComponentDoc', 'component'],+ ['createFunctionDoc', 'function'],+ ['createDoc', 'generic'],+ ['createPageTemplate', 'page'],+ ['createBlockTemplate', 'block'],+ ['createCodemod', 'code'],+ ['createConfigCodemod', 'config'],+ ];++ for (const [factory, kind] of DOC_CASES) {+ it(`${factory} stamps type: '${kind}' and drops the import`, async () => {+ const input = `import {${factory}} from '@astryxdesign/core/authoring';+export default ${factory}({name: 'X', description: 'd'});+`;+ const output = await applyTransform(input);+ expect(output).not.toContain(factory);+ expect(output).toContain(`type: '${kind}'`);+ expect(output).toContain("name: 'X'");+ });+ }++ it('follows an import alias', async () => {+ const input = `import {createDoc as mkDoc} from '@astryxdesign/cli/doc';+export default mkDoc({name: 'Theming', description: 'How theming works.'});+`;+ const output = await applyTransform(input);+ expect(output).not.toContain('mkDoc');+ expect(output).not.toContain('createDoc');+ expect(output).toContain("type: 'generic'");+ });++ it('keeps sibling type imports, removing only the factory specifier', async () => {+ const input = `import {createComponentDoc, type ComponentDoc} from '@astryxdesign/core/authoring';+const doc: ComponentDoc = createComponentDoc({name: 'Widget', props: []});+export default doc;+`;+ const output = await applyTransform(input);+ expect(output).not.toContain('createComponentDoc');+ expect(output).toContain('ComponentDoc');+ expect(output).toContain("from '@astryxdesign/core/authoring'");+ expect(output).toContain("type: 'component'");+ });++ it('wraps a non-object argument with a spread to preserve the stamp', async () => {+ const input = `import {createComponentDoc} from '@astryxdesign/core/authoring';+export default createComponentDoc(baseDoc);+`;+ const output = await applyTransform(input);+ expect(output).not.toContain('createComponentDoc');+ expect(output).toContain('...baseDoc');+ expect(output).toContain("type: 'component'");+ });++ it('overwrites an existing type property with the correct discriminant', async () => {+ const input = `import {createComponentDoc} from '@astryxdesign/core/authoring';+export default createComponentDoc({type: 'wrong', name: 'Widget', props: []});+`;+ const output = await applyTransform(input);+ expect(output).toContain("type: 'component'");+ expect(output).not.toContain("type: 'wrong'");+ });++ it('is a no-op when no authoring factory is imported', async () => {+ const input = `import {Button} from '@astryxdesign/core';+export default Button;+`;+ const {default: transform} = await import(+ '../unwrap-authoring-factories.mjs'+ );+ const jscodeshift = (await import('jscodeshift')).default;+ const j = jscodeshift.withParser('tsx');+ const api = {jscodeshift: j, stats: () => {}, report: () => {}};+ const result = transform({source: input, path: 'test.ts'}, api);+ expect(result).toBeUndefined();+ });+});diff --git a/packages/cli/assets/codemods/transforms/v0.3.0/index.mjs b/packages/cli/assets/codemods/transforms/v0.3.0/index.mjsnew file mode 100644index 0000000000..1fbf962554--- /dev/null+++ b/packages/cli/assets/codemods/transforms/v0.3.0/index.mjs@@ -0,0 +1,39 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * @file v0.3.0 transform manifest+ *+ * Lists all codemods for the v0.3.0 release in the order they should run.+ * `unwrap-authoring-factories` runs first (it removes the `create*` value+ * imports), then `migrate-authoring-imports` repoints the surviving type+ * imports to `@astryxdesign/cli/authoring`, then `rename-authoring-doctypes`+ * renames the doc field types to their explicit domain-prefixed names.+ */++import unwrapAuthoringFactories, {+ meta as unwrapAuthoringFactoriesMeta,+} from './unwrap-authoring-factories.mjs';+import migrateAuthoringImports, {+ meta as migrateAuthoringImportsMeta,+} from './migrate-authoring-imports.mjs';+import renameAuthoringDoctypes, {+ meta as renameAuthoringDoctypesMeta,+} from './rename-authoring-doctypes.mjs';++export default [+ {+ name: 'unwrap-authoring-factories',+ transform: unwrapAuthoringFactories,+ meta: unwrapAuthoringFactoriesMeta,+ },+ {+ name: 'migrate-authoring-imports',+ transform: migrateAuthoringImports,+ meta: migrateAuthoringImportsMeta,+ },+ {+ name: 'rename-authoring-doctypes',+ transform: renameAuthoringDoctypes,+ meta: renameAuthoringDoctypesMeta,+ },+];diff --git a/packages/cli/assets/codemods/transforms/v0.3.0/migrate-authoring-imports.mjs b/packages/cli/assets/codemods/transforms/v0.3.0/migrate-authoring-imports.mjsnew file mode 100644index 0000000000..c652b040a5--- /dev/null+++ b/packages/cli/assets/codemods/transforms/v0.3.0/migrate-authoring-imports.mjs@@ -0,0 +1,134 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * @file Codemod: repoint authoring imports to `@astryxdesign/cli/authoring`.+ *+ * v0.3.0 consolidates all Astryx authoring — config, integration, codemod, and+ * the doc/template vocabulary — behind a single entrypoint,+ * `@astryxdesign/cli/authoring`, which exposes the TYPES authors write plain+ * objects against and the PARSERS the CLI runs at the load boundary. The old+ * split surfaces are removed:+ * - `@astryxdesign/cli/{config,doc,integration,template,codemod}` (CLI aliases)+ * - `@astryxdesign/core/authoring` and `@astryxdesign/core/config` (the doc /+ * template / integration / config authoring that used to live in core)+ *+ * This transform rewrites the module specifier of every import/export/dynamic-+ * import / TS `import(...)` type that referenced one of those sources so it+ * points at `@astryxdesign/cli/authoring`. It only touches the specifier string;+ * the imported bindings (types) are unchanged. Run AFTER `unwrap-authoring-+ * factories`, which removes the `create*` value imports these sources also+ * carried — so by the time this runs, only type imports remain to repoint.+ *+ * Not handled: authoring type-imports written inside JSDoc comments+ * (`@type {import('@astryxdesign/cli/config').AstryxConfig}`) — those live in+ * comment text, not the AST, and must be repointed by hand. The vast majority of+ * consumers use `import type` / `import`, which this covers.+ */++export const meta = {+ title: 'Repoint authoring imports to @astryxdesign/cli/authoring',+ description:+ 'Rewrites imports/exports (incl. dynamic import and TS import-type) from ' ++ 'the removed authoring surfaces — @astryxdesign/cli/{config,doc,' ++ 'integration,template,codemod} and @astryxdesign/core/{authoring,config} — ' ++ 'to the unified @astryxdesign/cli/authoring entrypoint. Bindings are ' ++ 'unchanged; only the module specifier moves.',+ pr: '#4612',+ fileExtensions: ['.js', '.jsx', '.ts', '.tsx', '.mjs', '.cjs'],+};++/** The unified destination for every authoring import. */+const TARGET = '@astryxdesign/cli/authoring';++/** Exact source specifiers that collapse into {@link TARGET}. */+const AUTHORING_SOURCES = new Set([+ '@astryxdesign/cli/config',+ '@astryxdesign/cli/doc',+ '@astryxdesign/cli/integration',+ '@astryxdesign/cli/template',+ '@astryxdesign/cli/codemod',+ '@astryxdesign/core/authoring',+ '@astryxdesign/core/config',+]);++/**+ * Rewrite a source-specifier string node in place if it names an old authoring+ * surface. Returns whether it changed.+ * @param {any} node a StringLiteral/Literal node (or null)+ * @returns {boolean}+ */+function rewriteSource(node) {+ if (!node || typeof node.value !== 'string') return false;+ if (!AUTHORING_SOURCES.has(node.value)) return false;+ if (node.value === TARGET) return false;+ node.value = TARGET;+ return true;+}++/**+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api+ * @returns {string | null | undefined}+ */+export default function transformer(file, api) {+ const j = api.jscodeshift;+ const root = j(file.source);+ let hasChanges = false;++ root.find(j.ImportDeclaration).forEach((/** @type {any} */ path) => {+ hasChanges = rewriteSource(path.node.source) || hasChanges;+ });+ root.find(j.ExportNamedDeclaration).forEach((/** @type {any} */ path) => {+ hasChanges = rewriteSource(path.node.source) || hasChanges;+ });+ root.find(j.ExportAllDeclaration).forEach((/** @type {any} */ path) => {+ hasChanges = rewriteSource(path.node.source) || hasChanges;+ });++ // Dynamic `import('...')` and `require('...')`.+ root.find(j.CallExpression).forEach((/** @type {any} */ path) => {+ const callee = path.node.callee;+ const isDynamicImport = callee.type === 'Import';+ const isRequire = callee.type === 'Identifier' && callee.name === 'require';+ if (!isDynamicImport && !isRequire) return;+ const [arg] = path.node.arguments;+ if (arg && (arg.type === 'StringLiteral' || arg.type === 'Literal')) {+ hasChanges = rewriteSource(arg) || hasChanges;+ }+ });++ // TS `import(...)` type nodes (e.g. `typeof import('@astryxdesign/cli/doc')`),+ // including those nested in generic type-argument positions that ast-types'+ // typed traversal does not descend into — so walk the raw AST.+ const seen = new Set();+ const walkTSImportTypes = (/** @type {any} */ node) => {+ if (!node || typeof node !== 'object') return;+ if (Array.isArray(node)) {+ for (const child of node) walkTSImportTypes(child);+ return;+ }+ if (seen.has(node)) return;+ seen.add(node);+ if (node.type === 'TSImportType' && node.argument) {+ hasChanges = rewriteSource(node.argument) || hasChanges;+ }+ for (const key of Object.keys(node)) {+ if (+ key === 'loc' ||+ key === 'start' ||+ key === 'end' ||+ key === 'range' ||+ key === 'comments' ||+ key === 'leadingComments' ||+ key === 'trailingComments' ||+ key === 'tokens'+ ) {+ continue;+ }+ walkTSImportTypes(node[key]);+ }+ };+ walkTSImportTypes(root.get().node);++ return hasChanges ? root.toSource({quote: 'single'}) : undefined;+}diff --git a/packages/cli/assets/codemods/transforms/v0.3.0/rename-authoring-doctypes.mjs b/packages/cli/assets/codemods/transforms/v0.3.0/rename-authoring-doctypes.mjsnew file mode 100644index 0000000000..e8e9ff55db--- /dev/null+++ b/packages/cli/assets/codemods/transforms/v0.3.0/rename-authoring-doctypes.mjs@@ -0,0 +1,170 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * @file Codemod: rename authoring doc field types to explicit, domain-prefixed+ * names.+ *+ * v0.3.0 gives the doc vocabulary names that say where each type belongs, so the+ * public surface reads clearly. Vague field names (`PropDoc`, `DerivedVar`,+ * `ContentBlock`, `TranslationDoc`, …) become `Component*` / `Reference*`. The+ * authorable entry types (`ComponentDoc`, `HookDoc`, `ReferenceDoc`,+ * `TemplateDoc`) and the hook/reference-prefixed names are unchanged.+ *+ * This rewrites references imported from the authoring surfaces+ * (`@astryxdesign/cli/authoring` + the legacy subpaths, and `@astryxdesign/core`+ * which re-exported them): the import/export specifier, every reference to the+ * renamed local binding, and JSDoc `@type {import('…').OldName}` comments. Run+ * AFTER `migrate-authoring-imports` (which collapses the sources), though it is+ * safe standalone.+ */++export const meta = {+ title: 'Rename authoring doc field types to explicit domain-prefixed names',+ description:+ 'Renames the doc field types (PropDoc, ThemingTarget, ComponentVar, ' ++ 'DerivedVar, ElementDescriptor, GroupDoc, TranslationDoc, ExampleDoc, ' ++ 'AnatomyElement, BestPractice, PlaygroundConfig, ContentBlock, ' ++ 'TokenPreviewType) to their Component*/Reference* equivalents in imports, ' ++ 'type references, and JSDoc import() type refs. The authorable entry types ' ++ '(ComponentDoc/HookDoc/ReferenceDoc/TemplateDoc) are unchanged.',+ pr: '#4612',+ fileExtensions: ['.js', '.jsx', '.ts', '.tsx', '.mjs', '.cjs'],+};++/**+ * old identifier -> new identifier.+ * @type {Record<string, string>}+ */+const RENAMES = {+ PropDoc: 'ComponentPropDoc',+ ExampleDoc: 'ComponentExampleDoc',+ AnatomyElement: 'ComponentAnatomyElement',+ BestPractice: 'ComponentBestPractice',+ PlaygroundConfig: 'ComponentPlaygroundConfig',+ ThemingTarget: 'ComponentThemingTarget',+ ComponentVar: 'ComponentThemingVar',+ DerivedVar: 'ComponentThemingDerivedVar',+ ElementDescriptor: 'ComponentSlotElement',+ GroupDoc: 'ComponentGroupDoc',+ TranslationDoc: 'ComponentTranslationDoc',+ ContentBlock: 'ReferenceContentBlock',+ TokenPreviewType: 'ReferenceTokenPreviewType',+ BaseDoc: 'ComponentBaseDoc',+};++/** Sources that (re-)exported these names. */+const AUTHORING_SOURCES = new Set([+ '@astryxdesign/cli/authoring',+ '@astryxdesign/cli/doc',+ '@astryxdesign/cli/template',+ '@astryxdesign/cli/integration',+ '@astryxdesign/cli/codemod',+ '@astryxdesign/core',+ '@astryxdesign/core/authoring',+]);++/** JSDoc `import('<authoring source>').` prefix, for `@type` comment refs. */+const JSDOC_SOURCE =+ "@astryxdesign/(?:cli/(?:authoring|doc|template|integration|codemod)|core(?:/authoring)?)";++/**+ * @param {any} node a StringLiteral/Literal source node (or null)+ * @returns {boolean}+ */+function isAuthoringSource(node) {+ return !!node && typeof node.value === 'string' && AUTHORING_SOURCES.has(node.value);+}++/**+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api+ * @returns {string | null | undefined}+ */+export default function transformer(file, api) {+ const j = api.jscodeshift;+ const root = j(file.source);+ let changed = false;++ /** local binding name -> new name (for unaliased imports we also rename refs). */+ const renamedLocals = new Map();++ /** @param {any[] | undefined} specifiers */+ const renameSpecifiers = specifiers => {+ for (const spec of specifiers ?? []) {+ if (spec.type === 'ImportSpecifier') {+ // `imported` is the name from the source; `local` is the binding.+ const oldName = spec.imported && spec.imported.name;+ const next = oldName ? RENAMES[oldName] : undefined;+ if (!next) continue;+ spec.imported.name = next;+ // No `as` alias -> the local reference name changes too.+ if (spec.local && spec.local.name === oldName) {+ spec.local.name = next;+ renamedLocals.set(oldName, next);+ }+ changed = true;+ } else if (spec.type === 'ExportSpecifier') {+ // `local` is the name from the source; `exported` is what re-exports.+ const oldName = spec.local && spec.local.name;+ const next = oldName ? RENAMES[oldName] : undefined;+ if (!next) continue;+ spec.local.name = next;+ if (spec.exported && spec.exported.name === oldName) {+ spec.exported.name = next;+ }+ changed = true;+ }+ }+ };++ root.find(j.ImportDeclaration).forEach((/** @type {any} */ path) => {+ if (isAuthoringSource(path.node.source)) renameSpecifiers(path.node.specifiers);+ });+ root.find(j.ExportNamedDeclaration).forEach((/** @type {any} */ path) => {+ if (path.node.source && isAuthoringSource(path.node.source)) {+ renameSpecifiers(path.node.specifiers);+ }+ });++ // Rename references to the renamed bindings (type positions), skipping the+ // specifiers we already handled and non-reference identifier slots.+ if (renamedLocals.size > 0) {+ root.find(j.Identifier).forEach((/** @type {any} */ path) => {+ const next = renamedLocals.get(path.node.name);+ if (!next) return;+ const parent = path.parent.node;+ if (+ parent.type === 'ImportSpecifier' ||+ parent.type === 'ExportSpecifier' ||+ (parent.type === 'MemberExpression' &&+ parent.property === path.node &&+ !parent.computed) ||+ (parent.type === 'TSQualifiedName' && parent.right === path.node) ||+ ((parent.type === 'ObjectProperty' || parent.type === 'Property') &&+ parent.key === path.node &&+ !parent.computed) ||+ (parent.type === 'TSPropertySignature' && parent.key === path.node)+ ) {+ return;+ }+ path.node.name = next;+ changed = true;+ });+ }++ let out = changed ? root.toSource({quote: 'single'}) : file.source;++ // JSDoc `@type {import('@astryxdesign/…').OldName}` refs live in comment text,+ // not the AST, so rewrite them on the source string.+ const beforeJsdoc = out;+ for (const [oldName, newName] of Object.entries(RENAMES)) {+ const re = new RegExp(+ `(import\\(['"]${JSDOC_SOURCE}['"]\\)\\.)${oldName}\\b`,+ 'g',+ );+ out = out.replace(re, `$1${newName}`);+ }+ if (out !== beforeJsdoc) changed = true;++ return changed ? out : undefined;+}diff --git a/packages/cli/assets/codemods/transforms/v0.3.0/unwrap-authoring-factories.mjs b/packages/cli/assets/codemods/transforms/v0.3.0/unwrap-authoring-factories.mjsnew file mode 100644index 0000000000..2107988b69--- /dev/null+++ b/packages/cli/assets/codemods/transforms/v0.3.0/unwrap-authoring-factories.mjs@@ -0,0 +1,169 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * @file Codemod: unwrap the removed authoring `create*` factories.+ *+ * v0.3.0 removes the authoring factories. Authoring is now types + parsers: an+ * author writes a plain object and stamps its `type` directly. This transform+ * rewrites every factory call to the plain object the factory used to return,+ * then drops the now-dead factory imports:+ *+ * createConfig(o) / createIntegration(o) -> o (no discriminant)+ * createComponentDoc(o) -> { ...o, type: 'component' }+ * createFunctionDoc(o) -> { ...o, type: 'function' }+ * createDoc(o) -> { ...o, type: 'generic' }+ * createPageTemplate(o) -> { ...o, type: 'page' }+ * createBlockTemplate(o) -> { ...o, type: 'block' }+ * createCodemod(o) -> { ...o, type: 'code' }+ * createConfigCodemod(o) -> { ...o, type: 'config' }+ *+ * When the argument is an object literal the `type` is added (or overwritten) as+ * a property in place — the common `export default createComponentDoc({ ... })`+ * form becomes a clean stamped literal. When the argument is anything else+ * (a variable, a spread), it is wrapped `{ ...arg, type: '...' }` so runtime+ * semantics match the old stamp-only factory exactly.+ *+ * Import aliases are followed (`import {createDoc as mk}` → calls to `mk`), and+ * the factory specifiers are removed afterward (the whole import statement goes+ * if nothing else was imported from it). Run this BEFORE+ * `migrate-authoring-imports`, which repoints the surviving type imports.+ */++export const meta = {+ title: 'Unwrap authoring create* factories into plain stamped objects',+ description:+ 'Rewrites createConfig/createIntegration/createComponentDoc/' ++ 'createFunctionDoc/createDoc/createPageTemplate/createBlockTemplate/' ++ 'createCodemod/createConfigCodemod calls to the plain object they returned ' ++ "(stamping the doc/template/codemod `type` discriminant), and removes the " ++ 'now-dead factory imports. Authoring is types + parsers in v0.3.0 — there ' ++ 'are no factories.',+ pr: '#4612',+ fileExtensions: ['.js', '.jsx', '.ts', '.tsx', '.mjs', '.cjs'],+};++/**+ * Factory name → the `type` discriminant it stamped, or `null` for the config /+ * integration factories, which were pure typed-identity (no discriminant).+ */+const FACTORY_STAMPS = new Map([+ ['createConfig', null],+ ['createIntegration', null],+ ['createComponentDoc', 'component'],+ ['createFunctionDoc', 'function'],+ ['createDoc', 'generic'],+ ['createPageTemplate', 'page'],+ ['createBlockTemplate', 'block'],+ ['createCodemod', 'code'],+ ['createConfigCodemod', 'config'],+]);++/**+ * Add or overwrite a `type: '<kind>'` property on an object literal, in place.+ * @param {any} j+ * @param {any} objExpr an ObjectExpression node+ * @param {string} kind+ */+function stampObjectType(j, objExpr, kind) {+ const isTypeKey = (/** @type {any} */ prop) => {+ if (+ (!j.ObjectProperty.check(prop) && !j.Property.check(prop)) ||+ prop.computed+ ) {+ return false;+ }+ const key = prop.key;+ if (j.Identifier.check(key)) return key.name === 'type';+ if (j.StringLiteral.check(key)) return key.value === 'type';+ if (j.Literal.check(key)) return key.value === 'type';+ return false;+ };+ const existing = objExpr.properties.find(isTypeKey);+ if (existing) {+ existing.value = j.stringLiteral(kind);+ } else {+ objExpr.properties.push(+ j.objectProperty(j.identifier('type'), j.stringLiteral(kind)),+ );+ }+}++/**+ * @param {import('../../../../authoring/codemod/type').AstryxCodemodFile} file+ * @param {import('../../../../authoring/codemod/type').CodemodTransformApi} api+ * @returns {string | null | undefined}+ */+export default function transformer(file, api) {+ const j = api.jscodeshift;+ const root = j(file.source);+ let hasChanges = false;++ // Map each local binding (honoring `as` aliases) to its canonical factory+ // name, so calls to aliased factories are still rewritten.+ /** @type {Map<string, string>} */+ const localToFactory = new Map();+ root.find(j.ImportDeclaration).forEach((/** @type {any} */ path) => {+ for (const spec of path.node.specifiers ?? []) {+ if (spec.type !== 'ImportSpecifier') continue;+ const importedName = spec.imported?.name;+ if (importedName && FACTORY_STAMPS.has(importedName)) {+ localToFactory.set(spec.local?.name ?? importedName, importedName);+ }+ }+ });++ if (localToFactory.size === 0) return undefined;++ // Rewrite each factory call to the plain (stamped) object.+ root.find(j.CallExpression).forEach((/** @type {any} */ path) => {+ const callee = path.node.callee;+ if (callee.type !== 'Identifier') return;+ const canonical = localToFactory.get(callee.name);+ if (!canonical) return;++ const kind = FACTORY_STAMPS.get(canonical);+ const arg = path.node.arguments[0];+ if (!arg) return; // createX() with no argument — leave for manual review++ /** @type {any} */+ let replacement;+ if (kind == null) {+ // config / integration: pure unwrap.+ replacement = arg;+ } else if (j.ObjectExpression.check(arg)) {+ stampObjectType(j, arg, kind);+ replacement = arg;+ } else {+ // Non-literal argument: preserve stamp semantics with a spread.+ replacement = j.objectExpression([+ j.spreadElement(arg),+ j.objectProperty(j.identifier('type'), j.stringLiteral(kind)),+ ]);+ }++ j(path).replaceWith(replacement);+ hasChanges = true;+ });++ // Drop the now-dead factory import specifiers; remove any import statement+ // left empty.+ root.find(j.ImportDeclaration).forEach((/** @type {any} */ path) => {+ const specs = path.node.specifiers ?? [];+ const kept = specs.filter(+ (/** @type {any} */ spec) =>+ !(+ spec.type === 'ImportSpecifier' &&+ FACTORY_STAMPS.has(spec.imported?.name)+ ),+ );+ if (kept.length === specs.length) return;+ hasChanges = true;+ if (kept.length === 0) {+ j(path).remove();+ } else {+ path.node.specifiers = kept;+ }+ });++ return hasChanges ? root.toSource({quote: 'single'}) : undefined;+}diff --git a/packages/cli/docs/browser-support.doc.mjs b/packages/cli/assets/docs/browser-support.doc.mjssimilarity index 99%rename from packages/cli/docs/browser-support.doc.mjsrename to packages/cli/assets/docs/browser-support.doc.mjsindex dc5f956d6b..878e922e27 100644--- a/packages/cli/docs/browser-support.doc.mjs+++ b/packages/cli/assets/docs/browser-support.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../core/src/docs-types').ReferenceDoc} */+/** @type {import('@astryxdesign/cli/authoring').ReferenceDoc} */export const docs = {name: 'browser-support',diff --git a/packages/cli/docs/cli-integrations.doc.mjs b/packages/cli/assets/docs/cli-integrations.doc.mjssimilarity index 69%rename from packages/cli/docs/cli-integrations.doc.mjsrename to packages/cli/assets/docs/cli-integrations.doc.mjsindex 951ef17435..060a76cd7e 100644--- a/packages/cli/docs/cli-integrations.doc.mjs+++ b/packages/cli/assets/docs/cli-integrations.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../core/src/docs-types').ReferenceDoc} */+/** @type {import('@astryxdesign/cli/authoring').ReferenceDoc} */export const docs = {name: 'cli-integrations',@@ -29,7 +29,7 @@ export const docs = {{type: 'code',lang: 'typescript',- code: "import {createConfig} from '@astryxdesign/core/config';\n\nexport default createConfig({\n integrations: ['@acme/astryx-widgets'],\n});",+ code: "// astryx.config.ts\nexport default {\n integrations: ['@acme/astryx-widgets'],\n};",},{type: 'prose',@@ -53,11 +53,11 @@ export const docs = {{type: 'code',lang: 'typescript',- code: "// astryx.integration.ts\nimport {createIntegration} from '@astryxdesign/core/authoring';\n\nexport default createIntegration({\n components: './components',\n templates: './templates',\n codemods: './codemods',\n issuesUrl: 'https://github.com/acme/widgets/issues',\n});",+ code: "// astryx.integration.ts\nexport default {\n components: './components',\n templates: './templates',\n codemods: './codemods',\n issuesUrl: 'https://github.com/acme/widgets/issues',\n};",},{type: 'prose',- text: 'Every field is optional. Declare only the contribution roots your package ships. `createIntegration` is a type-preserving helper for editor autocomplete and type-checking. It lives in `@astryxdesign/core/authoring` and is also re-exported from `@astryxdesign/cli/integration` for back-compat.',+ text: 'Every field is optional. Declare only the contribution roots your package ships. There is no factory to call. Write a plain object, and for editor autocomplete and type-checking annotate it with the `AstryxIntegration` type exported from `@astryxdesign/cli/authoring`.',},],},@@ -72,7 +72,7 @@ export const docs = {{type: 'code',lang: 'typescript',- code: "// AcmeCarousel.doc.ts\nimport {createComponentDoc} from '@astryxdesign/core/authoring';\n\nexport default createComponentDoc({\n name: 'AcmeCarousel',\n description: 'A carousel that cycles through slides.',\n // props, usage, examples, ...\n});",+ code: "// AcmeCarousel.doc.ts\nexport default {\n type: 'component',\n name: 'AcmeCarousel',\n description: 'A carousel that cycles through slides.',\n // props, usage, examples, ...\n};",},],},@@ -82,12 +82,12 @@ export const docs = {content: [{type: 'prose',- text: 'Templates are usually not exported from the package directly. Instead, consumers browse them through the CLI and materialize them into their app. Define a template with `createPageTemplate` (full pages) or `createBlockTemplate` (smaller chunks) in a `.template.{ts,mjs,js}` file next to the source, for example `AcmeLandingPage.tsx` and `AcmeLandingPage.template.ts`.',+ text: 'Templates are usually not exported from the package directly. Instead, consumers browse them through the CLI and materialize them into their app. Define a template as a plain object stamped with `type: \'page\'` (full pages) or `type: \'block\'` (smaller chunks) in a `.template.{ts,mjs,js}` file next to the source, for example `AcmeLandingPage.tsx` and `AcmeLandingPage.template.ts`.',},{type: 'code',lang: 'typescript',- code: "// AcmeLandingPage.template.ts\nimport {createPageTemplate} from '@astryxdesign/core/authoring';\n\nexport default createPageTemplate({\n // name, description, preview, ...\n});",+ code: "// AcmeLandingPage.template.ts\nexport default {\n type: 'page',\n // name, description, preview, ...\n};",},{type: 'prose',@@ -115,16 +115,16 @@ export const docs = {content: [{type: 'prose',- text: 'Ship codemods so `astryx upgrade` can migrate consumers across breaking changes in your package. Point the integration file\u2019s `codemods` field at your codemods root, and author each one with `createCodemod` (transforms source files) or `createConfigCodemod` (rewrites the consumer\u2019s `astryx.config`).',+ text: 'Ship codemods so `astryx upgrade` can migrate consumers across breaking changes in your package. Point the integration file\u2019s `codemods` field at your codemods root, and author each one as a plain object stamped with `type: \'code\'` (transforms source files) or `type: \'config\'` (rewrites the consumer\u2019s `astryx.config`).',},{type: 'code',lang: 'typescript',- code: "// codemods/v2-rename-prop.ts\nimport {createCodemod} from '@astryxdesign/cli/codemod';\n\nexport default createCodemod({\n // version, description, transform, ...\n});",+ code: "// codemods/v2-rename-prop.ts\nexport default {\n type: 'code',\n // title, description, transform, ...\n};",},{type: 'prose',- text: 'The codemod helpers live in `@astryxdesign/cli/codemod`, not `@astryxdesign/core/authoring` like the doc, integration, and template helpers. Consumers can also run their own post-codemod hooks, such as a reinstall or rebuild, via `hooks.postCodemod` in their `astryx.config`.',+ text: 'All authoring types are exported from `@astryxdesign/cli/authoring`: `ComponentDoc`, `HookDoc`, and `ReferenceDoc` for docs, `TemplateDoc` for templates, and `AstryxConfig`, `AstryxIntegration`, and `AstryxCodemod` for the project files. Consumers can also run their own post-codemod hooks, such as a reinstall or rebuild, via `hooks.postCodemod` in their `astryx.config`.',},],},@@ -134,7 +134,7 @@ export const docs = {content: [{type: 'prose',- text: 'Every CLI command loads the consumer\u2019s `astryx.config`, resolves each listed integration\u2019s manifest from `node_modules`, and discovers its contributions. Everything is validated against one strict schema at the load boundary. The `create*` helpers do not validate. They are identity functions whose value is their TypeScript surface, so validation happens when the CLI loads the file, not when you author it.',+ text: 'Every CLI command loads the consumer\u2019s `astryx.config`, resolves each listed integration\u2019s manifest from `node_modules`, and discovers its contributions. Everything is validated against one strict schema at the load boundary: the CLI parses each file through `@astryxdesign/cli/authoring` when it loads it, not when you author it. There are no factories; you write a plain object and stamp its `type`.',},{type: 'prose',diff --git a/packages/cli/docs/color.doc.mjs b/packages/cli/assets/docs/color.doc.mjssimilarity index 97%rename from packages/cli/docs/color.doc.mjsrename to packages/cli/assets/docs/color.doc.mjsindex 9b5facbfdf..0810137713 100644--- a/packages/cli/docs/color.doc.mjs+++ b/packages/cli/assets/docs/color.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../core/src/docs-types').ReferenceDoc} */+/** @type {import('@astryxdesign/cli/authoring').ReferenceDoc} */export const docs = {name: 'color',diff --git a/packages/cli/docs/elevation.doc.mjs b/packages/cli/assets/docs/elevation.doc.mjssimilarity index 99%rename from packages/cli/docs/elevation.doc.mjsrename to packages/cli/assets/docs/elevation.doc.mjsindex 783bf4f753..3c66df8f4e 100644--- a/packages/cli/docs/elevation.doc.mjs+++ b/packages/cli/assets/docs/elevation.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../core/src/docs-types').ReferenceDoc} */+/** @type {import('@astryxdesign/cli/authoring').ReferenceDoc} */export const docs = {name: 'elevation',diff --git a/packages/cli/docs/getting-started.doc.mjs b/packages/cli/assets/docs/getting-started.doc.mjssimilarity index 99%rename from packages/cli/docs/getting-started.doc.mjsrename to packages/cli/assets/docs/getting-started.doc.mjsindex a2a494a5a6..beebf385a7 100644--- a/packages/cli/docs/getting-started.doc.mjs+++ b/packages/cli/assets/docs/getting-started.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../core/src/docs-types').ReferenceDoc} */+/** @type {import('@astryxdesign/cli/authoring').ReferenceDoc} */export const docs = {name: 'getting-started',diff --git a/packages/cli/docs/icons.doc.mjs b/packages/cli/assets/docs/icons.doc.mjssimilarity index 98%rename from packages/cli/docs/icons.doc.mjsrename to packages/cli/assets/docs/icons.doc.mjsindex e2d8d2504d..59ff8e725d 100644--- a/packages/cli/docs/icons.doc.mjs+++ b/packages/cli/assets/docs/icons.doc.mjs@@ -4,7 +4,7 @@* @file Icons reference doc: semantic icon names available in Astryx*/-/** @type {import('../../core/src/docs-types').ReferenceDoc} */+/** @type {import('@astryxdesign/cli/authoring').ReferenceDoc} */export const docs = {name: 'icons',title: 'Icons',diff --git a/packages/cli/docs/illustrations.doc.mjs b/packages/cli/assets/docs/illustrations.doc.mjssimilarity index 97%rename from packages/cli/docs/illustrations.doc.mjsrename to packages/cli/assets/docs/illustrations.doc.mjsindex 4f55798112..f246a8ea4e 100644--- a/packages/cli/docs/illustrations.doc.mjs+++ b/packages/cli/assets/docs/illustrations.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../core/src/docs-types').ReferenceDoc} */+/** @type {import('@astryxdesign/cli/authoring').ReferenceDoc} */export const docs = {name: 'illustrations',title: 'Illustrations',diff --git a/packages/cli/docs/internationalization.doc.mjs b/packages/cli/assets/docs/internationalization.doc.mjssimilarity index 99%rename from packages/cli/docs/internationalization.doc.mjsrename to packages/cli/assets/docs/internationalization.doc.mjsindex dd8cc28661..139bcb871d 100644--- a/packages/cli/docs/internationalization.doc.mjs+++ b/packages/cli/assets/docs/internationalization.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../core/src/docs-types').ReferenceDoc} */+/** @type {import('@astryxdesign/cli/authoring').ReferenceDoc} */export const docs = {name: 'internationalization',diff --git a/packages/cli/docs/layout.doc.dense.mjs b/packages/cli/assets/docs/layout.doc.dense.mjssimilarity index 97%rename from packages/cli/docs/layout.doc.dense.mjsrename to packages/cli/assets/docs/layout.doc.dense.mjsindex dd4c41e4ea..97bacc4d6b 100644--- a/packages/cli/docs/layout.doc.dense.mjs+++ b/packages/cli/assets/docs/layout.doc.dense.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../core/src/docs-types').ReferenceTranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ReferenceTranslationDoc} */export const docsDense = {description:diff --git a/packages/cli/docs/layout.doc.mjs b/packages/cli/assets/docs/layout.doc.mjssimilarity index 99%rename from packages/cli/docs/layout.doc.mjsrename to packages/cli/assets/docs/layout.doc.mjsindex ef6c03f5b9..985a6cf971 100644--- a/packages/cli/docs/layout.doc.mjs+++ b/packages/cli/assets/docs/layout.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../core/src/docs-types').ReferenceDoc} */+/** @type {import('@astryxdesign/cli/authoring').ReferenceDoc} */export const docs = {name: 'layout',diff --git a/packages/cli/docs/migration.doc.mjs b/packages/cli/assets/docs/migration.doc.mjssimilarity index 99%rename from packages/cli/docs/migration.doc.mjsrename to packages/cli/assets/docs/migration.doc.mjsindex dc8cfb3837..2f3d7a97a8 100644--- a/packages/cli/docs/migration.doc.mjs+++ b/packages/cli/assets/docs/migration.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../core/src/docs-types').ReferenceDoc} */+/** @type {import('@astryxdesign/cli/authoring').ReferenceDoc} */export const docs = {name: 'migration',diff --git a/packages/cli/docs/motion.doc.mjs b/packages/cli/assets/docs/motion.doc.mjssimilarity index 98%rename from packages/cli/docs/motion.doc.mjsrename to packages/cli/assets/docs/motion.doc.mjsindex b9bb050ceb..ab2cb7a9b3 100644--- a/packages/cli/docs/motion.doc.mjs+++ b/packages/cli/assets/docs/motion.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../core/src/docs-types').ReferenceDoc} */+/** @type {import('@astryxdesign/cli/authoring').ReferenceDoc} */export const docs = {name: 'motion',diff --git a/packages/cli/docs/principles.doc.dense.mjs b/packages/cli/assets/docs/principles.doc.dense.mjssimilarity index 95%rename from packages/cli/docs/principles.doc.dense.mjsrename to packages/cli/assets/docs/principles.doc.dense.mjsindex 8f93fce3b9..bf698c76b1 100644--- a/packages/cli/docs/principles.doc.dense.mjs+++ b/packages/cli/assets/docs/principles.doc.dense.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../core/src/docs-types').ReferenceTranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ReferenceTranslationDoc} */export const docsDense = {description: 'core design principles + rules for the design system',diff --git a/packages/cli/docs/principles.doc.mjs b/packages/cli/assets/docs/principles.doc.mjssimilarity index 98%rename from packages/cli/docs/principles.doc.mjsrename to packages/cli/assets/docs/principles.doc.mjsindex 7893eccc29..41faef50af 100644--- a/packages/cli/docs/principles.doc.mjs+++ b/packages/cli/assets/docs/principles.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../core/src/docs-types').ReferenceDoc} */+/** @type {import('@astryxdesign/cli/authoring').ReferenceDoc} */export const docs = {name: 'principles',diff --git a/packages/cli/docs/principles.doc.zh.mjs b/packages/cli/assets/docs/principles.doc.zh.mjssimilarity index 96%rename from packages/cli/docs/principles.doc.zh.mjsrename to packages/cli/assets/docs/principles.doc.zh.mjsindex 40d1b42637..6b2a1967ff 100644--- a/packages/cli/docs/principles.doc.zh.mjs+++ b/packages/cli/assets/docs/principles.doc.zh.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../core/src/docs-types').ReferenceTranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ReferenceTranslationDoc} */export const docsZh = {description: 'XDS 核心设计原则和规则。',diff --git a/packages/cli/docs/shape.doc.mjs b/packages/cli/assets/docs/shape.doc.mjssimilarity index 97%rename from packages/cli/docs/shape.doc.mjsrename to packages/cli/assets/docs/shape.doc.mjsindex 9b30b584c9..7b62db82aa 100644--- a/packages/cli/docs/shape.doc.mjs+++ b/packages/cli/assets/docs/shape.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../core/src/docs-types').ReferenceDoc} */+/** @type {import('@astryxdesign/cli/authoring').ReferenceDoc} */export const docs = {name: 'shape',diff --git a/packages/cli/docs/spacing.doc.mjs b/packages/cli/assets/docs/spacing.doc.mjssimilarity index 97%rename from packages/cli/docs/spacing.doc.mjsrename to packages/cli/assets/docs/spacing.doc.mjsindex 8394e55776..1559c3af4c 100644--- a/packages/cli/docs/spacing.doc.mjs+++ b/packages/cli/assets/docs/spacing.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../core/src/docs-types').ReferenceDoc} */+/** @type {import('@astryxdesign/cli/authoring').ReferenceDoc} */export const docs = {name: 'spacing',diff --git a/packages/cli/docs/styling-libraries.doc.mjs b/packages/cli/assets/docs/styling-libraries.doc.mjssimilarity index 99%rename from packages/cli/docs/styling-libraries.doc.mjsrename to packages/cli/assets/docs/styling-libraries.doc.mjsindex 453109b53d..b97c5adae5 100644--- a/packages/cli/docs/styling-libraries.doc.mjs+++ b/packages/cli/assets/docs/styling-libraries.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../core/src/docs-types').ReferenceDoc} */+/** @type {import('@astryxdesign/cli/authoring').ReferenceDoc} */export const docs = {name: 'styling-libraries',diff --git a/packages/cli/docs/styling.doc.mjs b/packages/cli/assets/docs/styling.doc.mjssimilarity index 99%rename from packages/cli/docs/styling.doc.mjsrename to packages/cli/assets/docs/styling.doc.mjsindex 924fff47d9..2281541349 100644--- a/packages/cli/docs/styling.doc.mjs+++ b/packages/cli/assets/docs/styling.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../core/src/docs-types').ReferenceDoc} */+/** @type {import('@astryxdesign/cli/authoring').ReferenceDoc} */export const docs = {name: 'styling',diff --git a/packages/cli/docs/theme.doc.dense.mjs b/packages/cli/assets/docs/theme.doc.dense.mjssimilarity index 97%rename from packages/cli/docs/theme.doc.dense.mjsrename to packages/cli/assets/docs/theme.doc.dense.mjsindex 05e0d41031..f90cc68d52 100644--- a/packages/cli/docs/theme.doc.dense.mjs+++ b/packages/cli/assets/docs/theme.doc.dense.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../core/src/docs-types').ReferenceTranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ReferenceTranslationDoc} */export const docsDense = {description: 'Theme provider, custom themes, light/dark, component overrides',diff --git a/packages/cli/docs/theme.doc.mjs b/packages/cli/assets/docs/theme.doc.mjssimilarity index 99%rename from packages/cli/docs/theme.doc.mjsrename to packages/cli/assets/docs/theme.doc.mjsindex a14dab4e4a..0a4dd4a2b1 100644--- a/packages/cli/docs/theme.doc.mjs+++ b/packages/cli/assets/docs/theme.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../core/src/docs-types').ReferenceDoc} */+/** @type {import('@astryxdesign/cli/authoring').ReferenceDoc} */export const docs = {name: 'theme',diff --git a/packages/cli/docs/theme.doc.zh.mjs b/packages/cli/assets/docs/theme.doc.zh.mjssimilarity index 96%rename from packages/cli/docs/theme.doc.zh.mjsrename to packages/cli/assets/docs/theme.doc.zh.mjsindex 054e445b5e..8d99d76252 100644--- a/packages/cli/docs/theme.doc.zh.mjs+++ b/packages/cli/assets/docs/theme.doc.zh.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../core/src/docs-types').ReferenceTranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ReferenceTranslationDoc} */export const docsZh = {description: 'Theme 提供者、自定义主题、亮/暗模式和组件样式覆盖。',diff --git a/packages/cli/docs/tokens.doc.dense.mjs b/packages/cli/assets/docs/tokens.doc.dense.mjssimilarity index 91%rename from packages/cli/docs/tokens.doc.dense.mjsrename to packages/cli/assets/docs/tokens.doc.dense.mjsindex 319f06a088..ae5d04eb13 100644--- a/packages/cli/docs/tokens.doc.dense.mjs+++ b/packages/cli/assets/docs/tokens.doc.dense.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../core/src/docs-types').ReferenceTranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ReferenceTranslationDoc} */export const docsDense = {description: 'spacing/color/radius/type/shadow token ref',diff --git a/packages/cli/docs/tokens.doc.mjs b/packages/cli/assets/docs/tokens.doc.mjssimilarity index 99%rename from packages/cli/docs/tokens.doc.mjsrename to packages/cli/assets/docs/tokens.doc.mjsindex 19f2000b11..a1b5b9989d 100644--- a/packages/cli/docs/tokens.doc.mjs+++ b/packages/cli/assets/docs/tokens.doc.mjs@@ -5,7 +5,7 @@// Run: node scripts/generate-token-docs.mjs// Total: 184 tokens across 12 categories.-/** @type {import('../../core/src/docs-types').ReferenceDoc} */+/** @type {import('@astryxdesign/cli/authoring').ReferenceDoc} */export const docs = {"name": "tokens",diff --git a/packages/cli/docs/tokens.doc.zh.mjs b/packages/cli/assets/docs/tokens.doc.zh.mjssimilarity index 92%rename from packages/cli/docs/tokens.doc.zh.mjsrename to packages/cli/assets/docs/tokens.doc.zh.mjsindex 8684668050..bbb8e7788b 100644--- a/packages/cli/docs/tokens.doc.zh.mjs+++ b/packages/cli/assets/docs/tokens.doc.zh.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../core/src/docs-types').ReferenceTranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ReferenceTranslationDoc} */export const docsZh = {description: '间距、颜色、圆角、排版和阴影设计令牌参考。',diff --git a/packages/cli/docs/typography.doc.mjs b/packages/cli/assets/docs/typography.doc.mjssimilarity index 99%rename from packages/cli/docs/typography.doc.mjsrename to packages/cli/assets/docs/typography.doc.mjsindex e1ce9ed137..4701741424 100644--- a/packages/cli/docs/typography.doc.mjs+++ b/packages/cli/assets/docs/typography.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../core/src/docs-types').ReferenceDoc} */+/** @type {import('@astryxdesign/cli/authoring').ReferenceDoc} */export const docs = {name: 'typography',diff --git a/packages/cli/docs/working-with-ai.doc.mjs b/packages/cli/assets/docs/working-with-ai.doc.mjssimilarity index 99%rename from packages/cli/docs/working-with-ai.doc.mjsrename to packages/cli/assets/docs/working-with-ai.doc.mjsindex e43042bfbc..faab6800d3 100644--- a/packages/cli/docs/working-with-ai.doc.mjs+++ b/packages/cli/assets/docs/working-with-ai.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../core/src/docs-types').ReferenceDoc} */+/** @type {import('@astryxdesign/cli/authoring').ReferenceDoc} */export const docs = {name: 'working-with-ai',diff --git a/packages/cli/templates/blocks/components/AlertDialog/AlertDialogAsyncAction.doc.mjs b/packages/cli/assets/templates/blocks/components/AlertDialog/AlertDialogAsyncAction.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/AlertDialog/AlertDialogAsyncAction.doc.mjsrename to packages/cli/assets/templates/blocks/components/AlertDialog/AlertDialogAsyncAction.doc.mjsindex 77c9322dc2..20e5239a41 100644--- a/packages/cli/templates/blocks/components/AlertDialog/AlertDialogAsyncAction.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/AlertDialog/AlertDialogAsyncAction.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'AlertDialog',diff --git a/packages/cli/templates/blocks/components/AlertDialog/AlertDialogAsyncAction.tsx b/packages/cli/assets/templates/blocks/components/AlertDialog/AlertDialogAsyncAction.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/AlertDialog/AlertDialogAsyncAction.tsxrename to packages/cli/assets/templates/blocks/components/AlertDialog/AlertDialogAsyncAction.tsxdiff --git a/packages/cli/templates/blocks/components/AlertDialog/AlertDialogDeleteConfirmation.doc.mjs b/packages/cli/assets/templates/blocks/components/AlertDialog/AlertDialogDeleteConfirmation.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/AlertDialog/AlertDialogDeleteConfirmation.doc.mjsrename to packages/cli/assets/templates/blocks/components/AlertDialog/AlertDialogDeleteConfirmation.doc.mjsindex 61fbade592..7710204dae 100644--- a/packages/cli/templates/blocks/components/AlertDialog/AlertDialogDeleteConfirmation.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/AlertDialog/AlertDialogDeleteConfirmation.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'AlertDialog',diff --git a/packages/cli/templates/blocks/components/AlertDialog/AlertDialogDeleteConfirmation.tsx b/packages/cli/assets/templates/blocks/components/AlertDialog/AlertDialogDeleteConfirmation.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/AlertDialog/AlertDialogDeleteConfirmation.tsxrename to packages/cli/assets/templates/blocks/components/AlertDialog/AlertDialogDeleteConfirmation.tsxdiff --git a/packages/cli/templates/blocks/components/AppShell/AppShellContentOnly.doc.mjs b/packages/cli/assets/templates/blocks/components/AppShell/AppShellContentOnly.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/AppShell/AppShellContentOnly.doc.mjsrename to packages/cli/assets/templates/blocks/components/AppShell/AppShellContentOnly.doc.mjsindex a08185e1f0..18168f85b1 100644--- a/packages/cli/templates/blocks/components/AppShell/AppShellContentOnly.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/AppShell/AppShellContentOnly.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'AppShell',diff --git a/packages/cli/templates/blocks/components/AppShell/AppShellContentOnly.tsx b/packages/cli/assets/templates/blocks/components/AppShell/AppShellContentOnly.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/AppShell/AppShellContentOnly.tsxrename to packages/cli/assets/templates/blocks/components/AppShell/AppShellContentOnly.tsxdiff --git a/packages/cli/templates/blocks/components/AppShell/AppShellMobileHookUsage.doc.mjs b/packages/cli/assets/templates/blocks/components/AppShell/AppShellMobileHookUsage.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/AppShell/AppShellMobileHookUsage.doc.mjsrename to packages/cli/assets/templates/blocks/components/AppShell/AppShellMobileHookUsage.doc.mjsindex f28a5be812..46fa59b87a 100644--- a/packages/cli/templates/blocks/components/AppShell/AppShellMobileHookUsage.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/AppShell/AppShellMobileHookUsage.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'useAppShellMobile',diff --git a/packages/cli/templates/blocks/components/AppShell/AppShellMobileHookUsage.tsx b/packages/cli/assets/templates/blocks/components/AppShell/AppShellMobileHookUsage.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/AppShell/AppShellMobileHookUsage.tsxrename to packages/cli/assets/templates/blocks/components/AppShell/AppShellMobileHookUsage.tsxdiff --git a/packages/cli/templates/blocks/components/AppShell/AppShellShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/AppShell/AppShellShowcase.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/AppShell/AppShellShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/AppShell/AppShellShowcase.doc.mjsindex 3d7c817595..a602c66287 100644--- a/packages/cli/templates/blocks/components/AppShell/AppShellShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/AppShell/AppShellShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'AppShell',diff --git a/packages/cli/templates/blocks/components/AppShell/AppShellShowcase.tsx b/packages/cli/assets/templates/blocks/components/AppShell/AppShellShowcase.tsxsimilarity index 87%rename from packages/cli/templates/blocks/components/AppShell/AppShellShowcase.tsxrename to packages/cli/assets/templates/blocks/components/AppShell/AppShellShowcase.tsxindex 530ddc037b..4ab6432295 100644--- a/packages/cli/templates/blocks/components/AppShell/AppShellShowcase.tsx+++ b/packages/cli/assets/templates/blocks/components/AppShell/AppShellShowcase.tsx@@ -30,9 +30,7 @@ export default function AppShellShowcase() {header={<SideNavHeadingicon={- <NavIcon- icon={<CubeIcon style={{width: 16, height: 16}} />}- />+ <NavIcon icon={<CubeIcon style={{width: 16, height: 16}} />} />}heading="App Shell"headingHref="#"@@ -41,11 +39,7 @@ export default function AppShellShowcase() {<SideNavSection title="Main" isHeaderHidden><SideNavItem label="Home" icon={HomeIcon} isSelected href="#" /><SideNavItem label="Reports" icon={ChartBarIcon} href="#" />- <SideNavItem- label="Documents"- icon={DocumentTextIcon}- href="#"- />+ <SideNavItem label="Documents" icon={DocumentTextIcon} href="#" /><SideNavItem label="Team" icon={UsersIcon} href="#" /></SideNavSection></SideNav>diff --git a/packages/cli/templates/blocks/components/AppShell/AppShellSideNavOnly.doc.mjs b/packages/cli/assets/templates/blocks/components/AppShell/AppShellSideNavOnly.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/AppShell/AppShellSideNavOnly.doc.mjsrename to packages/cli/assets/templates/blocks/components/AppShell/AppShellSideNavOnly.doc.mjsindex 78e654fb82..87540c10d2 100644--- a/packages/cli/templates/blocks/components/AppShell/AppShellSideNavOnly.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/AppShell/AppShellSideNavOnly.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'AppShell',diff --git a/packages/cli/templates/blocks/components/AppShell/AppShellSideNavOnly.tsx b/packages/cli/assets/templates/blocks/components/AppShell/AppShellSideNavOnly.tsxsimilarity index 94%rename from packages/cli/templates/blocks/components/AppShell/AppShellSideNavOnly.tsxrename to packages/cli/assets/templates/blocks/components/AppShell/AppShellSideNavOnly.tsxindex cb0bb43020..261aaab533 100644--- a/packages/cli/templates/blocks/components/AppShell/AppShellSideNavOnly.tsx+++ b/packages/cli/assets/templates/blocks/components/AppShell/AppShellSideNavOnly.tsx@@ -31,9 +31,7 @@ export default function AppShellSideNavOnly() {header={<SideNavHeadingicon={- <NavIcon- icon={<CubeIcon style={{width: 16, height: 16}} />}- />+ <NavIcon icon={<CubeIcon style={{width: 16, height: 16}} />} />}heading="App Shell"headingHref="#"diff --git a/packages/cli/templates/blocks/components/AppShell/AppShellTopNavOnly.doc.mjs b/packages/cli/assets/templates/blocks/components/AppShell/AppShellTopNavOnly.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/AppShell/AppShellTopNavOnly.doc.mjsrename to packages/cli/assets/templates/blocks/components/AppShell/AppShellTopNavOnly.doc.mjsindex 11e4ee5a05..2d810dd2f7 100644--- a/packages/cli/templates/blocks/components/AppShell/AppShellTopNavOnly.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/AppShell/AppShellTopNavOnly.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'AppShell',diff --git a/packages/cli/templates/blocks/components/AppShell/AppShellTopNavOnly.tsx b/packages/cli/assets/templates/blocks/components/AppShell/AppShellTopNavOnly.tsxsimilarity index 92%rename from packages/cli/templates/blocks/components/AppShell/AppShellTopNavOnly.tsxrename to packages/cli/assets/templates/blocks/components/AppShell/AppShellTopNavOnly.tsxindex 402dc1075f..32c258dd19 100644--- a/packages/cli/templates/blocks/components/AppShell/AppShellTopNavOnly.tsx+++ b/packages/cli/assets/templates/blocks/components/AppShell/AppShellTopNavOnly.tsx@@ -21,9 +21,7 @@ export default function AppShellTopNavOnly() {<TopNavHeadingheading="App Shell"logo={- <NavIcon- icon={<CubeIcon style={{width: 16, height: 16}} />}- />+ <NavIcon icon={<CubeIcon style={{width: 16, height: 16}} />} />}/>}diff --git a/packages/cli/templates/blocks/components/AppShell/AppShellTopNavWithSideNav.doc.mjs b/packages/cli/assets/templates/blocks/components/AppShell/AppShellTopNavWithSideNav.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/AppShell/AppShellTopNavWithSideNav.doc.mjsrename to packages/cli/assets/templates/blocks/components/AppShell/AppShellTopNavWithSideNav.doc.mjsindex 73be6835f1..2df4dd3bae 100644--- a/packages/cli/templates/blocks/components/AppShell/AppShellTopNavWithSideNav.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/AppShell/AppShellTopNavWithSideNav.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'AppShell',diff --git a/packages/cli/templates/blocks/components/AppShell/AppShellTopNavWithSideNav.tsx b/packages/cli/assets/templates/blocks/components/AppShell/AppShellTopNavWithSideNav.tsxsimilarity index 95%rename from packages/cli/templates/blocks/components/AppShell/AppShellTopNavWithSideNav.tsxrename to packages/cli/assets/templates/blocks/components/AppShell/AppShellTopNavWithSideNav.tsxindex b7b29a3d29..7b95410061 100644--- a/packages/cli/templates/blocks/components/AppShell/AppShellTopNavWithSideNav.tsx+++ b/packages/cli/assets/templates/blocks/components/AppShell/AppShellTopNavWithSideNav.tsx@@ -29,9 +29,7 @@ export default function AppShellTopNavWithSideNav() {<TopNavHeadingheading="App Shell"logo={- <NavIcon- icon={<CubeIcon style={{width: 16, height: 16}} />}- />+ <NavIcon icon={<CubeIcon style={{width: 16, height: 16}} />} />}/>}diff --git a/packages/cli/templates/blocks/components/AppShell/AppShellWithBanner.doc.mjs b/packages/cli/assets/templates/blocks/components/AppShell/AppShellWithBanner.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/AppShell/AppShellWithBanner.doc.mjsrename to packages/cli/assets/templates/blocks/components/AppShell/AppShellWithBanner.doc.mjsindex e726785db9..b6f0109f1e 100644--- a/packages/cli/templates/blocks/components/AppShell/AppShellWithBanner.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/AppShell/AppShellWithBanner.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'AppShell',diff --git a/packages/cli/templates/blocks/components/AppShell/AppShellWithBanner.tsx b/packages/cli/assets/templates/blocks/components/AppShell/AppShellWithBanner.tsxsimilarity index 95%rename from packages/cli/templates/blocks/components/AppShell/AppShellWithBanner.tsxrename to packages/cli/assets/templates/blocks/components/AppShell/AppShellWithBanner.tsxindex c66dea91aa..fb84229580 100644--- a/packages/cli/templates/blocks/components/AppShell/AppShellWithBanner.tsx+++ b/packages/cli/assets/templates/blocks/components/AppShell/AppShellWithBanner.tsx@@ -30,9 +30,7 @@ export default function AppShellWithBanner() {<TopNavHeadingheading="App Shell"logo={- <NavIcon- icon={<CubeIcon style={{width: 16, height: 16}} />}- />+ <NavIcon icon={<CubeIcon style={{width: 16, height: 16}} />} />}/>}diff --git a/packages/cli/templates/blocks/components/AspectRatio/AspectRatioCircleImage.doc.mjs b/packages/cli/assets/templates/blocks/components/AspectRatio/AspectRatioCircleImage.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/AspectRatio/AspectRatioCircleImage.doc.mjsrename to packages/cli/assets/templates/blocks/components/AspectRatio/AspectRatioCircleImage.doc.mjsindex 7e5aec73b1..0a95cdc38b 100644--- a/packages/cli/templates/blocks/components/AspectRatio/AspectRatioCircleImage.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/AspectRatio/AspectRatioCircleImage.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'AspectRatio',diff --git a/packages/cli/templates/blocks/components/AspectRatio/AspectRatioCircleImage.tsx b/packages/cli/assets/templates/blocks/components/AspectRatio/AspectRatioCircleImage.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/AspectRatio/AspectRatioCircleImage.tsxrename to packages/cli/assets/templates/blocks/components/AspectRatio/AspectRatioCircleImage.tsxdiff --git a/packages/cli/templates/blocks/components/AspectRatio/AspectRatioImageGallery.doc.mjs b/packages/cli/assets/templates/blocks/components/AspectRatio/AspectRatioImageGallery.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/AspectRatio/AspectRatioImageGallery.doc.mjsrename to packages/cli/assets/templates/blocks/components/AspectRatio/AspectRatioImageGallery.doc.mjsindex 7068f59ff4..96d4d84cf0 100644--- a/packages/cli/templates/blocks/components/AspectRatio/AspectRatioImageGallery.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/AspectRatio/AspectRatioImageGallery.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'AspectRatio',diff --git a/packages/cli/templates/blocks/components/AspectRatio/AspectRatioImageGallery.tsx b/packages/cli/assets/templates/blocks/components/AspectRatio/AspectRatioImageGallery.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/AspectRatio/AspectRatioImageGallery.tsxrename to packages/cli/assets/templates/blocks/components/AspectRatio/AspectRatioImageGallery.tsxdiff --git a/packages/cli/templates/blocks/components/AspectRatio/AspectRatioShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/AspectRatio/AspectRatioShowcase.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/AspectRatio/AspectRatioShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/AspectRatio/AspectRatioShowcase.doc.mjsindex dc4b4235de..43c410b8a3 100644--- a/packages/cli/templates/blocks/components/AspectRatio/AspectRatioShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/AspectRatio/AspectRatioShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'AspectRatio',diff --git a/packages/cli/templates/blocks/components/AspectRatio/AspectRatioShowcase.tsx b/packages/cli/assets/templates/blocks/components/AspectRatio/AspectRatioShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/AspectRatio/AspectRatioShowcase.tsxrename to packages/cli/assets/templates/blocks/components/AspectRatio/AspectRatioShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/AspectRatio/AspectRatioSquareImage.doc.mjs b/packages/cli/assets/templates/blocks/components/AspectRatio/AspectRatioSquareImage.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/AspectRatio/AspectRatioSquareImage.doc.mjsrename to packages/cli/assets/templates/blocks/components/AspectRatio/AspectRatioSquareImage.doc.mjsindex 59a937463b..e97b094b7c 100644--- a/packages/cli/templates/blocks/components/AspectRatio/AspectRatioSquareImage.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/AspectRatio/AspectRatioSquareImage.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'AspectRatio',diff --git a/packages/cli/templates/blocks/components/AspectRatio/AspectRatioSquareImage.tsx b/packages/cli/assets/templates/blocks/components/AspectRatio/AspectRatioSquareImage.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/AspectRatio/AspectRatioSquareImage.tsxrename to packages/cli/assets/templates/blocks/components/AspectRatio/AspectRatioSquareImage.tsxdiff --git a/packages/cli/templates/blocks/components/AspectRatio/AspectRatioWidescreen.doc.mjs b/packages/cli/assets/templates/blocks/components/AspectRatio/AspectRatioWidescreen.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/AspectRatio/AspectRatioWidescreen.doc.mjsrename to packages/cli/assets/templates/blocks/components/AspectRatio/AspectRatioWidescreen.doc.mjsindex 6bbf23273e..3ea7733239 100644--- a/packages/cli/templates/blocks/components/AspectRatio/AspectRatioWidescreen.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/AspectRatio/AspectRatioWidescreen.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'AspectRatio',diff --git a/packages/cli/templates/blocks/components/AspectRatio/AspectRatioWidescreen.tsx b/packages/cli/assets/templates/blocks/components/AspectRatio/AspectRatioWidescreen.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/AspectRatio/AspectRatioWidescreen.tsxrename to packages/cli/assets/templates/blocks/components/AspectRatio/AspectRatioWidescreen.tsxdiff --git a/packages/cli/templates/blocks/components/AspectRatio/AspectRatioWithSkeleton.doc.mjs b/packages/cli/assets/templates/blocks/components/AspectRatio/AspectRatioWithSkeleton.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/AspectRatio/AspectRatioWithSkeleton.doc.mjsrename to packages/cli/assets/templates/blocks/components/AspectRatio/AspectRatioWithSkeleton.doc.mjsindex 54bc5025ca..d19685e399 100644--- a/packages/cli/templates/blocks/components/AspectRatio/AspectRatioWithSkeleton.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/AspectRatio/AspectRatioWithSkeleton.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'AspectRatio',diff --git a/packages/cli/templates/blocks/components/AspectRatio/AspectRatioWithSkeleton.tsx b/packages/cli/assets/templates/blocks/components/AspectRatio/AspectRatioWithSkeleton.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/AspectRatio/AspectRatioWithSkeleton.tsxrename to packages/cli/assets/templates/blocks/components/AspectRatio/AspectRatioWithSkeleton.tsxdiff --git a/packages/cli/templates/blocks/components/Avatar/AvatarFallbackChain.doc.mjs b/packages/cli/assets/templates/blocks/components/Avatar/AvatarFallbackChain.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/Avatar/AvatarFallbackChain.doc.mjsrename to packages/cli/assets/templates/blocks/components/Avatar/AvatarFallbackChain.doc.mjsindex d06c677c2a..16c6dedd68 100644--- a/packages/cli/templates/blocks/components/Avatar/AvatarFallbackChain.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Avatar/AvatarFallbackChain.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Avatar',diff --git a/packages/cli/templates/blocks/components/Avatar/AvatarFallbackChain.tsx b/packages/cli/assets/templates/blocks/components/Avatar/AvatarFallbackChain.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Avatar/AvatarFallbackChain.tsxrename to packages/cli/assets/templates/blocks/components/Avatar/AvatarFallbackChain.tsxdiff --git a/packages/cli/templates/blocks/components/Avatar/AvatarGroup.doc.mjs b/packages/cli/assets/templates/blocks/components/Avatar/AvatarGroup.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/Avatar/AvatarGroup.doc.mjsrename to packages/cli/assets/templates/blocks/components/Avatar/AvatarGroup.doc.mjsindex 3cf313b95a..c717f14271 100644--- a/packages/cli/templates/blocks/components/Avatar/AvatarGroup.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Avatar/AvatarGroup.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'AvatarGroup',diff --git a/packages/cli/templates/blocks/components/Avatar/AvatarGroup.tsx b/packages/cli/assets/templates/blocks/components/Avatar/AvatarGroup.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Avatar/AvatarGroup.tsxrename to packages/cli/assets/templates/blocks/components/Avatar/AvatarGroup.tsxdiff --git a/packages/cli/templates/blocks/components/Avatar/AvatarInitialsFallback.doc.mjs b/packages/cli/assets/templates/blocks/components/Avatar/AvatarInitialsFallback.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/Avatar/AvatarInitialsFallback.doc.mjsrename to packages/cli/assets/templates/blocks/components/Avatar/AvatarInitialsFallback.doc.mjsindex ff160ce740..95910e88b1 100644--- a/packages/cli/templates/blocks/components/Avatar/AvatarInitialsFallback.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Avatar/AvatarInitialsFallback.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Avatar',diff --git a/packages/cli/templates/blocks/components/Avatar/AvatarInitialsFallback.tsx b/packages/cli/assets/templates/blocks/components/Avatar/AvatarInitialsFallback.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Avatar/AvatarInitialsFallback.tsxrename to packages/cli/assets/templates/blocks/components/Avatar/AvatarInitialsFallback.tsxdiff --git a/packages/cli/templates/blocks/components/Avatar/AvatarInteractive.doc.mjs b/packages/cli/assets/templates/blocks/components/Avatar/AvatarInteractive.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/Avatar/AvatarInteractive.doc.mjsrename to packages/cli/assets/templates/blocks/components/Avatar/AvatarInteractive.doc.mjsindex a385a69d60..a8de1e55ba 100644--- a/packages/cli/templates/blocks/components/Avatar/AvatarInteractive.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Avatar/AvatarInteractive.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Avatar',diff --git a/packages/cli/templates/blocks/components/Avatar/AvatarInteractive.tsx b/packages/cli/assets/templates/blocks/components/Avatar/AvatarInteractive.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Avatar/AvatarInteractive.tsxrename to packages/cli/assets/templates/blocks/components/Avatar/AvatarInteractive.tsxdiff --git a/packages/cli/templates/blocks/components/Avatar/AvatarShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Avatar/AvatarShowcase.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Avatar/AvatarShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Avatar/AvatarShowcase.doc.mjsindex 916abc1a85..b5db209301 100644--- a/packages/cli/templates/blocks/components/Avatar/AvatarShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Avatar/AvatarShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Avatar',diff --git a/packages/cli/templates/blocks/components/Avatar/AvatarShowcase.tsx b/packages/cli/assets/templates/blocks/components/Avatar/AvatarShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Avatar/AvatarShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Avatar/AvatarShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Avatar/AvatarTooltip.doc.mjs b/packages/cli/assets/templates/blocks/components/Avatar/AvatarTooltip.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Avatar/AvatarTooltip.doc.mjsrename to packages/cli/assets/templates/blocks/components/Avatar/AvatarTooltip.doc.mjsindex de2439945a..cd8660677e 100644--- a/packages/cli/templates/blocks/components/Avatar/AvatarTooltip.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Avatar/AvatarTooltip.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Avatar',diff --git a/packages/cli/templates/blocks/components/Avatar/AvatarTooltip.tsx b/packages/cli/assets/templates/blocks/components/Avatar/AvatarTooltip.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Avatar/AvatarTooltip.tsxrename to packages/cli/assets/templates/blocks/components/Avatar/AvatarTooltip.tsxdiff --git a/packages/cli/templates/blocks/components/Avatar/AvatarUserCard.doc.mjs b/packages/cli/assets/templates/blocks/components/Avatar/AvatarUserCard.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Avatar/AvatarUserCard.doc.mjsrename to packages/cli/assets/templates/blocks/components/Avatar/AvatarUserCard.doc.mjsindex 2d42475fd9..5649166cbf 100644--- a/packages/cli/templates/blocks/components/Avatar/AvatarUserCard.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Avatar/AvatarUserCard.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Avatar',diff --git a/packages/cli/templates/blocks/components/Avatar/AvatarUserCard.tsx b/packages/cli/assets/templates/blocks/components/Avatar/AvatarUserCard.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Avatar/AvatarUserCard.tsxrename to packages/cli/assets/templates/blocks/components/Avatar/AvatarUserCard.tsxdiff --git a/packages/cli/templates/blocks/components/Avatar/AvatarWithImage.doc.mjs b/packages/cli/assets/templates/blocks/components/Avatar/AvatarWithImage.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Avatar/AvatarWithImage.doc.mjsrename to packages/cli/assets/templates/blocks/components/Avatar/AvatarWithImage.doc.mjsindex e54ccf54aa..ada9643e27 100644--- a/packages/cli/templates/blocks/components/Avatar/AvatarWithImage.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Avatar/AvatarWithImage.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Avatar',diff --git a/packages/cli/templates/blocks/components/Avatar/AvatarWithImage.tsx b/packages/cli/assets/templates/blocks/components/Avatar/AvatarWithImage.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Avatar/AvatarWithImage.tsxrename to packages/cli/assets/templates/blocks/components/Avatar/AvatarWithImage.tsxdiff --git a/packages/cli/templates/blocks/components/Avatar/AvatarWithStatus.doc.mjs b/packages/cli/assets/templates/blocks/components/Avatar/AvatarWithStatus.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Avatar/AvatarWithStatus.doc.mjsrename to packages/cli/assets/templates/blocks/components/Avatar/AvatarWithStatus.doc.mjsindex 6f18ee124b..2352f884e5 100644--- a/packages/cli/templates/blocks/components/Avatar/AvatarWithStatus.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Avatar/AvatarWithStatus.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Avatar',diff --git a/packages/cli/templates/blocks/components/Avatar/AvatarWithStatus.tsx b/packages/cli/assets/templates/blocks/components/Avatar/AvatarWithStatus.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Avatar/AvatarWithStatus.tsxrename to packages/cli/assets/templates/blocks/components/Avatar/AvatarWithStatus.tsxdiff --git a/packages/cli/templates/blocks/components/AvatarGroup/AvatarGroupShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/AvatarGroup/AvatarGroupShowcase.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/AvatarGroup/AvatarGroupShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/AvatarGroup/AvatarGroupShowcase.doc.mjsindex 813f0cc424..fb29d484d8 100644--- a/packages/cli/templates/blocks/components/AvatarGroup/AvatarGroupShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/AvatarGroup/AvatarGroupShowcase.doc.mjs@@ -1,5 +1,5 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'AvatarGroup',diff --git a/packages/cli/templates/blocks/components/AvatarGroup/AvatarGroupShowcase.tsx b/packages/cli/assets/templates/blocks/components/AvatarGroup/AvatarGroupShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/AvatarGroup/AvatarGroupShowcase.tsxrename to packages/cli/assets/templates/blocks/components/AvatarGroup/AvatarGroupShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowCustomText.doc.mjs b/packages/cli/assets/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowCustomText.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowCustomText.doc.mjsrename to packages/cli/assets/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowCustomText.doc.mjsindex 4256747da4..2abffc550e 100644--- a/packages/cli/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowCustomText.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowCustomText.doc.mjs@@ -1,5 +1,5 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'AvatarGroupOverflow',diff --git a/packages/cli/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowCustomText.tsx b/packages/cli/assets/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowCustomText.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowCustomText.tsxrename to packages/cli/assets/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowCustomText.tsxdiff --git a/packages/cli/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowDefault.doc.mjs b/packages/cli/assets/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowDefault.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowDefault.doc.mjsrename to packages/cli/assets/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowDefault.doc.mjsindex 79ed60eb0c..ebef59c083 100644--- a/packages/cli/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowDefault.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowDefault.doc.mjs@@ -1,5 +1,5 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'AvatarGroupOverflow',diff --git a/packages/cli/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowDefault.tsx b/packages/cli/assets/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowDefault.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowDefault.tsxrename to packages/cli/assets/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowDefault.tsxdiff --git a/packages/cli/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowShowcase.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowShowcase.doc.mjsindex 56e10e9aa1..8437a3a82a 100644--- a/packages/cli/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowShowcase.doc.mjs@@ -1,5 +1,5 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'AvatarGroupOverflow',diff --git a/packages/cli/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowShowcase.tsx b/packages/cli/assets/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowShowcase.tsxrename to packages/cli/assets/templates/blocks/components/AvatarGroupOverflow/AvatarGroupOverflowShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/AvatarStatusDot/AvatarStatusDotShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/AvatarStatusDot/AvatarStatusDotShowcase.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/AvatarStatusDot/AvatarStatusDotShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/AvatarStatusDot/AvatarStatusDotShowcase.doc.mjsindex c7b52c9a01..6ff3cbe2f8 100644--- a/packages/cli/templates/blocks/components/AvatarStatusDot/AvatarStatusDotShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/AvatarStatusDot/AvatarStatusDotShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'AvatarStatusDot',diff --git a/packages/cli/templates/blocks/components/AvatarStatusDot/AvatarStatusDotShowcase.tsx b/packages/cli/assets/templates/blocks/components/AvatarStatusDot/AvatarStatusDotShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/AvatarStatusDot/AvatarStatusDotShowcase.tsxrename to packages/cli/assets/templates/blocks/components/AvatarStatusDot/AvatarStatusDotShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/AvatarStatusDot/AvatarStatusDotVariants.doc.mjs b/packages/cli/assets/templates/blocks/components/AvatarStatusDot/AvatarStatusDotVariants.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/AvatarStatusDot/AvatarStatusDotVariants.doc.mjsrename to packages/cli/assets/templates/blocks/components/AvatarStatusDot/AvatarStatusDotVariants.doc.mjsindex 881c18c41c..75fc8ee7e7 100644--- a/packages/cli/templates/blocks/components/AvatarStatusDot/AvatarStatusDotVariants.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/AvatarStatusDot/AvatarStatusDotVariants.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'AvatarStatusDot',diff --git a/packages/cli/templates/blocks/components/AvatarStatusDot/AvatarStatusDotVariants.tsx b/packages/cli/assets/templates/blocks/components/AvatarStatusDot/AvatarStatusDotVariants.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/AvatarStatusDot/AvatarStatusDotVariants.tsxrename to packages/cli/assets/templates/blocks/components/AvatarStatusDot/AvatarStatusDotVariants.tsxdiff --git a/packages/cli/templates/blocks/components/Badge/BadgeCategoryTags.doc.mjs b/packages/cli/assets/templates/blocks/components/Badge/BadgeCategoryTags.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Badge/BadgeCategoryTags.doc.mjsrename to packages/cli/assets/templates/blocks/components/Badge/BadgeCategoryTags.doc.mjsindex b5fd0e0442..ee14e1e1c4 100644--- a/packages/cli/templates/blocks/components/Badge/BadgeCategoryTags.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Badge/BadgeCategoryTags.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Badge',diff --git a/packages/cli/templates/blocks/components/Badge/BadgeCategoryTags.tsx b/packages/cli/assets/templates/blocks/components/Badge/BadgeCategoryTags.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Badge/BadgeCategoryTags.tsxrename to packages/cli/assets/templates/blocks/components/Badge/BadgeCategoryTags.tsxdiff --git a/packages/cli/templates/blocks/components/Badge/BadgeCountBadges.doc.mjs b/packages/cli/assets/templates/blocks/components/Badge/BadgeCountBadges.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Badge/BadgeCountBadges.doc.mjsrename to packages/cli/assets/templates/blocks/components/Badge/BadgeCountBadges.doc.mjsindex f28bc86d7a..45ddf7afdd 100644--- a/packages/cli/templates/blocks/components/Badge/BadgeCountBadges.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Badge/BadgeCountBadges.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Badge',diff --git a/packages/cli/templates/blocks/components/Badge/BadgeCountBadges.tsx b/packages/cli/assets/templates/blocks/components/Badge/BadgeCountBadges.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Badge/BadgeCountBadges.tsxrename to packages/cli/assets/templates/blocks/components/Badge/BadgeCountBadges.tsxdiff --git a/packages/cli/templates/blocks/components/Badge/BadgeShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Badge/BadgeShowcase.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Badge/BadgeShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Badge/BadgeShowcase.doc.mjsindex 3396f2d966..d36749fbc6 100644--- a/packages/cli/templates/blocks/components/Badge/BadgeShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Badge/BadgeShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Badge',diff --git a/packages/cli/templates/blocks/components/Badge/BadgeShowcase.tsx b/packages/cli/assets/templates/blocks/components/Badge/BadgeShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Badge/BadgeShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Badge/BadgeShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Badge/BadgeStatusLabels.doc.mjs b/packages/cli/assets/templates/blocks/components/Badge/BadgeStatusLabels.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Badge/BadgeStatusLabels.doc.mjsrename to packages/cli/assets/templates/blocks/components/Badge/BadgeStatusLabels.doc.mjsindex 3a0892a25b..aa0b9eb4a2 100644--- a/packages/cli/templates/blocks/components/Badge/BadgeStatusLabels.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Badge/BadgeStatusLabels.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Badge',diff --git a/packages/cli/templates/blocks/components/Badge/BadgeStatusLabels.tsx b/packages/cli/assets/templates/blocks/components/Badge/BadgeStatusLabels.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Badge/BadgeStatusLabels.tsxrename to packages/cli/assets/templates/blocks/components/Badge/BadgeStatusLabels.tsxdiff --git a/packages/cli/templates/blocks/components/Banner/BannerCollapsibleContent.doc.mjs b/packages/cli/assets/templates/blocks/components/Banner/BannerCollapsibleContent.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Banner/BannerCollapsibleContent.doc.mjsrename to packages/cli/assets/templates/blocks/components/Banner/BannerCollapsibleContent.doc.mjsindex 715eaf9763..5d56406264 100644--- a/packages/cli/templates/blocks/components/Banner/BannerCollapsibleContent.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Banner/BannerCollapsibleContent.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Banner',diff --git a/packages/cli/templates/blocks/components/Banner/BannerCollapsibleContent.tsx b/packages/cli/assets/templates/blocks/components/Banner/BannerCollapsibleContent.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Banner/BannerCollapsibleContent.tsxrename to packages/cli/assets/templates/blocks/components/Banner/BannerCollapsibleContent.tsxdiff --git a/packages/cli/templates/blocks/components/Banner/BannerDismissable.doc.mjs b/packages/cli/assets/templates/blocks/components/Banner/BannerDismissable.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Banner/BannerDismissable.doc.mjsrename to packages/cli/assets/templates/blocks/components/Banner/BannerDismissable.doc.mjsindex 26a95c4282..3f3ad1e348 100644--- a/packages/cli/templates/blocks/components/Banner/BannerDismissable.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Banner/BannerDismissable.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Banner',diff --git a/packages/cli/templates/blocks/components/Banner/BannerDismissable.tsx b/packages/cli/assets/templates/blocks/components/Banner/BannerDismissable.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Banner/BannerDismissable.tsxrename to packages/cli/assets/templates/blocks/components/Banner/BannerDismissable.tsxdiff --git a/packages/cli/templates/blocks/components/Banner/BannerFloating.doc.mjs b/packages/cli/assets/templates/blocks/components/Banner/BannerFloating.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Banner/BannerFloating.doc.mjsrename to packages/cli/assets/templates/blocks/components/Banner/BannerFloating.doc.mjsindex 95ba83bfdf..de8a188a88 100644--- a/packages/cli/templates/blocks/components/Banner/BannerFloating.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Banner/BannerFloating.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Banner',diff --git a/packages/cli/templates/blocks/components/Banner/BannerFloating.tsx b/packages/cli/assets/templates/blocks/components/Banner/BannerFloating.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Banner/BannerFloating.tsxrename to packages/cli/assets/templates/blocks/components/Banner/BannerFloating.tsxdiff --git a/packages/cli/templates/blocks/components/Banner/BannerSectionVariant.doc.mjs b/packages/cli/assets/templates/blocks/components/Banner/BannerSectionVariant.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Banner/BannerSectionVariant.doc.mjsrename to packages/cli/assets/templates/blocks/components/Banner/BannerSectionVariant.doc.mjsindex 75ffcb02e9..f01537e49a 100644--- a/packages/cli/templates/blocks/components/Banner/BannerSectionVariant.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Banner/BannerSectionVariant.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Banner',diff --git a/packages/cli/templates/blocks/components/Banner/BannerSectionVariant.tsx b/packages/cli/assets/templates/blocks/components/Banner/BannerSectionVariant.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Banner/BannerSectionVariant.tsxrename to packages/cli/assets/templates/blocks/components/Banner/BannerSectionVariant.tsxdiff --git a/packages/cli/templates/blocks/components/Banner/BannerShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Banner/BannerShowcase.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Banner/BannerShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Banner/BannerShowcase.doc.mjsindex f4d11a2df1..a3824c26ad 100644--- a/packages/cli/templates/blocks/components/Banner/BannerShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Banner/BannerShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Banner',diff --git a/packages/cli/templates/blocks/components/Banner/BannerShowcase.tsx b/packages/cli/assets/templates/blocks/components/Banner/BannerShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Banner/BannerShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Banner/BannerShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Banner/BannerStatuses.doc.mjs b/packages/cli/assets/templates/blocks/components/Banner/BannerStatuses.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Banner/BannerStatuses.doc.mjsrename to packages/cli/assets/templates/blocks/components/Banner/BannerStatuses.doc.mjsindex 4f027270cd..de4889d900 100644--- a/packages/cli/templates/blocks/components/Banner/BannerStatuses.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Banner/BannerStatuses.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Banner',diff --git a/packages/cli/templates/blocks/components/Banner/BannerStatuses.tsx b/packages/cli/assets/templates/blocks/components/Banner/BannerStatuses.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Banner/BannerStatuses.tsxrename to packages/cli/assets/templates/blocks/components/Banner/BannerStatuses.tsxdiff --git a/packages/cli/templates/blocks/components/Banner/BannerWithActionButton.doc.mjs b/packages/cli/assets/templates/blocks/components/Banner/BannerWithActionButton.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Banner/BannerWithActionButton.doc.mjsrename to packages/cli/assets/templates/blocks/components/Banner/BannerWithActionButton.doc.mjsindex f78aa278a8..8d33f07566 100644--- a/packages/cli/templates/blocks/components/Banner/BannerWithActionButton.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Banner/BannerWithActionButton.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Banner',diff --git a/packages/cli/templates/blocks/components/Banner/BannerWithActionButton.tsx b/packages/cli/assets/templates/blocks/components/Banner/BannerWithActionButton.tsxsimilarity index 90%rename from packages/cli/templates/blocks/components/Banner/BannerWithActionButton.tsxrename to packages/cli/assets/templates/blocks/components/Banner/BannerWithActionButton.tsxindex 33f4956ea0..bf306e41d9 100644--- a/packages/cli/templates/blocks/components/Banner/BannerWithActionButton.tsx+++ b/packages/cli/assets/templates/blocks/components/Banner/BannerWithActionButton.tsx@@ -19,9 +19,7 @@ export default function BannerWithActionButton() {status="warning"title="API key expires soon"description="Generate a new key before December 1 to avoid service interruption."- endContent={- <Button label="Renew key" variant="secondary" size="sm" />- }+ endContent={<Button label="Renew key" variant="secondary" size="sm" />}/><Bannerstatus="error"diff --git a/packages/cli/templates/blocks/components/BaseTypeahead/BaseTypeaheadCustomSearch.doc.mjs b/packages/cli/assets/templates/blocks/components/BaseTypeahead/BaseTypeaheadCustomSearch.doc.mjssimilarity index 89%rename from packages/cli/templates/blocks/components/BaseTypeahead/BaseTypeaheadCustomSearch.doc.mjsrename to packages/cli/assets/templates/blocks/components/BaseTypeahead/BaseTypeaheadCustomSearch.doc.mjsindex 0770fbf2bd..38a2e1d1be 100644--- a/packages/cli/templates/blocks/components/BaseTypeahead/BaseTypeaheadCustomSearch.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/BaseTypeahead/BaseTypeaheadCustomSearch.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'BaseTypeahead',diff --git a/packages/cli/templates/blocks/components/BaseTypeahead/BaseTypeaheadCustomSearch.tsx b/packages/cli/assets/templates/blocks/components/BaseTypeahead/BaseTypeaheadCustomSearch.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/BaseTypeahead/BaseTypeaheadCustomSearch.tsxrename to packages/cli/assets/templates/blocks/components/BaseTypeahead/BaseTypeaheadCustomSearch.tsxdiff --git a/packages/cli/templates/blocks/components/Blockquote/BlockquoteShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Blockquote/BlockquoteShowcase.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Blockquote/BlockquoteShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Blockquote/BlockquoteShowcase.doc.mjsindex e506a14b0d..3680d0623e 100644--- a/packages/cli/templates/blocks/components/Blockquote/BlockquoteShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Blockquote/BlockquoteShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Blockquote',diff --git a/packages/cli/templates/blocks/components/Blockquote/BlockquoteShowcase.tsx b/packages/cli/assets/templates/blocks/components/Blockquote/BlockquoteShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Blockquote/BlockquoteShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Blockquote/BlockquoteShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Blockquote/BlockquoteTestimonials.doc.mjs b/packages/cli/assets/templates/blocks/components/Blockquote/BlockquoteTestimonials.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Blockquote/BlockquoteTestimonials.doc.mjsrename to packages/cli/assets/templates/blocks/components/Blockquote/BlockquoteTestimonials.doc.mjsindex 16bd193287..38883f8fd2 100644--- a/packages/cli/templates/blocks/components/Blockquote/BlockquoteTestimonials.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Blockquote/BlockquoteTestimonials.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Blockquote',diff --git a/packages/cli/templates/blocks/components/Blockquote/BlockquoteTestimonials.tsx b/packages/cli/assets/templates/blocks/components/Blockquote/BlockquoteTestimonials.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Blockquote/BlockquoteTestimonials.tsxrename to packages/cli/assets/templates/blocks/components/Blockquote/BlockquoteTestimonials.tsxdiff --git a/packages/cli/templates/blocks/components/Blockquote/BlockquoteWithCite.doc.mjs b/packages/cli/assets/templates/blocks/components/Blockquote/BlockquoteWithCite.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Blockquote/BlockquoteWithCite.doc.mjsrename to packages/cli/assets/templates/blocks/components/Blockquote/BlockquoteWithCite.doc.mjsindex 6dee26de4f..ff3f8cd151 100644--- a/packages/cli/templates/blocks/components/Blockquote/BlockquoteWithCite.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Blockquote/BlockquoteWithCite.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Blockquote',diff --git a/packages/cli/templates/blocks/components/Blockquote/BlockquoteWithCite.tsx b/packages/cli/assets/templates/blocks/components/Blockquote/BlockquoteWithCite.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Blockquote/BlockquoteWithCite.tsxrename to packages/cli/assets/templates/blocks/components/Blockquote/BlockquoteWithCite.tsxdiff --git a/packages/cli/templates/blocks/components/BreadcrumbItem/BreadcrumbItemBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/BreadcrumbItem/BreadcrumbItemBasic.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/BreadcrumbItem/BreadcrumbItemBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/BreadcrumbItem/BreadcrumbItemBasic.doc.mjsindex 6e39a7aa45..8a6708ad5d 100644--- a/packages/cli/templates/blocks/components/BreadcrumbItem/BreadcrumbItemBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/BreadcrumbItem/BreadcrumbItemBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'BreadcrumbItem',diff --git a/packages/cli/templates/blocks/components/BreadcrumbItem/BreadcrumbItemBasic.tsx b/packages/cli/assets/templates/blocks/components/BreadcrumbItem/BreadcrumbItemBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/BreadcrumbItem/BreadcrumbItemBasic.tsxrename to packages/cli/assets/templates/blocks/components/BreadcrumbItem/BreadcrumbItemBasic.tsxdiff --git a/packages/cli/templates/blocks/components/BreadcrumbItem/BreadcrumbItemShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/BreadcrumbItem/BreadcrumbItemShowcase.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/BreadcrumbItem/BreadcrumbItemShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/BreadcrumbItem/BreadcrumbItemShowcase.doc.mjsindex 3b344f83a3..822181778f 100644--- a/packages/cli/templates/blocks/components/BreadcrumbItem/BreadcrumbItemShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/BreadcrumbItem/BreadcrumbItemShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'BreadcrumbItem',diff --git a/packages/cli/templates/blocks/components/BreadcrumbItem/BreadcrumbItemShowcase.tsx b/packages/cli/assets/templates/blocks/components/BreadcrumbItem/BreadcrumbItemShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/BreadcrumbItem/BreadcrumbItemShowcase.tsxrename to packages/cli/assets/templates/blocks/components/BreadcrumbItem/BreadcrumbItemShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Breadcrumbs/BreadcrumbsCustomSeparator.doc.mjs b/packages/cli/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsCustomSeparator.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Breadcrumbs/BreadcrumbsCustomSeparator.doc.mjsrename to packages/cli/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsCustomSeparator.doc.mjsindex 3d9d716678..6d30a746ba 100644--- a/packages/cli/templates/blocks/components/Breadcrumbs/BreadcrumbsCustomSeparator.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsCustomSeparator.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Breadcrumbs',diff --git a/packages/cli/templates/blocks/components/Breadcrumbs/BreadcrumbsCustomSeparator.tsx b/packages/cli/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsCustomSeparator.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Breadcrumbs/BreadcrumbsCustomSeparator.tsxrename to packages/cli/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsCustomSeparator.tsxdiff --git a/packages/cli/templates/blocks/components/Breadcrumbs/BreadcrumbsDeepHierarchy.doc.mjs b/packages/cli/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsDeepHierarchy.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Breadcrumbs/BreadcrumbsDeepHierarchy.doc.mjsrename to packages/cli/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsDeepHierarchy.doc.mjsindex 8d4ac78b4d..1eb546797b 100644--- a/packages/cli/templates/blocks/components/Breadcrumbs/BreadcrumbsDeepHierarchy.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsDeepHierarchy.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Breadcrumbs',diff --git a/packages/cli/templates/blocks/components/Breadcrumbs/BreadcrumbsDeepHierarchy.tsx b/packages/cli/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsDeepHierarchy.tsxsimilarity index 76%rename from packages/cli/templates/blocks/components/Breadcrumbs/BreadcrumbsDeepHierarchy.tsxrename to packages/cli/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsDeepHierarchy.tsxindex 1a04ccea0e..9ae1d00e37 100644--- a/packages/cli/templates/blocks/components/Breadcrumbs/BreadcrumbsDeepHierarchy.tsx+++ b/packages/cli/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsDeepHierarchy.tsx@@ -9,15 +9,11 @@ import {HomeIcon} from '@heroicons/react/24/outline';export default function BreadcrumbsDeepHierarchy() {return (<Breadcrumbs>- <BreadcrumbItem- href="/"- startIcon={<Icon icon={HomeIcon} size="sm" />}>+ <BreadcrumbItem href="/" startIcon={<Icon icon={HomeIcon} size="sm" />}>Home</BreadcrumbItem><BreadcrumbItem href="/products">Products</BreadcrumbItem>- <BreadcrumbItem href="/products/electronics">- Electronics- </BreadcrumbItem>+ <BreadcrumbItem href="/products/electronics">Electronics</BreadcrumbItem><BreadcrumbItem href="/products/electronics/phones">Phones</BreadcrumbItem>diff --git a/packages/cli/templates/blocks/components/Breadcrumbs/BreadcrumbsMenuItem.doc.mjs b/packages/cli/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsMenuItem.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/Breadcrumbs/BreadcrumbsMenuItem.doc.mjsrename to packages/cli/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsMenuItem.doc.mjsindex 6380bbd472..2064f2522d 100644--- a/packages/cli/templates/blocks/components/Breadcrumbs/BreadcrumbsMenuItem.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsMenuItem.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Breadcrumbs',diff --git a/packages/cli/templates/blocks/components/Breadcrumbs/BreadcrumbsMenuItem.tsx b/packages/cli/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsMenuItem.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Breadcrumbs/BreadcrumbsMenuItem.tsxrename to packages/cli/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsMenuItem.tsxdiff --git a/packages/cli/templates/blocks/components/Breadcrumbs/BreadcrumbsShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsShowcase.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/Breadcrumbs/BreadcrumbsShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsShowcase.doc.mjsindex 33ef52992a..28c341420e 100644--- a/packages/cli/templates/blocks/components/Breadcrumbs/BreadcrumbsShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Breadcrumbs',diff --git a/packages/cli/templates/blocks/components/Breadcrumbs/BreadcrumbsShowcase.tsx b/packages/cli/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Breadcrumbs/BreadcrumbsShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Breadcrumbs/BreadcrumbsSupportingVariant.doc.mjs b/packages/cli/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsSupportingVariant.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Breadcrumbs/BreadcrumbsSupportingVariant.doc.mjsrename to packages/cli/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsSupportingVariant.doc.mjsindex fd4200b0b9..faef7e6a5e 100644--- a/packages/cli/templates/blocks/components/Breadcrumbs/BreadcrumbsSupportingVariant.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsSupportingVariant.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Breadcrumbs',diff --git a/packages/cli/templates/blocks/components/Breadcrumbs/BreadcrumbsSupportingVariant.tsx b/packages/cli/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsSupportingVariant.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Breadcrumbs/BreadcrumbsSupportingVariant.tsxrename to packages/cli/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsSupportingVariant.tsxdiff --git a/packages/cli/templates/blocks/components/Breadcrumbs/BreadcrumbsWithIcons.doc.mjs b/packages/cli/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsWithIcons.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Breadcrumbs/BreadcrumbsWithIcons.doc.mjsrename to packages/cli/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsWithIcons.doc.mjsindex 2dd89797ac..7266bf0356 100644--- a/packages/cli/templates/blocks/components/Breadcrumbs/BreadcrumbsWithIcons.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsWithIcons.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Breadcrumbs',diff --git a/packages/cli/templates/blocks/components/Breadcrumbs/BreadcrumbsWithIcons.tsx b/packages/cli/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsWithIcons.tsxsimilarity index 86%rename from packages/cli/templates/blocks/components/Breadcrumbs/BreadcrumbsWithIcons.tsxrename to packages/cli/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsWithIcons.tsxindex 0ace276c37..934fc53808 100644--- a/packages/cli/templates/blocks/components/Breadcrumbs/BreadcrumbsWithIcons.tsx+++ b/packages/cli/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsWithIcons.tsx@@ -9,9 +9,7 @@ import {HomeIcon, Cog6ToothIcon} from '@heroicons/react/24/outline';export default function BreadcrumbsWithIcons() {return (<Breadcrumbs>- <BreadcrumbItem- href="/"- startIcon={<Icon icon={HomeIcon} size="sm" />}>+ <BreadcrumbItem href="/" startIcon={<Icon icon={HomeIcon} size="sm" />}>Home</BreadcrumbItem><BreadcrumbItemdiff --git a/packages/cli/templates/blocks/components/Button/ButtonFloating.doc.mjs b/packages/cli/assets/templates/blocks/components/Button/ButtonFloating.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Button/ButtonFloating.doc.mjsrename to packages/cli/assets/templates/blocks/components/Button/ButtonFloating.doc.mjsindex 3574bc0d33..e27684b9ec 100644--- a/packages/cli/templates/blocks/components/Button/ButtonFloating.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Button/ButtonFloating.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Button',diff --git a/packages/cli/templates/blocks/components/Button/ButtonFloating.tsx b/packages/cli/assets/templates/blocks/components/Button/ButtonFloating.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Button/ButtonFloating.tsxrename to packages/cli/assets/templates/blocks/components/Button/ButtonFloating.tsxdiff --git a/packages/cli/templates/blocks/components/Button/ButtonShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Button/ButtonShowcase.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Button/ButtonShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Button/ButtonShowcase.doc.mjsindex 54bc9f8690..b5a278b4ec 100644--- a/packages/cli/templates/blocks/components/Button/ButtonShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Button/ButtonShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Button',diff --git a/packages/cli/templates/blocks/components/Button/ButtonShowcase.tsx b/packages/cli/assets/templates/blocks/components/Button/ButtonShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Button/ButtonShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Button/ButtonShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Button/ButtonSizeVariants.doc.mjs b/packages/cli/assets/templates/blocks/components/Button/ButtonSizeVariants.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Button/ButtonSizeVariants.doc.mjsrename to packages/cli/assets/templates/blocks/components/Button/ButtonSizeVariants.doc.mjsindex 549ff41c55..f4ef1ceac2 100644--- a/packages/cli/templates/blocks/components/Button/ButtonSizeVariants.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Button/ButtonSizeVariants.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Button',diff --git a/packages/cli/templates/blocks/components/Button/ButtonSizeVariants.tsx b/packages/cli/assets/templates/blocks/components/Button/ButtonSizeVariants.tsxsimilarity index 88%rename from packages/cli/templates/blocks/components/Button/ButtonSizeVariants.tsxrename to packages/cli/assets/templates/blocks/components/Button/ButtonSizeVariants.tsxindex 7c83405b00..f64f2bdb41 100644--- a/packages/cli/templates/blocks/components/Button/ButtonSizeVariants.tsx+++ b/packages/cli/assets/templates/blocks/components/Button/ButtonSizeVariants.tsx@@ -31,12 +31,7 @@ export default function ButtonSizeVariants() {</Text><Stack direction="horizontal" gap={3} vAlign="center">{SIZES.map(({size, label}) => (- <Button- key={size}- label={label}- variant="secondary"- size={size}- />+ <Button key={size} label={label} variant="secondary" size={size} />))}</Stack></Stack>diff --git a/packages/cli/templates/blocks/components/Button/ButtonVariants.doc.mjs b/packages/cli/assets/templates/blocks/components/Button/ButtonVariants.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/Button/ButtonVariants.doc.mjsrename to packages/cli/assets/templates/blocks/components/Button/ButtonVariants.doc.mjsindex 7fa558db05..8943764a55 100644--- a/packages/cli/templates/blocks/components/Button/ButtonVariants.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Button/ButtonVariants.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Button',diff --git a/packages/cli/templates/blocks/components/Button/ButtonVariants.tsx b/packages/cli/assets/templates/blocks/components/Button/ButtonVariants.tsxsimilarity index 83%rename from packages/cli/templates/blocks/components/Button/ButtonVariants.tsxrename to packages/cli/assets/templates/blocks/components/Button/ButtonVariants.tsxindex c7063af3ec..ddcfb7cd8a 100644--- a/packages/cli/templates/blocks/components/Button/ButtonVariants.tsx+++ b/packages/cli/assets/templates/blocks/components/Button/ButtonVariants.tsx@@ -32,12 +32,7 @@ export default function ButtonVariants() {</Text><Stack direction="horizontal" gap={3} vAlign="center">{VARIANTS.map(({variant, label}) => (- <Button- key={variant}- label={label}- variant={variant}- isDisabled- />+ <Button key={variant} label={label} variant={variant} isDisabled />))}</Stack></Stack>@@ -47,12 +42,7 @@ export default function ButtonVariants() {</Text><Stack direction="horizontal" gap={3} vAlign="center">{VARIANTS.map(({variant, label}) => (- <Button- key={variant}- label={label}- variant={variant}- isLoading- />+ <Button key={variant} label={label} variant={variant} isLoading />))}</Stack></Stack>diff --git a/packages/cli/templates/blocks/components/Button/ButtonWithEndSlot.doc.mjs b/packages/cli/assets/templates/blocks/components/Button/ButtonWithEndSlot.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Button/ButtonWithEndSlot.doc.mjsrename to packages/cli/assets/templates/blocks/components/Button/ButtonWithEndSlot.doc.mjsindex 76b2805208..1dc7c25ea6 100644--- a/packages/cli/templates/blocks/components/Button/ButtonWithEndSlot.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Button/ButtonWithEndSlot.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Button',diff --git a/packages/cli/templates/blocks/components/Button/ButtonWithEndSlot.tsx b/packages/cli/assets/templates/blocks/components/Button/ButtonWithEndSlot.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Button/ButtonWithEndSlot.tsxrename to packages/cli/assets/templates/blocks/components/Button/ButtonWithEndSlot.tsxdiff --git a/packages/cli/templates/blocks/components/Button/ButtonWithIcon.doc.mjs b/packages/cli/assets/templates/blocks/components/Button/ButtonWithIcon.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Button/ButtonWithIcon.doc.mjsrename to packages/cli/assets/templates/blocks/components/Button/ButtonWithIcon.doc.mjsindex fc2e478825..d4309b5a6b 100644--- a/packages/cli/templates/blocks/components/Button/ButtonWithIcon.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Button/ButtonWithIcon.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Button',diff --git a/packages/cli/templates/blocks/components/Button/ButtonWithIcon.tsx b/packages/cli/assets/templates/blocks/components/Button/ButtonWithIcon.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Button/ButtonWithIcon.tsxrename to packages/cli/assets/templates/blocks/components/Button/ButtonWithIcon.tsxdiff --git a/packages/cli/templates/blocks/components/ButtonGroup/ButtonGroupBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/ButtonGroup/ButtonGroupBasic.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/ButtonGroup/ButtonGroupBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/ButtonGroup/ButtonGroupBasic.doc.mjsindex 363c145342..4efe956bd9 100644--- a/packages/cli/templates/blocks/components/ButtonGroup/ButtonGroupBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ButtonGroup/ButtonGroupBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ButtonGroup',diff --git a/packages/cli/templates/blocks/components/ButtonGroup/ButtonGroupBasic.tsx b/packages/cli/assets/templates/blocks/components/ButtonGroup/ButtonGroupBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ButtonGroup/ButtonGroupBasic.tsxrename to packages/cli/assets/templates/blocks/components/ButtonGroup/ButtonGroupBasic.tsxdiff --git a/packages/cli/templates/blocks/components/ButtonGroup/ButtonGroupFloating.doc.mjs b/packages/cli/assets/templates/blocks/components/ButtonGroup/ButtonGroupFloating.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/ButtonGroup/ButtonGroupFloating.doc.mjsrename to packages/cli/assets/templates/blocks/components/ButtonGroup/ButtonGroupFloating.doc.mjsindex f781399e78..1126979873 100644--- a/packages/cli/templates/blocks/components/ButtonGroup/ButtonGroupFloating.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ButtonGroup/ButtonGroupFloating.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ButtonGroup',diff --git a/packages/cli/templates/blocks/components/ButtonGroup/ButtonGroupFloating.tsx b/packages/cli/assets/templates/blocks/components/ButtonGroup/ButtonGroupFloating.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ButtonGroup/ButtonGroupFloating.tsxrename to packages/cli/assets/templates/blocks/components/ButtonGroup/ButtonGroupFloating.tsxdiff --git a/packages/cli/templates/blocks/components/ButtonGroup/ButtonGroupShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/ButtonGroup/ButtonGroupShowcase.doc.mjssimilarity index 81%rename from packages/cli/templates/blocks/components/ButtonGroup/ButtonGroupShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/ButtonGroup/ButtonGroupShowcase.doc.mjsindex 7a3c39d372..794356e62a 100644--- a/packages/cli/templates/blocks/components/ButtonGroup/ButtonGroupShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ButtonGroup/ButtonGroupShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ButtonGroup',diff --git a/packages/cli/templates/blocks/components/ButtonGroup/ButtonGroupShowcase.tsx b/packages/cli/assets/templates/blocks/components/ButtonGroup/ButtonGroupShowcase.tsxsimilarity index 90%rename from packages/cli/templates/blocks/components/ButtonGroup/ButtonGroupShowcase.tsxrename to packages/cli/assets/templates/blocks/components/ButtonGroup/ButtonGroupShowcase.tsxindex 8343d5b170..84710b62b1 100644--- a/packages/cli/templates/blocks/components/ButtonGroup/ButtonGroupShowcase.tsx+++ b/packages/cli/assets/templates/blocks/components/ButtonGroup/ButtonGroupShowcase.tsx@@ -18,10 +18,7 @@ export default function ButtonGroupShowcase() {return (<Stack direction="horizontal" gap={6} vAlign="center"><ButtonGroup label="Clipboard actions">- <Button- label="Copy"- icon={<Icon icon={ClipboardDocumentIcon} />}- />+ <Button label="Copy" icon={<Icon icon={ClipboardDocumentIcon} />} /><Button label="Cut" icon={<Icon icon={ScissorsIcon} />} /><Button label="Paste" icon={<Icon icon={ClipboardIcon} />} /></ButtonGroup>diff --git a/packages/cli/templates/blocks/components/Calendar/CalendarConstraints.doc.mjs b/packages/cli/assets/templates/blocks/components/Calendar/CalendarConstraints.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Calendar/CalendarConstraints.doc.mjsrename to packages/cli/assets/templates/blocks/components/Calendar/CalendarConstraints.doc.mjsindex 87fed3064e..9e00c97c11 100644--- a/packages/cli/templates/blocks/components/Calendar/CalendarConstraints.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Calendar/CalendarConstraints.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Calendar',diff --git a/packages/cli/templates/blocks/components/Calendar/CalendarConstraints.tsx b/packages/cli/assets/templates/blocks/components/Calendar/CalendarConstraints.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Calendar/CalendarConstraints.tsxrename to packages/cli/assets/templates/blocks/components/Calendar/CalendarConstraints.tsxdiff --git a/packages/cli/templates/blocks/components/Calendar/CalendarRangeWithValue.doc.mjs b/packages/cli/assets/templates/blocks/components/Calendar/CalendarRangeWithValue.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Calendar/CalendarRangeWithValue.doc.mjsrename to packages/cli/assets/templates/blocks/components/Calendar/CalendarRangeWithValue.doc.mjsindex 37a2aa495e..5a157ac868 100644--- a/packages/cli/templates/blocks/components/Calendar/CalendarRangeWithValue.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Calendar/CalendarRangeWithValue.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Calendar',diff --git a/packages/cli/templates/blocks/components/Calendar/CalendarRangeWithValue.tsx b/packages/cli/assets/templates/blocks/components/Calendar/CalendarRangeWithValue.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Calendar/CalendarRangeWithValue.tsxrename to packages/cli/assets/templates/blocks/components/Calendar/CalendarRangeWithValue.tsxdiff --git a/packages/cli/templates/blocks/components/Calendar/CalendarShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Calendar/CalendarShowcase.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Calendar/CalendarShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Calendar/CalendarShowcase.doc.mjsindex 4d33b449da..505a3d5539 100644--- a/packages/cli/templates/blocks/components/Calendar/CalendarShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Calendar/CalendarShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Calendar',diff --git a/packages/cli/templates/blocks/components/Calendar/CalendarShowcase.tsx b/packages/cli/assets/templates/blocks/components/Calendar/CalendarShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Calendar/CalendarShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Calendar/CalendarShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Calendar/CalendarSingle.doc.mjs b/packages/cli/assets/templates/blocks/components/Calendar/CalendarSingle.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Calendar/CalendarSingle.doc.mjsrename to packages/cli/assets/templates/blocks/components/Calendar/CalendarSingle.doc.mjsindex 08666b154b..80445a333d 100644--- a/packages/cli/templates/blocks/components/Calendar/CalendarSingle.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Calendar/CalendarSingle.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Calendar',diff --git a/packages/cli/templates/blocks/components/Calendar/CalendarSingle.tsx b/packages/cli/assets/templates/blocks/components/Calendar/CalendarSingle.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Calendar/CalendarSingle.tsxrename to packages/cli/assets/templates/blocks/components/Calendar/CalendarSingle.tsxdiff --git a/packages/cli/templates/blocks/components/Calendar/CalendarTwoMonths.doc.mjs b/packages/cli/assets/templates/blocks/components/Calendar/CalendarTwoMonths.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Calendar/CalendarTwoMonths.doc.mjsrename to packages/cli/assets/templates/blocks/components/Calendar/CalendarTwoMonths.doc.mjsindex 9a6638abf9..1921e01541 100644--- a/packages/cli/templates/blocks/components/Calendar/CalendarTwoMonths.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Calendar/CalendarTwoMonths.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Calendar',diff --git a/packages/cli/templates/blocks/components/Calendar/CalendarTwoMonths.tsx b/packages/cli/assets/templates/blocks/components/Calendar/CalendarTwoMonths.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Calendar/CalendarTwoMonths.tsxrename to packages/cli/assets/templates/blocks/components/Calendar/CalendarTwoMonths.tsxdiff --git a/packages/cli/templates/blocks/components/Card/CardCallout.doc.mjs b/packages/cli/assets/templates/blocks/components/Card/CardCallout.doc.mjssimilarity index 89%rename from packages/cli/templates/blocks/components/Card/CardCallout.doc.mjsrename to packages/cli/assets/templates/blocks/components/Card/CardCallout.doc.mjsindex 4dda34740e..f5d6825ae6 100644--- a/packages/cli/templates/blocks/components/Card/CardCallout.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Card/CardCallout.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Card',diff --git a/packages/cli/templates/blocks/components/Card/CardCallout.tsx b/packages/cli/assets/templates/blocks/components/Card/CardCallout.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Card/CardCallout.tsxrename to packages/cli/assets/templates/blocks/components/Card/CardCallout.tsxdiff --git a/packages/cli/templates/blocks/components/Card/CardElevations.doc.mjs b/packages/cli/assets/templates/blocks/components/Card/CardElevations.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Card/CardElevations.doc.mjsrename to packages/cli/assets/templates/blocks/components/Card/CardElevations.doc.mjsindex 0eeaf482e4..4c2a11a520 100644--- a/packages/cli/templates/blocks/components/Card/CardElevations.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Card/CardElevations.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Card',diff --git a/packages/cli/templates/blocks/components/Card/CardElevations.tsx b/packages/cli/assets/templates/blocks/components/Card/CardElevations.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Card/CardElevations.tsxrename to packages/cli/assets/templates/blocks/components/Card/CardElevations.tsxdiff --git a/packages/cli/templates/blocks/components/Card/CardShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Card/CardShowcase.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Card/CardShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Card/CardShowcase.doc.mjsindex 9f174f655f..28efc09083 100644--- a/packages/cli/templates/blocks/components/Card/CardShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Card/CardShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Card',diff --git a/packages/cli/templates/blocks/components/Card/CardShowcase.tsx b/packages/cli/assets/templates/blocks/components/Card/CardShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Card/CardShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Card/CardShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Card/CardVariants.doc.mjs b/packages/cli/assets/templates/blocks/components/Card/CardVariants.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/Card/CardVariants.doc.mjsrename to packages/cli/assets/templates/blocks/components/Card/CardVariants.doc.mjsindex cab3f041c2..dff9804f6d 100644--- a/packages/cli/templates/blocks/components/Card/CardVariants.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Card/CardVariants.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Card',diff --git a/packages/cli/templates/blocks/components/Card/CardVariants.tsx b/packages/cli/assets/templates/blocks/components/Card/CardVariants.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Card/CardVariants.tsxrename to packages/cli/assets/templates/blocks/components/Card/CardVariants.tsxdiff --git a/packages/cli/templates/blocks/components/Card/CardWithInnerLayout.doc.mjs b/packages/cli/assets/templates/blocks/components/Card/CardWithInnerLayout.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/Card/CardWithInnerLayout.doc.mjsrename to packages/cli/assets/templates/blocks/components/Card/CardWithInnerLayout.doc.mjsindex 94986f8461..ffbeaeac46 100644--- a/packages/cli/templates/blocks/components/Card/CardWithInnerLayout.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Card/CardWithInnerLayout.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Card',diff --git a/packages/cli/templates/blocks/components/Card/CardWithInnerLayout.tsx b/packages/cli/assets/templates/blocks/components/Card/CardWithInnerLayout.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Card/CardWithInnerLayout.tsxrename to packages/cli/assets/templates/blocks/components/Card/CardWithInnerLayout.tsxdiff --git a/packages/cli/templates/blocks/components/Card/CardWithSimpleContent.doc.mjs b/packages/cli/assets/templates/blocks/components/Card/CardWithSimpleContent.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/Card/CardWithSimpleContent.doc.mjsrename to packages/cli/assets/templates/blocks/components/Card/CardWithSimpleContent.doc.mjsindex bd298e8fee..9fae91bf8a 100644--- a/packages/cli/templates/blocks/components/Card/CardWithSimpleContent.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Card/CardWithSimpleContent.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Card',diff --git a/packages/cli/templates/blocks/components/Card/CardWithSimpleContent.tsx b/packages/cli/assets/templates/blocks/components/Card/CardWithSimpleContent.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Card/CardWithSimpleContent.tsxrename to packages/cli/assets/templates/blocks/components/Card/CardWithSimpleContent.tsxdiff --git a/packages/cli/templates/blocks/components/Card/ClickableCardElevated.doc.mjs b/packages/cli/assets/templates/blocks/components/Card/ClickableCardElevated.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Card/ClickableCardElevated.doc.mjsrename to packages/cli/assets/templates/blocks/components/Card/ClickableCardElevated.doc.mjsindex cf384ad200..9eeea5daa3 100644--- a/packages/cli/templates/blocks/components/Card/ClickableCardElevated.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Card/ClickableCardElevated.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ClickableCard',diff --git a/packages/cli/templates/blocks/components/Card/ClickableCardElevated.tsx b/packages/cli/assets/templates/blocks/components/Card/ClickableCardElevated.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Card/ClickableCardElevated.tsxrename to packages/cli/assets/templates/blocks/components/Card/ClickableCardElevated.tsxdiff --git a/packages/cli/templates/blocks/components/Card/ClickableCardShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Card/ClickableCardShowcase.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/Card/ClickableCardShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Card/ClickableCardShowcase.doc.mjsindex 66acb8c3a6..729fe5a622 100644--- a/packages/cli/templates/blocks/components/Card/ClickableCardShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Card/ClickableCardShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ClickableCard',diff --git a/packages/cli/templates/blocks/components/Card/ClickableCardShowcase.tsx b/packages/cli/assets/templates/blocks/components/Card/ClickableCardShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Card/ClickableCardShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Card/ClickableCardShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Card/ClickableCardWithNestedButton.doc.mjs b/packages/cli/assets/templates/blocks/components/Card/ClickableCardWithNestedButton.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Card/ClickableCardWithNestedButton.doc.mjsrename to packages/cli/assets/templates/blocks/components/Card/ClickableCardWithNestedButton.doc.mjsindex 9a116b7927..43a4e80b66 100644--- a/packages/cli/templates/blocks/components/Card/ClickableCardWithNestedButton.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Card/ClickableCardWithNestedButton.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ClickableCard',diff --git a/packages/cli/templates/blocks/components/Card/ClickableCardWithNestedButton.tsx b/packages/cli/assets/templates/blocks/components/Card/ClickableCardWithNestedButton.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Card/ClickableCardWithNestedButton.tsxrename to packages/cli/assets/templates/blocks/components/Card/ClickableCardWithNestedButton.tsxdiff --git a/packages/cli/templates/blocks/components/Card/SelectableCardElevated.doc.mjs b/packages/cli/assets/templates/blocks/components/Card/SelectableCardElevated.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Card/SelectableCardElevated.doc.mjsrename to packages/cli/assets/templates/blocks/components/Card/SelectableCardElevated.doc.mjsindex f67ef13b4d..ee778e9890 100644--- a/packages/cli/templates/blocks/components/Card/SelectableCardElevated.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Card/SelectableCardElevated.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'SelectableCard',diff --git a/packages/cli/templates/blocks/components/Card/SelectableCardElevated.tsx b/packages/cli/assets/templates/blocks/components/Card/SelectableCardElevated.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Card/SelectableCardElevated.tsxrename to packages/cli/assets/templates/blocks/components/Card/SelectableCardElevated.tsxdiff --git a/packages/cli/templates/blocks/components/Card/SelectableCardMulti.doc.mjs b/packages/cli/assets/templates/blocks/components/Card/SelectableCardMulti.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Card/SelectableCardMulti.doc.mjsrename to packages/cli/assets/templates/blocks/components/Card/SelectableCardMulti.doc.mjsindex ad53cfce9c..f8fd7f99ac 100644--- a/packages/cli/templates/blocks/components/Card/SelectableCardMulti.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Card/SelectableCardMulti.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'SelectableCard',diff --git a/packages/cli/templates/blocks/components/Card/SelectableCardMulti.tsx b/packages/cli/assets/templates/blocks/components/Card/SelectableCardMulti.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Card/SelectableCardMulti.tsxrename to packages/cli/assets/templates/blocks/components/Card/SelectableCardMulti.tsxdiff --git a/packages/cli/templates/blocks/components/Card/SelectableCardShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Card/SelectableCardShowcase.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Card/SelectableCardShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Card/SelectableCardShowcase.doc.mjsindex b2922b018c..8a485a0233 100644--- a/packages/cli/templates/blocks/components/Card/SelectableCardShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Card/SelectableCardShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'SelectableCard',diff --git a/packages/cli/templates/blocks/components/Card/SelectableCardShowcase.tsx b/packages/cli/assets/templates/blocks/components/Card/SelectableCardShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Card/SelectableCardShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Card/SelectableCardShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Carousel/CarouselCards.doc.mjs b/packages/cli/assets/templates/blocks/components/Carousel/CarouselCards.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/Carousel/CarouselCards.doc.mjsrename to packages/cli/assets/templates/blocks/components/Carousel/CarouselCards.doc.mjsindex f4a2fefbe8..1cf85ce222 100644--- a/packages/cli/templates/blocks/components/Carousel/CarouselCards.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Carousel/CarouselCards.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Carousel',diff --git a/packages/cli/templates/blocks/components/Carousel/CarouselCards.tsx b/packages/cli/assets/templates/blocks/components/Carousel/CarouselCards.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Carousel/CarouselCards.tsxrename to packages/cli/assets/templates/blocks/components/Carousel/CarouselCards.tsxdiff --git a/packages/cli/templates/blocks/components/Carousel/CarouselShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Carousel/CarouselShowcase.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Carousel/CarouselShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Carousel/CarouselShowcase.doc.mjsindex b05aed8388..2cb704e8eb 100644--- a/packages/cli/templates/blocks/components/Carousel/CarouselShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Carousel/CarouselShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Carousel',diff --git a/packages/cli/templates/blocks/components/Carousel/CarouselShowcase.tsx b/packages/cli/assets/templates/blocks/components/Carousel/CarouselShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Carousel/CarouselShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Carousel/CarouselShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Carousel/CarouselSnap.doc.mjs b/packages/cli/assets/templates/blocks/components/Carousel/CarouselSnap.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/Carousel/CarouselSnap.doc.mjsrename to packages/cli/assets/templates/blocks/components/Carousel/CarouselSnap.doc.mjsindex c55d3aae2e..e3e7bd19ee 100644--- a/packages/cli/templates/blocks/components/Carousel/CarouselSnap.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Carousel/CarouselSnap.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Carousel',diff --git a/packages/cli/templates/blocks/components/Carousel/CarouselSnap.tsx b/packages/cli/assets/templates/blocks/components/Carousel/CarouselSnap.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Carousel/CarouselSnap.tsxrename to packages/cli/assets/templates/blocks/components/Carousel/CarouselSnap.tsxdiff --git a/packages/cli/templates/blocks/components/Center/CenterHorizontal.doc.mjs b/packages/cli/assets/templates/blocks/components/Center/CenterHorizontal.doc.mjssimilarity index 89%rename from packages/cli/templates/blocks/components/Center/CenterHorizontal.doc.mjsrename to packages/cli/assets/templates/blocks/components/Center/CenterHorizontal.doc.mjsindex c5ae19a128..48fc69bfe4 100644--- a/packages/cli/templates/blocks/components/Center/CenterHorizontal.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Center/CenterHorizontal.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Center',diff --git a/packages/cli/templates/blocks/components/Center/CenterHorizontal.tsx b/packages/cli/assets/templates/blocks/components/Center/CenterHorizontal.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Center/CenterHorizontal.tsxrename to packages/cli/assets/templates/blocks/components/Center/CenterHorizontal.tsxdiff --git a/packages/cli/templates/blocks/components/Center/CenterInsideACard.doc.mjs b/packages/cli/assets/templates/blocks/components/Center/CenterInsideACard.doc.mjssimilarity index 89%rename from packages/cli/templates/blocks/components/Center/CenterInsideACard.doc.mjsrename to packages/cli/assets/templates/blocks/components/Center/CenterInsideACard.doc.mjsindex dd0af7f905..33922aa7d3 100644--- a/packages/cli/templates/blocks/components/Center/CenterInsideACard.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Center/CenterInsideACard.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Center',diff --git a/packages/cli/templates/blocks/components/Center/CenterInsideACard.tsx b/packages/cli/assets/templates/blocks/components/Center/CenterInsideACard.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Center/CenterInsideACard.tsxrename to packages/cli/assets/templates/blocks/components/Center/CenterInsideACard.tsxdiff --git a/packages/cli/templates/blocks/components/Center/CenterShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Center/CenterShowcase.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Center/CenterShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Center/CenterShowcase.doc.mjsindex bc37e92a32..106c575101 100644--- a/packages/cli/templates/blocks/components/Center/CenterShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Center/CenterShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Center',diff --git a/packages/cli/templates/blocks/components/Center/CenterShowcase.tsx b/packages/cli/assets/templates/blocks/components/Center/CenterShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Center/CenterShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Center/CenterShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/ChatComposer/ChatComposerAttachments.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerAttachments.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/ChatComposer/ChatComposerAttachments.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerAttachments.doc.mjsindex a00099f44b..81c0993866 100644--- a/packages/cli/templates/blocks/components/ChatComposer/ChatComposerAttachments.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerAttachments.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatComposer',diff --git a/packages/cli/templates/blocks/components/ChatComposer/ChatComposerAttachments.tsx b/packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerAttachments.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatComposer/ChatComposerAttachments.tsxrename to packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerAttachments.tsxdiff --git a/packages/cli/templates/blocks/components/ChatComposer/ChatComposerFlat.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerFlat.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/ChatComposer/ChatComposerFlat.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerFlat.doc.mjsindex 0fdec247ed..0264d46a59 100644--- a/packages/cli/templates/blocks/components/ChatComposer/ChatComposerFlat.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerFlat.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatComposer',diff --git a/packages/cli/templates/blocks/components/ChatComposer/ChatComposerFlat.tsx b/packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerFlat.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatComposer/ChatComposerFlat.tsxrename to packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerFlat.tsxdiff --git a/packages/cli/templates/blocks/components/ChatComposer/ChatComposerFooterActions.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerFooterActions.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/ChatComposer/ChatComposerFooterActions.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerFooterActions.doc.mjsindex fbf1fbb098..fbc896fb5a 100644--- a/packages/cli/templates/blocks/components/ChatComposer/ChatComposerFooterActions.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerFooterActions.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatComposer',diff --git a/packages/cli/templates/blocks/components/ChatComposer/ChatComposerFooterActions.tsx b/packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerFooterActions.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatComposer/ChatComposerFooterActions.tsxrename to packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerFooterActions.tsxdiff --git a/packages/cli/templates/blocks/components/ChatComposer/ChatComposerFullFeatured.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerFullFeatured.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/ChatComposer/ChatComposerFullFeatured.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerFullFeatured.doc.mjsindex 31cd6e1c67..6abd0c1210 100644--- a/packages/cli/templates/blocks/components/ChatComposer/ChatComposerFullFeatured.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerFullFeatured.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatComposer',diff --git a/packages/cli/templates/blocks/components/ChatComposer/ChatComposerFullFeatured.tsx b/packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerFullFeatured.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatComposer/ChatComposerFullFeatured.tsxrename to packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerFullFeatured.tsxdiff --git a/packages/cli/templates/blocks/components/ChatComposer/ChatComposerShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerShowcase.doc.mjssimilarity index 79%rename from packages/cli/templates/blocks/components/ChatComposer/ChatComposerShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerShowcase.doc.mjsindex 4d5ebfb3ea..2dccb0ed3f 100644--- a/packages/cli/templates/blocks/components/ChatComposer/ChatComposerShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatComposer',diff --git a/packages/cli/templates/blocks/components/ChatComposer/ChatComposerShowcase.tsx b/packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatComposer/ChatComposerShowcase.tsxrename to packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/ChatComposer/ChatComposerSimple.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerSimple.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/ChatComposer/ChatComposerSimple.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerSimple.doc.mjsindex 5c6378e7a5..69a403d29f 100644--- a/packages/cli/templates/blocks/components/ChatComposer/ChatComposerSimple.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerSimple.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatComposer',diff --git a/packages/cli/templates/blocks/components/ChatComposer/ChatComposerSimple.tsx b/packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerSimple.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatComposer/ChatComposerSimple.tsxrename to packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerSimple.tsxdiff --git a/packages/cli/templates/blocks/components/ChatComposer/ChatComposerStreaming.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerStreaming.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/ChatComposer/ChatComposerStreaming.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerStreaming.doc.mjsindex a52c049126..bc192dde86 100644--- a/packages/cli/templates/blocks/components/ChatComposer/ChatComposerStreaming.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerStreaming.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatComposer',diff --git a/packages/cli/templates/blocks/components/ChatComposer/ChatComposerStreaming.tsx b/packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerStreaming.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatComposer/ChatComposerStreaming.tsxrename to packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerStreaming.tsxdiff --git a/packages/cli/templates/blocks/components/ChatComposer/ChatComposerValidation.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerValidation.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/ChatComposer/ChatComposerValidation.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerValidation.doc.mjsindex 126bf29a0c..90e34fdde5 100644--- a/packages/cli/templates/blocks/components/ChatComposer/ChatComposerValidation.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerValidation.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatComposer',diff --git a/packages/cli/templates/blocks/components/ChatComposer/ChatComposerValidation.tsx b/packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerValidation.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatComposer/ChatComposerValidation.tsxrename to packages/cli/assets/templates/blocks/components/ChatComposer/ChatComposerValidation.tsxdiff --git a/packages/cli/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerAttachments.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerAttachments.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerAttachments.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerAttachments.doc.mjsindex ed375dd22f..0ad363b3e7 100644--- a/packages/cli/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerAttachments.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerAttachments.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatComposerDrawer',diff --git a/packages/cli/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerAttachments.tsx b/packages/cli/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerAttachments.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerAttachments.tsxrename to packages/cli/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerAttachments.tsxdiff --git a/packages/cli/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerCollapsible.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerCollapsible.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerCollapsible.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerCollapsible.doc.mjsindex 9784479c5c..e999bfb748 100644--- a/packages/cli/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerCollapsible.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerCollapsible.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatComposerDrawer',diff --git a/packages/cli/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerCollapsible.tsx b/packages/cli/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerCollapsible.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerCollapsible.tsxrename to packages/cli/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerCollapsible.tsxdiff --git a/packages/cli/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerFeedback.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerFeedback.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerFeedback.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerFeedback.doc.mjsindex 10f98af2a2..31a4d9c519 100644--- a/packages/cli/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerFeedback.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerFeedback.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatComposerDrawer',diff --git a/packages/cli/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerFeedback.tsx b/packages/cli/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerFeedback.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerFeedback.tsxrename to packages/cli/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerFeedback.tsxdiff --git a/packages/cli/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerShowcase.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerShowcase.doc.mjsindex f6f8f48fc9..4754749f53 100644--- a/packages/cli/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatComposerDrawer',diff --git a/packages/cli/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerShowcase.tsx b/packages/cli/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerShowcase.tsxrename to packages/cli/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerWithProgress.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerWithProgress.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerWithProgress.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerWithProgress.doc.mjsindex b4c78beb35..1335411275 100644--- a/packages/cli/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerWithProgress.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerWithProgress.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatComposerDrawer',diff --git a/packages/cli/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerWithProgress.tsx b/packages/cli/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerWithProgress.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerWithProgress.tsxrename to packages/cli/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerWithProgress.tsxdiff --git a/packages/cli/templates/blocks/components/ChatComposerInput/ChatComposerInputControlledInput.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputControlledInput.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/ChatComposerInput/ChatComposerInputControlledInput.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputControlledInput.doc.mjsindex 7dc1ae6e9e..f60352cbb0 100644--- a/packages/cli/templates/blocks/components/ChatComposerInput/ChatComposerInputControlledInput.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputControlledInput.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatComposerInput',diff --git a/packages/cli/templates/blocks/components/ChatComposerInput/ChatComposerInputControlledInput.tsx b/packages/cli/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputControlledInput.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatComposerInput/ChatComposerInputControlledInput.tsxrename to packages/cli/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputControlledInput.tsxdiff --git a/packages/cli/templates/blocks/components/ChatComposerInput/ChatComposerInputDisabled.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputDisabled.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/ChatComposerInput/ChatComposerInputDisabled.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputDisabled.doc.mjsindex 5393309e68..1ac72a6ce7 100644--- a/packages/cli/templates/blocks/components/ChatComposerInput/ChatComposerInputDisabled.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputDisabled.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatComposerInput',diff --git a/packages/cli/templates/blocks/components/ChatComposerInput/ChatComposerInputDisabled.tsx b/packages/cli/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputDisabled.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatComposerInput/ChatComposerInputDisabled.tsxrename to packages/cli/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputDisabled.tsxdiff --git a/packages/cli/templates/blocks/components/ChatComposerInput/ChatComposerInputMentionTrigger.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputMentionTrigger.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/ChatComposerInput/ChatComposerInputMentionTrigger.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputMentionTrigger.doc.mjsindex f0d2ad36cf..c360a86d57 100644--- a/packages/cli/templates/blocks/components/ChatComposerInput/ChatComposerInputMentionTrigger.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputMentionTrigger.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatComposerInput',diff --git a/packages/cli/templates/blocks/components/ChatComposerInput/ChatComposerInputMentionTrigger.tsx b/packages/cli/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputMentionTrigger.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatComposerInput/ChatComposerInputMentionTrigger.tsxrename to packages/cli/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputMentionTrigger.tsxdiff --git a/packages/cli/templates/blocks/components/ChatComposerInput/ChatComposerInputMultipleTriggers.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputMultipleTriggers.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/ChatComposerInput/ChatComposerInputMultipleTriggers.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputMultipleTriggers.doc.mjsindex ed37d78b29..a110c81b88 100644--- a/packages/cli/templates/blocks/components/ChatComposerInput/ChatComposerInputMultipleTriggers.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputMultipleTriggers.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatComposerInput',diff --git a/packages/cli/templates/blocks/components/ChatComposerInput/ChatComposerInputMultipleTriggers.tsx b/packages/cli/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputMultipleTriggers.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatComposerInput/ChatComposerInputMultipleTriggers.tsxrename to packages/cli/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputMultipleTriggers.tsxdiff --git a/packages/cli/templates/blocks/components/ChatComposerInput/ChatComposerInputShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputShowcase.doc.mjssimilarity index 81%rename from packages/cli/templates/blocks/components/ChatComposerInput/ChatComposerInputShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputShowcase.doc.mjsindex 39086f6ae8..578029d1a8 100644--- a/packages/cli/templates/blocks/components/ChatComposerInput/ChatComposerInputShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatComposerInput',diff --git a/packages/cli/templates/blocks/components/ChatComposerInput/ChatComposerInputShowcase.tsx b/packages/cli/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatComposerInput/ChatComposerInputShowcase.tsxrename to packages/cli/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/ChatComposerInput/ChatComposerInputSlashCommands.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputSlashCommands.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/ChatComposerInput/ChatComposerInputSlashCommands.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputSlashCommands.doc.mjsindex 3b435ed105..6d42076c09 100644--- a/packages/cli/templates/blocks/components/ChatComposerInput/ChatComposerInputSlashCommands.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputSlashCommands.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatComposerInput',diff --git a/packages/cli/templates/blocks/components/ChatComposerInput/ChatComposerInputSlashCommands.tsx b/packages/cli/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputSlashCommands.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatComposerInput/ChatComposerInputSlashCommands.tsxrename to packages/cli/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputSlashCommands.tsxdiff --git a/packages/cli/templates/blocks/components/ChatDictation/ChatDictationDictationInComposer.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatDictation/ChatDictationDictationInComposer.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/ChatDictation/ChatDictationDictationInComposer.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatDictation/ChatDictationDictationInComposer.doc.mjsindex 24d59a6b2e..01e5223417 100644--- a/packages/cli/templates/blocks/components/ChatDictation/ChatDictationDictationInComposer.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatDictation/ChatDictationDictationInComposer.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatDictation',diff --git a/packages/cli/templates/blocks/components/ChatDictation/ChatDictationDictationInComposer.tsx b/packages/cli/assets/templates/blocks/components/ChatDictation/ChatDictationDictationInComposer.tsxsimilarity index 83%rename from packages/cli/templates/blocks/components/ChatDictation/ChatDictationDictationInComposer.tsxrename to packages/cli/assets/templates/blocks/components/ChatDictation/ChatDictationDictationInComposer.tsxindex 10f3e60dda..4a4fd452c4 100644--- a/packages/cli/templates/blocks/components/ChatDictation/ChatDictationDictationInComposer.tsx+++ b/packages/cli/assets/templates/blocks/components/ChatDictation/ChatDictationDictationInComposer.tsx@@ -2,10 +2,7 @@'use client';-import {- ChatDictationButton,- ChatComposer,-} from '@astryxdesign/core/Chat';+import {ChatDictationButton, ChatComposer} from '@astryxdesign/core/Chat';import type {UseSpeechRecognitionReturn} from '@astryxdesign/core/Chat';import {Stack} from '@astryxdesign/core/Layout';import {Text} from '@astryxdesign/core/Text';@@ -28,11 +25,7 @@ const idleDictation: UseSpeechRecognitionReturn = {export default function ChatDictationDictationInComposer() {return (- <Stack- direction="vertical"- gap={3}- style={{width: '100%', maxWidth: 450}}- >+ <Stack direction="vertical" gap={3} style={{width: '100%', maxWidth: 450}}><Text type="supporting" color="secondary">Dictation button in the sendActions slot</Text>diff --git a/packages/cli/templates/blocks/components/ChatDictation/ChatDictationDictationStates.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatDictation/ChatDictationDictationStates.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/ChatDictation/ChatDictationDictationStates.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatDictation/ChatDictationDictationStates.doc.mjsindex a6b44262aa..63739ca870 100644--- a/packages/cli/templates/blocks/components/ChatDictation/ChatDictationDictationStates.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatDictation/ChatDictationDictationStates.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatDictation',diff --git a/packages/cli/templates/blocks/components/ChatDictation/ChatDictationDictationStates.tsx b/packages/cli/assets/templates/blocks/components/ChatDictation/ChatDictationDictationStates.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatDictation/ChatDictationDictationStates.tsxrename to packages/cli/assets/templates/blocks/components/ChatDictation/ChatDictationDictationStates.tsxdiff --git a/packages/cli/templates/blocks/components/ChatDictation/ChatDictationSizes.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatDictation/ChatDictationSizes.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/ChatDictation/ChatDictationSizes.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatDictation/ChatDictationSizes.doc.mjsindex b8a94cf945..1f9f9c583a 100644--- a/packages/cli/templates/blocks/components/ChatDictation/ChatDictationSizes.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatDictation/ChatDictationSizes.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatDictation',diff --git a/packages/cli/templates/blocks/components/ChatDictation/ChatDictationSizes.tsx b/packages/cli/assets/templates/blocks/components/ChatDictation/ChatDictationSizes.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatDictation/ChatDictationSizes.tsxrename to packages/cli/assets/templates/blocks/components/ChatDictation/ChatDictationSizes.tsxdiff --git a/packages/cli/templates/blocks/components/ChatDictationButton/ChatDictationButtonBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatDictationButton/ChatDictationButtonBasic.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/ChatDictationButton/ChatDictationButtonBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatDictationButton/ChatDictationButtonBasic.doc.mjsindex e1bc4a00d0..69d1190bc2 100644--- a/packages/cli/templates/blocks/components/ChatDictationButton/ChatDictationButtonBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatDictationButton/ChatDictationButtonBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatDictationButton',diff --git a/packages/cli/templates/blocks/components/ChatDictationButton/ChatDictationButtonBasic.tsx b/packages/cli/assets/templates/blocks/components/ChatDictationButton/ChatDictationButtonBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatDictationButton/ChatDictationButtonBasic.tsxrename to packages/cli/assets/templates/blocks/components/ChatDictationButton/ChatDictationButtonBasic.tsxdiff --git a/packages/cli/templates/blocks/components/ChatDictationButton/ChatDictationButtonShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatDictationButton/ChatDictationButtonShowcase.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/ChatDictationButton/ChatDictationButtonShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatDictationButton/ChatDictationButtonShowcase.doc.mjsindex 6aa4317a0f..561e5229ff 100644--- a/packages/cli/templates/blocks/components/ChatDictationButton/ChatDictationButtonShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatDictationButton/ChatDictationButtonShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatDictationButton',diff --git a/packages/cli/templates/blocks/components/ChatDictationButton/ChatDictationButtonShowcase.tsx b/packages/cli/assets/templates/blocks/components/ChatDictationButton/ChatDictationButtonShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatDictationButton/ChatDictationButtonShowcase.tsxrename to packages/cli/assets/templates/blocks/components/ChatDictationButton/ChatDictationButtonShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/ChatLayout/ChatLayoutPanelChat.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatLayout/ChatLayoutPanelChat.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/ChatLayout/ChatLayoutPanelChat.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatLayout/ChatLayoutPanelChat.doc.mjsindex 9fe7f83a55..417b98cd0d 100644--- a/packages/cli/templates/blocks/components/ChatLayout/ChatLayoutPanelChat.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatLayout/ChatLayoutPanelChat.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatLayout',diff --git a/packages/cli/templates/blocks/components/ChatLayout/ChatLayoutPanelChat.tsx b/packages/cli/assets/templates/blocks/components/ChatLayout/ChatLayoutPanelChat.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatLayout/ChatLayoutPanelChat.tsxrename to packages/cli/assets/templates/blocks/components/ChatLayout/ChatLayoutPanelChat.tsxdiff --git a/packages/cli/templates/blocks/components/ChatLayout/ChatLayoutShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatLayout/ChatLayoutShowcase.doc.mjssimilarity index 79%rename from packages/cli/templates/blocks/components/ChatLayout/ChatLayoutShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatLayout/ChatLayoutShowcase.doc.mjsindex cce20bf138..0dfc14576b 100644--- a/packages/cli/templates/blocks/components/ChatLayout/ChatLayoutShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatLayout/ChatLayoutShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatLayout',diff --git a/packages/cli/templates/blocks/components/ChatLayout/ChatLayoutShowcase.tsx b/packages/cli/assets/templates/blocks/components/ChatLayout/ChatLayoutShowcase.tsxsimilarity index 90%rename from packages/cli/templates/blocks/components/ChatLayout/ChatLayoutShowcase.tsxrename to packages/cli/assets/templates/blocks/components/ChatLayout/ChatLayoutShowcase.tsxindex 00f8791f7e..3e22a1aec4 100644--- a/packages/cli/templates/blocks/components/ChatLayout/ChatLayoutShowcase.tsx+++ b/packages/cli/assets/templates/blocks/components/ChatLayout/ChatLayoutShowcase.tsx@@ -19,10 +19,7 @@ export default function ChatLayoutShowcase() {<VStack width={450}><ChatLayoutcomposer={- <ChatComposer- onSubmit={() => {}}- placeholder="Ask something..."- />+ <ChatComposer onSubmit={() => {}} placeholder="Ask something..." />}><ChatMessageList><ChatMessage sender="user">diff --git a/packages/cli/templates/blocks/components/ChatLayoutScrollButton/ChatLayoutScrollButtonLabels.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatLayoutScrollButton/ChatLayoutScrollButtonLabels.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/ChatLayoutScrollButton/ChatLayoutScrollButtonLabels.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatLayoutScrollButton/ChatLayoutScrollButtonLabels.doc.mjsindex 3563d85ef1..da0a0312bf 100644--- a/packages/cli/templates/blocks/components/ChatLayoutScrollButton/ChatLayoutScrollButtonLabels.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatLayoutScrollButton/ChatLayoutScrollButtonLabels.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatLayoutScrollButton',diff --git a/packages/cli/templates/blocks/components/ChatLayoutScrollButton/ChatLayoutScrollButtonLabels.tsx b/packages/cli/assets/templates/blocks/components/ChatLayoutScrollButton/ChatLayoutScrollButtonLabels.tsxsimilarity index 88%rename from packages/cli/templates/blocks/components/ChatLayoutScrollButton/ChatLayoutScrollButtonLabels.tsxrename to packages/cli/assets/templates/blocks/components/ChatLayoutScrollButton/ChatLayoutScrollButtonLabels.tsxindex 465d0d0a0d..64a3dc5876 100644--- a/packages/cli/templates/blocks/components/ChatLayoutScrollButton/ChatLayoutScrollButtonLabels.tsx+++ b/packages/cli/assets/templates/blocks/components/ChatLayoutScrollButton/ChatLayoutScrollButtonLabels.tsx@@ -13,10 +13,7 @@ export default function ChatLayoutScrollButtonLabels() {Labels expand the button to give context</Text><Stack direction="vertical" gap={3}>- <ChatLayoutScrollButton- isVisible={true}- onClick={() => {}}- />+ <ChatLayoutScrollButton isVisible={true} onClick={() => {}} /><ChatLayoutScrollButtonisVisible={true}label="New messages"diff --git a/packages/cli/templates/blocks/components/ChatLayoutScrollButton/ChatLayoutScrollButtonStates.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatLayoutScrollButton/ChatLayoutScrollButtonStates.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/ChatLayoutScrollButton/ChatLayoutScrollButtonStates.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatLayoutScrollButton/ChatLayoutScrollButtonStates.doc.mjsindex 34e3b7e8a5..92da665180 100644--- a/packages/cli/templates/blocks/components/ChatLayoutScrollButton/ChatLayoutScrollButtonStates.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatLayoutScrollButton/ChatLayoutScrollButtonStates.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatLayoutScrollButton',diff --git a/packages/cli/templates/blocks/components/ChatLayoutScrollButton/ChatLayoutScrollButtonStates.tsx b/packages/cli/assets/templates/blocks/components/ChatLayoutScrollButton/ChatLayoutScrollButtonStates.tsxsimilarity index 83%rename from packages/cli/templates/blocks/components/ChatLayoutScrollButton/ChatLayoutScrollButtonStates.tsxrename to packages/cli/assets/templates/blocks/components/ChatLayoutScrollButton/ChatLayoutScrollButtonStates.tsxindex 21978120d9..63d8426915 100644--- a/packages/cli/templates/blocks/components/ChatLayoutScrollButton/ChatLayoutScrollButtonStates.tsx+++ b/packages/cli/assets/templates/blocks/components/ChatLayoutScrollButton/ChatLayoutScrollButtonStates.tsx@@ -13,19 +13,13 @@ export default function ChatLayoutScrollButtonStates() {<Text type="supporting" color="secondary">Hidden (user is at bottom)</Text>- <ChatLayoutScrollButton- isVisible={false}- onClick={() => {}}- />+ <ChatLayoutScrollButton isVisible={false} onClick={() => {}} /></Stack><Stack direction="vertical" gap={1}><Text type="supporting" color="secondary">Visible (user scrolled up)</Text>- <ChatLayoutScrollButton- isVisible={true}- onClick={() => {}}- />+ <ChatLayoutScrollButton isVisible={true} onClick={() => {}} /></Stack><Stack direction="vertical" gap={1}><Text type="supporting" color="secondary">diff --git a/packages/cli/templates/blocks/components/ChatMessage/ChatMessageAvatarName.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatMessage/ChatMessageAvatarName.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/ChatMessage/ChatMessageAvatarName.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatMessage/ChatMessageAvatarName.doc.mjsindex b5246d5252..dfd6d07efb 100644--- a/packages/cli/templates/blocks/components/ChatMessage/ChatMessageAvatarName.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatMessage/ChatMessageAvatarName.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatMessage',diff --git a/packages/cli/templates/blocks/components/ChatMessage/ChatMessageAvatarName.tsx b/packages/cli/assets/templates/blocks/components/ChatMessage/ChatMessageAvatarName.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatMessage/ChatMessageAvatarName.tsxrename to packages/cli/assets/templates/blocks/components/ChatMessage/ChatMessageAvatarName.tsxdiff --git a/packages/cli/templates/blocks/components/ChatMessage/ChatMessageGhost.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatMessage/ChatMessageGhost.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/ChatMessage/ChatMessageGhost.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatMessage/ChatMessageGhost.doc.mjsindex 81e0d4be0a..07f16d5d74 100644--- a/packages/cli/templates/blocks/components/ChatMessage/ChatMessageGhost.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatMessage/ChatMessageGhost.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatMessage',diff --git a/packages/cli/templates/blocks/components/ChatMessage/ChatMessageGhost.tsx b/packages/cli/assets/templates/blocks/components/ChatMessage/ChatMessageGhost.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatMessage/ChatMessageGhost.tsxrename to packages/cli/assets/templates/blocks/components/ChatMessage/ChatMessageGhost.tsxdiff --git a/packages/cli/templates/blocks/components/ChatMessage/ChatMessageMultiBubble.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatMessage/ChatMessageMultiBubble.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/ChatMessage/ChatMessageMultiBubble.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatMessage/ChatMessageMultiBubble.doc.mjsindex 0c78b6bdf2..5b16e0daf2 100644--- a/packages/cli/templates/blocks/components/ChatMessage/ChatMessageMultiBubble.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatMessage/ChatMessageMultiBubble.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatMessage',diff --git a/packages/cli/templates/blocks/components/ChatMessage/ChatMessageMultiBubble.tsx b/packages/cli/assets/templates/blocks/components/ChatMessage/ChatMessageMultiBubble.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatMessage/ChatMessageMultiBubble.tsxrename to packages/cli/assets/templates/blocks/components/ChatMessage/ChatMessageMultiBubble.tsxdiff --git a/packages/cli/templates/blocks/components/ChatMessage/ChatMessageShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatMessage/ChatMessageShowcase.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/ChatMessage/ChatMessageShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatMessage/ChatMessageShowcase.doc.mjsindex 30b06c7476..ad897a5c86 100644--- a/packages/cli/templates/blocks/components/ChatMessage/ChatMessageShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatMessage/ChatMessageShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatMessage',diff --git a/packages/cli/templates/blocks/components/ChatMessage/ChatMessageShowcase.tsx b/packages/cli/assets/templates/blocks/components/ChatMessage/ChatMessageShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatMessage/ChatMessageShowcase.tsxrename to packages/cli/assets/templates/blocks/components/ChatMessage/ChatMessageShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleDensity.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleDensity.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleDensity.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleDensity.doc.mjsindex d0263623c7..06dc5590ae 100644--- a/packages/cli/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleDensity.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleDensity.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatMessageBubble',diff --git a/packages/cli/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleDensity.tsx b/packages/cli/assets/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleDensity.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleDensity.tsxrename to packages/cli/assets/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleDensity.tsxdiff --git a/packages/cli/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleGrouping.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleGrouping.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleGrouping.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleGrouping.doc.mjsindex 687d41947f..ee5b8052e1 100644--- a/packages/cli/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleGrouping.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleGrouping.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatMessageBubble',diff --git a/packages/cli/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleGrouping.tsx b/packages/cli/assets/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleGrouping.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleGrouping.tsxrename to packages/cli/assets/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleGrouping.tsxdiff --git a/packages/cli/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleMetadata.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleMetadata.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleMetadata.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleMetadata.doc.mjsindex 9ca83acddc..277ca55041 100644--- a/packages/cli/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleMetadata.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleMetadata.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatMessageBubble',diff --git a/packages/cli/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleMetadata.tsx b/packages/cli/assets/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleMetadata.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleMetadata.tsxrename to packages/cli/assets/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleMetadata.tsxdiff --git a/packages/cli/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleShowcase.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleShowcase.doc.mjsindex 93e5593230..560309c668 100644--- a/packages/cli/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatMessageBubble',diff --git a/packages/cli/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleShowcase.tsx b/packages/cli/assets/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleShowcase.tsxrename to packages/cli/assets/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleVariants.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleVariants.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleVariants.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleVariants.doc.mjsindex c7c1de789c..16be6211ef 100644--- a/packages/cli/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleVariants.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleVariants.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatMessageBubble',diff --git a/packages/cli/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleVariants.tsx b/packages/cli/assets/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleVariants.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleVariants.tsxrename to packages/cli/assets/templates/blocks/components/ChatMessageBubble/ChatMessageBubbleVariants.tsxdiff --git a/packages/cli/templates/blocks/components/ChatMessageList/ChatMessageListDensity.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatMessageList/ChatMessageListDensity.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/ChatMessageList/ChatMessageListDensity.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatMessageList/ChatMessageListDensity.doc.mjsindex a9c36346ae..dcabff1b94 100644--- a/packages/cli/templates/blocks/components/ChatMessageList/ChatMessageListDensity.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatMessageList/ChatMessageListDensity.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatMessageList',diff --git a/packages/cli/templates/blocks/components/ChatMessageList/ChatMessageListDensity.tsx b/packages/cli/assets/templates/blocks/components/ChatMessageList/ChatMessageListDensity.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatMessageList/ChatMessageListDensity.tsxrename to packages/cli/assets/templates/blocks/components/ChatMessageList/ChatMessageListDensity.tsxdiff --git a/packages/cli/templates/blocks/components/ChatMessageList/ChatMessageListFullFeatured.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatMessageList/ChatMessageListFullFeatured.doc.mjssimilarity index 89%rename from packages/cli/templates/blocks/components/ChatMessageList/ChatMessageListFullFeatured.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatMessageList/ChatMessageListFullFeatured.doc.mjsindex 7c743ca3ed..6781d42dfe 100644--- a/packages/cli/templates/blocks/components/ChatMessageList/ChatMessageListFullFeatured.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatMessageList/ChatMessageListFullFeatured.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatMessageList',diff --git a/packages/cli/templates/blocks/components/ChatMessageList/ChatMessageListFullFeatured.tsx b/packages/cli/assets/templates/blocks/components/ChatMessageList/ChatMessageListFullFeatured.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatMessageList/ChatMessageListFullFeatured.tsxrename to packages/cli/assets/templates/blocks/components/ChatMessageList/ChatMessageListFullFeatured.tsxdiff --git a/packages/cli/templates/blocks/components/ChatMessageList/ChatMessageListShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatMessageList/ChatMessageListShowcase.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/ChatMessageList/ChatMessageListShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatMessageList/ChatMessageListShowcase.doc.mjsindex 7a63377e8b..663839f2fd 100644--- a/packages/cli/templates/blocks/components/ChatMessageList/ChatMessageListShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatMessageList/ChatMessageListShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatMessageList',diff --git a/packages/cli/templates/blocks/components/ChatMessageList/ChatMessageListShowcase.tsx b/packages/cli/assets/templates/blocks/components/ChatMessageList/ChatMessageListShowcase.tsxsimilarity index 94%rename from packages/cli/templates/blocks/components/ChatMessageList/ChatMessageListShowcase.tsxrename to packages/cli/assets/templates/blocks/components/ChatMessageList/ChatMessageListShowcase.tsxindex e27d32faca..ea77eb9247 100644--- a/packages/cli/templates/blocks/components/ChatMessageList/ChatMessageListShowcase.tsx+++ b/packages/cli/assets/templates/blocks/components/ChatMessageList/ChatMessageListShowcase.tsx@@ -16,9 +16,7 @@ export default function ChatMessageListShowcase() {return (<VStack style={{maxWidth: 600, height: '100%'}}><ChatMessageList density="balanced">- <ChatSystemMessage variant="divider">- March 15, 2026- </ChatSystemMessage>+ <ChatSystemMessage variant="divider">March 15, 2026</ChatSystemMessage><ChatMessage sender="user"><ChatMessageBubblediff --git a/packages/cli/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataFooter.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataFooter.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataFooter.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataFooter.doc.mjsindex fbba106a7f..6f8ac21288 100644--- a/packages/cli/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataFooter.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataFooter.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatMessageMetadata',diff --git a/packages/cli/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataFooter.tsx b/packages/cli/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataFooter.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataFooter.tsxrename to packages/cli/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataFooter.tsxdiff --git a/packages/cli/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataShowcase.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataShowcase.doc.mjsindex 7aae93946d..0dc188a6f3 100644--- a/packages/cli/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatMessageMetadata',diff --git a/packages/cli/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataShowcase.tsx b/packages/cli/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataShowcase.tsxsimilarity index 99%rename from packages/cli/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataShowcase.tsxrename to packages/cli/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataShowcase.tsxindex bddd2e2ef1..59e469a797 100644--- a/packages/cli/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataShowcase.tsx+++ b/packages/cli/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataShowcase.tsx@@ -112,8 +112,8 @@ export default function ChatMessageMetadataShowcase() {}/>}>- The canary at 11:42 AM caused a memory spike. Rolled back- at 11:58 AM.+ The canary at 11:42 AM caused a memory spike. Rolled back at 11:58+ AM.</ChatMessageBubble></ChatMessage></ChatMessageList>diff --git a/packages/cli/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataStatus.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataStatus.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataStatus.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataStatus.doc.mjsindex 4ac69d8ff1..1764afc206 100644--- a/packages/cli/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataStatus.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataStatus.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatMessageMetadata',diff --git a/packages/cli/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataStatus.tsx b/packages/cli/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataStatus.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataStatus.tsxrename to packages/cli/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataStatus.tsxdiff --git a/packages/cli/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataTimestamp.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataTimestamp.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataTimestamp.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataTimestamp.doc.mjsindex 15437becf7..3259d772a3 100644--- a/packages/cli/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataTimestamp.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataTimestamp.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatMessageMetadata',diff --git a/packages/cli/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataTimestamp.tsx b/packages/cli/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataTimestamp.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataTimestamp.tsxrename to packages/cli/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataTimestamp.tsxdiff --git a/packages/cli/templates/blocks/components/ChatSendButton/ChatSendButtonCustomIcon.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatSendButton/ChatSendButtonCustomIcon.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/ChatSendButton/ChatSendButtonCustomIcon.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatSendButton/ChatSendButtonCustomIcon.doc.mjsindex aff5cd4775..365d534248 100644--- a/packages/cli/templates/blocks/components/ChatSendButton/ChatSendButtonCustomIcon.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatSendButton/ChatSendButtonCustomIcon.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatSendButton',diff --git a/packages/cli/templates/blocks/components/ChatSendButton/ChatSendButtonCustomIcon.tsx b/packages/cli/assets/templates/blocks/components/ChatSendButton/ChatSendButtonCustomIcon.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatSendButton/ChatSendButtonCustomIcon.tsxrename to packages/cli/assets/templates/blocks/components/ChatSendButton/ChatSendButtonCustomIcon.tsxdiff --git a/packages/cli/templates/blocks/components/ChatSendButton/ChatSendButtonInComposer.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatSendButton/ChatSendButtonInComposer.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/ChatSendButton/ChatSendButtonInComposer.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatSendButton/ChatSendButtonInComposer.doc.mjsindex afb083f8f8..c79ae46836 100644--- a/packages/cli/templates/blocks/components/ChatSendButton/ChatSendButtonInComposer.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatSendButton/ChatSendButtonInComposer.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatSendButton',diff --git a/packages/cli/templates/blocks/components/ChatSendButton/ChatSendButtonInComposer.tsx b/packages/cli/assets/templates/blocks/components/ChatSendButton/ChatSendButtonInComposer.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatSendButton/ChatSendButtonInComposer.tsxrename to packages/cli/assets/templates/blocks/components/ChatSendButton/ChatSendButtonInComposer.tsxdiff --git a/packages/cli/templates/blocks/components/ChatSendButton/ChatSendButtonShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatSendButton/ChatSendButtonShowcase.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/ChatSendButton/ChatSendButtonShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatSendButton/ChatSendButtonShowcase.doc.mjsindex 046d2e58be..b48a195e1a 100644--- a/packages/cli/templates/blocks/components/ChatSendButton/ChatSendButtonShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatSendButton/ChatSendButtonShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatSendButton',diff --git a/packages/cli/templates/blocks/components/ChatSendButton/ChatSendButtonShowcase.tsx b/packages/cli/assets/templates/blocks/components/ChatSendButton/ChatSendButtonShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatSendButton/ChatSendButtonShowcase.tsxrename to packages/cli/assets/templates/blocks/components/ChatSendButton/ChatSendButtonShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/ChatSendButton/ChatSendButtonStates.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatSendButton/ChatSendButtonStates.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/ChatSendButton/ChatSendButtonStates.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatSendButton/ChatSendButtonStates.doc.mjsindex 8ad5bdb77f..6e1632d31d 100644--- a/packages/cli/templates/blocks/components/ChatSendButton/ChatSendButtonStates.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatSendButton/ChatSendButtonStates.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatSendButton',diff --git a/packages/cli/templates/blocks/components/ChatSendButton/ChatSendButtonStates.tsx b/packages/cli/assets/templates/blocks/components/ChatSendButton/ChatSendButtonStates.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatSendButton/ChatSendButtonStates.tsxrename to packages/cli/assets/templates/blocks/components/ChatSendButton/ChatSendButtonStates.tsxdiff --git a/packages/cli/templates/blocks/components/ChatSystemMessage/ChatSystemMessageShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageShowcase.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/ChatSystemMessage/ChatSystemMessageShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageShowcase.doc.mjsindex acb1a2825e..4ade9dfdf1 100644--- a/packages/cli/templates/blocks/components/ChatSystemMessage/ChatSystemMessageShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatSystemMessage',diff --git a/packages/cli/templates/blocks/components/ChatSystemMessage/ChatSystemMessageShowcase.tsx b/packages/cli/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageShowcase.tsxsimilarity index 71%rename from packages/cli/templates/blocks/components/ChatSystemMessage/ChatSystemMessageShowcase.tsxrename to packages/cli/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageShowcase.tsxindex a6f20c1b25..a1f9991037 100644--- a/packages/cli/templates/blocks/components/ChatSystemMessage/ChatSystemMessageShowcase.tsx+++ b/packages/cli/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageShowcase.tsx@@ -7,15 +7,11 @@ import {ChatMessageList, ChatSystemMessage} from '@astryxdesign/core/Chat';export default function ChatSystemMessageShowcase() {return (<ChatMessageList>- <ChatSystemMessage variant="divider">- March 15, 2026- </ChatSystemMessage>+ <ChatSystemMessage variant="divider">March 15, 2026</ChatSystemMessage><ChatSystemMessage>Alex joined the conversation</ChatSystemMessage><ChatSystemMessage>Agent is thinking…</ChatSystemMessage><ChatSystemMessage variant="divider">Today</ChatSystemMessage>- <ChatSystemMessage>- Conversation marked as resolved- </ChatSystemMessage>+ <ChatSystemMessage>Conversation marked as resolved</ChatSystemMessage></ChatMessageList>);}diff --git a/packages/cli/templates/blocks/components/ChatSystemMessage/ChatSystemMessageStatusUpdates.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageStatusUpdates.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/ChatSystemMessage/ChatSystemMessageStatusUpdates.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageStatusUpdates.doc.mjsindex 4acdaebd0d..94bf153308 100644--- a/packages/cli/templates/blocks/components/ChatSystemMessage/ChatSystemMessageStatusUpdates.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageStatusUpdates.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatSystemMessage',diff --git a/packages/cli/templates/blocks/components/ChatSystemMessage/ChatSystemMessageStatusUpdates.tsx b/packages/cli/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageStatusUpdates.tsxsimilarity index 83%rename from packages/cli/templates/blocks/components/ChatSystemMessage/ChatSystemMessageStatusUpdates.tsxrename to packages/cli/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageStatusUpdates.tsxindex a40634f301..f6c7f14f1e 100644--- a/packages/cli/templates/blocks/components/ChatSystemMessage/ChatSystemMessageStatusUpdates.tsx+++ b/packages/cli/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageStatusUpdates.tsx@@ -13,18 +13,14 @@ import {export default function ChatSystemMessageStatusUpdates() {return (<ChatMessageList>- <ChatSystemMessage variant="divider">- March 14, 2026- </ChatSystemMessage>+ <ChatSystemMessage variant="divider">March 14, 2026</ChatSystemMessage><ChatSystemMessage icon={<Icon icon={UserPlusIcon} />}>Sarah Chen joined the conversation</ChatSystemMessage><ChatSystemMessage>Topic changed to "Q2 Launch Planning"</ChatSystemMessage>- <ChatSystemMessage variant="divider">- March 15, 2026- </ChatSystemMessage>+ <ChatSystemMessage variant="divider">March 15, 2026</ChatSystemMessage><ChatSystemMessage icon={<Icon icon={UserMinusIcon} />}>Alex Rivera left the conversation</ChatSystemMessage>diff --git a/packages/cli/templates/blocks/components/ChatSystemMessage/ChatSystemMessageVariants.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageVariants.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/ChatSystemMessage/ChatSystemMessageVariants.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageVariants.doc.mjsindex ff31e8d6c9..49db5bcdd0 100644--- a/packages/cli/templates/blocks/components/ChatSystemMessage/ChatSystemMessageVariants.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageVariants.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatSystemMessage',diff --git a/packages/cli/templates/blocks/components/ChatSystemMessage/ChatSystemMessageVariants.tsx b/packages/cli/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageVariants.tsxsimilarity index 81%rename from packages/cli/templates/blocks/components/ChatSystemMessage/ChatSystemMessageVariants.tsxrename to packages/cli/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageVariants.tsxindex ff0cdfa997..7647b60a2f 100644--- a/packages/cli/templates/blocks/components/ChatSystemMessage/ChatSystemMessageVariants.tsx+++ b/packages/cli/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageVariants.tsx@@ -14,12 +14,8 @@ export default function ChatSystemMessageVariants() {Default</Text><ChatMessageList>- <ChatSystemMessage>- Alex joined the conversation- </ChatSystemMessage>- <ChatSystemMessage>- Conversation marked as resolved- </ChatSystemMessage>+ <ChatSystemMessage>Alex joined the conversation</ChatSystemMessage>+ <ChatSystemMessage>Conversation marked as resolved</ChatSystemMessage></ChatMessageList></Stack><Stack direction="vertical" gap={1}>diff --git a/packages/cli/templates/blocks/components/ChatSystemMessage/ChatSystemMessageWithIcon.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageWithIcon.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/ChatSystemMessage/ChatSystemMessageWithIcon.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageWithIcon.doc.mjsindex b0f3d59bf9..0773a946f2 100644--- a/packages/cli/templates/blocks/components/ChatSystemMessage/ChatSystemMessageWithIcon.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageWithIcon.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatSystemMessage',diff --git a/packages/cli/templates/blocks/components/ChatSystemMessage/ChatSystemMessageWithIcon.tsx b/packages/cli/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageWithIcon.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatSystemMessage/ChatSystemMessageWithIcon.tsxrename to packages/cli/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageWithIcon.tsxdiff --git a/packages/cli/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextBasic.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextBasic.doc.mjsindex 853c273c2a..7f0badc3cf 100644--- a/packages/cli/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatTokenizedText',diff --git a/packages/cli/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextBasic.tsx b/packages/cli/assets/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextBasic.tsxrename to packages/cli/assets/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextBasic.tsxdiff --git a/packages/cli/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextColors.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextColors.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextColors.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextColors.doc.mjsindex a4175e56e1..8d24f5435c 100644--- a/packages/cli/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextColors.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextColors.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatTokenizedText',diff --git a/packages/cli/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextColors.tsx b/packages/cli/assets/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextColors.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextColors.tsxrename to packages/cli/assets/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextColors.tsxdiff --git a/packages/cli/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextShowcase.doc.mjssimilarity index 79%rename from packages/cli/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextShowcase.doc.mjsindex 48189bb1de..86abbfe7b7 100644--- a/packages/cli/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatTokenizedText',diff --git a/packages/cli/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextShowcase.tsx b/packages/cli/assets/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextShowcase.tsxrename to packages/cli/assets/templates/blocks/components/ChatTokenizedText/ChatTokenizedTextShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/ChatToolCalls/ChatToolCallsInteractiveToolCalls.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatToolCalls/ChatToolCallsInteractiveToolCalls.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/ChatToolCalls/ChatToolCallsInteractiveToolCalls.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatToolCalls/ChatToolCallsInteractiveToolCalls.doc.mjsindex d6dea50f8b..934779a40b 100644--- a/packages/cli/templates/blocks/components/ChatToolCalls/ChatToolCallsInteractiveToolCalls.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatToolCalls/ChatToolCallsInteractiveToolCalls.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatToolCalls',diff --git a/packages/cli/templates/blocks/components/ChatToolCalls/ChatToolCallsInteractiveToolCalls.tsx b/packages/cli/assets/templates/blocks/components/ChatToolCalls/ChatToolCallsInteractiveToolCalls.tsxsimilarity index 92%rename from packages/cli/templates/blocks/components/ChatToolCalls/ChatToolCallsInteractiveToolCalls.tsxrename to packages/cli/assets/templates/blocks/components/ChatToolCalls/ChatToolCallsInteractiveToolCalls.tsxindex be630d0ab9..9441060629 100644--- a/packages/cli/templates/blocks/components/ChatToolCalls/ChatToolCallsInteractiveToolCalls.tsx+++ b/packages/cli/assets/templates/blocks/components/ChatToolCalls/ChatToolCallsInteractiveToolCalls.tsx@@ -41,11 +41,7 @@ export default function ChatToolCallsInteractiveToolCalls() {additions: 6,deletions: 3,resultDetail: (- <CodeBlock- code={editDiff}- language="typescript"- maxHeight="50vh"- />+ <CodeBlock code={editDiff} language="typescript" maxHeight="50vh" />),},{diff --git a/packages/cli/templates/blocks/components/ChatToolCalls/ChatToolCallsShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatToolCalls/ChatToolCallsShowcase.doc.mjssimilarity index 79%rename from packages/cli/templates/blocks/components/ChatToolCalls/ChatToolCallsShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatToolCalls/ChatToolCallsShowcase.doc.mjsindex d15db5bcc9..af891d93f5 100644--- a/packages/cli/templates/blocks/components/ChatToolCalls/ChatToolCallsShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatToolCalls/ChatToolCallsShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatToolCalls',diff --git a/packages/cli/templates/blocks/components/ChatToolCalls/ChatToolCallsShowcase.tsx b/packages/cli/assets/templates/blocks/components/ChatToolCalls/ChatToolCallsShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatToolCalls/ChatToolCallsShowcase.tsxrename to packages/cli/assets/templates/blocks/components/ChatToolCalls/ChatToolCallsShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/ChatToolCalls/ChatToolCallsStatuses.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatToolCalls/ChatToolCallsStatuses.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/ChatToolCalls/ChatToolCallsStatuses.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatToolCalls/ChatToolCallsStatuses.doc.mjsindex 8b53c34348..e53a298ce4 100644--- a/packages/cli/templates/blocks/components/ChatToolCalls/ChatToolCallsStatuses.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatToolCalls/ChatToolCallsStatuses.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatToolCalls',diff --git a/packages/cli/templates/blocks/components/ChatToolCalls/ChatToolCallsStatuses.tsx b/packages/cli/assets/templates/blocks/components/ChatToolCalls/ChatToolCallsStatuses.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatToolCalls/ChatToolCallsStatuses.tsxrename to packages/cli/assets/templates/blocks/components/ChatToolCalls/ChatToolCallsStatuses.tsxdiff --git a/packages/cli/templates/blocks/components/ChatToolCalls/ChatToolCallsToolCallsWithNodes.doc.mjs b/packages/cli/assets/templates/blocks/components/ChatToolCalls/ChatToolCallsToolCallsWithNodes.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/ChatToolCalls/ChatToolCallsToolCallsWithNodes.doc.mjsrename to packages/cli/assets/templates/blocks/components/ChatToolCalls/ChatToolCallsToolCallsWithNodes.doc.mjsindex f83743e94c..06e3061c13 100644--- a/packages/cli/templates/blocks/components/ChatToolCalls/ChatToolCallsToolCallsWithNodes.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ChatToolCalls/ChatToolCallsToolCallsWithNodes.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ChatToolCalls',diff --git a/packages/cli/templates/blocks/components/ChatToolCalls/ChatToolCallsToolCallsWithNodes.tsx b/packages/cli/assets/templates/blocks/components/ChatToolCalls/ChatToolCallsToolCallsWithNodes.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ChatToolCalls/ChatToolCallsToolCallsWithNodes.tsxrename to packages/cli/assets/templates/blocks/components/ChatToolCalls/ChatToolCallsToolCallsWithNodes.tsxdiff --git a/packages/cli/templates/blocks/components/CheckboxInput/CheckboxInputBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/CheckboxInput/CheckboxInputBasic.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/CheckboxInput/CheckboxInputBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/CheckboxInput/CheckboxInputBasic.doc.mjsindex 09273b36ea..5e1ca32f36 100644--- a/packages/cli/templates/blocks/components/CheckboxInput/CheckboxInputBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CheckboxInput/CheckboxInputBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CheckboxInput',diff --git a/packages/cli/templates/blocks/components/CheckboxInput/CheckboxInputBasic.tsx b/packages/cli/assets/templates/blocks/components/CheckboxInput/CheckboxInputBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CheckboxInput/CheckboxInputBasic.tsxrename to packages/cli/assets/templates/blocks/components/CheckboxInput/CheckboxInputBasic.tsxdiff --git a/packages/cli/templates/blocks/components/CheckboxInput/CheckboxInputIndeterminateState.doc.mjs b/packages/cli/assets/templates/blocks/components/CheckboxInput/CheckboxInputIndeterminateState.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/CheckboxInput/CheckboxInputIndeterminateState.doc.mjsrename to packages/cli/assets/templates/blocks/components/CheckboxInput/CheckboxInputIndeterminateState.doc.mjsindex 981ea540ce..79cd8fcc99 100644--- a/packages/cli/templates/blocks/components/CheckboxInput/CheckboxInputIndeterminateState.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CheckboxInput/CheckboxInputIndeterminateState.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CheckboxInput',diff --git a/packages/cli/templates/blocks/components/CheckboxInput/CheckboxInputIndeterminateState.tsx b/packages/cli/assets/templates/blocks/components/CheckboxInput/CheckboxInputIndeterminateState.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CheckboxInput/CheckboxInputIndeterminateState.tsxrename to packages/cli/assets/templates/blocks/components/CheckboxInput/CheckboxInputIndeterminateState.tsxdiff --git a/packages/cli/templates/blocks/components/CheckboxInput/CheckboxInputShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/CheckboxInput/CheckboxInputShowcase.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/CheckboxInput/CheckboxInputShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/CheckboxInput/CheckboxInputShowcase.doc.mjsindex e7693190d9..93ed5bf1a1 100644--- a/packages/cli/templates/blocks/components/CheckboxInput/CheckboxInputShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CheckboxInput/CheckboxInputShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CheckboxInput',diff --git a/packages/cli/templates/blocks/components/CheckboxInput/CheckboxInputShowcase.tsx b/packages/cli/assets/templates/blocks/components/CheckboxInput/CheckboxInputShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CheckboxInput/CheckboxInputShowcase.tsxrename to packages/cli/assets/templates/blocks/components/CheckboxInput/CheckboxInputShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/CheckboxInput/CheckboxInputStatusVariations.doc.mjs b/packages/cli/assets/templates/blocks/components/CheckboxInput/CheckboxInputStatusVariations.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/CheckboxInput/CheckboxInputStatusVariations.doc.mjsrename to packages/cli/assets/templates/blocks/components/CheckboxInput/CheckboxInputStatusVariations.doc.mjsindex 629b066c32..bd0f11d553 100644--- a/packages/cli/templates/blocks/components/CheckboxInput/CheckboxInputStatusVariations.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CheckboxInput/CheckboxInputStatusVariations.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CheckboxInput',diff --git a/packages/cli/templates/blocks/components/CheckboxInput/CheckboxInputStatusVariations.tsx b/packages/cli/assets/templates/blocks/components/CheckboxInput/CheckboxInputStatusVariations.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CheckboxInput/CheckboxInputStatusVariations.tsxrename to packages/cli/assets/templates/blocks/components/CheckboxInput/CheckboxInputStatusVariations.tsxdiff --git a/packages/cli/templates/blocks/components/CheckboxList/CheckboxListSelectAllPattern.doc.mjs b/packages/cli/assets/templates/blocks/components/CheckboxList/CheckboxListSelectAllPattern.doc.mjssimilarity index 89%rename from packages/cli/templates/blocks/components/CheckboxList/CheckboxListSelectAllPattern.doc.mjsrename to packages/cli/assets/templates/blocks/components/CheckboxList/CheckboxListSelectAllPattern.doc.mjsindex 4a63a5b02a..9d6757c00d 100644--- a/packages/cli/templates/blocks/components/CheckboxList/CheckboxListSelectAllPattern.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CheckboxList/CheckboxListSelectAllPattern.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CheckboxList',diff --git a/packages/cli/templates/blocks/components/CheckboxList/CheckboxListSelectAllPattern.tsx b/packages/cli/assets/templates/blocks/components/CheckboxList/CheckboxListSelectAllPattern.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CheckboxList/CheckboxListSelectAllPattern.tsxrename to packages/cli/assets/templates/blocks/components/CheckboxList/CheckboxListSelectAllPattern.tsxdiff --git a/packages/cli/templates/blocks/components/CheckboxList/CheckboxListShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/CheckboxList/CheckboxListShowcase.doc.mjssimilarity index 79%rename from packages/cli/templates/blocks/components/CheckboxList/CheckboxListShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/CheckboxList/CheckboxListShowcase.doc.mjsindex c8e062d191..2f66de0c30 100644--- a/packages/cli/templates/blocks/components/CheckboxList/CheckboxListShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CheckboxList/CheckboxListShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CheckboxList',diff --git a/packages/cli/templates/blocks/components/CheckboxList/CheckboxListShowcase.tsx b/packages/cli/assets/templates/blocks/components/CheckboxList/CheckboxListShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CheckboxList/CheckboxListShowcase.tsxrename to packages/cli/assets/templates/blocks/components/CheckboxList/CheckboxListShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/CheckboxList/CheckboxListWithEndContent.doc.mjs b/packages/cli/assets/templates/blocks/components/CheckboxList/CheckboxListWithEndContent.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/CheckboxList/CheckboxListWithEndContent.doc.mjsrename to packages/cli/assets/templates/blocks/components/CheckboxList/CheckboxListWithEndContent.doc.mjsindex bff3698f19..cdd91400ae 100644--- a/packages/cli/templates/blocks/components/CheckboxList/CheckboxListWithEndContent.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CheckboxList/CheckboxListWithEndContent.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CheckboxList',diff --git a/packages/cli/templates/blocks/components/CheckboxList/CheckboxListWithEndContent.tsx b/packages/cli/assets/templates/blocks/components/CheckboxList/CheckboxListWithEndContent.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CheckboxList/CheckboxListWithEndContent.tsxrename to packages/cli/assets/templates/blocks/components/CheckboxList/CheckboxListWithEndContent.tsxdiff --git a/packages/cli/templates/blocks/components/CheckboxListItem/CheckboxListItemBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/CheckboxListItem/CheckboxListItemBasic.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/CheckboxListItem/CheckboxListItemBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/CheckboxListItem/CheckboxListItemBasic.doc.mjsindex 7b7af0e5ab..a6be65329f 100644--- a/packages/cli/templates/blocks/components/CheckboxListItem/CheckboxListItemBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CheckboxListItem/CheckboxListItemBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CheckboxListItem',diff --git a/packages/cli/templates/blocks/components/CheckboxListItem/CheckboxListItemBasic.tsx b/packages/cli/assets/templates/blocks/components/CheckboxListItem/CheckboxListItemBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CheckboxListItem/CheckboxListItemBasic.tsxrename to packages/cli/assets/templates/blocks/components/CheckboxListItem/CheckboxListItemBasic.tsxdiff --git a/packages/cli/templates/blocks/components/CheckboxListItem/CheckboxListItemShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/CheckboxListItem/CheckboxListItemShowcase.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/CheckboxListItem/CheckboxListItemShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/CheckboxListItem/CheckboxListItemShowcase.doc.mjsindex 0e30ccd164..495f75c8d9 100644--- a/packages/cli/templates/blocks/components/CheckboxListItem/CheckboxListItemShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CheckboxListItem/CheckboxListItemShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CheckboxListItem',diff --git a/packages/cli/templates/blocks/components/CheckboxListItem/CheckboxListItemShowcase.tsx b/packages/cli/assets/templates/blocks/components/CheckboxListItem/CheckboxListItemShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CheckboxListItem/CheckboxListItemShowcase.tsxrename to packages/cli/assets/templates/blocks/components/CheckboxListItem/CheckboxListItemShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Citation/CitationInlineText.doc.mjs b/packages/cli/assets/templates/blocks/components/Citation/CitationInlineText.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/Citation/CitationInlineText.doc.mjsrename to packages/cli/assets/templates/blocks/components/Citation/CitationInlineText.doc.mjsindex dbb9e500bb..aff0f61601 100644--- a/packages/cli/templates/blocks/components/Citation/CitationInlineText.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Citation/CitationInlineText.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Citation',diff --git a/packages/cli/templates/blocks/components/Citation/CitationInlineText.tsx b/packages/cli/assets/templates/blocks/components/Citation/CitationInlineText.tsxsimilarity index 89%rename from packages/cli/templates/blocks/components/Citation/CitationInlineText.tsxrename to packages/cli/assets/templates/blocks/components/Citation/CitationInlineText.tsxindex e0786dfb94..7e2f5b8b9d 100644--- a/packages/cli/templates/blocks/components/Citation/CitationInlineText.tsx+++ b/packages/cli/assets/templates/blocks/components/Citation/CitationInlineText.tsx@@ -18,7 +18,10 @@ export default function CitationInlineText() {/>. This approach was inspired by earlier functional UI frameworks<Citation- source={{title: 'Elm Architecture', url: 'https://guide.elm-lang.org/architecture/'}}+ source={{+ title: 'Elm Architecture',+ url: 'https://guide.elm-lang.org/architecture/',+ }}number={2}variant="number"/>diff --git a/packages/cli/templates/blocks/components/Citation/CitationShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Citation/CitationShowcase.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Citation/CitationShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Citation/CitationShowcase.doc.mjsindex da83240cd0..10ffe7a7b0 100644--- a/packages/cli/templates/blocks/components/Citation/CitationShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Citation/CitationShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Citation',diff --git a/packages/cli/templates/blocks/components/Citation/CitationShowcase.tsx b/packages/cli/assets/templates/blocks/components/Citation/CitationShowcase.tsxsimilarity index 86%rename from packages/cli/templates/blocks/components/Citation/CitationShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Citation/CitationShowcase.tsxindex d9b1da4f51..f5564efadc 100644--- a/packages/cli/templates/blocks/components/Citation/CitationShowcase.tsx+++ b/packages/cli/assets/templates/blocks/components/Citation/CitationShowcase.tsx@@ -41,12 +41,18 @@ export default function CitationShowcase() {</Text><Stack direction="horizontal" gap={2}><Citation- source={{title: 'TypeScript Handbook', url: 'https://typescriptlang.org'}}+ source={{+ title: 'TypeScript Handbook',+ url: 'https://typescriptlang.org',+ }}number={1}variant="number"/><Citation- source={{title: 'MDN Web Docs', url: 'https://developer.mozilla.org'}}+ source={{+ title: 'MDN Web Docs',+ url: 'https://developer.mozilla.org',+ }}number={2}variant="number"/>diff --git a/packages/cli/templates/blocks/components/Citation/CitationSourceList.doc.mjs b/packages/cli/assets/templates/blocks/components/Citation/CitationSourceList.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Citation/CitationSourceList.doc.mjsrename to packages/cli/assets/templates/blocks/components/Citation/CitationSourceList.doc.mjsindex ccb9f32ab5..da52b7a88f 100644--- a/packages/cli/templates/blocks/components/Citation/CitationSourceList.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Citation/CitationSourceList.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Citation',diff --git a/packages/cli/templates/blocks/components/Citation/CitationSourceList.tsx b/packages/cli/assets/templates/blocks/components/Citation/CitationSourceList.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Citation/CitationSourceList.tsxrename to packages/cli/assets/templates/blocks/components/Citation/CitationSourceList.tsxdiff --git a/packages/cli/templates/blocks/components/Code/CodeAcrossTextSizes.doc.mjs b/packages/cli/assets/templates/blocks/components/Code/CodeAcrossTextSizes.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Code/CodeAcrossTextSizes.doc.mjsrename to packages/cli/assets/templates/blocks/components/Code/CodeAcrossTextSizes.doc.mjsindex e9e55835d4..f89df407b8 100644--- a/packages/cli/templates/blocks/components/Code/CodeAcrossTextSizes.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Code/CodeAcrossTextSizes.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Code',diff --git a/packages/cli/templates/blocks/components/Code/CodeAcrossTextSizes.tsx b/packages/cli/assets/templates/blocks/components/Code/CodeAcrossTextSizes.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Code/CodeAcrossTextSizes.tsxrename to packages/cli/assets/templates/blocks/components/Code/CodeAcrossTextSizes.tsxdiff --git a/packages/cli/templates/blocks/components/Code/CodeInlineInParagraph.doc.mjs b/packages/cli/assets/templates/blocks/components/Code/CodeInlineInParagraph.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Code/CodeInlineInParagraph.doc.mjsrename to packages/cli/assets/templates/blocks/components/Code/CodeInlineInParagraph.doc.mjsindex 57f6598c61..16c92dec52 100644--- a/packages/cli/templates/blocks/components/Code/CodeInlineInParagraph.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Code/CodeInlineInParagraph.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Code',diff --git a/packages/cli/assets/templates/blocks/components/Code/CodeInlineInParagraph.tsx b/packages/cli/assets/templates/blocks/components/Code/CodeInlineInParagraph.tsxnew file mode 100644index 0000000000..4f64d6bc24--- /dev/null+++ b/packages/cli/assets/templates/blocks/components/Code/CodeInlineInParagraph.tsx@@ -0,0 +1,16 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++'use client';++import {Code} from '@astryxdesign/core/CodeBlock';+import {Text} from '@astryxdesign/core/Text';++export default function CodeInlineInParagraph() {+ return (+ <Text type="body" style={{maxWidth: 400}}>+ Use <Code>useState</Code>for local state and <Code>useEffect</Code>for+ side effects. If you need shared state across components, consider{' '}+ <Code>useContext</Code>or a state management library.+ </Text>+ );+}diff --git a/packages/cli/templates/blocks/components/Code/CodeShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Code/CodeShowcase.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Code/CodeShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Code/CodeShowcase.doc.mjsindex 768b8898da..62a68d1c84 100644--- a/packages/cli/templates/blocks/components/Code/CodeShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Code/CodeShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Code',diff --git a/packages/cli/templates/blocks/components/Code/CodeShowcase.tsx b/packages/cli/assets/templates/blocks/components/Code/CodeShowcase.tsxsimilarity index 74%rename from packages/cli/templates/blocks/components/Code/CodeShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Code/CodeShowcase.tsxindex d30acca572..7c25b4b22b 100644--- a/packages/cli/templates/blocks/components/Code/CodeShowcase.tsx+++ b/packages/cli/assets/templates/blocks/components/Code/CodeShowcase.tsx@@ -13,9 +13,8 @@ export default function CodeShowcase() {Run <Code>npm install @astryxdesign/core</Code> to add the package.</Text><Text type="body">- Use the <Code>variant</Code> prop to switch between{' '}- <Code>primary</Code>, <Code>secondary</Code>, and{' '}- <Code>ghost</Code> styles.+ Use the <Code>variant</Code> prop to switch between <Code>primary</Code>+ , <Code>secondary</Code>, and <Code>ghost</Code> styles.</Text></Stack>);diff --git a/packages/cli/templates/blocks/components/Code/CodeVariousContent.doc.mjs b/packages/cli/assets/templates/blocks/components/Code/CodeVariousContent.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Code/CodeVariousContent.doc.mjsrename to packages/cli/assets/templates/blocks/components/Code/CodeVariousContent.doc.mjsindex b5d88bdd81..26d5decce7 100644--- a/packages/cli/templates/blocks/components/Code/CodeVariousContent.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Code/CodeVariousContent.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Code',diff --git a/packages/cli/templates/blocks/components/Code/CodeVariousContent.tsx b/packages/cli/assets/templates/blocks/components/Code/CodeVariousContent.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Code/CodeVariousContent.tsxrename to packages/cli/assets/templates/blocks/components/Code/CodeVariousContent.tsxdiff --git a/packages/cli/templates/blocks/components/CodeBlock/CodeBlockBashCommand.doc.mjs b/packages/cli/assets/templates/blocks/components/CodeBlock/CodeBlockBashCommand.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/CodeBlock/CodeBlockBashCommand.doc.mjsrename to packages/cli/assets/templates/blocks/components/CodeBlock/CodeBlockBashCommand.doc.mjsindex 91aaac8005..148bad998a 100644--- a/packages/cli/templates/blocks/components/CodeBlock/CodeBlockBashCommand.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CodeBlock/CodeBlockBashCommand.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CodeBlock',diff --git a/packages/cli/templates/blocks/components/CodeBlock/CodeBlockBashCommand.tsx b/packages/cli/assets/templates/blocks/components/CodeBlock/CodeBlockBashCommand.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CodeBlock/CodeBlockBashCommand.tsxrename to packages/cli/assets/templates/blocks/components/CodeBlock/CodeBlockBashCommand.tsxdiff --git a/packages/cli/templates/blocks/components/CodeBlock/CodeBlockHighlightedLines.doc.mjs b/packages/cli/assets/templates/blocks/components/CodeBlock/CodeBlockHighlightedLines.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/CodeBlock/CodeBlockHighlightedLines.doc.mjsrename to packages/cli/assets/templates/blocks/components/CodeBlock/CodeBlockHighlightedLines.doc.mjsindex 7962eca5b0..1b019c097e 100644--- a/packages/cli/templates/blocks/components/CodeBlock/CodeBlockHighlightedLines.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CodeBlock/CodeBlockHighlightedLines.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CodeBlock',diff --git a/packages/cli/templates/blocks/components/CodeBlock/CodeBlockHighlightedLines.tsx b/packages/cli/assets/templates/blocks/components/CodeBlock/CodeBlockHighlightedLines.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CodeBlock/CodeBlockHighlightedLines.tsxrename to packages/cli/assets/templates/blocks/components/CodeBlock/CodeBlockHighlightedLines.tsxdiff --git a/packages/cli/templates/blocks/components/CodeBlock/CodeBlockJSONConfig.doc.mjs b/packages/cli/assets/templates/blocks/components/CodeBlock/CodeBlockJSONConfig.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/CodeBlock/CodeBlockJSONConfig.doc.mjsrename to packages/cli/assets/templates/blocks/components/CodeBlock/CodeBlockJSONConfig.doc.mjsindex b56345251d..0838a6359b 100644--- a/packages/cli/templates/blocks/components/CodeBlock/CodeBlockJSONConfig.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CodeBlock/CodeBlockJSONConfig.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CodeBlock',diff --git a/packages/cli/templates/blocks/components/CodeBlock/CodeBlockJSONConfig.tsx b/packages/cli/assets/templates/blocks/components/CodeBlock/CodeBlockJSONConfig.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CodeBlock/CodeBlockJSONConfig.tsxrename to packages/cli/assets/templates/blocks/components/CodeBlock/CodeBlockJSONConfig.tsxdiff --git a/packages/cli/templates/blocks/components/CodeBlock/CodeBlockScrollableBlock.doc.mjs b/packages/cli/assets/templates/blocks/components/CodeBlock/CodeBlockScrollableBlock.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/CodeBlock/CodeBlockScrollableBlock.doc.mjsrename to packages/cli/assets/templates/blocks/components/CodeBlock/CodeBlockScrollableBlock.doc.mjsindex a880a8b085..8a3b34371c 100644--- a/packages/cli/templates/blocks/components/CodeBlock/CodeBlockScrollableBlock.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CodeBlock/CodeBlockScrollableBlock.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CodeBlock',diff --git a/packages/cli/templates/blocks/components/CodeBlock/CodeBlockScrollableBlock.tsx b/packages/cli/assets/templates/blocks/components/CodeBlock/CodeBlockScrollableBlock.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CodeBlock/CodeBlockScrollableBlock.tsxrename to packages/cli/assets/templates/blocks/components/CodeBlock/CodeBlockScrollableBlock.tsxdiff --git a/packages/cli/templates/blocks/components/CodeBlock/CodeBlockShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/CodeBlock/CodeBlockShowcase.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/CodeBlock/CodeBlockShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/CodeBlock/CodeBlockShowcase.doc.mjsindex 3a8863dfee..793ae909d4 100644--- a/packages/cli/templates/blocks/components/CodeBlock/CodeBlockShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CodeBlock/CodeBlockShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CodeBlock',diff --git a/packages/cli/templates/blocks/components/CodeBlock/CodeBlockShowcase.tsx b/packages/cli/assets/templates/blocks/components/CodeBlock/CodeBlockShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CodeBlock/CodeBlockShowcase.tsxrename to packages/cli/assets/templates/blocks/components/CodeBlock/CodeBlockShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/CodeBlock/CodeBlockTerminal.doc.mjs b/packages/cli/assets/templates/blocks/components/CodeBlock/CodeBlockTerminal.doc.mjssimilarity index 89%rename from packages/cli/templates/blocks/components/CodeBlock/CodeBlockTerminal.doc.mjsrename to packages/cli/assets/templates/blocks/components/CodeBlock/CodeBlockTerminal.doc.mjsindex 5552695411..55e8e35b00 100644--- a/packages/cli/templates/blocks/components/CodeBlock/CodeBlockTerminal.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CodeBlock/CodeBlockTerminal.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CodeBlock',diff --git a/packages/cli/templates/blocks/components/CodeBlock/CodeBlockTerminal.tsx b/packages/cli/assets/templates/blocks/components/CodeBlock/CodeBlockTerminal.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CodeBlock/CodeBlockTerminal.tsxrename to packages/cli/assets/templates/blocks/components/CodeBlock/CodeBlockTerminal.tsxdiff --git a/packages/cli/templates/blocks/components/Collapsible/CollapsibleControlledAccordion.doc.mjs b/packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleControlledAccordion.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Collapsible/CollapsibleControlledAccordion.doc.mjsrename to packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleControlledAccordion.doc.mjsindex cbcd793f6d..6a9956e1b0 100644--- a/packages/cli/templates/blocks/components/Collapsible/CollapsibleControlledAccordion.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleControlledAccordion.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Collapsible',diff --git a/packages/cli/templates/blocks/components/Collapsible/CollapsibleControlledAccordion.tsx b/packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleControlledAccordion.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Collapsible/CollapsibleControlledAccordion.tsxrename to packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleControlledAccordion.tsxdiff --git a/packages/cli/templates/blocks/components/Collapsible/CollapsibleDividedAccordion.doc.mjs b/packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleDividedAccordion.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/Collapsible/CollapsibleDividedAccordion.doc.mjsrename to packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleDividedAccordion.doc.mjsindex 2b90a98e83..5455cd9614 100644--- a/packages/cli/templates/blocks/components/Collapsible/CollapsibleDividedAccordion.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleDividedAccordion.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Collapsible',diff --git a/packages/cli/templates/blocks/components/Collapsible/CollapsibleDividedAccordion.tsx b/packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleDividedAccordion.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Collapsible/CollapsibleDividedAccordion.tsxrename to packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleDividedAccordion.tsxdiff --git a/packages/cli/templates/blocks/components/Collapsible/CollapsibleHookUsage.doc.mjs b/packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleHookUsage.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Collapsible/CollapsibleHookUsage.doc.mjsrename to packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleHookUsage.doc.mjsindex 5a63328153..8fe14c971e 100644--- a/packages/cli/templates/blocks/components/Collapsible/CollapsibleHookUsage.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleHookUsage.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'useCollapsible',diff --git a/packages/cli/templates/blocks/components/Collapsible/CollapsibleHookUsage.tsx b/packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleHookUsage.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Collapsible/CollapsibleHookUsage.tsxrename to packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleHookUsage.tsxdiff --git a/packages/cli/templates/blocks/components/Collapsible/CollapsibleMultipleAccordion.doc.mjs b/packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleMultipleAccordion.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Collapsible/CollapsibleMultipleAccordion.doc.mjsrename to packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleMultipleAccordion.doc.mjsindex 7a95d08915..8d8d2da6d9 100644--- a/packages/cli/templates/blocks/components/Collapsible/CollapsibleMultipleAccordion.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleMultipleAccordion.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Collapsible',diff --git a/packages/cli/templates/blocks/components/Collapsible/CollapsibleMultipleAccordion.tsx b/packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleMultipleAccordion.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Collapsible/CollapsibleMultipleAccordion.tsxrename to packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleMultipleAccordion.tsxdiff --git a/packages/cli/templates/blocks/components/Collapsible/CollapsibleShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleShowcase.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Collapsible/CollapsibleShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleShowcase.doc.mjsindex f898f0cc01..92ef11ddf9 100644--- a/packages/cli/templates/blocks/components/Collapsible/CollapsibleShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Collapsible',diff --git a/packages/cli/templates/blocks/components/Collapsible/CollapsibleShowcase.tsx b/packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Collapsible/CollapsibleShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Collapsible/CollapsibleSingleAccordion.doc.mjs b/packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleSingleAccordion.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Collapsible/CollapsibleSingleAccordion.doc.mjsrename to packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleSingleAccordion.doc.mjsindex 04f5d0d2af..93bd0d94fa 100644--- a/packages/cli/templates/blocks/components/Collapsible/CollapsibleSingleAccordion.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleSingleAccordion.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Collapsible',diff --git a/packages/cli/templates/blocks/components/Collapsible/CollapsibleSingleAccordion.tsx b/packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleSingleAccordion.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Collapsible/CollapsibleSingleAccordion.tsxrename to packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleSingleAccordion.tsxdiff --git a/packages/cli/templates/blocks/components/Collapsible/CollapsibleWithoutCard.doc.mjs b/packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleWithoutCard.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/Collapsible/CollapsibleWithoutCard.doc.mjsrename to packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleWithoutCard.doc.mjsindex c9106c0cec..87ae016d88 100644--- a/packages/cli/templates/blocks/components/Collapsible/CollapsibleWithoutCard.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleWithoutCard.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Collapsible',diff --git a/packages/cli/templates/blocks/components/Collapsible/CollapsibleWithoutCard.tsx b/packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleWithoutCard.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Collapsible/CollapsibleWithoutCard.tsxrename to packages/cli/assets/templates/blocks/components/Collapsible/CollapsibleWithoutCard.tsxdiff --git a/packages/cli/templates/blocks/components/CollapsibleGroup/CollapsibleGroupAccordion.doc.mjs b/packages/cli/assets/templates/blocks/components/CollapsibleGroup/CollapsibleGroupAccordion.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/CollapsibleGroup/CollapsibleGroupAccordion.doc.mjsrename to packages/cli/assets/templates/blocks/components/CollapsibleGroup/CollapsibleGroupAccordion.doc.mjsindex f9ced5ad5f..579ec717fb 100644--- a/packages/cli/templates/blocks/components/CollapsibleGroup/CollapsibleGroupAccordion.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CollapsibleGroup/CollapsibleGroupAccordion.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CollapsibleGroup',diff --git a/packages/cli/templates/blocks/components/CollapsibleGroup/CollapsibleGroupAccordion.tsx b/packages/cli/assets/templates/blocks/components/CollapsibleGroup/CollapsibleGroupAccordion.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CollapsibleGroup/CollapsibleGroupAccordion.tsxrename to packages/cli/assets/templates/blocks/components/CollapsibleGroup/CollapsibleGroupAccordion.tsxdiff --git a/packages/cli/templates/blocks/components/CollapsibleGroup/CollapsibleGroupShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/CollapsibleGroup/CollapsibleGroupShowcase.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/CollapsibleGroup/CollapsibleGroupShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/CollapsibleGroup/CollapsibleGroupShowcase.doc.mjsindex ac96933bf4..1ada348fc0 100644--- a/packages/cli/templates/blocks/components/CollapsibleGroup/CollapsibleGroupShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CollapsibleGroup/CollapsibleGroupShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CollapsibleGroup',diff --git a/packages/cli/templates/blocks/components/CollapsibleGroup/CollapsibleGroupShowcase.tsx b/packages/cli/assets/templates/blocks/components/CollapsibleGroup/CollapsibleGroupShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CollapsibleGroup/CollapsibleGroupShowcase.tsxrename to packages/cli/assets/templates/blocks/components/CollapsibleGroup/CollapsibleGroupShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/CommandPalette/CommandPaletteAsyncSearch.doc.mjs b/packages/cli/assets/templates/blocks/components/CommandPalette/CommandPaletteAsyncSearch.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/CommandPalette/CommandPaletteAsyncSearch.doc.mjsrename to packages/cli/assets/templates/blocks/components/CommandPalette/CommandPaletteAsyncSearch.doc.mjsindex 06036e2370..5763d8ca60 100644--- a/packages/cli/templates/blocks/components/CommandPalette/CommandPaletteAsyncSearch.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CommandPalette/CommandPaletteAsyncSearch.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CommandPalette',diff --git a/packages/cli/templates/blocks/components/CommandPalette/CommandPaletteAsyncSearch.tsx b/packages/cli/assets/templates/blocks/components/CommandPalette/CommandPaletteAsyncSearch.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CommandPalette/CommandPaletteAsyncSearch.tsxrename to packages/cli/assets/templates/blocks/components/CommandPalette/CommandPaletteAsyncSearch.tsxdiff --git a/packages/cli/templates/blocks/components/CommandPalette/CommandPaletteAutoGrouped.doc.mjs b/packages/cli/assets/templates/blocks/components/CommandPalette/CommandPaletteAutoGrouped.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/CommandPalette/CommandPaletteAutoGrouped.doc.mjsrename to packages/cli/assets/templates/blocks/components/CommandPalette/CommandPaletteAutoGrouped.doc.mjsindex 65fbdeb901..f26a6af554 100644--- a/packages/cli/templates/blocks/components/CommandPalette/CommandPaletteAutoGrouped.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CommandPalette/CommandPaletteAutoGrouped.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CommandPalette',diff --git a/packages/cli/templates/blocks/components/CommandPalette/CommandPaletteAutoGrouped.tsx b/packages/cli/assets/templates/blocks/components/CommandPalette/CommandPaletteAutoGrouped.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CommandPalette/CommandPaletteAutoGrouped.tsxrename to packages/cli/assets/templates/blocks/components/CommandPalette/CommandPaletteAutoGrouped.tsxdiff --git a/packages/cli/templates/blocks/components/CommandPalette/CommandPaletteCustomFooter.doc.mjs b/packages/cli/assets/templates/blocks/components/CommandPalette/CommandPaletteCustomFooter.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/CommandPalette/CommandPaletteCustomFooter.doc.mjsrename to packages/cli/assets/templates/blocks/components/CommandPalette/CommandPaletteCustomFooter.doc.mjsindex 709c073c6c..72d5acb715 100644--- a/packages/cli/templates/blocks/components/CommandPalette/CommandPaletteCustomFooter.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CommandPalette/CommandPaletteCustomFooter.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CommandPalette',diff --git a/packages/cli/templates/blocks/components/CommandPalette/CommandPaletteCustomFooter.tsx b/packages/cli/assets/templates/blocks/components/CommandPalette/CommandPaletteCustomFooter.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CommandPalette/CommandPaletteCustomFooter.tsxrename to packages/cli/assets/templates/blocks/components/CommandPalette/CommandPaletteCustomFooter.tsxdiff --git a/packages/cli/templates/blocks/components/CommandPalette/CommandPalettePickerMode.doc.mjs b/packages/cli/assets/templates/blocks/components/CommandPalette/CommandPalettePickerMode.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/CommandPalette/CommandPalettePickerMode.doc.mjsrename to packages/cli/assets/templates/blocks/components/CommandPalette/CommandPalettePickerMode.doc.mjsindex 197b210097..0989fbfb83 100644--- a/packages/cli/templates/blocks/components/CommandPalette/CommandPalettePickerMode.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CommandPalette/CommandPalettePickerMode.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CommandPalette',diff --git a/packages/cli/templates/blocks/components/CommandPalette/CommandPalettePickerMode.tsx b/packages/cli/assets/templates/blocks/components/CommandPalette/CommandPalettePickerMode.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CommandPalette/CommandPalettePickerMode.tsxrename to packages/cli/assets/templates/blocks/components/CommandPalette/CommandPalettePickerMode.tsxdiff --git a/packages/cli/templates/blocks/components/CommandPalette/CommandPaletteRichItems.doc.mjs b/packages/cli/assets/templates/blocks/components/CommandPalette/CommandPaletteRichItems.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/CommandPalette/CommandPaletteRichItems.doc.mjsrename to packages/cli/assets/templates/blocks/components/CommandPalette/CommandPaletteRichItems.doc.mjsindex 11118e1179..f62a6d714a 100644--- a/packages/cli/templates/blocks/components/CommandPalette/CommandPaletteRichItems.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CommandPalette/CommandPaletteRichItems.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CommandPalette',diff --git a/packages/cli/templates/blocks/components/CommandPalette/CommandPaletteRichItems.tsx b/packages/cli/assets/templates/blocks/components/CommandPalette/CommandPaletteRichItems.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CommandPalette/CommandPaletteRichItems.tsxrename to packages/cli/assets/templates/blocks/components/CommandPalette/CommandPaletteRichItems.tsxdiff --git a/packages/cli/templates/blocks/components/CommandPalette/CommandPaletteShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/CommandPalette/CommandPaletteShowcase.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/CommandPalette/CommandPaletteShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/CommandPalette/CommandPaletteShowcase.doc.mjsindex e0fd236484..5f938dc203 100644--- a/packages/cli/templates/blocks/components/CommandPalette/CommandPaletteShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CommandPalette/CommandPaletteShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CommandPalette',diff --git a/packages/cli/templates/blocks/components/CommandPalette/CommandPaletteShowcase.tsx b/packages/cli/assets/templates/blocks/components/CommandPalette/CommandPaletteShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CommandPalette/CommandPaletteShowcase.tsxrename to packages/cli/assets/templates/blocks/components/CommandPalette/CommandPaletteShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/CommandPaletteEmpty/CommandPaletteEmptyBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/CommandPaletteEmpty/CommandPaletteEmptyBasic.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/CommandPaletteEmpty/CommandPaletteEmptyBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/CommandPaletteEmpty/CommandPaletteEmptyBasic.doc.mjsindex 35d47656e0..7c1a59d910 100644--- a/packages/cli/templates/blocks/components/CommandPaletteEmpty/CommandPaletteEmptyBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CommandPaletteEmpty/CommandPaletteEmptyBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CommandPaletteEmpty',diff --git a/packages/cli/templates/blocks/components/CommandPaletteEmpty/CommandPaletteEmptyBasic.tsx b/packages/cli/assets/templates/blocks/components/CommandPaletteEmpty/CommandPaletteEmptyBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CommandPaletteEmpty/CommandPaletteEmptyBasic.tsxrename to packages/cli/assets/templates/blocks/components/CommandPaletteEmpty/CommandPaletteEmptyBasic.tsxdiff --git a/packages/cli/templates/blocks/components/CommandPaletteEmpty/CommandPaletteEmptyShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/CommandPaletteEmpty/CommandPaletteEmptyShowcase.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/CommandPaletteEmpty/CommandPaletteEmptyShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/CommandPaletteEmpty/CommandPaletteEmptyShowcase.doc.mjsindex 296cbf7bdf..1b227f7065 100644--- a/packages/cli/templates/blocks/components/CommandPaletteEmpty/CommandPaletteEmptyShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CommandPaletteEmpty/CommandPaletteEmptyShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CommandPaletteEmpty',diff --git a/packages/cli/templates/blocks/components/CommandPaletteEmpty/CommandPaletteEmptyShowcase.tsx b/packages/cli/assets/templates/blocks/components/CommandPaletteEmpty/CommandPaletteEmptyShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CommandPaletteEmpty/CommandPaletteEmptyShowcase.tsxrename to packages/cli/assets/templates/blocks/components/CommandPaletteEmpty/CommandPaletteEmptyShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/CommandPaletteFooter/CommandPaletteFooterBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/CommandPaletteFooter/CommandPaletteFooterBasic.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/CommandPaletteFooter/CommandPaletteFooterBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/CommandPaletteFooter/CommandPaletteFooterBasic.doc.mjsindex 70dae142f6..efcbe5b4ce 100644--- a/packages/cli/templates/blocks/components/CommandPaletteFooter/CommandPaletteFooterBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CommandPaletteFooter/CommandPaletteFooterBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CommandPaletteFooter',diff --git a/packages/cli/templates/blocks/components/CommandPaletteFooter/CommandPaletteFooterBasic.tsx b/packages/cli/assets/templates/blocks/components/CommandPaletteFooter/CommandPaletteFooterBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CommandPaletteFooter/CommandPaletteFooterBasic.tsxrename to packages/cli/assets/templates/blocks/components/CommandPaletteFooter/CommandPaletteFooterBasic.tsxdiff --git a/packages/cli/templates/blocks/components/CommandPaletteFooter/CommandPaletteFooterShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/CommandPaletteFooter/CommandPaletteFooterShowcase.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/CommandPaletteFooter/CommandPaletteFooterShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/CommandPaletteFooter/CommandPaletteFooterShowcase.doc.mjsindex ac07fc550f..5b32b3ee11 100644--- a/packages/cli/templates/blocks/components/CommandPaletteFooter/CommandPaletteFooterShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CommandPaletteFooter/CommandPaletteFooterShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CommandPaletteFooter',diff --git a/packages/cli/templates/blocks/components/CommandPaletteFooter/CommandPaletteFooterShowcase.tsx b/packages/cli/assets/templates/blocks/components/CommandPaletteFooter/CommandPaletteFooterShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CommandPaletteFooter/CommandPaletteFooterShowcase.tsxrename to packages/cli/assets/templates/blocks/components/CommandPaletteFooter/CommandPaletteFooterShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/CommandPaletteGroup/CommandPaletteGroupBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/CommandPaletteGroup/CommandPaletteGroupBasic.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/CommandPaletteGroup/CommandPaletteGroupBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/CommandPaletteGroup/CommandPaletteGroupBasic.doc.mjsindex 5f39075466..d9ffb4ec61 100644--- a/packages/cli/templates/blocks/components/CommandPaletteGroup/CommandPaletteGroupBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CommandPaletteGroup/CommandPaletteGroupBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CommandPaletteGroup',diff --git a/packages/cli/templates/blocks/components/CommandPaletteGroup/CommandPaletteGroupBasic.tsx b/packages/cli/assets/templates/blocks/components/CommandPaletteGroup/CommandPaletteGroupBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CommandPaletteGroup/CommandPaletteGroupBasic.tsxrename to packages/cli/assets/templates/blocks/components/CommandPaletteGroup/CommandPaletteGroupBasic.tsxdiff --git a/packages/cli/templates/blocks/components/CommandPaletteGroup/CommandPaletteGroupShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/CommandPaletteGroup/CommandPaletteGroupShowcase.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/CommandPaletteGroup/CommandPaletteGroupShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/CommandPaletteGroup/CommandPaletteGroupShowcase.doc.mjsindex 69d9085211..7337b491a4 100644--- a/packages/cli/templates/blocks/components/CommandPaletteGroup/CommandPaletteGroupShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CommandPaletteGroup/CommandPaletteGroupShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CommandPaletteGroup',diff --git a/packages/cli/templates/blocks/components/CommandPaletteGroup/CommandPaletteGroupShowcase.tsx b/packages/cli/assets/templates/blocks/components/CommandPaletteGroup/CommandPaletteGroupShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CommandPaletteGroup/CommandPaletteGroupShowcase.tsxrename to packages/cli/assets/templates/blocks/components/CommandPaletteGroup/CommandPaletteGroupShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/CommandPaletteInput/CommandPaletteInputBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/CommandPaletteInput/CommandPaletteInputBasic.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/CommandPaletteInput/CommandPaletteInputBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/CommandPaletteInput/CommandPaletteInputBasic.doc.mjsindex 63154a684f..f7b2020a51 100644--- a/packages/cli/templates/blocks/components/CommandPaletteInput/CommandPaletteInputBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CommandPaletteInput/CommandPaletteInputBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CommandPaletteInput',diff --git a/packages/cli/templates/blocks/components/CommandPaletteInput/CommandPaletteInputBasic.tsx b/packages/cli/assets/templates/blocks/components/CommandPaletteInput/CommandPaletteInputBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CommandPaletteInput/CommandPaletteInputBasic.tsxrename to packages/cli/assets/templates/blocks/components/CommandPaletteInput/CommandPaletteInputBasic.tsxdiff --git a/packages/cli/templates/blocks/components/CommandPaletteInput/CommandPaletteInputShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/CommandPaletteInput/CommandPaletteInputShowcase.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/CommandPaletteInput/CommandPaletteInputShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/CommandPaletteInput/CommandPaletteInputShowcase.doc.mjsindex 41a7de3f7f..0aa1640fda 100644--- a/packages/cli/templates/blocks/components/CommandPaletteInput/CommandPaletteInputShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CommandPaletteInput/CommandPaletteInputShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CommandPaletteInput',diff --git a/packages/cli/templates/blocks/components/CommandPaletteInput/CommandPaletteInputShowcase.tsx b/packages/cli/assets/templates/blocks/components/CommandPaletteInput/CommandPaletteInputShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CommandPaletteInput/CommandPaletteInputShowcase.tsxrename to packages/cli/assets/templates/blocks/components/CommandPaletteInput/CommandPaletteInputShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/CommandPaletteItem/CommandPaletteItemBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/CommandPaletteItem/CommandPaletteItemBasic.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/CommandPaletteItem/CommandPaletteItemBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/CommandPaletteItem/CommandPaletteItemBasic.doc.mjsindex 941f072dd5..5dc54b1960 100644--- a/packages/cli/templates/blocks/components/CommandPaletteItem/CommandPaletteItemBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CommandPaletteItem/CommandPaletteItemBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CommandPaletteItem',diff --git a/packages/cli/templates/blocks/components/CommandPaletteItem/CommandPaletteItemBasic.tsx b/packages/cli/assets/templates/blocks/components/CommandPaletteItem/CommandPaletteItemBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CommandPaletteItem/CommandPaletteItemBasic.tsxrename to packages/cli/assets/templates/blocks/components/CommandPaletteItem/CommandPaletteItemBasic.tsxdiff --git a/packages/cli/templates/blocks/components/CommandPaletteItem/CommandPaletteItemShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/CommandPaletteItem/CommandPaletteItemShowcase.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/CommandPaletteItem/CommandPaletteItemShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/CommandPaletteItem/CommandPaletteItemShowcase.doc.mjsindex befb67b5c2..58806052f2 100644--- a/packages/cli/templates/blocks/components/CommandPaletteItem/CommandPaletteItemShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CommandPaletteItem/CommandPaletteItemShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CommandPaletteItem',diff --git a/packages/cli/templates/blocks/components/CommandPaletteItem/CommandPaletteItemShowcase.tsx b/packages/cli/assets/templates/blocks/components/CommandPaletteItem/CommandPaletteItemShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CommandPaletteItem/CommandPaletteItemShowcase.tsxrename to packages/cli/assets/templates/blocks/components/CommandPaletteItem/CommandPaletteItemShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/CommandPaletteList/CommandPaletteListBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/CommandPaletteList/CommandPaletteListBasic.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/CommandPaletteList/CommandPaletteListBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/CommandPaletteList/CommandPaletteListBasic.doc.mjsindex ba0beddafc..8659f4e4a0 100644--- a/packages/cli/templates/blocks/components/CommandPaletteList/CommandPaletteListBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CommandPaletteList/CommandPaletteListBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CommandPaletteList',diff --git a/packages/cli/templates/blocks/components/CommandPaletteList/CommandPaletteListBasic.tsx b/packages/cli/assets/templates/blocks/components/CommandPaletteList/CommandPaletteListBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CommandPaletteList/CommandPaletteListBasic.tsxrename to packages/cli/assets/templates/blocks/components/CommandPaletteList/CommandPaletteListBasic.tsxdiff --git a/packages/cli/templates/blocks/components/CommandPaletteList/CommandPaletteListShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/CommandPaletteList/CommandPaletteListShowcase.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/CommandPaletteList/CommandPaletteListShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/CommandPaletteList/CommandPaletteListShowcase.doc.mjsindex 699077934d..7ff880687a 100644--- a/packages/cli/templates/blocks/components/CommandPaletteList/CommandPaletteListShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/CommandPaletteList/CommandPaletteListShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'CommandPaletteList',diff --git a/packages/cli/templates/blocks/components/CommandPaletteList/CommandPaletteListShowcase.tsx b/packages/cli/assets/templates/blocks/components/CommandPaletteList/CommandPaletteListShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/CommandPaletteList/CommandPaletteListShowcase.tsxrename to packages/cli/assets/templates/blocks/components/CommandPaletteList/CommandPaletteListShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/ContextMenu/ContextMenuBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/ContextMenu/ContextMenuBasic.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/ContextMenu/ContextMenuBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/ContextMenu/ContextMenuBasic.doc.mjsindex aa651947d9..25b5b2d91a 100644--- a/packages/cli/templates/blocks/components/ContextMenu/ContextMenuBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ContextMenu/ContextMenuBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ContextMenu',diff --git a/packages/cli/templates/blocks/components/ContextMenu/ContextMenuBasic.tsx b/packages/cli/assets/templates/blocks/components/ContextMenu/ContextMenuBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ContextMenu/ContextMenuBasic.tsxrename to packages/cli/assets/templates/blocks/components/ContextMenu/ContextMenuBasic.tsxdiff --git a/packages/cli/templates/blocks/components/ContextMenu/ContextMenuShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/ContextMenu/ContextMenuShowcase.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/ContextMenu/ContextMenuShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/ContextMenu/ContextMenuShowcase.doc.mjsindex 186d38089e..3e60f5f835 100644--- a/packages/cli/templates/blocks/components/ContextMenu/ContextMenuShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ContextMenu/ContextMenuShowcase.doc.mjs@@ -1,5 +1,5 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ContextMenu',diff --git a/packages/cli/templates/blocks/components/ContextMenu/ContextMenuShowcase.tsx b/packages/cli/assets/templates/blocks/components/ContextMenu/ContextMenuShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ContextMenu/ContextMenuShowcase.tsxrename to packages/cli/assets/templates/blocks/components/ContextMenu/ContextMenuShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/ContextMenuItem/ContextMenuItemBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/ContextMenuItem/ContextMenuItemBasic.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/ContextMenuItem/ContextMenuItemBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/ContextMenuItem/ContextMenuItemBasic.doc.mjsindex 5650644ac1..83b1b7e579 100644--- a/packages/cli/templates/blocks/components/ContextMenuItem/ContextMenuItemBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ContextMenuItem/ContextMenuItemBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ContextMenuItem',diff --git a/packages/cli/templates/blocks/components/ContextMenuItem/ContextMenuItemBasic.tsx b/packages/cli/assets/templates/blocks/components/ContextMenuItem/ContextMenuItemBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ContextMenuItem/ContextMenuItemBasic.tsxrename to packages/cli/assets/templates/blocks/components/ContextMenuItem/ContextMenuItemBasic.tsxdiff --git a/packages/cli/templates/blocks/components/ContextMenuItem/ContextMenuItemShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/ContextMenuItem/ContextMenuItemShowcase.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/ContextMenuItem/ContextMenuItemShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/ContextMenuItem/ContextMenuItemShowcase.doc.mjsindex a0958e8408..62748dc83c 100644--- a/packages/cli/templates/blocks/components/ContextMenuItem/ContextMenuItemShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ContextMenuItem/ContextMenuItemShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ContextMenuItem',diff --git a/packages/cli/templates/blocks/components/ContextMenuItem/ContextMenuItemShowcase.tsx b/packages/cli/assets/templates/blocks/components/ContextMenuItem/ContextMenuItemShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ContextMenuItem/ContextMenuItemShowcase.tsxrename to packages/cli/assets/templates/blocks/components/ContextMenuItem/ContextMenuItemShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/DateInput/DateInputClearable.doc.mjs b/packages/cli/assets/templates/blocks/components/DateInput/DateInputClearable.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/DateInput/DateInputClearable.doc.mjsrename to packages/cli/assets/templates/blocks/components/DateInput/DateInputClearable.doc.mjsindex 1261cb322e..c67dcf325e 100644--- a/packages/cli/templates/blocks/components/DateInput/DateInputClearable.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/DateInput/DateInputClearable.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'DateInput',diff --git a/packages/cli/templates/blocks/components/DateInput/DateInputClearable.tsx b/packages/cli/assets/templates/blocks/components/DateInput/DateInputClearable.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/DateInput/DateInputClearable.tsxrename to packages/cli/assets/templates/blocks/components/DateInput/DateInputClearable.tsxdiff --git a/packages/cli/templates/blocks/components/DateInput/DateInputDateRange.doc.mjs b/packages/cli/assets/templates/blocks/components/DateInput/DateInputDateRange.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/DateInput/DateInputDateRange.doc.mjsrename to packages/cli/assets/templates/blocks/components/DateInput/DateInputDateRange.doc.mjsindex 18f6bd7bff..0a36aa0db6 100644--- a/packages/cli/templates/blocks/components/DateInput/DateInputDateRange.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/DateInput/DateInputDateRange.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'DateInput',diff --git a/packages/cli/templates/blocks/components/DateInput/DateInputDateRange.tsx b/packages/cli/assets/templates/blocks/components/DateInput/DateInputDateRange.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/DateInput/DateInputDateRange.tsxrename to packages/cli/assets/templates/blocks/components/DateInput/DateInputDateRange.tsxdiff --git a/packages/cli/templates/blocks/components/DateInput/DateInputFormats.doc.mjs b/packages/cli/assets/templates/blocks/components/DateInput/DateInputFormats.doc.mjssimilarity index 89%rename from packages/cli/templates/blocks/components/DateInput/DateInputFormats.doc.mjsrename to packages/cli/assets/templates/blocks/components/DateInput/DateInputFormats.doc.mjsindex f3e18c2a5e..32dca9a81e 100644--- a/packages/cli/templates/blocks/components/DateInput/DateInputFormats.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/DateInput/DateInputFormats.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'DateInput',diff --git a/packages/cli/templates/blocks/components/DateInput/DateInputFormats.tsx b/packages/cli/assets/templates/blocks/components/DateInput/DateInputFormats.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/DateInput/DateInputFormats.tsxrename to packages/cli/assets/templates/blocks/components/DateInput/DateInputFormats.tsxdiff --git a/packages/cli/templates/blocks/components/DateInput/DateInputShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/DateInput/DateInputShowcase.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/DateInput/DateInputShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/DateInput/DateInputShowcase.doc.mjsindex d1b1e473bb..dec5b36dc2 100644--- a/packages/cli/templates/blocks/components/DateInput/DateInputShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/DateInput/DateInputShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'DateInput',diff --git a/packages/cli/templates/blocks/components/DateInput/DateInputShowcase.tsx b/packages/cli/assets/templates/blocks/components/DateInput/DateInputShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/DateInput/DateInputShowcase.tsxrename to packages/cli/assets/templates/blocks/components/DateInput/DateInputShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/DateInput/DateInputWithDescription.doc.mjs b/packages/cli/assets/templates/blocks/components/DateInput/DateInputWithDescription.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/DateInput/DateInputWithDescription.doc.mjsrename to packages/cli/assets/templates/blocks/components/DateInput/DateInputWithDescription.doc.mjsindex acb4f4e354..8ba02090e2 100644--- a/packages/cli/templates/blocks/components/DateInput/DateInputWithDescription.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/DateInput/DateInputWithDescription.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'DateInput',diff --git a/packages/cli/templates/blocks/components/DateInput/DateInputWithDescription.tsx b/packages/cli/assets/templates/blocks/components/DateInput/DateInputWithDescription.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/DateInput/DateInputWithDescription.tsxrename to packages/cli/assets/templates/blocks/components/DateInput/DateInputWithDescription.tsxdiff --git a/packages/cli/templates/blocks/components/DateInput/DateInputWithValidation.doc.mjs b/packages/cli/assets/templates/blocks/components/DateInput/DateInputWithValidation.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/DateInput/DateInputWithValidation.doc.mjsrename to packages/cli/assets/templates/blocks/components/DateInput/DateInputWithValidation.doc.mjsindex dfd2b09170..2b081c61ff 100644--- a/packages/cli/templates/blocks/components/DateInput/DateInputWithValidation.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/DateInput/DateInputWithValidation.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'DateInput',diff --git a/packages/cli/templates/blocks/components/DateInput/DateInputWithValidation.tsx b/packages/cli/assets/templates/blocks/components/DateInput/DateInputWithValidation.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/DateInput/DateInputWithValidation.tsxrename to packages/cli/assets/templates/blocks/components/DateInput/DateInputWithValidation.tsxdiff --git a/packages/cli/templates/blocks/components/DateRangeInput/DateRangeInputShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/DateRangeInput/DateRangeInputShowcase.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/DateRangeInput/DateRangeInputShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/DateRangeInput/DateRangeInputShowcase.doc.mjsindex c890c748c6..385511b322 100644--- a/packages/cli/templates/blocks/components/DateRangeInput/DateRangeInputShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/DateRangeInput/DateRangeInputShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'DateRangeInput',diff --git a/packages/cli/templates/blocks/components/DateRangeInput/DateRangeInputShowcase.tsx b/packages/cli/assets/templates/blocks/components/DateRangeInput/DateRangeInputShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/DateRangeInput/DateRangeInputShowcase.tsxrename to packages/cli/assets/templates/blocks/components/DateRangeInput/DateRangeInputShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/DateRangeInput/DateRangeInputWithPresets.doc.mjs b/packages/cli/assets/templates/blocks/components/DateRangeInput/DateRangeInputWithPresets.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/DateRangeInput/DateRangeInputWithPresets.doc.mjsrename to packages/cli/assets/templates/blocks/components/DateRangeInput/DateRangeInputWithPresets.doc.mjsindex e077072335..c72ac31bff 100644--- a/packages/cli/templates/blocks/components/DateRangeInput/DateRangeInputWithPresets.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/DateRangeInput/DateRangeInputWithPresets.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'DateRangeInput',diff --git a/packages/cli/templates/blocks/components/DateRangeInput/DateRangeInputWithPresets.tsx b/packages/cli/assets/templates/blocks/components/DateRangeInput/DateRangeInputWithPresets.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/DateRangeInput/DateRangeInputWithPresets.tsxrename to packages/cli/assets/templates/blocks/components/DateRangeInput/DateRangeInputWithPresets.tsxdiff --git a/packages/cli/templates/blocks/components/DateRangeInput/DateRangeInputWithValidation.doc.mjs b/packages/cli/assets/templates/blocks/components/DateRangeInput/DateRangeInputWithValidation.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/DateRangeInput/DateRangeInputWithValidation.doc.mjsrename to packages/cli/assets/templates/blocks/components/DateRangeInput/DateRangeInputWithValidation.doc.mjsindex 6a3ed8fdee..16f94f0f99 100644--- a/packages/cli/templates/blocks/components/DateRangeInput/DateRangeInputWithValidation.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/DateRangeInput/DateRangeInputWithValidation.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'DateRangeInput',diff --git a/packages/cli/templates/blocks/components/DateRangeInput/DateRangeInputWithValidation.tsx b/packages/cli/assets/templates/blocks/components/DateRangeInput/DateRangeInputWithValidation.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/DateRangeInput/DateRangeInputWithValidation.tsxrename to packages/cli/assets/templates/blocks/components/DateRangeInput/DateRangeInputWithValidation.tsxdiff --git a/packages/cli/templates/blocks/components/DateTimeInput/DateTimeInputShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/DateTimeInput/DateTimeInputShowcase.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/DateTimeInput/DateTimeInputShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/DateTimeInput/DateTimeInputShowcase.doc.mjsindex de2cc60c42..bb177334c0 100644--- a/packages/cli/templates/blocks/components/DateTimeInput/DateTimeInputShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/DateTimeInput/DateTimeInputShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'DateTimeInput',diff --git a/packages/cli/templates/blocks/components/DateTimeInput/DateTimeInputShowcase.tsx b/packages/cli/assets/templates/blocks/components/DateTimeInput/DateTimeInputShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/DateTimeInput/DateTimeInputShowcase.tsxrename to packages/cli/assets/templates/blocks/components/DateTimeInput/DateTimeInputShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/DateTimeInput/DateTimeInputWithValidation.doc.mjs b/packages/cli/assets/templates/blocks/components/DateTimeInput/DateTimeInputWithValidation.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/DateTimeInput/DateTimeInputWithValidation.doc.mjsrename to packages/cli/assets/templates/blocks/components/DateTimeInput/DateTimeInputWithValidation.doc.mjsindex 1b0a3f4bfe..244f2e1817 100644--- a/packages/cli/templates/blocks/components/DateTimeInput/DateTimeInputWithValidation.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/DateTimeInput/DateTimeInputWithValidation.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'DateTimeInput',diff --git a/packages/cli/templates/blocks/components/DateTimeInput/DateTimeInputWithValidation.tsx b/packages/cli/assets/templates/blocks/components/DateTimeInput/DateTimeInputWithValidation.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/DateTimeInput/DateTimeInputWithValidation.tsxrename to packages/cli/assets/templates/blocks/components/DateTimeInput/DateTimeInputWithValidation.tsxdiff --git a/packages/cli/templates/blocks/components/Dialog/DialogConfirmationDialog.doc.mjs b/packages/cli/assets/templates/blocks/components/Dialog/DialogConfirmationDialog.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/Dialog/DialogConfirmationDialog.doc.mjsrename to packages/cli/assets/templates/blocks/components/Dialog/DialogConfirmationDialog.doc.mjsindex ebd28e4fbb..8f243bf6d6 100644--- a/packages/cli/templates/blocks/components/Dialog/DialogConfirmationDialog.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Dialog/DialogConfirmationDialog.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Dialog',diff --git a/packages/cli/templates/blocks/components/Dialog/DialogConfirmationDialog.tsx b/packages/cli/assets/templates/blocks/components/Dialog/DialogConfirmationDialog.tsxsimilarity index 93%rename from packages/cli/templates/blocks/components/Dialog/DialogConfirmationDialog.tsxrename to packages/cli/assets/templates/blocks/components/Dialog/DialogConfirmationDialog.tsxindex 026196a124..51a499f8fe 100644--- a/packages/cli/templates/blocks/components/Dialog/DialogConfirmationDialog.tsx+++ b/packages/cli/assets/templates/blocks/components/Dialog/DialogConfirmationDialog.tsx@@ -20,10 +20,7 @@ function Content({onClose}: {onClose: () => void}) {return (<Layoutheader={- <DialogHeader- title="Delete project?"- onOpenChange={() => onClose()}- />+ <DialogHeader title="Delete project?" onOpenChange={() => onClose()} />}content={<LayoutContent>diff --git a/packages/cli/templates/blocks/components/Dialog/DialogFormDialog.doc.mjs b/packages/cli/assets/templates/blocks/components/Dialog/DialogFormDialog.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/Dialog/DialogFormDialog.doc.mjsrename to packages/cli/assets/templates/blocks/components/Dialog/DialogFormDialog.doc.mjsindex 7cdf2ad7d4..51f7ca08b3 100644--- a/packages/cli/templates/blocks/components/Dialog/DialogFormDialog.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Dialog/DialogFormDialog.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Dialog',diff --git a/packages/cli/templates/blocks/components/Dialog/DialogFormDialog.tsx b/packages/cli/assets/templates/blocks/components/Dialog/DialogFormDialog.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Dialog/DialogFormDialog.tsxrename to packages/cli/assets/templates/blocks/components/Dialog/DialogFormDialog.tsxdiff --git a/packages/cli/templates/blocks/components/Dialog/DialogFullscreenDialog.doc.mjs b/packages/cli/assets/templates/blocks/components/Dialog/DialogFullscreenDialog.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/Dialog/DialogFullscreenDialog.doc.mjsrename to packages/cli/assets/templates/blocks/components/Dialog/DialogFullscreenDialog.doc.mjsindex de7868189a..558aa47463 100644--- a/packages/cli/templates/blocks/components/Dialog/DialogFullscreenDialog.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Dialog/DialogFullscreenDialog.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Dialog',diff --git a/packages/cli/templates/blocks/components/Dialog/DialogFullscreenDialog.tsx b/packages/cli/assets/templates/blocks/components/Dialog/DialogFullscreenDialog.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Dialog/DialogFullscreenDialog.tsxrename to packages/cli/assets/templates/blocks/components/Dialog/DialogFullscreenDialog.tsxdiff --git a/packages/cli/templates/blocks/components/Dialog/DialogScrollingContent.doc.mjs b/packages/cli/assets/templates/blocks/components/Dialog/DialogScrollingContent.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/Dialog/DialogScrollingContent.doc.mjsrename to packages/cli/assets/templates/blocks/components/Dialog/DialogScrollingContent.doc.mjsindex 81081b90d3..a97a9f3b74 100644--- a/packages/cli/templates/blocks/components/Dialog/DialogScrollingContent.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Dialog/DialogScrollingContent.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Dialog',diff --git a/packages/cli/templates/blocks/components/Dialog/DialogScrollingContent.tsx b/packages/cli/assets/templates/blocks/components/Dialog/DialogScrollingContent.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Dialog/DialogScrollingContent.tsxrename to packages/cli/assets/templates/blocks/components/Dialog/DialogScrollingContent.tsxdiff --git a/packages/cli/templates/blocks/components/Dialog/DialogShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Dialog/DialogShowcase.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Dialog/DialogShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Dialog/DialogShowcase.doc.mjsindex b61432fe4b..d2d95dac5f 100644--- a/packages/cli/templates/blocks/components/Dialog/DialogShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Dialog/DialogShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Dialog',diff --git a/packages/cli/templates/blocks/components/Dialog/DialogShowcase.tsx b/packages/cli/assets/templates/blocks/components/Dialog/DialogShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Dialog/DialogShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Dialog/DialogShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Dialog/DialogWithSubtitle.doc.mjs b/packages/cli/assets/templates/blocks/components/Dialog/DialogWithSubtitle.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/Dialog/DialogWithSubtitle.doc.mjsrename to packages/cli/assets/templates/blocks/components/Dialog/DialogWithSubtitle.doc.mjsindex 59a46be5f7..1641257fe3 100644--- a/packages/cli/templates/blocks/components/Dialog/DialogWithSubtitle.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Dialog/DialogWithSubtitle.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Dialog',diff --git a/packages/cli/templates/blocks/components/Dialog/DialogWithSubtitle.tsx b/packages/cli/assets/templates/blocks/components/Dialog/DialogWithSubtitle.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Dialog/DialogWithSubtitle.tsxrename to packages/cli/assets/templates/blocks/components/Dialog/DialogWithSubtitle.tsxdiff --git a/packages/cli/templates/blocks/components/DialogHeader/DialogHeaderBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/DialogHeader/DialogHeaderBasic.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/DialogHeader/DialogHeaderBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/DialogHeader/DialogHeaderBasic.doc.mjsindex 4a999c91db..fb86c7fb56 100644--- a/packages/cli/templates/blocks/components/DialogHeader/DialogHeaderBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/DialogHeader/DialogHeaderBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'DialogHeader',diff --git a/packages/cli/templates/blocks/components/DialogHeader/DialogHeaderBasic.tsx b/packages/cli/assets/templates/blocks/components/DialogHeader/DialogHeaderBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/DialogHeader/DialogHeaderBasic.tsxrename to packages/cli/assets/templates/blocks/components/DialogHeader/DialogHeaderBasic.tsxdiff --git a/packages/cli/templates/blocks/components/DialogHeader/DialogHeaderShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/DialogHeader/DialogHeaderShowcase.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/DialogHeader/DialogHeaderShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/DialogHeader/DialogHeaderShowcase.doc.mjsindex 483de815dc..3d121a9858 100644--- a/packages/cli/templates/blocks/components/DialogHeader/DialogHeaderShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/DialogHeader/DialogHeaderShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'DialogHeader',diff --git a/packages/cli/templates/blocks/components/DialogHeader/DialogHeaderShowcase.tsx b/packages/cli/assets/templates/blocks/components/DialogHeader/DialogHeaderShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/DialogHeader/DialogHeaderShowcase.tsxrename to packages/cli/assets/templates/blocks/components/DialogHeader/DialogHeaderShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Divider/DividerFullBleed.doc.mjs b/packages/cli/assets/templates/blocks/components/Divider/DividerFullBleed.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/Divider/DividerFullBleed.doc.mjsrename to packages/cli/assets/templates/blocks/components/Divider/DividerFullBleed.doc.mjsindex 83588e776f..4b026245af 100644--- a/packages/cli/templates/blocks/components/Divider/DividerFullBleed.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Divider/DividerFullBleed.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Divider',diff --git a/packages/cli/templates/blocks/components/Divider/DividerFullBleed.tsx b/packages/cli/assets/templates/blocks/components/Divider/DividerFullBleed.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Divider/DividerFullBleed.tsxrename to packages/cli/assets/templates/blocks/components/Divider/DividerFullBleed.tsxdiff --git a/packages/cli/templates/blocks/components/Divider/DividerShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Divider/DividerShowcase.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Divider/DividerShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Divider/DividerShowcase.doc.mjsindex ea726959f7..6d819eb0ef 100644--- a/packages/cli/templates/blocks/components/Divider/DividerShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Divider/DividerShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Divider',diff --git a/packages/cli/templates/blocks/components/Divider/DividerShowcase.tsx b/packages/cli/assets/templates/blocks/components/Divider/DividerShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Divider/DividerShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Divider/DividerShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Divider/DividerVariants.doc.mjs b/packages/cli/assets/templates/blocks/components/Divider/DividerVariants.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/Divider/DividerVariants.doc.mjsrename to packages/cli/assets/templates/blocks/components/Divider/DividerVariants.doc.mjsindex d1a2140336..5e92e60159 100644--- a/packages/cli/templates/blocks/components/Divider/DividerVariants.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Divider/DividerVariants.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Divider',diff --git a/packages/cli/templates/blocks/components/Divider/DividerVariants.tsx b/packages/cli/assets/templates/blocks/components/Divider/DividerVariants.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Divider/DividerVariants.tsxrename to packages/cli/assets/templates/blocks/components/Divider/DividerVariants.tsxdiff --git a/packages/cli/templates/blocks/components/Divider/DividerVertical.doc.mjs b/packages/cli/assets/templates/blocks/components/Divider/DividerVertical.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/Divider/DividerVertical.doc.mjsrename to packages/cli/assets/templates/blocks/components/Divider/DividerVertical.doc.mjsindex 976cc00779..0460bb43b6 100644--- a/packages/cli/templates/blocks/components/Divider/DividerVertical.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Divider/DividerVertical.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Divider',diff --git a/packages/cli/templates/blocks/components/Divider/DividerVertical.tsx b/packages/cli/assets/templates/blocks/components/Divider/DividerVertical.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Divider/DividerVertical.tsxrename to packages/cli/assets/templates/blocks/components/Divider/DividerVertical.tsxdiff --git a/packages/cli/templates/blocks/components/DropdownMenu/DropdownMenuActions.doc.mjs b/packages/cli/assets/templates/blocks/components/DropdownMenu/DropdownMenuActions.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/DropdownMenu/DropdownMenuActions.doc.mjsrename to packages/cli/assets/templates/blocks/components/DropdownMenu/DropdownMenuActions.doc.mjsindex af2100eaea..6c539d66c2 100644--- a/packages/cli/templates/blocks/components/DropdownMenu/DropdownMenuActions.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/DropdownMenu/DropdownMenuActions.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'DropdownMenu',diff --git a/packages/cli/templates/blocks/components/DropdownMenu/DropdownMenuActions.tsx b/packages/cli/assets/templates/blocks/components/DropdownMenu/DropdownMenuActions.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/DropdownMenu/DropdownMenuActions.tsxrename to packages/cli/assets/templates/blocks/components/DropdownMenu/DropdownMenuActions.tsxdiff --git a/packages/cli/templates/blocks/components/DropdownMenu/DropdownMenuNoChevron.doc.mjs b/packages/cli/assets/templates/blocks/components/DropdownMenu/DropdownMenuNoChevron.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/DropdownMenu/DropdownMenuNoChevron.doc.mjsrename to packages/cli/assets/templates/blocks/components/DropdownMenu/DropdownMenuNoChevron.doc.mjsindex 520dbc56e2..74057b74d8 100644--- a/packages/cli/templates/blocks/components/DropdownMenu/DropdownMenuNoChevron.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/DropdownMenu/DropdownMenuNoChevron.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'DropdownMenu',diff --git a/packages/cli/templates/blocks/components/DropdownMenu/DropdownMenuNoChevron.tsx b/packages/cli/assets/templates/blocks/components/DropdownMenu/DropdownMenuNoChevron.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/DropdownMenu/DropdownMenuNoChevron.tsxrename to packages/cli/assets/templates/blocks/components/DropdownMenu/DropdownMenuNoChevron.tsxdiff --git a/packages/cli/templates/blocks/components/DropdownMenu/DropdownMenuShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/DropdownMenu/DropdownMenuShowcase.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/DropdownMenu/DropdownMenuShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/DropdownMenu/DropdownMenuShowcase.doc.mjsindex d641d59242..a28d001386 100644--- a/packages/cli/templates/blocks/components/DropdownMenu/DropdownMenuShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/DropdownMenu/DropdownMenuShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'DropdownMenu',diff --git a/packages/cli/templates/blocks/components/DropdownMenu/DropdownMenuShowcase.tsx b/packages/cli/assets/templates/blocks/components/DropdownMenu/DropdownMenuShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/DropdownMenu/DropdownMenuShowcase.tsxrename to packages/cli/assets/templates/blocks/components/DropdownMenu/DropdownMenuShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/DropdownMenu/DropdownMenuWithDisabledItems.doc.mjs b/packages/cli/assets/templates/blocks/components/DropdownMenu/DropdownMenuWithDisabledItems.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/DropdownMenu/DropdownMenuWithDisabledItems.doc.mjsrename to packages/cli/assets/templates/blocks/components/DropdownMenu/DropdownMenuWithDisabledItems.doc.mjsindex fa4ebdc3ee..b024f143e3 100644--- a/packages/cli/templates/blocks/components/DropdownMenu/DropdownMenuWithDisabledItems.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/DropdownMenu/DropdownMenuWithDisabledItems.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'DropdownMenu',diff --git a/packages/cli/templates/blocks/components/DropdownMenu/DropdownMenuWithDisabledItems.tsx b/packages/cli/assets/templates/blocks/components/DropdownMenu/DropdownMenuWithDisabledItems.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/DropdownMenu/DropdownMenuWithDisabledItems.tsxrename to packages/cli/assets/templates/blocks/components/DropdownMenu/DropdownMenuWithDisabledItems.tsxdiff --git a/packages/cli/templates/blocks/components/DropdownMenu/DropdownMenuWithSections.doc.mjs b/packages/cli/assets/templates/blocks/components/DropdownMenu/DropdownMenuWithSections.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/DropdownMenu/DropdownMenuWithSections.doc.mjsrename to packages/cli/assets/templates/blocks/components/DropdownMenu/DropdownMenuWithSections.doc.mjsindex 2945644074..dec13177ea 100644--- a/packages/cli/templates/blocks/components/DropdownMenu/DropdownMenuWithSections.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/DropdownMenu/DropdownMenuWithSections.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'DropdownMenu',diff --git a/packages/cli/templates/blocks/components/DropdownMenu/DropdownMenuWithSections.tsx b/packages/cli/assets/templates/blocks/components/DropdownMenu/DropdownMenuWithSections.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/DropdownMenu/DropdownMenuWithSections.tsxrename to packages/cli/assets/templates/blocks/components/DropdownMenu/DropdownMenuWithSections.tsxdiff --git a/packages/cli/templates/blocks/components/DropdownMenu/DropdownMenuWithSubmenu.doc.mjs b/packages/cli/assets/templates/blocks/components/DropdownMenu/DropdownMenuWithSubmenu.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/DropdownMenu/DropdownMenuWithSubmenu.doc.mjsrename to packages/cli/assets/templates/blocks/components/DropdownMenu/DropdownMenuWithSubmenu.doc.mjsindex adb2bd5690..8cb6598f44 100644--- a/packages/cli/templates/blocks/components/DropdownMenu/DropdownMenuWithSubmenu.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/DropdownMenu/DropdownMenuWithSubmenu.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'DropdownMenu',diff --git a/packages/cli/templates/blocks/components/DropdownMenu/DropdownMenuWithSubmenu.tsx b/packages/cli/assets/templates/blocks/components/DropdownMenu/DropdownMenuWithSubmenu.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/DropdownMenu/DropdownMenuWithSubmenu.tsxrename to packages/cli/assets/templates/blocks/components/DropdownMenu/DropdownMenuWithSubmenu.tsxdiff --git a/packages/cli/templates/blocks/components/DropdownMenuItem/DropdownMenuItemBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/DropdownMenuItem/DropdownMenuItemBasic.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/DropdownMenuItem/DropdownMenuItemBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/DropdownMenuItem/DropdownMenuItemBasic.doc.mjsindex 4fc12aeb0a..ab1f595bf5 100644--- a/packages/cli/templates/blocks/components/DropdownMenuItem/DropdownMenuItemBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/DropdownMenuItem/DropdownMenuItemBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'DropdownMenuItem',diff --git a/packages/cli/templates/blocks/components/DropdownMenuItem/DropdownMenuItemBasic.tsx b/packages/cli/assets/templates/blocks/components/DropdownMenuItem/DropdownMenuItemBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/DropdownMenuItem/DropdownMenuItemBasic.tsxrename to packages/cli/assets/templates/blocks/components/DropdownMenuItem/DropdownMenuItemBasic.tsxdiff --git a/packages/cli/templates/blocks/components/DropdownMenuItem/DropdownMenuItemShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/DropdownMenuItem/DropdownMenuItemShowcase.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/DropdownMenuItem/DropdownMenuItemShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/DropdownMenuItem/DropdownMenuItemShowcase.doc.mjsindex 176688abbe..aba81fa7e7 100644--- a/packages/cli/templates/blocks/components/DropdownMenuItem/DropdownMenuItemShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/DropdownMenuItem/DropdownMenuItemShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'DropdownMenuItem',diff --git a/packages/cli/templates/blocks/components/DropdownMenuItem/DropdownMenuItemShowcase.tsx b/packages/cli/assets/templates/blocks/components/DropdownMenuItem/DropdownMenuItemShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/DropdownMenuItem/DropdownMenuItemShowcase.tsxrename to packages/cli/assets/templates/blocks/components/DropdownMenuItem/DropdownMenuItemShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/EmptyState/EmptyStateActions.doc.mjs b/packages/cli/assets/templates/blocks/components/EmptyState/EmptyStateActions.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/EmptyState/EmptyStateActions.doc.mjsrename to packages/cli/assets/templates/blocks/components/EmptyState/EmptyStateActions.doc.mjsindex db21ca81cc..2a0fffb396 100644--- a/packages/cli/templates/blocks/components/EmptyState/EmptyStateActions.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/EmptyState/EmptyStateActions.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'EmptyState',diff --git a/packages/cli/templates/blocks/components/EmptyState/EmptyStateActions.tsx b/packages/cli/assets/templates/blocks/components/EmptyState/EmptyStateActions.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/EmptyState/EmptyStateActions.tsxrename to packages/cli/assets/templates/blocks/components/EmptyState/EmptyStateActions.tsxdiff --git a/packages/cli/templates/blocks/components/EmptyState/EmptyStateCompact.doc.mjs b/packages/cli/assets/templates/blocks/components/EmptyState/EmptyStateCompact.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/EmptyState/EmptyStateCompact.doc.mjsrename to packages/cli/assets/templates/blocks/components/EmptyState/EmptyStateCompact.doc.mjsindex 128d57b7ae..2c6ec1f342 100644--- a/packages/cli/templates/blocks/components/EmptyState/EmptyStateCompact.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/EmptyState/EmptyStateCompact.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'EmptyState',diff --git a/packages/cli/templates/blocks/components/EmptyState/EmptyStateCompact.tsx b/packages/cli/assets/templates/blocks/components/EmptyState/EmptyStateCompact.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/EmptyState/EmptyStateCompact.tsxrename to packages/cli/assets/templates/blocks/components/EmptyState/EmptyStateCompact.tsxdiff --git a/packages/cli/templates/blocks/components/EmptyState/EmptyStateContainer.doc.mjs b/packages/cli/assets/templates/blocks/components/EmptyState/EmptyStateContainer.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/EmptyState/EmptyStateContainer.doc.mjsrename to packages/cli/assets/templates/blocks/components/EmptyState/EmptyStateContainer.doc.mjsindex 057c4f80cd..318bccb537 100644--- a/packages/cli/templates/blocks/components/EmptyState/EmptyStateContainer.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/EmptyState/EmptyStateContainer.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'EmptyState',diff --git a/packages/cli/templates/blocks/components/EmptyState/EmptyStateContainer.tsx b/packages/cli/assets/templates/blocks/components/EmptyState/EmptyStateContainer.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/EmptyState/EmptyStateContainer.tsxrename to packages/cli/assets/templates/blocks/components/EmptyState/EmptyStateContainer.tsxdiff --git a/packages/cli/templates/blocks/components/EmptyState/EmptyStateShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/EmptyState/EmptyStateShowcase.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/EmptyState/EmptyStateShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/EmptyState/EmptyStateShowcase.doc.mjsindex 90d33d20c5..a178eb8360 100644--- a/packages/cli/templates/blocks/components/EmptyState/EmptyStateShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/EmptyState/EmptyStateShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'EmptyState',diff --git a/packages/cli/templates/blocks/components/EmptyState/EmptyStateShowcase.tsx b/packages/cli/assets/templates/blocks/components/EmptyState/EmptyStateShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/EmptyState/EmptyStateShowcase.tsxrename to packages/cli/assets/templates/blocks/components/EmptyState/EmptyStateShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Field/FieldRequired.doc.mjs b/packages/cli/assets/templates/blocks/components/Field/FieldRequired.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Field/FieldRequired.doc.mjsrename to packages/cli/assets/templates/blocks/components/Field/FieldRequired.doc.mjsindex b7a44d36cd..64890e1dd2 100644--- a/packages/cli/templates/blocks/components/Field/FieldRequired.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Field/FieldRequired.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Field',diff --git a/packages/cli/templates/blocks/components/Field/FieldRequired.tsx b/packages/cli/assets/templates/blocks/components/Field/FieldRequired.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Field/FieldRequired.tsxrename to packages/cli/assets/templates/blocks/components/Field/FieldRequired.tsxdiff --git a/packages/cli/templates/blocks/components/Field/FieldShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Field/FieldShowcase.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/Field/FieldShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Field/FieldShowcase.doc.mjsindex 28fddff34b..07d4d99f75 100644--- a/packages/cli/templates/blocks/components/Field/FieldShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Field/FieldShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Field',diff --git a/packages/cli/templates/blocks/components/Field/FieldShowcase.tsx b/packages/cli/assets/templates/blocks/components/Field/FieldShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Field/FieldShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Field/FieldShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Field/FieldStatusVariants.doc.mjs b/packages/cli/assets/templates/blocks/components/Field/FieldStatusVariants.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/Field/FieldStatusVariants.doc.mjsrename to packages/cli/assets/templates/blocks/components/Field/FieldStatusVariants.doc.mjsindex 21b1dadb44..d31d4abf6d 100644--- a/packages/cli/templates/blocks/components/Field/FieldStatusVariants.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Field/FieldStatusVariants.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Field',diff --git a/packages/cli/templates/blocks/components/Field/FieldStatusVariants.tsx b/packages/cli/assets/templates/blocks/components/Field/FieldStatusVariants.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Field/FieldStatusVariants.tsxrename to packages/cli/assets/templates/blocks/components/Field/FieldStatusVariants.tsxdiff --git a/packages/cli/templates/blocks/components/Field/FieldWithDescription.doc.mjs b/packages/cli/assets/templates/blocks/components/Field/FieldWithDescription.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/Field/FieldWithDescription.doc.mjsrename to packages/cli/assets/templates/blocks/components/Field/FieldWithDescription.doc.mjsindex cd92e0263c..da3e34e2ad 100644--- a/packages/cli/templates/blocks/components/Field/FieldWithDescription.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Field/FieldWithDescription.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Field',diff --git a/packages/cli/templates/blocks/components/Field/FieldWithDescription.tsx b/packages/cli/assets/templates/blocks/components/Field/FieldWithDescription.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Field/FieldWithDescription.tsxrename to packages/cli/assets/templates/blocks/components/Field/FieldWithDescription.tsxdiff --git a/packages/cli/templates/blocks/components/FieldLabel/FieldLabelBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/FieldLabel/FieldLabelBasic.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/FieldLabel/FieldLabelBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/FieldLabel/FieldLabelBasic.doc.mjsindex ce9fdbb0c4..2a51c2e58d 100644--- a/packages/cli/templates/blocks/components/FieldLabel/FieldLabelBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/FieldLabel/FieldLabelBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'FieldLabel',diff --git a/packages/cli/templates/blocks/components/FieldLabel/FieldLabelBasic.tsx b/packages/cli/assets/templates/blocks/components/FieldLabel/FieldLabelBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/FieldLabel/FieldLabelBasic.tsxrename to packages/cli/assets/templates/blocks/components/FieldLabel/FieldLabelBasic.tsxdiff --git a/packages/cli/templates/blocks/components/FieldLabel/FieldLabelShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/FieldLabel/FieldLabelShowcase.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/FieldLabel/FieldLabelShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/FieldLabel/FieldLabelShowcase.doc.mjsindex 7b9d2690c6..a4d1621dd8 100644--- a/packages/cli/templates/blocks/components/FieldLabel/FieldLabelShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/FieldLabel/FieldLabelShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'FieldLabel',diff --git a/packages/cli/templates/blocks/components/FieldLabel/FieldLabelShowcase.tsx b/packages/cli/assets/templates/blocks/components/FieldLabel/FieldLabelShowcase.tsxsimilarity index 69%rename from packages/cli/templates/blocks/components/FieldLabel/FieldLabelShowcase.tsxrename to packages/cli/assets/templates/blocks/components/FieldLabel/FieldLabelShowcase.tsxindex 3f3fb882e0..4c82fa50a3 100644--- a/packages/cli/templates/blocks/components/FieldLabel/FieldLabelShowcase.tsx+++ b/packages/cli/assets/templates/blocks/components/FieldLabel/FieldLabelShowcase.tsx@@ -6,7 +6,14 @@ import {FieldLabel} from '@astryxdesign/core/Field';import {VStack} from '@astryxdesign/core/Layout';const LockIcon = (props: React.SVGProps<SVGSVGElement>) => (- <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={1.5} strokeLinecap="round" strokeLinejoin="round" {...props}>+ <svg+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth={1.5}+ strokeLinecap="round"+ strokeLinejoin="round"+ {...props}><rect x="3" y="11" width="18" height="11" rx="2" /><path d="M7 11V7a5 5 0 0 1 10 0v4" /></svg>@@ -15,11 +22,7 @@ const LockIcon = (props: React.SVGProps<SVGSVGElement>) => (export default function FieldLabelShowcase() {return (<VStack gap={4}>- <FieldLabel- label="Email address"- inputID="email-input"- isRequired- />+ <FieldLabel label="Email address" inputID="email-input" isRequired /><FieldLabellabel="Phone number"inputID="phone-input"@@ -32,11 +35,7 @@ export default function FieldLabelShowcase() {labelTooltip="Your API key can be found in the developer settings"labelIcon={LockIcon}/>- <FieldLabel- label="Disabled field"- inputID="disabled-input"- isDisabled- />+ <FieldLabel label="Disabled field" inputID="disabled-input" isDisabled /></VStack>);}diff --git a/packages/cli/templates/blocks/components/FieldStatus/FieldStatusBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/FieldStatus/FieldStatusBasic.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/FieldStatus/FieldStatusBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/FieldStatus/FieldStatusBasic.doc.mjsindex 8c869b242d..be62dbf456 100644--- a/packages/cli/templates/blocks/components/FieldStatus/FieldStatusBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/FieldStatus/FieldStatusBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'FieldStatus',diff --git a/packages/cli/templates/blocks/components/FieldStatus/FieldStatusBasic.tsx b/packages/cli/assets/templates/blocks/components/FieldStatus/FieldStatusBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/FieldStatus/FieldStatusBasic.tsxrename to packages/cli/assets/templates/blocks/components/FieldStatus/FieldStatusBasic.tsxdiff --git a/packages/cli/templates/blocks/components/FieldStatus/FieldStatusShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/FieldStatus/FieldStatusShowcase.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/FieldStatus/FieldStatusShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/FieldStatus/FieldStatusShowcase.doc.mjsindex 274888c604..96a6979585 100644--- a/packages/cli/templates/blocks/components/FieldStatus/FieldStatusShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/FieldStatus/FieldStatusShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'FieldStatus',diff --git a/packages/cli/templates/blocks/components/FieldStatus/FieldStatusShowcase.tsx b/packages/cli/assets/templates/blocks/components/FieldStatus/FieldStatusShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/FieldStatus/FieldStatusShowcase.tsxrename to packages/cli/assets/templates/blocks/components/FieldStatus/FieldStatusShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/FileInput/FileInputBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/FileInput/FileInputBasic.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/FileInput/FileInputBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/FileInput/FileInputBasic.doc.mjsindex 8a553be90a..c21c5cd9a2 100644--- a/packages/cli/templates/blocks/components/FileInput/FileInputBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/FileInput/FileInputBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'FileInput',diff --git a/packages/cli/templates/blocks/components/FileInput/FileInputBasic.tsx b/packages/cli/assets/templates/blocks/components/FileInput/FileInputBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/FileInput/FileInputBasic.tsxrename to packages/cli/assets/templates/blocks/components/FileInput/FileInputBasic.tsxdiff --git a/packages/cli/templates/blocks/components/FileInput/FileInputShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/FileInput/FileInputShowcase.doc.mjssimilarity index 100%rename from packages/cli/templates/blocks/components/FileInput/FileInputShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/FileInput/FileInputShowcase.doc.mjsdiff --git a/packages/cli/templates/blocks/components/FileInput/FileInputShowcase.tsx b/packages/cli/assets/templates/blocks/components/FileInput/FileInputShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/FileInput/FileInputShowcase.tsxrename to packages/cli/assets/templates/blocks/components/FileInput/FileInputShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/FormLayout/FormLayoutHorizontal.doc.mjs b/packages/cli/assets/templates/blocks/components/FormLayout/FormLayoutHorizontal.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/FormLayout/FormLayoutHorizontal.doc.mjsrename to packages/cli/assets/templates/blocks/components/FormLayout/FormLayoutHorizontal.doc.mjsindex bfc10fbbcd..04905543f6 100644--- a/packages/cli/templates/blocks/components/FormLayout/FormLayoutHorizontal.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/FormLayout/FormLayoutHorizontal.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'FormLayout',diff --git a/packages/cli/templates/blocks/components/FormLayout/FormLayoutHorizontal.tsx b/packages/cli/assets/templates/blocks/components/FormLayout/FormLayoutHorizontal.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/FormLayout/FormLayoutHorizontal.tsxrename to packages/cli/assets/templates/blocks/components/FormLayout/FormLayoutHorizontal.tsxdiff --git a/packages/cli/templates/blocks/components/FormLayout/FormLayoutHorizontalLabels.doc.mjs b/packages/cli/assets/templates/blocks/components/FormLayout/FormLayoutHorizontalLabels.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/FormLayout/FormLayoutHorizontalLabels.doc.mjsrename to packages/cli/assets/templates/blocks/components/FormLayout/FormLayoutHorizontalLabels.doc.mjsindex cf33de2118..ffa5ef2058 100644--- a/packages/cli/templates/blocks/components/FormLayout/FormLayoutHorizontalLabels.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/FormLayout/FormLayoutHorizontalLabels.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'FormLayout',diff --git a/packages/cli/templates/blocks/components/FormLayout/FormLayoutHorizontalLabels.tsx b/packages/cli/assets/templates/blocks/components/FormLayout/FormLayoutHorizontalLabels.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/FormLayout/FormLayoutHorizontalLabels.tsxrename to packages/cli/assets/templates/blocks/components/FormLayout/FormLayoutHorizontalLabels.tsxdiff --git a/packages/cli/templates/blocks/components/FormLayout/FormLayoutMixedControls.doc.mjs b/packages/cli/assets/templates/blocks/components/FormLayout/FormLayoutMixedControls.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/FormLayout/FormLayoutMixedControls.doc.mjsrename to packages/cli/assets/templates/blocks/components/FormLayout/FormLayoutMixedControls.doc.mjsindex d74afa506b..4268db7501 100644--- a/packages/cli/templates/blocks/components/FormLayout/FormLayoutMixedControls.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/FormLayout/FormLayoutMixedControls.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'FormLayout',diff --git a/packages/cli/templates/blocks/components/FormLayout/FormLayoutMixedControls.tsx b/packages/cli/assets/templates/blocks/components/FormLayout/FormLayoutMixedControls.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/FormLayout/FormLayoutMixedControls.tsxrename to packages/cli/assets/templates/blocks/components/FormLayout/FormLayoutMixedControls.tsxdiff --git a/packages/cli/templates/blocks/components/FormLayout/FormLayoutNested.doc.mjs b/packages/cli/assets/templates/blocks/components/FormLayout/FormLayoutNested.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/FormLayout/FormLayoutNested.doc.mjsrename to packages/cli/assets/templates/blocks/components/FormLayout/FormLayoutNested.doc.mjsindex 055b4a8587..df390d61d7 100644--- a/packages/cli/templates/blocks/components/FormLayout/FormLayoutNested.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/FormLayout/FormLayoutNested.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'FormLayout',diff --git a/packages/cli/templates/blocks/components/FormLayout/FormLayoutNested.tsx b/packages/cli/assets/templates/blocks/components/FormLayout/FormLayoutNested.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/FormLayout/FormLayoutNested.tsxrename to packages/cli/assets/templates/blocks/components/FormLayout/FormLayoutNested.tsxdiff --git a/packages/cli/templates/blocks/components/FormLayout/FormLayoutShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/FormLayout/FormLayoutShowcase.doc.mjssimilarity index 82%rename from packages/cli/templates/blocks/components/FormLayout/FormLayoutShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/FormLayout/FormLayoutShowcase.doc.mjsindex a70d18a9ac..429e626afe 100644--- a/packages/cli/templates/blocks/components/FormLayout/FormLayoutShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/FormLayout/FormLayoutShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'FormLayout',diff --git a/packages/cli/templates/blocks/components/FormLayout/FormLayoutShowcase.tsx b/packages/cli/assets/templates/blocks/components/FormLayout/FormLayoutShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/FormLayout/FormLayoutShowcase.tsxrename to packages/cli/assets/templates/blocks/components/FormLayout/FormLayoutShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Grid/GridDashboardLayout.doc.mjs b/packages/cli/assets/templates/blocks/components/Grid/GridDashboardLayout.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/Grid/GridDashboardLayout.doc.mjsrename to packages/cli/assets/templates/blocks/components/Grid/GridDashboardLayout.doc.mjsindex 2063a9bb5b..3e3b796068 100644--- a/packages/cli/templates/blocks/components/Grid/GridDashboardLayout.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Grid/GridDashboardLayout.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Grid',diff --git a/packages/cli/templates/blocks/components/Grid/GridDashboardLayout.tsx b/packages/cli/assets/templates/blocks/components/Grid/GridDashboardLayout.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Grid/GridDashboardLayout.tsxrename to packages/cli/assets/templates/blocks/components/Grid/GridDashboardLayout.tsxdiff --git a/packages/cli/templates/blocks/components/Grid/GridGalleryExample.doc.mjs b/packages/cli/assets/templates/blocks/components/Grid/GridGalleryExample.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Grid/GridGalleryExample.doc.mjsrename to packages/cli/assets/templates/blocks/components/Grid/GridGalleryExample.doc.mjsindex 2856fe3cda..4c9011a044 100644--- a/packages/cli/templates/blocks/components/Grid/GridGalleryExample.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Grid/GridGalleryExample.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Grid',diff --git a/packages/cli/templates/blocks/components/Grid/GridGalleryExample.tsx b/packages/cli/assets/templates/blocks/components/Grid/GridGalleryExample.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Grid/GridGalleryExample.tsxrename to packages/cli/assets/templates/blocks/components/Grid/GridGalleryExample.tsxdiff --git a/packages/cli/templates/blocks/components/Grid/GridResponsiveAutoFit.doc.mjs b/packages/cli/assets/templates/blocks/components/Grid/GridResponsiveAutoFit.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/Grid/GridResponsiveAutoFit.doc.mjsrename to packages/cli/assets/templates/blocks/components/Grid/GridResponsiveAutoFit.doc.mjsindex 080ae535ab..2210799b45 100644--- a/packages/cli/templates/blocks/components/Grid/GridResponsiveAutoFit.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Grid/GridResponsiveAutoFit.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Grid',diff --git a/packages/cli/templates/blocks/components/Grid/GridResponsiveAutoFit.tsx b/packages/cli/assets/templates/blocks/components/Grid/GridResponsiveAutoFit.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Grid/GridResponsiveAutoFit.tsxrename to packages/cli/assets/templates/blocks/components/Grid/GridResponsiveAutoFit.tsxdiff --git a/packages/cli/templates/blocks/components/Grid/GridShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Grid/GridShowcase.doc.mjssimilarity index 77%rename from packages/cli/templates/blocks/components/Grid/GridShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Grid/GridShowcase.doc.mjsindex 8747079f13..b21b553723 100644--- a/packages/cli/templates/blocks/components/Grid/GridShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Grid/GridShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Grid',diff --git a/packages/cli/templates/blocks/components/Grid/GridShowcase.tsx b/packages/cli/assets/templates/blocks/components/Grid/GridShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Grid/GridShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Grid/GridShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Grid/GridWithGridSpan.doc.mjs b/packages/cli/assets/templates/blocks/components/Grid/GridWithGridSpan.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/Grid/GridWithGridSpan.doc.mjsrename to packages/cli/assets/templates/blocks/components/Grid/GridWithGridSpan.doc.mjsindex 5b294b0454..b3b6d3f725 100644--- a/packages/cli/templates/blocks/components/Grid/GridWithGridSpan.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Grid/GridWithGridSpan.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Grid',diff --git a/packages/cli/templates/blocks/components/Grid/GridWithGridSpan.tsx b/packages/cli/assets/templates/blocks/components/Grid/GridWithGridSpan.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Grid/GridWithGridSpan.tsxrename to packages/cli/assets/templates/blocks/components/Grid/GridWithGridSpan.tsxdiff --git a/packages/cli/templates/blocks/components/GridSpan/GridSpanColumns.doc.mjs b/packages/cli/assets/templates/blocks/components/GridSpan/GridSpanColumns.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/GridSpan/GridSpanColumns.doc.mjsrename to packages/cli/assets/templates/blocks/components/GridSpan/GridSpanColumns.doc.mjsindex 9071b10111..080a5c1297 100644--- a/packages/cli/templates/blocks/components/GridSpan/GridSpanColumns.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/GridSpan/GridSpanColumns.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'GridSpan',diff --git a/packages/cli/templates/blocks/components/GridSpan/GridSpanColumns.tsx b/packages/cli/assets/templates/blocks/components/GridSpan/GridSpanColumns.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/GridSpan/GridSpanColumns.tsxrename to packages/cli/assets/templates/blocks/components/GridSpan/GridSpanColumns.tsxdiff --git a/packages/cli/templates/blocks/components/GridSpan/GridSpanShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/GridSpan/GridSpanShowcase.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/GridSpan/GridSpanShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/GridSpan/GridSpanShowcase.doc.mjsindex 991f6d55da..999288eb79 100644--- a/packages/cli/templates/blocks/components/GridSpan/GridSpanShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/GridSpan/GridSpanShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'GridSpan',diff --git a/packages/cli/templates/blocks/components/GridSpan/GridSpanShowcase.tsx b/packages/cli/assets/templates/blocks/components/GridSpan/GridSpanShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/GridSpan/GridSpanShowcase.tsxrename to packages/cli/assets/templates/blocks/components/GridSpan/GridSpanShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/HStack/HStackBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/HStack/HStackBasic.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/HStack/HStackBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/HStack/HStackBasic.doc.mjsindex 9aded3eba2..156262473a 100644--- a/packages/cli/templates/blocks/components/HStack/HStackBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/HStack/HStackBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'HStack',diff --git a/packages/cli/templates/blocks/components/HStack/HStackBasic.tsx b/packages/cli/assets/templates/blocks/components/HStack/HStackBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/HStack/HStackBasic.tsxrename to packages/cli/assets/templates/blocks/components/HStack/HStackBasic.tsxdiff --git a/packages/cli/templates/blocks/components/HStack/HStackShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/HStack/HStackShowcase.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/HStack/HStackShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/HStack/HStackShowcase.doc.mjsindex a35af1c7c4..8c2dcb0d4e 100644--- a/packages/cli/templates/blocks/components/HStack/HStackShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/HStack/HStackShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'HStack',diff --git a/packages/cli/templates/blocks/components/HStack/HStackShowcase.tsx b/packages/cli/assets/templates/blocks/components/HStack/HStackShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/HStack/HStackShowcase.tsxrename to packages/cli/assets/templates/blocks/components/HStack/HStackShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Heading/HeadingCardGrid.doc.mjs b/packages/cli/assets/templates/blocks/components/Heading/HeadingCardGrid.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Heading/HeadingCardGrid.doc.mjsrename to packages/cli/assets/templates/blocks/components/Heading/HeadingCardGrid.doc.mjsindex 5feafd7163..bc507d272d 100644--- a/packages/cli/templates/blocks/components/Heading/HeadingCardGrid.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Heading/HeadingCardGrid.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Heading',diff --git a/packages/cli/templates/blocks/components/Heading/HeadingCardGrid.tsx b/packages/cli/assets/templates/blocks/components/Heading/HeadingCardGrid.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Heading/HeadingCardGrid.tsxrename to packages/cli/assets/templates/blocks/components/Heading/HeadingCardGrid.tsxdiff --git a/packages/cli/templates/blocks/components/Heading/HeadingPageLayout.doc.mjs b/packages/cli/assets/templates/blocks/components/Heading/HeadingPageLayout.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/Heading/HeadingPageLayout.doc.mjsrename to packages/cli/assets/templates/blocks/components/Heading/HeadingPageLayout.doc.mjsindex 80479d800e..b6158ab58d 100644--- a/packages/cli/templates/blocks/components/Heading/HeadingPageLayout.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Heading/HeadingPageLayout.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Heading',diff --git a/packages/cli/templates/blocks/components/Heading/HeadingPageLayout.tsx b/packages/cli/assets/templates/blocks/components/Heading/HeadingPageLayout.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Heading/HeadingPageLayout.tsxrename to packages/cli/assets/templates/blocks/components/Heading/HeadingPageLayout.tsxdiff --git a/packages/cli/templates/blocks/components/Heading/HeadingShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Heading/HeadingShowcase.doc.mjssimilarity index 78%rename from packages/cli/templates/blocks/components/Heading/HeadingShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Heading/HeadingShowcase.doc.mjsindex ea68c6246c..14360617c3 100644--- a/packages/cli/templates/blocks/components/Heading/HeadingShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Heading/HeadingShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Heading',diff --git a/packages/cli/templates/blocks/components/Heading/HeadingShowcase.tsx b/packages/cli/assets/templates/blocks/components/Heading/HeadingShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Heading/HeadingShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Heading/HeadingShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Heading/HeadingTruncation.doc.mjs b/packages/cli/assets/templates/blocks/components/Heading/HeadingTruncation.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Heading/HeadingTruncation.doc.mjsrename to packages/cli/assets/templates/blocks/components/Heading/HeadingTruncation.doc.mjsindex 5b3666658b..2fe1c767b5 100644--- a/packages/cli/templates/blocks/components/Heading/HeadingTruncation.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Heading/HeadingTruncation.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Heading',diff --git a/packages/cli/templates/blocks/components/Heading/HeadingTruncation.tsx b/packages/cli/assets/templates/blocks/components/Heading/HeadingTruncation.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Heading/HeadingTruncation.tsxrename to packages/cli/assets/templates/blocks/components/Heading/HeadingTruncation.tsxdiff --git a/packages/cli/templates/blocks/components/Hooks/useKeyboardHintHookUsage.doc.mjs b/packages/cli/assets/templates/blocks/components/Hooks/useKeyboardHintHookUsage.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/Hooks/useKeyboardHintHookUsage.doc.mjsrename to packages/cli/assets/templates/blocks/components/Hooks/useKeyboardHintHookUsage.doc.mjsindex 84fd1b5680..15318bbc7a 100644--- a/packages/cli/templates/blocks/components/Hooks/useKeyboardHintHookUsage.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Hooks/useKeyboardHintHookUsage.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'useKeyboardHint',diff --git a/packages/cli/templates/blocks/components/Hooks/useKeyboardHintHookUsage.tsx b/packages/cli/assets/templates/blocks/components/Hooks/useKeyboardHintHookUsage.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Hooks/useKeyboardHintHookUsage.tsxrename to packages/cli/assets/templates/blocks/components/Hooks/useKeyboardHintHookUsage.tsxdiff --git a/packages/cli/templates/blocks/components/Hooks/useStreamingTextHookUsage.doc.mjs b/packages/cli/assets/templates/blocks/components/Hooks/useStreamingTextHookUsage.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Hooks/useStreamingTextHookUsage.doc.mjsrename to packages/cli/assets/templates/blocks/components/Hooks/useStreamingTextHookUsage.doc.mjsindex 5d0aabd97d..85bc5a1cbb 100644--- a/packages/cli/templates/blocks/components/Hooks/useStreamingTextHookUsage.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Hooks/useStreamingTextHookUsage.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'useStreamingText',diff --git a/packages/cli/templates/blocks/components/Hooks/useStreamingTextHookUsage.tsx b/packages/cli/assets/templates/blocks/components/Hooks/useStreamingTextHookUsage.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Hooks/useStreamingTextHookUsage.tsxrename to packages/cli/assets/templates/blocks/components/Hooks/useStreamingTextHookUsage.tsxdiff --git a/packages/cli/templates/blocks/components/HoverCard/HoverCardHookUsage.doc.mjs b/packages/cli/assets/templates/blocks/components/HoverCard/HoverCardHookUsage.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/HoverCard/HoverCardHookUsage.doc.mjsrename to packages/cli/assets/templates/blocks/components/HoverCard/HoverCardHookUsage.doc.mjsindex ed157a52d4..55772f7cec 100644--- a/packages/cli/templates/blocks/components/HoverCard/HoverCardHookUsage.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/HoverCard/HoverCardHookUsage.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'useHoverCard',diff --git a/packages/cli/templates/blocks/components/HoverCard/HoverCardHookUsage.tsx b/packages/cli/assets/templates/blocks/components/HoverCard/HoverCardHookUsage.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/HoverCard/HoverCardHookUsage.tsxrename to packages/cli/assets/templates/blocks/components/HoverCard/HoverCardHookUsage.tsxdiff --git a/packages/cli/templates/blocks/components/HoverCard/HoverCardInlineTextHoverCard.doc.mjs b/packages/cli/assets/templates/blocks/components/HoverCard/HoverCardInlineTextHoverCard.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/HoverCard/HoverCardInlineTextHoverCard.doc.mjsrename to packages/cli/assets/templates/blocks/components/HoverCard/HoverCardInlineTextHoverCard.doc.mjsindex e8930ee6b2..e0e9238b5a 100644--- a/packages/cli/templates/blocks/components/HoverCard/HoverCardInlineTextHoverCard.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/HoverCard/HoverCardInlineTextHoverCard.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'HoverCard',diff --git a/packages/cli/templates/blocks/components/HoverCard/HoverCardInlineTextHoverCard.tsx b/packages/cli/assets/templates/blocks/components/HoverCard/HoverCardInlineTextHoverCard.tsxsimilarity index 88%rename from packages/cli/templates/blocks/components/HoverCard/HoverCardInlineTextHoverCard.tsxrename to packages/cli/assets/templates/blocks/components/HoverCard/HoverCardInlineTextHoverCard.tsxindex 1eff4d412d..f505abc3ee 100644--- a/packages/cli/templates/blocks/components/HoverCard/HoverCardInlineTextHoverCard.tsx+++ b/packages/cli/assets/templates/blocks/components/HoverCard/HoverCardInlineTextHoverCard.tsx@@ -11,7 +11,8 @@ const content: CSSProperties = {maxWidth: 200};export default function HoverCardInlineTextHoverCard() {return (- <Text type="body">The component uses a{' '}+ <Text type="body">+ The component uses a{' '}<HoverCardcontent={<VStack gap={1} style={content}>@@ -25,7 +26,8 @@ export default function HoverCardInlineTextHoverCard() {}placement="above">focus trap- </HoverCard>{' '}to keep keyboard navigation inside the{' '}+ </HoverCard>{' '}+ to keep keyboard navigation inside the{' '}<HoverCardcontent={<VStack gap={1} style={content}>@@ -39,7 +41,8 @@ export default function HoverCardInlineTextHoverCard() {}placement="above">modal dialog- </HoverCard>.- </Text>+ </HoverCard>+ .+ </Text>);}diff --git a/packages/cli/templates/blocks/components/HoverCard/HoverCardInteractiveContent.doc.mjs b/packages/cli/assets/templates/blocks/components/HoverCard/HoverCardInteractiveContent.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/HoverCard/HoverCardInteractiveContent.doc.mjsrename to packages/cli/assets/templates/blocks/components/HoverCard/HoverCardInteractiveContent.doc.mjsindex 67ad3675f6..af3a147c42 100644--- a/packages/cli/templates/blocks/components/HoverCard/HoverCardInteractiveContent.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/HoverCard/HoverCardInteractiveContent.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'HoverCard',diff --git a/packages/cli/templates/blocks/components/HoverCard/HoverCardInteractiveContent.tsx b/packages/cli/assets/templates/blocks/components/HoverCard/HoverCardInteractiveContent.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/HoverCard/HoverCardInteractiveContent.tsxrename to packages/cli/assets/templates/blocks/components/HoverCard/HoverCardInteractiveContent.tsxdiff --git a/packages/cli/templates/blocks/components/HoverCard/HoverCardProfileHoverCard.doc.mjs b/packages/cli/assets/templates/blocks/components/HoverCard/HoverCardProfileHoverCard.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/HoverCard/HoverCardProfileHoverCard.doc.mjsrename to packages/cli/assets/templates/blocks/components/HoverCard/HoverCardProfileHoverCard.doc.mjsindex 159dd13a82..6bac83c94d 100644--- a/packages/cli/templates/blocks/components/HoverCard/HoverCardProfileHoverCard.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/HoverCard/HoverCardProfileHoverCard.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'HoverCard',diff --git a/packages/cli/templates/blocks/components/HoverCard/HoverCardProfileHoverCard.tsx b/packages/cli/assets/templates/blocks/components/HoverCard/HoverCardProfileHoverCard.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/HoverCard/HoverCardProfileHoverCard.tsxrename to packages/cli/assets/templates/blocks/components/HoverCard/HoverCardProfileHoverCard.tsxdiff --git a/packages/cli/templates/blocks/components/HoverCard/HoverCardShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/HoverCard/HoverCardShowcase.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/HoverCard/HoverCardShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/HoverCard/HoverCardShowcase.doc.mjsindex c04ce9eca6..73fe0888c5 100644--- a/packages/cli/templates/blocks/components/HoverCard/HoverCardShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/HoverCard/HoverCardShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'HoverCard',diff --git a/packages/cli/templates/blocks/components/HoverCard/HoverCardShowcase.tsx b/packages/cli/assets/templates/blocks/components/HoverCard/HoverCardShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/HoverCard/HoverCardShowcase.tsxrename to packages/cli/assets/templates/blocks/components/HoverCard/HoverCardShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Icon/IconNonSemanticColors.doc.mjs b/packages/cli/assets/templates/blocks/components/Icon/IconNonSemanticColors.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Icon/IconNonSemanticColors.doc.mjsrename to packages/cli/assets/templates/blocks/components/Icon/IconNonSemanticColors.doc.mjsindex dd59ae7651..4a971ab7f5 100644--- a/packages/cli/templates/blocks/components/Icon/IconNonSemanticColors.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Icon/IconNonSemanticColors.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Icon',diff --git a/packages/cli/templates/blocks/components/Icon/IconNonSemanticColors.tsx b/packages/cli/assets/templates/blocks/components/Icon/IconNonSemanticColors.tsxsimilarity index 95%rename from packages/cli/templates/blocks/components/Icon/IconNonSemanticColors.tsxrename to packages/cli/assets/templates/blocks/components/Icon/IconNonSemanticColors.tsxindex 6f1711a963..fb50f2225d 100644--- a/packages/cli/templates/blocks/components/Icon/IconNonSemanticColors.tsx+++ b/packages/cli/assets/templates/blocks/components/Icon/IconNonSemanticColors.tsx@@ -22,7 +22,7 @@ const colors = [export default function IconNonSemanticColors() {return (<HStack gap={4} wrap="wrap">- {colors.map((color) => (+ {colors.map(color => (<VStack key={color} gap={1} hAlign="center"><Icon icon="search" color={color} /><Text type="supporting">{color}</Text>diff --git a/packages/cli/templates/blocks/components/Icon/IconSemanticColors.doc.mjs b/packages/cli/assets/templates/blocks/components/Icon/IconSemanticColors.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Icon/IconSemanticColors.doc.mjsrename to packages/cli/assets/templates/blocks/components/Icon/IconSemanticColors.doc.mjsindex 13a64cae6a..fb73564522 100644--- a/packages/cli/templates/blocks/components/Icon/IconSemanticColors.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Icon/IconSemanticColors.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Icon',diff --git a/packages/cli/templates/blocks/components/Icon/IconSemanticColors.tsx b/packages/cli/assets/templates/blocks/components/Icon/IconSemanticColors.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Icon/IconSemanticColors.tsxrename to packages/cli/assets/templates/blocks/components/Icon/IconSemanticColors.tsxdiff --git a/packages/cli/templates/blocks/components/Icon/IconShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Icon/IconShowcase.doc.mjssimilarity index 76%rename from packages/cli/templates/blocks/components/Icon/IconShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Icon/IconShowcase.doc.mjsindex c9c0d8968f..5b1c584d63 100644--- a/packages/cli/templates/blocks/components/Icon/IconShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Icon/IconShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Icon',diff --git a/packages/cli/templates/blocks/components/Icon/IconShowcase.tsx b/packages/cli/assets/templates/blocks/components/Icon/IconShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Icon/IconShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Icon/IconShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Icon/IconSizes.doc.mjs b/packages/cli/assets/templates/blocks/components/Icon/IconSizes.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Icon/IconSizes.doc.mjsrename to packages/cli/assets/templates/blocks/components/Icon/IconSizes.doc.mjsindex ff00c3088c..91b6afd0bd 100644--- a/packages/cli/templates/blocks/components/Icon/IconSizes.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Icon/IconSizes.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Icon',diff --git a/packages/cli/templates/blocks/components/Icon/IconSizes.tsx b/packages/cli/assets/templates/blocks/components/Icon/IconSizes.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Icon/IconSizes.tsxrename to packages/cli/assets/templates/blocks/components/Icon/IconSizes.tsxdiff --git a/packages/cli/templates/blocks/components/Icon/IconStatusIcons.doc.mjs b/packages/cli/assets/templates/blocks/components/Icon/IconStatusIcons.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/Icon/IconStatusIcons.doc.mjsrename to packages/cli/assets/templates/blocks/components/Icon/IconStatusIcons.doc.mjsindex cd4674188e..f4ff62fdae 100644--- a/packages/cli/templates/blocks/components/Icon/IconStatusIcons.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Icon/IconStatusIcons.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Icon',diff --git a/packages/cli/templates/blocks/components/Icon/IconStatusIcons.tsx b/packages/cli/assets/templates/blocks/components/Icon/IconStatusIcons.tsxsimilarity index 64%rename from packages/cli/templates/blocks/components/Icon/IconStatusIcons.tsxrename to packages/cli/assets/templates/blocks/components/Icon/IconStatusIcons.tsxindex 8cc9047260..13edf8f05f 100644--- a/packages/cli/templates/blocks/components/Icon/IconStatusIcons.tsx+++ b/packages/cli/assets/templates/blocks/components/Icon/IconStatusIcons.tsx@@ -7,16 +7,28 @@ import {VStack, HStack} from '@astryxdesign/core/Layout';import {Text} from '@astryxdesign/core/Text';const statuses = [- {icon: 'success' as const, color: 'success' as const, label: 'Deployed successfully'},- {icon: 'warning' as const, color: 'warning' as const, label: 'Build has warnings'},+ {+ icon: 'success' as const,+ color: 'success' as const,+ label: 'Deployed successfully',+ },+ {+ icon: 'warning' as const,+ color: 'warning' as const,+ label: 'Build has warnings',+ },{icon: 'error' as const, color: 'error' as const, label: 'Pipeline failed'},- {icon: 'info' as const, color: 'accent' as const, label: 'New version available'},+ {+ icon: 'info' as const,+ color: 'accent' as const,+ label: 'New version available',+ },] as const;export default function IconStatusIcons() {return (<VStack gap={3}>- {statuses.map((status) => (+ {statuses.map(status => (<HStack key={status.label} gap={2} vAlign="center"><Icon icon={status.icon} color={status.color} size="sm" /><Text type="body">{status.label}</Text>diff --git a/packages/cli/templates/blocks/components/IconButton/IconButtonActionBar.doc.mjs b/packages/cli/assets/templates/blocks/components/IconButton/IconButtonActionBar.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/IconButton/IconButtonActionBar.doc.mjsrename to packages/cli/assets/templates/blocks/components/IconButton/IconButtonActionBar.doc.mjsindex 829741c648..805e1018c3 100644--- a/packages/cli/templates/blocks/components/IconButton/IconButtonActionBar.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/IconButton/IconButtonActionBar.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'IconButton',diff --git a/packages/cli/templates/blocks/components/IconButton/IconButtonActionBar.tsx b/packages/cli/assets/templates/blocks/components/IconButton/IconButtonActionBar.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/IconButton/IconButtonActionBar.tsxrename to packages/cli/assets/templates/blocks/components/IconButton/IconButtonActionBar.tsxdiff --git a/packages/cli/templates/blocks/components/IconButton/IconButtonFloating.doc.mjs b/packages/cli/assets/templates/blocks/components/IconButton/IconButtonFloating.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/IconButton/IconButtonFloating.doc.mjsrename to packages/cli/assets/templates/blocks/components/IconButton/IconButtonFloating.doc.mjsindex 7447cb53ba..82d7e25def 100644--- a/packages/cli/templates/blocks/components/IconButton/IconButtonFloating.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/IconButton/IconButtonFloating.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'IconButton',diff --git a/packages/cli/templates/blocks/components/IconButton/IconButtonFloating.tsx b/packages/cli/assets/templates/blocks/components/IconButton/IconButtonFloating.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/IconButton/IconButtonFloating.tsxrename to packages/cli/assets/templates/blocks/components/IconButton/IconButtonFloating.tsxdiff --git a/packages/cli/templates/blocks/components/IconButton/IconButtonLoadingToggle.doc.mjs b/packages/cli/assets/templates/blocks/components/IconButton/IconButtonLoadingToggle.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/IconButton/IconButtonLoadingToggle.doc.mjsrename to packages/cli/assets/templates/blocks/components/IconButton/IconButtonLoadingToggle.doc.mjsindex 6144d52d88..20103df12c 100644--- a/packages/cli/templates/blocks/components/IconButton/IconButtonLoadingToggle.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/IconButton/IconButtonLoadingToggle.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'IconButton',diff --git a/packages/cli/templates/blocks/components/IconButton/IconButtonLoadingToggle.tsx b/packages/cli/assets/templates/blocks/components/IconButton/IconButtonLoadingToggle.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/IconButton/IconButtonLoadingToggle.tsxrename to packages/cli/assets/templates/blocks/components/IconButton/IconButtonLoadingToggle.tsxdiff --git a/packages/cli/templates/blocks/components/IconButton/IconButtonShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/IconButton/IconButtonShowcase.doc.mjssimilarity index 82%rename from packages/cli/templates/blocks/components/IconButton/IconButtonShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/IconButton/IconButtonShowcase.doc.mjsindex 855e7a1cfd..5ecdbd764c 100644--- a/packages/cli/templates/blocks/components/IconButton/IconButtonShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/IconButton/IconButtonShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'IconButton',diff --git a/packages/cli/templates/blocks/components/IconButton/IconButtonShowcase.tsx b/packages/cli/assets/templates/blocks/components/IconButton/IconButtonShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/IconButton/IconButtonShowcase.tsxrename to packages/cli/assets/templates/blocks/components/IconButton/IconButtonShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/IconButton/IconButtonTooltipIconButton.doc.mjs b/packages/cli/assets/templates/blocks/components/IconButton/IconButtonTooltipIconButton.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/IconButton/IconButtonTooltipIconButton.doc.mjsrename to packages/cli/assets/templates/blocks/components/IconButton/IconButtonTooltipIconButton.doc.mjsindex cc8f385737..054a6584bb 100644--- a/packages/cli/templates/blocks/components/IconButton/IconButtonTooltipIconButton.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/IconButton/IconButtonTooltipIconButton.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'IconButton',diff --git a/packages/cli/templates/blocks/components/IconButton/IconButtonTooltipIconButton.tsx b/packages/cli/assets/templates/blocks/components/IconButton/IconButtonTooltipIconButton.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/IconButton/IconButtonTooltipIconButton.tsxrename to packages/cli/assets/templates/blocks/components/IconButton/IconButtonTooltipIconButton.tsxdiff --git a/packages/cli/templates/blocks/components/InputGroup/InputGroupBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/InputGroup/InputGroupBasic.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/InputGroup/InputGroupBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/InputGroup/InputGroupBasic.doc.mjsindex dc5a8a4e11..5d928b5d2f 100644--- a/packages/cli/templates/blocks/components/InputGroup/InputGroupBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/InputGroup/InputGroupBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'InputGroup',diff --git a/packages/cli/templates/blocks/components/InputGroup/InputGroupBasic.tsx b/packages/cli/assets/templates/blocks/components/InputGroup/InputGroupBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/InputGroup/InputGroupBasic.tsxrename to packages/cli/assets/templates/blocks/components/InputGroup/InputGroupBasic.tsxdiff --git a/packages/cli/templates/blocks/components/InputGroup/InputGroupShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/InputGroup/InputGroupShowcase.doc.mjssimilarity index 80%rename from packages/cli/templates/blocks/components/InputGroup/InputGroupShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/InputGroup/InputGroupShowcase.doc.mjsindex 638ca7a18b..6c05b3fd50 100644--- a/packages/cli/templates/blocks/components/InputGroup/InputGroupShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/InputGroup/InputGroupShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'InputGroup',diff --git a/packages/cli/templates/blocks/components/InputGroup/InputGroupShowcase.tsx b/packages/cli/assets/templates/blocks/components/InputGroup/InputGroupShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/InputGroup/InputGroupShowcase.tsxrename to packages/cli/assets/templates/blocks/components/InputGroup/InputGroupShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/InternationalizationProvider/InternationalizationProvider01ShippedLocale.doc.mjs b/packages/cli/assets/templates/blocks/components/InternationalizationProvider/InternationalizationProvider01ShippedLocale.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/InternationalizationProvider/InternationalizationProvider01ShippedLocale.doc.mjsrename to packages/cli/assets/templates/blocks/components/InternationalizationProvider/InternationalizationProvider01ShippedLocale.doc.mjsindex e86f460833..da67c6de03 100644--- a/packages/cli/templates/blocks/components/InternationalizationProvider/InternationalizationProvider01ShippedLocale.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/InternationalizationProvider/InternationalizationProvider01ShippedLocale.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'InternationalizationProvider',diff --git a/packages/cli/templates/blocks/components/InternationalizationProvider/InternationalizationProvider01ShippedLocale.tsx b/packages/cli/assets/templates/blocks/components/InternationalizationProvider/InternationalizationProvider01ShippedLocale.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/InternationalizationProvider/InternationalizationProvider01ShippedLocale.tsxrename to packages/cli/assets/templates/blocks/components/InternationalizationProvider/InternationalizationProvider01ShippedLocale.tsxdiff --git a/packages/cli/templates/blocks/components/InternationalizationProvider/InternationalizationProvider02Overrides.doc.mjs b/packages/cli/assets/templates/blocks/components/InternationalizationProvider/InternationalizationProvider02Overrides.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/InternationalizationProvider/InternationalizationProvider02Overrides.doc.mjsrename to packages/cli/assets/templates/blocks/components/InternationalizationProvider/InternationalizationProvider02Overrides.doc.mjsindex 07f3e7752d..8db75bc970 100644--- a/packages/cli/templates/blocks/components/InternationalizationProvider/InternationalizationProvider02Overrides.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/InternationalizationProvider/InternationalizationProvider02Overrides.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'InternationalizationProvider',diff --git a/packages/cli/templates/blocks/components/InternationalizationProvider/InternationalizationProvider02Overrides.tsx b/packages/cli/assets/templates/blocks/components/InternationalizationProvider/InternationalizationProvider02Overrides.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/InternationalizationProvider/InternationalizationProvider02Overrides.tsxrename to packages/cli/assets/templates/blocks/components/InternationalizationProvider/InternationalizationProvider02Overrides.tsxdiff --git a/packages/cli/templates/blocks/components/InternationalizationProvider/InternationalizationProvider03RtlDirection.doc.mjs b/packages/cli/assets/templates/blocks/components/InternationalizationProvider/InternationalizationProvider03RtlDirection.doc.mjssimilarity index 91%rename from packages/cli/templates/blocks/components/InternationalizationProvider/InternationalizationProvider03RtlDirection.doc.mjsrename to packages/cli/assets/templates/blocks/components/InternationalizationProvider/InternationalizationProvider03RtlDirection.doc.mjsindex ed4da65e74..6463971cc9 100644--- a/packages/cli/templates/blocks/components/InternationalizationProvider/InternationalizationProvider03RtlDirection.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/InternationalizationProvider/InternationalizationProvider03RtlDirection.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'InternationalizationProvider',diff --git a/packages/cli/templates/blocks/components/InternationalizationProvider/InternationalizationProvider03RtlDirection.tsx b/packages/cli/assets/templates/blocks/components/InternationalizationProvider/InternationalizationProvider03RtlDirection.tsxsimilarity index 92%rename from packages/cli/templates/blocks/components/InternationalizationProvider/InternationalizationProvider03RtlDirection.tsxrename to packages/cli/assets/templates/blocks/components/InternationalizationProvider/InternationalizationProvider03RtlDirection.tsxindex ce3707b3f6..2aeec894ba 100644--- a/packages/cli/templates/blocks/components/InternationalizationProvider/InternationalizationProvider03RtlDirection.tsx+++ b/packages/cli/assets/templates/blocks/components/InternationalizationProvider/InternationalizationProvider03RtlDirection.tsx@@ -21,7 +21,11 @@ export default function InternationalizationProviderRtlDirection() {{/* `dir` on the VStack scopes text direction to this subtree — no extrawrapper needed. (VStack has no `direction` prop, so there's nothing toconfuse with `dir` here.) */}- <VStack gap={4} hAlign="center" dir={textDirection} style={{width: '100%'}}>+ <VStack+ gap={4}+ hAlign="center"+ dir={textDirection}+ style={{width: '100%'}}><SegmentedControllabel="Direction"value={textDirection}diff --git a/packages/cli/templates/blocks/components/Item/ItemBasicItem.doc.mjs b/packages/cli/assets/templates/blocks/components/Item/ItemBasicItem.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Item/ItemBasicItem.doc.mjsrename to packages/cli/assets/templates/blocks/components/Item/ItemBasicItem.doc.mjsindex b513bac591..e1aa33dfa9 100644--- a/packages/cli/templates/blocks/components/Item/ItemBasicItem.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Item/ItemBasicItem.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Item',diff --git a/packages/cli/templates/blocks/components/Item/ItemBasicItem.tsx b/packages/cli/assets/templates/blocks/components/Item/ItemBasicItem.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Item/ItemBasicItem.tsxrename to packages/cli/assets/templates/blocks/components/Item/ItemBasicItem.tsxdiff --git a/packages/cli/templates/blocks/components/Item/ItemShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Item/ItemShowcase.doc.mjssimilarity index 80%rename from packages/cli/templates/blocks/components/Item/ItemShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Item/ItemShowcase.doc.mjsindex 5b175e5686..4a7846da17 100644--- a/packages/cli/templates/blocks/components/Item/ItemShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Item/ItemShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Item',diff --git a/packages/cli/templates/blocks/components/Item/ItemShowcase.tsx b/packages/cli/assets/templates/blocks/components/Item/ItemShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Item/ItemShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Item/ItemShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Item/ItemWithMedia.doc.mjs b/packages/cli/assets/templates/blocks/components/Item/ItemWithMedia.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Item/ItemWithMedia.doc.mjsrename to packages/cli/assets/templates/blocks/components/Item/ItemWithMedia.doc.mjsindex 326b467463..5647f8e1ce 100644--- a/packages/cli/templates/blocks/components/Item/ItemWithMedia.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Item/ItemWithMedia.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Item',diff --git a/packages/cli/templates/blocks/components/Item/ItemWithMedia.tsx b/packages/cli/assets/templates/blocks/components/Item/ItemWithMedia.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Item/ItemWithMedia.tsxrename to packages/cli/assets/templates/blocks/components/Item/ItemWithMedia.tsxdiff --git a/packages/cli/templates/blocks/components/Item/ItemWithMetadata.doc.mjs b/packages/cli/assets/templates/blocks/components/Item/ItemWithMetadata.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Item/ItemWithMetadata.doc.mjsrename to packages/cli/assets/templates/blocks/components/Item/ItemWithMetadata.doc.mjsindex e57eb103a1..5bb52a3c83 100644--- a/packages/cli/templates/blocks/components/Item/ItemWithMetadata.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Item/ItemWithMetadata.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Item',diff --git a/packages/cli/templates/blocks/components/Item/ItemWithMetadata.tsx b/packages/cli/assets/templates/blocks/components/Item/ItemWithMetadata.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Item/ItemWithMetadata.tsxrename to packages/cli/assets/templates/blocks/components/Item/ItemWithMetadata.tsxdiff --git a/packages/cli/templates/blocks/components/Kbd/KbdInlineInstructions.doc.mjs b/packages/cli/assets/templates/blocks/components/Kbd/KbdInlineInstructions.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Kbd/KbdInlineInstructions.doc.mjsrename to packages/cli/assets/templates/blocks/components/Kbd/KbdInlineInstructions.doc.mjsindex d9b2b3a05c..8d49d4e72f 100644--- a/packages/cli/templates/blocks/components/Kbd/KbdInlineInstructions.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Kbd/KbdInlineInstructions.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Kbd',diff --git a/packages/cli/templates/blocks/components/Kbd/KbdInlineInstructions.tsx b/packages/cli/assets/templates/blocks/components/Kbd/KbdInlineInstructions.tsxsimilarity index 91%rename from packages/cli/templates/blocks/components/Kbd/KbdInlineInstructions.tsxrename to packages/cli/assets/templates/blocks/components/Kbd/KbdInlineInstructions.tsxindex 0afc32a929..869391f16e 100644--- a/packages/cli/templates/blocks/components/Kbd/KbdInlineInstructions.tsx+++ b/packages/cli/assets/templates/blocks/components/Kbd/KbdInlineInstructions.tsx@@ -19,8 +19,8 @@ export default function KbdInlineInstructions() {Press <Kbd keys="escape" /> to close the dialog.</Text><Text type="body">- Navigate with <Kbd keys="up" /> and <Kbd keys="down" /> arrow- keys, then press <Kbd keys="enter" /> to select.+ Navigate with <Kbd keys="up" /> and <Kbd keys="down" /> arrow keys, then+ press <Kbd keys="enter" /> to select.</Text></VStack>);diff --git a/packages/cli/templates/blocks/components/Kbd/KbdMenuShortcuts.doc.mjs b/packages/cli/assets/templates/blocks/components/Kbd/KbdMenuShortcuts.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Kbd/KbdMenuShortcuts.doc.mjsrename to packages/cli/assets/templates/blocks/components/Kbd/KbdMenuShortcuts.doc.mjsindex 32c936f377..323a2e0973 100644--- a/packages/cli/templates/blocks/components/Kbd/KbdMenuShortcuts.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Kbd/KbdMenuShortcuts.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Kbd',diff --git a/packages/cli/templates/blocks/components/Kbd/KbdMenuShortcuts.tsx b/packages/cli/assets/templates/blocks/components/Kbd/KbdMenuShortcuts.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Kbd/KbdMenuShortcuts.tsxrename to packages/cli/assets/templates/blocks/components/Kbd/KbdMenuShortcuts.tsxdiff --git a/packages/cli/templates/blocks/components/Kbd/KbdModifierCombos.doc.mjs b/packages/cli/assets/templates/blocks/components/Kbd/KbdModifierCombos.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/Kbd/KbdModifierCombos.doc.mjsrename to packages/cli/assets/templates/blocks/components/Kbd/KbdModifierCombos.doc.mjsindex 0e363aa88a..92b974fa9e 100644--- a/packages/cli/templates/blocks/components/Kbd/KbdModifierCombos.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Kbd/KbdModifierCombos.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Kbd',diff --git a/packages/cli/templates/blocks/components/Kbd/KbdModifierCombos.tsx b/packages/cli/assets/templates/blocks/components/Kbd/KbdModifierCombos.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Kbd/KbdModifierCombos.tsxrename to packages/cli/assets/templates/blocks/components/Kbd/KbdModifierCombos.tsxdiff --git a/packages/cli/templates/blocks/components/Kbd/KbdShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Kbd/KbdShowcase.doc.mjssimilarity index 76%rename from packages/cli/templates/blocks/components/Kbd/KbdShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Kbd/KbdShowcase.doc.mjsindex 0cebcf0fc0..786d41b960 100644--- a/packages/cli/templates/blocks/components/Kbd/KbdShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Kbd/KbdShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Kbd',diff --git a/packages/cli/templates/blocks/components/Kbd/KbdShowcase.tsx b/packages/cli/assets/templates/blocks/components/Kbd/KbdShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Kbd/KbdShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Kbd/KbdShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Layer/LayerHookUsage.doc.mjs b/packages/cli/assets/templates/blocks/components/Layer/LayerHookUsage.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Layer/LayerHookUsage.doc.mjsrename to packages/cli/assets/templates/blocks/components/Layer/LayerHookUsage.doc.mjsindex 4fc52515f3..45f36c1941 100644--- a/packages/cli/templates/blocks/components/Layer/LayerHookUsage.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Layer/LayerHookUsage.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'useLayer',diff --git a/packages/cli/templates/blocks/components/Layer/LayerHookUsage.tsx b/packages/cli/assets/templates/blocks/components/Layer/LayerHookUsage.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Layer/LayerHookUsage.tsxrename to packages/cli/assets/templates/blocks/components/Layer/LayerHookUsage.tsxdiff --git a/packages/cli/templates/blocks/components/Layout/LayoutBasicCardLayout.doc.mjs b/packages/cli/assets/templates/blocks/components/Layout/LayoutBasicCardLayout.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Layout/LayoutBasicCardLayout.doc.mjsrename to packages/cli/assets/templates/blocks/components/Layout/LayoutBasicCardLayout.doc.mjsindex d2fb7cb795..a26d972695 100644--- a/packages/cli/templates/blocks/components/Layout/LayoutBasicCardLayout.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Layout/LayoutBasicCardLayout.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Layout',diff --git a/packages/cli/templates/blocks/components/Layout/LayoutBasicCardLayout.tsx b/packages/cli/assets/templates/blocks/components/Layout/LayoutBasicCardLayout.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Layout/LayoutBasicCardLayout.tsxrename to packages/cli/assets/templates/blocks/components/Layout/LayoutBasicCardLayout.tsxdiff --git a/packages/cli/templates/blocks/components/Layout/LayoutContentOnlyLayout.doc.mjs b/packages/cli/assets/templates/blocks/components/Layout/LayoutContentOnlyLayout.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Layout/LayoutContentOnlyLayout.doc.mjsrename to packages/cli/assets/templates/blocks/components/Layout/LayoutContentOnlyLayout.doc.mjsindex e70e3ccbff..b351520414 100644--- a/packages/cli/templates/blocks/components/Layout/LayoutContentOnlyLayout.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Layout/LayoutContentOnlyLayout.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Layout',diff --git a/packages/cli/templates/blocks/components/Layout/LayoutContentOnlyLayout.tsx b/packages/cli/assets/templates/blocks/components/Layout/LayoutContentOnlyLayout.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Layout/LayoutContentOnlyLayout.tsxrename to packages/cli/assets/templates/blocks/components/Layout/LayoutContentOnlyLayout.tsxdiff --git a/packages/cli/templates/blocks/components/Layout/LayoutContentWidth.doc.mjs b/packages/cli/assets/templates/blocks/components/Layout/LayoutContentWidth.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/Layout/LayoutContentWidth.doc.mjsrename to packages/cli/assets/templates/blocks/components/Layout/LayoutContentWidth.doc.mjsindex fbb0aeb989..f498a9b977 100644--- a/packages/cli/templates/blocks/components/Layout/LayoutContentWidth.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Layout/LayoutContentWidth.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Layout',diff --git a/packages/cli/templates/blocks/components/Layout/LayoutContentWidth.tsx b/packages/cli/assets/templates/blocks/components/Layout/LayoutContentWidth.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Layout/LayoutContentWidth.tsxrename to packages/cli/assets/templates/blocks/components/Layout/LayoutContentWidth.tsxdiff --git a/packages/cli/templates/blocks/components/Layout/LayoutDualPanelLayout.doc.mjs b/packages/cli/assets/templates/blocks/components/Layout/LayoutDualPanelLayout.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/Layout/LayoutDualPanelLayout.doc.mjsrename to packages/cli/assets/templates/blocks/components/Layout/LayoutDualPanelLayout.doc.mjsindex 3c8360b208..8a6f3547d6 100644--- a/packages/cli/templates/blocks/components/Layout/LayoutDualPanelLayout.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Layout/LayoutDualPanelLayout.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Layout',diff --git a/packages/cli/templates/blocks/components/Layout/LayoutDualPanelLayout.tsx b/packages/cli/assets/templates/blocks/components/Layout/LayoutDualPanelLayout.tsxsimilarity index 93%rename from packages/cli/templates/blocks/components/Layout/LayoutDualPanelLayout.tsxrename to packages/cli/assets/templates/blocks/components/Layout/LayoutDualPanelLayout.tsxindex e8e3f70b8d..45995b1f9b 100644--- a/packages/cli/templates/blocks/components/Layout/LayoutDualPanelLayout.tsx+++ b/packages/cli/assets/templates/blocks/components/Layout/LayoutDualPanelLayout.tsx@@ -43,9 +43,7 @@ export default function LayoutDualPanelLayout() {Files</Text><Card variant="muted">- <Text type="body">- Select a folder to view its contents- </Text>+ <Text type="body">Select a folder to view its contents</Text></Card></VStack></LayoutContent>diff --git a/packages/cli/templates/blocks/components/Layout/LayoutFullBleedContent.doc.mjs b/packages/cli/assets/templates/blocks/components/Layout/LayoutFullBleedContent.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/Layout/LayoutFullBleedContent.doc.mjsrename to packages/cli/assets/templates/blocks/components/Layout/LayoutFullBleedContent.doc.mjsindex fe9c645a72..ddb4dfdfb2 100644--- a/packages/cli/templates/blocks/components/Layout/LayoutFullBleedContent.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Layout/LayoutFullBleedContent.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Layout',diff --git a/packages/cli/templates/blocks/components/Layout/LayoutFullBleedContent.tsx b/packages/cli/assets/templates/blocks/components/Layout/LayoutFullBleedContent.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Layout/LayoutFullBleedContent.tsxrename to packages/cli/assets/templates/blocks/components/Layout/LayoutFullBleedContent.tsxdiff --git a/packages/cli/templates/blocks/components/Layout/LayoutShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Layout/LayoutShowcase.doc.mjssimilarity index 79%rename from packages/cli/templates/blocks/components/Layout/LayoutShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Layout/LayoutShowcase.doc.mjsindex b91de84272..508412d6f8 100644--- a/packages/cli/templates/blocks/components/Layout/LayoutShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Layout/LayoutShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Layout',diff --git a/packages/cli/templates/blocks/components/Layout/LayoutShowcase.tsx b/packages/cli/assets/templates/blocks/components/Layout/LayoutShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Layout/LayoutShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Layout/LayoutShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Layout/LayoutSidebarLayout.doc.mjs b/packages/cli/assets/templates/blocks/components/Layout/LayoutSidebarLayout.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/Layout/LayoutSidebarLayout.doc.mjsrename to packages/cli/assets/templates/blocks/components/Layout/LayoutSidebarLayout.doc.mjsindex 605aaa5cf6..6e5abc6985 100644--- a/packages/cli/templates/blocks/components/Layout/LayoutSidebarLayout.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Layout/LayoutSidebarLayout.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Layout',diff --git a/packages/cli/templates/blocks/components/Layout/LayoutSidebarLayout.tsx b/packages/cli/assets/templates/blocks/components/Layout/LayoutSidebarLayout.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Layout/LayoutSidebarLayout.tsxrename to packages/cli/assets/templates/blocks/components/Layout/LayoutSidebarLayout.tsxdiff --git a/packages/cli/templates/blocks/components/LayoutContent/LayoutContentBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/LayoutContent/LayoutContentBasic.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/LayoutContent/LayoutContentBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/LayoutContent/LayoutContentBasic.doc.mjsindex 7d050eaeae..f8a38109d4 100644--- a/packages/cli/templates/blocks/components/LayoutContent/LayoutContentBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/LayoutContent/LayoutContentBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'LayoutContent',diff --git a/packages/cli/templates/blocks/components/LayoutContent/LayoutContentBasic.tsx b/packages/cli/assets/templates/blocks/components/LayoutContent/LayoutContentBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/LayoutContent/LayoutContentBasic.tsxrename to packages/cli/assets/templates/blocks/components/LayoutContent/LayoutContentBasic.tsxdiff --git a/packages/cli/templates/blocks/components/LayoutContent/LayoutContentShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/LayoutContent/LayoutContentShowcase.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/LayoutContent/LayoutContentShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/LayoutContent/LayoutContentShowcase.doc.mjsindex 660b94d27c..2aff76f64c 100644--- a/packages/cli/templates/blocks/components/LayoutContent/LayoutContentShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/LayoutContent/LayoutContentShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'LayoutContent',diff --git a/packages/cli/templates/blocks/components/LayoutContent/LayoutContentShowcase.tsx b/packages/cli/assets/templates/blocks/components/LayoutContent/LayoutContentShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/LayoutContent/LayoutContentShowcase.tsxrename to packages/cli/assets/templates/blocks/components/LayoutContent/LayoutContentShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/LayoutFooter/LayoutFooterActions.doc.mjs b/packages/cli/assets/templates/blocks/components/LayoutFooter/LayoutFooterActions.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/LayoutFooter/LayoutFooterActions.doc.mjsrename to packages/cli/assets/templates/blocks/components/LayoutFooter/LayoutFooterActions.doc.mjsindex 208645a8cd..47a9e53522 100644--- a/packages/cli/templates/blocks/components/LayoutFooter/LayoutFooterActions.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/LayoutFooter/LayoutFooterActions.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'LayoutFooter',diff --git a/packages/cli/templates/blocks/components/LayoutFooter/LayoutFooterActions.tsx b/packages/cli/assets/templates/blocks/components/LayoutFooter/LayoutFooterActions.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/LayoutFooter/LayoutFooterActions.tsxrename to packages/cli/assets/templates/blocks/components/LayoutFooter/LayoutFooterActions.tsxdiff --git a/packages/cli/templates/blocks/components/LayoutFooter/LayoutFooterShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/LayoutFooter/LayoutFooterShowcase.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/LayoutFooter/LayoutFooterShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/LayoutFooter/LayoutFooterShowcase.doc.mjsindex 87f5aa6b33..6d5958dd5b 100644--- a/packages/cli/templates/blocks/components/LayoutFooter/LayoutFooterShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/LayoutFooter/LayoutFooterShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'LayoutFooter',diff --git a/packages/cli/templates/blocks/components/LayoutFooter/LayoutFooterShowcase.tsx b/packages/cli/assets/templates/blocks/components/LayoutFooter/LayoutFooterShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/LayoutFooter/LayoutFooterShowcase.tsxrename to packages/cli/assets/templates/blocks/components/LayoutFooter/LayoutFooterShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/LayoutHeader/LayoutHeaderShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/LayoutHeader/LayoutHeaderShowcase.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/LayoutHeader/LayoutHeaderShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/LayoutHeader/LayoutHeaderShowcase.doc.mjsindex 8090925e56..32a286f47d 100644--- a/packages/cli/templates/blocks/components/LayoutHeader/LayoutHeaderShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/LayoutHeader/LayoutHeaderShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'LayoutHeader',diff --git a/packages/cli/templates/blocks/components/LayoutHeader/LayoutHeaderShowcase.tsx b/packages/cli/assets/templates/blocks/components/LayoutHeader/LayoutHeaderShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/LayoutHeader/LayoutHeaderShowcase.tsxrename to packages/cli/assets/templates/blocks/components/LayoutHeader/LayoutHeaderShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/LayoutHeader/LayoutHeaderWithActions.doc.mjs b/packages/cli/assets/templates/blocks/components/LayoutHeader/LayoutHeaderWithActions.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/LayoutHeader/LayoutHeaderWithActions.doc.mjsrename to packages/cli/assets/templates/blocks/components/LayoutHeader/LayoutHeaderWithActions.doc.mjsindex 2337a03427..8d6e219cc1 100644--- a/packages/cli/templates/blocks/components/LayoutHeader/LayoutHeaderWithActions.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/LayoutHeader/LayoutHeaderWithActions.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'LayoutHeader',diff --git a/packages/cli/templates/blocks/components/LayoutHeader/LayoutHeaderWithActions.tsx b/packages/cli/assets/templates/blocks/components/LayoutHeader/LayoutHeaderWithActions.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/LayoutHeader/LayoutHeaderWithActions.tsxrename to packages/cli/assets/templates/blocks/components/LayoutHeader/LayoutHeaderWithActions.tsxdiff --git a/packages/cli/templates/blocks/components/LayoutPanel/LayoutPanelNavigation.doc.mjs b/packages/cli/assets/templates/blocks/components/LayoutPanel/LayoutPanelNavigation.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/LayoutPanel/LayoutPanelNavigation.doc.mjsrename to packages/cli/assets/templates/blocks/components/LayoutPanel/LayoutPanelNavigation.doc.mjsindex e5a7eb40fd..119aea4aa3 100644--- a/packages/cli/templates/blocks/components/LayoutPanel/LayoutPanelNavigation.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/LayoutPanel/LayoutPanelNavigation.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'LayoutPanel',diff --git a/packages/cli/templates/blocks/components/LayoutPanel/LayoutPanelNavigation.tsx b/packages/cli/assets/templates/blocks/components/LayoutPanel/LayoutPanelNavigation.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/LayoutPanel/LayoutPanelNavigation.tsxrename to packages/cli/assets/templates/blocks/components/LayoutPanel/LayoutPanelNavigation.tsxdiff --git a/packages/cli/templates/blocks/components/LayoutPanel/LayoutPanelShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/LayoutPanel/LayoutPanelShowcase.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/LayoutPanel/LayoutPanelShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/LayoutPanel/LayoutPanelShowcase.doc.mjsindex 0c11ad923d..c07699b971 100644--- a/packages/cli/templates/blocks/components/LayoutPanel/LayoutPanelShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/LayoutPanel/LayoutPanelShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'LayoutPanel',diff --git a/packages/cli/templates/blocks/components/LayoutPanel/LayoutPanelShowcase.tsx b/packages/cli/assets/templates/blocks/components/LayoutPanel/LayoutPanelShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/LayoutPanel/LayoutPanelShowcase.tsxrename to packages/cli/assets/templates/blocks/components/LayoutPanel/LayoutPanelShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Lightbox/LightboxGallery.doc.mjs b/packages/cli/assets/templates/blocks/components/Lightbox/LightboxGallery.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Lightbox/LightboxGallery.doc.mjsrename to packages/cli/assets/templates/blocks/components/Lightbox/LightboxGallery.doc.mjsindex 9fe60dd00e..dce1ccfe4b 100644--- a/packages/cli/templates/blocks/components/Lightbox/LightboxGallery.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Lightbox/LightboxGallery.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Lightbox',diff --git a/packages/cli/templates/blocks/components/Lightbox/LightboxGallery.tsx b/packages/cli/assets/templates/blocks/components/Lightbox/LightboxGallery.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Lightbox/LightboxGallery.tsxrename to packages/cli/assets/templates/blocks/components/Lightbox/LightboxGallery.tsxdiff --git a/packages/cli/templates/blocks/components/Lightbox/LightboxShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Lightbox/LightboxShowcase.doc.mjssimilarity index 81%rename from packages/cli/templates/blocks/components/Lightbox/LightboxShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Lightbox/LightboxShowcase.doc.mjsindex 763dbfed38..780823e192 100644--- a/packages/cli/templates/blocks/components/Lightbox/LightboxShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Lightbox/LightboxShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Lightbox',diff --git a/packages/cli/templates/blocks/components/Lightbox/LightboxShowcase.tsx b/packages/cli/assets/templates/blocks/components/Lightbox/LightboxShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Lightbox/LightboxShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Lightbox/LightboxShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Lightbox/LightboxVideo.doc.mjs b/packages/cli/assets/templates/blocks/components/Lightbox/LightboxVideo.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/Lightbox/LightboxVideo.doc.mjsrename to packages/cli/assets/templates/blocks/components/Lightbox/LightboxVideo.doc.mjsindex 11c21291f6..1d78cb9435 100644--- a/packages/cli/templates/blocks/components/Lightbox/LightboxVideo.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Lightbox/LightboxVideo.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Lightbox',diff --git a/packages/cli/templates/blocks/components/Lightbox/LightboxVideo.tsx b/packages/cli/assets/templates/blocks/components/Lightbox/LightboxVideo.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Lightbox/LightboxVideo.tsxrename to packages/cli/assets/templates/blocks/components/Lightbox/LightboxVideo.tsxdiff --git a/packages/cli/templates/blocks/components/Lightbox/LightboxZoom.doc.mjs b/packages/cli/assets/templates/blocks/components/Lightbox/LightboxZoom.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Lightbox/LightboxZoom.doc.mjsrename to packages/cli/assets/templates/blocks/components/Lightbox/LightboxZoom.doc.mjsindex 91c652b0c3..fac89b0af7 100644--- a/packages/cli/templates/blocks/components/Lightbox/LightboxZoom.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Lightbox/LightboxZoom.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Lightbox',diff --git a/packages/cli/templates/blocks/components/Lightbox/LightboxZoom.tsx b/packages/cli/assets/templates/blocks/components/Lightbox/LightboxZoom.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Lightbox/LightboxZoom.tsxrename to packages/cli/assets/templates/blocks/components/Lightbox/LightboxZoom.tsxdiff --git a/packages/cli/templates/blocks/components/Link/LinkExternalLinks.doc.mjs b/packages/cli/assets/templates/blocks/components/Link/LinkExternalLinks.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Link/LinkExternalLinks.doc.mjsrename to packages/cli/assets/templates/blocks/components/Link/LinkExternalLinks.doc.mjsindex 7212b3b116..2bb51547f7 100644--- a/packages/cli/templates/blocks/components/Link/LinkExternalLinks.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Link/LinkExternalLinks.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Link',diff --git a/packages/cli/templates/blocks/components/Link/LinkExternalLinks.tsx b/packages/cli/assets/templates/blocks/components/Link/LinkExternalLinks.tsxsimilarity index 55%rename from packages/cli/templates/blocks/components/Link/LinkExternalLinks.tsxrename to packages/cli/assets/templates/blocks/components/Link/LinkExternalLinks.tsxindex 9e64efa80a..8efcdad819 100644--- a/packages/cli/templates/blocks/components/Link/LinkExternalLinks.tsx+++ b/packages/cli/assets/templates/blocks/components/Link/LinkExternalLinks.tsx@@ -8,23 +8,13 @@ import {VStack} from '@astryxdesign/core/Layout';export default function LinkExternalLinks() {return (<VStack gap={2}>- <Link- href="https://github.com"- isExternalLink- isStandalone>+ <Link href="https://github.com" isExternalLink isStandalone>GitHub</Link>- <Link- href="https://developer.mozilla.org"- isExternalLink- isStandalone>+ <Link href="https://developer.mozilla.org" isExternalLink isStandalone>MDN Web Docs</Link>- <Link- href="https://react.dev"- isExternalLink- hasUnderline- isStandalone>+ <Link href="https://react.dev" isExternalLink hasUnderline isStandalone>React Documentation</Link></VStack>diff --git a/packages/cli/templates/blocks/components/Link/LinkInlineLink.doc.mjs b/packages/cli/assets/templates/blocks/components/Link/LinkInlineLink.doc.mjssimilarity index 82%rename from packages/cli/templates/blocks/components/Link/LinkInlineLink.doc.mjsrename to packages/cli/assets/templates/blocks/components/Link/LinkInlineLink.doc.mjsindex a846059d11..809de43fa1 100644--- a/packages/cli/templates/blocks/components/Link/LinkInlineLink.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Link/LinkInlineLink.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Link',diff --git a/packages/cli/templates/blocks/components/Link/LinkInlineLink.tsx b/packages/cli/assets/templates/blocks/components/Link/LinkInlineLink.tsxsimilarity index 57%rename from packages/cli/templates/blocks/components/Link/LinkInlineLink.tsxrename to packages/cli/assets/templates/blocks/components/Link/LinkInlineLink.tsxindex f4f9addb45..d281f83acd 100644--- a/packages/cli/templates/blocks/components/Link/LinkInlineLink.tsx+++ b/packages/cli/assets/templates/blocks/components/Link/LinkInlineLink.tsx@@ -7,10 +7,9 @@ import {Text} from '@astryxdesign/core/Text';export default function LinkInlineLink() {return (- <Text type="body">Read the{' '}- <Link href="#">- documentation- </Link>{' '}for more information about using Astryx components.- </Text>+ <Text type="body">+ Read the <Link href="#">documentation</Link> for more information about+ using Astryx components.+ </Text>);}diff --git a/packages/cli/templates/blocks/components/Link/LinkShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Link/LinkShowcase.doc.mjssimilarity index 79%rename from packages/cli/templates/blocks/components/Link/LinkShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Link/LinkShowcase.doc.mjsindex dcc739336a..7a8b73e699 100644--- a/packages/cli/templates/blocks/components/Link/LinkShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Link/LinkShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Link',diff --git a/packages/cli/templates/blocks/components/Link/LinkShowcase.tsx b/packages/cli/assets/templates/blocks/components/Link/LinkShowcase.tsxsimilarity index 73%rename from packages/cli/templates/blocks/components/Link/LinkShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Link/LinkShowcase.tsxindex b5f5036f27..73bb5d87db 100644--- a/packages/cli/templates/blocks/components/Link/LinkShowcase.tsx+++ b/packages/cli/assets/templates/blocks/components/Link/LinkShowcase.tsx@@ -6,7 +6,8 @@ import {Link} from '@astryxdesign/core/Link';export default function LinkShowcase() {return (- <Link href="#" isStandalone>Documentation- </Link>+ <Link href="#" isStandalone>+ Documentation+ </Link>);}diff --git a/packages/cli/templates/blocks/components/Link/LinksWithTooltips.doc.mjs b/packages/cli/assets/templates/blocks/components/Link/LinksWithTooltips.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Link/LinksWithTooltips.doc.mjsrename to packages/cli/assets/templates/blocks/components/Link/LinksWithTooltips.doc.mjsindex c9a7e667c3..18a7ac5b72 100644--- a/packages/cli/templates/blocks/components/Link/LinksWithTooltips.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Link/LinksWithTooltips.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Link',diff --git a/packages/cli/templates/blocks/components/Link/LinksWithTooltips.tsx b/packages/cli/assets/templates/blocks/components/Link/LinksWithTooltips.tsxsimilarity index 71%rename from packages/cli/templates/blocks/components/Link/LinksWithTooltips.tsxrename to packages/cli/assets/templates/blocks/components/Link/LinksWithTooltips.tsxindex fc81f1c5a8..3c93135659 100644--- a/packages/cli/templates/blocks/components/Link/LinksWithTooltips.tsx+++ b/packages/cli/assets/templates/blocks/components/Link/LinksWithTooltips.tsx@@ -8,16 +8,10 @@ import {HStack} from '@astryxdesign/core/Layout';export default function LinksWithTooltips() {return (<HStack gap={4} vAlign="center">- <Link- href="#"- tooltip="Configure your account settings"- isStandalone>+ <Link href="#" tooltip="Configure your account settings" isStandalone>Settings</Link>- <Link- href="#"- tooltip="View and edit your profile"- isStandalone>+ <Link href="#" tooltip="View and edit your profile" isStandalone>Profile</Link><Linkdiff --git a/packages/cli/templates/blocks/components/LinkProvider/LinkProviderCustomLink.doc.mjs b/packages/cli/assets/templates/blocks/components/LinkProvider/LinkProviderCustomLink.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/LinkProvider/LinkProviderCustomLink.doc.mjsrename to packages/cli/assets/templates/blocks/components/LinkProvider/LinkProviderCustomLink.doc.mjsindex c2c77c759d..04f281f207 100644--- a/packages/cli/templates/blocks/components/LinkProvider/LinkProviderCustomLink.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/LinkProvider/LinkProviderCustomLink.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'LinkProvider',diff --git a/packages/cli/templates/blocks/components/LinkProvider/LinkProviderCustomLink.tsx b/packages/cli/assets/templates/blocks/components/LinkProvider/LinkProviderCustomLink.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/LinkProvider/LinkProviderCustomLink.tsxrename to packages/cli/assets/templates/blocks/components/LinkProvider/LinkProviderCustomLink.tsxdiff --git a/packages/cli/templates/blocks/components/List/ListBasicList.doc.mjs b/packages/cli/assets/templates/blocks/components/List/ListBasicList.doc.mjssimilarity index 82%rename from packages/cli/templates/blocks/components/List/ListBasicList.doc.mjsrename to packages/cli/assets/templates/blocks/components/List/ListBasicList.doc.mjsindex 9b1005fbc1..590fa3b15f 100644--- a/packages/cli/templates/blocks/components/List/ListBasicList.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/List/ListBasicList.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'List',diff --git a/packages/cli/templates/blocks/components/List/ListBasicList.tsx b/packages/cli/assets/templates/blocks/components/List/ListBasicList.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/List/ListBasicList.tsxrename to packages/cli/assets/templates/blocks/components/List/ListBasicList.tsxdiff --git a/packages/cli/templates/blocks/components/List/ListBulletedFeatures.doc.mjs b/packages/cli/assets/templates/blocks/components/List/ListBulletedFeatures.doc.mjssimilarity index 82%rename from packages/cli/templates/blocks/components/List/ListBulletedFeatures.doc.mjsrename to packages/cli/assets/templates/blocks/components/List/ListBulletedFeatures.doc.mjsindex dd38a6a7ea..9354b66f70 100644--- a/packages/cli/templates/blocks/components/List/ListBulletedFeatures.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/List/ListBulletedFeatures.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'List',diff --git a/packages/cli/templates/blocks/components/List/ListBulletedFeatures.tsx b/packages/cli/assets/templates/blocks/components/List/ListBulletedFeatures.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/List/ListBulletedFeatures.tsxrename to packages/cli/assets/templates/blocks/components/List/ListBulletedFeatures.tsxdiff --git a/packages/cli/templates/blocks/components/List/ListMessageList.doc.mjs b/packages/cli/assets/templates/blocks/components/List/ListMessageList.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/List/ListMessageList.doc.mjsrename to packages/cli/assets/templates/blocks/components/List/ListMessageList.doc.mjsindex cc79043b7b..e635ec3dfc 100644--- a/packages/cli/templates/blocks/components/List/ListMessageList.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/List/ListMessageList.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'List',diff --git a/packages/cli/templates/blocks/components/List/ListMessageList.tsx b/packages/cli/assets/templates/blocks/components/List/ListMessageList.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/List/ListMessageList.tsxrename to packages/cli/assets/templates/blocks/components/List/ListMessageList.tsxdiff --git a/packages/cli/templates/blocks/components/List/ListOrderedSteps.doc.mjs b/packages/cli/assets/templates/blocks/components/List/ListOrderedSteps.doc.mjssimilarity index 82%rename from packages/cli/templates/blocks/components/List/ListOrderedSteps.doc.mjsrename to packages/cli/assets/templates/blocks/components/List/ListOrderedSteps.doc.mjsindex d3b13034e1..4039dc23e8 100644--- a/packages/cli/templates/blocks/components/List/ListOrderedSteps.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/List/ListOrderedSteps.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'List',diff --git a/packages/cli/templates/blocks/components/List/ListOrderedSteps.tsx b/packages/cli/assets/templates/blocks/components/List/ListOrderedSteps.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/List/ListOrderedSteps.tsxrename to packages/cli/assets/templates/blocks/components/List/ListOrderedSteps.tsxdiff --git a/packages/cli/templates/blocks/components/List/ListShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/List/ListShowcase.doc.mjssimilarity index 76%rename from packages/cli/templates/blocks/components/List/ListShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/List/ListShowcase.doc.mjsindex 8294ce5980..38bb7f449b 100644--- a/packages/cli/templates/blocks/components/List/ListShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/List/ListShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'List',diff --git a/packages/cli/templates/blocks/components/List/ListShowcase.tsx b/packages/cli/assets/templates/blocks/components/List/ListShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/List/ListShowcase.tsxrename to packages/cli/assets/templates/blocks/components/List/ListShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/ListItem/ListItemBasicItem.doc.mjs b/packages/cli/assets/templates/blocks/components/ListItem/ListItemBasicItem.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/ListItem/ListItemBasicItem.doc.mjsrename to packages/cli/assets/templates/blocks/components/ListItem/ListItemBasicItem.doc.mjsindex 4e7fe7f2b9..3650b8c279 100644--- a/packages/cli/templates/blocks/components/ListItem/ListItemBasicItem.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ListItem/ListItemBasicItem.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ListItem',diff --git a/packages/cli/templates/blocks/components/ListItem/ListItemBasicItem.tsx b/packages/cli/assets/templates/blocks/components/ListItem/ListItemBasicItem.tsxsimilarity index 79%rename from packages/cli/templates/blocks/components/ListItem/ListItemBasicItem.tsxrename to packages/cli/assets/templates/blocks/components/ListItem/ListItemBasicItem.tsxindex a18d78159f..6aa5fd125f 100644--- a/packages/cli/templates/blocks/components/ListItem/ListItemBasicItem.tsx+++ b/packages/cli/assets/templates/blocks/components/ListItem/ListItemBasicItem.tsx@@ -9,10 +9,7 @@ export default function ListItemBasicItem() {<List header="Account settings" hasDividers><ListItem label="Profile" description="Name, avatar, and bio" /><ListItem label="Notifications" description="Email and push alerts" />- <ListItem- label="Security"- description="Password and two-factor auth"- />+ <ListItem label="Security" description="Password and two-factor auth" /></List>);}diff --git a/packages/cli/templates/blocks/components/ListItem/ListItemShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/ListItem/ListItemShowcase.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/ListItem/ListItemShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/ListItem/ListItemShowcase.doc.mjsindex fd0f671e2a..1af39d3530 100644--- a/packages/cli/templates/blocks/components/ListItem/ListItemShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ListItem/ListItemShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ListItem',diff --git a/packages/cli/templates/blocks/components/ListItem/ListItemShowcase.tsx b/packages/cli/assets/templates/blocks/components/ListItem/ListItemShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ListItem/ListItemShowcase.tsxrename to packages/cli/assets/templates/blocks/components/ListItem/ListItemShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/ListItem/ListItemWithMedia.doc.mjs b/packages/cli/assets/templates/blocks/components/ListItem/ListItemWithMedia.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/ListItem/ListItemWithMedia.doc.mjsrename to packages/cli/assets/templates/blocks/components/ListItem/ListItemWithMedia.doc.mjsindex bfad15f656..ad72443fbb 100644--- a/packages/cli/templates/blocks/components/ListItem/ListItemWithMedia.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ListItem/ListItemWithMedia.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ListItem',diff --git a/packages/cli/templates/blocks/components/ListItem/ListItemWithMedia.tsx b/packages/cli/assets/templates/blocks/components/ListItem/ListItemWithMedia.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ListItem/ListItemWithMedia.tsxrename to packages/cli/assets/templates/blocks/components/ListItem/ListItemWithMedia.tsxdiff --git a/packages/cli/templates/blocks/components/ListItem/ListItemWithMetadata.doc.mjs b/packages/cli/assets/templates/blocks/components/ListItem/ListItemWithMetadata.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/ListItem/ListItemWithMetadata.doc.mjsrename to packages/cli/assets/templates/blocks/components/ListItem/ListItemWithMetadata.doc.mjsindex 2bf182b7b4..ac97582cc1 100644--- a/packages/cli/templates/blocks/components/ListItem/ListItemWithMetadata.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ListItem/ListItemWithMetadata.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ListItem',diff --git a/packages/cli/templates/blocks/components/ListItem/ListItemWithMetadata.tsx b/packages/cli/assets/templates/blocks/components/ListItem/ListItemWithMetadata.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ListItem/ListItemWithMetadata.tsxrename to packages/cli/assets/templates/blocks/components/ListItem/ListItemWithMetadata.tsxdiff --git a/packages/cli/templates/blocks/components/Markdown/MarkdownCitedContent.doc.mjs b/packages/cli/assets/templates/blocks/components/Markdown/MarkdownCitedContent.doc.mjssimilarity index 82%rename from packages/cli/templates/blocks/components/Markdown/MarkdownCitedContent.doc.mjsrename to packages/cli/assets/templates/blocks/components/Markdown/MarkdownCitedContent.doc.mjsindex f4125a1dab..6e15166661 100644--- a/packages/cli/templates/blocks/components/Markdown/MarkdownCitedContent.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Markdown/MarkdownCitedContent.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Markdown',diff --git a/packages/cli/templates/blocks/components/Markdown/MarkdownCitedContent.tsx b/packages/cli/assets/templates/blocks/components/Markdown/MarkdownCitedContent.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Markdown/MarkdownCitedContent.tsxrename to packages/cli/assets/templates/blocks/components/Markdown/MarkdownCitedContent.tsxdiff --git a/packages/cli/templates/blocks/components/Markdown/MarkdownCompactAIResponse.doc.mjs b/packages/cli/assets/templates/blocks/components/Markdown/MarkdownCompactAIResponse.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Markdown/MarkdownCompactAIResponse.doc.mjsrename to packages/cli/assets/templates/blocks/components/Markdown/MarkdownCompactAIResponse.doc.mjsindex 0be03c77e6..99624ee39b 100644--- a/packages/cli/templates/blocks/components/Markdown/MarkdownCompactAIResponse.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Markdown/MarkdownCompactAIResponse.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Markdown',diff --git a/packages/cli/templates/blocks/components/Markdown/MarkdownCompactAIResponse.tsx b/packages/cli/assets/templates/blocks/components/Markdown/MarkdownCompactAIResponse.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Markdown/MarkdownCompactAIResponse.tsxrename to packages/cli/assets/templates/blocks/components/Markdown/MarkdownCompactAIResponse.tsxdiff --git a/packages/cli/templates/blocks/components/Markdown/MarkdownDataTable.doc.mjs b/packages/cli/assets/templates/blocks/components/Markdown/MarkdownDataTable.doc.mjssimilarity index 82%rename from packages/cli/templates/blocks/components/Markdown/MarkdownDataTable.doc.mjsrename to packages/cli/assets/templates/blocks/components/Markdown/MarkdownDataTable.doc.mjsindex 6d4045a037..d084192e74 100644--- a/packages/cli/templates/blocks/components/Markdown/MarkdownDataTable.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Markdown/MarkdownDataTable.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Markdown',diff --git a/packages/cli/templates/blocks/components/Markdown/MarkdownDataTable.tsx b/packages/cli/assets/templates/blocks/components/Markdown/MarkdownDataTable.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Markdown/MarkdownDataTable.tsxrename to packages/cli/assets/templates/blocks/components/Markdown/MarkdownDataTable.tsxdiff --git a/packages/cli/templates/blocks/components/Markdown/MarkdownRichContent.doc.mjs b/packages/cli/assets/templates/blocks/components/Markdown/MarkdownRichContent.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Markdown/MarkdownRichContent.doc.mjsrename to packages/cli/assets/templates/blocks/components/Markdown/MarkdownRichContent.doc.mjsindex c856494e23..8e69539c03 100644--- a/packages/cli/templates/blocks/components/Markdown/MarkdownRichContent.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Markdown/MarkdownRichContent.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Markdown',diff --git a/packages/cli/templates/blocks/components/Markdown/MarkdownRichContent.tsx b/packages/cli/assets/templates/blocks/components/Markdown/MarkdownRichContent.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Markdown/MarkdownRichContent.tsxrename to packages/cli/assets/templates/blocks/components/Markdown/MarkdownRichContent.tsxdiff --git a/packages/cli/templates/blocks/components/Markdown/MarkdownShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Markdown/MarkdownShowcase.doc.mjssimilarity index 82%rename from packages/cli/templates/blocks/components/Markdown/MarkdownShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Markdown/MarkdownShowcase.doc.mjsindex 39ccc07b07..61a3c5b3a0 100644--- a/packages/cli/templates/blocks/components/Markdown/MarkdownShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Markdown/MarkdownShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Markdown',diff --git a/packages/cli/templates/blocks/components/Markdown/MarkdownShowcase.tsx b/packages/cli/assets/templates/blocks/components/Markdown/MarkdownShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Markdown/MarkdownShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Markdown/MarkdownShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/MediaTheme/MediaThemeImageOverlay.doc.mjs b/packages/cli/assets/templates/blocks/components/MediaTheme/MediaThemeImageOverlay.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/MediaTheme/MediaThemeImageOverlay.doc.mjsrename to packages/cli/assets/templates/blocks/components/MediaTheme/MediaThemeImageOverlay.doc.mjsindex e624c23dfb..ca1f07321b 100644--- a/packages/cli/templates/blocks/components/MediaTheme/MediaThemeImageOverlay.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/MediaTheme/MediaThemeImageOverlay.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'MediaTheme',diff --git a/packages/cli/templates/blocks/components/MediaTheme/MediaThemeImageOverlay.tsx b/packages/cli/assets/templates/blocks/components/MediaTheme/MediaThemeImageOverlay.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/MediaTheme/MediaThemeImageOverlay.tsxrename to packages/cli/assets/templates/blocks/components/MediaTheme/MediaThemeImageOverlay.tsxdiff --git a/packages/cli/templates/blocks/components/MediaTheme/MediaThemeLightScrim.doc.mjs b/packages/cli/assets/templates/blocks/components/MediaTheme/MediaThemeLightScrim.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/MediaTheme/MediaThemeLightScrim.doc.mjsrename to packages/cli/assets/templates/blocks/components/MediaTheme/MediaThemeLightScrim.doc.mjsindex 294b8e67a7..a6d9209cd0 100644--- a/packages/cli/templates/blocks/components/MediaTheme/MediaThemeLightScrim.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/MediaTheme/MediaThemeLightScrim.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'MediaTheme',diff --git a/packages/cli/templates/blocks/components/MediaTheme/MediaThemeLightScrim.tsx b/packages/cli/assets/templates/blocks/components/MediaTheme/MediaThemeLightScrim.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/MediaTheme/MediaThemeLightScrim.tsxrename to packages/cli/assets/templates/blocks/components/MediaTheme/MediaThemeLightScrim.tsxdiff --git a/packages/cli/templates/blocks/components/MediaTheme/MediaThemeShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/MediaTheme/MediaThemeShowcase.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/MediaTheme/MediaThemeShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/MediaTheme/MediaThemeShowcase.doc.mjsindex b03f59277d..1c0d1d27f4 100644--- a/packages/cli/templates/blocks/components/MediaTheme/MediaThemeShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/MediaTheme/MediaThemeShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'MediaTheme',diff --git a/packages/cli/templates/blocks/components/MediaTheme/MediaThemeShowcase.tsx b/packages/cli/assets/templates/blocks/components/MediaTheme/MediaThemeShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/MediaTheme/MediaThemeShowcase.tsxrename to packages/cli/assets/templates/blocks/components/MediaTheme/MediaThemeShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/MetadataList/MetadataListBasicMetadata.doc.mjs b/packages/cli/assets/templates/blocks/components/MetadataList/MetadataListBasicMetadata.doc.mjssimilarity index 82%rename from packages/cli/templates/blocks/components/MetadataList/MetadataListBasicMetadata.doc.mjsrename to packages/cli/assets/templates/blocks/components/MetadataList/MetadataListBasicMetadata.doc.mjsindex baac2f75db..a95dc35037 100644--- a/packages/cli/templates/blocks/components/MetadataList/MetadataListBasicMetadata.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/MetadataList/MetadataListBasicMetadata.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'MetadataList',diff --git a/packages/cli/templates/blocks/components/MetadataList/MetadataListBasicMetadata.tsx b/packages/cli/assets/templates/blocks/components/MetadataList/MetadataListBasicMetadata.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/MetadataList/MetadataListBasicMetadata.tsxrename to packages/cli/assets/templates/blocks/components/MetadataList/MetadataListBasicMetadata.tsxdiff --git a/packages/cli/templates/blocks/components/MetadataList/MetadataListCollapsibleMetadata.doc.mjs b/packages/cli/assets/templates/blocks/components/MetadataList/MetadataListCollapsibleMetadata.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/MetadataList/MetadataListCollapsibleMetadata.doc.mjsrename to packages/cli/assets/templates/blocks/components/MetadataList/MetadataListCollapsibleMetadata.doc.mjsindex dbeb10d135..afcd710337 100644--- a/packages/cli/templates/blocks/components/MetadataList/MetadataListCollapsibleMetadata.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/MetadataList/MetadataListCollapsibleMetadata.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'MetadataList',diff --git a/packages/cli/templates/blocks/components/MetadataList/MetadataListCollapsibleMetadata.tsx b/packages/cli/assets/templates/blocks/components/MetadataList/MetadataListCollapsibleMetadata.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/MetadataList/MetadataListCollapsibleMetadata.tsxrename to packages/cli/assets/templates/blocks/components/MetadataList/MetadataListCollapsibleMetadata.tsxdiff --git a/packages/cli/templates/blocks/components/MetadataList/MetadataListHorizontalMetadata.doc.mjs b/packages/cli/assets/templates/blocks/components/MetadataList/MetadataListHorizontalMetadata.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/MetadataList/MetadataListHorizontalMetadata.doc.mjsrename to packages/cli/assets/templates/blocks/components/MetadataList/MetadataListHorizontalMetadata.doc.mjsindex 68aaa49685..04e2d0d036 100644--- a/packages/cli/templates/blocks/components/MetadataList/MetadataListHorizontalMetadata.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/MetadataList/MetadataListHorizontalMetadata.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'MetadataList',diff --git a/packages/cli/templates/blocks/components/MetadataList/MetadataListHorizontalMetadata.tsx b/packages/cli/assets/templates/blocks/components/MetadataList/MetadataListHorizontalMetadata.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/MetadataList/MetadataListHorizontalMetadata.tsxrename to packages/cli/assets/templates/blocks/components/MetadataList/MetadataListHorizontalMetadata.tsxdiff --git a/packages/cli/templates/blocks/components/MetadataList/MetadataListMultiColumnMetadata.doc.mjs b/packages/cli/assets/templates/blocks/components/MetadataList/MetadataListMultiColumnMetadata.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/MetadataList/MetadataListMultiColumnMetadata.doc.mjsrename to packages/cli/assets/templates/blocks/components/MetadataList/MetadataListMultiColumnMetadata.doc.mjsindex b5b46e8984..e89aef5cc8 100644--- a/packages/cli/templates/blocks/components/MetadataList/MetadataListMultiColumnMetadata.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/MetadataList/MetadataListMultiColumnMetadata.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'MetadataList',diff --git a/packages/cli/templates/blocks/components/MetadataList/MetadataListMultiColumnMetadata.tsx b/packages/cli/assets/templates/blocks/components/MetadataList/MetadataListMultiColumnMetadata.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/MetadataList/MetadataListMultiColumnMetadata.tsxrename to packages/cli/assets/templates/blocks/components/MetadataList/MetadataListMultiColumnMetadata.tsxdiff --git a/packages/cli/templates/blocks/components/MetadataList/MetadataListShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/MetadataList/MetadataListShowcase.doc.mjssimilarity index 79%rename from packages/cli/templates/blocks/components/MetadataList/MetadataListShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/MetadataList/MetadataListShowcase.doc.mjsindex e4cae75e51..804df8554d 100644--- a/packages/cli/templates/blocks/components/MetadataList/MetadataListShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/MetadataList/MetadataListShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'MetadataList',diff --git a/packages/cli/templates/blocks/components/MetadataList/MetadataListShowcase.tsx b/packages/cli/assets/templates/blocks/components/MetadataList/MetadataListShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/MetadataList/MetadataListShowcase.tsxrename to packages/cli/assets/templates/blocks/components/MetadataList/MetadataListShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/MetadataListItem/MetadataListItemBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/MetadataListItem/MetadataListItemBasic.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/MetadataListItem/MetadataListItemBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/MetadataListItem/MetadataListItemBasic.doc.mjsindex 87dac8aa18..9a4da295be 100644--- a/packages/cli/templates/blocks/components/MetadataListItem/MetadataListItemBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/MetadataListItem/MetadataListItemBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'MetadataListItem',diff --git a/packages/cli/templates/blocks/components/MetadataListItem/MetadataListItemBasic.tsx b/packages/cli/assets/templates/blocks/components/MetadataListItem/MetadataListItemBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/MetadataListItem/MetadataListItemBasic.tsxrename to packages/cli/assets/templates/blocks/components/MetadataListItem/MetadataListItemBasic.tsxdiff --git a/packages/cli/templates/blocks/components/MetadataListItem/MetadataListItemShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/MetadataListItem/MetadataListItemShowcase.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/MetadataListItem/MetadataListItemShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/MetadataListItem/MetadataListItemShowcase.doc.mjsindex 3af00ce41c..e3f5fb92b7 100644--- a/packages/cli/templates/blocks/components/MetadataListItem/MetadataListItemShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/MetadataListItem/MetadataListItemShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'MetadataListItem',diff --git a/packages/cli/templates/blocks/components/MetadataListItem/MetadataListItemShowcase.tsx b/packages/cli/assets/templates/blocks/components/MetadataListItem/MetadataListItemShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/MetadataListItem/MetadataListItemShowcase.tsxrename to packages/cli/assets/templates/blocks/components/MetadataListItem/MetadataListItemShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/MobileNav/MobileNavBasicMobileNav.doc.mjs b/packages/cli/assets/templates/blocks/components/MobileNav/MobileNavBasicMobileNav.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/MobileNav/MobileNavBasicMobileNav.doc.mjsrename to packages/cli/assets/templates/blocks/components/MobileNav/MobileNavBasicMobileNav.doc.mjsindex ab87726ea9..0e68e8b630 100644--- a/packages/cli/templates/blocks/components/MobileNav/MobileNavBasicMobileNav.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/MobileNav/MobileNavBasicMobileNav.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'MobileNav',diff --git a/packages/cli/templates/blocks/components/MobileNav/MobileNavBasicMobileNav.tsx b/packages/cli/assets/templates/blocks/components/MobileNav/MobileNavBasicMobileNav.tsxsimilarity index 92%rename from packages/cli/templates/blocks/components/MobileNav/MobileNavBasicMobileNav.tsxrename to packages/cli/assets/templates/blocks/components/MobileNav/MobileNavBasicMobileNav.tsxindex 221cc715d9..2c34a9e779 100644--- a/packages/cli/templates/blocks/components/MobileNav/MobileNavBasicMobileNav.tsx+++ b/packages/cli/assets/templates/blocks/components/MobileNav/MobileNavBasicMobileNav.tsx@@ -45,11 +45,7 @@ export default function MobileNavBasicMobileNav() {/></SideNavSection><SideNavSection title="Settings">- <SideNavItem- label="General"- icon={Cog6ToothIcon}- href="/settings"- />+ <SideNavItem label="General" icon={Cog6ToothIcon} href="/settings" /><SideNavItem label="Team" icon={UsersIcon} href="/team" /></SideNavSection></MobileNav>diff --git a/packages/cli/templates/blocks/components/MobileNav/MobileNavEndSideMobileNav.doc.mjs b/packages/cli/assets/templates/blocks/components/MobileNav/MobileNavEndSideMobileNav.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/MobileNav/MobileNavEndSideMobileNav.doc.mjsrename to packages/cli/assets/templates/blocks/components/MobileNav/MobileNavEndSideMobileNav.doc.mjsindex 662b324dfc..24e91fac1f 100644--- a/packages/cli/templates/blocks/components/MobileNav/MobileNavEndSideMobileNav.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/MobileNav/MobileNavEndSideMobileNav.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'MobileNav',diff --git a/packages/cli/templates/blocks/components/MobileNav/MobileNavEndSideMobileNav.tsx b/packages/cli/assets/templates/blocks/components/MobileNav/MobileNavEndSideMobileNav.tsxsimilarity index 87%rename from packages/cli/templates/blocks/components/MobileNav/MobileNavEndSideMobileNav.tsxrename to packages/cli/assets/templates/blocks/components/MobileNav/MobileNavEndSideMobileNav.tsxindex c8792db58d..49b010a5e8 100644--- a/packages/cli/templates/blocks/components/MobileNav/MobileNavEndSideMobileNav.tsx+++ b/packages/cli/assets/templates/blocks/components/MobileNav/MobileNavEndSideMobileNav.tsx@@ -19,11 +19,7 @@ export default function MobileNavEndSideMobileNav() {header="Settings"side="end"><SideNavSection title="Settings">- <SideNavItem- label="General"- icon={Cog6ToothIcon}- href="/settings"- />+ <SideNavItem label="General" icon={Cog6ToothIcon} href="/settings" /><SideNavItem label="Team" icon={UsersIcon} href="/team" /></SideNavSection></MobileNav>diff --git a/packages/cli/templates/blocks/components/MobileNav/MobileNavShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/MobileNav/MobileNavShowcase.doc.mjssimilarity index 80%rename from packages/cli/templates/blocks/components/MobileNav/MobileNavShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/MobileNav/MobileNavShowcase.doc.mjsindex f8690a3eb7..c6fa402de0 100644--- a/packages/cli/templates/blocks/components/MobileNav/MobileNavShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/MobileNav/MobileNavShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'MobileNav',diff --git a/packages/cli/templates/blocks/components/MobileNav/MobileNavShowcase.tsx b/packages/cli/assets/templates/blocks/components/MobileNav/MobileNavShowcase.tsxsimilarity index 91%rename from packages/cli/templates/blocks/components/MobileNav/MobileNavShowcase.tsxrename to packages/cli/assets/templates/blocks/components/MobileNav/MobileNavShowcase.tsxindex d3e3ee5fb2..6c10edc8e6 100644--- a/packages/cli/templates/blocks/components/MobileNav/MobileNavShowcase.tsx+++ b/packages/cli/assets/templates/blocks/components/MobileNav/MobileNavShowcase.tsx@@ -19,10 +19,7 @@ export default function MobileNavShowcase() {onClick={() => setIsOpen(true)}isIconOnly/>- <MobileNav- isOpen={isOpen}- onOpenChange={setIsOpen}- header="Navigation">+ <MobileNav isOpen={isOpen} onOpenChange={setIsOpen} header="Navigation"><SideNavSection title="Main"><SideNavItem label="Dashboard" isSelected href="/dashboard" /><SideNavItem label="Projects" href="/projects" />diff --git a/packages/cli/templates/blocks/components/MobileNav/MobileNavWithoutTitleMobileNav.doc.mjs b/packages/cli/assets/templates/blocks/components/MobileNav/MobileNavWithoutTitleMobileNav.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/MobileNav/MobileNavWithoutTitleMobileNav.doc.mjsrename to packages/cli/assets/templates/blocks/components/MobileNav/MobileNavWithoutTitleMobileNav.doc.mjsindex 0527dee129..4ca5e6d4b5 100644--- a/packages/cli/templates/blocks/components/MobileNav/MobileNavWithoutTitleMobileNav.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/MobileNav/MobileNavWithoutTitleMobileNav.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'MobileNav',diff --git a/packages/cli/templates/blocks/components/MobileNav/MobileNavWithoutTitleMobileNav.tsx b/packages/cli/assets/templates/blocks/components/MobileNav/MobileNavWithoutTitleMobileNav.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/MobileNav/MobileNavWithoutTitleMobileNav.tsxrename to packages/cli/assets/templates/blocks/components/MobileNav/MobileNavWithoutTitleMobileNav.tsxdiff --git a/packages/cli/templates/blocks/components/MobileNavToggle/MobileNavToggleBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/MobileNavToggle/MobileNavToggleBasic.doc.mjssimilarity index 89%rename from packages/cli/templates/blocks/components/MobileNavToggle/MobileNavToggleBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/MobileNavToggle/MobileNavToggleBasic.doc.mjsindex ccdefa66e1..d7a402a040 100644--- a/packages/cli/templates/blocks/components/MobileNavToggle/MobileNavToggleBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/MobileNavToggle/MobileNavToggleBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'MobileNavToggle',diff --git a/packages/cli/templates/blocks/components/MobileNavToggle/MobileNavToggleBasic.tsx b/packages/cli/assets/templates/blocks/components/MobileNavToggle/MobileNavToggleBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/MobileNavToggle/MobileNavToggleBasic.tsxrename to packages/cli/assets/templates/blocks/components/MobileNavToggle/MobileNavToggleBasic.tsxdiff --git a/packages/cli/templates/blocks/components/MobileNavToggle/MobileNavToggleShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/MobileNavToggle/MobileNavToggleShowcase.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/MobileNavToggle/MobileNavToggleShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/MobileNavToggle/MobileNavToggleShowcase.doc.mjsindex 41978f3704..ab2bbfffbd 100644--- a/packages/cli/templates/blocks/components/MobileNavToggle/MobileNavToggleShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/MobileNavToggle/MobileNavToggleShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'MobileNavToggle',diff --git a/packages/cli/templates/blocks/components/MobileNavToggle/MobileNavToggleShowcase.tsx b/packages/cli/assets/templates/blocks/components/MobileNavToggle/MobileNavToggleShowcase.tsxsimilarity index 92%rename from packages/cli/templates/blocks/components/MobileNavToggle/MobileNavToggleShowcase.tsxrename to packages/cli/assets/templates/blocks/components/MobileNavToggle/MobileNavToggleShowcase.tsxindex 4291175a9a..5d670228fc 100644--- a/packages/cli/templates/blocks/components/MobileNavToggle/MobileNavToggleShowcase.tsx+++ b/packages/cli/assets/templates/blocks/components/MobileNavToggle/MobileNavToggleShowcase.tsx@@ -28,10 +28,7 @@ export default function MobileNavToggleShowcase() {Page title</Text></HStack>- <MobileNav- isOpen={isOpen}- onOpenChange={setIsOpen}- header="Navigation">+ <MobileNav isOpen={isOpen} onOpenChange={setIsOpen} header="Navigation"><SideNavSection title="Pages"><SideNavItem label="Home" isSelected href="#" /><SideNavItem label="Settings" href="#" />diff --git a/packages/cli/templates/blocks/components/MoreMenu/MoreMenuDefaultMoreMenu.doc.mjs b/packages/cli/assets/templates/blocks/components/MoreMenu/MoreMenuDefaultMoreMenu.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/MoreMenu/MoreMenuDefaultMoreMenu.doc.mjsrename to packages/cli/assets/templates/blocks/components/MoreMenu/MoreMenuDefaultMoreMenu.doc.mjsindex 46904b7e58..381c096ef7 100644--- a/packages/cli/templates/blocks/components/MoreMenu/MoreMenuDefaultMoreMenu.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/MoreMenu/MoreMenuDefaultMoreMenu.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'MoreMenu',diff --git a/packages/cli/templates/blocks/components/MoreMenu/MoreMenuDefaultMoreMenu.tsx b/packages/cli/assets/templates/blocks/components/MoreMenu/MoreMenuDefaultMoreMenu.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/MoreMenu/MoreMenuDefaultMoreMenu.tsxrename to packages/cli/assets/templates/blocks/components/MoreMenu/MoreMenuDefaultMoreMenu.tsxdiff --git a/packages/cli/templates/blocks/components/MoreMenu/MoreMenuShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/MoreMenu/MoreMenuShowcase.doc.mjssimilarity index 82%rename from packages/cli/templates/blocks/components/MoreMenu/MoreMenuShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/MoreMenu/MoreMenuShowcase.doc.mjsindex d992048dce..e672b8fd1a 100644--- a/packages/cli/templates/blocks/components/MoreMenu/MoreMenuShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/MoreMenu/MoreMenuShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'MoreMenu',diff --git a/packages/cli/templates/blocks/components/MoreMenu/MoreMenuShowcase.tsx b/packages/cli/assets/templates/blocks/components/MoreMenu/MoreMenuShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/MoreMenu/MoreMenuShowcase.tsxrename to packages/cli/assets/templates/blocks/components/MoreMenu/MoreMenuShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/MoreMenu/MoreMenuWithDividers.doc.mjs b/packages/cli/assets/templates/blocks/components/MoreMenu/MoreMenuWithDividers.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/MoreMenu/MoreMenuWithDividers.doc.mjsrename to packages/cli/assets/templates/blocks/components/MoreMenu/MoreMenuWithDividers.doc.mjsindex ad43590f23..b6c1a07925 100644--- a/packages/cli/templates/blocks/components/MoreMenu/MoreMenuWithDividers.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/MoreMenu/MoreMenuWithDividers.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'MoreMenu',diff --git a/packages/cli/templates/blocks/components/MoreMenu/MoreMenuWithDividers.tsx b/packages/cli/assets/templates/blocks/components/MoreMenu/MoreMenuWithDividers.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/MoreMenu/MoreMenuWithDividers.tsxrename to packages/cli/assets/templates/blocks/components/MoreMenu/MoreMenuWithDividers.tsxdiff --git a/packages/cli/templates/blocks/components/MoreMenu/MoreMenuWithSections.doc.mjs b/packages/cli/assets/templates/blocks/components/MoreMenu/MoreMenuWithSections.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/MoreMenu/MoreMenuWithSections.doc.mjsrename to packages/cli/assets/templates/blocks/components/MoreMenu/MoreMenuWithSections.doc.mjsindex 81d7e8948d..7691947a7e 100644--- a/packages/cli/templates/blocks/components/MoreMenu/MoreMenuWithSections.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/MoreMenu/MoreMenuWithSections.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'MoreMenu',diff --git a/packages/cli/templates/blocks/components/MoreMenu/MoreMenuWithSections.tsx b/packages/cli/assets/templates/blocks/components/MoreMenu/MoreMenuWithSections.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/MoreMenu/MoreMenuWithSections.tsxrename to packages/cli/assets/templates/blocks/components/MoreMenu/MoreMenuWithSections.tsxdiff --git a/packages/cli/templates/blocks/components/MultiSelector/MultiSelectorColumnVisibilitySelector.doc.mjs b/packages/cli/assets/templates/blocks/components/MultiSelector/MultiSelectorColumnVisibilitySelector.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/MultiSelector/MultiSelectorColumnVisibilitySelector.doc.mjsrename to packages/cli/assets/templates/blocks/components/MultiSelector/MultiSelectorColumnVisibilitySelector.doc.mjsindex 46d4869198..0a0f0a137a 100644--- a/packages/cli/templates/blocks/components/MultiSelector/MultiSelectorColumnVisibilitySelector.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/MultiSelector/MultiSelectorColumnVisibilitySelector.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'MultiSelector',diff --git a/packages/cli/templates/blocks/components/MultiSelector/MultiSelectorColumnVisibilitySelector.tsx b/packages/cli/assets/templates/blocks/components/MultiSelector/MultiSelectorColumnVisibilitySelector.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/MultiSelector/MultiSelectorColumnVisibilitySelector.tsxrename to packages/cli/assets/templates/blocks/components/MultiSelector/MultiSelectorColumnVisibilitySelector.tsxdiff --git a/packages/cli/templates/blocks/components/MultiSelector/MultiSelectorForm.doc.mjs b/packages/cli/assets/templates/blocks/components/MultiSelector/MultiSelectorForm.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/MultiSelector/MultiSelectorForm.doc.mjsrename to packages/cli/assets/templates/blocks/components/MultiSelector/MultiSelectorForm.doc.mjsindex de8844afcb..43755bca96 100644--- a/packages/cli/templates/blocks/components/MultiSelector/MultiSelectorForm.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/MultiSelector/MultiSelectorForm.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'MultiSelector',diff --git a/packages/cli/templates/blocks/components/MultiSelector/MultiSelectorForm.tsx b/packages/cli/assets/templates/blocks/components/MultiSelector/MultiSelectorForm.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/MultiSelector/MultiSelectorForm.tsxrename to packages/cli/assets/templates/blocks/components/MultiSelector/MultiSelectorForm.tsxdiff --git a/packages/cli/templates/blocks/components/MultiSelector/MultiSelectorSearchableMultiSelector.doc.mjs b/packages/cli/assets/templates/blocks/components/MultiSelector/MultiSelectorSearchableMultiSelector.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/MultiSelector/MultiSelectorSearchableMultiSelector.doc.mjsrename to packages/cli/assets/templates/blocks/components/MultiSelector/MultiSelectorSearchableMultiSelector.doc.mjsindex a966da6f74..7cbdb36be7 100644--- a/packages/cli/templates/blocks/components/MultiSelector/MultiSelectorSearchableMultiSelector.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/MultiSelector/MultiSelectorSearchableMultiSelector.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'MultiSelector',diff --git a/packages/cli/templates/blocks/components/MultiSelector/MultiSelectorSearchableMultiSelector.tsx b/packages/cli/assets/templates/blocks/components/MultiSelector/MultiSelectorSearchableMultiSelector.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/MultiSelector/MultiSelectorSearchableMultiSelector.tsxrename to packages/cli/assets/templates/blocks/components/MultiSelector/MultiSelectorSearchableMultiSelector.tsxdiff --git a/packages/cli/templates/blocks/components/MultiSelector/MultiSelectorSectionedMultiSelector.doc.mjs b/packages/cli/assets/templates/blocks/components/MultiSelector/MultiSelectorSectionedMultiSelector.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/MultiSelector/MultiSelectorSectionedMultiSelector.doc.mjsrename to packages/cli/assets/templates/blocks/components/MultiSelector/MultiSelectorSectionedMultiSelector.doc.mjsindex 8b82441cdd..4dcec224e6 100644--- a/packages/cli/templates/blocks/components/MultiSelector/MultiSelectorSectionedMultiSelector.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/MultiSelector/MultiSelectorSectionedMultiSelector.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'MultiSelector',diff --git a/packages/cli/templates/blocks/components/MultiSelector/MultiSelectorSectionedMultiSelector.tsx b/packages/cli/assets/templates/blocks/components/MultiSelector/MultiSelectorSectionedMultiSelector.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/MultiSelector/MultiSelectorSectionedMultiSelector.tsxrename to packages/cli/assets/templates/blocks/components/MultiSelector/MultiSelectorSectionedMultiSelector.tsxdiff --git a/packages/cli/templates/blocks/components/MultiSelector/MultiSelectorShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/MultiSelector/MultiSelectorShowcase.doc.mjssimilarity index 79%rename from packages/cli/templates/blocks/components/MultiSelector/MultiSelectorShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/MultiSelector/MultiSelectorShowcase.doc.mjsindex 8974f98847..eb11cbdc9d 100644--- a/packages/cli/templates/blocks/components/MultiSelector/MultiSelectorShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/MultiSelector/MultiSelectorShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'MultiSelector',diff --git a/packages/cli/templates/blocks/components/MultiSelector/MultiSelectorShowcase.tsx b/packages/cli/assets/templates/blocks/components/MultiSelector/MultiSelectorShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/MultiSelector/MultiSelectorShowcase.tsxrename to packages/cli/assets/templates/blocks/components/MultiSelector/MultiSelectorShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/NavHeadingMenu/NavHeadingMenuShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/NavHeadingMenu/NavHeadingMenuShowcase.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/NavHeadingMenu/NavHeadingMenuShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/NavHeadingMenu/NavHeadingMenuShowcase.doc.mjsindex 2b5e828eb3..ee101d1c4c 100644--- a/packages/cli/templates/blocks/components/NavHeadingMenu/NavHeadingMenuShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/NavHeadingMenu/NavHeadingMenuShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'NavHeadingMenu',diff --git a/packages/cli/templates/blocks/components/NavHeadingMenu/NavHeadingMenuShowcase.tsx b/packages/cli/assets/templates/blocks/components/NavHeadingMenu/NavHeadingMenuShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/NavHeadingMenu/NavHeadingMenuShowcase.tsxrename to packages/cli/assets/templates/blocks/components/NavHeadingMenu/NavHeadingMenuShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/NavIcon/NavIconBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/NavIcon/NavIconBasic.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/NavIcon/NavIconBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/NavIcon/NavIconBasic.doc.mjsindex 4c280ed8dc..727533c99b 100644--- a/packages/cli/templates/blocks/components/NavIcon/NavIconBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/NavIcon/NavIconBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'NavIcon',diff --git a/packages/cli/templates/blocks/components/NavIcon/NavIconBasic.tsx b/packages/cli/assets/templates/blocks/components/NavIcon/NavIconBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/NavIcon/NavIconBasic.tsxrename to packages/cli/assets/templates/blocks/components/NavIcon/NavIconBasic.tsxdiff --git a/packages/cli/templates/blocks/components/NavIcon/NavIconShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/NavIcon/NavIconShowcase.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/NavIcon/NavIconShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/NavIcon/NavIconShowcase.doc.mjsindex fb0acf2510..ef4264d4e2 100644--- a/packages/cli/templates/blocks/components/NavIcon/NavIconShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/NavIcon/NavIconShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'NavIcon',diff --git a/packages/cli/templates/blocks/components/NavIcon/NavIconShowcase.tsx b/packages/cli/assets/templates/blocks/components/NavIcon/NavIconShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/NavIcon/NavIconShowcase.tsxrename to packages/cli/assets/templates/blocks/components/NavIcon/NavIconShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/NumberInput/NumberInputClearableNumberInput.doc.mjs b/packages/cli/assets/templates/blocks/components/NumberInput/NumberInputClearableNumberInput.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/NumberInput/NumberInputClearableNumberInput.doc.mjsrename to packages/cli/assets/templates/blocks/components/NumberInput/NumberInputClearableNumberInput.doc.mjsindex 69bb5bdfda..10075aeb7b 100644--- a/packages/cli/templates/blocks/components/NumberInput/NumberInputClearableNumberInput.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/NumberInput/NumberInputClearableNumberInput.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'NumberInput',diff --git a/packages/cli/templates/blocks/components/NumberInput/NumberInputClearableNumberInput.tsx b/packages/cli/assets/templates/blocks/components/NumberInput/NumberInputClearableNumberInput.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/NumberInput/NumberInputClearableNumberInput.tsxrename to packages/cli/assets/templates/blocks/components/NumberInput/NumberInputClearableNumberInput.tsxdiff --git a/packages/cli/templates/blocks/components/NumberInput/NumberInputRangeNumberInput.doc.mjs b/packages/cli/assets/templates/blocks/components/NumberInput/NumberInputRangeNumberInput.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/NumberInput/NumberInputRangeNumberInput.doc.mjsrename to packages/cli/assets/templates/blocks/components/NumberInput/NumberInputRangeNumberInput.doc.mjsindex 4a21e26d0e..6a18d4cf55 100644--- a/packages/cli/templates/blocks/components/NumberInput/NumberInputRangeNumberInput.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/NumberInput/NumberInputRangeNumberInput.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'NumberInput',diff --git a/packages/cli/templates/blocks/components/NumberInput/NumberInputRangeNumberInput.tsx b/packages/cli/assets/templates/blocks/components/NumberInput/NumberInputRangeNumberInput.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/NumberInput/NumberInputRangeNumberInput.tsxrename to packages/cli/assets/templates/blocks/components/NumberInput/NumberInputRangeNumberInput.tsxdiff --git a/packages/cli/templates/blocks/components/NumberInput/NumberInputShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/NumberInput/NumberInputShowcase.doc.mjssimilarity index 81%rename from packages/cli/templates/blocks/components/NumberInput/NumberInputShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/NumberInput/NumberInputShowcase.doc.mjsindex f51139290f..c8cb9a44a2 100644--- a/packages/cli/templates/blocks/components/NumberInput/NumberInputShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/NumberInput/NumberInputShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'NumberInput',diff --git a/packages/cli/templates/blocks/components/NumberInput/NumberInputShowcase.tsx b/packages/cli/assets/templates/blocks/components/NumberInput/NumberInputShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/NumberInput/NumberInputShowcase.tsxrename to packages/cli/assets/templates/blocks/components/NumberInput/NumberInputShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/NumberInput/NumberInputStatuses.doc.mjs b/packages/cli/assets/templates/blocks/components/NumberInput/NumberInputStatuses.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/NumberInput/NumberInputStatuses.doc.mjsrename to packages/cli/assets/templates/blocks/components/NumberInput/NumberInputStatuses.doc.mjsindex 39f80a2c9c..fa37e69578 100644--- a/packages/cli/templates/blocks/components/NumberInput/NumberInputStatuses.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/NumberInput/NumberInputStatuses.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'NumberInput',diff --git a/packages/cli/templates/blocks/components/NumberInput/NumberInputStatuses.tsx b/packages/cli/assets/templates/blocks/components/NumberInput/NumberInputStatuses.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/NumberInput/NumberInputStatuses.tsxrename to packages/cli/assets/templates/blocks/components/NumberInput/NumberInputStatuses.tsxdiff --git a/packages/cli/templates/blocks/components/NumberInput/NumberInputWithUnits.doc.mjs b/packages/cli/assets/templates/blocks/components/NumberInput/NumberInputWithUnits.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/NumberInput/NumberInputWithUnits.doc.mjsrename to packages/cli/assets/templates/blocks/components/NumberInput/NumberInputWithUnits.doc.mjsindex b1c14ae628..98e6f74e7d 100644--- a/packages/cli/templates/blocks/components/NumberInput/NumberInputWithUnits.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/NumberInput/NumberInputWithUnits.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'NumberInput',diff --git a/packages/cli/templates/blocks/components/NumberInput/NumberInputWithUnits.tsx b/packages/cli/assets/templates/blocks/components/NumberInput/NumberInputWithUnits.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/NumberInput/NumberInputWithUnits.tsxrename to packages/cli/assets/templates/blocks/components/NumberInput/NumberInputWithUnits.tsxdiff --git a/packages/cli/templates/blocks/components/Outline/OutlineControlled.doc.mjs b/packages/cli/assets/templates/blocks/components/Outline/OutlineControlled.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Outline/OutlineControlled.doc.mjsrename to packages/cli/assets/templates/blocks/components/Outline/OutlineControlled.doc.mjsindex 0415a584a8..7fb3c887e0 100644--- a/packages/cli/templates/blocks/components/Outline/OutlineControlled.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Outline/OutlineControlled.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Outline',diff --git a/packages/cli/templates/blocks/components/Outline/OutlineControlled.tsx b/packages/cli/assets/templates/blocks/components/Outline/OutlineControlled.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Outline/OutlineControlled.tsxrename to packages/cli/assets/templates/blocks/components/Outline/OutlineControlled.tsxdiff --git a/packages/cli/templates/blocks/components/Outline/OutlineDeepNesting.doc.mjs b/packages/cli/assets/templates/blocks/components/Outline/OutlineDeepNesting.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Outline/OutlineDeepNesting.doc.mjsrename to packages/cli/assets/templates/blocks/components/Outline/OutlineDeepNesting.doc.mjsindex 5132c16818..cc6a914dea 100644--- a/packages/cli/templates/blocks/components/Outline/OutlineDeepNesting.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Outline/OutlineDeepNesting.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Outline',diff --git a/packages/cli/templates/blocks/components/Outline/OutlineDeepNesting.tsx b/packages/cli/assets/templates/blocks/components/Outline/OutlineDeepNesting.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Outline/OutlineDeepNesting.tsxrename to packages/cli/assets/templates/blocks/components/Outline/OutlineDeepNesting.tsxdiff --git a/packages/cli/templates/blocks/components/Outline/OutlineDensity.doc.mjs b/packages/cli/assets/templates/blocks/components/Outline/OutlineDensity.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/Outline/OutlineDensity.doc.mjsrename to packages/cli/assets/templates/blocks/components/Outline/OutlineDensity.doc.mjsindex 82b8a07073..74dc18f296 100644--- a/packages/cli/templates/blocks/components/Outline/OutlineDensity.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Outline/OutlineDensity.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Outline',diff --git a/packages/cli/templates/blocks/components/Outline/OutlineDensity.tsx b/packages/cli/assets/templates/blocks/components/Outline/OutlineDensity.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Outline/OutlineDensity.tsxrename to packages/cli/assets/templates/blocks/components/Outline/OutlineDensity.tsxdiff --git a/packages/cli/templates/blocks/components/Outline/OutlineShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Outline/OutlineShowcase.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Outline/OutlineShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Outline/OutlineShowcase.doc.mjsindex bfbee3ab3e..aa2892a3e9 100644--- a/packages/cli/templates/blocks/components/Outline/OutlineShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Outline/OutlineShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Outline',diff --git a/packages/cli/templates/blocks/components/Outline/OutlineShowcase.tsx b/packages/cli/assets/templates/blocks/components/Outline/OutlineShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Outline/OutlineShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Outline/OutlineShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/OverflowList/OverflowListCappedToolbar.doc.mjs b/packages/cli/assets/templates/blocks/components/OverflowList/OverflowListCappedToolbar.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/OverflowList/OverflowListCappedToolbar.doc.mjsrename to packages/cli/assets/templates/blocks/components/OverflowList/OverflowListCappedToolbar.doc.mjsindex d07f9c46e8..fc246f8a24 100644--- a/packages/cli/templates/blocks/components/OverflowList/OverflowListCappedToolbar.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/OverflowList/OverflowListCappedToolbar.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'OverflowList',diff --git a/packages/cli/templates/blocks/components/OverflowList/OverflowListCappedToolbar.tsx b/packages/cli/assets/templates/blocks/components/OverflowList/OverflowListCappedToolbar.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/OverflowList/OverflowListCappedToolbar.tsxrename to packages/cli/assets/templates/blocks/components/OverflowList/OverflowListCappedToolbar.tsxdiff --git a/packages/cli/templates/blocks/components/OverflowList/OverflowListCollapseFromStartList.doc.mjs b/packages/cli/assets/templates/blocks/components/OverflowList/OverflowListCollapseFromStartList.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/OverflowList/OverflowListCollapseFromStartList.doc.mjsrename to packages/cli/assets/templates/blocks/components/OverflowList/OverflowListCollapseFromStartList.doc.mjsindex 20e59c6e8f..b9b4469f7f 100644--- a/packages/cli/templates/blocks/components/OverflowList/OverflowListCollapseFromStartList.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/OverflowList/OverflowListCollapseFromStartList.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'OverflowList',diff --git a/packages/cli/templates/blocks/components/OverflowList/OverflowListCollapseFromStartList.tsx b/packages/cli/assets/templates/blocks/components/OverflowList/OverflowListCollapseFromStartList.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/OverflowList/OverflowListCollapseFromStartList.tsxrename to packages/cli/assets/templates/blocks/components/OverflowList/OverflowListCollapseFromStartList.tsxdiff --git a/packages/cli/templates/blocks/components/OverflowList/OverflowListMultiRowTags.doc.mjs b/packages/cli/assets/templates/blocks/components/OverflowList/OverflowListMultiRowTags.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/OverflowList/OverflowListMultiRowTags.doc.mjsrename to packages/cli/assets/templates/blocks/components/OverflowList/OverflowListMultiRowTags.doc.mjsindex 4be56e97a0..56ca18f75e 100644--- a/packages/cli/templates/blocks/components/OverflowList/OverflowListMultiRowTags.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/OverflowList/OverflowListMultiRowTags.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'OverflowList',diff --git a/packages/cli/templates/blocks/components/OverflowList/OverflowListMultiRowTags.tsx b/packages/cli/assets/templates/blocks/components/OverflowList/OverflowListMultiRowTags.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/OverflowList/OverflowListMultiRowTags.tsxrename to packages/cli/assets/templates/blocks/components/OverflowList/OverflowListMultiRowTags.tsxdiff --git a/packages/cli/templates/blocks/components/OverflowList/OverflowListOverflowBadges.doc.mjs b/packages/cli/assets/templates/blocks/components/OverflowList/OverflowListOverflowBadges.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/OverflowList/OverflowListOverflowBadges.doc.mjsrename to packages/cli/assets/templates/blocks/components/OverflowList/OverflowListOverflowBadges.doc.mjsindex f3549ecb7e..a7a9777627 100644--- a/packages/cli/templates/blocks/components/OverflowList/OverflowListOverflowBadges.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/OverflowList/OverflowListOverflowBadges.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'OverflowList',diff --git a/packages/cli/templates/blocks/components/OverflowList/OverflowListOverflowBadges.tsx b/packages/cli/assets/templates/blocks/components/OverflowList/OverflowListOverflowBadges.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/OverflowList/OverflowListOverflowBadges.tsxrename to packages/cli/assets/templates/blocks/components/OverflowList/OverflowListOverflowBadges.tsxdiff --git a/packages/cli/templates/blocks/components/OverflowList/OverflowListOverflowDropdownActions.doc.mjs b/packages/cli/assets/templates/blocks/components/OverflowList/OverflowListOverflowDropdownActions.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/OverflowList/OverflowListOverflowDropdownActions.doc.mjsrename to packages/cli/assets/templates/blocks/components/OverflowList/OverflowListOverflowDropdownActions.doc.mjsindex d7affff5f2..6039932797 100644--- a/packages/cli/templates/blocks/components/OverflowList/OverflowListOverflowDropdownActions.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/OverflowList/OverflowListOverflowDropdownActions.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'OverflowList',diff --git a/packages/cli/templates/blocks/components/OverflowList/OverflowListOverflowDropdownActions.tsx b/packages/cli/assets/templates/blocks/components/OverflowList/OverflowListOverflowDropdownActions.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/OverflowList/OverflowListOverflowDropdownActions.tsxrename to packages/cli/assets/templates/blocks/components/OverflowList/OverflowListOverflowDropdownActions.tsxdiff --git a/packages/cli/templates/blocks/components/OverflowList/OverflowListShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/OverflowList/OverflowListShowcase.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/OverflowList/OverflowListShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/OverflowList/OverflowListShowcase.doc.mjsindex b098365d42..ac5b2ab775 100644--- a/packages/cli/templates/blocks/components/OverflowList/OverflowListShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/OverflowList/OverflowListShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'OverflowList',diff --git a/packages/cli/templates/blocks/components/OverflowList/OverflowListShowcase.tsx b/packages/cli/assets/templates/blocks/components/OverflowList/OverflowListShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/OverflowList/OverflowListShowcase.tsxrename to packages/cli/assets/templates/blocks/components/OverflowList/OverflowListShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Overlay/OverlayBottomStrip.doc.mjs b/packages/cli/assets/templates/blocks/components/Overlay/OverlayBottomStrip.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Overlay/OverlayBottomStrip.doc.mjsrename to packages/cli/assets/templates/blocks/components/Overlay/OverlayBottomStrip.doc.mjsindex 6b8b92667a..838041ac9f 100644--- a/packages/cli/templates/blocks/components/Overlay/OverlayBottomStrip.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Overlay/OverlayBottomStrip.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Overlay',diff --git a/packages/cli/templates/blocks/components/Overlay/OverlayBottomStrip.tsx b/packages/cli/assets/templates/blocks/components/Overlay/OverlayBottomStrip.tsxsimilarity index 89%rename from packages/cli/templates/blocks/components/Overlay/OverlayBottomStrip.tsxrename to packages/cli/assets/templates/blocks/components/Overlay/OverlayBottomStrip.tsxindex 15be8de454..6fd436fefb 100644--- a/packages/cli/templates/blocks/components/Overlay/OverlayBottomStrip.tsx+++ b/packages/cli/assets/templates/blocks/components/Overlay/OverlayBottomStrip.tsx@@ -26,7 +26,12 @@ export default function OverlayBottomStrip() {}><AspectRatioratio={16 / 9}- style={{width: 420, maxWidth: '100%', borderRadius: 12, overflow: 'clip'}}>+ style={{+ width: 420,+ maxWidth: '100%',+ borderRadius: 12,+ overflow: 'clip',+ }}><imgsrc="https://lookaside.facebook.com/assets/astryx/illustrative-horizontal-1.png"alt="Product highlight preview"diff --git a/packages/cli/templates/blocks/components/Overlay/OverlayHoverReveal.doc.mjs b/packages/cli/assets/templates/blocks/components/Overlay/OverlayHoverReveal.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Overlay/OverlayHoverReveal.doc.mjsrename to packages/cli/assets/templates/blocks/components/Overlay/OverlayHoverReveal.doc.mjsindex 8f86308749..6c1dc19716 100644--- a/packages/cli/templates/blocks/components/Overlay/OverlayHoverReveal.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Overlay/OverlayHoverReveal.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Overlay',diff --git a/packages/cli/templates/blocks/components/Overlay/OverlayHoverReveal.tsx b/packages/cli/assets/templates/blocks/components/Overlay/OverlayHoverReveal.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Overlay/OverlayHoverReveal.tsxrename to packages/cli/assets/templates/blocks/components/Overlay/OverlayHoverReveal.tsxdiff --git a/packages/cli/templates/blocks/components/Overlay/OverlayShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Overlay/OverlayShowcase.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/Overlay/OverlayShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Overlay/OverlayShowcase.doc.mjsindex 26a9ad7718..b81f28a803 100644--- a/packages/cli/templates/blocks/components/Overlay/OverlayShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Overlay/OverlayShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Overlay',diff --git a/packages/cli/templates/blocks/components/Overlay/OverlayShowcase.tsx b/packages/cli/assets/templates/blocks/components/Overlay/OverlayShowcase.tsxsimilarity index 88%rename from packages/cli/templates/blocks/components/Overlay/OverlayShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Overlay/OverlayShowcase.tsxindex 76242ab3cc..16c37e0701 100644--- a/packages/cli/templates/blocks/components/Overlay/OverlayShowcase.tsx+++ b/packages/cli/assets/templates/blocks/components/Overlay/OverlayShowcase.tsx@@ -22,7 +22,12 @@ export default function OverlayShowcase() {}><AspectRatioratio={16 / 9}- style={{width: 520, maxWidth: '100%', borderRadius: 16, overflow: 'clip'}}>+ style={{+ width: 520,+ maxWidth: '100%',+ borderRadius: 16,+ overflow: 'clip',+ }}><imgsrc="https://lookaside.facebook.com/assets/astryx/light-scene-horizontal-1.png"alt="Abstract landscape"diff --git a/packages/cli/templates/blocks/components/Pagination/PaginationDotsCarousel.doc.mjs b/packages/cli/assets/templates/blocks/components/Pagination/PaginationDotsCarousel.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/Pagination/PaginationDotsCarousel.doc.mjsrename to packages/cli/assets/templates/blocks/components/Pagination/PaginationDotsCarousel.doc.mjsindex 57d1990307..dd44281900 100644--- a/packages/cli/templates/blocks/components/Pagination/PaginationDotsCarousel.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Pagination/PaginationDotsCarousel.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Pagination',diff --git a/packages/cli/templates/blocks/components/Pagination/PaginationDotsCarousel.tsx b/packages/cli/assets/templates/blocks/components/Pagination/PaginationDotsCarousel.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Pagination/PaginationDotsCarousel.tsxrename to packages/cli/assets/templates/blocks/components/Pagination/PaginationDotsCarousel.tsxdiff --git a/packages/cli/templates/blocks/components/Pagination/PaginationPageSize.doc.mjs b/packages/cli/assets/templates/blocks/components/Pagination/PaginationPageSize.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/Pagination/PaginationPageSize.doc.mjsrename to packages/cli/assets/templates/blocks/components/Pagination/PaginationPageSize.doc.mjsindex aa5134d14b..d2879bec20 100644--- a/packages/cli/templates/blocks/components/Pagination/PaginationPageSize.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Pagination/PaginationPageSize.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Pagination',diff --git a/packages/cli/templates/blocks/components/Pagination/PaginationPageSize.tsx b/packages/cli/assets/templates/blocks/components/Pagination/PaginationPageSize.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Pagination/PaginationPageSize.tsxrename to packages/cli/assets/templates/blocks/components/Pagination/PaginationPageSize.tsxdiff --git a/packages/cli/templates/blocks/components/Pagination/PaginationVariants.doc.mjs b/packages/cli/assets/templates/blocks/components/Pagination/PaginationVariants.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Pagination/PaginationVariants.doc.mjsrename to packages/cli/assets/templates/blocks/components/Pagination/PaginationVariants.doc.mjsindex 1f3db19309..d619235f72 100644--- a/packages/cli/templates/blocks/components/Pagination/PaginationVariants.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Pagination/PaginationVariants.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Pagination',diff --git a/packages/cli/templates/blocks/components/Pagination/PaginationVariants.tsx b/packages/cli/assets/templates/blocks/components/Pagination/PaginationVariants.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Pagination/PaginationVariants.tsxrename to packages/cli/assets/templates/blocks/components/Pagination/PaginationVariants.tsxdiff --git a/packages/cli/templates/blocks/components/Pagination/PaginationWithTable.doc.mjs b/packages/cli/assets/templates/blocks/components/Pagination/PaginationWithTable.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Pagination/PaginationWithTable.doc.mjsrename to packages/cli/assets/templates/blocks/components/Pagination/PaginationWithTable.doc.mjsindex 5b7d183c8c..cab739ebee 100644--- a/packages/cli/templates/blocks/components/Pagination/PaginationWithTable.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Pagination/PaginationWithTable.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Pagination',diff --git a/packages/cli/templates/blocks/components/Pagination/PaginationWithTable.tsx b/packages/cli/assets/templates/blocks/components/Pagination/PaginationWithTable.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Pagination/PaginationWithTable.tsxrename to packages/cli/assets/templates/blocks/components/Pagination/PaginationWithTable.tsxdiff --git a/packages/cli/templates/blocks/components/Popover/PopoverConfirmAction.doc.mjs b/packages/cli/assets/templates/blocks/components/Popover/PopoverConfirmAction.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Popover/PopoverConfirmAction.doc.mjsrename to packages/cli/assets/templates/blocks/components/Popover/PopoverConfirmAction.doc.mjsindex 43b57ea4b1..d71c0f102c 100644--- a/packages/cli/templates/blocks/components/Popover/PopoverConfirmAction.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Popover/PopoverConfirmAction.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Popover',diff --git a/packages/cli/templates/blocks/components/Popover/PopoverConfirmAction.tsx b/packages/cli/assets/templates/blocks/components/Popover/PopoverConfirmAction.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Popover/PopoverConfirmAction.tsxrename to packages/cli/assets/templates/blocks/components/Popover/PopoverConfirmAction.tsxdiff --git a/packages/cli/templates/blocks/components/Popover/PopoverFilterPanel.doc.mjs b/packages/cli/assets/templates/blocks/components/Popover/PopoverFilterPanel.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/Popover/PopoverFilterPanel.doc.mjsrename to packages/cli/assets/templates/blocks/components/Popover/PopoverFilterPanel.doc.mjsindex d173f1e3c1..41f2d44316 100644--- a/packages/cli/templates/blocks/components/Popover/PopoverFilterPanel.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Popover/PopoverFilterPanel.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Popover',diff --git a/packages/cli/templates/blocks/components/Popover/PopoverFilterPanel.tsx b/packages/cli/assets/templates/blocks/components/Popover/PopoverFilterPanel.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Popover/PopoverFilterPanel.tsxrename to packages/cli/assets/templates/blocks/components/Popover/PopoverFilterPanel.tsxdiff --git a/packages/cli/templates/blocks/components/Popover/PopoverHookUsage.doc.mjs b/packages/cli/assets/templates/blocks/components/Popover/PopoverHookUsage.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Popover/PopoverHookUsage.doc.mjsrename to packages/cli/assets/templates/blocks/components/Popover/PopoverHookUsage.doc.mjsindex c250b25516..3d279453f0 100644--- a/packages/cli/templates/blocks/components/Popover/PopoverHookUsage.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Popover/PopoverHookUsage.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'usePopover',diff --git a/packages/cli/templates/blocks/components/Popover/PopoverHookUsage.tsx b/packages/cli/assets/templates/blocks/components/Popover/PopoverHookUsage.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Popover/PopoverHookUsage.tsxrename to packages/cli/assets/templates/blocks/components/Popover/PopoverHookUsage.tsxdiff --git a/packages/cli/templates/blocks/components/Popover/PopoverKeyboardShortcuts.doc.mjs b/packages/cli/assets/templates/blocks/components/Popover/PopoverKeyboardShortcuts.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Popover/PopoverKeyboardShortcuts.doc.mjsrename to packages/cli/assets/templates/blocks/components/Popover/PopoverKeyboardShortcuts.doc.mjsindex 8288933efe..76cf235f93 100644--- a/packages/cli/templates/blocks/components/Popover/PopoverKeyboardShortcuts.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Popover/PopoverKeyboardShortcuts.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Popover',diff --git a/packages/cli/templates/blocks/components/Popover/PopoverKeyboardShortcuts.tsx b/packages/cli/assets/templates/blocks/components/Popover/PopoverKeyboardShortcuts.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Popover/PopoverKeyboardShortcuts.tsxrename to packages/cli/assets/templates/blocks/components/Popover/PopoverKeyboardShortcuts.tsxdiff --git a/packages/cli/templates/blocks/components/Popover/PopoverSettingsPanel.doc.mjs b/packages/cli/assets/templates/blocks/components/Popover/PopoverSettingsPanel.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Popover/PopoverSettingsPanel.doc.mjsrename to packages/cli/assets/templates/blocks/components/Popover/PopoverSettingsPanel.doc.mjsindex 3a897cc390..ee1496feee 100644--- a/packages/cli/templates/blocks/components/Popover/PopoverSettingsPanel.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Popover/PopoverSettingsPanel.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Popover',diff --git a/packages/cli/templates/blocks/components/Popover/PopoverSettingsPanel.tsx b/packages/cli/assets/templates/blocks/components/Popover/PopoverSettingsPanel.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Popover/PopoverSettingsPanel.tsxrename to packages/cli/assets/templates/blocks/components/Popover/PopoverSettingsPanel.tsxdiff --git a/packages/cli/templates/blocks/components/Popover/PopoverShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Popover/PopoverShowcase.doc.mjssimilarity index 81%rename from packages/cli/templates/blocks/components/Popover/PopoverShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Popover/PopoverShowcase.doc.mjsindex 1750007a2f..6a4abc8472 100644--- a/packages/cli/templates/blocks/components/Popover/PopoverShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Popover/PopoverShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Popover',diff --git a/packages/cli/templates/blocks/components/Popover/PopoverShowcase.tsx b/packages/cli/assets/templates/blocks/components/Popover/PopoverShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Popover/PopoverShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Popover/PopoverShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/PowerSearch/PowerSearchContentSearch.doc.mjs b/packages/cli/assets/templates/blocks/components/PowerSearch/PowerSearchContentSearch.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/PowerSearch/PowerSearchContentSearch.doc.mjsrename to packages/cli/assets/templates/blocks/components/PowerSearch/PowerSearchContentSearch.doc.mjsindex b08fe2ae33..26a9655735 100644--- a/packages/cli/templates/blocks/components/PowerSearch/PowerSearchContentSearch.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/PowerSearch/PowerSearchContentSearch.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'PowerSearch',diff --git a/packages/cli/templates/blocks/components/PowerSearch/PowerSearchContentSearch.tsx b/packages/cli/assets/templates/blocks/components/PowerSearch/PowerSearchContentSearch.tsxsimilarity index 94%rename from packages/cli/templates/blocks/components/PowerSearch/PowerSearchContentSearch.tsxrename to packages/cli/assets/templates/blocks/components/PowerSearch/PowerSearchContentSearch.tsxindex 6c602016f5..e4bed06a54 100644--- a/packages/cli/templates/blocks/components/PowerSearch/PowerSearchContentSearch.tsx+++ b/packages/cli/assets/templates/blocks/components/PowerSearch/PowerSearchContentSearch.tsx@@ -4,7 +4,10 @@import {useState} from 'react';import {PowerSearch} from '@astryxdesign/core/PowerSearch';-import type {PowerSearchConfig, PowerSearchFilter} from '@astryxdesign/core/PowerSearch';+import type {+ PowerSearchConfig,+ PowerSearchFilter,+} from '@astryxdesign/core/PowerSearch';const statusValues = [{value: 'open', label: 'Open'},diff --git a/packages/cli/templates/blocks/components/PowerSearch/PowerSearchFullFeatured.doc.mjs b/packages/cli/assets/templates/blocks/components/PowerSearch/PowerSearchFullFeatured.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/PowerSearch/PowerSearchFullFeatured.doc.mjsrename to packages/cli/assets/templates/blocks/components/PowerSearch/PowerSearchFullFeatured.doc.mjsindex d27377d067..b153787cd8 100644--- a/packages/cli/templates/blocks/components/PowerSearch/PowerSearchFullFeatured.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/PowerSearch/PowerSearchFullFeatured.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'PowerSearch',diff --git a/packages/cli/templates/blocks/components/PowerSearch/PowerSearchFullFeatured.tsx b/packages/cli/assets/templates/blocks/components/PowerSearch/PowerSearchFullFeatured.tsxsimilarity index 96%rename from packages/cli/templates/blocks/components/PowerSearch/PowerSearchFullFeatured.tsxrename to packages/cli/assets/templates/blocks/components/PowerSearch/PowerSearchFullFeatured.tsxindex 825db69d65..c30eb2464b 100644--- a/packages/cli/templates/blocks/components/PowerSearch/PowerSearchFullFeatured.tsx+++ b/packages/cli/assets/templates/blocks/components/PowerSearch/PowerSearchFullFeatured.tsx@@ -4,7 +4,10 @@import {useState} from 'react';import {PowerSearch} from '@astryxdesign/core/PowerSearch';-import type {PowerSearchConfig, PowerSearchFilter} from '@astryxdesign/core/PowerSearch';+import type {+ PowerSearchConfig,+ PowerSearchFilter,+} from '@astryxdesign/core/PowerSearch';import type {SearchSource, SearchableItem} from '@astryxdesign/core/Typeahead';const statusValues = [diff --git a/packages/cli/templates/blocks/components/PowerSearch/PowerSearchPresetFilters.doc.mjs b/packages/cli/assets/templates/blocks/components/PowerSearch/PowerSearchPresetFilters.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/PowerSearch/PowerSearchPresetFilters.doc.mjsrename to packages/cli/assets/templates/blocks/components/PowerSearch/PowerSearchPresetFilters.doc.mjsindex 3e29962c78..91c0bd10e2 100644--- a/packages/cli/templates/blocks/components/PowerSearch/PowerSearchPresetFilters.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/PowerSearch/PowerSearchPresetFilters.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'PowerSearch',diff --git a/packages/cli/templates/blocks/components/PowerSearch/PowerSearchPresetFilters.tsx b/packages/cli/assets/templates/blocks/components/PowerSearch/PowerSearchPresetFilters.tsxsimilarity index 95%rename from packages/cli/templates/blocks/components/PowerSearch/PowerSearchPresetFilters.tsxrename to packages/cli/assets/templates/blocks/components/PowerSearch/PowerSearchPresetFilters.tsxindex 41cdd95f09..c8229542ee 100644--- a/packages/cli/templates/blocks/components/PowerSearch/PowerSearchPresetFilters.tsx+++ b/packages/cli/assets/templates/blocks/components/PowerSearch/PowerSearchPresetFilters.tsx@@ -4,7 +4,10 @@import {useState} from 'react';import {PowerSearch} from '@astryxdesign/core/PowerSearch';-import type {PowerSearchConfig, PowerSearchFilter} from '@astryxdesign/core/PowerSearch';+import type {+ PowerSearchConfig,+ PowerSearchFilter,+} from '@astryxdesign/core/PowerSearch';const statusValues = [{value: 'open', label: 'Open'},diff --git a/packages/cli/templates/blocks/components/PowerSearch/PowerSearchSearchWithTable.doc.mjs b/packages/cli/assets/templates/blocks/components/PowerSearch/PowerSearchSearchWithTable.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/PowerSearch/PowerSearchSearchWithTable.doc.mjsrename to packages/cli/assets/templates/blocks/components/PowerSearch/PowerSearchSearchWithTable.doc.mjsindex 8e770f6f13..1fa7c78175 100644--- a/packages/cli/templates/blocks/components/PowerSearch/PowerSearchSearchWithTable.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/PowerSearch/PowerSearchSearchWithTable.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'PowerSearch',diff --git a/packages/cli/templates/blocks/components/PowerSearch/PowerSearchSearchWithTable.tsx b/packages/cli/assets/templates/blocks/components/PowerSearch/PowerSearchSearchWithTable.tsxsimilarity index 96%rename from packages/cli/templates/blocks/components/PowerSearch/PowerSearchSearchWithTable.tsxrename to packages/cli/assets/templates/blocks/components/PowerSearch/PowerSearchSearchWithTable.tsxindex bda1ee4fa3..2e87651f92 100644--- a/packages/cli/templates/blocks/components/PowerSearch/PowerSearchSearchWithTable.tsx+++ b/packages/cli/assets/templates/blocks/components/PowerSearch/PowerSearchSearchWithTable.tsx@@ -3,7 +3,10 @@'use client';import {useState} from 'react';-import {PowerSearch, usePowerSearchConfig} from '@astryxdesign/core/PowerSearch';+import {+ PowerSearch,+ usePowerSearchConfig,+} from '@astryxdesign/core/PowerSearch';import type {PowerSearchFilter} from '@astryxdesign/core/PowerSearch';import {Table, pixel, proportional} from '@astryxdesign/core/Table';import type {TableColumn} from '@astryxdesign/core/Table';diff --git a/packages/cli/templates/blocks/components/PowerSearch/PowerSearchShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/PowerSearch/PowerSearchShowcase.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/PowerSearch/PowerSearchShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/PowerSearch/PowerSearchShowcase.doc.mjsindex fe66b6f2dd..eb8fb376ca 100644--- a/packages/cli/templates/blocks/components/PowerSearch/PowerSearchShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/PowerSearch/PowerSearchShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'PowerSearch',diff --git a/packages/cli/templates/blocks/components/PowerSearch/PowerSearchShowcase.tsx b/packages/cli/assets/templates/blocks/components/PowerSearch/PowerSearchShowcase.tsxsimilarity index 93%rename from packages/cli/templates/blocks/components/PowerSearch/PowerSearchShowcase.tsxrename to packages/cli/assets/templates/blocks/components/PowerSearch/PowerSearchShowcase.tsxindex 49dbacfd1d..4ed8c59d94 100644--- a/packages/cli/templates/blocks/components/PowerSearch/PowerSearchShowcase.tsx+++ b/packages/cli/assets/templates/blocks/components/PowerSearch/PowerSearchShowcase.tsx@@ -4,7 +4,10 @@import {useState} from 'react';import {PowerSearch} from '@astryxdesign/core/PowerSearch';-import type {PowerSearchConfig, PowerSearchFilter} from '@astryxdesign/core/PowerSearch';+import type {+ PowerSearchConfig,+ PowerSearchFilter,+} from '@astryxdesign/core/PowerSearch';const config: PowerSearchConfig = {name: 'BasicSearch',diff --git a/packages/cli/templates/blocks/components/ProgressBar/ProgressBarCustomFormat.doc.mjs b/packages/cli/assets/templates/blocks/components/ProgressBar/ProgressBarCustomFormat.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/ProgressBar/ProgressBarCustomFormat.doc.mjsrename to packages/cli/assets/templates/blocks/components/ProgressBar/ProgressBarCustomFormat.doc.mjsindex 4c1a470dfe..00ab0d5c06 100644--- a/packages/cli/templates/blocks/components/ProgressBar/ProgressBarCustomFormat.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ProgressBar/ProgressBarCustomFormat.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ProgressBar',diff --git a/packages/cli/templates/blocks/components/ProgressBar/ProgressBarCustomFormat.tsx b/packages/cli/assets/templates/blocks/components/ProgressBar/ProgressBarCustomFormat.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ProgressBar/ProgressBarCustomFormat.tsxrename to packages/cli/assets/templates/blocks/components/ProgressBar/ProgressBarCustomFormat.tsxdiff --git a/packages/cli/templates/blocks/components/ProgressBar/ProgressBarIndeterminate.doc.mjs b/packages/cli/assets/templates/blocks/components/ProgressBar/ProgressBarIndeterminate.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/ProgressBar/ProgressBarIndeterminate.doc.mjsrename to packages/cli/assets/templates/blocks/components/ProgressBar/ProgressBarIndeterminate.doc.mjsindex 390167dd21..88707874fc 100644--- a/packages/cli/templates/blocks/components/ProgressBar/ProgressBarIndeterminate.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ProgressBar/ProgressBarIndeterminate.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ProgressBar',diff --git a/packages/cli/templates/blocks/components/ProgressBar/ProgressBarIndeterminate.tsx b/packages/cli/assets/templates/blocks/components/ProgressBar/ProgressBarIndeterminate.tsxsimilarity index 66%rename from packages/cli/templates/blocks/components/ProgressBar/ProgressBarIndeterminate.tsxrename to packages/cli/assets/templates/blocks/components/ProgressBar/ProgressBarIndeterminate.tsxindex a85fcd14f1..7c26ff4a28 100644--- a/packages/cli/templates/blocks/components/ProgressBar/ProgressBarIndeterminate.tsx+++ b/packages/cli/assets/templates/blocks/components/ProgressBar/ProgressBarIndeterminate.tsx@@ -5,5 +5,7 @@import {ProgressBar} from '@astryxdesign/core/ProgressBar';export default function ProgressBarIndeterminate() {- return (<ProgressBar isIndeterminate label="Loading..." style={{width: 300}} />);+ return (+ <ProgressBar isIndeterminate label="Loading..." style={{width: 300}} />+ );}diff --git a/packages/cli/templates/blocks/components/ProgressBar/ProgressBarSemanticVariants.doc.mjs b/packages/cli/assets/templates/blocks/components/ProgressBar/ProgressBarSemanticVariants.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/ProgressBar/ProgressBarSemanticVariants.doc.mjsrename to packages/cli/assets/templates/blocks/components/ProgressBar/ProgressBarSemanticVariants.doc.mjsindex 4f7055550b..cad363daa4 100644--- a/packages/cli/templates/blocks/components/ProgressBar/ProgressBarSemanticVariants.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ProgressBar/ProgressBarSemanticVariants.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ProgressBar',diff --git a/packages/cli/assets/templates/blocks/components/ProgressBar/ProgressBarSemanticVariants.tsx b/packages/cli/assets/templates/blocks/components/ProgressBar/ProgressBarSemanticVariants.tsxnew file mode 100644index 0000000000..b156967712--- /dev/null+++ b/packages/cli/assets/templates/blocks/components/ProgressBar/ProgressBarSemanticVariants.tsx@@ -0,0 +1,23 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++'use client';++import {ProgressBar} from '@astryxdesign/core/ProgressBar';+import {VStack} from '@astryxdesign/core/Layout';++export default function ProgressBarSemanticVariants() {+ return (+ <VStack gap={4} width="100%" style={{maxWidth: 300}}>+ <ProgressBar value={60} label="Accent" variant="accent" hasValueLabel />+ <ProgressBar+ value={80}+ label="Positive"+ variant="success"+ hasValueLabel+ />+ <ProgressBar value={50} label="Warning" variant="warning" hasValueLabel />+ <ProgressBar value={92} label="Negative" variant="error" hasValueLabel />+ <ProgressBar value={35} label="Neutral" variant="neutral" hasValueLabel />+ </VStack>+ );+}diff --git a/packages/cli/templates/blocks/components/ProgressBar/ProgressBarShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/ProgressBar/ProgressBarShowcase.doc.mjssimilarity index 81%rename from packages/cli/templates/blocks/components/ProgressBar/ProgressBarShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/ProgressBar/ProgressBarShowcase.doc.mjsindex ccf069c2eb..8396cc0834 100644--- a/packages/cli/templates/blocks/components/ProgressBar/ProgressBarShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ProgressBar/ProgressBarShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ProgressBar',diff --git a/packages/cli/templates/blocks/components/ProgressBar/ProgressBarShowcase.tsx b/packages/cli/assets/templates/blocks/components/ProgressBar/ProgressBarShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ProgressBar/ProgressBarShowcase.tsxrename to packages/cli/assets/templates/blocks/components/ProgressBar/ProgressBarShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/ProgressBar/ProgressBarWithValueLabel.doc.mjs b/packages/cli/assets/templates/blocks/components/ProgressBar/ProgressBarWithValueLabel.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/ProgressBar/ProgressBarWithValueLabel.doc.mjsrename to packages/cli/assets/templates/blocks/components/ProgressBar/ProgressBarWithValueLabel.doc.mjsindex cb29b86745..6e35010f62 100644--- a/packages/cli/templates/blocks/components/ProgressBar/ProgressBarWithValueLabel.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ProgressBar/ProgressBarWithValueLabel.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ProgressBar',diff --git a/packages/cli/templates/blocks/components/ProgressBar/ProgressBarWithValueLabel.tsx b/packages/cli/assets/templates/blocks/components/ProgressBar/ProgressBarWithValueLabel.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ProgressBar/ProgressBarWithValueLabel.tsxrename to packages/cli/assets/templates/blocks/components/ProgressBar/ProgressBarWithValueLabel.tsxdiff --git a/packages/cli/templates/blocks/components/RadioList/RadioListHorizontalLayout.doc.mjs b/packages/cli/assets/templates/blocks/components/RadioList/RadioListHorizontalLayout.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/RadioList/RadioListHorizontalLayout.doc.mjsrename to packages/cli/assets/templates/blocks/components/RadioList/RadioListHorizontalLayout.doc.mjsindex c0ea948178..43286e5213 100644--- a/packages/cli/templates/blocks/components/RadioList/RadioListHorizontalLayout.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/RadioList/RadioListHorizontalLayout.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'RadioList',diff --git a/packages/cli/templates/blocks/components/RadioList/RadioListHorizontalLayout.tsx b/packages/cli/assets/templates/blocks/components/RadioList/RadioListHorizontalLayout.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/RadioList/RadioListHorizontalLayout.tsxrename to packages/cli/assets/templates/blocks/components/RadioList/RadioListHorizontalLayout.tsxdiff --git a/packages/cli/templates/blocks/components/RadioList/RadioListPricingTier.doc.mjs b/packages/cli/assets/templates/blocks/components/RadioList/RadioListPricingTier.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/RadioList/RadioListPricingTier.doc.mjsrename to packages/cli/assets/templates/blocks/components/RadioList/RadioListPricingTier.doc.mjsindex e97e7d36b3..cb380ff92d 100644--- a/packages/cli/templates/blocks/components/RadioList/RadioListPricingTier.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/RadioList/RadioListPricingTier.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'RadioList',diff --git a/packages/cli/templates/blocks/components/RadioList/RadioListPricingTier.tsx b/packages/cli/assets/templates/blocks/components/RadioList/RadioListPricingTier.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/RadioList/RadioListPricingTier.tsxrename to packages/cli/assets/templates/blocks/components/RadioList/RadioListPricingTier.tsxdiff --git a/packages/cli/templates/blocks/components/RadioList/RadioListShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/RadioList/RadioListShowcase.doc.mjssimilarity index 78%rename from packages/cli/templates/blocks/components/RadioList/RadioListShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/RadioList/RadioListShowcase.doc.mjsindex af81e26615..e759bbb9e2 100644--- a/packages/cli/templates/blocks/components/RadioList/RadioListShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/RadioList/RadioListShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'RadioList',diff --git a/packages/cli/templates/blocks/components/RadioList/RadioListShowcase.tsx b/packages/cli/assets/templates/blocks/components/RadioList/RadioListShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/RadioList/RadioListShowcase.tsxrename to packages/cli/assets/templates/blocks/components/RadioList/RadioListShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/RadioList/RadioListWithDescriptions.doc.mjs b/packages/cli/assets/templates/blocks/components/RadioList/RadioListWithDescriptions.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/RadioList/RadioListWithDescriptions.doc.mjsrename to packages/cli/assets/templates/blocks/components/RadioList/RadioListWithDescriptions.doc.mjsindex beff6e6461..ef51febedd 100644--- a/packages/cli/templates/blocks/components/RadioList/RadioListWithDescriptions.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/RadioList/RadioListWithDescriptions.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'RadioList',diff --git a/packages/cli/templates/blocks/components/RadioList/RadioListWithDescriptions.tsx b/packages/cli/assets/templates/blocks/components/RadioList/RadioListWithDescriptions.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/RadioList/RadioListWithDescriptions.tsxrename to packages/cli/assets/templates/blocks/components/RadioList/RadioListWithDescriptions.tsxdiff --git a/packages/cli/templates/blocks/components/RadioList/RadioListWithValidation.doc.mjs b/packages/cli/assets/templates/blocks/components/RadioList/RadioListWithValidation.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/RadioList/RadioListWithValidation.doc.mjsrename to packages/cli/assets/templates/blocks/components/RadioList/RadioListWithValidation.doc.mjsindex 458535bf72..b1ce842992 100644--- a/packages/cli/templates/blocks/components/RadioList/RadioListWithValidation.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/RadioList/RadioListWithValidation.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'RadioList',diff --git a/packages/cli/templates/blocks/components/RadioList/RadioListWithValidation.tsx b/packages/cli/assets/templates/blocks/components/RadioList/RadioListWithValidation.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/RadioList/RadioListWithValidation.tsxrename to packages/cli/assets/templates/blocks/components/RadioList/RadioListWithValidation.tsxdiff --git a/packages/cli/templates/blocks/components/RadioListItem/RadioListItemBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/RadioListItem/RadioListItemBasic.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/RadioListItem/RadioListItemBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/RadioListItem/RadioListItemBasic.doc.mjsindex af2a169de1..ed8c865b7d 100644--- a/packages/cli/templates/blocks/components/RadioListItem/RadioListItemBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/RadioListItem/RadioListItemBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'RadioListItem',diff --git a/packages/cli/templates/blocks/components/RadioListItem/RadioListItemBasic.tsx b/packages/cli/assets/templates/blocks/components/RadioListItem/RadioListItemBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/RadioListItem/RadioListItemBasic.tsxrename to packages/cli/assets/templates/blocks/components/RadioListItem/RadioListItemBasic.tsxdiff --git a/packages/cli/templates/blocks/components/RadioListItem/RadioListItemShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/RadioListItem/RadioListItemShowcase.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/RadioListItem/RadioListItemShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/RadioListItem/RadioListItemShowcase.doc.mjsindex 27da58f3b2..24465e111c 100644--- a/packages/cli/templates/blocks/components/RadioListItem/RadioListItemShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/RadioListItem/RadioListItemShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'RadioListItem',diff --git a/packages/cli/templates/blocks/components/RadioListItem/RadioListItemShowcase.tsx b/packages/cli/assets/templates/blocks/components/RadioListItem/RadioListItemShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/RadioListItem/RadioListItemShowcase.tsxrename to packages/cli/assets/templates/blocks/components/RadioListItem/RadioListItemShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Resizable/ResizableShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Resizable/ResizableShowcase.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Resizable/ResizableShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Resizable/ResizableShowcase.doc.mjsindex 1a995312b6..f973c981b6 100644--- a/packages/cli/templates/blocks/components/Resizable/ResizableShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Resizable/ResizableShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Resizable',diff --git a/packages/cli/templates/blocks/components/Resizable/ResizableShowcase.tsx b/packages/cli/assets/templates/blocks/components/Resizable/ResizableShowcase.tsxsimilarity index 91%rename from packages/cli/templates/blocks/components/Resizable/ResizableShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Resizable/ResizableShowcase.tsxindex d362e920b3..63bd0e5220 100644--- a/packages/cli/templates/blocks/components/Resizable/ResizableShowcase.tsx+++ b/packages/cli/assets/templates/blocks/components/Resizable/ResizableShowcase.tsx@@ -28,9 +28,7 @@ export default function ResizableShowcase() {<LayoutPanel width={sidebar.size} hasDivider={false}><VStack gap={2}><Heading level={4}>Sidebar</Heading>- <Text color="secondary">- {Math.round(sidebar.size)}px wide- </Text>+ <Text color="secondary">{Math.round(sidebar.size)}px wide</Text></VStack></LayoutPanel><ResizeHandlediff --git a/packages/cli/templates/blocks/components/Resizable/ResizableSidebar.doc.mjs b/packages/cli/assets/templates/blocks/components/Resizable/ResizableSidebar.doc.mjssimilarity index 90%rename from packages/cli/templates/blocks/components/Resizable/ResizableSidebar.doc.mjsrename to packages/cli/assets/templates/blocks/components/Resizable/ResizableSidebar.doc.mjsindex 1c87f5401b..d7c43cd7a7 100644--- a/packages/cli/templates/blocks/components/Resizable/ResizableSidebar.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Resizable/ResizableSidebar.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ResizeHandle',diff --git a/packages/cli/templates/blocks/components/Resizable/ResizableSidebar.tsx b/packages/cli/assets/templates/blocks/components/Resizable/ResizableSidebar.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Resizable/ResizableSidebar.tsxrename to packages/cli/assets/templates/blocks/components/Resizable/ResizableSidebar.tsxdiff --git a/packages/cli/templates/blocks/components/Section/SectionVariants.doc.mjs b/packages/cli/assets/templates/blocks/components/Section/SectionVariants.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Section/SectionVariants.doc.mjsrename to packages/cli/assets/templates/blocks/components/Section/SectionVariants.doc.mjsindex b1af745cce..90f12bf533 100644--- a/packages/cli/templates/blocks/components/Section/SectionVariants.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Section/SectionVariants.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Section',diff --git a/packages/cli/templates/blocks/components/Section/SectionVariants.tsx b/packages/cli/assets/templates/blocks/components/Section/SectionVariants.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Section/SectionVariants.tsxrename to packages/cli/assets/templates/blocks/components/Section/SectionVariants.tsxdiff --git a/packages/cli/templates/blocks/components/Section/SectionWashHighlight.doc.mjs b/packages/cli/assets/templates/blocks/components/Section/SectionWashHighlight.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/Section/SectionWashHighlight.doc.mjsrename to packages/cli/assets/templates/blocks/components/Section/SectionWashHighlight.doc.mjsindex dcef385570..c7eb3a5191 100644--- a/packages/cli/templates/blocks/components/Section/SectionWashHighlight.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Section/SectionWashHighlight.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Section',diff --git a/packages/cli/templates/blocks/components/Section/SectionWashHighlight.tsx b/packages/cli/assets/templates/blocks/components/Section/SectionWashHighlight.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Section/SectionWashHighlight.tsxrename to packages/cli/assets/templates/blocks/components/Section/SectionWashHighlight.tsxdiff --git a/packages/cli/templates/blocks/components/Section/SectionWithDividers.doc.mjs b/packages/cli/assets/templates/blocks/components/Section/SectionWithDividers.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/Section/SectionWithDividers.doc.mjsrename to packages/cli/assets/templates/blocks/components/Section/SectionWithDividers.doc.mjsindex 0ba1a67646..a28a8c1790 100644--- a/packages/cli/templates/blocks/components/Section/SectionWithDividers.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Section/SectionWithDividers.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Section',diff --git a/packages/cli/templates/blocks/components/Section/SectionWithDividers.tsx b/packages/cli/assets/templates/blocks/components/Section/SectionWithDividers.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Section/SectionWithDividers.tsxrename to packages/cli/assets/templates/blocks/components/Section/SectionWithDividers.tsxdiff --git a/packages/cli/templates/blocks/components/SegmentedControl/SegmentedControlDisabledItem.doc.mjs b/packages/cli/assets/templates/blocks/components/SegmentedControl/SegmentedControlDisabledItem.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/SegmentedControl/SegmentedControlDisabledItem.doc.mjsrename to packages/cli/assets/templates/blocks/components/SegmentedControl/SegmentedControlDisabledItem.doc.mjsindex d8946d3e03..39bda18215 100644--- a/packages/cli/templates/blocks/components/SegmentedControl/SegmentedControlDisabledItem.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/SegmentedControl/SegmentedControlDisabledItem.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'SegmentedControl',diff --git a/packages/cli/templates/blocks/components/SegmentedControl/SegmentedControlDisabledItem.tsx b/packages/cli/assets/templates/blocks/components/SegmentedControl/SegmentedControlDisabledItem.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/SegmentedControl/SegmentedControlDisabledItem.tsxrename to packages/cli/assets/templates/blocks/components/SegmentedControl/SegmentedControlDisabledItem.tsxdiff --git a/packages/cli/templates/blocks/components/SegmentedControl/SegmentedControlFillLayout.doc.mjs b/packages/cli/assets/templates/blocks/components/SegmentedControl/SegmentedControlFillLayout.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/SegmentedControl/SegmentedControlFillLayout.doc.mjsrename to packages/cli/assets/templates/blocks/components/SegmentedControl/SegmentedControlFillLayout.doc.mjsindex 339c50604a..259567d8e2 100644--- a/packages/cli/templates/blocks/components/SegmentedControl/SegmentedControlFillLayout.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/SegmentedControl/SegmentedControlFillLayout.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'SegmentedControl',diff --git a/packages/cli/templates/blocks/components/SegmentedControl/SegmentedControlFillLayout.tsx b/packages/cli/assets/templates/blocks/components/SegmentedControl/SegmentedControlFillLayout.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/SegmentedControl/SegmentedControlFillLayout.tsxrename to packages/cli/assets/templates/blocks/components/SegmentedControl/SegmentedControlFillLayout.tsxdiff --git a/packages/cli/templates/blocks/components/SegmentedControl/SegmentedControlIconOnly.doc.mjs b/packages/cli/assets/templates/blocks/components/SegmentedControl/SegmentedControlIconOnly.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/SegmentedControl/SegmentedControlIconOnly.doc.mjsrename to packages/cli/assets/templates/blocks/components/SegmentedControl/SegmentedControlIconOnly.doc.mjsindex b3bc1976a2..9b7fca6f79 100644--- a/packages/cli/templates/blocks/components/SegmentedControl/SegmentedControlIconOnly.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/SegmentedControl/SegmentedControlIconOnly.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'SegmentedControl',diff --git a/packages/cli/templates/blocks/components/SegmentedControl/SegmentedControlIconOnly.tsx b/packages/cli/assets/templates/blocks/components/SegmentedControl/SegmentedControlIconOnly.tsxsimilarity index 78%rename from packages/cli/templates/blocks/components/SegmentedControl/SegmentedControlIconOnly.tsxrename to packages/cli/assets/templates/blocks/components/SegmentedControl/SegmentedControlIconOnly.tsxindex 6b3857b8b5..5521382fad 100644--- a/packages/cli/templates/blocks/components/SegmentedControl/SegmentedControlIconOnly.tsx+++ b/packages/cli/assets/templates/blocks/components/SegmentedControl/SegmentedControlIconOnly.tsx@@ -9,7 +9,15 @@ import {} from '@astryxdesign/core/SegmentedControl';const GridIcon = () => (- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={1.5} strokeLinecap="round" strokeLinejoin="round">+ <svg+ width="16"+ height="16"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth={1.5}+ strokeLinecap="round"+ strokeLinejoin="round"><rect x="3" y="3" width="7" height="7" rx="1" /><rect x="14" y="3" width="7" height="7" rx="1" /><rect x="3" y="14" width="7" height="7" rx="1" />@@ -18,7 +26,15 @@ const GridIcon = () => ();const ListIcon = () => (- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={1.5} strokeLinecap="round" strokeLinejoin="round">+ <svg+ width="16"+ height="16"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth={1.5}+ strokeLinecap="round"+ strokeLinejoin="round"><line x1="9" y1="6" x2="20" y2="6" /><line x1="9" y1="12" x2="20" y2="12" /><line x1="9" y1="18" x2="20" y2="18" />diff --git a/packages/cli/templates/blocks/components/SegmentedControl/SegmentedControlShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/SegmentedControl/SegmentedControlShowcase.doc.mjssimilarity index 80%rename from packages/cli/templates/blocks/components/SegmentedControl/SegmentedControlShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/SegmentedControl/SegmentedControlShowcase.doc.mjsindex a23af7d04a..7320ebbabd 100644--- a/packages/cli/templates/blocks/components/SegmentedControl/SegmentedControlShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/SegmentedControl/SegmentedControlShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'SegmentedControl',diff --git a/packages/cli/templates/blocks/components/SegmentedControl/SegmentedControlShowcase.tsx b/packages/cli/assets/templates/blocks/components/SegmentedControl/SegmentedControlShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/SegmentedControl/SegmentedControlShowcase.tsxrename to packages/cli/assets/templates/blocks/components/SegmentedControl/SegmentedControlShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/SegmentedControl/SegmentedControlWithIcons.doc.mjs b/packages/cli/assets/templates/blocks/components/SegmentedControl/SegmentedControlWithIcons.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/SegmentedControl/SegmentedControlWithIcons.doc.mjsrename to packages/cli/assets/templates/blocks/components/SegmentedControl/SegmentedControlWithIcons.doc.mjsindex 98c31ef13e..2d657c9e60 100644--- a/packages/cli/templates/blocks/components/SegmentedControl/SegmentedControlWithIcons.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/SegmentedControl/SegmentedControlWithIcons.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'SegmentedControl',diff --git a/packages/cli/templates/blocks/components/SegmentedControl/SegmentedControlWithIcons.tsx b/packages/cli/assets/templates/blocks/components/SegmentedControl/SegmentedControlWithIcons.tsxsimilarity index 69%rename from packages/cli/templates/blocks/components/SegmentedControl/SegmentedControlWithIcons.tsxrename to packages/cli/assets/templates/blocks/components/SegmentedControl/SegmentedControlWithIcons.tsxindex 68bfd5748b..2fcc68e2af 100644--- a/packages/cli/templates/blocks/components/SegmentedControl/SegmentedControlWithIcons.tsx+++ b/packages/cli/assets/templates/blocks/components/SegmentedControl/SegmentedControlWithIcons.tsx@@ -9,7 +9,15 @@ import {} from '@astryxdesign/core/SegmentedControl';const GridIcon = () => (- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={1.5} strokeLinecap="round" strokeLinejoin="round">+ <svg+ width="16"+ height="16"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth={1.5}+ strokeLinecap="round"+ strokeLinejoin="round"><rect x="3" y="3" width="7" height="7" rx="1" /><rect x="14" y="3" width="7" height="7" rx="1" /><rect x="3" y="14" width="7" height="7" rx="1" />@@ -18,7 +26,15 @@ const GridIcon = () => ();const ListIcon = () => (- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={1.5} strokeLinecap="round" strokeLinejoin="round">+ <svg+ width="16"+ height="16"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth={1.5}+ strokeLinecap="round"+ strokeLinejoin="round"><line x1="9" y1="6" x2="20" y2="6" /><line x1="9" y1="12" x2="20" y2="12" /><line x1="9" y1="18" x2="20" y2="18" />@@ -29,7 +45,15 @@ const ListIcon = () => ();const TableIcon = () => (- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth={1.5} strokeLinecap="round" strokeLinejoin="round">+ <svg+ width="16"+ height="16"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth={1.5}+ strokeLinecap="round"+ strokeLinejoin="round"><rect x="3" y="3" width="18" height="18" rx="2" /><line x1="3" y1="9" x2="21" y2="9" /><line x1="3" y1="15" x2="21" y2="15" />@@ -43,11 +67,7 @@ export default function SegmentedControlWithIcons() {<SegmentedControl value={value} onChange={setValue} label="View mode"><SegmentedControlItem value="grid" label="Grid" icon={<GridIcon />} /><SegmentedControlItem value="list" label="List" icon={<ListIcon />} />- <SegmentedControlItem- value="table"- label="Table"- icon={<TableIcon />}- />+ <SegmentedControlItem value="table" label="Table" icon={<TableIcon />} /></SegmentedControl>);}diff --git a/packages/cli/templates/blocks/components/SegmentedControlItem/SegmentedControlItemBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/SegmentedControlItem/SegmentedControlItemBasic.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/SegmentedControlItem/SegmentedControlItemBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/SegmentedControlItem/SegmentedControlItemBasic.doc.mjsindex 2082cfeb3e..53d443ae91 100644--- a/packages/cli/templates/blocks/components/SegmentedControlItem/SegmentedControlItemBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/SegmentedControlItem/SegmentedControlItemBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'SegmentedControlItem',diff --git a/packages/cli/templates/blocks/components/SegmentedControlItem/SegmentedControlItemBasic.tsx b/packages/cli/assets/templates/blocks/components/SegmentedControlItem/SegmentedControlItemBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/SegmentedControlItem/SegmentedControlItemBasic.tsxrename to packages/cli/assets/templates/blocks/components/SegmentedControlItem/SegmentedControlItemBasic.tsxdiff --git a/packages/cli/templates/blocks/components/SegmentedControlItem/SegmentedControlItemShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/SegmentedControlItem/SegmentedControlItemShowcase.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/SegmentedControlItem/SegmentedControlItemShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/SegmentedControlItem/SegmentedControlItemShowcase.doc.mjsindex 0c25ce920d..955ceb98bc 100644--- a/packages/cli/templates/blocks/components/SegmentedControlItem/SegmentedControlItemShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/SegmentedControlItem/SegmentedControlItemShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'SegmentedControlItem',diff --git a/packages/cli/templates/blocks/components/SegmentedControlItem/SegmentedControlItemShowcase.tsx b/packages/cli/assets/templates/blocks/components/SegmentedControlItem/SegmentedControlItemShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/SegmentedControlItem/SegmentedControlItemShowcase.tsxrename to packages/cli/assets/templates/blocks/components/SegmentedControlItem/SegmentedControlItemShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Selector/SelectorClearable.doc.mjs b/packages/cli/assets/templates/blocks/components/Selector/SelectorClearable.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Selector/SelectorClearable.doc.mjsrename to packages/cli/assets/templates/blocks/components/Selector/SelectorClearable.doc.mjsindex 5504e1a7a2..bbc06d0c1b 100644--- a/packages/cli/templates/blocks/components/Selector/SelectorClearable.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Selector/SelectorClearable.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Selector',diff --git a/packages/cli/templates/blocks/components/Selector/SelectorClearable.tsx b/packages/cli/assets/templates/blocks/components/Selector/SelectorClearable.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Selector/SelectorClearable.tsxrename to packages/cli/assets/templates/blocks/components/Selector/SelectorClearable.tsxdiff --git a/packages/cli/templates/blocks/components/Selector/SelectorShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Selector/SelectorShowcase.doc.mjssimilarity index 78%rename from packages/cli/templates/blocks/components/Selector/SelectorShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Selector/SelectorShowcase.doc.mjsindex 0471f8a829..3c465cc206 100644--- a/packages/cli/templates/blocks/components/Selector/SelectorShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Selector/SelectorShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Selector',diff --git a/packages/cli/templates/blocks/components/Selector/SelectorShowcase.tsx b/packages/cli/assets/templates/blocks/components/Selector/SelectorShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Selector/SelectorShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Selector/SelectorShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Selector/SelectorWithSections.doc.mjs b/packages/cli/assets/templates/blocks/components/Selector/SelectorWithSections.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Selector/SelectorWithSections.doc.mjsrename to packages/cli/assets/templates/blocks/components/Selector/SelectorWithSections.doc.mjsindex c75b9637b2..b86b0f80a1 100644--- a/packages/cli/templates/blocks/components/Selector/SelectorWithSections.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Selector/SelectorWithSections.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Selector',diff --git a/packages/cli/templates/blocks/components/Selector/SelectorWithSections.tsx b/packages/cli/assets/templates/blocks/components/Selector/SelectorWithSections.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Selector/SelectorWithSections.tsxrename to packages/cli/assets/templates/blocks/components/Selector/SelectorWithSections.tsxdiff --git a/packages/cli/templates/blocks/components/Selector/SelectorWithStatus.doc.mjs b/packages/cli/assets/templates/blocks/components/Selector/SelectorWithStatus.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/Selector/SelectorWithStatus.doc.mjsrename to packages/cli/assets/templates/blocks/components/Selector/SelectorWithStatus.doc.mjsindex 59ae726e62..2d6fbaab94 100644--- a/packages/cli/templates/blocks/components/Selector/SelectorWithStatus.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Selector/SelectorWithStatus.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Selector',diff --git a/packages/cli/templates/blocks/components/Selector/SelectorWithStatus.tsx b/packages/cli/assets/templates/blocks/components/Selector/SelectorWithStatus.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Selector/SelectorWithStatus.tsxrename to packages/cli/assets/templates/blocks/components/Selector/SelectorWithStatus.tsxdiff --git a/packages/cli/templates/blocks/components/SelectorOption/SelectorOptionBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/SelectorOption/SelectorOptionBasic.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/SelectorOption/SelectorOptionBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/SelectorOption/SelectorOptionBasic.doc.mjsindex 2b1611646a..4260a5a87f 100644--- a/packages/cli/templates/blocks/components/SelectorOption/SelectorOptionBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/SelectorOption/SelectorOptionBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'SelectorOption',diff --git a/packages/cli/templates/blocks/components/SelectorOption/SelectorOptionBasic.tsx b/packages/cli/assets/templates/blocks/components/SelectorOption/SelectorOptionBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/SelectorOption/SelectorOptionBasic.tsxrename to packages/cli/assets/templates/blocks/components/SelectorOption/SelectorOptionBasic.tsxdiff --git a/packages/cli/templates/blocks/components/SelectorOption/SelectorOptionShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/SelectorOption/SelectorOptionShowcase.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/SelectorOption/SelectorOptionShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/SelectorOption/SelectorOptionShowcase.doc.mjsindex f6e61aee4b..4e462cf9f6 100644--- a/packages/cli/templates/blocks/components/SelectorOption/SelectorOptionShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/SelectorOption/SelectorOptionShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'SelectorOption',diff --git a/packages/cli/templates/blocks/components/SelectorOption/SelectorOptionShowcase.tsx b/packages/cli/assets/templates/blocks/components/SelectorOption/SelectorOptionShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/SelectorOption/SelectorOptionShowcase.tsxrename to packages/cli/assets/templates/blocks/components/SelectorOption/SelectorOptionShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/SideNav/SideNavEndContent.doc.mjs b/packages/cli/assets/templates/blocks/components/SideNav/SideNavEndContent.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/SideNav/SideNavEndContent.doc.mjsrename to packages/cli/assets/templates/blocks/components/SideNav/SideNavEndContent.doc.mjsindex 06e2c53fa9..1ee63157cd 100644--- a/packages/cli/templates/blocks/components/SideNav/SideNavEndContent.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/SideNav/SideNavEndContent.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'SideNav',diff --git a/packages/cli/assets/templates/blocks/components/SideNav/SideNavEndContent.tsx b/packages/cli/assets/templates/blocks/components/SideNav/SideNavEndContent.tsxnew file mode 100644index 0000000000..21dc96b348--- /dev/null+++ b/packages/cli/assets/templates/blocks/components/SideNav/SideNavEndContent.tsx@@ -0,0 +1,128 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++'use client';++import type {ComponentProps} from 'react';+import {+ SideNav,+ SideNavHeading,+ SideNavItem,+ SideNavSection,+} from '@astryxdesign/core/SideNav';+import {Badge} from '@astryxdesign/core/Badge';+import {Text} from '@astryxdesign/core/Text';+import {MoreMenu} from '@astryxdesign/core/MoreMenu';++function HomeIcon(props: ComponentProps<'svg'>) {+ return (+ <svg+ fill="none"+ viewBox="0 0 24 24"+ strokeWidth={1.5}+ stroke="currentColor"+ {...props}>+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"+ />+ </svg>+ );+}++function FolderIcon(props: ComponentProps<'svg'>) {+ return (+ <svg+ fill="none"+ viewBox="0 0 24 24"+ strokeWidth={1.5}+ stroke="currentColor"+ {...props}>+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"+ />+ </svg>+ );+}++function ChartBarIcon(props: ComponentProps<'svg'>) {+ return (+ <svg+ fill="none"+ viewBox="0 0 24 24"+ strokeWidth={1.5}+ stroke="currentColor"+ {...props}>+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 0 1 3 19.875v-6.75ZM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V8.625ZM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V4.125Z"+ />+ </svg>+ );+}++function UserGroupIcon(props: ComponentProps<'svg'>) {+ return (+ <svg+ fill="none"+ viewBox="0 0 24 24"+ strokeWidth={1.5}+ stroke="currentColor"+ {...props}>+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="M18 18.72a9.094 9.094 0 0 0 3.741-.479 3 3 0 0 0-4.682-2.72m.94 3.198.001.031c0 .225-.012.447-.037.666A11.944 11.944 0 0 1 12 21c-2.17 0-4.207-.576-5.963-1.584A6.062 6.062 0 0 1 6 18.719m12 0a5.971 5.971 0 0 0-.941-3.197m0 0A5.995 5.995 0 0 0 12 12.75a5.995 5.995 0 0 0-5.058 2.772m0 0a3 3 0 0 0-4.681 2.72 8.986 8.986 0 0 0 3.74.477m.94-3.197a5.971 5.971 0 0 0-.94 3.197M15 6.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm6 3a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Zm-13.5 0a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Z"+ />+ </svg>+ );+}++export default function SideNavEndContent() {+ return (+ <SideNav header={<SideNavHeading heading="My App" headingHref="/" />}>+ <SideNavSection title="Navigation" isHeaderHidden>+ <SideNavItem+ label="Dashboard"+ icon={HomeIcon}+ isSelected+ href="/dashboard"+ endContent={+ <MoreMenu+ size="sm"+ items={[+ {label: 'Pin to top', onClick: () => {}},+ {label: 'Rename', onClick: () => {}},+ ]}+ />+ }+ />+ <SideNavItem+ label="Projects"+ icon={FolderIcon}+ href="/projects"+ endContent={<Badge label={12} />}+ />+ <SideNavItem+ label="Analytics"+ icon={ChartBarIcon}+ href="/analytics"+ endContent={<Badge label="New" />}+ />+ <SideNavItem+ label="Team"+ icon={UserGroupIcon}+ href="/team"+ endContent={+ <Text type="supporting" color="secondary">+ 8 members+ </Text>+ }+ />+ </SideNavSection>+ </SideNav>+ );+}diff --git a/packages/cli/templates/blocks/components/SideNav/SideNavNestedItems.doc.mjs b/packages/cli/assets/templates/blocks/components/SideNav/SideNavNestedItems.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/SideNav/SideNavNestedItems.doc.mjsrename to packages/cli/assets/templates/blocks/components/SideNav/SideNavNestedItems.doc.mjsindex 7a0a9cd749..1fc6a0b37a 100644--- a/packages/cli/templates/blocks/components/SideNav/SideNavNestedItems.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/SideNav/SideNavNestedItems.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'SideNav',diff --git a/packages/cli/assets/templates/blocks/components/SideNav/SideNavNestedItems.tsx b/packages/cli/assets/templates/blocks/components/SideNav/SideNavNestedItems.tsxnew file mode 100644index 0000000000..276e3cbc59--- /dev/null+++ b/packages/cli/assets/templates/blocks/components/SideNav/SideNavNestedItems.tsx@@ -0,0 +1,65 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++'use client';++import type {ComponentProps} from 'react';+import {+ SideNav,+ SideNavHeading,+ SideNavItem,+ SideNavSection,+} from '@astryxdesign/core/SideNav';++function HomeIcon(props: ComponentProps<'svg'>) {+ return (+ <svg+ fill="none"+ viewBox="0 0 24 24"+ strokeWidth={1.5}+ stroke="currentColor"+ {...props}>+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"+ />+ </svg>+ );+}++function CogIcon(props: ComponentProps<'svg'>) {+ return (+ <svg+ fill="none"+ viewBox="0 0 24 24"+ strokeWidth={1.5}+ stroke="currentColor"+ {...props}>+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"+ />+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"+ />+ </svg>+ );+}++export default function SideNavNestedItems() {+ return (+ <SideNav header={<SideNavHeading heading="My App" />}>+ <SideNavSection title="Main">+ <SideNavItem label="Dashboard" icon={HomeIcon} isSelected />+ <SideNavItem label="Settings" icon={CogIcon}>+ <SideNavItem label="General" href="/settings/general" />+ <SideNavItem label="Security" href="/settings/security" />+ <SideNavItem label="Notifications" href="/settings/notifications" />+ </SideNavItem>+ </SideNavSection>+ </SideNav>+ );+}diff --git a/packages/cli/templates/blocks/components/SideNav/SideNavShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/SideNav/SideNavShowcase.doc.mjssimilarity index 77%rename from packages/cli/templates/blocks/components/SideNav/SideNavShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/SideNav/SideNavShowcase.doc.mjsindex fc5d7d0c34..92806694f0 100644--- a/packages/cli/templates/blocks/components/SideNav/SideNavShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/SideNav/SideNavShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'SideNav',diff --git a/packages/cli/assets/templates/blocks/components/SideNav/SideNavShowcase.tsx b/packages/cli/assets/templates/blocks/components/SideNav/SideNavShowcase.tsxnew file mode 100644index 0000000000..1ef7a384c0--- /dev/null+++ b/packages/cli/assets/templates/blocks/components/SideNav/SideNavShowcase.tsx@@ -0,0 +1,103 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++'use client';++import type {ComponentProps} from 'react';+import {+ SideNav,+ SideNavHeading,+ SideNavItem,+ SideNavSection,+} from '@astryxdesign/core/SideNav';++function HomeIcon(props: ComponentProps<'svg'>) {+ return (+ <svg+ fill="none"+ viewBox="0 0 24 24"+ strokeWidth={1.5}+ stroke="currentColor"+ {...props}>+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"+ />+ </svg>+ );+}++function FolderIcon(props: ComponentProps<'svg'>) {+ return (+ <svg+ fill="none"+ viewBox="0 0 24 24"+ strokeWidth={1.5}+ stroke="currentColor"+ {...props}>+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"+ />+ </svg>+ );+}++function ChartBarIcon(props: ComponentProps<'svg'>) {+ return (+ <svg+ fill="none"+ viewBox="0 0 24 24"+ strokeWidth={1.5}+ stroke="currentColor"+ {...props}>+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 0 1 3 19.875v-6.75ZM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V8.625ZM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V4.125Z"+ />+ </svg>+ );+}++function DocumentTextIcon(props: ComponentProps<'svg'>) {+ return (+ <svg+ fill="none"+ viewBox="0 0 24 24"+ strokeWidth={1.5}+ stroke="currentColor"+ {...props}>+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"+ />+ </svg>+ );+}++export default function SideNavShowcase() {+ return (+ <SideNav header={<SideNavHeading heading="My App" headingHref="/" />}>+ <SideNavSection title="Main">+ <SideNavItem+ label="Dashboard"+ icon={HomeIcon}+ isSelected+ href="/dashboard"+ />+ <SideNavItem label="Projects" icon={FolderIcon} href="/projects" />+ <SideNavItem label="Analytics" icon={ChartBarIcon} href="/analytics" />+ </SideNavSection>+ <SideNavSection title="Documents">+ <SideNavItem+ label="All Documents"+ icon={DocumentTextIcon}+ href="/documents"+ />+ </SideNavSection>+ </SideNav>+ );+}diff --git a/packages/cli/templates/blocks/components/SideNav/SideNavWithHeaderMenu.doc.mjs b/packages/cli/assets/templates/blocks/components/SideNav/SideNavWithHeaderMenu.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/SideNav/SideNavWithHeaderMenu.doc.mjsrename to packages/cli/assets/templates/blocks/components/SideNav/SideNavWithHeaderMenu.doc.mjsindex fa9b3ba1bc..0e261a29c8 100644--- a/packages/cli/templates/blocks/components/SideNav/SideNavWithHeaderMenu.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/SideNav/SideNavWithHeaderMenu.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'SideNav',diff --git a/packages/cli/assets/templates/blocks/components/SideNav/SideNavWithHeaderMenu.tsx b/packages/cli/assets/templates/blocks/components/SideNav/SideNavWithHeaderMenu.tsxnew file mode 100644index 0000000000..d90ee87cd4--- /dev/null+++ b/packages/cli/assets/templates/blocks/components/SideNav/SideNavWithHeaderMenu.tsx@@ -0,0 +1,95 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++'use client';++import type {ComponentProps} from 'react';+import {+ SideNav,+ SideNavHeading,+ SideNavItem,+ SideNavSection,+} from '@astryxdesign/core/SideNav';+import {ListItem} from '@astryxdesign/core/List';+import {NavIcon} from '@astryxdesign/core/NavIcon';++function HomeIcon(props: ComponentProps<'svg'>) {+ return (+ <svg+ fill="none"+ viewBox="0 0 24 24"+ strokeWidth={1.5}+ stroke="currentColor"+ {...props}>+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"+ />+ </svg>+ );+}++function CogIcon(props: ComponentProps<'svg'>) {+ return (+ <svg+ fill="none"+ viewBox="0 0 24 24"+ strokeWidth={1.5}+ stroke="currentColor"+ {...props}>+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"+ />+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"+ />+ </svg>+ );+}++export default function SideNavWithHeaderMenu() {+ return (+ <SideNav+ header={+ <SideNavHeading+ icon={+ <NavIcon+ icon={+ <svg+ style={{width: 16, height: 16}}+ fill="none"+ viewBox="0 0 24 24"+ strokeWidth={1.5}+ stroke="currentColor">+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="M21 7.5l-9-5.25L3 7.5m18 0l-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9"+ />+ </svg>+ }+ />+ }+ heading="Product Name"+ subheading="Business Account"+ menu={+ <>+ <ListItem label="Personal Account" href="#" />+ <ListItem label="Acme Corp" href="#" />+ <ListItem label="Add account" href="#" />+ <ListItem label="Sign out" href="#" />+ </>+ }+ />+ }>+ <SideNavSection title="Navigation">+ <SideNavItem label="Dashboard" icon={HomeIcon} isSelected />+ <SideNavItem label="Settings" icon={CogIcon} />+ </SideNavSection>+ </SideNav>+ );+}diff --git a/packages/cli/templates/blocks/components/SideNavCollapseButton/SideNavCollapseButtonBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/SideNavCollapseButton/SideNavCollapseButtonBasic.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/SideNavCollapseButton/SideNavCollapseButtonBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/SideNavCollapseButton/SideNavCollapseButtonBasic.doc.mjsindex cb6e405e56..b643d3732e 100644--- a/packages/cli/templates/blocks/components/SideNavCollapseButton/SideNavCollapseButtonBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/SideNavCollapseButton/SideNavCollapseButtonBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'SideNavCollapseButton',diff --git a/packages/cli/templates/blocks/components/SideNavCollapseButton/SideNavCollapseButtonBasic.tsx b/packages/cli/assets/templates/blocks/components/SideNavCollapseButton/SideNavCollapseButtonBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/SideNavCollapseButton/SideNavCollapseButtonBasic.tsxrename to packages/cli/assets/templates/blocks/components/SideNavCollapseButton/SideNavCollapseButtonBasic.tsxdiff --git a/packages/cli/templates/blocks/components/SideNavCollapseButton/SideNavCollapseButtonShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/SideNavCollapseButton/SideNavCollapseButtonShowcase.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/SideNavCollapseButton/SideNavCollapseButtonShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/SideNavCollapseButton/SideNavCollapseButtonShowcase.doc.mjsindex 5216ccc856..7069edd5dd 100644--- a/packages/cli/templates/blocks/components/SideNavCollapseButton/SideNavCollapseButtonShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/SideNavCollapseButton/SideNavCollapseButtonShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'SideNavCollapseButton',diff --git a/packages/cli/assets/templates/blocks/components/SideNavCollapseButton/SideNavCollapseButtonShowcase.tsx b/packages/cli/assets/templates/blocks/components/SideNavCollapseButton/SideNavCollapseButtonShowcase.tsxnew file mode 100644index 0000000000..cbe03c02ee--- /dev/null+++ b/packages/cli/assets/templates/blocks/components/SideNavCollapseButton/SideNavCollapseButtonShowcase.tsx@@ -0,0 +1,60 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++'use client';++import type {ComponentProps} from 'react';+import {+ SideNav,+ SideNavCollapseButton,+ SideNavHeading,+ SideNavItem,+ SideNavSection,+} from '@astryxdesign/core/SideNav';++function HomeIcon(props: ComponentProps<'svg'>) {+ return (+ <svg+ fill="none"+ viewBox="0 0 24 24"+ strokeWidth={1.5}+ stroke="currentColor"+ {...props}>+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"+ />+ </svg>+ );+}++function FolderIcon(props: ComponentProps<'svg'>) {+ return (+ <svg+ fill="none"+ viewBox="0 0 24 24"+ strokeWidth={1.5}+ stroke="currentColor"+ {...props}>+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"+ />+ </svg>+ );+}++export default function SideNavCollapseButtonShowcase() {+ return (+ <SideNav+ collapsible={{hasButton: false}}+ header={<SideNavHeading heading="Workspace" />}+ footerIcons={<SideNavCollapseButton />}>+ <SideNavSection title="Main">+ <SideNavItem label="Home" icon={HomeIcon} isSelected href="#" />+ <SideNavItem label="Projects" icon={FolderIcon} href="#" />+ </SideNavSection>+ </SideNav>+ );+}diff --git a/packages/cli/templates/blocks/components/SideNavHeading/SideNavHeadingBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/SideNavHeading/SideNavHeadingBasic.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/SideNavHeading/SideNavHeadingBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/SideNavHeading/SideNavHeadingBasic.doc.mjsindex d0512a3367..a9f7cdfa96 100644--- a/packages/cli/templates/blocks/components/SideNavHeading/SideNavHeadingBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/SideNavHeading/SideNavHeadingBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'SideNavHeading',diff --git a/packages/cli/templates/blocks/components/SideNavHeading/SideNavHeadingBasic.tsx b/packages/cli/assets/templates/blocks/components/SideNavHeading/SideNavHeadingBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/SideNavHeading/SideNavHeadingBasic.tsxrename to packages/cli/assets/templates/blocks/components/SideNavHeading/SideNavHeadingBasic.tsxdiff --git a/packages/cli/templates/blocks/components/SideNavHeading/SideNavHeadingShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/SideNavHeading/SideNavHeadingShowcase.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/SideNavHeading/SideNavHeadingShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/SideNavHeading/SideNavHeadingShowcase.doc.mjsindex 60ce9cf21a..2882468d26 100644--- a/packages/cli/templates/blocks/components/SideNavHeading/SideNavHeadingShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/SideNavHeading/SideNavHeadingShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'SideNavHeading',diff --git a/packages/cli/templates/blocks/components/SideNavHeading/SideNavHeadingShowcase.tsx b/packages/cli/assets/templates/blocks/components/SideNavHeading/SideNavHeadingShowcase.tsxsimilarity index 52%rename from packages/cli/templates/blocks/components/SideNavHeading/SideNavHeadingShowcase.tsxrename to packages/cli/assets/templates/blocks/components/SideNavHeading/SideNavHeadingShowcase.tsxindex 86a30325ca..d040837ce9 100644--- a/packages/cli/templates/blocks/components/SideNavHeading/SideNavHeadingShowcase.tsx+++ b/packages/cli/assets/templates/blocks/components/SideNavHeading/SideNavHeadingShowcase.tsx@@ -7,8 +7,18 @@ import {HStack} from '@astryxdesign/core/Layout';function AppIcon() {return (- <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5">- <path strokeLinecap="round" strokeLinejoin="round" d="M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25a2.25 2.25 0 0 1-2.25-2.25v-2.25Z" />+ <svg+ width="20"+ height="20"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="1.5">+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25a2.25 2.25 0 0 1-2.25-2.25v-2.25Z"+ /></svg>);}diff --git a/packages/cli/templates/blocks/components/SideNavItem/SideNavItemBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/SideNavItem/SideNavItemBasic.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/SideNavItem/SideNavItemBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/SideNavItem/SideNavItemBasic.doc.mjsindex bccdfc8883..7f4da25a6e 100644--- a/packages/cli/templates/blocks/components/SideNavItem/SideNavItemBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/SideNavItem/SideNavItemBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'SideNavItem',diff --git a/packages/cli/templates/blocks/components/SideNavItem/SideNavItemBasic.tsx b/packages/cli/assets/templates/blocks/components/SideNavItem/SideNavItemBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/SideNavItem/SideNavItemBasic.tsxrename to packages/cli/assets/templates/blocks/components/SideNavItem/SideNavItemBasic.tsxdiff --git a/packages/cli/templates/blocks/components/SideNavItem/SideNavItemShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/SideNavItem/SideNavItemShowcase.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/SideNavItem/SideNavItemShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/SideNavItem/SideNavItemShowcase.doc.mjsindex 269f8ea905..ee3560d5fb 100644--- a/packages/cli/templates/blocks/components/SideNavItem/SideNavItemShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/SideNavItem/SideNavItemShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'SideNavItem',diff --git a/packages/cli/assets/templates/blocks/components/SideNavItem/SideNavItemShowcase.tsx b/packages/cli/assets/templates/blocks/components/SideNavItem/SideNavItemShowcase.tsxnew file mode 100644index 0000000000..ff8853ed7e--- /dev/null+++ b/packages/cli/assets/templates/blocks/components/SideNavItem/SideNavItemShowcase.tsx@@ -0,0 +1,79 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++'use client';++import type {ComponentProps} from 'react';+import {SideNav, SideNavItem} from '@astryxdesign/core/SideNav';+import {Badge} from '@astryxdesign/core/Badge';++function InboxIcon(props: ComponentProps<'svg'>) {+ return (+ <svg+ fill="none"+ viewBox="0 0 24 24"+ strokeWidth={1.5}+ stroke="currentColor"+ {...props}>+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="M2.25 13.5h3.86a2.25 2.25 0 0 1 2.012 1.244l.256.512a2.25 2.25 0 0 0 2.013 1.244h3.218a2.25 2.25 0 0 0 2.013-1.244l.256-.512a2.25 2.25 0 0 1 2.013-1.244h3.859m-19.5.338V18a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18v-4.162c0-.224-.034-.447-.1-.661L19.24 5.338a2.25 2.25 0 0 0-2.15-1.588H6.911a2.25 2.25 0 0 0-2.15 1.588L2.35 13.177a2.25 2.25 0 0 0-.1.661Z"+ />+ </svg>+ );+}++function DocumentIcon(props: ComponentProps<'svg'>) {+ return (+ <svg+ fill="none"+ viewBox="0 0 24 24"+ strokeWidth={1.5}+ stroke="currentColor"+ {...props}>+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"+ />+ </svg>+ );+}++function CogIcon(props: ComponentProps<'svg'>) {+ return (+ <svg+ fill="none"+ viewBox="0 0 24 24"+ strokeWidth={1.5}+ stroke="currentColor"+ {...props}>+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.212-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"+ />+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"+ />+ </svg>+ );+}++export default function SideNavItemShowcase() {+ return (+ <SideNav>+ <SideNavItem+ label="Inbox"+ icon={InboxIcon}+ isSelected+ href="#"+ endContent={<Badge label="12" />}+ />+ <SideNavItem label="Documents" icon={DocumentIcon} href="#" />+ <SideNavItem label="Settings" icon={CogIcon} href="#" isDisabled />+ </SideNav>+ );+}diff --git a/packages/cli/templates/blocks/components/SideNavSection/SideNavSectionBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/SideNavSection/SideNavSectionBasic.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/SideNavSection/SideNavSectionBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/SideNavSection/SideNavSectionBasic.doc.mjsindex 5fc07fcfa9..98c85ebaf8 100644--- a/packages/cli/templates/blocks/components/SideNavSection/SideNavSectionBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/SideNavSection/SideNavSectionBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'SideNavSection',diff --git a/packages/cli/templates/blocks/components/SideNavSection/SideNavSectionBasic.tsx b/packages/cli/assets/templates/blocks/components/SideNavSection/SideNavSectionBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/SideNavSection/SideNavSectionBasic.tsxrename to packages/cli/assets/templates/blocks/components/SideNavSection/SideNavSectionBasic.tsxdiff --git a/packages/cli/templates/blocks/components/SideNavSection/SideNavSectionShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/SideNavSection/SideNavSectionShowcase.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/SideNavSection/SideNavSectionShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/SideNavSection/SideNavSectionShowcase.doc.mjsindex 64555131d4..53f6804abc 100644--- a/packages/cli/templates/blocks/components/SideNavSection/SideNavSectionShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/SideNavSection/SideNavSectionShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'SideNavSection',diff --git a/packages/cli/assets/templates/blocks/components/SideNavSection/SideNavSectionShowcase.tsx b/packages/cli/assets/templates/blocks/components/SideNavSection/SideNavSectionShowcase.tsxnew file mode 100644index 0000000000..67f4718d40--- /dev/null+++ b/packages/cli/assets/templates/blocks/components/SideNavSection/SideNavSectionShowcase.tsx@@ -0,0 +1,94 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++'use client';++import type {ComponentProps} from 'react';+import {SideNav, SideNavItem, SideNavSection} from '@astryxdesign/core/SideNav';++function HomeIcon(props: ComponentProps<'svg'>) {+ return (+ <svg+ fill="none"+ viewBox="0 0 24 24"+ strokeWidth={1.5}+ stroke="currentColor"+ {...props}>+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"+ />+ </svg>+ );+}++function ChartIcon(props: ComponentProps<'svg'>) {+ return (+ <svg+ fill="none"+ viewBox="0 0 24 24"+ strokeWidth={1.5}+ stroke="currentColor"+ {...props}>+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 0 1 3 19.875v-6.75ZM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V8.625ZM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V4.125Z"+ />+ </svg>+ );+}++function UserIcon(props: ComponentProps<'svg'>) {+ return (+ <svg+ fill="none"+ viewBox="0 0 24 24"+ strokeWidth={1.5}+ stroke="currentColor"+ {...props}>+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"+ />+ </svg>+ );+}++function CogIcon(props: ComponentProps<'svg'>) {+ return (+ <svg+ fill="none"+ viewBox="0 0 24 24"+ strokeWidth={1.5}+ stroke="currentColor"+ {...props}>+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.212-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"+ />+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"+ />+ </svg>+ );+}++export default function SideNavSectionShowcase() {+ return (+ <SideNav>+ <SideNavSection title="Overview">+ <SideNavItem label="Dashboard" icon={HomeIcon} isSelected href="#" />+ <SideNavItem label="Analytics" icon={ChartIcon} href="#" />+ </SideNavSection>+ <SideNavSection title="Account">+ <SideNavItem label="Profile" icon={UserIcon} href="#" />+ <SideNavItem label="Settings" icon={CogIcon} href="#" />+ </SideNavSection>+ </SideNav>+ );+}diff --git a/packages/cli/templates/blocks/components/Skeleton/SkeletonCardSkeleton.doc.mjs b/packages/cli/assets/templates/blocks/components/Skeleton/SkeletonCardSkeleton.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Skeleton/SkeletonCardSkeleton.doc.mjsrename to packages/cli/assets/templates/blocks/components/Skeleton/SkeletonCardSkeleton.doc.mjsindex 978e96b93e..e288d7aadb 100644--- a/packages/cli/templates/blocks/components/Skeleton/SkeletonCardSkeleton.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Skeleton/SkeletonCardSkeleton.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Skeleton',diff --git a/packages/cli/templates/blocks/components/Skeleton/SkeletonCardSkeleton.tsx b/packages/cli/assets/templates/blocks/components/Skeleton/SkeletonCardSkeleton.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Skeleton/SkeletonCardSkeleton.tsxrename to packages/cli/assets/templates/blocks/components/Skeleton/SkeletonCardSkeleton.tsxdiff --git a/packages/cli/templates/blocks/components/Skeleton/SkeletonShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Skeleton/SkeletonShowcase.doc.mjssimilarity index 81%rename from packages/cli/templates/blocks/components/Skeleton/SkeletonShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Skeleton/SkeletonShowcase.doc.mjsindex fe7ae3498f..a03546deec 100644--- a/packages/cli/templates/blocks/components/Skeleton/SkeletonShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Skeleton/SkeletonShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Skeleton',diff --git a/packages/cli/templates/blocks/components/Skeleton/SkeletonShowcase.tsx b/packages/cli/assets/templates/blocks/components/Skeleton/SkeletonShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Skeleton/SkeletonShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Skeleton/SkeletonShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Skeleton/SkeletonStaggeredList.doc.mjs b/packages/cli/assets/templates/blocks/components/Skeleton/SkeletonStaggeredList.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Skeleton/SkeletonStaggeredList.doc.mjsrename to packages/cli/assets/templates/blocks/components/Skeleton/SkeletonStaggeredList.doc.mjsindex f7ecd9a2d7..b87e26f3fd 100644--- a/packages/cli/templates/blocks/components/Skeleton/SkeletonStaggeredList.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Skeleton/SkeletonStaggeredList.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Skeleton',diff --git a/packages/cli/templates/blocks/components/Skeleton/SkeletonStaggeredList.tsx b/packages/cli/assets/templates/blocks/components/Skeleton/SkeletonStaggeredList.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Skeleton/SkeletonStaggeredList.tsxrename to packages/cli/assets/templates/blocks/components/Skeleton/SkeletonStaggeredList.tsxdiff --git a/packages/cli/templates/blocks/components/Skeleton/SkeletonTableRowSkeleton.doc.mjs b/packages/cli/assets/templates/blocks/components/Skeleton/SkeletonTableRowSkeleton.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Skeleton/SkeletonTableRowSkeleton.doc.mjsrename to packages/cli/assets/templates/blocks/components/Skeleton/SkeletonTableRowSkeleton.doc.mjsindex be74d6830a..a26de47cd7 100644--- a/packages/cli/templates/blocks/components/Skeleton/SkeletonTableRowSkeleton.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Skeleton/SkeletonTableRowSkeleton.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Skeleton',diff --git a/packages/cli/templates/blocks/components/Skeleton/SkeletonTableRowSkeleton.tsx b/packages/cli/assets/templates/blocks/components/Skeleton/SkeletonTableRowSkeleton.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Skeleton/SkeletonTableRowSkeleton.tsxrename to packages/cli/assets/templates/blocks/components/Skeleton/SkeletonTableRowSkeleton.tsxdiff --git a/packages/cli/templates/blocks/components/Slider/SliderFormattedValue.doc.mjs b/packages/cli/assets/templates/blocks/components/Slider/SliderFormattedValue.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Slider/SliderFormattedValue.doc.mjsrename to packages/cli/assets/templates/blocks/components/Slider/SliderFormattedValue.doc.mjsindex 3df8ed377d..82518d1dfe 100644--- a/packages/cli/templates/blocks/components/Slider/SliderFormattedValue.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Slider/SliderFormattedValue.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Slider',diff --git a/packages/cli/templates/blocks/components/Slider/SliderFormattedValue.tsx b/packages/cli/assets/templates/blocks/components/Slider/SliderFormattedValue.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Slider/SliderFormattedValue.tsxrename to packages/cli/assets/templates/blocks/components/Slider/SliderFormattedValue.tsxdiff --git a/packages/cli/templates/blocks/components/Slider/SliderRangeSlider.doc.mjs b/packages/cli/assets/templates/blocks/components/Slider/SliderRangeSlider.doc.mjssimilarity index 82%rename from packages/cli/templates/blocks/components/Slider/SliderRangeSlider.doc.mjsrename to packages/cli/assets/templates/blocks/components/Slider/SliderRangeSlider.doc.mjsindex b7c9101f43..91cd071d2e 100644--- a/packages/cli/templates/blocks/components/Slider/SliderRangeSlider.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Slider/SliderRangeSlider.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Slider',diff --git a/packages/cli/templates/blocks/components/Slider/SliderRangeSlider.tsx b/packages/cli/assets/templates/blocks/components/Slider/SliderRangeSlider.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Slider/SliderRangeSlider.tsxrename to packages/cli/assets/templates/blocks/components/Slider/SliderRangeSlider.tsxdiff --git a/packages/cli/templates/blocks/components/Slider/SliderShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Slider/SliderShowcase.doc.mjssimilarity index 80%rename from packages/cli/templates/blocks/components/Slider/SliderShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Slider/SliderShowcase.doc.mjsindex dfc763c685..a96cc3ffcb 100644--- a/packages/cli/templates/blocks/components/Slider/SliderShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Slider/SliderShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Slider',diff --git a/packages/cli/templates/blocks/components/Slider/SliderShowcase.tsx b/packages/cli/assets/templates/blocks/components/Slider/SliderShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Slider/SliderShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Slider/SliderShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Slider/SliderWithMarks.doc.mjs b/packages/cli/assets/templates/blocks/components/Slider/SliderWithMarks.doc.mjssimilarity index 82%rename from packages/cli/templates/blocks/components/Slider/SliderWithMarks.doc.mjsrename to packages/cli/assets/templates/blocks/components/Slider/SliderWithMarks.doc.mjsindex bfec09411a..ee6f95b25d 100644--- a/packages/cli/templates/blocks/components/Slider/SliderWithMarks.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Slider/SliderWithMarks.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Slider',diff --git a/packages/cli/templates/blocks/components/Slider/SliderWithMarks.tsx b/packages/cli/assets/templates/blocks/components/Slider/SliderWithMarks.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Slider/SliderWithMarks.tsxrename to packages/cli/assets/templates/blocks/components/Slider/SliderWithMarks.tsxdiff --git a/packages/cli/templates/blocks/components/Slider/SliderWithStatus.doc.mjs b/packages/cli/assets/templates/blocks/components/Slider/SliderWithStatus.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/Slider/SliderWithStatus.doc.mjsrename to packages/cli/assets/templates/blocks/components/Slider/SliderWithStatus.doc.mjsindex be0105509b..c035705601 100644--- a/packages/cli/templates/blocks/components/Slider/SliderWithStatus.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Slider/SliderWithStatus.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Slider',diff --git a/packages/cli/templates/blocks/components/Slider/SliderWithStatus.tsx b/packages/cli/assets/templates/blocks/components/Slider/SliderWithStatus.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Slider/SliderWithStatus.tsxrename to packages/cli/assets/templates/blocks/components/Slider/SliderWithStatus.tsxdiff --git a/packages/cli/templates/blocks/components/Spinner/SpinnerOnMedia.doc.mjs b/packages/cli/assets/templates/blocks/components/Spinner/SpinnerOnMedia.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Spinner/SpinnerOnMedia.doc.mjsrename to packages/cli/assets/templates/blocks/components/Spinner/SpinnerOnMedia.doc.mjsindex 78d0f5f489..52bf593b61 100644--- a/packages/cli/templates/blocks/components/Spinner/SpinnerOnMedia.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Spinner/SpinnerOnMedia.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Spinner',diff --git a/packages/cli/templates/blocks/components/Spinner/SpinnerOnMedia.tsx b/packages/cli/assets/templates/blocks/components/Spinner/SpinnerOnMedia.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Spinner/SpinnerOnMedia.tsxrename to packages/cli/assets/templates/blocks/components/Spinner/SpinnerOnMedia.tsxdiff --git a/packages/cli/templates/blocks/components/Spinner/SpinnerShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Spinner/SpinnerShowcase.doc.mjssimilarity index 80%rename from packages/cli/templates/blocks/components/Spinner/SpinnerShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Spinner/SpinnerShowcase.doc.mjsindex 856794390d..af19545955 100644--- a/packages/cli/templates/blocks/components/Spinner/SpinnerShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Spinner/SpinnerShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Spinner',diff --git a/packages/cli/templates/blocks/components/Spinner/SpinnerShowcase.tsx b/packages/cli/assets/templates/blocks/components/Spinner/SpinnerShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Spinner/SpinnerShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Spinner/SpinnerShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Spinner/SpinnerSizes.doc.mjs b/packages/cli/assets/templates/blocks/components/Spinner/SpinnerSizes.doc.mjssimilarity index 81%rename from packages/cli/templates/blocks/components/Spinner/SpinnerSizes.doc.mjsrename to packages/cli/assets/templates/blocks/components/Spinner/SpinnerSizes.doc.mjsindex 310a82c5e4..cdb760868e 100644--- a/packages/cli/templates/blocks/components/Spinner/SpinnerSizes.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Spinner/SpinnerSizes.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Spinner',diff --git a/packages/cli/templates/blocks/components/Spinner/SpinnerSizes.tsx b/packages/cli/assets/templates/blocks/components/Spinner/SpinnerSizes.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Spinner/SpinnerSizes.tsxrename to packages/cli/assets/templates/blocks/components/Spinner/SpinnerSizes.tsxdiff --git a/packages/cli/templates/blocks/components/Spinner/SpinnerWithLabel.doc.mjs b/packages/cli/assets/templates/blocks/components/Spinner/SpinnerWithLabel.doc.mjssimilarity index 82%rename from packages/cli/templates/blocks/components/Spinner/SpinnerWithLabel.doc.mjsrename to packages/cli/assets/templates/blocks/components/Spinner/SpinnerWithLabel.doc.mjsindex 2528ff092a..07c15aa90a 100644--- a/packages/cli/templates/blocks/components/Spinner/SpinnerWithLabel.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Spinner/SpinnerWithLabel.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Spinner',diff --git a/packages/cli/templates/blocks/components/Spinner/SpinnerWithLabel.tsx b/packages/cli/assets/templates/blocks/components/Spinner/SpinnerWithLabel.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Spinner/SpinnerWithLabel.tsxrename to packages/cli/assets/templates/blocks/components/Spinner/SpinnerWithLabel.tsxdiff --git a/packages/cli/templates/blocks/components/Stack/StackAlignment.doc.mjs b/packages/cli/assets/templates/blocks/components/Stack/StackAlignment.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Stack/StackAlignment.doc.mjsrename to packages/cli/assets/templates/blocks/components/Stack/StackAlignment.doc.mjsindex e5a36d9d0a..54b3e49b82 100644--- a/packages/cli/templates/blocks/components/Stack/StackAlignment.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Stack/StackAlignment.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Stack',diff --git a/packages/cli/templates/blocks/components/Stack/StackAlignment.tsx b/packages/cli/assets/templates/blocks/components/Stack/StackAlignment.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Stack/StackAlignment.tsxrename to packages/cli/assets/templates/blocks/components/Stack/StackAlignment.tsxdiff --git a/packages/cli/templates/blocks/components/Stack/StackDirections.doc.mjs b/packages/cli/assets/templates/blocks/components/Stack/StackDirections.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/Stack/StackDirections.doc.mjsrename to packages/cli/assets/templates/blocks/components/Stack/StackDirections.doc.mjsindex d5a4398d42..795c6aae7f 100644--- a/packages/cli/templates/blocks/components/Stack/StackDirections.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Stack/StackDirections.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Stack',diff --git a/packages/cli/templates/blocks/components/Stack/StackDirections.tsx b/packages/cli/assets/templates/blocks/components/Stack/StackDirections.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Stack/StackDirections.tsxrename to packages/cli/assets/templates/blocks/components/Stack/StackDirections.tsxdiff --git a/packages/cli/templates/blocks/components/Stack/StackFillItem.doc.mjs b/packages/cli/assets/templates/blocks/components/Stack/StackFillItem.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/Stack/StackFillItem.doc.mjsrename to packages/cli/assets/templates/blocks/components/Stack/StackFillItem.doc.mjsindex 6dd1267042..60292234c1 100644--- a/packages/cli/templates/blocks/components/Stack/StackFillItem.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Stack/StackFillItem.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Stack',diff --git a/packages/cli/templates/blocks/components/Stack/StackFillItem.tsx b/packages/cli/assets/templates/blocks/components/Stack/StackFillItem.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Stack/StackFillItem.tsxrename to packages/cli/assets/templates/blocks/components/Stack/StackFillItem.tsxdiff --git a/packages/cli/templates/blocks/components/StackItem/StackItemFill.doc.mjs b/packages/cli/assets/templates/blocks/components/StackItem/StackItemFill.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/StackItem/StackItemFill.doc.mjsrename to packages/cli/assets/templates/blocks/components/StackItem/StackItemFill.doc.mjsindex 3ed5eb3521..cc2999d491 100644--- a/packages/cli/templates/blocks/components/StackItem/StackItemFill.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/StackItem/StackItemFill.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'StackItem',diff --git a/packages/cli/templates/blocks/components/StackItem/StackItemFill.tsx b/packages/cli/assets/templates/blocks/components/StackItem/StackItemFill.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/StackItem/StackItemFill.tsxrename to packages/cli/assets/templates/blocks/components/StackItem/StackItemFill.tsxdiff --git a/packages/cli/templates/blocks/components/StackItem/StackItemShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/StackItem/StackItemShowcase.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/StackItem/StackItemShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/StackItem/StackItemShowcase.doc.mjsindex d8e4a05b90..a5ef06afe4 100644--- a/packages/cli/templates/blocks/components/StackItem/StackItemShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/StackItem/StackItemShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'StackItem',diff --git a/packages/cli/templates/blocks/components/StackItem/StackItemShowcase.tsx b/packages/cli/assets/templates/blocks/components/StackItem/StackItemShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/StackItem/StackItemShowcase.tsxrename to packages/cli/assets/templates/blocks/components/StackItem/StackItemShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/StatusDot/StatusDotPulsing.doc.mjs b/packages/cli/assets/templates/blocks/components/StatusDot/StatusDotPulsing.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/StatusDot/StatusDotPulsing.doc.mjsrename to packages/cli/assets/templates/blocks/components/StatusDot/StatusDotPulsing.doc.mjsindex b4ea245847..ddddb72c87 100644--- a/packages/cli/templates/blocks/components/StatusDot/StatusDotPulsing.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/StatusDot/StatusDotPulsing.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'StatusDot',diff --git a/packages/cli/templates/blocks/components/StatusDot/StatusDotPulsing.tsx b/packages/cli/assets/templates/blocks/components/StatusDot/StatusDotPulsing.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/StatusDot/StatusDotPulsing.tsxrename to packages/cli/assets/templates/blocks/components/StatusDot/StatusDotPulsing.tsxdiff --git a/packages/cli/templates/blocks/components/StatusDot/StatusDotShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/StatusDot/StatusDotShowcase.doc.mjssimilarity index 81%rename from packages/cli/templates/blocks/components/StatusDot/StatusDotShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/StatusDot/StatusDotShowcase.doc.mjsindex e784f9ef43..5ab36cab9e 100644--- a/packages/cli/templates/blocks/components/StatusDot/StatusDotShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/StatusDot/StatusDotShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'StatusDot',diff --git a/packages/cli/templates/blocks/components/StatusDot/StatusDotShowcase.tsx b/packages/cli/assets/templates/blocks/components/StatusDot/StatusDotShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/StatusDot/StatusDotShowcase.tsxrename to packages/cli/assets/templates/blocks/components/StatusDot/StatusDotShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/StatusDot/StatusDotStatusIndicators.doc.mjs b/packages/cli/assets/templates/blocks/components/StatusDot/StatusDotStatusIndicators.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/StatusDot/StatusDotStatusIndicators.doc.mjsrename to packages/cli/assets/templates/blocks/components/StatusDot/StatusDotStatusIndicators.doc.mjsindex 2cbadc7183..455fa7d224 100644--- a/packages/cli/templates/blocks/components/StatusDot/StatusDotStatusIndicators.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/StatusDot/StatusDotStatusIndicators.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'StatusDot',diff --git a/packages/cli/templates/blocks/components/StatusDot/StatusDotStatusIndicators.tsx b/packages/cli/assets/templates/blocks/components/StatusDot/StatusDotStatusIndicators.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/StatusDot/StatusDotStatusIndicators.tsxrename to packages/cli/assets/templates/blocks/components/StatusDot/StatusDotStatusIndicators.tsxdiff --git a/packages/cli/templates/blocks/components/StatusDot/StatusDotVariants.doc.mjs b/packages/cli/assets/templates/blocks/components/StatusDot/StatusDotVariants.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/StatusDot/StatusDotVariants.doc.mjsrename to packages/cli/assets/templates/blocks/components/StatusDot/StatusDotVariants.doc.mjsindex 53b7612492..4da960da2b 100644--- a/packages/cli/templates/blocks/components/StatusDot/StatusDotVariants.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/StatusDot/StatusDotVariants.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'StatusDot',diff --git a/packages/cli/templates/blocks/components/StatusDot/StatusDotVariants.tsx b/packages/cli/assets/templates/blocks/components/StatusDot/StatusDotVariants.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/StatusDot/StatusDotVariants.tsxrename to packages/cli/assets/templates/blocks/components/StatusDot/StatusDotVariants.tsxdiff --git a/packages/cli/templates/blocks/components/Switch/SwitchDisabled.doc.mjs b/packages/cli/assets/templates/blocks/components/Switch/SwitchDisabled.doc.mjssimilarity index 82%rename from packages/cli/templates/blocks/components/Switch/SwitchDisabled.doc.mjsrename to packages/cli/assets/templates/blocks/components/Switch/SwitchDisabled.doc.mjsindex 14c56e2999..2ed542a77c 100644--- a/packages/cli/templates/blocks/components/Switch/SwitchDisabled.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Switch/SwitchDisabled.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Switch',diff --git a/packages/cli/templates/blocks/components/Switch/SwitchDisabled.tsx b/packages/cli/assets/templates/blocks/components/Switch/SwitchDisabled.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Switch/SwitchDisabled.tsxrename to packages/cli/assets/templates/blocks/components/Switch/SwitchDisabled.tsxdiff --git a/packages/cli/templates/blocks/components/Switch/SwitchSettingsPanel.doc.mjs b/packages/cli/assets/templates/blocks/components/Switch/SwitchSettingsPanel.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Switch/SwitchSettingsPanel.doc.mjsrename to packages/cli/assets/templates/blocks/components/Switch/SwitchSettingsPanel.doc.mjsindex 599395fddc..d9aeecb3f7 100644--- a/packages/cli/templates/blocks/components/Switch/SwitchSettingsPanel.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Switch/SwitchSettingsPanel.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Switch',diff --git a/packages/cli/templates/blocks/components/Switch/SwitchSettingsPanel.tsx b/packages/cli/assets/templates/blocks/components/Switch/SwitchSettingsPanel.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Switch/SwitchSettingsPanel.tsxrename to packages/cli/assets/templates/blocks/components/Switch/SwitchSettingsPanel.tsxdiff --git a/packages/cli/templates/blocks/components/Switch/SwitchShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Switch/SwitchShowcase.doc.mjssimilarity index 81%rename from packages/cli/templates/blocks/components/Switch/SwitchShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Switch/SwitchShowcase.doc.mjsindex f8b0783f10..524ac8ef32 100644--- a/packages/cli/templates/blocks/components/Switch/SwitchShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Switch/SwitchShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Switch',diff --git a/packages/cli/templates/blocks/components/Switch/SwitchShowcase.tsx b/packages/cli/assets/templates/blocks/components/Switch/SwitchShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Switch/SwitchShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Switch/SwitchShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Switch/SwitchWithDescription.doc.mjs b/packages/cli/assets/templates/blocks/components/Switch/SwitchWithDescription.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Switch/SwitchWithDescription.doc.mjsrename to packages/cli/assets/templates/blocks/components/Switch/SwitchWithDescription.doc.mjsindex 9ec5440b87..1e19c7b723 100644--- a/packages/cli/templates/blocks/components/Switch/SwitchWithDescription.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Switch/SwitchWithDescription.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Switch',diff --git a/packages/cli/templates/blocks/components/Switch/SwitchWithDescription.tsx b/packages/cli/assets/templates/blocks/components/Switch/SwitchWithDescription.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Switch/SwitchWithDescription.tsxrename to packages/cli/assets/templates/blocks/components/Switch/SwitchWithDescription.tsxdiff --git a/packages/cli/templates/blocks/components/Switch/SwitchWithStatus.doc.mjs b/packages/cli/assets/templates/blocks/components/Switch/SwitchWithStatus.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Switch/SwitchWithStatus.doc.mjsrename to packages/cli/assets/templates/blocks/components/Switch/SwitchWithStatus.doc.mjsindex 8c9a0b3345..6f55d567f7 100644--- a/packages/cli/templates/blocks/components/Switch/SwitchWithStatus.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Switch/SwitchWithStatus.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Switch',diff --git a/packages/cli/templates/blocks/components/Switch/SwitchWithStatus.tsx b/packages/cli/assets/templates/blocks/components/Switch/SwitchWithStatus.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Switch/SwitchWithStatus.tsxrename to packages/cli/assets/templates/blocks/components/Switch/SwitchWithStatus.tsxdiff --git a/packages/cli/templates/blocks/components/SyntaxTheme/SyntaxThemeDarkPreset.doc.mjs b/packages/cli/assets/templates/blocks/components/SyntaxTheme/SyntaxThemeDarkPreset.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/SyntaxTheme/SyntaxThemeDarkPreset.doc.mjsrename to packages/cli/assets/templates/blocks/components/SyntaxTheme/SyntaxThemeDarkPreset.doc.mjsindex df39506f4f..a1f69ef363 100644--- a/packages/cli/templates/blocks/components/SyntaxTheme/SyntaxThemeDarkPreset.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/SyntaxTheme/SyntaxThemeDarkPreset.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'SyntaxTheme',diff --git a/packages/cli/templates/blocks/components/SyntaxTheme/SyntaxThemeDarkPreset.tsx b/packages/cli/assets/templates/blocks/components/SyntaxTheme/SyntaxThemeDarkPreset.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/SyntaxTheme/SyntaxThemeDarkPreset.tsxrename to packages/cli/assets/templates/blocks/components/SyntaxTheme/SyntaxThemeDarkPreset.tsxdiff --git a/packages/cli/templates/blocks/components/SyntaxTheme/SyntaxThemeLightPreset.doc.mjs b/packages/cli/assets/templates/blocks/components/SyntaxTheme/SyntaxThemeLightPreset.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/SyntaxTheme/SyntaxThemeLightPreset.doc.mjsrename to packages/cli/assets/templates/blocks/components/SyntaxTheme/SyntaxThemeLightPreset.doc.mjsindex 76d6cfece2..3a9b137575 100644--- a/packages/cli/templates/blocks/components/SyntaxTheme/SyntaxThemeLightPreset.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/SyntaxTheme/SyntaxThemeLightPreset.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'SyntaxTheme',diff --git a/packages/cli/templates/blocks/components/SyntaxTheme/SyntaxThemeLightPreset.tsx b/packages/cli/assets/templates/blocks/components/SyntaxTheme/SyntaxThemeLightPreset.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/SyntaxTheme/SyntaxThemeLightPreset.tsxrename to packages/cli/assets/templates/blocks/components/SyntaxTheme/SyntaxThemeLightPreset.tsxdiff --git a/packages/cli/templates/blocks/components/SyntaxTheme/SyntaxThemeShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/SyntaxTheme/SyntaxThemeShowcase.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/SyntaxTheme/SyntaxThemeShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/SyntaxTheme/SyntaxThemeShowcase.doc.mjsindex 8464aa6f57..96e1425f95 100644--- a/packages/cli/templates/blocks/components/SyntaxTheme/SyntaxThemeShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/SyntaxTheme/SyntaxThemeShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'SyntaxTheme',diff --git a/packages/cli/templates/blocks/components/SyntaxTheme/SyntaxThemeShowcase.tsx b/packages/cli/assets/templates/blocks/components/SyntaxTheme/SyntaxThemeShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/SyntaxTheme/SyntaxThemeShowcase.tsxrename to packages/cli/assets/templates/blocks/components/SyntaxTheme/SyntaxThemeShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Tab/TabShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Tab/TabShowcase.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/Tab/TabShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Tab/TabShowcase.doc.mjsindex aaae7e8d9c..5dd44f24cd 100644--- a/packages/cli/templates/blocks/components/Tab/TabShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Tab/TabShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Tab',diff --git a/packages/cli/templates/blocks/components/Tab/TabShowcase.tsx b/packages/cli/assets/templates/blocks/components/Tab/TabShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Tab/TabShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Tab/TabShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Tab/TabWithSelectedIcon.doc.mjs b/packages/cli/assets/templates/blocks/components/Tab/TabWithSelectedIcon.doc.mjssimilarity index 82%rename from packages/cli/templates/blocks/components/Tab/TabWithSelectedIcon.doc.mjsrename to packages/cli/assets/templates/blocks/components/Tab/TabWithSelectedIcon.doc.mjsindex 1be152d6d2..1e76b6782d 100644--- a/packages/cli/templates/blocks/components/Tab/TabWithSelectedIcon.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Tab/TabWithSelectedIcon.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Tab',diff --git a/packages/cli/templates/blocks/components/Tab/TabWithSelectedIcon.tsx b/packages/cli/assets/templates/blocks/components/Tab/TabWithSelectedIcon.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Tab/TabWithSelectedIcon.tsxrename to packages/cli/assets/templates/blocks/components/Tab/TabWithSelectedIcon.tsxdiff --git a/packages/cli/templates/blocks/components/TabList/TabListShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/TabList/TabListShowcase.doc.mjssimilarity index 77%rename from packages/cli/templates/blocks/components/TabList/TabListShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/TabList/TabListShowcase.doc.mjsindex e23594e3b1..6e0327ca47 100644--- a/packages/cli/templates/blocks/components/TabList/TabListShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TabList/TabListShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TabList',diff --git a/packages/cli/templates/blocks/components/TabList/TabListShowcase.tsx b/packages/cli/assets/templates/blocks/components/TabList/TabListShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TabList/TabListShowcase.tsxrename to packages/cli/assets/templates/blocks/components/TabList/TabListShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/TabList/TabListTabsFillLayout.doc.mjs b/packages/cli/assets/templates/blocks/components/TabList/TabListTabsFillLayout.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/TabList/TabListTabsFillLayout.doc.mjsrename to packages/cli/assets/templates/blocks/components/TabList/TabListTabsFillLayout.doc.mjsindex 5fcf765aa3..fa426327ab 100644--- a/packages/cli/templates/blocks/components/TabList/TabListTabsFillLayout.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TabList/TabListTabsFillLayout.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TabList',diff --git a/packages/cli/templates/blocks/components/TabList/TabListTabsFillLayout.tsx b/packages/cli/assets/templates/blocks/components/TabList/TabListTabsFillLayout.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TabList/TabListTabsFillLayout.tsxrename to packages/cli/assets/templates/blocks/components/TabList/TabListTabsFillLayout.tsxdiff --git a/packages/cli/templates/blocks/components/TabList/TabListTabsWithActions.doc.mjs b/packages/cli/assets/templates/blocks/components/TabList/TabListTabsWithActions.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/TabList/TabListTabsWithActions.doc.mjsrename to packages/cli/assets/templates/blocks/components/TabList/TabListTabsWithActions.doc.mjsindex 902d2d924b..5c945af1e0 100644--- a/packages/cli/templates/blocks/components/TabList/TabListTabsWithActions.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TabList/TabListTabsWithActions.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TabList',diff --git a/packages/cli/templates/blocks/components/TabList/TabListTabsWithActions.tsx b/packages/cli/assets/templates/blocks/components/TabList/TabListTabsWithActions.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TabList/TabListTabsWithActions.tsxrename to packages/cli/assets/templates/blocks/components/TabList/TabListTabsWithActions.tsxdiff --git a/packages/cli/templates/blocks/components/TabList/TabListTabsWithBadge.doc.mjs b/packages/cli/assets/templates/blocks/components/TabList/TabListTabsWithBadge.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/TabList/TabListTabsWithBadge.doc.mjsrename to packages/cli/assets/templates/blocks/components/TabList/TabListTabsWithBadge.doc.mjsindex d4e4d1997e..4f815c2efc 100644--- a/packages/cli/templates/blocks/components/TabList/TabListTabsWithBadge.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TabList/TabListTabsWithBadge.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TabList',diff --git a/packages/cli/templates/blocks/components/TabList/TabListTabsWithBadge.tsx b/packages/cli/assets/templates/blocks/components/TabList/TabListTabsWithBadge.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TabList/TabListTabsWithBadge.tsxrename to packages/cli/assets/templates/blocks/components/TabList/TabListTabsWithBadge.tsxdiff --git a/packages/cli/templates/blocks/components/TabList/TabListTabsWithIcons.doc.mjs b/packages/cli/assets/templates/blocks/components/TabList/TabListTabsWithIcons.doc.mjssimilarity index 82%rename from packages/cli/templates/blocks/components/TabList/TabListTabsWithIcons.doc.mjsrename to packages/cli/assets/templates/blocks/components/TabList/TabListTabsWithIcons.doc.mjsindex 2b7598b6c5..315fda8879 100644--- a/packages/cli/templates/blocks/components/TabList/TabListTabsWithIcons.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TabList/TabListTabsWithIcons.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TabList',diff --git a/packages/cli/templates/blocks/components/TabList/TabListTabsWithIcons.tsx b/packages/cli/assets/templates/blocks/components/TabList/TabListTabsWithIcons.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TabList/TabListTabsWithIcons.tsxrename to packages/cli/assets/templates/blocks/components/TabList/TabListTabsWithIcons.tsxdiff --git a/packages/cli/templates/blocks/components/TabList/TabListTabsWithMenu.doc.mjs b/packages/cli/assets/templates/blocks/components/TabList/TabListTabsWithMenu.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/TabList/TabListTabsWithMenu.doc.mjsrename to packages/cli/assets/templates/blocks/components/TabList/TabListTabsWithMenu.doc.mjsindex d2934118df..0b3324fdd6 100644--- a/packages/cli/templates/blocks/components/TabList/TabListTabsWithMenu.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TabList/TabListTabsWithMenu.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TabList',diff --git a/packages/cli/templates/blocks/components/TabList/TabListTabsWithMenu.tsx b/packages/cli/assets/templates/blocks/components/TabList/TabListTabsWithMenu.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TabList/TabListTabsWithMenu.tsxrename to packages/cli/assets/templates/blocks/components/TabList/TabListTabsWithMenu.tsxdiff --git a/packages/cli/templates/blocks/components/TabList/TabListTabsWithStatusDot.doc.mjs b/packages/cli/assets/templates/blocks/components/TabList/TabListTabsWithStatusDot.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/TabList/TabListTabsWithStatusDot.doc.mjsrename to packages/cli/assets/templates/blocks/components/TabList/TabListTabsWithStatusDot.doc.mjsindex 556080f787..d3fb5fb958 100644--- a/packages/cli/templates/blocks/components/TabList/TabListTabsWithStatusDot.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TabList/TabListTabsWithStatusDot.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TabList',diff --git a/packages/cli/templates/blocks/components/TabList/TabListTabsWithStatusDot.tsx b/packages/cli/assets/templates/blocks/components/TabList/TabListTabsWithStatusDot.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TabList/TabListTabsWithStatusDot.tsxrename to packages/cli/assets/templates/blocks/components/TabList/TabListTabsWithStatusDot.tsxdiff --git a/packages/cli/templates/blocks/components/TabMenu/TabMenuBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/TabMenu/TabMenuBasic.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/TabMenu/TabMenuBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/TabMenu/TabMenuBasic.doc.mjsindex 63cb07c9d3..483c29740b 100644--- a/packages/cli/templates/blocks/components/TabMenu/TabMenuBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TabMenu/TabMenuBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TabMenu',diff --git a/packages/cli/templates/blocks/components/TabMenu/TabMenuBasic.tsx b/packages/cli/assets/templates/blocks/components/TabMenu/TabMenuBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TabMenu/TabMenuBasic.tsxrename to packages/cli/assets/templates/blocks/components/TabMenu/TabMenuBasic.tsxdiff --git a/packages/cli/templates/blocks/components/TabMenu/TabMenuShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/TabMenu/TabMenuShowcase.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/TabMenu/TabMenuShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/TabMenu/TabMenuShowcase.doc.mjsindex 530ad000b9..4400c34f22 100644--- a/packages/cli/templates/blocks/components/TabMenu/TabMenuShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TabMenu/TabMenuShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TabMenu',diff --git a/packages/cli/templates/blocks/components/TabMenu/TabMenuShowcase.tsx b/packages/cli/assets/templates/blocks/components/TabMenu/TabMenuShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TabMenu/TabMenuShowcase.tsxrename to packages/cli/assets/templates/blocks/components/TabMenu/TabMenuShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Table/ColumnResizeHookUsage.doc.mjs b/packages/cli/assets/templates/blocks/components/Table/ColumnResizeHookUsage.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/Table/ColumnResizeHookUsage.doc.mjsrename to packages/cli/assets/templates/blocks/components/Table/ColumnResizeHookUsage.doc.mjsindex 033f0937b5..69bdbc594d 100644--- a/packages/cli/templates/blocks/components/Table/ColumnResizeHookUsage.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Table/ColumnResizeHookUsage.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'useTableColumnResize',diff --git a/packages/cli/templates/blocks/components/Table/ColumnResizeHookUsage.tsx b/packages/cli/assets/templates/blocks/components/Table/ColumnResizeHookUsage.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Table/ColumnResizeHookUsage.tsxrename to packages/cli/assets/templates/blocks/components/Table/ColumnResizeHookUsage.tsxdiff --git a/packages/cli/templates/blocks/components/Table/StickyColumnsHookUsage.doc.mjs b/packages/cli/assets/templates/blocks/components/Table/StickyColumnsHookUsage.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/Table/StickyColumnsHookUsage.doc.mjsrename to packages/cli/assets/templates/blocks/components/Table/StickyColumnsHookUsage.doc.mjsindex d2266b6bad..5c7e3d074d 100644--- a/packages/cli/templates/blocks/components/Table/StickyColumnsHookUsage.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Table/StickyColumnsHookUsage.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'useTableStickyColumns',diff --git a/packages/cli/templates/blocks/components/Table/StickyColumnsHookUsage.tsx b/packages/cli/assets/templates/blocks/components/Table/StickyColumnsHookUsage.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Table/StickyColumnsHookUsage.tsxrename to packages/cli/assets/templates/blocks/components/Table/StickyColumnsHookUsage.tsxdiff --git a/packages/cli/templates/blocks/components/Table/TableColumnSettingsTable.doc.mjs b/packages/cli/assets/templates/blocks/components/Table/TableColumnSettingsTable.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/Table/TableColumnSettingsTable.doc.mjsrename to packages/cli/assets/templates/blocks/components/Table/TableColumnSettingsTable.doc.mjsindex efb0014eaa..1c53a3939a 100644--- a/packages/cli/templates/blocks/components/Table/TableColumnSettingsTable.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Table/TableColumnSettingsTable.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Table',diff --git a/packages/cli/templates/blocks/components/Table/TableColumnSettingsTable.tsx b/packages/cli/assets/templates/blocks/components/Table/TableColumnSettingsTable.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Table/TableColumnSettingsTable.tsxrename to packages/cli/assets/templates/blocks/components/Table/TableColumnSettingsTable.tsxdiff --git a/packages/cli/templates/blocks/components/Table/TableFilterableTable.doc.mjs b/packages/cli/assets/templates/blocks/components/Table/TableFilterableTable.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/Table/TableFilterableTable.doc.mjsrename to packages/cli/assets/templates/blocks/components/Table/TableFilterableTable.doc.mjsindex 4328bea0c6..119227f258 100644--- a/packages/cli/templates/blocks/components/Table/TableFilterableTable.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Table/TableFilterableTable.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Table',diff --git a/packages/cli/templates/blocks/components/Table/TableFilterableTable.tsx b/packages/cli/assets/templates/blocks/components/Table/TableFilterableTable.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Table/TableFilterableTable.tsxrename to packages/cli/assets/templates/blocks/components/Table/TableFilterableTable.tsxdiff --git a/packages/cli/templates/blocks/components/Table/TableGridDividersTable.doc.mjs b/packages/cli/assets/templates/blocks/components/Table/TableGridDividersTable.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/Table/TableGridDividersTable.doc.mjsrename to packages/cli/assets/templates/blocks/components/Table/TableGridDividersTable.doc.mjsindex 7fa0927680..f4bdac2d2b 100644--- a/packages/cli/templates/blocks/components/Table/TableGridDividersTable.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Table/TableGridDividersTable.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Table',diff --git a/packages/cli/templates/blocks/components/Table/TableGridDividersTable.tsx b/packages/cli/assets/templates/blocks/components/Table/TableGridDividersTable.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Table/TableGridDividersTable.tsxrename to packages/cli/assets/templates/blocks/components/Table/TableGridDividersTable.tsxdiff --git a/packages/cli/templates/blocks/components/Table/TableGroupedRowsTable.doc.mjs b/packages/cli/assets/templates/blocks/components/Table/TableGroupedRowsTable.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/Table/TableGroupedRowsTable.doc.mjsrename to packages/cli/assets/templates/blocks/components/Table/TableGroupedRowsTable.doc.mjsindex 1fd32b2cf5..f51f001fb3 100644--- a/packages/cli/templates/blocks/components/Table/TableGroupedRowsTable.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Table/TableGroupedRowsTable.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'useTableGroupedRows',diff --git a/packages/cli/templates/blocks/components/Table/TableGroupedRowsTable.tsx b/packages/cli/assets/templates/blocks/components/Table/TableGroupedRowsTable.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Table/TableGroupedRowsTable.tsxrename to packages/cli/assets/templates/blocks/components/Table/TableGroupedRowsTable.tsxdiff --git a/packages/cli/templates/blocks/components/Table/TableInCard.doc.mjs b/packages/cli/assets/templates/blocks/components/Table/TableInCard.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/Table/TableInCard.doc.mjsrename to packages/cli/assets/templates/blocks/components/Table/TableInCard.doc.mjsindex 0e97023084..a873544269 100644--- a/packages/cli/templates/blocks/components/Table/TableInCard.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Table/TableInCard.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Table',diff --git a/packages/cli/templates/blocks/components/Table/TableInCard.tsx b/packages/cli/assets/templates/blocks/components/Table/TableInCard.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Table/TableInCard.tsxrename to packages/cli/assets/templates/blocks/components/Table/TableInCard.tsxdiff --git a/packages/cli/templates/blocks/components/Table/TableInlineFilterTable.doc.mjs b/packages/cli/assets/templates/blocks/components/Table/TableInlineFilterTable.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Table/TableInlineFilterTable.doc.mjsrename to packages/cli/assets/templates/blocks/components/Table/TableInlineFilterTable.doc.mjsindex a45033565e..da348d0c5e 100644--- a/packages/cli/templates/blocks/components/Table/TableInlineFilterTable.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Table/TableInlineFilterTable.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Table',diff --git a/packages/cli/templates/blocks/components/Table/TableInlineFilterTable.tsx b/packages/cli/assets/templates/blocks/components/Table/TableInlineFilterTable.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Table/TableInlineFilterTable.tsxrename to packages/cli/assets/templates/blocks/components/Table/TableInlineFilterTable.tsxdiff --git a/packages/cli/templates/blocks/components/Table/TablePaginatedTable.doc.mjs b/packages/cli/assets/templates/blocks/components/Table/TablePaginatedTable.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Table/TablePaginatedTable.doc.mjsrename to packages/cli/assets/templates/blocks/components/Table/TablePaginatedTable.doc.mjsindex 134c7ab308..1b1f745af6 100644--- a/packages/cli/templates/blocks/components/Table/TablePaginatedTable.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Table/TablePaginatedTable.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Table',diff --git a/packages/cli/templates/blocks/components/Table/TablePaginatedTable.tsx b/packages/cli/assets/templates/blocks/components/Table/TablePaginatedTable.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Table/TablePaginatedTable.tsxrename to packages/cli/assets/templates/blocks/components/Table/TablePaginatedTable.tsxdiff --git a/packages/cli/templates/blocks/components/Table/TableResizableTable.doc.mjs b/packages/cli/assets/templates/blocks/components/Table/TableResizableTable.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/Table/TableResizableTable.doc.mjsrename to packages/cli/assets/templates/blocks/components/Table/TableResizableTable.doc.mjsindex f179ac94ef..12a9e34928 100644--- a/packages/cli/templates/blocks/components/Table/TableResizableTable.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Table/TableResizableTable.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Table',diff --git a/packages/cli/templates/blocks/components/Table/TableResizableTable.tsx b/packages/cli/assets/templates/blocks/components/Table/TableResizableTable.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Table/TableResizableTable.tsxrename to packages/cli/assets/templates/blocks/components/Table/TableResizableTable.tsxdiff --git a/packages/cli/templates/blocks/components/Table/TableRichCellTable.doc.mjs b/packages/cli/assets/templates/blocks/components/Table/TableRichCellTable.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/Table/TableRichCellTable.doc.mjsrename to packages/cli/assets/templates/blocks/components/Table/TableRichCellTable.doc.mjsindex 71d9d255b1..0d18b2cd7c 100644--- a/packages/cli/templates/blocks/components/Table/TableRichCellTable.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Table/TableRichCellTable.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Table',diff --git a/packages/cli/templates/blocks/components/Table/TableRichCellTable.tsx b/packages/cli/assets/templates/blocks/components/Table/TableRichCellTable.tsxsimilarity index 88%rename from packages/cli/templates/blocks/components/Table/TableRichCellTable.tsxrename to packages/cli/assets/templates/blocks/components/Table/TableRichCellTable.tsxindex 2deb5274bf..852e83f3c1 100644--- a/packages/cli/templates/blocks/components/Table/TableRichCellTable.tsx+++ b/packages/cli/assets/templates/blocks/components/Table/TableRichCellTable.tsx@@ -65,18 +65,13 @@ const columns: TableColumn<User>[] = [key: 'email',header: 'Email',width: proportional(2),- renderCell: item => (- <Link href={`mailto:${item.email}`}>{item.email}</Link>- ),+ renderCell: item => <Link href={`mailto:${item.email}`}>{item.email}</Link>,},{key: 'role',header: 'Role',renderCell: item => (- <Badge- label={item.role}- variant={roleVariant[item.role] ?? 'neutral'}- />+ <Badge label={item.role} variant={roleVariant[item.role] ?? 'neutral'} />),},{key: 'age', header: 'Age', width: pixel(80)},diff --git a/packages/cli/templates/blocks/components/Table/TableRowExpansionTable.doc.mjs b/packages/cli/assets/templates/blocks/components/Table/TableRowExpansionTable.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/Table/TableRowExpansionTable.doc.mjsrename to packages/cli/assets/templates/blocks/components/Table/TableRowExpansionTable.doc.mjsindex f7af9d03f3..b09ac37d14 100644--- a/packages/cli/templates/blocks/components/Table/TableRowExpansionTable.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Table/TableRowExpansionTable.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'useTableRowExpansion',diff --git a/packages/cli/templates/blocks/components/Table/TableRowExpansionTable.tsx b/packages/cli/assets/templates/blocks/components/Table/TableRowExpansionTable.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Table/TableRowExpansionTable.tsxrename to packages/cli/assets/templates/blocks/components/Table/TableRowExpansionTable.tsxdiff --git a/packages/cli/templates/blocks/components/Table/TableRowIndexTable.doc.mjs b/packages/cli/assets/templates/blocks/components/Table/TableRowIndexTable.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Table/TableRowIndexTable.doc.mjsrename to packages/cli/assets/templates/blocks/components/Table/TableRowIndexTable.doc.mjsindex 424245f6a5..6600d7689c 100644--- a/packages/cli/templates/blocks/components/Table/TableRowIndexTable.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Table/TableRowIndexTable.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'useTableRowIndex',diff --git a/packages/cli/templates/blocks/components/Table/TableRowIndexTable.tsx b/packages/cli/assets/templates/blocks/components/Table/TableRowIndexTable.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Table/TableRowIndexTable.tsxrename to packages/cli/assets/templates/blocks/components/Table/TableRowIndexTable.tsxdiff --git a/packages/cli/templates/blocks/components/Table/TableRowStatusTable.doc.mjs b/packages/cli/assets/templates/blocks/components/Table/TableRowStatusTable.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Table/TableRowStatusTable.doc.mjsrename to packages/cli/assets/templates/blocks/components/Table/TableRowStatusTable.doc.mjsindex 3e8d261aee..40e6306d8f 100644--- a/packages/cli/templates/blocks/components/Table/TableRowStatusTable.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Table/TableRowStatusTable.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'useTableRowStatus',diff --git a/packages/cli/templates/blocks/components/Table/TableRowStatusTable.tsx b/packages/cli/assets/templates/blocks/components/Table/TableRowStatusTable.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Table/TableRowStatusTable.tsxrename to packages/cli/assets/templates/blocks/components/Table/TableRowStatusTable.tsxdiff --git a/packages/cli/templates/blocks/components/Table/TableSelectableTable.doc.mjs b/packages/cli/assets/templates/blocks/components/Table/TableSelectableTable.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/Table/TableSelectableTable.doc.mjsrename to packages/cli/assets/templates/blocks/components/Table/TableSelectableTable.doc.mjsindex c615fae279..69b6bdfc10 100644--- a/packages/cli/templates/blocks/components/Table/TableSelectableTable.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Table/TableSelectableTable.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Table',diff --git a/packages/cli/templates/blocks/components/Table/TableSelectableTable.tsx b/packages/cli/assets/templates/blocks/components/Table/TableSelectableTable.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Table/TableSelectableTable.tsxrename to packages/cli/assets/templates/blocks/components/Table/TableSelectableTable.tsxdiff --git a/packages/cli/templates/blocks/components/Table/TableShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Table/TableShowcase.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Table/TableShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Table/TableShowcase.doc.mjsindex e2f4a93da0..9d8dd28bcc 100644--- a/packages/cli/templates/blocks/components/Table/TableShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Table/TableShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Table',diff --git a/packages/cli/templates/blocks/components/Table/TableShowcase.tsx b/packages/cli/assets/templates/blocks/components/Table/TableShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Table/TableShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Table/TableShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Table/TableSortableTable.doc.mjs b/packages/cli/assets/templates/blocks/components/Table/TableSortableTable.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Table/TableSortableTable.doc.mjsrename to packages/cli/assets/templates/blocks/components/Table/TableSortableTable.doc.mjsindex 52f764a17a..207d8a5d47 100644--- a/packages/cli/templates/blocks/components/Table/TableSortableTable.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Table/TableSortableTable.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Table',diff --git a/packages/cli/templates/blocks/components/Table/TableSortableTable.tsx b/packages/cli/assets/templates/blocks/components/Table/TableSortableTable.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Table/TableSortableTable.tsxrename to packages/cli/assets/templates/blocks/components/Table/TableSortableTable.tsxdiff --git a/packages/cli/templates/blocks/components/Table/TableStripedTable.doc.mjs b/packages/cli/assets/templates/blocks/components/Table/TableStripedTable.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Table/TableStripedTable.doc.mjsrename to packages/cli/assets/templates/blocks/components/Table/TableStripedTable.doc.mjsindex 12555f990c..59f2e02adb 100644--- a/packages/cli/templates/blocks/components/Table/TableStripedTable.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Table/TableStripedTable.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Table',diff --git a/packages/cli/templates/blocks/components/Table/TableStripedTable.tsx b/packages/cli/assets/templates/blocks/components/Table/TableStripedTable.tsxsimilarity index 93%rename from packages/cli/templates/blocks/components/Table/TableStripedTable.tsxrename to packages/cli/assets/templates/blocks/components/Table/TableStripedTable.tsxindex 37610cd19e..1e5ae02e99 100644--- a/packages/cli/templates/blocks/components/Table/TableStripedTable.tsx+++ b/packages/cli/assets/templates/blocks/components/Table/TableStripedTable.tsx@@ -59,5 +59,5 @@ const columns: TableColumn<User>[] = [];export default function TableStripedTable() {- return (<Table data={users} columns={columns} idKey="id" isStriped hasHover />);+ return <Table data={users} columns={columns} idKey="id" isStriped hasHover />;}diff --git a/packages/cli/templates/blocks/components/Table/TableTreeTable.doc.mjs b/packages/cli/assets/templates/blocks/components/Table/TableTreeTable.doc.mjssimilarity index 91%rename from packages/cli/templates/blocks/components/Table/TableTreeTable.doc.mjsrename to packages/cli/assets/templates/blocks/components/Table/TableTreeTable.doc.mjsindex 1fc11d14dd..8520377629 100644--- a/packages/cli/templates/blocks/components/Table/TableTreeTable.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Table/TableTreeTable.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'useTableTreeData',diff --git a/packages/cli/templates/blocks/components/Table/TableTreeTable.tsx b/packages/cli/assets/templates/blocks/components/Table/TableTreeTable.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Table/TableTreeTable.tsxrename to packages/cli/assets/templates/blocks/components/Table/TableTreeTable.tsxdiff --git a/packages/cli/templates/blocks/components/Text/TextColors.doc.mjs b/packages/cli/assets/templates/blocks/components/Text/TextColors.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/Text/TextColors.doc.mjsrename to packages/cli/assets/templates/blocks/components/Text/TextColors.doc.mjsindex c06a455a62..06505a5c77 100644--- a/packages/cli/templates/blocks/components/Text/TextColors.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Text/TextColors.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Text',diff --git a/packages/cli/templates/blocks/components/Text/TextColors.tsx b/packages/cli/assets/templates/blocks/components/Text/TextColors.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Text/TextColors.tsxrename to packages/cli/assets/templates/blocks/components/Text/TextColors.tsxdiff --git a/packages/cli/templates/blocks/components/Text/TextHeadingLevels.doc.mjs b/packages/cli/assets/templates/blocks/components/Text/TextHeadingLevels.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/Text/TextHeadingLevels.doc.mjsrename to packages/cli/assets/templates/blocks/components/Text/TextHeadingLevels.doc.mjsindex 5f58fd3909..648b9853b3 100644--- a/packages/cli/templates/blocks/components/Text/TextHeadingLevels.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Text/TextHeadingLevels.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Text',diff --git a/packages/cli/templates/blocks/components/Text/TextHeadingLevels.tsx b/packages/cli/assets/templates/blocks/components/Text/TextHeadingLevels.tsxsimilarity index 93%rename from packages/cli/templates/blocks/components/Text/TextHeadingLevels.tsxrename to packages/cli/assets/templates/blocks/components/Text/TextHeadingLevels.tsxindex 6019aab435..cf785c2121 100644--- a/packages/cli/templates/blocks/components/Text/TextHeadingLevels.tsx+++ b/packages/cli/assets/templates/blocks/components/Text/TextHeadingLevels.tsx@@ -10,7 +10,7 @@ const LEVELS = [1, 2, 3, 4, 5, 6] as const;export default function TextHeadingLevels() {return (<Stack direction="vertical" gap={3}>- {LEVELS.map((level) => (+ {LEVELS.map(level => (<Heading key={level} level={level}>Heading {level}</Heading>diff --git a/packages/cli/templates/blocks/components/Text/TextInline.doc.mjs b/packages/cli/assets/templates/blocks/components/Text/TextInline.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Text/TextInline.doc.mjsrename to packages/cli/assets/templates/blocks/components/Text/TextInline.doc.mjsindex 6a1dc808b9..59e267afac 100644--- a/packages/cli/templates/blocks/components/Text/TextInline.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Text/TextInline.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Text',diff --git a/packages/cli/templates/blocks/components/Text/TextInline.tsx b/packages/cli/assets/templates/blocks/components/Text/TextInline.tsxsimilarity index 51%rename from packages/cli/templates/blocks/components/Text/TextInline.tsxrename to packages/cli/assets/templates/blocks/components/Text/TextInline.tsxindex 5dcbbebbec..0851e4faea 100644--- a/packages/cli/templates/blocks/components/Text/TextInline.tsx+++ b/packages/cli/assets/templates/blocks/components/Text/TextInline.tsx@@ -6,9 +6,9 @@ import {Text} from '@astryxdesign/core/Text';export default function TextInline() {return (- <Text type="body" display="block">Design tokens are{' '}- <Text type="code">themeable</Text>- {' '}and shared across every surface.- </Text>+ <Text type="body" display="block">+ Design tokens are <Text type="code">themeable</Text> and shared across+ every surface.+ </Text>);}diff --git a/packages/cli/templates/blocks/components/Text/TextShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Text/TextShowcase.doc.mjssimilarity index 77%rename from packages/cli/templates/blocks/components/Text/TextShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Text/TextShowcase.doc.mjsindex f78ba7b40a..eaadfadef8 100644--- a/packages/cli/templates/blocks/components/Text/TextShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Text/TextShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Text',diff --git a/packages/cli/templates/blocks/components/Text/TextShowcase.tsx b/packages/cli/assets/templates/blocks/components/Text/TextShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Text/TextShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Text/TextShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Text/TextTruncation.doc.mjs b/packages/cli/assets/templates/blocks/components/Text/TextTruncation.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/Text/TextTruncation.doc.mjsrename to packages/cli/assets/templates/blocks/components/Text/TextTruncation.doc.mjsindex d239568335..ff46a1ba96 100644--- a/packages/cli/templates/blocks/components/Text/TextTruncation.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Text/TextTruncation.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Text',diff --git a/packages/cli/templates/blocks/components/Text/TextTruncation.tsx b/packages/cli/assets/templates/blocks/components/Text/TextTruncation.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Text/TextTruncation.tsxrename to packages/cli/assets/templates/blocks/components/Text/TextTruncation.tsxdiff --git a/packages/cli/templates/blocks/components/Text/TextTypes.doc.mjs b/packages/cli/assets/templates/blocks/components/Text/TextTypes.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/Text/TextTypes.doc.mjsrename to packages/cli/assets/templates/blocks/components/Text/TextTypes.doc.mjsindex 1abf3f9cd4..e5b53f5e2e 100644--- a/packages/cli/templates/blocks/components/Text/TextTypes.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Text/TextTypes.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Text',diff --git a/packages/cli/assets/templates/blocks/components/Text/TextTypes.tsx b/packages/cli/assets/templates/blocks/components/Text/TextTypes.tsxnew file mode 100644index 0000000000..5140d63a93--- /dev/null+++ b/packages/cli/assets/templates/blocks/components/Text/TextTypes.tsx@@ -0,0 +1,69 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++'use client';++import {Text} from '@astryxdesign/core/Text';+import {Stack} from '@astryxdesign/core/Stack';++const TYPES = [+ {+ type: 'body' as const,+ label: 'Body text',+ sample: 'Body text for paragraphs and general content',+ },+ {+ type: 'large' as const,+ label: 'Large text',+ sample: 'Large text for introductions and callouts',+ },+ {+ type: 'label' as const,+ label: 'Label text',+ sample: 'Label text for form fields and section titles',+ },+ {+ type: 'supporting' as const,+ label: 'Supporting text',+ sample: 'Supporting text for captions and metadata',+ },+ {+ type: 'code' as const,+ label: 'Code text',+ sample: 'const theme = defineTheme({})',+ },+ {+ type: 'body' as const,+ label: 'Strikethrough',+ sample: 'Body text with strikethrough decoration',+ hasStrikethrough: true,+ },+ {+ type: 'body' as const,+ label: 'Tabular numbers',+ sample: '1,234.56 78.90 100,000.00',+ hasTabularNumbers: true,+ },+];++export default function TextTypes() {+ return (+ <Stack direction="vertical" gap={3}>+ {TYPES.map(+ ({type, label, sample, hasStrikethrough, hasTabularNumbers}) => (+ <Stack key={label} direction="vertical" gap={0}>+ <Text type="supporting" color="secondary">+ {label}+ </Text>+ <Text+ type={type}+ display="block"+ hasStrikethrough={hasStrikethrough}+ hasTabularNumbers={hasTabularNumbers}>+ {sample}+ </Text>+ </Stack>+ ),+ )}+ </Stack>+ );+}diff --git a/packages/cli/templates/blocks/components/Text/TextWeight.doc.mjs b/packages/cli/assets/templates/blocks/components/Text/TextWeight.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Text/TextWeight.doc.mjsrename to packages/cli/assets/templates/blocks/components/Text/TextWeight.doc.mjsindex 657440421a..e06cbcdd09 100644--- a/packages/cli/templates/blocks/components/Text/TextWeight.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Text/TextWeight.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Text',diff --git a/packages/cli/templates/blocks/components/Text/TextWeight.tsx b/packages/cli/assets/templates/blocks/components/Text/TextWeight.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Text/TextWeight.tsxrename to packages/cli/assets/templates/blocks/components/Text/TextWeight.tsxdiff --git a/packages/cli/templates/blocks/components/Text/TextWordBreak.doc.mjs b/packages/cli/assets/templates/blocks/components/Text/TextWordBreak.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Text/TextWordBreak.doc.mjsrename to packages/cli/assets/templates/blocks/components/Text/TextWordBreak.doc.mjsindex c35f00a311..0761bf27aa 100644--- a/packages/cli/templates/blocks/components/Text/TextWordBreak.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Text/TextWordBreak.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Text',diff --git a/packages/cli/templates/blocks/components/Text/TextWordBreak.tsx b/packages/cli/assets/templates/blocks/components/Text/TextWordBreak.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Text/TextWordBreak.tsxrename to packages/cli/assets/templates/blocks/components/Text/TextWordBreak.tsxdiff --git a/packages/cli/templates/blocks/components/Text/TextWrap.doc.mjs b/packages/cli/assets/templates/blocks/components/Text/TextWrap.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Text/TextWrap.doc.mjsrename to packages/cli/assets/templates/blocks/components/Text/TextWrap.doc.mjsindex bbaac1b733..444c40a33b 100644--- a/packages/cli/templates/blocks/components/Text/TextWrap.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Text/TextWrap.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Text',diff --git a/packages/cli/templates/blocks/components/Text/TextWrap.tsx b/packages/cli/assets/templates/blocks/components/Text/TextWrap.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Text/TextWrap.tsxrename to packages/cli/assets/templates/blocks/components/Text/TextWrap.tsxdiff --git a/packages/cli/templates/blocks/components/TextArea/TextAreaCharacterCount.doc.mjs b/packages/cli/assets/templates/blocks/components/TextArea/TextAreaCharacterCount.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/TextArea/TextAreaCharacterCount.doc.mjsrename to packages/cli/assets/templates/blocks/components/TextArea/TextAreaCharacterCount.doc.mjsindex 65cde0a821..214401d131 100644--- a/packages/cli/templates/blocks/components/TextArea/TextAreaCharacterCount.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TextArea/TextAreaCharacterCount.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TextArea',diff --git a/packages/cli/templates/blocks/components/TextArea/TextAreaCharacterCount.tsx b/packages/cli/assets/templates/blocks/components/TextArea/TextAreaCharacterCount.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TextArea/TextAreaCharacterCount.tsxrename to packages/cli/assets/templates/blocks/components/TextArea/TextAreaCharacterCount.tsxdiff --git a/packages/cli/templates/blocks/components/TextArea/TextAreaShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/TextArea/TextAreaShowcase.doc.mjssimilarity index 81%rename from packages/cli/templates/blocks/components/TextArea/TextAreaShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/TextArea/TextAreaShowcase.doc.mjsindex ad8c81871d..d91aeb2fa2 100644--- a/packages/cli/templates/blocks/components/TextArea/TextAreaShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TextArea/TextAreaShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TextArea',diff --git a/packages/cli/templates/blocks/components/TextArea/TextAreaShowcase.tsx b/packages/cli/assets/templates/blocks/components/TextArea/TextAreaShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TextArea/TextAreaShowcase.tsxrename to packages/cli/assets/templates/blocks/components/TextArea/TextAreaShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/TextArea/TextAreaStates.doc.mjs b/packages/cli/assets/templates/blocks/components/TextArea/TextAreaStates.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/TextArea/TextAreaStates.doc.mjsrename to packages/cli/assets/templates/blocks/components/TextArea/TextAreaStates.doc.mjsindex f3a600c9c7..57d14142bf 100644--- a/packages/cli/templates/blocks/components/TextArea/TextAreaStates.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TextArea/TextAreaStates.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TextArea',diff --git a/packages/cli/templates/blocks/components/TextArea/TextAreaStates.tsx b/packages/cli/assets/templates/blocks/components/TextArea/TextAreaStates.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TextArea/TextAreaStates.tsxrename to packages/cli/assets/templates/blocks/components/TextArea/TextAreaStates.tsxdiff --git a/packages/cli/templates/blocks/components/TextArea/TextAreaValidation.doc.mjs b/packages/cli/assets/templates/blocks/components/TextArea/TextAreaValidation.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/TextArea/TextAreaValidation.doc.mjsrename to packages/cli/assets/templates/blocks/components/TextArea/TextAreaValidation.doc.mjsindex c41c592c17..23ff96769a 100644--- a/packages/cli/templates/blocks/components/TextArea/TextAreaValidation.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TextArea/TextAreaValidation.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TextArea',diff --git a/packages/cli/templates/blocks/components/TextArea/TextAreaValidation.tsx b/packages/cli/assets/templates/blocks/components/TextArea/TextAreaValidation.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TextArea/TextAreaValidation.tsxrename to packages/cli/assets/templates/blocks/components/TextArea/TextAreaValidation.tsxdiff --git a/packages/cli/templates/blocks/components/TextArea/TextAreaWithIcon.doc.mjs b/packages/cli/assets/templates/blocks/components/TextArea/TextAreaWithIcon.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/TextArea/TextAreaWithIcon.doc.mjsrename to packages/cli/assets/templates/blocks/components/TextArea/TextAreaWithIcon.doc.mjsindex ad63fd0345..7f704c108f 100644--- a/packages/cli/templates/blocks/components/TextArea/TextAreaWithIcon.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TextArea/TextAreaWithIcon.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TextArea',diff --git a/packages/cli/templates/blocks/components/TextArea/TextAreaWithIcon.tsx b/packages/cli/assets/templates/blocks/components/TextArea/TextAreaWithIcon.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TextArea/TextAreaWithIcon.tsxrename to packages/cli/assets/templates/blocks/components/TextArea/TextAreaWithIcon.tsxdiff --git a/packages/cli/templates/blocks/components/TextInput/TextInputIcon.doc.mjs b/packages/cli/assets/templates/blocks/components/TextInput/TextInputIcon.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/TextInput/TextInputIcon.doc.mjsrename to packages/cli/assets/templates/blocks/components/TextInput/TextInputIcon.doc.mjsindex ed92584927..c5c75bbc8b 100644--- a/packages/cli/templates/blocks/components/TextInput/TextInputIcon.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TextInput/TextInputIcon.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TextInput',diff --git a/packages/cli/templates/blocks/components/TextInput/TextInputIcon.tsx b/packages/cli/assets/templates/blocks/components/TextInput/TextInputIcon.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TextInput/TextInputIcon.tsxrename to packages/cli/assets/templates/blocks/components/TextInput/TextInputIcon.tsxdiff --git a/packages/cli/templates/blocks/components/TextInput/TextInputSearch.doc.mjs b/packages/cli/assets/templates/blocks/components/TextInput/TextInputSearch.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/TextInput/TextInputSearch.doc.mjsrename to packages/cli/assets/templates/blocks/components/TextInput/TextInputSearch.doc.mjsindex ae00bfd531..ee6199f0ac 100644--- a/packages/cli/templates/blocks/components/TextInput/TextInputSearch.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TextInput/TextInputSearch.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TextInput',diff --git a/packages/cli/templates/blocks/components/TextInput/TextInputSearch.tsx b/packages/cli/assets/templates/blocks/components/TextInput/TextInputSearch.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TextInput/TextInputSearch.tsxrename to packages/cli/assets/templates/blocks/components/TextInput/TextInputSearch.tsxdiff --git a/packages/cli/templates/blocks/components/TextInput/TextInputShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/TextInput/TextInputShowcase.doc.mjssimilarity index 78%rename from packages/cli/templates/blocks/components/TextInput/TextInputShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/TextInput/TextInputShowcase.doc.mjsindex 98a0f2ae79..ab895da596 100644--- a/packages/cli/templates/blocks/components/TextInput/TextInputShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TextInput/TextInputShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TextInput',diff --git a/packages/cli/templates/blocks/components/TextInput/TextInputShowcase.tsx b/packages/cli/assets/templates/blocks/components/TextInput/TextInputShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TextInput/TextInputShowcase.tsxrename to packages/cli/assets/templates/blocks/components/TextInput/TextInputShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/TextInput/TextInputSizes.doc.mjs b/packages/cli/assets/templates/blocks/components/TextInput/TextInputSizes.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/TextInput/TextInputSizes.doc.mjsrename to packages/cli/assets/templates/blocks/components/TextInput/TextInputSizes.doc.mjsindex b67a03f730..97f2cee289 100644--- a/packages/cli/templates/blocks/components/TextInput/TextInputSizes.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TextInput/TextInputSizes.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TextInput',diff --git a/packages/cli/templates/blocks/components/TextInput/TextInputSizes.tsx b/packages/cli/assets/templates/blocks/components/TextInput/TextInputSizes.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TextInput/TextInputSizes.tsxrename to packages/cli/assets/templates/blocks/components/TextInput/TextInputSizes.tsxdiff --git a/packages/cli/templates/blocks/components/TextInput/TextInputStates.doc.mjs b/packages/cli/assets/templates/blocks/components/TextInput/TextInputStates.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/TextInput/TextInputStates.doc.mjsrename to packages/cli/assets/templates/blocks/components/TextInput/TextInputStates.doc.mjsindex 6a875bcc9e..28f2488598 100644--- a/packages/cli/templates/blocks/components/TextInput/TextInputStates.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TextInput/TextInputStates.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TextInput',diff --git a/packages/cli/templates/blocks/components/TextInput/TextInputStates.tsx b/packages/cli/assets/templates/blocks/components/TextInput/TextInputStates.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TextInput/TextInputStates.tsxrename to packages/cli/assets/templates/blocks/components/TextInput/TextInputStates.tsxdiff --git a/packages/cli/templates/blocks/components/TextInput/TextInputStatusVariant.doc.mjs b/packages/cli/assets/templates/blocks/components/TextInput/TextInputStatusVariant.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/TextInput/TextInputStatusVariant.doc.mjsrename to packages/cli/assets/templates/blocks/components/TextInput/TextInputStatusVariant.doc.mjsindex 9dd246e5c5..ddc836b010 100644--- a/packages/cli/templates/blocks/components/TextInput/TextInputStatusVariant.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TextInput/TextInputStatusVariant.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TextInput',diff --git a/packages/cli/templates/blocks/components/TextInput/TextInputStatusVariant.tsx b/packages/cli/assets/templates/blocks/components/TextInput/TextInputStatusVariant.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TextInput/TextInputStatusVariant.tsxrename to packages/cli/assets/templates/blocks/components/TextInput/TextInputStatusVariant.tsxdiff --git a/packages/cli/templates/blocks/components/TextInput/TextInputTypes.doc.mjs b/packages/cli/assets/templates/blocks/components/TextInput/TextInputTypes.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/TextInput/TextInputTypes.doc.mjsrename to packages/cli/assets/templates/blocks/components/TextInput/TextInputTypes.doc.mjsindex abb4f5180f..4009f928ce 100644--- a/packages/cli/templates/blocks/components/TextInput/TextInputTypes.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TextInput/TextInputTypes.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TextInput',diff --git a/packages/cli/templates/blocks/components/TextInput/TextInputTypes.tsx b/packages/cli/assets/templates/blocks/components/TextInput/TextInputTypes.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TextInput/TextInputTypes.tsxrename to packages/cli/assets/templates/blocks/components/TextInput/TextInputTypes.tsxdiff --git a/packages/cli/templates/blocks/components/Theme/ThemeApply.doc.mjs b/packages/cli/assets/templates/blocks/components/Theme/ThemeApply.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Theme/ThemeApply.doc.mjsrename to packages/cli/assets/templates/blocks/components/Theme/ThemeApply.doc.mjsindex 097eb74eb6..fecf269cbe 100644--- a/packages/cli/templates/blocks/components/Theme/ThemeApply.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Theme/ThemeApply.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Theme',diff --git a/packages/cli/templates/blocks/components/Theme/ThemeApply.tsx b/packages/cli/assets/templates/blocks/components/Theme/ThemeApply.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Theme/ThemeApply.tsxrename to packages/cli/assets/templates/blocks/components/Theme/ThemeApply.tsxdiff --git a/packages/cli/templates/blocks/components/Theme/ThemeNested.doc.mjs b/packages/cli/assets/templates/blocks/components/Theme/ThemeNested.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Theme/ThemeNested.doc.mjsrename to packages/cli/assets/templates/blocks/components/Theme/ThemeNested.doc.mjsindex 708645e3cf..fd674cf2e5 100644--- a/packages/cli/templates/blocks/components/Theme/ThemeNested.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Theme/ThemeNested.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Theme',diff --git a/packages/cli/templates/blocks/components/Theme/ThemeNested.tsx b/packages/cli/assets/templates/blocks/components/Theme/ThemeNested.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Theme/ThemeNested.tsxrename to packages/cli/assets/templates/blocks/components/Theme/ThemeNested.tsxdiff --git a/packages/cli/templates/blocks/components/Theme/ThemeShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Theme/ThemeShowcase.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/Theme/ThemeShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Theme/ThemeShowcase.doc.mjsindex 63e85eee5b..a1e08a5414 100644--- a/packages/cli/templates/blocks/components/Theme/ThemeShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Theme/ThemeShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Theme',diff --git a/packages/cli/templates/blocks/components/Theme/ThemeShowcase.tsx b/packages/cli/assets/templates/blocks/components/Theme/ThemeShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Theme/ThemeShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Theme/ThemeShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Theme/ThemeSwitcher.doc.mjs b/packages/cli/assets/templates/blocks/components/Theme/ThemeSwitcher.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Theme/ThemeSwitcher.doc.mjsrename to packages/cli/assets/templates/blocks/components/Theme/ThemeSwitcher.doc.mjsindex 33cb128740..5a980f5284 100644--- a/packages/cli/templates/blocks/components/Theme/ThemeSwitcher.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Theme/ThemeSwitcher.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Theme',diff --git a/packages/cli/templates/blocks/components/Theme/ThemeSwitcher.tsx b/packages/cli/assets/templates/blocks/components/Theme/ThemeSwitcher.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Theme/ThemeSwitcher.tsxrename to packages/cli/assets/templates/blocks/components/Theme/ThemeSwitcher.tsxdiff --git a/packages/cli/templates/blocks/components/Theme/useThemeHookUsage.doc.mjs b/packages/cli/assets/templates/blocks/components/Theme/useThemeHookUsage.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/Theme/useThemeHookUsage.doc.mjsrename to packages/cli/assets/templates/blocks/components/Theme/useThemeHookUsage.doc.mjsindex d2d2a4d9ff..9bf9cc607f 100644--- a/packages/cli/templates/blocks/components/Theme/useThemeHookUsage.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Theme/useThemeHookUsage.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'useTheme',diff --git a/packages/cli/templates/blocks/components/Theme/useThemeHookUsage.tsx b/packages/cli/assets/templates/blocks/components/Theme/useThemeHookUsage.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Theme/useThemeHookUsage.tsxrename to packages/cli/assets/templates/blocks/components/Theme/useThemeHookUsage.tsxdiff --git a/packages/cli/templates/blocks/components/Thumbnail/ThumbnailDisabled.doc.mjs b/packages/cli/assets/templates/blocks/components/Thumbnail/ThumbnailDisabled.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Thumbnail/ThumbnailDisabled.doc.mjsrename to packages/cli/assets/templates/blocks/components/Thumbnail/ThumbnailDisabled.doc.mjsindex 04ff4c9ee7..fda328483b 100644--- a/packages/cli/templates/blocks/components/Thumbnail/ThumbnailDisabled.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Thumbnail/ThumbnailDisabled.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Thumbnail',diff --git a/packages/cli/templates/blocks/components/Thumbnail/ThumbnailDisabled.tsx b/packages/cli/assets/templates/blocks/components/Thumbnail/ThumbnailDisabled.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Thumbnail/ThumbnailDisabled.tsxrename to packages/cli/assets/templates/blocks/components/Thumbnail/ThumbnailDisabled.tsxdiff --git a/packages/cli/templates/blocks/components/Thumbnail/ThumbnailGallery.doc.mjs b/packages/cli/assets/templates/blocks/components/Thumbnail/ThumbnailGallery.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Thumbnail/ThumbnailGallery.doc.mjsrename to packages/cli/assets/templates/blocks/components/Thumbnail/ThumbnailGallery.doc.mjsindex 1701b01c71..c988b03f02 100644--- a/packages/cli/templates/blocks/components/Thumbnail/ThumbnailGallery.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Thumbnail/ThumbnailGallery.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Thumbnail',diff --git a/packages/cli/templates/blocks/components/Thumbnail/ThumbnailGallery.tsx b/packages/cli/assets/templates/blocks/components/Thumbnail/ThumbnailGallery.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Thumbnail/ThumbnailGallery.tsxrename to packages/cli/assets/templates/blocks/components/Thumbnail/ThumbnailGallery.tsxdiff --git a/packages/cli/templates/blocks/components/Thumbnail/ThumbnailRemovable.doc.mjs b/packages/cli/assets/templates/blocks/components/Thumbnail/ThumbnailRemovable.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Thumbnail/ThumbnailRemovable.doc.mjsrename to packages/cli/assets/templates/blocks/components/Thumbnail/ThumbnailRemovable.doc.mjsindex fab2cdac8d..dfa98e7b33 100644--- a/packages/cli/templates/blocks/components/Thumbnail/ThumbnailRemovable.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Thumbnail/ThumbnailRemovable.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Thumbnail',diff --git a/packages/cli/templates/blocks/components/Thumbnail/ThumbnailRemovable.tsx b/packages/cli/assets/templates/blocks/components/Thumbnail/ThumbnailRemovable.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Thumbnail/ThumbnailRemovable.tsxrename to packages/cli/assets/templates/blocks/components/Thumbnail/ThumbnailRemovable.tsxdiff --git a/packages/cli/templates/blocks/components/Thumbnail/ThumbnailShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Thumbnail/ThumbnailShowcase.doc.mjssimilarity index 81%rename from packages/cli/templates/blocks/components/Thumbnail/ThumbnailShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Thumbnail/ThumbnailShowcase.doc.mjsindex c8412375ec..c2d8fdb3a2 100644--- a/packages/cli/templates/blocks/components/Thumbnail/ThumbnailShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Thumbnail/ThumbnailShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Thumbnail',diff --git a/packages/cli/templates/blocks/components/Thumbnail/ThumbnailShowcase.tsx b/packages/cli/assets/templates/blocks/components/Thumbnail/ThumbnailShowcase.tsxsimilarity index 94%rename from packages/cli/templates/blocks/components/Thumbnail/ThumbnailShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Thumbnail/ThumbnailShowcase.tsxindex f1c204cc3f..10d855b372 100644--- a/packages/cli/templates/blocks/components/Thumbnail/ThumbnailShowcase.tsx+++ b/packages/cli/assets/templates/blocks/components/Thumbnail/ThumbnailShowcase.tsx@@ -11,6 +11,10 @@ const SNOWY_PEAKS =export default function ThumbnailShowcase() {return (- <Thumbnail src={SNOWY_PEAKS} alt="Snowy mountain peaks" label="snowy-peaks.jpg" />+ <Thumbnail+ src={SNOWY_PEAKS}+ alt="Snowy mountain peaks"+ label="snowy-peaks.jpg"+ />);}diff --git a/packages/cli/templates/blocks/components/Thumbnail/ThumbnailStates.doc.mjs b/packages/cli/assets/templates/blocks/components/Thumbnail/ThumbnailStates.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Thumbnail/ThumbnailStates.doc.mjsrename to packages/cli/assets/templates/blocks/components/Thumbnail/ThumbnailStates.doc.mjsindex 02f5f9bcbc..a2f38fb952 100644--- a/packages/cli/templates/blocks/components/Thumbnail/ThumbnailStates.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Thumbnail/ThumbnailStates.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Thumbnail',diff --git a/packages/cli/templates/blocks/components/Thumbnail/ThumbnailStates.tsx b/packages/cli/assets/templates/blocks/components/Thumbnail/ThumbnailStates.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Thumbnail/ThumbnailStates.tsxrename to packages/cli/assets/templates/blocks/components/Thumbnail/ThumbnailStates.tsxdiff --git a/packages/cli/templates/blocks/components/TimeInput/TimeInputConstrained.doc.mjs b/packages/cli/assets/templates/blocks/components/TimeInput/TimeInputConstrained.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/TimeInput/TimeInputConstrained.doc.mjsrename to packages/cli/assets/templates/blocks/components/TimeInput/TimeInputConstrained.doc.mjsindex 4b09f08687..cd2613ee8e 100644--- a/packages/cli/templates/blocks/components/TimeInput/TimeInputConstrained.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TimeInput/TimeInputConstrained.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TimeInput',diff --git a/packages/cli/templates/blocks/components/TimeInput/TimeInputConstrained.tsx b/packages/cli/assets/templates/blocks/components/TimeInput/TimeInputConstrained.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TimeInput/TimeInputConstrained.tsxrename to packages/cli/assets/templates/blocks/components/TimeInput/TimeInputConstrained.tsxdiff --git a/packages/cli/templates/blocks/components/TimeInput/TimeInputFormats.doc.mjs b/packages/cli/assets/templates/blocks/components/TimeInput/TimeInputFormats.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/TimeInput/TimeInputFormats.doc.mjsrename to packages/cli/assets/templates/blocks/components/TimeInput/TimeInputFormats.doc.mjsindex 6ef2c70c59..848477c549 100644--- a/packages/cli/templates/blocks/components/TimeInput/TimeInputFormats.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TimeInput/TimeInputFormats.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TimeInput',diff --git a/packages/cli/templates/blocks/components/TimeInput/TimeInputFormats.tsx b/packages/cli/assets/templates/blocks/components/TimeInput/TimeInputFormats.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TimeInput/TimeInputFormats.tsxrename to packages/cli/assets/templates/blocks/components/TimeInput/TimeInputFormats.tsxdiff --git a/packages/cli/templates/blocks/components/TimeInput/TimeInputIncrement.doc.mjs b/packages/cli/assets/templates/blocks/components/TimeInput/TimeInputIncrement.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/TimeInput/TimeInputIncrement.doc.mjsrename to packages/cli/assets/templates/blocks/components/TimeInput/TimeInputIncrement.doc.mjsindex d306f5fab9..e4a2d4c405 100644--- a/packages/cli/templates/blocks/components/TimeInput/TimeInputIncrement.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TimeInput/TimeInputIncrement.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TimeInput',diff --git a/packages/cli/templates/blocks/components/TimeInput/TimeInputIncrement.tsx b/packages/cli/assets/templates/blocks/components/TimeInput/TimeInputIncrement.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TimeInput/TimeInputIncrement.tsxrename to packages/cli/assets/templates/blocks/components/TimeInput/TimeInputIncrement.tsxdiff --git a/packages/cli/templates/blocks/components/TimeInput/TimeInputShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/TimeInput/TimeInputShowcase.doc.mjssimilarity index 81%rename from packages/cli/templates/blocks/components/TimeInput/TimeInputShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/TimeInput/TimeInputShowcase.doc.mjsindex d8b46c0ff8..33f28a9383 100644--- a/packages/cli/templates/blocks/components/TimeInput/TimeInputShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TimeInput/TimeInputShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TimeInput',diff --git a/packages/cli/templates/blocks/components/TimeInput/TimeInputShowcase.tsx b/packages/cli/assets/templates/blocks/components/TimeInput/TimeInputShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TimeInput/TimeInputShowcase.tsxrename to packages/cli/assets/templates/blocks/components/TimeInput/TimeInputShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/TimeInput/TimeInputStates.doc.mjs b/packages/cli/assets/templates/blocks/components/TimeInput/TimeInputStates.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/TimeInput/TimeInputStates.doc.mjsrename to packages/cli/assets/templates/blocks/components/TimeInput/TimeInputStates.doc.mjsindex b3a761ac56..22146071eb 100644--- a/packages/cli/templates/blocks/components/TimeInput/TimeInputStates.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TimeInput/TimeInputStates.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TimeInput',diff --git a/packages/cli/templates/blocks/components/TimeInput/TimeInputStates.tsx b/packages/cli/assets/templates/blocks/components/TimeInput/TimeInputStates.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TimeInput/TimeInputStates.tsxrename to packages/cli/assets/templates/blocks/components/TimeInput/TimeInputStates.tsxdiff --git a/packages/cli/templates/blocks/components/Timestamp/TimestampAutoFormat.doc.mjs b/packages/cli/assets/templates/blocks/components/Timestamp/TimestampAutoFormat.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Timestamp/TimestampAutoFormat.doc.mjsrename to packages/cli/assets/templates/blocks/components/Timestamp/TimestampAutoFormat.doc.mjsindex acf5a0606d..69b975fdc6 100644--- a/packages/cli/templates/blocks/components/Timestamp/TimestampAutoFormat.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Timestamp/TimestampAutoFormat.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Timestamp',diff --git a/packages/cli/templates/blocks/components/Timestamp/TimestampAutoFormat.tsx b/packages/cli/assets/templates/blocks/components/Timestamp/TimestampAutoFormat.tsxsimilarity index 80%rename from packages/cli/templates/blocks/components/Timestamp/TimestampAutoFormat.tsxrename to packages/cli/assets/templates/blocks/components/Timestamp/TimestampAutoFormat.tsxindex cd53350e3e..121663507a 100644--- a/packages/cli/templates/blocks/components/Timestamp/TimestampAutoFormat.tsx+++ b/packages/cli/assets/templates/blocks/components/Timestamp/TimestampAutoFormat.tsx@@ -25,8 +25,16 @@ export default function TimestampAutoFormat() {Older than 7 days — renders as date_time</Text><Stack direction="horizontal" gap={4} vAlign="center">- <Timestamp value="2025-01-15T09:30:00Z" format="auto" color="primary" />- <Timestamp value="2024-06-01T14:00:00Z" format="auto" color="primary" />+ <Timestamp+ value="2025-01-15T09:30:00Z"+ format="auto"+ color="primary"+ />+ <Timestamp+ value="2024-06-01T14:00:00Z"+ format="auto"+ color="primary"+ /></Stack></Stack></Stack>diff --git a/packages/cli/templates/blocks/components/Timestamp/TimestampColors.doc.mjs b/packages/cli/assets/templates/blocks/components/Timestamp/TimestampColors.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/Timestamp/TimestampColors.doc.mjsrename to packages/cli/assets/templates/blocks/components/Timestamp/TimestampColors.doc.mjsindex c726c0f7c4..fb1cb25a72 100644--- a/packages/cli/templates/blocks/components/Timestamp/TimestampColors.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Timestamp/TimestampColors.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Timestamp',diff --git a/packages/cli/templates/blocks/components/Timestamp/TimestampColors.tsx b/packages/cli/assets/templates/blocks/components/Timestamp/TimestampColors.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Timestamp/TimestampColors.tsxrename to packages/cli/assets/templates/blocks/components/Timestamp/TimestampColors.tsxdiff --git a/packages/cli/templates/blocks/components/Timestamp/TimestampFormats.doc.mjs b/packages/cli/assets/templates/blocks/components/Timestamp/TimestampFormats.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Timestamp/TimestampFormats.doc.mjsrename to packages/cli/assets/templates/blocks/components/Timestamp/TimestampFormats.doc.mjsindex 76084f4c7b..67de07e44c 100644--- a/packages/cli/templates/blocks/components/Timestamp/TimestampFormats.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Timestamp/TimestampFormats.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Timestamp',diff --git a/packages/cli/templates/blocks/components/Timestamp/TimestampFormats.tsx b/packages/cli/assets/templates/blocks/components/Timestamp/TimestampFormats.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Timestamp/TimestampFormats.tsxrename to packages/cli/assets/templates/blocks/components/Timestamp/TimestampFormats.tsxdiff --git a/packages/cli/templates/blocks/components/Timestamp/TimestampRelativeFormat.doc.mjs b/packages/cli/assets/templates/blocks/components/Timestamp/TimestampRelativeFormat.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Timestamp/TimestampRelativeFormat.doc.mjsrename to packages/cli/assets/templates/blocks/components/Timestamp/TimestampRelativeFormat.doc.mjsindex a32fe77b18..236a1b6204 100644--- a/packages/cli/templates/blocks/components/Timestamp/TimestampRelativeFormat.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Timestamp/TimestampRelativeFormat.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Timestamp',diff --git a/packages/cli/templates/blocks/components/Timestamp/TimestampRelativeFormat.tsx b/packages/cli/assets/templates/blocks/components/Timestamp/TimestampRelativeFormat.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Timestamp/TimestampRelativeFormat.tsxrename to packages/cli/assets/templates/blocks/components/Timestamp/TimestampRelativeFormat.tsxdiff --git a/packages/cli/templates/blocks/components/Timestamp/TimestampShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Timestamp/TimestampShowcase.doc.mjssimilarity index 78%rename from packages/cli/templates/blocks/components/Timestamp/TimestampShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Timestamp/TimestampShowcase.doc.mjsindex 7065ebcfb1..4f0097273d 100644--- a/packages/cli/templates/blocks/components/Timestamp/TimestampShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Timestamp/TimestampShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Timestamp',diff --git a/packages/cli/templates/blocks/components/Timestamp/TimestampShowcase.tsx b/packages/cli/assets/templates/blocks/components/Timestamp/TimestampShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Timestamp/TimestampShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Timestamp/TimestampShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Timestamp/TimestampTimezone.doc.mjs b/packages/cli/assets/templates/blocks/components/Timestamp/TimestampTimezone.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Timestamp/TimestampTimezone.doc.mjsrename to packages/cli/assets/templates/blocks/components/Timestamp/TimestampTimezone.doc.mjsindex 8650601683..6112ff98d9 100644--- a/packages/cli/templates/blocks/components/Timestamp/TimestampTimezone.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Timestamp/TimestampTimezone.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Timestamp',diff --git a/packages/cli/templates/blocks/components/Timestamp/TimestampTimezone.tsx b/packages/cli/assets/templates/blocks/components/Timestamp/TimestampTimezone.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Timestamp/TimestampTimezone.tsxrename to packages/cli/assets/templates/blocks/components/Timestamp/TimestampTimezone.tsxdiff --git a/packages/cli/templates/blocks/components/Timestamp/TimestampTooltipTimezones.doc.mjs b/packages/cli/assets/templates/blocks/components/Timestamp/TimestampTooltipTimezones.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/Timestamp/TimestampTooltipTimezones.doc.mjsrename to packages/cli/assets/templates/blocks/components/Timestamp/TimestampTooltipTimezones.doc.mjsindex 3ec31a3450..d92ff8e7ae 100644--- a/packages/cli/templates/blocks/components/Timestamp/TimestampTooltipTimezones.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Timestamp/TimestampTooltipTimezones.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Timestamp',diff --git a/packages/cli/templates/blocks/components/Timestamp/TimestampTooltipTimezones.tsx b/packages/cli/assets/templates/blocks/components/Timestamp/TimestampTooltipTimezones.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Timestamp/TimestampTooltipTimezones.tsxrename to packages/cli/assets/templates/blocks/components/Timestamp/TimestampTooltipTimezones.tsxdiff --git a/packages/cli/templates/blocks/components/Toast/ToastAction.doc.mjs b/packages/cli/assets/templates/blocks/components/Toast/ToastAction.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Toast/ToastAction.doc.mjsrename to packages/cli/assets/templates/blocks/components/Toast/ToastAction.doc.mjsindex b3745bf188..a65857584a 100644--- a/packages/cli/templates/blocks/components/Toast/ToastAction.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Toast/ToastAction.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Toast',diff --git a/packages/cli/templates/blocks/components/Toast/ToastAction.tsx b/packages/cli/assets/templates/blocks/components/Toast/ToastAction.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Toast/ToastAction.tsxrename to packages/cli/assets/templates/blocks/components/Toast/ToastAction.tsxdiff --git a/packages/cli/templates/blocks/components/Toast/ToastDeduplication.doc.mjs b/packages/cli/assets/templates/blocks/components/Toast/ToastDeduplication.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Toast/ToastDeduplication.doc.mjsrename to packages/cli/assets/templates/blocks/components/Toast/ToastDeduplication.doc.mjsindex b454fabea5..a53be7ab19 100644--- a/packages/cli/templates/blocks/components/Toast/ToastDeduplication.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Toast/ToastDeduplication.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Toast',diff --git a/packages/cli/templates/blocks/components/Toast/ToastDeduplication.tsx b/packages/cli/assets/templates/blocks/components/Toast/ToastDeduplication.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Toast/ToastDeduplication.tsxrename to packages/cli/assets/templates/blocks/components/Toast/ToastDeduplication.tsxdiff --git a/packages/cli/templates/blocks/components/Toast/ToastDismiss.doc.mjs b/packages/cli/assets/templates/blocks/components/Toast/ToastDismiss.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Toast/ToastDismiss.doc.mjsrename to packages/cli/assets/templates/blocks/components/Toast/ToastDismiss.doc.mjsindex a59cc504d1..2207761ccd 100644--- a/packages/cli/templates/blocks/components/Toast/ToastDismiss.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Toast/ToastDismiss.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Toast',diff --git a/packages/cli/templates/blocks/components/Toast/ToastDismiss.tsx b/packages/cli/assets/templates/blocks/components/Toast/ToastDismiss.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Toast/ToastDismiss.tsxrename to packages/cli/assets/templates/blocks/components/Toast/ToastDismiss.tsxdiff --git a/packages/cli/templates/blocks/components/Toast/ToastShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Toast/ToastShowcase.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Toast/ToastShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Toast/ToastShowcase.doc.mjsindex 3ccbfd0ba7..80fe14399f 100644--- a/packages/cli/templates/blocks/components/Toast/ToastShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Toast/ToastShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Toast',diff --git a/packages/cli/templates/blocks/components/Toast/ToastShowcase.tsx b/packages/cli/assets/templates/blocks/components/Toast/ToastShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Toast/ToastShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Toast/ToastShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Toast/ToastStacking.doc.mjs b/packages/cli/assets/templates/blocks/components/Toast/ToastStacking.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Toast/ToastStacking.doc.mjsrename to packages/cli/assets/templates/blocks/components/Toast/ToastStacking.doc.mjsindex 6193bf328e..934c613156 100644--- a/packages/cli/templates/blocks/components/Toast/ToastStacking.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Toast/ToastStacking.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Toast',diff --git a/packages/cli/templates/blocks/components/Toast/ToastStacking.tsx b/packages/cli/assets/templates/blocks/components/Toast/ToastStacking.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Toast/ToastStacking.tsxrename to packages/cli/assets/templates/blocks/components/Toast/ToastStacking.tsxdiff --git a/packages/cli/templates/blocks/components/Toast/ToastTypes.doc.mjs b/packages/cli/assets/templates/blocks/components/Toast/ToastTypes.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Toast/ToastTypes.doc.mjsrename to packages/cli/assets/templates/blocks/components/Toast/ToastTypes.doc.mjsindex 3ac0a9f124..24d300fcb9 100644--- a/packages/cli/templates/blocks/components/Toast/ToastTypes.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Toast/ToastTypes.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Toast',diff --git a/packages/cli/templates/blocks/components/Toast/ToastTypes.tsx b/packages/cli/assets/templates/blocks/components/Toast/ToastTypes.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Toast/ToastTypes.tsxrename to packages/cli/assets/templates/blocks/components/Toast/ToastTypes.tsxdiff --git a/packages/cli/templates/blocks/components/ToggleButton/ToggleButtonColor.doc.mjs b/packages/cli/assets/templates/blocks/components/ToggleButton/ToggleButtonColor.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/ToggleButton/ToggleButtonColor.doc.mjsrename to packages/cli/assets/templates/blocks/components/ToggleButton/ToggleButtonColor.doc.mjsindex c0eb85ff4e..3403044035 100644--- a/packages/cli/templates/blocks/components/ToggleButton/ToggleButtonColor.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ToggleButton/ToggleButtonColor.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ToggleButton',diff --git a/packages/cli/templates/blocks/components/ToggleButton/ToggleButtonColor.tsx b/packages/cli/assets/templates/blocks/components/ToggleButton/ToggleButtonColor.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ToggleButton/ToggleButtonColor.tsxrename to packages/cli/assets/templates/blocks/components/ToggleButton/ToggleButtonColor.tsxdiff --git a/packages/cli/templates/blocks/components/ToggleButton/ToggleButtonGroup.doc.mjs b/packages/cli/assets/templates/blocks/components/ToggleButton/ToggleButtonGroup.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/ToggleButton/ToggleButtonGroup.doc.mjsrename to packages/cli/assets/templates/blocks/components/ToggleButton/ToggleButtonGroup.doc.mjsindex aaba3bf274..84761a2400 100644--- a/packages/cli/templates/blocks/components/ToggleButton/ToggleButtonGroup.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ToggleButton/ToggleButtonGroup.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ToggleButtonGroup',diff --git a/packages/cli/templates/blocks/components/ToggleButton/ToggleButtonGroup.tsx b/packages/cli/assets/templates/blocks/components/ToggleButton/ToggleButtonGroup.tsxsimilarity index 91%rename from packages/cli/templates/blocks/components/ToggleButton/ToggleButtonGroup.tsxrename to packages/cli/assets/templates/blocks/components/ToggleButton/ToggleButtonGroup.tsxindex 4c4cce863b..159ca80971 100644--- a/packages/cli/templates/blocks/components/ToggleButton/ToggleButtonGroup.tsx+++ b/packages/cli/assets/templates/blocks/components/ToggleButton/ToggleButtonGroup.tsx@@ -7,8 +7,17 @@ import {ToggleButton, ToggleButtonGroup} from '@astryxdesign/core/ToggleButton';import {Stack} from '@astryxdesign/core/Layout';import {Text} from '@astryxdesign/core/Text';import {Icon} from '@astryxdesign/core/Icon';-import {ListBulletIcon, Squares2X2Icon, TableCellsIcon} from '@heroicons/react/24/outline';-import {BoldIcon, ItalicIcon, UnderlineIcon, StrikethroughIcon} from '@heroicons/react/24/outline';+import {+ ListBulletIcon,+ Squares2X2Icon,+ TableCellsIcon,+} from '@heroicons/react/24/outline';+import {+ BoldIcon,+ ItalicIcon,+ UnderlineIcon,+ StrikethroughIcon,+} from '@heroicons/react/24/outline';export default function ToggleButtonGroupBlock() {const [view, setView] = useState<string | null>('list');diff --git a/packages/cli/templates/blocks/components/ToggleButton/ToggleButtonIconSwap.doc.mjs b/packages/cli/assets/templates/blocks/components/ToggleButton/ToggleButtonIconSwap.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/ToggleButton/ToggleButtonIconSwap.doc.mjsrename to packages/cli/assets/templates/blocks/components/ToggleButton/ToggleButtonIconSwap.doc.mjsindex 715b91e654..b6cd0bf980 100644--- a/packages/cli/templates/blocks/components/ToggleButton/ToggleButtonIconSwap.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ToggleButton/ToggleButtonIconSwap.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ToggleButton',diff --git a/packages/cli/templates/blocks/components/ToggleButton/ToggleButtonIconSwap.tsx b/packages/cli/assets/templates/blocks/components/ToggleButton/ToggleButtonIconSwap.tsxsimilarity index 86%rename from packages/cli/templates/blocks/components/ToggleButton/ToggleButtonIconSwap.tsxrename to packages/cli/assets/templates/blocks/components/ToggleButton/ToggleButtonIconSwap.tsxindex e7e5fa0711..8037f839f3 100644--- a/packages/cli/templates/blocks/components/ToggleButton/ToggleButtonIconSwap.tsx+++ b/packages/cli/assets/templates/blocks/components/ToggleButton/ToggleButtonIconSwap.tsx@@ -7,8 +7,16 @@ import {ToggleButton} from '@astryxdesign/core/ToggleButton';import {Stack} from '@astryxdesign/core/Layout';import {Text} from '@astryxdesign/core/Text';import {Icon} from '@astryxdesign/core/Icon';-import {StarIcon as StarOutline, BookmarkIcon as BookmarkOutline, BellIcon, BellSlashIcon} from '@heroicons/react/24/outline';-import {StarIcon as StarSolid, BookmarkIcon as BookmarkSolid} from '@heroicons/react/24/solid';+import {+ StarIcon as StarOutline,+ BookmarkIcon as BookmarkOutline,+ BellIcon,+ BellSlashIcon,+} from '@heroicons/react/24/outline';+import {+ StarIcon as StarSolid,+ BookmarkIcon as BookmarkSolid,+} from '@heroicons/react/24/solid';export default function ToggleButtonIconSwap() {const [isFavorited, setIsFavorited] = useState(false);diff --git a/packages/cli/templates/blocks/components/ToggleButton/ToggleButtonLabel.doc.mjs b/packages/cli/assets/templates/blocks/components/ToggleButton/ToggleButtonLabel.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/ToggleButton/ToggleButtonLabel.doc.mjsrename to packages/cli/assets/templates/blocks/components/ToggleButton/ToggleButtonLabel.doc.mjsindex 5b1f228c85..0670d0c1c9 100644--- a/packages/cli/templates/blocks/components/ToggleButton/ToggleButtonLabel.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ToggleButton/ToggleButtonLabel.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ToggleButton',diff --git a/packages/cli/templates/blocks/components/ToggleButton/ToggleButtonLabel.tsx b/packages/cli/assets/templates/blocks/components/ToggleButton/ToggleButtonLabel.tsxsimilarity index 94%rename from packages/cli/templates/blocks/components/ToggleButton/ToggleButtonLabel.tsxrename to packages/cli/assets/templates/blocks/components/ToggleButton/ToggleButtonLabel.tsxindex b5b0f31f44..5b0589bfb9 100644--- a/packages/cli/templates/blocks/components/ToggleButton/ToggleButtonLabel.tsx+++ b/packages/cli/assets/templates/blocks/components/ToggleButton/ToggleButtonLabel.tsx@@ -7,7 +7,12 @@ import {ToggleButton, ToggleButtonGroup} from '@astryxdesign/core/ToggleButton';import {Stack} from '@astryxdesign/core/Layout';import {Text} from '@astryxdesign/core/Text';import {Icon} from '@astryxdesign/core/Icon';-import {EyeIcon, EyeSlashIcon, FunnelIcon, MapPinIcon} from '@heroicons/react/24/outline';+import {+ EyeIcon,+ EyeSlashIcon,+ FunnelIcon,+ MapPinIcon,+} from '@heroicons/react/24/outline';export default function ToggleButtonLabel() {const [isVisible, setIsVisible] = useState(true);diff --git a/packages/cli/templates/blocks/components/ToggleButton/ToggleButtonShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/ToggleButton/ToggleButtonShowcase.doc.mjssimilarity index 80%rename from packages/cli/templates/blocks/components/ToggleButton/ToggleButtonShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/ToggleButton/ToggleButtonShowcase.doc.mjsindex ab45bc2e26..6dcff9f42c 100644--- a/packages/cli/templates/blocks/components/ToggleButton/ToggleButtonShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ToggleButton/ToggleButtonShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ToggleButton',diff --git a/packages/cli/templates/blocks/components/ToggleButton/ToggleButtonShowcase.tsx b/packages/cli/assets/templates/blocks/components/ToggleButton/ToggleButtonShowcase.tsxsimilarity index 84%rename from packages/cli/templates/blocks/components/ToggleButton/ToggleButtonShowcase.tsxrename to packages/cli/assets/templates/blocks/components/ToggleButton/ToggleButtonShowcase.tsxindex 77d2b1966a..8bb76dda53 100644--- a/packages/cli/templates/blocks/components/ToggleButton/ToggleButtonShowcase.tsx+++ b/packages/cli/assets/templates/blocks/components/ToggleButton/ToggleButtonShowcase.tsx@@ -6,8 +6,16 @@ import {useState} from 'react';import {ToggleButton} from '@astryxdesign/core/ToggleButton';import {Stack} from '@astryxdesign/core/Layout';import {Icon} from '@astryxdesign/core/Icon';-import {StarIcon as StarOutline, BookmarkIcon as BookmarkOutline, BellIcon, BellSlashIcon} from '@heroicons/react/24/outline';-import {StarIcon as StarSolid, BookmarkIcon as BookmarkSolid} from '@heroicons/react/24/solid';+import {+ StarIcon as StarOutline,+ BookmarkIcon as BookmarkOutline,+ BellIcon,+ BellSlashIcon,+} from '@heroicons/react/24/outline';+import {+ StarIcon as StarSolid,+ BookmarkIcon as BookmarkSolid,+} from '@heroicons/react/24/solid';export default function ToggleButtonShowcase() {const [isFavorited, setIsFavorited] = useState(false);diff --git a/packages/cli/templates/blocks/components/ToggleButton/ToggleButtonStates.doc.mjs b/packages/cli/assets/templates/blocks/components/ToggleButton/ToggleButtonStates.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/ToggleButton/ToggleButtonStates.doc.mjsrename to packages/cli/assets/templates/blocks/components/ToggleButton/ToggleButtonStates.doc.mjsindex 9ff9c01f6e..591ccae5fc 100644--- a/packages/cli/templates/blocks/components/ToggleButton/ToggleButtonStates.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ToggleButton/ToggleButtonStates.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ToggleButton',diff --git a/packages/cli/templates/blocks/components/ToggleButton/ToggleButtonStates.tsx b/packages/cli/assets/templates/blocks/components/ToggleButton/ToggleButtonStates.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ToggleButton/ToggleButtonStates.tsxrename to packages/cli/assets/templates/blocks/components/ToggleButton/ToggleButtonStates.tsxdiff --git a/packages/cli/templates/blocks/components/ToggleButtonGroup/ToggleButtonGroupShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/ToggleButtonGroup/ToggleButtonGroupShowcase.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/ToggleButtonGroup/ToggleButtonGroupShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/ToggleButtonGroup/ToggleButtonGroupShowcase.doc.mjsindex b455606548..6f4e504fb6 100644--- a/packages/cli/templates/blocks/components/ToggleButtonGroup/ToggleButtonGroupShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ToggleButtonGroup/ToggleButtonGroupShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ToggleButtonGroup',diff --git a/packages/cli/templates/blocks/components/ToggleButtonGroup/ToggleButtonGroupShowcase.tsx b/packages/cli/assets/templates/blocks/components/ToggleButtonGroup/ToggleButtonGroupShowcase.tsxsimilarity index 93%rename from packages/cli/templates/blocks/components/ToggleButtonGroup/ToggleButtonGroupShowcase.tsxrename to packages/cli/assets/templates/blocks/components/ToggleButtonGroup/ToggleButtonGroupShowcase.tsxindex 82a0425676..2777a2d255 100644--- a/packages/cli/templates/blocks/components/ToggleButtonGroup/ToggleButtonGroupShowcase.tsx+++ b/packages/cli/assets/templates/blocks/components/ToggleButtonGroup/ToggleButtonGroupShowcase.tsx@@ -3,10 +3,7 @@'use client';import {useState} from 'react';-import {- ToggleButton,- ToggleButtonGroup,-} from '@astryxdesign/core/ToggleButton';+import {ToggleButton, ToggleButtonGroup} from '@astryxdesign/core/ToggleButton';import {VStack} from '@astryxdesign/core/Layout';import {Text} from '@astryxdesign/core/Text';diff --git a/packages/cli/templates/blocks/components/ToggleButtonGroup/ToggleButtonGroupVertical.doc.mjs b/packages/cli/assets/templates/blocks/components/ToggleButtonGroup/ToggleButtonGroupVertical.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/ToggleButtonGroup/ToggleButtonGroupVertical.doc.mjsrename to packages/cli/assets/templates/blocks/components/ToggleButtonGroup/ToggleButtonGroupVertical.doc.mjsindex 7c68fd9565..958c2a4fff 100644--- a/packages/cli/templates/blocks/components/ToggleButtonGroup/ToggleButtonGroupVertical.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/ToggleButtonGroup/ToggleButtonGroupVertical.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'ToggleButtonGroup',diff --git a/packages/cli/templates/blocks/components/ToggleButtonGroup/ToggleButtonGroupVertical.tsx b/packages/cli/assets/templates/blocks/components/ToggleButtonGroup/ToggleButtonGroupVertical.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/ToggleButtonGroup/ToggleButtonGroupVertical.tsxrename to packages/cli/assets/templates/blocks/components/ToggleButtonGroup/ToggleButtonGroupVertical.tsxdiff --git a/packages/cli/templates/blocks/components/Token/TokenClickable.doc.mjs b/packages/cli/assets/templates/blocks/components/Token/TokenClickable.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Token/TokenClickable.doc.mjsrename to packages/cli/assets/templates/blocks/components/Token/TokenClickable.doc.mjsindex 8759001536..cd5afbc7f8 100644--- a/packages/cli/templates/blocks/components/Token/TokenClickable.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Token/TokenClickable.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Token',diff --git a/packages/cli/templates/blocks/components/Token/TokenClickable.tsx b/packages/cli/assets/templates/blocks/components/Token/TokenClickable.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Token/TokenClickable.tsxrename to packages/cli/assets/templates/blocks/components/Token/TokenClickable.tsxdiff --git a/packages/cli/templates/blocks/components/Token/TokenColors.doc.mjs b/packages/cli/assets/templates/blocks/components/Token/TokenColors.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/Token/TokenColors.doc.mjsrename to packages/cli/assets/templates/blocks/components/Token/TokenColors.doc.mjsindex c9f37b5c8f..d244f01c7e 100644--- a/packages/cli/templates/blocks/components/Token/TokenColors.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Token/TokenColors.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Token',diff --git a/packages/cli/templates/blocks/components/Token/TokenColors.tsx b/packages/cli/assets/templates/blocks/components/Token/TokenColors.tsxsimilarity index 93%rename from packages/cli/templates/blocks/components/Token/TokenColors.tsxrename to packages/cli/assets/templates/blocks/components/Token/TokenColors.tsxindex e971152706..2e94c9590b 100644--- a/packages/cli/templates/blocks/components/Token/TokenColors.tsx+++ b/packages/cli/assets/templates/blocks/components/Token/TokenColors.tsx@@ -22,11 +22,7 @@ const COLORS = [export default function TokenColors() {return (- <Stack- direction="vertical"- gap={10}- width="100%"- style={{maxWidth: 400}}>+ <Stack direction="vertical" gap={10} width="100%" style={{maxWidth: 400}}><Stack direction="vertical" gap={2}><Text type="supporting" color="secondary">Defaultdiff --git a/packages/cli/templates/blocks/components/Token/TokenEndContent.doc.mjs b/packages/cli/assets/templates/blocks/components/Token/TokenEndContent.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Token/TokenEndContent.doc.mjsrename to packages/cli/assets/templates/blocks/components/Token/TokenEndContent.doc.mjsindex 8b3d855cb8..62b3ad2391 100644--- a/packages/cli/templates/blocks/components/Token/TokenEndContent.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Token/TokenEndContent.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Token',diff --git a/packages/cli/templates/blocks/components/Token/TokenEndContent.tsx b/packages/cli/assets/templates/blocks/components/Token/TokenEndContent.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Token/TokenEndContent.tsxrename to packages/cli/assets/templates/blocks/components/Token/TokenEndContent.tsxdiff --git a/packages/cli/templates/blocks/components/Token/TokenIcon.doc.mjs b/packages/cli/assets/templates/blocks/components/Token/TokenIcon.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Token/TokenIcon.doc.mjsrename to packages/cli/assets/templates/blocks/components/Token/TokenIcon.doc.mjsindex ba85f6a951..c23eb9f73a 100644--- a/packages/cli/templates/blocks/components/Token/TokenIcon.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Token/TokenIcon.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Token',diff --git a/packages/cli/templates/blocks/components/Token/TokenIcon.tsx b/packages/cli/assets/templates/blocks/components/Token/TokenIcon.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Token/TokenIcon.tsxrename to packages/cli/assets/templates/blocks/components/Token/TokenIcon.tsxdiff --git a/packages/cli/templates/blocks/components/Token/TokenRemovable.doc.mjs b/packages/cli/assets/templates/blocks/components/Token/TokenRemovable.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Token/TokenRemovable.doc.mjsrename to packages/cli/assets/templates/blocks/components/Token/TokenRemovable.doc.mjsindex abf0072994..d742475b35 100644--- a/packages/cli/templates/blocks/components/Token/TokenRemovable.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Token/TokenRemovable.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Token',diff --git a/packages/cli/templates/blocks/components/Token/TokenRemovable.tsx b/packages/cli/assets/templates/blocks/components/Token/TokenRemovable.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Token/TokenRemovable.tsxrename to packages/cli/assets/templates/blocks/components/Token/TokenRemovable.tsxdiff --git a/packages/cli/templates/blocks/components/Token/TokenShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Token/TokenShowcase.doc.mjssimilarity index 78%rename from packages/cli/templates/blocks/components/Token/TokenShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Token/TokenShowcase.doc.mjsindex e8760433b2..90fe4defd0 100644--- a/packages/cli/templates/blocks/components/Token/TokenShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Token/TokenShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Token',diff --git a/packages/cli/templates/blocks/components/Token/TokenShowcase.tsx b/packages/cli/assets/templates/blocks/components/Token/TokenShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Token/TokenShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Token/TokenShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Tokenizer/TokenizerClear.doc.mjs b/packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerClear.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/Tokenizer/TokenizerClear.doc.mjsrename to packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerClear.doc.mjsindex 83af451ad0..2c10f629dc 100644--- a/packages/cli/templates/blocks/components/Tokenizer/TokenizerClear.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerClear.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Tokenizer',diff --git a/packages/cli/templates/blocks/components/Tokenizer/TokenizerClear.tsx b/packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerClear.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Tokenizer/TokenizerClear.tsxrename to packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerClear.tsxdiff --git a/packages/cli/templates/blocks/components/Tokenizer/TokenizerCreatable.doc.mjs b/packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerCreatable.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Tokenizer/TokenizerCreatable.doc.mjsrename to packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerCreatable.doc.mjsindex cef98354ca..72e455a578 100644--- a/packages/cli/templates/blocks/components/Tokenizer/TokenizerCreatable.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerCreatable.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Tokenizer',diff --git a/packages/cli/templates/blocks/components/Tokenizer/TokenizerCreatable.tsx b/packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerCreatable.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Tokenizer/TokenizerCreatable.tsxrename to packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerCreatable.tsxdiff --git a/packages/cli/templates/blocks/components/Tokenizer/TokenizerEndContent.doc.mjs b/packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerEndContent.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Tokenizer/TokenizerEndContent.doc.mjsrename to packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerEndContent.doc.mjsindex b24edc3c5b..9dcb1e15c3 100644--- a/packages/cli/templates/blocks/components/Tokenizer/TokenizerEndContent.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerEndContent.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Tokenizer',diff --git a/packages/cli/templates/blocks/components/Tokenizer/TokenizerEndContent.tsx b/packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerEndContent.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Tokenizer/TokenizerEndContent.tsxrename to packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerEndContent.tsxdiff --git a/packages/cli/templates/blocks/components/Tokenizer/TokenizerIcon.doc.mjs b/packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerIcon.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/Tokenizer/TokenizerIcon.doc.mjsrename to packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerIcon.doc.mjsindex 801aec90e2..a4fc294e6f 100644--- a/packages/cli/templates/blocks/components/Tokenizer/TokenizerIcon.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerIcon.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Tokenizer',diff --git a/packages/cli/templates/blocks/components/Tokenizer/TokenizerIcon.tsx b/packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerIcon.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Tokenizer/TokenizerIcon.tsxrename to packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerIcon.tsxdiff --git a/packages/cli/templates/blocks/components/Tokenizer/TokenizerMaxEntries.doc.mjs b/packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerMaxEntries.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Tokenizer/TokenizerMaxEntries.doc.mjsrename to packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerMaxEntries.doc.mjsindex adcab4e8e8..e6961a772d 100644--- a/packages/cli/templates/blocks/components/Tokenizer/TokenizerMaxEntries.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerMaxEntries.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Tokenizer',diff --git a/packages/cli/templates/blocks/components/Tokenizer/TokenizerMaxEntries.tsx b/packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerMaxEntries.tsxsimilarity index 93%rename from packages/cli/templates/blocks/components/Tokenizer/TokenizerMaxEntries.tsxrename to packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerMaxEntries.tsxindex 4ebf69c2e9..a6847e870b 100644--- a/packages/cli/templates/blocks/components/Tokenizer/TokenizerMaxEntries.tsx+++ b/packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerMaxEntries.tsx@@ -28,10 +28,7 @@ const skillSource: SearchSource = {const MAX_SKILLS = 3;export default function TokenizerMaxEntries() {- const [value, setValue] = useState<SearchableItem[]>([- skills[0],- skills[1],- ]);+ const [value, setValue] = useState<SearchableItem[]>([skills[0], skills[1]]);return (<Stack direction="vertical" gap={2}>diff --git a/packages/cli/templates/blocks/components/Tokenizer/TokenizerOverflow.doc.mjs b/packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerOverflow.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/Tokenizer/TokenizerOverflow.doc.mjsrename to packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerOverflow.doc.mjsindex ab851acb0a..0e12f065f9 100644--- a/packages/cli/templates/blocks/components/Tokenizer/TokenizerOverflow.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerOverflow.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Tokenizer',diff --git a/packages/cli/templates/blocks/components/Tokenizer/TokenizerOverflow.tsx b/packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerOverflow.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Tokenizer/TokenizerOverflow.tsxrename to packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerOverflow.tsxdiff --git a/packages/cli/templates/blocks/components/Tokenizer/TokenizerShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerShowcase.doc.mjssimilarity index 82%rename from packages/cli/templates/blocks/components/Tokenizer/TokenizerShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerShowcase.doc.mjsindex e14e9efba9..64d01755db 100644--- a/packages/cli/templates/blocks/components/Tokenizer/TokenizerShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Tokenizer',diff --git a/packages/cli/templates/blocks/components/Tokenizer/TokenizerShowcase.tsx b/packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Tokenizer/TokenizerShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Tokenizer/TokenizerStates.doc.mjs b/packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerStates.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Tokenizer/TokenizerStates.doc.mjsrename to packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerStates.doc.mjsindex d5f0f17771..c89e68dba4 100644--- a/packages/cli/templates/blocks/components/Tokenizer/TokenizerStates.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerStates.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Tokenizer',diff --git a/packages/cli/templates/blocks/components/Tokenizer/TokenizerStates.tsx b/packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerStates.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Tokenizer/TokenizerStates.tsxrename to packages/cli/assets/templates/blocks/components/Tokenizer/TokenizerStates.tsxdiff --git a/packages/cli/templates/blocks/components/Toolbar/ToolbarBulkActions.doc.mjs b/packages/cli/assets/templates/blocks/components/Toolbar/ToolbarBulkActions.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/Toolbar/ToolbarBulkActions.doc.mjsrename to packages/cli/assets/templates/blocks/components/Toolbar/ToolbarBulkActions.doc.mjsindex 5f441aea60..cac5d78ae1 100644--- a/packages/cli/templates/blocks/components/Toolbar/ToolbarBulkActions.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Toolbar/ToolbarBulkActions.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Toolbar',diff --git a/packages/cli/templates/blocks/components/Toolbar/ToolbarBulkActions.tsx b/packages/cli/assets/templates/blocks/components/Toolbar/ToolbarBulkActions.tsxsimilarity index 96%rename from packages/cli/templates/blocks/components/Toolbar/ToolbarBulkActions.tsxrename to packages/cli/assets/templates/blocks/components/Toolbar/ToolbarBulkActions.tsxindex 8e1e2b3cd5..72ea1218a8 100644--- a/packages/cli/templates/blocks/components/Toolbar/ToolbarBulkActions.tsx+++ b/packages/cli/assets/templates/blocks/components/Toolbar/ToolbarBulkActions.tsx@@ -8,7 +8,10 @@ import {Button} from '@astryxdesign/core/Button';import {Icon} from '@astryxdesign/core/Icon';import {Badge} from '@astryxdesign/core/Badge';import {Table} from '@astryxdesign/core/Table';-import {useTableSelection, useTableSelectionState} from '@astryxdesign/core/Table';+import {+ useTableSelection,+ useTableSelectionState,+} from '@astryxdesign/core/Table';import {Stack} from '@astryxdesign/core/Layout';import {TrashIcon, ArchiveBoxIcon} from '@heroicons/react/24/outline';diff --git a/packages/cli/templates/blocks/components/Toolbar/ToolbarCardHeader.doc.mjs b/packages/cli/assets/templates/blocks/components/Toolbar/ToolbarCardHeader.doc.mjssimilarity index 90%rename from packages/cli/templates/blocks/components/Toolbar/ToolbarCardHeader.doc.mjsrename to packages/cli/assets/templates/blocks/components/Toolbar/ToolbarCardHeader.doc.mjsindex e7e79ec360..b8efb98107 100644--- a/packages/cli/templates/blocks/components/Toolbar/ToolbarCardHeader.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Toolbar/ToolbarCardHeader.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Toolbar',diff --git a/packages/cli/templates/blocks/components/Toolbar/ToolbarCardHeader.tsx b/packages/cli/assets/templates/blocks/components/Toolbar/ToolbarCardHeader.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Toolbar/ToolbarCardHeader.tsxrename to packages/cli/assets/templates/blocks/components/Toolbar/ToolbarCardHeader.tsxdiff --git a/packages/cli/templates/blocks/components/Toolbar/ToolbarSizes.doc.mjs b/packages/cli/assets/templates/blocks/components/Toolbar/ToolbarSizes.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/Toolbar/ToolbarSizes.doc.mjsrename to packages/cli/assets/templates/blocks/components/Toolbar/ToolbarSizes.doc.mjsindex a5f73ac6f1..6d901c71ab 100644--- a/packages/cli/templates/blocks/components/Toolbar/ToolbarSizes.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Toolbar/ToolbarSizes.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Toolbar',diff --git a/packages/cli/templates/blocks/components/Toolbar/ToolbarSizes.tsx b/packages/cli/assets/templates/blocks/components/Toolbar/ToolbarSizes.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Toolbar/ToolbarSizes.tsxrename to packages/cli/assets/templates/blocks/components/Toolbar/ToolbarSizes.tsxdiff --git a/packages/cli/templates/blocks/components/Toolbar/ToolbarTableFilter.doc.mjs b/packages/cli/assets/templates/blocks/components/Toolbar/ToolbarTableFilter.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/Toolbar/ToolbarTableFilter.doc.mjsrename to packages/cli/assets/templates/blocks/components/Toolbar/ToolbarTableFilter.doc.mjsindex cede77d729..f94e54c0e0 100644--- a/packages/cli/templates/blocks/components/Toolbar/ToolbarTableFilter.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Toolbar/ToolbarTableFilter.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Toolbar',diff --git a/packages/cli/templates/blocks/components/Toolbar/ToolbarTableFilter.tsx b/packages/cli/assets/templates/blocks/components/Toolbar/ToolbarTableFilter.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Toolbar/ToolbarTableFilter.tsxrename to packages/cli/assets/templates/blocks/components/Toolbar/ToolbarTableFilter.tsxdiff --git a/packages/cli/templates/blocks/components/Toolbar/ToolbarThreeSlot.doc.mjs b/packages/cli/assets/templates/blocks/components/Toolbar/ToolbarThreeSlot.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/Toolbar/ToolbarThreeSlot.doc.mjsrename to packages/cli/assets/templates/blocks/components/Toolbar/ToolbarThreeSlot.doc.mjsindex 9f523da986..7eead7b608 100644--- a/packages/cli/templates/blocks/components/Toolbar/ToolbarThreeSlot.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Toolbar/ToolbarThreeSlot.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Toolbar',diff --git a/packages/cli/templates/blocks/components/Toolbar/ToolbarThreeSlot.tsx b/packages/cli/assets/templates/blocks/components/Toolbar/ToolbarThreeSlot.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Toolbar/ToolbarThreeSlot.tsxrename to packages/cli/assets/templates/blocks/components/Toolbar/ToolbarThreeSlot.tsxdiff --git a/packages/cli/templates/blocks/components/Toolbar/ToolbarWithTabs.doc.mjs b/packages/cli/assets/templates/blocks/components/Toolbar/ToolbarWithTabs.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/Toolbar/ToolbarWithTabs.doc.mjsrename to packages/cli/assets/templates/blocks/components/Toolbar/ToolbarWithTabs.doc.mjsindex 4db78dc18f..6d99168314 100644--- a/packages/cli/templates/blocks/components/Toolbar/ToolbarWithTabs.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Toolbar/ToolbarWithTabs.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Toolbar',diff --git a/packages/cli/templates/blocks/components/Toolbar/ToolbarWithTabs.tsx b/packages/cli/assets/templates/blocks/components/Toolbar/ToolbarWithTabs.tsxsimilarity index 89%rename from packages/cli/templates/blocks/components/Toolbar/ToolbarWithTabs.tsxrename to packages/cli/assets/templates/blocks/components/Toolbar/ToolbarWithTabs.tsxindex d475b14d42..45e9ee2d46 100644--- a/packages/cli/templates/blocks/components/Toolbar/ToolbarWithTabs.tsx+++ b/packages/cli/assets/templates/blocks/components/Toolbar/ToolbarWithTabs.tsx@@ -33,11 +33,7 @@ export default function ToolbarWithTabs() {</TabList>}endContent={- <Button- label="New item"- icon={<Icon icon={PlusIcon} />}- isIconOnly- />+ <Button label="New item" icon={<Icon icon={PlusIcon} />} isIconOnly />}/><Section />diff --git a/packages/cli/templates/blocks/components/Tooltip/TooltipActionBarTooltips.doc.mjs b/packages/cli/assets/templates/blocks/components/Tooltip/TooltipActionBarTooltips.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/Tooltip/TooltipActionBarTooltips.doc.mjsrename to packages/cli/assets/templates/blocks/components/Tooltip/TooltipActionBarTooltips.doc.mjsindex 33c7174386..0500b4a671 100644--- a/packages/cli/templates/blocks/components/Tooltip/TooltipActionBarTooltips.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Tooltip/TooltipActionBarTooltips.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Tooltip',diff --git a/packages/cli/templates/blocks/components/Tooltip/TooltipActionBarTooltips.tsx b/packages/cli/assets/templates/blocks/components/Tooltip/TooltipActionBarTooltips.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Tooltip/TooltipActionBarTooltips.tsxrename to packages/cli/assets/templates/blocks/components/Tooltip/TooltipActionBarTooltips.tsxdiff --git a/packages/cli/templates/blocks/components/Tooltip/TooltipHookUsage.doc.mjs b/packages/cli/assets/templates/blocks/components/Tooltip/TooltipHookUsage.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/Tooltip/TooltipHookUsage.doc.mjsrename to packages/cli/assets/templates/blocks/components/Tooltip/TooltipHookUsage.doc.mjsindex 9f23cc9e9d..831edffc95 100644--- a/packages/cli/templates/blocks/components/Tooltip/TooltipHookUsage.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Tooltip/TooltipHookUsage.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Tooltip',diff --git a/packages/cli/templates/blocks/components/Tooltip/TooltipHookUsage.tsx b/packages/cli/assets/templates/blocks/components/Tooltip/TooltipHookUsage.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Tooltip/TooltipHookUsage.tsxrename to packages/cli/assets/templates/blocks/components/Tooltip/TooltipHookUsage.tsxdiff --git a/packages/cli/templates/blocks/components/Tooltip/TooltipInlineTextTooltips.doc.mjs b/packages/cli/assets/templates/blocks/components/Tooltip/TooltipInlineTextTooltips.doc.mjssimilarity index 82%rename from packages/cli/templates/blocks/components/Tooltip/TooltipInlineTextTooltips.doc.mjsrename to packages/cli/assets/templates/blocks/components/Tooltip/TooltipInlineTextTooltips.doc.mjsindex 3fa274db6f..9e245eff72 100644--- a/packages/cli/templates/blocks/components/Tooltip/TooltipInlineTextTooltips.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Tooltip/TooltipInlineTextTooltips.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Tooltip',diff --git a/packages/cli/templates/blocks/components/Tooltip/TooltipInlineTextTooltips.tsx b/packages/cli/assets/templates/blocks/components/Tooltip/TooltipInlineTextTooltips.tsxsimilarity index 78%rename from packages/cli/templates/blocks/components/Tooltip/TooltipInlineTextTooltips.tsxrename to packages/cli/assets/templates/blocks/components/Tooltip/TooltipInlineTextTooltips.tsxindex 900a8541ca..d697a756ba 100644--- a/packages/cli/templates/blocks/components/Tooltip/TooltipInlineTextTooltips.tsx+++ b/packages/cli/assets/templates/blocks/components/Tooltip/TooltipInlineTextTooltips.tsx@@ -7,15 +7,18 @@ import {Text} from '@astryxdesign/core/Text';export default function TooltipInlineTextTooltips() {return (- <Text type="body">Learn more about our{' '}+ <Text type="body">+ Learn more about our{' '}<Tooltipcontent="Your data is encrypted and never shared"placement="above">privacy policy- </Tooltip>{' '}and{' '}+ </Tooltip>{' '}+ and{' '}<Tooltip content="Standard 30-day agreement" placement="above">terms of service- </Tooltip>.- </Text>+ </Tooltip>+ .+ </Text>);}diff --git a/packages/cli/templates/blocks/components/Tooltip/TooltipShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Tooltip/TooltipShowcase.doc.mjssimilarity index 78%rename from packages/cli/templates/blocks/components/Tooltip/TooltipShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Tooltip/TooltipShowcase.doc.mjsindex 1a4fcffe0a..3edb171f37 100644--- a/packages/cli/templates/blocks/components/Tooltip/TooltipShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Tooltip/TooltipShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Tooltip',diff --git a/packages/cli/templates/blocks/components/Tooltip/TooltipShowcase.tsx b/packages/cli/assets/templates/blocks/components/Tooltip/TooltipShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Tooltip/TooltipShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Tooltip/TooltipShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/TopNav/TopNavCenteredNavigation.doc.mjs b/packages/cli/assets/templates/blocks/components/TopNav/TopNavCenteredNavigation.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/TopNav/TopNavCenteredNavigation.doc.mjsrename to packages/cli/assets/templates/blocks/components/TopNav/TopNavCenteredNavigation.doc.mjsindex f190fb88a6..f1ce83a33d 100644--- a/packages/cli/templates/blocks/components/TopNav/TopNavCenteredNavigation.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TopNav/TopNavCenteredNavigation.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TopNav',diff --git a/packages/cli/templates/blocks/components/TopNav/TopNavCenteredNavigation.tsx b/packages/cli/assets/templates/blocks/components/TopNav/TopNavCenteredNavigation.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TopNav/TopNavCenteredNavigation.tsxrename to packages/cli/assets/templates/blocks/components/TopNav/TopNavCenteredNavigation.tsxdiff --git a/packages/cli/templates/blocks/components/TopNav/TopNavEnterpriseDashboard.doc.mjs b/packages/cli/assets/templates/blocks/components/TopNav/TopNavEnterpriseDashboard.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/TopNav/TopNavEnterpriseDashboard.doc.mjsrename to packages/cli/assets/templates/blocks/components/TopNav/TopNavEnterpriseDashboard.doc.mjsindex e8f51da5a7..626d9ea4fb 100644--- a/packages/cli/templates/blocks/components/TopNav/TopNavEnterpriseDashboard.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TopNav/TopNavEnterpriseDashboard.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TopNav',diff --git a/packages/cli/templates/blocks/components/TopNav/TopNavEnterpriseDashboard.tsx b/packages/cli/assets/templates/blocks/components/TopNav/TopNavEnterpriseDashboard.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TopNav/TopNavEnterpriseDashboard.tsxrename to packages/cli/assets/templates/blocks/components/TopNav/TopNavEnterpriseDashboard.tsxdiff --git a/packages/cli/templates/blocks/components/TopNav/TopNavHoverMenu.doc.mjs b/packages/cli/assets/templates/blocks/components/TopNav/TopNavHoverMenu.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/TopNav/TopNavHoverMenu.doc.mjsrename to packages/cli/assets/templates/blocks/components/TopNav/TopNavHoverMenu.doc.mjsindex 07f25a352a..c3038b6a3b 100644--- a/packages/cli/templates/blocks/components/TopNav/TopNavHoverMenu.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TopNav/TopNavHoverMenu.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TopNav',diff --git a/packages/cli/templates/blocks/components/TopNav/TopNavHoverMenu.tsx b/packages/cli/assets/templates/blocks/components/TopNav/TopNavHoverMenu.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TopNav/TopNavHoverMenu.tsxrename to packages/cli/assets/templates/blocks/components/TopNav/TopNavHoverMenu.tsxdiff --git a/packages/cli/templates/blocks/components/TopNav/TopNavMegaMenu.doc.mjs b/packages/cli/assets/templates/blocks/components/TopNav/TopNavMegaMenu.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/TopNav/TopNavMegaMenu.doc.mjsrename to packages/cli/assets/templates/blocks/components/TopNav/TopNavMegaMenu.doc.mjsindex a13390e623..d4d7d9abf1 100644--- a/packages/cli/templates/blocks/components/TopNav/TopNavMegaMenu.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TopNav/TopNavMegaMenu.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TopNav',diff --git a/packages/cli/templates/blocks/components/TopNav/TopNavMegaMenu.tsx b/packages/cli/assets/templates/blocks/components/TopNav/TopNavMegaMenu.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TopNav/TopNavMegaMenu.tsxrename to packages/cli/assets/templates/blocks/components/TopNav/TopNavMegaMenu.tsxdiff --git a/packages/cli/templates/blocks/components/TopNav/TopNavMultipleDropdowns.doc.mjs b/packages/cli/assets/templates/blocks/components/TopNav/TopNavMultipleDropdowns.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/TopNav/TopNavMultipleDropdowns.doc.mjsrename to packages/cli/assets/templates/blocks/components/TopNav/TopNavMultipleDropdowns.doc.mjsindex 5912111280..aeeaf64e20 100644--- a/packages/cli/templates/blocks/components/TopNav/TopNavMultipleDropdowns.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TopNav/TopNavMultipleDropdowns.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TopNav',diff --git a/packages/cli/templates/blocks/components/TopNav/TopNavMultipleDropdowns.tsx b/packages/cli/assets/templates/blocks/components/TopNav/TopNavMultipleDropdowns.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TopNav/TopNavMultipleDropdowns.tsxrename to packages/cli/assets/templates/blocks/components/TopNav/TopNavMultipleDropdowns.tsxdiff --git a/packages/cli/templates/blocks/components/TopNav/TopNavShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/TopNav/TopNavShowcase.doc.mjssimilarity index 78%rename from packages/cli/templates/blocks/components/TopNav/TopNavShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/TopNav/TopNavShowcase.doc.mjsindex b4267b725c..e382fc5923 100644--- a/packages/cli/templates/blocks/components/TopNav/TopNavShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TopNav/TopNavShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TopNav',diff --git a/packages/cli/templates/blocks/components/TopNav/TopNavShowcase.tsx b/packages/cli/assets/templates/blocks/components/TopNav/TopNavShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TopNav/TopNavShowcase.tsxrename to packages/cli/assets/templates/blocks/components/TopNav/TopNavShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/TopNav/TopNavWithLogo.doc.mjs b/packages/cli/assets/templates/blocks/components/TopNav/TopNavWithLogo.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/TopNav/TopNavWithLogo.doc.mjsrename to packages/cli/assets/templates/blocks/components/TopNav/TopNavWithLogo.doc.mjsindex 30c485902e..e7eee5c769 100644--- a/packages/cli/templates/blocks/components/TopNav/TopNavWithLogo.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TopNav/TopNavWithLogo.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TopNav',diff --git a/packages/cli/templates/blocks/components/TopNav/TopNavWithLogo.tsx b/packages/cli/assets/templates/blocks/components/TopNav/TopNavWithLogo.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TopNav/TopNavWithLogo.tsxrename to packages/cli/assets/templates/blocks/components/TopNav/TopNavWithLogo.tsxdiff --git a/packages/cli/templates/blocks/components/TopNavHeading/TopNavHeadingBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/TopNavHeading/TopNavHeadingBasic.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/TopNavHeading/TopNavHeadingBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/TopNavHeading/TopNavHeadingBasic.doc.mjsindex 25dfd68a1b..40d3ff0173 100644--- a/packages/cli/templates/blocks/components/TopNavHeading/TopNavHeadingBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TopNavHeading/TopNavHeadingBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TopNavHeading',diff --git a/packages/cli/templates/blocks/components/TopNavHeading/TopNavHeadingBasic.tsx b/packages/cli/assets/templates/blocks/components/TopNavHeading/TopNavHeadingBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TopNavHeading/TopNavHeadingBasic.tsxrename to packages/cli/assets/templates/blocks/components/TopNavHeading/TopNavHeadingBasic.tsxdiff --git a/packages/cli/templates/blocks/components/TopNavHeading/TopNavHeadingShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/TopNavHeading/TopNavHeadingShowcase.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/TopNavHeading/TopNavHeadingShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/TopNavHeading/TopNavHeadingShowcase.doc.mjsindex cf7368f6c8..a403cf3ada 100644--- a/packages/cli/templates/blocks/components/TopNavHeading/TopNavHeadingShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TopNavHeading/TopNavHeadingShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TopNavHeading',diff --git a/packages/cli/templates/blocks/components/TopNavHeading/TopNavHeadingShowcase.tsx b/packages/cli/assets/templates/blocks/components/TopNavHeading/TopNavHeadingShowcase.tsxsimilarity index 91%rename from packages/cli/templates/blocks/components/TopNavHeading/TopNavHeadingShowcase.tsxrename to packages/cli/assets/templates/blocks/components/TopNavHeading/TopNavHeadingShowcase.tsxindex 2244f6b783..c2daaf1beb 100644--- a/packages/cli/templates/blocks/components/TopNavHeading/TopNavHeadingShowcase.tsx+++ b/packages/cli/assets/templates/blocks/components/TopNavHeading/TopNavHeadingShowcase.tsx@@ -39,11 +39,7 @@ export default function TopNavHeadingShowcase() {<TopNavlabel="Linked heading example"heading={- <TopNavHeading- heading="Acme Platform"- logo={<AppIcon />}- href="/"- />+ <TopNavHeading heading="Acme Platform" logo={<AppIcon />} href="/" />}/></VStack>diff --git a/packages/cli/templates/blocks/components/TopNavItem/TopNavItemBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/TopNavItem/TopNavItemBasic.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/TopNavItem/TopNavItemBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/TopNavItem/TopNavItemBasic.doc.mjsindex 8317ff98f1..dd9bd94b1e 100644--- a/packages/cli/templates/blocks/components/TopNavItem/TopNavItemBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TopNavItem/TopNavItemBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TopNavItem',diff --git a/packages/cli/templates/blocks/components/TopNavItem/TopNavItemBasic.tsx b/packages/cli/assets/templates/blocks/components/TopNavItem/TopNavItemBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TopNavItem/TopNavItemBasic.tsxrename to packages/cli/assets/templates/blocks/components/TopNavItem/TopNavItemBasic.tsxdiff --git a/packages/cli/templates/blocks/components/TopNavItem/TopNavItemShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/TopNavItem/TopNavItemShowcase.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/TopNavItem/TopNavItemShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/TopNavItem/TopNavItemShowcase.doc.mjsindex 5ecaf04313..81e3ec8248 100644--- a/packages/cli/templates/blocks/components/TopNavItem/TopNavItemShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TopNavItem/TopNavItemShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TopNavItem',diff --git a/packages/cli/templates/blocks/components/TopNavItem/TopNavItemShowcase.tsx b/packages/cli/assets/templates/blocks/components/TopNavItem/TopNavItemShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TopNavItem/TopNavItemShowcase.tsxrename to packages/cli/assets/templates/blocks/components/TopNavItem/TopNavItemShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuBasic.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuBasic.doc.mjsindex 88c2621ba7..749c468b49 100644--- a/packages/cli/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TopNavMegaMenu',diff --git a/packages/cli/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuBasic.tsx b/packages/cli/assets/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuBasic.tsxrename to packages/cli/assets/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuBasic.tsxdiff --git a/packages/cli/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuShowcase.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuShowcase.doc.mjsindex 0c40049393..0c0646977b 100644--- a/packages/cli/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TopNavMegaMenu',diff --git a/packages/cli/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuShowcase.tsx b/packages/cli/assets/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuShowcase.tsxrename to packages/cli/assets/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/TopNavMegaMenuFeaturedCard/TopNavMegaMenuFeaturedCardBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/TopNavMegaMenuFeaturedCard/TopNavMegaMenuFeaturedCardBasic.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/TopNavMegaMenuFeaturedCard/TopNavMegaMenuFeaturedCardBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/TopNavMegaMenuFeaturedCard/TopNavMegaMenuFeaturedCardBasic.doc.mjsindex 699108ebf6..6caac8a54f 100644--- a/packages/cli/templates/blocks/components/TopNavMegaMenuFeaturedCard/TopNavMegaMenuFeaturedCardBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TopNavMegaMenuFeaturedCard/TopNavMegaMenuFeaturedCardBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TopNavMegaMenuFeaturedCard',diff --git a/packages/cli/templates/blocks/components/TopNavMegaMenuFeaturedCard/TopNavMegaMenuFeaturedCardBasic.tsx b/packages/cli/assets/templates/blocks/components/TopNavMegaMenuFeaturedCard/TopNavMegaMenuFeaturedCardBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TopNavMegaMenuFeaturedCard/TopNavMegaMenuFeaturedCardBasic.tsxrename to packages/cli/assets/templates/blocks/components/TopNavMegaMenuFeaturedCard/TopNavMegaMenuFeaturedCardBasic.tsxdiff --git a/packages/cli/templates/blocks/components/TopNavMegaMenuFeaturedCard/TopNavMegaMenuFeaturedCardShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/TopNavMegaMenuFeaturedCard/TopNavMegaMenuFeaturedCardShowcase.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/TopNavMegaMenuFeaturedCard/TopNavMegaMenuFeaturedCardShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/TopNavMegaMenuFeaturedCard/TopNavMegaMenuFeaturedCardShowcase.doc.mjsindex fac87648cc..7f9ded5eac 100644--- a/packages/cli/templates/blocks/components/TopNavMegaMenuFeaturedCard/TopNavMegaMenuFeaturedCardShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TopNavMegaMenuFeaturedCard/TopNavMegaMenuFeaturedCardShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TopNavMegaMenuFeaturedCard',diff --git a/packages/cli/templates/blocks/components/TopNavMegaMenuFeaturedCard/TopNavMegaMenuFeaturedCardShowcase.tsx b/packages/cli/assets/templates/blocks/components/TopNavMegaMenuFeaturedCard/TopNavMegaMenuFeaturedCardShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TopNavMegaMenuFeaturedCard/TopNavMegaMenuFeaturedCardShowcase.tsxrename to packages/cli/assets/templates/blocks/components/TopNavMegaMenuFeaturedCard/TopNavMegaMenuFeaturedCardShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/TopNavMegaMenuItem/TopNavMegaMenuItemBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/TopNavMegaMenuItem/TopNavMegaMenuItemBasic.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/TopNavMegaMenuItem/TopNavMegaMenuItemBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/TopNavMegaMenuItem/TopNavMegaMenuItemBasic.doc.mjsindex ead2b10392..aef8c7e760 100644--- a/packages/cli/templates/blocks/components/TopNavMegaMenuItem/TopNavMegaMenuItemBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TopNavMegaMenuItem/TopNavMegaMenuItemBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TopNavMegaMenuItem',diff --git a/packages/cli/templates/blocks/components/TopNavMegaMenuItem/TopNavMegaMenuItemBasic.tsx b/packages/cli/assets/templates/blocks/components/TopNavMegaMenuItem/TopNavMegaMenuItemBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TopNavMegaMenuItem/TopNavMegaMenuItemBasic.tsxrename to packages/cli/assets/templates/blocks/components/TopNavMegaMenuItem/TopNavMegaMenuItemBasic.tsxdiff --git a/packages/cli/templates/blocks/components/TopNavMegaMenuItem/TopNavMegaMenuItemShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/TopNavMegaMenuItem/TopNavMegaMenuItemShowcase.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/TopNavMegaMenuItem/TopNavMegaMenuItemShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/TopNavMegaMenuItem/TopNavMegaMenuItemShowcase.doc.mjsindex e54b098a2a..6a60a9ef3b 100644--- a/packages/cli/templates/blocks/components/TopNavMegaMenuItem/TopNavMegaMenuItemShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TopNavMegaMenuItem/TopNavMegaMenuItemShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TopNavMegaMenuItem',diff --git a/packages/cli/assets/templates/blocks/components/TopNavMegaMenuItem/TopNavMegaMenuItemShowcase.tsx b/packages/cli/assets/templates/blocks/components/TopNavMegaMenuItem/TopNavMegaMenuItemShowcase.tsxnew file mode 100644index 0000000000..b9cf6a3852--- /dev/null+++ b/packages/cli/assets/templates/blocks/components/TopNavMegaMenuItem/TopNavMegaMenuItemShowcase.tsx@@ -0,0 +1,109 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++'use client';++import {TopNavMegaMenuItem} from '@astryxdesign/core/TopNav';+import {Grid} from '@astryxdesign/core/Grid';++function BoltIcon() {+ return (+ <svg+ width="20"+ height="20"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="1.5">+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z"+ />+ </svg>+ );+}++function CubeIcon() {+ return (+ <svg+ width="20"+ height="20"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="1.5">+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="m21 7.5-9-5.25L3 7.5m18 0-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9"+ />+ </svg>+ );+}++function GlobeIcon() {+ return (+ <svg+ width="20"+ height="20"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="1.5">+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5a17.92 17.92 0 0 1-8.716-2.247m0 0A8.966 8.966 0 0 1 3 12c0-1.264.26-2.466.732-3.558"+ />+ </svg>+ );+}++function WrenchIcon() {+ return (+ <svg+ width="20"+ height="20"+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="1.5">+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ d="M11.42 15.17 17.25 21A2.652 2.652 0 0 0 21 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 1 1-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 0 0 4.486-6.336l-3.276 3.277a3.004 3.004 0 0 1-2.25-2.25l3.276-3.276a4.5 4.5 0 0 0-6.336 4.486c.049.58.025 1.192-.14 1.743"+ />+ </svg>+ );+}++export default function TopNavMegaMenuItemShowcase() {+ return (+ <Grid columns={2} gap={2}>+ <TopNavMegaMenuItem+ title="Edge Functions"+ description="Run serverless code at the network edge"+ icon={<BoltIcon />}+ href="#edge"+ />+ <TopNavMegaMenuItem+ title="Storage"+ description="Object and file storage for your application"+ icon={<CubeIcon />}+ href="#storage"+ />+ <TopNavMegaMenuItem+ title="CDN"+ description="Global content delivery with instant purging"+ icon={<GlobeIcon />}+ href="#cdn"+ />+ <TopNavMegaMenuItem+ title="Build Tools"+ description="Optimized bundling and compilation pipeline"+ icon={<WrenchIcon />}+ href="#build"+ />+ </Grid>+ );+}diff --git a/packages/cli/templates/blocks/components/TopNavMenu/TopNavMenuBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/TopNavMenu/TopNavMenuBasic.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/TopNavMenu/TopNavMenuBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/TopNavMenu/TopNavMenuBasic.doc.mjsindex 92c3a5afa2..7f70c1dc35 100644--- a/packages/cli/templates/blocks/components/TopNavMenu/TopNavMenuBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TopNavMenu/TopNavMenuBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TopNavMenu',diff --git a/packages/cli/templates/blocks/components/TopNavMenu/TopNavMenuBasic.tsx b/packages/cli/assets/templates/blocks/components/TopNavMenu/TopNavMenuBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TopNavMenu/TopNavMenuBasic.tsxrename to packages/cli/assets/templates/blocks/components/TopNavMenu/TopNavMenuBasic.tsxdiff --git a/packages/cli/templates/blocks/components/TopNavMenu/TopNavMenuShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/TopNavMenu/TopNavMenuShowcase.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/TopNavMenu/TopNavMenuShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/TopNavMenu/TopNavMenuShowcase.doc.mjsindex ba79f3f04d..430e91d817 100644--- a/packages/cli/templates/blocks/components/TopNavMenu/TopNavMenuShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TopNavMenu/TopNavMenuShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TopNavMenu',diff --git a/packages/cli/templates/blocks/components/TopNavMenu/TopNavMenuShowcase.tsx b/packages/cli/assets/templates/blocks/components/TopNavMenu/TopNavMenuShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TopNavMenu/TopNavMenuShowcase.tsxrename to packages/cli/assets/templates/blocks/components/TopNavMenu/TopNavMenuShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/TreeList/TreeListFileTreeWithIcons.doc.mjs b/packages/cli/assets/templates/blocks/components/TreeList/TreeListFileTreeWithIcons.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/TreeList/TreeListFileTreeWithIcons.doc.mjsrename to packages/cli/assets/templates/blocks/components/TreeList/TreeListFileTreeWithIcons.doc.mjsindex 18d06c5c66..a3c7b52ce5 100644--- a/packages/cli/templates/blocks/components/TreeList/TreeListFileTreeWithIcons.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TreeList/TreeListFileTreeWithIcons.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TreeList',diff --git a/packages/cli/templates/blocks/components/TreeList/TreeListFileTreeWithIcons.tsx b/packages/cli/assets/templates/blocks/components/TreeList/TreeListFileTreeWithIcons.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TreeList/TreeListFileTreeWithIcons.tsxrename to packages/cli/assets/templates/blocks/components/TreeList/TreeListFileTreeWithIcons.tsxdiff --git a/packages/cli/templates/blocks/components/TreeList/TreeListInteractiveSettings.doc.mjs b/packages/cli/assets/templates/blocks/components/TreeList/TreeListInteractiveSettings.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/TreeList/TreeListInteractiveSettings.doc.mjsrename to packages/cli/assets/templates/blocks/components/TreeList/TreeListInteractiveSettings.doc.mjsindex c54987963c..75fe7f1a15 100644--- a/packages/cli/templates/blocks/components/TreeList/TreeListInteractiveSettings.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TreeList/TreeListInteractiveSettings.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TreeList',diff --git a/packages/cli/templates/blocks/components/TreeList/TreeListInteractiveSettings.tsx b/packages/cli/assets/templates/blocks/components/TreeList/TreeListInteractiveSettings.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TreeList/TreeListInteractiveSettings.tsxrename to packages/cli/assets/templates/blocks/components/TreeList/TreeListInteractiveSettings.tsxdiff --git a/packages/cli/templates/blocks/components/TreeList/TreeListMailboxTree.doc.mjs b/packages/cli/assets/templates/blocks/components/TreeList/TreeListMailboxTree.doc.mjssimilarity index 82%rename from packages/cli/templates/blocks/components/TreeList/TreeListMailboxTree.doc.mjsrename to packages/cli/assets/templates/blocks/components/TreeList/TreeListMailboxTree.doc.mjsindex 84a95081a6..f0817236a0 100644--- a/packages/cli/templates/blocks/components/TreeList/TreeListMailboxTree.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TreeList/TreeListMailboxTree.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TreeList',diff --git a/packages/cli/templates/blocks/components/TreeList/TreeListMailboxTree.tsx b/packages/cli/assets/templates/blocks/components/TreeList/TreeListMailboxTree.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TreeList/TreeListMailboxTree.tsxrename to packages/cli/assets/templates/blocks/components/TreeList/TreeListMailboxTree.tsxdiff --git a/packages/cli/templates/blocks/components/TreeList/TreeListNavigationTree.doc.mjs b/packages/cli/assets/templates/blocks/components/TreeList/TreeListNavigationTree.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/TreeList/TreeListNavigationTree.doc.mjsrename to packages/cli/assets/templates/blocks/components/TreeList/TreeListNavigationTree.doc.mjsindex 492cb311a3..03d7c16f9e 100644--- a/packages/cli/templates/blocks/components/TreeList/TreeListNavigationTree.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TreeList/TreeListNavigationTree.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TreeList',diff --git a/packages/cli/templates/blocks/components/TreeList/TreeListNavigationTree.tsx b/packages/cli/assets/templates/blocks/components/TreeList/TreeListNavigationTree.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TreeList/TreeListNavigationTree.tsxrename to packages/cli/assets/templates/blocks/components/TreeList/TreeListNavigationTree.tsxdiff --git a/packages/cli/templates/blocks/components/TreeList/TreeListShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/TreeList/TreeListShowcase.doc.mjssimilarity index 78%rename from packages/cli/templates/blocks/components/TreeList/TreeListShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/TreeList/TreeListShowcase.doc.mjsindex c2f92e347b..ba4ab6ae05 100644--- a/packages/cli/templates/blocks/components/TreeList/TreeListShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TreeList/TreeListShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TreeList',diff --git a/packages/cli/templates/blocks/components/TreeList/TreeListShowcase.tsx b/packages/cli/assets/templates/blocks/components/TreeList/TreeListShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TreeList/TreeListShowcase.tsxrename to packages/cli/assets/templates/blocks/components/TreeList/TreeListShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/TreeList/TreeListVariants.doc.mjs b/packages/cli/assets/templates/blocks/components/TreeList/TreeListVariants.doc.mjssimilarity index 88%rename from packages/cli/templates/blocks/components/TreeList/TreeListVariants.doc.mjsrename to packages/cli/assets/templates/blocks/components/TreeList/TreeListVariants.doc.mjsindex d03c549b73..805de17a27 100644--- a/packages/cli/templates/blocks/components/TreeList/TreeListVariants.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TreeList/TreeListVariants.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TreeList',diff --git a/packages/cli/templates/blocks/components/TreeList/TreeListVariants.tsx b/packages/cli/assets/templates/blocks/components/TreeList/TreeListVariants.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TreeList/TreeListVariants.tsxrename to packages/cli/assets/templates/blocks/components/TreeList/TreeListVariants.tsxdiff --git a/packages/cli/templates/blocks/components/Typeahead/TypeaheadLimitedResults.doc.mjs b/packages/cli/assets/templates/blocks/components/Typeahead/TypeaheadLimitedResults.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/Typeahead/TypeaheadLimitedResults.doc.mjsrename to packages/cli/assets/templates/blocks/components/Typeahead/TypeaheadLimitedResults.doc.mjsindex 65afbfd625..c8211e3b33 100644--- a/packages/cli/templates/blocks/components/Typeahead/TypeaheadLimitedResults.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Typeahead/TypeaheadLimitedResults.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Typeahead',diff --git a/packages/cli/templates/blocks/components/Typeahead/TypeaheadLimitedResults.tsx b/packages/cli/assets/templates/blocks/components/Typeahead/TypeaheadLimitedResults.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Typeahead/TypeaheadLimitedResults.tsxrename to packages/cli/assets/templates/blocks/components/Typeahead/TypeaheadLimitedResults.tsxdiff --git a/packages/cli/templates/blocks/components/Typeahead/TypeaheadSearchField.doc.mjs b/packages/cli/assets/templates/blocks/components/Typeahead/TypeaheadSearchField.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Typeahead/TypeaheadSearchField.doc.mjsrename to packages/cli/assets/templates/blocks/components/Typeahead/TypeaheadSearchField.doc.mjsindex d56b0f1303..5df4ee23a5 100644--- a/packages/cli/templates/blocks/components/Typeahead/TypeaheadSearchField.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Typeahead/TypeaheadSearchField.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Typeahead',diff --git a/packages/cli/templates/blocks/components/Typeahead/TypeaheadSearchField.tsx b/packages/cli/assets/templates/blocks/components/Typeahead/TypeaheadSearchField.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Typeahead/TypeaheadSearchField.tsxrename to packages/cli/assets/templates/blocks/components/Typeahead/TypeaheadSearchField.tsxdiff --git a/packages/cli/templates/blocks/components/Typeahead/TypeaheadShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/Typeahead/TypeaheadShowcase.doc.mjssimilarity index 78%rename from packages/cli/templates/blocks/components/Typeahead/TypeaheadShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/Typeahead/TypeaheadShowcase.doc.mjsindex 64498537b3..7b37163988 100644--- a/packages/cli/templates/blocks/components/Typeahead/TypeaheadShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Typeahead/TypeaheadShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Typeahead',diff --git a/packages/cli/templates/blocks/components/Typeahead/TypeaheadShowcase.tsx b/packages/cli/assets/templates/blocks/components/Typeahead/TypeaheadShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Typeahead/TypeaheadShowcase.tsxrename to packages/cli/assets/templates/blocks/components/Typeahead/TypeaheadShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/Typeahead/TypeaheadWithHelperText.doc.mjs b/packages/cli/assets/templates/blocks/components/Typeahead/TypeaheadWithHelperText.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Typeahead/TypeaheadWithHelperText.doc.mjsrename to packages/cli/assets/templates/blocks/components/Typeahead/TypeaheadWithHelperText.doc.mjsindex 6905565da4..9fdaedfd20 100644--- a/packages/cli/templates/blocks/components/Typeahead/TypeaheadWithHelperText.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Typeahead/TypeaheadWithHelperText.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Typeahead',diff --git a/packages/cli/templates/blocks/components/Typeahead/TypeaheadWithHelperText.tsx b/packages/cli/assets/templates/blocks/components/Typeahead/TypeaheadWithHelperText.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Typeahead/TypeaheadWithHelperText.tsxrename to packages/cli/assets/templates/blocks/components/Typeahead/TypeaheadWithHelperText.tsxdiff --git a/packages/cli/templates/blocks/components/Typeahead/TypeaheadWithValidation.doc.mjs b/packages/cli/assets/templates/blocks/components/Typeahead/TypeaheadWithValidation.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/Typeahead/TypeaheadWithValidation.doc.mjsrename to packages/cli/assets/templates/blocks/components/Typeahead/TypeaheadWithValidation.doc.mjsindex 3143ee34fb..1901329960 100644--- a/packages/cli/templates/blocks/components/Typeahead/TypeaheadWithValidation.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/Typeahead/TypeaheadWithValidation.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'Typeahead',diff --git a/packages/cli/templates/blocks/components/Typeahead/TypeaheadWithValidation.tsx b/packages/cli/assets/templates/blocks/components/Typeahead/TypeaheadWithValidation.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/Typeahead/TypeaheadWithValidation.tsxrename to packages/cli/assets/templates/blocks/components/Typeahead/TypeaheadWithValidation.tsxdiff --git a/packages/cli/templates/blocks/components/TypeaheadItem/TypeaheadItemBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/TypeaheadItem/TypeaheadItemBasic.doc.mjssimilarity index 87%rename from packages/cli/templates/blocks/components/TypeaheadItem/TypeaheadItemBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/TypeaheadItem/TypeaheadItemBasic.doc.mjsindex c435e54073..ebc61d3489 100644--- a/packages/cli/templates/blocks/components/TypeaheadItem/TypeaheadItemBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TypeaheadItem/TypeaheadItemBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TypeaheadItem',diff --git a/packages/cli/templates/blocks/components/TypeaheadItem/TypeaheadItemBasic.tsx b/packages/cli/assets/templates/blocks/components/TypeaheadItem/TypeaheadItemBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TypeaheadItem/TypeaheadItemBasic.tsxrename to packages/cli/assets/templates/blocks/components/TypeaheadItem/TypeaheadItemBasic.tsxdiff --git a/packages/cli/templates/blocks/components/TypeaheadItem/TypeaheadItemShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/TypeaheadItem/TypeaheadItemShowcase.doc.mjssimilarity index 84%rename from packages/cli/templates/blocks/components/TypeaheadItem/TypeaheadItemShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/TypeaheadItem/TypeaheadItemShowcase.doc.mjsindex 422454b274..3fe1b07a5a 100644--- a/packages/cli/templates/blocks/components/TypeaheadItem/TypeaheadItemShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/TypeaheadItem/TypeaheadItemShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'TypeaheadItem',diff --git a/packages/cli/templates/blocks/components/TypeaheadItem/TypeaheadItemShowcase.tsx b/packages/cli/assets/templates/blocks/components/TypeaheadItem/TypeaheadItemShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/TypeaheadItem/TypeaheadItemShowcase.tsxrename to packages/cli/assets/templates/blocks/components/TypeaheadItem/TypeaheadItemShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/VStack/VStackBasic.doc.mjs b/packages/cli/assets/templates/blocks/components/VStack/VStackBasic.doc.mjssimilarity index 85%rename from packages/cli/templates/blocks/components/VStack/VStackBasic.doc.mjsrename to packages/cli/assets/templates/blocks/components/VStack/VStackBasic.doc.mjsindex 7babdc7f54..a9d98d6d16 100644--- a/packages/cli/templates/blocks/components/VStack/VStackBasic.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/VStack/VStackBasic.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'VStack',diff --git a/packages/cli/templates/blocks/components/VStack/VStackBasic.tsx b/packages/cli/assets/templates/blocks/components/VStack/VStackBasic.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/VStack/VStackBasic.tsxrename to packages/cli/assets/templates/blocks/components/VStack/VStackBasic.tsxdiff --git a/packages/cli/templates/blocks/components/VStack/VStackShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/VStack/VStackShowcase.doc.mjssimilarity index 83%rename from packages/cli/templates/blocks/components/VStack/VStackShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/VStack/VStackShowcase.doc.mjsindex c17769f572..398e57a889 100644--- a/packages/cli/templates/blocks/components/VStack/VStackShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/VStack/VStackShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'VStack',diff --git a/packages/cli/templates/blocks/components/VStack/VStackShowcase.tsx b/packages/cli/assets/templates/blocks/components/VStack/VStackShowcase.tsxsimilarity index 78%rename from packages/cli/templates/blocks/components/VStack/VStackShowcase.tsxrename to packages/cli/assets/templates/blocks/components/VStack/VStackShowcase.tsxindex 87c89d867d..546aa35d48 100644--- a/packages/cli/templates/blocks/components/VStack/VStackShowcase.tsx+++ b/packages/cli/assets/templates/blocks/components/VStack/VStackShowcase.tsx@@ -10,7 +10,9 @@ export default function VStackShowcase() {return (<HStack gap={10} hAlign="center"><VStack gap={2}>- <Text type="supporting" color="secondary">gap=2</Text>+ <Text type="supporting" color="secondary">+ gap=2+ </Text><VStack gap={2}><Badge label="Step 1" /><Badge label="Step 2" />@@ -18,7 +20,9 @@ export default function VStackShowcase() {</VStack></VStack><VStack gap={2}>- <Text type="supporting" color="secondary">gap=4</Text>+ <Text type="supporting" color="secondary">+ gap=4+ </Text><VStack gap={4}><Badge label="Step 1" /><Badge label="Step 2" />@@ -26,7 +30,9 @@ export default function VStackShowcase() {</VStack></VStack><VStack gap={2}>- <Text type="supporting" color="secondary">gap=6</Text>+ <Text type="supporting" color="secondary">+ gap=6+ </Text><VStack gap={6}><Badge label="Step 1" /><Badge label="Step 2" />diff --git a/packages/cli/templates/blocks/components/VisuallyHidden/VisuallyHiddenLiveRegion.doc.mjs b/packages/cli/assets/templates/blocks/components/VisuallyHidden/VisuallyHiddenLiveRegion.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/VisuallyHidden/VisuallyHiddenLiveRegion.doc.mjsrename to packages/cli/assets/templates/blocks/components/VisuallyHidden/VisuallyHiddenLiveRegion.doc.mjsindex aa59c55429..a6a7a49336 100644--- a/packages/cli/templates/blocks/components/VisuallyHidden/VisuallyHiddenLiveRegion.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/VisuallyHidden/VisuallyHiddenLiveRegion.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'VisuallyHidden',diff --git a/packages/cli/templates/blocks/components/VisuallyHidden/VisuallyHiddenLiveRegion.tsx b/packages/cli/assets/templates/blocks/components/VisuallyHidden/VisuallyHiddenLiveRegion.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/VisuallyHidden/VisuallyHiddenLiveRegion.tsxrename to packages/cli/assets/templates/blocks/components/VisuallyHidden/VisuallyHiddenLiveRegion.tsxdiff --git a/packages/cli/templates/blocks/components/VisuallyHidden/VisuallyHiddenShowcase.doc.mjs b/packages/cli/assets/templates/blocks/components/VisuallyHidden/VisuallyHiddenShowcase.doc.mjssimilarity index 82%rename from packages/cli/templates/blocks/components/VisuallyHidden/VisuallyHiddenShowcase.doc.mjsrename to packages/cli/assets/templates/blocks/components/VisuallyHidden/VisuallyHiddenShowcase.doc.mjsindex 3959e8bcea..38740bec8e 100644--- a/packages/cli/templates/blocks/components/VisuallyHidden/VisuallyHiddenShowcase.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/VisuallyHidden/VisuallyHiddenShowcase.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'VisuallyHidden',diff --git a/packages/cli/templates/blocks/components/VisuallyHidden/VisuallyHiddenShowcase.tsx b/packages/cli/assets/templates/blocks/components/VisuallyHidden/VisuallyHiddenShowcase.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/VisuallyHidden/VisuallyHiddenShowcase.tsxrename to packages/cli/assets/templates/blocks/components/VisuallyHidden/VisuallyHiddenShowcase.tsxdiff --git a/packages/cli/templates/blocks/components/VisuallyHidden/VisuallyHiddenStructuralHeading.doc.mjs b/packages/cli/assets/templates/blocks/components/VisuallyHidden/VisuallyHiddenStructuralHeading.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/VisuallyHidden/VisuallyHiddenStructuralHeading.doc.mjsrename to packages/cli/assets/templates/blocks/components/VisuallyHidden/VisuallyHiddenStructuralHeading.doc.mjsindex 9f41ecb9df..fab5e5faee 100644--- a/packages/cli/templates/blocks/components/VisuallyHidden/VisuallyHiddenStructuralHeading.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/VisuallyHidden/VisuallyHiddenStructuralHeading.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'VisuallyHidden',diff --git a/packages/cli/templates/blocks/components/VisuallyHidden/VisuallyHiddenStructuralHeading.tsx b/packages/cli/assets/templates/blocks/components/VisuallyHidden/VisuallyHiddenStructuralHeading.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/VisuallyHidden/VisuallyHiddenStructuralHeading.tsxrename to packages/cli/assets/templates/blocks/components/VisuallyHidden/VisuallyHiddenStructuralHeading.tsxdiff --git a/packages/cli/templates/blocks/components/VisuallyHidden/VisuallyHiddenSupplementaryContext.doc.mjs b/packages/cli/assets/templates/blocks/components/VisuallyHidden/VisuallyHiddenSupplementaryContext.doc.mjssimilarity index 86%rename from packages/cli/templates/blocks/components/VisuallyHidden/VisuallyHiddenSupplementaryContext.doc.mjsrename to packages/cli/assets/templates/blocks/components/VisuallyHidden/VisuallyHiddenSupplementaryContext.doc.mjsindex b579164c89..ca11ad82dc 100644--- a/packages/cli/templates/blocks/components/VisuallyHidden/VisuallyHiddenSupplementaryContext.doc.mjs+++ b/packages/cli/assets/templates/blocks/components/VisuallyHidden/VisuallyHiddenSupplementaryContext.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'block',exampleFor: 'VisuallyHidden',diff --git a/packages/cli/templates/blocks/components/VisuallyHidden/VisuallyHiddenSupplementaryContext.tsx b/packages/cli/assets/templates/blocks/components/VisuallyHidden/VisuallyHiddenSupplementaryContext.tsxsimilarity index 100%rename from packages/cli/templates/blocks/components/VisuallyHidden/VisuallyHiddenSupplementaryContext.tsxrename to packages/cli/assets/templates/blocks/components/VisuallyHidden/VisuallyHiddenSupplementaryContext.tsxdiff --git a/packages/cli/templates/pages/ai-chat-landing/page.tsx b/packages/cli/assets/templates/pages/ai-chat-landing/page.tsxsimilarity index 100%rename from packages/cli/templates/pages/ai-chat-landing/page.tsxrename to packages/cli/assets/templates/pages/ai-chat-landing/page.tsxdiff --git a/packages/cli/templates/pages/ai-chat-landing/template.doc.mjs b/packages/cli/assets/templates/pages/ai-chat-landing/template.doc.mjssimilarity index 81%rename from packages/cli/templates/pages/ai-chat-landing/template.doc.mjsrename to packages/cli/assets/templates/pages/ai-chat-landing/template.doc.mjsindex 15974ec569..e6c3469f98 100644--- a/packages/cli/templates/pages/ai-chat-landing/template.doc.mjs+++ b/packages/cli/assets/templates/pages/ai-chat-landing/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'AI Chat Landing',diff --git a/packages/cli/templates/pages/ai-chat/page.tsx b/packages/cli/assets/templates/pages/ai-chat/page.tsxsimilarity index 100%rename from packages/cli/templates/pages/ai-chat/page.tsxrename to packages/cli/assets/templates/pages/ai-chat/page.tsxdiff --git a/packages/cli/templates/pages/ai-chat/template.doc.mjs b/packages/cli/assets/templates/pages/ai-chat/template.doc.mjssimilarity index 85%rename from packages/cli/templates/pages/ai-chat/template.doc.mjsrename to packages/cli/assets/templates/pages/ai-chat/template.doc.mjsindex 5dcfda3fd6..3343504d55 100644--- a/packages/cli/templates/pages/ai-chat/template.doc.mjs+++ b/packages/cli/assets/templates/pages/ai-chat/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'AI Chat Conversation',diff --git a/packages/cli/templates/pages/blank/page.tsx b/packages/cli/assets/templates/pages/blank/page.tsxsimilarity index 100%rename from packages/cli/templates/pages/blank/page.tsxrename to packages/cli/assets/templates/pages/blank/page.tsxdiff --git a/packages/cli/templates/pages/blank/template.doc.mjs b/packages/cli/assets/templates/pages/blank/template.doc.mjssimilarity index 77%rename from packages/cli/templates/pages/blank/template.doc.mjsrename to packages/cli/assets/templates/pages/blank/template.doc.mjsindex c7b8836d09..266ca17650 100644--- a/packages/cli/templates/pages/blank/template.doc.mjs+++ b/packages/cli/assets/templates/pages/blank/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Blank',diff --git a/packages/cli/templates/pages/centered-hero/page.tsx b/packages/cli/assets/templates/pages/centered-hero/page.tsxsimilarity index 96%rename from packages/cli/templates/pages/centered-hero/page.tsxrename to packages/cli/assets/templates/pages/centered-hero/page.tsxindex 0deace979e..8a00fee2ee 100644--- a/packages/cli/templates/pages/centered-hero/page.tsx+++ b/packages/cli/assets/templates/pages/centered-hero/page.tsx@@ -3,12 +3,7 @@'use client';import type {CSSProperties} from 'react';-import {- VStack,- HStack,- Layout,- LayoutContent,-} from '@astryxdesign/core/Layout';+import {VStack, HStack, Layout, LayoutContent} from '@astryxdesign/core/Layout';import {Text, Heading} from '@astryxdesign/core/Text';import {Button} from '@astryxdesign/core/Button';import {Icon} from '@astryxdesign/core/Icon';diff --git a/packages/cli/templates/pages/centered-hero/template.doc.mjs b/packages/cli/assets/templates/pages/centered-hero/template.doc.mjssimilarity index 80%rename from packages/cli/templates/pages/centered-hero/template.doc.mjsrename to packages/cli/assets/templates/pages/centered-hero/template.doc.mjsindex c98f2d20de..e303d9935c 100644--- a/packages/cli/templates/pages/centered-hero/template.doc.mjs+++ b/packages/cli/assets/templates/pages/centered-hero/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Centered Hero',diff --git a/packages/cli/templates/pages/classic-gallery/page.tsx b/packages/cli/assets/templates/pages/classic-gallery/page.tsxsimilarity index 100%rename from packages/cli/templates/pages/classic-gallery/page.tsxrename to packages/cli/assets/templates/pages/classic-gallery/page.tsxdiff --git a/packages/cli/templates/pages/classic-gallery/template.doc.mjs b/packages/cli/assets/templates/pages/classic-gallery/template.doc.mjssimilarity index 81%rename from packages/cli/templates/pages/classic-gallery/template.doc.mjsrename to packages/cli/assets/templates/pages/classic-gallery/template.doc.mjsindex 3289481256..23640b36e2 100644--- a/packages/cli/templates/pages/classic-gallery/template.doc.mjs+++ b/packages/cli/assets/templates/pages/classic-gallery/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {name: 'Classic Gallery',displayName: 'Classic Gallery',diff --git a/packages/cli/templates/pages/contact-form/page.tsx b/packages/cli/assets/templates/pages/contact-form/page.tsxsimilarity index 97%rename from packages/cli/templates/pages/contact-form/page.tsxrename to packages/cli/assets/templates/pages/contact-form/page.tsxindex eeaf7f8ea9..52977539a4 100644--- a/packages/cli/templates/pages/contact-form/page.tsx+++ b/packages/cli/assets/templates/pages/contact-form/page.tsx@@ -109,11 +109,7 @@ export default function FormSimplePage() {return (<Center axis="horizontal"><VStack hAlign="center" width="100%">- <Section- maxWidth={800}- padding={6}- paddingBlock={10}- variant="section">+ <Section maxWidth={800} padding={6} paddingBlock={10} variant="section"><VStack gap={6}>{/* Header */}<VStack gap={2} hAlign="center">@@ -216,9 +212,7 @@ export default function FormSimplePage() {/>))}</HStack>- {errors.goals && (- <Banner status="error" title={errors.goals} />- )}+ {errors.goals && <Banner status="error" title={errors.goals} />}</VStack><Selectordiff --git a/packages/cli/templates/pages/contact-form/template.doc.mjs b/packages/cli/assets/templates/pages/contact-form/template.doc.mjssimilarity index 81%rename from packages/cli/templates/pages/contact-form/template.doc.mjsrename to packages/cli/assets/templates/pages/contact-form/template.doc.mjsindex 952f822fb7..67ed6851bf 100644--- a/packages/cli/templates/pages/contact-form/template.doc.mjs+++ b/packages/cli/assets/templates/pages/contact-form/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Contact Form',diff --git a/packages/cli/templates/pages/dashboard-portfolio/page.tsx b/packages/cli/assets/templates/pages/dashboard-portfolio/page.tsxsimilarity index 100%rename from packages/cli/templates/pages/dashboard-portfolio/page.tsxrename to packages/cli/assets/templates/pages/dashboard-portfolio/page.tsxdiff --git a/packages/cli/templates/pages/dashboard-portfolio/template.doc.mjs b/packages/cli/assets/templates/pages/dashboard-portfolio/template.doc.mjssimilarity index 83%rename from packages/cli/templates/pages/dashboard-portfolio/template.doc.mjsrename to packages/cli/assets/templates/pages/dashboard-portfolio/template.doc.mjsindex 2f2cb21f1b..0cdd62082a 100644--- a/packages/cli/templates/pages/dashboard-portfolio/template.doc.mjs+++ b/packages/cli/assets/templates/pages/dashboard-portfolio/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Portfolio Dashboard',diff --git a/packages/cli/templates/pages/dashboard/page.tsx b/packages/cli/assets/templates/pages/dashboard/page.tsxsimilarity index 99%rename from packages/cli/templates/pages/dashboard/page.tsxrename to packages/cli/assets/templates/pages/dashboard/page.tsxindex a36a3c1a2b..722c8d52ec 100644--- a/packages/cli/templates/pages/dashboard/page.tsx+++ b/packages/cli/assets/templates/pages/dashboard/page.tsx@@ -2,12 +2,7 @@'use client';-import {- VStack,- HStack,- Layout,- LayoutContent,-} from '@astryxdesign/core/Layout';+import {VStack, HStack, Layout, LayoutContent} from '@astryxdesign/core/Layout';import {Text, Heading} from '@astryxdesign/core/Text';import {Card} from '@astryxdesign/core/Card';import {Button} from '@astryxdesign/core/Button';diff --git a/packages/cli/templates/pages/dashboard/template.doc.mjs b/packages/cli/assets/templates/pages/dashboard/template.doc.mjssimilarity index 82%rename from packages/cli/templates/pages/dashboard/template.doc.mjsrename to packages/cli/assets/templates/pages/dashboard/template.doc.mjsindex 89286178f9..d5e1b20f4b 100644--- a/packages/cli/templates/pages/dashboard/template.doc.mjs+++ b/packages/cli/assets/templates/pages/dashboard/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Analytics Dashboard',diff --git a/packages/cli/templates/pages/detail-page/page.tsx b/packages/cli/assets/templates/pages/detail-page/page.tsxsimilarity index 100%rename from packages/cli/templates/pages/detail-page/page.tsxrename to packages/cli/assets/templates/pages/detail-page/page.tsxdiff --git a/packages/cli/templates/pages/detail-page/template.doc.mjs b/packages/cli/assets/templates/pages/detail-page/template.doc.mjssimilarity index 79%rename from packages/cli/templates/pages/detail-page/template.doc.mjsrename to packages/cli/assets/templates/pages/detail-page/template.doc.mjsindex fec49449ae..80c7094946 100644--- a/packages/cli/templates/pages/detail-page/template.doc.mjs+++ b/packages/cli/assets/templates/pages/detail-page/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Order Detail',diff --git a/packages/cli/templates/pages/documentation-design/page.tsx b/packages/cli/assets/templates/pages/documentation-design/page.tsxsimilarity index 100%rename from packages/cli/templates/pages/documentation-design/page.tsxrename to packages/cli/assets/templates/pages/documentation-design/page.tsxdiff --git a/packages/cli/templates/pages/documentation-design/template.doc.mjs b/packages/cli/assets/templates/pages/documentation-design/template.doc.mjssimilarity index 83%rename from packages/cli/templates/pages/documentation-design/template.doc.mjsrename to packages/cli/assets/templates/pages/documentation-design/template.doc.mjsindex 46d39b3759..7bd4fad3d0 100644--- a/packages/cli/templates/pages/documentation-design/template.doc.mjs+++ b/packages/cli/assets/templates/pages/documentation-design/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Documentation Design',diff --git a/packages/cli/templates/pages/documentation-technical/page.tsx b/packages/cli/assets/templates/pages/documentation-technical/page.tsxsimilarity index 100%rename from packages/cli/templates/pages/documentation-technical/page.tsxrename to packages/cli/assets/templates/pages/documentation-technical/page.tsxdiff --git a/packages/cli/templates/pages/documentation-technical/template.doc.mjs b/packages/cli/assets/templates/pages/documentation-technical/template.doc.mjssimilarity index 83%rename from packages/cli/templates/pages/documentation-technical/template.doc.mjsrename to packages/cli/assets/templates/pages/documentation-technical/template.doc.mjsindex 309d47f843..93be4fe1b1 100644--- a/packages/cli/templates/pages/documentation-technical/template.doc.mjs+++ b/packages/cli/assets/templates/pages/documentation-technical/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Documentation Technical',diff --git a/packages/cli/templates/pages/documentation/page.tsx b/packages/cli/assets/templates/pages/documentation/page.tsxsimilarity index 98%rename from packages/cli/templates/pages/documentation/page.tsxrename to packages/cli/assets/templates/pages/documentation/page.tsxindex 51111739e5..1415c4e2f6 100644--- a/packages/cli/templates/pages/documentation/page.tsx+++ b/packages/cli/assets/templates/pages/documentation/page.tsx@@ -235,10 +235,7 @@ export default function DocumentationOverviewPage() {{COMPONENT_CATEGORIES.map(category => (<VStack key={category.label} gap={4}><Heading level={2}>{category.label}</Heading>- <Grid- columns={{minWidth: 260}}- gap={2}- style={cardGrid}>+ <Grid columns={{minWidth: 260}} gap={2} style={cardGrid}>{category.items.map(item => (<ClickableCardkey={item.key}diff --git a/packages/cli/templates/pages/documentation/template.doc.mjs b/packages/cli/assets/templates/pages/documentation/template.doc.mjssimilarity index 84%rename from packages/cli/templates/pages/documentation/template.doc.mjsrename to packages/cli/assets/templates/pages/documentation/template.doc.mjsindex 1b5a28071a..a956aecd90 100644--- a/packages/cli/templates/pages/documentation/template.doc.mjs+++ b/packages/cli/assets/templates/pages/documentation/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Documentation Catalog',diff --git a/packages/cli/templates/pages/editor/page.tsx b/packages/cli/assets/templates/pages/editor/page.tsxsimilarity index 98%rename from packages/cli/templates/pages/editor/page.tsxrename to packages/cli/assets/templates/pages/editor/page.tsxindex 090b40b5c5..148bf59e95 100644--- a/packages/cli/templates/pages/editor/page.tsx+++ b/packages/cli/assets/templates/pages/editor/page.tsx@@ -62,13 +62,7 @@ import {import {Spinner} from '@astryxdesign/core/Spinner';type BlockType =- | 'hero'- | 'text'- | 'image'- | 'button'- | 'cards'- | 'features'- | 'cta';+ 'hero' | 'text' | 'image' | 'button' | 'cards' | 'features' | 'cta';interface Block {id: string;@@ -139,11 +133,7 @@ const TRANSACTION_COLUMNS: TableColumn<Transaction>[] = [key: 'amount',header: 'Amount',renderCell: (item: Transaction) => (- <Text- type="label"- weight="semibold"- color={undefined}- hasTabularNumbers>+ <Text type="label" weight="semibold" color={undefined} hasTabularNumbers>{item.amount}</Text>),@@ -913,9 +903,7 @@ export default function EditorPage() {start={isMobile ? undefined : sidebar}content={<LayoutContent padding={8}>- <VStack- gap={4}- style={canvasStyle(VIEWPORT_MAX[viewport])}>+ <VStack gap={4} style={canvasStyle(VIEWPORT_MAX[viewport])}>{blocks.length > 0 ? (blocks.map(block => (<BlockPreview@@ -960,9 +948,7 @@ export default function EditorPage() {</HStack></LayoutHeader>}- content={- <LayoutContent padding={0}>{editingContent}</LayoutContent>- }+ content={<LayoutContent padding={0}>{editingContent}</LayoutContent>}/></Dialog></>diff --git a/packages/cli/templates/pages/editor/template.doc.mjs b/packages/cli/assets/templates/pages/editor/template.doc.mjssimilarity index 80%rename from packages/cli/templates/pages/editor/template.doc.mjsrename to packages/cli/assets/templates/pages/editor/template.doc.mjsindex d1b909cd85..9d97134c1e 100644--- a/packages/cli/templates/pages/editor/template.doc.mjs+++ b/packages/cli/assets/templates/pages/editor/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Page Editor',diff --git a/packages/cli/templates/pages/file-explorer/page.tsx b/packages/cli/assets/templates/pages/file-explorer/page.tsxsimilarity index 99%rename from packages/cli/templates/pages/file-explorer/page.tsxrename to packages/cli/assets/templates/pages/file-explorer/page.tsxindex 009c3d5399..4923267847 100644--- a/packages/cli/templates/pages/file-explorer/page.tsx+++ b/packages/cli/assets/templates/pages/file-explorer/page.tsx@@ -263,7 +263,11 @@ const page: CSSProperties = {height: '100dvh'};const columnRow: CSSProperties = {overflowX: 'auto', overflowY: 'hidden'};const scrollable: CSSProperties = {overflowY: 'auto'};const fixedColumn: CSSProperties = {flexShrink: 0};-const detailColumn: CSSProperties = {flexGrow: 1, flexShrink: 0, flexBasis: 320};+const detailColumn: CSSProperties = {+ flexGrow: 1,+ flexShrink: 0,+ flexBasis: 320,+};function findItem(items: FileSystemItem[], id: string): FileSystemItem | null {for (const item of items) {diff --git a/packages/cli/templates/pages/file-explorer/template.doc.mjs b/packages/cli/assets/templates/pages/file-explorer/template.doc.mjssimilarity index 79%rename from packages/cli/templates/pages/file-explorer/template.doc.mjsrename to packages/cli/assets/templates/pages/file-explorer/template.doc.mjsindex ec7bee292d..5c7d197ea4 100644--- a/packages/cli/templates/pages/file-explorer/template.doc.mjs+++ b/packages/cli/assets/templates/pages/file-explorer/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'File Explorer',diff --git a/packages/cli/templates/pages/form-two-column/page.tsx b/packages/cli/assets/templates/pages/form-two-column/page.tsxsimilarity index 100%rename from packages/cli/templates/pages/form-two-column/page.tsxrename to packages/cli/assets/templates/pages/form-two-column/page.tsxdiff --git a/packages/cli/templates/pages/form-two-column/template.doc.mjs b/packages/cli/assets/templates/pages/form-two-column/template.doc.mjssimilarity index 80%rename from packages/cli/templates/pages/form-two-column/template.doc.mjsrename to packages/cli/assets/templates/pages/form-two-column/template.doc.mjsindex d59d39866e..14de48fefe 100644--- a/packages/cli/templates/pages/form-two-column/template.doc.mjs+++ b/packages/cli/assets/templates/pages/form-two-column/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Two-column Form',diff --git a/packages/cli/templates/pages/gallery-hero/page.tsx b/packages/cli/assets/templates/pages/gallery-hero/page.tsxsimilarity index 92%rename from packages/cli/templates/pages/gallery-hero/page.tsxrename to packages/cli/assets/templates/pages/gallery-hero/page.tsxindex bc30dae6b0..3794fa12ae 100644--- a/packages/cli/templates/pages/gallery-hero/page.tsx+++ b/packages/cli/assets/templates/pages/gallery-hero/page.tsx@@ -3,12 +3,7 @@'use client';import type {CSSProperties} from 'react';-import {- VStack,- HStack,- Layout,- LayoutContent,-} from '@astryxdesign/core/Layout';+import {VStack, HStack, Layout, LayoutContent} from '@astryxdesign/core/Layout';import {Text, Heading} from '@astryxdesign/core/Text';import {Button} from '@astryxdesign/core/Button';import {Icon} from '@astryxdesign/core/Icon';@@ -87,11 +82,7 @@ export default function GalleryHero() {key={image.src}ratio={4 / 5}style={galleryImageClip}>- <img- style={galleryImage}- src={image.src}- alt={image.alt}- />+ <img style={galleryImage} src={image.src} alt={image.alt} /></AspectRatio>))}</Grid>diff --git a/packages/cli/templates/pages/gallery-hero/template.doc.mjs b/packages/cli/assets/templates/pages/gallery-hero/template.doc.mjssimilarity index 81%rename from packages/cli/templates/pages/gallery-hero/template.doc.mjsrename to packages/cli/assets/templates/pages/gallery-hero/template.doc.mjsindex a19b2a0c53..9bc5c4a2c8 100644--- a/packages/cli/templates/pages/gallery-hero/template.doc.mjs+++ b/packages/cli/assets/templates/pages/gallery-hero/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Gallery Hero',diff --git a/packages/cli/templates/pages/ide/page.tsx b/packages/cli/assets/templates/pages/ide/page.tsxsimilarity index 100%rename from packages/cli/templates/pages/ide/page.tsxrename to packages/cli/assets/templates/pages/ide/page.tsxdiff --git a/packages/cli/templates/pages/ide/template.doc.mjs b/packages/cli/assets/templates/pages/ide/template.doc.mjssimilarity index 82%rename from packages/cli/templates/pages/ide/template.doc.mjsrename to packages/cli/assets/templates/pages/ide/template.doc.mjsindex 5d3eb22eec..0184a7f533 100644--- a/packages/cli/templates/pages/ide/template.doc.mjs+++ b/packages/cli/assets/templates/pages/ide/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'IDE',diff --git a/packages/cli/templates/pages/incident-console/page.tsx b/packages/cli/assets/templates/pages/incident-console/page.tsxsimilarity index 100%rename from packages/cli/templates/pages/incident-console/page.tsxrename to packages/cli/assets/templates/pages/incident-console/page.tsxdiff --git a/packages/cli/templates/pages/incident-console/template.doc.mjs b/packages/cli/assets/templates/pages/incident-console/template.doc.mjssimilarity index 87%rename from packages/cli/templates/pages/incident-console/template.doc.mjsrename to packages/cli/assets/templates/pages/incident-console/template.doc.mjsindex fb8521df8a..fe16c83093 100644--- a/packages/cli/templates/pages/incident-console/template.doc.mjs+++ b/packages/cli/assets/templates/pages/incident-console/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Incident Console',diff --git a/packages/cli/templates/pages/kanban-board/page.tsx b/packages/cli/assets/templates/pages/kanban-board/page.tsxsimilarity index 100%rename from packages/cli/templates/pages/kanban-board/page.tsxrename to packages/cli/assets/templates/pages/kanban-board/page.tsxdiff --git a/packages/cli/templates/pages/kanban-board/template.doc.mjs b/packages/cli/assets/templates/pages/kanban-board/template.doc.mjssimilarity index 82%rename from packages/cli/templates/pages/kanban-board/template.doc.mjsrename to packages/cli/assets/templates/pages/kanban-board/template.doc.mjsindex 17a5df7d62..4d470b9954 100644--- a/packages/cli/templates/pages/kanban-board/template.doc.mjs+++ b/packages/cli/assets/templates/pages/kanban-board/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Kanban Board',diff --git a/packages/cli/templates/pages/library/page.tsx b/packages/cli/assets/templates/pages/library/page.tsxsimilarity index 100%rename from packages/cli/templates/pages/library/page.tsxrename to packages/cli/assets/templates/pages/library/page.tsxdiff --git a/packages/cli/templates/pages/library/template.doc.mjs b/packages/cli/assets/templates/pages/library/template.doc.mjssimilarity index 80%rename from packages/cli/templates/pages/library/template.doc.mjsrename to packages/cli/assets/templates/pages/library/template.doc.mjsindex beaa689677..41cd897c47 100644--- a/packages/cli/templates/pages/library/template.doc.mjs+++ b/packages/cli/assets/templates/pages/library/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Card Grid',diff --git a/packages/cli/templates/pages/login-card/page.tsx b/packages/cli/assets/templates/pages/login-card/page.tsxsimilarity index 100%rename from packages/cli/templates/pages/login-card/page.tsxrename to packages/cli/assets/templates/pages/login-card/page.tsxdiff --git a/packages/cli/templates/pages/login-card/template.doc.mjs b/packages/cli/assets/templates/pages/login-card/template.doc.mjssimilarity index 79%rename from packages/cli/templates/pages/login-card/template.doc.mjsrename to packages/cli/assets/templates/pages/login-card/template.doc.mjsindex ed1548d404..2d44129d15 100644--- a/packages/cli/templates/pages/login-card/template.doc.mjs+++ b/packages/cli/assets/templates/pages/login-card/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Login Card',diff --git a/packages/cli/templates/pages/login-split/page.tsx b/packages/cli/assets/templates/pages/login-split/page.tsxsimilarity index 100%rename from packages/cli/templates/pages/login-split/page.tsxrename to packages/cli/assets/templates/pages/login-split/page.tsxdiff --git a/packages/cli/templates/pages/login-split/template.doc.mjs b/packages/cli/assets/templates/pages/login-split/template.doc.mjssimilarity index 78%rename from packages/cli/templates/pages/login-split/template.doc.mjsrename to packages/cli/assets/templates/pages/login-split/template.doc.mjsindex 69c8243f07..c1ec7093b1 100644--- a/packages/cli/templates/pages/login-split/template.doc.mjs+++ b/packages/cli/assets/templates/pages/login-split/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Login Split',diff --git a/packages/cli/templates/pages/login-sso/page.tsx b/packages/cli/assets/templates/pages/login-sso/page.tsxsimilarity index 100%rename from packages/cli/templates/pages/login-sso/page.tsxrename to packages/cli/assets/templates/pages/login-sso/page.tsxdiff --git a/packages/cli/templates/pages/login-sso/template.doc.mjs b/packages/cli/assets/templates/pages/login-sso/template.doc.mjssimilarity index 78%rename from packages/cli/templates/pages/login-sso/template.doc.mjsrename to packages/cli/assets/templates/pages/login-sso/template.doc.mjsindex 4995b51bef..5fa9271687 100644--- a/packages/cli/templates/pages/login-sso/template.doc.mjs+++ b/packages/cli/assets/templates/pages/login-sso/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Login SSO',diff --git a/packages/cli/templates/pages/login/page.tsx b/packages/cli/assets/templates/pages/login/page.tsxsimilarity index 96%rename from packages/cli/templates/pages/login/page.tsxrename to packages/cli/assets/templates/pages/login/page.tsxindex 17165c8450..cd29bd7a10 100644--- a/packages/cli/templates/pages/login/page.tsx+++ b/packages/cli/assets/templates/pages/login/page.tsx@@ -63,9 +63,7 @@ export default function LoginPage() {</Text></VStack>- {error && (- <Banner status="error" title={error} container="card" />- )}+ {error && <Banner status="error" title={error} container="card" />}<TextInputlabel="Email"diff --git a/packages/cli/templates/pages/login/template.doc.mjs b/packages/cli/assets/templates/pages/login/template.doc.mjssimilarity index 80%rename from packages/cli/templates/pages/login/template.doc.mjsrename to packages/cli/assets/templates/pages/login/template.doc.mjsindex 49096a4ba9..d193b7eec4 100644--- a/packages/cli/templates/pages/login/template.doc.mjs+++ b/packages/cli/assets/templates/pages/login/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Basic Login',diff --git a/packages/cli/templates/pages/messaging-shell/page.tsx b/packages/cli/assets/templates/pages/messaging-shell/page.tsxsimilarity index 100%rename from packages/cli/templates/pages/messaging-shell/page.tsxrename to packages/cli/assets/templates/pages/messaging-shell/page.tsxdiff --git a/packages/cli/templates/pages/messaging-shell/template.doc.mjs b/packages/cli/assets/templates/pages/messaging-shell/template.doc.mjssimilarity index 85%rename from packages/cli/templates/pages/messaging-shell/template.doc.mjsrename to packages/cli/assets/templates/pages/messaging-shell/template.doc.mjsindex 8cd2d4b8f0..673b3f0bf5 100644--- a/packages/cli/templates/pages/messaging-shell/template.doc.mjs+++ b/packages/cli/assets/templates/pages/messaging-shell/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Messaging Shell',diff --git a/packages/cli/templates/pages/mixed-gallery/page.tsx b/packages/cli/assets/templates/pages/mixed-gallery/page.tsxsimilarity index 100%rename from packages/cli/templates/pages/mixed-gallery/page.tsxrename to packages/cli/assets/templates/pages/mixed-gallery/page.tsxdiff --git a/packages/cli/templates/pages/mixed-gallery/template.doc.mjs b/packages/cli/assets/templates/pages/mixed-gallery/template.doc.mjssimilarity index 79%rename from packages/cli/templates/pages/mixed-gallery/template.doc.mjsrename to packages/cli/assets/templates/pages/mixed-gallery/template.doc.mjsindex 092ac65b3b..9ce3f47800 100644--- a/packages/cli/templates/pages/mixed-gallery/template.doc.mjs+++ b/packages/cli/assets/templates/pages/mixed-gallery/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {name: 'Mixed Gallery',displayName: 'Mixed Gallery',diff --git a/packages/cli/templates/pages/payment-form/page.tsx b/packages/cli/assets/templates/pages/payment-form/page.tsxsimilarity index 98%rename from packages/cli/templates/pages/payment-form/page.tsxrename to packages/cli/assets/templates/pages/payment-form/page.tsxindex 8f72e1c557..07e1210ad1 100644--- a/packages/cli/templates/pages/payment-form/page.tsx+++ b/packages/cli/assets/templates/pages/payment-form/page.tsx@@ -110,9 +110,15 @@ const US_STATES = [// Product photos from the local template-assets set (committed to the// docsite; the CLI swaps these for an inline placeholder on scaffold).const ITEM_IMAGES: Record<string, {src: string}> = {- '1': {src: 'https://lookaside.facebook.com/assets/astryx/light-product-1.png'},- '2': {src: 'https://lookaside.facebook.com/assets/astryx/light-product-4.png'},- '3': {src: 'https://lookaside.facebook.com/assets/astryx/light-product-5.png'},+ '1': {+ src: 'https://lookaside.facebook.com/assets/astryx/light-product-1.png',+ },+ '2': {+ src: 'https://lookaside.facebook.com/assets/astryx/light-product-4.png',+ },+ '3': {+ src: 'https://lookaside.facebook.com/assets/astryx/light-product-5.png',+ },};const ORDER_ITEMS = [@@ -174,7 +180,10 @@ const paypalButton: CSSProperties = {// Official Google Pay dark button: black background with the unaltered// dark-variant mark (white "Google Pay" text + full-color G), per the// Google Pay brand guidelines.-const gpayButton: CSSProperties = {backgroundColor: '#000', borderColor: '#000'};+const gpayButton: CSSProperties = {+ backgroundColor: '#000',+ borderColor: '#000',+};// Brand logos inside the express-checkout buttons.const brandLogo: CSSProperties = {height: 'var(--spacing-5)', width: 'auto'};// Accepted card-network marks (Visa/Mastercard/Amex), shared style.@@ -866,9 +875,7 @@ export default function PaymentFormPage() {{fmt(item.price)}</Text></HStack>- <Text- type="supporting"- color="secondary">+ <Text type="supporting" color="secondary">{item.variant}</Text><HStack gap={2} vAlign="center">diff --git a/packages/cli/templates/pages/payment-form/template.doc.mjs b/packages/cli/assets/templates/pages/payment-form/template.doc.mjssimilarity index 80%rename from packages/cli/templates/pages/payment-form/template.doc.mjsrename to packages/cli/assets/templates/pages/payment-form/template.doc.mjsindex 1129c0e4a8..d4b6fc1fe1 100644--- a/packages/cli/templates/pages/payment-form/template.doc.mjs+++ b/packages/cli/assets/templates/pages/payment-form/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Checkout Form',diff --git a/packages/cli/templates/pages/product-detail/page.tsx b/packages/cli/assets/templates/pages/product-detail/page.tsxsimilarity index 100%rename from packages/cli/templates/pages/product-detail/page.tsxrename to packages/cli/assets/templates/pages/product-detail/page.tsxdiff --git a/packages/cli/templates/pages/product-detail/template.doc.mjs b/packages/cli/assets/templates/pages/product-detail/template.doc.mjssimilarity index 80%rename from packages/cli/templates/pages/product-detail/template.doc.mjsrename to packages/cli/assets/templates/pages/product-detail/template.doc.mjsindex fb6e35fd87..eac0e4e1b5 100644--- a/packages/cli/templates/pages/product-detail/template.doc.mjs+++ b/packages/cli/assets/templates/pages/product-detail/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Product Detail',diff --git a/packages/cli/templates/pages/product-gallery/page.tsx b/packages/cli/assets/templates/pages/product-gallery/page.tsxsimilarity index 100%rename from packages/cli/templates/pages/product-gallery/page.tsxrename to packages/cli/assets/templates/pages/product-gallery/page.tsxdiff --git a/packages/cli/templates/pages/product-gallery/template.doc.mjs b/packages/cli/assets/templates/pages/product-gallery/template.doc.mjssimilarity index 81%rename from packages/cli/templates/pages/product-gallery/template.doc.mjsrename to packages/cli/assets/templates/pages/product-gallery/template.doc.mjsindex 325d851eeb..f9af5a6785 100644--- a/packages/cli/templates/pages/product-gallery/template.doc.mjs+++ b/packages/cli/assets/templates/pages/product-gallery/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {name: 'Product Gallery',displayName: 'Product Gallery',diff --git a/packages/cli/templates/pages/settings-dialog/page.tsx b/packages/cli/assets/templates/pages/settings-dialog/page.tsxsimilarity index 96%rename from packages/cli/templates/pages/settings-dialog/page.tsxrename to packages/cli/assets/templates/pages/settings-dialog/page.tsxindex 8be2c95487..b6b957ba84 100644--- a/packages/cli/templates/pages/settings-dialog/page.tsx+++ b/packages/cli/assets/templates/pages/settings-dialog/page.tsx@@ -270,11 +270,7 @@ export default function SettingsDialogTemplate() {<Layoutheight="fill"start={- <LayoutPanel- width={280}- hasDivider- role="navigation"- padding={3}>+ <LayoutPanel width={280} hasDivider role="navigation" padding={3}><VStack gap={4}><Heading level={2} style={sideNavHeading}>Account settings@@ -430,10 +426,7 @@ export default function SettingsDialogTemplate() {<Card padding={4}><VStack gap={4}><HStack gap={3} vAlign="start">- <Center- width={48}- height={48}- style={iconBox}>+ <Center width={48} height={48} style={iconBox}><Icon icon={LockClosedIcon} /></Center><VStack gap={0}>@@ -454,10 +447,7 @@ export default function SettingsDialogTemplate() {</HStack><Divider /><HStack gap={3} vAlign="start">- <Center- width={48}- height={48}- style={iconBox}>+ <Center width={48} height={48} style={iconBox}><Icon icon={PencilSquareIcon} /></Center><VStack gap={0}>@@ -480,10 +470,7 @@ export default function SettingsDialogTemplate() {</HStack><Divider /><HStack gap={3} vAlign="start">- <Center- width={48}- height={48}- style={iconBox}>+ <Center width={48} height={48} style={iconBox}><Icon icon={ShareIcon} /></Center><VStack gap={0}>@@ -609,10 +596,7 @@ export default function SettingsDialogTemplate() {<Card variant="muted"><HStack gap={4} vAlign="start">- <Center- width={48}- height={48}- style={iconBox}>+ <Center width={48} height={48} style={iconBox}><Icon icon={LockClosedIcon} /></Center><VStack gap={1}>@@ -780,9 +764,7 @@ export default function SettingsDialogTemplate() {<Heading level={3}>Data privacy</Heading><Card><HStack hAlign="between" vAlign="center">- <Text type="body">- Request my personal data- </Text>+ <Text type="body">Request my personal data</Text><Link href="#">Request</Link></HStack></Card>@@ -802,10 +784,7 @@ export default function SettingsDialogTemplate() {</Card><Card variant="muted"><HStack gap={4} vAlign="start">- <Center- width={48}- height={48}- style={iconBox}>+ <Center width={48} height={48} style={iconBox}><Icon icon={ShieldCheckIcon} /></Center><VStack gap={1}>diff --git a/packages/cli/templates/pages/settings-dialog/template.doc.mjs b/packages/cli/assets/templates/pages/settings-dialog/template.doc.mjssimilarity index 83%rename from packages/cli/templates/pages/settings-dialog/template.doc.mjsrename to packages/cli/assets/templates/pages/settings-dialog/template.doc.mjsindex adc1488a6d..2aef26a122 100644--- a/packages/cli/templates/pages/settings-dialog/template.doc.mjs+++ b/packages/cli/assets/templates/pages/settings-dialog/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Settings Dialog',diff --git a/packages/cli/templates/pages/settings-sidebar/page.tsx b/packages/cli/assets/templates/pages/settings-sidebar/page.tsxsimilarity index 96%rename from packages/cli/templates/pages/settings-sidebar/page.tsxrename to packages/cli/assets/templates/pages/settings-sidebar/page.tsxindex ae5a0aaaf0..bb4417af22 100644--- a/packages/cli/templates/pages/settings-sidebar/page.tsx+++ b/packages/cli/assets/templates/pages/settings-sidebar/page.tsx@@ -330,23 +330,16 @@ export default function SettingsSecurityTemplate() {icon={<Icon icon={ArrowLeftIcon} size="sm" />}onClick={() => setMobileView('nav')}/>- <Heading level={2}>- {SECTION_TITLES[activeNav]}- </Heading>+ <Heading level={2}>{SECTION_TITLES[activeNav]}</Heading></>}/>)}{activeNav === 'Login & security' && (<VStack gap={6}>- {!isNarrow && (- <Heading level={2}>Login & security</Heading>- )}+ {!isNarrow && <Heading level={2}>Login & security</Heading>}- <TabList- value={activeTab}- onChange={setActiveTab}- hasDivider>+ <TabList value={activeTab} onChange={setActiveTab} hasDivider><Tab value="login" label="Login" /><Tab value="shared" label="Shared access" /></TabList>@@ -385,9 +378,7 @@ export default function SettingsSecurityTemplate() {<Text type="body" weight="semibold">{device.label}</Text>- {device.badge && (- <Badge label={device.badge} />- )}+ {device.badge && <Badge label={device.badge} />}</HStack><Texttype="supporting"@@ -413,10 +404,7 @@ export default function SettingsSecurityTemplate() {vAlign="start"style={rowPadding}><VStack gap={0}>- <Text- type="body"- weight="semibold"- display="block">+ <Text type="body" weight="semibold" display="block">Deactivate your account</Text><Text@@ -448,10 +436,7 @@ export default function SettingsSecurityTemplate() {<Card variant="muted"><HStack gap={4} vAlign="start">- <Center- width={48}- height={48}- style={iconBox}>+ <Center width={48} height={48} style={iconBox}><Icon icon={LockClosedIcon} /></Center><VStack gap={1}>@@ -726,10 +711,7 @@ export default function SettingsSecurityTemplate() {labelSpacing="spread"/></VStack>- <HStack- hAlign="between"- vAlign="center"- style={rowPadding}>+ <HStack hAlign="between" vAlign="center" style={rowPadding}><Text type="body" weight="semibold">Blocked people</Text>@@ -822,10 +804,7 @@ export default function SettingsSecurityTemplate() {</Card><Card variant="muted"><HStack gap={4} vAlign="start">- <Center- width={48}- height={48}- style={iconBox}>+ <Center width={48} height={48} style={iconBox}><Icon icon={ShieldCheckIcon} /></Center><VStack gap={1}>diff --git a/packages/cli/templates/pages/settings-sidebar/template.doc.mjs b/packages/cli/assets/templates/pages/settings-sidebar/template.doc.mjssimilarity index 82%rename from packages/cli/templates/pages/settings-sidebar/template.doc.mjsrename to packages/cli/assets/templates/pages/settings-sidebar/template.doc.mjsindex 2d6abb38ef..f31fd4e772 100644--- a/packages/cli/templates/pages/settings-sidebar/template.doc.mjs+++ b/packages/cli/assets/templates/pages/settings-sidebar/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Settings Panels',diff --git a/packages/cli/templates/pages/settings/page.tsx b/packages/cli/assets/templates/pages/settings/page.tsxsimilarity index 100%rename from packages/cli/templates/pages/settings/page.tsxrename to packages/cli/assets/templates/pages/settings/page.tsxdiff --git a/packages/cli/templates/pages/settings/template.doc.mjs b/packages/cli/assets/templates/pages/settings/template.doc.mjssimilarity index 82%rename from packages/cli/templates/pages/settings/template.doc.mjsrename to packages/cli/assets/templates/pages/settings/template.doc.mjsindex 96b054fba6..c6f504fbae 100644--- a/packages/cli/templates/pages/settings/template.doc.mjs+++ b/packages/cli/assets/templates/pages/settings/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Settings Form',diff --git a/packages/cli/templates/pages/shell-nav/page.tsx b/packages/cli/assets/templates/pages/shell-nav/page.tsxsimilarity index 100%rename from packages/cli/templates/pages/shell-nav/page.tsxrename to packages/cli/assets/templates/pages/shell-nav/page.tsxdiff --git a/packages/cli/templates/pages/shell-nav/template.doc.mjs b/packages/cli/assets/templates/pages/shell-nav/template.doc.mjssimilarity index 85%rename from packages/cli/templates/pages/shell-nav/template.doc.mjsrename to packages/cli/assets/templates/pages/shell-nav/template.doc.mjsindex 519e5ff5a8..04350ffe79 100644--- a/packages/cli/templates/pages/shell-nav/template.doc.mjs+++ b/packages/cli/assets/templates/pages/shell-nav/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Shell Nav',diff --git a/packages/cli/templates/pages/shell-side-nav/page.tsx b/packages/cli/assets/templates/pages/shell-side-nav/page.tsxsimilarity index 100%rename from packages/cli/templates/pages/shell-side-nav/page.tsxrename to packages/cli/assets/templates/pages/shell-side-nav/page.tsxdiff --git a/packages/cli/templates/pages/shell-side-nav/template.doc.mjs b/packages/cli/assets/templates/pages/shell-side-nav/template.doc.mjssimilarity index 85%rename from packages/cli/templates/pages/shell-side-nav/template.doc.mjsrename to packages/cli/assets/templates/pages/shell-side-nav/template.doc.mjsindex 6811df57c4..8e533301f4 100644--- a/packages/cli/templates/pages/shell-side-nav/template.doc.mjs+++ b/packages/cli/assets/templates/pages/shell-side-nav/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Side Nav',diff --git a/packages/cli/templates/pages/shell-top-nav/page.tsx b/packages/cli/assets/templates/pages/shell-top-nav/page.tsxsimilarity index 100%rename from packages/cli/templates/pages/shell-top-nav/page.tsxrename to packages/cli/assets/templates/pages/shell-top-nav/page.tsxdiff --git a/packages/cli/templates/pages/shell-top-nav/template.doc.mjs b/packages/cli/assets/templates/pages/shell-top-nav/template.doc.mjssimilarity index 85%rename from packages/cli/templates/pages/shell-top-nav/template.doc.mjsrename to packages/cli/assets/templates/pages/shell-top-nav/template.doc.mjsindex b1732c65fd..f6e283a46f 100644--- a/packages/cli/templates/pages/shell-top-nav/template.doc.mjs+++ b/packages/cli/assets/templates/pages/shell-top-nav/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Top Nav',diff --git a/packages/cli/templates/pages/side-gallery/page.tsx b/packages/cli/assets/templates/pages/side-gallery/page.tsxsimilarity index 95%rename from packages/cli/templates/pages/side-gallery/page.tsxrename to packages/cli/assets/templates/pages/side-gallery/page.tsxindex 658cfa9922..0b91d9bc92 100644--- a/packages/cli/templates/pages/side-gallery/page.tsx+++ b/packages/cli/assets/templates/pages/side-gallery/page.tsx@@ -2,12 +2,7 @@'use client';-import {- VStack,- HStack,- Layout,- LayoutContent,-} from '@astryxdesign/core/Layout';+import {VStack, HStack, Layout, LayoutContent} from '@astryxdesign/core/Layout';import {Text, Heading} from '@astryxdesign/core/Text';import {Button} from '@astryxdesign/core/Button';import {AspectRatio} from '@astryxdesign/core/AspectRatio';@@ -105,10 +100,7 @@ export default function SideGalleryTemplate() {contentWidth={1400}content={<LayoutContent padding={6}>- <Grid- columns={{minWidth: 360, repeat: 'fit'}}- gap={8}- align="center">+ <Grid columns={{minWidth: 360, repeat: 'fit'}} gap={8} align="center">{/* Left side: Text + CTA */}<VStack gap={6} vAlign="center"><VStack gap={3}>diff --git a/packages/cli/templates/pages/side-gallery/template.doc.mjs b/packages/cli/assets/templates/pages/side-gallery/template.doc.mjssimilarity index 79%rename from packages/cli/templates/pages/side-gallery/template.doc.mjsrename to packages/cli/assets/templates/pages/side-gallery/template.doc.mjsindex 7f4ac74ca9..c7398ab8d7 100644--- a/packages/cli/templates/pages/side-gallery/template.doc.mjs+++ b/packages/cli/assets/templates/pages/side-gallery/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {name: 'Side Gallery',displayName: 'Side Gallery',diff --git a/packages/cli/templates/pages/table-grouped/page.tsx b/packages/cli/assets/templates/pages/table-grouped/page.tsxsimilarity index 100%rename from packages/cli/templates/pages/table-grouped/page.tsxrename to packages/cli/assets/templates/pages/table-grouped/page.tsxdiff --git a/packages/cli/templates/pages/table-grouped/template.doc.mjs b/packages/cli/assets/templates/pages/table-grouped/template.doc.mjssimilarity index 82%rename from packages/cli/templates/pages/table-grouped/template.doc.mjsrename to packages/cli/assets/templates/pages/table-grouped/template.doc.mjsindex 63db5146ff..102ff41f97 100644--- a/packages/cli/templates/pages/table-grouped/template.doc.mjs+++ b/packages/cli/assets/templates/pages/table-grouped/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Grouped Table',diff --git a/packages/cli/templates/pages/table-page-chart/page.tsx b/packages/cli/assets/templates/pages/table-page-chart/page.tsxsimilarity index 100%rename from packages/cli/templates/pages/table-page-chart/page.tsxrename to packages/cli/assets/templates/pages/table-page-chart/page.tsxdiff --git a/packages/cli/templates/pages/table-page-chart/template.doc.mjs b/packages/cli/assets/templates/pages/table-page-chart/template.doc.mjssimilarity index 83%rename from packages/cli/templates/pages/table-page-chart/template.doc.mjsrename to packages/cli/assets/templates/pages/table-page-chart/template.doc.mjsindex 83bfeb7eb4..e2285877cb 100644--- a/packages/cli/templates/pages/table-page-chart/template.doc.mjs+++ b/packages/cli/assets/templates/pages/table-page-chart/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Matcha Sales Table',diff --git a/packages/cli/templates/pages/table-page-heatmap-status/page.tsx b/packages/cli/assets/templates/pages/table-page-heatmap-status/page.tsxsimilarity index 100%rename from packages/cli/templates/pages/table-page-heatmap-status/page.tsxrename to packages/cli/assets/templates/pages/table-page-heatmap-status/page.tsxdiff --git a/packages/cli/templates/pages/table-page-heatmap-status/template.doc.mjs b/packages/cli/assets/templates/pages/table-page-heatmap-status/template.doc.mjssimilarity index 82%rename from packages/cli/templates/pages/table-page-heatmap-status/template.doc.mjsrename to packages/cli/assets/templates/pages/table-page-heatmap-status/template.doc.mjsindex da696e55f9..a26a310850 100644--- a/packages/cli/templates/pages/table-page-heatmap-status/template.doc.mjs+++ b/packages/cli/assets/templates/pages/table-page-heatmap-status/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Outage Heatmap Table',diff --git a/packages/cli/templates/pages/table-page-shoe-store-heatmap/page.tsx b/packages/cli/assets/templates/pages/table-page-shoe-store-heatmap/page.tsxsimilarity index 100%rename from packages/cli/templates/pages/table-page-shoe-store-heatmap/page.tsxrename to packages/cli/assets/templates/pages/table-page-shoe-store-heatmap/page.tsxdiff --git a/packages/cli/templates/pages/table-page-shoe-store-heatmap/template.doc.mjs b/packages/cli/assets/templates/pages/table-page-shoe-store-heatmap/template.doc.mjssimilarity index 82%rename from packages/cli/templates/pages/table-page-shoe-store-heatmap/template.doc.mjsrename to packages/cli/assets/templates/pages/table-page-shoe-store-heatmap/template.doc.mjsindex faa93c4277..1901f57eca 100644--- a/packages/cli/templates/pages/table-page-shoe-store-heatmap/template.doc.mjs+++ b/packages/cli/assets/templates/pages/table-page-shoe-store-heatmap/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Shoe Sales Table',diff --git a/packages/cli/templates/pages/table-page/page.tsx b/packages/cli/assets/templates/pages/table-page/page.tsxsimilarity index 100%rename from packages/cli/templates/pages/table-page/page.tsxrename to packages/cli/assets/templates/pages/table-page/page.tsxdiff --git a/packages/cli/templates/pages/table-page/template.doc.mjs b/packages/cli/assets/templates/pages/table-page/template.doc.mjssimilarity index 80%rename from packages/cli/templates/pages/table-page/template.doc.mjsrename to packages/cli/assets/templates/pages/table-page/template.doc.mjsindex 5ccaea2f73..a542fb93d0 100644--- a/packages/cli/templates/pages/table-page/template.doc.mjs+++ b/packages/cli/assets/templates/pages/table-page/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Searchable Table',diff --git a/packages/cli/templates/pages/table/page.tsx b/packages/cli/assets/templates/pages/table/page.tsxsimilarity index 100%rename from packages/cli/templates/pages/table/page.tsxrename to packages/cli/assets/templates/pages/table/page.tsxdiff --git a/packages/cli/templates/pages/table/template.doc.mjs b/packages/cli/assets/templates/pages/table/template.doc.mjssimilarity index 79%rename from packages/cli/templates/pages/table/template.doc.mjsrename to packages/cli/assets/templates/pages/table/template.doc.mjsindex c45cc242c3..a9d474ed68 100644--- a/packages/cli/templates/pages/table/template.doc.mjs+++ b/packages/cli/assets/templates/pages/table/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Simple Table',diff --git a/packages/cli/templates/pages/theme-showcase/page.tsx b/packages/cli/assets/templates/pages/theme-showcase/page.tsxsimilarity index 100%rename from packages/cli/templates/pages/theme-showcase/page.tsxrename to packages/cli/assets/templates/pages/theme-showcase/page.tsxdiff --git a/packages/cli/templates/pages/theme-showcase/template.doc.mjs b/packages/cli/assets/templates/pages/theme-showcase/template.doc.mjssimilarity index 90%rename from packages/cli/templates/pages/theme-showcase/template.doc.mjsrename to packages/cli/assets/templates/pages/theme-showcase/template.doc.mjsindex 1c3bdf997d..1b9c9085a2 100644--- a/packages/cli/templates/pages/theme-showcase/template.doc.mjs+++ b/packages/cli/assets/templates/pages/theme-showcase/template.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../../core/src/docs-types').TemplateDoc} */+/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */export const doc = {type: 'page',name: 'Theme Showcase',diff --git a/packages/cli/templates/themes/butter/butterTheme.ts b/packages/cli/assets/templates/themes/butter/butterTheme.tssimilarity index 100%rename from packages/cli/templates/themes/butter/butterTheme.tsrename to packages/cli/assets/templates/themes/butter/butterTheme.tsdiff --git a/packages/cli/templates/themes/butter/icons.tsx b/packages/cli/assets/templates/themes/butter/icons.tsxsimilarity index 100%rename from packages/cli/templates/themes/butter/icons.tsxrename to packages/cli/assets/templates/themes/butter/icons.tsxdiff --git a/packages/cli/templates/themes/chocolate/chocolateTheme.ts b/packages/cli/assets/templates/themes/chocolate/chocolateTheme.tssimilarity index 100%rename from packages/cli/templates/themes/chocolate/chocolateTheme.tsrename to packages/cli/assets/templates/themes/chocolate/chocolateTheme.tsdiff --git a/packages/cli/templates/themes/chocolate/icons.tsx b/packages/cli/assets/templates/themes/chocolate/icons.tsxsimilarity index 100%rename from packages/cli/templates/themes/chocolate/icons.tsxrename to packages/cli/assets/templates/themes/chocolate/icons.tsxdiff --git a/packages/cli/templates/themes/gothic/gothicTheme.ts b/packages/cli/assets/templates/themes/gothic/gothicTheme.tssimilarity index 100%rename from packages/cli/templates/themes/gothic/gothicTheme.tsrename to packages/cli/assets/templates/themes/gothic/gothicTheme.tsdiff --git a/packages/cli/templates/themes/gothic/icons.tsx b/packages/cli/assets/templates/themes/gothic/icons.tsxsimilarity index 100%rename from packages/cli/templates/themes/gothic/icons.tsxrename to packages/cli/assets/templates/themes/gothic/icons.tsxdiff --git a/packages/cli/templates/themes/manifest.json b/packages/cli/assets/templates/themes/manifest.jsonsimilarity index 100%rename from packages/cli/templates/themes/manifest.jsonrename to packages/cli/assets/templates/themes/manifest.jsondiff --git a/packages/cli/templates/themes/matcha/icons.tsx b/packages/cli/assets/templates/themes/matcha/icons.tsxsimilarity index 100%rename from packages/cli/templates/themes/matcha/icons.tsxrename to packages/cli/assets/templates/themes/matcha/icons.tsxdiff --git a/packages/cli/templates/themes/matcha/matchaTheme.ts b/packages/cli/assets/templates/themes/matcha/matchaTheme.tssimilarity index 100%rename from packages/cli/templates/themes/matcha/matchaTheme.tsrename to packages/cli/assets/templates/themes/matcha/matchaTheme.tsdiff --git a/packages/cli/templates/themes/neutral/icons.tsx b/packages/cli/assets/templates/themes/neutral/icons.tsxsimilarity index 100%rename from packages/cli/templates/themes/neutral/icons.tsxrename to packages/cli/assets/templates/themes/neutral/icons.tsxdiff --git a/packages/cli/templates/themes/neutral/neutralTheme.ts b/packages/cli/assets/templates/themes/neutral/neutralTheme.tssimilarity index 100%rename from packages/cli/templates/themes/neutral/neutralTheme.tsrename to packages/cli/assets/templates/themes/neutral/neutralTheme.tsdiff --git a/packages/cli/templates/themes/stone/icons.tsx b/packages/cli/assets/templates/themes/stone/icons.tsxsimilarity index 100%rename from packages/cli/templates/themes/stone/icons.tsxrename to packages/cli/assets/templates/themes/stone/icons.tsxdiff --git a/packages/cli/templates/themes/stone/stoneTheme.ts b/packages/cli/assets/templates/themes/stone/stoneTheme.tssimilarity index 100%rename from packages/cli/templates/themes/stone/stoneTheme.tsrename to packages/cli/assets/templates/themes/stone/stoneTheme.tsdiff --git a/packages/cli/templates/themes/y2k/icons.tsx b/packages/cli/assets/templates/themes/y2k/icons.tsxsimilarity index 100%rename from packages/cli/templates/themes/y2k/icons.tsxrename to packages/cli/assets/templates/themes/y2k/icons.tsxdiff --git a/packages/cli/templates/themes/y2k/y2kTheme.ts b/packages/cli/assets/templates/themes/y2k/y2kTheme.tssimilarity index 100%rename from packages/cli/templates/themes/y2k/y2kTheme.tsrename to packages/cli/assets/templates/themes/y2k/y2kTheme.tsdiff --git a/packages/cli/authoring/_shared/contract.ts b/packages/cli/authoring/_shared/contract.tsnew file mode 100644index 0000000000..4f7e615678--- /dev/null+++ b/packages/cli/authoring/_shared/contract.ts@@ -0,0 +1,32 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * Compile-time-only drift-lock primitives. A parser module asserts that its+ * private (sealed) zod schema infers EXACTLY its public hand-written type via+ * `Expect<Equal<TypeOf<typeof schema>, TheType>>`; if the two drift apart the+ * assertion stops satisfying the `true` constraint and typecheck fails. Nothing+ * here is runtime — these are types only, checked under `tsconfig.authoring-contract.json`.+ */++/** True iff `A` and `B` are mutually assignable and identical. */+export type Equal<A, B> =+ (<T>() => T extends A ? 1 : 2) extends <T>() => T extends B ? 1 : 2+ ? true+ : false;++/**+ * True iff `A` and `B` are mutually assignable. The right strictness for a+ * schema↔type drift-lock: it still catches real drift (a missing/extra field,+ * `Partial<Record>` vs `Record`, a widened primitive) but tolerates the nominal+ * and inline-vs-named differences zod's structural inference introduces (e.g.+ * an inferred inline object literal vs its named interface). Tuples+ * suppress union distribution so discriminated unions are compared whole.+ */+export type MutuallyAssignable<A, B> = [A] extends [B]+ ? [B] extends [A]+ ? true+ : false+ : false;++/** Compiles only when `T` is exactly `true`; otherwise a type error. */+export type Expect<T extends true> = T;diff --git a/packages/cli/authoring/_shared/errors.mjs b/packages/cli/authoring/_shared/errors.mjsnew file mode 100644index 0000000000..16bf24c499--- /dev/null+++ b/packages/cli/authoring/_shared/errors.mjs@@ -0,0 +1,29 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * @file Shared error formatting for authoring parsers.+ *+ * Every authoring parser seals its zod schema and, on failure, throws a single+ * readable line built here — so the message convention (path: message;+ * path: message) stays identical across config, integration, codemod, and doc+ * parsing. Zod is an implementation detail: the `ZodError` never escapes a+ * parser, only the formatted string does.+ */++/**+ * Format a zod error into a single readable line: `<label> is invalid: <path>:+ * <message>; <path>: <message>`.+ *+ * @param {string} label+ * @param {import('zod').ZodError} error+ * @returns {string}+ */+export function formatZodError(label, error) {+ const issues = error.issues+ .map(issue => {+ const path = issue.path.length ? issue.path.join('.') : '(root)';+ return `${path}: ${issue.message}`;+ })+ .join('; ');+ return `${label} is invalid: ${issues}`;+}diff --git a/packages/cli/authoring/_shared/errors.test.mjs b/packages/cli/authoring/_shared/errors.test.mjsnew file mode 100644index 0000000000..2fa76b7b27--- /dev/null+++ b/packages/cli/authoring/_shared/errors.test.mjs@@ -0,0 +1,49 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * @file Colocated tests for the shared parser error formatter. Locks the single+ * message convention every authoring parser depends on: `<label> is invalid:+ * <path>: <message>; <path>: <message>`, using `(root)` for a top-level issue.+ */++import {describe, it, expect} from 'vitest';+import {z} from 'zod';+import {formatZodError} from './errors.mjs';++const schema = z+ .object({+ issuesUrl: z.string().url(),+ integrations: z.array(z.string()),+ })+ .strict();++describe('formatZodError', () => {+ it('renders "label is invalid: path: message"', () => {+ const res = schema.safeParse({issuesUrl: 'bad', integrations: []});+ expect(res.success).toBe(false);+ if (res.success) return;+ const msg = formatZodError('thing', res.error);+ expect(msg).toMatch(/^thing is invalid: /);+ expect(msg).toContain('issuesUrl: ');+ });++ it('uses "(root)" for a top-level (empty-path) issue', () => {+ const res = schema.safeParse(null);+ expect(res.success).toBe(false);+ if (res.success) return;+ expect(formatZodError('thing', res.error)).toContain('(root): ');+ });++ it('joins multiple issues with "; "', () => {+ const res = schema.safeParse({+ issuesUrl: 'https://ok.example',+ integrations: [1, 2],+ });+ expect(res.success).toBe(false);+ if (res.success) return;+ const msg = formatZodError('thing', res.error);+ expect(msg).toContain('; ');+ expect(msg).toContain('integrations.0');+ expect(msg).toContain('integrations.1');+ });+});diff --git a/packages/cli/authoring/codemod.mjs b/packages/cli/authoring/codemod.mjsdeleted file mode 100644index 1c52c8b858..0000000000--- a/packages/cli/authoring/codemod.mjs+++ /dev/null@@ -1,93 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--/**- * @file Public file-based codemod-authoring API.- *- * Integrations (and core) author codemods as standalone modules that- * default-export a `createCodemod(...)` or `createConfigCodemod(...)` result.- * These helpers are intentionally tiny: they stamp a `type` discriminator- * (`'code'` | `'config'`) consumed by integration codemod discovery during- * `astryx upgrade`, and otherwise return the definition unchanged. They do NOT- * validate — validation happens at the load boundary, where discovery runs the- * module's default export through {@link CodemodEnvelopeSchema} (see- * `loadModuleWithSchema`). The exported schemas below ARE that contract.- */--import {z} from 'zod';--const Fn = z.custom(value => typeof value === 'function', {- message: 'Expected a function',-});--/**- * Authoring shape for a file-transforming codemod (the `def` an author passes- * to {@link createCodemod}), before the `type` discriminator is stamped on.- * Exported so discovery can validate the stamped result against the envelope.- */-export const CodemodSchema = z- .object({- title: z.string(),- description: z.string().optional(),- isOptional: z.boolean().optional().default(false),- fileExtensions: z.array(z.string()).optional(),- transform: Fn,- })- .strict();--/**- * Authoring shape for a config-targeting codemod (the `def` an author passes to- * {@link createConfigCodemod}). Like {@link CodemodSchema} but without- * `fileExtensions`, which is only meaningful for code codemods.- */-export const ConfigCodemodSchema = z- .object({- title: z.string(),- description: z.string().optional(),- isOptional: z.boolean().optional().default(false),- transform: Fn,- })- .strict();--/**- * The metadata envelope discovery validates: a stamped codemod result. This is- * the LOAD-boundary contract — a hand-written plain object that matches this- * shape is accepted (discovery does not check "was it made by the factory",- * only the shape). A single discriminated union over the stamped `type`:- * - `type: 'code'` → may carry `fileExtensions`- * - `type: 'config'` → no `fileExtensions`- */-export const CodemodEnvelopeSchema = z.discriminatedUnion('type', [- CodemodSchema.extend({type: z.literal('code')}),- ConfigCodemodSchema.extend({type: z.literal('config')}),-]);--/**- * Define a file-transforming codemod. Stamp-only: returns the definition with- * `type: 'code'` injected. Validation happens at the load boundary.- *- * @template {import('../types/codemod').AstryxCodemodDef} T- * @param {T} def- * @returns {import('../types/codemod').AstryxCodemod}- */-export function createCodemod(def) {- return /** @type {import('../types/codemod').AstryxCodemod} */ ({- ...def,- type: 'code',- });-}--/**- * Define a codemod that targets the consumer's astryx.config.* file. Stamp-only:- * returns the definition with `type: 'config'` injected. Validation happens at- * the load boundary.- *- * @template {import('../types/codemod').AstryxConfigCodemodDef} T- * @param {T} def- * @returns {import('../types/codemod').AstryxConfigCodemod}- */-export function createConfigCodemod(def) {- return /** @type {import('../types/codemod').AstryxConfigCodemod} */ ({- ...def,- type: 'config',- });-}diff --git a/packages/cli/authoring/codemod.test.mjs b/packages/cli/authoring/codemod.test.mjsdeleted file mode 100644index 196c7983b3..0000000000--- a/packages/cli/authoring/codemod.test.mjs+++ /dev/null@@ -1,134 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--import {describe, expect, it} from 'vitest';-import {- createCodemod,- createConfigCodemod,- CodemodEnvelopeSchema,-} from './codemod.mjs';--// createCodemod/createConfigCodemod are now stamp-only: they inject the `type`-// discriminator and return the definition otherwise unchanged, performing NO-// runtime validation. Validation happens at the LOAD boundary (discovery runs-// the default export through CodemodEnvelopeSchema), so the rejection cases-// that used to assert factory throws now assert the envelope schema rejects.--describe('createCodemod (stamp-only)', () => {- it('stamps type: code and returns the def otherwise unchanged', () => {- const transform = file => file.source;- const result = createCodemod({title: 'Drop foo', transform});- expect(result.type).toBe('code');- expect(result.title).toBe('Drop foo');- expect(result.transform).toBe(transform);- // Stamp-only: it does NOT apply schema defaults (e.g. isOptional).- expect(result.isOptional).toBeUndefined();- });-- it('preserves description, fileExtensions, and explicit isOptional', () => {- const result = createCodemod({- title: 'Rename',- description: 'renames things',- isOptional: true,- fileExtensions: ['.tsx'],- transform: () => null,- });- expect(result.description).toBe('renames things');- expect(result.isOptional).toBe(true);- expect(result.fileExtensions).toEqual(['.tsx']);- expect(result.type).toBe('code');- });-- it('does NOT validate — returns an invalid def stamped, unchanged', () => {- const result = createCodemod({transform: () => null});- expect(result.type).toBe('code');- expect(result.title).toBeUndefined();- });-});--describe('createConfigCodemod (stamp-only)', () => {- it('stamps type: config', () => {- const transform = file => file.source;- const result = createConfigCodemod({title: 'Config bump', transform});- expect(result.type).toBe('config');- expect(result.transform).toBe(transform);- });-});--describe('CodemodEnvelopeSchema (load-boundary validation)', () => {- it('accepts a stamped code codemod (incl. defaults)', () => {- const parsed = CodemodEnvelopeSchema.parse(- createCodemod({title: 'Drop foo', transform: () => null}),- );- expect(parsed.type).toBe('code');- expect(parsed.isOptional).toBe(false); // schema default applied at load- });-- it('accepts a PLAIN OBJECT envelope (no factory required)', () => {- const parsed = CodemodEnvelopeSchema.parse({- type: 'code',- title: 'Hand-written',- transform: () => null,- });- expect(parsed.title).toBe('Hand-written');- });-- it('accepts a stamped config codemod', () => {- const parsed = CodemodEnvelopeSchema.parse(- createConfigCodemod({title: 'Bump', transform: () => null}),- );- expect(parsed.type).toBe('config');- });-- it('rejects a missing title', () => {- expect(() =>- CodemodEnvelopeSchema.parse({type: 'code', transform: () => null}),- ).toThrow(/title/i);- });-- it('rejects a missing transform', () => {- expect(() =>- CodemodEnvelopeSchema.parse({type: 'code', title: 'x'}),- ).toThrow(/transform/i);- });-- it('rejects a non-function transform', () => {- expect(() =>- CodemodEnvelopeSchema.parse({type: 'code', title: 'x', transform: 'nope'}),- ).toThrow(/transform/i);- });-- it('rejects a missing/invalid type discriminator', () => {- expect(() =>- CodemodEnvelopeSchema.parse({title: 'x', transform: () => null}),- ).toThrow();- expect(() =>- CodemodEnvelopeSchema.parse({- type: 'bogus',- title: 'x',- transform: () => null,- }),- ).toThrow();- });-- it('rejects unknown keys (strict)', () => {- expect(() =>- CodemodEnvelopeSchema.parse({- type: 'code',- title: 'x',- transform: () => null,- bogus: true,- }),- ).toThrow();- });-- it('rejects fileExtensions on a config codemod', () => {- expect(() =>- CodemodEnvelopeSchema.parse({- type: 'config',- title: 'x',- transform: () => null,- fileExtensions: ['.ts'],- }),- ).toThrow();- });-});diff --git a/packages/cli/authoring/codemod/parse.d.mts b/packages/cli/authoring/codemod/parse.d.mtsnew file mode 100644index 0000000000..26f50bd935--- /dev/null+++ b/packages/cli/authoring/codemod/parse.d.mts@@ -0,0 +1,4 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++import type {AstryxCodemod, AstryxConfigCodemod} from './type';+export function parseCodemod(input: unknown, label?: string): AstryxCodemod | AstryxConfigCodemod;diff --git a/packages/cli/authoring/codemod/parse.mjs b/packages/cli/authoring/codemod/parse.mjsnew file mode 100644index 0000000000..dc2c052585--- /dev/null+++ b/packages/cli/authoring/codemod/parse.mjs@@ -0,0 +1,76 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * @file Codemod parser — the load-boundary validator for a codemod module's+ * default export. Integration codemod discovery runs each module's default+ * export through `parseCodemod` during `astryx upgrade`. Zod is sealed here;+ * authors write a plain object with a `type` discriminant (no factory).+ */++import {z} from 'zod';+import {formatZodError} from '../_shared/errors.mjs';++/** @typedef {import('./type').AstryxCodemod} AstryxCodemod */+/** @typedef {import('./type').AstryxConfigCodemod} AstryxConfigCodemod */+/** @typedef {import('./type').AstryxCodemodTransform} AstryxCodemodTransform */++const transform = /** @type {z.ZodType<AstryxCodemodTransform>} */ (+ z.custom(value => typeof value === 'function', {message: 'Expected a function'})+);++const codeCodemodSchema = z+ .object({+ title: z.string(),+ description: z.string().optional(),+ isOptional: z.boolean().optional().default(false),+ fileExtensions: z.array(z.string()).optional(),+ transform,+ type: z.literal('code'),+ })+ .strict();++const configCodemodSchema = z+ .object({+ title: z.string(),+ description: z.string().optional(),+ isOptional: z.boolean().optional().default(false),+ transform,+ type: z.literal('config'),+ })+ .strict();++/**+ * The load-boundary contract: a stamped codemod default export, discriminated+ * by `type` (`'code'` may carry `fileExtensions`; `'config'` may not).+ */+const codemodEnvelopeSchema = z.discriminatedUnion('type', [+ codeCodemodSchema,+ configCodemodSchema,+]);++/**+ * Compile-time drift-lock: sealed envelope must infer exactly the public+ * stamped-codemod union.+ *+ * @typedef {import('../_shared/contract').Expect<+ * import('../_shared/contract').Equal<+ * z.infer<typeof codemodEnvelopeSchema>,+ * AstryxCodemod | AstryxConfigCodemod+ * >+ * >} _CodemodDriftLock+ */++/**+ * Validate an unknown value as a stamped codemod default export, or throw.+ *+ * @param {unknown} input+ * @param {string} [label]+ * @returns {AstryxCodemod | AstryxConfigCodemod}+ */+export function parseCodemod(input, label = 'codemod') {+ const result = codemodEnvelopeSchema.safeParse(input);+ if (!result.success) {+ throw new Error(formatZodError(label, result.error));+ }+ return result.data;+}diff --git a/packages/cli/authoring/codemod/parse.test.mjs b/packages/cli/authoring/codemod/parse.test.mjsnew file mode 100644index 0000000000..4e64345248--- /dev/null+++ b/packages/cli/authoring/codemod/parse.test.mjs@@ -0,0 +1,99 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * @file Colocated tests for `parseCodemod` — the load-boundary validator run+ * against a codemod module's default export during `astryx upgrade`. Zod is+ * sealed inside the parser; authors write a plain object with a `type`+ * discriminant (no factory). Accept/reject set matches the old+ * `CodemodEnvelopeSchema`, including the `isOptional` load-time default.+ */++import {describe, it, expect} from 'vitest';+import {parseCodemod} from './parse.mjs';++/** Run parseCodemod and return the thrown message (asserting it throws). */+function reason(value, label = 'codemod') {+ try {+ parseCodemod(value, label);+ } catch (err) {+ return err instanceof Error ? err.message : String(err);+ }+ throw new Error('expected parseCodemod to throw');+}++describe('parseCodemod (load boundary)', () => {+ it('accepts a code codemod and applies the isOptional default', () => {+ const parsed = parseCodemod({+ type: 'code',+ title: 'Drop foo',+ transform: () => null,+ });+ expect(parsed.type).toBe('code');+ expect(parsed.isOptional).toBe(false);+ });++ it('accepts a code codemod with description, fileExtensions, explicit isOptional', () => {+ const parsed = parseCodemod({+ type: 'code',+ title: 'Rename',+ description: 'renames things',+ isOptional: true,+ fileExtensions: ['.tsx'],+ transform: () => null,+ });+ expect(parsed.isOptional).toBe(true);+ expect(parsed.fileExtensions).toEqual(['.tsx']);+ });++ it('accepts a stamped config codemod', () => {+ const parsed = parseCodemod({+ type: 'config',+ title: 'Bump',+ transform: () => null,+ });+ expect(parsed.type).toBe('config');+ });++ it('rejects a missing title', () => {+ expect(reason({type: 'code', transform: () => null})).toMatch(/title/i);+ });++ it('rejects a missing transform', () => {+ expect(reason({type: 'code', title: 'x'})).toMatch(/transform/i);+ });++ it('rejects a non-function transform', () => {+ expect(reason({type: 'code', title: 'x', transform: 'nope'})).toMatch(+ /transform/i,+ );+ });++ it('rejects a missing/invalid type discriminator', () => {+ expect(() => parseCodemod({title: 'x', transform: () => null})).toThrow();+ expect(() =>+ parseCodemod({type: 'bogus', title: 'x', transform: () => null}),+ ).toThrow();+ });++ it('rejects unknown keys (strict)', () => {+ expect(() =>+ parseCodemod({+ type: 'code',+ title: 'x',+ transform: () => null,+ bogus: true,+ }),+ ).toThrow();+ });++ it('rejects fileExtensions on a config codemod', () => {+ expect(() =>+ parseCodemod({+ type: 'config',+ title: 'x',+ transform: () => null,+ fileExtensions: ['.ts'],+ }),+ ).toThrow();+ });+});diff --git a/packages/cli/types/codemod.d.ts b/packages/cli/authoring/codemod/type.tssimilarity index 80%rename from packages/cli/types/codemod.d.tsrename to packages/cli/authoring/codemod/type.tsindex 0384546cb9..9da04dde55 100644--- a/packages/cli/types/codemod.d.ts+++ b/packages/cli/authoring/codemod/type.ts@@ -1,8 +1,13 @@// Copyright (c) Meta Platforms, Inc. and affiliates./**- * Public type surface for the file-based codemod-authoring API exported from- * `@astryxdesign/cli/codemod`.+ * Public type surface for file-based codemod authoring (exported from+ * `@astryxdesign/cli/codemod` and `@astryxdesign/cli/authoring`).+ *+ * Authors write a plain object against {@link AstryxCodemodDef} /+ * {@link AstryxConfigCodemodDef} and default-export it with a `type`+ * discriminant (`'code'` | `'config'`); the CLI validates it via `parseCodemod`+ * at the load boundary. There is no factory to call.*//** A single source file presented to a codemod's transform. */@@ -32,7 +37,7 @@ export type AstryxCodemodTransform = (api: AstryxCodemodApi,) => string | null | undefined;-/** Definition accepted by {@link createCodemod}. */+/** Definition an author writes for a file-transforming codemod. */export interface AstryxCodemodDef {/** Short, human-readable title shown in upgrade output. */title: string;@@ -46,13 +51,13 @@ export interface AstryxCodemodDef {transform: AstryxCodemodTransform;}-/** Result of {@link createCodemod}. */+/** A validated file-transforming codemod (its default export, `type: 'code'`). */export interface AstryxCodemod extends AstryxCodemodDef {isOptional: boolean;type: 'code';}-/** Definition accepted by {@link createConfigCodemod}. */+/** Definition an author writes for a config-targeting codemod. */export interface AstryxConfigCodemodDef {/** Short, human-readable title shown in upgrade output. */title: string;@@ -64,26 +69,16 @@ export interface AstryxConfigCodemodDef {transform: AstryxCodemodTransform;}-/** Result of {@link createConfigCodemod}. */+/** A validated config-targeting codemod (its default export, `type: 'config'`). */export interface AstryxConfigCodemod extends AstryxConfigCodemodDef {isOptional: boolean;type: 'config';}-/** Define a file-transforming codemod. */-export declare function createCodemod<T extends AstryxCodemodDef>(- def: T,-): AstryxCodemod;--/** Define a codemod that targets the consumer's astryx.config.* file. */-export declare function createConfigCodemod<T extends AstryxConfigCodemodDef>(- def: T,-): AstryxConfigCodemod;-// ----------------------------------------------------------------------------// Internal types (used by the CLI codemod runner infrastructure & transforms).-// These are not part of the public authoring surface but are shared across the-// .mjs files under src/codemods/ so JSDoc annotations stay consistent.+// Internal types — shared by the CLI codemod runner infra & transforms. Not+// part of the public authoring barrel; kept here so the .mjs runners' JSDoc+// stays consistent.// ---------------------------------------------------------------------------/**@@ -99,8 +94,7 @@ export type CodemodTransform = (/*** The `api` argument as seen INSIDE a transform implementation. Identical to* {@link AstryxCodemodApi} except `jscodeshift` is typed as the callable- * factory (jscodeshift ships no types, so the AST it returns is untyped). Used- * by the .mjs transforms so `const j = api.jscodeshift; j(file.source)` type-checks.+ * factory (jscodeshift ships no types, so the AST it returns is untyped).*/export interface CodemodTransformApi {jscodeshift: JscodeshiftFactory;@@ -109,7 +103,7 @@ export interface CodemodTransformApi {}/**- * A normalized codemod entry as produced by both the core registry runner and+ * A normalized codemod entry produced by both the core registry runner and* integration discovery. See the header of `run-codemod.mjs` for the contract.*/export interface CodemodEntry {@@ -153,8 +147,7 @@ export interface CliLog {* Callable and carries `withParser`; both return an untyped jscodeshift API.** `any` is unavoidable here: jscodeshift ships no types and its AST/builder- * surface is fully dynamic (`j(src)`, `j.JSXElement`, `path.node`, …). `unknown`- * would break the callable + index access the transforms rely on.+ * surface is fully dynamic (`j(src)`, `j.JSXElement`, `path.node`, …).*/export interface JscodeshiftFactory {/* eslint-disable @typescript-eslint/no-explicit-any */diff --git a/packages/cli/authoring/config.mjs b/packages/cli/authoring/config.mjsdeleted file mode 100644index dfbe01a502..0000000000--- a/packages/cli/authoring/config.mjs+++ /dev/null@@ -1,9 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--/**- * Re-export of the config-authoring helper, which now lives in- * `@astryxdesign/core/config` so an app's config file gets type feedback- * without depending on the CLI. Kept here so existing- * `@astryxdesign/cli/config` imports continue to work unchanged.- */-export {createConfig} from '@astryxdesign/core/config';diff --git a/packages/cli/authoring/config.test.mjs b/packages/cli/authoring/config.test.mjsdeleted file mode 100644index 8155061378..0000000000--- a/packages/cli/authoring/config.test.mjs+++ /dev/null@@ -1,100 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--import {describe, expect, it} from 'vitest';-import {createConfig} from './config.mjs';-import {createIntegration} from './integration.mjs';-import {- AstryxConfigSchema,- AstryxIntegrationSchema,-} from '../lib/config-schema.mjs';--// createConfig/createIntegration are now pure typed-identity helpers: they-// return their argument unchanged and perform NO runtime validation. Validation-// happens at the LOAD boundary (loadModuleWithSchema against the schemas below),-// so the rejection cases that used to assert factory throws now assert the-// schema rejects the same shapes.--describe('createConfig (typed identity)', () => {- it('returns the config unchanged', () => {- const config = {integrations: ['@acme/widgets']};- expect(createConfig(config)).toBe(config);- expect(createConfig({})).toEqual({});- });-- it('does NOT validate — returns invalid shapes unchanged', () => {- const bogus = {packages: ['./libs']};- expect(createConfig(bogus)).toBe(bogus);- const badIntegrations = {integrations: '@acme/widgets'};- expect(createConfig(badIntegrations)).toBe(badIntegrations);- });-});--describe('AstryxConfigSchema (load-boundary validation)', () => {- it('accepts a valid minimal config', () => {- expect(AstryxConfigSchema.parse({})).toEqual({});- expect(- AstryxConfigSchema.parse({integrations: ['@acme/widgets']}),- ).toEqual({integrations: ['@acme/widgets']});- });-- it('accepts hooks.postCodemod with a buildCommand function', () => {- const config = {- hooks: {postCodemod: [{name: 'format', buildCommand: () => null}]},- };- expect(() => AstryxConfigSchema.parse(config)).not.toThrow();- });-- it('rejects unknown keys (strict)', () => {- expect(() => AstryxConfigSchema.parse({packages: ['./libs']})).toThrow(- /packages|Unrecognized/,- );- });-- it('rejects a non-array integrations field', () => {- expect(() =>- AstryxConfigSchema.parse({integrations: '@acme/widgets'}),- ).toThrow();- });-- it('rejects a non-URL issuesUrl', () => {- expect(() => AstryxConfigSchema.parse({issuesUrl: 'not-a-url'})).toThrow();- });-- it('rejects a postCodemod hook without buildCommand', () => {- expect(() =>- AstryxConfigSchema.parse({hooks: {postCodemod: [{name: 'empty'}]}}),- ).toThrow();- });-});--describe('createIntegration (typed identity)', () => {- it('returns the integration unchanged', () => {- const integration = {components: './src'};- expect(createIntegration(integration)).toBe(integration);- expect(createIntegration({})).toEqual({});- });-- it('does NOT validate — returns invalid shapes unchanged', () => {- const bogus = {name: '@acme/widgets'};- expect(createIntegration(bogus)).toBe(bogus);- });-});--describe('AstryxIntegrationSchema (load-boundary validation)', () => {- it('accepts a valid minimal integration', () => {- expect(AstryxIntegrationSchema.parse({components: './src'})).toEqual({- components: './src',- });- expect(AstryxIntegrationSchema.parse({})).toEqual({});- });-- it('rejects unknown keys (strict)', () => {- expect(() => AstryxIntegrationSchema.parse({name: '@acme/widgets'})).toThrow(- /name|Unrecognized/,- );- });-- it('rejects a non-URL issuesUrl', () => {- expect(() => AstryxIntegrationSchema.parse({issuesUrl: 'nope'})).toThrow();- });-});diff --git a/packages/cli/authoring/config/parse.d.mts b/packages/cli/authoring/config/parse.d.mtsnew file mode 100644index 0000000000..6fa8523abe--- /dev/null+++ b/packages/cli/authoring/config/parse.d.mts@@ -0,0 +1,4 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++import type {AstryxConfig} from './type';+export function parseConfig(input: unknown, label?: string): AstryxConfig;diff --git a/packages/cli/authoring/config/parse.mjs b/packages/cli/authoring/config/parse.mjsnew file mode 100644index 0000000000..7e0f593c15--- /dev/null+++ b/packages/cli/authoring/config/parse.mjs@@ -0,0 +1,82 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * @file Config parser — the load-boundary validator for `astryx.config.*`.+ *+ * Zod is sealed inside this module: the schema is module-private, never+ * exported, and never appears in a public type. Consumers call `parseConfig`+ * (or import the {@link AstryxConfig} type); they never see zod. A compile-time+ * drift-lock asserts the private schema still infers exactly `AstryxConfig`.+ */++import {z} from 'zod';+import {formatZodError} from '../_shared/errors.mjs';++/** @typedef {import('./type').AstryxConfig} AstryxConfig */+/** @typedef {import('./type').PostCodemodHook} PostCodemodHook */+/** @typedef {import('./type').XleComponent} XleComponent */++// Typed `z.custom` so `z.infer` reproduces the real function type (not `unknown`).+const buildCommand = /** @type {z.ZodType<PostCodemodHook['buildCommand']>} */ (+ z.custom(value => typeof value === 'function', {message: 'Expected a function'})+);++const postCodemodHookSchema = z+ .object({+ name: z.string().optional(),+ buildCommand,+ })+ .strict();++const xleComponentSchema = z+ .object({+ from: z.string(),+ description: z.string().optional(),+ default: z.boolean().optional(),+ })+ .strict();++const configSchema = z+ .object({+ integrations: z.array(z.string()).optional(),+ issuesUrl: z.string().url().optional(),+ hooks: z+ .object({postCodemod: z.array(postCodemodHookSchema).optional()})+ .strict()+ .optional(),+ experimental: z+ .object({+ xle: z+ .object({components: z.record(z.string(), xleComponentSchema).optional()})+ .strict()+ .optional(),+ })+ .strict()+ .optional(),+ })+ .strict();++/**+ * Compile-time drift-lock: the sealed schema must infer EXACTLY the public+ * {@link AstryxConfig} type. If they drift, `Equal` becomes `false` and+ * `Expect<false>` fails the `tsconfig.authoring-contract.json` typecheck.+ *+ * @typedef {import('../_shared/contract').Expect<+ * import('../_shared/contract').MutuallyAssignable<z.infer<typeof configSchema>, AstryxConfig>+ * >} _ConfigDriftLock+ */++/**+ * Validate an unknown value as an Astryx config, or throw a readable error.+ *+ * @param {unknown} input+ * @param {string} [label]+ * @returns {AstryxConfig}+ */+export function parseConfig(input, label = 'astryx.config') {+ const result = configSchema.safeParse(input);+ if (!result.success) {+ throw new Error(formatZodError(label, result.error));+ }+ return result.data;+}diff --git a/packages/cli/authoring/config/parse.test.mjs b/packages/cli/authoring/config/parse.test.mjsnew file mode 100644index 0000000000..45726a3294--- /dev/null+++ b/packages/cli/authoring/config/parse.test.mjs@@ -0,0 +1,91 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * @file Colocated tests for `parseConfig` — the load-boundary validator for+ * `astryx.config.*`. Zod is sealed inside the parser, so these exercise the+ * public contract only: a validated value comes back on success, a readable+ * `<label> is invalid: …` error is thrown on failure. The accept/reject set+ * matches the old `AstryxConfigSchema` cases verbatim.+ */++import {describe, it, expect} from 'vitest';+import {parseConfig} from './parse.mjs';++/** Run parseConfig and return the thrown message (asserting it throws). */+function reason(value, label = 'config') {+ try {+ parseConfig(value, label);+ } catch (err) {+ return err instanceof Error ? err.message : String(err);+ }+ throw new Error('expected parseConfig to throw');+}++describe('parseConfig (load boundary)', () => {+ it('accepts an empty config (every field optional)', () => {+ expect(parseConfig({})).toEqual({});+ });++ it('accepts a fully-populated valid config', () => {+ const cfg = {+ integrations: ['@astryxdesign/core'],+ issuesUrl: 'https://github.com/org/repo/issues',+ hooks: {postCodemod: [{name: 'build', buildCommand: () => {}}]},+ experimental: {xle: {components: {Foo: {from: 'pkg', default: true}}}},+ };+ expect(() => parseConfig(cfg)).not.toThrow();+ });++ it('accepts hooks.postCodemod with a buildCommand function', () => {+ expect(() =>+ parseConfig({+ hooks: {postCodemod: [{name: 'format', buildCommand: () => null}]},+ }),+ ).not.toThrow();+ });++ it('rejects non-objects with a readable message', () => {+ expect(reason(null)).toContain('expected object');+ expect(reason(42)).toContain('expected object');+ expect(reason([])).toContain('expected object');+ });++ it('rejects unknown top-level keys (strict)', () => {+ const msg = reason({packages: ['./libs']});+ expect(msg).toContain('Unrecognized key');+ expect(msg).toContain('packages');+ });++ it('rejects a non-array integrations field', () => {+ expect(reason({integrations: '@acme/widgets'})).toContain('expected array');+ expect(reason({integrations: [1]})).toContain('integrations.0');+ });++ it('rejects a non-URL issuesUrl', () => {+ expect(reason({issuesUrl: 'not-a-url'})).toContain('issuesUrl');+ });++ it('rejects a postCodemod hook without buildCommand', () => {+ expect(() =>+ parseConfig({hooks: {postCodemod: [{name: 'empty'}]}}),+ ).toThrow();+ });++ it('rejects a non-function postCodemod.buildCommand', () => {+ expect(reason({hooks: {postCodemod: [{buildCommand: 'notAFn'}]}})).toContain(+ 'buildCommand',+ );+ });++ it('rejects unknown nested keys inside experimental.xle.components', () => {+ expect(+ reason({experimental: {xle: {components: {Foo: {from: 'pkg', bad: 1}}}}}),+ ).toContain('Unrecognized key');+ });++ it('rejects an xle component missing `from`', () => {+ expect(() =>+ parseConfig({experimental: {xle: {components: {Foo: {}}}}}),+ ).toThrow();+ });+});diff --git a/packages/core/src/config.ts b/packages/cli/authoring/config/type.tssimilarity index 66%rename from packages/core/src/config.tsrename to packages/cli/authoring/config/type.tsindex 6b8ccec2d1..02569a0b99 100644--- a/packages/core/src/config.ts+++ b/packages/cli/authoring/config/type.ts@@ -1,18 +1,12 @@// Copyright (c) Meta Platforms, Inc. and affiliates./**- * @file config.ts- * @input An app's Astryx config object.- * @output A type-preserving `createConfig` helper plus the `AstryxConfig`- * surface authors write in `astryx.config.{ts,mjs,js}`.- * @position Consumer-facing authoring surface. Lives in `@astryxdesign/core`- * (not the CLI) so an app's config file gets editor/type feedback without- * taking a dependency on the CLI. The CLI re-exports this from- * `@astryxdesign/cli/config` for back-compat.+ * Public type surface for an Astryx config file (`astryx.config.{ts,mjs,js}`).*- * `createConfig` is an intentionally tiny runtime identity function: it returns- * its argument unchanged. Its value is the exported TypeScript surface.- * Validation is NOT performed here — it happens at the CLI load boundary.+ * Authors write a plain object against {@link AstryxConfig} — in TS via+ * `satisfies AstryxConfig`, in JS via `/** @type {import('@astryxdesign/cli/authoring').AstryxConfig} *\/`.+ * The CLI turns the loaded value into this type via `parseConfig` at the load+ * boundary; there is no factory to call.*//**@@ -81,12 +75,3 @@ export interface AstryxConfig {};};}--/**- * Type-preserving helper for the Astryx config file. Returns its argument- * unchanged; the value is the exported TypeScript surface so config files get- * editor/type feedback. Validation happens at the CLI load boundary.- */-export function createConfig<T extends AstryxConfig>(config: T): T {- return config;-}diff --git a/packages/cli/authoring/doc.mjs b/packages/cli/authoring/doc.mjsdeleted file mode 100644index 66f6775409..0000000000--- a/packages/cli/authoring/doc.mjs+++ /dev/null@@ -1,27 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--/**- * @file Doc-authoring API (public `@astryxdesign/cli/doc`).- *- * The `createComponentDoc`/`createFunctionDoc`/`createDoc` authoring helpers now- * live in `@astryxdesign/core/authoring` and are re-exported here so existing- * `@astryxdesign/cli/doc` imports keep working. The Zod load-boundary schemas- * live in `./schemas/doc-schema.mjs` (core-free) and are re-exported here for- * back-compat; internal hot-path code imports them from the schema module- * directly so it never depends on core's built `dist/`.- */--export {- createComponentDoc,- createFunctionDoc,- createDoc,-} from '@astryxdesign/core/authoring';--export {- ComponentDocKindSchema,- FunctionDocKindSchema,- GenericDocKindSchema,- StampedDocSchema,- LegacyDocSchema,- ComponentDocSchema,-} from '../schemas/doc-schema.mjs';diff --git a/packages/cli/authoring/doctypes/_schema.mjs b/packages/cli/authoring/doctypes/_schema.mjsnew file mode 100644index 0000000000..535ee81569--- /dev/null+++ b/packages/cli/authoring/doctypes/_schema.mjs@@ -0,0 +1,148 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * @file Sealed doc load-boundary schemas (doctypes-internal).+ *+ * These zod schemas are the implementation detail behind the doctypes parsers.+ * They are NOT part of the public authoring surface: nothing outside+ * `authoring/doctypes/**` imports them, and they never appear in a public type.+ * They accept BOTH the stamped formats (`type: 'component' | 'function' |+ * 'generic'`) and the legacy loose `export const docs = {...}` shape, so the+ * ~600+ existing docs keep validating unchanged.+ */++import {z} from 'zod';++const PropSchema = z+ .object({+ name: z.string().min(1, 'prop name is required'),+ type: z.string().min(1, 'prop type is required'),+ description: z.string(),+ default: z.string().optional(),+ required: z.boolean().optional(),+ })+ .passthrough();++const ParamSchema = z+ .object({+ name: z.string().min(1, 'param name is required'),+ type: z.string().min(1, 'param type is required'),+ description: z.string(),+ default: z.string().optional(),+ required: z.boolean().optional(),+ })+ .passthrough();++const ReturnSchema = z+ .object({+ name: z.string().min(1, 'return name is required'),+ type: z.string().min(1, 'return type is required'),+ description: z.string(),+ })+ .passthrough();++const BaseDocFields = {+ name: z.string().min(1, 'name is required'),+ displayName: z.string().optional(),+ description: z.string().optional(),+ usage: z.unknown().optional(),+ group: z.string().optional(),+ category: z.string().optional(),+ keywords: z.array(z.string()).optional(),+ parent: z.string().optional(),+ relatedDocs: z.array(z.string()).optional(),+ hidden: z.boolean().optional(),+ isHiddenFromOverview: z.boolean().optional(),+};++/** New-format stamped component doc (`type: 'component'`). */+export const ComponentDocKindSchema = z+ .object({+ ...BaseDocFields,+ type: z.literal('component'),+ props: z.array(PropSchema),+ theming: z.unknown().optional(),+ playground: z.unknown().optional(),+ examples: z.array(z.unknown()).optional(),+ })+ .passthrough();++/** New-format stamped function/hook doc (`type: 'function'`). */+export const FunctionDocKindSchema = z+ .object({+ ...BaseDocFields,+ type: z.literal('function'),+ params: z.array(ParamSchema),+ returns: z.array(ReturnSchema),+ })+ .passthrough();++/** New-format stamped generic reference/topic doc (`type: 'generic'`). */+export const GenericDocKindSchema = z+ .object({+ ...BaseDocFields,+ type: z.literal('generic'),+ })+ .passthrough();++/** A stamped doc: one of the three per-kind schemas, discriminated by `type`. */+export const StampedDocSchema = z.discriminatedUnion('type', [+ ComponentDocKindSchema,+ FunctionDocKindSchema,+ GenericDocKindSchema,+]);++// ── Legacy loose format (unchanged, kept for back-compat) ─────────────+const LegacyBaseDocSchema = z.object({+ name: z.string().min(1, 'name is required'),+ displayName: z.string().optional(),+ description: z.string().optional(),+ group: z.string().optional(),+ category: z.string().optional(),+ keywords: z.array(z.string()).optional(),+ isHiddenFromOverview: z.boolean().optional(),+ hidden: z.boolean().optional(),+ hiddenComponents: z.array(z.string()).optional(),+ usage: z.unknown().optional(),+ playground: z.unknown().optional(),+ theming: z.unknown().optional(),+ examples: z.array(z.unknown()).optional(),+ showcase: z.unknown().optional(),+ parent: z.string().optional(),+ relatedDocs: z.array(z.string()).optional(),+ relatedComponents: z.array(z.string()).optional(),+ relatedHooks: z.array(z.string()).optional(),+});++const LegacySingleComponentDocSchema = LegacyBaseDocSchema.extend({+ props: z.array(PropSchema),+}).passthrough();++const LegacyMultiComponentDocSchema = LegacyBaseDocSchema.extend({+ components: z.array(z.unknown()),+}).passthrough();++const LegacyHookDocSchema = LegacyBaseDocSchema.extend({+ params: z.array(ParamSchema),+ returns: z.array(ReturnSchema),+}).passthrough();++const LegacySubComponentDocSchema = LegacyBaseDocSchema.extend({+ subComponentOf: z.string().min(1, 'subComponentOf is required'),+ description: z.string(),+ props: z.array(PropSchema),+}).passthrough();++/** The permissive legacy union (sub-component first, then hook, multi, single). */+export const LegacyDocSchema = z.union([+ LegacySubComponentDocSchema,+ LegacyHookDocSchema,+ LegacyMultiComponentDocSchema,+ LegacySingleComponentDocSchema,+]);++/**+ * The permissive load-boundary contract for a doc: a stamped doc OR a legacy+ * loose doc. This is the exact acceptance set the old `ComponentDocSchema` had.+ */+export const AnyDocSchema = z.union([StampedDocSchema, LegacyDocSchema]);diff --git a/packages/cli/authoring/doctypes/base/type.ts b/packages/cli/authoring/doctypes/base/type.tsnew file mode 100644index 0000000000..ef545e6078--- /dev/null+++ b/packages/cli/authoring/doctypes/base/type.ts@@ -0,0 +1,408 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * @file Shared leaf primitives used across the doc types.+ */++/**+ * Documents one element in a component's anatomy breakdown.+ * Anatomy describes the visual/structural parts that make up a component+ * (e.g. a Button has: left icon, label, end content, container).+ *+ * @example+ * ```+ * {name: 'Label', required: true, description: 'Accessible text for the button. Set isLabelHidden to visually hide it.'}+ * {name: 'Left icon', required: false, description: 'Visually represents the meaning of the button label. Icon size is typically 16px.'}+ * ```+ */+export interface ComponentAnatomyElement {+ /** Human-readable element name. e.g. `"Label"`, `"Left icon"`, `"Container"` */+ name: string;+ /** Whether this element is required for the component to function. */+ required: boolean;+ /** What this element is and how it contributes to the component. 1-2 sentences. */+ description: string;+}++/**+ * A single do/don't best practice for a component.+ * Rendered as a table row with a colored "Do" or "Don't" badge+ * in the Guidance column and the description in the Practices column.+ *+ * @example+ * ```+ * {guidance: true, description: 'Convey clear action hierarchy. Each surface should only have 1 primary button.'}+ * {guidance: false, description: 'Overuse primary or special buttons. Overusing colored buttons creates visual confusion.'}+ * ```+ */+export interface ComponentBestPractice {+ /** `true` renders a green "Do" badge; `false` renders a red "Don't" badge. */+ guidance: boolean;+ /** 1-2 short sentences of design guidance. Focus on how a designer+ * would USE the component, not how it's built.+ *+ * NEVER start with "Do" or "Don't" — the badge handles that.+ *+ * Good: `"Convey clear action hierarchy. Each surface should only have 1 primary button."`+ * Bad: `"Do use clear action hierarchy."` */+ description: string;+}++/**+ * Code example for a component or sub-component.+ */+export interface ComponentExampleDoc {+ /** Optional heading shown above the code block. */+ label?: string;+ /** TSX source for the example. */+ code: string;+}++/**+ * Playground configuration for the interactive component preview.+ *+ * `defaults` provides the initial prop state for the playground. Every key+ * maps to a prop name, and the value is either:+ * - A **primitive** (string, number, boolean) — used directly as the prop value+ * - An **ComponentSlotElement** — resolved to a React element via createElement+ *+ * Props not listed in `defaults` fall back to the standard logic:+ * doc `default` values, then auto-generated values for required props.+ *+ * @example+ * ```+ * // Button — just override the label+ * playground: {+ * defaults: {label: 'Click me', variant: 'primary'},+ * }+ *+ * // Card — provide children content+ * playground: {+ * defaults: {+ * padding: 4,+ * children: {+ * __element: 'VStack', props: {gap: 2}, children: [+ * {__element: 'Heading', props: {level: 3}, children: 'Card Title'},+ * {__element: 'Text', props: {type: 'body'}, children: 'Card content goes here.'},+ * ],+ * },+ * },+ * }+ *+ * // Dialog — provide structured children+ * playground: {+ * defaults: {+ * isOpen: true,+ * isInline: true,+ * onOpenChange: undefined,+ * children: {__element: 'Text', props: {type: 'body'}, children: 'Dialog content'},+ * },+ * }+ * ```+ */+export interface ComponentPlaygroundConfig {+ /** Initial prop values for the playground preview.+ * Keys are prop names. Values are primitives or ElementDescriptors. */+ defaults?: Record<string, unknown>;+ /** The component opens as a full-viewport overlay (e.g. via+ * `dialog.showModal()`) and renders nothing inline while closed. The+ * interactive preview shows an open-trigger placeholder instead of an+ * empty stage while `isOpen` is false, and lets the real overlay render+ * when opened. Include `isOpen: false` in `defaults` so the preview can+ * bridge `onOpenChange` back into playground state.+ *+ * Only for components with no inline containment (MobileNav, Lightbox).+ * Components with an `isInline` docs-preview prop (Dialog, AlertDialog,+ * CommandPalette) intentionally keep contained inline previews instead:+ * the component is visible on load and knobs stay usable, whereas a real+ * top-layer modal makes the rest of the page inert (#3657). */+ overlay?: boolean;+ /** Required parent wrapper for sub-components that depend on a parent+ * context provider (e.g. `Tab` calls `useTabListContext()` and throws+ * standalone). The preview wraps the component in this parent before+ * rendering, injecting it as `children`. Provide any props the wrapper+ * requires (e.g. a matching `value`).+ *+ * @example+ * ```+ * playground: {wrapper: {component: 'TabList', props: {value: 'tab-1'}}}+ * ```+ */+ wrapper?: {+ /** Parent component name as exported from `@astryxdesign/core`, e.g. `'TabList'`. */+ component: string;+ /** Props for the wrapper. The previewed sub-component becomes its `children`. */+ props?: Record<string, unknown>;+ };+}++/**+ * Documents a single component prop. Each prop the component accepts+ * should have an entry. Skip internal/styling props like `xstyle`,+ * `className`, `style`, and `data-testid`.+ *+ * @example+ * ```+ * {name: 'label', type: 'string', description: 'Visible label text', required: true}+ * {name: 'size', type: "'sm' | 'md' | 'lg'", description: 'Control size', default: "'md'"}+ * {name: 'onChange', type: '(value: string) => void', description: 'Called when value changes.'}+ * ```+ */+export interface ComponentPropDoc {+ /** Prop name exactly as used in JSX, camelCased.+ * Callbacks start with `on` (`"onChange"`, `"onToggle"`).+ * Booleans use `is`/`has` prefix (`"isDisabled"`, `"hasHover"`). */+ name: string;+ /** TypeScript type signature as a string. Use single quotes for string+ * literal unions. Keep close to the actual TS type.+ *+ * Simple: `"string"`, `"boolean"`, `"ReactNode"`+ * Union: `"'primary' | 'secondary' | 'ghost'"`+ * Function: `"(checked: boolean, e: ChangeEvent) => void"`+ * Async: `"(e: MouseEvent) => void | Promise<void>"`+ * Generic: `"TableColumn<T>[]"` */+ type: string;+ /** What this prop does, in 1-2 sentences. Focus on behavior and+ * consequences rather than restating the prop name.+ *+ * Good: `"Shows a loading spinner and disables interaction."`+ * Weak: `"Shows a loading spinner."` */+ description: string;+ /** Default value as a string, if the prop is optional and has one.+ * String literals in single quotes: `"'md'"`, `"'balanced'"`.+ * Other values unquoted: `"false"`, `"0"`, `"() => true"`.+ * Omit entirely for required props or optional props with no default. */+ default?: string;+ /** True if the prop must be provided. Omit (don't set to false) if optional. */+ required?: boolean;+ /** For ReactNode props: the Astryx components this slot typically accepts.+ * Each entry is an ComponentSlotElement that the playground uses to+ * create a default instance when the user toggles the slot on.+ *+ * Single-element slots (icon, endContent) have one option with a toggle.+ * Multi-element slots (children on List) can have options the user picks from.+ *+ * The playground uses this instead of hardcoded component→control mappings.+ * Omit for ReactNode props that accept plain text (label, description).+ *+ * @example+ * ```+ * // Single option — renders as a toggle switch+ * slotElements: [{__element: 'Icon', props: {icon: 'check', size: 'sm'}}]+ *+ * // Multiple options — renders as a selector+ * slotElements: [+ * {__element: 'Icon', props: {icon: 'check', size: 'sm'}},+ * {__element: 'Badge', props: {label: 'Badge'}},+ * ]+ * ```+ */+ slotElements?: ComponentSlotElement[];+}++/**+ * A serializable descriptor for a React element. The playground resolves+ * these at runtime via `createElement(Core[component], props, ...children)`.+ *+ * Use this for any prop value that needs to be a React element —+ * children slots, icon props, endContent, etc.+ *+ * @example+ * ```+ * // Simple element+ * {__element: 'Icon', props: {icon: 'check', size: 'sm'}}+ *+ * // Element with text children+ * {__element: 'Text', props: {type: 'body'}, children: 'Hello world'}+ *+ * // Nested composition+ * {__element: 'VStack', props: {gap: 2}, children: [+ * {__element: 'Heading', props: {level: 3}, children: 'Title'},+ * {__element: 'Text', props: {}, children: 'Body text'},+ * ]}+ * ```+ */+export interface ComponentSlotElement {+ /** Marker field — presence distinguishes this from a plain object prop value. */+ __element: string;+ /** Props passed to createElement. Omit or use {} for no props. */+ props?: Record<string, unknown>;+ /** Children — a string, another ComponentSlotElement, or an array of them. */+ children?: string | ComponentSlotElement | (string | ComponentSlotElement)[];+}++/**+ * Maps a standard CSS property to one or more internal CSS custom properties.+ *+ * Theme authors write standard CSS (e.g. `borderRadius: '32px'`). The theme+ * pipeline reads this metadata and expands it: emitting both the CSS property+ * AND the internal var(s) that the component reads.+ *+ * Entries are ordered by priority — earlier entries are emitted first.+ * When multiple entries share the same `property`, all fire (in order).+ *+ * The special `expand: 'container'` triggers the 7-token container padding+ * expansion instead of setting a specific var.+ *+ * @example+ * ```+ * // Simple: borderRadius → one internal var+ * { property: 'borderRadius', vars: ['--_card-radius'] }+ *+ * // Container expansion: padding → 7 container tokens+ * { property: 'padding', expand: 'container' }+ *+ * // Multiple vars from one property+ * { property: 'padding', vars: ['--_chat-composer-padding', '--_composer-button-offset'] }+ *+ * // Multiple entries for the same property (both fire, in order)+ * { property: 'padding', expand: 'container' },+ * { property: 'padding', vars: ['--_card-padding'] },+ * ```+ */+export interface ComponentThemingDerivedVar {+ /** The standard CSS property name (camelCase) that theme authors write.+ * e.g. `'borderRadius'`, `'padding'`, `'paddingBlock'` */+ property: string;+ /** Internal CSS custom property names to set when this property appears+ * in a theme's component overrides. Omit when using `expand`. */+ vars?: string[];+ /** Named expansion strategy instead of specific vars.+ * `'container'` — expands padding to 7 container layout tokens. */+ expand?: 'container';+}++/**+ * A theming target — a stable selector surface that `defineTheme` can target+ * via `@scope` selectors. Each component renders one or more stable `xds-*`+ * class names and reflects visual props/states as `data-*` attributes via+ * `themeProps()`, so themes and external CSS have an explicit prop-aware selector surface.+ *+ * @example+ * ```+ * {className: 'astryx-button', visualProps: ['variant', 'size']}+ * {className: 'astryx-avatar-status-dot', visualProps: ['variant']}+ * {className: 'astryx-card'}+ * ```+ */+export interface ComponentThemingTarget {+ /** The stable CSS class name rendered by the component.+ * Always starts with `astryx-`.+ * e.g. `"astryx-button"`, `"astryx-avatar-status-dot"`, `"astryx-card"` */+ className: string;+ /** Visual prop names reflected on this element.+ * These are the props passed to `themeProps()` as the second argument.+ * Use these names to derive preferred data selectors: `variant` →+ * `[data-variant="secondary"]`, `level` → `[data-level="2"]`. Legacy bare+ * classes are still emitted for compatibility but should not be the primary+ * documentation surface. Omit if the component has no visual props (class+ * name only). */+ visualProps?: string[];+ /** State names that appear on this element based on component state.+ * Unlike visualProps (driven by props), these reflect runtime state+ * (checked, selected, today, on, expanded, etc.). Use these names to derive preferred data selectors such as+ * `[data-checked="checked"]`. Legacy state classes are still emitted for+ * compatibility. Omit if the element has no state-driven selectors. */+ states?: string[];+}++/**+ * Documents a CSS custom property exposed by a component for theming.+ * These vars are set on the component's root element and can be overridden+ * via `defineTheme` component overrides.+ *+ * @example+ * ```+ * {name: '--_card-radius', description: 'Border radius', default: 'var(--radius-container)'}+ * {name: '--card-concentric-radius', description: 'Inner radius', derived: true, formula: 'max(0px, calc(var(--_card-radius) - var(--card-padding)))'}+ * ```+ */+export interface ComponentThemingVar {+ /** CSS custom property name, e.g. '--_card-radius' or '--button-press-scale' */+ name: string;+ /** What this var controls */+ description: string;+ /** Default value as a CSS expression, e.g. 'var(--radius-container)' */+ default: string;+ /** Whether this var is derived from other vars (not directly settable) */+ derived?: boolean;+ /** CSS expression showing how derived vars are computed */+ formula?: string;+ /**+ * Whether this var is private (internal implementation detail).+ * Private vars are set by the derived var expansion pipeline — theme+ * authors write standard CSS properties instead of setting them directly.+ * The CLI hides private vars from theming output.+ * `astryx theme build` errors if a theme sets a private var directly.+ */+ private?: boolean;+}++/**+ * Documents a hook parameter/option. Similar to ComponentPropDoc but for hook+ * arguments and options object fields.+ */+export interface HookParamDoc {+ /** Parameter or option field name. */+ name: string;+ /** TypeScript type signature as a string. */+ type: string;+ /** What this parameter does. 1-2 sentences. */+ description: string;+ /** Default value as a string, if optional with a default. */+ default?: string;+ /** True if required. Omit if optional. */+ required?: boolean;+}++/**+ * Documents a hook's return value field.+ */+export interface HookReturnDoc {+ /** Field name on the returned object, or 'value' for primitive returns. */+ name: string;+ /** TypeScript type. */+ type: string;+ /** What this return value provides. */+ description: string;+}++/**+ * Component usage documentation — a concise summary, design guidance+ * best practices, and optional visual anatomy.+ *+ * ## description+ * Exactly 2-3 short sentences:+ * - Sentence 1: What the component is and does.+ * - Sentence 2-3: When to use it, or what context it belongs in.+ *+ * Reference tone: "Buttons provide visual cues for actions and events.+ * These fundamental components allow users to commit actions and navigate+ * a page flow. Use a Button when a user needs to submit a form, start a+ * new task or action, or trigger a new UI element to appear on the page."+ *+ * ## bestPractices+ * Array of 3-4 items. Usually 2 Do items, then 1-2 Don't items.+ * Each item is design guidance — not implementation details.+ * Never start the description with "Do" or "Don't".+ */+export interface UsageDoc {+ /** What the component is and when to use it. 2-3 short sentences.+ *+ * Sentence 1: What the component is and does.+ * Sentence 2-3: When to use it, or what context it belongs in.+ *+ * e.g. `"Buttons provide visual cues for actions and events. These+ * fundamental components allow users to commit actions and navigate+ * a page flow. Use a Button when a user needs to submit a form,+ * start a new task or action, or trigger a new UI element to appear+ * on the page."` */+ description: string;+ /** 3-4 do/don't design guidance items. Usually 2 Do's then 1-2 Don'ts.+ * Focus on how a designer would USE the component, not how it's built. */+ bestPractices?: ComponentBestPractice[];+ /** Structural/visual anatomy of the component. Each entry describes one+ * element that makes up the component (icon slot, label, container, etc.).+ * Order entries in the visual reading order (leading → trailing, top → bottom). */+ anatomy?: ComponentAnatomyElement[];+}diff --git a/packages/cli/authoring/doctypes/component/parse.d.mts b/packages/cli/authoring/doctypes/component/parse.d.mtsnew file mode 100644index 0000000000..3289534b5a--- /dev/null+++ b/packages/cli/authoring/doctypes/component/parse.d.mts@@ -0,0 +1,4 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++import type {ComponentDoc} from '../types';+export function parseComponent(input: unknown, label?: string): ComponentDoc;diff --git a/packages/cli/authoring/doctypes/component/parse.mjs b/packages/cli/authoring/doctypes/component/parse.mjsnew file mode 100644index 0000000000..e53ec53f8a--- /dev/null+++ b/packages/cli/authoring/doctypes/component/parse.mjs@@ -0,0 +1,26 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * @file Component doc parser (stamped `type: 'component'`). Zod is sealed in+ * `../_schema.mjs`; consumers call `parseComponent` or use `parseDoc`.+ */++import {ComponentDocKindSchema} from '../_schema.mjs';+import {formatZodError} from '../../_shared/errors.mjs';++/** @typedef {import('../types').ComponentDoc} ComponentDoc */++/**+ * Validate an unknown value as a stamped component doc, or throw.+ *+ * @param {unknown} input+ * @param {string} [label]+ * @returns {ComponentDoc}+ */+export function parseComponent(input, label = 'component doc') {+ const result = ComponentDocKindSchema.safeParse(input);+ if (!result.success) {+ throw new Error(formatZodError(label, result.error));+ }+ return /** @type {ComponentDoc} */ (result.data);+}diff --git a/packages/cli/authoring/doctypes/component/type.ts b/packages/cli/authoring/doctypes/component/type.tsnew file mode 100644index 0000000000..a802e450b2--- /dev/null+++ b/packages/cli/authoring/doctypes/component/type.ts@@ -0,0 +1,329 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * @file Component doc types (ComponentDoc + its field/variant types).+ */++import type {+ ComponentAnatomyElement,+ ComponentBestPractice,+ ComponentExampleDoc,+ ComponentPlaygroundConfig,+ ComponentPropDoc,+ ComponentThemingDerivedVar,+ ComponentThemingTarget,+ ComponentThemingVar,+ HookParamDoc,+ HookReturnDoc,+ UsageDoc,+} from '../base/type';++/**+ * Shared fields between single-component and multi-component docs.+ * Do not use this interface directly — use `ComponentDoc` (the union type).+ */+export interface ComponentBaseDoc {+ /** Doc-kind discriminant for the stamped default-export format+ * (`export default { type: 'component', ... }`). Optional: legacy+ * `export const docs = {...}` docs omit it, and `parseDoc` falls back to+ * shape-sniffing when it is absent. */+ type?: 'component';+ /** Directory name without the Astryx prefix, PascalCase.+ * e.g. `"Button"`, `"Table"`, `"TextInput"`, `"AppShell"` */+ name: string;+ /** Human-readable display name with spaces between words, used by the+ * docsite gallery and sidebar. Matches the import name visually (so+ * `"AppShell"` → `"App Shell"`, `"ChatMessageMetadata"` → `"Chat+ * Message Metadata"`). Required so authors stay in control of how+ * each component reads in the UI rather than relying on a build-time+ * regex derivation. Backfill with+ * `apps/docsite/scripts/backfill-display-name.mjs`. */+ displayName: string;+ /** Search keywords for CLI discovery. Terms a developer might type when+ * looking for this component: synonyms, related UI concepts, and common+ * names from other design systems (MUI, Chakra, Radix, shadcn).+ * Lowercase only. Used by `astryx component <term>` for fuzzy matching.+ * e.g. `['accordion', 'expand', 'toggle', 'disclosure']` for Collapsible */+ keywords?: string[];+ /** Sub-component names to hide from human-facing UI (CLI listings,+ * docs catalogs). The components stay public and importable — agents+ * and tooling can still discover them via source. Use when the+ * directory's doc covers a group but some Astryx*.tsx files shouldn't+ * appear in the catalog. */+ hiddenComponents?: string[];+ /** Hide this entire component from human-facing UI (CLI listings,+ * docs catalogs). The component stays public and importable — agents+ * and tooling can still discover it via source. Use for shared+ * primitives (NavIcon, NavMenu) that only make sense in the context+ * of their parent compositions. */+ hidden?: boolean;+ /** Optional group for sidebar/docs organization.+ * Components without a group appear flat in alphabetical order.+ * Groups cluster related components that are always used together+ * or are variants of each other. */+ group?: string;+ /** Component category for the overview page gallery. Independent of+ * `group` (which is for the sidebar). Categories represent the+ * component's functional role in a UI.+ *+ * Valid values:+ * - `'Action'` — interactive triggers: buttons, links, toggles, menus+ * - `'Chat'` — conversational UI: messages, composers, layouts+ * - `'Container'` — wrappers: cards, carousels, collapsibles+ * - `'Content'` — display: text, icons, avatars, code blocks+ * - `'Data Input'` — data entry: text fields, selectors, date pickers+ * - `'Data Visualization'` — charts, graphs, 3D visualizations+ * - `'Feedback & Status'` — progress indication: spinners, banners, badges+ * - `'Layout'` — structural: grid, stack, dividers, app shell+ * - `'Navigation'` — wayfinding: tabs, breadcrumbs, sidebars+ * - `'Overlay'` — layered UI: dialogs, popovers, tooltips+ * - `'Table & List'` — tabular and list data display+ * - `'Utility'` — providers and context: themes, link providers */+ category?:+ | 'Action'+ | 'Chat'+ | 'Container'+ | 'Content'+ | 'Data Input'+ | 'Data Visualization'+ | 'Feedback & Status'+ | 'Layout'+ | 'Navigation'+ | 'Overlay'+ | 'Table & List'+ | 'Utility';+ /** When true, this component is excluded from the categorized overview+ * page but remains in the sidebar and CLI. Use for sub-components that+ * only make sense within a parent (e.g. BreadcrumbItem, DialogHeader)+ * or internal primitives that shouldn't appear in the gallery. */+ isHiddenFromOverview?: boolean;+ /** Theming configuration. Documents the stable selector surface rendered+ * by this component: `xds-*` classes plus data-attribute reflections that+ * themes can target via `@scope` selectors in `defineTheme`. */+ theming?: {+ /** Whether this component is a container whose `padding` properties+ * should be mapped to container tokens by the theme pipeline.+ * When true, `padding`, `paddingBlock`, `paddingInline` etc. in+ * component overrides are expanded to `--container-padding-*` and+ * `--layout-padding-*` tokens instead of emitting raw CSS. */+ container?: boolean;+ /** Selector targets rendered by this component.+ * Each entry corresponds to an `themeProps()` call in the source. */+ targets: ComponentThemingTarget[];+ /** CSS custom properties exposed for theming. */+ vars?: ComponentThemingVar[];+ /** Maps standard CSS properties to internal vars for theme pipeline+ * expansion. Ordered by priority — earlier entries emit first.+ * The pipeline reads this to know: when a theme sets `borderRadius`+ * on this component, also emit the internal var.+ * @see ComponentThemingDerivedVar */+ derived?: ComponentThemingDerivedVar[];+ };+ /** Component usage documentation — concise summary, best practices,+ * and optional visual anatomy. */+ usage: UsageDoc;+ /** Short code examples rendered by the CLI after the props table. */+ examples?: ComponentExampleDoc[];++ /** Playground configuration. Controls how the interactive preview+ * renders this component with sensible defaults and slot content. */+ playground?: ComponentPlaygroundConfig;+}++/**+ * The documentation type for a component directory's {Name}.doc.mjs file.+ *+ * Every .doc.mjs must export a single `docs` constant of this type:+ *+ * /\*\* \@type \{import('@astryxdesign/cli/authoring').ComponentDoc\} *\/+ * export const docs = \{ ... \};+ *+ * Use SingleComponentDoc (with `props`) for single-component directories.+ * Use MultiComponentDoc (with `components`) for multi-component directories.+ * Use SubComponentDoc (with `subComponentOf`) for a sub-component that lives+ * in its own file inside its parent's directory.+ */+export type ComponentDoc =+ SingleComponentDoc | MultiComponentDoc | SubComponentDoc;++/**+ * Documents one component within a multi-component directory. Used when a+ * directory exports multiple public components (e.g. Table exports Table,+ * BaseTable, TableRow, TableCell, TableHeaderCell).+ *+ * Also use for hooks that are part of a component API (e.g.+ * useTableSelection). For hook entries, document arguments in `params`+ * and return fields in `returns` so the docsite renders a Parameters / Returns+ * signature instead of an interactive Properties playground. Order components+ * with the primary/most-used component first.+ */+export interface ComponentEntry {+ /** Full export name including Astryx prefix. e.g. `"TableRow"`,+ * `"DialogHeader"`, `"useTableSelection"` */+ name: string;+ /** Human-readable display name for this subcomponent. Matches the import+ * name visually with spaces between PascalCase / camelCase words+ * (e.g. `"TableRow"` → `"Astryx Table Row"`). See `ComponentBaseDoc.displayName`. */+ displayName: string;+ /** One-sentence description of what this specific component does.+ * For sub-components, explain the role within the parent composition. */+ description: string;+ /** All public props for this component. Omit for hook entries. */+ props?: ComponentPropDoc[];+ /** Hook parameters or options object fields. Use for `use*` entries. */+ params?: HookParamDoc[];+ /** Hook return value fields. Use for `use*` entries. */+ returns?: HookReturnDoc[];+ /** Usage documentation for this specific component or hook. */+ usage?: UsageDoc;+ /** Components this hook is commonly used with. */+ relatedComponents?: string[];+ /** Other hooks this hook is commonly used with. */+ relatedHooks?: string[];+ /** Short code examples rendered by the CLI after the props table. */+ examples?: ComponentExampleDoc[];+ /** When true, this sub-component is excluded from the overview page. */+ isHiddenFromOverview?: boolean;+ /** Playground configuration for this specific component. Falls back to+ * the directory doc's `playground` when omitted — declare one here when+ * siblings must not share it (e.g. an overlay drawer whose toggle+ * sub-component should not inherit `overlay: true`). */+ playground?: ComponentPlaygroundConfig;+}++/**+ * Metadata for a component group that is NOT itself a component.+ *+ * Some groups (e.g. 'Checkbox', 'Layout', 'Tabs') are category labels —+ * they cluster related components but have no corresponding Astryx*.tsx file.+ * This metadata tells the docsite and CLI which component to treat as the+ * canonical entry point for the group.+ *+ * Groups whose name IS a component (e.g. 'Avatar', 'Button', 'Dialog')+ * don't need an entry here — the component IS the canonical representative.+ *+ * @example+ * ```+ * { name: 'Checkbox', canonical: 'CheckboxList', description: 'Selection controls for choosing one or more options from a set.' }+ * { name: 'Layout', canonical: 'Stack', description: 'Structural primitives for page and content layout.' }+ * ```+ */+export interface ComponentGroupDoc {+ /** Group name — must match one of the `group` union values on ComponentBaseDoc. */+ name: string;+ /** The canonical component for this group — the one the docsite links+ * to when a user clicks the group name. Should be the most commonly+ * used or most representative component in the group.+ * e.g. `'CheckboxList'` for the Checkbox group. */+ canonical: string;+ /** One-sentence description of what this group of components does.+ * Shown in the sidebar, catalog, or group landing page. */+ description: string;+}++/**+ * A cross-link reference to a sub-component that lives in its own sibling+ * `{Name}.doc.mjs` file (see {@link SubComponentDoc}). The parent's+ * `components` array lists these names so the family stays discoverable;+ * the entry's content is emitted from the sub-component's own file, not here.+ */+export interface ComponentRef {+ /** Full export name including Astryx prefix, e.g. `"ChatComposer"`. Must+ * match the `name` field of the referenced sub-component's own doc. */+ name: string;+}++/**+ * Translation overlay for component documentation.+ *+ * Contains only the prose fields that change between languages/formats.+ * The CLI merges this onto the base `docs` at read time — props,+ * types, defaults, and code all come from `docs`.+ *+ * Used by both `docsZh` (Chinese translation) and `docsDense` (compressed format).+ */+export interface ComponentTranslationDoc {+ /** Compressed/translated component description. */+ description?: string;+ /** Prop descriptions keyed by prop name. Only include props that have descriptions. */+ propDescriptions?: Record<string, string>;+ /** Translated/compressed usage overlay. Mirrors UsageDoc fields. */+ usage?: {+ description?: string;+ bestPractices?: ComponentBestPractice[];+ anatomy?: ComponentAnatomyElement[];+ };+ /** Sub-component translations. Must match docs.components length and order (if present). */+ components?: {+ /** Exact name from docs.components[n].name */+ name: string;+ /** Optional translated displayName for the sub-component. Allowed so+ * the displayName backfill codemod (which adds `displayName` next+ * to every `name:` field) does not break translation overlays.+ * Translation overlays render via the canonical docs, so this+ * field is ignored at render time. */+ displayName?: string;+ /** Compressed/translated sub-component description. */+ description: string;+ /** Prop descriptions keyed by prop name. */+ propDescriptions?: Record<string, string>;+ /** When true, this sub-component is excluded from the overview page. */+ isHiddenFromOverview?: boolean;+ }[];+}++/**+ * Documentation for a directory that exports multiple public components.+ * Props live on each entry in `components`.+ *+ * Use this when the directory has multiple `XDS*.tsx` files+ * (e.g. Table, Dialog, TabList, TopNav, Layout).+ *+ * Each `components` entry is either a full {@link ComponentEntry} (inline+ * sub-component) or a name-only {@link ComponentRef} pointing at a sibling+ * `{Name}.doc.mjs` file. The two styles can be mixed during migration.+ */+export interface MultiComponentDoc extends ComponentBaseDoc {+ /** Each public component/hook exported from this directory — either an+ * inline entry or a name-only reference to a sibling sub-component doc. */+ components: (ComponentEntry | ComponentRef)[];+}++/**+ * Documentation for a directory that exports a single primary component.+ * Props live directly on this object.+ *+ * Use this when the directory has one main `XDS*.tsx` file+ * (e.g. Switch, Badge, Spinner, TextInput).+ */+export interface SingleComponentDoc extends ComponentBaseDoc {+ /** All public props for the component. */+ props: ComponentPropDoc[];+}++/**+ * Documentation for a single sub-component that lives in its own+ * `{Name}.doc.mjs` file inside its parent's directory. Identified by the+ * `subComponentOf` field, which names the parent component.+ *+ * A sub-component owns its `description`, `props`, and (optionally) its own+ * `usage`. Family-level fields (`group`, `category`, `keywords`, `theming`,+ * `playground`) are inherited from the directory's primary doc unless+ * overridden here. The generated registry entry is identical to the legacy+ * inline `components[]` expansion — this is purely a file-structure change.+ */+export interface SubComponentDoc extends Omit<ComponentBaseDoc, 'usage'> {+ /** Name of the parent component this sub-component belongs to, matching the+ * parent doc's `name` (e.g. `"Chat"`). Marks this file as a sub-component+ * doc so the pipeline parents and inherits family fields correctly. */+ subComponentOf: string;+ /** One-sentence description of what this sub-component does and its role+ * within the parent composition. */+ description: string;+ /** All public props for this sub-component. */+ props: ComponentPropDoc[];+ /** Usage is optional for sub-components — when omitted, generated surfaces+ * should use the sub-component's own description as the concise usage+ * summary (not inherited from the parent, which was the #2602 bug). */+ usage?: UsageDoc;+}diff --git a/packages/cli/authoring/doctypes/hook/parse.d.mts b/packages/cli/authoring/doctypes/hook/parse.d.mtsnew file mode 100644index 0000000000..80f0bec52b--- /dev/null+++ b/packages/cli/authoring/doctypes/hook/parse.d.mts@@ -0,0 +1,4 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++import type {HookDoc} from '../types';+export function parseHook(input: unknown, label?: string): HookDoc;diff --git a/packages/cli/authoring/doctypes/hook/parse.mjs b/packages/cli/authoring/doctypes/hook/parse.mjsnew file mode 100644index 0000000000..b3f6c2d083--- /dev/null+++ b/packages/cli/authoring/doctypes/hook/parse.mjs@@ -0,0 +1,26 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * @file Function/hook doc parser (stamped `type: 'function'`). Zod is sealed in+ * `../_schema.mjs`; consumers call `parseHook` or use `parseDoc`.+ */++import {FunctionDocKindSchema} from '../_schema.mjs';+import {formatZodError} from '../../_shared/errors.mjs';++/** @typedef {import('../types').HookDoc} HookDoc */++/**+ * Validate an unknown value as a stamped function/hook doc, or throw.+ *+ * @param {unknown} input+ * @param {string} [label]+ * @returns {HookDoc}+ */+export function parseHook(input, label = 'function doc') {+ const result = FunctionDocKindSchema.safeParse(input);+ if (!result.success) {+ throw new Error(formatZodError(label, result.error));+ }+ return /** @type {HookDoc} */ (result.data);+}diff --git a/packages/cli/authoring/doctypes/hook/type.ts b/packages/cli/authoring/doctypes/hook/type.tsnew file mode 100644index 0000000000..8653d890c2--- /dev/null+++ b/packages/cli/authoring/doctypes/hook/type.ts@@ -0,0 +1,77 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * @file Hook/function doc types.+ */++import type {+ ComponentBestPractice,+ HookParamDoc,+ HookReturnDoc,+ UsageDoc,+} from '../base/type';++/**+ * Documentation for a standalone hook's .doc.mjs file.+ *+ * Hooks that are part of a component's API (e.g. useImperativeDialog)+ * should be documented in the component's MultiComponentDoc.components array.+ *+ * Standalone hooks (e.g. useMediaQuery, useFocusTrap, useOverflow) get+ * their own {hookName}.doc.mjs file and use this type.+ *+ * Every hook .doc.mjs must export a single `docs` constant:+ *+ * /\*\* @type {import('@astryxdesign/cli/authoring').HookDoc} \*\/+ * export const docs = { ... };+ */+export interface HookDoc {+ /** Doc-kind discriminant for the stamped default-export format+ * (`export default { type: 'function', ... }`). Optional: legacy+ * `export const docs = {...}` docs omit it. */+ type?: 'function';+ /** Hook name exactly as exported, e.g. 'useMediaQuery', 'useFocusTrap'. */+ name: string;+ /** Human-readable display name for the hook. Hooks read better as the+ * raw identifier ('useMediaQuery') than spaced ('use Media Query'), so+ * the codemod keeps the identifier verbatim. See `ComponentBaseDoc.displayName`. */+ displayName: string;+ /** Optional group for sidebar/docs organization — same as ComponentDoc.group. */+ group?: string;+ /** Search keywords for CLI discovery. */+ keywords?: string[];+ /** Hook parameters or options object fields. */+ params: HookParamDoc[];+ /** Return value documentation. For object returns, list each field.+ * For primitive returns, use a single entry. */+ returns: HookReturnDoc[];+ /** Usage documentation — description, best practices. */+ usage: UsageDoc;+ /** Component names this hook is commonly used with.+ * Enables cross-referencing: \`astryx component Toast\` can mention useToast,+ * and \`astryx hook useToast\` can link back to Toast. */+ relatedComponents?: string[];+ /** Other hook names this hook is commonly used with. */+ relatedHooks?: string[];+ /** Import path, e.g. '@astryxdesign/core/hooks' or '@astryxdesign/core/Toast'. */+ importPath?: string;+ /** Category for grouping in listings. */+ category?: string;+}++/**+ * Translation overlay for hook documentation.+ */+export interface HookTranslationDoc {+ /** Compressed/translated description. */+ description?: string;+ /** Param descriptions keyed by param name. */+ paramDescriptions?: Record<string, string>;+ /** Return descriptions keyed by field name. */+ returnDescriptions?: Record<string, string>;+ /** Translated usage. */+ usage?: {+ description?: string;+ bestPractices?: ComponentBestPractice[];+ };+}diff --git a/packages/cli/authoring/doctypes/legacy.d.mts b/packages/cli/authoring/doctypes/legacy.d.mtsnew file mode 100644index 0000000000..bc0b6d6836--- /dev/null+++ b/packages/cli/authoring/doctypes/legacy.d.mts@@ -0,0 +1,4 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++import type {ComponentDoc, HookDoc} from './types';+export function parseLegacyDoc(input: unknown, label?: string): ComponentDoc | HookDoc;diff --git a/packages/cli/authoring/doctypes/legacy.mjs b/packages/cli/authoring/doctypes/legacy.mjsnew file mode 100644index 0000000000..fb91bdee8d--- /dev/null+++ b/packages/cli/authoring/doctypes/legacy.mjs@@ -0,0 +1,29 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * @file Legacy (unstamped) doc parser. The pre-factory docs are authored as a+ * loose object with no `type` discriminant and validated by shape. Zod is+ * sealed in `./_schema.mjs`; `parseDoc` falls back here when a doc carries no+ * stamped `type`.+ */++import {LegacyDocSchema} from './_schema.mjs';+import {formatZodError} from '../_shared/errors.mjs';++/** @typedef {import('./types').ComponentDoc} ComponentDoc */+/** @typedef {import('./types').HookDoc} HookDoc */++/**+ * Validate an unknown value as a legacy (unstamped) doc, or throw.+ *+ * @param {unknown} input+ * @param {string} [label]+ * @returns {ComponentDoc | HookDoc}+ */+export function parseLegacyDoc(input, label = 'doc') {+ const result = LegacyDocSchema.safeParse(input);+ if (!result.success) {+ throw new Error(formatZodError(label, result.error));+ }+ return /** @type {ComponentDoc | HookDoc} */ (result.data);+}diff --git a/packages/cli/authoring/doctypes/parse.d.mts b/packages/cli/authoring/doctypes/parse.d.mtsnew file mode 100644index 0000000000..24a760f54f--- /dev/null+++ b/packages/cli/authoring/doctypes/parse.d.mts@@ -0,0 +1,4 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++import type {ComponentDoc, HookDoc, ReferenceDoc, TemplateDoc} from './types';+export function parseDoc(input: unknown, label?: string): ComponentDoc | HookDoc | ReferenceDoc | TemplateDoc;diff --git a/packages/cli/authoring/doctypes/parse.mjs b/packages/cli/authoring/doctypes/parse.mjsnew file mode 100644index 0000000000..8e9403edda--- /dev/null+++ b/packages/cli/authoring/doctypes/parse.mjs@@ -0,0 +1,50 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * @file The doc load boundary. `parseDoc` validates an unknown loaded doc value+ * into its typed shape (or throws a readable error), dispatching on the stamped+ * `type` and falling back to legacy shape-sniffing for unstamped docs. Its+ * acceptance set matches the old permissive `ComponentDocSchema` exactly, so+ * every existing `.doc.*` keeps loading unchanged.+ */++import {parseComponent} from './component/parse.mjs';+import {parseHook} from './hook/parse.mjs';+import {parseReference} from './reference/parse.mjs';+import {parseTemplate} from './template/parse.mjs';+import {parseLegacyDoc} from './legacy.mjs';++/** @typedef {import('./types').ComponentDoc} ComponentDoc */+/** @typedef {import('./types').HookDoc} HookDoc */+/** @typedef {import('./types').ReferenceDoc} ReferenceDoc */+/** @typedef {import('./types').TemplateDoc} TemplateDoc */++/**+ * Validate an unknown loaded doc value into its typed shape, or throw.+ * Dispatches on the stamped `type`; unstamped docs fall back to+ * shape-sniffing. The reference/topic discriminant is `'generic'`.+ *+ * @param {unknown} input+ * @param {string} [label]+ * @returns {ComponentDoc | HookDoc | ReferenceDoc | TemplateDoc}+ */+export function parseDoc(input, label = 'doc') {+ const type =+ input && typeof input === 'object' && 'type' in input+ ? /** @type {{type?: unknown}} */ (input).type+ : undefined;++ switch (type) {+ case 'component':+ return parseComponent(input, label);+ case 'function':+ return parseHook(input, label);+ case 'generic':+ return parseReference(input, label);+ case 'page':+ case 'block':+ return parseTemplate(input, label);+ default:+ return parseLegacyDoc(input, label);+ }+}diff --git a/packages/cli/authoring/doc.test.mjs b/packages/cli/authoring/doctypes/parse.test.mjssimilarity index 57%rename from packages/cli/authoring/doc.test.mjsrename to packages/cli/authoring/doctypes/parse.test.mjsindex 5ff2ab9b41..dabb228592 100644--- a/packages/cli/authoring/doc.test.mjs+++ b/packages/cli/authoring/doctypes/parse.test.mjs@@ -1,26 +1,26 @@// Copyright (c) Meta Platforms, Inc. and affiliates.+/**+ * @file Colocated tests for the doc load boundary. `parseDoc` dispatches on the+ * stamped `type` to the per-kind parsers and falls back to legacy shape-sniffing+ * for unstamped docs — its acceptance set matches the old permissive+ * `ComponentDocSchema` exactly, so every existing `.doc.*` keeps loading. Zod is+ * sealed inside the parsers; authors write a plain object and stamp `type`+ * directly (no factory). The end-to-end `loadComponentDoc` cases lock that both+ * the stamped default export and the legacy `export const docs = {}` load.+ */+import {afterEach, beforeEach, describe, expect, it} from 'vitest';import * as fs from 'node:fs';import * as path from 'node:path';-import {- createComponentDoc,- createFunctionDoc,- createDoc,- ComponentDocSchema,- ComponentDocKindSchema,- FunctionDocKindSchema,- GenericDocKindSchema,-} from './doc.mjs';-import {loadComponentDoc} from '../lib/component-loader.mjs';--// The factories are stamp-only (like createConfig / createBlockTemplate): they-// inject a `type` discriminant and are otherwise identity, performing NO-// runtime validation. Validation happens at the LOAD boundary-// (loadComponentDoc runs the loaded value through ComponentDocSchema), so the-// rejection cases assert the schema rejects rather than the factory throwing.+import {parseDoc} from './parse.mjs';+import {parseComponent} from './component/parse.mjs';+import {parseHook} from './hook/parse.mjs';+import {parseReference} from './reference/parse.mjs';+import {loadComponentDoc} from '../../foundation/discovery/component-loader.mjs';const goodComponent = {+ type: 'component',name: 'Widget',displayName: 'Widget',description: 'A small widget.',@@ -31,6 +31,7 @@ const goodComponent = {};const goodFunction = {+ type: 'function',name: 'useThing',displayName: 'useThing',description: 'A thing hook.',@@ -39,55 +40,36 @@ const goodFunction = {};const goodGeneric = {+ type: 'generic',name: 'Theming',displayName: 'Theming',description: 'How theming works.',};-describe('doc factories (stamp-only)', () => {- it('createComponentDoc stamps type: component and is otherwise identity', () => {- const doc = createComponentDoc(goodComponent);- expect(doc.type).toBe('component');- const {type, ...rest} = doc;- expect(rest).toEqual(goodComponent);- });-- it('createFunctionDoc stamps type: function and is otherwise identity', () => {- const doc = createFunctionDoc(goodFunction);- expect(doc.type).toBe('function');- const {type, ...rest} = doc;- expect(rest).toEqual(goodFunction);- });-- it('createDoc stamps type: generic and is otherwise identity', () => {- const doc = createDoc(goodGeneric);- expect(doc.type).toBe('generic');- const {type, ...rest} = doc;- expect(rest).toEqual(goodGeneric);- });+/** Run parseDoc and return the thrown message (asserting it throws). */+function reason(value, label = 'doc') {+ try {+ parseDoc(value, label);+ } catch (err) {+ return err instanceof Error ? err.message : String(err);+ }+ throw new Error('expected parseDoc to throw');+}- it('does NOT validate — stamps invalid shapes unchanged', () => {- const bogus = {group: 'Buttons'}; // no name- expect(createComponentDoc(bogus)).toEqual({...bogus, type: 'component'});- });-});--describe('per-kind schemas (new stamped format)', () => {- it('ComponentDocKindSchema accepts a valid component doc', () => {- expect(() =>- ComponentDocKindSchema.parse(createComponentDoc(goodComponent)),- ).not.toThrow();+describe('per-kind parsers (stamped format)', () => {+ it('parseComponent accepts a valid component doc', () => {+ expect(() => parseComponent(goodComponent)).not.toThrow();});- it('ComponentDocKindSchema rejects a missing name with a readable message', () => {+ it('parseComponent rejects a missing name with a readable message', () => {expect(() =>- ComponentDocKindSchema.parse({type: 'component', name: '', props: []}),+ parseComponent({type: 'component', name: '', props: []}),).toThrow(/name is required/);});- it('ComponentDocKindSchema rejects a prop missing its type with a readable message', () => {+ it('parseComponent rejects a prop missing its type', () => {expect(() =>- ComponentDocKindSchema.parse({+ parseComponent({type: 'component',name: 'Widget',props: [{name: 'label', description: 'no type'}],@@ -95,9 +77,9 @@ describe('per-kind schemas (new stamped format)', () => {).toThrow(/type/);});- it('ComponentDocKindSchema surfaces the custom message for an empty prop type', () => {+ it('parseComponent surfaces the custom message for an empty prop type', () => {expect(() =>- ComponentDocKindSchema.parse({+ parseComponent({type: 'component',name: 'Widget',props: [{name: 'label', type: '', description: 'empty type'}],@@ -105,82 +87,71 @@ describe('per-kind schemas (new stamped format)', () => {).toThrow(/prop type is required/);});- it('FunctionDocKindSchema accepts a valid function doc', () => {- expect(() =>- FunctionDocKindSchema.parse(createFunctionDoc(goodFunction)),- ).not.toThrow();+ it('parseHook accepts a valid function doc', () => {+ expect(() => parseHook(goodFunction)).not.toThrow();});- it('FunctionDocKindSchema rejects a function doc missing returns', () => {+ it('parseHook rejects a function doc missing returns', () => {expect(() =>- FunctionDocKindSchema.parse({- type: 'function',- name: 'useThing',- params: [],- }),+ parseHook({type: 'function', name: 'useThing', params: []}),).toThrow();});- it('GenericDocKindSchema accepts a valid generic doc', () => {- expect(() =>- GenericDocKindSchema.parse(createDoc(goodGeneric)),- ).not.toThrow();+ it('parseReference accepts a valid generic doc', () => {+ expect(() => parseReference(goodGeneric)).not.toThrow();});it('keeps nested rich blobs loose (usage/theming/playground passthrough)', () => {- const doc = createComponentDoc({- ...goodComponent,- usage: {description: 'Use it.', anatomy: [{name: 'root'}]},- theming: {targets: [{className: 'astryx-widget'}]},- playground: {defaults: {label: 'Hi'}},- examples: [{title: 'Basic', code: '<Widget />'}],- });- expect(() => ComponentDocKindSchema.parse(doc)).not.toThrow();+ expect(() =>+ parseComponent({+ ...goodComponent,+ usage: {description: 'Use it.', anatomy: [{name: 'root'}]},+ theming: {targets: [{className: 'astryx-widget'}]},+ playground: {defaults: {label: 'Hi'}},+ examples: [{title: 'Basic', code: '<Widget />'}],+ }),+ ).not.toThrow();});it('accepts parent + relatedDocs on the shared base', () => {- const doc = createComponentDoc({+ const parsed = parseComponent({...goodComponent,parent: 'WidgetGroup',relatedDocs: ['Gauge', 'useThing'],group: 'Widgets',});- const parsed = ComponentDocKindSchema.parse(doc);expect(parsed.parent).toBe('WidgetGroup');expect(parsed.relatedDocs).toEqual(['Gauge', 'useThing']);});});-describe('ComponentDocSchema (load-boundary, both formats)', () => {- it('accepts a stamped component doc via the per-kind schema', () => {- expect(() =>- ComponentDocSchema.parse(createComponentDoc(goodComponent)),- ).not.toThrow();+describe('parseDoc (load boundary, both formats)', () => {+ it('accepts a stamped component doc', () => {+ expect(() => parseDoc(goodComponent)).not.toThrow();});it('accepts a stamped function doc', () => {- expect(() =>- ComponentDocSchema.parse(createFunctionDoc(goodFunction)),- ).not.toThrow();+ expect(() => parseDoc(goodFunction)).not.toThrow();});it('accepts a stamped generic doc', () => {- expect(() =>- ComponentDocSchema.parse(createDoc(goodGeneric)),- ).not.toThrow();+ expect(() => parseDoc(goodGeneric)).not.toThrow();});it('accepts the OLD loose single-component shape (no type)', () => {- expect(() => ComponentDocSchema.parse(goodComponent)).not.toThrow();+ const {type, ...loose} = goodComponent;+ expect(() => parseDoc(loose)).not.toThrow();});it('accepts the OLD loose multi-component shape (components[])', () => {const multi = {name: 'Table',displayName: 'Table',- components: [{name: 'TableRow', displayName: 'Table Row', description: 'A row.'}],+ components: [+ {name: 'TableRow', displayName: 'Table Row', description: 'A row.'},+ ],};- expect(() => ComponentDocSchema.parse(multi)).not.toThrow();+ expect(() => parseDoc(multi)).not.toThrow();});it('accepts the OLD loose sub-component shape (subComponentOf)', () => {@@ -191,7 +162,7 @@ describe('ComponentDocSchema (load-boundary, both formats)', () => {description: 'A gauge item.',props: [{name: 'item', type: 'Item', description: 'The item.'}],};- expect(() => ComponentDocSchema.parse(sub)).not.toThrow();+ expect(() => parseDoc(sub)).not.toThrow();});it('accepts the OLD loose standalone-hook shape (params + returns, no type)', () => {@@ -201,7 +172,7 @@ describe('ComponentDocSchema (load-boundary, both formats)', () => {params: [{name: 'q', type: 'string', description: 'query'}],returns: [{name: 'value', type: 'boolean', description: 'match'}],};- expect(() => ComponentDocSchema.parse(hook)).not.toThrow();+ expect(() => parseDoc(hook)).not.toThrow();});it('accepts BOTH parent and legacy subComponentOf', () => {@@ -212,8 +183,8 @@ describe('ComponentDocSchema (load-boundary, both formats)', () => {description: 'sub',props: [],};- expect(() => ComponentDocSchema.parse(withParent)).not.toThrow();- expect(() => ComponentDocSchema.parse(withSubComponentOf)).not.toThrow();+ expect(() => parseDoc(withParent)).not.toThrow();+ expect(() => parseDoc(withSubComponentOf)).not.toThrow();});it('accepts BOTH relatedDocs and legacy relatedComponents/relatedHooks', () => {@@ -226,15 +197,14 @@ describe('ComponentDocSchema (load-boundary, both formats)', () => {relatedHooks: ['useOther'],};const modern = {...goodComponent, relatedDocs: ['Gauge', 'useThing']};- expect(() => ComponentDocSchema.parse(legacy)).not.toThrow();- expect(() =>- ComponentDocSchema.parse(createComponentDoc(modern)),- ).not.toThrow();+ expect(() => parseDoc(legacy)).not.toThrow();+ expect(() => parseDoc(modern)).not.toThrow();});it('passes through loose extras (usage, playground, theming, importPath, showcase)', () => {- const loose = {- ...goodComponent,+ const {type, ...base} = goodComponent;+ const parsed = parseDoc({+ ...base,usage: {description: 'Use it wisely.'},playground: {defaults: {label: 'Hi'}},theming: {targets: [{className: 'astryx-widget'}]},@@ -243,24 +213,21 @@ describe('ComponentDocSchema (load-boundary, both formats)', () => {isHiddenFromOverview: true,importPath: '@astryxdesign/core/Widget',showcase: 'WidgetHero',- };- const parsed = ComponentDocSchema.parse(loose);+ });expect(parsed.importPath).toBe('@astryxdesign/core/Widget');expect(parsed.showcase).toBe('WidgetHero');});it('rejects a doc with no name', () => {- expect(() => ComponentDocSchema.parse({props: []})).toThrow();+ expect(() => parseDoc({props: []})).toThrow();});it('rejects an empty name with a readable message', () => {- expect(() => ComponentDocSchema.parse({name: '', props: []})).toThrow(- /name is required/,- );+ expect(reason({name: '', props: []})).toMatch(/name is required/);});});-describe('loadComponentDoc (load boundary)', () => {+describe('loadComponentDoc (end-to-end load boundary)', () => {let tmpDir;beforeEach(() => {@@ -271,22 +238,20 @@ describe('loadComponentDoc (load boundary)', () => {fs.rmSync(tmpDir, {recursive: true, force: true});});- const docModule = () => JSON.stringify(path.resolve(import.meta.dirname, 'doc.mjs'));-- it('loads a .doc.ts fixture via jiti (createComponentDoc default export)', async () => {- const file = path.join(tmpDir, 'Widget.doc.ts');+ it('loads a stamped component .doc.mjs default export', async () => {+ const file = path.join(tmpDir, 'Widget.doc.mjs');fs.writeFileSync(file,[- `import {createComponentDoc} from ${docModule()};`,- 'export default createComponentDoc({',+ 'export default {',+ " type: 'component',"," name: 'Widget',"," displayName: 'Widget',"," description: 'A small widget.',",' props: ['," {name: 'label', type: 'string', description: 'Visible label.', required: true},",' ],',- '});',+ '};',].join('\n'),);const docs = await loadComponentDoc(file);@@ -295,18 +260,18 @@ describe('loadComponentDoc (load boundary)', () => {expect(docs.props).toHaveLength(1);});- it('loads a .doc.ts fixture via jiti (createFunctionDoc default export)', async () => {- const file = path.join(tmpDir, 'useThing.doc.ts');+ it('loads a stamped function .doc.mjs default export', async () => {+ const file = path.join(tmpDir, 'useThing.doc.mjs');fs.writeFileSync(file,[- `import {createFunctionDoc} from ${docModule()};`,- 'export default createFunctionDoc({',+ 'export default {',+ " type: 'function',"," name: 'useThing',"," displayName: 'useThing',"," params: [{name: 'input', type: 'string', description: 'The input.'}],"," returns: [{name: 'value', type: 'string', description: 'The result.'}],",- '});',+ '};',].join('\n'),);const docs = await loadComponentDoc(file);@@ -315,17 +280,17 @@ describe('loadComponentDoc (load boundary)', () => {expect(docs.returns).toHaveLength(1);});- it('loads a .doc.ts fixture via jiti (createDoc generic default export)', async () => {- const file = path.join(tmpDir, 'Theming.doc.ts');+ it('loads a stamped generic .doc.mjs default export', async () => {+ const file = path.join(tmpDir, 'Theming.doc.mjs');fs.writeFileSync(file,[- `import {createDoc} from ${docModule()};`,- 'export default createDoc({',+ 'export default {',+ " type: 'generic',"," name: 'Theming',"," displayName: 'Theming',"," description: 'How theming works.',",- '});',+ '};',].join('\n'),);const docs = await loadComponentDoc(file);diff --git a/packages/cli/authoring/doctypes/reference/parse.d.mts b/packages/cli/authoring/doctypes/reference/parse.d.mtsnew file mode 100644index 0000000000..c5c519c2a7--- /dev/null+++ b/packages/cli/authoring/doctypes/reference/parse.d.mts@@ -0,0 +1,4 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++import type {ReferenceDoc} from '../types';+export function parseReference(input: unknown, label?: string): ReferenceDoc;diff --git a/packages/cli/authoring/doctypes/reference/parse.mjs b/packages/cli/authoring/doctypes/reference/parse.mjsnew file mode 100644index 0000000000..64771adcc5--- /dev/null+++ b/packages/cli/authoring/doctypes/reference/parse.mjs@@ -0,0 +1,30 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * @file Reference/topic doc parser (stamped `type: 'generic'`). The rich type+ * is {@link ReferenceDoc}; the stamped discriminant value stays `'generic'`.+ * Zod is sealed in `../_schema.mjs`; consumers call `parseReference` or `parseDoc`.+ */++import {GenericDocKindSchema} from '../_schema.mjs';+import {formatZodError} from '../../_shared/errors.mjs';++/** @typedef {import('../types').ReferenceDoc} ReferenceDoc */++/**+ * Validate an unknown value as a stamped reference/topic doc, or throw.+ *+ * @param {unknown} input+ * @param {string} [label]+ * @returns {ReferenceDoc}+ */+export function parseReference(input, label = 'reference doc') {+ const result = GenericDocKindSchema.safeParse(input);+ if (!result.success) {+ throw new Error(formatZodError(label, result.error));+ }+ // The schema is permissive (it also accepts legacy generic docs), so it is+ // deliberately looser than the rich public type; cast through unknown at this+ // validated boundary.+ return /** @type {ReferenceDoc} */ (/** @type {unknown} */ (result.data));+}diff --git a/packages/cli/authoring/doctypes/reference/type.ts b/packages/cli/authoring/doctypes/reference/type.tsnew file mode 100644index 0000000000..512571d938--- /dev/null+++ b/packages/cli/authoring/doctypes/reference/type.ts@@ -0,0 +1,154 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * @file Reference/topic doc types.+ */++/**+ * A content block within a reference doc section.+ * Ordered array of these makes up a section's content.+ * New block types can be added without breaking existing docs.+ *+ * @example+ * ```+ * { type: 'prose', text: 'Spacing tokens control gap and padding...' }+ * { type: 'heading', level: 3, text: 'Examples' }+ * { type: 'code', lang: 'tsx', code: 'padding: spacingVars[...]' }+ * { type: 'table', headers: ['Token', 'Value'], rows: [['--spacing-4', '16px']] }+ * { type: 'list', style: 'do', items: ['Use semantic tokens'] }+ * { type: 'token-ref', topic: 'tokens', section: 'Color Tokens' }+ * ```+ */+export type ReferenceContentBlock =+ | {type: 'prose'; text: string}+ | {type: 'heading'; level: 3 | 4 | 5 | 6; text: string}+ | {type: 'code'; lang: string; code: string; label?: string}+ | {type: 'table'; headers: string[]; rows: string[][]}+ | {+ type: 'list';+ style: 'ordered' | 'unordered' | 'do' | 'dont';+ items: string[];+ }+ | {+ /** Reference to a token table in another doc topic.+ * The CLI resolves this at read time and inlines the referenced+ * section's table. The docsite can render it with live theme values+ * and type-specific previews instead of static strings. */+ type: 'token-ref';+ /** Doc topic name containing the tokens. e.g. `'tokens'` */+ topic: string;+ /** Section title to pull from that topic. e.g. `'Color Tokens'` */+ section: string;+ };++/**+ * A reference documentation file (.doc.mjs).+ *+ * Reference docs cover topics like design tokens, principles, theming,+ * patterns, accessibility, and migration guides. Unlike ComponentDoc,+ * they aren't tied to a specific component — just drop a .doc.mjs file+ * in the docs/ directory and it shows up in `astryx docs`.+ *+ * Every reference .doc.mjs must export a single `docs` constant:+ *+ * /** @type {import('@astryxdesign/cli/authoring').ReferenceDoc} *\/+ * export const docs = { ... };+ */+export interface ReferenceDoc {+ /** Doc-kind discriminant for the stamped default-export format+ * (`export default { type: 'generic', ... }`). Optional: legacy+ * `export const docs = {...}` docs omit it. The value stays `'generic'`+ * (the reference/topic discriminant). */+ type?: 'generic';+ /** URL-safe identifier, used as the CLI topic name. e.g. 'tokens', 'principles' */+ name: string;+ /** Human-readable title. e.g. 'All Tokens' */+ title: string;+ /** One-line summary shown in topic listings. */+ description: string;+ /** Navigation category: 'guide' or 'foundations'. */+ category?: string;+ /** Ordered sections that make up the doc. */+ sections: ReferenceSection[];+ /** Token category for foundational docs that map to a token section.+ * When set, the docsite can link from the tokens overview page+ * to this doc for detailed guidance on that category.+ * e.g. `'color'` links tokens → color foundational doc. */+ tokenCategory?: string;+}++/**+ * A section within a reference doc. Sections are the primary+ * organizational unit — each becomes an h2 in full output,+ * and can be individually retrieved via `astryx docs <topic> <section>`.+ */+export interface ReferenceSection {+ /** Section title, e.g. "Spacing Tokens", "Light/Dark Mode" */+ title: string;+ /** Navigation category ('guide' | 'foundations'). Mirrors the parent doc's+ * category so sections can be grouped independently in the docsite nav. */+ category?: string;+ /** Ordered content blocks. Mix prose, code, tables, and lists freely. */+ content: ReferenceContentBlock[];+ /** Preview type for token tables in this section. When set, the docsite+ * renders a visual preview column using the token's computed CSS value+ * from the current theme. Omit for non-token sections. */+ previewType?: ReferenceTokenPreviewType;+}++/**+ * Preview type hint for token tables. Tells the docsite how to render+ * a visual preview column for each token row.+ *+ * - `'swatch'` — Color circle/square showing the token value+ * - `'shadow-box'` — Box with the shadow applied+ * - `'radius-box'` — Box with the border-radius applied+ * - `'spacing-bar'` — Horizontal bar at the token's width+ * - `'size-bar'` — Horizontal bar at the token's height+ * - `'border-line'` — Line at the token's border-width+ * - `'duration-bar'` — Animated bar showing the timing+ * - `'easing-curve'` — Bezier curve visualization+ * - `'font-sample'` — Text sample in the font family/size/weight+ */+export type ReferenceTokenPreviewType =+ | 'swatch'+ | 'shadow-box'+ | 'radius-box'+ | 'spacing-bar'+ | 'size-bar'+ | 'border-line'+ | 'duration-bar'+ | 'easing-curve'+ | 'font-sample';++/**+ * Translation/compression overlay for reference documentation.+ *+ * Swaps prose text and list items. Code blocks and table data+ * are NOT translated — they stay as-is from the base doc.+ *+ * Used by `docsZh` (Chinese) and `docsDense` (compressed format).+ */+export interface ReferenceTranslationDoc {+ /** Translated/compressed description. */+ description: string;+ /** Section overrides, keyed to base sections by `section`. Order does not+ * matter, and an overlay may cover any subset — sections it does not name+ * keep their base content. (These used to be matched by array index, which+ * meant a reordered or partial overlay grafted every title onto the wrong+ * body: `docs tokens --dense` printed the colour table under a "Spacing"+ * heading. See #2182.) */+ sections: {+ /** Title of the BASE section this entry overrides, verbatim and in English+ * (e.g. 'Spacing Tokens'). Must match a section in the base doc. */+ section: string;+ /** Translated/compressed section title, shown in place of the base title. */+ title: string;+ /** Content block overrides, by index within the anchored base section.+ * Only prose and list blocks need entries. Use null for blocks that don't+ * change (code, table). */+ content: (+ {type: 'prose'; text: string} | {type: 'list'; items: string[]} | null+ )[];+ }[];+}diff --git a/packages/cli/authoring/doctypes/template/parse.d.mts b/packages/cli/authoring/doctypes/template/parse.d.mtsnew file mode 100644index 0000000000..01947e6101--- /dev/null+++ b/packages/cli/authoring/doctypes/template/parse.d.mts@@ -0,0 +1,4 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++import type {TemplateDoc} from '../types';+export function parseTemplate(input: unknown, label?: string): TemplateDoc;diff --git a/packages/cli/authoring/doctypes/template/parse.mjs b/packages/cli/authoring/doctypes/template/parse.mjsnew file mode 100644index 0000000000..bbd5057395--- /dev/null+++ b/packages/cli/authoring/doctypes/template/parse.mjs@@ -0,0 +1,54 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * @file Template doc parser (stamped `type: 'page' | 'block'`). Zod is sealed+ * here; template discovery calls `parseTemplate` at the load boundary.+ *+ * The schema is the minimal INTEGRATION-template envelope (integration templates+ * carry only name/description/category/componentsUsed/preview plus the+ * page|block discriminant). First-party core templates use the richer+ * {@link TemplateDoc} and are loaded separately; `parseTemplate` returns that+ * public type.+ */++import {z} from 'zod';+import {formatZodError} from '../../_shared/errors.mjs';++/** @typedef {import('../types').TemplateDoc} TemplateDoc */++const previewSchema = z+ .object({+ image: z.string().optional(),+ aspectRatio: z.string().optional(),+ })+ .strict();++const baseTemplateFields = {+ name: z.string().min(1, 'name is required'),+ description: z.string().min(1, 'description is required'),+ category: z.string().optional(),+ componentsUsed: z.array(z.string()).optional(),+ preview: previewSchema.optional(),+};++const templateEnvelopeSchema = z.discriminatedUnion('type', [+ z.object({...baseTemplateFields, type: z.literal('page')}).strict(),+ z.object({...baseTemplateFields, type: z.literal('block')}).strict(),+]);++/**+ * Validate an unknown value as a stamped template doc, or throw. The zod schema+ * validates the minimal integration-template envelope; the returned value is+ * typed as the public {@link TemplateDoc}.+ *+ * @param {unknown} input+ * @param {string} [label]+ * @returns {TemplateDoc}+ */+export function parseTemplate(input, label = 'template') {+ const result = templateEnvelopeSchema.safeParse(input);+ if (!result.success) {+ throw new Error(formatZodError(label, result.error));+ }+ return /** @type {TemplateDoc} */ (result.data);+}diff --git a/packages/cli/authoring/doctypes/template/parse.test.mjs b/packages/cli/authoring/doctypes/template/parse.test.mjsnew file mode 100644index 0000000000..55d33e166b--- /dev/null+++ b/packages/cli/authoring/doctypes/template/parse.test.mjs@@ -0,0 +1,87 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * @file Colocated tests for `parseTemplate` — the load-boundary validator run+ * against a `.template.*` module's default export during template discovery.+ * Zod is sealed inside the parser; authors write a plain object stamped with a+ * `type` of `'page'` or `'block'`. Accept/reject set matches the old+ * `TemplateEnvelopeSchema`.+ */++import {describe, it, expect} from 'vitest';+import {parseTemplate} from './parse.mjs';++/** Run parseTemplate and return the thrown message (asserting it throws). */+function reason(value, label = 'template') {+ try {+ parseTemplate(value, label);+ } catch (err) {+ return err instanceof Error ? err.message : String(err);+ }+ throw new Error('expected parseTemplate to throw');+}++describe('parseTemplate (load boundary)', () => {+ it('accepts a stamped page template', () => {+ const parsed = parseTemplate({+ type: 'page',+ name: 'Landing',+ description: 'A landing page.',+ });+ expect(parsed.type).toBe('page');+ });++ it('accepts a block template with optional fields', () => {+ const parsed = parseTemplate({+ type: 'block',+ name: 'Hero',+ description: 'A hero block.',+ category: 'Marketing',+ componentsUsed: ['Button', 'Card'],+ preview: {image: './preview.png', aspectRatio: '16 / 9'},+ });+ expect(parsed.name).toBe('Hero');+ expect(parsed.preview).toEqual({image: './preview.png', aspectRatio: '16 / 9'});+ });++ it('rejects a missing name', () => {+ expect(reason({type: 'page', description: 'x'})).toContain('name');+ });++ it('rejects a missing description', () => {+ expect(reason({type: 'page', name: 'x'})).toContain('description');+ });++ it('rejects an empty-string name', () => {+ expect(reason({type: 'page', name: '', description: 'x'})).toContain('name');+ });++ it('rejects a missing/invalid type', () => {+ expect(() => parseTemplate({name: 'x', description: 'y'})).toThrow();+ expect(() =>+ parseTemplate({type: 'bogus', name: 'x', description: 'y'}),+ ).toThrow();+ });++ it('rejects unknown keys (strict)', () => {+ expect(() =>+ parseTemplate({+ type: 'page',+ name: 'x',+ description: 'y',+ source: './x.tsx',+ }),+ ).toThrow();+ });++ it('rejects inline sourceFile (not supported in v1)', () => {+ expect(() =>+ parseTemplate({+ type: 'page',+ name: 'x',+ description: 'y',+ sourceFile: './x.tsx',+ }),+ ).toThrow();+ });+});diff --git a/packages/cli/authoring/doctypes/template/type.ts b/packages/cli/authoring/doctypes/template/type.tsnew file mode 100644index 0000000000..fb0ad71e9f--- /dev/null+++ b/packages/cli/authoring/doctypes/template/type.ts@@ -0,0 +1,167 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * @file Template doc types.+ */++export interface BaseTemplateDoc {+ /** Identifier name for the template. For block templates this matches+ * the React component import name (e.g. `"ChatMessageMetadata"`); for+ * page templates it's a human-readable label that doubles as the+ * display value (e.g. `"Dashboard"`). */+ name: string;+ /** Human-readable display name for the gallery / CLI. Matches `name`+ * for already-spaced template names (e.g. `"Blank Page"`); for block+ * templates that mirror a PascalCase component, spaces it out+ * (`"ChatMessageMetadata"` → `"Chat Message Metadata"`). Required so+ * authors stay in control of the visible label rather than relying+ * on a build-time regex derivation. */+ displayName: string;++ /** One-sentence description of what the template provides. */+ description?: string;++ /** Whether this template is ready for use. Templates with+ * isReady: false show as "(WIP)" in the gallery and CLI. */+ isReady?: boolean;++ /** Whether this template is a scaffolding tool only (e.g. blank page).+ * Scaffold templates are available via the CLI but hidden from+ * browsable template galleries like the craft browser. */+ scaffold?: boolean;++ /** Functional category for the docsite Templates overview gallery.+ * Templates are grouped by the part before `" - "` (e.g. `"Dashboard"`).+ * Independent of CLI discovery, which uses `name`/`description`. */+ category?: TemplateCategory;++ /** Boolean opt-out for templates that shouldn't appear on the Templates+ * overview gallery. The template stays available via the CLI and+ * `astryx template <name>` — it's only hidden from the browsable gallery.+ * Use for duplicate/experimental variants. Scaffold templates are+ * hidden automatically and don't need this flag. */+ isHiddenFromOverview?: boolean;+}++export interface BlockTemplateDoc extends BaseTemplateDoc {+ type: 'block';+ /** The component this block is an example of.+ * Matches the component's doc name (e.g. 'Button', 'Dialog', 'Stack').+ * Used by the docsite to show relevant examples on component detail pages. */+ exampleFor: string;+ /** Additional component or hook doc pages whose Examples section should+ * include this block. Use when a component example is also the canonical+ * usage example for one of that component's hooks. */+ alsoExampleFor?: string[];+ /** Additional component or hook doc pages whose hero showcase should reuse+ * this block. Unlike `isShowcase`, this does not make the block the primary+ * showcase for `exampleFor`; it only creates explicit secondary placements. */+ alsoShowcaseFor?: string[];+ /** Width-to-height ratio for preview containers (e.g. 16/9, 1, 3/4). */+ aspectRatio: number;+ /** Scale factor for the block preview (default 1). */+ scale?: number;+ /** Component names this block uses, for cross-referencing.+ * Powers "See also" and "Used in" sections — not for primary attribution. */+ componentsUsed?: string[];+ /** When true this block is the canonical "hero" showcase for a component. */+ isShowcase?: boolean;+}++export interface PageTemplateDoc extends BaseTemplateDoc {+ type: 'page';+}++/**+ * Functional category for a page template, used to group templates on the+ * docsite Templates overview gallery. Independent of any sidebar/nav grouping.+ *+ * Values follow a `"Group - Variant"` convention (e.g. `"Dashboard - Analytics"`).+ * The overview page derives the group heading from the text before the `" - "`.+ * Standalone values without a hyphen (e.g. `"Settings"`) are their own group.+ *+ * Not every value maps to an existing template — unused values are reserved+ * for future templates so authors get autocomplete for the full taxonomy.+ */+export type TemplateCategory =+ // Dashboard+ | 'Dashboard - Analytics'+ | 'Dashboard - KPI Summary'+ | 'Dashboard - Monitoring'+ | 'Dashboard - Executive Summary'+ | 'Dashboard - Widget Grid'+ | 'Dashboard - Split'+ | 'Dashboard - Tabbed'+ | 'Dashboard - Filterable'+ | 'Dashboard - Portfolio'+ // Table+ | 'Table - Basic'+ | 'Table - Grouped'+ | 'Table - Index/Detail'+ | 'Table - Split Pane'+ | 'Table - Bulk Actions'+ | 'Table - Filtering'+ | 'Table - Tree/Hierarchical List'+ | 'Table - Frozen Column'+ | 'Table - Chart'+ | 'Table - Heatmap'+ // Form+ | 'Form - Basic'+ | 'Form - Page'+ | 'Form - Checkout'+ | 'Form - Two-column'+ | 'Form - Wizard'+ | 'Form - Modal Overlay'+ | 'Form - Side Sheet'+ | 'Form - Inline Edits'+ | 'Form - Settings'+ // Settings+ | 'Settings'+ | 'Settings - Dialog'+ | 'Settings - Sidebar'+ | 'Settings - Panels'+ | 'Settings - Form'+ // Login+ | 'Login - Basic'+ | 'Login - Card'+ | 'Login - SSO'+ | 'Login - Split'+ // Tools+ | 'Tools - File Explorer'+ | 'Tools - Page Editor'+ | 'Tools - IDE'+ | 'Tools - Incident Console'+ | 'Tools - Kanban Board'+ | 'Tools - Notebook/Report Page'+ | 'Tools - Diff Compare Viewer'+ | 'Tools - Search Results Page'+ // Content+ | 'Content - Card Grid'+ | 'Content - Order Detail'+ | 'Content - Product Detail'+ | 'Content - Product List'+ | 'Content - Documentation Catalog'+ | 'Content - Documentation Design'+ | 'Content - Documentation Technical'+ | 'Content - Infinite Scroll Page'+ | 'Content - Timeline'+ | 'Content - Profile Page'+ // AI Chat+ | 'AI Chat - Conversation'+ | 'AI Chat - Landing'+ | 'AI Chat - Artifact Page'+ // Gallery+ | 'Gallery - Hero'+ | 'Gallery - Basic'+ | 'Gallery - Mixed'+ | 'Gallery - Side'+ | 'Gallery - Product'+ // Shell+ | 'Shell - Left Sidebar'+ | 'Shell - Top Nav'+ | 'Shell - Top Nav + Left Sidebar'+ | 'Shell - Breadcrumb Driven Layout'+ | 'Shell - Messaging'+ | 'Shell - Blank';++export type TemplateDoc = PageTemplateDoc | BlockTemplateDoc;diff --git a/packages/cli/authoring/doctypes/types.ts b/packages/cli/authoring/doctypes/types.tsnew file mode 100644index 0000000000..9c0793ea33--- /dev/null+++ b/packages/cli/authoring/doctypes/types.ts@@ -0,0 +1,14 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * @file Doc-type vocabulary barrel. Each kind's types live in one `type.ts`+ * under its folder (`base/` shared leaves, then `component/`, `hook/`,+ * `reference/`, `template/`); this re-exports them as the full doc vocabulary+ * behind `@astryxdesign/cli/authoring`.+ */++export type * from './base/type';+export type * from './component/type';+export type * from './hook/type';+export type * from './reference/type';+export type * from './template/type';diff --git a/packages/cli/authoring/index.d.ts b/packages/cli/authoring/index.d.tsnew file mode 100644index 0000000000..1bcb0ba77c--- /dev/null+++ b/packages/cli/authoring/index.d.ts@@ -0,0 +1,88 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * Public type surface for `@astryxdesign/cli/authoring`.+ *+ * Authoring is a pure data contract: the TYPES you write plain objects against,+ * and the PARSERS the CLI runs at the load boundary (`unknown` → typed, or a+ * readable throw). Zod is sealed inside each parser and never appears here.+ * There are no `create*` factories — author a plain object and stamp its `type`.+ *+ * This file reads as a menu: the handful of things you author sit up top, the+ * field/sub-types they compose from are grouped below the divider, and internal+ * runner types are not exported here at all.+ *+ * NOTE: this barrel is a `.d.ts` on purpose. It is a pure re-export (including+ * the parser value bindings from `./*.mjs`), and downstream package builds+ * resolve `@astryxdesign/cli/authoring` here via the `types` condition. Their+ * tsconfigs run with `skipLibCheck` (which skips `.d.ts`) but no `allowJs`, so a+ * real `.ts` barrel would make tsc follow the `.mjs` re-exports and fail TS7016.+ * The runtime entry is the sibling `index.mjs`.+ */++// ═══════════════════════════════════════════════════════════════════════+// AUTHOR THESE — each is the default export of one authored file.+// ═══════════════════════════════════════════════════════════════════════+export type {ComponentDoc} from './doctypes/types'; // Button.doc.{ts,mjs}+export type {HookDoc} from './doctypes/types'; // useToast.doc.{ts,mjs}+export type {ReferenceDoc} from './doctypes/types'; // theming.doc.{ts,mjs}+export type {TemplateDoc} from './doctypes/types'; // Foo.template.{ts,mjs}+export type {AstryxConfig} from './config/type'; // astryx.config.{ts,mjs}+export type {AstryxIntegration} from './integration/type'; // astryx.integration.{ts,mjs}+export type {AstryxCodemod, AstryxConfigCodemod} from './codemod/type'; // codemods/*++// ═══════════════════════════════════════════════════════════════════════+// PARSERS — the CLI's load boundary (types come from each parser's JSDoc).+// ═══════════════════════════════════════════════════════════════════════+export {parseDoc} from './doctypes/parse.mjs';+export {parseComponent} from './doctypes/component/parse.mjs';+export {parseHook} from './doctypes/hook/parse.mjs';+export {parseReference} from './doctypes/reference/parse.mjs';+export {parseTemplate} from './doctypes/template/parse.mjs';+export {parseLegacyDoc} from './doctypes/legacy.mjs';+export {parseConfig} from './config/parse.mjs';+export {parseIntegration} from './integration/parse.mjs';+export {parseCodemod} from './codemod/parse.mjs';++// ═══════════════════════════════════════════════════════════════════════+// FIELD & SUB-TYPES — the building blocks of the docs above. Import these+// only to annotate a part directly (or to read/render docs); you rarely+// need them to author. Names carry the doc kind they belong to.+// ═══════════════════════════════════════════════════════════════════════+export type {+ // component+ SingleComponentDoc,+ MultiComponentDoc,+ ComponentEntry,+ ComponentGroupDoc,+ ComponentTranslationDoc,+ ComponentPropDoc,+ ComponentExampleDoc,+ ComponentAnatomyElement,+ ComponentBestPractice,+ ComponentSlotElement,+ ComponentPlaygroundConfig,+ ComponentThemingTarget,+ ComponentThemingVar,+ ComponentThemingDerivedVar,+ UsageDoc,+ // hook+ HookParamDoc,+ HookReturnDoc,+ HookTranslationDoc,+ // reference+ ReferenceSection,+ ReferenceContentBlock,+ ReferenceTokenPreviewType,+ ReferenceTranslationDoc,+ // template+ TemplateCategory,+} from './doctypes/types';+export type {PostCodemodHook} from './config/type';+export type {+ AstryxCodemodDef,+ AstryxConfigCodemodDef,+ AstryxCodemodFile,+ AstryxCodemodApi,+ AstryxCodemodTransform,+} from './codemod/type';diff --git a/packages/cli/authoring/index.mjs b/packages/cli/authoring/index.mjsnew file mode 100644index 0000000000..2d00f345e6--- /dev/null+++ b/packages/cli/authoring/index.mjs@@ -0,0 +1,25 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * @file `@astryxdesign/cli/authoring` — one home for Astryx authoring.+ *+ * Authoring is a pure data contract: TYPES authors write plain objects against,+ * and PARSERS the CLI calls to turn `unknown` into the typed shape (or throw a+ * readable error) at the load boundary. Zod is an implementation detail sealed+ * inside each parser — it is never exported here and never appears in a public+ * type. There are no `create*` factories: author a plain object and stamp its+ * `type` directly.+ *+ * Types (config, integration, codemod, and the doc vocabulary —+ * component/hook/reference/template) are re-exported via `./index.ts`.+ */++export {parseConfig} from './config/parse.mjs';+export {parseIntegration} from './integration/parse.mjs';+export {parseCodemod} from './codemod/parse.mjs';+export {parseDoc} from './doctypes/parse.mjs';+export {parseComponent} from './doctypes/component/parse.mjs';+export {parseHook} from './doctypes/hook/parse.mjs';+export {parseReference} from './doctypes/reference/parse.mjs';+export {parseTemplate} from './doctypes/template/parse.mjs';+export {parseLegacyDoc} from './doctypes/legacy.mjs';diff --git a/packages/cli/authoring/integration.mjs b/packages/cli/authoring/integration.mjsdeleted file mode 100644index a96ac2b009..0000000000--- a/packages/cli/authoring/integration.mjs+++ /dev/null@@ -1,8 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--/**- * Re-export of the integration-authoring helper, which now lives in- * `@astryxdesign/core/authoring`. Kept here so existing- * `@astryxdesign/cli/integration` imports continue to work unchanged.- */-export {createIntegration} from '@astryxdesign/core/authoring';diff --git a/packages/cli/authoring/integration/parse.d.mts b/packages/cli/authoring/integration/parse.d.mtsnew file mode 100644index 0000000000..e04b4aa60a--- /dev/null+++ b/packages/cli/authoring/integration/parse.d.mts@@ -0,0 +1,4 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++import type {AstryxIntegration} from './type';+export function parseIntegration(input: unknown, label?: string): AstryxIntegration;diff --git a/packages/cli/authoring/integration/parse.mjs b/packages/cli/authoring/integration/parse.mjsnew file mode 100644index 0000000000..7e199910df--- /dev/null+++ b/packages/cli/authoring/integration/parse.mjs@@ -0,0 +1,44 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * @file Integration-manifest parser — the load-boundary validator for+ * `astryx.integration.*`. Zod is sealed here; consumers call `parseIntegration`+ * or import the {@link AstryxIntegration} type.+ */++import {z} from 'zod';+import {formatZodError} from '../_shared/errors.mjs';++/** @typedef {import('./type').AstryxIntegration} AstryxIntegration */++const integrationSchema = z+ .object({+ components: z.string().optional(),+ templates: z.string().optional(),+ codemods: z.string().optional(),+ issuesUrl: z.string().url().optional(),+ })+ .strict();++/**+ * Compile-time drift-lock: sealed schema must infer exactly {@link AstryxIntegration}.+ *+ * @typedef {import('../_shared/contract').Expect<+ * import('../_shared/contract').Equal<z.infer<typeof integrationSchema>, AstryxIntegration>+ * >} _IntegrationDriftLock+ */++/**+ * Validate an unknown value as an Astryx integration manifest, or throw.+ *+ * @param {unknown} input+ * @param {string} [label]+ * @returns {AstryxIntegration}+ */+export function parseIntegration(input, label = 'astryx.integration') {+ const result = integrationSchema.safeParse(input);+ if (!result.success) {+ throw new Error(formatZodError(label, result.error));+ }+ return result.data;+}diff --git a/packages/cli/authoring/integration/parse.test.mjs b/packages/cli/authoring/integration/parse.test.mjsnew file mode 100644index 0000000000..c68837d93b--- /dev/null+++ b/packages/cli/authoring/integration/parse.test.mjs@@ -0,0 +1,41 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * @file Colocated tests for `parseIntegration` — the load-boundary validator for+ * `astryx.integration.*`. Zod is sealed inside the parser; these exercise the+ * public contract (validated value out / readable error thrown) with the same+ * accept/reject set the old `AstryxIntegrationSchema` had.+ */++import {describe, it, expect} from 'vitest';+import {parseIntegration} from './parse.mjs';++/** Run parseIntegration and return the thrown message (asserting it throws). */+function reason(value, label = 'integration') {+ try {+ parseIntegration(value, label);+ } catch (err) {+ return err instanceof Error ? err.message : String(err);+ }+ throw new Error('expected parseIntegration to throw');+}++describe('parseIntegration (load boundary)', () => {+ it('accepts an empty manifest and a valid one', () => {+ expect(parseIntegration({})).toEqual({});+ expect(parseIntegration({components: './src'})).toEqual({+ components: './src',+ });+ expect(() =>+ parseIntegration({components: './c', issuesUrl: 'https://example.com/i'}),+ ).not.toThrow();+ });++ it('rejects unknown keys (strict)', () => {+ expect(reason({name: '@acme/widgets'})).toContain('Unrecognized key');+ });++ it('rejects a non-URL issuesUrl', () => {+ expect(reason({issuesUrl: 'nope'})).toContain('issuesUrl');+ });+});diff --git a/packages/cli/authoring/integration/type.ts b/packages/cli/authoring/integration/type.tsnew file mode 100644index 0000000000..0897588578--- /dev/null+++ b/packages/cli/authoring/integration/type.ts@@ -0,0 +1,19 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * Public type surface for an Astryx integration manifest+ * (`astryx.integration.{ts,mjs,js}`, sibling to the integration package's+ * package.json). Identity (name/version) comes from package.json, not the+ * manifest. Authors write a plain object against {@link AstryxIntegration};+ * the CLI validates it via `parseIntegration` at the load boundary.+ */+export interface AstryxIntegration {+ /** Relative path to the components/docs root (resolved to absolute). */+ components?: string;+ /** Relative path to the templates root (resolved to absolute). */+ templates?: string;+ /** Relative path to the codemods root (resolved to absolute). */+ codemods?: string;+ /** Where to file issues/feedback for this integration. */+ issuesUrl?: string;+}diff --git a/packages/cli/authoring/template.mjs b/packages/cli/authoring/template.mjsdeleted file mode 100644index 66d0527820..0000000000--- a/packages/cli/authoring/template.mjs+++ /dev/null@@ -1,15 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--/**- * @file Static template authoring API (public `@astryxdesign/cli/template`).- *- * The `createPageTemplate`/`createBlockTemplate` authoring helpers now live in- * `@astryxdesign/core/authoring` and are re-exported here so existing- * `@astryxdesign/cli/template` imports keep working. The Zod load-boundary- * schemas live in `./schemas/template-schema.mjs` (core-free) and are- * re-exported here for back-compat; internal hot-path code imports them from- * the schema module directly so it never depends on core's built `dist/`.- */--export {createPageTemplate, createBlockTemplate} from '@astryxdesign/core/authoring';-export {BaseTemplateSchema, TemplateEnvelopeSchema} from '../schemas/template-schema.mjs';diff --git a/packages/cli/authoring/template.test.mjs b/packages/cli/authoring/template.test.mjsdeleted file mode 100644index 4a46192b3c..0000000000--- a/packages/cli/authoring/template.test.mjs+++ /dev/null@@ -1,127 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--import {describe, it, expect} from 'vitest';-import {- createPageTemplate,- createBlockTemplate,- TemplateEnvelopeSchema,-} from './template.mjs';--// createPageTemplate/createBlockTemplate are now stamp-only: they inject the-// `type` discriminant and return the def otherwise unchanged, with NO runtime-// validation. Validation happens at the LOAD boundary (integration template-// discovery runs the default export through TemplateEnvelopeSchema), so the-// rejection cases that used to assert factory throws now assert the envelope-// schema rejects the same shapes.--describe('createPageTemplate (stamp-only)', () => {- it('returns the def with type "page" injected', () => {- const t = createPageTemplate({- name: 'Landing',- description: 'A landing page.',- });- expect(t).toEqual({- name: 'Landing',- description: 'A landing page.',- type: 'page',- });- });-- it('preserves optional fields', () => {- const t = createPageTemplate({- name: 'Landing',- description: 'A landing page.',- category: 'Marketing',- componentsUsed: ['Button', 'Card'],- preview: {image: './preview.png', aspectRatio: '16 / 9'},- });- expect(t.category).toBe('Marketing');- expect(t.componentsUsed).toEqual(['Button', 'Card']);- expect(t.preview).toEqual({image: './preview.png', aspectRatio: '16 / 9'});- expect(t.type).toBe('page');- });-- it('does NOT validate — returns an invalid def stamped, unchanged', () => {- const t = createPageTemplate({description: 'x'});- expect(t.type).toBe('page');- expect(t.name).toBeUndefined();- });-});--describe('createBlockTemplate (stamp-only)', () => {- it('returns the def with type "block" injected', () => {- const t = createBlockTemplate({- name: 'Hero',- description: 'A hero block.',- });- expect(t.type).toBe('block');- expect(t.name).toBe('Hero');- });-});--describe('TemplateEnvelopeSchema (load-boundary validation)', () => {- it('accepts a stamped page template', () => {- const parsed = TemplateEnvelopeSchema.parse(- createPageTemplate({name: 'Landing', description: 'A landing page.'}),- );- expect(parsed.type).toBe('page');- });-- it('accepts a PLAIN OBJECT envelope (no factory required)', () => {- const parsed = TemplateEnvelopeSchema.parse({- type: 'block',- name: 'Hero',- description: 'A hero block.',- });- expect(parsed.name).toBe('Hero');- });-- it('rejects a missing name', () => {- expect(() =>- TemplateEnvelopeSchema.parse({type: 'page', description: 'x'}),- ).toThrow(/name/);- });-- it('rejects a missing description', () => {- expect(() =>- TemplateEnvelopeSchema.parse({type: 'page', name: 'x'}),- ).toThrow(/description/);- });-- it('rejects an empty-string name', () => {- expect(() =>- TemplateEnvelopeSchema.parse({type: 'page', name: '', description: 'x'}),- ).toThrow(/name/);- });-- it('rejects a missing/invalid type', () => {- expect(() =>- TemplateEnvelopeSchema.parse({name: 'x', description: 'y'}),- ).toThrow();- expect(() =>- TemplateEnvelopeSchema.parse({type: 'bogus', name: 'x', description: 'y'}),- ).toThrow();- });-- it('rejects unknown keys (strict)', () => {- expect(() =>- TemplateEnvelopeSchema.parse({- type: 'page',- name: 'x',- description: 'y',- source: './x.tsx',- }),- ).toThrow();- });-- it('rejects inline sourceFile (not supported in v1)', () => {- expect(() =>- TemplateEnvelopeSchema.parse({- type: 'page',- name: 'x',- description: 'y',- sourceFile: './x.tsx',- }),- ).toThrow();- });-});diff --git a/packages/cli/src/__tests__/cliManifest.test.ts b/packages/cli/clients/cli/__tests__/cliManifest.test.tssimilarity index 95%rename from packages/cli/src/__tests__/cliManifest.test.tsrename to packages/cli/clients/cli/__tests__/cliManifest.test.tsindex a823957cbe..78f1ce01f8 100644--- a/packages/cli/src/__tests__/cliManifest.test.ts+++ b/packages/cli/clients/cli/__tests__/cliManifest.test.ts@@ -6,7 +6,7 @@ import {describe, it, expect} from 'vitest';describe('@astryxdesign/cli Theme Manifest & Template Validation', () => {const manifestPath = path.resolve(- 'packages/cli/templates/themes/manifest.json',+ 'packages/cli/assets/templates/themes/manifest.json',);it('validates theme manifest existence and structure', () => {diff --git a/packages/cli/bin/astryx.mjs b/packages/cli/clients/cli/bin/astryx.mjssimilarity index 95%rename from packages/cli/bin/astryx.mjsrename to packages/cli/clients/cli/bin/astryx.mjsindex e28a61c8a3..d53093ff6e 100755--- a/packages/cli/bin/astryx.mjs+++ b/packages/cli/clients/cli/bin/astryx.mjs@@ -31,7 +31,7 @@ const importSrc = rel =>import(pathToFileURL(join(binDir, '..', rel)).href);const {isNodeVersionSupported, unsupportedNodeMessage} =- await importSrc('lib/node-version.mjs');+ await importSrc('../../foundation/env/node-version.mjs');if (!isNodeVersionSupported(process.versions.node)) {const msg = unsupportedNodeMessage(process.versions.node);@@ -55,8 +55,8 @@ if (!isNodeVersionSupported(process.versions.node)) {// Imports that transitively load `styleText` must happen AFTER the gate above,// so they are dynamically imported here rather than at the top of the module.-const {program} = await importSrc('cli/index.mjs');-const {isJsonMode, toErrorEnvelope} = await importSrc('lib/json.mjs');+const {program} = await importSrc('index.mjs');+const {isJsonMode, toErrorEnvelope} = await importSrc('../../foundation/response/json.mjs');const {handleCommanderError} = await importSrc('lib/json-shim.mjs');/**diff --git a/packages/cli/cli/cli-exit-codes.test.mjs b/packages/cli/clients/cli/cli-exit-codes.test.mjssimilarity index 99%rename from packages/cli/cli/cli-exit-codes.test.mjsrename to packages/cli/clients/cli/cli-exit-codes.test.mjsindex a72903556a..e139fbe6dd 100644--- a/packages/cli/cli/cli-exit-codes.test.mjs+++ b/packages/cli/clients/cli/cli-exit-codes.test.mjs@@ -16,7 +16,7 @@*/import {describe, it, expect} from 'vitest';-import {runCli} from '../test-utils/run-cli.mjs';+import {runCli} from '../../test-utils/run-cli.mjs';/** Shorthand for asserting the exit code. */async function expectExit(args, code) {diff --git a/packages/cli/cli/commands/blog.mjs b/packages/cli/clients/cli/commands/blog.mjssimilarity index 79%rename from packages/cli/cli/commands/blog.mjsrename to packages/cli/clients/cli/commands/blog.mjsindex 97aeb87c44..8c92ba0ebe 100644--- a/packages/cli/cli/commands/blog.mjs+++ b/packages/cli/clients/cli/commands/blog.mjs@@ -14,13 +14,13 @@* astryx blog --json Structured list/detail envelope*/-import {getRunPrefix} from '../../utils/package-manager.mjs';-import {humanLog, jsonOut} from '../../lib/json.mjs';-import {cliError} from '../../lib/cli-error.mjs';-import {blog as blogApi} from '../../api/blog/blog.mjs';+import {getRunPrefix} from '../../../foundation/env/package-manager.mjs';+import {humanLog, jsonOut} from '../../../foundation/response/json.mjs';+import {cliError} from '../lib/cli-error.mjs';+import {blog as blogApi} from '../../../api/blog/blog.mjs';/**- * @param {import('../../types/blog').BlogListData} data+ * @param {import('../../../api/blog/blog.type.mjs').BlogListData} data* @param {string} run*/function formatList({feedUrl, posts}, run) {@@ -49,12 +49,12 @@ export function registerBlog(program) {.description('Read the Astryx blog from the published feed').action(async (/** @type {string | undefined} */ slug) => {const run = getRunPrefix();- /** @type {import('../../types/blog').BlogListResponse | import('../../types/blog').BlogDetailResponse} */+ /** @type {import('../../../api/blog/blog.type.mjs').BlogListResponse | import('../../../api/blog/blog.type.mjs').BlogDetailResponse} */let result;try {result = await blogApi(slug);} catch (e) {- const err = /** @type {import('../../api/error.mjs').AstryxError} */ (e);+ const err = /** @type {import('../../../api/error.mjs').AstryxError} */ (e);cliError(err.message, {suggestions: err.suggestions || [],code: err.code,diff --git a/packages/cli/cli/commands/blog.test.mjs b/packages/cli/clients/cli/commands/blog.test.mjssimilarity index 96%rename from packages/cli/cli/commands/blog.test.mjsrename to packages/cli/clients/cli/commands/blog.test.mjsindex d0886fa1ea..569bcc8279 100644--- a/packages/cli/cli/commands/blog.test.mjs+++ b/packages/cli/clients/cli/commands/blog.test.mjs@@ -10,8 +10,8 @@*/import {describe, it, expect, beforeEach, afterEach, vi} from 'vitest';-import {runCli} from '../../test-utils/run-cli.mjs';-import {SITE_URL} from '../../lib/site.mjs';+import {runCli} from '../../../test-utils/run-cli.mjs';+import {SITE_URL} from '../../../api/blog/_site.mjs';const FEED = `<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">diff --git a/packages/cli/cli/commands/build-theme.color-scheme.test.mjs b/packages/cli/clients/cli/commands/build-theme.color-scheme.test.mjssimilarity index 98%rename from packages/cli/cli/commands/build-theme.color-scheme.test.mjsrename to packages/cli/clients/cli/commands/build-theme.color-scheme.test.mjsindex 48369aff80..4692abf6b4 100644--- a/packages/cli/cli/commands/build-theme.color-scheme.test.mjs+++ b/packages/cli/clients/cli/commands/build-theme.color-scheme.test.mjs@@ -30,7 +30,7 @@ import * as fs from 'node:fs';import * as path from 'node:path';import * as os from 'node:os';import {ensureCoreBuilt} from './ensure-core-built.mjs';-import {runCli} from '../../test-utils/run-cli.mjs';+import {runCli} from '../../../test-utils/run-cli.mjs';const COLOR_SCHEME_ROOT_DECL = ':root { color-scheme: light dark; }';const COLOR_SCHEME_LIGHT_DECL = 'html[data-theme="light"] { color-scheme: light; }';diff --git a/packages/cli/cli/commands/build-theme.import-path.test.mjs b/packages/cli/clients/cli/commands/build-theme.import-path.test.mjssimilarity index 98%rename from packages/cli/cli/commands/build-theme.import-path.test.mjsrename to packages/cli/clients/cli/commands/build-theme.import-path.test.mjsindex b5200e2911..60a3b21341 100644--- a/packages/cli/cli/commands/build-theme.import-path.test.mjs+++ b/packages/cli/clients/cli/commands/build-theme.import-path.test.mjs@@ -17,7 +17,7 @@ import * as fs from 'node:fs';import * as path from 'node:path';import * as os from 'node:os';import {ensureCoreBuilt} from './ensure-core-built.mjs';-import {runCli} from '../../test-utils/run-cli.mjs';+import {runCli} from '../../../test-utils/run-cli.mjs';function writeTheme(dir, name) {fs.mkdirSync(dir, {recursive: true});diff --git a/packages/cli/cli/commands/build-theme.mjs b/packages/cli/clients/cli/commands/build-theme.mjssimilarity index 91%rename from packages/cli/cli/commands/build-theme.mjsrename to packages/cli/clients/cli/commands/build-theme.mjsindex 8da573465f..9669f6d607 100644--- a/packages/cli/cli/commands/build-theme.mjs+++ b/packages/cli/clients/cli/commands/build-theme.mjs@@ -19,14 +19,14 @@ import * as fs from 'node:fs';import * as path from 'node:path';import {fileURLToPath} from 'node:url';import {spawn} from 'node:child_process';-import {getCliInvocation} from '../../utils/package-manager.mjs';-import {jsonOut, humanLog} from '../../lib/json.mjs';-import {logger} from '../../api/logger.mjs';-import {cliError} from '../../lib/cli-error.mjs';-import {ERROR_CODES} from '../../lib/error-codes.mjs';-import {themeAdd} from '../../api/theme/add/add.mjs';-import {themeList} from '../../api/theme/list/list.mjs';-import {themeBuild, importSpecifier} from '../../api/theme/build/build.mjs';+import {getCliInvocation} from '../../../foundation/env/package-manager.mjs';+import {jsonOut, humanLog} from '../../../foundation/response/json.mjs';+import {logger} from '../../../api/logger.mjs';+import {cliError} from '../lib/cli-error.mjs';+import {ERROR_CODES} from '../../../foundation/response/error-codes.mjs';+import {themeAdd} from '../../../api/theme/add/add.mjs';+import {themeList} from '../../../api/theme/list/list.mjs';+import {themeBuild, importSpecifier} from '../../../api/theme/build/build.mjs';/*** Path to this CLI's real entry (bin/astryx.mjs), resolved from this module's@@ -35,7 +35,7 @@ import {themeBuild, importSpecifier} from '../../api/theme/build/build.mjs';*/function resolveCliBin() {const commandsDir = path.dirname(fileURLToPath(import.meta.url));- return path.resolve(commandsDir, '../../bin/astryx.mjs');+ return path.resolve(commandsDir, '../bin/astryx.mjs');}/**@@ -193,7 +193,7 @@ export function registerTheme(program) {const result = await themeBuild(file, {out: options.out}, {cwd: process.cwd()});if (json && result) jsonOut(result);} catch (e) {- const err = /** @type {import('../../api/error.mjs').AstryxError} */ (e);+ const err = /** @type {import('../../../api/error.mjs').AstryxError} */ (e);cliError(err.message, {suggestions: err.suggestions, code: err.code});}});@@ -203,12 +203,12 @@ export function registerTheme(program) {.description('List themes available to add').action(async () => {const json = program.opts().json || false;- /** @type {import('../../api/theme/theme.type.mjs').ThemeListResponse} */+ /** @type {import('../../../api/theme/theme.type.mjs').ThemeListResponse} */let result;try {result = themeList();} catch (e) {- const err = /** @type {import('../../api/error.mjs').AstryxError} */ (e);+ const err = /** @type {import('../../../api/error.mjs').AstryxError} */ (e);cliError(err.message, {suggestions: err.suggestions || [], code: err.code});return;}@@ -242,7 +242,7 @@ export function registerTheme(program) {// Existing files require an explicit --overwrite; otherwise themeAdd's// ERR_FILE_EXISTS guard rejects the write. `--list` (or a bare `theme add`// with no slug) is the list affordance — route it to the list leaf.- /** @type {import('../../api/theme/theme.type.mjs').ThemeListResponse | import('../../api/theme/theme.type.mjs').ThemeAddResponse} */+ /** @type {import('../../../api/theme/theme.type.mjs').ThemeListResponse | import('../../../api/theme/theme.type.mjs').ThemeAddResponse} */let result;try {result =@@ -254,7 +254,7 @@ export function registerTheme(program) {cwd: process.cwd(),});} catch (e) {- const err = /** @type {import('../../api/error.mjs').AstryxError} */ (e);+ const err = /** @type {import('../../../api/error.mjs').AstryxError} */ (e);cliError(err.message, {suggestions: err.suggestions || [], code: err.code});return;}diff --git a/packages/cli/cli/commands/build-theme.path-safety.test.mjs b/packages/cli/clients/cli/commands/build-theme.path-safety.test.mjssimilarity index 98%rename from packages/cli/cli/commands/build-theme.path-safety.test.mjsrename to packages/cli/clients/cli/commands/build-theme.path-safety.test.mjsindex 3668b87176..e9ea367030 100644--- a/packages/cli/cli/commands/build-theme.path-safety.test.mjs+++ b/packages/cli/clients/cli/commands/build-theme.path-safety.test.mjs@@ -15,7 +15,7 @@ import {describe, it, expect, beforeEach, afterEach} from 'vitest';import * as fs from 'node:fs';import * as path from 'node:path';import * as os from 'node:os';-import {runCli} from '../../test-utils/run-cli.mjs';+import {runCli} from '../../../test-utils/run-cli.mjs';function writeTheme(dir, name) {fs.mkdirSync(dir, {recursive: true});diff --git a/packages/cli/cli/commands/build-theme.prose.test.mjs b/packages/cli/clients/cli/commands/build-theme.prose.test.mjssimilarity index 98%rename from packages/cli/cli/commands/build-theme.prose.test.mjsrename to packages/cli/clients/cli/commands/build-theme.prose.test.mjsindex 31c98502e7..60aadd7a1c 100644--- a/packages/cli/cli/commands/build-theme.prose.test.mjs+++ b/packages/cli/clients/cli/commands/build-theme.prose.test.mjs@@ -28,7 +28,7 @@ import * as fs from 'node:fs';import * as path from 'node:path';import * as os from 'node:os';import {ensureCoreBuilt} from './ensure-core-built.mjs';-import {runCli} from '../../test-utils/run-cli.mjs';+import {runCli} from '../../../test-utils/run-cli.mjs';function writeTheme(dir, name) {fs.mkdirSync(dir, {recursive: true});diff --git a/packages/cli/cli/commands/build-theme.registry.test.mjs b/packages/cli/clients/cli/commands/build-theme.registry.test.mjssimilarity index 97%rename from packages/cli/cli/commands/build-theme.registry.test.mjsrename to packages/cli/clients/cli/commands/build-theme.registry.test.mjsindex 30008691b6..5b71fd96c8 100644--- a/packages/cli/cli/commands/build-theme.registry.test.mjs+++ b/packages/cli/clients/cli/commands/build-theme.registry.test.mjs@@ -31,11 +31,11 @@ import * as path from 'node:path';import * as os from 'node:os';import {fileURLToPath} from 'node:url';import {ensureCoreBuilt} from './ensure-core-built.mjs';-import {runCli} from '../../test-utils/run-cli.mjs';+import {runCli} from '../../../test-utils/run-cli.mjs';const HERE = path.dirname(fileURLToPath(import.meta.url));-const CORE_SRC = path.resolve(HERE, '../../../core/src');-const BUILD_THEME_SRC = path.resolve(HERE, '../../api/theme/build/build.mjs');+const CORE_SRC = path.resolve(HERE, '../../../../core/src');+const BUILD_THEME_SRC = path.resolve(HERE, '../../../api/theme/build/build.mjs');/*** Extract the KNOWN_COMPONENTS registry keys from the build-theme source.diff --git a/packages/cli/cli/commands/build-theme.variants.test.mjs b/packages/cli/clients/cli/commands/build-theme.variants.test.mjssimilarity index 99%rename from packages/cli/cli/commands/build-theme.variants.test.mjsrename to packages/cli/clients/cli/commands/build-theme.variants.test.mjsindex 93d0b6c89f..8dfe2ca002 100644--- a/packages/cli/cli/commands/build-theme.variants.test.mjs+++ b/packages/cli/clients/cli/commands/build-theme.variants.test.mjs@@ -27,7 +27,7 @@ import * as fs from 'node:fs';import * as path from 'node:path';import * as os from 'node:os';import {ensureCoreBuilt} from './ensure-core-built.mjs';-import {runCli} from '../../test-utils/run-cli.mjs';+import {runCli} from '../../../test-utils/run-cli.mjs';function writeTheme(dir, contents) {fs.mkdirSync(dir, {recursive: true});diff --git a/packages/cli/cli/commands/build-theme.watch.test.mjs b/packages/cli/clients/cli/commands/build-theme.watch.test.mjssimilarity index 98%rename from packages/cli/cli/commands/build-theme.watch.test.mjsrename to packages/cli/clients/cli/commands/build-theme.watch.test.mjsindex 70110ee6dc..953d4e2bdd 100644--- a/packages/cli/cli/commands/build-theme.watch.test.mjs+++ b/packages/cli/clients/cli/commands/build-theme.watch.test.mjs@@ -23,7 +23,7 @@ import {fileURLToPath} from 'node:url';import {ensureCoreBuilt} from './ensure-core-built.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const CLI_BIN = path.resolve(__dirname, '../../bin/astryx.mjs');+const CLI_BIN = path.resolve(__dirname, '../bin/astryx.mjs');function runCli(args, cwd) {try {diff --git a/packages/cli/cli/commands/build.error-codes.test.mjs b/packages/cli/clients/cli/commands/build.error-codes.test.mjssimilarity index 96%rename from packages/cli/cli/commands/build.error-codes.test.mjsrename to packages/cli/clients/cli/commands/build.error-codes.test.mjsindex b39aa658bb..4bcede36e3 100644--- a/packages/cli/cli/commands/build.error-codes.test.mjs+++ b/packages/cli/clients/cli/commands/build.error-codes.test.mjs@@ -12,7 +12,7 @@import {describe, it, expect} from 'vitest';import * as path from 'node:path';import {fileURLToPath} from 'node:url';-import {runCli} from '../../test-utils/run-cli.mjs';+import {runCli} from '../../../test-utils/run-cli.mjs';// Run against the monorepo root so @astryxdesign/core is discoverable.const REPO = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../../../..');diff --git a/packages/cli/cli/commands/build.mjs b/packages/cli/clients/cli/commands/build.mjssimilarity index 88%rename from packages/cli/cli/commands/build.mjsrename to packages/cli/clients/cli/commands/build.mjsindex 2057dcebbd..1e55184ff5 100644--- a/packages/cli/cli/commands/build.mjs+++ b/packages/cli/clients/cli/commands/build.mjs@@ -12,10 +12,10 @@* (never in the API payload) via formatCliCommand/getCliInvocation.*/-import {getCliInvocation, formatCliCommand} from '../../utils/package-manager.mjs';-import {jsonOut, humanLog} from '../../lib/json.mjs';-import {cliError} from '../../lib/cli-error.mjs';-import {build as buildApi} from '../../api/build/build.mjs';+import {getCliInvocation, formatCliCommand} from '../../../foundation/env/package-manager.mjs';+import {jsonOut, humanLog} from '../../../foundation/response/json.mjs';+import {cliError} from '../lib/cli-error.mjs';+import {build as buildApi} from '../../../api/build/build.mjs';/*** Print the build playbook (shown when `build` is run with no query).@@ -61,7 +61,7 @@ export function registerBuild(program) {.option('--type <domain>', 'Filter the kit to one domain (component|hook|template)').option('--limit <n>', 'Max candidates to draw from (default 60)').option('--detail', 'Verbose output (include import paths and match reason)')- .action(async (/** @type {string | undefined} */ query, /** @type {{type?: import('../../types/search').SearchDomain, limit?: string, detail?: boolean}} */ options) => {+ .action(async (/** @type {string | undefined} */ query, /** @type {{type?: import('../../../api/search/search.type.mjs').SearchDomain, limit?: string, detail?: boolean}} */ options) => {const run = getCliInvocation();const json = program.opts().json || false;@@ -80,14 +80,14 @@ export function registerBuild(program) {const limit =options.limit != null ? Number.parseInt(options.limit, 10) : 60;- /** @type {import('../../api/build/build.type.mjs').BuildKitResponse} */+ /** @type {import('../../../api/build/build.type.mjs').BuildKitResponse} */let result;try {- result = /** @type {import('../../api/build/build.type.mjs').BuildKitResponse} */ (+ result = /** @type {import('../../../api/build/build.type.mjs').BuildKitResponse} */ (await buildApi(query, {cwd: process.cwd(), type: options.type, limit}));} catch (e) {- const err = /** @type {import('../../api/error.mjs').AstryxError} */ (e);+ const err = /** @type {import('../../../api/error.mjs').AstryxError} */ (e);cliError(err.message, {suggestions: err.suggestions, code: err.code});return;}@@ -105,7 +105,7 @@ export function registerBuild(program) {return;}- const printItem = (/** @type {import('../../types/search').SearchResultEntry} */ r, /** @type {string} */ label) => {+ const printItem = (/** @type {import('../../../api/search/search.type.mjs').SearchResultEntry} */ r, /** @type {string} */ label) => {const display = r.domain === 'template' && r.displayName ? r.displayName : r.name;humanLog('');humanLog(` [${label}] ${display}`);diff --git a/packages/cli/cli/commands/cli-postinstall.test.mjs b/packages/cli/clients/cli/commands/cli-postinstall.test.mjssimilarity index 96%rename from packages/cli/cli/commands/cli-postinstall.test.mjsrename to packages/cli/clients/cli/commands/cli-postinstall.test.mjsindex c7f538fccd..75d2f8b369 100644--- a/packages/cli/cli/commands/cli-postinstall.test.mjs+++ b/packages/cli/clients/cli/commands/cli-postinstall.test.mjs@@ -9,7 +9,7 @@*/import {describe, it, expect} from 'vitest';-import {shouldNudge} from '../../scripts/postinstall.mjs';+import {shouldNudge} from '../../../scripts/postinstall.mjs';const DEP = '/proj/node_modules/@astryxdesign/cli/scripts/postinstall.mjs'; // real dep installconst NPX = '/Users/x/.npm/_npx/a1b2/node_modules/@astryxdesign/cli/scripts/postinstall.mjs';diff --git a/packages/cli/cli/commands/component-ownership.test.mjs b/packages/cli/clients/cli/commands/component-ownership.test.mjssimilarity index 97%rename from packages/cli/cli/commands/component-ownership.test.mjsrename to packages/cli/clients/cli/commands/component-ownership.test.mjsindex e0fdf7923d..a22b07e02a 100644--- a/packages/cli/cli/commands/component-ownership.test.mjs+++ b/packages/cli/clients/cli/commands/component-ownership.test.mjs@@ -10,7 +10,7 @@ import {findIntegrationComponentDoc,findIntegrationComponentSource,CORE_PACKAGE,-} from '../../lib/component-discovery.mjs';+} from '../../../foundation/discovery/component-discovery.mjs';// The api `component()` reads integrations via Project.load(). In the vitest// environment, Vite's `server.fs.allow` only permits loading modules from@@ -20,12 +20,12 @@ import {// produces) while keeping the integration's `components` dir on disk under// node_modules so its `.doc.mjs` files load normally.const projectLoadMock = vi.fn();-vi.mock('../../lib/project.mjs', () => ({+vi.mock('../../../foundation/config/project.mjs', () => ({Project: {load: (...args) => projectLoadMock(...args)},}));// Import the api AFTER the mock is registered.-const {component} = await import('../../api/component/component.mjs');+const {component} = await import('../../../api/component/component.mjs');// These are real-filesystem integration tests: each `component()` call scans// the entire core library (recursive readdir + hundreds of existsSync probes).@@ -48,7 +48,7 @@ const INTEGRATION_ISSUES = 'https://example.com/meta/issues';* resolved integration entry.*/function createFixture({withSource = true, extraComponent = null} = {}) {- const realCoreDir = path.resolve(import.meta.dirname, '..', '..', '..', 'core');+ const realCoreDir = path.resolve(import.meta.dirname, '..', '..', '..', '..', 'core');const coreDir = path.join(tmpDir, 'packages', 'core');fs.mkdirSync(path.dirname(coreDir), {recursive: true});fs.symlinkSync(realCoreDir, coreDir);diff --git a/packages/cli/cli/commands/component-package.test.mjs b/packages/cli/clients/cli/commands/component-package.test.mjssimilarity index 98%rename from packages/cli/cli/commands/component-package.test.mjsrename to packages/cli/clients/cli/commands/component-package.test.mjsindex b79d328c1c..33ce5018c4 100644--- a/packages/cli/cli/commands/component-package.test.mjs+++ b/packages/cli/clients/cli/commands/component-package.test.mjs@@ -4,7 +4,7 @@ import {describe, it, expect, beforeEach, afterEach} from 'vitest';import * as fs from 'node:fs';import * as path from 'node:path';import * as os from 'node:os';-import {component} from '../../api/component/component.mjs';+import {component} from '../../../api/component/component.mjs';// These tests create a minimal monorepo fixture with:// - packages/core (symlinked to real @astryxdesign/core for loadDocs compatibility)@@ -16,7 +16,7 @@ let tmpDir;function createFixture() {// Symlink real core package so loadDocs (dynamic import) works with Vite- const realCoreDir = path.resolve(import.meta.dirname, '..', '..', '..', 'core');+ const realCoreDir = path.resolve(import.meta.dirname, '..', '..', '..', '..', 'core');const coreDir = path.join(tmpDir, 'packages', 'core');fs.mkdirSync(path.dirname(coreDir), {recursive: true});fs.symlinkSync(realCoreDir, coreDir);diff --git a/packages/cli/cli/commands/component-resolution.test.mjs b/packages/cli/clients/cli/commands/component-resolution.test.mjssimilarity index 98%rename from packages/cli/cli/commands/component-resolution.test.mjsrename to packages/cli/clients/cli/commands/component-resolution.test.mjsindex 8b98a2db73..a1f65c5d91 100644--- a/packages/cli/cli/commands/component-resolution.test.mjs+++ b/packages/cli/clients/cli/commands/component-resolution.test.mjs@@ -1,8 +1,8 @@// Copyright (c) Meta Platforms, Inc. and affiliates.import {describe, it, expect} from 'vitest';-import {component} from '../../api/component/component.mjs';-import {findShowcase, findRelatedBlocks} from '../../api/template/template.mjs';+import {component} from '../../../api/component/component.mjs';+import {findShowcase, findRelatedBlocks} from '../../../api/template/template.mjs';const CWD = {cwd: '.'};diff --git a/packages/cli/cli/commands/component.test.mjs b/packages/cli/clients/cli/commands/component.test.mjssimilarity index 100%rename from packages/cli/cli/commands/component.test.mjsrename to packages/cli/clients/cli/commands/component.test.mjsdiff --git a/packages/cli/cli/commands/component/index.mjs b/packages/cli/clients/cli/commands/component/index.mjssimilarity index 85%rename from packages/cli/cli/commands/component/index.mjsrename to packages/cli/clients/cli/commands/component/index.mjsindex 22697e125e..a447136bbf 100644--- a/packages/cli/cli/commands/component/index.mjs+++ b/packages/cli/clients/cli/commands/component/index.mjs@@ -6,26 +6,26 @@* Global options: --detail full|compact|brief, --lang en|zh|dense*/-import {findCoreDir} from '../../../utils/paths.mjs';+import {findCoreDir} from '../../../../foundation/fs/paths.mjs';import {resolveImportPath,-} from '../../../lib/component-discovery.mjs';+} from '../../../../foundation/discovery/component-discovery.mjs';import {formatFull,formatCompact,formatBrief,formatProps,formatBriefAll,-} from '../../../lib/component-format.mjs';-import {resolveTheme} from '../../../lib/resolve-theme.mjs';-import {getCliInvocation} from '../../../utils/package-manager.mjs';-import {jsonOut, humanLog} from '../../../lib/json.mjs';-import {cliError} from '../../../lib/cli-error.mjs';-import {ERROR_CODES} from '../../../lib/error-codes.mjs';-import {component as componentApi} from '../../../api/component/component.mjs';-import {findRelatedBlocks} from '../../../api/template/template.mjs';-import {Project} from '../../../lib/project.mjs';-import {warnOnIntegrationIssues} from '../../../lib/integration-warnings.mjs';+} from '../../lib/component-format.mjs';+import {resolveTheme} from '../../lib/resolve-theme.mjs';+import {getCliInvocation} from '../../../../foundation/env/package-manager.mjs';+import {jsonOut, humanLog} from '../../../../foundation/response/json.mjs';+import {cliError} from '../../lib/cli-error.mjs';+import {ERROR_CODES} from '../../../../foundation/response/error-codes.mjs';+import {component as componentApi} from '../../../../api/component/component.mjs';+import {findRelatedBlocks} from '../../../../api/template/template.mjs';+import {Project} from '../../../../foundation/config/project.mjs';+import {warnOnIntegrationIssues} from '../../../../foundation/integrations/integration-warnings.mjs';/*** The api layer's component() widens its return to `{type: string, data: unknown}`,@@ -33,12 +33,12 @@ import {warnOnIntegrationIssues} from '../../../lib/integration-warnings.mjs';* src/types/component to get narrowing + typed data.** @typedef {(- * | import('../../../api/component/component.type.mjs').ComponentListResponse- * | import('../../../api/component/component.type.mjs').ComponentDetailResponse- * | import('../../../api/component/component.type.mjs').ComponentDetailPropsResponse- * | import('../../../api/component/component.type.mjs').ComponentDetailSourceResponse- * | import('../../../api/component/component.type.mjs').ComponentDetailShowcaseResponse- * | import('../../../api/component/component.type.mjs').ComponentDetailBlocksResponse+ * | import('../../../../api/component/component.type.mjs').ComponentListResponse+ * | import('../../../../api/component/component.type.mjs').ComponentDetailResponse+ * | import('../../../../api/component/component.type.mjs').ComponentDetailPropsResponse+ * | import('../../../../api/component/component.type.mjs').ComponentDetailSourceResponse+ * | import('../../../../api/component/component.type.mjs').ComponentDetailShowcaseResponse+ * | import('../../../../api/component/component.type.mjs').ComponentDetailBlocksResponse* )} ComponentResult*/@@ -101,7 +101,7 @@ export function registerComponent(program) {lang, zh, dense,}));} catch (e) {- const err = /** @type {import('../../../api/error.mjs').AstryxError} */ (e);+ const err = /** @type {import('../../../../api/error.mjs').AstryxError} */ (e);cliError(err.message, {suggestions: err.suggestions, code: err.code});return;}@@ -166,7 +166,7 @@ export function registerComponent(program) {}/** @param {string} n */const isCollision = n => (nameCounts.get(n)?.size ?? 0) > 1;- /** @param {import('../../../api/component/component.type.mjs').ComponentListEntry} item */+ /** @param {import('../../../../api/component/component.type.mjs').ComponentListEntry} item */const pkgSuffix = item => {if (item.package !== CORE_PKG) return ` [${item.package}]`;if (isCollision(item.name)) return ` [${item.package}]`;@@ -280,8 +280,8 @@ export function registerComponent(program) {// Re-export lib functions for backward compatibility// (agent-docs.mjs, tests, and generate-skill-doc.sh import from here)-export {discoverComponents, discoverExternalComponents, discoverExternalComponentsGrouped, findComponentReadme, findComponentSource, findExternalComponentDoc, resolveImportPath} from '../../../lib/component-discovery.mjs';-export {discoverExternalPackages} from '../../../utils/paths.mjs';-export {loadDocs} from '../../../lib/component-loader.mjs';-export {formatFull, formatCompact, formatBrief, formatProps, formatBriefAll} from '../../../lib/component-format.mjs';-export {levenshteinDistance, findClosestComponents, searchComponents} from '../../../lib/string-utils.mjs';+export {discoverComponents, discoverExternalComponents, discoverExternalComponentsGrouped, findComponentReadme, findComponentSource, findExternalComponentDoc, resolveImportPath} from '../../../../foundation/discovery/component-discovery.mjs';+export {discoverExternalPackages} from '../../../../foundation/fs/paths.mjs';+export {loadDocs} from '../../../../foundation/discovery/component-loader.mjs';+export {formatFull, formatCompact, formatBrief, formatProps, formatBriefAll} from '../../lib/component-format.mjs';+export {levenshteinDistance, findClosestComponents, searchComponents} from '../../../../foundation/text/string-utils.mjs';diff --git a/packages/cli/cli/commands/detail-levels.test.mjs b/packages/cli/clients/cli/commands/detail-levels.test.mjssimilarity index 97%rename from packages/cli/cli/commands/detail-levels.test.mjsrename to packages/cli/clients/cli/commands/detail-levels.test.mjsindex 3a08c8e886..b95261182c 100644--- a/packages/cli/cli/commands/detail-levels.test.mjs+++ b/packages/cli/clients/cli/commands/detail-levels.test.mjs@@ -19,11 +19,11 @@import {describe, it, expect, beforeAll} from 'vitest';import * as path from 'node:path';import {fileURLToPath} from 'node:url';-import {runCli} from '../../test-utils/run-cli.mjs';+import {runCli} from '../../../test-utils/run-cli.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));// Repo root holds packages/core, which findCoreDir() walks up to locate.-const REPO_ROOT = path.resolve(__dirname, '../../../..');+const REPO_ROOT = path.resolve(__dirname, '../../../../..');async function listOutputs(cmd) {const brief = (await runCli([cmd, '--list', '--detail', 'brief'], REPO_ROOT)).stdout;diff --git a/packages/cli/cli/commands/discover.mjs b/packages/cli/clients/cli/commands/discover.mjssimilarity index 91%rename from packages/cli/cli/commands/discover.mjsrename to packages/cli/clients/cli/commands/discover.mjsindex ce8bd00804..3f14113bcd 100644--- a/packages/cli/cli/commands/discover.mjs+++ b/packages/cli/clients/cli/commands/discover.mjs@@ -10,11 +10,11 @@* astryx discover searchterm Search across all packages*/-import {formatFull, formatBrief, formatCompact} from '../../lib/component-format.mjs';-import {jsonOut, humanLog} from '../../lib/json.mjs';-import {cliError} from '../../lib/cli-error.mjs';-import {discover as discoverApi} from '../../api/discover/discover.mjs';-import {getCliInvocation} from '../../utils/package-manager.mjs';+import {formatFull, formatBrief, formatCompact} from '../lib/component-format.mjs';+import {jsonOut, humanLog} from '../../../foundation/response/json.mjs';+import {cliError} from '../lib/cli-error.mjs';+import {discover as discoverApi} from '../../../api/discover/discover.mjs';+import {getCliInvocation} from '../../../foundation/env/package-manager.mjs';/*** @param {import('commander').Command} program@@ -40,7 +40,7 @@ export function registerDiscover(program) {try {result = await discoverApi(query, {components: options.components, lang, zh});} catch (e) {- const err = /** @type {import('../../api/error.mjs').AstryxError} */ (e);+ const err = /** @type {import('../../../api/error.mjs').AstryxError} */ (e);cliError(err.message, {suggestions: err.suggestions, code: err.code});return;}diff --git a/packages/cli/cli/commands/docs.mjs b/packages/cli/clients/cli/commands/docs.mjssimilarity index 90%rename from packages/cli/cli/commands/docs.mjsrename to packages/cli/clients/cli/commands/docs.mjsindex b8be68e627..2b29688e08 100644--- a/packages/cli/cli/commands/docs.mjs+++ b/packages/cli/clients/cli/commands/docs.mjs@@ -12,10 +12,10 @@* astryx docs <topic> <section> Print one section*/-import {getCliInvocation} from '../../utils/package-manager.mjs';-import {jsonOut, humanLog} from '../../lib/json.mjs';-import {cliError} from '../../lib/cli-error.mjs';-import {docs as docsApi} from '../../api/docs/docs.mjs';+import {getCliInvocation} from '../../../foundation/env/package-manager.mjs';+import {jsonOut, humanLog} from '../../../foundation/response/json.mjs';+import {cliError} from '../lib/cli-error.mjs';+import {docs as docsApi} from '../../../api/docs/docs.mjs';// ─── Formatting ──────────────────────────────────────────────────────────────@@ -46,7 +46,7 @@ function formatTableCompact(headers, rows) {}/**- * @param {import('../../../core/src/docs-types').ContentBlock} block+ * @param {import('@astryxdesign/cli/authoring').ReferenceContentBlock} block* @param {'full' | 'compact' | 'brief'} detail* @returns {string | null}*/@@ -88,7 +88,7 @@ function formatBlock(block, detail) {}/**- * @param {import('../../../core/src/docs-types').ReferenceSection} section+ * @param {import('@astryxdesign/cli/authoring').ReferenceSection} section* @param {'full' | 'compact' | 'brief'} detail* @returns {string}*/@@ -107,7 +107,7 @@ function formatSection(section, detail) {}/**- * @param {import('../../../core/src/docs-types').ReferenceDoc} docs+ * @param {import('@astryxdesign/cli/authoring').ReferenceDoc} docs* @param {'full' | 'compact' | 'brief'} detail* @returns {string}*/@@ -149,7 +149,7 @@ export function registerDocs(program) {} catch (e) {// docs API throws structured errors with {name, reason} suggestions —// pass them through untouched so the CLI envelope matches the API.- const err = /** @type {import('../../api/error.mjs').AstryxError} */ (e);+ const err = /** @type {import('../../../api/error.mjs').AstryxError} */ (e);cliError(err.message, {suggestions: err.suggestions || [], code: err.code});return;}diff --git a/packages/cli/cli/commands/docs.test.mjs b/packages/cli/clients/cli/commands/docs.test.mjssimilarity index 97%rename from packages/cli/cli/commands/docs.test.mjsrename to packages/cli/clients/cli/commands/docs.test.mjsindex e217df8118..543965fbe2 100644--- a/packages/cli/cli/commands/docs.test.mjs+++ b/packages/cli/clients/cli/commands/docs.test.mjs@@ -71,7 +71,7 @@ describe('hyphenated doc filenames', () => {});it('returns docs.detail via API for hyphenated topic', async () => {- const {docs: docsApi} = await import('../../api/docs/docs.mjs');+ const {docs: docsApi} = await import('../../../api/docs/docs.mjs');const result = await docsApi('getting-started');expect(result.type).toBe('docs.detail');expect(result.data).toBeDefined();diff --git a/packages/cli/cli/commands/doctor.mjs b/packages/cli/clients/cli/commands/doctor.mjssimilarity index 92%rename from packages/cli/cli/commands/doctor.mjsrename to packages/cli/clients/cli/commands/doctor.mjsindex 8c5cc7de1e..df45a109e8 100644--- a/packages/cli/cli/commands/doctor.mjs+++ b/packages/cli/clients/cli/commands/doctor.mjs@@ -10,8 +10,8 @@* as a CI gate.*/-import {runChecks} from '../../api/doctor/doctor.mjs';-import {jsonOut, humanLog} from '../../lib/json.mjs';+import {runChecks} from '../../../api/doctor/doctor.mjs';+import {jsonOut, humanLog} from '../../../foundation/response/json.mjs';/** Status → human glyph (monochrome, matching the rest of the CLI). */const GLYPH = {@@ -23,7 +23,7 @@ const GLYPH = {/*** Render the report as a human-readable checklist.- * @param {import('../../api/doctor/doctor.mjs').DoctorReport} report+ * @param {import('../../../api/doctor/doctor.mjs').DoctorReport} report*/function printHuman(report) {humanLog('astryx doctor — diagnosing your setup\n');diff --git a/packages/cli/cli/commands/doctor.test.mjs b/packages/cli/clients/cli/commands/doctor.test.mjssimilarity index 99%rename from packages/cli/cli/commands/doctor.test.mjsrename to packages/cli/clients/cli/commands/doctor.test.mjsindex d4306fdf8f..469181a525 100644--- a/packages/cli/cli/commands/doctor.test.mjs+++ b/packages/cli/clients/cli/commands/doctor.test.mjs@@ -19,8 +19,8 @@ import {checkAgentDocs,checkPeerDeps,checkPackageManager,-} from '../../api/doctor/doctor.mjs';-import {MIN_NODE_VERSION} from '../../lib/node-version.mjs';+} from '../../../api/doctor/doctor.mjs';+import {MIN_NODE_VERSION} from '../../../foundation/env/node-version.mjs';let tmpDir;let logCalls;diff --git a/packages/cli/cli/commands/ensure-core-built.mjs b/packages/cli/clients/cli/commands/ensure-core-built.mjssimilarity index 99%rename from packages/cli/cli/commands/ensure-core-built.mjsrename to packages/cli/clients/cli/commands/ensure-core-built.mjsindex 0c0858f19f..97de03eba2 100644--- a/packages/cli/cli/commands/ensure-core-built.mjs+++ b/packages/cli/clients/cli/commands/ensure-core-built.mjs@@ -26,7 +26,7 @@ import {fileURLToPath} from 'node:url';const REPO_ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)),- '../../../..',+ '../../../../..',);const CORE_THEME_ENTRY = path.join(REPO_ROOT,diff --git a/packages/cli/cli/commands/external-showcase.test.mjs b/packages/cli/clients/cli/commands/external-showcase.test.mjssimilarity index 97%rename from packages/cli/cli/commands/external-showcase.test.mjsrename to packages/cli/clients/cli/commands/external-showcase.test.mjsindex 07711a2403..cf1c009bef 100644--- a/packages/cli/cli/commands/external-showcase.test.mjs+++ b/packages/cli/clients/cli/commands/external-showcase.test.mjs@@ -4,7 +4,7 @@ import {describe, it, expect, beforeEach, afterEach} from 'vitest';import * as fs from 'node:fs';import * as path from 'node:path';import * as os from 'node:os';-import {findShowcase, findRelatedBlocks} from '../../api/template/template.mjs';+import {findShowcase, findRelatedBlocks} from '../../../api/template/template.mjs';// These tests verify that findShowcase and findRelatedBlocks can discover// blocks from external packages that declare xds.blocks in package.json.@@ -13,7 +13,7 @@ let tmpDir;function createFixture() {// Symlink real core package (needed for findCoreDir)- const realCoreDir = path.resolve(import.meta.dirname, '..', '..', '..', 'core');+ const realCoreDir = path.resolve(import.meta.dirname, '..', '..', '..', '..', 'core');const coreDir = path.join(tmpDir, 'packages', 'core');fs.mkdirSync(path.dirname(coreDir), {recursive: true});fs.symlinkSync(realCoreDir, coreDir);diff --git a/packages/cli/cli/commands/hook/index.mjs b/packages/cli/clients/cli/commands/hook/index.mjssimilarity index 86%rename from packages/cli/cli/commands/hook/index.mjsrename to packages/cli/clients/cli/commands/hook/index.mjsindex 61c9235415..22124ba54f 100644--- a/packages/cli/cli/commands/hook/index.mjs+++ b/packages/cli/clients/cli/commands/hook/index.mjs@@ -11,13 +11,13 @@ import {formatHookCompact,formatHookBrief,formatHookParams,-} from '../../../lib/hook-format.mjs';-import {getCliInvocation} from '../../../utils/package-manager.mjs';-import {jsonOut, humanLog} from '../../../lib/json.mjs';-import {cliError} from '../../../lib/cli-error.mjs';-import {ERROR_CODES} from '../../../lib/error-codes.mjs';-import {hook as hookApi} from '../../../api/hook/hook.mjs';-import {findRelatedBlocks} from '../../../api/template/template.mjs';+} from '../../lib/hook-format.mjs';+import {getCliInvocation} from '../../../../foundation/env/package-manager.mjs';+import {jsonOut, humanLog} from '../../../../foundation/response/json.mjs';+import {cliError} from '../../lib/cli-error.mjs';+import {ERROR_CODES} from '../../../../foundation/response/error-codes.mjs';+import {hook as hookApi} from '../../../../api/hook/hook.mjs';+import {findRelatedBlocks} from '../../../../api/template/template.mjs';/*** The api layer's hook() widens its return to `{type: string, data: unknown}`,@@ -25,9 +25,9 @@ import {findRelatedBlocks} from '../../../api/template/template.mjs';* the colocated api/hook/hook.type.mjs to get narrowing + typed data.** @typedef {(- * | import('../../../api/hook/hook.type.mjs').HookListResponse- * | import('../../../api/hook/hook.type.mjs').HookDetailResponse- * | import('../../../api/hook/hook.type.mjs').HookDetailParamsResponse+ * | import('../../../../api/hook/hook.type.mjs').HookListResponse+ * | import('../../../../api/hook/hook.type.mjs').HookDetailResponse+ * | import('../../../../api/hook/hook.type.mjs').HookDetailParamsResponse* )} HookResult*/@@ -73,7 +73,7 @@ export function registerHook(program) {lang, zh,}));} catch (e) {- const err = /** @type {import('../../../api/error.mjs').AstryxError} */ (e);+ const err = /** @type {import('../../../../api/error.mjs').AstryxError} */ (e);cliError(err.message, {suggestions: err.suggestions, code: err.code});return;}@@ -148,7 +148,7 @@ export function registerHook(program) {}// Show related block templates from relatedComponentsconst relatedComps = result.data.relatedComponents || [];- /** @type {import('../../../api/template/template.mjs').DiscoveredTemplate[]} */+ /** @type {import('../../../../api/template/template.mjs').DiscoveredTemplate[]} */const allBlocks = [];for (const comp of relatedComps) {const blocks = await findRelatedBlocks(comp);@@ -178,12 +178,12 @@ export function registerHook(program) {}// Re-export lib functions for external consumers-export {discoverHooks, findHookDoc, getAllHookNames} from '../../../lib/hook-discovery.mjs';-export {loadDocs} from '../../../lib/component-loader.mjs';+export {discoverHooks, findHookDoc, getAllHookNames} from '../../../../foundation/discovery/hook-discovery.mjs';+export {loadDocs} from '../../../../foundation/discovery/component-loader.mjs';export {formatHookFull,formatHookCompact,formatHookBrief,formatHookBriefAll,formatHookParams,-} from '../../../lib/hook-format.mjs';+} from '../../lib/hook-format.mjs';diff --git a/packages/cli/cli/commands/import-hint-correctness.test.mjs b/packages/cli/clients/cli/commands/import-hint-correctness.test.mjssimilarity index 97%rename from packages/cli/cli/commands/import-hint-correctness.test.mjsrename to packages/cli/clients/cli/commands/import-hint-correctness.test.mjsindex 182579d5e1..865d5ef11f 100644--- a/packages/cli/cli/commands/import-hint-correctness.test.mjs+++ b/packages/cli/clients/cli/commands/import-hint-correctness.test.mjs@@ -22,11 +22,11 @@ import {discoverComponents,findComponentSource,} from './component/index.mjs';-import {findCoreDir} from '../../utils/paths.mjs';-import {runCli} from '../../test-utils/run-cli.mjs';+import {findCoreDir} from '../../../foundation/fs/paths.mjs';+import {runCli} from '../../../test-utils/run-cli.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const REPO_ROOT = path.resolve(__dirname, '../../../..');+const REPO_ROOT = path.resolve(__dirname, '../../../../..');describe('import hint correctness', () => {const coreDir = findCoreDir();diff --git a/packages/cli/cli/commands/init.behavior.test.mjs b/packages/cli/clients/cli/commands/init.behavior.test.mjssimilarity index 98%rename from packages/cli/cli/commands/init.behavior.test.mjsrename to packages/cli/clients/cli/commands/init.behavior.test.mjsindex b252aee3e1..5f825eff4c 100644--- a/packages/cli/cli/commands/init.behavior.test.mjs+++ b/packages/cli/clients/cli/commands/init.behavior.test.mjs@@ -18,7 +18,7 @@ import {describe, it, expect, beforeEach, afterEach} from 'vitest';import * as fs from 'node:fs';import * as path from 'node:path';import * as os from 'node:os';-import {runCli} from '../../test-utils/run-cli.mjs';+import {runCli} from '../../../test-utils/run-cli.mjs';const MARKER_START = '<!-- ASTRYX:START -->';diff --git a/packages/cli/cli/commands/init.mjs b/packages/cli/clients/cli/commands/init.mjssimilarity index 86%rename from packages/cli/cli/commands/init.mjsrename to packages/cli/clients/cli/commands/init.mjsindex 186deb9043..e543ce4a18 100644--- a/packages/cli/cli/commands/init.mjs+++ b/packages/cli/clients/cli/commands/init.mjs@@ -14,9 +14,9 @@* and maps the receipt's soft agent-docs error to the exit code.*/-import {init} from '../../api/init/init.mjs';-import {logger} from '../../api/logger.mjs';-import {cliError} from '../../lib/cli-error.mjs';+import {init} from '../../../api/init/init.mjs';+import {logger} from '../../../api/logger.mjs';+import {cliError} from '../lib/cli-error.mjs';/*** @param {import('commander').Command} program@@ -30,7 +30,7 @@ export function registerInit(program) {.option('--remove-agents', 'Remove AI agent docs from all agent doc files').option('--agent <tool>', 'Target AI tool for agent docs: claude, cursor, codex, hermes, all').option('--agent-docs-path <path...>', 'Explicit file path(s) for agent docs')- .action(async (/** @type {import('../../api/init/init.mjs').InitOptions} */ options) => {+ .action(async (/** @type {import('../../../api/init/init.mjs').InitOptions} */ options) => {// init has no --json mode: enable human output (log → stdout via humanLog,// warn/error → stderr). humanLog still self-suppresses under a global// --json flag, so a JSON envelope can never be corrupted.@@ -43,7 +43,7 @@ export function registerInit(program) {process.exitCode = 1;}} catch (err) {- const e = /** @type {import('../../api/error.mjs').AstryxError} */ (err);+ const e = /** @type {import('../../../api/error.mjs').AstryxError} */ (err);cliError(e.message, {suggestions: e.suggestions, code: e.code});}});diff --git a/packages/cli/cli/commands/init.next-steps.test.mjs b/packages/cli/clients/cli/commands/init.next-steps.test.mjssimilarity index 96%rename from packages/cli/cli/commands/init.next-steps.test.mjsrename to packages/cli/clients/cli/commands/init.next-steps.test.mjsindex 1211118d23..28bbf90dd6 100644--- a/packages/cli/cli/commands/init.next-steps.test.mjs+++ b/packages/cli/clients/cli/commands/init.next-steps.test.mjs@@ -20,7 +20,7 @@*/import {describe, it, expect} from 'vitest';-import {getNextSteps} from '../../api/init/init.mjs';+import {getNextSteps} from '../../../api/init/init.mjs';describe('init Next steps theme guidance', () => {const text = getNextSteps('npx astryx').join('\n');diff --git a/packages/cli/cli/commands/interactive-guard.test.mjs b/packages/cli/clients/cli/commands/interactive-guard.test.mjssimilarity index 97%rename from packages/cli/cli/commands/interactive-guard.test.mjsrename to packages/cli/clients/cli/commands/interactive-guard.test.mjsindex 2fd85690b6..8aa19d911f 100644--- a/packages/cli/cli/commands/interactive-guard.test.mjs+++ b/packages/cli/clients/cli/commands/interactive-guard.test.mjs@@ -18,7 +18,7 @@ import * as os from 'node:os';import {fileURLToPath} from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const CLI = path.resolve(__dirname, '..', '..', 'bin', 'astryx.mjs');+const CLI = path.resolve(__dirname, '..', 'bin', 'astryx.mjs');let tmpDir;diff --git a/packages/cli/cli/commands/json-contract.test.mjs b/packages/cli/clients/cli/commands/json-contract.test.mjssimilarity index 98%rename from packages/cli/cli/commands/json-contract.test.mjsrename to packages/cli/clients/cli/commands/json-contract.test.mjsindex ba4200f998..422d12b8e0 100644--- a/packages/cli/cli/commands/json-contract.test.mjs+++ b/packages/cli/clients/cli/commands/json-contract.test.mjs@@ -24,10 +24,10 @@ import * as fs from 'node:fs';import * as path from 'node:path';import * as os from 'node:os';import {fileURLToPath} from 'node:url';-import {runCli} from '../../test-utils/run-cli.mjs';+import {runCli} from '../../../test-utils/run-cli.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const CLI_BIN = path.resolve(__dirname, '../../bin/astryx.mjs');+const CLI_BIN = path.resolve(__dirname, '../bin/astryx.mjs');// `--version --json` is handled at the bin argv layer (before Commander ever// runs), so it can only be exercised by spawning the real binary.diff --git a/packages/cli/cli/commands/layout.error-codes.test.mjs b/packages/cli/clients/cli/commands/layout.error-codes.test.mjssimilarity index 97%rename from packages/cli/cli/commands/layout.error-codes.test.mjsrename to packages/cli/clients/cli/commands/layout.error-codes.test.mjsindex 4ed0ba7b1d..bcc9c45c20 100644--- a/packages/cli/cli/commands/layout.error-codes.test.mjs+++ b/packages/cli/clients/cli/commands/layout.error-codes.test.mjs@@ -15,7 +15,7 @@ import * as path from 'node:path';import {fileURLToPath} from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const CLI_BIN = path.resolve(__dirname, '../../bin/astryx.mjs');+const CLI_BIN = path.resolve(__dirname, '../bin/astryx.mjs');function run(args) {const res = spawnSync('node', [CLI_BIN, ...args], {diff --git a/packages/cli/cli/commands/layout.exit-parity.test.mjs b/packages/cli/clients/cli/commands/layout.exit-parity.test.mjssimilarity index 96%rename from packages/cli/cli/commands/layout.exit-parity.test.mjsrename to packages/cli/clients/cli/commands/layout.exit-parity.test.mjsindex b67f053344..767bf14cae 100644--- a/packages/cli/cli/commands/layout.exit-parity.test.mjs+++ b/packages/cli/clients/cli/commands/layout.exit-parity.test.mjs@@ -10,7 +10,7 @@*/import {describe, it, expect} from 'vitest';-import {runCli} from '../../test-utils/run-cli.mjs';+import {runCli} from '../../../test-utils/run-cli.mjs';const SLOW = 30_000;// Parses fine, but references an unknown component -> data.valid: falsediff --git a/packages/cli/cli/commands/layout.mjs b/packages/cli/clients/cli/commands/layout.mjssimilarity index 89%rename from packages/cli/cli/commands/layout.mjsrename to packages/cli/clients/cli/commands/layout.mjsindex 9c4cab131d..30735ce6e8 100644--- a/packages/cli/cli/commands/layout.mjs+++ b/packages/cli/clients/cli/commands/layout.mjs@@ -13,10 +13,10 @@*/import * as fs from 'node:fs';-import {jsonOut, humanLog} from '../../lib/json.mjs';-import {cliError} from '../../lib/cli-error.mjs';-import {ERROR_CODES} from '../../lib/error-codes.mjs';-import {layoutExpand, layoutCheck, layoutGrammar} from '../../api/layout/layout.mjs';+import {jsonOut, humanLog} from '../../../foundation/response/json.mjs';+import {cliError} from '../lib/cli-error.mjs';+import {ERROR_CODES} from '../../../foundation/response/error-codes.mjs';+import {layoutExpand, layoutCheck, layoutGrammar} from '../../../api/layout/layout.mjs';/*** The api layer's @returns for these functions widen the `type` discriminator@@ -24,9 +24,9 @@ import {layoutExpand, layoutCheck, layoutGrammar} from '../../api/layout/layout.* shapes from the colocated api/layout/layout.type.mjs so narrowing + jsonOut* typecheck.*- * @typedef {import('../../api/layout/layout.type.mjs').LayoutExpandResponse} LayoutExpandResponse- * @typedef {import('../../api/layout/layout.type.mjs').LayoutCheckResponse} LayoutCheckResponse- * @typedef {import('../../api/layout/layout.type.mjs').LayoutGrammarResponse} LayoutGrammarResponse+ * @typedef {import('../../../api/layout/layout.type.mjs').LayoutExpandResponse} LayoutExpandResponse+ * @typedef {import('../../../api/layout/layout.type.mjs').LayoutCheckResponse} LayoutCheckResponse+ * @typedef {import('../../../api/layout/layout.type.mjs').LayoutGrammarResponse} LayoutGrammarResponse*//**@@ -111,7 +111,7 @@ export function registerLayout(program) {cwd: process.cwd(),}));} catch (e) {- const err = /** @type {import('../../api/error.mjs').AstryxError} */ (e);+ const err = /** @type {import('../../../api/error.mjs').AstryxError} */ (e);cliError(err.message, {suggestions: err.suggestions || [], code: err.code});return;}@@ -155,7 +155,7 @@ export function registerLayout(program) {cwd: process.cwd(),}));} catch (e) {- const err = /** @type {import('../../api/error.mjs').AstryxError} */ (e);+ const err = /** @type {import('../../../api/error.mjs').AstryxError} */ (e);cliError(err.message, {suggestions: err.suggestions || [], code: err.code});return;}@@ -196,7 +196,7 @@ export function registerLayout(program) {try {result = /** @type {LayoutGrammarResponse} */ (await layoutGrammar({cwd: process.cwd()}));} catch (e) {- const err = /** @type {import('../../api/error.mjs').AstryxError} */ (e);+ const err = /** @type {import('../../../api/error.mjs').AstryxError} */ (e);cliError(err.message, {suggestions: err.suggestions || [], code: err.code});return;}diff --git a/packages/cli/cli/commands/search.mjs b/packages/cli/clients/cli/commands/search.mjssimilarity index 82%rename from packages/cli/cli/commands/search.mjsrename to packages/cli/clients/cli/commands/search.mjsindex 2311b679af..15171378dd 100644--- a/packages/cli/cli/commands/search.mjs+++ b/packages/cli/clients/cli/commands/search.mjs@@ -16,10 +16,10 @@* astryx search button --json Typed JSON envelope*/-import {getCliInvocation, formatCliCommand} from '../../utils/package-manager.mjs';-import {jsonOut, humanLog} from '../../lib/json.mjs';-import {cliError} from '../../lib/cli-error.mjs';-import {search as searchApi, SEARCH_DOMAINS} from '../../api/search/search.mjs';+import {getCliInvocation, formatCliCommand} from '../../../foundation/env/package-manager.mjs';+import {jsonOut, humanLog} from '../../../foundation/response/json.mjs';+import {cliError} from '../lib/cli-error.mjs';+import {search as searchApi, SEARCH_DOMAINS} from '../../../api/search/search.mjs';const DOMAIN_LABEL = {component: 'component',@@ -38,7 +38,7 @@ export function registerSearch(program) {.option('--type <domain>', `Filter to one domain (${SEARCH_DOMAINS.join('|')})`).option('--limit <n>', 'Max number of results (default 20)').option('--detail', 'Verbose output (include import paths and match reason)')- .action(async (/** @type {string} */ query, /** @type {{type?: import('../../api/search/search.type.mjs').SearchDomain, limit?: string, detail?: boolean}} */ options) => {+ .action(async (/** @type {string} */ query, /** @type {{type?: import('../../../api/search/search.type.mjs').SearchDomain, limit?: string, detail?: boolean}} */ options) => {const json = program.opts().json || false;// Parse --limit to a number; the API validates it (positive integer) and@@ -47,10 +47,10 @@ export function registerSearch(program) {const limit =options.limit != null ? Number.parseInt(options.limit, 10) : 20;- /** @type {import('../../api/search/search.type.mjs').SearchResponse} */+ /** @type {import('../../../api/search/search.type.mjs').SearchResponse} */let result;try {- result = /** @type {import('../../api/search/search.type.mjs').SearchResponse} */ (+ result = /** @type {import('../../../api/search/search.type.mjs').SearchResponse} */ (await searchApi(query, {cwd: process.cwd(),type: options.type,@@ -58,7 +58,7 @@ export function registerSearch(program) {}));} catch (e) {- const err = /** @type {import('../../api/error.mjs').AstryxError} */ (e);+ const err = /** @type {import('../../../api/error.mjs').AstryxError} */ (e);cliError(err.message, {suggestions: err.suggestions, code: err.code});return;}@@ -100,4 +100,4 @@ export function registerSearch(program) {}// Re-export the API for external consumers.-export {search, SEARCH_DOMAINS} from '../../api/search/search.mjs';+export {search, SEARCH_DOMAINS} from '../../../api/search/search.mjs';diff --git a/packages/cli/cli/commands/search.test.mjs b/packages/cli/clients/cli/commands/search.test.mjssimilarity index 97%rename from packages/cli/cli/commands/search.test.mjsrename to packages/cli/clients/cli/commands/search.test.mjsindex c9440ed39e..8cc8501e0c 100644--- a/packages/cli/cli/commands/search.test.mjs+++ b/packages/cli/clients/cli/commands/search.test.mjs@@ -13,12 +13,12 @@import {describe, it, expect} from 'vitest';import * as path from 'node:path';import {fileURLToPath} from 'node:url';-import {search, scoreCandidate, SEARCH_DOMAINS} from '../../api/search/search.mjs';-import {runCli} from '../../test-utils/run-cli.mjs';+import {search, scoreCandidate, SEARCH_DOMAINS} from '../../../api/search/search.mjs';+import {runCli} from '../../../test-utils/run-cli.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));// Run against the monorepo root so @astryxdesign/core is discoverable.-const REPO_ROOT = path.resolve(__dirname, '../../../..');+const REPO_ROOT = path.resolve(__dirname, '../../../../..');const OPTS = {cwd: REPO_ROOT};// The API-level search walks the source tree and imports every `.doc.mjs` todiff --git a/packages/cli/cli/commands/setup-nudge.test.mjs b/packages/cli/clients/cli/commands/setup-nudge.test.mjssimilarity index 95%rename from packages/cli/cli/commands/setup-nudge.test.mjsrename to packages/cli/clients/cli/commands/setup-nudge.test.mjsindex 5923a11f2a..6f31a8c320 100644--- a/packages/cli/cli/commands/setup-nudge.test.mjs+++ b/packages/cli/clients/cli/commands/setup-nudge.test.mjs@@ -16,8 +16,8 @@ import {describe, it, expect, beforeEach, afterEach} from 'vitest';import * as fs from 'node:fs';import * as path from 'node:path';import * as os from 'node:os';-import {isAstryxInitialized} from '../../lib/agent-docs/agent-docs.mjs';-import {runCli} from '../../test-utils/run-cli.mjs';+import {isAstryxInitialized} from '../../../foundation/agent-docs/agent-docs.mjs';+import {runCli} from '../../../test-utils/run-cli.mjs';const MARKER = '<!-- ASTRYX:START -->';const NUDGE = /finish setup and install the Astryx agent prompt/;diff --git a/packages/cli/cli/commands/swizzle.mjs b/packages/cli/clients/cli/commands/swizzle.mjssimilarity index 87%rename from packages/cli/cli/commands/swizzle.mjsrename to packages/cli/clients/cli/commands/swizzle.mjsindex 1e894eaf79..4dbc0b024c 100644--- a/packages/cli/cli/commands/swizzle.mjs+++ b/packages/cli/clients/cli/commands/swizzle.mjs@@ -10,10 +10,10 @@* commands for the caller's package manager.*/-import {jsonOut, humanLog} from '../../lib/json.mjs';-import {cliError} from '../../lib/cli-error.mjs';-import {getCliInvocation} from '../../utils/package-manager.mjs';-import {swizzle as swizzleApi} from '../../api/swizzle/swizzle.mjs';+import {jsonOut, humanLog} from '../../../foundation/response/json.mjs';+import {cliError} from '../lib/cli-error.mjs';+import {getCliInvocation} from '../../../foundation/env/package-manager.mjs';+import {swizzle as swizzleApi} from '../../../api/swizzle/swizzle.mjs';/*** @param {import('commander').Command} program@@ -30,7 +30,7 @@ export function registerSwizzle(program) {const json = program.opts().json || false;const run = getCliInvocation();- /** @type {import('../../api/swizzle/swizzle.type.mjs').SwizzleListResponse | import('../../api/swizzle/swizzle.type.mjs').SwizzleCopyResponse} */+ /** @type {import('../../../api/swizzle/swizzle.type.mjs').SwizzleListResponse | import('../../../api/swizzle/swizzle.type.mjs').SwizzleCopyResponse} */let result;try {result = await swizzleApi(component, {@@ -41,7 +41,7 @@ export function registerSwizzle(program) {overwrite: options.overwrite,});} catch (e) {- const err = /** @type {import('../../api/error.mjs').AstryxError} */ (e);+ const err = /** @type {import('../../../api/error.mjs').AstryxError} */ (e);cliError(err.message, {suggestions: err.suggestions, code: err.code});return;}diff --git a/packages/cli/cli/commands/swizzle.path-safety.test.mjs b/packages/cli/clients/cli/commands/swizzle.path-safety.test.mjssimilarity index 98%rename from packages/cli/cli/commands/swizzle.path-safety.test.mjsrename to packages/cli/clients/cli/commands/swizzle.path-safety.test.mjsindex 7fcbcb62ef..41c66410a8 100644--- a/packages/cli/cli/commands/swizzle.path-safety.test.mjs+++ b/packages/cli/clients/cli/commands/swizzle.path-safety.test.mjs@@ -12,7 +12,7 @@ import {describe, it, expect, beforeEach, afterEach} from 'vitest';import * as fs from 'node:fs';import * as path from 'node:path';import * as os from 'node:os';-import {runCli} from '../../test-utils/run-cli.mjs';+import {runCli} from '../../../test-utils/run-cli.mjs';// Build a minimal fake monorepo: <root>/project/ contains a// node_modules/@astryxdesign/core/src/Button so findCoreDir succeeds, anddiff --git a/packages/cli/cli/commands/swizzle.routing.test.mjs b/packages/cli/clients/cli/commands/swizzle.routing.test.mjssimilarity index 99%rename from packages/cli/cli/commands/swizzle.routing.test.mjsrename to packages/cli/clients/cli/commands/swizzle.routing.test.mjsindex 47b9295ab1..15ca52e914 100644--- a/packages/cli/cli/commands/swizzle.routing.test.mjs+++ b/packages/cli/clients/cli/commands/swizzle.routing.test.mjs@@ -15,7 +15,7 @@ import {describe, it, expect, beforeEach, afterEach} from 'vitest';import * as fs from 'node:fs';import * as path from 'node:path';import * as os from 'node:os';-import {runCli} from '../../test-utils/run-cli.mjs';+import {runCli} from '../../../test-utils/run-cli.mjs';/*** Build a fake @astryxdesign/core under <project>/node_modules with a singlediff --git a/packages/cli/cli/commands/template.mjs b/packages/cli/clients/cli/commands/template.mjssimilarity index 84%rename from packages/cli/cli/commands/template.mjsrename to packages/cli/clients/cli/commands/template.mjsindex 615880fd24..fb8d518dd3 100644--- a/packages/cli/cli/commands/template.mjs+++ b/packages/cli/clients/cli/commands/template.mjs@@ -6,15 +6,15 @@import * as path from 'node:path';import * as fs from 'node:fs';-import {jsonOut, humanLog} from '../../lib/json.mjs';-import {cliError} from '../../lib/cli-error.mjs';-import {ERROR_CODES} from '../../lib/error-codes.mjs';-import {template as templateApi} from '../../api/template/template.mjs';-import {Project} from '../../lib/project.mjs';-import {warnOnIntegrationIssues} from '../../lib/integration-warnings.mjs';-import {getCliInvocation} from '../../utils/package-manager.mjs';+import {jsonOut, humanLog} from '../../../foundation/response/json.mjs';+import {cliError} from '../lib/cli-error.mjs';+import {ERROR_CODES} from '../../../foundation/response/error-codes.mjs';+import {template as templateApi} from '../../../api/template/template.mjs';+import {Project} from '../../../foundation/config/project.mjs';+import {warnOnIntegrationIssues} from '../../../foundation/integrations/integration-warnings.mjs';+import {getCliInvocation} from '../../../foundation/env/package-manager.mjs';-export {discoverTemplates, listTemplates} from '../../api/template/template.mjs';+export {discoverTemplates, listTemplates} from '../../../api/template/template.mjs';/*** A template entry as produced by the discover* helpers in api/template.mjs.@@ -34,10 +34,10 @@ export {discoverTemplates, listTemplates} from '../../api/template/template.mjs'* precise union so the switch below type-checks. Replace with the api's own* return type once it is tightened.* @typedef {(- * import('../../api/template/template.type.mjs').TemplateListResponse |- * import('../../api/template/template.type.mjs').TemplateShowResponse |- * import('../../api/template/template.type.mjs').TemplateSkeletonResponse |- * import('../../api/template/template.type.mjs').TemplateCopyResponse+ * import('../../../api/template/template.type.mjs').TemplateListResponse |+ * import('../../../api/template/template.type.mjs').TemplateShowResponse |+ * import('../../../api/template/template.type.mjs').TemplateSkeletonResponse |+ * import('../../../api/template/template.type.mjs').TemplateCopyResponse* )} TemplateResponse*/@@ -69,7 +69,7 @@ export function registerTemplate(program) {try {const project = await Project.load(process.cwd());await warnOnIntegrationIssues(- /** @type {Array<import('../../lib/integrations.mjs').LoadedIntegration>} */ (+ /** @type {Array<import('../../../foundation/integrations/integrations.mjs').LoadedIntegration>} */ (project.loadedIntegrations),{json},@@ -115,7 +115,7 @@ export function registerTemplate(program) {} catch (e) {// template API throws structured errors with {name, reason} suggestions —// pass them through untouched so the CLI envelope matches the API.- const err = /** @type {import('../../api/error.mjs').AstryxError} */ (e);+ const err = /** @type {import('../../../api/error.mjs').AstryxError} */ (e);cliError(err.message, {suggestions: err.suggestions || [], code: err.code});return;}@@ -126,7 +126,7 @@ export function registerTemplate(program) {case 'template.list': {const pages = result.data.filter(t => t.type === 'page');const blocks = result.data.filter(t => t.type === 'block');- /** @param {import('../../api/template/template.type.mjs').TemplateListEntry} t */+ /** @param {import('../../../api/template/template.type.mjs').TemplateListEntry} t */const renderEntry = t => {const status = t.isReady ? '' : ' (WIP)';const pkg =@@ -190,7 +190,7 @@ export function registerTemplate(program) {* @returns {Promise<string | null>}*/async function detectTemplateCollision(name, targetPath) {- const {discoverTemplates} = await import('../../api/template/template.mjs');+ const {discoverTemplates} = await import('../../../api/template/template.mjs');/** @type {DiscoveredTemplate[]} */let templates;try {@@ -209,7 +209,7 @@ async function detectTemplateCollision(name, targetPath) {const resolved = path.resolve(process.cwd(), targetPath);// File-arg branch: targetPath looks like `./foo.tsx`.- const {isFilePathArg} = await import('../../utils/path-safety.mjs');+ const {isFilePathArg} = await import('../../../foundation/fs/path-safety.mjs');let dest;if (isFilePathArg(targetPath)) {dest = resolved;diff --git a/packages/cli/cli/commands/template.path-safety.test.mjs b/packages/cli/clients/cli/commands/template.path-safety.test.mjssimilarity index 94%rename from packages/cli/cli/commands/template.path-safety.test.mjsrename to packages/cli/clients/cli/commands/template.path-safety.test.mjsindex ccbe7cea3c..4d437d1464 100644--- a/packages/cli/cli/commands/template.path-safety.test.mjs+++ b/packages/cli/clients/cli/commands/template.path-safety.test.mjs@@ -18,7 +18,7 @@ let templateApi;beforeEach(async () => {tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'astryx-template-paths-'));- templateApi = (await import('../../api/template/template.mjs')).template;+ templateApi = (await import('../../../api/template/template.mjs')).template;});afterEach(() => {fs.rmSync(tmpDir, {recursive: true, force: true});@@ -57,7 +57,7 @@ describe('template path safety', () => {fs.mkdirSync(cwd, {recursive: true});// Use a real template name from the discovered set.- const {discoverTemplates} = await import('../../api/template/template.mjs');+ const {discoverTemplates} = await import('../../../api/template/template.mjs');const all = await discoverTemplates();const page = all.find(t => t.type === 'page');if (!page) {diff --git a/packages/cli/cli/commands/template.test.mjs b/packages/cli/clients/cli/commands/template.test.mjssimilarity index 100%rename from packages/cli/cli/commands/template.test.mjsrename to packages/cli/clients/cli/commands/template.test.mjsdiff --git a/packages/cli/cli/commands/upgrade.config-ordering.test.mjs b/packages/cli/clients/cli/commands/upgrade.config-ordering.test.mjssimilarity index 100%rename from packages/cli/cli/commands/upgrade.config-ordering.test.mjsrename to packages/cli/clients/cli/commands/upgrade.config-ordering.test.mjsdiff --git a/packages/cli/cli/commands/upgrade.integration-policy.test.mjs b/packages/cli/clients/cli/commands/upgrade.integration-policy.test.mjssimilarity index 91%rename from packages/cli/cli/commands/upgrade.integration-policy.test.mjsrename to packages/cli/clients/cli/commands/upgrade.integration-policy.test.mjsindex 2b90df2e54..10fcb55752 100644--- a/packages/cli/cli/commands/upgrade.integration-policy.test.mjs+++ b/packages/cli/clients/cli/commands/upgrade.integration-policy.test.mjs@@ -15,7 +15,6 @@import {describe, it, expect, beforeEach, afterEach, vi} from 'vitest';import * as fs from 'node:fs';import * as path from 'node:path';-import {pathToFileURL} from 'node:url';import {Command} from 'commander';import {registerUpgrade} from './upgrade.mjs';@@ -25,10 +24,6 @@ let logCalls;let errCalls;let exitCode;-const codemodModuleUrl = pathToFileURL(- path.resolve(process.cwd(), 'packages/cli/authoring/codemod.mjs'),-).href;-beforeEach(() => {originalCwd = process.cwd();// Repo-local temp dir: under cwd so Vite allows config/integration imports.@@ -153,8 +148,7 @@ describe('upgrade integration error policy (skip + warn)', () => {it('runs a healthy integration codemod for an applicable range', async () => {scaffoldIntegration({'0.2.0/drop-foo.mjs':- `import {createCodemod} from ${JSON.stringify(codemodModuleUrl)};\n` +- `export default createCodemod({ title: 'Drop foo', transform: (file) => file.source.replace(/foo/g, 'bar') });\n`,+ `export default { type: 'code', title: 'Drop foo', transform: (file) => file.source.replace(/foo/g, 'bar') };\n`,});writeInstalledCore('0.2.0');writeSource();@@ -178,8 +172,7 @@ describe('upgrade integration error policy (skip + warn)', () => {it('--skip-codemod excludes a named integration codemod', async () => {scaffoldIntegration({'0.2.0/drop-foo.mjs':- `import {createCodemod} from ${JSON.stringify(codemodModuleUrl)};\n` +- `export default createCodemod({ title: 'Drop foo', transform: (file) => file.source.replace(/foo/g, 'bar') });\n`,+ `export default { type: 'code', title: 'Drop foo', transform: (file) => file.source.replace(/foo/g, 'bar') };\n`,});writeInstalledCore('0.2.0');writeSource();diff --git a/packages/cli/cli/commands/upgrade.mjs b/packages/cli/clients/cli/commands/upgrade.mjssimilarity index 82%rename from packages/cli/cli/commands/upgrade.mjsrename to packages/cli/clients/cli/commands/upgrade.mjsindex 76c19567d6..09f63fb46d 100644--- a/packages/cli/cli/commands/upgrade.mjs+++ b/packages/cli/clients/cli/commands/upgrade.mjs@@ -12,10 +12,10 @@* astryx upgrade --from <old-version> --path <source-dir> --apply*/-import {jsonOut, jsonError} from '../../lib/json.mjs';-import {logger} from '../../api/logger.mjs';-import {AstryxError} from '../../api/error.mjs';-import {upgrade as upgradeApi} from '../../api/upgrade/upgrade.mjs';+import {jsonOut, jsonError} from '../../../foundation/response/json.mjs';+import {logger} from '../../../api/logger.mjs';+import {AstryxError} from '../../../api/error.mjs';+import {upgrade as upgradeApi} from '../../../api/upgrade/upgrade.mjs';/*** @param {import('commander').Command} program@@ -37,13 +37,13 @@ export function registerUpgrade(program) {.option('--list', 'List available codemods', false).action(/**- * @param {import('../../api/upgrade/upgrade.mjs').UpgradeOptions} options+ * @param {import('../../../api/upgrade/upgrade.mjs').UpgradeOptions} options*/async options => {const json = program.opts().json || false;logger.setSilent(json);- /** @type {import('../../api/upgrade/upgrade.type.mjs').UpgradeListResponse | import('../../api/upgrade/upgrade.type.mjs').UpgradeStatusResponse | import('../../api/upgrade/upgrade.type.mjs').UpgradeRunResponse} */+ /** @type {import('../../../api/upgrade/upgrade.type.mjs').UpgradeListResponse | import('../../../api/upgrade/upgrade.type.mjs').UpgradeStatusResponse | import('../../../api/upgrade/upgrade.type.mjs').UpgradeRunResponse} */let result;try {result = await upgradeApi(options, {cwd: process.cwd()});diff --git a/packages/cli/cli/commands/upgrade.test.mjs b/packages/cli/clients/cli/commands/upgrade.test.mjssimilarity index 99%rename from packages/cli/cli/commands/upgrade.test.mjsrename to packages/cli/clients/cli/commands/upgrade.test.mjsindex b4f837cc6e..9783feedd7 100644--- a/packages/cli/cli/commands/upgrade.test.mjs+++ b/packages/cli/clients/cli/commands/upgrade.test.mjs@@ -6,7 +6,7 @@ import * as path from 'node:path';import * as os from 'node:os';import {Command} from 'commander';import {registerUpgrade} from './upgrade.mjs';-import {generateCompressedIndex} from '../../lib/agent-docs/agent-docs.mjs';+import {generateCompressedIndex} from '../../../foundation/agent-docs/agent-docs.mjs';let tmpDir;let originalCwd;diff --git a/packages/cli/cli/commands/validate-integration.mjs b/packages/cli/clients/cli/commands/validate-integration.mjssimilarity index 91%rename from packages/cli/cli/commands/validate-integration.mjsrename to packages/cli/clients/cli/commands/validate-integration.mjsindex 2d64f60a9c..0ca04fadd3 100644--- a/packages/cli/cli/commands/validate-integration.mjs+++ b/packages/cli/clients/cli/commands/validate-integration.mjs@@ -14,15 +14,15 @@* an integration package is not a failure).*/-import {jsonOut, humanLog} from '../../lib/json.mjs';+import {jsonOut, humanLog} from '../../../foundation/response/json.mjs';import {validateIntegration,summarizeIssues,-} from '../../api/integration/validate-integration.mjs';+} from '../../../api/integration/validate-integration.mjs';/*** Render a validation result for humans.- * @param {import('../../types/validate-integration').ValidateIntegrationResponse['data']} data+ * @param {import('../../../api/integration/validate-integration.type.mjs').ValidateIntegrationResponse['data']} data*/function printHuman(data) {const label =diff --git a/packages/cli/cli/commands/validate-integration.test.mjs b/packages/cli/clients/cli/commands/validate-integration.test.mjssimilarity index 100%rename from packages/cli/cli/commands/validate-integration.test.mjsrename to packages/cli/clients/cli/commands/validate-integration.test.mjsdiff --git a/packages/cli/cli/e2e-smoke.test.mjs b/packages/cli/clients/cli/e2e-smoke.test.mjssimilarity index 98%rename from packages/cli/cli/e2e-smoke.test.mjsrename to packages/cli/clients/cli/e2e-smoke.test.mjsindex f0adf244aa..47de260c8c 100644--- a/packages/cli/cli/e2e-smoke.test.mjs+++ b/packages/cli/clients/cli/e2e-smoke.test.mjs@@ -30,7 +30,7 @@ import * as path from 'node:path';import {fileURLToPath} from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const CLI_BIN = path.resolve(__dirname, '..', 'bin', 'astryx.mjs');+const CLI_BIN = path.resolve(__dirname, 'bin', 'astryx.mjs');/** Spawn the real binary. Returns the raw exit status + captured streams. */function spawnCli(args) {diff --git a/packages/cli/cli/error-envelope-code.test.mjs b/packages/cli/clients/cli/error-envelope-code.test.mjssimilarity index 100%rename from packages/cli/cli/error-envelope-code.test.mjsrename to packages/cli/clients/cli/error-envelope-code.test.mjsdiff --git a/packages/cli/cli/index.mjs b/packages/cli/clients/cli/index.mjssimilarity index 96%rename from packages/cli/cli/index.mjsrename to packages/cli/clients/cli/index.mjsindex 42bb480426..fafd861a59 100644--- a/packages/cli/cli/index.mjs+++ b/packages/cli/clients/cli/index.mjs@@ -16,20 +16,20 @@ import {Command, Option} from 'commander';import {fileURLToPath} from 'node:url';import * as fs from 'node:fs';import * as path from 'node:path';-import {checkForUpdate} from '../utils/update-check.mjs';-import {getCliInvocation} from '../utils/package-manager.mjs';-import {API_VERSION, setJsonMode} from '../lib/json.mjs';-import {buildManifest} from '../lib/manifest.mjs';-import {cliError} from '../lib/cli-error.mjs';-import {ERROR_CODES} from '../lib/error-codes.mjs';-import {levenshteinDistance} from '../lib/string-utils.mjs';-import {installJsonShim} from '../lib/json-shim.mjs';-import {isAstryxInitialized} from '../lib/agent-docs/agent-docs.mjs';+import {checkForUpdate} from './lib/update-check.mjs';+import {getCliInvocation} from '../../foundation/env/package-manager.mjs';+import {API_VERSION, setJsonMode} from '../../foundation/response/json.mjs';+import {buildManifest} from './lib/manifest.mjs';+import {cliError} from './lib/cli-error.mjs';+import {ERROR_CODES} from '../../foundation/response/error-codes.mjs';+import {levenshteinDistance} from '../../foundation/text/string-utils.mjs';+import {installJsonShim} from './lib/json-shim.mjs';+import {isAstryxInitialized} from '../../foundation/agent-docs/agent-docs.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));// Read version from package.json so it stays in sync-const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, '..', 'package.json'), 'utf-8'));+const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, '..', '..', 'package.json'), 'utf-8'));// Intercept `xds --version --json` (or `-V --json`) before Commander processes// the version flag and exits. Commander's built-in version handler prints thediff --git a/packages/cli/lib/cli-error.mjs b/packages/cli/clients/cli/lib/cli-error.mjssimilarity index 96%rename from packages/cli/lib/cli-error.mjsrename to packages/cli/clients/cli/lib/cli-error.mjsindex 9894e04840..b0a48c34bb 100644--- a/packages/cli/lib/cli-error.mjs+++ b/packages/cli/clients/cli/lib/cli-error.mjs@@ -50,13 +50,13 @@* NEVER add ad-hoc fields. NEVER vary the shape. Consumers depend on it.*/-import {isJsonMode, jsonError as _jsonError, humanWarn} from './json.mjs';-import {ERROR_CODES} from './error-codes.mjs';+import {isJsonMode, jsonError as _jsonError, humanWarn} from '../../../foundation/response/json.mjs';+import {ERROR_CODES} from '../../../foundation/response/error-codes.mjs';/*** Suggestion object — matches the shape used by API errors and the JSON* envelope's `suggestions` field. Canonical definition lives in types/base.- * @typedef {import('../types/base').Suggestion} Suggestion+ * @typedef {import('../../../foundation/response/base').Suggestion} Suggestion*//**diff --git a/packages/cli/lib/cli-error.test.mjs b/packages/cli/clients/cli/lib/cli-error.test.mjssimilarity index 98%rename from packages/cli/lib/cli-error.test.mjsrename to packages/cli/clients/cli/lib/cli-error.test.mjsindex 72a4ff4e16..33fe99e185 100644--- a/packages/cli/lib/cli-error.test.mjs+++ b/packages/cli/clients/cli/lib/cli-error.test.mjs@@ -17,7 +17,7 @@import {describe, it, expect, beforeEach, afterEach, vi} from 'vitest';import {cliError, assertOrExit, cliExit} from './cli-error.mjs';-import {setJsonMode, API_VERSION} from './json.mjs';+import {setJsonMode, API_VERSION} from '../../../foundation/response/json.mjs';describe('cliError — human mode', () => {let stderr;diff --git a/packages/cli/lib/component-format.mjs b/packages/cli/clients/cli/lib/component-format.mjssimilarity index 97%rename from packages/cli/lib/component-format.mjsrename to packages/cli/clients/cli/lib/component-format.mjsindex 8af3b212e1..8585ee5698 100644--- a/packages/cli/lib/component-format.mjs+++ b/packages/cli/clients/cli/lib/component-format.mjs@@ -4,9 +4,9 @@* @file Component doc formatting — render ComponentDoc objects to text*/-import {discoverComponents, findComponentReadme, resolveImportPath} from './component-discovery.mjs';-import {loadDocs} from './component-loader.mjs';-import {getCliInvocation} from '../utils/package-manager.mjs';+import {discoverComponents, findComponentReadme, resolveImportPath} from '../../../foundation/discovery/component-discovery.mjs';+import {loadDocs} from '../../../foundation/discovery/component-loader.mjs';+import {getCliInvocation} from '../../../foundation/env/package-manager.mjs';/*** Derive the `defineTheme` component-override key from a theming target.@@ -19,7 +19,7 @@ import {getCliInvocation} from '../utils/package-manager.mjs';* Keep the `astryx-` literal in sync with packages/core/src/naming.ts* (NAMESPACE / classPrefix), the same way build-theme.mjs mirrors it.* <!-- SYNC: packages/core/src/naming.ts (namespace prefix source of truth) -->- * @param {import('../../core/src/docs-types').ThemingTarget} target+ * @param {import('@astryxdesign/cli/authoring').ComponentThemingTarget} target* @returns {string}*/function targetKey(target) {@@ -31,7 +31,7 @@ function dataAttrForName(name) {return `data-${name.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase()}`;}-/** @param {import('../../core/src/docs-types').ThemingTarget} target @returns {string[]} */+/** @param {import('@astryxdesign/cli/authoring').ComponentThemingTarget} target @returns {string[]} */function getTargetDataAttributes(target) {return [...(target.visualProps || []).map(dataAttrForName),@@ -54,7 +54,7 @@ export function mdCell(value) {return String(value ?? '').replace(/\|/g, '\\|');}-/** @param {import('../../core/src/docs-types').PropDoc[]} [props] @returns {string} */+/** @param {import('@astryxdesign/cli/authoring').ComponentPropDoc[]} [props] @returns {string} */function formatPropsTable(props) {if (!props || props.length === 0) return '';/** @type {string[]} */@@ -102,7 +102,7 @@ function formatSubComponent(comp) {* the visualProps and the variant prop in the component's props list.* Returns an array of variant strings from the `variant` prop type,* or the variants from target visualProps.- * @param {import('../../core/src/docs-types').ThemingTarget} target+ * @param {import('@astryxdesign/cli/authoring').ComponentThemingTarget} target* @param {any} docs* @returns {string[]}*/@@ -128,7 +128,7 @@ function getTargetVariants(target, docs) {/*** Get the state classes for a theming target from the states field.- * @param {import('../../core/src/docs-types').ThemingTarget} target+ * @param {import('@astryxdesign/cli/authoring').ComponentThemingTarget} target* @returns {string[]}*/function getTargetStates(target) {diff --git a/packages/cli/lib/component-format.test.mjs b/packages/cli/clients/cli/lib/component-format.test.mjssimilarity index 100%rename from packages/cli/lib/component-format.test.mjsrename to packages/cli/clients/cli/lib/component-format.test.mjsdiff --git a/packages/cli/lib/hook-format.mjs b/packages/cli/clients/cli/lib/hook-format.mjssimilarity index 97%rename from packages/cli/lib/hook-format.mjsrename to packages/cli/clients/cli/lib/hook-format.mjsindex fdb3b59044..030b8a4e86 100644--- a/packages/cli/lib/hook-format.mjs+++ b/packages/cli/clients/cli/lib/hook-format.mjs@@ -9,8 +9,8 @@* - Brief: signature line with import hint, description, key params*/-import {discoverHooks, findHookDoc} from './hook-discovery.mjs';-import {loadDocs} from './component-loader.mjs';+import {discoverHooks, findHookDoc} from '../../../foundation/discovery/hook-discovery.mjs';+import {loadDocs} from '../../../foundation/discovery/component-loader.mjs';import {mdCell} from './component-format.mjs';/**diff --git a/packages/cli/lib/json-shim.mjs b/packages/cli/clients/cli/lib/json-shim.mjssimilarity index 97%rename from packages/cli/lib/json-shim.mjsrename to packages/cli/clients/cli/lib/json-shim.mjsindex bf87e9c8e7..03f3278fd4 100644--- a/packages/cli/lib/json-shim.mjs+++ b/packages/cli/clients/cli/lib/json-shim.mjs@@ -36,8 +36,8 @@* through verbatim outside of --json mode.*/-import {API_VERSION, isJsonMode, toErrorEnvelope} from './json.mjs';-import {ERROR_CODES} from './error-codes.mjs';+import {API_VERSION, isJsonMode, toErrorEnvelope} from '../../../foundation/response/json.mjs';+import {ERROR_CODES} from '../../../foundation/response/error-codes.mjs';/*** Cheap argv check used before preAction has had a chance to engage@@ -103,7 +103,7 @@ export function buildHelpEnvelope(cmd) {* for both success and error).** @param {string} message- * @param {import('../types/base').Suggestion[]} [suggestions]+ * @param {import('../../../foundation/response/base').Suggestion[]} [suggestions]* @param {string} [code] - Stable machine-readable error code (error-codes.mjs).*/function emitJsonError(message, suggestions, code) {diff --git a/packages/cli/lib/json-shim.test.mjs b/packages/cli/clients/cli/lib/json-shim.test.mjssimilarity index 99%rename from packages/cli/lib/json-shim.test.mjsrename to packages/cli/clients/cli/lib/json-shim.test.mjsindex cd2e2f40e1..e53aaac521 100644--- a/packages/cli/lib/json-shim.test.mjs+++ b/packages/cli/clients/cli/lib/json-shim.test.mjs@@ -20,7 +20,7 @@*/import {describe, it, expect} from 'vitest';-import {runCli} from '../test-utils/run-cli.mjs';+import {runCli} from '../../../test-utils/run-cli.mjs';function parseJson(stdout) {return JSON.parse(stdout);diff --git a/packages/cli/types/manifest.d.ts b/packages/cli/clients/cli/lib/manifest.d.tssimilarity index 100%rename from packages/cli/types/manifest.d.tsrename to packages/cli/clients/cli/lib/manifest.d.tsdiff --git a/packages/cli/lib/manifest.mjs b/packages/cli/clients/cli/lib/manifest.mjssimilarity index 96%rename from packages/cli/lib/manifest.mjsrename to packages/cli/clients/cli/lib/manifest.mjsindex a571a1df63..2b3767bf00 100644--- a/packages/cli/lib/manifest.mjs+++ b/packages/cli/clients/cli/lib/manifest.mjs@@ -34,7 +34,7 @@* @position consumed by the bare `astryx --json` action and the `manifest` command*/-import {API_VERSION} from './json.mjs';+import {API_VERSION} from '../../../foundation/response/json.mjs';/*** Response `type` discriminators each fully-qualified command can emit in@@ -113,7 +113,7 @@ const EXAMPLES = {* option takes a value (boolean vs string), surfaces `choices` and `default`.** @param {import('commander').Option} opt- * @returns {import('../types/manifest').ManifestOption}+ * @returns {import('./manifest').ManifestOption}*/function describeOption(opt) {const o = /** @type {any} */ (opt);@@ -137,7 +137,7 @@ function describeOption(opt) {/*** Map a Commander positional argument to an arg descriptor.* @param {import('commander').Argument} arg- * @returns {import('../types/manifest').ManifestArgument}+ * @returns {import('./manifest').ManifestArgument}*/function describeArgument(arg) {const a = /** @type {any} */ (arg);@@ -173,7 +173,7 @@ function fullName(cmd, root) {* @param {import('commander').Command} cmd* @param {import('commander').Command} root* @param {Set<string>} jsonSupported fully-qualified names that support --json- * @returns {import('../types/manifest').ManifestCommand | null} null for hidden/internal commands+ * @returns {import('./manifest').ManifestCommand | null} null for hidden/internal commands*/function describeCommand(cmd, root, jsonSupported) {const name = fullName(cmd, root);@@ -228,7 +228,7 @@ function describeCommand(cmd, root, jsonSupported) {* command entry doesn't repeat them.** @param {import('commander').Command} program- * @returns {import('../types/manifest').ManifestOption[]}+ * @returns {import('./manifest').ManifestOption[]}*/function describeGlobalOptions(program) {const opts = (program.options || []).map(describeOption);@@ -251,7 +251,7 @@ function describeGlobalOptions(program) {* @param {object} [opts]* @param {Set<string>} [opts.jsonSupported] the JSON_SUPPORTED allowlist* @param {string} [opts.version] CLI version (defaults to program.version())- * @returns {import('../types/manifest').CLIManifest} the manifest `data` payload (sans envelope)+ * @returns {import('./manifest').CLIManifest} the manifest `data` payload (sans envelope)*/export function buildManifest(program, opts = {}) {const jsonSupported = opts.jsonSupported || new Set();diff --git a/packages/cli/lib/manifest.test.mjs b/packages/cli/clients/cli/lib/manifest.test.mjssimilarity index 98%rename from packages/cli/lib/manifest.test.mjsrename to packages/cli/clients/cli/lib/manifest.test.mjsindex 74c79a2aad..51edaa4ed0 100644--- a/packages/cli/lib/manifest.test.mjs+++ b/packages/cli/clients/cli/lib/manifest.test.mjs@@ -15,9 +15,9 @@*/import {describe, it, expect} from 'vitest';-import {program, JSON_SUPPORTED} from '../cli/index.mjs';+import {program, JSON_SUPPORTED} from '../index.mjs';import {buildManifest, RESPONSE_TYPES} from './manifest.mjs';-import {runCli} from '../test-utils/run-cli.mjs';+import {runCli} from '../../../test-utils/run-cli.mjs';const manifest = buildManifest(program, {jsonSupported: JSON_SUPPORTED, version: '0.0.0-test'});diff --git a/packages/cli/lib/resolve-theme.mjs b/packages/cli/clients/cli/lib/resolve-theme.mjssimilarity index 100%rename from packages/cli/lib/resolve-theme.mjsrename to packages/cli/clients/cli/lib/resolve-theme.mjsdiff --git a/packages/cli/lib/resolve-theme.test.mjs b/packages/cli/clients/cli/lib/resolve-theme.test.mjssimilarity index 100%rename from packages/cli/lib/resolve-theme.test.mjsrename to packages/cli/clients/cli/lib/resolve-theme.test.mjsdiff --git a/packages/cli/utils/update-check.mjs b/packages/cli/clients/cli/lib/update-check.mjssimilarity index 94%rename from packages/cli/utils/update-check.mjsrename to packages/cli/clients/cli/lib/update-check.mjsindex c855e09380..b703852586 100644--- a/packages/cli/utils/update-check.mjs+++ b/packages/cli/clients/cli/lib/update-check.mjs@@ -13,8 +13,8 @@import * as fs from 'node:fs';import * as path from 'node:path';-import {semverGt} from './semver.mjs';-import {getCliInvocation} from './package-manager.mjs';+import {semverGt} from '../../../foundation/env/semver.mjs';+import {getCliInvocation} from '../../../foundation/env/package-manager.mjs';/*** Read the latest available version from local signals.diff --git a/packages/cli/utils/update-check.test.mjs b/packages/cli/clients/cli/lib/update-check.test.mjssimilarity index 100%rename from packages/cli/utils/update-check.test.mjsrename to packages/cli/clients/cli/lib/update-check.test.mjsdiff --git a/packages/cli/cli/update-hint-commands.test.mjs b/packages/cli/clients/cli/update-hint-commands.test.mjssimilarity index 100%rename from packages/cli/cli/update-hint-commands.test.mjsrename to packages/cli/clients/cli/update-hint-commands.test.mjsdiff --git a/packages/cli/lib/agent-docs/agent-docs.mjs b/packages/cli/foundation/agent-docs/agent-docs.mjssimilarity index 98%rename from packages/cli/lib/agent-docs/agent-docs.mjsrename to packages/cli/foundation/agent-docs/agent-docs.mjsindex 2dc61f1be3..e6f1d9b131 100644--- a/packages/cli/lib/agent-docs/agent-docs.mjs+++ b/packages/cli/foundation/agent-docs/agent-docs.mjs@@ -20,11 +20,11 @@import * as fs from 'node:fs';import * as path from 'node:path';-import {findCoreDir, CLI_ROOT} from '../../utils/paths.mjs';-import {assertWithin} from '../../utils/path-safety.mjs';-import {getCliInvocation} from '../../utils/package-manager.mjs';-import {discoverComponents} from '../../lib/component-discovery.mjs';-import {humanLog} from '../../lib/json.mjs';+import {findCoreDir, CLI_ROOT} from '../fs/paths.mjs';+import {assertWithin} from '../fs/path-safety.mjs';+import {getCliInvocation} from '../env/package-manager.mjs';+import {discoverComponents} from '../discovery/component-discovery.mjs';+import {humanLog} from '../response/json.mjs';const AGENTS_MD = 'AGENTS.md';const CLAUDE_MD = 'CLAUDE.md';@@ -377,7 +377,7 @@ export function generateCompressedIndex(version, {coreDir, invocation = getCliInlines.push(' search "<query>" find any component / hook / doc / template / block');lines.push(` component --list ${componentCount} components by category`);lines.push(' template --list page + block recipes');- const docsDir = path.join(CLI_ROOT, 'docs');+ const docsDir = path.join(CLI_ROOT, 'assets', 'docs');if (fs.existsSync(docsDir)) {const topics = fs.readdirSync(docsDir).map(f => f.match(/^(\w+)\.doc\.mjs$/))diff --git a/packages/cli/lib/agent-docs/agent-docs.path-safety.test.mjs b/packages/cli/foundation/agent-docs/agent-docs.path-safety.test.mjssimilarity index 97%rename from packages/cli/lib/agent-docs/agent-docs.path-safety.test.mjsrename to packages/cli/foundation/agent-docs/agent-docs.path-safety.test.mjsindex 57270defd9..a4800c750f 100644--- a/packages/cli/lib/agent-docs/agent-docs.path-safety.test.mjs+++ b/packages/cli/foundation/agent-docs/agent-docs.path-safety.test.mjs@@ -16,7 +16,7 @@ import * as fs from 'node:fs';import * as path from 'node:path';import * as os from 'node:os';import {installAgentDocs} from './agent-docs.mjs';-import {PathSafetyError} from '../../utils/path-safety.mjs';+import {PathSafetyError} from '../fs/path-safety.mjs';let tmpDir;beforeEach(() => {diff --git a/packages/cli/lib/agent-docs/agent-docs.test.mjs b/packages/cli/foundation/agent-docs/agent-docs.test.mjssimilarity index 100%rename from packages/cli/lib/agent-docs/agent-docs.test.mjsrename to packages/cli/foundation/agent-docs/agent-docs.test.mjsdiff --git a/packages/cli/lib/config-cache.mjs b/packages/cli/foundation/config/config-cache.mjssimilarity index 100%rename from packages/cli/lib/config-cache.mjsrename to packages/cli/foundation/config/config-cache.mjsdiff --git a/packages/cli/lib/config-cache.test.mjs b/packages/cli/foundation/config/config-cache.test.mjssimilarity index 100%rename from packages/cli/lib/config-cache.test.mjsrename to packages/cli/foundation/config/config-cache.test.mjsdiff --git a/packages/cli/lib/project.mjs b/packages/cli/foundation/config/project.mjssimilarity index 90%rename from packages/cli/lib/project.mjsrename to packages/cli/foundation/config/project.mjsindex 5202127241..6103f1ba91 100644--- a/packages/cli/lib/project.mjs+++ b/packages/cli/foundation/config/project.mjs@@ -32,25 +32,25 @@import * as fs from 'node:fs';import * as path from 'node:path';-import {findPresentFiles, loadModuleWithSchema} from './module-loader.mjs';-import {AstryxConfigSchema} from './config-schema.mjs';-import {loadIntegrations} from './integrations.mjs';+import {findPresentFiles, loadModuleWithParser} from '../fs/module-loader.mjs';+import {parseConfig} from '../../authoring/config/parse.mjs';+import {loadIntegrations} from '../integrations/integrations.mjs';import {CORE_PACKAGE,discoverOwnedComponents,discoverIntegrationComponents,-} from './component-discovery.mjs';-import {findCoreDir} from '../utils/paths.mjs';+} from '../discovery/component-discovery.mjs';+import {findCoreDir} from '../fs/paths.mjs';import {discoverTemplates,discoverIntegrationTemplatesForOne,-} from '../api/template/template.mjs';-import {getTransformsBetween} from '../codemods/registry.mjs';+} from '../../api/template/template.mjs';+import {getTransformsBetween} from '../../assets/codemods/registry.mjs';import {discoverIntegrationCodemods,selectIntegrationCodemods,-} from '../codemods/integration-discovery.mjs';-import {validateLoadedIntegration} from '../api/integration/validate-integration.mjs';+} from '../../assets/codemods/integration-discovery.mjs';+import {validateLoadedIntegration} from '../../api/integration/validate-integration.mjs';import {InMemoryConfigCache,cacheKey,@@ -75,9 +75,9 @@ function errorMessage(err) {/*** An integration issue tagged with the owner package. The base- * {@link import('../types/integration').AstryxIntegrationIssue} fields plus the+ * {@link import('../integrations/issue').AstryxIntegrationIssue} fields plus the* `package` that produced it, which Project tracks for routing/dedup.- * @typedef {import('../types/integration').AstryxIntegrationIssue & {package: string}} ProjectIntegrationIssue+ * @typedef {import('../integrations/issue').AstryxIntegrationIssue & {package: string}} ProjectIntegrationIssue*//** Conventional config basenames, in load-precedence order. */@@ -136,11 +136,11 @@ export class Project {#cwd;/** @type {string|null} */#configPath;- /** @type {import('../types/config').AstryxConfig} */+ /** @type {import('../../authoring/config/type').AstryxConfig} */#config;/** @type {string[]} */#integrations;- /** @type {import('./integrations.mjs').LoadedIntegration[]} */+ /** @type {import('../integrations/integrations.mjs').LoadedIntegration[]} */#loadedIntegrations;/** @type {import('./config-cache.mjs').ConfigCache} */#cache;@@ -160,9 +160,9 @@ export class Project {* @param {object} init* @param {string} init.cwd* @param {string|null} init.configPath- * @param {import('../types/config').AstryxConfig} init.config validated AstryxConfig surface+ * @param {import('../../authoring/config/type').AstryxConfig} init.config validated AstryxConfig surface* @param {string[]} init.integrations- * @param {import('./integrations.mjs').LoadedIntegration[]} init.loadedIntegrations+ * @param {import('../integrations/integrations.mjs').LoadedIntegration[]} init.loadedIntegrations* @param {import('./config-cache.mjs').ConfigCache} init.cache* @param {string} init.hash config content hash*/@@ -198,15 +198,15 @@ export class Project {const configPath = findConfigPath(cwd);const hash = configContentHash(configPath);- /** @type {import('../types/config').AstryxConfig} */+ /** @type {import('../../authoring/config/type').AstryxConfig} */let config = {integrations: []};/** @type {string[]} */let integrations = [];- /** @type {import('./integrations.mjs').LoadedIntegration[]} */+ /** @type {import('../integrations/integrations.mjs').LoadedIntegration[]} */let loadedIntegrations = [];if (configPath) {- config = await loadModuleWithSchema(configPath, AstryxConfigSchema, {+ config = await loadModuleWithParser(configPath, parseConfig, {label: 'astryx.config',});const configDir = path.dirname(configPath);@@ -230,7 +230,7 @@ export class Project {/*** The validated config surface (same data loadConfig returned, minus the* resolved `loadedIntegrations` which is exposed separately).- * @returns {import('../types/config').AstryxConfig}+ * @returns {import('../../authoring/config/type').AstryxConfig}*/get config() {return this.#config;@@ -241,7 +241,7 @@ export class Project {return this.#integrations;}- /** Resolved loaded integrations (lib/integrations.mjs shape). @returns {import('./integrations.mjs').LoadedIntegration[]} */+ /** Resolved loaded integrations (lib/integrations.mjs shape). @returns {import('../integrations/integrations.mjs').LoadedIntegration[]} */get loadedIntegrations() {return this.#loadedIntegrations;}@@ -281,7 +281,7 @@ export class Project {/*** Record a single integration issue, deduped by (package, code, message).* @param {string} pkg- * @param {import('../types/integration').AstryxIntegrationIssue} issue+ * @param {import('../integrations/issue').AstryxIntegrationIssue} issue*/#pushIssue(pkg, issue) {const code = issue?.code ?? 'unknown';@@ -299,7 +299,7 @@ export class Project {}/** Package label for a loaded integration.- * @param {import('./integrations.mjs').LoadedIntegration} integration+ * @param {import('../integrations/integrations.mjs').LoadedIntegration} integration* @returns {string}*/#pkgLabel(integration) {@@ -310,7 +310,7 @@ export class Project {* Validate one loaded integration and collect any issues. Marks the* integration visited so issues() won't redo the work. Best-effort: a* validator throwing is itself recorded as an issue, never propagated.- * @param {import('./integrations.mjs').LoadedIntegration} integration+ * @param {import('../integrations/integrations.mjs').LoadedIntegration} integration*/async #collectIssues(integration) {const pkg = this.#pkgLabel(integration);@@ -471,7 +471,7 @@ export class Project {// Discover integration codemods per integration so a single broken// integration is skipped (issue collected) without losing the others.- /** @type {import('./integrations.mjs').LoadedIntegration[]} */+ /** @type {import('../integrations/integrations.mjs').LoadedIntegration[]} */const good = [];for (const integration of this.#loadedIntegrations) {await this.#collectIssues(integration);@@ -531,7 +531,7 @@ export class Project {* When called directly, also validates any configured integration not yet* visited by a discovery call, so the returned set is complete on demand.*- * @returns {Promise<import('../types/integration').AstryxIntegrationIssue[]>}+ * @returns {Promise<import('../integrations/issue').AstryxIntegrationIssue[]>}*/async issues() {for (const integration of this.#loadedIntegrations) {diff --git a/packages/cli/lib/project.test.mjs b/packages/cli/foundation/config/project.test.mjssimilarity index 95%rename from packages/cli/lib/project.test.mjsrename to packages/cli/foundation/config/project.test.mjsindex a23f3b3de3..4d27408f0d 100644--- a/packages/cli/lib/project.test.mjs+++ b/packages/cli/foundation/config/project.test.mjs@@ -3,20 +3,13 @@import {afterEach, beforeEach, describe, expect, it, vi} from 'vitest';import * as fs from 'node:fs';import * as path from 'node:path';-import {pathToFileURL} from 'node:url';import {Project, DEFAULT_ISSUES_URL, findConfigPath} from './project.mjs';import {InMemoryConfigCache} from './config-cache.mjs';-import * as componentDiscovery from './component-discovery.mjs';+import * as componentDiscovery from '../discovery/component-discovery.mjs';let tmpDir;let originalCwd;-const codemodModulePath = path.resolve(- process.cwd(),- 'packages/cli/authoring/codemod.mjs',-);-const codemodModuleUrl = pathToFileURL(codemodModulePath).href;-/*** Scaffold a consumer project (package.json + astryx.config.mjs) under a* repo-local temp dir, plus an installed integration package under@@ -101,8 +94,7 @@ function scaffold({} else {fs.writeFileSync(path.join(cmDir, 'drop-foo.mjs'),- `import {createCodemod} from ${JSON.stringify(codemodModuleUrl)};\n` +- `export default createCodemod({ title: 'Drop foo', transform: (file) => file.source });\n`,+ `export default { type: 'code', title: 'Drop foo', transform: (file) => file.source };\n`,);}}diff --git a/packages/cli/lib/component-discovery.importpath.test.mjs b/packages/cli/foundation/discovery/component-discovery.importpath.test.mjssimilarity index 97%rename from packages/cli/lib/component-discovery.importpath.test.mjsrename to packages/cli/foundation/discovery/component-discovery.importpath.test.mjsindex e78b3ce7e3..845d45bb4a 100644--- a/packages/cli/lib/component-discovery.importpath.test.mjs+++ b/packages/cli/foundation/discovery/component-discovery.importpath.test.mjs@@ -13,7 +13,7 @@ import {findComponentSource,resolveImportPath,} from './component-discovery.mjs';-import {findCoreDir} from '../utils/paths.mjs';+import {findCoreDir} from '../fs/paths.mjs';describe('findComponentSource resolves .ts-authored sources', () => {const coreDir = findCoreDir();diff --git a/packages/cli/lib/component-discovery.mjs b/packages/cli/foundation/discovery/component-discovery.mjssimilarity index 100%rename from packages/cli/lib/component-discovery.mjsrename to packages/cli/foundation/discovery/component-discovery.mjsdiff --git a/packages/cli/lib/component-discovery.test.mjs b/packages/cli/foundation/discovery/component-discovery.test.mjssimilarity index 99%rename from packages/cli/lib/component-discovery.test.mjsrename to packages/cli/foundation/discovery/component-discovery.test.mjsindex 5915641c1c..a87a58d4bb 100644--- a/packages/cli/lib/component-discovery.test.mjs+++ b/packages/cli/foundation/discovery/component-discovery.test.mjs@@ -28,8 +28,8 @@ import {discoverOwnedComponents,} from './component-discovery.mjs';-// packages/cli/lib/ -> up 3 = repo root (has packages/core).-const REPO = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../../..');+// packages/cli/foundation/discovery/ -> up 4 = repo root (has packages/core).+const REPO = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../../../..');const CORE = path.join(REPO, 'packages', 'core');const SLOW = 30_000;diff --git a/packages/cli/lib/component-loader.mjs b/packages/cli/foundation/discovery/component-loader.mjssimilarity index 90%rename from packages/cli/lib/component-loader.mjsrename to packages/cli/foundation/discovery/component-loader.mjsindex 0e8b33f3b2..82fd0d56ff 100644--- a/packages/cli/lib/component-loader.mjs+++ b/packages/cli/foundation/discovery/component-loader.mjs@@ -5,22 +5,20 @@*/import {pathToFileURL} from 'node:url';-import {importUserModule} from './module-loader.mjs';-import {formatZodError} from './config-schema.mjs';-import {ComponentDocSchema} from '../schemas/doc-schema.mjs';+import {importUserModule} from '../fs/module-loader.mjs';+import {parseDoc} from '../../authoring/doctypes/parse.mjs';/*** Load a component doc through the shared load/validation boundary.** This is the typed counterpart to {@link loadDocs}: it loads `.doc.ts` via- * jiti (and `.doc.mjs`/`.doc.js` via native import) and validates against- * {@link ComponentDocSchema}. That schema accepts BOTH formats, so this loader- * reads whichever the file uses:- * - NEW: the factory default export- * (`export default createComponentDoc({...})` / `createFunctionDoc` /- * `createDoc`) — the same single-export convention- * {@link loadModuleWithSchema} uses for config/integration/template. These- * carry a stamped `type` and validate against the matching per-kind schema.+ * jiti (and `.doc.mjs`/`.doc.js` via native import) and validates via+ * `parseDoc`, which accepts BOTH formats, so this loader reads whichever the+ * file uses:+ * - NEW: a stamped default export (`export default {type: 'component', ...}`+ * / `'function'` / `'generic'`) — the same single-export convention the+ * other authoring parsers use for config/integration/template. These carry+ * a stamped `type` and validate against the matching per-kind parser.* - OLD: the legacy loose `export const docs = {...}` (no `type`), validated* against the permissive legacy union.* The default export wins when both are present. Throws a readable@@ -40,10 +38,7 @@ export async function loadComponentDoc(/** @type {any} */const authored = mod?.default ?? mod?.docs;- const result = ComponentDocSchema.safeParse(authored);- if (!result.success) {- throw new Error(formatZodError(docPath, result.error));- }+ parseDoc(authored, docPath);const docs = authored;const locale = lang || (dense ? 'dense' : zh ? 'zh' : null);@@ -166,7 +161,7 @@ export async function loadDocs(readmePath, {zh = false, dense = false, lang} = {return overlayComponentDoc(docs, translation);}- // Otherwise it's a TranslationDoc — merge it onto docs+ // Otherwise it's a ComponentTranslationDoc — merge it onto docsreturn mergeTranslation(docs, translation);}diff --git a/packages/cli/lib/component-loader.test.mjs b/packages/cli/foundation/discovery/component-loader.test.mjssimilarity index 100%rename from packages/cli/lib/component-loader.test.mjsrename to packages/cli/foundation/discovery/component-loader.test.mjsdiff --git a/packages/cli/lib/componentDocOverlay.test.mjs b/packages/cli/foundation/discovery/componentDocOverlay.test.mjssimilarity index 99%rename from packages/cli/lib/componentDocOverlay.test.mjsrename to packages/cli/foundation/discovery/componentDocOverlay.test.mjsindex 7d438458df..d5e13895fd 100644--- a/packages/cli/lib/componentDocOverlay.test.mjs+++ b/packages/cli/foundation/discovery/componentDocOverlay.test.mjs@@ -29,6 +29,7 @@ const CORE_SRC = path.join(import.meta.dirname,'..','..',+ '..','core','src',);diff --git a/packages/cli/lib/hook-discovery.mjs b/packages/cli/foundation/discovery/hook-discovery.mjssimilarity index 99%rename from packages/cli/lib/hook-discovery.mjsrename to packages/cli/foundation/discovery/hook-discovery.mjsindex 20c19bb5f5..f5ef1b3626 100644--- a/packages/cli/lib/hook-discovery.mjs+++ b/packages/cli/foundation/discovery/hook-discovery.mjs@@ -6,7 +6,7 @@import * as fs from 'node:fs';import * as path from 'node:path';-import {levenshteinDistance} from './string-utils.mjs';+import {levenshteinDistance} from '../text/string-utils.mjs';const SKIP_DIRS = new Set(['utils', '__tests__', 'node_modules']);diff --git a/packages/cli/lib/hook-discovery.test.mjs b/packages/cli/foundation/discovery/hook-discovery.test.mjssimilarity index 99%rename from packages/cli/lib/hook-discovery.test.mjsrename to packages/cli/foundation/discovery/hook-discovery.test.mjsindex 8430ff4258..048ad62c7f 100644--- a/packages/cli/lib/hook-discovery.test.mjs+++ b/packages/cli/foundation/discovery/hook-discovery.test.mjs@@ -14,7 +14,7 @@ import * as path from 'node:path';import {fileURLToPath} from 'node:url';import {discoverHooks, findHookDoc, getAllHookNames} from './hook-discovery.mjs';-const REPO = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../../..');+const REPO = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../../../..');const CORE = path.join(REPO, 'packages', 'core');const SLOW = 30_000;diff --git a/packages/cli/lib/node-version.mjs b/packages/cli/foundation/env/node-version.mjssimilarity index 100%rename from packages/cli/lib/node-version.mjsrename to packages/cli/foundation/env/node-version.mjsdiff --git a/packages/cli/lib/node-version.test.mjs b/packages/cli/foundation/env/node-version.test.mjssimilarity index 100%rename from packages/cli/lib/node-version.test.mjsrename to packages/cli/foundation/env/node-version.test.mjsdiff --git a/packages/cli/utils/package-manager.mjs b/packages/cli/foundation/env/package-manager.mjssimilarity index 100%rename from packages/cli/utils/package-manager.mjsrename to packages/cli/foundation/env/package-manager.mjsdiff --git a/packages/cli/utils/package-manager.test.mjs b/packages/cli/foundation/env/package-manager.test.mjssimilarity index 100%rename from packages/cli/utils/package-manager.test.mjsrename to packages/cli/foundation/env/package-manager.test.mjsdiff --git a/packages/cli/utils/semver.mjs b/packages/cli/foundation/env/semver.mjssimilarity index 100%rename from packages/cli/utils/semver.mjsrename to packages/cli/foundation/env/semver.mjsdiff --git a/packages/cli/utils/semver.test.mjs b/packages/cli/foundation/env/semver.test.mjssimilarity index 100%rename from packages/cli/utils/semver.test.mjsrename to packages/cli/foundation/env/semver.test.mjsdiff --git a/packages/cli/lib/module-loader.mjs b/packages/cli/foundation/fs/module-loader.mjssimilarity index 69%rename from packages/cli/lib/module-loader.mjsrename to packages/cli/foundation/fs/module-loader.mjsindex 3bb3f7f1f2..247f3fecba 100644--- a/packages/cli/lib/module-loader.mjs+++ b/packages/cli/foundation/fs/module-loader.mjs@@ -9,17 +9,16 @@* load-precedence order. These helpers centralize that so the two callers stay* in lockstep.*- * `loadModuleWithSchema` builds on these primitives to provide the single+ * `loadModuleWithParser` builds on these primitives to provide the single* load/validation boundary shared by config, integration, codemod, and- * template discovery: import the module, take its default export, and validate- * it against the expected zod schema.+ * template discovery: import the module, take its default export, and hand it+ * to the authoring parser (which seals its own zod schema).*/import * as path from 'node:path';import {pathToFileURL} from 'node:url';import * as fs from 'node:fs';import {createJiti} from 'jiti';-import {formatZodError} from './config-schema.mjs';/** @type {ReturnType<typeof createJiti> | undefined} */let jitiInstance;@@ -58,24 +57,20 @@ export function findPresentFiles(dir, basenames) {/*** Import a user-authored module, take its default export, and validate it- * against a zod schema. This is the single load/validation boundary for all- * user-authored modules (config, integration, codemod, template): execute the- * module, take the default export, validate it against the expected schema.- * Throws a clear, readable error if the default export is missing or fails- * validation.+ * through an authoring parser. This is the single load/validation boundary for+ * all user-authored modules (config, integration, codemod, template): execute+ * the module, take the default export, and hand it to the parser, which returns+ * the typed value or throws a clear, readable error. Zod stays sealed inside+ * the parser — this boundary never touches it.*- * @template {import('zod').ZodType} S+ * @template T* @param {string} file absolute path- * @param {S} schema+ * @param {(input: unknown, label?: string) => T} parse an authoring parser+ * (parseConfig, parseIntegration, parseCodemod, parseTemplate)* @param {{label?: string}} [opts] label used in error messages- * @returns {Promise<import('zod').infer<S>>} parsed + typed value+ * @returns {Promise<T>} parsed + typed value*/-export async function loadModuleWithSchema(file, schema, {label} = {}) {+export async function loadModuleWithParser(file, parse, {label} = {}) {const mod = await importUserModule(file);- const exported = mod?.default;- const result = schema.safeParse(exported);- if (!result.success) {- throw new Error(formatZodError(label ?? file, result.error));- }- return result.data;+ return parse(mod?.default, label ?? file);}diff --git a/packages/cli/lib/module-loader.test.mjs b/packages/cli/foundation/fs/module-loader.test.mjssimilarity index 75%rename from packages/cli/lib/module-loader.test.mjsrename to packages/cli/foundation/fs/module-loader.test.mjsindex 0c73007f5a..2c7a3ff8e5 100644--- a/packages/cli/lib/module-loader.test.mjs+++ b/packages/cli/foundation/fs/module-loader.test.mjs@@ -7,7 +7,7 @@ import {z} from 'zod';import {findPresentFiles,importUserModule,- loadModuleWithSchema,+ loadModuleWithParser,} from './module-loader.mjs';let tmpDir;@@ -63,7 +63,7 @@ describe('importUserModule', () => {});});-describe('loadModuleWithSchema', () => {+describe('loadModuleWithParser', () => {// Temp module files live under a repo-local dir (not /tmp): Vite's dynamic// import blocks /tmp, so we mirror the existing repo-local temp pattern.const schema = z@@ -73,10 +73,28 @@ describe('loadModuleWithSchema', () => {}).strict();- it('returns the parsed default export when it satisfies the schema', async () => {+ /**+ * A stand-in authoring parser: validates via a sealed schema and, on failure,+ * throws the same `<label> is invalid: …` line the real parsers throw. Zod+ * stays inside the parser — `loadModuleWithParser` never sees it.+ * @param {unknown} input+ * @param {string} [label]+ */+ function parse(input, label = 'value') {+ const result = schema.safeParse(input);+ if (!result.success) {+ const issues = result.error.issues+ .map(i => `${i.path.length ? i.path.join('.') : '(root)'}: ${i.message}`)+ .join('; ');+ throw new Error(`${label} is invalid: ${issues}`);+ }+ return result.data;+ }++ it('returns the parsed default export when it satisfies the parser', async () => {const file = path.join(tmpDir, 'valid.mjs');fs.writeFileSync(file, `export default {name: 'ok', count: 3};\n`);- const value = await loadModuleWithSchema(file, schema, {label: 'thing'});+ const value = await loadModuleWithParser(file, parse, {label: 'thing'});expect(value).toEqual({name: 'ok', count: 3});});@@ -84,22 +102,22 @@ describe('loadModuleWithSchema', () => {const file = path.join(tmpDir, 'no-default.mjs');fs.writeFileSync(file, `export const named = {name: 'x'};\n`);await expect(- loadModuleWithSchema(file, schema, {label: 'thing'}),+ loadModuleWithParser(file, parse, {label: 'thing'}),).rejects.toThrow(/thing is invalid/i);});- it('throws a readable error when the default export fails the schema', async () => {+ it('throws a readable error when the default export fails the parser', async () => {const file = path.join(tmpDir, 'invalid.mjs');fs.writeFileSync(file, `export default {count: 'not-a-number'};\n`);await expect(- loadModuleWithSchema(file, schema, {label: 'thing'}),+ loadModuleWithParser(file, parse, {label: 'thing'}),).rejects.toThrow(/thing is invalid:.*name/i);});it('falls back to the file path in the message when no label is given', async () => {const file = path.join(tmpDir, 'unlabeled.mjs');fs.writeFileSync(file, `export default {bogus: true};\n`);- await expect(loadModuleWithSchema(file, schema)).rejects.toThrow(+ await expect(loadModuleWithParser(file, parse)).rejects.toThrow(new RegExp(`${path.basename(file)} is invalid`),);});diff --git a/packages/cli/utils/path-safety.mjs b/packages/cli/foundation/fs/path-safety.mjssimilarity index 100%rename from packages/cli/utils/path-safety.mjsrename to packages/cli/foundation/fs/path-safety.mjsdiff --git a/packages/cli/utils/path-safety.test.mjs b/packages/cli/foundation/fs/path-safety.test.mjssimilarity index 100%rename from packages/cli/utils/path-safety.test.mjsrename to packages/cli/foundation/fs/path-safety.test.mjsdiff --git a/packages/cli/utils/paths.mjs b/packages/cli/foundation/fs/paths.mjssimilarity index 98%rename from packages/cli/utils/paths.mjsrename to packages/cli/foundation/fs/paths.mjsindex a7e4b571e5..fa1a510bec 100644--- a/packages/cli/utils/paths.mjs+++ b/packages/cli/foundation/fs/paths.mjs@@ -13,7 +13,7 @@ import {fileURLToPath} from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));/** Root of the @astryxdesign/cli package */-export const CLI_ROOT = path.resolve(__dirname, '..');+export const CLI_ROOT = path.resolve(__dirname, '..', '..');/*** Find packages/core directory by walking up from startDir.diff --git a/packages/cli/utils/paths.test.mjs b/packages/cli/foundation/fs/paths.test.mjssimilarity index 100%rename from packages/cli/utils/paths.test.mjsrename to packages/cli/foundation/fs/paths.test.mjsdiff --git a/packages/cli/lib/integration-warnings.mjs b/packages/cli/foundation/integrations/integration-warnings.mjssimilarity index 96%rename from packages/cli/lib/integration-warnings.mjsrename to packages/cli/foundation/integrations/integration-warnings.mjsindex c12f622078..3ac201151a 100644--- a/packages/cli/lib/integration-warnings.mjs+++ b/packages/cli/foundation/integrations/integration-warnings.mjs@@ -19,7 +19,7 @@* ADDS a one-line nudge.*/-import {validateLoadedIntegration} from '../api/integration/validate-integration.mjs';+import {validateLoadedIntegration} from '../../api/integration/validate-integration.mjs';/*** For each configured (already-loaded) integration, compute its issues usingdiff --git a/packages/cli/lib/integration-warnings.test.mjs b/packages/cli/foundation/integrations/integration-warnings.test.mjssimilarity index 100%rename from packages/cli/lib/integration-warnings.test.mjsrename to packages/cli/foundation/integrations/integration-warnings.test.mjsdiff --git a/packages/cli/lib/integrations.mjs b/packages/cli/foundation/integrations/integrations.mjssimilarity index 94%rename from packages/cli/lib/integrations.mjsrename to packages/cli/foundation/integrations/integrations.mjsindex e92d9d0557..e0b3bba9e8 100644--- a/packages/cli/lib/integrations.mjs+++ b/packages/cli/foundation/integrations/integrations.mjs@@ -12,8 +12,8 @@import * as fs from 'node:fs';import * as path from 'node:path';-import {AstryxIntegrationSchema} from './config-schema.mjs';-import {loadModuleWithSchema, findPresentFiles} from './module-loader.mjs';+import {parseIntegration} from '../../authoring/integration/parse.mjs';+import {loadModuleWithParser, findPresentFiles} from '../fs/module-loader.mjs';/*** A fully-resolved, loaded integration. Identity (`name`, `version`) comes from@@ -59,10 +59,10 @@ export function findManifestPaths(dir) {* for validate-integration.* @param {string} file absolute manifest path* @param {string} [label] used in error messages- * @returns {Promise<import('../types/integration').AstryxIntegration>}+ * @returns {Promise<import('../../authoring/integration/type').AstryxIntegration>}*/export async function loadManifestObject(file, label = 'integration manifest') {- return loadModuleWithSchema(file, AstryxIntegrationSchema, {label});+ return loadModuleWithParser(file, parseIntegration, {label});}/**@@ -148,9 +148,9 @@ export async function loadIntegrations(specs = [], {cwd = process.cwd()} = {}) {const manifestFile = resolveManifestPath(packageDir, spec);let manifest;try {- manifest = await loadModuleWithSchema(+ manifest = await loadModuleWithParser(manifestFile,- AstryxIntegrationSchema,+ parseIntegration,{label: `Integration ${spec}`},);} catch (err) {diff --git a/packages/cli/lib/integrations.test.mjs b/packages/cli/foundation/integrations/integrations.test.mjssimilarity index 98%rename from packages/cli/lib/integrations.test.mjsrename to packages/cli/foundation/integrations/integrations.test.mjsindex ef3910252c..7a1722f7d7 100644--- a/packages/cli/lib/integrations.test.mjs+++ b/packages/cli/foundation/integrations/integrations.test.mjs@@ -3,9 +3,9 @@import {afterEach, beforeEach, describe, expect, it} from 'vitest';import * as fs from 'node:fs';import * as path from 'node:path';-import {Project} from './project.mjs';+import {Project} from '../config/project.mjs';import {loadIntegrations, resolvePackageDir} from './integrations.mjs';-import {discover} from '../api/discover/discover.mjs';+import {discover} from '../../api/discover/discover.mjs';let tmpDir;let originalCwd;diff --git a/packages/cli/foundation/integrations/issue.ts b/packages/cli/foundation/integrations/issue.tsnew file mode 100644index 0000000000..533ece5b17--- /dev/null+++ b/packages/cli/foundation/integrations/issue.ts@@ -0,0 +1,18 @@+// Copyright (c) Meta Platforms, Inc. and affiliates.++/**+ * @file The integration validation issue type.+ *+ * Surfaced by both the foundation-level project loader+ * (`foundation/config/project.mjs`, during `Project.load`) and the api-level+ * `validateIntegration`, so it lives in the shared foundation layer. It is NOT+ * part of the authoring surface — an integration author never writes one; it is+ * an internal diagnostic the CLI produces about a loaded integration.+ */++/** An issue surfaced while loading or validating an integration. */+export interface AstryxIntegrationIssue {+ code: string;+ severity: 'warning' | 'error';+ message: string;+}diff --git a/packages/cli/types/base.d.ts b/packages/cli/foundation/response/base.d.tssimilarity index 100%rename from packages/cli/types/base.d.tsrename to packages/cli/foundation/response/base.d.tsdiff --git a/packages/cli/types/error-codes.d.ts b/packages/cli/foundation/response/error-codes.d.tssimilarity index 100%rename from packages/cli/types/error-codes.d.tsrename to packages/cli/foundation/response/error-codes.d.tsdiff --git a/packages/cli/lib/error-codes.mjs b/packages/cli/foundation/response/error-codes.mjssimilarity index 100%rename from packages/cli/lib/error-codes.mjsrename to packages/cli/foundation/response/error-codes.mjsdiff --git a/packages/cli/lib/error-codes.test.mjs b/packages/cli/foundation/response/error-codes.test.mjssimilarity index 99%rename from packages/cli/lib/error-codes.test.mjsrename to packages/cli/foundation/response/error-codes.test.mjsindex 56a6900dbe..2e9b0ba2b4 100644--- a/packages/cli/lib/error-codes.test.mjs+++ b/packages/cli/foundation/response/error-codes.test.mjs@@ -16,7 +16,7 @@import {describe, it, expect} from 'vitest';import {ERROR_CODES, isErrorCode, allErrorCodes} from './error-codes.mjs';-import {runCli} from '../test-utils/run-cli.mjs';+import {runCli} from '../../test-utils/run-cli.mjs';/** Parse the JSON envelope from stdout. Throws if stdout isn't clean JSON. */function envelope(stdout) {diff --git a/packages/cli/lib/json-contract.test.mjs b/packages/cli/foundation/response/json-contract.test.mjssimilarity index 98%rename from packages/cli/lib/json-contract.test.mjsrename to packages/cli/foundation/response/json-contract.test.mjsindex 3d8dd0fa23..263270b103 100644--- a/packages/cli/lib/json-contract.test.mjs+++ b/packages/cli/foundation/response/json-contract.test.mjs@@ -27,7 +27,7 @@ import {} from './json.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));-const CLI = path.resolve(__dirname, '..', 'bin', 'astryx.mjs');+const CLI = path.resolve(__dirname, '..', '..', 'clients', 'cli', 'bin', 'astryx.mjs');function runCli(args) {return spawnSync(process.execPath, [CLI, ...args], {diff --git a/packages/cli/lib/json-serialize.test.mjs b/packages/cli/foundation/response/json-serialize.test.mjssimilarity index 100%rename from packages/cli/lib/json-serialize.test.mjsrename to packages/cli/foundation/response/json-serialize.test.mjsdiff --git a/packages/cli/lib/json.mjs b/packages/cli/foundation/response/json.mjssimilarity index 96%rename from packages/cli/lib/json.mjsrename to packages/cli/foundation/response/json.mjsindex a3cd87bafd..9a371efc84 100644--- a/packages/cli/lib/json.mjs+++ b/packages/cli/foundation/response/json.mjs@@ -120,10 +120,10 @@ export function jsonOut(response) {* consumers can branch on it unconditionally.** @param {unknown} err- * @param {import('../types/base').Suggestion[]} [suggestions]+ * @param {import('./base').Suggestion[]} [suggestions]* @param {string} [code] - Explicit stable error code. Overrides any code* carried on a thrown Error.- * @returns {{apiVersion: number, error: string, code: string, suggestions?: import('../types/base').Suggestion[]}}+ * @returns {{apiVersion: number, error: string, code: string, suggestions?: import('./base').Suggestion[]}}*/export function toErrorEnvelope(err, suggestions, code) {const message =@@ -144,7 +144,7 @@ export function toErrorEnvelope(err, suggestions, code) {/*** Output a structured JSON error and exit.* @param {string} message- * @param {import('../types/base').Suggestion[]} [suggestions]+ * @param {import('./base').Suggestion[]} [suggestions]* @param {string} [code] - Stable machine-readable error code (error-codes.mjs).*/export function jsonError(message, suggestions, code) {diff --git a/packages/cli/lib/levenshtein.mjs b/packages/cli/foundation/text/levenshtein.mjssimilarity index 100%rename from packages/cli/lib/levenshtein.mjsrename to packages/cli/foundation/text/levenshtein.mjsdiff --git a/packages/cli/lib/levenshtein.test.mjs b/packages/cli/foundation/text/levenshtein.test.mjssimilarity index 100%rename from packages/cli/lib/levenshtein.test.mjsrename to packages/cli/foundation/text/levenshtein.test.mjsdiff --git a/packages/cli/lib/string-utils.mjs b/packages/cli/foundation/text/string-utils.mjssimilarity index 100%rename from packages/cli/lib/string-utils.mjsrename to packages/cli/foundation/text/string-utils.mjsdiff --git a/packages/cli/lib/string-utils.test.mjs b/packages/cli/foundation/text/string-utils.test.mjssimilarity index 100%rename from packages/cli/lib/string-utils.test.mjsrename to packages/cli/foundation/text/string-utils.test.mjsdiff --git a/packages/cli/lib/xle/browser.d.ts b/packages/cli/foundation/xle/browser.d.tssimilarity index 100%rename from packages/cli/lib/xle/browser.d.tsrename to packages/cli/foundation/xle/browser.d.tsdiff --git a/packages/cli/lib/xle/browser.mjs b/packages/cli/foundation/xle/browser.mjssimilarity index 100%rename from packages/cli/lib/xle/browser.mjsrename to packages/cli/foundation/xle/browser.mjsdiff --git a/packages/cli/lib/xle/expand.mjs b/packages/cli/foundation/xle/expand.mjssimilarity index 100%rename from packages/cli/lib/xle/expand.mjsrename to packages/cli/foundation/xle/expand.mjsdiff --git a/packages/cli/lib/xle/parse.mjs b/packages/cli/foundation/xle/parse.mjssimilarity index 100%rename from packages/cli/lib/xle/parse.mjsrename to packages/cli/foundation/xle/parse.mjsdiff --git a/packages/cli/lib/xle/print.mjs b/packages/cli/foundation/xle/print.mjssimilarity index 100%rename from packages/cli/lib/xle/print.mjsrename to packages/cli/foundation/xle/print.mjsdiff --git a/packages/cli/lib/xle/print.test.mjs b/packages/cli/foundation/xle/print.test.mjssimilarity index 100%rename from packages/cli/lib/xle/print.test.mjsrename to packages/cli/foundation/xle/print.test.mjsdiff --git a/packages/cli/lib/xle/registry-core.mjs b/packages/cli/foundation/xle/registry-core.mjssimilarity index 100%rename from packages/cli/lib/xle/registry-core.mjsrename to packages/cli/foundation/xle/registry-core.mjsdiff --git a/packages/cli/lib/xle/registry.mjs b/packages/cli/foundation/xle/registry.mjssimilarity index 98%rename from packages/cli/lib/xle/registry.mjsrename to packages/cli/foundation/xle/registry.mjsindex 1c4df309ef..46a5c70d0b 100644--- a/packages/cli/lib/xle/registry.mjs+++ b/packages/cli/foundation/xle/registry.mjs@@ -17,13 +17,13 @@import fs from 'node:fs';import path from 'node:path';-import {findCoreDir} from '../../utils/paths.mjs';+import {findCoreDir} from '../fs/paths.mjs';import {discoverComponents,findComponentReadme,resolveImportPath,-} from '../component-discovery.mjs';-import {loadDocs} from '../component-loader.mjs';+} from '../discovery/component-discovery.mjs';+import {loadDocs} from '../discovery/component-loader.mjs';import {ALIAS_TABLE,normalizeName,diff --git a/packages/cli/lib/xle/splice.mjs b/packages/cli/foundation/xle/splice.mjssimilarity index 100%rename from packages/cli/lib/xle/splice.mjsrename to packages/cli/foundation/xle/splice.mjsdiff --git a/packages/cli/lib/xle/validate.mjs b/packages/cli/foundation/xle/validate.mjssimilarity index 99%rename from packages/cli/lib/xle/validate.mjsrename to packages/cli/foundation/xle/validate.mjsindex ca97360570..281d9067d8 100644--- a/packages/cli/lib/xle/validate.mjs+++ b/packages/cli/foundation/xle/validate.mjs@@ -15,7 +15,7 @@* @position lib/xle — between parse.mjs and expand.mjs*/-import {levenshteinDistance} from '../levenshtein.mjs';+import {levenshteinDistance} from '../text/levenshtein.mjs';import {KEY_ALIASES} from './parse.mjs';import {resolveComponent} from './registry-core.mjs';diff --git a/packages/cli/lib/xle/xle-ast.d.ts b/packages/cli/foundation/xle/xle-ast.tssimilarity index 100%rename from packages/cli/lib/xle/xle-ast.d.tsrename to packages/cli/foundation/xle/xle-ast.tsdiff --git a/packages/cli/lib/xle/xle.test.mjs b/packages/cli/foundation/xle/xle.test.mjssimilarity index 100%rename from packages/cli/lib/xle/xle.test.mjsrename to packages/cli/foundation/xle/xle.test.mjsdiff --git a/packages/cli/lib/config-schema.mjs b/packages/cli/lib/config-schema.mjsdeleted file mode 100644index fe80e1ab37..0000000000--- a/packages/cli/lib/config-schema.mjs+++ /dev/null@@ -1,75 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--/** Runtime schemas for Astryx config and integration manifests. */--import {z} from 'zod';--const Fn = z.custom(value => typeof value === 'function', {- message: 'Expected function',-});--export const PostCodemodHookSchema = z- .object({- name: z.string().optional(),- buildCommand: Fn,- })- .strict();--export const XleComponentSchema = z- .object({- from: z.string(),- description: z.string().optional(),- default: z.boolean().optional(),- })- .strict();--export const AstryxConfigSchema = z- .object({- integrations: z.array(z.string()).optional(),- issuesUrl: z.string().url().optional(),- hooks: z- .object({- postCodemod: z.array(PostCodemodHookSchema).optional(),- })- .strict()- .optional(),- experimental: z- .object({- xle: z- .object({- components: z.record(z.string(), XleComponentSchema).optional(),- })- .strict()- .optional(),- })- .strict()- .optional(),- })- .strict();--export const AstryxIntegrationSchema = z- .object({- components: z.string().optional(),- templates: z.string().optional(),- codemods: z.string().optional(),- issuesUrl: z.string().url().optional(),- })- .strict();--/**- * Format a zod error into a single readable line, mirroring the issue-joining- * convention used across the CLI (path: message; path: message). Exported so- * the shared module loader and other validators stay in lockstep.- * @param {string} label- * @param {import('zod').ZodError} error- * @returns {string}- */-export function formatZodError(label, error) {- const issues = error.issues- .map(issue => {- const path = issue.path.length ? issue.path.join('.') : '(root)';- return `${path}: ${issue.message}`;- })- .join('; ');- return `${label} is invalid: ${issues}`;-}diff --git a/packages/cli/lib/config-schema.test.mjs b/packages/cli/lib/config-schema.test.mjsdeleted file mode 100644index d6b61e1f13..0000000000--- a/packages/cli/lib/config-schema.test.mjs+++ /dev/null@@ -1,148 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--/**- * @file Colocated tests for config-schema — the runtime zod schemas for- * astryx.config.* and integration manifests. These lock:- * - AstryxConfigSchema accepts an empty config and a fully-populated valid one,- * - it rejects non-objects (null / number / array) with a readable message,- * - .strict() rejects unknown top-level AND nested keys,- * - issuesUrl must be a URL, integrations must be string[],- * - postCodemod.buildCommand must be a function (the custom `Fn` schema),- * - AstryxIntegrationSchema is likewise strict,- * - formatZodError renders `label is invalid: path: message; ...`, using- * `(root)` for the top-level path.- */--import {describe, it, expect} from 'vitest';-import {- AstryxConfigSchema,- AstryxIntegrationSchema,- PostCodemodHookSchema,- XleComponentSchema,- formatZodError,-} from './config-schema.mjs';--/** Parse and, on failure, return the formatted error string. */-function reason(schema, value, label = 'config') {- const res = schema.safeParse(value);- return res.success ? null : formatZodError(label, res.error);-}--describe('AstryxConfigSchema', () => {- it('accepts an empty config (every field optional)', () => {- expect(AstryxConfigSchema.safeParse({}).success).toBe(true);- });-- it('accepts a fully-populated valid config', () => {- const cfg = {- integrations: ['@astryxdesign/core'],- issuesUrl: 'https://github.com/org/repo/issues',- hooks: {postCodemod: [{name: 'build', buildCommand: () => {}}]},- experimental: {xle: {components: {Foo: {from: 'pkg', default: true}}}},- };- expect(AstryxConfigSchema.safeParse(cfg).success).toBe(true);- });-- it('rejects null / number / array with a readable message', () => {- expect(reason(AstryxConfigSchema, null)).toContain('expected object');- expect(reason(AstryxConfigSchema, 42)).toContain('expected object');- expect(reason(AstryxConfigSchema, [])).toContain('expected object');- });-- it('rejects unknown top-level keys (.strict)', () => {- const msg = reason(AstryxConfigSchema, {bogus: 1});- expect(msg).toContain('Unrecognized key');- expect(msg).toContain('bogus');- });-- it('rejects a bad issuesUrl', () => {- expect(reason(AstryxConfigSchema, {issuesUrl: 'not-a-url'})).toContain(- 'issuesUrl',- );- });-- it('rejects mistyped integrations', () => {- expect(reason(AstryxConfigSchema, {integrations: 'nope'})).toContain(- 'expected array',- );- expect(reason(AstryxConfigSchema, {integrations: [1]})).toContain(- 'integrations.0',- );- });-- it('rejects a non-function postCodemod.buildCommand', () => {- const msg = reason(AstryxConfigSchema, {- hooks: {postCodemod: [{buildCommand: 'notAFn'}]},- });- expect(msg).toContain('buildCommand');- expect(msg).toContain('Expected function');- });-- it('rejects unknown nested keys inside experimental.xle.components', () => {- const msg = reason(AstryxConfigSchema, {- experimental: {xle: {components: {Foo: {from: 'pkg', bad: 1}}}},- });- expect(msg).toContain('Unrecognized key');- });-});--describe('PostCodemodHookSchema / XleComponentSchema', () => {- it('PostCodemodHookSchema accepts {buildCommand} and rejects a missing one', () => {- expect(PostCodemodHookSchema.safeParse({buildCommand: () => {}}).success).toBe(- true,- );- expect(PostCodemodHookSchema.safeParse({}).success).toBe(false);- });-- it('XleComponentSchema requires `from` and is strict', () => {- expect(XleComponentSchema.safeParse({from: 'pkg'}).success).toBe(true);- expect(XleComponentSchema.safeParse({}).success).toBe(false);- expect(XleComponentSchema.safeParse({from: 'pkg', extra: 1}).success).toBe(- false,- );- });-});--describe('AstryxIntegrationSchema', () => {- it('accepts an empty manifest and a valid one', () => {- expect(AstryxIntegrationSchema.safeParse({}).success).toBe(true);- expect(- AstryxIntegrationSchema.safeParse({- components: './c',- issuesUrl: 'https://example.com/i',- }).success,- ).toBe(true);- });-- it('rejects unknown keys and a bad issuesUrl', () => {- expect(reason(AstryxIntegrationSchema, {bogus: 1})).toContain(- 'Unrecognized key',- );- expect(reason(AstryxIntegrationSchema, {issuesUrl: 'x'})).toContain(- 'issuesUrl',- );- });-});--describe('formatZodError', () => {- it('renders "label is invalid: path: message"', () => {- const res = AstryxConfigSchema.safeParse({issuesUrl: 'bad'});- expect(res.success).toBe(false);- const msg = formatZodError('astryx.config.mjs', res.error);- expect(msg).toMatch(/^astryx\.config\.mjs is invalid: /);- expect(msg).toContain('issuesUrl: ');- });-- it('uses "(root)" for a top-level (empty-path) issue', () => {- const res = AstryxConfigSchema.safeParse(null);- expect(formatZodError('config', res.error)).toContain('(root): ');- });-- it('joins multiple issues with "; "', () => {- const res = AstryxConfigSchema.safeParse({integrations: [1, 2]});- const msg = formatZodError('config', res.error);- expect(msg).toContain('; ');- expect(msg).toContain('integrations.0');- expect(msg).toContain('integrations.1');- });-});diff --git a/packages/cli/package.json b/packages/cli/package.jsonindex 8f36be160c..44448d5820 100644--- a/packages/cli/package.json+++ b/packages/cli/package.json@@ -26,65 +26,64 @@],"type": "module","bin": {- "astryx": "./bin/astryx.mjs",- "cli": "./bin/astryx.mjs"+ "astryx": "./clients/cli/bin/astryx.mjs",+ "cli": "./clients/cli/bin/astryx.mjs"},"exports": {- ".": "./bin/astryx.mjs",+ ".": "./clients/cli/bin/astryx.mjs","./json": {- "types": "./types/index.d.ts",- "import": "./lib/parse.mjs"+ "types": "./api/json/index.ts",+ "import": "./api/json/parse.mjs"},"./api": {"types": "./api/index.d.mts","import": "./api/index.mjs"},+ "./authoring": {+ "types": "./authoring/index.d.ts",+ "import": "./authoring/index.mjs"+ },"./config": {- "types": "./types/config.d.ts",- "import": "./authoring/config.mjs"+ "types": "./authoring/config/type.ts",+ "import": "./authoring/config/parse.mjs"},"./integration": {- "types": "./types/integration.d.ts",- "import": "./authoring/integration.mjs"+ "types": "./authoring/integration/type.ts",+ "import": "./authoring/integration/parse.mjs"},"./doc": {- "types": "./types/doc.d.ts",- "import": "./authoring/doc.mjs"+ "types": "./authoring/doctypes/types.ts",+ "import": "./authoring/doctypes/parse.mjs"},"./template": {- "types": "./types/template-api.d.ts",- "import": "./authoring/template.mjs"+ "types": "./authoring/doctypes/types.ts",+ "import": "./authoring/doctypes/template/parse.mjs"},"./codemod": {- "types": "./types/codemod.d.ts",- "import": "./authoring/codemod.mjs"+ "types": "./authoring/codemod/type.ts",+ "import": "./authoring/codemod/parse.mjs"},"./xle": {- "types": "./lib/xle/browser.d.ts",- "import": "./lib/xle/browser.mjs"+ "types": "./foundation/xle/browser.d.ts",+ "import": "./foundation/xle/browser.mjs"}},"files": [- "bin",+ "clients","api",- "cli",- "codemods",+ "assets","authoring",- "lib",- "utils",- "types",- "schemas",+ "foundation","scripts/postinstall.mjs",- "templates",- "docs","CHANGELOG.md"],"scripts": {- "astryx": "node bin/astryx.mjs",+ "astryx": "node clients/cli/bin/astryx.mjs","postinstall": "node scripts/postinstall.mjs","typecheck:template-docs": "tsc --project tsconfig.template-docs.json","typecheck:json-api": "tsc --project tsconfig.json-api.json","typecheck:strict": "tsc --project tsconfig.strict.json",+ "typecheck:authoring": "tsc --project tsconfig.authoring-contract.json","sync:api-types": "node scripts/sync-api-types.mjs","prepack": "pnpm sync:api-types"},diff --git a/packages/cli/schemas/doc-schema.mjs b/packages/cli/schemas/doc-schema.mjsdeleted file mode 100644index 09dcc6bebd..0000000000--- a/packages/cli/schemas/doc-schema.mjs+++ /dev/null@@ -1,226 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--/**- * @file Doc load-boundary schemas.- *- * The Zod schemas doc discovery runs a loaded doc value through (see- * `loadComponentDoc`). {@link ComponentDocSchema} accepts BOTH the new stamped- * formats and the legacy loose `export const docs = {...}` shape, so existing- * docs keep loading unchanged. Kept free of any `@astryxdesign/core` import so- * the hot path that loads them (doc discovery, `astryx init`) does not require- * core's built `dist/`. The authoring factories live in- * `@astryxdesign/core/authoring` and are re-exported from `../doc.mjs` for the- * public `@astryxdesign/cli/doc` surface.- */--import {z} from 'zod';--/**- * A single documented prop. Mirrors `PropDoc` from- * `@astryxdesign/core/docs-types`. Only `name`, `type`, and `description` are- * required; everything else is optional. Extra fields (e.g. `slotElements`)- * pass through so the schema does not have to track every evolution of the- * rich playground/element surface.- */-const PropSchema = z- .object({- name: z.string().min(1, 'prop name is required'),- type: z.string().min(1, 'prop type is required'),- description: z.string(),- default: z.string().optional(),- required: z.boolean().optional(),- })- .passthrough();--/** A single documented function/hook parameter (mirrors `HookParamDoc`). */-const ParamSchema = z- .object({- name: z.string().min(1, 'param name is required'),- type: z.string().min(1, 'param type is required'),- description: z.string(),- default: z.string().optional(),- required: z.boolean().optional(),- })- .passthrough();--/** A single documented function/hook return field (mirrors `HookReturnDoc`). */-const ReturnSchema = z- .object({- name: z.string().min(1, 'return name is required'),- type: z.string().min(1, 'return type is required'),- description: z.string(),- })- .passthrough();--/**- * Fields shared by every doc kind. Deliberately permissive on the rich blobs- * (usage/theming/playground) — those are large and still evolving, so they are- * `z.unknown()` passthrough rather than enumerated.- *- * `group` vs `parent` are distinct concepts and intentionally separate fields:- * - `group` is a FLAT sidebar bucket label. Many docs can share a group; it- * is not an inheritance key.- * - `parent` is a DIRECTED inheritance/composition pointer — a doc naming the- * doc it belongs to (e.g. a sub-component naming its parent component). The- * legacy `subComponentOf` field is a synonym; both map to the same concept.- *- * `relatedDocs` is a single flat curated cross-reference list. It replaces the- * legacy split `relatedComponents` + `relatedHooks`; a downstream reader can- * merge the legacy pair into it.- */-const BaseDocFields = {- /** Name of the documented unit, without any prefix. Required. */- name: z.string().min(1, 'name is required'),- /** Human-readable display name for gallery/sidebar. */- displayName: z.string().optional(),- /** One-line/short description. */- description: z.string().optional(),- /** Usage documentation (description, best practices, anatomy, slotElements). */- usage: z.unknown().optional(),- /** Flat sidebar grouping label (not an inheritance key). */- group: z.string().optional(),- /** Overview-page functional category. */- category: z.string().optional(),- /** CLI fuzzy-search keywords. */- keywords: z.array(z.string()).optional(),- /** Directed inheritance/composition pointer to the doc this belongs to. */- parent: z.string().optional(),- /** Flat curated cross-reference list of related doc names. */- relatedDocs: z.array(z.string()).optional(),- /** Hide the whole doc from human-facing UI (stays importable/discoverable). */- hidden: z.boolean().optional(),- /** Exclude from the categorized overview page (kept in sidebar/CLI). */- isHiddenFromOverview: z.boolean().optional(),-};--/**- * New-format schema for a stamped component doc (`type: 'component'`). The- * top-level component keys are enumerated, but nested blobs stay loose so real- * docs are not rejected. `.passthrough()` keeps unknown top-level fields- * (translations, element descriptors, ...) flowing through.- */-export const ComponentDocKindSchema = z- .object({- ...BaseDocFields,- type: z.literal('component'),- props: z.array(PropSchema),- theming: z.unknown().optional(),- playground: z.unknown().optional(),- examples: z.array(z.unknown()).optional(),- })- .passthrough();--/**- * New-format schema for a stamped function doc (`type: 'function'`). Covers any- * function, including hooks: an inputs (`params`) + outputs (`returns`) surface.- */-export const FunctionDocKindSchema = z- .object({- ...BaseDocFields,- type: z.literal('function'),- params: z.array(ParamSchema),- returns: z.array(ReturnSchema),- })- .passthrough();--/**- * New-format schema for a stamped generic doc (`type: 'generic'`) — reference- * and topic docs. Just the shared base plus the discriminant.- */-export const GenericDocKindSchema = z- .object({- ...BaseDocFields,- type: z.literal('generic'),- })- .passthrough();--/**- * The stamped-doc contract: one of the three new per-kind schemas, discriminated- * by the injected `type`. Used when a loaded doc carries a `type` field.- */-export const StampedDocSchema = z.discriminatedUnion('type', [- ComponentDocKindSchema,- FunctionDocKindSchema,- GenericDocKindSchema,-]);--// ── Legacy loose format (unchanged, kept for back-compat) ─────────────-//-// The pre-factory docs are authored as a loose, untyped object with no `type`-// discriminant and validated by shape. Enumerated top-level fields observed-// across the existing loose docs:-// name, displayName, description, group, category, keywords,-// isHiddenFromOverview, hidden, hiddenComponents, usage, props, components,-// subComponentOf, playground, theming, examples, params, returns,-// relatedComponents, relatedHooks, relatedDocs, parent, importPath.--const LegacyBaseDocSchema = z.object({- name: z.string().min(1, 'name is required'),- displayName: z.string().optional(),- description: z.string().optional(),- group: z.string().optional(),- category: z.string().optional(),- keywords: z.array(z.string()).optional(),- isHiddenFromOverview: z.boolean().optional(),- hidden: z.boolean().optional(),- hiddenComponents: z.array(z.string()).optional(),- usage: z.unknown().optional(),- playground: z.unknown().optional(),- theming: z.unknown().optional(),- examples: z.array(z.unknown()).optional(),- showcase: z.unknown().optional(),- // `parent` and legacy `subComponentOf` are synonyms; both accepted here so a- // parent-based doc that omits a stamped `type` still validates.- parent: z.string().optional(),- relatedDocs: z.array(z.string()).optional(),- relatedComponents: z.array(z.string()).optional(),- relatedHooks: z.array(z.string()).optional(),-});--/** Legacy: directory exporting a single primary component (props inline). */-const LegacySingleComponentDocSchema = LegacyBaseDocSchema.extend({- props: z.array(PropSchema),-}).passthrough();--/** Legacy: directory exporting multiple components (props on each entry). */-const LegacyMultiComponentDocSchema = LegacyBaseDocSchema.extend({- components: z.array(z.unknown()),-}).passthrough();--/** Legacy: a standalone hook doc — inputs (`params`) + outputs (`returns`). */-const LegacyHookDocSchema = LegacyBaseDocSchema.extend({- params: z.array(ParamSchema),- returns: z.array(ReturnSchema),-}).passthrough();--/** Legacy: a sub-component doc parented via `subComponentOf`. */-const LegacySubComponentDocSchema = LegacyBaseDocSchema.extend({- subComponentOf: z.string().min(1, 'subComponentOf is required'),- description: z.string(),- props: z.array(PropSchema),-}).passthrough();--/**- * The permissive legacy union. `subComponentOf` is listed first so a doc that- * carries both `subComponentOf` and `props` is validated as a sub-component- * (the more specific shape); hook (`params`/`returns`) before multi/single.- */-export const LegacyDocSchema = z.union([- LegacySubComponentDocSchema,- LegacyHookDocSchema,- LegacyMultiComponentDocSchema,- LegacySingleComponentDocSchema,-]);--/**- * The LOAD-boundary contract for a doc. Handles BOTH formats:- * - NEW: a stamped doc (`type: 'component' | 'function' | 'generic'`,- * produced by the factories) is validated against the matching per-kind- * schema in {@link StampedDocSchema}.- * - OLD: a loose, unstamped doc is validated against the permissive- * {@link LegacyDocSchema} union (the three legacy shapes + standalone hook).- *- * Discovery validates the SHAPE, not "was it made by the factory". Both formats- * normalize into the same internal shape consumers already expect.- */-export const ComponentDocSchema = z.union([StampedDocSchema, LegacyDocSchema]);diff --git a/packages/cli/schemas/template-schema.mjs b/packages/cli/schemas/template-schema.mjsdeleted file mode 100644index b0910326d1..0000000000--- a/packages/cli/schemas/template-schema.mjs+++ /dev/null@@ -1,47 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--/**- * @file Template load-boundary schemas.- *- * The Zod schemas that integration template discovery runs a module's default- * export through (see `loadModuleWithSchema`). Kept free of any- * `@astryxdesign/core` import so the hot path that loads them (template- * discovery, `astryx init`) does not require core's built `dist/`. The- * authoring factories live in `@astryxdesign/core/authoring` and are re-exported- * from `../template.mjs` for the public `@astryxdesign/cli/template` surface.- */--import {z} from 'zod';--const PreviewSchema = z- .object({- image: z.string().optional(),- aspectRatio: z.string().optional(),- })- .strict();--/**- * Shared authored-template shape. `type` is injected by the create* helpers,- * so authors never write it. Inline source/sourceFile are intentionally NOT- * part of v1 — a template's source is the required same-stem sibling file.- * Exported so integration template discovery can validate the stamped result.- */-export const BaseTemplateSchema = z- .object({- name: z.string().min(1, 'name is required'),- description: z.string().min(1, 'description is required'),- category: z.string().optional(),- componentsUsed: z.array(z.string()).optional(),- preview: PreviewSchema.optional(),- })- .strict();--/**- * The metadata envelope integration template discovery validates: a stamped- * template doc. This is the LOAD-boundary contract — a hand-written plain- * object that matches this shape is accepted (discovery does not check "was it- * made by the factory", only the shape).- */-export const TemplateEnvelopeSchema = BaseTemplateSchema.extend({- type: z.enum(['page', 'block']),-});diff --git a/packages/cli/scripts/postinstall.mjs b/packages/cli/scripts/postinstall.mjsindex b3696cf136..e61ec720c6 100644--- a/packages/cli/scripts/postinstall.mjs+++ b/packages/cli/scripts/postinstall.mjs@@ -41,7 +41,7 @@ export function shouldNudge({scriptPath, npmCommand, isSetUp} = {}) {/** @param {string} root @returns {Promise<boolean>} */async function projectIsSetUp(root) {try {- const {isAstryxInitialized} = await import('../lib/agent-docs/agent-docs.mjs');+ const {isAstryxInitialized} = await import('../foundation/agent-docs/agent-docs.mjs');return isAstryxInitialized(root);} catch {return false; // best-effort — if the check can't load, fall through and nudgediff --git a/packages/cli/templates/blocks/components/Code/CodeInlineInParagraph.tsx b/packages/cli/templates/blocks/components/Code/CodeInlineInParagraph.tsxdeleted file mode 100644index c6592560ce..0000000000--- a/packages/cli/templates/blocks/components/Code/CodeInlineInParagraph.tsx+++ /dev/null@@ -1,16 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--'use client';--import {Code} from '@astryxdesign/core/CodeBlock';-import {Text} from '@astryxdesign/core/Text';--export default function CodeInlineInParagraph() {- return (- <Text type="body" style={{maxWidth: 400}}>Use <Code>useState</Code>for local state and{' '}- <Code>useEffect</Code>for side effects. If you need shared state- across components, consider <Code>useContext</Code>or a state- management library.- </Text>- );-}diff --git a/packages/cli/templates/blocks/components/ProgressBar/ProgressBarSemanticVariants.tsx b/packages/cli/templates/blocks/components/ProgressBar/ProgressBarSemanticVariants.tsxdeleted file mode 100644index bbb899a14a..0000000000--- a/packages/cli/templates/blocks/components/ProgressBar/ProgressBarSemanticVariants.tsx+++ /dev/null@@ -1,43 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--'use client';--import {ProgressBar} from '@astryxdesign/core/ProgressBar';-import {VStack} from '@astryxdesign/core/Layout';--export default function ProgressBarSemanticVariants() {- return (- <VStack gap={4} width="100%" style={{maxWidth: 300}}>- <ProgressBar- value={60}- label="Accent"- variant="accent"- hasValueLabel- />- <ProgressBar- value={80}- label="Positive"- variant="success"- hasValueLabel- />- <ProgressBar- value={50}- label="Warning"- variant="warning"- hasValueLabel- />- <ProgressBar- value={92}- label="Negative"- variant="error"- hasValueLabel- />- <ProgressBar- value={35}- label="Neutral"- variant="neutral"- hasValueLabel- />- </VStack>- );-}diff --git a/packages/cli/templates/blocks/components/SideNav/SideNavEndContent.tsx b/packages/cli/templates/blocks/components/SideNav/SideNavEndContent.tsxdeleted file mode 100644index be34194af7..0000000000--- a/packages/cli/templates/blocks/components/SideNav/SideNavEndContent.tsx+++ /dev/null@@ -1,93 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--'use client';--import type {ComponentProps} from 'react';-import {- SideNav,- SideNavHeading,- SideNavItem,- SideNavSection,-} from '@astryxdesign/core/SideNav';-import {Badge} from '@astryxdesign/core/Badge';-import {Text} from '@astryxdesign/core/Text';-import {MoreMenu} from '@astryxdesign/core/MoreMenu';--function HomeIcon(props: ComponentProps<'svg'>) {- return (- <svg fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor" {...props}>- <path strokeLinecap="round" strokeLinejoin="round" d="m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25" />- </svg>- );-}--function FolderIcon(props: ComponentProps<'svg'>) {- return (- <svg fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor" {...props}>- <path strokeLinecap="round" strokeLinejoin="round" d="M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z" />- </svg>- );-}--function ChartBarIcon(props: ComponentProps<'svg'>) {- return (- <svg fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor" {...props}>- <path strokeLinecap="round" strokeLinejoin="round" d="M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 0 1 3 19.875v-6.75ZM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V8.625ZM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V4.125Z" />- </svg>- );-}--function UserGroupIcon(props: ComponentProps<'svg'>) {- return (- <svg fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor" {...props}>- <path strokeLinecap="round" strokeLinejoin="round" d="M18 18.72a9.094 9.094 0 0 0 3.741-.479 3 3 0 0 0-4.682-2.72m.94 3.198.001.031c0 .225-.012.447-.037.666A11.944 11.944 0 0 1 12 21c-2.17 0-4.207-.576-5.963-1.584A6.062 6.062 0 0 1 6 18.719m12 0a5.971 5.971 0 0 0-.941-3.197m0 0A5.995 5.995 0 0 0 12 12.75a5.995 5.995 0 0 0-5.058 2.772m0 0a3 3 0 0 0-4.681 2.72 8.986 8.986 0 0 0 3.74.477m.94-3.197a5.971 5.971 0 0 0-.94 3.197M15 6.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm6 3a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Zm-13.5 0a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Z" />- </svg>- );-}--export default function SideNavEndContent() {- return (- <SideNav- header={<SideNavHeading heading="My App" headingHref="/" />}>- <SideNavSection title="Navigation" isHeaderHidden>- <SideNavItem- label="Dashboard"- icon={HomeIcon}- isSelected- href="/dashboard"- endContent={- <MoreMenu- size="sm"- items={[- {label: 'Pin to top', onClick: () => {}},- {label: 'Rename', onClick: () => {}},- ]}- />- }- />- <SideNavItem- label="Projects"- icon={FolderIcon}- href="/projects"- endContent={<Badge label={12} />}- />- <SideNavItem- label="Analytics"- icon={ChartBarIcon}- href="/analytics"- endContent={<Badge label="New" />}- />- <SideNavItem- label="Team"- icon={UserGroupIcon}- href="/team"- endContent={- <Text type="supporting" color="secondary">- 8 members- </Text>- }- />- </SideNavSection>- </SideNav>- );-}diff --git a/packages/cli/templates/blocks/components/SideNav/SideNavNestedItems.tsx b/packages/cli/templates/blocks/components/SideNav/SideNavNestedItems.tsxdeleted file mode 100644index 73d4b81d73..0000000000--- a/packages/cli/templates/blocks/components/SideNav/SideNavNestedItems.tsx+++ /dev/null@@ -1,46 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--'use client';--import type {ComponentProps} from 'react';-import {- SideNav,- SideNavHeading,- SideNavItem,- SideNavSection,-} from '@astryxdesign/core/SideNav';--function HomeIcon(props: ComponentProps<'svg'>) {- return (- <svg fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor" {...props}>- <path strokeLinecap="round" strokeLinejoin="round" d="m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25" />- </svg>- );-}--function CogIcon(props: ComponentProps<'svg'>) {- return (- <svg fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor" {...props}>- <path strokeLinecap="round" strokeLinejoin="round" d="M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z" />- <path strokeLinecap="round" strokeLinejoin="round" d="M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z" />- </svg>- );-}--export default function SideNavNestedItems() {- return (- <SideNav header={<SideNavHeading heading="My App" />}>- <SideNavSection title="Main">- <SideNavItem label="Dashboard" icon={HomeIcon} isSelected />- <SideNavItem label="Settings" icon={CogIcon}>- <SideNavItem label="General" href="/settings/general" />- <SideNavItem label="Security" href="/settings/security" />- <SideNavItem- label="Notifications"- href="/settings/notifications"- />- </SideNavItem>- </SideNavSection>- </SideNav>- );-}diff --git a/packages/cli/templates/blocks/components/SideNav/SideNavShowcase.tsx b/packages/cli/templates/blocks/components/SideNav/SideNavShowcase.tsxdeleted file mode 100644index 6ed2ae8cd1..0000000000--- a/packages/cli/templates/blocks/components/SideNav/SideNavShowcase.tsx+++ /dev/null@@ -1,76 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--'use client';--import type {ComponentProps} from 'react';-import {- SideNav,- SideNavHeading,- SideNavItem,- SideNavSection,-} from '@astryxdesign/core/SideNav';--function HomeIcon(props: ComponentProps<'svg'>) {- return (- <svg fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor" {...props}>- <path strokeLinecap="round" strokeLinejoin="round" d="m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25" />- </svg>- );-}--function FolderIcon(props: ComponentProps<'svg'>) {- return (- <svg fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor" {...props}>- <path strokeLinecap="round" strokeLinejoin="round" d="M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z" />- </svg>- );-}--function ChartBarIcon(props: ComponentProps<'svg'>) {- return (- <svg fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor" {...props}>- <path strokeLinecap="round" strokeLinejoin="round" d="M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 0 1 3 19.875v-6.75ZM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V8.625ZM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V4.125Z" />- </svg>- );-}--function DocumentTextIcon(props: ComponentProps<'svg'>) {- return (- <svg fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor" {...props}>- <path strokeLinecap="round" strokeLinejoin="round" d="M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z" />- </svg>- );-}--export default function SideNavShowcase() {- return (- <SideNav- header={<SideNavHeading heading="My App" headingHref="/" />}>- <SideNavSection title="Main">- <SideNavItem- label="Dashboard"- icon={HomeIcon}- isSelected- href="/dashboard"- />- <SideNavItem- label="Projects"- icon={FolderIcon}- href="/projects"- />- <SideNavItem- label="Analytics"- icon={ChartBarIcon}- href="/analytics"- />- </SideNavSection>- <SideNavSection title="Documents">- <SideNavItem- label="All Documents"- icon={DocumentTextIcon}- href="/documents"- />- </SideNavSection>- </SideNav>- );-}diff --git a/packages/cli/templates/blocks/components/SideNav/SideNavWithHeaderMenu.tsx b/packages/cli/templates/blocks/components/SideNav/SideNavWithHeaderMenu.tsxdeleted file mode 100644index 8db2e33836..0000000000--- a/packages/cli/templates/blocks/components/SideNav/SideNavWithHeaderMenu.tsx+++ /dev/null@@ -1,73 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--'use client';--import type {ComponentProps} from 'react';-import {- SideNav,- SideNavHeading,- SideNavItem,- SideNavSection,-} from '@astryxdesign/core/SideNav';-import {ListItem} from '@astryxdesign/core/List';-import {NavIcon} from '@astryxdesign/core/NavIcon';--function HomeIcon(props: ComponentProps<'svg'>) {- return (- <svg fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor" {...props}>- <path strokeLinecap="round" strokeLinejoin="round" d="m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25" />- </svg>- );-}--function CogIcon(props: ComponentProps<'svg'>) {- return (- <svg fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor" {...props}>- <path strokeLinecap="round" strokeLinejoin="round" d="M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z" />- <path strokeLinecap="round" strokeLinejoin="round" d="M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z" />- </svg>- );-}--export default function SideNavWithHeaderMenu() {- return (- <SideNav- header={- <SideNavHeading- icon={- <NavIcon- icon={- <svg- style={{width: 16, height: 16}}- fill="none"- viewBox="0 0 24 24"- strokeWidth={1.5}- stroke="currentColor">- <path- strokeLinecap="round"- strokeLinejoin="round"- d="M21 7.5l-9-5.25L3 7.5m18 0l-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9"- />- </svg>- }- />- }- heading="Product Name"- subheading="Business Account"- menu={- <>- <ListItem label="Personal Account" href="#" />- <ListItem label="Acme Corp" href="#" />- <ListItem label="Add account" href="#" />- <ListItem label="Sign out" href="#" />- </>- }- />- }>- <SideNavSection title="Navigation">- <SideNavItem label="Dashboard" icon={HomeIcon} isSelected />- <SideNavItem label="Settings" icon={CogIcon} />- </SideNavSection>- </SideNav>- );-}diff --git a/packages/cli/templates/blocks/components/SideNavCollapseButton/SideNavCollapseButtonShowcase.tsx b/packages/cli/templates/blocks/components/SideNavCollapseButton/SideNavCollapseButtonShowcase.tsxdeleted file mode 100644index a12fd13abe..0000000000--- a/packages/cli/templates/blocks/components/SideNavCollapseButton/SideNavCollapseButtonShowcase.tsx+++ /dev/null@@ -1,43 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--'use client';--import type {ComponentProps} from 'react';-import {- SideNav,- SideNavCollapseButton,- SideNavHeading,- SideNavItem,- SideNavSection,-} from '@astryxdesign/core/SideNav';--function HomeIcon(props: ComponentProps<'svg'>) {- return (- <svg fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor" {...props}>- <path strokeLinecap="round" strokeLinejoin="round" d="m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25" />- </svg>- );-}--function FolderIcon(props: ComponentProps<'svg'>) {- return (- <svg fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor" {...props}>- <path strokeLinecap="round" strokeLinejoin="round" d="M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z" />- </svg>- );-}--export default function SideNavCollapseButtonShowcase() {- return (- <SideNav- collapsible={{hasButton: false}}- header={<SideNavHeading heading="Workspace" />}- footerIcons={<SideNavCollapseButton />}- >- <SideNavSection title="Main">- <SideNavItem label="Home" icon={HomeIcon} isSelected href="#" />- <SideNavItem label="Projects" icon={FolderIcon} href="#" />- </SideNavSection>- </SideNav>- );-}diff --git a/packages/cli/templates/blocks/components/SideNavItem/SideNavItemShowcase.tsx b/packages/cli/templates/blocks/components/SideNavItem/SideNavItemShowcase.tsxdeleted file mode 100644index 8ec4d48dff..0000000000--- a/packages/cli/templates/blocks/components/SideNavItem/SideNavItemShowcase.tsx+++ /dev/null@@ -1,57 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--'use client';--import type {ComponentProps} from 'react';-import {SideNav, SideNavItem} from '@astryxdesign/core/SideNav';-import {Badge} from '@astryxdesign/core/Badge';--function InboxIcon(props: ComponentProps<'svg'>) {- return (- <svg fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor" {...props}>- <path strokeLinecap="round" strokeLinejoin="round" d="M2.25 13.5h3.86a2.25 2.25 0 0 1 2.012 1.244l.256.512a2.25 2.25 0 0 0 2.013 1.244h3.218a2.25 2.25 0 0 0 2.013-1.244l.256-.512a2.25 2.25 0 0 1 2.013-1.244h3.859m-19.5.338V18a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18v-4.162c0-.224-.034-.447-.1-.661L19.24 5.338a2.25 2.25 0 0 0-2.15-1.588H6.911a2.25 2.25 0 0 0-2.15 1.588L2.35 13.177a2.25 2.25 0 0 0-.1.661Z" />- </svg>- );-}--function DocumentIcon(props: ComponentProps<'svg'>) {- return (- <svg fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor" {...props}>- <path strokeLinecap="round" strokeLinejoin="round" d="M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z" />- </svg>- );-}--function CogIcon(props: ComponentProps<'svg'>) {- return (- <svg fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor" {...props}>- <path strokeLinecap="round" strokeLinejoin="round" d="M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.212-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z" />- <path strokeLinecap="round" strokeLinejoin="round" d="M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z" />- </svg>- );-}--export default function SideNavItemShowcase() {- return (- <SideNav>- <SideNavItem- label="Inbox"- icon={InboxIcon}- isSelected- href="#"- endContent={<Badge label="12" />}- />- <SideNavItem- label="Documents"- icon={DocumentIcon}- href="#"- />- <SideNavItem- label="Settings"- icon={CogIcon}- href="#"- isDisabled- />- </SideNav>- );-}diff --git a/packages/cli/templates/blocks/components/SideNavSection/SideNavSectionShowcase.tsx b/packages/cli/templates/blocks/components/SideNavSection/SideNavSectionShowcase.tsxdeleted file mode 100644index a4d9e5fbae..0000000000--- a/packages/cli/templates/blocks/components/SideNavSection/SideNavSectionShowcase.tsx+++ /dev/null@@ -1,58 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--'use client';--import type {ComponentProps} from 'react';-import {- SideNav,- SideNavItem,- SideNavSection,-} from '@astryxdesign/core/SideNav';--function HomeIcon(props: ComponentProps<'svg'>) {- return (- <svg fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor" {...props}>- <path strokeLinecap="round" strokeLinejoin="round" d="m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25" />- </svg>- );-}--function ChartIcon(props: ComponentProps<'svg'>) {- return (- <svg fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor" {...props}>- <path strokeLinecap="round" strokeLinejoin="round" d="M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 0 1 3 19.875v-6.75ZM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V8.625ZM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V4.125Z" />- </svg>- );-}--function UserIcon(props: ComponentProps<'svg'>) {- return (- <svg fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor" {...props}>- <path strokeLinecap="round" strokeLinejoin="round" d="M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z" />- </svg>- );-}--function CogIcon(props: ComponentProps<'svg'>) {- return (- <svg fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor" {...props}>- <path strokeLinecap="round" strokeLinejoin="round" d="M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.212-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z" />- <path strokeLinecap="round" strokeLinejoin="round" d="M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z" />- </svg>- );-}--export default function SideNavSectionShowcase() {- return (- <SideNav>- <SideNavSection title="Overview">- <SideNavItem label="Dashboard" icon={HomeIcon} isSelected href="#" />- <SideNavItem label="Analytics" icon={ChartIcon} href="#" />- </SideNavSection>- <SideNavSection title="Account">- <SideNavItem label="Profile" icon={UserIcon} href="#" />- <SideNavItem label="Settings" icon={CogIcon} href="#" />- </SideNavSection>- </SideNav>- );-}diff --git a/packages/cli/templates/blocks/components/Text/TextTypes.tsx b/packages/cli/templates/blocks/components/Text/TextTypes.tsxdeleted file mode 100644index 83514406ef..0000000000--- a/packages/cli/templates/blocks/components/Text/TextTypes.tsx+++ /dev/null@@ -1,37 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--'use client';--import {Text} from '@astryxdesign/core/Text';-import {Stack} from '@astryxdesign/core/Stack';--const TYPES = [- {type: 'body' as const, label: 'Body text', sample: 'Body text for paragraphs and general content'},- {type: 'large' as const, label: 'Large text', sample: 'Large text for introductions and callouts'},- {type: 'label' as const, label: 'Label text', sample: 'Label text for form fields and section titles'},- {type: 'supporting' as const, label: 'Supporting text', sample: 'Supporting text for captions and metadata'},- {type: 'code' as const, label: 'Code text', sample: 'const theme = defineTheme({})'},- {type: 'body' as const, label: 'Strikethrough', sample: 'Body text with strikethrough decoration', hasStrikethrough: true},- {type: 'body' as const, label: 'Tabular numbers', sample: '1,234.56 78.90 100,000.00', hasTabularNumbers: true},-];--export default function TextTypes() {- return (- <Stack direction="vertical" gap={3}>- {TYPES.map(({type, label, sample, hasStrikethrough, hasTabularNumbers}) => (- <Stack key={label} direction="vertical" gap={0}>- <Text type="supporting" color="secondary">- {label}- </Text>- <Text- type={type}- display="block"- hasStrikethrough={hasStrikethrough}- hasTabularNumbers={hasTabularNumbers}>- {sample}- </Text>- </Stack>- ))}- </Stack>- );-}diff --git a/packages/cli/templates/blocks/components/TopNavMegaMenuItem/TopNavMegaMenuItemShowcase.tsx b/packages/cli/templates/blocks/components/TopNavMegaMenuItem/TopNavMegaMenuItemShowcase.tsxdeleted file mode 100644index 22dcd79b74..0000000000--- a/packages/cli/templates/blocks/components/TopNavMegaMenuItem/TopNavMegaMenuItemShowcase.tsx+++ /dev/null@@ -1,69 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--'use client';--import {TopNavMegaMenuItem} from '@astryxdesign/core/TopNav';-import {Grid} from '@astryxdesign/core/Grid';--function BoltIcon() {- return (- <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5">- <path strokeLinecap="round" strokeLinejoin="round" d="m3.75 13.5 10.5-11.25L12 10.5h8.25L9.75 21.75 12 13.5H3.75Z" />- </svg>- );-}--function CubeIcon() {- return (- <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5">- <path strokeLinecap="round" strokeLinejoin="round" d="m21 7.5-9-5.25L3 7.5m18 0-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9" />- </svg>- );-}--function GlobeIcon() {- return (- <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5">- <path strokeLinecap="round" strokeLinejoin="round" d="M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5a17.92 17.92 0 0 1-8.716-2.247m0 0A8.966 8.966 0 0 1 3 12c0-1.264.26-2.466.732-3.558" />- </svg>- );-}--function WrenchIcon() {- return (- <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5">- <path strokeLinecap="round" strokeLinejoin="round" d="M11.42 15.17 17.25 21A2.652 2.652 0 0 0 21 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 1 1-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 0 0 4.486-6.336l-3.276 3.277a3.004 3.004 0 0 1-2.25-2.25l3.276-3.276a4.5 4.5 0 0 0-6.336 4.486c.049.58.025 1.192-.14 1.743" />- </svg>- );-}--export default function TopNavMegaMenuItemShowcase() {- return (- <Grid columns={2} gap={2}>- <TopNavMegaMenuItem- title="Edge Functions"- description="Run serverless code at the network edge"- icon={<BoltIcon />}- href="#edge"- />- <TopNavMegaMenuItem- title="Storage"- description="Object and file storage for your application"- icon={<CubeIcon />}- href="#storage"- />- <TopNavMegaMenuItem- title="CDN"- description="Global content delivery with instant purging"- icon={<GlobeIcon />}- href="#cdn"- />- <TopNavMegaMenuItem- title="Build Tools"- description="Optimized bundling and compilation pipeline"- icon={<WrenchIcon />}- href="#build"- />- </Grid>- );-}diff --git a/packages/cli/test-utils/run-cli.mjs b/packages/cli/test-utils/run-cli.mjsindex 5367e5cdf2..0c0635ead5 100644--- a/packages/cli/test-utils/run-cli.mjs+++ b/packages/cli/test-utils/run-cli.mjs@@ -20,9 +20,9 @@*/import {format} from 'node:util';-import {createProgram} from '../cli/index.mjs';-import {setJsonMode} from '../lib/json.mjs';-import {handleCommanderError} from '../lib/json-shim.mjs';+import {createProgram} from '../clients/cli/index.mjs';+import {setJsonMode} from '../foundation/response/json.mjs';+import {handleCommanderError} from '../clients/cli/lib/json-shim.mjs';/** Thrown by the trapped process.exit to unwind parseAsync with the exit code. */class ExitSignal extends Error {diff --git a/packages/cli/tsconfig.api-dts.json b/packages/cli/tsconfig.api-dts.jsonindex a8bea96f9f..3d8b1d0e05 100644--- a/packages/cli/tsconfig.api-dts.json+++ b/packages/cli/tsconfig.api-dts.json@@ -9,6 +9,13 @@"outDir": "/tmp/astryx-dts-build","customConditions": ["source"]},- "include": ["api/**/*.mjs", "types/**/*.d.ts"],+ "include": [+ "api/**/*.mjs",+ "api/**/*.d.ts",+ "foundation/**/*.d.ts",+ "authoring/**/*.d.ts",+ "clients/cli/lib/*.d.ts",+ "assets/codemods/*.d.ts"+ ],"exclude": ["**/*.test.mjs"]}diff --git a/packages/cli/tsconfig.authoring-contract.json b/packages/cli/tsconfig.authoring-contract.jsonnew file mode 100644index 0000000000..e519d3a47f--- /dev/null+++ b/packages/cli/tsconfig.authoring-contract.json@@ -0,0 +1,6 @@+{+ "//": "Focused typecheck for the authoring surface. checkJs is on so the JSDoc drift-locks (Expect<Equal<z.infer<schema>, PublicType>>) in each parser are evaluated — a sealed schema that drifts from its public type fails here.",+ "extends": "./tsconfig.strict.json",+ "include": ["authoring/**/*.mjs", "authoring/**/*.ts"],+ "exclude": ["**/*.test.mjs"]+}diff --git a/packages/cli/tsconfig.json-api.json b/packages/cli/tsconfig.json-api.jsonindex 45320370c4..60f470d839 100644--- a/packages/cli/tsconfig.json-api.json+++ b/packages/cli/tsconfig.json-api.json@@ -9,11 +9,13 @@"customConditions": ["source"]},"include": [- "types/**/*.d.ts",- "lib/json.mjs",- "lib/manifest.mjs",- "lib/parse.mjs",- "authoring/config.mjs",- "../core/src/docs-types.ts"+ "api/json/index.ts",+ "foundation/response/base.d.ts",+ "foundation/response/error-codes.d.ts",+ "clients/cli/lib/manifest.d.ts",+ "foundation/response/json.mjs",+ "clients/cli/lib/manifest.mjs",+ "api/json/parse.mjs",+ "authoring/config/parse.mjs"]}diff --git a/packages/cli/tsconfig.strict.json b/packages/cli/tsconfig.strict.jsonindex c2fc1ec9d9..bc166822c6 100644--- a/packages/cli/tsconfig.strict.json+++ b/packages/cli/tsconfig.strict.json@@ -11,25 +11,21 @@"include": ["api/**/*.mjs","api/**/*.ts",- "cli/**/*.mjs",- "cli/**/*.ts",- "codemods/**/*.mjs",- "codemods/**/*.ts",+ "clients/**/*.mjs",+ "clients/**/*.ts",+ "foundation/**/*.mjs",+ "foundation/**/*.ts","lib/**/*.mjs","lib/**/*.ts","utils/**/*.mjs","utils/**/*.ts","types/**/*.ts",- "schemas/**/*.mjs",- "schemas/**/*.ts","authoring/**/*.mjs","authoring/**/*.ts",- "bin/**/*.mjs","scripts/**/*.mjs",- "docs/**/*.mjs",- "templates/**/*.mjs",- "templates/**/*.ts",- "templates/**/*.tsx"+ "assets/**/*.mjs",+ "assets/**/*.ts",+ "assets/**/*.tsx"],"exclude": ["**/*.test.mjs"]}diff --git a/packages/cli/tsconfig.template-docs.json b/packages/cli/tsconfig.template-docs.jsonindex ee2d974a57..b342d3ea7a 100644--- a/packages/cli/tsconfig.template-docs.json+++ b/packages/cli/tsconfig.template-docs.json@@ -7,8 +7,7 @@"noEmit": true},"include": [- "templates/**/template.doc.mjs",- "templates/**/*.doc.mjs",- "../core/src/docs-types.ts"+ "assets/templates/**/template.doc.mjs",+ "assets/templates/**/*.doc.mjs"]}diff --git a/packages/cli/types/blog.d.ts b/packages/cli/types/blog.d.tsdeleted file mode 100644index f75ee80574..0000000000--- a/packages/cli/types/blog.d.ts+++ /dev/null@@ -1,18 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--/**- * @file Public re-export of the `blog` command's types.- *- * The source of truth is colocated with the API leaves in- * `api/blog/blog.type.mjs` (functions own their types). This file keeps the- * `./types/blog` consumers (and the `@astryxdesign/cli` `./json` surface)- * resolving the same type names without duplicating the shapes.- */--export type {- BlogPost,- BlogListData,- BlogDetailData,- BlogListResponse,- BlogDetailResponse,-} from '../api/blog/blog.type.mjs';diff --git a/packages/cli/types/build.d.ts b/packages/cli/types/build.d.tsdeleted file mode 100644index e781f4ae77..0000000000--- a/packages/cli/types/build.d.ts+++ /dev/null@@ -1,14 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--/**- * Build command JSON responses.- *- * The shapes now live next to the API as the source of truth in- * `api/build/build.type.mjs`. This barrel re-exports them so existing- * `./types/build` consumers (types/index.d.ts) stay stable.- */--export type {- BuildHelpResponse,- BuildKitResponse,-} from '../api/build/build.type.mjs';diff --git a/packages/cli/types/component.d.ts b/packages/cli/types/component.d.tsdeleted file mode 100644index 297b878f1a..0000000000--- a/packages/cli/types/component.d.ts+++ /dev/null@@ -1,22 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--/**- * @file Barrel for the `component` command's JSON response types. The source of- * truth now lives beside the API at `api/component/component.type.mjs`; this thin- * re-export keeps existing `./types/component` consumers (types/index.d.ts)- * resolving these names unchanged.- */--export type {- ComponentListResponse,- ComponentListData,- ComponentListEntry,- ComponentBriefEntry,- ComponentDetailResponse,- ComponentOwnership,- ComponentDetailPropsResponse,- ComponentDetailSourceResponse,- ComponentDetailShowcaseResponse,- ComponentDetailBlocksResponse,- BlockEntry,-} from '../api/component/component.type.mjs';diff --git a/packages/cli/types/config.d.ts b/packages/cli/types/config.d.tsdeleted file mode 100644index 687a0601fc..0000000000--- a/packages/cli/types/config.d.ts+++ /dev/null@@ -1,15 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--/**- * The config-authoring surface moved to `@astryxdesign/core/config` so an app's- * config file gets type feedback without depending on the CLI. Re-exported here- * so existing `@astryxdesign/cli/config` type imports keep resolving.- */-export type {- PostCodemodCommand,- PostCodemodHook,- XleComponent,- AstryxConfig,-} from '@astryxdesign/core/config';--export {createConfig} from '@astryxdesign/core/config';diff --git a/packages/cli/types/discover.d.ts b/packages/cli/types/discover.d.tsdeleted file mode 100644index 0dcd1e2e54..0000000000--- a/packages/cli/types/discover.d.ts+++ /dev/null@@ -1,18 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--/**- * Discover command JSON response types.- *- * Source of truth is colocated with the command's API at- * `../api/discover/discover.type.mjs`; this file re-exports those types so- * existing `types/discover` importers keep working.- */--export type {- DiscoverListResponse,- DiscoverListEntry,- DiscoverDetailResponse,- DiscoverDetailDocResponse,- DiscoverSearchResponse,- DiscoverSearchEntry,-} from '../api/discover/discover.type.mjs';diff --git a/packages/cli/types/doc.d.ts b/packages/cli/types/doc.d.tsdeleted file mode 100644index 9be9c5cf98..0000000000--- a/packages/cli/types/doc.d.ts+++ /dev/null@@ -1,23 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--/**- * The doc-authoring surface moved to `@astryxdesign/core/authoring`. Re-exported- * here so existing `@astryxdesign/cli/doc` type imports keep resolving. The Zod- * load-boundary schemas remain in the CLI (see `src/doc.mjs`).- */-export type {- AstryxBaseDocInput,- AstryxPropInput,- AstryxParamInput,- AstryxReturnInput,- AstryxComponentDocInput,- AstryxFunctionDocInput,- AstryxGenericDocInput,- AstryxComponentDoc,-} from '@astryxdesign/core/authoring';--export {- createComponentDoc,- createFunctionDoc,- createDoc,-} from '@astryxdesign/core/authoring';diff --git a/packages/cli/types/docs.d.ts b/packages/cli/types/docs.d.tsdeleted file mode 100644index 001a8f0342..0000000000--- a/packages/cli/types/docs.d.ts+++ /dev/null@@ -1,11 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--// Docs command JSON response types are colocated with the API — the source of-// truth is `api/docs/docs.type.mjs`. This barrel re-exports them so existing-// consumers (types/index.d.ts) keep importing from 'types/docs'.-export type {- DocsListResponse,- DocsListEntry,- DocsDetailResponse,- DocsDetailSectionResponse,-} from '../api/docs/docs.type.mjs';diff --git a/packages/cli/types/doctor.d.ts b/packages/cli/types/doctor.d.tsdeleted file mode 100644index dc0fa0b832..0000000000--- a/packages/cli/types/doctor.d.ts+++ /dev/null@@ -1,17 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--/**- * Doctor command JSON responses.- *- * NOTE: These types are colocated with the command implementation — the source- * of truth now lives in `../api/doctor/doctor.type.mjs` (JSDoc typedefs). This- * file re-exports them so the public `./types/doctor` entrypoint and the- * `types/index.d.ts` barrel keep working unchanged.- */--export type {- DoctorStatus,- DoctorCheck,- DoctorSummary,- DoctorResponse,-} from '../api/doctor/doctor.type.mjs';diff --git a/packages/cli/types/hook.d.ts b/packages/cli/types/hook.d.tsdeleted file mode 100644index 6c24d64ad1..0000000000--- a/packages/cli/types/hook.d.ts+++ /dev/null@@ -1,19 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--/**- * @file Hook command JSON response types.- *- * Thin mirror that re-exports the colocated source of truth at- * `../api/hook/hook.type.mjs`; see that file for the detail-level contract and- * the invocation -> type discriminator table.- */--export type {- HookDoc,- HookParamDoc,- HookListResponse,- HookListData,- HookBriefEntry,- HookDetailResponse,- HookDetailParamsResponse,-} from '../api/hook/hook.type.mjs';diff --git a/packages/cli/types/index.d.ts b/packages/cli/types/index.d.tsdeleted file mode 100644index 9fb467f9de..0000000000--- a/packages/cli/types/index.d.ts+++ /dev/null@@ -1,16 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--export * from './base';-export * from './component';-export * from './discover';-export * from './docs';-export * from './template';-export * from './hook';-export * from './swizzle';-export * from './theme';-export * from './upgrade';-export * from './search';-export * from './build';-export * from './error-codes';-export * from './manifest';-export * from './doctor';diff --git a/packages/cli/types/init.d.ts b/packages/cli/types/init.d.tsdeleted file mode 100644index a0d5d1e04f..0000000000--- a/packages/cli/types/init.d.ts+++ /dev/null@@ -1,14 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--/**- * @file Re-export barrel for the `init` command's response types. The source of- * truth now lives colocated with the API at api/init/init.type.mjs; this file- * keeps existing `./types/init` consumers (types/index.d.ts) resolving- * unchanged. Options live in api/init/init.type.mjs (like UpgradeOptions).- */--export type {- InitRunData,- InitRunResponse,- InitRemoveResponse,-} from '../api/init/init.type.mjs';diff --git a/packages/cli/types/integration.d.ts b/packages/cli/types/integration.d.tsdeleted file mode 100644index 4545cce18d..0000000000--- a/packages/cli/types/integration.d.ts+++ /dev/null@@ -1,18 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--/**- * The integration-manifest authoring surface moved to- * `@astryxdesign/core/authoring`. `AstryxIntegration` and `createIntegration`- * are re-exported here so existing `@astryxdesign/cli/integration` type imports- * keep resolving. `AstryxIntegrationIssue` stays in the CLI — it is an internal- * validation type, not part of the authoring surface.- */-export type {AstryxIntegration} from '@astryxdesign/core/authoring';-export {createIntegration} from '@astryxdesign/core/authoring';--/** An issue surfaced by an integration. */-export interface AstryxIntegrationIssue {- code: string;- severity: 'warning' | 'error';- message: string;-}diff --git a/packages/cli/types/layout.d.ts b/packages/cli/types/layout.d.tsdeleted file mode 100644index 0a15295f6a..0000000000--- a/packages/cli/types/layout.d.ts+++ /dev/null@@ -1,17 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--/**- * Barrel for the `layout` command's JSON response types. The source of truth is- * now colocated next to the API at `api/layout/layout.type.mjs`; this file just- * re-exports it so existing `types/layout` importers keep working.- */--export type {- LayoutForm,- LayoutIssue,- LayoutBlockReference,- LayoutExpandResponse,- LayoutCheckResponse,- LayoutGrammarResponse,- LayoutResponse,-} from '../api/layout/layout.type.mjs';diff --git a/packages/cli/types/search.d.ts b/packages/cli/types/search.d.tsdeleted file mode 100644index 858276e4c4..0000000000--- a/packages/cli/types/search.d.ts+++ /dev/null@@ -1,16 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--/**- * Search command JSON responses.- *- * NOTE: These types are colocated with the command implementation — the source- * of truth now lives in `../api/search/search.type.mjs` (JSDoc typedefs). This- * file re-exports them so the public `./types/search` entrypoint and the- * `types/index.d.ts` barrel keep working unchanged.- */--export type {- SearchDomain,- SearchResultEntry,- SearchResponse,-} from '../api/search/search.type.mjs';diff --git a/packages/cli/types/swizzle.d.ts b/packages/cli/types/swizzle.d.tsdeleted file mode 100644index 65ed7e7c67..0000000000--- a/packages/cli/types/swizzle.d.ts+++ /dev/null@@ -1,15 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--/**- * Swizzle command JSON responses.- *- * The shapes now live next to the API as the source of truth in- * `api/swizzle/swizzle.type.mjs`. This barrel re-exports them so existing- * `./types/swizzle` consumers (types/index.d.ts) stay stable.- */--export type {- SwizzleListResponse,- SwizzleFeedback,- SwizzleCopyResponse,-} from '../api/swizzle/swizzle.type.mjs';diff --git a/packages/cli/types/template-api.d.ts b/packages/cli/types/template-api.d.tsdeleted file mode 100644index 362f3ded67..0000000000--- a/packages/cli/types/template-api.d.ts+++ /dev/null@@ -1,21 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--/**- * The template-authoring surface moved to `@astryxdesign/core/authoring`.- * Re-exported here so existing `@astryxdesign/cli/template` type imports keep- * resolving.- */-export type {- AstryxTemplatePreview,- AstryxTemplateInput,- AstryxPageTemplateInput,- AstryxBlockTemplateInput,- AstryxPageTemplate,- AstryxBlockTemplate,- AstryxTemplate,-} from '@astryxdesign/core/authoring';--export {- createPageTemplate,- createBlockTemplate,-} from '@astryxdesign/core/authoring';diff --git a/packages/cli/types/template.d.ts b/packages/cli/types/template.d.tsdeleted file mode 100644index 8622cdc792..0000000000--- a/packages/cli/types/template.d.ts+++ /dev/null@@ -1,16 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--/**- * Template command JSON responses.- *- * The types now live next to the `template` API as JSDoc typedefs. This file- * re-exports them so existing `types/template` imports keep resolving. Edit the- * source of truth at `../api/template/template.type.mjs`.- */-export type {- TemplateListResponse,- TemplateListEntry,- TemplateShowResponse,- TemplateSkeletonResponse,- TemplateCopyResponse,-} from '../api/template/template.type.mjs';diff --git a/packages/cli/types/theme.d.ts b/packages/cli/types/theme.d.tsdeleted file mode 100644index cdc74dd0ad..0000000000--- a/packages/cli/types/theme.d.ts+++ /dev/null@@ -1,17 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--/**- * @file Public re-export of the `theme` command's types.- *- * The source of truth is colocated with the API leaves in- * `api/theme/theme.type.mjs` (functions own their types). This file keeps the- * `./types/theme` consumers (and the `@astryxdesign/cli` `./json` surface)- * resolving the same type names without duplicating the shapes.- */--export type {- ThemeBuildResponse,- ThemeListEntry,- ThemeListResponse,- ThemeAddResponse,-} from '../api/theme/theme.type.mjs';diff --git a/packages/cli/types/upgrade.d.ts b/packages/cli/types/upgrade.d.tsdeleted file mode 100644index eba82043bc..0000000000--- a/packages/cli/types/upgrade.d.ts+++ /dev/null@@ -1,13 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--// Types for the `upgrade` command now live next to their API as the source of-// truth. This module re-exports them so `types/upgrade` stays a stable import.-// Edit shapes/descriptions in `../api/upgrade/upgrade.type.mjs`, not here.--export type {- UpgradeListResponse,- UpgradeListEntry,- AgentDocsSummary,- UpgradeRunResponse,- UpgradeStatusResponse,-} from '../api/upgrade/upgrade.type.mjs';diff --git a/packages/cli/types/validate-integration.d.ts b/packages/cli/types/validate-integration.d.tsdeleted file mode 100644index ed6e3b69f1..0000000000--- a/packages/cli/types/validate-integration.d.ts+++ /dev/null@@ -1,12 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--/**- * @file Public re-export of the `validate-integration` command's types. Source of- * truth is colocated in api/integration/validate-integration.type.mjs;- * `AstryxIntegrationIssue` stays shared in types/integration.d.ts.- */--export type {- ValidateIntegrationOptions,- ValidateIntegrationResponse,-} from '../api/integration/validate-integration.type.mjs';diff --git a/packages/core/groups.doc.mjs b/packages/core/groups.doc.mjsindex 85614b15de..8fb64516b1 100644--- a/packages/core/groups.doc.mjs+++ b/packages/core/groups.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('./src/docs-types').GroupDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentGroupDoc} *//*** @file Group metadata for component categories that are not themselves components.@@ -16,7 +16,7 @@* Or dynamically: `const {GROUP_DOCS} = await import('@astryxdesign/core/groups.doc.mjs')`*/-/** @type {Record<string, import('./src/docs-types').GroupDoc>} */+/** @type {Record<string, import('@astryxdesign/cli/authoring').ComponentGroupDoc>} */export const GROUP_DOCS = {Chat: {name: 'Chat',diff --git a/packages/core/package.json b/packages/core/package.jsonindex 942359bd5b..a17c8f0ee0 100644--- a/packages/core/package.json+++ b/packages/core/package.json@@ -64,16 +64,6 @@"types": "./dist/naming.d.ts","default": "./dist/naming.js"},- "./config": {- "source": "./src/config.ts",- "types": "./dist/config.d.ts",- "default": "./dist/config.js"- },- "./authoring": {- "source": "./src/authoring/index.ts",- "types": "./dist/authoring/index.d.ts",- "default": "./dist/authoring/index.js"- },"./theme/tokens": {"source": "./src/theme/tokens.ts","types": "./dist/theme/tokens.d.ts",@@ -669,6 +659,7 @@"react-dom": ">=19.0.0"},"devDependencies": {+ "@astryxdesign/cli": "workspace:*","@babel/cli": "^8.0.4","@babel/core": "^7.29.7","@babel/preset-react": "^8.0.1",diff --git a/packages/core/src/AlertDialog/AlertDialog.doc.mjs b/packages/core/src/AlertDialog/AlertDialog.doc.mjsindex 4b88dd96ee..406c89047f 100644--- a/packages/core/src/AlertDialog/AlertDialog.doc.mjs+++ b/packages/core/src/AlertDialog/AlertDialog.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'AlertDialog',@@ -30,7 +30,7 @@ export const docs = {},// Intentionally a contained isInline preview, not playground.overlay: the// component stays visible on load and knobs stay live, whereas a real- // showModal() overlay makes the page inert — see PlaygroundConfig.overlay+ // showModal() overlay makes the page inert — see ComponentPlaygroundConfig.overlay// in docs-types.ts (#3657).playground: {defaults: {@@ -120,7 +120,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'Confirms destructive/irreversible action before it happens (delete, revoke access, discard unsaved changes).',usage: {diff --git a/packages/core/src/AlertDialog/AlertDialog.tsx b/packages/core/src/AlertDialog/AlertDialog.tsxindex 3dac482956..0632024ecd 100644--- a/packages/core/src/AlertDialog/AlertDialog.tsx+++ b/packages/core/src/AlertDialog/AlertDialog.tsx@@ -13,7 +13,7 @@* - /packages/core/src/AlertDialog/AlertDialog.test.tsx (tests for new/changed behavior)* - /packages/core/src/AlertDialog/index.ts (exports if types change)* - /apps/storybook/stories/AlertDialog.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/AlertDialog/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/AlertDialog/ (showcase blocks)*/import React, {useId, useCallback} from 'react';diff --git a/packages/core/src/AlertDialog/useImperativeAlertDialog.doc.mjs b/packages/core/src/AlertDialog/useImperativeAlertDialog.doc.mjsindex da2cc1a1ea..8b560d5ba5 100644--- a/packages/core/src/AlertDialog/useImperativeAlertDialog.doc.mjs+++ b/packages/core/src/AlertDialog/useImperativeAlertDialog.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'useImperativeAlertDialog',diff --git a/packages/core/src/AppShell/AppShell.doc.mjs b/packages/core/src/AppShell/AppShell.doc.mjsindex e71788cbd7..4f5d961eea 100644--- a/packages/core/src/AppShell/AppShell.doc.mjs+++ b/packages/core/src/AppShell/AppShell.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'AppShell',@@ -120,7 +120,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'AppShell',displayName: 'App Shell',@@ -182,7 +182,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'app-level layout shell w/ header, side nav, main content; composes Layout internally, replaces Page+PageLayout',diff --git a/packages/core/src/AppShell/AppShell.tsx b/packages/core/src/AppShell/AppShell.tsxindex ffec53ea2e..d854d42372 100644--- a/packages/core/src/AppShell/AppShell.tsx+++ b/packages/core/src/AppShell/AppShell.tsx@@ -17,7 +17,7 @@ import React from 'react';* - /packages/core/src/AppShell/index.ts* - /packages/core/src/AppShell/AppShell.test.tsx* - /apps/storybook/stories/AppShell.stories.tsx- * - /packages/cli/templates/blocks/components/AppShell/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/AppShell/ (showcase blocks)*/import {diff --git a/packages/core/src/AppShell/useAppShellMobile.doc.mjs b/packages/core/src/AppShell/useAppShellMobile.doc.mjsindex 16a910ef12..b421863aae 100644--- a/packages/core/src/AppShell/useAppShellMobile.doc.mjs+++ b/packages/core/src/AppShell/useAppShellMobile.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').HookDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookDoc} */export const docs = {name: 'useAppShellMobile',displayName: 'useAppShellMobile',@@ -109,7 +109,7 @@ export const docs = {importPath: '@astryxdesign/core/AppShell',};-/** @type {import('../docs-types').HookTranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookTranslationDoc} */export const docsDense = {description:'Reads/controls AppShell mobile nav context. Use for custom triggers, closing drawer after route changes, or syncing AppShell-adjacent mobile UI to the same breakpoint as mobile nav.',diff --git a/packages/core/src/AspectRatio/AspectRatio.doc.mjs b/packages/core/src/AspectRatio/AspectRatio.doc.mjsindex 5f540c4a65..0f10d6f53e 100644--- a/packages/core/src/AspectRatio/AspectRatio.doc.mjs+++ b/packages/core/src/AspectRatio/AspectRatio.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'AspectRatio',@@ -62,7 +62,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'AspectRatio',displayName: 'Aspect Ratio',@@ -105,7 +105,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'maintains specific aspect ratio for children',usage: {diff --git a/packages/core/src/AspectRatio/AspectRatio.tsx b/packages/core/src/AspectRatio/AspectRatio.tsxindex afb036bbf9..b0239238fb 100644--- a/packages/core/src/AspectRatio/AspectRatio.tsx+++ b/packages/core/src/AspectRatio/AspectRatio.tsx@@ -13,7 +13,7 @@* - /packages/core/src/AspectRatio/AspectRatio.test.tsx* - /packages/core/src/reset.css (AspectRatio fit baseline rules)* - /apps/storybook/stories/AspectRatio.stories.tsx- * - /packages/cli/templates/blocks/components/AspectRatio/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/AspectRatio/ (showcase blocks)*/import type {ReactNode} from 'react';diff --git a/packages/core/src/Avatar/Avatar.doc.mjs b/packages/core/src/Avatar/Avatar.doc.mjsindex 9766d091e1..8ce16949fb 100644--- a/packages/core/src/Avatar/Avatar.doc.mjs+++ b/packages/core/src/Avatar/Avatar.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Avatar',@@ -128,7 +128,7 @@ export const docs = {],};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {usage: {description:@@ -142,7 +142,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'person/team avatar w/ photo → initials → icon fallback chain',usage: {diff --git a/packages/core/src/Avatar/Avatar.tsx b/packages/core/src/Avatar/Avatar.tsxindex 4e70edaa86..cd2774ad05 100644--- a/packages/core/src/Avatar/Avatar.tsx+++ b/packages/core/src/Avatar/Avatar.tsx@@ -13,7 +13,7 @@* - /packages/core/src/Avatar/Avatar.doc.mjs (props table, features, implementation notes)* - /packages/core/src/Avatar/index.ts (exports if types change)* - /apps/storybook/stories/Avatar.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/Avatar/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Avatar/ (showcase blocks)** Last synced props: alt, fallbackSrc, name, size, src, status, href, as, target, rel, onClick*/diff --git a/packages/core/src/Avatar/AvatarStatusDot.doc.mjs b/packages/core/src/Avatar/AvatarStatusDot.doc.mjsindex 31b1bddfae..20157be272 100644--- a/packages/core/src/Avatar/AvatarStatusDot.doc.mjs+++ b/packages/core/src/Avatar/AvatarStatusDot.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'AvatarStatusDot',diff --git a/packages/core/src/Avatar/AvatarStatusDot.tsx b/packages/core/src/Avatar/AvatarStatusDot.tsxindex 9d64643064..01e164b57e 100644--- a/packages/core/src/Avatar/AvatarStatusDot.tsx+++ b/packages/core/src/Avatar/AvatarStatusDot.tsx@@ -12,7 +12,7 @@* - /packages/core/src/Avatar/Avatar.doc.mjs (features, files table)* - /packages/core/src/Avatar/index.ts (exports)* - /apps/storybook/stories/Avatar.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/Avatar/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Avatar/ (showcase blocks)*/import React, {use, type ReactNode} from 'react';diff --git a/packages/core/src/AvatarGroup/AvatarGroup.doc.mjs b/packages/core/src/AvatarGroup/AvatarGroup.doc.mjsindex d5d85d2059..444494b4e6 100644--- a/packages/core/src/AvatarGroup/AvatarGroup.doc.mjs+++ b/packages/core/src/AvatarGroup/AvatarGroup.doc.mjs@@ -1,5 +1,5 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'AvatarGroup',@@ -71,7 +71,7 @@ export const docs = {],};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {usage: {description:@@ -85,7 +85,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'compositional overlapping avatar row w/ +N overflow or custom slot',usage: {diff --git a/packages/core/src/AvatarGroup/AvatarGroup.tsx b/packages/core/src/AvatarGroup/AvatarGroup.tsxindex 3e9c4608d2..02c0adc586 100644--- a/packages/core/src/AvatarGroup/AvatarGroup.tsx+++ b/packages/core/src/AvatarGroup/AvatarGroup.tsx@@ -21,7 +21,7 @@* - /packages/core/src/AvatarGroup/AvatarGroup.doc.mjs (props table, features)* - /packages/core/src/AvatarGroup/index.ts (exports if types change)* - /apps/storybook/stories/AvatarGroup.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/AvatarGroup/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/AvatarGroup/ (showcase blocks)*/import {useId, useMemo, useState, type ReactNode} from 'react';diff --git a/packages/core/src/AvatarGroup/AvatarGroupOverflow.doc.mjs b/packages/core/src/AvatarGroup/AvatarGroupOverflow.doc.mjsindex 45456743ca..5973d267b2 100644--- a/packages/core/src/AvatarGroup/AvatarGroupOverflow.doc.mjs+++ b/packages/core/src/AvatarGroup/AvatarGroupOverflow.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'AvatarGroupOverflow',diff --git a/packages/core/src/AvatarGroup/AvatarGroupOverflow.tsx b/packages/core/src/AvatarGroup/AvatarGroupOverflow.tsxindex ea57e106b9..17702eafeb 100644--- a/packages/core/src/AvatarGroup/AvatarGroupOverflow.tsx+++ b/packages/core/src/AvatarGroup/AvatarGroupOverflow.tsx@@ -10,7 +10,7 @@* SYNC: When modified, update these files to stay in sync:* - /packages/core/src/AvatarGroup/AvatarGroup.doc.mjs* - /packages/core/src/AvatarGroup/index.ts- * - /packages/cli/templates/blocks/components/AvatarGroup/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/AvatarGroup/ (showcase blocks)*/import React, {type ReactNode} from 'react';diff --git a/packages/core/src/Badge/Badge.doc.mjs b/packages/core/src/Badge/Badge.doc.mjsindex e616b85ec0..f5e4cbba1a 100644--- a/packages/core/src/Badge/Badge.doc.mjs+++ b/packages/core/src/Badge/Badge.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Badge',@@ -60,7 +60,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'Badge',displayName: 'Badge',@@ -107,7 +107,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'highlights a status or category tag, NOT for general metadata',usage: {diff --git a/packages/core/src/Badge/Badge.tsx b/packages/core/src/Badge/Badge.tsxindex 67085fbf2b..4b1217cc79 100644--- a/packages/core/src/Badge/Badge.tsx+++ b/packages/core/src/Badge/Badge.tsx@@ -13,7 +13,7 @@* - /packages/core/src/Badge/Badge.test.tsx (tests for new/changed behavior)* - /packages/core/src/Badge/index.ts (exports if types change)* - /apps/storybook/stories/Badge.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/Badge/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Badge/ (showcase blocks)*/import type {ReactNode} from 'react';diff --git a/packages/core/src/Banner/Banner.doc.mjs b/packages/core/src/Banner/Banner.doc.mjsindex 79e6a93620..ebfc833347 100644--- a/packages/core/src/Banner/Banner.doc.mjs+++ b/packages/core/src/Banner/Banner.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Banner',@@ -131,7 +131,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'Banner',displayName: 'Banner',@@ -206,7 +206,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'persistent message for errors, updates, warnings, or confirmations',usage: {diff --git a/packages/core/src/Banner/Banner.tsx b/packages/core/src/Banner/Banner.tsxindex 8266bd6111..9a26fc74b7 100644--- a/packages/core/src/Banner/Banner.tsx+++ b/packages/core/src/Banner/Banner.tsx@@ -28,7 +28,7 @@* - /packages/core/src/Banner/Banner.test.tsx (tests for new/changed behavior)* - /packages/core/src/Banner/index.ts (exports if types change)* - /apps/storybook/stories/Banner.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/Banner/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Banner/ (showcase blocks)*/import {useId, useState, type ReactNode} from 'react';diff --git a/packages/core/src/Blockquote/Blockquote.doc.mjs b/packages/core/src/Blockquote/Blockquote.doc.mjsindex 8c28178918..a9cec4ebdd 100644--- a/packages/core/src/Blockquote/Blockquote.doc.mjs+++ b/packages/core/src/Blockquote/Blockquote.doc.mjs@@ -2,7 +2,7 @@-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Blockquote',@@ -43,7 +43,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'Blockquote',displayName: 'Blockquote',@@ -81,7 +81,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'styled quotation block w/ accent left border, secondary text, optional citation',usage: {diff --git a/packages/core/src/Blockquote/Blockquote.tsx b/packages/core/src/Blockquote/Blockquote.tsxindex fc5436f418..25c1302a29 100644--- a/packages/core/src/Blockquote/Blockquote.tsx+++ b/packages/core/src/Blockquote/Blockquote.tsx@@ -12,7 +12,7 @@* - /packages/core/src/Blockquote/Blockquote.doc.mjs* - /packages/core/src/Blockquote/Blockquote.test.tsx* - /apps/storybook/stories/Blockquote.stories.tsx- * - /packages/cli/templates/blocks/components/Blockquote/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Blockquote/ (showcase blocks)*/import type {ReactNode} from 'react';diff --git a/packages/core/src/Breadcrumbs/BreadcrumbItem.doc.mjs b/packages/core/src/Breadcrumbs/BreadcrumbItem.doc.mjsindex 9cd6aad17c..1cd5236138 100644--- a/packages/core/src/Breadcrumbs/BreadcrumbItem.doc.mjs+++ b/packages/core/src/Breadcrumbs/BreadcrumbItem.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'BreadcrumbItem',diff --git a/packages/core/src/Breadcrumbs/BreadcrumbItem.tsx b/packages/core/src/Breadcrumbs/BreadcrumbItem.tsxindex 66e78b321f..645a707f76 100644--- a/packages/core/src/Breadcrumbs/BreadcrumbItem.tsx+++ b/packages/core/src/Breadcrumbs/BreadcrumbItem.tsx@@ -19,7 +19,7 @@* - /packages/core/src/Breadcrumbs/Breadcrumbs.test.tsx* - /packages/core/src/Breadcrumbs/index.ts* - /apps/storybook/stories/Breadcrumbs.stories.tsx- * - /packages/cli/templates/blocks/components/Breadcrumbs/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Breadcrumbs/ (showcase blocks)*/import React, {diff --git a/packages/core/src/Breadcrumbs/Breadcrumbs.doc.mjs b/packages/core/src/Breadcrumbs/Breadcrumbs.doc.mjsindex d26a3c98d8..fe9778cd90 100644--- a/packages/core/src/Breadcrumbs/Breadcrumbs.doc.mjs+++ b/packages/core/src/Breadcrumbs/Breadcrumbs.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Breadcrumbs',@@ -128,7 +128,7 @@ export const docs = {],};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {usage: {description:@@ -145,7 +145,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'link trail from root to current page for wayfinding',usage: {diff --git a/packages/core/src/Breadcrumbs/Breadcrumbs.tsx b/packages/core/src/Breadcrumbs/Breadcrumbs.tsxindex e0e8f01718..40f584f290 100644--- a/packages/core/src/Breadcrumbs/Breadcrumbs.tsx+++ b/packages/core/src/Breadcrumbs/Breadcrumbs.tsx@@ -13,7 +13,7 @@* - /packages/core/src/Breadcrumbs/Breadcrumbs.test.tsx* - /packages/core/src/Breadcrumbs/index.ts* - /apps/storybook/stories/Breadcrumbs.stories.tsx- * - /packages/cli/templates/blocks/components/Breadcrumbs/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Breadcrumbs/ (showcase blocks)*/import {createContext, useMemo, type ReactNode} from 'react';diff --git a/packages/core/src/Button/Button.doc.mjs b/packages/core/src/Button/Button.doc.mjsindex 13e5447f97..9d67e04058 100644--- a/packages/core/src/Button/Button.doc.mjs+++ b/packages/core/src/Button/Button.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Button',@@ -172,7 +172,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'Button',displayName: 'Button',@@ -254,7 +254,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'action trigger w/ 4 variants, 3 sizes, loading state',usage: {diff --git a/packages/core/src/Button/Button.tsx b/packages/core/src/Button/Button.tsxindex b492e28783..8e75e397cc 100644--- a/packages/core/src/Button/Button.tsx+++ b/packages/core/src/Button/Button.tsx@@ -13,7 +13,7 @@* - /packages/core/src/Button/Button.test.tsx (tests for new/changed behavior)* - /packages/core/src/Button/index.ts (exports if types change)* - /apps/storybook/stories/Button.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/Button/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Button/ (showcase blocks)** Last synced props: label, variant, size, isDisabled, isLoading, isInterruptible, clickAction, icon, isIconOnly, width, children, tooltip, endContent, href, as, target, rel*/diff --git a/packages/core/src/ButtonGroup/ButtonGroup.doc.mjs b/packages/core/src/ButtonGroup/ButtonGroup.doc.mjsindex ada0d35e44..5e78146d97 100644--- a/packages/core/src/ButtonGroup/ButtonGroup.doc.mjs+++ b/packages/core/src/ButtonGroup/ButtonGroup.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ButtonGroup',@@ -54,7 +54,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {components: [{@@ -92,7 +92,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'connected button group w/ shared borders, outer-only radius, horizontal/vertical',usage: {diff --git a/packages/core/src/ButtonGroup/ButtonGroup.tsx b/packages/core/src/ButtonGroup/ButtonGroup.tsxindex feecacc19f..e0f8670563 100644--- a/packages/core/src/ButtonGroup/ButtonGroup.tsx+++ b/packages/core/src/ButtonGroup/ButtonGroup.tsx@@ -18,7 +18,7 @@* - /packages/core/src/ButtonGroup/ButtonGroup.test.tsx (tests)* - /packages/core/src/ButtonGroup/index.ts (exports if types change)* - /apps/storybook/stories/ButtonGroup.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/ButtonGroup/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/ButtonGroup/ (showcase blocks)*/import {useMemo, type ReactNode} from 'react';diff --git a/packages/core/src/Calendar/Calendar.doc.mjs b/packages/core/src/Calendar/Calendar.doc.mjsindex b943da1fb0..022c007d71 100644--- a/packages/core/src/Calendar/Calendar.doc.mjs+++ b/packages/core/src/Calendar/Calendar.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Calendar',@@ -117,7 +117,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'Calendar',displayName: 'Calendar',@@ -181,7 +181,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'month grid for picking a date or date range',usage: {diff --git a/packages/core/src/Calendar/Calendar.test.tsx b/packages/core/src/Calendar/Calendar.test.tsxindex d3d95bf440..51de968c42 100644--- a/packages/core/src/Calendar/Calendar.test.tsx+++ b/packages/core/src/Calendar/Calendar.test.tsx@@ -9,7 +9,7 @@* SYNC: When Calendar.tsx changes, update tests accordingly*/-import {describe, it, expect, vi, afterEach} from 'vitest';+import {describe, it, expect, vi, beforeEach, afterEach} from 'vitest';import {act, render, screen, within, waitFor} from '@testing-library/react';import userEvent from '@testing-library/user-event';import {getButton} from '../__tests__/fastRoleQueries';@@ -1038,8 +1038,20 @@ describe('Calendar', () => {// ─── Day-cell marker theming (#4286) ─────────────────────────describe('day-cell marker theme state', () => {- // Tests use the real "today" (as the existing aria-current tests do) since- // Calendar derives it internally. Helpers pin the exact ISO strings.+ // Pin "today" to a mid-month date so the ±2-day range helpers below stay+ // within a single rendered month. With the real clock, running near a month+ // boundary (e.g. the 1st) pushed today-2 into the previous month, so the+ // rendered grid didn't contain today's cell and the marker assertions+ // flaked. Fake only Date (timers stay real; these tests are synchronous).+ beforeEach(() => {+ vi.useFakeTimers({toFake: ['Date']});+ vi.setSystemTime(new Date(2026, 5, 15, 12, 0, 0));+ });+ afterEach(() => {+ vi.useRealTimers();+ });+ // Tests use the (now-pinned) "today" since Calendar derives it internally.+ // Helpers pin the exact ISO strings.function todayISO(): ISODateString {const n = new Date();return `${n.getFullYear()}-${String(n.getMonth() + 1).padStart(2, '0')}-${String(n.getDate()).padStart(2, '0')}` as ISODateString;diff --git a/packages/core/src/Calendar/Calendar.tsx b/packages/core/src/Calendar/Calendar.tsxindex fb7122ef24..e70ecca321 100644--- a/packages/core/src/Calendar/Calendar.tsx+++ b/packages/core/src/Calendar/Calendar.tsx@@ -14,7 +14,7 @@* - /packages/core/src/Calendar/Calendar.test.tsx (tests for new/changed behavior)* - /packages/core/src/Calendar/index.ts (exports if types change)* - /apps/storybook/stories/Calendar.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/Calendar/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Calendar/ (showcase blocks)*/import {diff --git a/packages/core/src/Card/Card.doc.mjs b/packages/core/src/Card/Card.doc.mjsindex 486a684d4f..53718e3e3f 100644--- a/packages/core/src/Card/Card.doc.mjs+++ b/packages/core/src/Card/Card.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Card',@@ -103,7 +103,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'Card',displayName: 'Card',@@ -151,7 +151,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'bordered container for DISCRETE items; NOT the default layout tool. Most content doesn\'t need a card.',usage: {diff --git a/packages/core/src/Card/Card.tsx b/packages/core/src/Card/Card.tsxindex 700177ebce..f00b13a0de 100644--- a/packages/core/src/Card/Card.tsx+++ b/packages/core/src/Card/Card.tsx@@ -12,7 +12,7 @@* - /packages/core/src/Card/Card.doc.mjs (props table, features)* - /packages/core/src/Card/index.ts (exports if types change)* - /apps/storybook/stories/Card.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/Card/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Card/ (showcase blocks)*/import type {ReactNode} from 'react';diff --git a/packages/core/src/Carousel/Carousel.doc.mjs b/packages/core/src/Carousel/Carousel.doc.mjsindex 1d8b8ed69c..16db6fb64b 100644--- a/packages/core/src/Carousel/Carousel.doc.mjs+++ b/packages/core/src/Carousel/Carousel.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Carousel',@@ -56,7 +56,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {usage: {description:@@ -81,7 +81,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'horizontal scroll container w/ fade edges, nav buttons, scroll-snap',usage: {diff --git a/packages/core/src/Carousel/Carousel.tsx b/packages/core/src/Carousel/Carousel.tsxindex 28620f49e1..3041fc857e 100644--- a/packages/core/src/Carousel/Carousel.tsx+++ b/packages/core/src/Carousel/Carousel.tsx@@ -17,7 +17,7 @@* SYNC: When modified, update:* - /packages/core/src/Carousel/index.ts (exports)* - /apps/storybook/stories/Carousel.stories.tsx- * - /packages/cli/templates/blocks/components/Carousel/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Carousel/ (showcase blocks)*/import {diff --git a/packages/core/src/Center/Center.doc.mjs b/packages/core/src/Center/Center.doc.mjsindex 64dcaa7b7d..46a88c2616 100644--- a/packages/core/src/Center/Center.doc.mjs+++ b/packages/core/src/Center/Center.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Center',@@ -94,7 +94,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'Center',displayName: 'Center',@@ -150,7 +150,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'centers content horizontally and/or vertically via flexbox',usage: {diff --git a/packages/core/src/Center/Center.tsx b/packages/core/src/Center/Center.tsxindex bf2c5e7edc..5e1ff92cfd 100644--- a/packages/core/src/Center/Center.tsx+++ b/packages/core/src/Center/Center.tsx@@ -12,7 +12,7 @@* - /packages/core/src/Center/Center.doc.mjs* - /packages/core/src/Center/Center.test.tsx* - /apps/storybook/stories/Center.stories.tsx- * - /packages/cli/templates/blocks/components/Center/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Center/ (showcase blocks)*/import type {ReactNode} from 'react';diff --git a/packages/core/src/Chat/Chat.doc.mjs b/packages/core/src/Chat/Chat.doc.mjsindex 06fde5d77b..79b45023bd 100644--- a/packages/core/src/Chat/Chat.doc.mjs+++ b/packages/core/src/Chat/Chat.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Chat',@@ -88,7 +88,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {usage: {description: 'Chat 是一组用于构建 AI 和人工聊天体验的可组合基础组件。组合 ChatLayout、ChatMessageList、ChatMessage、气泡、系统消息、工具调用、标记文本和 ChatComposer,可构建完整对话,而无需重新实现发送者感知布局、密度、滚动或编写器行为。',@@ -117,7 +117,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'AI chat components. Layout (MessageList>Message>Bubble+SystemMessage) + Composer (shell w/ slots, ContentEditable input w/ trigger menus, tokens, msg history, attachments)',usage: {diff --git a/packages/core/src/Chat/ChatComposer.doc.mjs b/packages/core/src/Chat/ChatComposer.doc.mjsindex cceea5a92c..fa43ee742b 100644--- a/packages/core/src/Chat/ChatComposer.doc.mjs+++ b/packages/core/src/Chat/ChatComposer.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ChatComposer',diff --git a/packages/core/src/Chat/ChatComposer.tsx b/packages/core/src/Chat/ChatComposer.tsxindex 0ceced9936..9ce2a9a108 100644--- a/packages/core/src/Chat/ChatComposer.tsx+++ b/packages/core/src/Chat/ChatComposer.tsx@@ -20,7 +20,7 @@* SYNC: When modified, update:* - /packages/core/src/Chat/Chat.doc.mjs* - /apps/storybook/stories/ChatComposer.stories.tsx- * - /packages/cli/templates/blocks/components/ChatComposer/ (block examples)+ * - /packages/cli/assets/templates/blocks/components/ChatComposer/ (block examples)*/import React, {diff --git a/packages/core/src/Chat/ChatComposerDrawer.doc.mjs b/packages/core/src/Chat/ChatComposerDrawer.doc.mjsindex 4e4d6850c3..7efc5f1c21 100644--- a/packages/core/src/Chat/ChatComposerDrawer.doc.mjs+++ b/packages/core/src/Chat/ChatComposerDrawer.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ChatComposerDrawer',diff --git a/packages/core/src/Chat/ChatComposerDrawer.tsx b/packages/core/src/Chat/ChatComposerDrawer.tsxindex 483d7439d9..162be235f0 100644--- a/packages/core/src/Chat/ChatComposerDrawer.tsx+++ b/packages/core/src/Chat/ChatComposerDrawer.tsx@@ -14,7 +14,7 @@** SYNC: When modified, update:* - /packages/core/src/Chat/index.ts (exports)- * - /packages/cli/templates/blocks/components/ChatComposerDrawer/ (block examples)+ * - /packages/cli/assets/templates/blocks/components/ChatComposerDrawer/ (block examples)*/import {useId, useState, type ReactNode} from 'react';diff --git a/packages/core/src/Chat/ChatComposerInput.doc.mjs b/packages/core/src/Chat/ChatComposerInput.doc.mjsindex 964176c920..8433c4b513 100644--- a/packages/core/src/Chat/ChatComposerInput.doc.mjs+++ b/packages/core/src/Chat/ChatComposerInput.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ChatComposerInput',diff --git a/packages/core/src/Chat/ChatComposerInput.tsx b/packages/core/src/Chat/ChatComposerInput.tsxindex 9c8bbe8321..1f7560a2cc 100644--- a/packages/core/src/Chat/ChatComposerInput.tsx+++ b/packages/core/src/Chat/ChatComposerInput.tsx@@ -20,7 +20,7 @@* SYNC: When modified, update:* - /packages/core/src/Chat/index.ts* - /apps/storybook/stories/ChatComposer.stories.tsx- * - /packages/cli/templates/blocks/components/ChatComposerInput/ (block examples)+ * - /packages/cli/assets/templates/blocks/components/ChatComposerInput/ (block examples)*/import {diff --git a/packages/core/src/Chat/ChatComposerTokenElement.doc.mjs b/packages/core/src/Chat/ChatComposerTokenElement.doc.mjsindex e02d8b260f..de92827c39 100644--- a/packages/core/src/Chat/ChatComposerTokenElement.doc.mjs+++ b/packages/core/src/Chat/ChatComposerTokenElement.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ChatComposerTokenElement',diff --git a/packages/core/src/Chat/ChatDictationButton.doc.mjs b/packages/core/src/Chat/ChatDictationButton.doc.mjsindex 159ccc8569..1f5ada74ab 100644--- a/packages/core/src/Chat/ChatDictationButton.doc.mjs+++ b/packages/core/src/Chat/ChatDictationButton.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ChatDictationButton',@@ -65,7 +65,7 @@ export const docs = {};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {usage: {description:@@ -87,7 +87,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'mic toggle btn for voice input in chat composer; idle=mic icon, listening=freq bars; pairs w/ useChatDictation',usage: {diff --git a/packages/core/src/Chat/ChatDictationButton.tsx b/packages/core/src/Chat/ChatDictationButton.tsxindex 451d0aa2ed..b3f05d8c8e 100644--- a/packages/core/src/Chat/ChatDictationButton.tsx+++ b/packages/core/src/Chat/ChatDictationButton.tsx@@ -15,7 +15,7 @@** SYNC: When modified, update:* - /packages/core/src/Chat/index.ts (exports)- * - /packages/cli/templates/blocks/components/ChatDictationButton/ (block examples)+ * - /packages/cli/assets/templates/blocks/components/ChatDictationButton/ (block examples)*/import React from 'react';diff --git a/packages/core/src/Chat/ChatLayout.doc.mjs b/packages/core/src/Chat/ChatLayout.doc.mjsindex 775acfbc31..734fd2b891 100644--- a/packages/core/src/Chat/ChatLayout.doc.mjs+++ b/packages/core/src/Chat/ChatLayout.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ChatLayout',diff --git a/packages/core/src/Chat/ChatLayout.tsx b/packages/core/src/Chat/ChatLayout.tsxindex fdc9d14cd7..b58707d439 100644--- a/packages/core/src/Chat/ChatLayout.tsx+++ b/packages/core/src/Chat/ChatLayout.tsx@@ -26,7 +26,7 @@* SYNC: When modified, update these files to stay in sync:* - /packages/core/src/Chat/index.ts (exports)* - /apps/storybook/stories/ChatLayout.stories.tsx- * - /packages/cli/templates/blocks/components/ChatLayout/ (block examples)+ * - /packages/cli/assets/templates/blocks/components/ChatLayout/ (block examples)*/import {type ReactNode, useMemo, useRef} from 'react';diff --git a/packages/core/src/Chat/ChatLayoutScrollButton.doc.mjs b/packages/core/src/Chat/ChatLayoutScrollButton.doc.mjsindex 37b31fc01e..9ca3b88984 100644--- a/packages/core/src/Chat/ChatLayoutScrollButton.doc.mjs+++ b/packages/core/src/Chat/ChatLayoutScrollButton.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ChatLayoutScrollButton',diff --git a/packages/core/src/Chat/ChatLayoutScrollButton.tsx b/packages/core/src/Chat/ChatLayoutScrollButton.tsxindex 33540cd48d..e6ca5ba5da 100644--- a/packages/core/src/Chat/ChatLayoutScrollButton.tsx+++ b/packages/core/src/Chat/ChatLayoutScrollButton.tsx@@ -13,7 +13,7 @@** SYNC: When modified, update:* - /packages/core/src/Chat/index.ts (exports)- * - /packages/cli/templates/blocks/components/ChatLayoutScrollButton/ (block examples)+ * - /packages/cli/assets/templates/blocks/components/ChatLayoutScrollButton/ (block examples)*/import React from 'react';diff --git a/packages/core/src/Chat/ChatMessage.doc.mjs b/packages/core/src/Chat/ChatMessage.doc.mjsindex cfd8dd3118..951239c126 100644--- a/packages/core/src/Chat/ChatMessage.doc.mjs+++ b/packages/core/src/Chat/ChatMessage.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ChatMessage',diff --git a/packages/core/src/Chat/ChatMessage.tsx b/packages/core/src/Chat/ChatMessage.tsxindex 0b37436a5e..d78752160b 100644--- a/packages/core/src/Chat/ChatMessage.tsx+++ b/packages/core/src/Chat/ChatMessage.tsx@@ -16,7 +16,7 @@* SYNC: When modified, update these files to stay in sync:* - /packages/core/src/Chat/index.ts (exports)* - /apps/storybook/stories/Chat.stories.tsx- * - /packages/cli/templates/blocks/components/ChatMessage/ (block examples)+ * - /packages/cli/assets/templates/blocks/components/ChatMessage/ (block examples)*/import {type ReactNode, useMemo, useId} from 'react';diff --git a/packages/core/src/Chat/ChatMessageBubble.doc.mjs b/packages/core/src/Chat/ChatMessageBubble.doc.mjsindex 6a16e101be..2feb58b2c3 100644--- a/packages/core/src/Chat/ChatMessageBubble.doc.mjs+++ b/packages/core/src/Chat/ChatMessageBubble.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ChatMessageBubble',diff --git a/packages/core/src/Chat/ChatMessageBubble.tsx b/packages/core/src/Chat/ChatMessageBubble.tsxindex c397377f54..b33e45e19d 100644--- a/packages/core/src/Chat/ChatMessageBubble.tsx+++ b/packages/core/src/Chat/ChatMessageBubble.tsx@@ -22,7 +22,7 @@* SYNC: When modified, update these files to stay in sync:* - /packages/core/src/Chat/index.ts (exports)* - /apps/storybook/stories/Chat.stories.tsx- * - /packages/cli/templates/blocks/components/ChatMessageBubble/ (block examples)+ * - /packages/cli/assets/templates/blocks/components/ChatMessageBubble/ (block examples)*/import type {ReactNode} from 'react';diff --git a/packages/core/src/Chat/ChatMessageList.doc.mjs b/packages/core/src/Chat/ChatMessageList.doc.mjsindex 02766f0317..276eb95705 100644--- a/packages/core/src/Chat/ChatMessageList.doc.mjs+++ b/packages/core/src/Chat/ChatMessageList.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ChatMessageList',diff --git a/packages/core/src/Chat/ChatMessageList.tsx b/packages/core/src/Chat/ChatMessageList.tsxindex d507a5774a..6eca3d8f31 100644--- a/packages/core/src/Chat/ChatMessageList.tsx+++ b/packages/core/src/Chat/ChatMessageList.tsx@@ -19,7 +19,7 @@* SYNC: When modified, update these files to stay in sync:* - /packages/core/src/Chat/index.ts (exports)* - /apps/storybook/stories/Chat.stories.tsx- * - /packages/cli/templates/blocks/components/ChatMessageList/ (block examples)+ * - /packages/cli/assets/templates/blocks/components/ChatMessageList/ (block examples)*/import {type ReactNode, useEffect, useMemo, useRef, useTransition} from 'react';diff --git a/packages/core/src/Chat/ChatMessageMetadata.doc.mjs b/packages/core/src/Chat/ChatMessageMetadata.doc.mjsindex 782f5acc4b..1ad0727f21 100644--- a/packages/core/src/Chat/ChatMessageMetadata.doc.mjs+++ b/packages/core/src/Chat/ChatMessageMetadata.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ChatMessageMetadata',diff --git a/packages/core/src/Chat/ChatSendButton.doc.mjs b/packages/core/src/Chat/ChatSendButton.doc.mjsindex 17fbafe1c0..5e90b254ab 100644--- a/packages/core/src/Chat/ChatSendButton.doc.mjs+++ b/packages/core/src/Chat/ChatSendButton.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ChatSendButton',diff --git a/packages/core/src/Chat/ChatSystemMessage.doc.mjs b/packages/core/src/Chat/ChatSystemMessage.doc.mjsindex 21c963433d..ca7fb293c2 100644--- a/packages/core/src/Chat/ChatSystemMessage.doc.mjs+++ b/packages/core/src/Chat/ChatSystemMessage.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ChatSystemMessage',diff --git a/packages/core/src/Chat/ChatSystemMessage.tsx b/packages/core/src/Chat/ChatSystemMessage.tsxindex 64a711a31d..712de67b8e 100644--- a/packages/core/src/Chat/ChatSystemMessage.tsx+++ b/packages/core/src/Chat/ChatSystemMessage.tsx@@ -16,7 +16,7 @@* SYNC: When modified, update these files to stay in sync:* - /packages/core/src/Chat/index.ts (exports)* - /apps/storybook/stories/Chat.stories.tsx- * - /packages/cli/templates/blocks/components/ChatSystemMessage/ (block examples)+ * - /packages/cli/assets/templates/blocks/components/ChatSystemMessage/ (block examples)*/import type {ReactNode} from 'react';diff --git a/packages/core/src/Chat/ChatTokenizedText.doc.mjs b/packages/core/src/Chat/ChatTokenizedText.doc.mjsindex ece0a35ead..7c7c020cf8 100644--- a/packages/core/src/Chat/ChatTokenizedText.doc.mjs+++ b/packages/core/src/Chat/ChatTokenizedText.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ChatTokenizedText',diff --git a/packages/core/src/Chat/ChatTokenizedText.tsx b/packages/core/src/Chat/ChatTokenizedText.tsxindex 9ffdf80ba6..c747085e8f 100644--- a/packages/core/src/Chat/ChatTokenizedText.tsx+++ b/packages/core/src/Chat/ChatTokenizedText.tsx@@ -14,7 +14,7 @@** SYNC: When modified, update:* - /packages/core/src/Chat/index.ts- * - /packages/cli/templates/blocks/components/ChatTokenizedText/ (block examples)+ * - /packages/cli/assets/templates/blocks/components/ChatTokenizedText/ (block examples)*/import React, {type ReactNode} from 'react';diff --git a/packages/core/src/Chat/ChatToolCalls.doc.mjs b/packages/core/src/Chat/ChatToolCalls.doc.mjsindex 0f63cc33da..8a888faea8 100644--- a/packages/core/src/Chat/ChatToolCalls.doc.mjs+++ b/packages/core/src/Chat/ChatToolCalls.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ChatToolCalls',@@ -73,7 +73,7 @@ export const docs = {],};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {usage: {description:@@ -97,7 +97,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'tool/function call display from LLM response; single=inline, multiple=collapsible summary w/ latest at surface',usage: {diff --git a/packages/core/src/CheckboxInput/CheckboxInput.doc.mjs b/packages/core/src/CheckboxInput/CheckboxInput.doc.mjsindex f41ebf37c8..7d90a67b81 100644--- a/packages/core/src/CheckboxInput/CheckboxInput.doc.mjs+++ b/packages/core/src/CheckboxInput/CheckboxInput.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'CheckboxInput',@@ -153,7 +153,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'CheckboxInput',displayName: 'Checkbox Input',@@ -211,7 +211,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'single on/off toggle for settings, terms, and opt-in choices',usage: {diff --git a/packages/core/src/CheckboxInput/CheckboxInput.tsx b/packages/core/src/CheckboxInput/CheckboxInput.tsxindex 0d36b73ea2..696c0f6862 100644--- a/packages/core/src/CheckboxInput/CheckboxInput.tsx+++ b/packages/core/src/CheckboxInput/CheckboxInput.tsx@@ -13,7 +13,7 @@* - /packages/core/src/CheckboxInput/CheckboxInput.test.tsx (tests for new/changed behavior)* - /packages/core/src/CheckboxInput/index.ts (exports if types change)* - /apps/storybook/stories/CheckboxInput.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/CheckboxInput/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/CheckboxInput/ (showcase blocks)*/import {diff --git a/packages/core/src/CheckboxList/CheckboxList.doc.mjs b/packages/core/src/CheckboxList/CheckboxList.doc.mjsindex 19ff13869f..358a7681c0 100644--- a/packages/core/src/CheckboxList/CheckboxList.doc.mjs+++ b/packages/core/src/CheckboxList/CheckboxList.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'CheckboxList',@@ -121,7 +121,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {usage: {description: 'CheckboxList shows a small group of checkboxes so users can turn several options on or off at once. Place it in settings pages, filter panels, or forms where every choice should be visible without scrolling. For a single standalone checkbox (like "I agree to the terms"), use CheckboxInput instead. If only one option can be picked, use RadioList. If the list is long enough to need searching or scrolling, use MultiSelector instead.',@@ -136,7 +136,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'Checkbox group component for multi-value selection. Collection mode (parent state) + standalone mode (per-item state).',diff --git a/packages/core/src/CheckboxList/CheckboxList.tsx b/packages/core/src/CheckboxList/CheckboxList.tsxindex 93d0867556..8c40dda8d5 100644--- a/packages/core/src/CheckboxList/CheckboxList.tsx+++ b/packages/core/src/CheckboxList/CheckboxList.tsx@@ -13,7 +13,7 @@* - /packages/core/src/CheckboxList/CheckboxList.test.tsx* - /packages/core/src/CheckboxList/index.ts* - /apps/storybook/stories/CheckboxList.stories.tsx- * - /packages/cli/templates/blocks/components/CheckboxList/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/CheckboxList/ (showcase blocks)*/import {diff --git a/packages/core/src/CheckboxList/CheckboxListItem.doc.mjs b/packages/core/src/CheckboxList/CheckboxListItem.doc.mjsindex 1d7ae7c743..8ecc88be88 100644--- a/packages/core/src/CheckboxList/CheckboxListItem.doc.mjs+++ b/packages/core/src/CheckboxList/CheckboxListItem.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'CheckboxListItem',diff --git a/packages/core/src/CheckboxList/CheckboxListItem.tsx b/packages/core/src/CheckboxList/CheckboxListItem.tsxindex 738715b085..e17ba5792b 100644--- a/packages/core/src/CheckboxList/CheckboxListItem.tsx+++ b/packages/core/src/CheckboxList/CheckboxListItem.tsx@@ -13,7 +13,7 @@* - /packages/core/src/CheckboxList/CheckboxList.test.tsx* - /packages/core/src/CheckboxList/index.ts* - /apps/storybook/stories/CheckboxList.stories.tsx- * - /packages/cli/templates/blocks/components/CheckboxList/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/CheckboxList/ (showcase blocks)*/import {use, useRef, type ReactNode} from 'react';diff --git a/packages/core/src/Citation/Citation.doc.mjs b/packages/core/src/Citation/Citation.doc.mjsindex 9dad0175fa..65f5b7bda5 100644--- a/packages/core/src/Citation/Citation.doc.mjs+++ b/packages/core/src/Citation/Citation.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Citation',@@ -95,7 +95,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'Inline reference to external source. Attribute info in AI responses, articles, or anywhere provenance needed.',diff --git a/packages/core/src/Citation/Citation.tsx b/packages/core/src/Citation/Citation.tsxindex f08adc75f1..db487510d7 100644--- a/packages/core/src/Citation/Citation.tsx+++ b/packages/core/src/Citation/Citation.tsx@@ -13,7 +13,7 @@* - /packages/core/src/Citation/Citation.doc.mjs (props table, features)* - /packages/core/src/Citation/Citation.test.tsx (tests for new/changed behavior)* - /apps/storybook/stories/Citation.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/Citation/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Citation/ (showcase blocks)*/import type React from 'react';diff --git a/packages/core/src/ClickableCard/ClickableCard.doc.mjs b/packages/core/src/ClickableCard/ClickableCard.doc.mjsindex 3c8ea072ed..a3acd9d41a 100644--- a/packages/core/src/ClickableCard/ClickableCard.doc.mjs+++ b/packages/core/src/ClickableCard/ClickableCard.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ClickableCard',displayName: 'Clickable Card',@@ -55,7 +55,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'Interactive card for navigation/action targets. Nested interactive elements work independently.',usage: {diff --git a/packages/core/src/ClickableCard/ClickableCard.tsx b/packages/core/src/ClickableCard/ClickableCard.tsxindex fdbcb821ff..644ce11d16 100644--- a/packages/core/src/ClickableCard/ClickableCard.tsx+++ b/packages/core/src/ClickableCard/ClickableCard.tsx@@ -12,9 +12,9 @@* - /packages/core/src/ClickableCard/ClickableCard.doc.mjs (props table, features)* - /packages/core/src/ClickableCard/index.ts (exports if types change)* - /apps/storybook/stories/ClickableCard.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/Card/ClickableCardShowcase.tsx (showcase block)- * - /packages/cli/templates/blocks/components/Card/ClickableCardWithNestedButton.tsx (block)- * - /packages/cli/templates/blocks/components/Card/ClickableCardElevated.tsx (block)+ * - /packages/cli/assets/templates/blocks/components/Card/ClickableCardShowcase.tsx (showcase block)+ * - /packages/cli/assets/templates/blocks/components/Card/ClickableCardWithNestedButton.tsx (block)+ * - /packages/cli/assets/templates/blocks/components/Card/ClickableCardElevated.tsx (block)** Composes Card for all visual styling (radius, padding, variants,* container tokens, theming). Adds an interactive wrapper withdiff --git a/packages/core/src/Code/Code.tsx b/packages/core/src/Code/Code.tsxindex 4f6da5bf6d..432e93c7ab 100644--- a/packages/core/src/Code/Code.tsx+++ b/packages/core/src/Code/Code.tsx@@ -10,8 +10,8 @@** SYNC: When modified, update:* - /packages/core/src/CodeBlock/index.ts (exports if types change)- * - /packages/cli/templates/blocks/components/Code/ (showcase blocks)- * - /packages/cli/templates/blocks/components/CodeBlock/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Code/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/CodeBlock/ (showcase blocks)*/import type {ReactNode} from 'react';diff --git a/packages/core/src/CodeBlock/Code.doc.mjs b/packages/core/src/CodeBlock/Code.doc.mjsindex a4aa5ae051..4445cf31d0 100644--- a/packages/core/src/CodeBlock/Code.doc.mjs+++ b/packages/core/src/CodeBlock/Code.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Code',diff --git a/packages/core/src/CodeBlock/CodeBlock.doc.mjs b/packages/core/src/CodeBlock/CodeBlock.doc.mjsindex a2bba973d0..3ad0960c53 100644--- a/packages/core/src/CodeBlock/CodeBlock.doc.mjs+++ b/packages/core/src/CodeBlock/CodeBlock.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'CodeBlock',displayName: 'Code Block',@@ -163,7 +163,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {usage: {description: 'CodeBlock displays syntax-highlighted code snippets with optional line numbers, copy button, and collapsible sections. Use CodeBlock for fenced multi-line code and Code for inline code within prose.',@@ -176,7 +176,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'syntax-highlighted code block via CSS Custom Highlight API (0-DOM overhead); span-based fallback; Code for inline code in prose',usage: {diff --git a/packages/core/src/Collapsible/Collapsible.doc.mjs b/packages/core/src/Collapsible/Collapsible.doc.mjsindex 2ee620df1b..dcf9ff1501 100644--- a/packages/core/src/Collapsible/Collapsible.doc.mjs+++ b/packages/core/src/Collapsible/Collapsible.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Collapsible',@@ -95,7 +95,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {usage: {description: 'Collapsible hides and reveals content behind a trigger button. Use it in settings panels, FAQ pages, or detail views to keep the page scannable while letting users drill into sections they care about. Wrap multiple collapsibles in CollapsibleGroup for accordion behavior.',@@ -112,7 +112,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'hide/reveal content behind a trigger; group for accordion behavior',usage: {diff --git a/packages/core/src/Collapsible/Collapsible.tsx b/packages/core/src/Collapsible/Collapsible.tsxindex 88e551cb1f..3ab7be7556 100644--- a/packages/core/src/Collapsible/Collapsible.tsx+++ b/packages/core/src/Collapsible/Collapsible.tsx@@ -24,7 +24,7 @@* - /packages/core/src/Collapsible/index.ts (exports)* - /packages/core/src/Collapsible/Collapsible.doc.mjs* - /apps/storybook/stories/Collapsible.stories.tsx- * - /packages/cli/templates/blocks/components/Collapsible/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Collapsible/ (showcase blocks)*/import {use, useId, type ReactNode} from 'react';diff --git a/packages/core/src/Collapsible/CollapsibleGroup.doc.mjs b/packages/core/src/Collapsible/CollapsibleGroup.doc.mjsindex 966fe6e69c..908fe03edf 100644--- a/packages/core/src/Collapsible/CollapsibleGroup.doc.mjs+++ b/packages/core/src/Collapsible/CollapsibleGroup.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'CollapsibleGroup',diff --git a/packages/core/src/Collapsible/CollapsibleGroup.tsx b/packages/core/src/Collapsible/CollapsibleGroup.tsxindex bae8c4a287..278ac59295 100644--- a/packages/core/src/Collapsible/CollapsibleGroup.tsx+++ b/packages/core/src/Collapsible/CollapsibleGroup.tsx@@ -24,7 +24,7 @@* - /packages/core/src/Collapsible/Collapsible.doc.mjs* - /packages/core/src/Collapsible/index.ts (exports)* - /apps/storybook/stories/Collapsible.stories.tsx- * - /packages/cli/templates/blocks/components/Collapsible/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Collapsible/ (showcase blocks)*/import React, {useCallback, useMemo, useState, type ReactNode} from 'react';diff --git a/packages/core/src/Collapsible/CollapsibleGroupContext.tsx b/packages/core/src/Collapsible/CollapsibleGroupContext.tsxindex c0914d164f..ed137fd42c 100644--- a/packages/core/src/Collapsible/CollapsibleGroupContext.tsx+++ b/packages/core/src/Collapsible/CollapsibleGroupContext.tsx@@ -13,7 +13,7 @@* SYNC: When modified, update these files to stay in sync:* - /packages/core/src/Collapsible/CollapsibleGroup.tsx (provider)* - /packages/core/src/Collapsible/Collapsible.doc.mjs- * - /packages/cli/templates/blocks/components/Collapsible/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Collapsible/ (showcase blocks)*/import {createContext} from 'react';diff --git a/packages/core/src/Collapsible/useCollapsible.doc.mjs b/packages/core/src/Collapsible/useCollapsible.doc.mjsindex 075f44047e..c9284d7ed4 100644--- a/packages/core/src/Collapsible/useCollapsible.doc.mjs+++ b/packages/core/src/Collapsible/useCollapsible.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').HookDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookDoc} */export const docs = {name: 'useCollapsible',displayName: 'useCollapsible',@@ -49,7 +49,7 @@ export const docs = {category: 'interaction',};-/** @type {import('../docs-types').HookTranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookTranslationDoc} */export const docsDense = {description: 'Encapsulates collapsible state machine. 3 modes: group-controlled (inside CollapsibleGroup), controlled (isOpen + onOpenChange), uncontrolled (self-managed w/ defaultIsOpen). Used internally by Card + Section.',paramDescriptions: {diff --git a/packages/core/src/CommandPalette/CommandPalette.doc.mjs b/packages/core/src/CommandPalette/CommandPalette.doc.mjsindex 98f8f4a5d5..4285798419 100644--- a/packages/core/src/CommandPalette/CommandPalette.doc.mjs+++ b/packages/core/src/CommandPalette/CommandPalette.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'CommandPalette',displayName: 'Command Palette',@@ -22,7 +22,7 @@ export const docs = {description: 'Root component. Manages open state, search, keyboard navigation, and composition slots.',// Intentionally a contained isInline preview, not playground.overlay: the// component stays visible on load and knobs stay live, whereas a real- // showModal() overlay makes the page inert — see PlaygroundConfig.overlay+ // showModal() overlay makes the page inert — see ComponentPlaygroundConfig.overlay// in docs-types.ts (#3657).playground: {defaults: {@@ -162,7 +162,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {usage: {description: 'CommandPalette is a searchable dialog for quick access to commands, navigation, and actions. Use it as a keyboard-driven launcher powered by SearchSource for filtering and selection.',@@ -175,7 +175,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'searchSource-driven command palette dialog; filtering, keyboard nav, grouping, selection; same SearchSource interface as Typeahead',diff --git a/packages/core/src/CommandPalette/CommandPalette.tsx b/packages/core/src/CommandPalette/CommandPalette.tsxindex d59806ce08..110775fbeb 100644--- a/packages/core/src/CommandPalette/CommandPalette.tsx+++ b/packages/core/src/CommandPalette/CommandPalette.tsx@@ -9,7 +9,7 @@** SYNC: When modified, update these files to stay in sync:* - /apps/storybook/stories/CommandPalette.stories.tsx- * - /packages/cli/templates/blocks/components/CommandPalette/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/CommandPalette/ (showcase blocks)*/import {diff --git a/packages/core/src/CommandPalette/CommandPaletteEmpty.doc.mjs b/packages/core/src/CommandPalette/CommandPaletteEmpty.doc.mjsindex 948e53d26f..631dac9425 100644--- a/packages/core/src/CommandPalette/CommandPaletteEmpty.doc.mjs+++ b/packages/core/src/CommandPalette/CommandPaletteEmpty.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'CommandPaletteEmpty',diff --git a/packages/core/src/CommandPalette/CommandPaletteEmpty.tsx b/packages/core/src/CommandPalette/CommandPaletteEmpty.tsxindex df41d46602..1904c0b880 100644--- a/packages/core/src/CommandPalette/CommandPaletteEmpty.tsx+++ b/packages/core/src/CommandPalette/CommandPaletteEmpty.tsx@@ -7,7 +7,7 @@* @position Sub-component; empty state shown when there are no items to display** SYNC: When modified, update:- * - /packages/cli/templates/blocks/components/CommandPalette/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/CommandPalette/ (showcase blocks)*/'use client';diff --git a/packages/core/src/CommandPalette/CommandPaletteFooter.doc.mjs b/packages/core/src/CommandPalette/CommandPaletteFooter.doc.mjsindex 7cebc42b8c..26060ae754 100644--- a/packages/core/src/CommandPalette/CommandPaletteFooter.doc.mjs+++ b/packages/core/src/CommandPalette/CommandPaletteFooter.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'CommandPaletteFooter',diff --git a/packages/core/src/CommandPalette/CommandPaletteFooter.tsx b/packages/core/src/CommandPalette/CommandPaletteFooter.tsxindex 1ca05a7ba8..7e2acc01bf 100644--- a/packages/core/src/CommandPalette/CommandPaletteFooter.tsx+++ b/packages/core/src/CommandPalette/CommandPaletteFooter.tsx@@ -7,7 +7,7 @@* @position Sub-component; footer with keyboard hints** SYNC: When modified, update:- * - /packages/cli/templates/blocks/components/CommandPalette/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/CommandPalette/ (showcase blocks)*/'use client';diff --git a/packages/core/src/CommandPalette/CommandPaletteGroup.doc.mjs b/packages/core/src/CommandPalette/CommandPaletteGroup.doc.mjsindex 59249de3b7..346af01449 100644--- a/packages/core/src/CommandPalette/CommandPaletteGroup.doc.mjs+++ b/packages/core/src/CommandPalette/CommandPaletteGroup.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'CommandPaletteGroup',diff --git a/packages/core/src/CommandPalette/CommandPaletteGroup.tsx b/packages/core/src/CommandPalette/CommandPaletteGroup.tsxindex c84650c54c..e0cac32fb4 100644--- a/packages/core/src/CommandPalette/CommandPaletteGroup.tsx+++ b/packages/core/src/CommandPalette/CommandPaletteGroup.tsx@@ -7,7 +7,7 @@* @position Sub-component; visual grouping with heading** SYNC: When modified, update:- * - /packages/cli/templates/blocks/components/CommandPalette/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/CommandPalette/ (showcase blocks)*/'use client';diff --git a/packages/core/src/CommandPalette/CommandPaletteInput.doc.mjs b/packages/core/src/CommandPalette/CommandPaletteInput.doc.mjsindex 0b6b952ad4..791582bd78 100644--- a/packages/core/src/CommandPalette/CommandPaletteInput.doc.mjs+++ b/packages/core/src/CommandPalette/CommandPaletteInput.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'CommandPaletteInput',diff --git a/packages/core/src/CommandPalette/CommandPaletteInput.tsx b/packages/core/src/CommandPalette/CommandPaletteInput.tsxindex e034fad680..40932920c3 100644--- a/packages/core/src/CommandPalette/CommandPaletteInput.tsx+++ b/packages/core/src/CommandPalette/CommandPaletteInput.tsx@@ -9,7 +9,7 @@** SYNC: When modified, update these files to stay in sync:* - /apps/storybook/stories/CommandPalette.stories.tsx- * - /packages/cli/templates/blocks/components/CommandPalette/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/CommandPalette/ (showcase blocks)*/import {useCallback, useEffect, useRef, type ReactNode} from 'react';diff --git a/packages/core/src/CommandPalette/CommandPaletteItem.doc.mjs b/packages/core/src/CommandPalette/CommandPaletteItem.doc.mjsindex c2f9b2bd71..35152c02b9 100644--- a/packages/core/src/CommandPalette/CommandPaletteItem.doc.mjs+++ b/packages/core/src/CommandPalette/CommandPaletteItem.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'CommandPaletteItem',diff --git a/packages/core/src/CommandPalette/CommandPaletteItem.tsx b/packages/core/src/CommandPalette/CommandPaletteItem.tsxindex 554682d6c4..6544b6a29e 100644--- a/packages/core/src/CommandPalette/CommandPaletteItem.tsx+++ b/packages/core/src/CommandPalette/CommandPaletteItem.tsx@@ -8,7 +8,7 @@* @position Sub-component; individual selectable item** SYNC: When modified, update:- * - /packages/cli/templates/blocks/components/CommandPalette/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/CommandPalette/ (showcase blocks)*/import {useCallback, useEffect, useMemo, useRef, type ReactNode} from 'react';diff --git a/packages/core/src/CommandPalette/CommandPaletteList.doc.mjs b/packages/core/src/CommandPalette/CommandPaletteList.doc.mjsindex ab744839eb..13984247b5 100644--- a/packages/core/src/CommandPalette/CommandPaletteList.doc.mjs+++ b/packages/core/src/CommandPalette/CommandPaletteList.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'CommandPaletteList',diff --git a/packages/core/src/CommandPalette/CommandPaletteList.tsx b/packages/core/src/CommandPalette/CommandPaletteList.tsxindex 3f863f244d..e6800b5528 100644--- a/packages/core/src/CommandPalette/CommandPaletteList.tsx+++ b/packages/core/src/CommandPalette/CommandPaletteList.tsx@@ -8,7 +8,7 @@** SYNC: When modified, update:* - /packages/core/src/CommandPalette/index.ts- * - /packages/cli/templates/blocks/components/CommandPalette/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/CommandPalette/ (showcase blocks)*/'use client';diff --git a/packages/core/src/ContextMenu/ContextMenu.doc.mjs b/packages/core/src/ContextMenu/ContextMenu.doc.mjsindex 481ba93d27..7dde47e18a 100644--- a/packages/core/src/ContextMenu/ContextMenu.doc.mjs+++ b/packages/core/src/ContextMenu/ContextMenu.doc.mjs@@ -1,5 +1,5 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ContextMenu',@@ -95,7 +95,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {usage: {description: '右键点击时在光标位置出现的上下文菜单。用于为特定元素或区域提供上下文操作,而不使 UI 杂乱。',@@ -109,7 +109,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'right-click context menu at cursor position',usage: {diff --git a/packages/core/src/ContextMenu/ContextMenu.tsx b/packages/core/src/ContextMenu/ContextMenu.tsxindex 6955b7e1a3..d9651c014f 100644--- a/packages/core/src/ContextMenu/ContextMenu.tsx+++ b/packages/core/src/ContextMenu/ContextMenu.tsx@@ -27,7 +27,7 @@* - /packages/core/src/ContextMenu/ContextMenu.test.tsx* - /packages/core/src/ContextMenu/index.ts* - /apps/storybook/stories/ContextMenu.stories.tsx- * - /packages/cli/templates/blocks/components/ContextMenu/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/ContextMenu/ (showcase blocks)*/import React, {diff --git a/packages/core/src/ContextMenu/ContextMenuItem.doc.mjs b/packages/core/src/ContextMenu/ContextMenuItem.doc.mjsindex c4658fe0c3..cfb3aa4a60 100644--- a/packages/core/src/ContextMenu/ContextMenuItem.doc.mjs+++ b/packages/core/src/ContextMenu/ContextMenuItem.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ContextMenuItem',diff --git a/packages/core/src/DateInput/DateInput.doc.mjs b/packages/core/src/DateInput/DateInput.doc.mjsindex 0cf12c71e4..7f46de22c3 100644--- a/packages/core/src/DateInput/DateInput.doc.mjs+++ b/packages/core/src/DateInput/DateInput.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'DateInput',@@ -258,7 +258,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'DateInput',displayName: 'Date Input',@@ -443,7 +443,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'text input w/ calendar popover for picking a date',usage: {diff --git a/packages/core/src/DateInput/DateInput.tsx b/packages/core/src/DateInput/DateInput.tsxindex 9a0087fccc..3170d1888c 100644--- a/packages/core/src/DateInput/DateInput.tsx+++ b/packages/core/src/DateInput/DateInput.tsx@@ -13,7 +13,7 @@* - /packages/core/src/DateInput/DateInput.test.tsx (tests for new/changed behavior)* - /packages/core/src/DateInput/index.ts (exports if types change)* - /apps/storybook/stories/DateInput.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/DateInput/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/DateInput/ (showcase blocks)*/import {diff --git a/packages/core/src/DateRangeInput/DateRangeInput.doc.mjs b/packages/core/src/DateRangeInput/DateRangeInput.doc.mjsindex 9972e32c4f..3ba5fbb347 100644--- a/packages/core/src/DateRangeInput/DateRangeInput.doc.mjs+++ b/packages/core/src/DateRangeInput/DateRangeInput.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'DateRangeInput',@@ -247,7 +247,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'date range picker with dual-month calendar popover and preset ranges',diff --git a/packages/core/src/DateRangeInput/DateRangeInput.tsx b/packages/core/src/DateRangeInput/DateRangeInput.tsxindex cd140cb64a..c1e3e4235e 100644--- a/packages/core/src/DateRangeInput/DateRangeInput.tsx+++ b/packages/core/src/DateRangeInput/DateRangeInput.tsx@@ -13,7 +13,7 @@* - /packages/core/src/DateRangeInput/DateRangeInput.test.tsx (tests for new/changed behavior)* - /packages/core/src/DateRangeInput/index.ts (exports if types change)* - /apps/storybook/stories/DateRangeInput.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/DateRangeInput/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/DateRangeInput/ (showcase blocks)*/import {useId, useCallback, useMemo, useOptimistic, useTransition} from 'react';diff --git a/packages/core/src/DateTimeInput/DateTimeInput.doc.mjs b/packages/core/src/DateTimeInput/DateTimeInput.doc.mjsindex ba35315dff..3263b399a0 100644--- a/packages/core/src/DateTimeInput/DateTimeInput.doc.mjs+++ b/packages/core/src/DateTimeInput/DateTimeInput.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'DateTimeInput',@@ -288,7 +288,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'DateTimeInput',displayName: 'Date Time Input',@@ -499,7 +499,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'combined date + time picker with calendar popover and time input',diff --git a/packages/core/src/DateTimeInput/DateTimeInput.tsx b/packages/core/src/DateTimeInput/DateTimeInput.tsxindex b3990e1352..df99e881d0 100644--- a/packages/core/src/DateTimeInput/DateTimeInput.tsx+++ b/packages/core/src/DateTimeInput/DateTimeInput.tsx@@ -13,7 +13,7 @@* - /packages/core/src/DateTimeInput/DateTimeInput.test.tsx (tests for new/changed behavior)* - /packages/core/src/DateTimeInput/index.ts (exports if types change)* - /apps/storybook/stories/DateTimeInput.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/DateTimeInput/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/DateTimeInput/ (showcase blocks)*/import {diff --git a/packages/core/src/Dialog/Dialog.doc.mjs b/packages/core/src/Dialog/Dialog.doc.mjsindex efb572768c..cd49804eed 100644--- a/packages/core/src/Dialog/Dialog.doc.mjs+++ b/packages/core/src/Dialog/Dialog.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Dialog',@@ -10,7 +10,7 @@ export const docs = {keywords: ["dialog","modal","popup","overlay","lightbox","alert","confirm","prompt","backdrop","focus trap","imperative"],// Intentionally a contained isInline preview, not playground.overlay: the// component stays visible on load and knobs stay live, whereas a real- // showModal() overlay makes the page inert — see PlaygroundConfig.overlay+ // showModal() overlay makes the page inert — see ComponentPlaygroundConfig.overlay// in docs-types.ts (#3657).playground: {defaults: {@@ -123,7 +123,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {usage: {description: 'Dialog displays a modal overlay that blocks interaction with the page until the user responds. Use it for delete confirmations, edit forms, terms acceptance, or any decision that should not be skipped.',@@ -145,7 +145,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'modal overlay that blocks page interaction until the user responds',usage: {diff --git a/packages/core/src/Dialog/Dialog.tsx b/packages/core/src/Dialog/Dialog.tsxindex dd63f2e61e..5b1d904c75 100644--- a/packages/core/src/Dialog/Dialog.tsx+++ b/packages/core/src/Dialog/Dialog.tsx@@ -13,7 +13,7 @@* - /packages/core/src/Dialog/Dialog.test.tsx (tests for new/changed behavior)* - /packages/core/src/Dialog/index.ts (exports if types change)* - /apps/storybook/stories/Dialog.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/Dialog/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Dialog/ (showcase blocks)*/import {diff --git a/packages/core/src/Dialog/DialogHeader.doc.mjs b/packages/core/src/Dialog/DialogHeader.doc.mjsindex 3b53bc34b9..876cde22a6 100644--- a/packages/core/src/Dialog/DialogHeader.doc.mjs+++ b/packages/core/src/Dialog/DialogHeader.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'DialogHeader',diff --git a/packages/core/src/Dialog/DialogHeader.tsx b/packages/core/src/Dialog/DialogHeader.tsxindex 7598550c0b..d32c2e88cd 100644--- a/packages/core/src/Dialog/DialogHeader.tsx+++ b/packages/core/src/Dialog/DialogHeader.tsx@@ -13,7 +13,7 @@* - /packages/core/src/Dialog/DialogHeader.test.tsx* - /packages/core/src/Dialog/index.ts* - /apps/storybook/stories/Dialog.stories.tsx- * - /packages/cli/templates/blocks/components/Dialog/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Dialog/ (showcase blocks)*/import {useEffect, useRef, type ReactNode} from 'react';diff --git a/packages/core/src/Dialog/useImperativeDialog.doc.mjs b/packages/core/src/Dialog/useImperativeDialog.doc.mjsindex ce30dee325..e79a94ee45 100644--- a/packages/core/src/Dialog/useImperativeDialog.doc.mjs+++ b/packages/core/src/Dialog/useImperativeDialog.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'useImperativeDialog',diff --git a/packages/core/src/Divider/Divider.doc.mjs b/packages/core/src/Divider/Divider.doc.mjsindex 7eeb3f2d96..ebd4c8cf3e 100644--- a/packages/core/src/Divider/Divider.doc.mjs+++ b/packages/core/src/Divider/Divider.doc.mjs@@ -2,7 +2,7 @@-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Divider',@@ -56,7 +56,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'Divider',displayName: 'Divider',@@ -106,7 +106,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'visual separator w/ optional label, using Astryx design tokens',usage: {diff --git a/packages/core/src/Divider/Divider.tsx b/packages/core/src/Divider/Divider.tsxindex 5f4911bde9..533419b13d 100644--- a/packages/core/src/Divider/Divider.tsx+++ b/packages/core/src/Divider/Divider.tsx@@ -12,7 +12,7 @@* - /packages/core/src/Divider/Divider.doc.mjs* - /packages/core/src/Divider/Divider.test.tsx* - /apps/storybook/stories/Divider.stories.tsx- * - /packages/cli/templates/blocks/components/Divider/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Divider/ (showcase blocks)*/import {useId, type ReactNode} from 'react';diff --git a/packages/core/src/DropdownMenu/DropdownMenu.doc.mjs b/packages/core/src/DropdownMenu/DropdownMenu.doc.mjsindex ee998afd75..cc26199231 100644--- a/packages/core/src/DropdownMenu/DropdownMenu.doc.mjs+++ b/packages/core/src/DropdownMenu/DropdownMenu.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'DropdownMenu',@@ -107,7 +107,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {usage: {description: 'A dropdown menu that displays a list of actionable items in a popup triggered by a button. Use to present action options as a next step in a process, or to offer contextual actions without cluttering the interface.',@@ -120,7 +120,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'dropdown menu for actionable items in popup',usage: {diff --git a/packages/core/src/DropdownMenu/DropdownMenu.tsx b/packages/core/src/DropdownMenu/DropdownMenu.tsxindex 42541a730c..c833a88df9 100644--- a/packages/core/src/DropdownMenu/DropdownMenu.tsx+++ b/packages/core/src/DropdownMenu/DropdownMenu.tsx@@ -19,7 +19,7 @@* - /packages/core/src/DropdownMenu/DropdownMenu.test.tsx* - /packages/core/src/DropdownMenu/index.ts* - /apps/storybook/stories/DropdownMenu.stories.tsx- * - /packages/cli/templates/blocks/components/DropdownMenu/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/DropdownMenu/ (showcase blocks)*/import React, {diff --git a/packages/core/src/DropdownMenu/DropdownMenuCheckboxItem.doc.mjs b/packages/core/src/DropdownMenu/DropdownMenuCheckboxItem.doc.mjsindex d30c310048..354b251434 100644--- a/packages/core/src/DropdownMenu/DropdownMenuCheckboxItem.doc.mjs+++ b/packages/core/src/DropdownMenu/DropdownMenuCheckboxItem.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'DropdownMenuCheckboxItem',diff --git a/packages/core/src/DropdownMenu/DropdownMenuItem.doc.mjs b/packages/core/src/DropdownMenu/DropdownMenuItem.doc.mjsindex 0f81f7f679..9050d46df6 100644--- a/packages/core/src/DropdownMenu/DropdownMenuItem.doc.mjs+++ b/packages/core/src/DropdownMenu/DropdownMenuItem.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'DropdownMenuItem',diff --git a/packages/core/src/DropdownMenu/DropdownMenuItem.tsx b/packages/core/src/DropdownMenu/DropdownMenuItem.tsxindex 0119a2598f..1864a67ec7 100644--- a/packages/core/src/DropdownMenu/DropdownMenuItem.tsx+++ b/packages/core/src/DropdownMenu/DropdownMenuItem.tsx@@ -20,7 +20,7 @@* - /packages/core/src/DropdownMenu/DropdownMenu.test.tsx* - /packages/core/src/DropdownMenu/index.ts* - /apps/storybook/stories/DropdownMenu.stories.tsx- * - /packages/cli/templates/blocks/components/DropdownMenu/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/DropdownMenu/ (showcase blocks)*/import {useCallback, type PointerEvent, type ReactNode} from 'react';diff --git a/packages/core/src/DropdownMenu/DropdownMenuRadioGroup.doc.mjs b/packages/core/src/DropdownMenu/DropdownMenuRadioGroup.doc.mjsindex 8e9ce72b13..1182567998 100644--- a/packages/core/src/DropdownMenu/DropdownMenuRadioGroup.doc.mjs+++ b/packages/core/src/DropdownMenu/DropdownMenuRadioGroup.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'DropdownMenuRadioGroup',diff --git a/packages/core/src/DropdownMenu/DropdownMenuRadioItem.doc.mjs b/packages/core/src/DropdownMenu/DropdownMenuRadioItem.doc.mjsindex 6b3e488fb7..c58d21ad19 100644--- a/packages/core/src/DropdownMenu/DropdownMenuRadioItem.doc.mjs+++ b/packages/core/src/DropdownMenu/DropdownMenuRadioItem.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'DropdownMenuRadioItem',diff --git a/packages/core/src/DropdownMenu/DropdownMenuSubMenu.doc.mjs b/packages/core/src/DropdownMenu/DropdownMenuSubMenu.doc.mjsindex 6d0f79d0fb..97d9b5e58a 100644--- a/packages/core/src/DropdownMenu/DropdownMenuSubMenu.doc.mjs+++ b/packages/core/src/DropdownMenu/DropdownMenuSubMenu.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'DropdownMenuSubMenu',diff --git a/packages/core/src/DropdownMenu/DropdownMenuSubMenu.tsx b/packages/core/src/DropdownMenu/DropdownMenuSubMenu.tsxindex 8535c7b27d..dee734f243 100644--- a/packages/core/src/DropdownMenu/DropdownMenuSubMenu.tsx+++ b/packages/core/src/DropdownMenu/DropdownMenuSubMenu.tsx@@ -35,7 +35,7 @@* - /packages/core/src/DropdownMenu/DropdownMenuSubMenu.test.tsx* - /packages/core/src/DropdownMenu/index.ts* - /apps/storybook/stories/DropdownMenu.stories.tsx- * - /packages/cli/templates/blocks/components/DropdownMenu/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/DropdownMenu/ (showcase blocks)*/import React, {diff --git a/packages/core/src/EmptyState/EmptyState.doc.mjs b/packages/core/src/EmptyState/EmptyState.doc.mjsindex 4366204e97..542ac6d393 100644--- a/packages/core/src/EmptyState/EmptyState.doc.mjs+++ b/packages/core/src/EmptyState/EmptyState.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'EmptyState',@@ -87,7 +87,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'EmptyState',displayName: 'Empty State',@@ -156,7 +156,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'placeholder when a content area has no data: icon, title, description, action buttons',diff --git a/packages/core/src/EmptyState/EmptyState.tsx b/packages/core/src/EmptyState/EmptyState.tsxindex 980b65155b..86e2e70b5c 100644--- a/packages/core/src/EmptyState/EmptyState.tsx+++ b/packages/core/src/EmptyState/EmptyState.tsx@@ -11,7 +11,7 @@* - /packages/core/src/EmptyState/EmptyState.test.tsx (tests for new/changed behavior)* - /packages/core/src/EmptyState/index.ts (exports if types change)* - /apps/storybook/stories/EmptyState.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/EmptyState/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/EmptyState/ (showcase blocks)*/import {type ReactNode, createElement} from 'react';diff --git a/packages/core/src/Field/Field.doc.mjs b/packages/core/src/Field/Field.doc.mjsindex c91d71b5e8..cffd91d05d 100644--- a/packages/core/src/Field/Field.doc.mjs+++ b/packages/core/src/Field/Field.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Field',@@ -196,7 +196,7 @@ function CustomSliderField() {],};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {usage: {description: 'Field is a low-level wrapper for custom, native, or third-party controls that do not already provide field label, description, and status UI. Use it when you need the Field shell around a control you own; use styled Astryx inputs like TextInput, Typeahead, and Select directly when they already expose label, description, and validation props.',@@ -212,7 +212,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'Low-level field shell for custom controls needing label/description/status.',diff --git a/packages/core/src/Field/Field.tsx b/packages/core/src/Field/Field.tsxindex 298c363fae..b45af03618 100644--- a/packages/core/src/Field/Field.tsx+++ b/packages/core/src/Field/Field.tsx@@ -13,7 +13,7 @@* - /packages/core/src/Field/Field.test.tsx (tests for new/changed behavior)* - /packages/core/src/Field/index.ts (exports if types change)* - /apps/storybook/stories/Field.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/Field/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Field/ (showcase blocks)*/import {type ReactNode, use} from 'react';diff --git a/packages/core/src/Field/FieldLabel.doc.mjs b/packages/core/src/Field/FieldLabel.doc.mjsindex 5df799e84b..3b8efeb4e2 100644--- a/packages/core/src/Field/FieldLabel.doc.mjs+++ b/packages/core/src/Field/FieldLabel.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'FieldLabel',diff --git a/packages/core/src/Field/FieldLabel.tsx b/packages/core/src/Field/FieldLabel.tsxindex 90fd5008d1..149a3e3d43 100644--- a/packages/core/src/Field/FieldLabel.tsx+++ b/packages/core/src/Field/FieldLabel.tsx@@ -11,7 +11,7 @@* SYNC: When modified, update these files to stay in sync:* - /packages/core/src/Field/Field.doc.mjs (props table, features, implementation notes)* - /packages/core/src/Field/index.ts (exports if types change)- * - /packages/cli/templates/blocks/components/Field/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Field/ (showcase blocks)* - /packages/core/locales/en.json (@astryx.field.required / @astryx.field.optional)*/diff --git a/packages/core/src/FieldStatus/FieldStatus.doc.mjs b/packages/core/src/FieldStatus/FieldStatus.doc.mjsindex c61342940e..d715b7ca9d 100644--- a/packages/core/src/FieldStatus/FieldStatus.doc.mjs+++ b/packages/core/src/FieldStatus/FieldStatus.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'FieldStatus',displayName: 'Field Status',@@ -64,7 +64,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'Validation feedback message for fields/custom controls. Supports error, warning, success and attached/detached variants. Announced via persistent live regions (assertive for errors, polite otherwise).',diff --git a/packages/core/src/FieldStatus/FieldStatus.tsx b/packages/core/src/FieldStatus/FieldStatus.tsxindex 07fec97bb5..d66f4c2af9 100644--- a/packages/core/src/FieldStatus/FieldStatus.tsx+++ b/packages/core/src/FieldStatus/FieldStatus.tsx@@ -11,7 +11,7 @@* - /packages/core/src/Field/Field.doc.mjs (compat docs when public API changes)* - /packages/core/src/FieldStatus/index.ts (exports if types change)* - /packages/core/src/Field/index.ts (compat re-export if public API changes)- * - /packages/cli/templates/blocks/components/FieldStatus/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/FieldStatus/ (showcase blocks)*/'use client';diff --git a/packages/core/src/FileInput/FileInput.doc.mjs b/packages/core/src/FileInput/FileInput.doc.mjsindex 9885939c03..3f21dafe2e 100644--- a/packages/core/src/FileInput/FileInput.doc.mjs+++ b/packages/core/src/FileInput/FileInput.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'FileInput',@@ -170,7 +170,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'FileInput',displayName: 'File Input',@@ -293,7 +293,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'File input w/ input/dropzone modes, validation, label, description, status.',usage: {diff --git a/packages/core/src/FileInput/FileInput.tsx b/packages/core/src/FileInput/FileInput.tsxindex 41b4da3874..7a352d63ae 100644--- a/packages/core/src/FileInput/FileInput.tsx+++ b/packages/core/src/FileInput/FileInput.tsx@@ -13,7 +13,7 @@* - /packages/core/src/FileInput/FileInput.test.tsx (tests for new/changed behavior)* - /packages/core/src/FileInput/index.ts (exports if types change)* - /apps/storybook/stories/FileInput.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/FileInput/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/FileInput/ (showcase blocks)*/import {diff --git a/packages/core/src/FormLayout/FormLayout.doc.mjs b/packages/core/src/FormLayout/FormLayout.doc.mjsindex cf2efd32ba..b7d38b5286 100644--- a/packages/core/src/FormLayout/FormLayout.doc.mjs+++ b/packages/core/src/FormLayout/FormLayout.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'FormLayout',@@ -52,7 +52,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'FormLayout',displayName: 'Form Layout',@@ -100,7 +100,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'Layout container for form fields w/ consistent spacing + direction.',diff --git a/packages/core/src/FormLayout/FormLayout.tsx b/packages/core/src/FormLayout/FormLayout.tsxindex db8b6cda3d..a5a4173c97 100644--- a/packages/core/src/FormLayout/FormLayout.tsx+++ b/packages/core/src/FormLayout/FormLayout.tsx@@ -12,17 +12,14 @@* - /packages/core/src/FormLayout/FormLayout.test.tsx (tests for new/changed behavior)* - /packages/core/src/FormLayout/index.ts (exports if types change)* - /apps/storybook/stories/FormLayout.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/FormLayout/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/FormLayout/ (showcase blocks)*/import {useMemo, type ReactNode} from 'react';import type {BaseProps} from '../BaseProps';import * as stylex from '@stylexjs/stylex';import {spacingVars} from '../theme/tokens.stylex';-import {- FormLayoutContext,- type FormLayoutDirection,-} from './FormLayoutContext';+import {FormLayoutContext, type FormLayoutDirection} from './FormLayoutContext';import {mergeProps} from '../utils';import {themeProps} from '../utils/themeProps';diff --git a/packages/core/src/Grid/Grid.doc.mjs b/packages/core/src/Grid/Grid.doc.mjsindex 53cc7e36ab..b520a8682b 100644--- a/packages/core/src/Grid/Grid.doc.mjs+++ b/packages/core/src/Grid/Grid.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Grid',@@ -101,7 +101,7 @@ export const docs = {],};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {usage: {description:@@ -117,7 +117,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'CSS Grid-based layout w/ responsive column support.',usage: {diff --git a/packages/core/src/Grid/Grid.tsx b/packages/core/src/Grid/Grid.tsxindex 4c67726e0e..20da4e9067 100644--- a/packages/core/src/Grid/Grid.tsx+++ b/packages/core/src/Grid/Grid.tsx@@ -12,7 +12,7 @@* - /packages/core/src/Grid/Grid.doc.mjs* - /packages/core/src/Grid/Grid.test.tsx* - /apps/storybook/stories/Grid.stories.tsx- * - /packages/cli/templates/blocks/components/Grid/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Grid/ (showcase blocks)*/import type {ReactNode} from 'react';diff --git a/packages/core/src/Grid/GridSpan.doc.mjs b/packages/core/src/Grid/GridSpan.doc.mjsindex 11ac332461..3a97a33e12 100644--- a/packages/core/src/Grid/GridSpan.doc.mjs+++ b/packages/core/src/Grid/GridSpan.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'GridSpan',diff --git a/packages/core/src/Grid/GridSpan.tsx b/packages/core/src/Grid/GridSpan.tsxindex a595afd149..b487a56547 100644--- a/packages/core/src/Grid/GridSpan.tsx+++ b/packages/core/src/Grid/GridSpan.tsx@@ -10,7 +10,7 @@* - /packages/core/src/Grid/Grid.doc.mjs* - /packages/core/src/Grid/Grid.test.tsx* - /apps/storybook/stories/Grid.stories.tsx- * - /packages/cli/templates/blocks/components/Grid/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Grid/ (showcase blocks)*/import type {ReactNode} from 'react';diff --git a/packages/core/src/HStack/HStack.tsx b/packages/core/src/HStack/HStack.tsxindex e081263bf2..4d51adcdf2 100644--- a/packages/core/src/HStack/HStack.tsx+++ b/packages/core/src/HStack/HStack.tsx@@ -9,7 +9,7 @@* SYNC: When modified, update these files to stay in sync:* - /packages/core/src/Stack/Stack.doc.mjs* - /packages/core/src/HStack/HStack.test.tsx- * - /packages/cli/templates/blocks/components/HStack/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/HStack/ (showcase blocks)*/import {Stack, type StackProps} from '../Stack/Stack';diff --git a/packages/core/src/Heading/Heading.tsx b/packages/core/src/Heading/Heading.tsxindex 7df9ba8dd9..b702a03eab 100644--- a/packages/core/src/Heading/Heading.tsx+++ b/packages/core/src/Heading/Heading.tsx@@ -13,8 +13,8 @@* - /packages/core/src/Heading/Heading.test.tsx (tests for new/changed behavior)* - /packages/core/src/Text/index.ts (exports if types change)* - /apps/storybook/stories/Text.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/Heading/ (showcase blocks)- * - /packages/cli/templates/blocks/components/Text/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Heading/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Text/ (showcase blocks)*/import {lazy, Suspense, useRef, type ReactNode} from 'react';diff --git a/packages/core/src/HoverCard/HoverCard.doc.mjs b/packages/core/src/HoverCard/HoverCard.doc.mjsindex be0f856c2d..5a3c6d58ea 100644--- a/packages/core/src/HoverCard/HoverCard.doc.mjs+++ b/packages/core/src/HoverCard/HoverCard.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'HoverCard',@@ -125,7 +125,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'HoverCard',displayName: 'Hover Card',@@ -234,7 +234,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'Hover/focus triggered overlay for displaying rich, interactive content anchored to trigger element.',diff --git a/packages/core/src/HoverCard/HoverCard.tsx b/packages/core/src/HoverCard/HoverCard.tsxindex 099b325e4e..13796e6ad1 100644--- a/packages/core/src/HoverCard/HoverCard.tsx+++ b/packages/core/src/HoverCard/HoverCard.tsx@@ -12,7 +12,7 @@* - /packages/core/src/HoverCard/HoverCard.test.tsx* - /packages/core/src/HoverCard/index.ts* - /apps/storybook/stories/HoverCard.stories.tsx- * - /packages/cli/templates/blocks/components/HoverCard/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/HoverCard/ (showcase blocks)*/import {useCallback, useRef, type ReactElement, type ReactNode} from 'react';diff --git a/packages/core/src/HoverCard/useHoverCard.doc.mjs b/packages/core/src/HoverCard/useHoverCard.doc.mjsindex 5578933234..f8261c0629 100644--- a/packages/core/src/HoverCard/useHoverCard.doc.mjs+++ b/packages/core/src/HoverCard/useHoverCard.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').HookDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookDoc} */export const docs = {name: 'useHoverCard',displayName: 'useHoverCard',@@ -43,7 +43,7 @@ export const docs = {category: 'interaction',};-/** @type {import('../docs-types').HookTranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookTranslationDoc} */export const docsDense = {description: 'Headless hover-triggered floating cards. Builds on useLayer w/ hover/focus intent, delays, safe hover behavior, aria-describedby. Use for rich previews when trigger/content rendering needs full control.',paramDescriptions: {diff --git a/packages/core/src/Icon/Icon.doc.mjs b/packages/core/src/Icon/Icon.doc.mjsindex 344f3e6fbf..e8d508e249 100644--- a/packages/core/src/Icon/Icon.doc.mjs+++ b/packages/core/src/Icon/Icon.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Icon',@@ -68,7 +68,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'Icon',displayName: 'Icon',@@ -124,7 +124,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'Renders icons w/ Astryx design system colors + sizes. Supports direct SVG icon components + semantic icon names that adapt to active theme.',diff --git a/packages/core/src/Icon/Icon.tsx b/packages/core/src/Icon/Icon.tsxindex 5a36c1aa39..707b748e14 100644--- a/packages/core/src/Icon/Icon.tsx+++ b/packages/core/src/Icon/Icon.tsx@@ -19,7 +19,7 @@* - /packages/core/src/Icon/Icon.test.tsx (tests for new/changed behavior)* - /packages/core/src/Icon/index.ts (exports if types change)* - /apps/storybook/stories/Icon.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/Icon/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Icon/ (showcase blocks)*/import React, {type ComponentType, type SVGProps} from 'react';diff --git a/packages/core/src/Icon/globalIconRegistry.tsx b/packages/core/src/Icon/globalIconRegistry.tsxindex 8c86169c0f..aa0f0c83fe 100644--- a/packages/core/src/Icon/globalIconRegistry.tsx+++ b/packages/core/src/Icon/globalIconRegistry.tsx@@ -23,7 +23,7 @@ import {defaultIcons} from './defaultIcons';* These represent the functional purpose of each icon, not a specific* visual representation. Themes provide the actual icon components.*/-// SYNC: packages/cli/docs/icons.doc.mjs — update USAGE_HINTS when adding names+// SYNC: packages/cli/assets/docs/icons.doc.mjs — update USAGE_HINTS when adding namesexport type IconName =| 'close'| 'chevronDown'diff --git a/packages/core/src/IconButton/IconButton.doc.mjs b/packages/core/src/IconButton/IconButton.doc.mjsindex a23d0c5ebf..ccad77a75b 100644--- a/packages/core/src/IconButton/IconButton.doc.mjs+++ b/packages/core/src/IconButton/IconButton.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'IconButton',@@ -84,7 +84,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'Button showing only an icon, no visible text. Use in toolbars, table rows, compact UI where space is tight + icon universally understood.',usage: {diff --git a/packages/core/src/IconButton/IconButton.tsx b/packages/core/src/IconButton/IconButton.tsxindex d9f9528f51..bc86433c6d 100644--- a/packages/core/src/IconButton/IconButton.tsx+++ b/packages/core/src/IconButton/IconButton.tsx@@ -13,7 +13,7 @@* - /packages/core/src/IconButton/IconButton.test.tsx (tests)* - /packages/core/src/IconButton/index.ts (exports if types change)* - /apps/storybook/stories/IconButton.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/IconButton/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/IconButton/ (showcase blocks)*/import type {ReactNode} from 'react';diff --git a/packages/core/src/InputGroup/InputGroup.doc.mjs b/packages/core/src/InputGroup/InputGroup.doc.mjsindex d7085b45df..a2c334dd57 100644--- a/packages/core/src/InputGroup/InputGroup.doc.mjs+++ b/packages/core/src/InputGroup/InputGroup.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'InputGroup',@@ -163,7 +163,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'groups input with prefix/suffix addons in a connected container',diff --git a/packages/core/src/InputGroup/InputGroup.tsx b/packages/core/src/InputGroup/InputGroup.tsxindex 54cd0af6e6..58ba87532d 100644--- a/packages/core/src/InputGroup/InputGroup.tsx+++ b/packages/core/src/InputGroup/InputGroup.tsx@@ -18,7 +18,7 @@* - /packages/core/src/InputGroup/InputGroup.test.tsx* - /packages/core/src/InputGroup/index.ts* - /apps/storybook/stories/InputGroup.stories.tsx- * - /packages/cli/templates/blocks/components/InputGroup/+ * - /packages/cli/assets/templates/blocks/components/InputGroup/*/import {useId, useMemo, type ReactNode} from 'react';diff --git a/packages/core/src/InputGroup/InputGroupText.doc.mjs b/packages/core/src/InputGroup/InputGroupText.doc.mjsindex 1991bba8d6..fc778d2aeb 100644--- a/packages/core/src/InputGroup/InputGroupText.doc.mjs+++ b/packages/core/src/InputGroup/InputGroupText.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'InputGroupText',diff --git a/packages/core/src/InputGroup/InputGroupText.tsx b/packages/core/src/InputGroup/InputGroupText.tsxindex a1254ba168..ed29960f3e 100644--- a/packages/core/src/InputGroup/InputGroupText.tsx+++ b/packages/core/src/InputGroup/InputGroupText.tsx@@ -11,7 +11,7 @@* SYNC: When modified, update these files to stay in sync:* - /packages/core/src/InputGroup/InputGroup.doc.mjs* - /packages/core/src/InputGroup/index.ts- * - /packages/cli/templates/blocks/components/InputGroup/+ * - /packages/cli/assets/templates/blocks/components/InputGroup/*/import React, {type ReactNode} from 'react';diff --git a/packages/core/src/Item/Item.doc.mjs b/packages/core/src/Item/Item.doc.mjsindex 5f20477893..0232f57dd6 100644--- a/packages/core/src/Item/Item.doc.mjs+++ b/packages/core/src/Item/Item.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Item',@@ -72,7 +72,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {components: [{@@ -127,7 +127,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'universal item primitive w/ startContent+label+description+endContent layout. building block for list items, menu items, contacts, notifications',usage: {diff --git a/packages/core/src/Item/Item.tsx b/packages/core/src/Item/Item.tsxindex 554c83ba66..f49d717c4d 100644--- a/packages/core/src/Item/Item.tsx+++ b/packages/core/src/Item/Item.tsx@@ -13,7 +13,7 @@* - /packages/core/src/Item/Item.test.tsx* - /packages/core/src/Item/index.ts* - /apps/storybook/stories/Item.stories.tsx- * - /packages/cli/templates/blocks/components/Item/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Item/ (showcase blocks)*/import {useRef, type ReactNode} from 'react';diff --git a/packages/core/src/Kbd/Kbd.doc.mjs b/packages/core/src/Kbd/Kbd.doc.mjsindex 86f7cc8d3d..992e7cdbcd 100644--- a/packages/core/src/Kbd/Kbd.doc.mjs+++ b/packages/core/src/Kbd/Kbd.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Kbd',@@ -47,7 +47,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'Kbd',displayName: 'Kbd',@@ -91,7 +91,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'Renders keyboard shortcut as styled key badges. Use in tooltips, menus + help text to show key combinations.',diff --git a/packages/core/src/Kbd/Kbd.tsx b/packages/core/src/Kbd/Kbd.tsxindex 292fb9c6e3..8bdf887521 100644--- a/packages/core/src/Kbd/Kbd.tsx+++ b/packages/core/src/Kbd/Kbd.tsx@@ -10,7 +10,7 @@** SYNC: When modified, update:* - /packages/core/src/Kbd/index.ts- * - /packages/cli/templates/blocks/components/Kbd/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Kbd/ (showcase blocks)*/import React, {useSyncExternalStore} from 'react';diff --git a/packages/core/src/Layer/Layer.doc.mjs b/packages/core/src/Layer/Layer.doc.mjsindex 3eb6c6257f..42c12d9980 100644--- a/packages/core/src/Layer/Layer.doc.mjs+++ b/packages/core/src/Layer/Layer.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Layer',displayName: 'Layer',@@ -63,7 +63,7 @@ export const docs = {],};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {usage: {description:diff --git a/packages/core/src/Layer/useLayer.doc.mjs b/packages/core/src/Layer/useLayer.doc.mjsindex 7d16b8190b..1d2da91337 100644--- a/packages/core/src/Layer/useLayer.doc.mjs+++ b/packages/core/src/Layer/useLayer.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').HookDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookDoc} */export const docs = {name: 'useLayer',displayName: 'useLayer',@@ -114,7 +114,7 @@ export const docs = {category: 'interaction',};-/** @type {import('../docs-types').HookTranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookTranslationDoc} */export const docsDense = {description:'Core positioning hook for overlay content via CSS Anchor Positioning + Popover API. Foundation for custom popovers, hover cards, tooltips, fixed-position layers.',diff --git a/packages/core/src/Layout/Layout.doc.mjs b/packages/core/src/Layout/Layout.doc.mjsindex 8db2081d51..3c05987fa4 100644--- a/packages/core/src/Layout/Layout.doc.mjs+++ b/packages/core/src/Layout/Layout.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Layout',@@ -114,7 +114,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {usage: {description:@@ -128,7 +128,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'Composable utilities + components for structured layouts w/ container/content separation pattern.',diff --git a/packages/core/src/Layout/Layout.tsx b/packages/core/src/Layout/Layout.tsxindex 8b6b6a5607..dfa1bf2bea 100644--- a/packages/core/src/Layout/Layout.tsx+++ b/packages/core/src/Layout/Layout.tsx@@ -14,7 +14,7 @@* SYNC: When modified, update these files to stay in sync:* - /packages/core/src/Layout/Layout.doc.mjs* - /apps/storybook/stories/Layout.stories.tsx- * - /packages/cli/templates/blocks/components/Layout/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Layout/ (showcase blocks)*/import {type ReactNode, useMemo} from 'react';diff --git a/packages/core/src/Layout/LayoutContent.doc.mjs b/packages/core/src/Layout/LayoutContent.doc.mjsindex 56a862a4e2..27a57cee88 100644--- a/packages/core/src/Layout/LayoutContent.doc.mjs+++ b/packages/core/src/Layout/LayoutContent.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'LayoutContent',diff --git a/packages/core/src/Layout/LayoutContent.tsx b/packages/core/src/Layout/LayoutContent.tsxindex cbaa275d0b..ab19322c7a 100644--- a/packages/core/src/Layout/LayoutContent.tsx+++ b/packages/core/src/Layout/LayoutContent.tsx@@ -12,7 +12,7 @@* SYNC: When modified, update these files to stay in sync:* - /packages/core/src/Layout/Layout.doc.mjs* - /apps/storybook/stories/Layout.stories.tsx- * - /packages/cli/templates/blocks/components/Layout/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Layout/ (showcase blocks)*/import type {AriaRole, ReactNode} from 'react';diff --git a/packages/core/src/Layout/LayoutFooter.doc.mjs b/packages/core/src/Layout/LayoutFooter.doc.mjsindex b5472e4555..334a30db02 100644--- a/packages/core/src/Layout/LayoutFooter.doc.mjs+++ b/packages/core/src/Layout/LayoutFooter.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'LayoutFooter',diff --git a/packages/core/src/Layout/LayoutFooter.tsx b/packages/core/src/Layout/LayoutFooter.tsxindex ae7a7bced8..41de49843c 100644--- a/packages/core/src/Layout/LayoutFooter.tsx+++ b/packages/core/src/Layout/LayoutFooter.tsx@@ -12,7 +12,7 @@* SYNC: When modified, update these files to stay in sync:* - /packages/core/src/Layout/Layout.doc.mjs* - /apps/storybook/stories/Layout.stories.tsx- * - /packages/cli/templates/blocks/components/Layout/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Layout/ (showcase blocks)*/import type {AriaRole, ReactNode} from 'react';diff --git a/packages/core/src/Layout/LayoutHeader.doc.mjs b/packages/core/src/Layout/LayoutHeader.doc.mjsindex ec7d0b0ae2..dcd4a0ce38 100644--- a/packages/core/src/Layout/LayoutHeader.doc.mjs+++ b/packages/core/src/Layout/LayoutHeader.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'LayoutHeader',diff --git a/packages/core/src/Layout/LayoutHeader.tsx b/packages/core/src/Layout/LayoutHeader.tsxindex 68d6206d6c..d5a3706b76 100644--- a/packages/core/src/Layout/LayoutHeader.tsx+++ b/packages/core/src/Layout/LayoutHeader.tsx@@ -12,7 +12,7 @@* SYNC: When modified, update these files to stay in sync:* - /packages/core/src/Layout/Layout.doc.mjs* - /apps/storybook/stories/Layout.stories.tsx- * - /packages/cli/templates/blocks/components/Layout/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Layout/ (showcase blocks)*/import type {AriaRole, ReactNode} from 'react';diff --git a/packages/core/src/Layout/LayoutPanel.doc.mjs b/packages/core/src/Layout/LayoutPanel.doc.mjsindex 6dd4068554..2efd0c5ebd 100644--- a/packages/core/src/Layout/LayoutPanel.doc.mjs+++ b/packages/core/src/Layout/LayoutPanel.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'LayoutPanel',diff --git a/packages/core/src/Layout/LayoutPanel.tsx b/packages/core/src/Layout/LayoutPanel.tsxindex e65c9f71c3..fda541d5a7 100644--- a/packages/core/src/Layout/LayoutPanel.tsx+++ b/packages/core/src/Layout/LayoutPanel.tsx@@ -12,7 +12,7 @@* SYNC: When modified, update these files to stay in sync:* - /packages/core/src/Layout/Layout.doc.mjs* - /apps/storybook/stories/Layout.stories.tsx- * - /packages/cli/templates/blocks/components/Layout/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Layout/ (showcase blocks)*/import type {AriaRole, ReactNode} from 'react';diff --git a/packages/core/src/Lightbox/Lightbox.doc.mjs b/packages/core/src/Lightbox/Lightbox.doc.mjsindex 95f22bb4e3..a849d1bd5d 100644--- a/packages/core/src/Lightbox/Lightbox.doc.mjs+++ b/packages/core/src/Lightbox/Lightbox.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Lightbox',@@ -85,7 +85,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'Lightbox',displayName: 'Lightbox',@@ -148,7 +148,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'Fullscreen overlay for viewing images and videos at full resolution with gallery navigation and zoom.',usage: {diff --git a/packages/core/src/Lightbox/Lightbox.tsx b/packages/core/src/Lightbox/Lightbox.tsxindex 68345cee54..40d9e5ab6d 100644--- a/packages/core/src/Lightbox/Lightbox.tsx+++ b/packages/core/src/Lightbox/Lightbox.tsx@@ -13,7 +13,7 @@* - /packages/core/src/Lightbox/Lightbox.test.tsx (tests for new/changed behavior)* - /packages/core/src/Lightbox/index.ts (exports if types change)* - /apps/storybook/stories/Lightbox.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/Lightbox/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Lightbox/ (showcase blocks)*/import {diff --git a/packages/core/src/Link/Link.doc.mjs b/packages/core/src/Link/Link.doc.mjsindex 5bb677250c..9f68cbad55 100644--- a/packages/core/src/Link/Link.doc.mjs+++ b/packages/core/src/Link/Link.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Link',@@ -143,7 +143,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'Link',displayName: 'Link',@@ -275,7 +275,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'Styled anchor links w/ multiple variants + polymorphic link infra for custom link components (Next.js Link, React Router Link, etc.).',diff --git a/packages/core/src/Link/Link.tsx b/packages/core/src/Link/Link.tsxindex da6cd285e3..3df8cde1b3 100644--- a/packages/core/src/Link/Link.tsx+++ b/packages/core/src/Link/Link.tsx@@ -13,7 +13,7 @@* - /packages/core/src/Link/Link.test.tsx (tests for new/changed behavior)* - /packages/core/src/Link/index.ts (exports if types change)* - /apps/storybook/stories/Link.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/Link/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Link/ (showcase blocks)*/import type {ReactNode} from 'react';diff --git a/packages/core/src/Link/LinkProvider.doc.mjs b/packages/core/src/Link/LinkProvider.doc.mjsindex f522ece8a3..9c78b8d46f 100644--- a/packages/core/src/Link/LinkProvider.doc.mjs+++ b/packages/core/src/Link/LinkProvider.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'LinkProvider',@@ -18,7 +18,7 @@ export const docs = {],};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'Wraps app to replace default <a> tag w/ framework-specific link component (e.g. Next.js Link) for client-side routing across all Astryx components.',usage: {diff --git a/packages/core/src/Link/LinkProvider.tsx b/packages/core/src/Link/LinkProvider.tsxindex d295148e98..347e9d6403 100644--- a/packages/core/src/Link/LinkProvider.tsx+++ b/packages/core/src/Link/LinkProvider.tsx@@ -22,8 +22,8 @@* SYNC: When modified, update these files to stay in sync:* - /packages/core/src/Link/index.ts* - /packages/core/src/Link/Link.doc.mjs- * - /packages/cli/templates/blocks/components/Link/ (showcase blocks)- * - /packages/cli/templates/blocks/components/LinkProvider/ (example blocks)+ * - /packages/cli/assets/templates/blocks/components/Link/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/LinkProvider/ (example blocks)*/import {useMemo, type ReactNode} from 'react';diff --git a/packages/core/src/List/List.doc.mjs b/packages/core/src/List/List.doc.mjsindex e29a7c0517..f24c3dfd29 100644--- a/packages/core/src/List/List.doc.mjs+++ b/packages/core/src/List/List.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'List',@@ -95,7 +95,7 @@ export const docs = {],},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {usage: {description:@@ -116,7 +116,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'Vertical list for rendering item collections w/ consistent spacing, dividers, marker styles. Composition model: List wraps ListItem sub-components.',diff --git a/packages/core/src/List/List.tsx b/packages/core/src/List/List.tsxindex 5af79dd793..0fe516ab6c 100644--- a/packages/core/src/List/List.tsx+++ b/packages/core/src/List/List.tsx@@ -13,7 +13,7 @@* - /packages/core/src/List/List.test.tsx* - /packages/core/src/List/index.ts* - /apps/storybook/stories/List.stories.tsx- * - /packages/cli/templates/blocks/components/List/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/List/ (showcase blocks)*/import {useId, useMemo, type ReactNode} from 'react';diff --git a/packages/core/src/List/ListItem.doc.mjs b/packages/core/src/List/ListItem.doc.mjsindex 1312442179..00322daefc 100644--- a/packages/core/src/List/ListItem.doc.mjs+++ b/packages/core/src/List/ListItem.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ListItem',diff --git a/packages/core/src/List/ListItem.tsx b/packages/core/src/List/ListItem.tsxindex 17e7625288..437aba5eb8 100644--- a/packages/core/src/List/ListItem.tsx+++ b/packages/core/src/List/ListItem.tsx@@ -16,7 +16,7 @@* - /packages/core/src/List/List.test.tsx* - /packages/core/src/List/index.ts* - /apps/storybook/stories/List.stories.tsx- * - /packages/cli/templates/blocks/components/List/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/List/ (showcase blocks)*/import {use, type ReactNode} from 'react';diff --git a/packages/core/src/Markdown/Markdown.doc.mjs b/packages/core/src/Markdown/Markdown.doc.mjsindex 70e694264d..6a3762e80f 100644--- a/packages/core/src/Markdown/Markdown.doc.mjs+++ b/packages/core/src/Markdown/Markdown.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Markdown',diff --git a/packages/core/src/MetadataList/MetadataList.doc.mjs b/packages/core/src/MetadataList/MetadataList.doc.mjsindex 6d159acd72..3e8c295fec 100644--- a/packages/core/src/MetadataList/MetadataList.doc.mjs+++ b/packages/core/src/MetadataList/MetadataList.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'MetadataList',@@ -89,7 +89,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {usage: {description:@@ -109,7 +109,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'label/value metadata display; column layout, collapse, orientation variants',usage: {diff --git a/packages/core/src/MetadataList/MetadataList.tsx b/packages/core/src/MetadataList/MetadataList.tsxindex 49b66d610b..15b1942693 100644--- a/packages/core/src/MetadataList/MetadataList.tsx+++ b/packages/core/src/MetadataList/MetadataList.tsx@@ -13,7 +13,7 @@* - /packages/core/src/MetadataList/MetadataList.test.tsx* - /packages/core/src/MetadataList/index.ts* - /apps/storybook/stories/MetadataList.stories.tsx- * - /packages/cli/templates/blocks/components/MetadataList/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/MetadataList/ (showcase blocks)*/import {Children, useId, useMemo, useState, type ReactNode} from 'react';diff --git a/packages/core/src/MetadataList/MetadataListItem.doc.mjs b/packages/core/src/MetadataList/MetadataListItem.doc.mjsindex 24c47cf3d5..3d3c26452a 100644--- a/packages/core/src/MetadataList/MetadataListItem.doc.mjs+++ b/packages/core/src/MetadataList/MetadataListItem.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'MetadataListItem',diff --git a/packages/core/src/MetadataList/MetadataListItem.tsx b/packages/core/src/MetadataList/MetadataListItem.tsxindex 76e442f6ac..6bfffa953e 100644--- a/packages/core/src/MetadataList/MetadataListItem.tsx+++ b/packages/core/src/MetadataList/MetadataListItem.tsx@@ -13,7 +13,7 @@* - /packages/core/src/MetadataList/MetadataList.test.tsx* - /packages/core/src/MetadataList/index.ts* - /apps/storybook/stories/MetadataList.stories.tsx- * - /packages/cli/templates/blocks/components/MetadataList/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/MetadataList/ (showcase blocks)*/import {use, type ReactNode} from 'react';diff --git a/packages/core/src/MobileNav/MobileNav.doc.mjs b/packages/core/src/MobileNav/MobileNav.doc.mjsindex 6cf42da16b..c91f14c9e2 100644--- a/packages/core/src/MobileNav/MobileNav.doc.mjs+++ b/packages/core/src/MobileNav/MobileNav.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'MobileNav',@@ -109,7 +109,7 @@ export const docs = {],},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'MobileNav',displayName: 'Mobile Nav',@@ -171,7 +171,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'Slide-out drawer overlay for mobile navigation. Mobile counterpart to SideNav; accepts same children (SideNavSection, SideNavItem, or any ReactNode).',diff --git a/packages/core/src/MobileNav/MobileNav.tsx b/packages/core/src/MobileNav/MobileNav.tsxindex 12daba71aa..753e5fd957 100644--- a/packages/core/src/MobileNav/MobileNav.tsx+++ b/packages/core/src/MobileNav/MobileNav.tsx@@ -23,7 +23,7 @@** SYNC: When modified, update these files to stay in sync:* - /packages/core/src/MobileNav/index.ts (exports if types change)- * - /packages/cli/templates/blocks/components/MobileNav/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/MobileNav/ (showcase blocks)*/import {diff --git a/packages/core/src/MoreMenu/MoreMenu.doc.mjs b/packages/core/src/MoreMenu/MoreMenu.doc.mjsindex 3925c10c74..32e478ca9f 100644--- a/packages/core/src/MoreMenu/MoreMenu.doc.mjs+++ b/packages/core/src/MoreMenu/MoreMenu.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'MoreMenu',@@ -77,7 +77,7 @@ export const docs = {],},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'MoreMenu',displayName: 'More Menu',@@ -142,7 +142,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'Overflow menu w/ three-dot icon trigger. Convenience wrapper composing icon-only Button w/ dropdown menu, eliminating boilerplate for state management, positioning, accessibility.',diff --git a/packages/core/src/MoreMenu/MoreMenu.tsx b/packages/core/src/MoreMenu/MoreMenu.tsxindex 9f3aa3df7f..568988d004 100644--- a/packages/core/src/MoreMenu/MoreMenu.tsx+++ b/packages/core/src/MoreMenu/MoreMenu.tsx@@ -15,7 +15,7 @@* - /packages/core/src/MoreMenu/MoreMenu.test.tsx* - /packages/core/src/MoreMenu/index.ts* - /apps/storybook/stories/MoreMenu.stories.tsx- * - /packages/cli/templates/blocks/components/MoreMenu/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/MoreMenu/ (showcase blocks)*/import type {ReactNode} from 'react';diff --git a/packages/core/src/MultiSelector/MultiSelector.doc.mjs b/packages/core/src/MultiSelector/MultiSelector.doc.mjsindex 2239c882e9..bc2ae90f04 100644--- a/packages/core/src/MultiSelector/MultiSelector.doc.mjs+++ b/packages/core/src/MultiSelector/MultiSelector.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'MultiSelector',@@ -234,7 +234,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {components: [{@@ -316,7 +316,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'checkbox multi-select dropdown for finite sets like column toggles or filter facets',diff --git a/packages/core/src/MultiSelector/MultiSelector.tsx b/packages/core/src/MultiSelector/MultiSelector.tsxindex d6a1e430a9..241c982462 100644--- a/packages/core/src/MultiSelector/MultiSelector.tsx+++ b/packages/core/src/MultiSelector/MultiSelector.tsx@@ -13,7 +13,7 @@* - /packages/core/src/MultiSelector/MultiSelector.test.tsx* - /packages/core/src/MultiSelector/index.ts* - /apps/storybook/stories/InputGroup.stories.tsx- * - /packages/cli/templates/blocks/components/MultiSelector/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/MultiSelector/ (showcase blocks)*/import React, {diff --git a/packages/core/src/NavIcon/NavIcon.doc.mjs b/packages/core/src/NavIcon/NavIcon.doc.mjsindex 0c930f9672..83ebd40a92 100644--- a/packages/core/src/NavIcon/NavIcon.doc.mjs+++ b/packages/core/src/NavIcon/NavIcon.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'NavIcon',@@ -36,7 +36,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'NavIcon',displayName: 'Nav Icon',@@ -65,7 +65,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'Circular icon container w/ accent background for navigation headers.',diff --git a/packages/core/src/NavIcon/NavIcon.tsx b/packages/core/src/NavIcon/NavIcon.tsxindex 1e736652c2..fe22ced7ea 100644--- a/packages/core/src/NavIcon/NavIcon.tsx+++ b/packages/core/src/NavIcon/NavIcon.tsx@@ -11,7 +11,7 @@* - /packages/core/src/NavIcon/NavIcon.test.tsx* - /packages/core/src/NavIcon/index.ts* - /apps/storybook/stories/TopNav.stories.tsx- * - /packages/cli/templates/blocks/components/NavIcon/NavIconShowcase.tsx+ * - /packages/cli/assets/templates/blocks/components/NavIcon/NavIconShowcase.tsx*/import type {ReactNode} from 'react';diff --git a/packages/core/src/NavMenu/NavMenu.doc.mjs b/packages/core/src/NavMenu/NavMenu.doc.mjsindex d9e92458de..0b8feb620c 100644--- a/packages/core/src/NavMenu/NavMenu.doc.mjs+++ b/packages/core/src/NavMenu/NavMenu.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'NavHeadingMenu',@@ -40,7 +40,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'Accessible menu container + items for nav heading popovers. NavHeadingMenu = role="menu" w/ keyboard nav; NavHeadingMenuItem renders selectable items.',usage: {diff --git a/packages/core/src/NumberInput/NumberInput.doc.mjs b/packages/core/src/NumberInput/NumberInput.doc.mjsindex 72dd7e5d52..aeb333cf09 100644--- a/packages/core/src/NumberInput/NumberInput.doc.mjs+++ b/packages/core/src/NumberInput/NumberInput.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'NumberInput',@@ -197,7 +197,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'NumberInput',displayName: 'Number Input',@@ -384,7 +384,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'Number input component for collecting numeric user input w/ validation.',usage: {diff --git a/packages/core/src/NumberInput/NumberInput.tsx b/packages/core/src/NumberInput/NumberInput.tsxindex f51b000927..6f2bb7be02 100644--- a/packages/core/src/NumberInput/NumberInput.tsx+++ b/packages/core/src/NumberInput/NumberInput.tsx@@ -13,7 +13,7 @@* - /packages/core/src/NumberInput/NumberInput.test.tsx (tests for new/changed behavior)* - /packages/core/src/NumberInput/index.ts (exports if types change)* - /apps/storybook/stories/NumberInput.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/NumberInput/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/NumberInput/ (showcase blocks)*/import {diff --git a/packages/core/src/Outline/Outline.doc.mjs b/packages/core/src/Outline/Outline.doc.mjsindex bd162dd5b4..39c4ed3b43 100644--- a/packages/core/src/Outline/Outline.doc.mjs+++ b/packages/core/src/Outline/Outline.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Outline',@@ -236,7 +236,7 @@ function FlashOnArrival() {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'Outline',displayName: 'Outline',@@ -334,7 +334,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'Document outline/table-of-contents nav with sliding indicator track. Flat items array {id,label,level}; anchor links; density variant (default/compact); uncontrolled scroll-spy by scroll position (last heading past its resting line = offset + its own scroll-margin-top; first item at top, last at bottom); controlled with activeId; smooth-scroll on click that pins the active item until the next manual scroll. Single tab stop (roving tabindex): Arrow keys move, Home/End jump, Enter/Space activate. onNavigateStart/onNavigateEnd fire around the scroll. Scroll scoping via offset / scrollContainerRef / hasScrollOnClick.',diff --git a/packages/core/src/Outline/Outline.tsx b/packages/core/src/Outline/Outline.tsxindex 7b00517732..592bd61bab 100644--- a/packages/core/src/Outline/Outline.tsx+++ b/packages/core/src/Outline/Outline.tsx@@ -20,7 +20,7 @@* - /packages/core/src/Outline/Outline.doc.mjs* - /packages/core/src/Outline/index.ts* - /apps/storybook/stories/Outline.stories.tsx- * - /packages/cli/templates/blocks/components/Outline/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Outline/ (showcase blocks)*/import {useRef} from 'react';diff --git a/packages/core/src/OverflowList/OverflowList.doc.mjs b/packages/core/src/OverflowList/OverflowList.doc.mjsindex 4c8c100e44..22ad8dbfb8 100644--- a/packages/core/src/OverflowList/OverflowList.doc.mjs+++ b/packages/core/src/OverflowList/OverflowList.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'OverflowList',@@ -112,7 +112,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'OverflowList',displayName: 'Overflow List',@@ -188,7 +188,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'horizontal list w/ overflow indicator: hides items beyond container width',usage: {diff --git a/packages/core/src/OverflowList/OverflowList.tsx b/packages/core/src/OverflowList/OverflowList.tsxindex 94b0084702..3001d728a3 100644--- a/packages/core/src/OverflowList/OverflowList.tsx+++ b/packages/core/src/OverflowList/OverflowList.tsx@@ -15,7 +15,7 @@** SYNC: When modified, update these files to stay in sync:* - /packages/core/src/OverflowList/index.ts (exports if types change)- * - /packages/cli/templates/blocks/components/OverflowList/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/OverflowList/ (showcase blocks)*/import {type ReactNode, type ReactElement, Children} from 'react';diff --git a/packages/core/src/Overlay/Overlay.doc.mjs b/packages/core/src/Overlay/Overlay.doc.mjsindex 4693105614..f33e309294 100644--- a/packages/core/src/Overlay/Overlay.doc.mjs+++ b/packages/core/src/Overlay/Overlay.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Overlay',@@ -188,7 +188,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'layered content over media/card surfaces with scrim + hover/focus/controlled reveal',usage: {diff --git a/packages/core/src/Pagination/Pagination.doc.mjs b/packages/core/src/Pagination/Pagination.doc.mjsindex cfe251129f..452fcfe85b 100644--- a/packages/core/src/Pagination/Pagination.doc.mjs+++ b/packages/core/src/Pagination/Pagination.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Pagination',@@ -131,7 +131,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'Pagination',displayName: 'Pagination',@@ -251,7 +251,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'Standalone pagination controls for navigating content pages. Supports multiple display variants + works w/ known totals or cursor-based pagination.',diff --git a/packages/core/src/Pagination/Pagination.tsx b/packages/core/src/Pagination/Pagination.tsxindex 0860b420ea..66ba691bcf 100644--- a/packages/core/src/Pagination/Pagination.tsx+++ b/packages/core/src/Pagination/Pagination.tsx@@ -13,7 +13,7 @@* - /packages/core/src/Pagination/Pagination.test.tsx (tests for new/changed behavior)* - /packages/core/src/Pagination/index.ts (exports if types change)* - /apps/storybook/stories/Pagination.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/Pagination/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Pagination/ (showcase blocks)** Last synced props: page, onChange, changeAction, totalItems, totalPages, hasMore,* pageSize, pageSizeOptions, onPageSizeChange, variant, siblingCount, size, isDisabled,diff --git a/packages/core/src/Popover/Popover.doc.mjs b/packages/core/src/Popover/Popover.doc.mjsindex 0579c20bc4..f5537d2ff1 100644--- a/packages/core/src/Popover/Popover.doc.mjs+++ b/packages/core/src/Popover/Popover.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Popover',@@ -145,7 +145,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'Popover',displayName: 'Popover',@@ -275,7 +275,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'Click-triggered popover displaying interactive content anchored to trigger element; implements button+dialog ARIA pattern.',diff --git a/packages/core/src/Popover/Popover.tsx b/packages/core/src/Popover/Popover.tsxindex 4bce0691b9..aedefaf312 100644--- a/packages/core/src/Popover/Popover.tsx+++ b/packages/core/src/Popover/Popover.tsx@@ -14,7 +14,7 @@* - /packages/core/src/Popover/Popover.test.tsx* - /packages/core/src/Popover/index.ts* - /apps/storybook/stories/Popover.stories.tsx- * - /packages/cli/templates/blocks/components/Popover/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Popover/ (showcase blocks)*/import React, {diff --git a/packages/core/src/Popover/usePopover.doc.mjs b/packages/core/src/Popover/usePopover.doc.mjsindex 90b74a964e..c7f3906af9 100644--- a/packages/core/src/Popover/usePopover.doc.mjs+++ b/packages/core/src/Popover/usePopover.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').HookDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookDoc} */export const docs = {name: 'usePopover',displayName: 'usePopover',@@ -46,7 +46,7 @@ export const docs = {category: 'interaction',};-/** @type {import('../docs-types').HookTranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookTranslationDoc} */export const docsDense = {description: 'Headless click-triggered popovers w/ focus trap, auto-focus, light dismiss, Escape, optional hidden close button. Use for custom interactive floating content needing keyboard nav.',paramDescriptions: {diff --git a/packages/core/src/PowerSearch/PowerSearch.doc.mjs b/packages/core/src/PowerSearch/PowerSearch.doc.mjsindex 6327f816a6..44377f0b9e 100644--- a/packages/core/src/PowerSearch/PowerSearch.doc.mjs+++ b/packages/core/src/PowerSearch/PowerSearch.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'PowerSearch',@@ -172,7 +172,7 @@ export const docs = {// See .context/decisions/dense-compression-protocol.md// --------------------------------------------------------/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'PowerSearch',displayName: 'Power Search',@@ -319,7 +319,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'Structured filter bar where each token represents filter (field+operator+value). Users select fields from typeahead dropdown, configure operators+values in edit popover, manage filters as removable tokens.',diff --git a/packages/core/src/PowerSearch/PowerSearch.tsx b/packages/core/src/PowerSearch/PowerSearch.tsxindex 2192d5d584..f286e90f9e 100644--- a/packages/core/src/PowerSearch/PowerSearch.tsx+++ b/packages/core/src/PowerSearch/PowerSearch.tsx@@ -11,7 +11,7 @@** SYNC: When modified, update:* - /packages/core/src/PowerSearch/index.ts- * - /packages/cli/templates/blocks/components/PowerSearch/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/PowerSearch/ (showcase blocks)*/import React, {diff --git a/packages/core/src/ProgressBar/ProgressBar.doc.mjs b/packages/core/src/ProgressBar/ProgressBar.doc.mjsindex e789d9fbf9..7a87f950d7 100644--- a/packages/core/src/ProgressBar/ProgressBar.doc.mjs+++ b/packages/core/src/ProgressBar/ProgressBar.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ProgressBar',@@ -90,7 +90,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'ProgressBar',displayName: 'Progress Bar',@@ -177,7 +177,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'Progress bar for displaying determinate or indeterminate progress.',diff --git a/packages/core/src/ProgressBar/ProgressBar.tsx b/packages/core/src/ProgressBar/ProgressBar.tsxindex 2263847651..5a9a32b10a 100644--- a/packages/core/src/ProgressBar/ProgressBar.tsx+++ b/packages/core/src/ProgressBar/ProgressBar.tsx@@ -13,7 +13,7 @@* - /packages/core/src/ProgressBar/ProgressBar.test.tsx (tests for new/changed behavior)* - /packages/core/src/ProgressBar/index.ts (exports if types change)* - /apps/storybook/stories/ProgressBar.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/ProgressBar/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/ProgressBar/ (showcase blocks)*/import {useId} from 'react';diff --git a/packages/core/src/RadioList/RadioList.doc.mjs b/packages/core/src/RadioList/RadioList.doc.mjsindex dfbb4a7683..44c1bae2d5 100644--- a/packages/core/src/RadioList/RadioList.doc.mjs+++ b/packages/core/src/RadioList/RadioList.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'RadioList',@@ -149,7 +149,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {usage: {description:@@ -171,7 +171,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'Radio group component for single-value selection from list of options.',diff --git a/packages/core/src/RadioList/RadioList.tsx b/packages/core/src/RadioList/RadioList.tsxindex d4802db6eb..a56d41691a 100644--- a/packages/core/src/RadioList/RadioList.tsx+++ b/packages/core/src/RadioList/RadioList.tsx@@ -13,7 +13,7 @@* - /packages/core/src/RadioList/RadioList.test.tsx* - /packages/core/src/RadioList/index.ts* - /apps/storybook/stories/RadioList.stories.tsx- * - /packages/cli/templates/blocks/components/RadioList/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/RadioList/ (showcase blocks)*/import React, {diff --git a/packages/core/src/RadioList/RadioListItem.doc.mjs b/packages/core/src/RadioList/RadioListItem.doc.mjsindex 34557c3d94..568022a83c 100644--- a/packages/core/src/RadioList/RadioListItem.doc.mjs+++ b/packages/core/src/RadioList/RadioListItem.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'RadioListItem',diff --git a/packages/core/src/RadioList/RadioListItem.tsx b/packages/core/src/RadioList/RadioListItem.tsxindex 768733c554..35d97257bc 100644--- a/packages/core/src/RadioList/RadioListItem.tsx+++ b/packages/core/src/RadioList/RadioListItem.tsx@@ -15,7 +15,7 @@* - /packages/core/src/RadioList/RadioList.test.tsx* - /packages/core/src/RadioList/index.ts* - /apps/storybook/stories/RadioList.stories.tsx- * - /packages/cli/templates/blocks/components/RadioList/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/RadioList/ (showcase blocks)*/import React, {use, useId, type ReactNode} from 'react';diff --git a/packages/core/src/Resizable/Resizable.doc.mjs b/packages/core/src/Resizable/Resizable.doc.mjsindex a1ad122f14..e639443711 100644--- a/packages/core/src/Resizable/Resizable.doc.mjs+++ b/packages/core/src/Resizable/Resizable.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Resizable',displayName: 'Resizable',@@ -188,7 +188,7 @@ export const docs = {],};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'Hook-based resizable panel system. useResizable() manages size state; ResizeHandle provides interactive pill-grip separator.',usage: {diff --git a/packages/core/src/Resizable/useResizable.doc.mjs b/packages/core/src/Resizable/useResizable.doc.mjsindex 45f8e5bf4d..23aebdf24f 100644--- a/packages/core/src/Resizable/useResizable.doc.mjs+++ b/packages/core/src/Resizable/useResizable.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').HookDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookDoc} */export const docs = {name: 'useResizable',displayName: 'useResizable',@@ -87,7 +87,7 @@ export const docs = {category: 'layout',};-/** @type {import('../docs-types').HookTranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookTranslationDoc} */export const docsDense = {description: 'Adds drag-to-resize behavior to layout regions. Supports single-/multi-region configs w/ snap points, collapsible panels, localStorage persistence, cascade resize ordering.',paramDescriptions: {diff --git a/packages/core/src/Section/Section.doc.mjs b/packages/core/src/Section/Section.doc.mjsindex 9b171a8881..8c278433dc 100644--- a/packages/core/src/Section/Section.doc.mjs+++ b/packages/core/src/Section/Section.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Section',@@ -86,7 +86,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'Section',displayName: 'Section',@@ -168,7 +168,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'Page-level container for grouping content into regions. Use INSTEAD of Card for settings panels, form groups, and page sections.',diff --git a/packages/core/src/Section/Section.tsx b/packages/core/src/Section/Section.tsxindex dd17e2a87b..c66d74c1eb 100644--- a/packages/core/src/Section/Section.tsx+++ b/packages/core/src/Section/Section.tsx@@ -12,7 +12,7 @@* - /packages/core/src/Section/Section.doc.mjs (props table, features)* - /packages/core/src/Section/index.ts (exports if types change)* - /apps/storybook/stories/Section.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/Section/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Section/ (showcase blocks)*/import type {ReactNode} from 'react';diff --git a/packages/core/src/SegmentedControl/SegmentedControl.doc.mjs b/packages/core/src/SegmentedControl/SegmentedControl.doc.mjsindex de88839872..c7040dad44 100644--- a/packages/core/src/SegmentedControl/SegmentedControl.doc.mjs+++ b/packages/core/src/SegmentedControl/SegmentedControl.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'SegmentedControl',@@ -108,7 +108,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {usage: {description:@@ -123,7 +123,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {usage: {description:diff --git a/packages/core/src/SegmentedControl/SegmentedControl.tsx b/packages/core/src/SegmentedControl/SegmentedControl.tsxindex 648db93b45..506767d746 100644--- a/packages/core/src/SegmentedControl/SegmentedControl.tsx+++ b/packages/core/src/SegmentedControl/SegmentedControl.tsx@@ -12,7 +12,7 @@* - /packages/core/src/SegmentedControl/SegmentedControl.doc.mjs* - /packages/core/src/SegmentedControl/index.ts* - /packages/core/src/SegmentedControl/SegmentedControl.test.tsx- * - /packages/cli/templates/blocks/components/SegmentedControl/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/SegmentedControl/ (showcase blocks)*/import React, {useMemo, useCallback, type ReactNode} from 'react';diff --git a/packages/core/src/SegmentedControl/SegmentedControlItem.doc.mjs b/packages/core/src/SegmentedControl/SegmentedControlItem.doc.mjsindex c4af503fee..b245027919 100644--- a/packages/core/src/SegmentedControl/SegmentedControlItem.doc.mjs+++ b/packages/core/src/SegmentedControl/SegmentedControlItem.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'SegmentedControlItem',diff --git a/packages/core/src/SegmentedControl/SegmentedControlItem.tsx b/packages/core/src/SegmentedControl/SegmentedControlItem.tsxindex b372ce41fe..aa61bcb1df 100644--- a/packages/core/src/SegmentedControl/SegmentedControlItem.tsx+++ b/packages/core/src/SegmentedControl/SegmentedControlItem.tsx@@ -12,7 +12,7 @@* - /packages/core/src/SegmentedControl/SegmentedControl.doc.mjs* - /packages/core/src/SegmentedControl/index.ts* - /packages/core/src/SegmentedControl/SegmentedControl.test.tsx- * - /packages/cli/templates/blocks/components/SegmentedControl/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/SegmentedControl/ (showcase blocks)*/import React, {type ReactNode} from 'react';diff --git a/packages/core/src/SelectableCard/SelectableCard.doc.mjs b/packages/core/src/SelectableCard/SelectableCard.doc.mjsindex 43c613f12d..0c0431c30a 100644--- a/packages/core/src/SelectableCard/SelectableCard.doc.mjs+++ b/packages/core/src/SelectableCard/SelectableCard.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'SelectableCard',displayName: 'Selectable Card',@@ -54,7 +54,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'Card toggling between selected/unselected states w/ accent border. For navigation use ClickableCard instead.',usage: {diff --git a/packages/core/src/SelectableCard/SelectableCard.tsx b/packages/core/src/SelectableCard/SelectableCard.tsxindex c33cb1266e..49c63e1e9c 100644--- a/packages/core/src/SelectableCard/SelectableCard.tsx+++ b/packages/core/src/SelectableCard/SelectableCard.tsx@@ -12,9 +12,9 @@* - /packages/core/src/SelectableCard/SelectableCard.doc.mjs (props table, features)* - /packages/core/src/SelectableCard/index.ts (exports if types change)* - /apps/storybook/stories/SelectableCard.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/Card/SelectableCardShowcase.tsx (showcase block)- * - /packages/cli/templates/blocks/components/Card/SelectableCardMulti.tsx (block)- * - /packages/cli/templates/blocks/components/Card/SelectableCardElevated.tsx (block)+ * - /packages/cli/assets/templates/blocks/components/Card/SelectableCardShowcase.tsx (showcase block)+ * - /packages/cli/assets/templates/blocks/components/Card/SelectableCardMulti.tsx (block)+ * - /packages/cli/assets/templates/blocks/components/Card/SelectableCardElevated.tsx (block)** Composes Card for all visual styling. Adds selection state with* an inset box-shadow (zero layout jitter) and useClickableContainerdiff --git a/packages/core/src/Selector/Selector.doc.mjs b/packages/core/src/Selector/Selector.doc.mjsindex aea837c882..1da9ec456c 100644--- a/packages/core/src/Selector/Selector.doc.mjs+++ b/packages/core/src/Selector/Selector.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Selector',@@ -252,7 +252,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {usage: {description:@@ -344,7 +344,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {usage: {description:diff --git a/packages/core/src/Selector/Selector.tsx b/packages/core/src/Selector/Selector.tsxindex 7a1d38cef2..466f0d6edb 100644--- a/packages/core/src/Selector/Selector.tsx+++ b/packages/core/src/Selector/Selector.tsx@@ -13,7 +13,7 @@* - /packages/core/src/Selector/Selector.test.tsx* - /packages/core/src/Selector/index.ts* - /apps/storybook/stories/InputGroup.stories.tsx- * - /packages/cli/templates/blocks/components/Selector/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Selector/ (showcase blocks)*/import React, {diff --git a/packages/core/src/Selector/SelectorOption.doc.mjs b/packages/core/src/Selector/SelectorOption.doc.mjsindex 825d48603a..826ba83ead 100644--- a/packages/core/src/Selector/SelectorOption.doc.mjs+++ b/packages/core/src/Selector/SelectorOption.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'SelectorOption',diff --git a/packages/core/src/SideNav/SideNav.doc.mjs b/packages/core/src/SideNav/SideNav.doc.mjsindex ad9ba67ff0..4b3b78848a 100644--- a/packages/core/src/SideNav/SideNav.doc.mjs+++ b/packages/core/src/SideNav/SideNav.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'SideNav',@@ -142,7 +142,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {usage: {description:@@ -161,7 +161,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {usage: {description:diff --git a/packages/core/src/SideNav/SideNav.tsx b/packages/core/src/SideNav/SideNav.tsxindex 7c1e744469..76f32cd5fc 100644--- a/packages/core/src/SideNav/SideNav.tsx+++ b/packages/core/src/SideNav/SideNav.tsx@@ -18,7 +18,7 @@* - /packages/core/src/SideNav/SideNav.test.tsx* - /packages/core/src/SideNav/index.ts* - /apps/storybook/stories/SideNav.stories.tsx- * - /packages/cli/templates/blocks/components/SideNav/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/SideNav/ (showcase blocks)*/import {diff --git a/packages/core/src/SideNav/SideNavCollapseButton.doc.mjs b/packages/core/src/SideNav/SideNavCollapseButton.doc.mjsindex 92b17de1e5..742425280d 100644--- a/packages/core/src/SideNav/SideNavCollapseButton.doc.mjs+++ b/packages/core/src/SideNav/SideNavCollapseButton.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'SideNavCollapseButton',diff --git a/packages/core/src/SideNav/SideNavCollapseButton.tsx b/packages/core/src/SideNav/SideNavCollapseButton.tsxindex 5a6660a1d8..fd39f8369d 100644--- a/packages/core/src/SideNav/SideNavCollapseButton.tsx+++ b/packages/core/src/SideNav/SideNavCollapseButton.tsx@@ -14,7 +14,7 @@* SYNC: When modified, update:* - /packages/core/src/SideNav/SideNav.doc.mjs* - /packages/core/src/SideNav/index.ts- * - /packages/cli/templates/blocks/components/SideNav/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/SideNav/ (showcase blocks)*/import React, {type ReactNode} from 'react';diff --git a/packages/core/src/SideNav/SideNavHeading.doc.mjs b/packages/core/src/SideNav/SideNavHeading.doc.mjsindex 66a8662e0f..5aaf4fe24c 100644--- a/packages/core/src/SideNav/SideNavHeading.doc.mjs+++ b/packages/core/src/SideNav/SideNavHeading.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'SideNavHeading',diff --git a/packages/core/src/SideNav/SideNavHeading.tsx b/packages/core/src/SideNav/SideNavHeading.tsxindex 911c5a8044..91f9270434 100644--- a/packages/core/src/SideNav/SideNavHeading.tsx+++ b/packages/core/src/SideNav/SideNavHeading.tsx@@ -16,7 +16,7 @@* - /packages/core/src/SideNav/SideNav.test.tsx* - /packages/core/src/SideNav/index.ts* - /apps/storybook/stories/SideNav.stories.tsx- * - /packages/cli/templates/blocks/components/SideNav/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/SideNav/ (showcase blocks)*/import {useMemo, useRef, type ReactNode} from 'react';diff --git a/packages/core/src/SideNav/SideNavItem.doc.mjs b/packages/core/src/SideNav/SideNavItem.doc.mjsindex 63007b7f66..3b09b0e7af 100644--- a/packages/core/src/SideNav/SideNavItem.doc.mjs+++ b/packages/core/src/SideNav/SideNavItem.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'SideNavItem',diff --git a/packages/core/src/SideNav/SideNavItem.tsx b/packages/core/src/SideNav/SideNavItem.tsxindex df6a054b50..14a0d10f5d 100644--- a/packages/core/src/SideNav/SideNavItem.tsx+++ b/packages/core/src/SideNav/SideNavItem.tsx@@ -15,7 +15,7 @@* - /packages/core/src/SideNav/SideNav.test.tsx* - /packages/core/src/SideNav/index.ts* - /apps/storybook/stories/SideNav.stories.tsx- * - /packages/cli/templates/blocks/components/SideNav/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/SideNav/ (showcase blocks)*/import {diff --git a/packages/core/src/SideNav/SideNavSection.doc.mjs b/packages/core/src/SideNav/SideNavSection.doc.mjsindex 15a9b17ba4..e87b6abe84 100644--- a/packages/core/src/SideNav/SideNavSection.doc.mjs+++ b/packages/core/src/SideNav/SideNavSection.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'SideNavSection',diff --git a/packages/core/src/SideNav/SideNavSection.tsx b/packages/core/src/SideNav/SideNavSection.tsxindex a4deadd3eb..dbc9170c3c 100644--- a/packages/core/src/SideNav/SideNavSection.tsx+++ b/packages/core/src/SideNav/SideNavSection.tsx@@ -15,7 +15,7 @@* - /packages/core/src/SideNav/SideNav.test.tsx* - /packages/core/src/SideNav/index.ts* - /apps/storybook/stories/SideNav.stories.tsx- * - /packages/cli/templates/blocks/components/SideNav/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/SideNav/ (showcase blocks)*/import React, {useId, type ReactNode} from 'react';diff --git a/packages/core/src/Skeleton/Skeleton.doc.mjs b/packages/core/src/Skeleton/Skeleton.doc.mjsindex 79f09baf05..e6b20ec4c3 100644--- a/packages/core/src/Skeleton/Skeleton.doc.mjs+++ b/packages/core/src/Skeleton/Skeleton.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Skeleton',@@ -61,7 +61,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'Skeleton',displayName: 'Skeleton',@@ -110,7 +110,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {usage: {description:diff --git a/packages/core/src/Skeleton/Skeleton.tsx b/packages/core/src/Skeleton/Skeleton.tsxindex 84f3a0717e..570b4cb79e 100644--- a/packages/core/src/Skeleton/Skeleton.tsx+++ b/packages/core/src/Skeleton/Skeleton.tsx@@ -12,7 +12,7 @@* - /packages/core/src/Skeleton/Skeleton.doc.mjs* - /packages/core/src/Skeleton/index.ts* - /apps/storybook/stories/Skeleton.stories.tsx- * - /packages/cli/templates/blocks/components/Skeleton/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Skeleton/ (showcase blocks)*/import type {BaseProps} from '../BaseProps';diff --git a/packages/core/src/Slider/Slider.doc.mjs b/packages/core/src/Slider/Slider.doc.mjsindex 7503443ed2..0d09b6cd8a 100644--- a/packages/core/src/Slider/Slider.doc.mjs+++ b/packages/core/src/Slider/Slider.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Slider',@@ -174,7 +174,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'Slider',displayName: 'Slider',@@ -328,7 +328,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {usage: {description:diff --git a/packages/core/src/Slider/Slider.tsx b/packages/core/src/Slider/Slider.tsxindex f8142b0df2..b6a44a4b98 100644--- a/packages/core/src/Slider/Slider.tsx+++ b/packages/core/src/Slider/Slider.tsx@@ -13,7 +13,7 @@* - /packages/core/src/Slider/Slider.test.tsx* - /packages/core/src/Slider/index.ts* - /apps/storybook/stories/Slider.stories.tsx- * - /packages/cli/templates/blocks/components/Slider/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Slider/ (showcase blocks)*/import {diff --git a/packages/core/src/Spinner/Spinner.doc.mjs b/packages/core/src/Spinner/Spinner.doc.mjsindex 6e802c04de..e538807239 100644--- a/packages/core/src/Spinner/Spinner.doc.mjs+++ b/packages/core/src/Spinner/Spinner.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Spinner',@@ -56,7 +56,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'Spinner',displayName: 'Spinner',@@ -108,7 +108,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {usage: {description:diff --git a/packages/core/src/Spinner/Spinner.tsx b/packages/core/src/Spinner/Spinner.tsxindex 61341e5027..b542a1d570 100644--- a/packages/core/src/Spinner/Spinner.tsx+++ b/packages/core/src/Spinner/Spinner.tsx@@ -13,7 +13,7 @@* - /packages/core/src/Spinner/Spinner.test.tsx* - /packages/core/src/Spinner/index.ts* - /apps/storybook/stories/Spinner.stories.tsx- * - /packages/cli/templates/blocks/components/Spinner/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Spinner/ (showcase blocks)*/import {useEffect, useId, useRef, type ReactNode} from 'react';diff --git a/packages/core/src/Stack/Stack.doc.mjs b/packages/core/src/Stack/Stack.doc.mjsindex 813478eec6..c9176d89c0 100644--- a/packages/core/src/Stack/Stack.doc.mjs+++ b/packages/core/src/Stack/Stack.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Stack',@@ -268,7 +268,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'Stack',displayName: 'Stack',@@ -457,7 +457,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'Stack layout primitives for horizontal/vertical sequences using flexbox w/ themed spacing tokens.',usage: {diff --git a/packages/core/src/Stack/Stack.tsx b/packages/core/src/Stack/Stack.tsxindex 44d201535b..f9a85bdcea 100644--- a/packages/core/src/Stack/Stack.tsx+++ b/packages/core/src/Stack/Stack.tsx@@ -9,7 +9,7 @@* SYNC: When modified, update these files to stay in sync:* - /packages/core/src/Stack/Stack.doc.mjs* - /apps/storybook/stories/Stack.stories.tsx- * - /packages/cli/templates/blocks/components/Stack/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Stack/ (showcase blocks)*/import {createElement, type ElementType, type ReactNode, type Ref} from 'react';diff --git a/packages/core/src/Stack/StackItem.tsx b/packages/core/src/Stack/StackItem.tsxindex 94ef9442b8..65257a6a1e 100644--- a/packages/core/src/Stack/StackItem.tsx+++ b/packages/core/src/Stack/StackItem.tsx@@ -8,7 +8,7 @@** SYNC: When modified, update these files to stay in sync:* - /packages/core/src/Stack/Stack.doc.mjs- * - /packages/cli/templates/blocks/components/Stack/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Stack/ (showcase blocks)*/import {createElement, type ElementType, type ReactNode, type Ref} from 'react';diff --git a/packages/core/src/StatusDot/StatusDot.doc.mjs b/packages/core/src/StatusDot/StatusDot.doc.mjsindex b40a9de90b..5098af628c 100644--- a/packages/core/src/StatusDot/StatusDot.doc.mjs+++ b/packages/core/src/StatusDot/StatusDot.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'StatusDot',@@ -57,7 +57,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'StatusDot',displayName: 'Status Dot',@@ -105,7 +105,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'Small colored dot indicator for status display (online/offline, severity, etc).',usage: {diff --git a/packages/core/src/StatusDot/StatusDot.tsx b/packages/core/src/StatusDot/StatusDot.tsxindex 2f6f387b8e..26e8436cd2 100644--- a/packages/core/src/StatusDot/StatusDot.tsx+++ b/packages/core/src/StatusDot/StatusDot.tsx@@ -13,7 +13,7 @@* - /packages/core/src/StatusDot/StatusDot.test.tsx (tests for new/changed behavior)* - /packages/core/src/StatusDot/index.ts (exports if types change)* - /apps/storybook/stories/StatusDot.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/StatusDot/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/StatusDot/ (showcase blocks)*/import * as stylex from '@stylexjs/stylex';diff --git a/packages/core/src/Switch/Switch.doc.mjs b/packages/core/src/Switch/Switch.doc.mjsindex 86fdde7998..6be6eb55c9 100644--- a/packages/core/src/Switch/Switch.doc.mjs+++ b/packages/core/src/Switch/Switch.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Switch',@@ -202,7 +202,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'Switch',displayName: 'Switch',@@ -373,7 +373,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'Toggle switch for boolean values w/ integrated label support.',usage: {diff --git a/packages/core/src/Switch/Switch.tsx b/packages/core/src/Switch/Switch.tsxindex 07479eeae0..2e0b4fac8c 100644--- a/packages/core/src/Switch/Switch.tsx+++ b/packages/core/src/Switch/Switch.tsx@@ -13,7 +13,7 @@* - /packages/core/src/Switch/Switch.test.tsx (tests for new/changed behavior)* - /packages/core/src/Switch/index.ts (exports if types change)* - /apps/storybook/stories/Switch.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/Switch/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Switch/ (showcase blocks)*/import {diff --git a/packages/core/src/TabList/Tab.doc.mjs b/packages/core/src/TabList/Tab.doc.mjsindex a0697c5a7b..920cda54f8 100644--- a/packages/core/src/TabList/Tab.doc.mjs+++ b/packages/core/src/TabList/Tab.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Tab',diff --git a/packages/core/src/TabList/Tab.tsx b/packages/core/src/TabList/Tab.tsxindex 8a7639842a..cd07d68e41 100644--- a/packages/core/src/TabList/Tab.tsx+++ b/packages/core/src/TabList/Tab.tsx@@ -13,7 +13,7 @@* - /packages/core/src/TabList/TabList.doc.mjs* - /packages/core/src/TabList/index.ts* - /packages/core/src/TabList/TabList.test.tsx- * - /packages/cli/templates/blocks/components/TabList/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/TabList/ (showcase blocks)*/import React, {useCallback, type ReactNode} from 'react';diff --git a/packages/core/src/TabList/TabList.doc.mjs b/packages/core/src/TabList/TabList.doc.mjsindex 63dd992754..b653b4231a 100644--- a/packages/core/src/TabList/TabList.doc.mjs+++ b/packages/core/src/TabList/TabList.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'TabList',@@ -99,7 +99,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {usage: {description:@@ -120,7 +120,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'Tab navigation w/ overflow menu support; semantic nav landmark w/ button or anchor tab items.',usage: {diff --git a/packages/core/src/TabList/TabList.tsx b/packages/core/src/TabList/TabList.tsxindex e28e2a065f..3d85778157 100644--- a/packages/core/src/TabList/TabList.tsx+++ b/packages/core/src/TabList/TabList.tsx@@ -14,7 +14,7 @@* - /packages/core/src/TabList/TabList.doc.mjs* - /packages/core/src/TabList/index.ts* - /packages/core/src/TabList/TabList.test.tsx- * - /packages/cli/templates/blocks/components/TabList/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/TabList/ (showcase blocks)*/import React, {useCallback, useMemo, type ReactNode} from 'react';diff --git a/packages/core/src/TabList/TabMenu.doc.mjs b/packages/core/src/TabList/TabMenu.doc.mjsindex 0bd063d91e..dadeb82b77 100644--- a/packages/core/src/TabList/TabMenu.doc.mjs+++ b/packages/core/src/TabList/TabMenu.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'TabMenu',diff --git a/packages/core/src/TabList/TabMenu.tsx b/packages/core/src/TabList/TabMenu.tsxindex 4373cf3072..7ea2ebc598 100644--- a/packages/core/src/TabList/TabMenu.tsx+++ b/packages/core/src/TabList/TabMenu.tsx@@ -13,7 +13,7 @@* - /packages/core/src/TabList/TabList.doc.mjs* - /packages/core/src/TabList/index.ts* - /packages/core/src/TabList/TabList.test.tsx- * - /packages/cli/templates/blocks/components/TabList/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/TabList/ (showcase blocks)*/import React, {useCallback, useId, useRef, type ReactNode} from 'react';diff --git a/packages/core/src/Table/BaseTable.tsx b/packages/core/src/Table/BaseTable.tsxindex 21a8830084..43cb126f53 100644--- a/packages/core/src/Table/BaseTable.tsx+++ b/packages/core/src/Table/BaseTable.tsx@@ -11,7 +11,7 @@* - /packages/core/src/Table/Table.doc.mjs (component description, props)* - /packages/core/src/Table/Table.test.tsx (tests for new/changed behavior)* - /packages/core/src/Table/index.ts (exports if types change)- * - /packages/cli/templates/blocks/components/Table/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Table/ (showcase blocks)*/import {memo, useRef, type ReactElement, type ReactNode, type Ref} from 'react';diff --git a/packages/core/src/Table/Table.doc.mjs b/packages/core/src/Table/Table.doc.mjsindex 4e6c8c0bdb..c05eb88f33 100644--- a/packages/core/src/Table/Table.doc.mjs+++ b/packages/core/src/Table/Table.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Table',@@ -152,7 +152,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {usage: {description:@@ -174,7 +174,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'Data-driven table w/ rich cell content via renderCell. Compose cells w/ Badge, StatusDot, Text, Avatar, layout primitives. BaseTable provides unstyled structural core w/ composable plugin pipeline.',usage: {diff --git a/packages/core/src/Table/Table.tsx b/packages/core/src/Table/Table.tsxindex 1e6045fd8e..70bae50c2e 100644--- a/packages/core/src/Table/Table.tsx+++ b/packages/core/src/Table/Table.tsx@@ -13,7 +13,7 @@* - /packages/core/src/Table/Table.test.tsx (tests for new/changed behavior)* - /packages/core/src/Table/index.ts (exports if types change)* - /apps/storybook/stories/Table.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/Table/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Table/ (showcase blocks)*/import {useMemo, type ReactElement, type Ref} from 'react';diff --git a/packages/core/src/Table/TableCell.doc.mjs b/packages/core/src/Table/TableCell.doc.mjsindex b3df5cc59b..1f0d538377 100644--- a/packages/core/src/Table/TableCell.doc.mjs+++ b/packages/core/src/Table/TableCell.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'TableCell',diff --git a/packages/core/src/Table/TableCell.tsx b/packages/core/src/Table/TableCell.tsxindex cc2e93c803..1082249dff 100644--- a/packages/core/src/Table/TableCell.tsx+++ b/packages/core/src/Table/TableCell.tsx@@ -11,7 +11,7 @@* SYNC: When modified, update:* - /packages/core/src/Table/Table.doc.mjs* - /packages/core/src/Table/index.ts- * - /packages/cli/templates/blocks/components/Table/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Table/ (showcase blocks)*/import type {ReactNode} from 'react';diff --git a/packages/core/src/Table/TableHeaderCell.doc.mjs b/packages/core/src/Table/TableHeaderCell.doc.mjsindex a6cc019f7d..0cf4e4eac4 100644--- a/packages/core/src/Table/TableHeaderCell.doc.mjs+++ b/packages/core/src/Table/TableHeaderCell.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'TableHeaderCell',diff --git a/packages/core/src/Table/TableHeaderCell.tsx b/packages/core/src/Table/TableHeaderCell.tsxindex 3dbc25257a..dec317849e 100644--- a/packages/core/src/Table/TableHeaderCell.tsx+++ b/packages/core/src/Table/TableHeaderCell.tsx@@ -11,7 +11,7 @@* SYNC: When modified, update:* - /packages/core/src/Table/Table.doc.mjs* - /packages/core/src/Table/index.ts- * - /packages/cli/templates/blocks/components/Table/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Table/ (showcase blocks)*/import type {ReactNode} from 'react';diff --git a/packages/core/src/Table/TableRow.doc.mjs b/packages/core/src/Table/TableRow.doc.mjsindex d149f4d6e9..6f950f847c 100644--- a/packages/core/src/Table/TableRow.doc.mjs+++ b/packages/core/src/Table/TableRow.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'TableRow',diff --git a/packages/core/src/Table/TableRow.tsx b/packages/core/src/Table/TableRow.tsxindex 9d1495d321..6b086b9b88 100644--- a/packages/core/src/Table/TableRow.tsx+++ b/packages/core/src/Table/TableRow.tsx@@ -11,7 +11,7 @@* SYNC: When modified, update:* - /packages/core/src/Table/Table.doc.mjs* - /packages/core/src/Table/index.ts- * - /packages/cli/templates/blocks/components/Table/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Table/ (showcase blocks)*/import {use, type ReactNode} from 'react';diff --git a/packages/core/src/Table/useTableColumnResize.doc.mjs b/packages/core/src/Table/useTableColumnResize.doc.mjsindex cdd7843b21..a6c0d24dd6 100644--- a/packages/core/src/Table/useTableColumnResize.doc.mjs+++ b/packages/core/src/Table/useTableColumnResize.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'useTableColumnResize',diff --git a/packages/core/src/Table/useTableColumnSettings.doc.mjs b/packages/core/src/Table/useTableColumnSettings.doc.mjsindex e306685364..8066711ca6 100644--- a/packages/core/src/Table/useTableColumnSettings.doc.mjs+++ b/packages/core/src/Table/useTableColumnSettings.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'useTableColumnSettings',diff --git a/packages/core/src/Table/useTableFilterState.doc.mjs b/packages/core/src/Table/useTableFilterState.doc.mjsindex 0a2ce56b71..35ef75e869 100644--- a/packages/core/src/Table/useTableFilterState.doc.mjs+++ b/packages/core/src/Table/useTableFilterState.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'useTableFilterState',diff --git a/packages/core/src/Table/useTableFiltering.doc.mjs b/packages/core/src/Table/useTableFiltering.doc.mjsindex 640f6599cc..a2f5e704ee 100644--- a/packages/core/src/Table/useTableFiltering.doc.mjs+++ b/packages/core/src/Table/useTableFiltering.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'useTableFiltering',diff --git a/packages/core/src/Table/useTableGroupedRows.doc.mjs b/packages/core/src/Table/useTableGroupedRows.doc.mjsindex 63a97a1eb1..0e665402e3 100644--- a/packages/core/src/Table/useTableGroupedRows.doc.mjs+++ b/packages/core/src/Table/useTableGroupedRows.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'useTableGroupedRows',@@ -55,7 +55,7 @@ export const docs = {],};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'Groups a flat data array into collapsible section rows. Each groupBy value becomes a full-width header (chevron + label + count); collapsing hides its rows. Returns {data, plugin, idKey}: pass to Table data / plugins / idKey. Consumer owns the collapsedGroups set.',diff --git a/packages/core/src/Table/useTablePagination.doc.mjs b/packages/core/src/Table/useTablePagination.doc.mjsindex 00cd07b90a..77b6e220bf 100644--- a/packages/core/src/Table/useTablePagination.doc.mjs+++ b/packages/core/src/Table/useTablePagination.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'useTablePagination',diff --git a/packages/core/src/Table/useTableRowExpansion.doc.mjs b/packages/core/src/Table/useTableRowExpansion.doc.mjsindex 218b1c513e..ffd52033ac 100644--- a/packages/core/src/Table/useTableRowExpansion.doc.mjs+++ b/packages/core/src/Table/useTableRowExpansion.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'useTableRowExpansion',@@ -115,7 +115,7 @@ const tree = useTableTreeData({],};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'Deprecated: use useTableTreeData + useTableTreeState instead. Returns a TablePlugin for expandable rows w/ inherited columns. Child rows reuse parent columns, indented by depth. Chevron click (or right-click menu) toggles expansion. Pair w/ useTableRowExpansionState, which flattens the tree + derives this config from one expandedKeys set.',diff --git a/packages/core/src/Table/useTableRowIndex.doc.mjs b/packages/core/src/Table/useTableRowIndex.doc.mjsindex f88e5c20df..1ea3344c8b 100644--- a/packages/core/src/Table/useTableRowIndex.doc.mjs+++ b/packages/core/src/Table/useTableRowIndex.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'useTableRowIndex',@@ -37,7 +37,7 @@ export const docs = {],};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'Returns a TablePlugin that prepends a right-aligned monospaced row-number column. Numbering follows the rendered data order (current sort/filter/page view), 1-based by default. Pass the rendered data array; renderCell only receives the item so the plugin derives ordinals from it.',diff --git a/packages/core/src/Table/useTableRowStatus.doc.mjs b/packages/core/src/Table/useTableRowStatus.doc.mjsindex 1496b590c9..49c61da607 100644--- a/packages/core/src/Table/useTableRowStatus.doc.mjs+++ b/packages/core/src/Table/useTableRowStatus.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'useTableRowStatus',@@ -19,7 +19,7 @@ export const docs = {],};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'Returns a TablePlugin that prepends a narrow per-row status column: a colored dot, or an icon when provided (shape + color beats color alone for a11y). getStatus maps a row to {color, icon?, label} or null. color is a semantic name (success/error/warning/etc.) mapped to a theme token, or a raw CSS color. label is required (tooltip + accessible name). Memoize getStatus with useCallback.',diff --git a/packages/core/src/Table/useTableSelection.doc.mjs b/packages/core/src/Table/useTableSelection.doc.mjsindex fd564aef06..012f134a7d 100644--- a/packages/core/src/Table/useTableSelection.doc.mjs+++ b/packages/core/src/Table/useTableSelection.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'useTableSelection',diff --git a/packages/core/src/Table/useTableSelectionState.doc.mjs b/packages/core/src/Table/useTableSelectionState.doc.mjsindex 929bbc62fc..2e249628c9 100644--- a/packages/core/src/Table/useTableSelectionState.doc.mjs+++ b/packages/core/src/Table/useTableSelectionState.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'useTableSelectionState',diff --git a/packages/core/src/Table/useTableSortable.doc.mjs b/packages/core/src/Table/useTableSortable.doc.mjsindex f80a72c6de..8120c37fb8 100644--- a/packages/core/src/Table/useTableSortable.doc.mjs+++ b/packages/core/src/Table/useTableSortable.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'useTableSortable',diff --git a/packages/core/src/Table/useTableStickyColumns.doc.mjs b/packages/core/src/Table/useTableStickyColumns.doc.mjsindex 213bbca1c8..24309fdc75 100644--- a/packages/core/src/Table/useTableStickyColumns.doc.mjs+++ b/packages/core/src/Table/useTableStickyColumns.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'useTableStickyColumns',diff --git a/packages/core/src/Table/useTableTreeData.doc.mjs b/packages/core/src/Table/useTableTreeData.doc.mjsindex eaead41bca..7d45769950 100644--- a/packages/core/src/Table/useTableTreeData.doc.mjs+++ b/packages/core/src/Table/useTableTreeData.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'useTableTreeData',diff --git a/packages/core/src/Table/useTableTreeState.doc.mjs b/packages/core/src/Table/useTableTreeState.doc.mjsindex 09f2a29c15..42f407d934 100644--- a/packages/core/src/Table/useTableTreeState.doc.mjs+++ b/packages/core/src/Table/useTableTreeState.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'useTableTreeState',diff --git a/packages/core/src/Text/Heading.doc.mjs b/packages/core/src/Text/Heading.doc.mjsindex 45ab84fbe6..b12c6d67cb 100644--- a/packages/core/src/Text/Heading.doc.mjs+++ b/packages/core/src/Text/Heading.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Heading',diff --git a/packages/core/src/Text/Text.doc.mjs b/packages/core/src/Text/Text.doc.mjsindex e083c10758..c903ed451d 100644--- a/packages/core/src/Text/Text.doc.mjs+++ b/packages/core/src/Text/Text.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Text',@@ -137,7 +137,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {usage: {description:@@ -156,7 +156,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'semantic body text + headings w/ theme-driven type scale, truncation, tabular numbers',usage: {diff --git a/packages/core/src/Text/Text.tsx b/packages/core/src/Text/Text.tsxindex 18d983065b..4abd88d5c4 100644--- a/packages/core/src/Text/Text.tsx+++ b/packages/core/src/Text/Text.tsx@@ -13,7 +13,7 @@* - /packages/core/src/Text/Text.test.tsx (tests for new/changed behavior)* - /packages/core/src/Text/index.ts (exports if types change)* - /apps/storybook/stories/Text.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/Text/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Text/ (showcase blocks)*/import {lazy, Suspense, useRef, type ReactNode} from 'react';diff --git a/packages/core/src/TextArea/TextArea.doc.mjs b/packages/core/src/TextArea/TextArea.doc.mjsindex 0f953b544a..0ae7cbd568 100644--- a/packages/core/src/TextArea/TextArea.doc.mjs+++ b/packages/core/src/TextArea/TextArea.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'TextArea',@@ -198,7 +198,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'TextArea',displayName: 'Text Area',@@ -374,7 +374,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'Multi-line text input for collecting longer user input.',usage: {diff --git a/packages/core/src/TextArea/TextArea.tsx b/packages/core/src/TextArea/TextArea.tsxindex 42ff6d09dd..2519cb68ef 100644--- a/packages/core/src/TextArea/TextArea.tsx+++ b/packages/core/src/TextArea/TextArea.tsx@@ -13,7 +13,7 @@* - /packages/core/src/TextArea/TextArea.test.tsx (tests for new/changed behavior)* - /packages/core/src/TextArea/index.ts (exports if types change)* - /apps/storybook/stories/TextArea.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/TextArea/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/TextArea/ (showcase blocks)*/import {diff --git a/packages/core/src/TextInput/TextInput.doc.mjs b/packages/core/src/TextInput/TextInput.doc.mjsindex c65c1ed566..9e768e66f2 100644--- a/packages/core/src/TextInput/TextInput.doc.mjs+++ b/packages/core/src/TextInput/TextInput.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'TextInput',@@ -177,7 +177,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'TextInput',displayName: 'Text Input',@@ -343,7 +343,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'Text input for collecting user text w/ label, description, validation status, optional/required indicators.',usage: {diff --git a/packages/core/src/TextInput/TextInput.tsx b/packages/core/src/TextInput/TextInput.tsxindex 0e1357e7ad..851691f9af 100644--- a/packages/core/src/TextInput/TextInput.tsx+++ b/packages/core/src/TextInput/TextInput.tsx@@ -13,7 +13,7 @@* - /packages/core/src/TextInput/TextInput.test.tsx (tests for new/changed behavior)* - /packages/core/src/TextInput/index.ts (exports if types change)* - /apps/storybook/stories/TextInput.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/TextInput/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/TextInput/ (showcase blocks)*/import {diff --git a/packages/core/src/Thumbnail/Thumbnail.doc.mjs b/packages/core/src/Thumbnail/Thumbnail.doc.mjsindex 37dc776e08..85a74b2281 100644--- a/packages/core/src/Thumbnail/Thumbnail.doc.mjs+++ b/packages/core/src/Thumbnail/Thumbnail.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Thumbnail',@@ -98,7 +98,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {propDescriptions: {src: '\u56FE\u7247\u6E90 URL\u3002',diff --git a/packages/core/src/Thumbnail/Thumbnail.tsx b/packages/core/src/Thumbnail/Thumbnail.tsxindex 6e922d010f..cb3737e8a9 100644--- a/packages/core/src/Thumbnail/Thumbnail.tsx+++ b/packages/core/src/Thumbnail/Thumbnail.tsx@@ -22,7 +22,7 @@* - /packages/core/src/Thumbnail/Thumbnail.test.tsx* - /packages/core/src/Thumbnail/index.ts* - /apps/storybook/stories/Thumbnail.stories.tsx- * - /packages/cli/templates/blocks/components/Thumbnail/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Thumbnail/ (showcase blocks)*/import {useState} from 'react';diff --git a/packages/core/src/TimeInput/TimeInput.doc.mjs b/packages/core/src/TimeInput/TimeInput.doc.mjsindex 65744c0851..a9f2e115e8 100644--- a/packages/core/src/TimeInput/TimeInput.doc.mjs+++ b/packages/core/src/TimeInput/TimeInput.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'TimeInput',@@ -262,7 +262,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'TimeInput',@@ -489,7 +489,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'Time input that converts free-text entry to standard format with arrow-key adjustment.',diff --git a/packages/core/src/TimeInput/TimeInput.tsx b/packages/core/src/TimeInput/TimeInput.tsxindex 8371c8c073..3b0851e9ee 100644--- a/packages/core/src/TimeInput/TimeInput.tsx+++ b/packages/core/src/TimeInput/TimeInput.tsx@@ -13,7 +13,7 @@* - /packages/core/src/TimeInput/TimeInput.test.tsx (tests for new/changed behavior)* - /packages/core/src/TimeInput/index.ts (exports if types change)* - /apps/storybook/stories/TimeInput.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/TimeInput/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/TimeInput/ (showcase blocks)*/import {diff --git a/packages/core/src/Timestamp/Timestamp.doc.mjs b/packages/core/src/Timestamp/Timestamp.doc.mjsindex 22d46d9640..9af6a15cdc 100644--- a/packages/core/src/Timestamp/Timestamp.doc.mjs+++ b/packages/core/src/Timestamp/Timestamp.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Timestamp',@@ -117,7 +117,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {propDescriptions: {value: '\u8981\u663e\u793a\u7684\u65e5\u671f/\u65f6\u95f4\u3002\u63a5\u53d7 Unix \u65f6\u95f4\u6233\uff08\u79d2\uff09\u6216 ISO 8601 \u5b57\u7b26\u4e32\u3002',@@ -158,7 +158,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'formatted timestamp with relative/absolute/auto modes, live updates, timezone display, multi-zone tooltip',usage: {diff --git a/packages/core/src/Timestamp/Timestamp.tsx b/packages/core/src/Timestamp/Timestamp.tsxindex eac8c97096..e841416c22 100644--- a/packages/core/src/Timestamp/Timestamp.tsx+++ b/packages/core/src/Timestamp/Timestamp.tsx@@ -13,7 +13,7 @@* - /packages/core/src/Timestamp/Timestamp.test.tsx* - /packages/core/src/Timestamp/index.ts* - /apps/storybook/stories/Timestamp.stories.tsx- * - /packages/cli/templates/blocks/components/Timestamp/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Timestamp/ (showcase blocks)*/import {useEffect, useRef, useState, lazy, Suspense, Fragment} from 'react';diff --git a/packages/core/src/Toast/Toast.doc.mjs b/packages/core/src/Toast/Toast.doc.mjsindex 627da0452b..9187d81c94 100644--- a/packages/core/src/Toast/Toast.doc.mjs+++ b/packages/core/src/Toast/Toast.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Toast',@@ -92,7 +92,7 @@ export const docs = {// See .context/decisions/dense-compression-protocol.md// --------------------------------------------------------/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {propDescriptions: {body: '主要消息内容。',@@ -124,7 +124,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'toast notification w/ auto-dismiss, stacking, dedup, smooth animations; MediaTheme inverted surface',diff --git a/packages/core/src/Toast/useToast.doc.mjs b/packages/core/src/Toast/useToast.doc.mjsindex 16f7291112..17f7623f8a 100644--- a/packages/core/src/Toast/useToast.doc.mjs+++ b/packages/core/src/Toast/useToast.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').HookDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookDoc} */export const docs = {name: 'useToast',displayName: 'useToast',@@ -31,7 +31,7 @@ export const docs = {category: 'interaction',};-/** @type {import('../docs-types').HookTranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookTranslationDoc} */export const docsDense = {description: 'Show toast notifications from anywhere in component tree. Returns function accepting toast options + showing notification. Works automatically w/ LayerProvider / self-mounts fallback viewport.',returnDescriptions: {diff --git a/packages/core/src/ToggleButton/ToggleButton.doc.mjs b/packages/core/src/ToggleButton/ToggleButton.doc.mjsindex a099dd3ece..34a6fc5357 100644--- a/packages/core/src/ToggleButton/ToggleButton.doc.mjs+++ b/packages/core/src/ToggleButton/ToggleButton.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ToggleButton',@@ -139,7 +139,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {usage: {description:@@ -161,7 +161,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'toggle btn w/ pressed/unpressed states, icon swap, group integration for single/multi-select',usage: {diff --git a/packages/core/src/ToggleButton/ToggleButton.tsx b/packages/core/src/ToggleButton/ToggleButton.tsxindex 88e9c715d3..3c11a52cd0 100644--- a/packages/core/src/ToggleButton/ToggleButton.tsx+++ b/packages/core/src/ToggleButton/ToggleButton.tsx@@ -17,7 +17,7 @@* SYNC: When modified, update these files to stay in sync:* - /packages/core/src/ToggleButton/index.ts (exports if types change)* - /apps/storybook/stories/ToggleButton.stories.tsx- * - /packages/cli/templates/blocks/components/ToggleButton/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/ToggleButton/ (showcase blocks)*/import React, {useOptimistic, type ReactNode} from 'react';diff --git a/packages/core/src/ToggleButton/ToggleButtonGroup.doc.mjs b/packages/core/src/ToggleButton/ToggleButtonGroup.doc.mjsindex 0f814a04c7..61742a592f 100644--- a/packages/core/src/ToggleButton/ToggleButtonGroup.doc.mjs+++ b/packages/core/src/ToggleButton/ToggleButtonGroup.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ToggleButtonGroup',diff --git a/packages/core/src/ToggleButton/ToggleButtonGroup.tsx b/packages/core/src/ToggleButton/ToggleButtonGroup.tsxindex 77995d9c3b..43d97fea36 100644--- a/packages/core/src/ToggleButton/ToggleButtonGroup.tsx+++ b/packages/core/src/ToggleButton/ToggleButtonGroup.tsx@@ -15,7 +15,7 @@* SYNC: When modified, update these files to stay in sync:* - /packages/core/src/ToggleButton/index.ts* - /apps/storybook/stories/ToggleButton.stories.tsx- * - /packages/cli/templates/blocks/components/ToggleButton/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/ToggleButton/ (showcase blocks)*/import {createContext, useCallback, use, useMemo, type ReactNode} from 'react';@@ -153,8 +153,7 @@ export interface ToggleButtonGroupMultipleProps extends ToggleButtonGroupBasePro/** Discriminated union of single and multiple group props. */export type ToggleButtonGroupProps =- | ToggleButtonGroupSingleProps- | ToggleButtonGroupMultipleProps;+ ToggleButtonGroupSingleProps | ToggleButtonGroupMultipleProps;// =============================================================================// Component@@ -176,9 +175,7 @@ export type ToggleButtonGroupProps =* </ToggleButtonGroup>* ```*/-export function ToggleButtonGroup(- props: ToggleButtonGroupProps,-): ReactNode {+export function ToggleButtonGroup(props: ToggleButtonGroupProps): ReactNode {const {children,label,diff --git a/packages/core/src/Token/Token.doc.mjs b/packages/core/src/Token/Token.doc.mjsindex 8cf721e54d..54312903b8 100644--- a/packages/core/src/Token/Token.doc.mjs+++ b/packages/core/src/Token/Token.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Token',@@ -112,7 +112,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'Token',displayName: 'Token',@@ -217,7 +217,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'compact chip/tag for inline metadata, filters, selections. 11 colors, 3 sizes, removable, clickable, linkable.',usage: {diff --git a/packages/core/src/Token/Token.tsx b/packages/core/src/Token/Token.tsxindex 71945c9912..c49aa5a8ec 100644--- a/packages/core/src/Token/Token.tsx+++ b/packages/core/src/Token/Token.tsx@@ -14,7 +14,7 @@* - /packages/core/src/Token/Token.test.tsx (tests for new/changed behavior)* - /packages/core/src/Token/index.ts (exports if types change)* - /apps/storybook/stories/Token.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/Token/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Token/ (showcase blocks)*/import type {ReactNode} from 'react';diff --git a/packages/core/src/Tokenizer/Tokenizer.doc.mjs b/packages/core/src/Tokenizer/Tokenizer.doc.mjsindex 6b3201f737..e057082ff2 100644--- a/packages/core/src/Tokenizer/Tokenizer.doc.mjs+++ b/packages/core/src/Tokenizer/Tokenizer.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Tokenizer',@@ -237,7 +237,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'Tokenizer',displayName: 'Tokenizer',@@ -451,7 +451,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'Multi-select typeahead w/ token chips for selected items. Composes BaseTypeahead for search+Token for chips.',usage: {diff --git a/packages/core/src/Tokenizer/Tokenizer.tsx b/packages/core/src/Tokenizer/Tokenizer.tsxindex e36f784ad3..c81db9639d 100644--- a/packages/core/src/Tokenizer/Tokenizer.tsx+++ b/packages/core/src/Tokenizer/Tokenizer.tsx@@ -12,7 +12,7 @@* SYNC: When modified, update:* - /packages/core/src/Tokenizer/index.ts* - /apps/storybook/stories/Tokenizer.stories.tsx- * - /packages/cli/templates/blocks/components/Tokenizer/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Tokenizer/ (showcase blocks)*/import React, {diff --git a/packages/core/src/Toolbar/Toolbar.doc.mjs b/packages/core/src/Toolbar/Toolbar.doc.mjsindex 3e82b2e230..9d0f20db76 100644--- a/packages/core/src/Toolbar/Toolbar.doc.mjs+++ b/packages/core/src/Toolbar/Toolbar.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Toolbar',@@ -156,7 +156,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {components: [{@@ -191,7 +191,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'Horizontal bar w/ left, center, right areas. For contextual actions in content, not page headers. Size cascades to children.',usage: {diff --git a/packages/core/src/Toolbar/Toolbar.tsx b/packages/core/src/Toolbar/Toolbar.tsxindex 0794edabda..d447f0bb1e 100644--- a/packages/core/src/Toolbar/Toolbar.tsx+++ b/packages/core/src/Toolbar/Toolbar.tsx@@ -13,7 +13,7 @@* - /packages/core/src/Toolbar/Toolbar.test.tsx* - /packages/core/src/Toolbar/index.ts* - /apps/storybook/stories/Toolbar.stories.tsx- * - /packages/cli/templates/blocks/components/Toolbar/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Toolbar/ (showcase blocks)*/import {useCallback, type ReactNode} from 'react';diff --git a/packages/core/src/Tooltip/Tooltip.doc.mjs b/packages/core/src/Tooltip/Tooltip.doc.mjsindex 4c977658e4..72fa7dde0b 100644--- a/packages/core/src/Tooltip/Tooltip.doc.mjs+++ b/packages/core/src/Tooltip/Tooltip.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Tooltip',@@ -109,7 +109,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'Tooltip',displayName: 'Tooltip',@@ -208,7 +208,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'Hover/focus triggered tooltip for displaying short, non-interactive text anchored to trigger element.',usage: {diff --git a/packages/core/src/Tooltip/Tooltip.tsx b/packages/core/src/Tooltip/Tooltip.tsxindex ca658472d4..b418787ebd 100644--- a/packages/core/src/Tooltip/Tooltip.tsx+++ b/packages/core/src/Tooltip/Tooltip.tsx@@ -11,7 +11,7 @@* SYNC: When modified, update these files to stay in sync:* - /packages/core/src/Tooltip/index.ts* - /apps/storybook/stories/Tooltip.stories.tsx- * - /packages/cli/templates/blocks/components/Tooltip/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Tooltip/ (showcase blocks)*/import React, {diff --git a/packages/core/src/Tooltip/useTooltip.doc.mjs b/packages/core/src/Tooltip/useTooltip.doc.mjsindex 1150c1707a..0733885b39 100644--- a/packages/core/src/Tooltip/useTooltip.doc.mjs+++ b/packages/core/src/Tooltip/useTooltip.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').HookDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookDoc} */export const docs = {name: 'useTooltip',displayName: 'useTooltip',@@ -40,7 +40,7 @@ export const docs = {category: 'interaction',};-/** @type {import('../docs-types').HookTranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookTranslationDoc} */export const docsDense = {description: 'Headless hover/focus tooltip hook. Builds on useLayer w/ hover intent, keyboard focus handling, aria-describedby. Use for custom triggers without wrapper component.',paramDescriptions: {diff --git a/packages/core/src/TopNav/TopNav.doc.mjs b/packages/core/src/TopNav/TopNav.doc.mjsindex 8498e94256..f2d302fc46 100644--- a/packages/core/src/TopNav/TopNav.doc.mjs+++ b/packages/core/src/TopNav/TopNav.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'TopNav',@@ -143,7 +143,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {usage: {description:@@ -163,7 +163,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'Top navigation bar for app headers w/ slot-based layout+companion nav item components.',usage: {diff --git a/packages/core/src/TopNav/TopNav.tsx b/packages/core/src/TopNav/TopNav.tsxindex 8f201f0a81..6f26cc315c 100644--- a/packages/core/src/TopNav/TopNav.tsx+++ b/packages/core/src/TopNav/TopNav.tsx@@ -13,7 +13,7 @@* - /packages/core/src/TopNav/TopNav.test.tsx* - /packages/core/src/TopNav/index.ts* - /apps/storybook/stories/TopNav.stories.tsx- * - /packages/cli/templates/blocks/components/TopNav/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/TopNav/ (showcase blocks)*/import type {ReactNode} from 'react';diff --git a/packages/core/src/TopNav/TopNavHeading.doc.mjs b/packages/core/src/TopNav/TopNavHeading.doc.mjsindex 456ddf1a77..dcdf896844 100644--- a/packages/core/src/TopNav/TopNavHeading.doc.mjs+++ b/packages/core/src/TopNav/TopNavHeading.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'TopNavHeading',diff --git a/packages/core/src/TopNav/TopNavHeading.tsx b/packages/core/src/TopNav/TopNavHeading.tsxindex 7455272023..36a1ffef5d 100644--- a/packages/core/src/TopNav/TopNavHeading.tsx+++ b/packages/core/src/TopNav/TopNavHeading.tsx@@ -17,7 +17,7 @@* - /packages/core/src/TopNav/TopNav.test.tsx* - /packages/core/src/TopNav/index.ts* - /apps/storybook/stories/TopNav.stories.tsx- * - /packages/cli/templates/blocks/components/TopNav/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/TopNav/ (showcase blocks)*/import {useMemo, useRef, type ReactNode} from 'react';diff --git a/packages/core/src/TopNav/TopNavItem.doc.mjs b/packages/core/src/TopNav/TopNavItem.doc.mjsindex 06c657e142..7ae860ccba 100644--- a/packages/core/src/TopNav/TopNavItem.doc.mjs+++ b/packages/core/src/TopNav/TopNavItem.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'TopNavItem',diff --git a/packages/core/src/TopNav/TopNavItem.tsx b/packages/core/src/TopNav/TopNavItem.tsxindex a1e800caa4..b6f7872fed 100644--- a/packages/core/src/TopNav/TopNavItem.tsx+++ b/packages/core/src/TopNav/TopNavItem.tsx@@ -13,7 +13,7 @@* - /packages/core/src/TopNav/TopNav.test.tsx* - /packages/core/src/TopNav/index.ts* - /apps/storybook/stories/TopNav.stories.tsx- * - /packages/cli/templates/blocks/components/TopNav/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/TopNav/ (showcase blocks)*/import type {ReactNode} from 'react';diff --git a/packages/core/src/TopNav/TopNavMegaMenu.doc.mjs b/packages/core/src/TopNav/TopNavMegaMenu.doc.mjsindex 1327a1b217..59c69110cf 100644--- a/packages/core/src/TopNav/TopNavMegaMenu.doc.mjs+++ b/packages/core/src/TopNav/TopNavMegaMenu.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'TopNavMegaMenu',diff --git a/packages/core/src/TopNav/TopNavMegaMenu.tsx b/packages/core/src/TopNav/TopNavMegaMenu.tsxindex 5cec0d7f3a..d8a7536899 100644--- a/packages/core/src/TopNav/TopNavMegaMenu.tsx+++ b/packages/core/src/TopNav/TopNavMegaMenu.tsx@@ -20,7 +20,7 @@* SYNC: When modified, update these files to stay in sync:* - /packages/core/src/TopNav/TopNav.doc.mjs* - /packages/core/src/TopNav/index.ts- * - /packages/cli/templates/blocks/components/TopNav/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/TopNav/ (showcase blocks)*/import React, {diff --git a/packages/core/src/TopNav/TopNavMegaMenuFeaturedCard.doc.mjs b/packages/core/src/TopNav/TopNavMegaMenuFeaturedCard.doc.mjsindex 5afbe0e0a9..2d5c1e86ea 100644--- a/packages/core/src/TopNav/TopNavMegaMenuFeaturedCard.doc.mjs+++ b/packages/core/src/TopNav/TopNavMegaMenuFeaturedCard.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'TopNavMegaMenuFeaturedCard',diff --git a/packages/core/src/TopNav/TopNavMegaMenuFeaturedCard.tsx b/packages/core/src/TopNav/TopNavMegaMenuFeaturedCard.tsxindex 1479a43cc9..a70749085d 100644--- a/packages/core/src/TopNav/TopNavMegaMenuFeaturedCard.tsx+++ b/packages/core/src/TopNav/TopNavMegaMenuFeaturedCard.tsx@@ -15,7 +15,7 @@* SYNC: When modified, update these files to stay in sync:* - /packages/core/src/TopNav/TopNav.doc.mjs* - /packages/core/src/TopNav/index.ts- * - /packages/cli/templates/blocks/components/TopNav/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/TopNav/ (showcase blocks)*/import React, {type ReactNode} from 'react';diff --git a/packages/core/src/TopNav/TopNavMegaMenuItem.doc.mjs b/packages/core/src/TopNav/TopNavMegaMenuItem.doc.mjsindex fecf3b7eb7..a0dc8bcad3 100644--- a/packages/core/src/TopNav/TopNavMegaMenuItem.doc.mjs+++ b/packages/core/src/TopNav/TopNavMegaMenuItem.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'TopNavMegaMenuItem',diff --git a/packages/core/src/TopNav/TopNavMegaMenuItem.tsx b/packages/core/src/TopNav/TopNavMegaMenuItem.tsxindex 396491d18f..7a078439a0 100644--- a/packages/core/src/TopNav/TopNavMegaMenuItem.tsx+++ b/packages/core/src/TopNav/TopNavMegaMenuItem.tsx@@ -12,7 +12,7 @@* SYNC: When modified, update these files to stay in sync:* - /packages/core/src/TopNav/TopNav.doc.mjs* - /packages/core/src/TopNav/index.ts- * - /packages/cli/templates/blocks/components/TopNav/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/TopNav/ (showcase blocks)*/import React, {type ReactNode} from 'react';diff --git a/packages/core/src/TopNav/TopNavMenu.doc.mjs b/packages/core/src/TopNav/TopNavMenu.doc.mjsindex d685f3b507..76c859ea6b 100644--- a/packages/core/src/TopNav/TopNavMenu.doc.mjs+++ b/packages/core/src/TopNav/TopNavMenu.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'TopNavMenu',diff --git a/packages/core/src/TopNav/TopNavMenu.tsx b/packages/core/src/TopNav/TopNavMenu.tsxindex 9325dcf0a3..e8e3c5b539 100644--- a/packages/core/src/TopNav/TopNavMenu.tsx+++ b/packages/core/src/TopNav/TopNavMenu.tsx@@ -13,7 +13,7 @@* - /packages/core/src/TopNav/TopNav.doc.mjs* - /packages/core/src/TopNav/TopNavMenu.test.tsx* - /packages/core/src/TopNav/index.ts- * - /packages/cli/templates/blocks/components/TopNav/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/TopNav/ (showcase blocks)*/import React, {diff --git a/packages/core/src/TreeList/TreeList.doc.mjs b/packages/core/src/TreeList/TreeList.doc.mjsindex 9d60ac5021..4658039df7 100644--- a/packages/core/src/TreeList/TreeList.doc.mjs+++ b/packages/core/src/TreeList/TreeList.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'TreeList',@@ -94,7 +94,7 @@ export const docs = {// See .context/decisions/dense-compression-protocol.md// --------------------------------------------------------/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'TreeList',displayName: 'Tree List',@@ -165,7 +165,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'Data-driven tree list for hierarchical data w/ expand/collapse, branch lines, interactive items. Flat items array w/ recursive children, no composition, no cloneElement.',diff --git a/packages/core/src/TreeList/TreeList.tsx b/packages/core/src/TreeList/TreeList.tsxindex 02bc14d2cb..ffea950eb7 100644--- a/packages/core/src/TreeList/TreeList.tsx+++ b/packages/core/src/TreeList/TreeList.tsx@@ -12,7 +12,7 @@* - /packages/core/src/TreeList/TreeList.doc.mjs* - /packages/core/src/TreeList/index.ts* - /apps/storybook/stories/TreeList.stories.tsx- * - /packages/cli/templates/blocks/components/TreeList/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/TreeList/ (showcase blocks)*/import {useId, useState, useMemo, useCallback, type ReactNode} from 'react';diff --git a/packages/core/src/TreeList/TreeListBranches.tsx b/packages/core/src/TreeList/TreeListBranches.tsxindex 5affefca55..f93ec9605e 100644--- a/packages/core/src/TreeList/TreeListBranches.tsx+++ b/packages/core/src/TreeList/TreeListBranches.tsx@@ -10,7 +10,7 @@** SYNC: When modified, update these files to stay in sync:* - /packages/core/src/TreeList/TreeListItem.tsx- * - /packages/cli/templates/blocks/components/TreeList/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/TreeList/ (showcase blocks)*/import * as stylex from '@stylexjs/stylex';diff --git a/packages/core/src/TreeList/TreeListItem.tsx b/packages/core/src/TreeList/TreeListItem.tsxindex d3a4968f94..761d809eee 100644--- a/packages/core/src/TreeList/TreeListItem.tsx+++ b/packages/core/src/TreeList/TreeListItem.tsx@@ -11,7 +11,7 @@* SYNC: When modified, update these files to stay in sync:* - /packages/core/src/TreeList/TreeList.doc.mjs* - /packages/core/src/TreeList/TreeList.tsx- * - /packages/cli/templates/blocks/components/TreeList/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/TreeList/ (showcase blocks)*/import {useId, useMemo, type ReactNode} from 'react';diff --git a/packages/core/src/Typeahead/BaseTypeahead.doc.mjs b/packages/core/src/Typeahead/BaseTypeahead.doc.mjsindex 53aca7e293..f3f33bde41 100644--- a/packages/core/src/Typeahead/BaseTypeahead.doc.mjs+++ b/packages/core/src/Typeahead/BaseTypeahead.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'BaseTypeahead',diff --git a/packages/core/src/Typeahead/BaseTypeahead.tsx b/packages/core/src/Typeahead/BaseTypeahead.tsxindex cf0234fe5a..d9f5aa53d8 100644--- a/packages/core/src/Typeahead/BaseTypeahead.tsx+++ b/packages/core/src/Typeahead/BaseTypeahead.tsx@@ -14,7 +14,7 @@** SYNC: When modified, update:* - /packages/core/src/Typeahead/index.ts- * - /packages/cli/templates/blocks/components/Typeahead/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Typeahead/ (showcase blocks)*/import React, {diff --git a/packages/core/src/Typeahead/Typeahead.doc.mjs b/packages/core/src/Typeahead/Typeahead.doc.mjsindex ebe3e1f440..1411879fc2 100644--- a/packages/core/src/Typeahead/Typeahead.doc.mjs+++ b/packages/core/src/Typeahead/Typeahead.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Typeahead',@@ -233,7 +233,7 @@ export const docs = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {usage: {description:@@ -277,7 +277,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'Searchable dropdown for single-item selection w/ keyboard navigation. Supports async+sync search via searchSource interface.',diff --git a/packages/core/src/Typeahead/Typeahead.tsx b/packages/core/src/Typeahead/Typeahead.tsxindex bef4736239..a1ab712f28 100644--- a/packages/core/src/Typeahead/Typeahead.tsx+++ b/packages/core/src/Typeahead/Typeahead.tsx@@ -15,7 +15,7 @@* SYNC: When modified, update:* - /packages/core/src/Typeahead/index.ts* - /apps/storybook/stories/Typeahead.stories.tsx- * - /packages/cli/templates/blocks/components/Typeahead/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Typeahead/ (showcase blocks)*/import React, {diff --git a/packages/core/src/Typeahead/TypeaheadItem.doc.mjs b/packages/core/src/Typeahead/TypeaheadItem.doc.mjsindex a076700354..a1be47e706 100644--- a/packages/core/src/Typeahead/TypeaheadItem.doc.mjs+++ b/packages/core/src/Typeahead/TypeaheadItem.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'TypeaheadItem',diff --git a/packages/core/src/Typeahead/TypeaheadItem.tsx b/packages/core/src/Typeahead/TypeaheadItem.tsxindex 42fda43093..85e6827548 100644--- a/packages/core/src/Typeahead/TypeaheadItem.tsx+++ b/packages/core/src/Typeahead/TypeaheadItem.tsx@@ -8,7 +8,7 @@** SYNC: When modified, update:* - /packages/core/src/Typeahead/index.ts- * - /packages/cli/templates/blocks/components/Typeahead/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Typeahead/ (showcase blocks)*/import React, {type ReactNode} from 'react';diff --git a/packages/core/src/VStack/VStack.tsx b/packages/core/src/VStack/VStack.tsxindex fc12636953..026c3912cf 100644--- a/packages/core/src/VStack/VStack.tsx+++ b/packages/core/src/VStack/VStack.tsx@@ -9,7 +9,7 @@* SYNC: When modified, update these files to stay in sync:* - /packages/core/src/Stack/Stack.doc.mjs* - /packages/core/src/VStack/VStack.test.tsx- * - /packages/cli/templates/blocks/components/VStack/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/VStack/ (showcase blocks)*/import {Stack, type StackProps} from '../Stack/Stack';diff --git a/packages/core/src/VisuallyHidden/VisuallyHidden.doc.mjs b/packages/core/src/VisuallyHidden/VisuallyHidden.doc.mjsindex dceda1be8c..245d36b4ec 100644--- a/packages/core/src/VisuallyHidden/VisuallyHidden.doc.mjs+++ b/packages/core/src/VisuallyHidden/VisuallyHidden.doc.mjs@@ -2,7 +2,7 @@-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'VisuallyHidden',@@ -33,7 +33,7 @@ export const docs = {},};-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'VisuallyHidden',displayName: 'VisuallyHidden',@@ -61,7 +61,7 @@ export const docsZh = {},};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'renders content in the a11y tree while hiding it visually (sr-only)',usage: {diff --git a/packages/core/src/VisuallyHidden/VisuallyHidden.tsx b/packages/core/src/VisuallyHidden/VisuallyHidden.tsxindex b4f01e614a..3ad7701ff1 100644--- a/packages/core/src/VisuallyHidden/VisuallyHidden.tsx+++ b/packages/core/src/VisuallyHidden/VisuallyHidden.tsx@@ -13,7 +13,7 @@* - /packages/core/src/VisuallyHidden/VisuallyHidden.doc.mjs* - /packages/core/src/VisuallyHidden/VisuallyHidden.test.tsx* - /apps/storybook/stories/VisuallyHidden.stories.tsx- * - /packages/cli/templates/blocks/components/VisuallyHidden/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/VisuallyHidden/ (showcase blocks)*/import {createElement, type ElementType, type ReactNode, type Ref} from 'react';diff --git a/packages/core/src/__tests__/inputWidthContract.test.tsx b/packages/core/src/__tests__/inputWidthContract.test.tsxindex 0b8312f360..edf40a5c9c 100644--- a/packages/core/src/__tests__/inputWidthContract.test.tsx+++ b/packages/core/src/__tests__/inputWidthContract.test.tsx@@ -43,7 +43,14 @@ const inputDocsSuite = [describe('Input Family width Prop Contract (#4163)', () => {inputDocsSuite.forEach(({name, docs}) => {it(`documents the width prop for ${name}`, () => {- const propsList = (docs.props || docs.components?.[0]?.props) as {+ // `docs` is the ComponentDoc union (single vs multi component); narrow it+ // for structural access to either the top-level props or the first+ // sub-component's props.+ const doc = docs as {+ props?: {name: string; type: string}[];+ components?: {props?: {name: string; type: string}[]}[];+ };+ const propsList = (doc.props || doc.components?.[0]?.props) as {name: string;type: string;}[];diff --git a/packages/core/src/authoring/doc.ts b/packages/core/src/authoring/doc.tsdeleted file mode 100644index c6bde42a77..0000000000--- a/packages/core/src/authoring/doc.ts+++ /dev/null@@ -1,164 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--/**- * @file doc.ts- * @input A component/function/generic doc object (without the `type` tag).- * @output Type-preserving `createComponentDoc`/`createFunctionDoc`/`createDoc`- * helpers plus the doc-authoring TypeScript surface.- * @position Integration-author authoring surface. See `./index.ts` for why- * these authoring factories live in `@astryxdesign/core`.- *- * A doc describes a documentable unit of the design system so the CLI and docs- * surfaces can list, search, and render it. There are three kinds, each a tiny- * runtime identity helper that stamps a `type` discriminant:- *- * - `createComponentDoc` -> `type: 'component'` — a component (or a family).- * - `createFunctionDoc` -> `type: 'function'` — any function, including- * hooks: an "inputs + outputs" surface (`params` + `returns`).- * - `createDoc` -> `type: 'generic'` — reference/topic docs.- *- * These factories do NOT validate. Validation happens at the CLI load boundary,- * where doc discovery runs the loaded value through a schema that accepts BOTH- * the stamped formats and the legacy loose `export const docs = {...}` shape.- */--/**- * Fields shared by every doc kind (component + function + generic).- *- * `group` vs `parent` are distinct:- * - `group` is a FLAT sidebar bucket label; many docs can share it and it is- * NOT an inheritance key.- * - `parent` is a DIRECTED inheritance/composition pointer — a doc naming the- * doc it belongs to (e.g. a sub-component naming its parent component). The- * legacy `subComponentOf` field is a synonym.- *- * `relatedDocs` is a single flat curated cross-reference list; it replaces the- * legacy split `relatedComponents` + `relatedHooks`.- */-export interface AstryxBaseDocInput {- /** Name of the documented unit, without any prefix, PascalCase. Required. */- name: string;- /** Human-readable display name for gallery/sidebar. */- displayName?: string;- /** Short description. */- description?: string;- /** Usage documentation (description, best practices, anatomy, slotElements). */- usage?: unknown;- /** Flat sidebar grouping label (not an inheritance key). */- group?: string;- /** Overview-page functional category. */- category?: string;- /** CLI fuzzy-search keywords. */- keywords?: string[];- /** Directed inheritance/composition pointer to the doc this belongs to. */- parent?: string;- /** Flat curated cross-reference list of related doc names. */- relatedDocs?: string[];- /** Hide the whole doc from human-facing UI (stays importable/discoverable). */- hidden?: boolean;- /** Exclude from the categorized overview page (kept in sidebar/CLI). */- isHiddenFromOverview?: boolean;- /** Any additional fields the rich doc surface carries. */- [key: string]: unknown;-}--/** A single documented prop (mirrors `PropDoc` from core docs-types). */-export interface AstryxPropInput {- name: string;- type: string;- description: string;- default?: string;- required?: boolean;- [key: string]: unknown;-}--/** A single documented param (mirrors `HookParamDoc`). */-export interface AstryxParamInput {- name: string;- type: string;- description: string;- default?: string;- required?: boolean;- [key: string]: unknown;-}--/** A single documented return field (mirrors `HookReturnDoc`). */-export interface AstryxReturnInput {- name: string;- type: string;- description: string;- [key: string]: unknown;-}--/**- * Input accepted by {@link createComponentDoc}. A component (or a family). The- * `type` discriminant is injected by the factory. `anatomy`/`slotElements` live- * inside `usage`; `importPath` is DERIVED (never authored).- */-export interface AstryxComponentDocInput extends AstryxBaseDocInput {- /** All public props for the component. */- props: AstryxPropInput[];- /** Theming/selector-surface metadata. */- theming?: unknown;- /** Interactive-preview playground configuration. */- playground?: unknown;- /** Short code examples rendered after the props table. */- examples?: unknown[];-}--/**- * Input accepted by {@link createFunctionDoc}. Covers any function, including- * hooks: an inputs (`params`) + outputs (`returns`) surface. The `type`- * discriminant is injected by the factory; `importPath` is DERIVED.- */-export interface AstryxFunctionDocInput extends AstryxBaseDocInput {- /** Function/hook parameters or options-object fields. */- params: AstryxParamInput[];- /** Return value documentation. One entry per field (or a single primitive). */- returns: AstryxReturnInput[];-}--/**- * Input accepted by {@link createDoc}. A generic reference/topic doc — just the- * shared base. The `type` discriminant is injected by the factory.- */-export type AstryxGenericDocInput = AstryxBaseDocInput;--/**- * Back-compat alias. Previously `createDoc` accepted a broad component-doc- * record; the union of the three input kinds preserves that permissiveness for- * any code referring to the old name.- */-export type AstryxComponentDoc =- AstryxComponentDocInput | AstryxFunctionDocInput | AstryxGenericDocInput;--/**- * Author a component doc. Stamp-only: returns the def with `type: 'component'`- * injected. Validation happens at the CLI load boundary.- */-export function createComponentDoc<T extends AstryxComponentDocInput>(- def: T,-): T & {type: 'component'} {- return {...def, type: 'component'};-}--/**- * Author a function doc (covers any function, including hooks). Stamp-only:- * returns the def with `type: 'function'` injected. Validation happens at the- * CLI load boundary.- */-export function createFunctionDoc<T extends AstryxFunctionDocInput>(- def: T,-): T & {type: 'function'} {- return {...def, type: 'function'};-}--/**- * Author a generic reference/topic doc. Stamp-only: returns the def with- * `type: 'generic'` injected. Validation happens at the CLI load boundary.- */-export function createDoc<T extends AstryxGenericDocInput>(- def: T,-): T & {type: 'generic'} {- return {...def, type: 'generic'};-}diff --git a/packages/core/src/authoring/index.test.ts b/packages/core/src/authoring/index.test.tsdeleted file mode 100644index 201c42f01c..0000000000--- a/packages/core/src/authoring/index.test.ts+++ /dev/null@@ -1,52 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--import {describe, expect, it} from 'vitest';-import {- createIntegration,- createPageTemplate,- createBlockTemplate,- createComponentDoc,- createFunctionDoc,- createDoc,-} from './index';--describe('authoring factories', () => {- it('createIntegration returns its argument unchanged', () => {- const input = {components: './c', templates: './t'};- expect(createIntegration(input)).toBe(input);- });-- it('createPageTemplate / createBlockTemplate stamp the template type', () => {- expect(createPageTemplate({name: 'P', description: 'd'}).type).toBe('page');- expect(createBlockTemplate({name: 'B', description: 'd'}).type).toBe(- 'block',- );- });-- it('createPageTemplate preserves authored fields', () => {- const t = createPageTemplate({name: 'P', description: 'd', category: 'x'});- expect(t).toMatchObject({- name: 'P',- description: 'd',- category: 'x',- type: 'page',- });- });-- it('doc factories stamp the doc kind', () => {- expect(createComponentDoc({name: 'Button', props: []}).type).toBe(- 'component',- );- expect(- createFunctionDoc({name: 'useX', params: [], returns: []}).type,- ).toBe('function');- expect(createDoc({name: 'Topic'}).type).toBe('generic');- });-- it('doc factories do not mutate the input object', () => {- const input = {name: 'Button', props: []};- const out = createComponentDoc(input);- expect(out).not.toBe(input);- expect(input).not.toHaveProperty('type');- });-});diff --git a/packages/core/src/authoring/index.ts b/packages/core/src/authoring/index.tsdeleted file mode 100644index 04941121f5..0000000000--- a/packages/core/src/authoring/index.ts+++ /dev/null@@ -1,50 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--/**- * @file index.ts- * @input None (barrel).- * @output The Astryx integration-authoring surface: the stamp-only factories an- * integration package uses to describe what it contributes (integrations,- * templates, docs), plus their TypeScript input/output types.- * @position Producer-facing authoring surface, exported as- * `@astryxdesign/core/authoring`.- *- * ## Why these live in core- *- * These factories are tiny, zero-runtime-dependency identity functions whose- * value is their TypeScript surface. Hosting them in `@astryxdesign/core` (the- * base of the dependency graph) means core's own docs can adopt them without a- * core -> cli -> core cycle, and integration authors get the types without a- * hard dependency on the CLI. The CLI re-exports every factory from its- * existing subpaths (`@astryxdesign/cli/integration|template|doc`) for- * back-compat; the CLI keeps the Zod validation schemas at its load boundary.- *- * `createConfig` is intentionally NOT here — it is a consumer surface (every app- * with an `astryx.config`), exported separately as `@astryxdesign/core/config`.- */--export {createIntegration} from './integration';-export type {AstryxIntegration} from './integration';--export {createPageTemplate, createBlockTemplate} from './template';-export type {- AstryxTemplatePreview,- AstryxTemplateInput,- AstryxPageTemplateInput,- AstryxBlockTemplateInput,- AstryxPageTemplate,- AstryxBlockTemplate,- AstryxTemplate,-} from './template';--export {createComponentDoc, createFunctionDoc, createDoc} from './doc';-export type {- AstryxBaseDocInput,- AstryxPropInput,- AstryxParamInput,- AstryxReturnInput,- AstryxComponentDocInput,- AstryxFunctionDocInput,- AstryxGenericDocInput,- AstryxComponentDoc,-} from './doc';diff --git a/packages/core/src/authoring/integration.ts b/packages/core/src/authoring/integration.tsdeleted file mode 100644index 45b9ce5acc..0000000000--- a/packages/core/src/authoring/integration.ts+++ /dev/null@@ -1,42 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--/**- * @file integration.ts- * @input An integration package's manifest object.- * @output A type-preserving `createIntegration` helper plus the- * `AstryxIntegration` manifest surface.- * @position Integration-author authoring surface. See `./index.ts` for why- * these authoring factories live in `@astryxdesign/core`.- *- * `createIntegration` is an intentionally tiny runtime identity function: it- * returns its argument unchanged. Validation is NOT performed here — it happens- * at the CLI load boundary.- */--/**- * Integration manifest exported from a conventional root manifest file- * (astryx.integration.{ts,mjs,js}) sibling to the integration package's- * package.json. Identity (name/version) comes from the package's- * package.json, not from the manifest.- */-export interface AstryxIntegration {- /** Relative path to the components/docs root (resolved to absolute). */- components?: string;- /** Relative path to the templates root (resolved to absolute). */- templates?: string;- /** Relative path to the codemods root (resolved to absolute). */- codemods?: string;- /** Where to file issues/feedback for this integration. */- issuesUrl?: string;-}--/**- * Type-preserving helper for an Astryx integration manifest. Returns its- * argument unchanged; the value is the exported TypeScript surface. Validation- * happens at the CLI load boundary.- */-export function createIntegration<T extends AstryxIntegration>(- integration: T,-): T {- return integration;-}diff --git a/packages/core/src/authoring/template.ts b/packages/core/src/authoring/template.tsdeleted file mode 100644index 53ec8594be..0000000000--- a/packages/core/src/authoring/template.ts+++ /dev/null@@ -1,74 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--/**- * @file template.ts- * @input A page/block template doc object (without the `type` tag).- * @output Type-preserving `createPageTemplate`/`createBlockTemplate` helpers- * plus the authored-template TypeScript surface.- * @position Integration-author authoring surface. See `./index.ts` for why- * these authoring factories live in `@astryxdesign/core`.- *- * A template doc lives in a `<id>.doc.{ts,mjs,js}` file with a required- * same-stem sibling source file (`<id>.tsx`). The doc's `type` (page or block)- * — injected by the create* helpers — decides how the template is scaffolded.- *- * These are tiny runtime identity helpers that inject the `type` discriminant.- * They do NOT validate — validation happens at the CLI load boundary, where- * integration template discovery runs the module's default export through the- * template envelope schema.- */--/** Optional preview metadata for a template (used by docs surfaces). */-export interface AstryxTemplatePreview {- /** Path or URL to a preview image. */- image?: string;- /** CSS aspect-ratio hint for the preview, e.g. "16 / 9". */- aspectRatio?: string;-}--/** Fields common to page and block template docs (without the `type` tag). */-export interface AstryxTemplateInput {- /** Human-readable template name. Required. */- name: string;- /** One-line description of what the template provides. Required. */- description: string;- /** Optional grouping/category label. */- category?: string;- /** Component display names the template composes. */- componentsUsed?: string[];- /** Optional preview metadata. */- preview?: AstryxTemplatePreview;-}--/** Input accepted by {@link createPageTemplate} (no `type` field). */-export type AstryxPageTemplateInput = AstryxTemplateInput;-/** Input accepted by {@link createBlockTemplate} (no `type` field). */-export type AstryxBlockTemplateInput = AstryxTemplateInput;--/** A validated page template doc. */-export type AstryxPageTemplate = AstryxTemplateInput & {type: 'page'};-/** A validated block template doc. */-export type AstryxBlockTemplate = AstryxTemplateInput & {type: 'block'};--/** A validated template doc (page or block). */-export type AstryxTemplate = AstryxPageTemplate | AstryxBlockTemplate;--/**- * Author an Astryx page template doc. Stamp-only: returns the def with- * `type: 'page'` injected. Validation happens at the CLI load boundary.- */-export function createPageTemplate<T extends AstryxPageTemplateInput>(- def: T,-): T & {type: 'page'} {- return {...def, type: 'page'};-}--/**- * Author an Astryx block template doc. Stamp-only: returns the def with- * `type: 'block'` injected. Validation happens at the CLI load boundary.- */-export function createBlockTemplate<T extends AstryxBlockTemplateInput>(- def: T,-): T & {type: 'block'} {- return {...def, type: 'block'};-}diff --git a/packages/core/src/config.test.ts b/packages/core/src/config.test.tsdeleted file mode 100644index c87b3e58f4..0000000000--- a/packages/core/src/config.test.ts+++ /dev/null@@ -1,16 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--import {describe, expect, it} from 'vitest';-import {createConfig} from './config';--describe('createConfig', () => {- it('returns its argument unchanged (identity)', () => {- const input = {integrations: ['@acme/astryx'], issuesUrl: 'https://x'};- expect(createConfig(input)).toBe(input);- });-- it('does not stamp a discriminant', () => {- const cfg = createConfig({integrations: []}) as Record<string, unknown>;- expect(cfg.type).toBeUndefined();- });-});diff --git a/packages/core/src/doc-mjs.d.ts b/packages/core/src/doc-mjs.d.tsindex 9bea479944..c2b3097a0e 100644--- a/packages/core/src/doc-mjs.d.ts+++ b/packages/core/src/doc-mjs.d.ts@@ -11,9 +11,12 @@*/declare module '*.doc.mjs' {- import type {ComponentDoc, TranslationDoc} from './docs-types';+ import type {+ ComponentDoc,+ ComponentTranslationDoc,+ } from '@astryxdesign/cli/authoring';export const docs: ComponentDoc;export const docsZh: ComponentDoc;- export const docsDense: TranslationDoc;+ export const docsDense: ComponentTranslationDoc;}diff --git a/packages/core/src/docPropLiterals.test.ts b/packages/core/src/docPropLiterals.test.tsindex 8b1ed95887..af499f2ea3 100644--- a/packages/core/src/docPropLiterals.test.ts+++ b/packages/core/src/docPropLiterals.test.ts@@ -11,7 +11,7 @@* without revealing what may be written into it. Readers without an IDE —* agents especially — then guess: `gap={16}` (pixels, not a scale step),* `direction: 'desc'` (the type says `'descending'`). Both fail to compile.- * `PropDoc.type` in docs-types.ts already asks for inlined unions+ * `ComponentPropDoc.type` in docs-types.ts already asks for inlined unions* (`"'primary' | 'secondary' | 'ghost'"`); this test holds docs to it.** Two ways a doc prop can hide values, checked at different strictness:diff --git a/packages/core/src/docPropReferences.test.ts b/packages/core/src/docPropReferences.test.tsindex 4d3055dea8..54ba8ee04f 100644--- a/packages/core/src/docPropReferences.test.ts+++ b/packages/core/src/docPropReferences.test.ts@@ -30,7 +30,7 @@ type DocModule = {};/**- * Props intentionally omitted from doc props[]: PropDoc in docs-types.ts+ * Props intentionally omitted from doc props[]: ComponentPropDoc in docs-types.ts* says to skip internal/styling props, so prose may reference them even* though no doc lists them.*/diff --git a/packages/core/src/docs-types.ts b/packages/core/src/docs-types.tsdeleted file mode 100644index 90b9dad692..0000000000--- a/packages/core/src/docs-types.ts+++ /dev/null@@ -1,1108 +0,0 @@-// Copyright (c) Meta Platforms, Inc. and affiliates.--/**- * @file Type definitions for component documentation.- *- * Every component directory under `packages/core/src/` has a `{Name}.doc.mjs`- * that exports a single `docs` constant typed via JSDoc. The CLI imports these- * directly — no markdown parsing needed.- */--/**- * Documents a single component prop. Each prop the component accepts- * should have an entry. Skip internal/styling props like `xstyle`,- * `className`, `style`, and `data-testid`.- *- * @example- * ```- * {name: 'label', type: 'string', description: 'Visible label text', required: true}- * {name: 'size', type: "'sm' | 'md' | 'lg'", description: 'Control size', default: "'md'"}- * {name: 'onChange', type: '(value: string) => void', description: 'Called when value changes.'}- * ```- */-export interface PropDoc {- /** Prop name exactly as used in JSX, camelCased.- * Callbacks start with `on` (`"onChange"`, `"onToggle"`).- * Booleans use `is`/`has` prefix (`"isDisabled"`, `"hasHover"`). */- name: string;- /** TypeScript type signature as a string. Use single quotes for string- * literal unions. Keep close to the actual TS type.- *- * Simple: `"string"`, `"boolean"`, `"ReactNode"`- * Union: `"'primary' | 'secondary' | 'ghost'"`- * Function: `"(checked: boolean, e: ChangeEvent) => void"`- * Async: `"(e: MouseEvent) => void | Promise<void>"`- * Generic: `"TableColumn<T>[]"` */- type: string;- /** What this prop does, in 1-2 sentences. Focus on behavior and- * consequences rather than restating the prop name.- *- * Good: `"Shows a loading spinner and disables interaction."`- * Weak: `"Shows a loading spinner."` */- description: string;- /** Default value as a string, if the prop is optional and has one.- * String literals in single quotes: `"'md'"`, `"'balanced'"`.- * Other values unquoted: `"false"`, `"0"`, `"() => true"`.- * Omit entirely for required props or optional props with no default. */- default?: string;- /** True if the prop must be provided. Omit (don't set to false) if optional. */- required?: boolean;- /** For ReactNode props: the Astryx components this slot typically accepts.- * Each entry is an ElementDescriptor that the playground uses to- * create a default instance when the user toggles the slot on.- *- * Single-element slots (icon, endContent) have one option with a toggle.- * Multi-element slots (children on List) can have options the user picks from.- *- * The playground uses this instead of hardcoded component→control mappings.- * Omit for ReactNode props that accept plain text (label, description).- *- * @example- * ```- * // Single option — renders as a toggle switch- * slotElements: [{__element: 'Icon', props: {icon: 'check', size: 'sm'}}]- *- * // Multiple options — renders as a selector- * slotElements: [- * {__element: 'Icon', props: {icon: 'check', size: 'sm'}},- * {__element: 'Badge', props: {label: 'Badge'}},- * ]- * ```- */- slotElements?: ElementDescriptor[];-}--/**- * A theming target — a stable selector surface that `defineTheme` can target- * via `@scope` selectors. Each component renders one or more stable `xds-*`- * class names and reflects visual props/states as `data-*` attributes via- * `themeProps()`, so themes and external CSS have an explicit prop-aware selector surface.- *- * @example- * ```- * {className: 'astryx-button', visualProps: ['variant', 'size']}- * {className: 'astryx-avatar-status-dot', visualProps: ['variant']}- * {className: 'astryx-card'}- * ```- */-export interface ThemingTarget {- /** The stable CSS class name rendered by the component.- * Always starts with `astryx-`.- * e.g. `"astryx-button"`, `"astryx-avatar-status-dot"`, `"astryx-card"` */- className: string;- /** Visual prop names reflected on this element.- * These are the props passed to `themeProps()` as the second argument.- * Use these names to derive preferred data selectors: `variant` →- * `[data-variant="secondary"]`, `level` → `[data-level="2"]`. Legacy bare- * classes are still emitted for compatibility but should not be the primary- * documentation surface. Omit if the component has no visual props (class- * name only). */- visualProps?: string[];- /** State names that appear on this element based on component state.- * Unlike visualProps (driven by props), these reflect runtime state- * (checked, selected, today, on, expanded, etc.). Use these names to derive preferred data selectors such as- * `[data-checked="checked"]`. Legacy state classes are still emitted for- * compatibility. Omit if the element has no state-driven selectors. */- states?: string[];-}--/**- * Maps a standard CSS property to one or more internal CSS custom properties.- *- * Theme authors write standard CSS (e.g. `borderRadius: '32px'`). The theme- * pipeline reads this metadata and expands it: emitting both the CSS property- * AND the internal var(s) that the component reads.- *- * Entries are ordered by priority — earlier entries are emitted first.- * When multiple entries share the same `property`, all fire (in order).- *- * The special `expand: 'container'` triggers the 7-token container padding- * expansion instead of setting a specific var.- *- * @example- * ```- * // Simple: borderRadius → one internal var- * { property: 'borderRadius', vars: ['--_card-radius'] }- *- * // Container expansion: padding → 7 container tokens- * { property: 'padding', expand: 'container' }- *- * // Multiple vars from one property- * { property: 'padding', vars: ['--_chat-composer-padding', '--_composer-button-offset'] }- *- * // Multiple entries for the same property (both fire, in order)- * { property: 'padding', expand: 'container' },- * { property: 'padding', vars: ['--_card-padding'] },- * ```- */-export interface DerivedVar {- /** The standard CSS property name (camelCase) that theme authors write.- * e.g. `'borderRadius'`, `'padding'`, `'paddingBlock'` */- property: string;- /** Internal CSS custom property names to set when this property appears- * in a theme's component overrides. Omit when using `expand`. */- vars?: string[];- /** Named expansion strategy instead of specific vars.- * `'container'` — expands padding to 7 container layout tokens. */- expand?: 'container';-}--/**- * Documents a CSS custom property exposed by a component for theming.- * These vars are set on the component's root element and can be overridden- * via `defineTheme` component overrides.- *- * @example- * ```- * {name: '--_card-radius', description: 'Border radius', default: 'var(--radius-container)'}- * {name: '--card-concentric-radius', description: 'Inner radius', derived: true, formula: 'max(0px, calc(var(--_card-radius) - var(--card-padding)))'}- * ```- */-export interface ComponentVar {- /** CSS custom property name, e.g. '--_card-radius' or '--button-press-scale' */- name: string;- /** What this var controls */- description: string;- /** Default value as a CSS expression, e.g. 'var(--radius-container)' */- default: string;- /** Whether this var is derived from other vars (not directly settable) */- derived?: boolean;- /** CSS expression showing how derived vars are computed */- formula?: string;- /**- * Whether this var is private (internal implementation detail).- * Private vars are set by the derived var expansion pipeline — theme- * authors write standard CSS properties instead of setting them directly.- * The CLI hides private vars from theming output.- * `astryx theme build` errors if a theme sets a private var directly.- */- private?: boolean;-}--/**- * Documents one component within a multi-component directory. Used when a- * directory exports multiple public components (e.g. Table exports Table,- * BaseTable, TableRow, TableCell, TableHeaderCell).- *- * Also use for hooks that are part of a component API (e.g.- * useTableSelection). For hook entries, document arguments in `params`- * and return fields in `returns` so the docsite renders a Parameters / Returns- * signature instead of an interactive Properties playground. Order components- * with the primary/most-used component first.- */-export interface ComponentEntry {- /** Full export name including Astryx prefix. e.g. `"TableRow"`,- * `"DialogHeader"`, `"useTableSelection"` */- name: string;- /** Human-readable display name for this subcomponent. Matches the import- * name visually with spaces between PascalCase / camelCase words- * (e.g. `"TableRow"` → `"Astryx Table Row"`). See `BaseDoc.displayName`. */- displayName: string;- /** One-sentence description of what this specific component does.- * For sub-components, explain the role within the parent composition. */- description: string;- /** All public props for this component. Omit for hook entries. */- props?: PropDoc[];- /** Hook parameters or options object fields. Use for `use*` entries. */- params?: HookParamDoc[];- /** Hook return value fields. Use for `use*` entries. */- returns?: HookReturnDoc[];- /** Usage documentation for this specific component or hook. */- usage?: UsageDoc;- /** Components this hook is commonly used with. */- relatedComponents?: string[];- /** Other hooks this hook is commonly used with. */- relatedHooks?: string[];- /** Short code examples rendered by the CLI after the props table. */- examples?: ExampleDoc[];- /** When true, this sub-component is excluded from the overview page. */- isHiddenFromOverview?: boolean;- /** Playground configuration for this specific component. Falls back to- * the directory doc's `playground` when omitted — declare one here when- * siblings must not share it (e.g. an overlay drawer whose toggle- * sub-component should not inherit `overlay: true`). */- playground?: PlaygroundConfig;-}--/**- * Code example for a component or sub-component.- */-export interface ExampleDoc {- /** Optional heading shown above the code block. */- label?: string;- /** TSX source for the example. */- code: string;-}--/**- * Documents one element in a component's anatomy breakdown.- * Anatomy describes the visual/structural parts that make up a component- * (e.g. a Button has: left icon, label, end content, container).- *- * @example- * ```- * {name: 'Label', required: true, description: 'Accessible text for the button. Set isLabelHidden to visually hide it.'}- * {name: 'Left icon', required: false, description: 'Visually represents the meaning of the button label. Icon size is typically 16px.'}- * ```- */-export interface AnatomyElement {- /** Human-readable element name. e.g. `"Label"`, `"Left icon"`, `"Container"` */- name: string;- /** Whether this element is required for the component to function. */- required: boolean;- /** What this element is and how it contributes to the component. 1-2 sentences. */- description: string;-}--/**- * A single do/don't best practice for a component.- * Rendered as a table row with a colored "Do" or "Don't" badge- * in the Guidance column and the description in the Practices column.- *- * @example- * ```- * {guidance: true, description: 'Convey clear action hierarchy. Each surface should only have 1 primary button.'}- * {guidance: false, description: 'Overuse primary or special buttons. Overusing colored buttons creates visual confusion.'}- * ```- */-export interface BestPractice {- /** `true` renders a green "Do" badge; `false` renders a red "Don't" badge. */- guidance: boolean;- /** 1-2 short sentences of design guidance. Focus on how a designer- * would USE the component, not how it's built.- *- * NEVER start with "Do" or "Don't" — the badge handles that.- *- * Good: `"Convey clear action hierarchy. Each surface should only have 1 primary button."`- * Bad: `"Do use clear action hierarchy."` */- description: string;-}--/**- * Component usage documentation — a concise summary, design guidance- * best practices, and optional visual anatomy.- *- * ## description- * Exactly 2-3 short sentences:- * - Sentence 1: What the component is and does.- * - Sentence 2-3: When to use it, or what context it belongs in.- *- * Reference tone: "Buttons provide visual cues for actions and events.- * These fundamental components allow users to commit actions and navigate- * a page flow. Use a Button when a user needs to submit a form, start a- * new task or action, or trigger a new UI element to appear on the page."- *- * ## bestPractices- * Array of 3-4 items. Usually 2 Do items, then 1-2 Don't items.- * Each item is design guidance — not implementation details.- * Never start the description with "Do" or "Don't".- */-export interface UsageDoc {- /** What the component is and when to use it. 2-3 short sentences.- *- * Sentence 1: What the component is and does.- * Sentence 2-3: When to use it, or what context it belongs in.- *- * e.g. `"Buttons provide visual cues for actions and events. These- * fundamental components allow users to commit actions and navigate- * a page flow. Use a Button when a user needs to submit a form,- * start a new task or action, or trigger a new UI element to appear- * on the page."` */- description: string;- /** 3-4 do/don't design guidance items. Usually 2 Do's then 1-2 Don'ts.- * Focus on how a designer would USE the component, not how it's built. */- bestPractices?: BestPractice[];- /** Structural/visual anatomy of the component. Each entry describes one- * element that makes up the component (icon slot, label, container, etc.).- * Order entries in the visual reading order (leading → trailing, top → bottom). */- anatomy?: AnatomyElement[];-}--/**- * A serializable descriptor for a React element. The playground resolves- * these at runtime via `createElement(Core[component], props, ...children)`.- *- * Use this for any prop value that needs to be a React element —- * children slots, icon props, endContent, etc.- *- * @example- * ```- * // Simple element- * {__element: 'Icon', props: {icon: 'check', size: 'sm'}}- *- * // Element with text children- * {__element: 'Text', props: {type: 'body'}, children: 'Hello world'}- *- * // Nested composition- * {__element: 'VStack', props: {gap: 2}, children: [- * {__element: 'Heading', props: {level: 3}, children: 'Title'},- * {__element: 'Text', props: {}, children: 'Body text'},- * ]}- * ```- */-export interface ElementDescriptor {- /** Marker field — presence distinguishes this from a plain object prop value. */- __element: string;- /** Props passed to createElement. Omit or use {} for no props. */- props?: Record<string, unknown>;- /** Children — a string, another ElementDescriptor, or an array of them. */- children?: string | ElementDescriptor | (string | ElementDescriptor)[];-}--/**- * Playground configuration for the interactive component preview.- *- * `defaults` provides the initial prop state for the playground. Every key- * maps to a prop name, and the value is either:- * - A **primitive** (string, number, boolean) — used directly as the prop value- * - An **ElementDescriptor** — resolved to a React element via createElement- *- * Props not listed in `defaults` fall back to the standard logic:- * doc `default` values, then auto-generated values for required props.- *- * @example- * ```- * // Button — just override the label- * playground: {- * defaults: {label: 'Click me', variant: 'primary'},- * }- *- * // Card — provide children content- * playground: {- * defaults: {- * padding: 4,- * children: {- * __element: 'VStack', props: {gap: 2}, children: [- * {__element: 'Heading', props: {level: 3}, children: 'Card Title'},- * {__element: 'Text', props: {type: 'body'}, children: 'Card content goes here.'},- * ],- * },- * },- * }- *- * // Dialog — provide structured children- * playground: {- * defaults: {- * isOpen: true,- * isInline: true,- * onOpenChange: undefined,- * children: {__element: 'Text', props: {type: 'body'}, children: 'Dialog content'},- * },- * }- * ```- */-export interface PlaygroundConfig {- /** Initial prop values for the playground preview.- * Keys are prop names. Values are primitives or ElementDescriptors. */- defaults?: Record<string, unknown>;- /** The component opens as a full-viewport overlay (e.g. via- * `dialog.showModal()`) and renders nothing inline while closed. The- * interactive preview shows an open-trigger placeholder instead of an- * empty stage while `isOpen` is false, and lets the real overlay render- * when opened. Include `isOpen: false` in `defaults` so the preview can- * bridge `onOpenChange` back into playground state.- *- * Only for components with no inline containment (MobileNav, Lightbox).- * Components with an `isInline` docs-preview prop (Dialog, AlertDialog,- * CommandPalette) intentionally keep contained inline previews instead:- * the component is visible on load and knobs stay usable, whereas a real- * top-layer modal makes the rest of the page inert (#3657). */- overlay?: boolean;- /** Required parent wrapper for sub-components that depend on a parent- * context provider (e.g. `Tab` calls `useTabListContext()` and throws- * standalone). The preview wraps the component in this parent before- * rendering, injecting it as `children`. Provide any props the wrapper- * requires (e.g. a matching `value`).- *- * @example- * ```- * playground: {wrapper: {component: 'TabList', props: {value: 'tab-1'}}}- * ```- */- wrapper?: {- /** Parent component name as exported from `@astryxdesign/core`, e.g. `'TabList'`. */- component: string;- /** Props for the wrapper. The previewed sub-component becomes its `children`. */- props?: Record<string, unknown>;- };-}--/**- * Shared fields between single-component and multi-component docs.- * Do not use this interface directly — use `ComponentDoc` (the union type).- */-interface BaseDoc {- /** Directory name without the Astryx prefix, PascalCase.- * e.g. `"Button"`, `"Table"`, `"TextInput"`, `"AppShell"` */- name: string;- /** Human-readable display name with spaces between words, used by the- * docsite gallery and sidebar. Matches the import name visually (so- * `"AppShell"` → `"App Shell"`, `"ChatMessageMetadata"` → `"Chat- * Message Metadata"`). Required so authors stay in control of how- * each component reads in the UI rather than relying on a build-time- * regex derivation. Backfill with- * `apps/docsite/scripts/backfill-display-name.mjs`. */- displayName: string;- /** Search keywords for CLI discovery. Terms a developer might type when- * looking for this component: synonyms, related UI concepts, and common- * names from other design systems (MUI, Chakra, Radix, shadcn).- * Lowercase only. Used by `astryx component <term>` for fuzzy matching.- * e.g. `['accordion', 'expand', 'toggle', 'disclosure']` for Collapsible */- keywords?: string[];- /** Sub-component names to hide from human-facing UI (CLI listings,- * docs catalogs). The components stay public and importable — agents- * and tooling can still discover them via source. Use when the- * directory's doc covers a group but some Astryx*.tsx files shouldn't- * appear in the catalog. */- hiddenComponents?: string[];- /** Hide this entire component from human-facing UI (CLI listings,- * docs catalogs). The component stays public and importable — agents- * and tooling can still discover it via source. Use for shared- * primitives (NavIcon, NavMenu) that only make sense in the context- * of their parent compositions. */- hidden?: boolean;- /** Optional group for sidebar/docs organization.- * Components without a group appear flat in alphabetical order.- * Groups cluster related components that are always used together- * or are variants of each other. */- group?: string;- /** Component category for the overview page gallery. Independent of- * `group` (which is for the sidebar). Categories represent the- * component's functional role in a UI.- *- * Valid values:- * - `'Action'` — interactive triggers: buttons, links, toggles, menus- * - `'Chat'` — conversational UI: messages, composers, layouts- * - `'Container'` — wrappers: cards, carousels, collapsibles- * - `'Content'` — display: text, icons, avatars, code blocks- * - `'Data Input'` — data entry: text fields, selectors, date pickers- * - `'Data Visualization'` — charts, graphs, 3D visualizations- * - `'Feedback & Status'` — progress indication: spinners, banners, badges- * - `'Layout'` — structural: grid, stack, dividers, app shell- * - `'Navigation'` — wayfinding: tabs, breadcrumbs, sidebars- * - `'Overlay'` — layered UI: dialogs, popovers, tooltips- * - `'Table & List'` — tabular and list data display- * - `'Utility'` — providers and context: themes, link providers */- category?:- | 'Action'- | 'Chat'- | 'Container'- | 'Content'- | 'Data Input'- | 'Data Visualization'- | 'Feedback & Status'- | 'Layout'- | 'Navigation'- | 'Overlay'- | 'Table & List'- | 'Utility';- /** When true, this component is excluded from the categorized overview- * page but remains in the sidebar and CLI. Use for sub-components that- * only make sense within a parent (e.g. BreadcrumbItem, DialogHeader)- * or internal primitives that shouldn't appear in the gallery. */- isHiddenFromOverview?: boolean;- /** Theming configuration. Documents the stable selector surface rendered- * by this component: `xds-*` classes plus data-attribute reflections that- * themes can target via `@scope` selectors in `defineTheme`. */- theming?: {- /** Whether this component is a container whose `padding` properties- * should be mapped to container tokens by the theme pipeline.- * When true, `padding`, `paddingBlock`, `paddingInline` etc. in- * component overrides are expanded to `--container-padding-*` and- * `--layout-padding-*` tokens instead of emitting raw CSS. */- container?: boolean;- /** Selector targets rendered by this component.- * Each entry corresponds to an `themeProps()` call in the source. */- targets: ThemingTarget[];- /** CSS custom properties exposed for theming. */- vars?: ComponentVar[];- /** Maps standard CSS properties to internal vars for theme pipeline- * expansion. Ordered by priority — earlier entries emit first.- * The pipeline reads this to know: when a theme sets `borderRadius`- * on this component, also emit the internal var.- * @see DerivedVar */- derived?: DerivedVar[];- };- /** Component usage documentation — concise summary, best practices,- * and optional visual anatomy. */- usage: UsageDoc;- /** Short code examples rendered by the CLI after the props table. */- examples?: ExampleDoc[];-- /** Playground configuration. Controls how the interactive preview- * renders this component with sensible defaults and slot content. */- playground?: PlaygroundConfig;-}--/**- * Documentation for a directory that exports a single primary component.- * Props live directly on this object.- *- * Use this when the directory has one main `XDS*.tsx` file- * (e.g. Switch, Badge, Spinner, TextInput).- */-export interface SingleComponentDoc extends BaseDoc {- /** All public props for the component. */- props: PropDoc[];-}--/**- * A cross-link reference to a sub-component that lives in its own sibling- * `{Name}.doc.mjs` file (see {@link SubComponentDoc}). The parent's- * `components` array lists these names so the family stays discoverable;- * the entry's content is emitted from the sub-component's own file, not here.- */-export interface ComponentRef {- /** Full export name including Astryx prefix, e.g. `"ChatComposer"`. Must- * match the `name` field of the referenced sub-component's own doc. */- name: string;-}--/**- * Documentation for a directory that exports multiple public components.- * Props live on each entry in `components`.- *- * Use this when the directory has multiple `XDS*.tsx` files- * (e.g. Table, Dialog, TabList, TopNav, Layout).- *- * Each `components` entry is either a full {@link ComponentEntry} (inline- * sub-component) or a name-only {@link ComponentRef} pointing at a sibling- * `{Name}.doc.mjs` file. The two styles can be mixed during migration.- */-export interface MultiComponentDoc extends BaseDoc {- /** Each public component/hook exported from this directory — either an- * inline entry or a name-only reference to a sibling sub-component doc. */- components: (ComponentEntry | ComponentRef)[];-}--/**- * Documentation for a single sub-component that lives in its own- * `{Name}.doc.mjs` file inside its parent's directory. Identified by the- * `subComponentOf` field, which names the parent component.- *- * A sub-component owns its `description`, `props`, and (optionally) its own- * `usage`. Family-level fields (`group`, `category`, `keywords`, `theming`,- * `playground`) are inherited from the directory's primary doc unless- * overridden here. The generated registry entry is identical to the legacy- * inline `components[]` expansion — this is purely a file-structure change.- */-export interface SubComponentDoc extends Omit<BaseDoc, 'usage'> {- /** Name of the parent component this sub-component belongs to, matching the- * parent doc's `name` (e.g. `"Chat"`). Marks this file as a sub-component- * doc so the pipeline parents and inherits family fields correctly. */- subComponentOf: string;- /** One-sentence description of what this sub-component does and its role- * within the parent composition. */- description: string;- /** All public props for this sub-component. */- props: PropDoc[];- /** Usage is optional for sub-components — when omitted, generated surfaces- * should use the sub-component's own description as the concise usage- * summary (not inherited from the parent, which was the #2602 bug). */- usage?: UsageDoc;-}--/**- * The documentation type for a component directory's {Name}.doc.mjs file.- *- * Every .doc.mjs must export a single `docs` constant of this type:- *- * /\*\* \@type \{import('../docs-types').ComponentDoc\} *\/- * export const docs = \{ ... \};- *- * Use SingleComponentDoc (with `props`) for single-component directories.- * Use MultiComponentDoc (with `components`) for multi-component directories.- * Use SubComponentDoc (with `subComponentOf`) for a sub-component that lives- * in its own file inside its parent's directory.- */-export type ComponentDoc =- SingleComponentDoc | MultiComponentDoc | SubComponentDoc;--/**- * Translation overlay for component documentation.- *- * Contains only the prose fields that change between languages/formats.- * The CLI merges this onto the base `docs` at read time — props,- * types, defaults, and code all come from `docs`.- *- * Used by both `docsZh` (Chinese translation) and `docsDense` (compressed format).- */-export interface TranslationDoc {- /** Compressed/translated component description. */- description?: string;- /** Prop descriptions keyed by prop name. Only include props that have descriptions. */- propDescriptions?: Record<string, string>;- /** Translated/compressed usage overlay. Mirrors UsageDoc fields. */- usage?: {- description?: string;- bestPractices?: BestPractice[];- anatomy?: AnatomyElement[];- };- /** Sub-component translations. Must match docs.components length and order (if present). */- components?: {- /** Exact name from docs.components[n].name */- name: string;- /** Optional translated displayName for the sub-component. Allowed so- * the displayName backfill codemod (which adds `displayName` next- * to every `name:` field) does not break translation overlays.- * Translation overlays render via the canonical docs, so this- * field is ignored at render time. */- displayName?: string;- /** Compressed/translated sub-component description. */- description: string;- /** Prop descriptions keyed by prop name. */- propDescriptions?: Record<string, string>;- /** When true, this sub-component is excluded from the overview page. */- isHiddenFromOverview?: boolean;- }[];-}--// =============================================================================-// Reference Documentation Types-// =============================================================================--/**- * A content block within a reference doc section.- * Ordered array of these makes up a section's content.- * New block types can be added without breaking existing docs.- *- * @example- * ```- * { type: 'prose', text: 'Spacing tokens control gap and padding...' }- * { type: 'heading', level: 3, text: 'Examples' }- * { type: 'code', lang: 'tsx', code: 'padding: spacingVars[...]' }- * { type: 'table', headers: ['Token', 'Value'], rows: [['--spacing-4', '16px']] }- * { type: 'list', style: 'do', items: ['Use semantic tokens'] }- * { type: 'token-ref', topic: 'tokens', section: 'Color Tokens' }- * ```- */-export type ContentBlock =- | {type: 'prose'; text: string}- | {type: 'heading'; level: 3 | 4 | 5 | 6; text: string}- | {type: 'code'; lang: string; code: string; label?: string}- | {type: 'table'; headers: string[]; rows: string[][]}- | {- type: 'list';- style: 'ordered' | 'unordered' | 'do' | 'dont';- items: string[];- }- | {- /** Reference to a token table in another doc topic.- * The CLI resolves this at read time and inlines the referenced- * section's table. The docsite can render it with live theme values- * and type-specific previews instead of static strings. */- type: 'token-ref';- /** Doc topic name containing the tokens. e.g. `'tokens'` */- topic: string;- /** Section title to pull from that topic. e.g. `'Color Tokens'` */- section: string;- };--/**- * Preview type hint for token tables. Tells the docsite how to render- * a visual preview column for each token row.- *- * - `'swatch'` — Color circle/square showing the token value- * - `'shadow-box'` — Box with the shadow applied- * - `'radius-box'` — Box with the border-radius applied- * - `'spacing-bar'` — Horizontal bar at the token's width- * - `'size-bar'` — Horizontal bar at the token's height- * - `'border-line'` — Line at the token's border-width- * - `'duration-bar'` — Animated bar showing the timing- * - `'easing-curve'` — Bezier curve visualization- * - `'font-sample'` — Text sample in the font family/size/weight- */-export type TokenPreviewType =- | 'swatch'- | 'shadow-box'- | 'radius-box'- | 'spacing-bar'- | 'size-bar'- | 'border-line'- | 'duration-bar'- | 'easing-curve'- | 'font-sample';--/**- * A section within a reference doc. Sections are the primary- * organizational unit — each becomes an h2 in full output,- * and can be individually retrieved via `astryx docs <topic> <section>`.- */-export interface ReferenceSection {- /** Section title, e.g. "Spacing Tokens", "Light/Dark Mode" */- title: string;- /** Navigation category ('guide' | 'foundations'). Mirrors the parent doc's- * category so sections can be grouped independently in the docsite nav. */- category?: string;- /** Ordered content blocks. Mix prose, code, tables, and lists freely. */- content: ContentBlock[];- /** Preview type for token tables in this section. When set, the docsite- * renders a visual preview column using the token's computed CSS value- * from the current theme. Omit for non-token sections. */- previewType?: TokenPreviewType;-}--/**- * A reference documentation file (.doc.mjs).- *- * Reference docs cover topics like design tokens, principles, theming,- * patterns, accessibility, and migration guides. Unlike ComponentDoc,- * they aren't tied to a specific component — just drop a .doc.mjs file- * in the docs/ directory and it shows up in `astryx docs`.- *- * Every reference .doc.mjs must export a single `docs` constant:- *- * /** @type {import('../../core/src/docs-types').ReferenceDoc} *\/- * export const docs = { ... };- */-export interface ReferenceDoc {- /** URL-safe identifier, used as the CLI topic name. e.g. 'tokens', 'principles' */- name: string;- /** Human-readable title. e.g. 'All Tokens' */- title: string;- /** One-line summary shown in topic listings. */- description: string;- /** Navigation category: 'guide' or 'foundations'. */- category?: string;- /** Ordered sections that make up the doc. */- sections: ReferenceSection[];- /** Token category for foundational docs that map to a token section.- * When set, the docsite can link from the tokens overview page- * to this doc for detailed guidance on that category.- * e.g. `'color'` links tokens → color foundational doc. */- tokenCategory?: string;-}--/**- * Translation/compression overlay for reference documentation.- *- * Swaps prose text and list items. Code blocks and table data- * are NOT translated — they stay as-is from the base doc.- *- * Used by `docsZh` (Chinese) and `docsDense` (compressed format).- */-export interface ReferenceTranslationDoc {- /** Translated/compressed description. */- description: string;- /** Section overrides, keyed to base sections by `section`. Order does not- * matter, and an overlay may cover any subset — sections it does not name- * keep their base content. (These used to be matched by array index, which- * meant a reordered or partial overlay grafted every title onto the wrong- * body: `docs tokens --dense` printed the colour table under a "Spacing"- * heading. See #2182.) */- sections: {- /** Title of the BASE section this entry overrides, verbatim and in English- * (e.g. 'Spacing Tokens'). Must match a section in the base doc. */- section: string;- /** Translated/compressed section title, shown in place of the base title. */- title: string;- /** Content block overrides, by index within the anchored base section.- * Only prose and list blocks need entries. Use null for blocks that don't- * change (code, table). */- content: (- {type: 'prose'; text: string} | {type: 'list'; items: string[]} | null- )[];- }[];-}--/**- * Documentation for a page template.- *- * Every template directory under `packages/cli/templates/` has a- * `template.doc.mjs` that exports a single `doc` constant:- *- * /** @type {import('@astryxdesign/core').TemplateDoc} *\/- * export const doc = { ... };- *- * The CLI and sandbox import these for discovery and display.- */--/**- * Functional category for a page template, used to group templates on the- * docsite Templates overview gallery. Independent of any sidebar/nav grouping.- *- * Values follow a `"Group - Variant"` convention (e.g. `"Dashboard - Analytics"`).- * The overview page derives the group heading from the text before the `" - "`.- * Standalone values without a hyphen (e.g. `"Settings"`) are their own group.- *- * Not every value maps to an existing template — unused values are reserved- * for future templates so authors get autocomplete for the full taxonomy.- */-export type TemplateCategory =- // Dashboard- | 'Dashboard - Analytics'- | 'Dashboard - KPI Summary'- | 'Dashboard - Monitoring'- | 'Dashboard - Executive Summary'- | 'Dashboard - Widget Grid'- | 'Dashboard - Split'- | 'Dashboard - Tabbed'- | 'Dashboard - Filterable'- | 'Dashboard - Portfolio'- // Table- | 'Table - Basic'- | 'Table - Grouped'- | 'Table - Index/Detail'- | 'Table - Split Pane'- | 'Table - Bulk Actions'- | 'Table - Filtering'- | 'Table - Tree/Hierarchical List'- | 'Table - Frozen Column'- | 'Table - Chart'- | 'Table - Heatmap'- // Form- | 'Form - Basic'- | 'Form - Page'- | 'Form - Checkout'- | 'Form - Two-column'- | 'Form - Wizard'- | 'Form - Modal Overlay'- | 'Form - Side Sheet'- | 'Form - Inline Edits'- | 'Form - Settings'- // Settings- | 'Settings'- | 'Settings - Dialog'- | 'Settings - Sidebar'- | 'Settings - Panels'- | 'Settings - Form'- // Login- | 'Login - Basic'- | 'Login - Card'- | 'Login - SSO'- | 'Login - Split'- // Tools- | 'Tools - File Explorer'- | 'Tools - Page Editor'- | 'Tools - IDE'- | 'Tools - Incident Console'- | 'Tools - Kanban Board'- | 'Tools - Notebook/Report Page'- | 'Tools - Diff Compare Viewer'- | 'Tools - Search Results Page'- // Content- | 'Content - Card Grid'- | 'Content - Order Detail'- | 'Content - Product Detail'- | 'Content - Product List'- | 'Content - Documentation Catalog'- | 'Content - Documentation Design'- | 'Content - Documentation Technical'- | 'Content - Infinite Scroll Page'- | 'Content - Timeline'- | 'Content - Profile Page'- // AI Chat- | 'AI Chat - Conversation'- | 'AI Chat - Landing'- | 'AI Chat - Artifact Page'- // Gallery- | 'Gallery - Hero'- | 'Gallery - Basic'- | 'Gallery - Mixed'- | 'Gallery - Side'- | 'Gallery - Product'- // Shell- | 'Shell - Left Sidebar'- | 'Shell - Top Nav'- | 'Shell - Top Nav + Left Sidebar'- | 'Shell - Breadcrumb Driven Layout'- | 'Shell - Messaging'- | 'Shell - Blank';--interface BaseTemplateDoc {- /** Identifier name for the template. For block templates this matches- * the React component import name (e.g. `"ChatMessageMetadata"`); for- * page templates it's a human-readable label that doubles as the- * display value (e.g. `"Dashboard"`). */- name: string;- /** Human-readable display name for the gallery / CLI. Matches `name`- * for already-spaced template names (e.g. `"Blank Page"`); for block- * templates that mirror a PascalCase component, spaces it out- * (`"ChatMessageMetadata"` → `"Chat Message Metadata"`). Required so- * authors stay in control of the visible label rather than relying- * on a build-time regex derivation. */- displayName: string;-- /** One-sentence description of what the template provides. */- description?: string;-- /** Whether this template is ready for use. Templates with- * isReady: false show as "(WIP)" in the gallery and CLI. */- isReady?: boolean;-- /** Whether this template is a scaffolding tool only (e.g. blank page).- * Scaffold templates are available via the CLI but hidden from- * browsable template galleries like the craft browser. */- scaffold?: boolean;-- /** Functional category for the docsite Templates overview gallery.- * Templates are grouped by the part before `" - "` (e.g. `"Dashboard"`).- * Independent of CLI discovery, which uses `name`/`description`. */- category?: TemplateCategory;-- /** Boolean opt-out for templates that shouldn't appear on the Templates- * overview gallery. The template stays available via the CLI and- * `astryx template <name>` — it's only hidden from the browsable gallery.- * Use for duplicate/experimental variants. Scaffold templates are- * hidden automatically and don't need this flag. */- isHiddenFromOverview?: boolean;-}--export interface PageTemplateDoc extends BaseTemplateDoc {- type: 'page';-}--export interface BlockTemplateDoc extends BaseTemplateDoc {- type: 'block';- /** The component this block is an example of.- * Matches the component's doc name (e.g. 'Button', 'Dialog', 'Stack').- * Used by the docsite to show relevant examples on component detail pages. */- exampleFor: string;- /** Additional component or hook doc pages whose Examples section should- * include this block. Use when a component example is also the canonical- * usage example for one of that component's hooks. */- alsoExampleFor?: string[];- /** Additional component or hook doc pages whose hero showcase should reuse- * this block. Unlike `isShowcase`, this does not make the block the primary- * showcase for `exampleFor`; it only creates explicit secondary placements. */- alsoShowcaseFor?: string[];- /** Width-to-height ratio for preview containers (e.g. 16/9, 1, 3/4). */- aspectRatio: number;- /** Scale factor for the block preview (default 1). */- scale?: number;- /** Component names this block uses, for cross-referencing.- * Powers "See also" and "Used in" sections — not for primary attribution. */- componentsUsed?: string[];- /** When true this block is the canonical "hero" showcase for a component. */- isShowcase?: boolean;-}--export type TemplateDoc = PageTemplateDoc | BlockTemplateDoc;--// =============================================================================-// Group Documentation Types-// =============================================================================--/**- * Metadata for a component group that is NOT itself a component.- *- * Some groups (e.g. 'Checkbox', 'Layout', 'Tabs') are category labels —- * they cluster related components but have no corresponding Astryx*.tsx file.- * This metadata tells the docsite and CLI which component to treat as the- * canonical entry point for the group.- *- * Groups whose name IS a component (e.g. 'Avatar', 'Button', 'Dialog')- * don't need an entry here — the component IS the canonical representative.- *- * @example- * ```- * { name: 'Checkbox', canonical: 'CheckboxList', description: 'Selection controls for choosing one or more options from a set.' }- * { name: 'Layout', canonical: 'Stack', description: 'Structural primitives for page and content layout.' }- * ```- */-export interface GroupDoc {- /** Group name — must match one of the `group` union values on BaseDoc. */- name: string;- /** The canonical component for this group — the one the docsite links- * to when a user clicks the group name. Should be the most commonly- * used or most representative component in the group.- * e.g. `'CheckboxList'` for the Checkbox group. */- canonical: string;- /** One-sentence description of what this group of components does.- * Shown in the sidebar, catalog, or group landing page. */- description: string;-}--// =============================================================================-// Hook Documentation Types-// =============================================================================--/**- * Documents a hook parameter/option. Similar to PropDoc but for hook- * arguments and options object fields.- */-export interface HookParamDoc {- /** Parameter or option field name. */- name: string;- /** TypeScript type signature as a string. */- type: string;- /** What this parameter does. 1-2 sentences. */- description: string;- /** Default value as a string, if optional with a default. */- default?: string;- /** True if required. Omit if optional. */- required?: boolean;-}--/**- * Documents a hook's return value field.- */-export interface HookReturnDoc {- /** Field name on the returned object, or 'value' for primitive returns. */- name: string;- /** TypeScript type. */- type: string;- /** What this return value provides. */- description: string;-}--/**- * Documentation for a standalone hook's .doc.mjs file.- *- * Hooks that are part of a component's API (e.g. useImperativeDialog)- * should be documented in the component's MultiComponentDoc.components array.- *- * Standalone hooks (e.g. useMediaQuery, useFocusTrap, useOverflow) get- * their own {hookName}.doc.mjs file and use this type.- *- * Every hook .doc.mjs must export a single `docs` constant:- *- * /\*\* @type {import('../docs-types').HookDoc} \*\/- * export const docs = { ... };- */-export interface HookDoc {- /** Hook name exactly as exported, e.g. 'useMediaQuery', 'useFocusTrap'. */- name: string;- /** Human-readable display name for the hook. Hooks read better as the- * raw identifier ('useMediaQuery') than spaced ('use Media Query'), so- * the codemod keeps the identifier verbatim. See `BaseDoc.displayName`. */- displayName: string;- /** Optional group for sidebar/docs organization — same as ComponentDoc.group. */- group?: string;- /** Search keywords for CLI discovery. */- keywords?: string[];- /** Hook parameters or options object fields. */- params: HookParamDoc[];- /** Return value documentation. For object returns, list each field.- * For primitive returns, use a single entry. */- returns: HookReturnDoc[];- /** Usage documentation — description, best practices. */- usage: UsageDoc;- /** Component names this hook is commonly used with.- * Enables cross-referencing: \`astryx component Toast\` can mention useToast,- * and \`astryx hook useToast\` can link back to Toast. */- relatedComponents?: string[];- /** Other hook names this hook is commonly used with. */- relatedHooks?: string[];- /** Import path, e.g. '@astryxdesign/core/hooks' or '@astryxdesign/core/Toast'. */- importPath?: string;- /** Category for grouping in listings. */- category?: string;-}--/**- * Translation overlay for hook documentation.- */-export interface HookTranslationDoc {- /** Compressed/translated description. */- description?: string;- /** Param descriptions keyed by param name. */- paramDescriptions?: Record<string, string>;- /** Return descriptions keyed by field name. */- returnDescriptions?: Record<string, string>;- /** Translated usage. */- usage?: {- description?: string;- bestPractices?: BestPractice[];- };-}diff --git a/packages/core/src/hooks/useClickableContainer.doc.mjs b/packages/core/src/hooks/useClickableContainer.doc.mjsindex 0971822c66..d47236c36b 100644--- a/packages/core/src/hooks/useClickableContainer.doc.mjs+++ b/packages/core/src/hooks/useClickableContainer.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').HookDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookDoc} */export const docs = {name: 'useClickableContainer',displayName: 'useClickableContainer',@@ -77,7 +77,7 @@ export const docs = {category: 'interaction',};-/** @type {import('../docs-types').HookTranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookTranslationDoc} */export const docsDense = {description:'Makes container element clickable while preserving nested interactive element behavior. Solves "nested interactive elements" problem: when card is clickable but contains buttons/links, clicking those must NOT trigger card\'s action. Detects interactive ancestors between click target + container, ignores text selections. Supports href navigation (incl. middle-click + Ctrl/Cmd+click for new tabs).',diff --git a/packages/core/src/hooks/useEntryAnimation.doc.mjs b/packages/core/src/hooks/useEntryAnimation.doc.mjsindex 98890a9ec5..18476b24bb 100644--- a/packages/core/src/hooks/useEntryAnimation.doc.mjs+++ b/packages/core/src/hooks/useEntryAnimation.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').HookDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookDoc} */export const docs = {name: 'useEntryAnimation',displayName: 'useEntryAnimation',@@ -36,7 +36,7 @@ export const docs = {category: 'animation',};-/** @type {import('../docs-types').HookTranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookTranslationDoc} */export const docsDense = {description:'Returns StyleX style for animating element on mount. Only animates when element dynamically inserted after initial page paint; elements rendered on page load not animated. Uses Astryx motion tokens (duration, easing) for consistent timing. Requires "use client"; does not support SSR.',diff --git a/packages/core/src/hooks/useFocusTrap.doc.mjs b/packages/core/src/hooks/useFocusTrap.doc.mjsindex d504111afd..a459902462 100644--- a/packages/core/src/hooks/useFocusTrap.doc.mjs+++ b/packages/core/src/hooks/useFocusTrap.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').HookDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookDoc} */export const docs = {name: 'useFocusTrap',displayName: 'useFocusTrap',@@ -53,7 +53,7 @@ export const docs = {category: 'focus',};-/** @type {import('../docs-types').HookTranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookTranslationDoc} */export const docsDense = {description:'Traps focus within container element following WAI-ARIA dialog focus trap pattern. Listens to document focus events + redirects focus back into container if it escapes via keyboard navigation. Handles both Tab + Shift+Tab wrapping. Mouse clicks outside container not intercepted; use light-dismiss handler for that.',diff --git a/packages/core/src/hooks/useGridFocus.doc.mjs b/packages/core/src/hooks/useGridFocus.doc.mjsindex 58ba50035c..e0c021f90e 100644--- a/packages/core/src/hooks/useGridFocus.doc.mjs+++ b/packages/core/src/hooks/useGridFocus.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').HookDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookDoc} */export const docs = {name: 'useGridFocus',displayName: 'useGridFocus',@@ -124,7 +124,7 @@ export const docs = {category: 'focus',};-/** @type {import('../docs-types').HookTranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookTranslationDoc} */export const docsDense = {description:'Manages keyboard navigation within 2D grid following WAI-ARIA grid pattern. Supports arrow keys for cell-to-cell navigation, Home/End for row boundaries, Ctrl+Home/Ctrl+End for grid boundaries, Page Up/Down for custom callbacks (e.g. month navigation in calendars). Boundary navigation callbacks allow cross-grid navigation.',diff --git a/packages/core/src/hooks/useHotkeys.doc.mjs b/packages/core/src/hooks/useHotkeys.doc.mjsindex d2d41e7cf2..a2cfc4f217 100644--- a/packages/core/src/hooks/useHotkeys.doc.mjs+++ b/packages/core/src/hooks/useHotkeys.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').HookDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookDoc} */export const docs = {name: 'useHotkeys',displayName: 'useHotkeys',@@ -31,7 +31,7 @@ export const docs = {category: 'interaction',};-/** @type {import('../docs-types').HookTranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookTranslationDoc} */export const docsDense = {description:'Global keyboard shortcuts w/ one window keydown listener per hook instance. Handlers kept in ref; re-renders never re-subscribe. Skips typing targets (input/textarea/select/contenteditable) unless allowInInputs, skips defaultPrevented, preventDefault() on match. "mod" = ⌘ on macOS, Ctrl elsewhere. SSR-safe.',diff --git a/packages/core/src/hooks/useImageMode.doc.mjs b/packages/core/src/hooks/useImageMode.doc.mjsindex 15caeb5044..ec18ec2bae 100644--- a/packages/core/src/hooks/useImageMode.doc.mjs+++ b/packages/core/src/hooks/useImageMode.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').HookDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookDoc} */export const docs = {name: 'useImageMode',displayName: 'useImageMode',@@ -61,7 +61,7 @@ export const docs = {category: 'media',};-/** @type {import('../docs-types').HookTranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookTranslationDoc} */export const docsDense = {description:'Detects whether image is predominantly dark / light by sampling pixels via OffscreenCanvas. Uses APCA perceptual lightness (sRGB linearization + power curve) for accurate detection, esp. on saturated colors. Runs entirely off paint path: no visible canvas, no layout thrash. Supports regional sampling for detecting luminance where text overlays will appear. Returns null while loading + falls back gracefully on CORS / network errors.',diff --git a/packages/core/src/hooks/useInputContainer.doc.mjs b/packages/core/src/hooks/useInputContainer.doc.mjsindex c65cf059bc..b5819f7c42 100644--- a/packages/core/src/hooks/useInputContainer.doc.mjs+++ b/packages/core/src/hooks/useInputContainer.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').HookDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookDoc} */export const docs = {name: 'useInputContainer',displayName: 'useInputContainer',@@ -59,7 +59,7 @@ export const docs = {category: 'interaction',};-/** @type {import('../docs-types').HookTranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookTranslationDoc} */export const docsDense = {description:'Makes input container wrapper clickable, delegating focus to inner input/textarea when user clicks non-interactive areas (icons, padding, status indicators). Built on useClickableContainer, so nested interactive elements (clear buttons, calendar toggles, links) handled safely; clicking them does NOT steal focus from input. Automatically detects input type: text-like inputs receive .focus(), other types (checkbox, radio, file) receive .click().',diff --git a/packages/core/src/hooks/useKeyboardHint.doc.mjs b/packages/core/src/hooks/useKeyboardHint.doc.mjsindex 8cf3f3f4d1..db69ddd6c2 100644--- a/packages/core/src/hooks/useKeyboardHint.doc.mjs+++ b/packages/core/src/hooks/useKeyboardHint.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').HookDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookDoc} */export const docs = {name: 'useKeyboardHint',displayName: 'useKeyboardHint',@@ -72,7 +72,7 @@ export const docs = {category: 'focus',};-/** @type {import('../docs-types').HookTranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookTranslationDoc} */export const docsDense = {description:'Ephemeral "← → to navigate" hint anchored to the focused item on first keyboard focus of a roving-tabindex composite (Toolbar/TabList/SegmentedControl). Teaches sighted keyboard users that arrows move within the group. Kbd-rendered arrows in a top-layer popover="manual", CSS-anchor-positioned (never clipped by overflow), aria-hidden. Auto-dismisses on first arrow press, timeout, or blur; never re-shows for that instance.',diff --git a/packages/core/src/hooks/useKeyboardHint.tsx b/packages/core/src/hooks/useKeyboardHint.tsxindex 1757539d38..d3fa378479 100644--- a/packages/core/src/hooks/useKeyboardHint.tsx+++ b/packages/core/src/hooks/useKeyboardHint.tsx@@ -13,7 +13,7 @@* - /packages/core/src/hooks/index.ts* - /packages/core/src/hooks/useKeyboardHint.doc.mjs* - /apps/storybook/stories/useKeyboardHint.stories.tsx- * - /packages/cli/templates/blocks/components/Hooks/useKeyboardHintHookUsage.tsx+ * - /packages/cli/assets/templates/blocks/components/Hooks/useKeyboardHintHookUsage.tsx*/import React, {useCallback, useEffect, useRef, type ReactNode} from 'react';diff --git a/packages/core/src/hooks/useListFocus.doc.mjs b/packages/core/src/hooks/useListFocus.doc.mjsindex 8d78180a24..5500c4a78b 100644--- a/packages/core/src/hooks/useListFocus.doc.mjs+++ b/packages/core/src/hooks/useListFocus.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').HookDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookDoc} */export const docs = {name: 'useListFocus',displayName: 'useListFocus',@@ -135,7 +135,7 @@ export const docs = {category: 'focus',};-/** @type {import('../docs-types').HookTranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookTranslationDoc} */export const docsDense = {description:'Manages keyboard navigation within linear list following WAI-ARIA menu/listbox/toolbar patterns. Supports arrow key navigation (vertical / horizontal), Home/End for boundaries, optional wrap-around, Escape to close. Suitable for dropdown menus, toolbars, any 1D focusable list.',diff --git a/packages/core/src/hooks/useMediaQuery.doc.mjs b/packages/core/src/hooks/useMediaQuery.doc.mjsindex 7c327e9d0d..da3022b3a2 100644--- a/packages/core/src/hooks/useMediaQuery.doc.mjs+++ b/packages/core/src/hooks/useMediaQuery.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').HookDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookDoc} */export const docs = {name: 'useMediaQuery',displayName: 'useMediaQuery',@@ -34,7 +34,7 @@ export const docs = {category: 'media',};-/** @type {import('../docs-types').HookTranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookTranslationDoc} */export const docsDense = {description: 'SSR-safe media query hook subscribing to window.matchMedia changes. Returns whether given media query matches. Always returns false on first render for SSR compatibility.',paramDescriptions: {diff --git a/packages/core/src/hooks/useOverflow.doc.mjs b/packages/core/src/hooks/useOverflow.doc.mjsindex d02713dec8..3e43992feb 100644--- a/packages/core/src/hooks/useOverflow.doc.mjs+++ b/packages/core/src/hooks/useOverflow.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').HookDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookDoc} */export const docs = {name: 'useOverflow',displayName: 'useOverflow',@@ -84,7 +84,7 @@ export const docs = {category: 'layout',};-/** @type {import('../docs-types').HookTranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookTranslationDoc} */export const docsDense = {description:'Measures children rendered in hidden container to determine how many fit in available width w/o flickering. Uses ResizeObserver to react to container size changes. Measurement container should hold all items plus optional overflow indicator element (identified by data-overflow-indicator attribute).',diff --git a/packages/core/src/hooks/useScrollLock.doc.mjs b/packages/core/src/hooks/useScrollLock.doc.mjsindex 38520b185c..dd48079dfc 100644--- a/packages/core/src/hooks/useScrollLock.doc.mjs+++ b/packages/core/src/hooks/useScrollLock.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').HookDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookDoc} */export const docs = {name: 'useScrollLock',displayName: 'useScrollLock',@@ -29,7 +29,7 @@ export const docs = {category: 'layout',};-/** @type {import('../docs-types').HookTranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookTranslationDoc} */export const docsDense = {description:'Locks body scroll when active by pinning body w/ position: fixed. Prevents background scrolling behind modals + dialogs, necessary for iOS Safari where overscroll-behavior: contain does not work. Restores original scroll position when unlocked.',diff --git a/packages/core/src/hooks/useScrollOverflow.doc.mjs b/packages/core/src/hooks/useScrollOverflow.doc.mjsindex e11d060b41..18b5018553 100644--- a/packages/core/src/hooks/useScrollOverflow.doc.mjs+++ b/packages/core/src/hooks/useScrollOverflow.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').HookDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookDoc} */export const docs = {name: 'useScrollOverflow',displayName: 'useScrollOverflow',@@ -43,7 +43,7 @@ export const docs = {category: 'layout',};-/** @type {import('../docs-types').HookTranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookTranslationDoc} */export const docsDense = {description:'Tracks scroll overflow state for horizontally scrollable container. Returns ref callback + state booleans that update as user scrolls / container resizes. Uses scroll event listeners + ResizeObserver for reactive updates. Tolerance of 1px applied to avoid sub-pixel false positives.',diff --git a/packages/core/src/hooks/useStreamingText.doc.mjs b/packages/core/src/hooks/useStreamingText.doc.mjsindex 9e9f2bcac1..739a5da1b5 100644--- a/packages/core/src/hooks/useStreamingText.doc.mjs+++ b/packages/core/src/hooks/useStreamingText.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').HookDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookDoc} */export const docs = {name: 'useStreamingText',displayName: 'useStreamingText',@@ -55,7 +55,7 @@ export const docs = {category: 'streaming',};-/** @type {import('../docs-types').HookTranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookTranslationDoc} */export const docsDense = {description:'Smooths bursty streamed text into steady character-by-character reveal using requestAnimationFrame. Decouples arrival rate from display rate. Advances on word + syntax boundaries to avoid slicing mid-markdown / mid-word, preventing visual glitches w/ markdown renderers. Animation timing derives from Astryx motion tokens via useTheme when available, w/ sensible fallbacks outside theme provider. Snaps to full text when isStreaming becomes false.',diff --git a/packages/core/src/hooks/useTreeFocus.doc.mjs b/packages/core/src/hooks/useTreeFocus.doc.mjsindex dbeb08475d..2e162cc600 100644--- a/packages/core/src/hooks/useTreeFocus.doc.mjs+++ b/packages/core/src/hooks/useTreeFocus.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').HookDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookDoc} */export const docs = {name: 'useTreeFocus',displayName: 'useTreeFocus',@@ -106,7 +106,7 @@ export const docs = {category: 'focus',};-/** @type {import('../docs-types').HookTranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookTranslationDoc} */export const docsDense = {description:'Manages roving-tabindex focus + WAI-ARIA tree keyboard model. ArrowUp/Down/Home/End roam linearly over visible treeitems (skip disabled); ArrowRight/Left carry tree semantics (expand/collapse, move to first-child/parent). Enter/Space activate; printable chars trigger typeahead.',diff --git a/packages/core/src/i18n/InternationalizationProvider.doc.mjs b/packages/core/src/i18n/InternationalizationProvider.doc.mjsindex b4e5391770..57d0c65a69 100644--- a/packages/core/src/i18n/InternationalizationProvider.doc.mjs+++ b/packages/core/src/i18n/InternationalizationProvider.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'InternationalizationProvider',@@ -128,7 +128,7 @@ export function AppI18n({children}: {children: ReactNode}) {],};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'Wraps app to set active locale and (optionally) merge translation catalogs + per-locale overrides. Astryx components resolve strings against this context; missing keys fall back to shipped English.',diff --git a/packages/core/src/i18n/useTranslator.doc.mjs b/packages/core/src/i18n/useTranslator.doc.mjsindex 98750f05eb..9cb5550794 100644--- a/packages/core/src/i18n/useTranslator.doc.mjs+++ b/packages/core/src/i18n/useTranslator.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').HookDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookDoc} */export const docs = {name: 'useTranslator',displayName: 'useTranslator',@@ -31,7 +31,7 @@ export const docs = {importPath: '@astryxdesign/core',};-/** @type {import('../docs-types').HookTranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookTranslationDoc} */export const docsDense = {description:'Hook returning a translator function bound to the current InternationalizationProvider context. Call with an ICU MessageFormat key and values to get the formatted string for the active locale.',diff --git a/packages/core/src/index.ts b/packages/core/src/index.tsindex 55ff690722..eb5fab83ed 100644--- a/packages/core/src/index.ts+++ b/packages/core/src/index.ts@@ -173,20 +173,23 @@ export * from './theme';// Internationalizationexport * from './i18n';-// Doc types — for external library authors writing .doc.mjs files+// Doc types — for external library authors writing .doc.mjs files.+// @deprecated Import these from `@astryxdesign/cli/authoring` instead. These+// re-exports are kept for one release cycle and will be removed; `astryx upgrade`+// repoints them automatically.export type {ComponentDoc,SingleComponentDoc,MultiComponentDoc,- PropDoc,+ ComponentPropDoc,ComponentEntry,- ThemingTarget,- ComponentVar,- DerivedVar,- TranslationDoc,- GroupDoc,+ ComponentThemingTarget,+ ComponentThemingVar,+ ComponentThemingDerivedVar,+ ComponentTranslationDoc,+ ComponentGroupDoc,ReferenceDoc,ReferenceSection,- ContentBlock,- TokenPreviewType,-} from './docs-types';+ ReferenceContentBlock,+ ReferenceTokenPreviewType,+} from '@astryxdesign/cli/authoring';diff --git a/packages/core/src/theme/MediaTheme.doc.mjs b/packages/core/src/theme/MediaTheme.doc.mjsindex f9ec7bb9e7..1edd3d49f6 100644--- a/packages/core/src/theme/MediaTheme.doc.mjs+++ b/packages/core/src/theme/MediaTheme.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'MediaTheme',@@ -100,7 +100,7 @@ export const docs = {],};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {usage: {description:diff --git a/packages/core/src/theme/SyntaxTheme.doc.mjs b/packages/core/src/theme/SyntaxTheme.doc.mjsindex 2d01090e25..f2b5baeb82 100644--- a/packages/core/src/theme/SyntaxTheme.doc.mjs+++ b/packages/core/src/theme/SyntaxTheme.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'SyntaxTheme',@@ -74,7 +74,7 @@ export const docs = {],};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {usage: {description:diff --git a/packages/core/src/theme/Theme.doc.mjs b/packages/core/src/theme/Theme.doc.mjsindex 2a9a5e896c..6c39470e5e 100644--- a/packages/core/src/theme/Theme.doc.mjs+++ b/packages/core/src/theme/Theme.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Theme',@@ -86,7 +86,7 @@ export const docs = {],};-/** @type {import('../docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {usage: {description:diff --git a/packages/core/src/theme/useTheme.doc.mjs b/packages/core/src/theme/useTheme.doc.mjsindex 5c673fab90..680e185d8f 100644--- a/packages/core/src/theme/useTheme.doc.mjs+++ b/packages/core/src/theme/useTheme.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../docs-types').HookDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookDoc} */export const docs = {name: 'useTheme',displayName: 'useTheme',@@ -87,7 +87,7 @@ export const docs = {importPath: '@astryxdesign/core/theme',};-/** @type {import('../docs-types').HookTranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookTranslationDoc} */export const docsDense = {description:'Programmatic access to theme tokens for SVG/canvas/charts needing JS values instead of CSS vars.',diff --git a/packages/core/tsconfig.docs.json b/packages/core/tsconfig.docs.jsonindex dc9ba6edbc..c75d3059d6 100644--- a/packages/core/tsconfig.docs.json+++ b/packages/core/tsconfig.docs.json@@ -6,5 +6,5 @@"checkJs": true,"noEmit": true},- "include": ["src/**/*.doc.mjs", "src/docs-types.ts"]+ "include": ["src/**/*.doc.mjs"]}diff --git a/packages/lab/package.json b/packages/lab/package.jsonindex 0db3628521..32247462aa 100644--- a/packages/lab/package.json+++ b/packages/lab/package.json@@ -78,6 +78,7 @@"d3-shape": "^3.2.0"},"devDependencies": {+ "@astryxdesign/cli": "workspace:*","@lexical/code": "^0.46.0","@lexical/headless": "^0.46.0","@lexical/html": "^0.46.0",diff --git a/packages/lab/src/BottomSheet/BottomSheet.doc.mjs b/packages/lab/src/BottomSheet/BottomSheet.doc.mjsindex f1068e7a58..a5294ef420 100644--- a/packages/lab/src/BottomSheet/BottomSheet.doc.mjs+++ b/packages/lab/src/BottomSheet/BottomSheet.doc.mjs@@ -1,5 +1,5 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'BottomSheet',@@ -90,7 +90,7 @@ export const docs = {],};-/** @type {import('../../../core/src/docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'mobile touch sheet rising from the bottom edge (native modal <dialog>): grab handle, drag-to-resize snap points, swipe-to-dismiss, named height scale',usage: {diff --git a/packages/lab/src/BottomSheet/useSheetGestures.doc.mjs b/packages/lab/src/BottomSheet/useSheetGestures.doc.mjsindex 2c6a5d9408..6b8ec3a20f 100644--- a/packages/lab/src/BottomSheet/useSheetGestures.doc.mjs+++ b/packages/lab/src/BottomSheet/useSheetGestures.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../core/src/docs-types').HookDoc} */+/** @type {import('@astryxdesign/cli/authoring').HookDoc} */export const docs = {name: 'useSheetGestures',displayName: 'useSheetGestures',diff --git a/packages/lab/src/Chart/ChartArea.doc.mjs b/packages/lab/src/Chart/ChartArea.doc.mjsindex 089664f5da..46f5cd51eb 100644--- a/packages/lab/src/Chart/ChartArea.doc.mjs+++ b/packages/lab/src/Chart/ChartArea.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ChartArea',diff --git a/packages/lab/src/Chart/ChartBar.doc.mjs b/packages/lab/src/Chart/ChartBar.doc.mjsindex ae8a5d7590..a0579b28ba 100644--- a/packages/lab/src/Chart/ChartBar.doc.mjs+++ b/packages/lab/src/Chart/ChartBar.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ChartBar',diff --git a/packages/lab/src/Chart/ChartCandlestick.doc.mjs b/packages/lab/src/Chart/ChartCandlestick.doc.mjsindex 997b9d141e..de29d6d7dd 100644--- a/packages/lab/src/Chart/ChartCandlestick.doc.mjs+++ b/packages/lab/src/Chart/ChartCandlestick.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ChartCandlestick',diff --git a/packages/lab/src/Chart/ChartDot.doc.mjs b/packages/lab/src/Chart/ChartDot.doc.mjsindex 9187194434..022006ed69 100644--- a/packages/lab/src/Chart/ChartDot.doc.mjs+++ b/packages/lab/src/Chart/ChartDot.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ChartDot',diff --git a/packages/lab/src/Chart/ChartDotGL.doc.mjs b/packages/lab/src/Chart/ChartDotGL.doc.mjsindex 51e6d34797..ae41714cf0 100644--- a/packages/lab/src/Chart/ChartDotGL.doc.mjs+++ b/packages/lab/src/Chart/ChartDotGL.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ChartDotGL',diff --git a/packages/lab/src/Chart/ChartDotGLInteractive.doc.mjs b/packages/lab/src/Chart/ChartDotGLInteractive.doc.mjsindex 12b4602981..0449e38f8e 100644--- a/packages/lab/src/Chart/ChartDotGLInteractive.doc.mjs+++ b/packages/lab/src/Chart/ChartDotGLInteractive.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ChartDotGLInteractive',diff --git a/packages/lab/src/Chart/ChartHeatmapGL.doc.mjs b/packages/lab/src/Chart/ChartHeatmapGL.doc.mjsindex 32037ccfba..53f07d84f4 100644--- a/packages/lab/src/Chart/ChartHeatmapGL.doc.mjs+++ b/packages/lab/src/Chart/ChartHeatmapGL.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ChartHeatmapGL',diff --git a/packages/lab/src/Chart/ChartLine.doc.mjs b/packages/lab/src/Chart/ChartLine.doc.mjsindex 2817c42477..36c5cce98e 100644--- a/packages/lab/src/Chart/ChartLine.doc.mjs+++ b/packages/lab/src/Chart/ChartLine.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ChartLine',diff --git a/packages/lab/src/Chart/ChartStreamGL.doc.mjs b/packages/lab/src/Chart/ChartStreamGL.doc.mjsindex feaf197937..613b9ef3be 100644--- a/packages/lab/src/Chart/ChartStreamGL.doc.mjs+++ b/packages/lab/src/Chart/ChartStreamGL.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ChartStreamGL',diff --git a/packages/lab/src/Chat/ChatEmojiPicker.doc.mjs b/packages/lab/src/Chat/ChatEmojiPicker.doc.mjsindex 73615eadaf..dd560c2541 100644--- a/packages/lab/src/Chat/ChatEmojiPicker.doc.mjs+++ b/packages/lab/src/Chat/ChatEmojiPicker.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ChatEmojiPicker',diff --git a/packages/lab/src/Chat/ChatReactionBar.doc.mjs b/packages/lab/src/Chat/ChatReactionBar.doc.mjsindex d776655621..34c95abbe9 100644--- a/packages/lab/src/Chat/ChatReactionBar.doc.mjs+++ b/packages/lab/src/Chat/ChatReactionBar.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ChatReactionBar',diff --git a/packages/lab/src/Chat/ChatTypingIndicator.doc.mjs b/packages/lab/src/Chat/ChatTypingIndicator.doc.mjsindex 74e15c5f87..bb7db081d3 100644--- a/packages/lab/src/Chat/ChatTypingIndicator.doc.mjs+++ b/packages/lab/src/Chat/ChatTypingIndicator.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ChatTypingIndicator',diff --git a/packages/lab/src/Chat/ChatUnreadDivider.doc.mjs b/packages/lab/src/Chat/ChatUnreadDivider.doc.mjsindex 68b494ad3e..eee9aa5ec1 100644--- a/packages/lab/src/Chat/ChatUnreadDivider.doc.mjs+++ b/packages/lab/src/Chat/ChatUnreadDivider.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ChatUnreadDivider',diff --git a/packages/lab/src/ChatReasoning/ChatReasoning.doc.mjs b/packages/lab/src/ChatReasoning/ChatReasoning.doc.mjsindex e21795095b..c99adb8b77 100644--- a/packages/lab/src/ChatReasoning/ChatReasoning.doc.mjs+++ b/packages/lab/src/ChatReasoning/ChatReasoning.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'ChatReasoning',diff --git a/packages/lab/src/CircularProgress/CircularProgress.doc.mjs b/packages/lab/src/CircularProgress/CircularProgress.doc.mjsindex f98eba19d6..a12321f801 100644--- a/packages/lab/src/CircularProgress/CircularProgress.doc.mjs+++ b/packages/lab/src/CircularProgress/CircularProgress.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'CircularProgress',@@ -117,7 +117,7 @@ export const docs = {],};-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'CircularProgress',displayName: 'Circular Progress',@@ -212,7 +212,7 @@ export const docsZh = {},};-/** @type {import('../../../core/src/docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'Circular/radial progress indicator showing completion as a ring arc.',diff --git a/packages/lab/src/CodeEditor/CodeEditor.doc.mjs b/packages/lab/src/CodeEditor/CodeEditor.doc.mjsindex 1ba5d702a4..8621165f06 100644--- a/packages/lab/src/CodeEditor/CodeEditor.doc.mjs+++ b/packages/lab/src/CodeEditor/CodeEditor.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'CodeEditor',diff --git a/packages/lab/src/Drawer/Drawer.doc.mjs b/packages/lab/src/Drawer/Drawer.doc.mjsindex f23a16c0f2..a8a81abea3 100644--- a/packages/lab/src/Drawer/Drawer.doc.mjs+++ b/packages/lab/src/Drawer/Drawer.doc.mjs@@ -1,5 +1,5 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Drawer',@@ -123,7 +123,7 @@ const [lineItem, setLineItem] = useState(null);],};-/** @type {import('../../../core/src/docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsZh = {usage: {description: '用于检查器、详情视图和面板的边缘浮层——"点击表格行查看详情"的模式。按 Escape 关闭抽屉,焦点返回到打开它的元素。滑入/滑出动画遵循 prefers-reduced-motion。堆叠约定:同级抽屉后开的在上层,Escape 只关闭最上层的,关闭顺序由内向外——请以同级方式渲染,切勿嵌套。',@@ -139,7 +139,7 @@ export const docsZh = {},};-/** @type {import('../../../core/src/docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'edge-anchored overlay (native <dialog>): start/end side panel or top/bottom sheet',usage: {diff --git a/packages/lab/src/InfoTip/InfoTip.doc.mjs b/packages/lab/src/InfoTip/InfoTip.doc.mjsindex 4dd68c1e92..55573492aa 100644--- a/packages/lab/src/InfoTip/InfoTip.doc.mjs+++ b/packages/lab/src/InfoTip/InfoTip.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'InfoTip',@@ -39,7 +39,7 @@ export const docs = {},};-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'InfoTip',displayName: 'Info Tip',@@ -75,7 +75,7 @@ export const docsZh = {},};-/** @type {import('../../../core/src/docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description:'Inline info-icon help affordance: accessible "i" button trigger pre-wired into a Tooltip.',diff --git a/packages/lab/src/LogStream/LogStream.doc.mjs b/packages/lab/src/LogStream/LogStream.doc.mjsindex 3a99e08a27..b0d4ba6d30 100644--- a/packages/lab/src/LogStream/LogStream.doc.mjs+++ b/packages/lab/src/LogStream/LogStream.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'LogStream',diff --git a/packages/lab/src/Radial/RadialChart.doc.mjs b/packages/lab/src/Radial/RadialChart.doc.mjsindex d39c5a1118..9c66f58a26 100644--- a/packages/lab/src/Radial/RadialChart.doc.mjs+++ b/packages/lab/src/Radial/RadialChart.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'RadialChart',diff --git a/packages/lab/src/RichTextEditor/RichTextEditor.doc.mjs b/packages/lab/src/RichTextEditor/RichTextEditor.doc.mjsindex 0338c65d8c..547b2adb6c 100644--- a/packages/lab/src/RichTextEditor/RichTextEditor.doc.mjs+++ b/packages/lab/src/RichTextEditor/RichTextEditor.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'RichTextEditor',diff --git a/packages/lab/src/SVGIcon/SVGIcon.doc.mjs b/packages/lab/src/SVGIcon/SVGIcon.doc.mjsindex f1eb07a999..ab6bd3d283 100644--- a/packages/lab/src/SVGIcon/SVGIcon.doc.mjs+++ b/packages/lab/src/SVGIcon/SVGIcon.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'SVGIcon',diff --git a/packages/lab/src/Sankey/SankeyChart.doc.mjs b/packages/lab/src/Sankey/SankeyChart.doc.mjsindex 4028864344..3b47446a5b 100644--- a/packages/lab/src/Sankey/SankeyChart.doc.mjs+++ b/packages/lab/src/Sankey/SankeyChart.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'SankeyChart',diff --git a/packages/lab/src/Schedule/Schedule.doc.mjs b/packages/lab/src/Schedule/Schedule.doc.mjsindex 0030d484ef..1d195667ac 100644--- a/packages/lab/src/Schedule/Schedule.doc.mjs+++ b/packages/lab/src/Schedule/Schedule.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Schedule',diff --git a/packages/lab/src/Stat/Stat.doc.mjs b/packages/lab/src/Stat/Stat.doc.mjsindex 5726ca60d3..cf921a23dd 100644--- a/packages/lab/src/Stat/Stat.doc.mjs+++ b/packages/lab/src/Stat/Stat.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Stat',@@ -70,7 +70,7 @@ export const docs = {},};-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'Stat',displayName: 'Stat',@@ -136,7 +136,7 @@ export const docsZh = {},};-/** @type {import('../../../core/src/docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'KPI/metric display: label, large tabular-nums value, sentiment-aware delta, and trend media slot.',usage: {diff --git a/packages/lab/src/Stepper/Step.doc.mjs b/packages/lab/src/Stepper/Step.doc.mjsindex bfccfbf21c..80a2a9f97e 100644--- a/packages/lab/src/Stepper/Step.doc.mjs+++ b/packages/lab/src/Stepper/Step.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Step',diff --git a/packages/lab/src/Stepper/Step.tsx b/packages/lab/src/Stepper/Step.tsxindex d3b032aa06..7c6a53dcdc 100644--- a/packages/lab/src/Stepper/Step.tsx+++ b/packages/lab/src/Stepper/Step.tsx@@ -13,7 +13,7 @@* - /packages/lab/src/Stepper/Stepper.test.tsx* - /packages/lab/src/Stepper/index.ts* - /apps/storybook/stories/Stepper.stories.tsx- * - /packages/cli/templates/blocks/components/Stepper/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Stepper/ (showcase blocks)*/import {type ReactNode} from 'react';diff --git a/packages/lab/src/Stepper/Stepper.doc.mjs b/packages/lab/src/Stepper/Stepper.doc.mjsindex 39d0165880..aa81f7bba7 100644--- a/packages/lab/src/Stepper/Stepper.doc.mjs+++ b/packages/lab/src/Stepper/Stepper.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: 'Stepper',@@ -165,7 +165,7 @@ export const docs = {},};-/** @type {import('../../../core/src/docs-types').TranslationDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentTranslationDoc} */export const docsDense = {description: 'numbered step sequence for multi-step workflows',usage: {@@ -212,7 +212,7 @@ export const docsDense = {],};-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docsZh = {name: 'Stepper',displayName: 'Stepper',diff --git a/packages/lab/src/Stepper/Stepper.tsx b/packages/lab/src/Stepper/Stepper.tsxindex d366ce34c8..43fb66df94 100644--- a/packages/lab/src/Stepper/Stepper.tsx+++ b/packages/lab/src/Stepper/Stepper.tsx@@ -13,7 +13,7 @@* - /packages/lab/src/Stepper/Stepper.test.tsx (tests for new/changed behavior)* - /packages/lab/src/Stepper/index.ts (exports if types change)* - /apps/storybook/stories/Stepper.stories.tsx (storybook stories)- * - /packages/cli/templates/blocks/components/Stepper/ (showcase blocks)+ * - /packages/cli/assets/templates/blocks/components/Stepper/ (showcase blocks)*/import {Children, useMemo, type ReactNode} from 'react';diff --git a/packages/lab/src/ThreeD/3DBar.doc.mjs b/packages/lab/src/ThreeD/3DBar.doc.mjsindex b56c8e667f..7cc0884203 100644--- a/packages/lab/src/ThreeD/3DBar.doc.mjs+++ b/packages/lab/src/ThreeD/3DBar.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: '3DBar',diff --git a/packages/lab/src/ThreeD/3DChart.doc.mjs b/packages/lab/src/ThreeD/3DChart.doc.mjsindex 24454fa49c..953ef790ad 100644--- a/packages/lab/src/ThreeD/3DChart.doc.mjs+++ b/packages/lab/src/ThreeD/3DChart.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: '3DChart',diff --git a/packages/lab/src/ThreeD/3DScatter.doc.mjs b/packages/lab/src/ThreeD/3DScatter.doc.mjsindex 32fe7718ca..5e549f0806 100644--- a/packages/lab/src/ThreeD/3DScatter.doc.mjs+++ b/packages/lab/src/ThreeD/3DScatter.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: '3DScatter',diff --git a/packages/lab/src/ThreeD/3DScatterGL.doc.mjs b/packages/lab/src/ThreeD/3DScatterGL.doc.mjsindex 269910f285..a07a11a7d4 100644--- a/packages/lab/src/ThreeD/3DScatterGL.doc.mjs+++ b/packages/lab/src/ThreeD/3DScatterGL.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: '3DScatterGL',diff --git a/packages/lab/src/ThreeD/3DSurface.doc.mjs b/packages/lab/src/ThreeD/3DSurface.doc.mjsindex 13ad2dcc7d..37e45a8f75 100644--- a/packages/lab/src/ThreeD/3DSurface.doc.mjs+++ b/packages/lab/src/ThreeD/3DSurface.doc.mjs@@ -1,6 +1,6 @@// Copyright (c) Meta Platforms, Inc. and affiliates.-/** @type {import('../../../core/src/docs-types').ComponentDoc} */+/** @type {import('@astryxdesign/cli/authoring').ComponentDoc} */export const docs = {name: '3DSurface',diff --git a/packages/lab/tsconfig.docs.json b/packages/lab/tsconfig.docs.jsonindex 37e141a39c..f19aeb0097 100644--- a/packages/lab/tsconfig.docs.json+++ b/packages/lab/tsconfig.docs.json@@ -6,5 +6,5 @@"checkJs": true,"noEmit": true},- "include": ["src/**/*.doc.mjs", "../core/src/docs-types.ts"]+ "include": ["src/**/*.doc.mjs"]}diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex eb14dd1a7f..d3fccde5ea 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -578,6 +578,9 @@ importers:specifier: '>=19.0.0'version: 19.2.7([email protected])devDependencies:+ '@astryxdesign/cli':+ specifier: workspace:*+ version: link:../cli'@types/d3-scale':specifier: ^4.0.9version: 4.0.9@@ -631,6 +634,9 @@ importers:specifier: '>=19.0.0'version: 19.2.7([email protected])devDependencies:+ '@astryxdesign/cli':+ specifier: workspace:*+ version: link:../cli'@babel/cli':specifier: ^8.0.4version: 8.0.4(@babel/[email protected])@@ -683,6 +689,9 @@ importers:specifier: '>=19.0.0'version: 19.2.7([email protected])devDependencies:+ '@astryxdesign/cli':+ specifier: workspace:*+ version: link:../cli'@lexical/code':specifier: ^0.46.0version: 0.46.0([email protected])diff --git a/scripts/build-css.test.mjs b/scripts/build-css.test.mjsindex 06a7c93208..9abb7d980d 100644--- a/scripts/build-css.test.mjs+++ b/scripts/build-css.test.mjs@@ -12,7 +12,7 @@ import {describe, it, expect, beforeAll} from 'vitest';import fs from 'node:fs/promises';import path from 'node:path';import {fileURLToPath} from 'node:url';-import {ensureCoreBuilt} from '../packages/cli/cli/commands/ensure-core-built.mjs';+import {ensureCoreBuilt} from '../packages/cli/clients/cli/commands/ensure-core-built.mjs';const __dirname = path.dirname(fileURLToPath(import.meta.url));const ROOT = path.resolve(__dirname, '..');diff --git a/scripts/check-demo-media.mjs b/scripts/check-demo-media.mjsindex 6eeff9f321..cf670ee6de 100644--- a/scripts/check-demo-media.mjs+++ b/scripts/check-demo-media.mjs@@ -21,7 +21,7 @@ import {fileURLToPath} from 'node:url';const __dirname = path.dirname(fileURLToPath(import.meta.url));const THUMBNAIL_BLOCK_DIR = path.resolve(__dirname,- '../packages/cli/templates/blocks/components/Thumbnail',+ '../packages/cli/assets/templates/blocks/components/Thumbnail',);// Cross-origin demo CDN that cannot be CORS-sampled by useImageMode.diff --git a/scripts/check-sync.js b/scripts/check-sync.jsindex ae89e31942..3d9f116a00 100644--- a/scripts/check-sync.js+++ b/scripts/check-sync.js@@ -20,7 +20,7 @@ const ROOT = path.resolve(__dirname, '..');const CORE_SRC = path.join(ROOT, 'packages/core/src');const SHOWCASE_DIR = path.join(ROOT,- 'packages/cli/templates/blocks/components',+ 'packages/cli/assets/templates/blocks/components',);const violations = [];@@ -135,7 +135,7 @@ for (const comp of componentDirs) {addViolation('missing-showcase',`${comp}/${xdsFile}`,- `Has SYNC block but no showcase reference (dir exists at packages/cli/templates/blocks/components/${comp}/)`,+ `Has SYNC block but no showcase reference (dir exists at packages/cli/assets/templates/blocks/components/${comp}/)`,);}}diff --git a/scripts/generate-cli-themes.mjs b/scripts/generate-cli-themes.mjsindex a46e2dfa2c..fc0f9ae514 100644--- a/scripts/generate-cli-themes.mjs+++ b/scripts/generate-cli-themes.mjs@@ -2,7 +2,7 @@/*** @file Bundles each theme's source (`src/<slug>Theme.ts` + `icons.tsx`) and a- * `manifest.json` into `packages/cli/templates/themes/` so `astryx theme add`+ * `manifest.json` into `packages/cli/assets/templates/themes/` so `astryx theme add`* can scaffold a theme without the package installed — like page templates.* Run from the repo root; commit the output so the published CLI carries it.*/@@ -18,6 +18,7 @@ const CLI_THEMES_OUT = path.join(REPO_ROOT,'packages','cli',+ 'assets','templates','themes',);diff --git a/scripts/generate-token-docs.mjs b/scripts/generate-token-docs.mjsindex 3657783958..19973490ad 100644--- a/scripts/generate-token-docs.mjs+++ b/scripts/generate-token-docs.mjs@@ -4,7 +4,7 @@/*** @file generate-token-docs.mjs- * @description Generates packages/cli/docs/tokens.doc.mjs from the source of+ * @description Generates packages/cli/assets/docs/tokens.doc.mjs from the source of* truth: packages/core/src/theme/tokens.stylex.ts** Run: node scripts/generate-token-docs.mjs@@ -24,7 +24,7 @@ const TOKENS_SRC = resolve(ROOT,'packages/core/src/theme/tokens.stylex.ts',);-const TOKENS_DOC = resolve(ROOT, 'packages/cli/docs/tokens.doc.mjs');+const TOKENS_DOC = resolve(ROOT, 'packages/cli/assets/docs/tokens.doc.mjs');// ---------------------------------------------------------------------------// 1. Parse token groups from source@@ -197,7 +197,7 @@ for (const group of groups) {const rows = pairs.map(([name, value]) => group.formatRow(name, value));- /** @type {import('../../core/src/docs-types').ContentBlock[]} */+ /** @type {import('@astryxdesign/cli/authoring').ReferenceContentBlock[]} */const content = [{type: 'prose', text: group.description},{type: 'table', headers: group.headers, rows},@@ -257,7 +257,7 @@ const output = `\// Run: node scripts/generate-token-docs.mjs// Total: ${totalTokens} tokens across ${groups.length} categories.-/** @type {import('../../core/src/docs-types').ReferenceDoc} */+/** @type {import('@astryxdesign/cli/authoring').ReferenceDoc} */export const docs = ${JSON.stringify({diff --git a/scripts/package-source.js b/scripts/package-source.jsindex 59f4a02f51..716457791a 100644--- a/scripts/package-source.js+++ b/scripts/package-source.js@@ -361,7 +361,7 @@ function copyAgentTools(dest) {fs.mkdirSync(agentToolsDest, { recursive: true });// Copy bin directory- const binSrc = path.join(AGENT_TOOLS_DIR, 'bin');+ const binSrc = path.join(AGENT_TOOLS_DIR, 'clients', 'cli', 'bin');const binDest = path.join(agentToolsDest, 'bin');if (fs.existsSync(binSrc)) {fs.mkdirSync(binDest, { recursive: true });@@ -372,7 +372,7 @@ function copyAgentTools(dest) {}// Copy docs directory- const docsSrc = path.join(AGENT_TOOLS_DIR, 'docs');+ const docsSrc = path.join(AGENT_TOOLS_DIR, 'assets', 'docs');const docsDest = path.join(agentToolsDest, 'docs');if (fs.existsSync(docsSrc)) {fs.mkdirSync(docsDest, { recursive: true });diff --git a/scripts/sync-exports.js b/scripts/sync-exports.jsindex f6c476293d..61c382ebf5 100644--- a/scripts/sync-exports.js+++ b/scripts/sync-exports.js@@ -73,16 +73,6 @@ const STATIC_EXPORTS = {types: './dist/naming.d.ts',default: './dist/naming.js',},- './config': {- source: './src/config.ts',- types: './dist/config.d.ts',- default: './dist/config.js',- },- './authoring': {- source: './src/authoring/index.ts',- types: './dist/authoring/index.d.ts',- default: './dist/authoring/index.js',- },'./theme/tokens': {source: './src/theme/tokens.ts',types: './dist/theme/tokens.d.ts',diff --git a/scripts/sync-templates.js b/scripts/sync-templates.jsindex f4e954f114..4ccf08935a 100644--- a/scripts/sync-templates.js+++ b/scripts/sync-templates.js@@ -5,7 +5,7 @@/*** @file sync-templates.js*- * Reads packages/cli/templates/{name}/template.doc.mjs and generates:+ * Reads packages/cli/assets/templates/{name}/template.doc.mjs and generates:* 1. A template registry (apps/sandbox/src/generated/templateRegistry.ts)* 2. Thin route wrappers under (fullscreen)/templates/{slug}/page.tsx*@@ -17,7 +17,7 @@ const path = require('node:path');const COPYRIGHT = '// Copyright (c) Meta Platforms, Inc. and affiliates.\n\n';const ROOT = path.resolve(__dirname, '..');-const TEMPLATES_DIR = path.join(ROOT, 'packages', 'cli', 'templates');+const TEMPLATES_DIR = path.join(ROOT, 'packages', 'cli', 'assets', 'templates');const PAGES_DIR = path.join(TEMPLATES_DIR, 'pages');const BLOCKS_DIR = path.join(TEMPLATES_DIR, 'blocks');const SANDBOX_DIR = path.join(ROOT, 'apps', 'sandbox');@@ -191,7 +191,7 @@ ${entries.join(',\n')}}function generatePageRouteWrapper(template) {- const depth = '../../../../../../../packages/cli/templates/pages';+ const depth = '../../../../../../../packages/cli/assets/templates/pages';return `${COPYRIGHT}/*** AUTO-GENERATED by scripts/sync-templates.js — do not edit.* Template: ${template.name}diff --git a/vitest.global-setup.node.mjs b/vitest.global-setup.node.mjsindex 672526ba81..92e37effb7 100644--- a/vitest.global-setup.node.mjs+++ b/vitest.global-setup.node.mjs@@ -16,7 +16,7 @@* SYNC: When modified, update this header.*/-import {ensureCoreBuilt} from './packages/cli/cli/commands/ensure-core-built.mjs';+import {ensureCoreBuilt} from './packages/cli/clients/cli/commands/ensure-core-built.mjs';export default function setup() {ensureCoreBuilt();