@astryxdesign/cli 0.7.13 → 0.7.14-canary.108f354
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 +18 -18
- package/api/component/__fixtures__/resolutions/modules.txt +1 -1
- package/api/doctor/doctor.mjs +3 -7
- package/api/experimental.d.mts +2 -0
- package/api/experimental.mjs +12 -0
- package/api/icon/_adapter.d.mts +10 -0
- package/api/icon/_adapter.mjs +31 -2
- package/api/icon/_authoring.d.mts +2 -1
- package/api/icon/_authoring.mjs +91 -6
- package/api/icon/_options.mjs +1 -0
- package/api/icon/_records.d.mts +18 -0
- package/api/icon/_records.mjs +26 -0
- package/api/icon/add/add.mjs +7 -1
- package/api/icon/definitions/definitions.d.mts +12 -0
- package/api/icon/definitions/definitions.mjs +83 -0
- package/api/icon/icon.doc.mjs +5 -4
- package/api/icon/icon.mjs +5 -16
- package/api/icon/icon.type.d.mts +29 -2
- package/api/icon/icon.type.mjs +17 -3
- package/api/icon/iconAdd.doc.mjs +1 -1
- package/api/icon/iconMap.doc.mjs +2 -2
- package/api/icon/iconNewSet.doc.mjs +8 -2
- package/api/icon/map/map.mjs +21 -2
- package/api/icon/new-set/new-set.mjs +14 -2
- package/api/icon/search/search.mjs +2 -15
- package/api/icon/use/use.mjs +4 -3
- package/api/integration/validate-integration.mjs +6 -1
- package/api/integration/validate-integration.type.d.mts +12 -0
- package/api/integration/validate-integration.type.mjs +5 -0
- package/api/theme-edit/_adapter.d.mts +116 -0
- package/api/theme-edit/_adapter.mjs +1683 -0
- package/api/theme-edit/_catalog.d.mts +59 -0
- package/api/theme-edit/_catalog.mjs +564 -0
- package/api/theme-edit/_check.d.mts +49 -0
- package/api/theme-edit/_check.mjs +845 -0
- package/api/theme-edit/_color.d.mts +29 -0
- package/api/theme-edit/_color.mjs +300 -0
- package/api/theme-edit/_compiler.d.mts +61 -0
- package/api/theme-edit/_compiler.mjs +522 -0
- package/api/theme-edit/_css-properties.d.mts +10 -0
- package/api/theme-edit/_css-properties.mjs +556 -0
- package/api/theme-edit/_parts.d.mts +111 -0
- package/api/theme-edit/_parts.mjs +409 -0
- package/api/theme-edit/_png.d.mts +40 -0
- package/api/theme-edit/_png.mjs +187 -0
- package/api/theme-edit/_preview.d.mts +121 -0
- package/api/theme-edit/_preview.mjs +720 -0
- package/api/theme-edit/_project.d.mts +83 -0
- package/api/theme-edit/_project.mjs +289 -0
- package/api/theme-edit/_settings.d.mts +222 -0
- package/api/theme-edit/_settings.mjs +861 -0
- package/api/theme-edit/_tables.d.mts +132 -0
- package/api/theme-edit/_tables.mjs +700 -0
- package/api/theme-edit/theme-edit.d.mts +93 -0
- package/api/theme-edit/theme-edit.mjs +145 -0
- package/api/theme-edit/theme-edit.type.d.mts +413 -0
- package/api/theme-edit/theme-edit.type.mjs +233 -0
- package/api/theme-edit/themeEditHow.doc.d.mts +6 -0
- package/api/theme-edit/themeEditHow.doc.mjs +88 -0
- package/api/theme-edit/themeEditNew.doc.d.mts +6 -0
- package/api/theme-edit/themeEditNew.doc.mjs +89 -0
- package/api/theme-edit/themeEditPreviewAdd.doc.d.mts +6 -0
- package/api/theme-edit/themeEditPreviewAdd.doc.mjs +100 -0
- package/api/theme-edit/themeEditPreviewApp.doc.d.mts +6 -0
- package/api/theme-edit/themeEditPreviewApp.doc.mjs +84 -0
- package/api/theme-edit/themeEditPreviewList.doc.d.mts +6 -0
- package/api/theme-edit/themeEditPreviewList.doc.mjs +53 -0
- package/api/theme-edit/themeEditPreviewRemove.doc.d.mts +6 -0
- package/api/theme-edit/themeEditPreviewRemove.doc.mjs +66 -0
- package/api/theme-edit/themeEditSet.doc.d.mts +6 -0
- package/api/theme-edit/themeEditSet.doc.mjs +165 -0
- package/api/theme-edit/themeEditShow.doc.d.mts +6 -0
- package/api/theme-edit/themeEditShow.doc.mjs +86 -0
- package/api/theme-edit/themeEditUndo.doc.d.mts +6 -0
- package/api/theme-edit/themeEditUndo.doc.mjs +124 -0
- package/assets/docs/color.doc.mjs +5 -5
- package/assets/docs/tree/icon-sets.doc.mjs +6 -2
- package/assets/docs/tree/tokens-border.doc.mjs +1 -1
- package/assets/docs/tree/tokens-color.doc.mjs +2 -2
- package/assets/docs/tree/tokens-data.doc.mjs +2 -2
- package/assets/docs/tree/tokens-duration.doc.mjs +1 -1
- package/assets/docs/tree/tokens-ease.doc.mjs +1 -1
- package/assets/docs/tree/tokens-focus.doc.mjs +1 -1
- package/assets/docs/tree/tokens-font-weight.doc.mjs +1 -1
- package/assets/docs/tree/tokens-radius.doc.mjs +1 -1
- package/assets/docs/tree/tokens-shadow.doc.mjs +1 -1
- package/assets/docs/tree/tokens-size.doc.mjs +1 -1
- package/assets/docs/tree/tokens-spacing.doc.mjs +1 -1
- package/assets/docs/tree/tokens-syntax.doc.mjs +1 -1
- package/assets/docs/tree/tokens-text-size.doc.mjs +1 -1
- package/assets/docs/tree/tokens-type-scale.doc.mjs +1 -1
- package/assets/docs/tree/tokens-typography.doc.mjs +1 -1
- package/assets/icons/definitions/bank.doc.mjs +1 -1
- package/assets/icons/definitions/save.doc.mjs +1 -1
- package/assets/preview-app/README.md +6 -0
- package/assets/preview-app/css.d.ts +5 -0
- package/assets/preview-app/gitignore +1 -0
- package/assets/preview-app/next.config.mjs +6 -0
- package/assets/preview-app/package.json +23 -0
- package/assets/preview-app/src/app/globals.css +5 -0
- package/assets/preview-app/src/app/layout.tsx +21 -0
- package/assets/preview-app/src/app/page.tsx +94 -0
- package/assets/preview-app/src/app/providers.tsx +16 -0
- package/assets/preview-app/tsconfig.json +27 -0
- package/assets/templates/blocks/components/InternationalizationProvider/InternationalizationProvider01ShippedLocale.doc.mjs +2 -1
- package/assets/templates/blocks/components/InternationalizationProvider/InternationalizationProvider02Overrides.doc.mjs +2 -1
- package/assets/templates/blocks/components/InternationalizationProvider/InternationalizationProvider03RtlDirection.doc.mjs +2 -1
- package/assets/templates/blocks/components/InternationalizationProvider/InternationalizationProvider04Calendar.doc.mjs +2 -1
- package/assets/templates/blocks/components/Text/useTruncationHookUsage.doc.mjs +14 -0
- package/assets/templates/blocks/components/Text/useTruncationHookUsage.tsx +112 -0
- package/authoring/doctypes/_schema.d.mts +1 -0
- package/authoring/doctypes/_schema.mjs +1 -0
- package/authoring/doctypes/command/command.doc.mjs +7 -0
- package/authoring/doctypes/command/type.ts +3 -0
- package/authoring/doctypes/icon-set/parse.d.mts +7 -0
- package/authoring/doctypes/icon-set/parse.mjs +18 -8
- package/clients/cli/commands/doctor.mjs +33 -3
- package/clients/cli/commands/experimental/icon.mjs +67 -14
- package/clients/cli/commands/experimental/index.mjs +2 -0
- package/clients/cli/commands/experimental/theme.mjs +684 -0
- package/clients/cli/commands/experimental-icon-new-set.doc.mjs +7 -1
- package/clients/cli/commands/experimental-icon.doc.mjs +3 -2
- package/clients/cli/commands/experimental-theme-add.doc.mjs +78 -0
- package/clients/cli/commands/experimental-theme-compile.doc.mjs +97 -0
- package/clients/cli/commands/experimental-theme-editor-how.doc.mjs +84 -0
- package/clients/cli/commands/experimental-theme-editor-new.doc.mjs +66 -0
- package/clients/cli/commands/experimental-theme-editor-set.doc.mjs +121 -0
- package/clients/cli/commands/experimental-theme-editor-show.doc.mjs +66 -0
- package/clients/cli/commands/experimental-theme-editor-undo.doc.mjs +104 -0
- package/clients/cli/commands/experimental-theme-editor.doc.mjs +49 -0
- package/clients/cli/commands/experimental-theme-eject.doc.mjs +71 -0
- package/clients/cli/commands/experimental-theme-list.doc.mjs +49 -0
- package/clients/cli/commands/experimental-theme-palette-generate.doc.mjs +73 -0
- package/clients/cli/commands/experimental-theme-palette.doc.mjs +37 -0
- package/clients/cli/commands/experimental-theme-preview-add.doc.mjs +86 -0
- package/clients/cli/commands/experimental-theme-preview-app.doc.mjs +66 -0
- package/clients/cli/commands/experimental-theme-preview-list.doc.mjs +48 -0
- package/clients/cli/commands/experimental-theme-preview-remove.doc.mjs +59 -0
- package/clients/cli/commands/experimental-theme-preview.doc.mjs +40 -0
- package/clients/cli/commands/experimental-theme-remove.doc.mjs +55 -0
- package/clients/cli/commands/experimental-theme-targets.doc.mjs +61 -0
- package/clients/cli/commands/experimental-theme-template.doc.mjs +61 -0
- package/clients/cli/commands/experimental-theme-use.doc.mjs +55 -0
- package/clients/cli/commands/experimental-theme.doc.mjs +57 -0
- package/clients/cli/commands/experimental.doc.mjs +10 -3
- package/clients/cli/commands/theme.mjs +101 -34
- package/clients/cli/index.mjs +18 -0
- package/clients/cli/lib/define-command.mjs +3 -0
- package/foundation/discovery/icon-set-checks.d.mts +16 -1
- package/foundation/discovery/icon-set-checks.mjs +68 -7
- package/foundation/discovery/icon-set-discovery.d.mts +21 -6
- package/foundation/discovery/icon-set-discovery.mjs +17 -8
- package/foundation/discovery/template-icon-meanings.d.mts +39 -0
- package/foundation/discovery/template-icon-meanings.mjs +95 -0
- package/foundation/discovery/theming-targets.d.mts +6 -0
- package/foundation/discovery/theming-targets.mjs +33 -0
- package/foundation/response/error-codes.d.mts +12 -1
- package/foundation/response/error-codes.doc.mjs +66 -0
- package/foundation/response/error-codes.mjs +55 -0
- package/foundation/response/response-types.doc.mjs +55 -0
- package/foundation/text/template-meanings-line.d.mts +16 -0
- package/foundation/text/template-meanings-line.mjs +37 -0
- package/foundation/xle/browser.d.mts +2 -2
- package/package.json +6 -6
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
// @generated by scripts/sync-api-types.mjs from the JSDoc in api/**/*.mjs.
|
|
2
|
+
// DO NOT EDIT — run `pnpm sync:api-types` to regenerate.
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Items of the theme-building page: each component once per variant, the
|
|
6
|
+
* hand-made extras, overlays open, the sample page, and template pages
|
|
7
|
+
* whose packages the project has.
|
|
8
|
+
* @param {import('./_project.mjs').ThemeProject} project
|
|
9
|
+
* @param {string | undefined} group only this group
|
|
10
|
+
* @returns {{items: import('./_catalog.mjs').CatalogItem[], imports: Record<string, string>, skipped: string[]}}
|
|
11
|
+
*/
|
|
12
|
+
export function showcaseItems(project: import("./_project.mjs").ThemeProject, group: string | undefined): {
|
|
13
|
+
items: import("./_catalog.mjs").CatalogItem[];
|
|
14
|
+
imports: Record<string, string>;
|
|
15
|
+
skipped: string[];
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* How a generated page imports the theme: its built module, its stylesheet,
|
|
19
|
+
* and the stylesheets of open fonts the project has installed.
|
|
20
|
+
* @param {import('./_settings.mjs').Ctx} ctx
|
|
21
|
+
* @param {string} slug
|
|
22
|
+
* @param {import('./_settings.mjs').ThemeData} data
|
|
23
|
+
* @param {string} fromDir the folder of the page
|
|
24
|
+
*/
|
|
25
|
+
export function themeImports(ctx: import("./_settings.mjs").Ctx, slug: string, data: import("./_settings.mjs").ThemeData, fromDir: string): {
|
|
26
|
+
module: string;
|
|
27
|
+
css: string[];
|
|
28
|
+
mode: "system" | "light" | "dark";
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Render the sample app page with the theme to themes/<slug>/preview.html.
|
|
32
|
+
* @param {import('./_settings.mjs').Ctx} ctx
|
|
33
|
+
* @param {string} slug
|
|
34
|
+
* @param {import('./_settings.mjs').ThemeData} data
|
|
35
|
+
* @returns {Promise<string>} the file written, as shown
|
|
36
|
+
*/
|
|
37
|
+
export function renderPreview(ctx: import("./_settings.mjs").Ctx, slug: string, data: import("./_settings.mjs").ThemeData): Promise<string>;
|
|
38
|
+
/**
|
|
39
|
+
* Render the theme-building page with the theme to one HTML file.
|
|
40
|
+
* @param {import('./_settings.mjs').Ctx} ctx
|
|
41
|
+
* @param {string} slug
|
|
42
|
+
* @param {import('./_settings.mjs').ThemeData} data
|
|
43
|
+
* @param {{group?: string, out?: string}} [options]
|
|
44
|
+
* @returns {Promise<{file: string, components: number, skipped: string[]}>}
|
|
45
|
+
*/
|
|
46
|
+
export function renderSheet(ctx: import("./_settings.mjs").Ctx, slug: string, data: import("./_settings.mjs").ThemeData, options?: {
|
|
47
|
+
group?: string;
|
|
48
|
+
out?: string;
|
|
49
|
+
}): Promise<{
|
|
50
|
+
file: string;
|
|
51
|
+
components: number;
|
|
52
|
+
skipped: string[];
|
|
53
|
+
}>;
|
|
54
|
+
/**
|
|
55
|
+
* The source of the preview's components page: every component grouped,
|
|
56
|
+
* each variant side by side, overlays open. Template pages are pages of
|
|
57
|
+
* their own (`preview add --template`), so they are not on it.
|
|
58
|
+
* @param {import('./_project.mjs').ThemeProject} project
|
|
59
|
+
* @returns {{source: string, components: number}}
|
|
60
|
+
*/
|
|
61
|
+
export function componentsPageSource(project: import("./_project.mjs").ThemeProject): {
|
|
62
|
+
source: string;
|
|
63
|
+
components: number;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* The source of the preview's overview page: the sample app page.
|
|
67
|
+
* @param {import('./_project.mjs').ThemeProject} project
|
|
68
|
+
* @returns {string}
|
|
69
|
+
*/
|
|
70
|
+
export function overviewPageSource(project: import("./_project.mjs").ThemeProject): string;
|
|
71
|
+
/**
|
|
72
|
+
* The source of the preview route: an app shell with a side nav item per
|
|
73
|
+
* preview page, a top bar with the theme name and, with a theme, a
|
|
74
|
+
* light/dark/system switch, and the selected page in the content area. It is a normal page of
|
|
75
|
+
* the app, so it keeps the app's layout, global CSS and providers.
|
|
76
|
+
* @param {{pages: Array<{id: string, label: string, file: string}>, theme: {name: string, module: string, css: string[]} | null}} spec
|
|
77
|
+
* `file` relative to the route folder, without extension; no theme: the app's own theme
|
|
78
|
+
* @returns {string}
|
|
79
|
+
*/
|
|
80
|
+
export function previewRouteSource({ pages, theme }: {
|
|
81
|
+
pages: Array<{
|
|
82
|
+
id: string;
|
|
83
|
+
label: string;
|
|
84
|
+
file: string;
|
|
85
|
+
}>;
|
|
86
|
+
theme: {
|
|
87
|
+
name: string;
|
|
88
|
+
module: string;
|
|
89
|
+
css: string[];
|
|
90
|
+
} | null;
|
|
91
|
+
}): string;
|
|
92
|
+
/**
|
|
93
|
+
* A PNG of an HTML file, with a Playwright the project has installed, else
|
|
94
|
+
* a Chrome or Chromium found on the machine. Null with a reason when neither
|
|
95
|
+
* is there.
|
|
96
|
+
* @param {import('./_project.mjs').ThemeProject} project
|
|
97
|
+
* @param {string} html absolute
|
|
98
|
+
* @param {string} png absolute
|
|
99
|
+
* @param {'light' | 'dark'} mode
|
|
100
|
+
* @returns {Promise<{ok: true, file: string} | {ok: false, reason: string}>}
|
|
101
|
+
*/
|
|
102
|
+
export function screenshot(project: import("./_project.mjs").ThemeProject, html: string, png: string, mode: "light" | "dark"): Promise<{
|
|
103
|
+
ok: true;
|
|
104
|
+
file: string;
|
|
105
|
+
} | {
|
|
106
|
+
ok: false;
|
|
107
|
+
reason: string;
|
|
108
|
+
}>;
|
|
109
|
+
/** The groups of the theme-building page, in order. */
|
|
110
|
+
export const SHOWCASE_GROUPS: string[];
|
|
111
|
+
export namespace SHOWCASE_GROUP_HELP {
|
|
112
|
+
let actions: string;
|
|
113
|
+
let inputs: string;
|
|
114
|
+
let selection: string;
|
|
115
|
+
let navigation: string;
|
|
116
|
+
let feedback: string;
|
|
117
|
+
let data: string;
|
|
118
|
+
let containers: string;
|
|
119
|
+
let overlays: string;
|
|
120
|
+
let pages: string;
|
|
121
|
+
}
|