@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.
Files changed (68) hide show
  1. package/api/build/kit/rank.mjs +21 -4
  2. package/api/build/kit/words.d.mts +1 -0
  3. package/api/build/kit/words.mjs +1 -1
  4. package/api/icon/_adapter.d.mts +3 -2
  5. package/api/icon/_adapter.mjs +8 -2
  6. package/api/icon/_authoring.d.mts +1 -0
  7. package/api/icon/_authoring.mjs +586 -66
  8. package/api/icon/_default-look.d.mts +155 -0
  9. package/api/icon/_default-look.mjs +474 -0
  10. package/api/icon/_records.d.mts +1 -1
  11. package/api/icon/_records.mjs +1 -0
  12. package/api/icon/add/add.mjs +224 -38
  13. package/api/icon/icon.type.d.mts +22 -2
  14. package/api/icon/icon.type.mjs +6 -2
  15. package/api/icon/iconAdd.doc.mjs +2 -2
  16. package/api/icon/iconNewDefinition.doc.mjs +3 -2
  17. package/api/icon/iconNewSet.doc.mjs +4 -4
  18. package/api/icon/search/search.mjs +10 -9
  19. package/api/integration/add-helpers.d.mts +11 -1
  20. package/api/integration/add-helpers.mjs +5 -2
  21. package/api/integration/authoring-checks.d.mts +0 -2
  22. package/api/integration/authoring-checks.mjs +1 -6
  23. package/api/logger.mjs +2 -1
  24. package/api/swizzle/_adapter.d.mts +1 -0
  25. package/api/swizzle/_adapter.mjs +4 -1
  26. package/api/swizzle/_moduleGraph.d.mts +171 -0
  27. package/api/swizzle/_moduleGraph.mjs +795 -0
  28. package/api/swizzle/copy/copy.d.mts +2 -43
  29. package/api/swizzle/copy/copy.mjs +195 -314
  30. package/api/swizzle/swizzle.d.mts +0 -2
  31. package/api/swizzle/swizzle.doc.mjs +9 -4
  32. package/api/swizzle/swizzle.mjs +3 -7
  33. package/api/swizzle/swizzle.type.d.mts +2 -1
  34. package/api/swizzle/swizzle.type.mjs +3 -2
  35. package/assets/discover/official-packages.json +20 -0
  36. package/assets/docs/tree/icon-sets.doc.mjs +11 -5
  37. package/assets/templates/blocks/components/Table/TableRowIndexTable.doc.mjs +1 -1
  38. package/assets/templates/blocks/components/Table/TableRowIndexTable.tsx +2 -2
  39. package/assets/templates/pages/course-detail/page.tsx +699 -0
  40. package/assets/templates/pages/course-detail/template.doc.mjs +37 -0
  41. package/assets/templates/pages/file-explorer/page.tsx +103 -79
  42. package/assets/templates/pages/table-grouped/page.tsx +160 -232
  43. package/assets/templates/pages/table-grouped/template.doc.mjs +0 -2
  44. package/assets/templates/pages/theme-showcase/page.tsx +724 -792
  45. package/assets/templates/pages/theme-showcase/template.doc.mjs +4 -5
  46. package/authoring/doctypes/template/type.ts +1 -0
  47. package/clients/cli/commands/experimental/icon.mjs +31 -10
  48. package/clients/cli/commands/experimental-icon-add.doc.mjs +1 -1
  49. package/clients/cli/commands/experimental-icon-new-definition.doc.mjs +2 -1
  50. package/clients/cli/commands/experimental-icon-new-set.doc.mjs +2 -2
  51. package/clients/cli/commands/swizzle.doc.mjs +8 -3
  52. package/clients/cli/commands/swizzle.mjs +21 -9
  53. package/foundation/discovery/component-loader.d.mts +1 -1
  54. package/foundation/discovery/doc-types.mjs +9 -2
  55. package/foundation/discovery/icon-ranking.d.mts +27 -3
  56. package/foundation/discovery/icon-ranking.mjs +125 -8
  57. package/foundation/discovery/icon-set-checks.mjs +44 -35
  58. package/foundation/discovery/icon-set-discovery.d.mts +13 -0
  59. package/foundation/discovery/icon-set-discovery.mjs +25 -0
  60. package/foundation/discovery/icon-set-writer.d.mts +238 -16
  61. package/foundation/discovery/icon-set-writer.mjs +676 -79
  62. package/foundation/discovery/module-exports.d.mts +3 -2
  63. package/foundation/discovery/module-exports.mjs +167 -37
  64. package/foundation/fs/paths.d.mts +2 -1
  65. package/foundation/fs/paths.mjs +3 -4
  66. package/foundation/text/shell-arg.d.mts +14 -0
  67. package/foundation/text/shell-arg.mjs +17 -0
  68. 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
- * rewriting escaping relative imports to the owner package's subpaths.
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]