@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.
Files changed (108) hide show
  1. package/api/experimental.d.mts +1 -1
  2. package/api/experimental.mjs +5 -3
  3. package/api/theme-edit/_adapter.d.mts +3 -93
  4. package/api/theme-edit/_adapter.mjs +27 -1020
  5. package/api/theme-edit/_catalog.mjs +16 -0
  6. package/api/theme-edit/_check.d.mts +2 -2
  7. package/api/theme-edit/_check.mjs +49 -25
  8. package/api/theme-edit/_color.d.mts +3 -16
  9. package/api/theme-edit/_color.mjs +325 -73
  10. package/api/theme-edit/_compiler.d.mts +11 -9
  11. package/api/theme-edit/_compiler.mjs +20 -51
  12. package/api/theme-edit/_context.d.mts +98 -0
  13. package/api/theme-edit/_context.mjs +200 -0
  14. package/api/theme-edit/_edit.d.mts +44 -0
  15. package/api/theme-edit/_edit.mjs +483 -0
  16. package/api/theme-edit/_how.d.mts +25 -0
  17. package/api/theme-edit/_how.mjs +390 -0
  18. package/api/theme-edit/_palette.d.mts +154 -0
  19. package/api/theme-edit/_palette.mjs +672 -0
  20. package/api/theme-edit/_parts.mjs +1 -1
  21. package/api/theme-edit/_png.mjs +1 -1
  22. package/api/theme-edit/_preview-app.d.mts +66 -0
  23. package/api/theme-edit/_preview-app.mjs +817 -0
  24. package/api/theme-edit/_preview.d.mts +49 -12
  25. package/api/theme-edit/_preview.mjs +382 -98
  26. package/api/theme-edit/_project.d.mts +18 -0
  27. package/api/theme-edit/_project.mjs +19 -1
  28. package/api/theme-edit/_settings.d.mts +1 -0
  29. package/api/theme-edit/_settings.mjs +98 -42
  30. package/api/theme-edit/_tables.d.mts +5 -11
  31. package/api/theme-edit/_tables.mjs +46 -19
  32. package/api/theme-edit/how/how.d.mts +17 -0
  33. package/api/theme-edit/how/how.mjs +28 -0
  34. package/api/theme-edit/new/new.d.mts +11 -0
  35. package/api/theme-edit/new/new.mjs +22 -0
  36. package/api/theme-edit/preview-add/preview-add.d.mts +14 -0
  37. package/api/theme-edit/preview-add/preview-add.mjs +25 -0
  38. package/api/theme-edit/preview-app/preview-app.d.mts +13 -0
  39. package/api/theme-edit/preview-app/preview-app.mjs +24 -0
  40. package/api/theme-edit/preview-list/preview-list.d.mts +10 -0
  41. package/api/theme-edit/preview-list/preview-list.mjs +21 -0
  42. package/api/theme-edit/preview-remove/preview-remove.d.mts +12 -0
  43. package/api/theme-edit/preview-remove/preview-remove.mjs +23 -0
  44. package/api/theme-edit/set/set.d.mts +13 -0
  45. package/api/theme-edit/set/set.mjs +24 -0
  46. package/api/theme-edit/show/show.d.mts +12 -0
  47. package/api/theme-edit/show/show.mjs +23 -0
  48. package/api/theme-edit/theme-edit.d.mts +9 -86
  49. package/api/theme-edit/theme-edit.mjs +17 -100
  50. package/api/theme-edit/theme-edit.type.d.mts +207 -24
  51. package/api/theme-edit/theme-edit.type.mjs +118 -27
  52. package/api/theme-edit/{themeEditReset.doc.d.mts → themeEditHow.doc.d.mts} +1 -1
  53. package/api/theme-edit/{themeEditExplain.doc.mjs → themeEditHow.doc.mjs} +10 -10
  54. package/api/theme-edit/themeEditNew.doc.d.mts +1 -1
  55. package/api/theme-edit/themeEditNew.doc.mjs +3 -3
  56. package/api/theme-edit/{themeEditExplain.doc.d.mts → themeEditPreviewAdd.doc.d.mts} +1 -1
  57. package/api/theme-edit/themeEditPreviewAdd.doc.mjs +108 -0
  58. package/api/theme-edit/{themeEditPreview.doc.d.mts → themeEditPreviewApp.doc.d.mts} +1 -1
  59. package/api/theme-edit/themeEditPreviewApp.doc.mjs +84 -0
  60. package/api/theme-edit/themeEditPreviewList.doc.d.mts +6 -0
  61. package/api/theme-edit/themeEditPreviewList.doc.mjs +53 -0
  62. package/api/theme-edit/themeEditPreviewRemove.doc.d.mts +6 -0
  63. package/api/theme-edit/themeEditPreviewRemove.doc.mjs +66 -0
  64. package/api/theme-edit/themeEditSet.doc.d.mts +1 -1
  65. package/api/theme-edit/themeEditSet.doc.mjs +4 -4
  66. package/api/theme-edit/themeEditShow.doc.d.mts +1 -1
  67. package/api/theme-edit/themeEditShow.doc.mjs +3 -3
  68. package/api/theme-edit/themeEditUndo.doc.d.mts +1 -1
  69. package/api/theme-edit/themeEditUndo.doc.mjs +48 -4
  70. package/api/theme-edit/undo/undo.d.mts +13 -0
  71. package/api/theme-edit/undo/undo.mjs +24 -0
  72. package/assets/docs/tree/calendar-systems.doc.mjs +12 -11
  73. package/assets/docs/tree/calendars.doc.mjs +2 -1
  74. package/assets/docs/tree/i18n-calendars.doc.mjs +1 -1
  75. package/assets/preview-app/README.md +6 -0
  76. package/assets/preview-app/css.d.ts +5 -0
  77. package/assets/preview-app/gitignore +1 -0
  78. package/assets/preview-app/next.config.mjs +6 -0
  79. package/assets/preview-app/package.json +23 -0
  80. package/assets/preview-app/src/app/globals.css +5 -0
  81. package/assets/preview-app/src/app/layout.tsx +21 -0
  82. package/assets/preview-app/src/app/page.tsx +94 -0
  83. package/assets/preview-app/src/app/providers.tsx +16 -0
  84. package/assets/preview-app/tsconfig.json +27 -0
  85. package/assets/templates/pages/theme-showcase/page.tsx +92 -38
  86. package/clients/cli/commands/experimental/theme.mjs +352 -248
  87. package/clients/cli/commands/experimental-theme-editor-how.doc.mjs +88 -0
  88. package/clients/cli/commands/{experimental-theme-new.doc.mjs → experimental-theme-editor-new.doc.mjs} +8 -8
  89. package/clients/cli/commands/experimental-theme-editor-set.doc.mjs +129 -0
  90. package/clients/cli/commands/{experimental-theme-show.doc.mjs → experimental-theme-editor-show.doc.mjs} +8 -8
  91. package/clients/cli/commands/experimental-theme-editor-undo.doc.mjs +104 -0
  92. package/clients/cli/commands/experimental-theme-editor.doc.mjs +49 -0
  93. package/clients/cli/commands/experimental-theme-preview-add.doc.mjs +86 -0
  94. package/clients/cli/commands/experimental-theme-preview-app.doc.mjs +66 -0
  95. package/clients/cli/commands/experimental-theme-preview-list.doc.mjs +48 -0
  96. package/clients/cli/commands/experimental-theme-preview-remove.doc.mjs +59 -0
  97. package/clients/cli/commands/experimental-theme-preview.doc.mjs +14 -50
  98. package/clients/cli/commands/experimental-theme.doc.mjs +9 -18
  99. package/clients/cli/commands/experimental.doc.mjs +1 -1
  100. package/clients/cli/index.mjs +9 -7
  101. package/foundation/response/response-types.doc.mjs +24 -12
  102. package/package.json +6 -6
  103. package/api/theme-edit/themeEditPreview.doc.mjs +0 -96
  104. package/api/theme-edit/themeEditReset.doc.mjs +0 -161
  105. package/clients/cli/commands/experimental-theme-explain.doc.mjs +0 -84
  106. package/clients/cli/commands/experimental-theme-reset.doc.mjs +0 -103
  107. package/clients/cli/commands/experimental-theme-set.doc.mjs +0 -121
  108. package/clients/cli/commands/experimental-theme-undo.doc.mjs +0 -55
@@ -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, themeEditReset, themeEditShow, themeEditUndo, themeEditPreview, themeEditExplain } from "./theme-edit/theme-edit.mjs";
7
+ export { themeEditNew, themeEditSet, themeEditShow, themeEditUndo, themeEditPreviewAdd, themeEditPreviewApp, themeEditPreviewList, themeEditPreviewRemove, themeEditHow } from "./theme-edit/theme-edit.mjs";
@@ -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
- themeEditPreview,
20
- themeEditExplain,
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
- * Start a theme in themes/<name>/, optionally on a built-in theme.
6
- * @experimental
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";