@astryxdesign/cli 0.7.11 → 0.7.12-canary.ccb4a6d
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/build/kit/rank.mjs +21 -4
- package/api/build/kit/words.d.mts +1 -0
- package/api/build/kit/words.mjs +1 -1
- package/api/icon/_adapter.d.mts +3 -2
- package/api/icon/_adapter.mjs +8 -2
- package/api/icon/_authoring.d.mts +1 -0
- package/api/icon/_authoring.mjs +586 -66
- package/api/icon/_default-look.d.mts +155 -0
- package/api/icon/_default-look.mjs +474 -0
- package/api/icon/_records.d.mts +1 -1
- package/api/icon/_records.mjs +1 -0
- package/api/icon/add/add.mjs +224 -38
- package/api/icon/icon.type.d.mts +22 -2
- package/api/icon/icon.type.mjs +6 -2
- package/api/icon/iconAdd.doc.mjs +2 -2
- package/api/icon/iconNewDefinition.doc.mjs +3 -2
- package/api/icon/iconNewSet.doc.mjs +4 -4
- package/api/icon/search/search.mjs +10 -9
- package/api/integration/add-helpers.d.mts +11 -1
- package/api/integration/add-helpers.mjs +5 -2
- package/api/integration/authoring-checks.d.mts +0 -2
- package/api/integration/authoring-checks.mjs +1 -6
- package/api/logger.mjs +2 -1
- package/api/swizzle/_adapter.d.mts +1 -0
- package/api/swizzle/_adapter.mjs +4 -1
- package/api/swizzle/_moduleGraph.d.mts +171 -0
- package/api/swizzle/_moduleGraph.mjs +795 -0
- package/api/swizzle/copy/copy.d.mts +2 -43
- package/api/swizzle/copy/copy.mjs +195 -314
- package/api/swizzle/swizzle.d.mts +0 -2
- package/api/swizzle/swizzle.doc.mjs +9 -4
- package/api/swizzle/swizzle.mjs +3 -7
- package/api/swizzle/swizzle.type.d.mts +2 -1
- package/api/swizzle/swizzle.type.mjs +3 -2
- package/assets/discover/official-packages.json +20 -0
- package/assets/docs/tree/icon-sets.doc.mjs +11 -5
- package/assets/templates/blocks/components/Table/TableRowIndexTable.doc.mjs +1 -1
- package/assets/templates/blocks/components/Table/TableRowIndexTable.tsx +2 -2
- package/assets/templates/pages/course-detail/page.tsx +699 -0
- package/assets/templates/pages/course-detail/template.doc.mjs +37 -0
- package/assets/templates/pages/file-explorer/page.tsx +103 -79
- package/assets/templates/pages/table-grouped/page.tsx +160 -232
- package/assets/templates/pages/table-grouped/template.doc.mjs +0 -2
- package/assets/templates/pages/theme-showcase/page.tsx +724 -792
- package/assets/templates/pages/theme-showcase/template.doc.mjs +4 -5
- package/authoring/doctypes/template/type.ts +1 -0
- package/clients/cli/commands/experimental/icon.mjs +31 -10
- package/clients/cli/commands/experimental-icon-add.doc.mjs +1 -1
- package/clients/cli/commands/experimental-icon-new-definition.doc.mjs +2 -1
- package/clients/cli/commands/experimental-icon-new-set.doc.mjs +2 -2
- package/clients/cli/commands/swizzle.doc.mjs +8 -3
- package/clients/cli/commands/swizzle.mjs +21 -9
- package/foundation/discovery/component-loader.d.mts +1 -1
- package/foundation/discovery/doc-types.mjs +9 -2
- package/foundation/discovery/icon-ranking.d.mts +27 -3
- package/foundation/discovery/icon-ranking.mjs +125 -8
- package/foundation/discovery/icon-set-checks.mjs +44 -35
- package/foundation/discovery/icon-set-discovery.d.mts +13 -0
- package/foundation/discovery/icon-set-discovery.mjs +25 -0
- package/foundation/discovery/icon-set-writer.d.mts +238 -16
- package/foundation/discovery/icon-set-writer.mjs +676 -79
- package/foundation/discovery/module-exports.d.mts +3 -2
- package/foundation/discovery/module-exports.mjs +167 -37
- package/foundation/fs/paths.d.mts +2 -1
- package/foundation/fs/paths.mjs +3 -4
- package/foundation/text/shell-arg.d.mts +14 -0
- package/foundation/text/shell-arg.mjs +17 -0
- package/package.json +6 -6
|
@@ -1,51 +1,10 @@
|
|
|
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
|
-
* Rewrite relative imports that point outside the component directory to use
|
|
6
|
-
* the OWNER package's subpaths. Imports within the copied directory (./x) are
|
|
7
|
-
* left untouched.
|
|
8
|
-
*
|
|
9
|
-
* e.g. with ownerPackage '@astryxdesign/core':
|
|
10
|
-
* '../theme/tokens.stylex' -> '@astryxdesign/core/theme/tokens.stylex'
|
|
11
|
-
* '../utils/mergeProps' -> '@astryxdesign/core/utils'
|
|
12
|
-
* '../../locales/en.json' -> '@astryxdesign/core/locales/en.json'
|
|
13
|
-
* import('../Tooltip/Tooltip') -> import('@astryxdesign/core/Tooltip')
|
|
14
|
-
*
|
|
15
|
-
* Most sibling dirs are barrels, so the top-dir collapse (`../utils/x` ->
|
|
16
|
-
* `<pkg>/utils`) resolves. Two shapes must NOT be collapsed to the top dir:
|
|
17
|
-
* - Asset files (`.json`, `.css`): exported by full subpath (e.g.
|
|
18
|
-
* `./locales/*.json`, `./reset.css`), and collapsing a two-levels-up
|
|
19
|
-
* `../../locales/x.json` would emit the invalid `<pkg>/..`.
|
|
20
|
-
* - StyleX modules (`*.stylex`): the StyleX compiler needs the real module
|
|
21
|
-
* path so it can resolve the styles at compile time. The barrel re-export
|
|
22
|
-
* loses the module identity. Core exports every `.stylex` file by its
|
|
23
|
-
* deep subpath (e.g. `./utils/focusOutline.stylex`,
|
|
24
|
-
* `./theme/tokens.stylex`).
|
|
25
|
-
*
|
|
26
|
-
* @param {string} content
|
|
27
|
-
* @param {string} [ownerPackage]
|
|
28
|
-
* @param {(importPath: string) => boolean} [keep] Imports to leave relative:
|
|
29
|
-
* the modules the copy carries in the same layout (see `sharedModulesOf`).
|
|
30
|
-
*/
|
|
31
|
-
export function rewriteImports(content: string, ownerPackage?: string, keep?: (importPath: string) => boolean): string;
|
|
32
|
-
/**
|
|
33
|
-
* The modules a copy carries beside the component, in the package's own
|
|
34
|
-
* layout under the output directory (`spec:AST-110` FR4): each private
|
|
35
|
-
* attribute owner module the component imports, and every unexported StyleX
|
|
36
|
-
* module such a carried module imports, transitively. The component's own
|
|
37
|
-
* imports of them, and theirs of each other, stay relative.
|
|
38
|
-
*
|
|
39
|
-
* @param {string} srcRoot the owner package's source root
|
|
40
|
-
* @param {string} componentDir
|
|
41
|
-
* @param {string[]} componentFiles files of the component that are copied
|
|
42
|
-
* @returns {Map<string, string>} module path (relative to srcRoot, no
|
|
43
|
-
* extension) -> its file path relative to srcRoot
|
|
44
|
-
*/
|
|
45
|
-
export function sharedModulesOf(srcRoot: string, componentDir: string, componentFiles: string[]): Map<string, string>;
|
|
46
4
|
/**
|
|
47
5
|
* Copy one component's source into the consumer project for customization,
|
|
48
|
-
*
|
|
6
|
+
* with the internal modules it needs and its imports of the owner package's
|
|
7
|
+
* public paths.
|
|
49
8
|
*
|
|
50
9
|
* @param {string} component bare or XDS-prefixed component name
|
|
51
10
|
* @param {{cwd?: string, output?: string, package?: string, overwrite?: boolean}} [options]
|