@astryxdesign/cli 0.7.14-canary.108f354 → 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 (67) hide show
  1. package/api/theme-edit/_adapter.d.mts +3 -113
  2. package/api/theme-edit/_adapter.mjs +18 -1655
  3. package/api/theme-edit/_catalog.mjs +16 -0
  4. package/api/theme-edit/_check.mjs +27 -6
  5. package/api/theme-edit/_color.d.mts +3 -10
  6. package/api/theme-edit/_color.mjs +146 -69
  7. package/api/theme-edit/_compiler.d.mts +11 -9
  8. package/api/theme-edit/_compiler.mjs +15 -46
  9. package/api/theme-edit/_context.d.mts +98 -0
  10. package/api/theme-edit/_context.mjs +200 -0
  11. package/api/theme-edit/_edit.d.mts +44 -0
  12. package/api/theme-edit/_edit.mjs +483 -0
  13. package/api/theme-edit/_how.d.mts +25 -0
  14. package/api/theme-edit/_how.mjs +390 -0
  15. package/api/theme-edit/_palette.d.mts +154 -0
  16. package/api/theme-edit/_palette.mjs +672 -0
  17. package/api/theme-edit/_preview-app.d.mts +66 -0
  18. package/api/theme-edit/_preview-app.mjs +817 -0
  19. package/api/theme-edit/_preview.d.mts +3 -1
  20. package/api/theme-edit/_preview.mjs +142 -14
  21. package/api/theme-edit/_project.d.mts +18 -0
  22. package/api/theme-edit/_project.mjs +19 -1
  23. package/api/theme-edit/_settings.d.mts +1 -0
  24. package/api/theme-edit/_settings.mjs +81 -38
  25. package/api/theme-edit/_tables.d.mts +1 -9
  26. package/api/theme-edit/_tables.mjs +40 -16
  27. package/api/theme-edit/how/how.d.mts +17 -0
  28. package/api/theme-edit/how/how.mjs +28 -0
  29. package/api/theme-edit/new/new.d.mts +11 -0
  30. package/api/theme-edit/new/new.mjs +22 -0
  31. package/api/theme-edit/preview-add/preview-add.d.mts +14 -0
  32. package/api/theme-edit/preview-add/preview-add.mjs +25 -0
  33. package/api/theme-edit/preview-app/preview-app.d.mts +13 -0
  34. package/api/theme-edit/preview-app/preview-app.mjs +24 -0
  35. package/api/theme-edit/preview-list/preview-list.d.mts +10 -0
  36. package/api/theme-edit/preview-list/preview-list.mjs +21 -0
  37. package/api/theme-edit/preview-remove/preview-remove.d.mts +12 -0
  38. package/api/theme-edit/preview-remove/preview-remove.mjs +23 -0
  39. package/api/theme-edit/set/set.d.mts +13 -0
  40. package/api/theme-edit/set/set.mjs +24 -0
  41. package/api/theme-edit/show/show.d.mts +12 -0
  42. package/api/theme-edit/show/show.mjs +23 -0
  43. package/api/theme-edit/theme-edit.d.mts +9 -90
  44. package/api/theme-edit/theme-edit.mjs +9 -118
  45. package/api/theme-edit/theme-edit.type.d.mts +41 -1
  46. package/api/theme-edit/theme-edit.type.mjs +15 -2
  47. package/api/theme-edit/themeEditHow.doc.mjs +1 -1
  48. package/api/theme-edit/themeEditPreviewAdd.doc.mjs +10 -2
  49. package/api/theme-edit/themeEditSet.doc.mjs +2 -2
  50. package/api/theme-edit/themeEditShow.doc.mjs +1 -1
  51. package/api/theme-edit/themeEditUndo.doc.mjs +1 -1
  52. package/api/theme-edit/undo/undo.d.mts +13 -0
  53. package/api/theme-edit/undo/undo.mjs +24 -0
  54. package/assets/docs/tree/calendar-systems.doc.mjs +12 -11
  55. package/assets/docs/tree/calendars.doc.mjs +2 -1
  56. package/assets/docs/tree/i18n-calendars.doc.mjs +1 -1
  57. package/assets/preview-app/README.md +1 -1
  58. package/assets/templates/pages/theme-showcase/page.tsx +92 -38
  59. package/clients/cli/commands/experimental/theme.mjs +158 -196
  60. package/clients/cli/commands/experimental-theme-editor-how.doc.mjs +5 -1
  61. package/clients/cli/commands/experimental-theme-editor-set.doc.mjs +10 -2
  62. package/clients/cli/commands/experimental-theme-editor-show.doc.mjs +1 -1
  63. package/clients/cli/commands/experimental-theme-editor-undo.doc.mjs +1 -1
  64. package/clients/cli/commands/experimental-theme-editor.doc.mjs +1 -1
  65. package/clients/cli/commands/experimental-theme-preview-add.doc.mjs +1 -1
  66. package/foundation/response/response-types.doc.mjs +2 -2
  67. package/package.json +6 -6
