@astryxdesign/cli 0.7.17 → 0.7.18-canary.g32556bb

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 (261) hide show
  1. package/README.md +1 -1
  2. package/api/discover/_adapter.d.mts +7 -5
  3. package/api/discover/_adapter.mjs +12 -11
  4. package/api/docs/_adapter.d.mts +19 -2
  5. package/api/docs/_adapter.mjs +66 -5
  6. package/api/doctor/_adapter.d.mts +11 -62
  7. package/api/doctor/_adapter.mjs +242 -472
  8. package/api/doctor/doctor.d.mts +1 -1
  9. package/api/doctor/doctor.mjs +3 -3
  10. package/api/doctor/theme-checks.mjs +37 -45
  11. package/api/error.d.mts +21 -0
  12. package/api/error.mjs +89 -0
  13. package/api/hook/list/list.d.mts +1 -1
  14. package/api/icon/_adapter.d.mts +8 -0
  15. package/api/icon/_adapter.mjs +17 -0
  16. package/api/icon/_authoring.mjs +6 -6
  17. package/api/icon/_default-look.mjs +16 -16
  18. package/api/icon/add/add.mjs +3 -3
  19. package/api/icon/exportIconIndex.doc.mjs +2 -2
  20. package/api/icon/icon.doc.mjs +2 -2
  21. package/api/icon/icon.type.d.mts +4 -0
  22. package/api/icon/icon.type.mjs +2 -1
  23. package/api/icon/search/icon-index.mjs +16 -3
  24. package/api/icon/search/search.d.mts +15 -5
  25. package/api/icon/search/search.mjs +74 -16
  26. package/api/icon/use/use.mjs +4 -4
  27. package/api/render/_adapter.mjs +233 -40
  28. package/api/render/render.type.d.mts +1 -1
  29. package/api/render/render.type.mjs +1 -1
  30. package/api/search/ORDERING.md +2 -2
  31. package/api/search/_adapter.mjs +4 -0
  32. package/api/search/_candidate-score.mjs +32 -8
  33. package/api/search/_cards.json +1 -1
  34. package/api/search/_compound.d.mts +0 -1
  35. package/api/search/_compound.mjs +93 -2
  36. package/api/search/_icons.d.mts +4 -2
  37. package/api/search/_icons.mjs +4 -2
  38. package/api/search/_lexical.mjs +177 -17
  39. package/api/search/_order.d.mts +3 -1
  40. package/api/search/_order.mjs +16 -5
  41. package/api/search/_result.d.mts +9 -0
  42. package/api/search/_result.mjs +10 -0
  43. package/api/search/_score.mjs +21 -3
  44. package/api/swizzle/_moduleGraph.d.mts +8 -0
  45. package/api/swizzle/_moduleGraph.mjs +61 -3
  46. package/api/template/copy/copy.mjs +5 -3
  47. package/api/template/template.type.d.mts +3 -3
  48. package/api/template/template.type.mjs +3 -3
  49. package/api/theme/_adapter.mjs +48 -12
  50. package/api/theme/build/build.d.mts +4 -0
  51. package/api/theme/build/build.mjs +69 -18
  52. package/api/theme/build/style-keys.mjs +4 -5
  53. package/api/theme/build/theme-object.mjs +5 -0
  54. package/api/theme/palette/generate/color.d.mts +47 -0
  55. package/api/theme/palette/generate/color.mjs +58 -1
  56. package/api/theme/palette/generate/derive-look.d.mts +293 -0
  57. package/api/theme/palette/generate/derive-look.mjs +1362 -0
  58. package/api/theme/palette/generate/editor-look.d.mts +62 -0
  59. package/api/theme/palette/generate/editor-look.mjs +550 -0
  60. package/api/theme/palette/generate/mapping.d.mts +94 -9
  61. package/api/theme/palette/generate/mapping.mjs +94 -22
  62. package/api/theme-edit/_adapter.mjs +13 -2
  63. package/api/theme-edit/_catalog.d.mts +13 -13
  64. package/api/theme-edit/_catalog.mjs +66 -28
  65. package/api/theme-edit/_check.d.mts +82 -6
  66. package/api/theme-edit/_check.mjs +1270 -238
  67. package/api/theme-edit/_color.d.mts +74 -0
  68. package/api/theme-edit/_color.mjs +168 -3
  69. package/api/theme-edit/_compiler.d.mts +3 -5
  70. package/api/theme-edit/_compiler.mjs +122 -23
  71. package/api/theme-edit/_context.d.mts +55 -12
  72. package/api/theme-edit/_context.mjs +114 -60
  73. package/api/theme-edit/_css.d.mts +11 -0
  74. package/api/theme-edit/_css.mjs +40 -0
  75. package/api/theme-edit/_edit.d.mts +15 -2
  76. package/api/theme-edit/_edit.mjs +1469 -133
  77. package/api/theme-edit/_how-commands.d.mts +116 -0
  78. package/api/theme-edit/_how-commands.mjs +227 -115
  79. package/api/theme-edit/_how-question.d.mts +74 -29
  80. package/api/theme-edit/_how-question.mjs +8514 -1256
  81. package/api/theme-edit/_how-sides.d.mts +22 -0
  82. package/api/theme-edit/_how-sides.mjs +173 -0
  83. package/api/theme-edit/_how-steps.d.mts +42 -0
  84. package/api/theme-edit/_how-steps.mjs +208 -0
  85. package/api/theme-edit/_how-values.d.mts +29 -0
  86. package/api/theme-edit/_how-values.mjs +111 -0
  87. package/api/theme-edit/_how-words.d.mts +15 -0
  88. package/api/theme-edit/_how-words.mjs +239 -0
  89. package/api/theme-edit/_how.d.mts +1 -1
  90. package/api/theme-edit/_how.mjs +422 -37
  91. package/api/theme-edit/_missed.d.mts +2 -1
  92. package/api/theme-edit/_missed.mjs +125 -13
  93. package/api/theme-edit/_normal.d.mts +5 -3
  94. package/api/theme-edit/_normal.mjs +54 -14
  95. package/api/theme-edit/_palette.d.mts +204 -4
  96. package/api/theme-edit/_palette.mjs +901 -25
  97. package/api/theme-edit/_part-pieces.d.mts +54 -0
  98. package/api/theme-edit/_part-pieces.mjs +179 -0
  99. package/api/theme-edit/_part-words.mjs +33 -5
  100. package/api/theme-edit/_parts.d.mts +133 -0
  101. package/api/theme-edit/_parts.mjs +599 -10
  102. package/api/theme-edit/_picture-traits.d.mts +259 -0
  103. package/api/theme-edit/_picture-traits.mjs +1030 -0
  104. package/api/theme-edit/_preview.d.mts +95 -4
  105. package/api/theme-edit/_preview.mjs +284 -31
  106. package/api/theme-edit/_project.d.mts +14 -4
  107. package/api/theme-edit/_project.mjs +95 -26
  108. package/api/theme-edit/_resolved.d.mts +46 -0
  109. package/api/theme-edit/_resolved.mjs +800 -0
  110. package/api/theme-edit/_set-line.d.mts +29 -0
  111. package/api/theme-edit/_set-line.mjs +100 -0
  112. package/api/theme-edit/_settings.d.mts +625 -28
  113. package/api/theme-edit/_settings.mjs +4867 -888
  114. package/api/theme-edit/_tables.d.mts +25 -1
  115. package/api/theme-edit/_tables.mjs +115 -11
  116. package/api/theme-edit/_text-looks.d.mts +78 -0
  117. package/api/theme-edit/_text-looks.mjs +376 -0
  118. package/api/theme-edit/_vet.d.mts +3 -26
  119. package/api/theme-edit/_vet.mjs +5 -89
  120. package/api/theme-edit/how/how.d.mts +1 -1
  121. package/api/theme-edit/how/how.mjs +1 -1
  122. package/api/theme-edit/show/show.d.mts +4 -3
  123. package/api/theme-edit/show/show.mjs +3 -2
  124. package/api/theme-edit/theme-edit.type.d.mts +117 -1
  125. package/api/theme-edit/theme-edit.type.mjs +46 -3
  126. package/api/theme-edit/themeEditHow.doc.mjs +3 -3
  127. package/api/theme-edit/themeEditNew.doc.mjs +4 -0
  128. package/api/theme-edit/themeEditSet.doc.mjs +6 -2
  129. package/api/theme-edit/themeEditShow.doc.mjs +22 -3
  130. package/api/theme-edit/themeEditUndo.doc.mjs +4 -0
  131. package/assets/component-list.generated.json +1 -1
  132. package/assets/docs/author-a-theme.doc.mjs +7 -4
  133. package/assets/docs/icons.doc.mjs +7 -6
  134. package/assets/docs/theme.doc.dense.mjs +10 -0
  135. package/assets/docs/theme.doc.mjs +10 -0
  136. package/assets/docs/theme.doc.zh.mjs +10 -0
  137. package/assets/docs/tree/export-pages.doc.mjs +1 -1
  138. package/assets/docs/tree/icon-sets.doc.mjs +1 -1
  139. package/assets/docs/use-a-theme.doc.mjs +89 -17
  140. package/assets/docs-routes.generated.json +1 -1
  141. package/assets/docs.generated.json +2 -2
  142. package/assets/icons/definitions/article.doc.mjs +9 -0
  143. package/assets/icons/template-icons.json +5 -0
  144. package/assets/search-catalog.generated.json +2 -2
  145. package/assets/self-audit.generated.json +1 -1
  146. package/assets/templates/blocks/components/Citation/CitationInlineText.doc.mjs +1 -1
  147. package/assets/templates/blocks/components/Citation/CitationInlineText.tsx +3 -1
  148. package/assets/templates/blocks/components/Citation/CitationShowcase.doc.mjs +1 -1
  149. package/assets/templates/blocks/components/Citation/CitationShowcase.tsx +3 -1
  150. package/assets/templates/blocks/components/Citation/CitationSourceList.doc.mjs +1 -1
  151. package/assets/templates/blocks/components/Citation/CitationSourceList.tsx +7 -3
  152. package/assets/templates/blocks/components/Markdown/MarkdownCitedContent.doc.mjs +1 -1
  153. package/assets/templates/blocks/components/Markdown/MarkdownCitedContent.tsx +5 -2
  154. package/assets/templates/blocks/components/SideNav/SideNavShowcase.tsx +9 -1
  155. package/assets/templates/blocks/components/SideNavCollapseButton/SideNavCollapseButtonShowcase.doc.mjs +9 -2
  156. package/assets/templates/blocks/components/SideNavHeading/SideNavHeadingShowcase.doc.mjs +3 -2
  157. package/assets/templates/blocks/components/SideNavHeading/SideNavHeadingShowcase.tsx +2 -1
  158. package/assets/templates/blocks/components/SideNavItem/SideNavItemShowcase.doc.mjs +3 -2
  159. package/assets/templates/blocks/components/SideNavSection/SideNavSectionShowcase.doc.mjs +2 -1
  160. package/assets/templates/components.generated.json +1 -1
  161. package/assets/templates/pages/ide/page.tsx +5 -10
  162. package/assets/templates/pages/payment-form/page.tsx +16 -60
  163. package/assets/templates/themes/neutral/neutralTheme.ts +4 -3
  164. package/authoring/config/parse.mjs +1 -1
  165. package/authoring/debug/parse.d.mts +1 -1
  166. package/authoring/doctypes/_schema.d.mts +13 -13
  167. package/authoring/doctypes/icon-definition/parse.mjs +2 -2
  168. package/authoring/doctypes/icon-set/parse.mjs +1 -1
  169. package/authoring/doctypes/template/parse.mjs +1 -4
  170. package/authoring/gap-report/parse.d.mts +1 -1
  171. package/clients/cli/build-id.generated.json +1 -1
  172. package/clients/cli/commands/ensure-core-built.mjs +17 -10
  173. package/clients/cli/commands/experimental/icon.mjs +7 -7
  174. package/clients/cli/commands/experimental/theme.mjs +175 -13
  175. package/clients/cli/commands/experimental-icon.doc.mjs +1 -1
  176. package/clients/cli/commands/experimental-theme-compile.doc.mjs +1 -1
  177. package/clients/cli/commands/experimental-theme-editor-how.doc.mjs +11 -3
  178. package/clients/cli/commands/experimental-theme-editor-set.doc.mjs +3 -3
  179. package/clients/cli/commands/experimental-theme-editor-show.doc.mjs +15 -5
  180. package/clients/cli/commands/experimental-theme-editor-undo.doc.mjs +1 -1
  181. package/clients/cli/commands/hook.mjs +7 -0
  182. package/clients/cli/commands/template.mjs +1 -1
  183. package/clients/cli/commands/theme-build.doc.mjs +1 -1
  184. package/clients/cli/index.mjs +6 -2
  185. package/clients/cli/lib/hook-format.mjs +41 -1
  186. package/clients/cli/lib/json-shim.mjs +34 -14
  187. package/clients/cli/lib/other-cli-words.mjs +7 -0
  188. package/clients/cli/lib/unknown-command.mjs +345 -46
  189. package/clients/cli/manifest.generated.json +1 -1
  190. package/foundation/agent-docs/agent-docs.d.mts +11 -2
  191. package/foundation/agent-docs/agent-docs.mjs +51 -8
  192. package/foundation/config/project.d.mts +11 -1
  193. package/foundation/config/project.mjs +11 -2
  194. package/foundation/discovery/component-replacement.d.mts +5 -8
  195. package/foundation/discovery/component-replacement.mjs +12 -14
  196. package/foundation/discovery/core-augmentation-points.d.mts +35 -0
  197. package/foundation/discovery/core-augmentation-points.mjs +410 -9
  198. package/foundation/discovery/core-elements.d.mts +6 -0
  199. package/foundation/discovery/core-elements.mjs +10 -2
  200. package/foundation/discovery/core-prop-types.d.mts +5 -0
  201. package/foundation/discovery/core-prop-types.mjs +10 -3
  202. package/foundation/discovery/core-props.d.mts +8 -0
  203. package/foundation/discovery/core-props.mjs +29 -13
  204. package/foundation/discovery/icon-ranking.d.mts +5 -2
  205. package/foundation/discovery/icon-ranking.mjs +101 -18
  206. package/foundation/discovery/icon-set-checks.mjs +1 -1
  207. package/foundation/discovery/icon-set-writer.mjs +1 -1
  208. package/foundation/discovery/official-list.d.mts +17 -0
  209. package/foundation/discovery/official-list.mjs +77 -0
  210. package/foundation/discovery/template-icon-notes.mjs +3 -3
  211. package/foundation/discovery/template-icons.mjs +2 -2
  212. package/foundation/discovery/template-placeholders.mjs +1 -1
  213. package/foundation/discovery/unknown-core-props.d.mts +130 -0
  214. package/foundation/discovery/unknown-core-props.mjs +601 -0
  215. package/foundation/discovery/written-prop-values.d.mts +35 -0
  216. package/foundation/discovery/written-prop-values.mjs +258 -0
  217. package/foundation/fonts/fontsource-families.generated.d.mts +5 -0
  218. package/foundation/fonts/fontsource-families.generated.mjs +2110 -0
  219. package/foundation/fs/package-name.d.mts +10 -0
  220. package/foundation/fs/package-name.mjs +37 -0
  221. package/foundation/fs/project-source-files.d.mts +27 -0
  222. package/foundation/fs/project-source-files.mjs +115 -0
  223. package/foundation/fs/project-sources.d.mts +25 -0
  224. package/foundation/fs/project-sources.mjs +83 -0
  225. package/foundation/fs/read-record.d.mts +18 -0
  226. package/foundation/fs/read-record.mjs +36 -2
  227. package/foundation/integrations/integration-warnings.d.mts +39 -7
  228. package/foundation/integrations/integration-warnings.mjs +141 -19
  229. package/foundation/integrations/missing-dependency.d.mts +11 -0
  230. package/foundation/integrations/missing-dependency.mjs +20 -5
  231. package/foundation/release/folder-lock.d.mts +5 -2
  232. package/foundation/release/folder-lock.mjs +9 -3
  233. package/foundation/release/notices.mjs +2 -8
  234. package/foundation/render/cut-short.d.mts +8 -2
  235. package/foundation/render/cut-short.mjs +50 -5
  236. package/foundation/render/drawn-contrast.d.mts +40 -0
  237. package/foundation/render/drawn-contrast.mjs +355 -0
  238. package/foundation/render/file-header.mjs +4 -0
  239. package/foundation/render/layers.d.mts +2 -1
  240. package/foundation/render/layers.mjs +22 -1
  241. package/foundation/render/package-resolve-hooks.d.mts +38 -9
  242. package/foundation/render/package-resolve-hooks.mjs +124 -32
  243. package/foundation/render/page-worker.mjs +95 -23
  244. package/foundation/render/part-boxes.d.mts +27 -0
  245. package/foundation/render/part-boxes.mjs +45 -0
  246. package/foundation/render/picture-chrome.mjs +36 -4
  247. package/foundation/render/picture-playwright.mjs +26 -2
  248. package/foundation/render/picture-window.d.mts +29 -2
  249. package/foundation/render/picture-window.mjs +99 -1
  250. package/foundation/render/render-page.d.mts +39 -6
  251. package/foundation/render/render-page.mjs +26 -10
  252. package/foundation/render/ts-paths.mjs +2 -1
  253. package/foundation/response/error-codes.doc.mjs +1 -1
  254. package/foundation/response/error-codes.mjs +1 -1
  255. package/foundation/response/response-types.doc.mjs +9 -5
  256. package/foundation/suggest/other-command.mjs +25 -1
  257. package/foundation/text/icon-set-next.d.mts +1 -1
  258. package/foundation/text/icon-set-next.mjs +2 -2
  259. package/foundation/text/written-string.d.mts +4 -1
  260. package/foundation/text/written-string.mjs +4 -1
  261. package/package.json +8 -7
