@astryxdesign/cli 0.7.14-canary.d08ce65 → 0.7.14-canary.g05da5aa
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/api/experimental.d.mts +1 -1
- package/api/experimental.mjs +5 -3
- package/api/theme-edit/_adapter.d.mts +3 -93
- package/api/theme-edit/_adapter.mjs +27 -1020
- package/api/theme-edit/_catalog.mjs +16 -0
- package/api/theme-edit/_check.d.mts +2 -2
- package/api/theme-edit/_check.mjs +49 -25
- package/api/theme-edit/_color.d.mts +3 -16
- package/api/theme-edit/_color.mjs +325 -73
- package/api/theme-edit/_compiler.d.mts +11 -9
- package/api/theme-edit/_compiler.mjs +20 -51
- package/api/theme-edit/_context.d.mts +98 -0
- package/api/theme-edit/_context.mjs +200 -0
- package/api/theme-edit/_edit.d.mts +44 -0
- package/api/theme-edit/_edit.mjs +483 -0
- package/api/theme-edit/_how.d.mts +25 -0
- package/api/theme-edit/_how.mjs +390 -0
- package/api/theme-edit/_palette.d.mts +154 -0
- package/api/theme-edit/_palette.mjs +672 -0
- package/api/theme-edit/_parts.mjs +1 -1
- package/api/theme-edit/_png.mjs +1 -1
- package/api/theme-edit/_preview-app.d.mts +66 -0
- package/api/theme-edit/_preview-app.mjs +817 -0
- package/api/theme-edit/_preview.d.mts +49 -12
- package/api/theme-edit/_preview.mjs +382 -98
- package/api/theme-edit/_project.d.mts +18 -0
- package/api/theme-edit/_project.mjs +19 -1
- package/api/theme-edit/_settings.d.mts +1 -0
- package/api/theme-edit/_settings.mjs +98 -42
- package/api/theme-edit/_tables.d.mts +5 -11
- package/api/theme-edit/_tables.mjs +46 -19
- package/api/theme-edit/how/how.d.mts +17 -0
- package/api/theme-edit/how/how.mjs +28 -0
- package/api/theme-edit/new/new.d.mts +11 -0
- package/api/theme-edit/new/new.mjs +22 -0
- package/api/theme-edit/preview-add/preview-add.d.mts +14 -0
- package/api/theme-edit/preview-add/preview-add.mjs +25 -0
- package/api/theme-edit/preview-app/preview-app.d.mts +13 -0
- package/api/theme-edit/preview-app/preview-app.mjs +24 -0
- package/api/theme-edit/preview-list/preview-list.d.mts +10 -0
- package/api/theme-edit/preview-list/preview-list.mjs +21 -0
- package/api/theme-edit/preview-remove/preview-remove.d.mts +12 -0
- package/api/theme-edit/preview-remove/preview-remove.mjs +23 -0
- package/api/theme-edit/set/set.d.mts +13 -0
- package/api/theme-edit/set/set.mjs +24 -0
- package/api/theme-edit/show/show.d.mts +12 -0
- package/api/theme-edit/show/show.mjs +23 -0
- package/api/theme-edit/theme-edit.d.mts +9 -86
- package/api/theme-edit/theme-edit.mjs +17 -100
- package/api/theme-edit/theme-edit.type.d.mts +207 -24
- package/api/theme-edit/theme-edit.type.mjs +118 -27
- package/api/theme-edit/{themeEditReset.doc.d.mts → themeEditHow.doc.d.mts} +1 -1
- package/api/theme-edit/{themeEditExplain.doc.mjs → themeEditHow.doc.mjs} +10 -10
- package/api/theme-edit/themeEditNew.doc.d.mts +1 -1
- package/api/theme-edit/themeEditNew.doc.mjs +3 -3
- package/api/theme-edit/{themeEditExplain.doc.d.mts → themeEditPreviewAdd.doc.d.mts} +1 -1
- package/api/theme-edit/themeEditPreviewAdd.doc.mjs +108 -0
- package/api/theme-edit/{themeEditPreview.doc.d.mts → themeEditPreviewApp.doc.d.mts} +1 -1
- 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 +1 -1
- package/api/theme-edit/themeEditSet.doc.mjs +4 -4
- package/api/theme-edit/themeEditShow.doc.d.mts +1 -1
- package/api/theme-edit/themeEditShow.doc.mjs +3 -3
- package/api/theme-edit/themeEditUndo.doc.d.mts +1 -1
- package/api/theme-edit/themeEditUndo.doc.mjs +48 -4
- package/api/theme-edit/undo/undo.d.mts +13 -0
- package/api/theme-edit/undo/undo.mjs +24 -0
- package/assets/docs/tree/calendar-systems.doc.mjs +12 -11
- package/assets/docs/tree/calendars.doc.mjs +2 -1
- package/assets/docs/tree/i18n-calendars.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/pages/theme-showcase/page.tsx +92 -38
- package/clients/cli/commands/experimental/theme.mjs +352 -248
- package/clients/cli/commands/experimental-theme-editor-how.doc.mjs +88 -0
- package/clients/cli/commands/{experimental-theme-new.doc.mjs → experimental-theme-editor-new.doc.mjs} +8 -8
- package/clients/cli/commands/experimental-theme-editor-set.doc.mjs +129 -0
- package/clients/cli/commands/{experimental-theme-show.doc.mjs → experimental-theme-editor-show.doc.mjs} +8 -8
- 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-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 +14 -50
- package/clients/cli/commands/experimental-theme.doc.mjs +9 -18
- package/clients/cli/commands/experimental.doc.mjs +1 -1
- package/clients/cli/index.mjs +9 -7
- package/foundation/response/response-types.doc.mjs +24 -12
- package/package.json +6 -6
- package/api/theme-edit/themeEditPreview.doc.mjs +0 -96
- package/api/theme-edit/themeEditReset.doc.mjs +0 -161
- package/clients/cli/commands/experimental-theme-explain.doc.mjs +0 -84
- package/clients/cli/commands/experimental-theme-reset.doc.mjs +0 -103
- package/clients/cli/commands/experimental-theme-set.doc.mjs +0 -121
- package/clients/cli/commands/experimental-theme-undo.doc.mjs +0 -55
package/api/experimental.d.mts
CHANGED
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
export { render } from "./render/render.mjs";
|
|
5
5
|
export * from "./render/render.type.mjs";
|
|
6
6
|
export * from "./theme-edit/theme-edit.type.mjs";
|
|
7
|
-
export { themeEditNew, themeEditSet,
|
|
7
|
+
export { themeEditNew, themeEditSet, themeEditShow, themeEditUndo, themeEditPreviewAdd, themeEditPreviewApp, themeEditPreviewList, themeEditPreviewRemove, themeEditHow } from "./theme-edit/theme-edit.mjs";
|
package/api/experimental.mjs
CHANGED
|
@@ -13,11 +13,13 @@ export {render} from './render/render.mjs';
|
|
|
13
13
|
export {
|
|
14
14
|
themeEditNew,
|
|
15
15
|
themeEditSet,
|
|
16
|
-
themeEditReset,
|
|
17
16
|
themeEditShow,
|
|
18
17
|
themeEditUndo,
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
themeEditPreviewAdd,
|
|
19
|
+
themeEditPreviewApp,
|
|
20
|
+
themeEditPreviewList,
|
|
21
|
+
themeEditPreviewRemove,
|
|
22
|
+
themeEditHow,
|
|
21
23
|
} from './theme-edit/theme-edit.mjs';
|
|
22
24
|
|
|
23
25
|
// Types (runtime no-ops; tsc carries them into api/experimental.d.mts).
|
|
@@ -1,96 +1,6 @@
|
|
|
1
1
|
// @generated by scripts/sync-api-types.mjs from the JSDoc in api/**/*.mjs.
|
|
2
2
|
// DO NOT EDIT — run `pnpm sync:api-types` to regenerate.
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* @param {string} name
|
|
8
|
-
* @param {import('./theme-edit.type.mjs').ThemeEditNewOptions} [options]
|
|
9
|
-
* @returns {Promise<import('./theme-edit.type.mjs').ThemeEditNewResponse>}
|
|
10
|
-
*/
|
|
11
|
-
export function themeEditNew(name: string, options?: import("./theme-edit.type.mjs").ThemeEditNewOptions): Promise<import("./theme-edit.type.mjs").ThemeEditNewResponse>;
|
|
12
|
-
/**
|
|
13
|
-
* Change one thing in a theme: checked, built, previewed.
|
|
14
|
-
* @experimental
|
|
15
|
-
* @param {string} theme
|
|
16
|
-
* @param {string} thing a dial, a token, or a CSS property
|
|
17
|
-
* @param {string} value
|
|
18
|
-
* @param {ChangeOptions} [options]
|
|
19
|
-
* @returns {Promise<import('./theme-edit.type.mjs').ThemeEditChangeResponse>}
|
|
20
|
-
*/
|
|
21
|
-
export function themeEditSet(theme: string, thing: string, value: string, options?: ChangeOptions): Promise<import("./theme-edit.type.mjs").ThemeEditChangeResponse>;
|
|
22
|
-
/**
|
|
23
|
-
* Return one setting to the base theme's value: the setting is removed,
|
|
24
|
-
* and the theme is rebuilt and previewed.
|
|
25
|
-
* @experimental
|
|
26
|
-
* @param {string} theme
|
|
27
|
-
* @param {string} thing
|
|
28
|
-
* @param {ChangeOptions & {value?: string}} [options] `value` names which half of
|
|
29
|
-
* the `headings` dial to reset (`weight` or `tracking`)
|
|
30
|
-
* @returns {Promise<import('./theme-edit.type.mjs').ThemeEditChangeResponse>}
|
|
31
|
-
*/
|
|
32
|
-
export function themeEditReset(theme: string, thing: string, options?: ChangeOptions & {
|
|
33
|
-
value?: string;
|
|
34
|
-
}): Promise<import("./theme-edit.type.mjs").ThemeEditChangeResponse>;
|
|
35
|
-
/**
|
|
36
|
-
* Every setting of a theme, key resolved values, problems it caused, the
|
|
37
|
-
* sample page and the theme-building page with every component.
|
|
38
|
-
* @experimental
|
|
39
|
-
* @param {string} theme
|
|
40
|
-
* @param {{cwd?: string, png?: boolean, group?: string}} [options]
|
|
41
|
-
* @returns {Promise<import('./theme-edit.type.mjs').ThemeEditShowResponse>}
|
|
42
|
-
*/
|
|
43
|
-
export function themeEditShow(theme: string, options?: {
|
|
44
|
-
cwd?: string;
|
|
45
|
-
png?: boolean;
|
|
46
|
-
group?: string;
|
|
47
|
-
}): Promise<import("./theme-edit.type.mjs").ThemeEditShowResponse>;
|
|
48
|
-
/**
|
|
49
|
-
* Put the theme back as it was before its last change.
|
|
50
|
-
* @experimental
|
|
51
|
-
* @param {string} theme
|
|
52
|
-
* @param {{cwd?: string, png?: boolean}} [options]
|
|
53
|
-
* @returns {Promise<import('./theme-edit.type.mjs').ThemeEditUndoResponse>}
|
|
54
|
-
*/
|
|
55
|
-
export function themeEditUndo(theme: string, options?: {
|
|
56
|
-
cwd?: string;
|
|
57
|
-
png?: boolean;
|
|
58
|
-
}): Promise<import("./theme-edit.type.mjs").ThemeEditUndoResponse>;
|
|
59
|
-
/**
|
|
60
|
-
* The theme-building page: every component grouped, each variant side by
|
|
61
|
-
* side, overlays open, and full template pages. Rendered to one HTML file,
|
|
62
|
-
* or with `write` written into the app as a page module.
|
|
63
|
-
* @experimental
|
|
64
|
-
* @param {string} theme
|
|
65
|
-
* @param {{cwd?: string, write?: string, group?: string, png?: boolean}} [options]
|
|
66
|
-
* @returns {Promise<import('./theme-edit.type.mjs').ThemeEditPreviewResponse>}
|
|
67
|
-
*/
|
|
68
|
-
export function themeEditPreview(theme: string, options?: {
|
|
69
|
-
cwd?: string;
|
|
70
|
-
write?: string;
|
|
71
|
-
group?: string;
|
|
72
|
-
png?: boolean;
|
|
73
|
-
}): Promise<import("./theme-edit.type.mjs").ThemeEditPreviewResponse>;
|
|
74
|
-
/**
|
|
75
|
-
* Explain anything a theme change can name, or answer a question about one:
|
|
76
|
-
* a part (what it reads for each aspect, its variants, states and the parts
|
|
77
|
-
* inside it), a family (its members), a setting (a dial's rungs, a token's
|
|
78
|
-
* type and readers, a CSS property), an aspect (colors, text, corners...: the
|
|
79
|
-
* whole-theme tokens and dial), a plain-words question (exact commands), a
|
|
80
|
-
* PNG picture (its main colors, or the color at points), or with `list` a
|
|
81
|
-
* list of dials, tokens, parts, families or CSS properties.
|
|
82
|
-
* @experimental
|
|
83
|
-
* @param {string} subject a part, family, setting, aspect, question, or PNG file; with `list`, a filter
|
|
84
|
-
* @param {import('./theme-edit.type.mjs').ThemeEditExplainOptions} [options]
|
|
85
|
-
* @returns {Promise<import('./theme-edit.type.mjs').ThemeEditExplainResponse>}
|
|
86
|
-
*/
|
|
87
|
-
export function themeEditExplain(subject: string, options?: import("./theme-edit.type.mjs").ThemeEditExplainOptions): Promise<import("./theme-edit.type.mjs").ThemeEditExplainResponse>;
|
|
88
|
-
/**
|
|
89
|
-
* Read `--at` points: "x,y;x,y", "x,y x,y", repeated, or a flat "a,b,c,d".
|
|
90
|
-
* @param {string[]} at
|
|
91
|
-
*/
|
|
92
|
-
export function parsePoints(at: string[]): {
|
|
93
|
-
x: number;
|
|
94
|
-
y: number;
|
|
95
|
-
}[];
|
|
96
|
-
export type ChangeOptions = import("./theme-edit.type.mjs").ThemeEditChangeOptions;
|
|
4
|
+
export { themeEditNew, themeEditSet, themeEditUndo, themeEditShow } from "./_edit.mjs";
|
|
5
|
+
export { themeEditPreviewAdd, themeEditPreviewApp, themeEditPreviewList, themeEditPreviewRemove } from "./_preview-app.mjs";
|
|
6
|
+
export { themeEditHow, parsePoints } from "./_how.mjs";
|