@@ -1,116 +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
- * Every setting of a theme, key resolved values, problems it caused, the
24
- * sample page and the theme-building page with every component.
25
- * @experimental
26
- * @param {string} theme
27
- * @param {import('./theme-edit.type.mjs').ThemeEditShowOptions} [options]
28
- * @returns {Promise<import('./theme-edit.type.mjs').ThemeEditShowResponse>}
29
- */
30
- export function themeEditShow(theme: string, options?: import("./theme-edit.type.mjs").ThemeEditShowOptions): Promise<import("./theme-edit.type.mjs").ThemeEditShowResponse>;
31
- /**
32
- * Put the theme back as it was before its last change. With `thing`, remove
33
- * that one setting instead, wherever it is in the settings: it goes back to
34
- * the base theme's value.
35
- * @experimental
36
- * @param {string} theme
37
- * @param {import('./theme-edit.type.mjs').ThemeEditUndoOptions} [options]
38
- * @returns {Promise<import('./theme-edit.type.mjs').ThemeEditUndoResponse | import('./theme-edit.type.mjs').ThemeEditChangeResponse>}
39
- */
40
- export function themeEditUndo(theme: string, options?: import("./theme-edit.type.mjs").ThemeEditUndoOptions): Promise<import("./theme-edit.type.mjs").ThemeEditUndoResponse | import("./theme-edit.type.mjs").ThemeEditChangeResponse>;
41
- /**
42
- * Add pages to the in-app theme preview, and write the preview route the
43
- * first time. With a description, the build ranking picks the template
44
- * pages that fit it best (`top` of them); `template` names one instead.
45
- * With neither, the default pages: the sample app page and every component.
46
- * Every check runs before the first write, so a refusal changes nothing.
47
- * @experimental
48
- * @param {string} [description]
49
- * @param {import('./theme-edit.type.mjs').ThemeEditPreviewAddOptions} [options]
50
- * @returns {Promise<import('./theme-edit.type.mjs').ThemeEditPreviewAddResponse>}
51
- */
52
- export function themeEditPreviewAdd(description?: string, options?: import("./theme-edit.type.mjs").ThemeEditPreviewAddOptions): Promise<import("./theme-edit.type.mjs").ThemeEditPreviewAddResponse>;
53
- /**
54
- * Make a new starter app (Next.js app router, Core and the neutral theme,
55
- * with the Astryx packages pinned to this CLI's release) in `dir`, with the
56
- * theme preview route and its default pages inside. With `theme`, the theme
57
- * folder is copied into the app and the pages wear it. No install runs.
58
- * Every check runs before the first write, so a refusal changes nothing.
59
- * @experimental
60
- * @param {string} dir
61
- * @param {import('./theme-edit.type.mjs').ThemeEditPreviewAppOptions} [options]
62
- * @returns {Promise<import('./theme-edit.type.mjs').ThemeEditPreviewAppResponse>}
63
- */
64
- export function themeEditPreviewApp(dir: string, options?: import("./theme-edit.type.mjs").ThemeEditPreviewAppOptions): Promise<import("./theme-edit.type.mjs").ThemeEditPreviewAppResponse>;
65
- /**
66
- * The pages of the in-app theme preview. With no preview, and with no
67
- * routes folder for one, the list is empty.
68
- * @experimental
69
- * @param {import('./theme-edit.type.mjs').ThemeEditPreviewListOptions} [options]
70
- * @returns {Promise<import('./theme-edit.type.mjs').ThemeEditPreviewListResponse>}
71
- */
72
- export function themeEditPreviewList(options?: import("./theme-edit.type.mjs").ThemeEditPreviewListOptions): Promise<import("./theme-edit.type.mjs").ThemeEditPreviewListResponse>;
73
- /**
74
- * Remove one page from the in-app theme preview, or with no page the whole
75
- * preview: only the files it wrote are deleted, and only inside the route
76
- * folder.
77
- * @experimental
78
- * @param {string} [page]
79
- * @param {import('./theme-edit.type.mjs').ThemeEditPreviewListOptions} [options]
80
- * @returns {Promise<import('./theme-edit.type.mjs').ThemeEditPreviewRemoveResponse>}
81
- */
82
- export function themeEditPreviewRemove(page?: string, options?: import("./theme-edit.type.mjs").ThemeEditPreviewListOptions): Promise<import("./theme-edit.type.mjs").ThemeEditPreviewRemoveResponse>;
83
- /**
84
- * Explain anything a theme change can name, or answer a question about one:
85
- * a part (what it reads for each aspect, its variants, states and the parts
86
- * inside it), a family (its members), a setting (a dial's rungs, a token's
87
- * type and readers, a CSS property), an aspect (colors, text, corners...: the
88
- * whole-theme tokens and dial), a plain-words question (exact commands), a
89
- * PNG picture (its main colors, or the color at points), or with `list` a
90
- * list of dials, tokens, parts, families or CSS properties.
91
- * @experimental
92
- * @param {string} subject a part, family, setting, aspect, question, or PNG file; with `list`, a filter
93
- * @param {import('./theme-edit.type.mjs').ThemeEditHowOptions} [options]
94
- * @returns {Promise<import('./theme-edit.type.mjs').ThemeEditHowResponse>}
95
- */
96
- export function themeEditHow(subject: string, options?: import("./theme-edit.type.mjs").ThemeEditHowOptions): Promise<import("./theme-edit.type.mjs").ThemeEditHowResponse>;
97
- /**
98
- * Read `--at` points: "x,y;x,y", "x,y x,y", repeated, or a flat "a,b,c,d".
99
- * @param {string[]} at
100
- */
101
- export function parsePoints(at: string[]): {
102
- x: number;
103
- y: number;
104
- }[];
105
- export type ChangeOptions = import("./theme-edit.type.mjs").ThemeEditChangeOptions;
106
- export type PreviewPage = {
107
- id: string;
108
- label: string;
109
- file: string;
110
- };
111
- export type PreviewData = {
112
- version: 1;
113
- theme: string | null;
114
- pages: PreviewPage[];
115
- files: string[];
116
- };
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";