@@ -25,6 +25,7 @@ import {TreeList} from '@astryxdesign/core/TreeList';
25
25
  import type {TreeListItemData} from '@astryxdesign/core/TreeList';
26
26
  import {VisuallyHidden} from '@astryxdesign/core/VisuallyHidden';
27
27
  import {
28
+ ClockIcon,
28
29
  FolderIcon,
29
30
  DocumentIcon,
30
31
  SearchIcon,
@@ -51,14 +52,6 @@ const styles: Record<string, CSSProperties> = {
51
52
  metadataCompact: {
52
53
  gap: 'var(--spacing-1) var(--spacing-3)',
53
54
  },
54
- historyTimelineDot: {
55
- width: 8,
56
- height: 8,
57
- borderRadius: '50%',
58
- backgroundColor: 'var(--color-border-emphasized)',
59
- marginTop: 6,
60
- flexShrink: 0,
61
- },
62
55
  editorArea: {
63
56
  overflow: 'auto',
64
57
  minHeight: 0,
@@ -487,8 +480,10 @@ export default function ResizableWorkspacePage() {
487
480
  </Text>
488
481
  }
489
482
  startContent={
490
- <span
491
- style={styles.historyTimelineDot}
483
+ <Icon
484
+ icon={ClockIcon}
485
+ size="xsm"
486
+ color="secondary"
492
487
  />
493
488
  }
494
489
  />
@@ -37,6 +37,9 @@ import {ShieldIcon} from '@astryxdesign/template-icons';
37
37
  import {LockIcon} from '@astryxdesign/template-icons';
38
38
  import {SuccessIcon} from '@astryxdesign/template-icons';
39
39
  import {ShippingIcon} from '@astryxdesign/template-icons';
40
+ import {CreditCardIcon} from '@astryxdesign/template-icons';
41
+ import {MobileIcon} from '@astryxdesign/template-icons';
42
+ import {WalletIcon} from '@astryxdesign/template-icons';
40
43
 
41
44
  // ── Constants ─────────────────────────────────────────────────────────────────
42
45
 
@@ -187,30 +190,6 @@ const summarySticky: CSSProperties = {
187
190
  };
188
191
  // On mobile the summary moves above the form.
189
192
  const summaryMobileOrder: CSSProperties = {order: -1};
190
- // Express-checkout brand buttons (fixed brand colors).
191
- const paypalButton: CSSProperties = {
192
- backgroundColor: '#FFC439',
193
- borderColor: '#FFC439',
194
- };
195
- // Official Google Pay dark button: black background with the unaltered
196
- // dark-variant mark (white "Google Pay" text + full-color G), per the
197
- // Google Pay brand guidelines.
198
- const gpayButton: CSSProperties = {
199
- backgroundColor: '#000',
200
- borderColor: '#000',
201
- };
202
- // Brand logos inside the express-checkout buttons.
203
- const brandLogo: CSSProperties = {height: 'var(--spacing-5)', width: 'auto'};
204
- // Accepted card-network marks (Visa/Mastercard/Amex), shared style.
205
- const cardLogo: CSSProperties = {
206
- height: 'var(--spacing-7)',
207
- width: 'auto',
208
- borderRadius: 'var(--radius-element)',
209
- borderWidth: 'var(--border-width)',
210
- borderStyle: 'solid',
211
- borderColor: 'var(--color-border)',
212
- backgroundColor: 'var(--color-background-surface)',
213
- };
214
193
 
215
194
  export default function PaymentFormPage() {
216
195
  const showToast = useToast();
@@ -515,12 +494,12 @@ export default function PaymentFormPage() {
515
494
 
516
495
  {/* Express checkout */}
517
496
  <VStack gap={3}>
518
- <Grid columns={2} gap={3}>
519
- {/* PayPal */}
497
+ <Grid columns={{minWidth: 140, max: 2}} gap={3}>
520
498
  <Button
521
499
  label="PayPal"
522
- variant="primary"
500
+ variant="secondary"
523
501
  size="lg"
502
+ icon={<Icon icon={WalletIcon} />}
524
503
  onClick={() =>
525
504
  // Demo only: replace this toast with the call that starts PayPal.
526
505
  showToast({
@@ -528,18 +507,12 @@ export default function PaymentFormPage() {
528
507
  uniqueID: 'paypal',
529
508
  })
530
509
  }
531
- style={paypalButton}>
532
- <img
533
- src="https://www.paypalobjects.com/webstatic/mktg/Logo/pp-logo-100px.png"
534
- alt="PayPal"
535
- style={brandLogo}
536
- />
537
- </Button>
538
- {/* Google Pay */}
510
+ />
539
511
  <Button
540
512
  label="Google Pay"
541
- variant="primary"
513
+ variant="secondary"
542
514
  size="lg"
515
+ icon={<Icon icon={MobileIcon} />}
543
516
  onClick={() =>
544
517
  // Demo only: replace this toast with the call that starts Google Pay.
545
518
  showToast({
@@ -547,13 +520,7 @@ export default function PaymentFormPage() {
547
520
  uniqueID: 'google-pay',
548
521
  })
549
522
  }
550
- style={gpayButton}>
551
- <img
552
- src="https://pay.google.com/about/static_kcs/images/logos/google-pay-logo.svg"
553
- alt="Google Pay"
554
- style={brandLogo}
555
- />
556
- </Button>
523
+ />
557
524
  </Grid>
558
525
  </VStack>
559
526
 
@@ -572,23 +539,12 @@ export default function PaymentFormPage() {
572
539
 
573
540
  {/* Credit card fields */}
574
541
  <VStack gap={3}>
575
- {/* Card type icons */}
576
- <HStack gap={1.5} vAlign="center">
577
- <img
578
- src="https://raw.githubusercontent.com/aaronfagan/svg-credit-card-payment-icons/main/flat/visa.svg"
579
- alt="Visa"
580
- style={cardLogo}
581
- />
582
- <img
583
- src="https://raw.githubusercontent.com/aaronfagan/svg-credit-card-payment-icons/main/flat/mastercard.svg"
584
- alt="Mastercard"
585
- style={cardLogo}
586
- />
587
- <img
588
- src="https://raw.githubusercontent.com/aaronfagan/svg-credit-card-payment-icons/main/flat/amex.svg"
589
- alt="Amex"
590
- style={cardLogo}
591
- />
542
+ {/* Accepted card networks */}
543
+ <HStack gap={1.5} vAlign="center" wrap="wrap">
544
+ <Icon icon={CreditCardIcon} color="secondary" />
545
+ <Badge label="Visa" />
546
+ <Badge label="Mastercard" />
547
+ <Badge label="Amex" />
592
548
  </HStack>
593
549
  <TextInput
594
550
  size="lg"
@@ -373,14 +373,15 @@ export const neutralTheme = defineTheme({
373
373
  base: {
374
374
  '--color-text-secondary': `light-dark(${neutral.light[30]}, ${neutral.dark[80]})`,
375
375
  },
376
+ // A label line taller than the size grows the item.
376
377
  'size:sm': {
377
- height: 'calc(var(--size-element-sm) - 8px)',
378
+ height: 'max(calc(var(--size-element-sm) - 8px), 1lh)',
378
379
  },
379
380
  'size:md': {
380
- height: 'calc(var(--size-element-md) - 8px)',
381
+ height: 'max(calc(var(--size-element-md) - 8px), 1lh)',
381
382
  },
382
383
  'size:lg': {
383
- height: 'calc(var(--size-element-lg) - 8px)',
384
+ height: 'max(calc(var(--size-element-lg) - 8px), 1lh)',
384
385
  },
385
386
  selected: {
386
387
  boxShadow: 'none',
@@ -133,7 +133,7 @@ function buildSchemas() {
133
133
  code: 'custom',
134
134
  path: ['iconVariant'],
135
135
  message:
136
- 'iconVariant is the look of the icon sets experimental.iconSet names: set experimental.iconSet too (`astryx experimental icon use <set> --variant <variant>` writes both)',
136
+ 'iconVariant is the variant of the icon sets experimental.iconSet names: set experimental.iconSet too (`astryx experimental icon use <set> --variant <variant>` writes both)',
137
137
  });
138
138
  }
139
139
  })
@@ -75,7 +75,6 @@ declare const eventSchema: z.ZodObject<{
75
75
  resultCount: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
76
76
  emptyResult: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
77
77
  resultKind: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
78
- none: "none";
79
78
  command: "command";
80
79
  component: "component";
81
80
  template: "template";
@@ -85,6 +84,7 @@ declare const eventSchema: z.ZodObject<{
85
84
  integration: "integration";
86
85
  migration: "migration";
87
86
  mixed: "mixed";
87
+ none: "none";
88
88
  }>>>;
89
89
  directMatch: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
90
90
  stdout: z.ZodString;
@@ -59,8 +59,8 @@ declare function buildDocSchemas(): {
59
59
  }, z.core.$strict>>;
60
60
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
61
61
  audience: z.ZodOptional<z.ZodEnum<{
62
- public: "public";
63
62
  internal: "internal";
63
+ public: "public";
64
64
  }>>;
65
65
  stability: z.ZodOptional<z.ZodLiteral<"experimental">>;
66
66
  };
@@ -287,8 +287,8 @@ declare function buildDocSchemas(): {
287
287
  }, z.core.$strict>>;
288
288
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
289
289
  audience: z.ZodOptional<z.ZodEnum<{
290
- public: "public";
291
290
  internal: "internal";
291
+ public: "public";
292
292
  }>>;
293
293
  stability: z.ZodOptional<z.ZodLiteral<"experimental">>;
294
294
  props: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -350,8 +350,8 @@ declare function buildDocSchemas(): {
350
350
  }, z.core.$strict>>;
351
351
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
352
352
  audience: z.ZodOptional<z.ZodEnum<{
353
- public: "public";
354
353
  internal: "internal";
354
+ public: "public";
355
355
  }>>;
356
356
  stability: z.ZodOptional<z.ZodLiteral<"experimental">>;
357
357
  }, z.core.$loose>;
@@ -448,8 +448,8 @@ declare function buildDocSchemas(): {
448
448
  }, z.core.$strict>>;
449
449
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
450
450
  audience: z.ZodOptional<z.ZodEnum<{
451
- public: "public";
452
451
  internal: "internal";
452
+ public: "public";
453
453
  }>>;
454
454
  stability: z.ZodOptional<z.ZodLiteral<"experimental">>;
455
455
  }, z.core.$loose>;
@@ -502,8 +502,8 @@ declare function buildDocSchemas(): {
502
502
  }, z.core.$strict>>;
503
503
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
504
504
  audience: z.ZodOptional<z.ZodEnum<{
505
- public: "public";
506
505
  internal: "internal";
506
+ public: "public";
507
507
  }>>;
508
508
  stability: z.ZodOptional<z.ZodLiteral<"experimental">>;
509
509
  }, z.core.$loose>;
@@ -609,8 +609,8 @@ declare function buildDocSchemas(): {
609
609
  }, z.core.$strict>>;
610
610
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
611
611
  audience: z.ZodOptional<z.ZodEnum<{
612
- public: "public";
613
612
  internal: "internal";
613
+ public: "public";
614
614
  }>>;
615
615
  stability: z.ZodOptional<z.ZodLiteral<"experimental">>;
616
616
  }, z.core.$loose>;
@@ -633,8 +633,8 @@ declare function buildDocSchemas(): {
633
633
  }, z.core.$strict>>;
634
634
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
635
635
  audience: z.ZodOptional<z.ZodEnum<{
636
- public: "public";
637
636
  internal: "internal";
637
+ public: "public";
638
638
  }>>;
639
639
  stability: z.ZodOptional<z.ZodLiteral<"experimental">>;
640
640
  }, z.core.$loose>;
@@ -758,8 +758,8 @@ declare function buildDocSchemas(): {
758
758
  }, z.core.$strict>>;
759
759
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
760
760
  audience: z.ZodOptional<z.ZodEnum<{
761
- public: "public";
762
761
  internal: "internal";
762
+ public: "public";
763
763
  }>>;
764
764
  stability: z.ZodOptional<z.ZodLiteral<"experimental">>;
765
765
  }, z.core.$strict>;
@@ -788,8 +788,8 @@ declare function buildDocSchemas(): {
788
788
  }, z.core.$strict>>;
789
789
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
790
790
  audience: z.ZodOptional<z.ZodEnum<{
791
- public: "public";
792
791
  internal: "internal";
792
+ public: "public";
793
793
  }>>;
794
794
  stability: z.ZodOptional<z.ZodLiteral<"experimental">>;
795
795
  subComponentOf: z.ZodString;
@@ -831,8 +831,8 @@ declare function buildDocSchemas(): {
831
831
  }, z.core.$strict>>;
832
832
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
833
833
  audience: z.ZodOptional<z.ZodEnum<{
834
- public: "public";
835
834
  internal: "internal";
835
+ public: "public";
836
836
  }>>;
837
837
  stability: z.ZodOptional<z.ZodLiteral<"experimental">>;
838
838
  params: z.ZodArray<z.ZodObject<{
@@ -873,8 +873,8 @@ declare function buildDocSchemas(): {
873
873
  }, z.core.$strict>>;
874
874
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
875
875
  audience: z.ZodOptional<z.ZodEnum<{
876
- public: "public";
877
876
  internal: "internal";
877
+ public: "public";
878
878
  }>>;
879
879
  stability: z.ZodOptional<z.ZodLiteral<"experimental">>;
880
880
  components: z.ZodArray<z.ZodUnknown>;
@@ -908,8 +908,8 @@ declare function buildDocSchemas(): {
908
908
  }, z.core.$strict>>;
909
909
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
910
910
  audience: z.ZodOptional<z.ZodEnum<{
911
- public: "public";
912
911
  internal: "internal";
912
+ public: "public";
913
913
  }>>;
914
914
  stability: z.ZodOptional<z.ZodLiteral<"experimental">>;
915
915
  props: z.ZodArray<z.ZodObject<{
@@ -947,8 +947,8 @@ declare function buildDocSchemas(): {
947
947
  }, z.core.$strict>>;
948
948
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
949
949
  audience: z.ZodOptional<z.ZodEnum<{
950
- public: "public";
951
950
  internal: "internal";
951
+ public: "public";
952
952
  }>>;
953
953
  stability: z.ZodOptional<z.ZodLiteral<"experimental">>;
954
954
  title: z.ZodString;
@@ -40,7 +40,7 @@ function buildSchemas() {
40
40
  {message: 'words must be lower-case and trimmed'},
41
41
  ),
42
42
  )
43
- .min(1, 'a definition must have at least one word'),
43
+ .min(1, 'a meaning must have at least one word'),
44
44
  builtIn: z.literal(true).optional(),
45
45
  group: nonBlank('group')
46
46
  .regex(
@@ -51,7 +51,7 @@ function buildSchemas() {
51
51
  replaces: nonBlank('replaces')
52
52
  .regex(
53
53
  ICON_DEFINITION_NAME_RE,
54
- 'replaces must name a definition in camelCase',
54
+ 'replaces must name a meaning in camelCase',
55
55
  )
56
56
  .optional(),
57
57
  stability: z.literal('experimental').optional(),
@@ -258,7 +258,7 @@ function buildSchemas() {
258
258
  ctx.addIssue({
259
259
  code: 'custom',
260
260
  path: ['map', name],
261
- message: `"${name}" is not an icon definition name: definitions are camelCase`,
261
+ message: `"${name}" is not an icon meaning name: meanings are camelCase`,
262
262
  });
263
263
  }
264
264
  if (!ids.has(id)) {
@@ -57,10 +57,7 @@ function buildSchemas() {
57
57
  .regex(/^[$A-Z_a-z][$\w]*$/u, 'icons keys are imported names'),
58
58
  z
59
59
  .string()
60
- .regex(
61
- /^[a-z][a-zA-Z0-9]*$/u,
62
- 'icons values are icon definition names',
63
- ),
60
+ .regex(/^[a-z][a-zA-Z0-9]*$/u, 'icons values are icon meaning names'),
64
61
  )
65
62
  .optional(),
66
63
  scaffold: z.boolean().optional(),
@@ -55,8 +55,8 @@ declare const receiptSchema: z.ZodObject<{
55
55
  }, z.core.$strict>;
56
56
  declare const handlerSchema: z.ZodObject<{
57
57
  audience: z.ZodEnum<{
58
- public: "public";
59
58
  internal: "internal";
59
+ public: "public";
60
60
  }>;
61
61
  handle: z.ZodType<(report: import("./type.js").GapReport, context: import("./type.js").GapReportHandlerContext) => import("./type.js").GapReportHandlerReceipt | Promise<import("./type.js").GapReportHandlerReceipt>, any, z.core.$ZodTypeInternals<(report: import("./type.js").GapReport, context: import("./type.js").GapReportHandlerContext) => import("./type.js").GapReportHandlerReceipt | Promise<import("./type.js").GapReportHandlerReceipt>, any>>;
62
62
  }, z.core.$strict>;
@@ -1 +1 @@
1
- {"id":"ce3e6d218fa17e7226a709d419083d51b99ce9716a0c1ad907d6f67a5ea360d7"}
1
+ {"id":"14877b9dcac07abff54e7b0183bf8abf0d004675264754f803813c4fd5bde43e"}
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * @file Shared test helper: builds @astryxdesign/core once per run, race-free.
5
5
  * @input Core's sources, translations and build scripts; this checkout's lock
6
- * and run leases in the system temp directory.
6
+ * and run leases in its node_modules/.cache folder.
7
7
  * @output A packages/core/dist whose last output is newer than every source.
8
8
  * @position Called by the node global setup and the build-theme suites.
9
9
  *
@@ -12,9 +12,7 @@
12
12
  */
13
13
 
14
14
  import {execFileSync} from 'node:child_process';
15
- import {createHash} from 'node:crypto';
16
15
  import * as fs from 'node:fs';
17
- import * as os from 'node:os';
18
16
  import * as path from 'node:path';
19
17
  import {fileURLToPath} from 'node:url';
20
18
 
@@ -61,17 +59,25 @@ export const CORE_GENERATED = [
61
59
  path.join(REPO_ROOT, 'packages/core/locales/pseudo.json'),
62
60
  ];
63
61
  /**
64
- * The lock directory (mkdir is atomic across processes) that guards the Core
65
- * build of the checkout at `repoRoot`: one per checkout.
62
+ * A lock directory (mkdir is atomic across processes) named `name`, kept in
63
+ * the checkout at `repoRoot`: the node global setup and every worker read
64
+ * the same path, whatever temp folder each process has.
65
+ * @param {string} repoRoot
66
+ * @param {string} name
67
+ * @returns {string}
68
+ */
69
+ export function checkoutLockDir(repoRoot, name) {
70
+ return path.join(path.resolve(repoRoot), 'node_modules', '.cache', name);
71
+ }
72
+
73
+ /**
74
+ * The lock directory that guards the Core build of the checkout at
75
+ * `repoRoot`: one per checkout, inside it.
66
76
  * @param {string} repoRoot
67
77
  * @returns {string}
68
78
  */
69
79
  export function coreBuildLockDir(repoRoot) {
70
- const key = createHash('sha256')
71
- .update(path.resolve(repoRoot))
72
- .digest('hex')
73
- .slice(0, 16);
74
- return path.join(os.tmpdir(), `astryx-core-build-${key}.lock`);
80
+ return checkoutLockDir(repoRoot, 'astryx-core-build.lock');
75
81
  }
76
82
  const LOCK_DIR = coreBuildLockDir(REPO_ROOT);
77
83
 
@@ -274,6 +280,7 @@ function lockIsHeld(lockDir, staleLockMs) {
274
280
  * @param {number} staleLockMs
275
281
  */
276
282
  function tryAcquire(lockDir, staleLockMs) {
283
+ fs.mkdirSync(path.dirname(lockDir), {recursive: true});
277
284
  try {
278
285
  fs.mkdirSync(lockDir);
279
286
  return true;
@@ -305,7 +305,7 @@ export function registerExperimentalIcon(group, program) {
305
305
  : {}),
306
306
  ...(look
307
307
  ? {
308
- look: `no ${look.asked} look; draws ${look.used ?? 'its one look'}`,
308
+ look: `no ${look.asked} variant; draws ${look.used ?? 'its own export'}`,
309
309
  }
310
310
  : {}),
311
311
  ...(variants.length > 0
@@ -602,14 +602,14 @@ export function registerExperimentalIcon(group, program) {
602
602
  ? [
603
603
  text(
604
604
  variantChanged
605
- ? `[ok] experimental.iconVariant is now "${data.variant}"${data.previousVariant ? ` (it was "${data.previousVariant}")` : ''}: every icon draws its ${data.variant} look where its set has one.`
605
+ ? `[ok] experimental.iconVariant is now "${data.variant}"${data.previousVariant ? ` (it was "${data.previousVariant}")` : ''}: every icon draws its ${data.variant} variant where its set has one.`
606
606
  : `[ok] experimental.iconVariant already names "${data.variant}".`,
607
607
  ),
608
608
  ]
609
609
  : data.previousVariant
610
610
  ? [
611
611
  text(
612
- `[ok] Removed experimental.iconVariant (it was "${data.previousVariant}"): each set draws its default look.`,
612
+ `[ok] Removed experimental.iconVariant (it was "${data.previousVariant}"): each set draws its default variant.`,
613
613
  ),
614
614
  ]
615
615
  : []),
@@ -618,14 +618,14 @@ export function registerExperimentalIcon(group, program) {
618
618
  .map(look =>
619
619
  text(
620
620
  look.variant
621
- ? `[note] ${look.set} declares no "${data.variant}" variant: its icons draw its default look, ${look.variant}.`
622
- : `[note] ${look.set} declares no variants: its icons draw its one look.`,
621
+ ? `[note] ${look.set} declares no "${data.variant}" variant: its icons draw its default variant, ${look.variant}.`
622
+ : `[note] ${look.set} declares no variants, so its icons draw as they are.`,
623
623
  ),
624
624
  ),
625
625
  ...(data.themeMap
626
626
  ? [
627
627
  text(
628
- `A theme draws the built-in icons in this look with \`icons: ${data.themeMap.export}\` (import {${data.themeMap.export}} from '${data.themeMap.module}').`,
628
+ `A theme draws the built-in icons in this variant with \`icons: ${data.themeMap.export}\` (import {${data.themeMap.export}} from '${data.themeMap.module}').`,
629
629
  ),
630
630
  ]
631
631
  : []),
@@ -774,7 +774,7 @@ export function registerExperimentalIcon(group, program) {
774
774
  ...(variant
775
775
  ? [
776
776
  text(
777
- `The set already has this glyph in another look. Add this one as its variant: ${formatCliCommand(variant)}`,
777
+ `The set already has this glyph in another variant. Add this one as its variant: ${formatCliCommand(variant)}`,
778
778
  ),
779
779
  ]
780
780
  : []),