@astryxdesign/cli 0.7.15-canary.gf890983 → 0.7.15
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/CHANGELOG.md +353 -3
- package/api/doctor/_adapter.d.mts +2 -1
- package/api/doctor/_adapter.mjs +6 -1
- package/api/doctor/doctor.mjs +2 -2
- package/api/doctor/theme-checks.mjs +56 -21
- package/api/integration/add-helpers.mjs +5 -0
- package/api/integration/add-theme.mjs +15 -110
- package/api/theme/_adapter.d.mts +37 -5
- package/api/theme/_adapter.mjs +363 -50
- package/api/theme/_fork.d.mts +90 -0
- package/api/theme/_fork.mjs +246 -0
- package/api/theme/build/build.d.mts +25 -1
- package/api/theme/build/build.mjs +352 -41
- package/api/theme/eject/eject.mjs +36 -15
- package/api/theme/list/list.mjs +3 -6
- package/api/theme/palette/generate/generator.d.mts +13 -0
- package/api/theme/palette/generate/generator.mjs +32 -2
- package/api/theme/targets/targets.mjs +10 -3
- package/api/theme/template/template.mjs +48 -2
- package/api/theme/theme.type.d.mts +8 -0
- package/api/theme/theme.type.mjs +5 -1
- package/api/theme/themeBuild.doc.mjs +2 -2
- package/api/theme/themeRemove.doc.mjs +5 -2
- package/api/theme/themeTemplate.doc.mjs +2 -2
- package/api/theme/themeUse.doc.mjs +8 -2
- package/api/theme-edit/_adapter.mjs +157 -36
- package/api/theme-edit/_catalog.d.mts +1 -6
- package/api/theme-edit/_catalog.mjs +5 -268
- package/api/theme-edit/_check.d.mts +3 -1
- package/api/theme-edit/_check.mjs +733 -308
- package/api/theme-edit/_color.d.mts +19 -0
- package/api/theme-edit/_color.mjs +277 -33
- package/api/theme-edit/_compiler.d.mts +1 -0
- package/api/theme-edit/_compiler.mjs +25 -0
- package/api/theme-edit/_context.d.mts +2 -0
- package/api/theme-edit/_context.mjs +83 -9
- package/api/theme-edit/_css.d.mts +84 -0
- package/api/theme-edit/_css.mjs +700 -0
- package/api/theme-edit/_edit.mjs +370 -85
- package/api/theme-edit/_how-commands.d.mts +5 -0
- package/api/theme-edit/_how-commands.mjs +20 -13
- package/api/theme-edit/_how-question.d.mts +29 -0
- package/api/theme-edit/_how-question.mjs +1573 -182
- package/api/theme-edit/_how.mjs +306 -22
- package/api/theme-edit/_overview.mjs +2 -7
- package/api/theme-edit/_palette.d.mts +27 -5
- package/api/theme-edit/_palette.mjs +231 -97
- package/api/theme-edit/_parts.d.mts +42 -10
- package/api/theme-edit/_parts.mjs +224 -69
- package/api/theme-edit/_preview-app.d.mts +8 -0
- package/api/theme-edit/_preview-app.mjs +549 -96
- package/api/theme-edit/_preview.d.mts +7 -16
- package/api/theme-edit/_preview.mjs +77 -84
- package/api/theme-edit/_project.d.mts +20 -1
- package/api/theme-edit/_project.mjs +43 -13
- package/api/theme-edit/_settings.d.mts +96 -20
- package/api/theme-edit/_settings.mjs +646 -141
- package/api/theme-edit/_tables.d.mts +18 -12
- package/api/theme-edit/_tables.mjs +144 -147
- package/api/theme-edit/theme-edit.type.d.mts +10 -1
- package/api/theme-edit/theme-edit.type.mjs +3 -1
- package/api/theme-edit/themeEditNew.doc.mjs +1 -1
- package/api/theme-edit/themeEditPreviewAdd.doc.mjs +1 -1
- package/api/theme-edit/themeEditPreviewApp.doc.mjs +1 -1
- package/api/theme-edit/themeEditPreviewList.doc.mjs +2 -2
- package/api/theme-edit/themeEditSet.doc.mjs +1 -1
- package/api/theme-edit/themeEditUndo.doc.mjs +1 -1
- package/assets/docs/tree/publishing.doc.mjs +1 -0
- package/assets/docs.generated.json +2 -2
- package/assets/self-audit.generated.json +1 -1
- package/clients/cli/build-id.generated.json +1 -1
- package/clients/cli/commands/experimental/index.mjs +10 -10
- package/clients/cli/commands/experimental/theme.mjs +22 -3
- package/clients/cli/commands/experimental-theme-compile.doc.mjs +2 -2
- package/clients/cli/commands/experimental-theme-editor-new.doc.mjs +3 -3
- package/clients/cli/commands/experimental-theme-preview-add.doc.mjs +1 -1
- package/clients/cli/commands/experimental-theme-preview-app.doc.mjs +1 -1
- package/clients/cli/commands/integration.mjs +8 -0
- package/clients/cli/commands/theme-build.doc.mjs +2 -2
- package/clients/cli/commands/theme-list.doc.mjs +1 -1
- package/clients/cli/commands/theme-template.doc.mjs +1 -1
- package/clients/cli/commands/theme.mjs +325 -48
- package/clients/cli/index.mjs +18 -3
- package/clients/cli/lib/cli-error.mjs +118 -3
- package/clients/cli/manifest.generated.json +1 -1
- package/foundation/config/project.mjs +34 -8
- package/foundation/config/theme-state.d.mts +16 -0
- package/foundation/config/theme-state.mjs +84 -13
- package/foundation/discovery/template-needs.d.mts +13 -0
- package/foundation/discovery/template-needs.mjs +30 -15
- package/foundation/discovery/theme-discovery.mjs +14 -2
- package/foundation/discovery/theme-imports.d.mts +16 -0
- package/foundation/discovery/theme-imports.mjs +30 -2
- package/foundation/doc-compiler/import.mjs +10 -4
- package/foundation/fs/gather-cache.mjs +82 -23
- package/foundation/fs/jiti-cache.d.mts +21 -0
- package/foundation/fs/jiti-cache.mjs +66 -0
- package/foundation/fs/module-loader.mjs +7 -2
- package/foundation/integrations/autolink.d.mts +1 -24
- package/foundation/integrations/autolink.mjs +7 -60
- package/foundation/integrations/declared-dependencies.d.mts +27 -0
- package/foundation/integrations/declared-dependencies.mjs +73 -0
- package/foundation/integrations/may-have-integrations.d.mts +8 -0
- package/foundation/integrations/may-have-integrations.mjs +47 -0
- package/foundation/release/cache.d.mts +21 -2
- package/foundation/release/cache.mjs +48 -8
- package/foundation/release/folder-lock.d.mts +7 -0
- package/foundation/release/folder-lock.mjs +60 -26
- package/foundation/release/lock-lease.d.mts +2 -1
- package/foundation/release/lock-lease.mjs +7 -2
- package/foundation/response/error-codes.doc.mjs +1 -1
- package/foundation/response/response-types.doc.mjs +4 -4
- package/package.json +6 -6
- package/api/theme-edit/_css-properties.d.mts +0 -10
- package/api/theme-edit/_css-properties.mjs +0 -556
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
* The standard CSS property names: every property css-tree's MDN data
|
|
6
|
+
* lists that is not vendor-prefixed or obsolete, plus NOT_IN_MDN_YET. A
|
|
7
|
+
* name outside it is not a CSS property, so the command refuses it.
|
|
8
|
+
* @returns {ReadonlySet<string>}
|
|
9
|
+
*/
|
|
10
|
+
export function cssProperties(): ReadonlySet<string>;
|
|
11
|
+
/**
|
|
12
|
+
* Whether a value matches a property's grammar, as css-tree reads it. A
|
|
13
|
+
* var() or env() can hold anything, so the value matches when some
|
|
14
|
+
* ordinary value in its place does. Returns the parsed value on a match, for range checks the
|
|
15
|
+
* grammar does not make.
|
|
16
|
+
* @param {string} property
|
|
17
|
+
* @param {string} value
|
|
18
|
+
* @returns {any | null}
|
|
19
|
+
*/
|
|
20
|
+
export function matchValue(property: string, value: string): any | null;
|
|
21
|
+
/**
|
|
22
|
+
* Whether a value is one value of a CSS type (`time`, `easing-function`,
|
|
23
|
+
* `length-percentage`), never a list. Returns the parsed value on a match.
|
|
24
|
+
* @param {string} type
|
|
25
|
+
* @param {string} value
|
|
26
|
+
* @returns {any | null}
|
|
27
|
+
*/
|
|
28
|
+
export function matchType(type: string, value: string): any | null;
|
|
29
|
+
/**
|
|
30
|
+
* Whether a value that matches a property's grammar is still below a range
|
|
31
|
+
* the specs set and css-tree's data does not carry: a `<line-width>` (a
|
|
32
|
+
* border or outline width) and a duration are never negative.
|
|
33
|
+
* @param {string} property
|
|
34
|
+
* @param {string} value
|
|
35
|
+
*/
|
|
36
|
+
export function belowRange(property: string, value: string): boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Each number a matched value holds, with its unit (`''` for a plain
|
|
39
|
+
* number) and the function it sits in, in order.
|
|
40
|
+
* @param {any} ast
|
|
41
|
+
* @returns {Array<{value: number, unit: string, fn: string | null}>}
|
|
42
|
+
*/
|
|
43
|
+
export function numbersIn(ast: any): Array<{
|
|
44
|
+
value: number;
|
|
45
|
+
unit: string;
|
|
46
|
+
fn: string | null;
|
|
47
|
+
}>;
|
|
48
|
+
/**
|
|
49
|
+
* The keywords a property's grammar takes, through the types it names.
|
|
50
|
+
* @param {string} prop
|
|
51
|
+
* @returns {string[]}
|
|
52
|
+
*/
|
|
53
|
+
export function keywordsOf(prop: string): string[];
|
|
54
|
+
/**
|
|
55
|
+
* A value the property takes, to put in a suggestion: its initial value
|
|
56
|
+
* from MDN's data (a shorthand's first longhand's).
|
|
57
|
+
* @param {string} prop
|
|
58
|
+
* @returns {string | null}
|
|
59
|
+
*/
|
|
60
|
+
export function initialOf(prop: string): string | null;
|
|
61
|
+
/**
|
|
62
|
+
* The parts of a CSS `font` value, by the longhand each sets, as written:
|
|
63
|
+
* `italic small-caps 700 1rem/1 Arial` gives font-style, font-variant-caps,
|
|
64
|
+
* font-weight, font-size, line-height and font-family. A system font
|
|
65
|
+
* keyword (`caption`) is `system`. A single keyword of one longhand
|
|
66
|
+
* (`bold`) is that longhand. Null for anything else.
|
|
67
|
+
* @param {string} value
|
|
68
|
+
* @returns {Record<string, string> | null}
|
|
69
|
+
*/
|
|
70
|
+
export function fontShorthandParts(value: string): Record<string, string> | null;
|
|
71
|
+
/**
|
|
72
|
+
* A grammar as text, cut at a whole term when it is long.
|
|
73
|
+
* @param {any} syntax
|
|
74
|
+
*/
|
|
75
|
+
export function grammarText(syntax: any): any;
|
|
76
|
+
/**
|
|
77
|
+
* Whether a property's grammar takes a percentage anywhere, through the
|
|
78
|
+
* types it names (padding does; border-width and outline-offset do not).
|
|
79
|
+
* @param {string} prop
|
|
80
|
+
*/
|
|
81
|
+
export function takesPercentage(prop: string): boolean;
|
|
82
|
+
export function propertyGrammar(prop: string): any | null;
|
|
83
|
+
/** The math functions, by name, for a check of whether a value holds one. */
|
|
84
|
+
export const MATH_FUNCTION: RegExp;
|