@astryxdesign/cli 0.7.0-canary.936b1f7 → 0.7.0-canary.94bdc8e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -61
- package/api/integration/pack-check.test.mjs +8 -0
- package/api/template/template.doc.mjs +1 -1
- package/api/template/template.type.mjs +1 -1
- package/api/theme/build/build.d.mts +0 -1
- package/api/theme/build/build.mjs +4 -29
- package/api/theme/build/family.mjs +1 -1
- package/assets/codemods/transforms/next/__tests__/migrate-field-input-styling.test.mjs +108 -0
- package/assets/codemods/transforms/next/__tests__/validate-data-token-ownership.test.mjs +84 -0
- package/assets/codemods/transforms/next/index.mjs +16 -0
- package/assets/codemods/transforms/next/migrate-field-input-styling.mjs +198 -0
- package/assets/codemods/transforms/next/validate-data-token-ownership.mjs +102 -0
- package/assets/docs/author-a-theme.doc.mjs +1 -1
- package/assets/docs/tree/tokens-data.doc.mjs +2 -2
- package/assets/docs/tree/tokens-usage.doc.mjs +1 -1
- package/assets/templates/blocks/components/ComplexSelector/ComplexSelectorDeadlinePicker.tsx +1 -1
- package/assets/templates/blocks/components/ComplexSelector/ComplexSelectorShowcase.tsx +1 -1
- package/assets/templates/blocks/components/ComplexSelector/ComplexSelectorTreeSearch.tsx +1 -1
- package/assets/templates/blocks/components/InternationalizationProvider/InternationalizationProvider01ShippedLocale.tsx +1 -1
- package/assets/templates/blocks/components/InternationalizationProvider/InternationalizationProvider02Overrides.tsx +1 -1
- package/assets/templates/blocks/components/Selector/SelectorClearable.tsx +1 -1
- package/assets/templates/blocks/components/Selector/SelectorOptionDescriptions.tsx +2 -2
- package/assets/templates/blocks/components/Selector/SelectorShowcase.tsx +1 -1
- package/assets/templates/blocks/components/Selector/SelectorWithSections.tsx +1 -1
- package/assets/templates/blocks/components/SelectorOption/SelectorOptionBasic.tsx +1 -1
- package/assets/templates/blocks/components/SelectorOption/SelectorOptionShowcase.tsx +1 -1
- package/assets/templates/blocks/components/Slider/SliderFormattedValue.tsx +1 -1
- package/assets/templates/blocks/components/Slider/SliderRangeSlider.tsx +1 -1
- package/assets/templates/blocks/components/Slider/SliderShowcase.tsx +1 -1
- package/assets/templates/blocks/components/Slider/SliderWithMarks.tsx +1 -1
- package/assets/templates/blocks/components/Tokenizer/TokenizerClear.tsx +1 -1
- package/assets/templates/blocks/components/Tokenizer/TokenizerCreatable.tsx +2 -2
- package/assets/templates/blocks/components/Tokenizer/TokenizerEndContent.tsx +1 -1
- package/assets/templates/blocks/components/Tokenizer/TokenizerIcon.tsx +1 -1
- package/assets/templates/blocks/components/Tokenizer/TokenizerMaxEntries.tsx +1 -1
- package/assets/templates/blocks/components/Tokenizer/TokenizerOverflow.tsx +2 -2
- package/assets/templates/blocks/components/Tokenizer/TokenizerShowcase.tsx +1 -1
- package/assets/templates/blocks/components/Tokenizer/TokenizerStates.tsx +4 -4
- package/assets/templates/blocks/components/Toolbar/ToolbarTableFilter.tsx +1 -1
- package/assets/templates/pages/canvas-editor/page.tsx +1 -1
- package/assets/templates/pages/table-filter/page.tsx +3 -3
- package/clients/cli/commands/build-theme.color-scheme.test.mjs +10 -6
- package/clients/cli/commands/build-theme.data-tokens.test.mjs +23 -75
- package/foundation/discovery/template-needs.mjs +93 -11
- package/foundation/discovery/template-needs.test.mjs +106 -3
- package/foundation/env/package-manager.d.mts +13 -0
- package/foundation/env/package-manager.mjs +106 -63
- package/foundation/response/response-types.doc.mjs +1 -2
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -419,67 +419,67 @@ Every response has a `type` discriminant. The full set is below (generated from
|
|
|
419
419
|
|
|
420
420
|
<!-- BEGIN GENERATED: response-types -->
|
|
421
421
|
|
|
422
|
-
| Type | What `data` carries
|
|
423
|
-
| --------------------------------- |
|
|
424
|
-
| `init.run` | The install receipt: the `mode` (`default` \| `features`), the features run, agent-doc files written, any soft `docsError`, whether theme guidance was emitted, the template outcome (`workflow` \| `created` \| `skipped`) plus its path, and whether the next-steps were emitted.
|
|
425
|
-
| `init.remove` | The removal receipt — returned when --remove-agents is set: `data.removed` is true when a managed agent-docs block was found and removed, and false when there was none to remove.
|
|
426
|
-
| `component.list` | The component catalog grouped by component group (each component's group field): `detail` (the level: names \| compact \| full) and `components`, the grouped map of names entries ({name, package, and optional canonical import for integrations}), brief entries ({name, package, description, import}), or a full ComponentDoc per entry with its package.
|
|
427
|
-
| `component.batch` | The component specialization of the shared `BatchResponse` and `BatchRow` types. An explicit programmatic selector array, or two or more CLI selectors, returns one ordered receipt: `count` plus `results`, one row per selector including duplicates. Every row carries `selector` and `status` (found \| not_found \| ambiguous \| error). A found row carries `result`, the same {type, data} response as one selector. An ambiguous row carries `code`, `error`, and `candidates` ({package, component, kind, installed}). Other failed rows carry `code`, `error`, and optional `suggestions` ({name, reason}).
|
|
428
|
-
| `component.detail` | One component's authored ComponentDoc plus ownership fields (package, the owner; import, the specifier; sourceAvailable, whether source exists) and parentDoc (present when the component is documented inside another component's doc, naming that doc). The envelope's package names the same owner.
|
|
429
|
-
| `component.detail.props` | Just one component's props table (ComponentPropDoc[]). The envelope's package names the npm package that owns the component.
|
|
430
|
-
| `component.detail.source` | One component's source file, as {component, source}. The envelope's package names the npm package that owns the component.
|
|
431
|
-
| `component.detail.showcase` | One component's showcase example, as {component, aspectRatio, source}. The envelope's package names the npm package that owns the component.
|
|
432
|
-
| `component.detail.blocks` | One component's example blocks, as {component, showcase, examples, related} of BlockEntry ({name, package, displayName, description, isShowcase, category}); each block names the package that owns it, and the envelope's package names the component's owner.
|
|
433
|
-
| `docs.list` | All reference-doc topics as DocsListEntry[] ({topic, description, package, replaces?}), in read order; meta.namespaces lists the docs tree's top-level namespaces, and meta.notLoaded each package whose docs did not load.
|
|
434
|
-
| `docs.detail` | One topic's full ReferenceDoc (the JSON read of a topic, --full, --dense, or a topic with one section), with token-ref blocks inlined and each section naming the package that wrote it, plus links ({up, previous, next}: the commands that open the level it sits in and its neighbors there).
|
|
435
|
-
| `docs.index` | One topic's section index, the text read of a topic with more than one section (and --index): the topic's name, title, and description, plus sections, each {id, title, package, summary} (pass the id as the section argument; package is the npm package that wrote the section; summary is the section's one-line summary), and links ({up, previous, next}: the commands that open the level it sits in and its neighbors there).
|
|
436
|
-
| `docs.detail.section` | One ReferenceSection of a topic, found by key or title, with token-ref blocks inlined, plus links ({up, previous, next}: the commands that open its topic index and the sections before and after it). The envelope's package names the npm package that wrote the section.
|
|
437
|
-
| `docs.node` | One node of the docs tree, read by its route: its id, kind, package, title, summary, and breadcrumb, plus a namespace's slots with their children (one level down, each naming its package) or a typed doc's content, and links ({up, previous, next, related}: the commands that open its parent, its neighbors, and the docs it names).
|
|
438
|
-
| `blog.list` | The feed URL plus every post parsed from the RSS feed, each with slug, title, description, date, type, authors, link, and plaintext URL.
|
|
439
|
-
| `blog.detail` | One post's metadata plus the feed URL and the post's full plaintext body.
|
|
440
|
-
| `discover.list` | The integrations the project loads (name, category, components, version, a list per other kind they add, and latest when a source knows it); with a discover source, meta.available lists what the project could add and meta.sources reports each source; when empty it carries meta.configured to tell "nothing configured" from "nothing discovered".
|
|
441
|
-
| `discover.detail` | One package, for an @scope/name or @scope/name@version query: what the shown version adds, whether the project has it, and, when a source knows the package, its versions, latest release, and the command that adds it.
|
|
442
|
-
| `discover.detail.doc` | The validated ComponentDoc for one installed component, for an @scope/name/Component query.
|
|
443
|
-
| `discover.item` | One item that is not an installed component, for an @scope/name/<item> query: its kind, name, package, version, and whether the project has the package.
|
|
444
|
-
| `discover.search` | The echoed query plus every matching item and package across all packages, each with its kind and whether the project has it, even when only one matches; total is set when --limit cut the list.
|
|
445
|
-
| `search` | The echoed query, `matchCount` (total matches, before `limit`), and results, a ranked SearchResultEntry[] bounded by `limit`: each {domain, name, package, score, reason, description, command} (package is the npm package that owns the result), plus import (components, hooks), title, parent (the command that opens the level above), and, for a hit on one section, section (docs), or displayName and kind (templates).
|
|
446
|
-
| `build.help` | The how-to-build-a-page playbook, emitted when no query is given: `playbook: true`, a title, the ordered steps (title, commands, optional returns), the on-system rules, and related lookups. Commands are bare subcommands for the caller to render with its own invocation.
|
|
447
|
-
| `build.kit` | The template to start from and its kit: query, hasResults, matchCount (never a cap), directMatch, start {name, package, command, basis, reason, alternatives, ...} (the start and each alternative name the package that owns the template), pages (search's closest templates), blocks and domain as SearchResultEntry[] (each naming its package), frame and foundation (Core component names), and hint {reason, commands} when thin.
|
|
448
|
-
| `swizzle.list` | The names of swizzlable components discoverable from cwd's @astryxdesign/core. The envelope's package is @astryxdesign/core.
|
|
449
|
-
| `swizzle.copy` | An eject receipt: component name, owning package, output directory, files-copied count, the written file names, whether any file uses StyleX, and, when the owner has an issues URL, feedback ({issuesUrl, ghCommand?}): where to report the gap that led to swizzling. The envelope's package names the same owning package.
|
|
450
|
-
| `gap-report.categories` | The fixed gap category values and human-readable labels.
|
|
451
|
-
| `gap-report.file` | An aggregate receipt: overall status, the selected package, issuesUrl (or null), deliveries in handler order, each {handlerType: project \| integration \| fallback, handler, audience, status, url, message}, and filedCount/routedOnlyCount totals.
|
|
452
|
-
| `template.list` | The effective discovered TemplateListEntry[] for pages and blocks. A winning replacement entry includes optional `replaces`, naming the Core id omitted from the default list.
|
|
453
|
-
| `template.show` | The resolved template's source, exactly as a copy writes it, plus its description, kind, the component names it composes, and demoMediaReplaced (how many Astryx demo media references were replaced with placeholders for you to swap for your own media).
|
|
454
|
-
| `template.skeleton` | A layout skeleton (structural tags with spatial annotations) plus the template's description and the components it composes. The envelope's package names the npm package that owns the template.
|
|
455
|
-
| `template.copy` | A scaffold receipt: template id, output directory, written file name, file count, demoMediaReplaced (how many Astryx demo media references were replaced with placeholders), notes (setup notes naming what the template needs that the project lacks — missing packages, missing StyleX compiler; empty when satisfied), missingPackages (external package names the template imports that are not in the project), and installCommand (a ready-to-run install command with the detected package manager and workspace version ranges; null when nothing is missing). The envelope's package names the npm package that owns the template. |
|
|
456
|
-
| `template.cdn` | A write receipt for the no-build-step CDN starter page: the path (relative to cwd), the Astryx version every CDN URL was pinned to, whether it was written, and the reason it was not. `exists` when a file was already there, which is a success.
|
|
457
|
-
| `hook.list` | The hook catalog grouped by category: `detail` (the level: names \| compact \| full) and `components`, the grouped map of hook names, brief entries, or a full HookDoc per entry. The envelope's package is @astryxdesign/core, the only package that ships hooks.
|
|
458
|
-
| `hook.detail` | One hook's full authored HookDoc. The envelope's package is @astryxdesign/core.
|
|
459
|
-
| `hook.detail.params` | Just one hook's parameters table (HookParamDoc[]). The envelope's package is @astryxdesign/core.
|
|
460
|
-
| `theme.build` | A theme build receipt: name, tokenCount and componentCount (override counts), sizeKB, the written outputs {css, cssDts, js, dts, and variantsDts when applicable}, warnings (defects to fix), and notices (advisories about a correct theme, such as a named font it does not load).
|
|
461
|
-
| `theme.build.check` | The --check receipt: theme name, an upToDate flag, the stale outputs (each {path, reason: missing \| outdated}), and the full list of checked paths. Writes nothing.
|
|
462
|
-
| `theme.build.batch` | Several themes built in one invocation: `count` plus one {file, receipt} per theme in argument order, where receipt is that theme's theme.build (or theme.build.check) envelope, or null when it produced no CSS.
|
|
463
|
-
| `theme.list` | Every bundled, installed package, and local theme as a ThemeListEntry[]. Each entry has slug, displayName, description, maintained, owner package or local root, source, added, and default fields. Optional meta.unmigratedCopies names earlier descriptor-less copies, their missing descriptor, and the upgrade command; those copies are not data entries.
|
|
464
|
-
| `theme.app` | The app theme record after add, remove, or use. It includes every added theme and its built imports, the default slug, generated module path, and the command change. After add, the envelope package names the npm package that owns the added theme; a local theme has none.
|
|
465
|
-
| `theme.eject` | A local source-fork receipt with the resolved slug, displayName, source theme maintained flag, source-selector package, outputDir, source entry, exportName, and every file written, including the descriptor. The written local descriptor always uses maintained: false.
|
|
466
|
-
| `theme.template` | A write receipt for the annotated theme template: the path (relative to cwd), whether it was written, and the reason it was not. `exists` when a file was already there, which is a success.
|
|
467
|
-
| `theme.targets` | The whole themeable surface: the echoed filter, componentCount, and targets, one per theming target — {key, className, component, props, states}, where props and states are its legal override keys.
|
|
468
|
-
| `theme.palette.generate` | An author-reviewable OKLCH palette candidate, its reproducibility receipt, summary counts, and optional candidate/receipt file-write result.
|
|
469
|
-
| `upgrade.list` | Every available codemod, oldest→newest, as {name, package, title, version, optional}; returned for --list without running anything.
|
|
470
|
-
| `upgrade.registry` | The copied-composition receipt for --registry: applied, ok, the counts (found, current, wouldUpdate, updated, wouldMerge, merged, wouldRefreshReceipt, receiptsRefreshed, conflicts, missing, invalid, failed), and items.
|
|
471
|
-
| `upgrade.status` | A short-circuit outcome with no codemods run (up_to_date, no_codemods, or config_fixable), each carrying the agent-docs summary.
|
|
472
|
-
| `upgrade.run` | The run receipt: from/to versions, codemod count, integrations processed, the agent-docs summary, sourcePathFound (false when the resolved source directory does not exist, so no source file was read), and (apply mode) filesChanged, transformsApplied, and per-codemod errors.
|
|
473
|
-
| `manifest` | The CLI capability manifest: name, version, apiVersion, description, globalOptions, commands (each name, description, arguments, options, json, aliases?, responseTypes?, examples?, exitCodes? as [{code, when}], subcommands?), jsonSupported, and the flat responseTypes index.
|
|
474
|
-
| `help` | Help, in one of two shapes. A bare `astryx --json` returns the root manifest: name, version, commands (the command names), jsonSupported, and manifest (the full payload `astryx manifest --json` returns). `--help --json` on any command, or `astryx help [command] --json`, returns that command's help: command, description, usage, options (each flags, description, and defaultValue and choices when set), and subcommands (each name and description). data.manifest marks the first shape; data.usage marks the second.
|
|
475
|
-
| `version` | The CLI version, for `astryx --version --json`: {version}.
|
|
476
|
-
| `doctor` | The health-check report: `checks` (each with id, label, status: pass \| warn \| fail \| info, a message, and an optional fix, always present on warn and fail) plus a `summary` of counts per status.
|
|
477
|
-
| `integration.add` | A contribution-writer receipt: kind, name, optional root {path, created}, integration-manifest path, every affected project-relative path, written, and dryRun.
|
|
478
|
-
| `integration.pack-check` | The packed-package check: name, version, packable, tarball {filename, fileCount, size, unpackedSize} or null, inventory {manifest, roots [{kind, path, expectedFiles, missingFiles, complete}], expectedFiles, packedFiles}, contributions {local, packed}, each null or {themes [{slug, exportName}], components, templates [{id, type, name}], codemods [{version, id}], docs, agentDocsAppend}, and issues [{code, severity, message}].
|
|
479
|
-
| `integration.validate` | The validation result: validated (false when nothing was validated: with no package.json the issues list carries one no_package error so the command exits 1, and with a package.json but no integration manifest the issues list is empty and proves nothing), the package name and version (both null when validated is false) plus issues, an AstryxIntegrationIssue[] of {code, severity: warning \| error, message}.
|
|
480
|
-
| `integration.template-conflicts` | validated (false when no integration manifest was found, so nothing was inspected), the integration identity, structural issues, and non-blocking Core template-id conflicts as {id, severity: warning, integrationPackage, integrationType, integrationName, coreMatches, message, command}.
|
|
481
|
-
| `integration.component-conflicts` | validated (false when no integration manifest was found, so nothing was inspected), the integration identity, structural issues, and non-blocking conflicts where an integration component name is also owned by Core; each conflict includes the exact package-qualified command.
|
|
482
|
-
| `integration.doc-conflicts` | validated (false when no integration manifest was found, so nothing was inspected), the integration identity, structural issues, and Core doc overlaps. Each finding includes `severity` (`info` \| `error`) and `relationship` (`replaces` \| `extends` \| `accidental`).
|
|
422
|
+
| Type | What `data` carries |
|
|
423
|
+
| --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
424
|
+
| `init.run` | The install receipt: the `mode` (`default` \| `features`), the features run, agent-doc files written, any soft `docsError`, whether theme guidance was emitted, the template outcome (`workflow` \| `created` \| `skipped`) plus its path, and whether the next-steps were emitted. |
|
|
425
|
+
| `init.remove` | The removal receipt — returned when --remove-agents is set: `data.removed` is true when a managed agent-docs block was found and removed, and false when there was none to remove. |
|
|
426
|
+
| `component.list` | The component catalog grouped by component group (each component's group field): `detail` (the level: names \| compact \| full) and `components`, the grouped map of names entries ({name, package, and optional canonical import for integrations}), brief entries ({name, package, description, import}), or a full ComponentDoc per entry with its package. |
|
|
427
|
+
| `component.batch` | The component specialization of the shared `BatchResponse` and `BatchRow` types. An explicit programmatic selector array, or two or more CLI selectors, returns one ordered receipt: `count` plus `results`, one row per selector including duplicates. Every row carries `selector` and `status` (found \| not_found \| ambiguous \| error). A found row carries `result`, the same {type, data} response as one selector. An ambiguous row carries `code`, `error`, and `candidates` ({package, component, kind, installed}). Other failed rows carry `code`, `error`, and optional `suggestions` ({name, reason}). |
|
|
428
|
+
| `component.detail` | One component's authored ComponentDoc plus ownership fields (package, the owner; import, the specifier; sourceAvailable, whether source exists) and parentDoc (present when the component is documented inside another component's doc, naming that doc). The envelope's package names the same owner. |
|
|
429
|
+
| `component.detail.props` | Just one component's props table (ComponentPropDoc[]). The envelope's package names the npm package that owns the component. |
|
|
430
|
+
| `component.detail.source` | One component's source file, as {component, source}. The envelope's package names the npm package that owns the component. |
|
|
431
|
+
| `component.detail.showcase` | One component's showcase example, as {component, aspectRatio, source}. The envelope's package names the npm package that owns the component. |
|
|
432
|
+
| `component.detail.blocks` | One component's example blocks, as {component, showcase, examples, related} of BlockEntry ({name, package, displayName, description, isShowcase, category}); each block names the package that owns it, and the envelope's package names the component's owner. |
|
|
433
|
+
| `docs.list` | All reference-doc topics as DocsListEntry[] ({topic, description, package, replaces?}), in read order; meta.namespaces lists the docs tree's top-level namespaces, and meta.notLoaded each package whose docs did not load. |
|
|
434
|
+
| `docs.detail` | One topic's full ReferenceDoc (the JSON read of a topic, --full, --dense, or a topic with one section), with token-ref blocks inlined and each section naming the package that wrote it, plus links ({up, previous, next}: the commands that open the level it sits in and its neighbors there). |
|
|
435
|
+
| `docs.index` | One topic's section index, the text read of a topic with more than one section (and --index): the topic's name, title, and description, plus sections, each {id, title, package, summary} (pass the id as the section argument; package is the npm package that wrote the section; summary is the section's one-line summary), and links ({up, previous, next}: the commands that open the level it sits in and its neighbors there). |
|
|
436
|
+
| `docs.detail.section` | One ReferenceSection of a topic, found by key or title, with token-ref blocks inlined, plus links ({up, previous, next}: the commands that open its topic index and the sections before and after it). The envelope's package names the npm package that wrote the section. |
|
|
437
|
+
| `docs.node` | One node of the docs tree, read by its route: its id, kind, package, title, summary, and breadcrumb, plus a namespace's slots with their children (one level down, each naming its package) or a typed doc's content, and links ({up, previous, next, related}: the commands that open its parent, its neighbors, and the docs it names). |
|
|
438
|
+
| `blog.list` | The feed URL plus every post parsed from the RSS feed, each with slug, title, description, date, type, authors, link, and plaintext URL. |
|
|
439
|
+
| `blog.detail` | One post's metadata plus the feed URL and the post's full plaintext body. |
|
|
440
|
+
| `discover.list` | The integrations the project loads (name, category, components, version, a list per other kind they add, and latest when a source knows it); with a discover source, meta.available lists what the project could add and meta.sources reports each source; when empty it carries meta.configured to tell "nothing configured" from "nothing discovered". |
|
|
441
|
+
| `discover.detail` | One package, for an @scope/name or @scope/name@version query: what the shown version adds, whether the project has it, and, when a source knows the package, its versions, latest release, and the command that adds it. |
|
|
442
|
+
| `discover.detail.doc` | The validated ComponentDoc for one installed component, for an @scope/name/Component query. |
|
|
443
|
+
| `discover.item` | One item that is not an installed component, for an @scope/name/<item> query: its kind, name, package, version, and whether the project has the package. |
|
|
444
|
+
| `discover.search` | The echoed query plus every matching item and package across all packages, each with its kind and whether the project has it, even when only one matches; total is set when --limit cut the list. |
|
|
445
|
+
| `search` | The echoed query, `matchCount` (total matches, before `limit`), and results, a ranked SearchResultEntry[] bounded by `limit`: each {domain, name, package, score, reason, description, command} (package is the npm package that owns the result), plus import (components, hooks), title, parent (the command that opens the level above), and, for a hit on one section, section (docs), or displayName and kind (templates). |
|
|
446
|
+
| `build.help` | The how-to-build-a-page playbook, emitted when no query is given: `playbook: true`, a title, the ordered steps (title, commands, optional returns), the on-system rules, and related lookups. Commands are bare subcommands for the caller to render with its own invocation. |
|
|
447
|
+
| `build.kit` | The template to start from and its kit: query, hasResults, matchCount (never a cap), directMatch, start {name, package, command, basis, reason, alternatives, ...} (the start and each alternative name the package that owns the template), pages (search's closest templates), blocks and domain as SearchResultEntry[] (each naming its package), frame and foundation (Core component names), and hint {reason, commands} when thin. |
|
|
448
|
+
| `swizzle.list` | The names of swizzlable components discoverable from cwd's @astryxdesign/core. The envelope's package is @astryxdesign/core. |
|
|
449
|
+
| `swizzle.copy` | An eject receipt: component name, owning package, output directory, files-copied count, the written file names, whether any file uses StyleX, and, when the owner has an issues URL, feedback ({issuesUrl, ghCommand?}): where to report the gap that led to swizzling. The envelope's package names the same owning package. |
|
|
450
|
+
| `gap-report.categories` | The fixed gap category values and human-readable labels. |
|
|
451
|
+
| `gap-report.file` | An aggregate receipt: overall status, the selected package, issuesUrl (or null), deliveries in handler order, each {handlerType: project \| integration \| fallback, handler, audience, status, url, message}, and filedCount/routedOnlyCount totals. |
|
|
452
|
+
| `template.list` | The effective discovered TemplateListEntry[] for pages and blocks. A winning replacement entry includes optional `replaces`, naming the Core id omitted from the default list. |
|
|
453
|
+
| `template.show` | The resolved template's source, exactly as a copy writes it, plus its description, kind, the component names it composes, and demoMediaReplaced (how many Astryx demo media references were replaced with placeholders for you to swap for your own media). |
|
|
454
|
+
| `template.skeleton` | A layout skeleton (structural tags with spatial annotations) plus the template's description and the components it composes. The envelope's package names the npm package that owns the template. |
|
|
455
|
+
| `template.copy` | A scaffold receipt: template id, output directory, written file name, file count, demoMediaReplaced (how many Astryx demo media references were replaced with placeholders), notes (setup notes naming what the template needs that the project lacks — missing packages, missing StyleX compiler; empty when satisfied), missingPackages (external package names the template imports that are not in the project), and installCommand (a ready-to-run install command with the detected package manager and workspace version ranges; null when nothing is missing, or when several lockfiles leave the package manager undetermined). The envelope's package names the npm package that owns the template. |
|
|
456
|
+
| `template.cdn` | A write receipt for the no-build-step CDN starter page: the path (relative to cwd), the Astryx version every CDN URL was pinned to, whether it was written, and the reason it was not. `exists` when a file was already there, which is a success. |
|
|
457
|
+
| `hook.list` | The hook catalog grouped by category: `detail` (the level: names \| compact \| full) and `components`, the grouped map of hook names, brief entries, or a full HookDoc per entry. The envelope's package is @astryxdesign/core, the only package that ships hooks. |
|
|
458
|
+
| `hook.detail` | One hook's full authored HookDoc. The envelope's package is @astryxdesign/core. |
|
|
459
|
+
| `hook.detail.params` | Just one hook's parameters table (HookParamDoc[]). The envelope's package is @astryxdesign/core. |
|
|
460
|
+
| `theme.build` | A theme build receipt: name, tokenCount and componentCount (override counts), sizeKB, the written outputs {css, cssDts, js, dts, and variantsDts when applicable}, warnings (defects to fix), and notices (advisories about a correct theme, such as a named font it does not load). |
|
|
461
|
+
| `theme.build.check` | The --check receipt: theme name, an upToDate flag, the stale outputs (each {path, reason: missing \| outdated}), and the full list of checked paths. Writes nothing. |
|
|
462
|
+
| `theme.build.batch` | Several themes built in one invocation: `count` plus one {file, receipt} per theme in argument order, where receipt is that theme's theme.build (or theme.build.check) envelope, or null when it produced no CSS. |
|
|
463
|
+
| `theme.list` | Every bundled, installed package, and local theme as a ThemeListEntry[]. Each entry has slug, displayName, description, maintained, owner package or local root, source, added, and default fields. Optional meta.unmigratedCopies names earlier descriptor-less copies, their missing descriptor, and the upgrade command; those copies are not data entries. |
|
|
464
|
+
| `theme.app` | The app theme record after add, remove, or use. It includes every added theme and its built imports, the default slug, generated module path, and the command change. After add, the envelope package names the npm package that owns the added theme; a local theme has none. |
|
|
465
|
+
| `theme.eject` | A local source-fork receipt with the resolved slug, displayName, source theme maintained flag, source-selector package, outputDir, source entry, exportName, and every file written, including the descriptor. The written local descriptor always uses maintained: false. |
|
|
466
|
+
| `theme.template` | A write receipt for the annotated theme template: the path (relative to cwd), whether it was written, and the reason it was not. `exists` when a file was already there, which is a success. |
|
|
467
|
+
| `theme.targets` | The whole themeable surface: the echoed filter, componentCount, and targets, one per theming target — {key, className, component, props, states}, where props and states are its legal override keys. |
|
|
468
|
+
| `theme.palette.generate` | An author-reviewable OKLCH palette candidate, its reproducibility receipt, summary counts, and optional candidate/receipt file-write result. |
|
|
469
|
+
| `upgrade.list` | Every available codemod, oldest→newest, as {name, package, title, version, optional}; returned for --list without running anything. |
|
|
470
|
+
| `upgrade.registry` | The copied-composition receipt for --registry: applied, ok, the counts (found, current, wouldUpdate, updated, wouldMerge, merged, wouldRefreshReceipt, receiptsRefreshed, conflicts, missing, invalid, failed), and items. |
|
|
471
|
+
| `upgrade.status` | A short-circuit outcome with no codemods run (up_to_date, no_codemods, or config_fixable), each carrying the agent-docs summary. |
|
|
472
|
+
| `upgrade.run` | The run receipt: from/to versions, codemod count, integrations processed, the agent-docs summary, sourcePathFound (false when the resolved source directory does not exist, so no source file was read), and (apply mode) filesChanged, transformsApplied, and per-codemod errors. |
|
|
473
|
+
| `manifest` | The CLI capability manifest: name, version, apiVersion, description, globalOptions, commands (each name, description, arguments, options, json, aliases?, responseTypes?, examples?, exitCodes? as [{code, when}], subcommands?), jsonSupported, and the flat responseTypes index. |
|
|
474
|
+
| `help` | Help, in one of two shapes. A bare `astryx --json` returns the root manifest: name, version, commands (the command names), jsonSupported, and manifest (the full payload `astryx manifest --json` returns). `--help --json` on any command, or `astryx help [command] --json`, returns that command's help: command, description, usage, options (each flags, description, and defaultValue and choices when set), and subcommands (each name and description). data.manifest marks the first shape; data.usage marks the second. |
|
|
475
|
+
| `version` | The CLI version, for `astryx --version --json`: {version}. |
|
|
476
|
+
| `doctor` | The health-check report: `checks` (each with id, label, status: pass \| warn \| fail \| info, a message, and an optional fix, always present on warn and fail) plus a `summary` of counts per status. |
|
|
477
|
+
| `integration.add` | A contribution-writer receipt: kind, name, optional root {path, created}, integration-manifest path, every affected project-relative path, written, and dryRun. |
|
|
478
|
+
| `integration.pack-check` | The packed-package check: name, version, packable, tarball {filename, fileCount, size, unpackedSize} or null, inventory {manifest, roots [{kind, path, expectedFiles, missingFiles, complete}], expectedFiles, packedFiles}, contributions {local, packed}, each null or {themes [{slug, exportName}], components, templates [{id, type, name}], codemods [{version, id}], docs, agentDocsAppend}, and issues [{code, severity, message}]. |
|
|
479
|
+
| `integration.validate` | The validation result: validated (false when nothing was validated: with no package.json the issues list carries one no_package error so the command exits 1, and with a package.json but no integration manifest the issues list is empty and proves nothing), the package name and version (both null when validated is false) plus issues, an AstryxIntegrationIssue[] of {code, severity: warning \| error, message}. |
|
|
480
|
+
| `integration.template-conflicts` | validated (false when no integration manifest was found, so nothing was inspected), the integration identity, structural issues, and non-blocking Core template-id conflicts as {id, severity: warning, integrationPackage, integrationType, integrationName, coreMatches, message, command}. |
|
|
481
|
+
| `integration.component-conflicts` | validated (false when no integration manifest was found, so nothing was inspected), the integration identity, structural issues, and non-blocking conflicts where an integration component name is also owned by Core; each conflict includes the exact package-qualified command. |
|
|
482
|
+
| `integration.doc-conflicts` | validated (false when no integration manifest was found, so nothing was inspected), the integration identity, structural issues, and Core doc overlaps. Each finding includes `severity` (`info` \| `error`) and `relationship` (`replaces` \| `extends` \| `accidental`). |
|
|
483
483
|
|
|
484
484
|
<!-- END GENERATED: response-types -->
|
|
485
485
|
<!-- Generated by scripts/generate-cli-readme.mjs from the response-types EnumDoc. Run `pnpm -F @astryxdesign/cli readme`. -->
|
|
@@ -504,6 +504,14 @@ describe('integrationPackCheck', () => {
|
|
|
504
504
|
message:
|
|
505
505
|
'Theme "ocean" exports @acme/widgets/theme.css without a complete built module and stylesheet pair. Missing partner exports alone do not block packing; add the matching export when the theme should be importable. Every declared export must resolve. Staleness is a warning until the complete importable pair is declared.',
|
|
506
506
|
},
|
|
507
|
+
// A 0.6.5-built stylesheet still carries the root data-color defaults
|
|
508
|
+
// that theme output no longer emits, so it no longer matches its source.
|
|
509
|
+
{
|
|
510
|
+
code: 'theme_stylesheet_stale',
|
|
511
|
+
severity: 'warning',
|
|
512
|
+
message:
|
|
513
|
+
'Theme "ocean" stylesheet does not match themes/ocean/oceanTheme.ts. This incomplete export remains packable, but run `astryx theme build themes/ocean/oceanTheme.ts` before adding its matching export.',
|
|
514
|
+
},
|
|
507
515
|
]);
|
|
508
516
|
const cli = runCliVerify();
|
|
509
517
|
expect(cli.status, cli.stderr).toBe(0);
|
|
@@ -125,7 +125,7 @@ export const doc = {
|
|
|
125
125
|
{
|
|
126
126
|
type: 'template.copy',
|
|
127
127
|
description:
|
|
128
|
-
'A receipt after scaffolding the template into the project: the template id, output directory, written file name, file count, `demoMediaReplaced` — how many Astryx demo media references were replaced with placeholders, `notes` — setup notes naming what the template needs that the project lacks (missing packages, missing StyleX compiler; empty when satisfied), `missingPackages` — external package names the template imports that are not in the project, and `installCommand` — a ready-to-run install command with the detected package manager and workspace version ranges (null when nothing is missing).',
|
|
128
|
+
'A receipt after scaffolding the template into the project: the template id, output directory, written file name, file count, `demoMediaReplaced` — how many Astryx demo media references were replaced with placeholders, `notes` — setup notes naming what the template needs that the project lacks (missing packages, missing StyleX compiler; empty when satisfied), `missingPackages` — external package names the template imports that are not in the project, and `installCommand` — a ready-to-run install command with the detected package manager and workspace version ranges (null when nothing is missing, or when several lockfiles leave the package manager undetermined; `missingPackages` still names the packages).',
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
131
|
type: 'template.cdn',
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
* @property {number} data.demoMediaReplaced Astryx demo media references (images, posters, videos) replaced in the written file: images with a neutral placeholder, videos with an empty source. Swap in your own media at those points; no media is installed. 0 when the template carried none.
|
|
83
83
|
* @property {string[]} data.notes Setup notes: what the template needs that the project lacks (missing packages, missing StyleX compiler). Each note is one actionable line. Empty when the template needs nothing the project lacks.
|
|
84
84
|
* @property {string[]} data.missingPackages External package names the template imports that are not in the project's dependencies. Empty when none are missing.
|
|
85
|
-
* @property {string | null} data.installCommand A ready-to-run install command for the missing packages, using the project's package manager and the CLI workspace's version ranges. Null when no packages are missing.
|
|
85
|
+
* @property {string | null} data.installCommand A ready-to-run install command for the missing packages, using the project's package manager and the CLI workspace's version ranges. Null when no packages are missing, or when several lockfiles leave the package manager undetermined; missingPackages still names the packages.
|
|
86
86
|
*/
|
|
87
87
|
|
|
88
88
|
/**
|
|
@@ -99,14 +99,12 @@ import {resolveIconImports} from './icon-imports.mjs';
|
|
|
99
99
|
// capability instead, required only by a theme that actually uses it:
|
|
100
100
|
// requiring it unconditionally made every theme build — adaptations or not —
|
|
101
101
|
// fail against an older published core. This is a targeted allowance for that
|
|
102
|
-
// one capability, not a general scheme;
|
|
103
|
-
//
|
|
104
|
-
// ships adaptations' predecessor surface.
|
|
102
|
+
// one capability, not a general scheme; `generateOnMediaCSS` exists in every
|
|
103
|
+
// core that ships adaptations' predecessor surface.
|
|
105
104
|
/** @type {any} */ let _defineTheme = null;
|
|
106
105
|
/** @type {any} */ let _generateThemeRulesSplit = null;
|
|
107
106
|
/** @type {any} */ let _generateOnMediaCSS = null;
|
|
108
107
|
/** @type {any} */ let _generateAdaptationCSS = null;
|
|
109
|
-
/** @type {any} */ let _dataTokenDefaults = null;
|
|
110
108
|
/**
|
|
111
109
|
* The whole `@astryxdesign/core/theme` namespace. A theme file handed a
|
|
112
110
|
* wrapped core must still get every export the installed one has, including
|
|
@@ -129,7 +127,6 @@ try {
|
|
|
129
127
|
_generateThemeRulesSplit = coreTheme.generateThemeRulesSplit;
|
|
130
128
|
_generateOnMediaCSS = coreTheme.generateOnMediaCSS;
|
|
131
129
|
_generateAdaptationCSS = coreTheme.generateAdaptationCSS;
|
|
132
|
-
_dataTokenDefaults = coreTheme.dataTokenDefaults;
|
|
133
130
|
try {
|
|
134
131
|
_coreRootModule = await import('@astryxdesign/core');
|
|
135
132
|
} catch {
|
|
@@ -156,7 +153,6 @@ try {
|
|
|
156
153
|
* generateThemeRulesSplit: any,
|
|
157
154
|
* generateOnMediaCSS: any,
|
|
158
155
|
* generateAdaptationCSS: any,
|
|
159
|
-
* dataTokenDefaults: any,
|
|
160
156
|
* }} CoreBindings
|
|
161
157
|
*/
|
|
162
158
|
|
|
@@ -173,7 +169,6 @@ const _cliCore = {
|
|
|
173
169
|
generateThemeRulesSplit: _generateThemeRulesSplit,
|
|
174
170
|
generateOnMediaCSS: _generateOnMediaCSS,
|
|
175
171
|
generateAdaptationCSS: _generateAdaptationCSS,
|
|
176
|
-
dataTokenDefaults: _dataTokenDefaults,
|
|
177
172
|
};
|
|
178
173
|
|
|
179
174
|
/**
|
|
@@ -188,7 +183,6 @@ function setCore(core) {
|
|
|
188
183
|
_generateThemeRulesSplit = core.generateThemeRulesSplit;
|
|
189
184
|
_generateOnMediaCSS = core.generateOnMediaCSS;
|
|
190
185
|
_generateAdaptationCSS = core.generateAdaptationCSS;
|
|
191
|
-
_dataTokenDefaults = core.dataTokenDefaults;
|
|
192
186
|
}
|
|
193
187
|
|
|
194
188
|
/**
|
|
@@ -295,7 +289,6 @@ async function loadProjectCore(cwd) {
|
|
|
295
289
|
generateThemeRulesSplit: themeModule.generateThemeRulesSplit,
|
|
296
290
|
generateOnMediaCSS: themeModule.generateOnMediaCSS,
|
|
297
291
|
generateAdaptationCSS: themeModule.generateAdaptationCSS,
|
|
298
|
-
dataTokenDefaults: themeModule.dataTokenDefaults,
|
|
299
292
|
};
|
|
300
293
|
}
|
|
301
294
|
|
|
@@ -2739,26 +2732,8 @@ async function themeBuildInternal(
|
|
|
2739
2732
|
logger.log(`${source}No overrides found; nothing to build.`);
|
|
2740
2733
|
return null;
|
|
2741
2734
|
}
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
// public `dataTokenDefaults` export, byte for byte as the `<Theme>`
|
|
2745
|
-
// runtime emits it — build-theme.data-tokens.test.mjs is the drift guard.
|
|
2746
|
-
// Placed after the reset block and before the theme block: a layer's order
|
|
2747
|
-
// is fixed by where it is first declared, so emitting it anywhere else in
|
|
2748
|
-
// the file would invert reset < astryx-base < astryx-theme for a consumer
|
|
2749
|
-
// who imports this stylesheet on its own.
|
|
2750
|
-
const baseCss = _dataTokenDefaults
|
|
2751
|
-
? `:root {\n${Object.entries(_dataTokenDefaults)
|
|
2752
|
-
.map(([name, value]) => ` ${name}: ${value};`)
|
|
2753
|
-
.join('\n')}\n}`
|
|
2754
|
-
: '';
|
|
2755
|
-
if (baseCss) {
|
|
2756
|
-
cssParts.splice(
|
|
2757
|
-
prose.length > 0 ? 1 : 0,
|
|
2758
|
-
0,
|
|
2759
|
-
`@layer astryx-base {\n${baseCss}\n}`,
|
|
2760
|
-
);
|
|
2761
|
-
}
|
|
2735
|
+
cssParts.unshift('@layer reset, astryx-base, astryx-theme;');
|
|
2736
|
+
const baseCss = '';
|
|
2762
2737
|
cssPlan = {
|
|
2763
2738
|
base: baseCss,
|
|
2764
2739
|
prose,
|
|
@@ -438,5 +438,5 @@ export function generateFamilyCSS(members) {
|
|
|
438
438
|
parts.push(`@layer astryx-base {\n${base.join('\n\n')}\n}`);
|
|
439
439
|
if (themed.length > 0)
|
|
440
440
|
parts.push(`@layer astryx-theme {\n${themed.join('\n\n')}\n}`);
|
|
441
|
-
return
|
|
441
|
+
return `@layer reset, astryx-base, astryx-theme;\n\n${parts.join('\n\n')}\n`;
|
|
442
442
|
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
import {describe, expect, it} from 'vitest';
|
|
4
|
+
import jscodeshift from 'jscodeshift';
|
|
5
|
+
import transform from '../migrate-field-input-styling.mjs';
|
|
6
|
+
|
|
7
|
+
const j = jscodeshift.withParser('tsx');
|
|
8
|
+
const api = {jscodeshift: j, stats: () => {}, report: () => {}};
|
|
9
|
+
|
|
10
|
+
/** @param {string} source */
|
|
11
|
+
function apply(source) {
|
|
12
|
+
return transform({source, path: 'test.tsx'}, api) ?? source;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
describe('migrate-field-input-styling', () => {
|
|
16
|
+
it('moves control-box members to control*', () => {
|
|
17
|
+
const input = `import {TextInput, Selector, DateInput} from '@astryxdesign/core';
|
|
18
|
+
const a = <TextInput label="Name" xstyle={styles.input} className="name" style={{width: 200}} />;
|
|
19
|
+
const b = <Selector label="Fruit" options={options} xstyle={styles.selector} />;
|
|
20
|
+
const c = <DateInput label="Due" className="due" />;`;
|
|
21
|
+
const output = apply(input);
|
|
22
|
+
expect(output).toContain(
|
|
23
|
+
'<TextInput label="Name" controlXstyle={styles.input} controlClassName="name" controlStyle={{width: 200}} />',
|
|
24
|
+
);
|
|
25
|
+
expect(output).toContain('controlXstyle={styles.selector}');
|
|
26
|
+
expect(output).toContain(
|
|
27
|
+
'<DateInput label="Due" controlClassName="due" />',
|
|
28
|
+
);
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
it('moves Field-root members to container*', () => {
|
|
32
|
+
const input = `import {Typeahead} from '@astryxdesign/core/Typeahead';
|
|
33
|
+
import {RadioList, Slider} from '@astryxdesign/core';
|
|
34
|
+
const a = <Typeahead label="Fruit" xstyle={styles.wide} />;
|
|
35
|
+
const b = <RadioList label="Plan" style={{marginTop: 8}}>{items}</RadioList>;
|
|
36
|
+
const c = <Slider label="Volume" className="volume" value={1} />;`;
|
|
37
|
+
const output = apply(input);
|
|
38
|
+
expect(output).toContain('containerXstyle={styles.wide}');
|
|
39
|
+
expect(output).toContain('containerStyle={{marginTop: 8}}');
|
|
40
|
+
expect(output).toContain('containerClassName="volume"');
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
it('moves a Typeahead inside InputGroup to control*, where its root styling painted the surface', () => {
|
|
44
|
+
const input = `import {InputGroup, Typeahead} from '@astryxdesign/core';
|
|
45
|
+
const a = (
|
|
46
|
+
<InputGroup label="Produce">
|
|
47
|
+
<Typeahead label="Fruit" className="grouped" />
|
|
48
|
+
</InputGroup>
|
|
49
|
+
);
|
|
50
|
+
const b = <Typeahead label="Fruit" className="standalone" />;`;
|
|
51
|
+
const output = apply(input);
|
|
52
|
+
expect(output).toContain('controlClassName="grouped"');
|
|
53
|
+
expect(output).toContain('containerClassName="standalone"');
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
it('follows aliased and namespace imports', () => {
|
|
57
|
+
const input = `import {TextArea as Notes} from '@astryxdesign/core';
|
|
58
|
+
import * as Astryx from '@astryxdesign/core';
|
|
59
|
+
const a = <Notes label="Notes" className="notes" />;
|
|
60
|
+
const b = <Astryx.Tokenizer label="Tags" xstyle={styles.tags} />;`;
|
|
61
|
+
const output = apply(input);
|
|
62
|
+
expect(output).toContain(
|
|
63
|
+
'<Notes label="Notes" controlClassName="notes" />',
|
|
64
|
+
);
|
|
65
|
+
expect(output).toContain(
|
|
66
|
+
'<Astryx.Tokenizer label="Tags" containerXstyle={styles.tags} />',
|
|
67
|
+
);
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
it('leaves unrelated components, other packages, nested JSX, and spreads alone', () => {
|
|
71
|
+
const input = `import {TextInput} from 'some-other-library';
|
|
72
|
+
import {Button, NumberInput} from '@astryxdesign/core';
|
|
73
|
+
const a = <TextInput className="kept" />;
|
|
74
|
+
const b = <Button xstyle={styles.button} />;
|
|
75
|
+
const c = <NumberInput label="Qty" {...rest} startIcon={<Icon className="icon" />} />;`;
|
|
76
|
+
expect(apply(input)).toBe(input);
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
it('leaves tags whose name is shadowed by a local binding', () => {
|
|
80
|
+
const input = `import {TextInput} from '@astryxdesign/core';
|
|
81
|
+
import * as Astryx from '@astryxdesign/core';
|
|
82
|
+
function Row({TextInput}) {
|
|
83
|
+
return <TextInput className="kept" />;
|
|
84
|
+
}
|
|
85
|
+
function Other(Astryx) {
|
|
86
|
+
return <Astryx.Typeahead className="kept" />;
|
|
87
|
+
}`;
|
|
88
|
+
expect(apply(input)).toBe(input);
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
it('marks a conflict with a TODO instead of dropping a value', () => {
|
|
92
|
+
const input = `import {TextInput} from '@astryxdesign/core';
|
|
93
|
+
const a = <TextInput label="Name" className="old" controlClassName="new" />;`;
|
|
94
|
+
const output = apply(input);
|
|
95
|
+
expect(output).toContain('controlClassName="new"');
|
|
96
|
+
expect(output).toContain('className="old"');
|
|
97
|
+
expect(output).toContain('TODO(astryx upgrade)');
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
it('is idempotent', () => {
|
|
101
|
+
const input = `import {TextInput, CheckboxList} from '@astryxdesign/core';
|
|
102
|
+
const a = <TextInput label="Name" className="old" controlClassName="new" />;
|
|
103
|
+
const b = <TextInput label="Email" xstyle={styles.email} />;
|
|
104
|
+
const c = <CheckboxList label="Prefs" style={{margin: 4}}>{items}</CheckboxList>;`;
|
|
105
|
+
const once = apply(input);
|
|
106
|
+
expect(apply(once)).toBe(once);
|
|
107
|
+
});
|
|
108
|
+
});
|