@astryxdesign/cli 0.7.17-canary.gffd1c8e → 0.7.17

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 (1112) hide show
  1. package/CHANGELOG.md +1877 -0
  2. package/README.md +90 -85
  3. package/api/build/_adapter.d.mts +51 -0
  4. package/api/build/_adapter.mjs +133 -8
  5. package/api/build/build.doc.mjs +3 -3
  6. package/api/build/build.mjs +1 -1
  7. package/api/build/build.type.d.mts +1 -1
  8. package/api/build/build.type.mjs +2 -2
  9. package/api/build/help/help.d.mts +15 -14
  10. package/api/build/help/help.mjs +65 -6
  11. package/api/build/kit/kit.mjs +1 -1
  12. package/api/build/kit/start.mjs +1 -1
  13. package/api/component/_adapter.d.mts +28 -4
  14. package/api/component/_adapter.mjs +79 -45
  15. package/api/component/component.d.mts +1 -1
  16. package/api/component/component.mjs +18 -7
  17. package/api/component/detail/blocks/blocks.mjs +1 -2
  18. package/api/component/detail/showcase/showcase.mjs +19 -8
  19. package/api/discover/_adapter.d.mts +68 -5
  20. package/api/discover/_adapter.mjs +311 -63
  21. package/api/discover/_catalog-view.d.mts +22 -0
  22. package/api/discover/_catalog-view.mjs +30 -1
  23. package/api/discover/_icon-set-coverage.d.mts +22 -0
  24. package/api/discover/_icon-set-coverage.mjs +32 -0
  25. package/api/discover/detail/detail.d.mts +6 -3
  26. package/api/discover/detail/detail.mjs +14 -6
  27. package/api/discover/detail/doc/doc.mjs +1 -1
  28. package/api/discover/detail/item/item.d.mts +11 -1
  29. package/api/discover/detail/item/item.mjs +29 -8
  30. package/api/discover/discover.d.mts +36 -0
  31. package/api/discover/discover.doc.mjs +1 -1
  32. package/api/discover/discover.mjs +205 -28
  33. package/api/discover/discover.type.d.mts +33 -7
  34. package/api/discover/discover.type.mjs +21 -7
  35. package/api/discover/search/search.d.mts +22 -0
  36. package/api/discover/search/search.mjs +293 -70
  37. package/api/docs/_adapter.d.mts +92 -1
  38. package/api/docs/_adapter.mjs +264 -14
  39. package/api/docs/docs.d.mts +4 -2
  40. package/api/docs/docs.doc.mjs +10 -0
  41. package/api/docs/docs.mjs +25 -5
  42. package/api/docs/docs.type.d.mts +48 -0
  43. package/api/docs/docs.type.mjs +26 -0
  44. package/api/docs/skills/skills.d.mts +51 -0
  45. package/api/docs/skills/skills.mjs +216 -0
  46. package/api/doctor/_adapter.d.mts +254 -9
  47. package/api/doctor/_adapter.mjs +1228 -50
  48. package/api/doctor/built-checks.d.mts +39 -3
  49. package/api/doctor/built-checks.mjs +203 -7
  50. package/api/doctor/doctor.d.mts +205 -4
  51. package/api/doctor/doctor.doc.mjs +4 -4
  52. package/api/doctor/doctor.mjs +962 -22
  53. package/api/doctor/doctor.type.d.mts +6 -1
  54. package/api/doctor/doctor.type.mjs +3 -1
  55. package/api/doctor/theme-checks.d.mts +20 -1
  56. package/api/doctor/theme-checks.mjs +280 -8
  57. package/api/error.d.mts +12 -1
  58. package/api/error.mjs +18 -6
  59. package/api/icon/_adapter.d.mts +11 -1
  60. package/api/icon/_adapter.mjs +22 -1
  61. package/api/icon/_authoring.mjs +21 -7
  62. package/api/icon/add/add.mjs +1 -1
  63. package/api/icon/definitions/definitions.mjs +19 -8
  64. package/api/icon/icon.doc.mjs +3 -3
  65. package/api/icon/icon.type.d.mts +49 -2
  66. package/api/icon/icon.type.mjs +23 -4
  67. package/api/icon/iconMap.doc.mjs +2 -2
  68. package/api/icon/list/list.mjs +4 -5
  69. package/api/icon/map/map.mjs +13 -4
  70. package/api/icon/search/icon-index.mjs +4 -1
  71. package/api/icon/search/search.d.mts +28 -7
  72. package/api/icon/search/search.mjs +177 -26
  73. package/api/init/_adapter.d.mts +87 -3
  74. package/api/init/_adapter.mjs +264 -16
  75. package/api/init/init.d.mts +2 -2
  76. package/api/init/init.doc.mjs +29 -5
  77. package/api/init/init.mjs +149 -10
  78. package/api/init/init.type.d.mts +75 -9
  79. package/api/init/init.type.mjs +32 -4
  80. package/api/init/remove/remove.d.mts +7 -4
  81. package/api/init/remove/remove.mjs +124 -26
  82. package/api/init/run/run.d.mts +38 -3
  83. package/api/init/run/run.mjs +366 -39
  84. package/api/integration/_adapter.d.mts +16 -0
  85. package/api/integration/_adapter.mjs +45 -1
  86. package/api/integration/integrationCheck.doc.mjs +1 -1
  87. package/api/integration/pack-check.d.mts +2 -1
  88. package/api/integration/pack-check.mjs +10 -18
  89. package/api/integration/validate-integration.d.mts +5 -2
  90. package/api/integration/validate-integration.mjs +81 -14
  91. package/api/integration/validate-integration.type.d.mts +9 -4
  92. package/api/integration/validate-integration.type.mjs +9 -4
  93. package/api/integration/validateIntegration.doc.mjs +4 -2
  94. package/api/render/_adapter.d.mts +6 -2
  95. package/api/render/_adapter.mjs +301 -51
  96. package/api/render/render.doc.d.mts +1 -1
  97. package/api/render/render.doc.mjs +20 -10
  98. package/api/render/render.mjs +16 -13
  99. package/api/render/render.type.d.mts +57 -10
  100. package/api/render/render.type.mjs +26 -13
  101. package/api/search/ORDERING.md +3 -3
  102. package/api/search/_adapter.d.mts +31 -0
  103. package/api/search/_adapter.mjs +107 -15
  104. package/api/search/_candidate-score.d.mts +12 -4
  105. package/api/search/_candidate-score.mjs +94 -16
  106. package/api/search/_cards.json +4 -1
  107. package/api/search/_entries.d.mts +8 -3
  108. package/api/search/_entries.mjs +109 -12
  109. package/api/search/_fit-order.d.mts +8 -4
  110. package/api/search/_fit-order.mjs +35 -7
  111. package/api/search/_gather-docs.mjs +71 -28
  112. package/api/search/_gather-templates.mjs +7 -2
  113. package/api/search/_icons.d.mts +50 -0
  114. package/api/search/_icons.mjs +85 -0
  115. package/api/search/_lexical.d.mts +14 -1
  116. package/api/search/_lexical.mjs +240 -12
  117. package/api/search/_main-searcher.mjs +1 -1
  118. package/api/search/_named-keywords.d.mts +6 -3
  119. package/api/search/_named-keywords.mjs +70 -19
  120. package/api/search/_order.d.mts +27 -12
  121. package/api/search/_order.mjs +132 -51
  122. package/api/search/_result.d.mts +30 -0
  123. package/api/search/_result.mjs +38 -0
  124. package/api/search/_score.d.mts +20 -6
  125. package/api/search/_score.mjs +96 -16
  126. package/api/search/_titles.d.mts +14 -0
  127. package/api/search/_titles.mjs +16 -3
  128. package/api/search/_words.d.mts +8 -0
  129. package/api/search/_words.mjs +26 -1
  130. package/api/search/search-index.mjs +23 -12
  131. package/api/search/search.d.mts +3 -1
  132. package/api/search/search.doc.mjs +5 -4
  133. package/api/search/search.mjs +69 -26
  134. package/api/search/search.type.d.mts +55 -1
  135. package/api/search/search.type.mjs +35 -1
  136. package/api/swizzle/_adapter.d.mts +1 -1
  137. package/api/swizzle/_adapter.mjs +1 -5
  138. package/api/swizzle/_moduleGraph.d.mts +0 -6
  139. package/api/swizzle/_moduleGraph.mjs +0 -12
  140. package/api/swizzle/copy/copy.mjs +1 -1
  141. package/api/template/_adapter.d.mts +46 -0
  142. package/api/template/_adapter.mjs +198 -2
  143. package/api/template/cdn/cdn.mjs +5 -3
  144. package/api/template/copy/copy.d.mts +12 -2
  145. package/api/template/copy/copy.mjs +95 -21
  146. package/api/template/list/list.mjs +1 -2
  147. package/api/template/show/show.d.mts +10 -3
  148. package/api/template/show/show.mjs +17 -6
  149. package/api/template/skeleton/skeleton.mjs +1 -2
  150. package/api/template/template.doc.mjs +3 -3
  151. package/api/template/template.mjs +37 -7
  152. package/api/template/template.type.d.mts +3 -0
  153. package/api/template/template.type.mjs +5 -2
  154. package/api/theme/_adapter.d.mts +28 -2
  155. package/api/theme/_adapter.mjs +675 -17
  156. package/api/theme/_app-provider.d.mts +42 -0
  157. package/api/theme/_app-provider.mjs +61 -27
  158. package/api/theme/_shared-source.d.mts +33 -0
  159. package/api/theme/_shared-source.mjs +348 -0
  160. package/api/theme/add/add.d.mts +3 -0
  161. package/api/theme/add/add.mjs +21 -4
  162. package/api/theme/build/build.d.mts +57 -30
  163. package/api/theme/build/build.mjs +403 -441
  164. package/api/theme/build/core-interception.d.mts +10 -0
  165. package/api/theme/build/core-interception.mjs +24 -0
  166. package/api/theme/build/family.mjs +4 -2
  167. package/api/theme/build/import-specifier.d.mts +14 -0
  168. package/api/theme/build/import-specifier.mjs +36 -0
  169. package/api/theme/build/null-values.d.mts +22 -0
  170. package/api/theme/build/null-values.mjs +110 -21
  171. package/api/theme/build/self-contained.mjs +32 -11
  172. package/api/theme/build/setting-effects.d.mts +254 -0
  173. package/api/theme/build/setting-effects.mjs +1065 -0
  174. package/api/theme/build/style-keys.d.mts +33 -0
  175. package/api/theme/build/style-keys.mjs +154 -0
  176. package/api/theme/build/theme-object.d.mts +47 -0
  177. package/api/theme/build/theme-object.mjs +144 -0
  178. package/api/theme/eject/eject.mjs +6 -1
  179. package/api/theme/palette/generate/color.d.mts +41 -9
  180. package/api/theme/palette/generate/color.mjs +108 -39
  181. package/api/theme/palette/generate/generate.mjs +10 -0
  182. package/api/theme/palette/generate/generator.d.mts +45 -27
  183. package/api/theme/palette/generate/generator.mjs +330 -156
  184. package/api/theme/palette/generate/mapping.d.mts +456 -0
  185. package/api/theme/palette/generate/mapping.mjs +1903 -0
  186. package/api/theme/palette/generate/newer-recipe.d.mts +28 -0
  187. package/api/theme/palette/generate/newer-recipe.mjs +87 -0
  188. package/api/theme/palette/generate/types.d.mts +270 -0
  189. package/api/theme/palette/generate/types.mjs +123 -0
  190. package/api/theme/theme.d.mts +25 -4
  191. package/api/theme/theme.mjs +55 -5
  192. package/api/theme/theme.type.d.mts +71 -2
  193. package/api/theme/theme.type.mjs +37 -5
  194. package/api/theme/themeAdd.doc.mjs +3 -2
  195. package/api/theme/themeBuild.doc.mjs +3 -3
  196. package/api/theme/themeEject.doc.mjs +1 -1
  197. package/api/theme/themeRemove.doc.mjs +1 -1
  198. package/api/theme/themeTargets.doc.mjs +1 -1
  199. package/api/theme-edit/_catalog.mjs +1 -1
  200. package/api/theme-edit/_check.mjs +129 -45
  201. package/api/theme-edit/_color.d.mts +2 -74
  202. package/api/theme-edit/_color.mjs +33 -869
  203. package/api/theme-edit/_context.d.mts +3 -1
  204. package/api/theme-edit/_context.mjs +16 -3
  205. package/api/theme-edit/_css.d.mts +4 -35
  206. package/api/theme-edit/_css.mjs +10 -91
  207. package/api/theme-edit/_edit.mjs +244 -32
  208. package/api/theme-edit/_how-question.d.mts +1 -0
  209. package/api/theme-edit/_how-question.mjs +1188 -52
  210. package/api/theme-edit/_how.mjs +19 -3
  211. package/api/theme-edit/_missed.d.mts +2 -1
  212. package/api/theme-edit/_missed.mjs +21 -2
  213. package/api/theme-edit/_normal.d.mts +5 -2
  214. package/api/theme-edit/_normal.mjs +11 -1
  215. package/api/theme-edit/_palette.d.mts +26 -75
  216. package/api/theme-edit/_palette.mjs +242 -1384
  217. package/api/theme-edit/_part-words.mjs +13 -3
  218. package/api/theme-edit/_parts.d.mts +8 -2
  219. package/api/theme-edit/_parts.mjs +56 -11
  220. package/api/theme-edit/_preview-app.d.mts +16 -0
  221. package/api/theme-edit/_preview-app.mjs +47 -15
  222. package/api/theme-edit/_preview.mjs +49 -22
  223. package/api/theme-edit/_project.d.mts +14 -2
  224. package/api/theme-edit/_project.mjs +25 -3
  225. package/api/theme-edit/_settings.d.mts +3 -2
  226. package/api/theme-edit/_settings.mjs +166 -45
  227. package/api/theme-edit/_tables.d.mts +3 -11
  228. package/api/theme-edit/_tables.mjs +21 -33
  229. package/api/theme-edit/theme-edit.type.d.mts +7 -1
  230. package/api/theme-edit/theme-edit.type.mjs +3 -2
  231. package/api/upgrade/_adapter.d.mts +38 -0
  232. package/api/upgrade/_adapter.mjs +274 -3
  233. package/api/upgrade/run/run.mjs +4 -0
  234. package/api/upgrade/upgrade.mjs +1 -1
  235. package/api/upgrade/upgrade.type.d.mts +46 -7
  236. package/api/upgrade/upgrade.type.mjs +24 -9
  237. package/assets/codemods/registry.mjs +1 -0
  238. package/assets/codemods/transforms/next/index.mjs +1 -11
  239. package/assets/codemods/transforms/v0.7.17/index.mjs +28 -0
  240. package/assets/codemods/transforms/v0.7.17/migrate-item-swipe-actions-to-swipe.mjs +2160 -0
  241. package/assets/codemods/transforms/v0.7.17/preserve-chat-radius.mjs +515 -0
  242. package/assets/component-list.generated.json +1 -1
  243. package/assets/discover/official-packages.json +72 -0
  244. package/assets/docs/author-a-theme.doc.mjs +7 -4
  245. package/assets/docs/getting-started.doc.mjs +1 -1
  246. package/assets/docs/principles.doc.dense.mjs +1 -1
  247. package/assets/docs/principles.doc.mjs +1 -1
  248. package/assets/docs/principles.doc.zh.mjs +1 -1
  249. package/assets/docs/styling-overview.doc.mjs +5 -1
  250. package/assets/docs/tree/agent-guidance.doc.mjs +33 -2
  251. package/assets/docs/tree/check-the-props.doc.mjs +1 -1
  252. package/assets/docs/tree/checks.doc.mjs +1 -1
  253. package/assets/docs/tree/computer-integrations.doc.mjs +1 -1
  254. package/assets/docs/tree/doc-syntax.doc.mjs +1 -1
  255. package/assets/docs/tree/export-pages.doc.mjs +164 -0
  256. package/assets/docs/tree/fonts-and-assets.doc.mjs +1 -1
  257. package/assets/docs/tree/host-entry.doc.mjs +4 -0
  258. package/assets/docs/tree/i18n-library-integration.doc.mjs +7 -3
  259. package/assets/docs/tree/icon-sets.doc.mjs +85 -9
  260. package/assets/docs/tree/layout.doc.mjs +16 -5
  261. package/assets/docs/tree/problems.doc.mjs +2 -2
  262. package/assets/docs/tree/responsive.doc.mjs +2 -2
  263. package/assets/docs/tree/scaffold.doc.mjs +1 -0
  264. package/assets/docs/tree/share-a-page.doc.mjs +14 -16
  265. package/assets/docs/tree/skill-places.doc.mjs +91 -0
  266. package/assets/docs/tree/styling.doc.mjs +41 -3
  267. package/assets/docs/tree/template-grading-rubric.doc.mjs +1 -1
  268. package/assets/docs/tree/test-in-an-app.doc.mjs +1 -1
  269. package/assets/docs/tree/tokens-and-setup.doc.mjs +2 -4
  270. package/assets/docs/tree/tokens-color.doc.mjs +2 -2
  271. package/assets/docs/tree/tokens-radius.doc.mjs +1 -1
  272. package/assets/docs/tree/tokens.doc.mjs +32 -0
  273. package/assets/docs/tree/troubleshooting.doc.mjs +8 -0
  274. package/assets/docs/tree/typography.doc.mjs +31 -2
  275. package/assets/docs/use-a-theme.doc.mjs +4 -0
  276. package/assets/docs/working-with-ai.doc.mjs +4 -4
  277. package/assets/docs-routes.generated.json +1 -1
  278. package/assets/docs.generated.json +2 -2
  279. package/assets/icons/definitions/alert.doc.mjs +9 -0
  280. package/assets/icons/definitions/alignBottom.doc.mjs +1 -0
  281. package/assets/icons/definitions/alignCenter.doc.mjs +1 -0
  282. package/assets/icons/definitions/alignEnd.doc.mjs +1 -0
  283. package/assets/icons/definitions/alignJustify.doc.mjs +1 -0
  284. package/assets/icons/definitions/alignMiddle.doc.mjs +1 -0
  285. package/assets/icons/definitions/alignStart.doc.mjs +1 -0
  286. package/assets/icons/definitions/alignTop.doc.mjs +1 -0
  287. package/assets/icons/definitions/arrowDown.doc.mjs +1 -0
  288. package/assets/icons/definitions/arrowLeft.doc.mjs +1 -0
  289. package/assets/icons/definitions/arrowRight.doc.mjs +1 -0
  290. package/assets/icons/definitions/arrowUp.doc.mjs +1 -0
  291. package/assets/icons/definitions/arrowsUpDown.doc.mjs +1 -0
  292. package/assets/icons/definitions/bank.doc.mjs +1 -0
  293. package/assets/icons/definitions/block.doc.mjs +9 -0
  294. package/assets/icons/definitions/bold.doc.mjs +1 -0
  295. package/assets/icons/definitions/bookmark.doc.mjs +1 -0
  296. package/assets/icons/definitions/bookmarkAdd.doc.mjs +1 -0
  297. package/assets/icons/definitions/cart.doc.mjs +1 -0
  298. package/assets/icons/definitions/channel.doc.mjs +9 -0
  299. package/assets/icons/definitions/check.doc.mjs +1 -0
  300. package/assets/icons/definitions/checkDouble.doc.mjs +1 -0
  301. package/assets/icons/definitions/checklist.doc.mjs +9 -0
  302. package/assets/icons/definitions/chevronDown.doc.mjs +1 -0
  303. package/assets/icons/definitions/chevronLeft.doc.mjs +1 -0
  304. package/assets/icons/definitions/chevronRight.doc.mjs +1 -0
  305. package/assets/icons/definitions/chevronUp.doc.mjs +1 -0
  306. package/assets/icons/definitions/chevronsLeft.doc.mjs +1 -0
  307. package/assets/icons/definitions/chevronsRight.doc.mjs +1 -0
  308. package/assets/icons/definitions/clipboard.doc.mjs +1 -0
  309. package/assets/icons/definitions/cloud.doc.mjs +1 -1
  310. package/assets/icons/definitions/collapse.doc.mjs +1 -0
  311. package/assets/icons/definitions/columnSettings.doc.mjs +9 -0
  312. package/assets/icons/definitions/compose.doc.mjs +1 -0
  313. package/assets/icons/definitions/conversation.doc.mjs +1 -0
  314. package/assets/icons/definitions/copy.doc.mjs +1 -0
  315. package/assets/icons/definitions/copyText.doc.mjs +9 -0
  316. package/assets/icons/definitions/cornerRadius.doc.mjs +1 -0
  317. package/assets/icons/definitions/create.doc.mjs +9 -0
  318. package/assets/icons/definitions/creditCard.doc.mjs +1 -0
  319. package/assets/icons/definitions/currency.doc.mjs +9 -0
  320. package/assets/icons/definitions/cut.doc.mjs +1 -0
  321. package/assets/icons/definitions/desktop.doc.mjs +1 -0
  322. package/assets/icons/definitions/discount.doc.mjs +1 -0
  323. package/assets/icons/definitions/document.doc.mjs +1 -0
  324. package/assets/icons/definitions/documentSearch.doc.mjs +1 -0
  325. package/assets/icons/definitions/download.doc.mjs +1 -0
  326. package/assets/icons/definitions/error.doc.mjs +1 -0
  327. package/assets/icons/definitions/exitFullScreen.doc.mjs +16 -0
  328. package/assets/icons/definitions/expand.doc.mjs +1 -0
  329. package/assets/icons/definitions/eye.doc.mjs +1 -0
  330. package/assets/icons/definitions/eyeSlash.doc.mjs +1 -0
  331. package/assets/icons/definitions/file.doc.mjs +1 -0
  332. package/assets/icons/definitions/flipHorizontal.doc.mjs +1 -0
  333. package/assets/icons/definitions/flipVertical.doc.mjs +1 -0
  334. package/assets/icons/definitions/folder.doc.mjs +1 -0
  335. package/assets/icons/definitions/folderAdd.doc.mjs +1 -0
  336. package/assets/icons/definitions/fullScreen.doc.mjs +16 -0
  337. package/assets/icons/definitions/globe.doc.mjs +1 -1
  338. package/assets/icons/definitions/groupRows.doc.mjs +9 -0
  339. package/assets/icons/definitions/halftone.doc.mjs +9 -0
  340. package/assets/icons/definitions/help.doc.mjs +9 -0
  341. package/assets/icons/definitions/house.doc.mjs +9 -0
  342. package/assets/icons/definitions/info.doc.mjs +1 -0
  343. package/assets/icons/definitions/italic.doc.mjs +1 -0
  344. package/assets/icons/definitions/listView.doc.mjs +9 -0
  345. package/assets/icons/definitions/lock.doc.mjs +1 -0
  346. package/assets/icons/definitions/lowercase.doc.mjs +1 -0
  347. package/assets/icons/definitions/mail.doc.mjs +1 -1
  348. package/assets/icons/definitions/media.doc.mjs +9 -0
  349. package/assets/icons/definitions/message.doc.mjs +2 -1
  350. package/assets/icons/definitions/mobile.doc.mjs +1 -0
  351. package/assets/icons/definitions/money.doc.mjs +1 -0
  352. package/assets/icons/definitions/moon.doc.mjs +1 -0
  353. package/assets/icons/definitions/moveToFolder.doc.mjs +9 -0
  354. package/assets/icons/definitions/notification.doc.mjs +1 -0
  355. package/assets/icons/definitions/notificationActive.doc.mjs +1 -0
  356. package/assets/icons/definitions/notificationOff.doc.mjs +1 -0
  357. package/assets/icons/definitions/paddingHorizontal.doc.mjs +1 -0
  358. package/assets/icons/definitions/paddingPerSide.doc.mjs +1 -0
  359. package/assets/icons/definitions/paddingVertical.doc.mjs +1 -0
  360. package/assets/icons/definitions/panelBottom.doc.mjs +1 -0
  361. package/assets/icons/definitions/panelLeft.doc.mjs +1 -0
  362. package/assets/icons/definitions/panelRight.doc.mjs +1 -0
  363. package/assets/icons/definitions/paste.doc.mjs +9 -0
  364. package/assets/icons/definitions/pause.doc.mjs +1 -0
  365. package/assets/icons/definitions/play.doc.mjs +1 -0
  366. package/assets/icons/definitions/radiusPerCorner.doc.mjs +1 -0
  367. package/assets/icons/definitions/redo.doc.mjs +1 -0
  368. package/assets/icons/definitions/review.doc.mjs +9 -0
  369. package/assets/icons/definitions/rotate.doc.mjs +1 -0
  370. package/assets/icons/definitions/rotateCounterclockwise.doc.mjs +1 -0
  371. package/assets/icons/definitions/scale.doc.mjs +1 -2
  372. package/assets/icons/definitions/schedule.doc.mjs +9 -0
  373. package/assets/icons/definitions/search.doc.mjs +1 -0
  374. package/assets/icons/definitions/send.doc.mjs +1 -0
  375. package/assets/icons/definitions/shoppingBag.doc.mjs +1 -0
  376. package/assets/icons/definitions/signal.doc.mjs +9 -0
  377. package/assets/icons/definitions/stop.doc.mjs +1 -0
  378. package/assets/icons/definitions/strikethrough.doc.mjs +1 -0
  379. package/assets/icons/definitions/success.doc.mjs +1 -0
  380. package/assets/icons/definitions/sun.doc.mjs +1 -0
  381. package/assets/icons/definitions/tablet.doc.mjs +1 -0
  382. package/assets/icons/definitions/team.doc.mjs +9 -0
  383. package/assets/icons/definitions/textCase.doc.mjs +2 -1
  384. package/assets/icons/definitions/textRegular.doc.mjs +1 -0
  385. package/assets/icons/definitions/thumbsDown.doc.mjs +1 -0
  386. package/assets/icons/definitions/thumbsUp.doc.mjs +1 -0
  387. package/assets/icons/definitions/transfer.doc.mjs +1 -0
  388. package/assets/icons/definitions/trendDown.doc.mjs +1 -0
  389. package/assets/icons/definitions/trendUp.doc.mjs +1 -0
  390. package/assets/icons/definitions/underline.doc.mjs +1 -0
  391. package/assets/icons/definitions/undo.doc.mjs +1 -0
  392. package/assets/icons/definitions/unlock.doc.mjs +1 -0
  393. package/assets/icons/definitions/upload.doc.mjs +1 -0
  394. package/assets/icons/definitions/uppercase.doc.mjs +1 -0
  395. package/assets/icons/definitions/user.doc.mjs +1 -0
  396. package/assets/icons/definitions/userAdd.doc.mjs +1 -0
  397. package/assets/icons/definitions/userCircle.doc.mjs +1 -0
  398. package/assets/icons/definitions/userRemove.doc.mjs +1 -0
  399. package/assets/icons/definitions/users.doc.mjs +1 -0
  400. package/assets/icons/definitions/verified.doc.mjs +9 -0
  401. package/assets/icons/definitions/wallet.doc.mjs +1 -0
  402. package/assets/icons/definitions/warning.doc.mjs +1 -0
  403. package/assets/icons/definitions/wrench.doc.mjs +1 -1
  404. package/assets/icons/template-icons.json +661 -0
  405. package/assets/search-catalog.generated.json +2 -2
  406. package/assets/self-audit.generated.json +1 -1
  407. package/assets/templates/blocks/components/AppShell/AppShellShowcase.doc.mjs +0 -7
  408. package/assets/templates/blocks/components/AppShell/AppShellShowcase.tsx +8 -10
  409. package/assets/templates/blocks/components/AppShell/AppShellSideNavOnly.doc.mjs +0 -8
  410. package/assets/templates/blocks/components/AppShell/AppShellSideNavOnly.tsx +10 -8
  411. package/assets/templates/blocks/components/AppShell/AppShellTopNavOnly.doc.mjs +0 -1
  412. package/assets/templates/blocks/components/AppShell/AppShellTopNavOnly.tsx +4 -2
  413. package/assets/templates/blocks/components/AppShell/AppShellTopNavWithSideNav.doc.mjs +0 -8
  414. package/assets/templates/blocks/components/AppShell/AppShellTopNavWithSideNav.tsx +10 -8
  415. package/assets/templates/blocks/components/AppShell/AppShellWithBanner.doc.mjs +0 -8
  416. package/assets/templates/blocks/components/AppShell/AppShellWithBanner.tsx +10 -8
  417. package/assets/templates/blocks/components/AspectRatio/AspectRatioImageGallery.tsx +1 -1
  418. package/assets/templates/blocks/components/AspectRatio/AspectRatioWidescreen.tsx +1 -1
  419. package/assets/templates/blocks/components/AspectRatio/AspectRatioWithSkeleton.tsx +1 -1
  420. package/assets/templates/blocks/components/Avatar/AvatarInteractive.tsx +6 -1
  421. package/assets/templates/blocks/components/Avatar/AvatarShowcase.tsx +1 -1
  422. package/assets/templates/blocks/components/Avatar/AvatarTooltip.tsx +1 -1
  423. package/assets/templates/blocks/components/Avatar/AvatarWithStatus.tsx +1 -1
  424. package/assets/templates/blocks/components/AvatarStatusDot/AvatarStatusDotShowcase.tsx +1 -1
  425. package/assets/templates/blocks/components/AvatarStatusDot/AvatarStatusDotVariants.tsx +1 -1
  426. package/assets/templates/blocks/components/Badge/BadgeShowcase.tsx +2 -2
  427. package/assets/templates/blocks/components/Banner/BannerCollapsibleContent.tsx +14 -1
  428. package/assets/templates/blocks/components/Banner/BannerSectionVariant.tsx +10 -1
  429. package/assets/templates/blocks/components/Banner/BannerWithActionButton.tsx +25 -3
  430. package/assets/templates/blocks/components/BaseTypeahead/BaseTypeaheadCustomSearch.doc.mjs +0 -1
  431. package/assets/templates/blocks/components/BaseTypeahead/BaseTypeaheadCustomSearch.tsx +2 -2
  432. package/assets/templates/blocks/components/BaseTypeahead/BaseTypeaheadMenu.doc.mjs +0 -1
  433. package/assets/templates/blocks/components/BaseTypeahead/BaseTypeaheadMenu.tsx +1 -1
  434. package/assets/templates/blocks/components/BottomSheet/BottomSheetSnapPoints.doc.mjs +0 -8
  435. package/assets/templates/blocks/components/BottomSheet/BottomSheetSnapPoints.tsx +5 -5
  436. package/assets/templates/blocks/components/BreadcrumbItem/BreadcrumbItemShowcase.doc.mjs +0 -1
  437. package/assets/templates/blocks/components/BreadcrumbItem/BreadcrumbItemShowcase.tsx +1 -1
  438. package/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsDeepHierarchy.doc.mjs +0 -1
  439. package/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsDeepHierarchy.tsx +1 -1
  440. package/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsWithIcons.doc.mjs +0 -1
  441. package/assets/templates/blocks/components/Breadcrumbs/BreadcrumbsWithIcons.tsx +2 -2
  442. package/assets/templates/blocks/components/Button/ButtonFloating.doc.mjs +0 -1
  443. package/assets/templates/blocks/components/Button/ButtonFloating.tsx +25 -2
  444. package/assets/templates/blocks/components/Button/ButtonShowcase.tsx +42 -4
  445. package/assets/templates/blocks/components/Button/ButtonSizeVariants.tsx +24 -2
  446. package/assets/templates/blocks/components/Button/ButtonVariants.tsx +28 -1
  447. package/assets/templates/blocks/components/Button/ButtonWithEndSlot.tsx +9 -0
  448. package/assets/templates/blocks/components/Button/ButtonWithIcon.doc.mjs +0 -6
  449. package/assets/templates/blocks/components/Button/ButtonWithIcon.tsx +35 -9
  450. package/assets/templates/blocks/components/ButtonGroup/ButtonGroupBasic.tsx +20 -3
  451. package/assets/templates/blocks/components/ButtonGroup/ButtonGroupFloating.tsx +16 -3
  452. package/assets/templates/blocks/components/ButtonGroup/ButtonGroupShowcase.doc.mjs +0 -6
  453. package/assets/templates/blocks/components/ButtonGroup/ButtonGroupShowcase.tsx +37 -8
  454. package/assets/templates/blocks/components/Center/CenterHorizontal.doc.mjs +0 -8
  455. package/assets/templates/blocks/components/Center/CenterHorizontal.tsx +23 -5
  456. package/assets/templates/blocks/components/Center/CenterInsideACard.doc.mjs +0 -1
  457. package/assets/templates/blocks/components/Center/CenterInsideACard.tsx +1 -1
  458. package/assets/templates/blocks/components/ChatComposer/ChatComposerFlat.doc.mjs +0 -5
  459. package/assets/templates/blocks/components/ChatComposer/ChatComposerFlat.tsx +8 -3
  460. package/assets/templates/blocks/components/ChatComposer/ChatComposerFooterActions.doc.mjs +0 -5
  461. package/assets/templates/blocks/components/ChatComposer/ChatComposerFooterActions.tsx +8 -3
  462. package/assets/templates/blocks/components/ChatComposer/ChatComposerFullFeatured.doc.mjs +0 -7
  463. package/assets/templates/blocks/components/ChatComposer/ChatComposerFullFeatured.tsx +10 -7
  464. package/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerShowcase.doc.mjs +0 -1
  465. package/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerShowcase.tsx +2 -2
  466. package/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerWithProgress.doc.mjs +0 -1
  467. package/assets/templates/blocks/components/ChatComposerDrawer/ChatComposerDrawerWithProgress.tsx +3 -3
  468. package/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataFooter.doc.mjs +0 -6
  469. package/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataFooter.tsx +9 -9
  470. package/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataShowcase.doc.mjs +0 -6
  471. package/assets/templates/blocks/components/ChatMessageMetadata/ChatMessageMetadataShowcase.tsx +10 -10
  472. package/assets/templates/blocks/components/ChatSendButton/ChatSendButtonCustomIcon.doc.mjs +0 -6
  473. package/assets/templates/blocks/components/ChatSendButton/ChatSendButtonCustomIcon.tsx +8 -5
  474. package/assets/templates/blocks/components/ChatSendButton/ChatSendButtonShowcase.doc.mjs +0 -1
  475. package/assets/templates/blocks/components/ChatSendButton/ChatSendButtonShowcase.tsx +1 -1
  476. package/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageStatusUpdates.doc.mjs +0 -5
  477. package/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageStatusUpdates.tsx +7 -7
  478. package/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageWithIcon.doc.mjs +0 -6
  479. package/assets/templates/blocks/components/ChatSystemMessage/ChatSystemMessageWithIcon.tsx +7 -7
  480. package/assets/templates/blocks/components/ContextMenu/ContextMenuBottomSheet.doc.mjs +0 -6
  481. package/assets/templates/blocks/components/ContextMenu/ContextMenuBottomSheet.tsx +7 -7
  482. package/assets/templates/blocks/components/DropdownMenu/DropdownMenuBottomSheet.doc.mjs +0 -6
  483. package/assets/templates/blocks/components/DropdownMenu/DropdownMenuBottomSheet.tsx +7 -7
  484. package/assets/templates/blocks/components/DropdownMenu/DropdownMenuNoChevron.doc.mjs +0 -1
  485. package/assets/templates/blocks/components/DropdownMenu/DropdownMenuNoChevron.tsx +2 -2
  486. package/assets/templates/blocks/components/EmptyState/EmptyStateActions.doc.mjs +0 -1
  487. package/assets/templates/blocks/components/EmptyState/EmptyStateActions.tsx +2 -2
  488. package/assets/templates/blocks/components/EmptyState/EmptyStateCompact.doc.mjs +0 -1
  489. package/assets/templates/blocks/components/EmptyState/EmptyStateCompact.tsx +1 -1
  490. package/assets/templates/blocks/components/EmptyState/EmptyStateContainer.doc.mjs +0 -1
  491. package/assets/templates/blocks/components/EmptyState/EmptyStateContainer.tsx +2 -2
  492. package/assets/templates/blocks/components/EmptyState/EmptyStateShowcase.doc.mjs +0 -1
  493. package/assets/templates/blocks/components/EmptyState/EmptyStateShowcase.tsx +2 -2
  494. package/assets/templates/blocks/components/Grid/GridShowcase.tsx +1 -1
  495. package/assets/templates/blocks/components/GridSpan/GridSpanColumns.tsx +1 -1
  496. package/assets/templates/blocks/components/GridSpan/GridSpanShowcase.tsx +1 -1
  497. package/assets/templates/blocks/components/Heading/HeadingTruncation.tsx +3 -2
  498. package/assets/templates/blocks/components/Hooks/useClipboardHookUsage.tsx +1 -1
  499. package/assets/templates/blocks/components/Hooks/useContainerRevealHookUsage.doc.mjs +0 -1
  500. package/assets/templates/blocks/components/Hooks/useContainerRevealHookUsage.tsx +38 -19
  501. package/assets/templates/blocks/components/Hooks/useGridFocusHookUsage.tsx +6 -6
  502. package/assets/templates/blocks/components/Hooks/useHotkeysHookUsage.tsx +1 -1
  503. package/assets/templates/blocks/components/Hooks/useInputContainerHookUsage.doc.mjs +0 -1
  504. package/assets/templates/blocks/components/Hooks/useInputContainerHookUsage.tsx +2 -2
  505. package/assets/templates/blocks/components/Hooks/useKeyboardHintHookUsage.doc.mjs +0 -1
  506. package/assets/templates/blocks/components/Hooks/useKeyboardHintHookUsage.tsx +2 -2
  507. package/assets/templates/blocks/components/Hooks/useListFocusHookUsage.tsx +8 -1
  508. package/assets/templates/blocks/components/Hooks/useOverflowHookUsage.tsx +17 -6
  509. package/assets/templates/blocks/components/Hooks/useStreamingTextHookUsage.tsx +1 -1
  510. package/assets/templates/blocks/components/Hooks/useTreeFocusHookUsage.doc.mjs +0 -1
  511. package/assets/templates/blocks/components/Hooks/useTreeFocusHookUsage.tsx +1 -1
  512. package/assets/templates/blocks/components/HoverCard/HoverCardInteractiveContent.doc.mjs +0 -1
  513. package/assets/templates/blocks/components/HoverCard/HoverCardInteractiveContent.tsx +1 -1
  514. package/assets/templates/blocks/components/HoverCard/HoverCardProfileHoverCard.doc.mjs +0 -1
  515. package/assets/templates/blocks/components/HoverCard/HoverCardProfileHoverCard.tsx +1 -1
  516. package/assets/templates/blocks/components/Icon/useIconHookUsage.doc.mjs +0 -5
  517. package/assets/templates/blocks/components/Icon/useIconHookUsage.tsx +7 -7
  518. package/assets/templates/blocks/components/IconButton/IconButtonActionBar.tsx +11 -0
  519. package/assets/templates/blocks/components/IconButton/IconButtonFloating.doc.mjs +0 -1
  520. package/assets/templates/blocks/components/IconButton/IconButtonFloating.tsx +25 -2
  521. package/assets/templates/blocks/components/IconButton/IconButtonShowcase.tsx +3 -0
  522. package/assets/templates/blocks/components/IconButton/IconButtonTooltipIconButton.tsx +5 -0
  523. package/assets/templates/blocks/components/InternationalizationProvider/InternationalizationProvider02Overrides.doc.mjs +3 -3
  524. package/assets/templates/blocks/components/InternationalizationProvider/InternationalizationProvider02Overrides.tsx +36 -13
  525. package/assets/templates/blocks/components/Item/ItemDocumentTabs.doc.mjs +0 -1
  526. package/assets/templates/blocks/components/Item/ItemDocumentTabs.tsx +4 -4
  527. package/assets/templates/blocks/components/Item/ItemShowcase.doc.mjs +0 -1
  528. package/assets/templates/blocks/components/Item/ItemShowcase.tsx +7 -3
  529. package/assets/templates/blocks/components/Layout/LayoutBasicCardLayout.tsx +14 -2
  530. package/assets/templates/blocks/components/Layout/LayoutContentWidth.tsx +14 -2
  531. package/assets/templates/blocks/components/Layout/LayoutFullBleedContent.tsx +8 -1
  532. package/assets/templates/blocks/components/Layout/LayoutShowcase.tsx +8 -1
  533. package/assets/templates/blocks/components/Layout/LayoutSidebarLayout.tsx +14 -2
  534. package/assets/templates/blocks/components/LinkProvider/LinkProviderCustomLink.tsx +3 -1
  535. package/assets/templates/blocks/components/Markdown/MarkdownShowcase.tsx +1 -1
  536. package/assets/templates/blocks/components/MediaTheme/MediaThemeImageOverlay.tsx +18 -4
  537. package/assets/templates/blocks/components/MediaTheme/MediaThemeLightScrim.tsx +11 -3
  538. package/assets/templates/blocks/components/MediaTheme/MediaThemeShowcase.tsx +27 -5
  539. package/assets/templates/blocks/components/MobileNav/MobileNavBasicMobileNav.doc.mjs +0 -7
  540. package/assets/templates/blocks/components/MobileNav/MobileNavBasicMobileNav.tsx +5 -9
  541. package/assets/templates/blocks/components/MobileNav/MobileNavEndSideMobileNav.doc.mjs +0 -1
  542. package/assets/templates/blocks/components/MobileNav/MobileNavEndSideMobileNav.tsx +2 -2
  543. package/assets/templates/blocks/components/MobileNav/MobileNavWithoutTitleMobileNav.doc.mjs +0 -1
  544. package/assets/templates/blocks/components/MobileNav/MobileNavWithoutTitleMobileNav.tsx +1 -1
  545. package/assets/templates/blocks/components/MoreMenu/MoreMenuBottomSheet.doc.mjs +0 -6
  546. package/assets/templates/blocks/components/MoreMenu/MoreMenuBottomSheet.tsx +15 -15
  547. package/assets/templates/blocks/components/MoreMenu/MoreMenuWithDividers.doc.mjs +0 -5
  548. package/assets/templates/blocks/components/MoreMenu/MoreMenuWithDividers.tsx +4 -8
  549. package/assets/templates/blocks/components/MoreMenu/MoreMenuWithSections.doc.mjs +0 -5
  550. package/assets/templates/blocks/components/MoreMenu/MoreMenuWithSections.tsx +4 -8
  551. package/assets/templates/blocks/components/MultiSelector/useMultiComboboxHookUsage.doc.mjs +0 -1
  552. package/assets/templates/blocks/components/MultiSelector/useMultiComboboxHookUsage.tsx +1 -1
  553. package/assets/templates/blocks/components/OverflowList/OverflowListCappedToolbar.tsx +38 -2
  554. package/assets/templates/blocks/components/OverflowList/OverflowListCollapseFromStartList.tsx +17 -5
  555. package/assets/templates/blocks/components/OverflowList/OverflowListOverflowDropdownActions.tsx +46 -7
  556. package/assets/templates/blocks/components/OverflowList/OverflowListShowcase.tsx +45 -5
  557. package/assets/templates/blocks/components/Overlay/OverlayHoverReveal.tsx +14 -1
  558. package/assets/templates/blocks/components/Overlay/OverlayShowcase.tsx +10 -1
  559. package/assets/templates/blocks/components/Overlay/useOverlayHookUsage.tsx +12 -1
  560. package/assets/templates/blocks/components/Pagination/PaginationDotsCarousel.doc.mjs +0 -1
  561. package/assets/templates/blocks/components/Pagination/PaginationDotsCarousel.tsx +1 -1
  562. package/assets/templates/blocks/components/Popover/PopoverBottomSheetAlternative.doc.mjs +0 -1
  563. package/assets/templates/blocks/components/Popover/PopoverBottomSheetAlternative.tsx +1 -1
  564. package/assets/templates/blocks/components/Resizable/ResizableShowcase.tsx +12 -2
  565. package/assets/templates/blocks/components/Resizable/ResizableSidebar.tsx +1 -1
  566. package/assets/templates/blocks/components/ScrollableArea/ScrollableAreaInlineRail.tsx +1 -1
  567. package/assets/templates/blocks/components/ScrollableArea/ScrollableAreaOverscrollChaining.tsx +1 -1
  568. package/assets/templates/blocks/components/ScrollableArea/ScrollableAreaShowcase.tsx +1 -1
  569. package/assets/templates/blocks/components/ScrollableArea/ScrollableAreaStickyGroupHeaders.tsx +1 -1
  570. package/assets/templates/blocks/components/ScrollableArea/ScrollableAreaStickyPassthrough.tsx +1 -1
  571. package/assets/templates/blocks/components/ScrollableArea/ScrollableAreaTwoAxisBoard.tsx +1 -1
  572. package/assets/templates/blocks/components/Section/SectionWashHighlight.doc.mjs +0 -1
  573. package/assets/templates/blocks/components/Section/SectionWashHighlight.tsx +10 -2
  574. package/assets/templates/blocks/components/Selector/SelectorOptionDescriptions.doc.mjs +0 -1
  575. package/assets/templates/blocks/components/Selector/SelectorOptionDescriptions.tsx +3 -3
  576. package/assets/templates/blocks/components/SelectorOption/SelectorOptionShowcase.doc.mjs +0 -1
  577. package/assets/templates/blocks/components/SelectorOption/SelectorOptionShowcase.tsx +1 -1
  578. package/assets/templates/blocks/components/Stack/StackAlignment.tsx +50 -6
  579. package/assets/templates/blocks/components/Stack/StackDirections.tsx +1 -1
  580. package/assets/templates/blocks/components/Stack/StackFillItem.tsx +10 -1
  581. package/assets/templates/blocks/components/Step/StepContent.tsx +13 -4
  582. package/assets/templates/blocks/components/Step/StepIndicator.tsx +3 -2
  583. package/assets/templates/blocks/components/Step/StepShowcase.tsx +1 -1
  584. package/assets/templates/blocks/components/Step/StepStates.tsx +3 -2
  585. package/assets/templates/blocks/components/Stepper/StepperCustomContent.tsx +18 -14
  586. package/assets/templates/blocks/components/Stepper/StepperOnTrackHorizontal.tsx +1 -1
  587. package/assets/templates/blocks/components/Table/TableInCard.tsx +1 -1
  588. package/assets/templates/blocks/components/Table/TableShowcase.tsx +1 -1
  589. package/assets/templates/blocks/components/TextArea/TextAreaWithIcon.doc.mjs +0 -1
  590. package/assets/templates/blocks/components/TextArea/TextAreaWithIcon.tsx +2 -2
  591. package/assets/templates/blocks/components/TextInput/TextInputIcon.doc.mjs +0 -1
  592. package/assets/templates/blocks/components/TextInput/TextInputIcon.tsx +3 -7
  593. package/assets/templates/blocks/components/TextInput/TextInputSearch.doc.mjs +0 -1
  594. package/assets/templates/blocks/components/TextInput/TextInputSearch.tsx +3 -3
  595. package/assets/templates/blocks/components/Theme/ThemeApply.tsx +8 -1
  596. package/assets/templates/blocks/components/Theme/ThemeNested.tsx +11 -1
  597. package/assets/templates/blocks/components/Theme/ThemeShowcase.tsx +26 -3
  598. package/assets/templates/blocks/components/Theme/ThemeSwitcher.tsx +8 -1
  599. package/assets/templates/blocks/components/ToggleButton/ToggleButtonColor.doc.mjs +0 -11
  600. package/assets/templates/blocks/components/ToggleButton/ToggleButtonColor.tsx +5 -5
  601. package/assets/templates/blocks/components/ToggleButton/ToggleButtonGroup.doc.mjs +0 -9
  602. package/assets/templates/blocks/components/ToggleButton/ToggleButtonGroup.tsx +5 -9
  603. package/assets/templates/blocks/components/ToggleButton/ToggleButtonIconSwap.doc.mjs +0 -6
  604. package/assets/templates/blocks/components/ToggleButton/ToggleButtonIconSwap.tsx +6 -6
  605. package/assets/templates/blocks/components/ToggleButton/ToggleButtonLabel.doc.mjs +0 -6
  606. package/assets/templates/blocks/components/ToggleButton/ToggleButtonLabel.tsx +3 -3
  607. package/assets/templates/blocks/components/ToggleButton/ToggleButtonShowcase.doc.mjs +0 -6
  608. package/assets/templates/blocks/components/ToggleButton/ToggleButtonShowcase.tsx +6 -6
  609. package/assets/templates/blocks/components/ToggleButton/ToggleButtonStates.doc.mjs +0 -1
  610. package/assets/templates/blocks/components/ToggleButton/ToggleButtonStates.tsx +2 -2
  611. package/assets/templates/blocks/components/Token/TokenIcon.doc.mjs +0 -6
  612. package/assets/templates/blocks/components/Token/TokenIcon.tsx +3 -3
  613. package/assets/templates/blocks/components/Token/TokenShowcase.doc.mjs +0 -1
  614. package/assets/templates/blocks/components/Token/TokenShowcase.tsx +1 -1
  615. package/assets/templates/blocks/components/Tokenizer/TokenizerEndContent.tsx +14 -1
  616. package/assets/templates/blocks/components/Tokenizer/TokenizerIcon.doc.mjs +0 -1
  617. package/assets/templates/blocks/components/Tokenizer/TokenizerIcon.tsx +2 -2
  618. package/assets/templates/blocks/components/Toolbar/ToolbarBulkActions.doc.mjs +0 -1
  619. package/assets/templates/blocks/components/Toolbar/ToolbarBulkActions.tsx +36 -3
  620. package/assets/templates/blocks/components/Toolbar/ToolbarCardHeader.doc.mjs +0 -1
  621. package/assets/templates/blocks/components/Toolbar/ToolbarCardHeader.tsx +4 -3
  622. package/assets/templates/blocks/components/Toolbar/ToolbarSizes.doc.mjs +0 -1
  623. package/assets/templates/blocks/components/Toolbar/ToolbarSizes.tsx +3 -3
  624. package/assets/templates/blocks/components/Toolbar/ToolbarTableFilter.doc.mjs +0 -1
  625. package/assets/templates/blocks/components/Toolbar/ToolbarTableFilter.tsx +8 -3
  626. package/assets/templates/blocks/components/Toolbar/ToolbarThreeSlot.doc.mjs +0 -1
  627. package/assets/templates/blocks/components/Toolbar/ToolbarThreeSlot.tsx +6 -2
  628. package/assets/templates/blocks/components/Toolbar/ToolbarWithTabs.doc.mjs +0 -1
  629. package/assets/templates/blocks/components/Toolbar/ToolbarWithTabs.tsx +11 -2
  630. package/assets/templates/blocks/components/Tooltip/TooltipActionBarTooltips.tsx +33 -3
  631. package/assets/templates/blocks/components/TopNav/TopNavCenteredNavigation.doc.mjs +0 -1
  632. package/assets/templates/blocks/components/TopNav/TopNavCenteredNavigation.tsx +2 -2
  633. package/assets/templates/blocks/components/TopNav/TopNavEnterpriseDashboard.doc.mjs +0 -6
  634. package/assets/templates/blocks/components/TopNav/TopNavEnterpriseDashboard.tsx +7 -7
  635. package/assets/templates/blocks/components/TopNav/TopNavHoverMenu.doc.mjs +0 -8
  636. package/assets/templates/blocks/components/TopNav/TopNavHoverMenu.tsx +14 -9
  637. package/assets/templates/blocks/components/TopNav/TopNavMegaMenu.doc.mjs +0 -8
  638. package/assets/templates/blocks/components/TopNav/TopNavMegaMenu.tsx +11 -11
  639. package/assets/templates/blocks/components/TopNav/TopNavMultipleDropdowns.doc.mjs +0 -5
  640. package/assets/templates/blocks/components/TopNav/TopNavMultipleDropdowns.tsx +4 -8
  641. package/assets/templates/blocks/components/TopNav/TopNavShowcase.doc.mjs +0 -5
  642. package/assets/templates/blocks/components/TopNav/TopNavShowcase.tsx +8 -4
  643. package/assets/templates/blocks/components/TopNav/TopNavWithLogo.doc.mjs +0 -1
  644. package/assets/templates/blocks/components/TopNav/TopNavWithLogo.tsx +7 -2
  645. package/assets/templates/blocks/components/TopNavItem/TopNavItemShowcase.tsx +1 -1
  646. package/assets/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuBasic.doc.mjs +0 -1
  647. package/assets/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuBasic.tsx +4 -4
  648. package/assets/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuShowcase.doc.mjs +0 -7
  649. package/assets/templates/blocks/components/TopNavMegaMenu/TopNavMegaMenuShowcase.tsx +12 -12
  650. package/assets/templates/blocks/components/TopNavMegaMenuItem/TopNavMegaMenuItemBasic.doc.mjs +0 -1
  651. package/assets/templates/blocks/components/TopNavMegaMenuItem/TopNavMegaMenuItemBasic.tsx +2 -2
  652. package/assets/templates/blocks/components/TopNavMenu/TopNavMenuBasic.doc.mjs +0 -1
  653. package/assets/templates/blocks/components/TopNavMenu/TopNavMenuBasic.tsx +4 -4
  654. package/assets/templates/blocks/components/TopNavMenu/TopNavMenuShowcase.doc.mjs +0 -6
  655. package/assets/templates/blocks/components/TopNavMenu/TopNavMenuShowcase.tsx +11 -8
  656. package/assets/templates/blocks/components/TreeList/TreeListFileTreeWithIcons.doc.mjs +0 -1
  657. package/assets/templates/blocks/components/TreeList/TreeListFileTreeWithIcons.tsx +4 -4
  658. package/assets/templates/blocks/components/TreeList/TreeListInteractiveSettings.doc.mjs +0 -1
  659. package/assets/templates/blocks/components/TreeList/TreeListInteractiveSettings.tsx +6 -3
  660. package/assets/templates/blocks/components/Typeahead/TypeaheadSearchField.doc.mjs +0 -1
  661. package/assets/templates/blocks/components/Typeahead/TypeaheadSearchField.tsx +2 -2
  662. package/assets/templates/blocks/components/VisuallyHidden/VisuallyHiddenShowcase.doc.mjs +0 -6
  663. package/assets/templates/blocks/components/VisuallyHidden/VisuallyHiddenShowcase.tsx +30 -7
  664. package/assets/templates/blocks/components/VisuallyHidden/VisuallyHiddenSupplementaryContext.doc.mjs +0 -1
  665. package/assets/templates/blocks/components/VisuallyHidden/VisuallyHiddenSupplementaryContext.tsx +4 -1
  666. package/assets/templates/components.generated.json +1 -1
  667. package/assets/templates/pages/ai-chat/page.tsx +19 -15
  668. package/assets/templates/pages/ai-chat/template.doc.mjs +0 -9
  669. package/assets/templates/pages/ai-chat-landing/page.tsx +16 -16
  670. package/assets/templates/pages/ai-chat-landing/template.doc.mjs +0 -11
  671. package/assets/templates/pages/blank/page.tsx +4 -2
  672. package/assets/templates/pages/canvas-editor/page.tsx +200 -110
  673. package/assets/templates/pages/canvas-editor/template.doc.mjs +0 -46
  674. package/assets/templates/pages/centered-hero/page.tsx +2 -2
  675. package/assets/templates/pages/centered-hero/template.doc.mjs +0 -1
  676. package/assets/templates/pages/checkout-wizard/page.tsx +31 -18
  677. package/assets/templates/pages/checkout-wizard/template.doc.mjs +0 -7
  678. package/assets/templates/pages/classic-gallery/page.tsx +1 -1
  679. package/assets/templates/pages/contact-form/page.tsx +15 -10
  680. package/assets/templates/pages/contact-form/template.doc.mjs +0 -5
  681. package/assets/templates/pages/course-detail/page.tsx +10 -10
  682. package/assets/templates/pages/course-detail/template.doc.mjs +0 -11
  683. package/assets/templates/pages/dashboard/page.tsx +13 -11
  684. package/assets/templates/pages/dashboard/template.doc.mjs +0 -6
  685. package/assets/templates/pages/dashboard-alert-rail/page.tsx +12 -12
  686. package/assets/templates/pages/dashboard-alert-rail/template.doc.mjs +0 -8
  687. package/assets/templates/pages/dashboard-cohort-funnel/page.tsx +7 -13
  688. package/assets/templates/pages/dashboard-cohort-funnel/template.doc.mjs +0 -7
  689. package/assets/templates/pages/dashboard-comparison/page.tsx +12 -10
  690. package/assets/templates/pages/dashboard-comparison/template.doc.mjs +0 -8
  691. package/assets/templates/pages/dashboard-composition/page.tsx +30 -19
  692. package/assets/templates/pages/dashboard-composition/template.doc.mjs +0 -1
  693. package/assets/templates/pages/dashboard-progress/page.tsx +101 -108
  694. package/assets/templates/pages/dashboard-progress/template.doc.mjs +0 -7
  695. package/assets/templates/pages/dashboard-scorecard/page.tsx +61 -33
  696. package/assets/templates/pages/dashboard-scorecard/template.doc.mjs +0 -7
  697. package/assets/templates/pages/detail-page/page.tsx +28 -11
  698. package/assets/templates/pages/detail-page/template.doc.mjs +0 -10
  699. package/assets/templates/pages/documentation/page.tsx +11 -4
  700. package/assets/templates/pages/documentation-design/page.tsx +39 -12
  701. package/assets/templates/pages/documentation-design/template.doc.mjs +0 -5
  702. package/assets/templates/pages/documentation-technical/page.tsx +8 -6
  703. package/assets/templates/pages/documentation-technical/template.doc.mjs +0 -5
  704. package/assets/templates/pages/editor/page.tsx +70 -48
  705. package/assets/templates/pages/editor/template.doc.mjs +0 -26
  706. package/assets/templates/pages/file-explorer/page.tsx +19 -19
  707. package/assets/templates/pages/file-explorer/template.doc.mjs +0 -15
  708. package/assets/templates/pages/form-two-column/page.tsx +1 -1
  709. package/assets/templates/pages/form-wizard/page.tsx +12 -5
  710. package/assets/templates/pages/form-wizard-dialog/page.tsx +6 -2
  711. package/assets/templates/pages/form-wizard-inline/page.tsx +16 -12
  712. package/assets/templates/pages/form-wizard-inline/template.doc.mjs +0 -6
  713. package/assets/templates/pages/form-wizard-vertical/page.tsx +21 -24
  714. package/assets/templates/pages/form-wizard-vertical/template.doc.mjs +0 -13
  715. package/assets/templates/pages/gallery-hero/page.tsx +2 -2
  716. package/assets/templates/pages/gallery-hero/template.doc.mjs +0 -1
  717. package/assets/templates/pages/ide/page.tsx +12 -7
  718. package/assets/templates/pages/ide/template.doc.mjs +0 -5
  719. package/assets/templates/pages/incident-console/page.tsx +4 -4
  720. package/assets/templates/pages/incident-console/template.doc.mjs +0 -1
  721. package/assets/templates/pages/kanban-board/page.tsx +128 -47
  722. package/assets/templates/pages/kanban-board/template.doc.mjs +0 -11
  723. package/assets/templates/pages/library/page.tsx +34 -64
  724. package/assets/templates/pages/library/template.doc.mjs +0 -1
  725. package/assets/templates/pages/login/page.tsx +6 -4
  726. package/assets/templates/pages/login/template.doc.mjs +0 -1
  727. package/assets/templates/pages/login-card/page.tsx +6 -4
  728. package/assets/templates/pages/login-card/template.doc.mjs +0 -1
  729. package/assets/templates/pages/login-split/page.tsx +6 -5
  730. package/assets/templates/pages/login-split/template.doc.mjs +0 -1
  731. package/assets/templates/pages/login-sso/page.tsx +6 -6
  732. package/assets/templates/pages/login-sso/template.doc.mjs +0 -1
  733. package/assets/templates/pages/messaging-shell/page.tsx +14 -14
  734. package/assets/templates/pages/messaging-shell/template.doc.mjs +0 -9
  735. package/assets/templates/pages/mixed-gallery/page.tsx +1 -1
  736. package/assets/templates/pages/payment-form/page.tsx +50 -29
  737. package/assets/templates/pages/payment-form/template.doc.mjs +0 -6
  738. package/assets/templates/pages/product-detail/page.tsx +21 -9
  739. package/assets/templates/pages/product-detail/template.doc.mjs +0 -1
  740. package/assets/templates/pages/product-gallery/page.tsx +3 -3
  741. package/assets/templates/pages/product-gallery/template.doc.mjs +0 -1
  742. package/assets/templates/pages/settings/page.tsx +35 -14
  743. package/assets/templates/pages/settings/template.doc.mjs +0 -1
  744. package/assets/templates/pages/settings-dialog/page.tsx +96 -93
  745. package/assets/templates/pages/settings-dialog/template.doc.mjs +0 -53
  746. package/assets/templates/pages/settings-sidebar/page.tsx +74 -36
  747. package/assets/templates/pages/settings-sidebar/template.doc.mjs +0 -16
  748. package/assets/templates/pages/shell-nav/page.tsx +32 -20
  749. package/assets/templates/pages/shell-nav/template.doc.mjs +0 -6
  750. package/assets/templates/pages/shell-side-nav/page.tsx +23 -22
  751. package/assets/templates/pages/shell-side-nav/template.doc.mjs +0 -11
  752. package/assets/templates/pages/shell-top-nav/page.tsx +13 -13
  753. package/assets/templates/pages/shell-top-nav/template.doc.mjs +0 -19
  754. package/assets/templates/pages/side-gallery/page.tsx +5 -2
  755. package/assets/templates/pages/table/page.tsx +21 -21
  756. package/assets/templates/pages/table/template.doc.mjs +0 -10
  757. package/assets/templates/pages/table-collapsible/page.tsx +8 -8
  758. package/assets/templates/pages/table-collapsible/template.doc.mjs +0 -6
  759. package/assets/templates/pages/table-comparison/page.tsx +23 -23
  760. package/assets/templates/pages/table-comparison/template.doc.mjs +0 -14
  761. package/assets/templates/pages/table-filter/page.tsx +75 -47
  762. package/assets/templates/pages/table-filter/template.doc.mjs +0 -19
  763. package/assets/templates/pages/table-grouped/page.tsx +16 -15
  764. package/assets/templates/pages/table-grouped/template.doc.mjs +0 -11
  765. package/assets/templates/pages/table-inbox/page.tsx +65 -33
  766. package/assets/templates/pages/table-inbox/template.doc.mjs +0 -17
  767. package/assets/templates/pages/table-page/page.tsx +3 -6
  768. package/assets/templates/pages/table-page/template.doc.mjs +0 -1
  769. package/assets/templates/pages/table-tree/page.tsx +35 -35
  770. package/assets/templates/pages/table-tree/template.doc.mjs +0 -15
  771. package/assets/templates/pages/theme-showcase/page.tsx +48 -43
  772. package/assets/templates/pages/theme-showcase/template.doc.mjs +0 -19
  773. package/assets/templates/pages/work-item-detail/page.tsx +60 -33
  774. package/assets/templates/pages/work-item-detail/template.doc.mjs +0 -12
  775. package/assets/templates/themes/butter/butterTheme.ts +50 -9
  776. package/assets/templates/themes/chocolate/chocolateTheme.ts +13 -6
  777. package/assets/templates/themes/gothic/gothicTheme.ts +14 -2
  778. package/assets/templates/themes/matcha/matchaTheme.ts +10 -2
  779. package/assets/templates/themes/neutral/neutralTheme.ts +16 -0
  780. package/assets/templates/themes/stone/stonePaletteRefs.generated.ts +1 -1
  781. package/assets/templates/themes/stone/stoneTheme.ts +32 -10
  782. package/assets/templates/themes/y2k/y2kTheme.ts +11 -3
  783. package/assets/theme.template.ts +17 -7
  784. package/authoring/config/config.doc.mjs +8 -1
  785. package/authoring/config/parse.mjs +15 -0
  786. package/authoring/config/skill-places.d.mts +23 -0
  787. package/authoring/config/skill-places.mjs +35 -0
  788. package/authoring/config/type.ts +16 -0
  789. package/authoring/debug/parse.d.mts +1 -1
  790. package/authoring/debug/type.ts +4 -0
  791. package/authoring/discover/parse.d.mts +2 -1
  792. package/authoring/discover/parse.mjs +73 -38
  793. package/authoring/discover/type.ts +9 -2
  794. package/authoring/doctypes/_schema.d.mts +36 -16
  795. package/authoring/doctypes/_schema.mjs +29 -0
  796. package/authoring/doctypes/base/type.ts +19 -0
  797. package/authoring/doctypes/command/command.doc.mjs +6 -0
  798. package/authoring/doctypes/command/type.ts +7 -0
  799. package/authoring/doctypes/component/component.doc.mjs +1 -1
  800. package/authoring/doctypes/icon-definition/icon-definition.doc.mjs +16 -0
  801. package/authoring/doctypes/icon-definition/parse.mjs +12 -0
  802. package/authoring/doctypes/icon-definition/type.ts +18 -0
  803. package/authoring/doctypes/reference/reference.doc.mjs +13 -0
  804. package/authoring/doctypes/reference/skill.d.mts +29 -0
  805. package/authoring/doctypes/reference/skill.mjs +56 -0
  806. package/authoring/doctypes/reference/type.ts +19 -0
  807. package/authoring/gap-report/parse.d.mts +1 -1
  808. package/authoring/integration/integration.doc.mjs +8 -0
  809. package/authoring/integration/schema.d.mts +21 -3
  810. package/authoring/integration/schema.mjs +25 -5
  811. package/authoring/integration/type.ts +14 -0
  812. package/clients/cli/build-id.generated.json +1 -1
  813. package/clients/cli/commands/build.doc.mjs +1 -1
  814. package/clients/cli/commands/build.mjs +11 -11
  815. package/clients/cli/commands/component.doc.mjs +3 -1
  816. package/clients/cli/commands/component.mjs +7 -3
  817. package/clients/cli/commands/discover.doc.mjs +2 -2
  818. package/clients/cli/commands/discover.mjs +108 -8
  819. package/clients/cli/commands/docs.doc.mjs +7 -2
  820. package/clients/cli/commands/docs.mjs +64 -172
  821. package/clients/cli/commands/doctor-integration-validate.doc.mjs +4 -2
  822. package/clients/cli/commands/doctor.doc.mjs +3 -1
  823. package/clients/cli/commands/doctor.mjs +16 -3
  824. package/clients/cli/commands/experimental/export.mjs +64 -0
  825. package/clients/cli/commands/experimental/icon.mjs +67 -12
  826. package/clients/cli/commands/experimental/import.mjs +70 -0
  827. package/clients/cli/commands/experimental/index.mjs +152 -13
  828. package/clients/cli/commands/experimental/render-output.mjs +242 -0
  829. package/clients/cli/commands/experimental/theme.mjs +34 -13
  830. package/clients/cli/commands/experimental-export.doc.mjs +73 -0
  831. package/clients/cli/commands/experimental-icon.doc.mjs +1 -1
  832. package/clients/cli/commands/experimental-import.doc.mjs +53 -0
  833. package/clients/cli/commands/experimental-theme-add.doc.mjs +1 -1
  834. package/clients/cli/commands/experimental-theme-editor-set.doc.mjs +6 -1
  835. package/clients/cli/commands/experimental-theme.doc.mjs +1 -1
  836. package/clients/cli/commands/experimental.doc.mjs +4 -4
  837. package/clients/cli/commands/init.doc.mjs +34 -14
  838. package/clients/cli/commands/integration-check.doc.mjs +1 -1
  839. package/clients/cli/commands/mcp.doc.mjs +5 -1
  840. package/clients/cli/commands/search.mjs +68 -7
  841. package/clients/cli/commands/template.doc.mjs +14 -5
  842. package/clients/cli/commands/template.mjs +18 -0
  843. package/clients/cli/commands/theme-add.doc.mjs +6 -2
  844. package/clients/cli/commands/theme-remove.doc.mjs +1 -1
  845. package/clients/cli/commands/theme-targets.doc.mjs +1 -1
  846. package/clients/cli/commands/theme.mjs +76 -5
  847. package/clients/cli/commands/upgrade.doc.mjs +2 -1
  848. package/clients/cli/commands.generated.json +1 -1
  849. package/clients/cli/index.mjs +30 -31
  850. package/clients/cli/lib/cli-error.mjs +20 -10
  851. package/clients/cli/lib/component-format.mjs +167 -74
  852. package/clients/cli/lib/define-command.mjs +10 -0
  853. package/clients/cli/lib/hook-format.mjs +28 -24
  854. package/clients/cli/lib/json-shim.mjs +9 -3
  855. package/clients/cli/lib/mcp-tools.mjs +8 -2
  856. package/clients/cli/lib/other-cli-words.mjs +99 -0
  857. package/clients/cli/lib/renamed-commands.mjs +21 -0
  858. package/clients/cli/lib/root-args.mjs +10 -3
  859. package/clients/cli/lib/stray-option.mjs +79 -1
  860. package/clients/cli/lib/unknown-command.mjs +406 -13
  861. package/clients/cli/manifest.generated.json +1 -1
  862. package/clients/cli/run.mjs +27 -0
  863. package/foundation/agent-docs/agent-doc-state.d.mts +20 -2
  864. package/foundation/agent-docs/agent-doc-state.mjs +71 -4
  865. package/foundation/agent-docs/agent-docs.d.mts +43 -4
  866. package/foundation/agent-docs/agent-docs.mjs +54 -5
  867. package/foundation/agent-docs/computer-agent-text.d.mts +28 -14
  868. package/foundation/agent-docs/computer-agent-text.mjs +85 -172
  869. package/foundation/agent-docs/folder-scope.d.mts +51 -0
  870. package/foundation/agent-docs/folder-scope.mjs +86 -0
  871. package/foundation/agent-docs/managed-skill-file.d.mts +115 -0
  872. package/foundation/agent-docs/managed-skill-file.mjs +224 -0
  873. package/foundation/agent-docs/skill-place-files.d.mts +119 -0
  874. package/foundation/agent-docs/skill-place-files.mjs +374 -0
  875. package/foundation/agent-docs/skill-places.d.mts +139 -0
  876. package/foundation/agent-docs/skill-places.mjs +321 -0
  877. package/foundation/color/css-color.d.mts +150 -0
  878. package/foundation/color/css-color.mjs +960 -0
  879. package/foundation/config/config-path.d.mts +2 -2
  880. package/foundation/config/config-path.mjs +5 -6
  881. package/foundation/config/config-writer.d.mts +5 -1
  882. package/foundation/config/config-writer.mjs +20 -4
  883. package/foundation/config/project.d.mts +3 -1
  884. package/foundation/config/project.mjs +8 -5
  885. package/foundation/config/theme-state.d.mts +13 -0
  886. package/foundation/config/theme-state.mjs +28 -0
  887. package/foundation/debug/event.d.mts +2 -1
  888. package/foundation/debug/event.mjs +2 -1
  889. package/foundation/discovery/button-actions.d.mts +220 -0
  890. package/foundation/discovery/button-actions.mjs +1527 -0
  891. package/foundation/discovery/cli-self-docs.d.mts +7 -0
  892. package/foundation/discovery/cli-self-docs.mjs +67 -6
  893. package/foundation/discovery/color-modes.d.mts +14 -0
  894. package/foundation/discovery/color-modes.mjs +53 -0
  895. package/foundation/discovery/command-pointers.d.mts +21 -4
  896. package/foundation/discovery/command-pointers.mjs +25 -4
  897. package/foundation/discovery/component-discovery.d.mts +10 -0
  898. package/foundation/discovery/component-discovery.mjs +99 -43
  899. package/foundation/discovery/component-replacement.d.mts +8 -0
  900. package/foundation/discovery/component-replacement.mjs +13 -0
  901. package/foundation/discovery/core-augmentation-points.d.mts +90 -0
  902. package/foundation/discovery/core-augmentation-points.mjs +1030 -0
  903. package/foundation/discovery/core-component-views.d.mts +15 -0
  904. package/foundation/discovery/core-component-views.mjs +176 -0
  905. package/foundation/discovery/core-elements.d.mts +29 -0
  906. package/foundation/discovery/core-elements.mjs +57 -0
  907. package/foundation/discovery/core-prop-types.d.mts +65 -0
  908. package/foundation/discovery/core-prop-types.mjs +221 -0
  909. package/foundation/discovery/core-props.d.mts +33 -0
  910. package/foundation/discovery/core-props.mjs +64 -0
  911. package/foundation/discovery/doc-types.d.mts +10 -42
  912. package/foundation/discovery/doc-types.mjs +26 -7
  913. package/foundation/discovery/docs-discovery.d.mts +33 -2
  914. package/foundation/discovery/docs-discovery.mjs +149 -72
  915. package/foundation/discovery/docs-section-key.d.mts +21 -1
  916. package/foundation/discovery/docs-section-key.mjs +57 -19
  917. package/foundation/discovery/hook-discovery.d.mts +2 -0
  918. package/foundation/discovery/hook-discovery.mjs +6 -5
  919. package/foundation/discovery/icon-definition-discovery.d.mts +155 -3
  920. package/foundation/discovery/icon-definition-discovery.mjs +197 -5
  921. package/foundation/discovery/icon-imports.d.mts +66 -0
  922. package/foundation/discovery/icon-imports.mjs +225 -0
  923. package/foundation/discovery/icon-ranking.d.mts +108 -4
  924. package/foundation/discovery/icon-ranking.mjs +277 -70
  925. package/foundation/discovery/icon-set-checks.d.mts +2 -0
  926. package/foundation/discovery/icon-set-checks.mjs +16 -2
  927. package/foundation/discovery/icon-set-discovery.d.mts +42 -2
  928. package/foundation/discovery/icon-set-discovery.mjs +85 -23
  929. package/foundation/discovery/icon-set-writer.d.mts +7 -2
  930. package/foundation/discovery/icon-set-writer.mjs +86 -7
  931. package/foundation/discovery/integration-skills.d.mts +62 -0
  932. package/foundation/discovery/integration-skills.mjs +116 -0
  933. package/foundation/discovery/module-exports.d.mts +8 -0
  934. package/foundation/discovery/module-exports.mjs +20 -21
  935. package/foundation/discovery/package-exports.d.mts +22 -0
  936. package/foundation/discovery/package-exports.mjs +44 -3
  937. package/foundation/discovery/project-typescript.d.mts +5 -1
  938. package/foundation/discovery/project-typescript.mjs +8 -2
  939. package/foundation/discovery/prop-drift.d.mts +16 -0
  940. package/foundation/discovery/prop-drift.mjs +154 -3
  941. package/foundation/discovery/replacement-aliases.d.mts +51 -0
  942. package/foundation/discovery/replacement-aliases.mjs +95 -0
  943. package/foundation/discovery/runner-allowlist.d.mts +1 -1
  944. package/foundation/discovery/runner-allowlist.mjs +1 -1
  945. package/foundation/discovery/stored-component-list.mjs +34 -2
  946. package/foundation/discovery/template-adapter.d.mts +26 -0
  947. package/foundation/discovery/template-adapter.mjs +221 -10
  948. package/foundation/discovery/template-destination.d.mts +14 -6
  949. package/foundation/discovery/template-destination.mjs +42 -8
  950. package/foundation/discovery/template-icon-meanings.d.mts +7 -2
  951. package/foundation/discovery/template-icon-meanings.mjs +52 -12
  952. package/foundation/discovery/template-icons.d.mts +44 -1
  953. package/foundation/discovery/template-icons.mjs +60 -63
  954. package/foundation/discovery/template-needs.d.mts +17 -8
  955. package/foundation/discovery/template-needs.mjs +119 -31
  956. package/foundation/discovery/template-placeholders.d.mts +149 -0
  957. package/foundation/discovery/template-placeholders.mjs +463 -0
  958. package/foundation/discovery/template-source-tree.d.mts +6 -3
  959. package/foundation/discovery/template-source-tree.mjs +8 -5
  960. package/foundation/discovery/theme-discovery.d.mts +8 -0
  961. package/foundation/discovery/theme-discovery.mjs +23 -6
  962. package/foundation/discovery/theme-imports.d.mts +1 -3
  963. package/foundation/discovery/theme-imports.mjs +5 -30
  964. package/foundation/doc-compiler/compile.mjs +6 -8
  965. package/foundation/doc-compiler/doc-syntax.d.mts +25 -1
  966. package/foundation/doc-compiler/doc-syntax.mjs +85 -10
  967. package/foundation/doc-compiler/doc-text.d.mts +52 -0
  968. package/foundation/doc-compiler/doc-text.mjs +176 -0
  969. package/foundation/doc-compiler/links.d.mts +8 -2
  970. package/foundation/doc-compiler/links.mjs +27 -6
  971. package/foundation/doc-compiler/read.d.mts +1 -1
  972. package/foundation/doc-compiler/stored-docs.d.mts +14 -3
  973. package/foundation/doc-compiler/stored-docs.mjs +12 -6
  974. package/foundation/env/cli-command.d.mts +68 -10
  975. package/foundation/env/cli-command.mjs +116 -22
  976. package/foundation/env/package-manager.d.mts +33 -2
  977. package/foundation/env/package-manager.mjs +68 -6
  978. package/foundation/env/user-dirs.d.mts +14 -0
  979. package/foundation/env/user-dirs.mjs +34 -1
  980. package/foundation/env/user-settings.d.mts +15 -0
  981. package/foundation/env/user-settings.mjs +56 -2
  982. package/foundation/fonts/font-stylesheet.d.mts +11 -0
  983. package/foundation/fonts/font-stylesheet.mjs +62 -7
  984. package/foundation/fs/cache-eviction.d.mts +7 -5
  985. package/foundation/fs/cache-eviction.mjs +20 -13
  986. package/foundation/fs/empty-folder.d.mts +12 -0
  987. package/foundation/fs/empty-folder.mjs +30 -0
  988. package/foundation/fs/file-protection.d.mts +11 -0
  989. package/foundation/fs/file-protection.mjs +49 -3
  990. package/foundation/fs/gather-cache.d.mts +14 -7
  991. package/foundation/fs/gather-cache.mjs +163 -67
  992. package/foundation/fs/import-url.d.mts +7 -5
  993. package/foundation/fs/import-url.mjs +7 -5
  994. package/foundation/fs/jiti-cache.d.mts +47 -26
  995. package/foundation/fs/jiti-cache.mjs +222 -130
  996. package/foundation/fs/loaded-files.d.mts +15 -1
  997. package/foundation/fs/loaded-files.mjs +40 -3
  998. package/foundation/fs/module-loader.d.mts +3 -1
  999. package/foundation/fs/module-loader.mjs +85 -5
  1000. package/foundation/fs/path-safety.d.mts +1 -0
  1001. package/foundation/fs/path-safety.mjs +2 -0
  1002. package/foundation/fs/relative-specifier.d.mts +10 -0
  1003. package/foundation/fs/relative-specifier.mjs +28 -0
  1004. package/foundation/integrations/computer-integrations.mjs +11 -10
  1005. package/foundation/integrations/icon-features.d.mts +1 -1
  1006. package/foundation/integrations/icon-features.mjs +1 -1
  1007. package/foundation/integrations/integration-warnings.d.mts +10 -0
  1008. package/foundation/integrations/integration-warnings.mjs +12 -3
  1009. package/foundation/integrations/integrations.d.mts +16 -2
  1010. package/foundation/integrations/integrations.mjs +50 -8
  1011. package/foundation/integrations/may-have-integrations.mjs +7 -6
  1012. package/foundation/integrations/provider-resolution.mjs +19 -2
  1013. package/foundation/integrations/validate-contributions.d.mts +4 -0
  1014. package/foundation/integrations/validate-contributions.mjs +24 -0
  1015. package/foundation/release/agent-text-worker.mjs +33 -1
  1016. package/foundation/release/cache.d.mts +48 -3
  1017. package/foundation/release/cache.mjs +196 -20
  1018. package/foundation/release/choose.d.mts +5 -2
  1019. package/foundation/release/choose.mjs +54 -4
  1020. package/foundation/release/global-state.mjs +10 -2
  1021. package/foundation/release/handoff.mjs +7 -1
  1022. package/foundation/release/notices.d.mts +97 -9
  1023. package/foundation/release/notices.mjs +381 -56
  1024. package/foundation/release/project.d.mts +21 -4
  1025. package/foundation/release/project.mjs +74 -42
  1026. package/foundation/release/run-context.d.mts +6 -0
  1027. package/foundation/release/run-context.mjs +9 -0
  1028. package/foundation/render/assets.d.mts +7 -0
  1029. package/foundation/render/assets.mjs +30 -17
  1030. package/foundation/render/charts.d.mts +11 -10
  1031. package/foundation/render/charts.mjs +112 -1
  1032. package/foundation/render/class-alias.d.mts +23 -0
  1033. package/foundation/render/class-alias.mjs +333 -0
  1034. package/foundation/render/client-bundle.d.mts +183 -0
  1035. package/foundation/render/client-bundle.mjs +1026 -0
  1036. package/foundation/render/component-map.mjs +1 -1
  1037. package/foundation/render/css-cut.d.mts +26 -0
  1038. package/foundation/render/css-cut.mjs +344 -2
  1039. package/foundation/render/dropped-text.d.mts +43 -0
  1040. package/foundation/render/dropped-text.mjs +90 -0
  1041. package/foundation/render/embedded-files.d.mts +24 -1
  1042. package/foundation/render/embedded-files.mjs +41 -4
  1043. package/foundation/render/embedded-imports.d.mts +72 -12
  1044. package/foundation/render/embedded-imports.mjs +206 -70
  1045. package/foundation/render/esbuild-dependency.d.mts +14 -0
  1046. package/foundation/render/esbuild-dependency.mjs +41 -0
  1047. package/foundation/render/file-header.d.mts +7 -2
  1048. package/foundation/render/file-header.mjs +19 -10
  1049. package/foundation/render/html-reader.d.mts +36 -17
  1050. package/foundation/render/html-reader.mjs +239 -32
  1051. package/foundation/render/image-attributes.d.mts +25 -0
  1052. package/foundation/render/image-attributes.mjs +33 -0
  1053. package/foundation/render/markup-edits.mjs +1 -1
  1054. package/foundation/render/package-resolve-hooks.d.mts +54 -0
  1055. package/foundation/render/package-resolve-hooks.mjs +144 -0
  1056. package/foundation/render/page-host.mjs +1 -1
  1057. package/foundation/render/page-worker.mjs +1307 -107
  1058. package/foundation/render/picture-chrome.mjs +13 -1
  1059. package/foundation/render/picture-playwright.mjs +13 -0
  1060. package/foundation/render/picture-window.d.mts +18 -5
  1061. package/foundation/render/picture-window.mjs +211 -19
  1062. package/foundation/render/rebuild.mjs +2 -2
  1063. package/foundation/render/remote-images.d.mts +83 -0
  1064. package/foundation/render/remote-images.mjs +384 -0
  1065. package/foundation/render/render-page.d.mts +214 -6
  1066. package/foundation/render/render-page.mjs +1673 -163
  1067. package/foundation/render/restore-folder.d.mts +13 -0
  1068. package/foundation/render/restore-folder.mjs +30 -0
  1069. package/foundation/render/served-packages.d.mts +14 -1
  1070. package/foundation/render/served-packages.mjs +50 -6
  1071. package/foundation/render/share-checks.d.mts +35 -0
  1072. package/foundation/render/share-checks.mjs +95 -0
  1073. package/foundation/render/source-block.d.mts +14 -3
  1074. package/foundation/render/source-block.mjs +44 -9
  1075. package/foundation/render/srcset.d.mts +32 -0
  1076. package/foundation/render/srcset.mjs +64 -0
  1077. package/foundation/render/ts-paths.d.mts +52 -1
  1078. package/foundation/render/ts-paths.mjs +114 -4
  1079. package/foundation/render/value-uses.d.mts +43 -0
  1080. package/foundation/render/value-uses.mjs +110 -0
  1081. package/foundation/response/error-codes.d.mts +2 -1
  1082. package/foundation/response/error-codes.doc.mjs +16 -10
  1083. package/foundation/response/error-codes.mjs +19 -8
  1084. package/foundation/response/json.d.mts +0 -15
  1085. package/foundation/response/json.mjs +1 -51
  1086. package/foundation/response/response-types.doc.mjs +24 -13
  1087. package/foundation/runtime/css-tree.d.mts +16 -0
  1088. package/foundation/runtime/css-tree.mjs +46 -3
  1089. package/foundation/runtime/lazy-dependencies.d.mts +7 -0
  1090. package/foundation/runtime/lazy-dependencies.mjs +25 -3
  1091. package/foundation/runtime/locked-versions.d.mts +4 -2
  1092. package/foundation/runtime/locked-versions.mjs +18 -10
  1093. package/foundation/runtime/package-root.d.mts +25 -0
  1094. package/foundation/runtime/package-root.mjs +48 -0
  1095. package/foundation/runtime/word-table.d.mts +18 -0
  1096. package/foundation/runtime/word-table.mjs +33 -0
  1097. package/foundation/suggest/other-command.d.mts +23 -0
  1098. package/foundation/suggest/other-command.mjs +49 -5
  1099. package/foundation/text/default-variant.d.mts +20 -0
  1100. package/foundation/text/default-variant.mjs +24 -0
  1101. package/foundation/text/definition-coverage.d.mts +21 -0
  1102. package/foundation/text/definition-coverage.mjs +20 -0
  1103. package/foundation/text/icon-set-next.d.mts +11 -10
  1104. package/foundation/text/icon-set-next.mjs +19 -11
  1105. package/foundation/text/string-utils.mjs +14 -41
  1106. package/foundation/text/suggest-order.d.mts +10 -4
  1107. package/foundation/text/suggest-order.mjs +20 -13
  1108. package/package.json +8 -6
  1109. package/assets/codemods/transforms/next/migrate-item-swipe-actions-to-swipe.mjs +0 -394
  1110. package/assets/docs/tree/render-pages.doc.mjs +0 -135
  1111. package/clients/cli/commands/experimental/render.mjs +0 -154
  1112. package/clients/cli/commands/experimental-render.doc.mjs +0 -73
@@ -0,0 +1,164 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /**
4
+ * @file `astryx docs cli/experimental/export-pages`: turn a page into one
5
+ * self-contained HTML file to share or embed, and turn that file back into
6
+ * the page.
7
+ */
8
+
9
+ /** @type {import('@astryxdesign/cli/authoring').ReferenceDoc} */
10
+ export const docs = {
11
+ type: 'generic',
12
+ name: 'export-pages',
13
+ placement: {parent: 'namespace:experimental', slot: 'guides', order: 20},
14
+ stability: 'experimental',
15
+ searchable: true,
16
+ title: 'Pages as one HTML file',
17
+ category: 'guide',
18
+ keywords: [
19
+ 'render',
20
+ 'export',
21
+ 'static html',
22
+ 'single file',
23
+ 'artifact',
24
+ 'share a page',
25
+ 'snapshot',
26
+ 'sandboxed iframe',
27
+ 'reverse',
28
+ 'unrender',
29
+ 'version',
30
+ 'hand edits',
31
+ ],
32
+ description:
33
+ 'Experimental. Render a page to one self-contained HTML file for sharing or embedding, and get the page back from it.',
34
+ sections: [
35
+ {
36
+ id: 'experimental',
37
+ title: 'Experimental',
38
+ content: [
39
+ {
40
+ type: 'prose',
41
+ text: 'This command is experimental, as everything under `astryx docs cli/experimental` is: its options, its output file and its JSON may still change. Nothing else in the CLI changes because it exists.',
42
+ },
43
+ ],
44
+ },
45
+ {
46
+ id: 'make-a-file',
47
+ title: 'Make a file to share',
48
+ content: [
49
+ {
50
+ type: 'prose',
51
+ text: 'Build the page with Astryx components as usual, then render it. A page that uses no Astryx components or styles (its modules import nothing from an Astryx package, directly, through a local component or a re-export, or lazily, and it imports no Astryx stylesheet) is refused with `ERR_RENDER_NOT_ASTRYX` and nothing is written: don\u2019t add Astryx to such an app to export it; share the page with the app\u2019s own build instead (for a Vite app, a single-file build). The page module needs a default export; it renders on your machine with the React and Astryx packages your project installed. Outside a project (no Astryx Core or CLI installed or declared for the folder), it renders with the Astryx, React and StyleX that the CLI itself runs with, so a single page file renders anywhere, a React app included. A tool that runs the CLI for you through its host entry can also list packages in the `package.json` beside that CLI, such as the icon library that templates import. A page outside a project uses the packages listed there under `dependencies` or `optionalDependencies` too, and `template` does not ask you to install them.',
52
+ },
53
+ {
54
+ type: 'code',
55
+ lang: 'bash',
56
+ code: 'astryx experimental export src/app/page.tsx --out page.html',
57
+ },
58
+ {
59
+ type: 'prose',
60
+ text: 'The result is ONE file with nothing beside it: the markup, the CSS rules the page can use (from Core and from any stylesheet it imports, such as a theme), the page\u2019s own StyleX styles and those of any package that ships StyleX source instead of compiled styles, local images as data: URIs, and the page\u2019s own script (see The page\u2019s script). The file\u2019s CSS keeps only the web font faces that a character in the page, its stylesheet or its script can use. Text that the file cannot know when you export it draws in the next font of its font list when no kept face covers it: text a reader types, text the script builds from character codes, and dates, numbers and date-field placeholders that the browser writes in the reader\u2019s or the page\u2019s locale. An image named from the site\u2019s root (`/pics/shoe.png`) comes from the site\u2019s `public/` folder, and `--reverse` puts it back there. That folder is the project\u2019s `public/`; when the project has none, it is the nearest `public/` above the page, inside the project (or, outside a project, inside the folder you run the command from). For `experimental import`, it also carries every image, font or media file (up to 8 MB each) that a carried module or stylesheet names by a relative path inside the folder that holds the carried files, also when the page does not show it. It loads nothing from the network, so it opens from disk, attaches to a message, and displays inside a sandboxed frame that blocks the network; a frame that also blocks scripts shows the rendered markup. An image the page names by an `https` address comes along too (see Images from the web). Colors follow the viewer\u2019s light or dark setting, and a `data-theme` of `light` or `dark` on the root element picks one. A page whose root theme draws in one mode by the stylesheets the page imports (a built theme\u2019s compiled stylesheet, directly or through an `@import`, or the page\u2019s own CSS) keeps it; a theme passed to `Theme` unbuilt injects its CSS at run time, which the export does not read. A theme that exports `colorModes` keeps the modes it lists: one mode stays in it, and both follow the viewer. Without that export, a theme whose root sets an opaque light page, dark text, or both stays light, and one whose root sets an opaque dark page, light text, or both stays dark, in any viewer. A theme whose page and text colors disagree, that sets one the export cannot fix, such as a `var()`, or that sets any page or text color under a light or dark condition (`prefers-color-scheme`, a `data-theme` rule, or a `.light` or `.dark` class) leaves the viewer\u2019s scheme to decide. The file also carries the source of the page and of every local module, stylesheet, JSON file and image it imports, so whoever you share it with can read that code; keep secrets out of what the page imports.',
61
+ },
62
+ {
63
+ type: 'prose',
64
+ text: "What the markup cannot keep: anything that needs a browser while running. State, effects, click handlers and data loaded after the first paint come from the page\u2019s script once it runs (see The page\u2019s script), so a viewer that blocks scripts shows none of them. Charts made with recharts are the exception: the render draws each chart and ResponsiveContainer a module of the page (not an installed package) imports from recharts by name (`import {LineChart} from 'recharts'`), inside the page, so a custom tick, label or shape sees the page's React context. A chart sized by its container is drawn at a set of widths, and the file shows the drawing nearest the width the reader's browser gives it, with no script. The widths run from 60 pixels (a sparkline in a narrow table cell) to 1920 (a chart across a wide screen), each the square root of two times the one before, so the drawing shown scales by at most the fourth root of two (about 1.19) either way. The chart keeps the height the page gives it (a number, the width over `aspect`, or its share of the height that the box it fills states in its own style) and fits that box whole, so its text stays within a fifth of its own size. A box whose height comes from a stylesheet gives no height the render can read: the chart is drawn 300 pixels high and fits inside the box, scaled down in a shorter box (its text shrinks with it) and with empty space above and below in a taller one. Each such chart carries eleven drawings, so it takes several times the room in the file that one drawing takes. A legend keeps the place its props give it, in a chart of either kind. Charts show the data and props of the page's first render, before its effects run: when the page cannot be drawn again without a browser, or its effects change its charts or re-render the component that makes them, each chart is drawn by itself and its parts see React context defaults. A value a chart's parts read from a React context that an effect changes may still show its later value. A `chart-size` warning counts the charts the render cannot draw (one used through `import * as R`, say), and says when charts were drawn by themselves. It also counts SVG drawings that scale to their box with text that would show under 10 px on a 375 px phone. Read browser-only values such as window inside an effect, or the render stops with ERR_RENDER_BROWSER_API.",
65
+ },
66
+ ],
67
+ },
68
+ {
69
+ id: 'warnings',
70
+ title: 'Read the warnings',
71
+ content: [
72
+ {
73
+ type: 'prose',
74
+ text: 'Each warning names something that may look different from what you meant, and what to change. The most common is a component that ignores its children: `<ListItem>Save</ListItem>` renders an empty row because ListItem takes `label="Save"`. An `unknown-prop-value` warning names a value a Core component\u2019s prop does not have, with the file and line: `<Button variant="danger">` draws no variant\u2019s look, because Button\u2019s variants are primary, secondary, ghost and destructive. Values your themes add to a prop, such as a theme\u2019s own Button variant, count as values it has. Others flag a remote image the render could not fetch, and why (a sandboxed viewer cannot load it; save the image next to the page and import it), a `<script>`, `<link>` or `<iframe>` the page itself renders (the file promises to run and load nothing, so remove them), missing images, and output the page printed while rendering. A `screen-query` warning names each media query the page asks in JavaScript (Core\'s `useMediaQuery`, or `matchMedia`): the file runs no script, so readers on every screen get the answer the page got on the server. Fold such a layout with CSS instead: `Grid` with `columns={{minWidth}}`, or a StyleX `@media` or `@container` style. A `node-crash` warning names a Node build that crashes in `Intl.Segmenter` (its version and path). The page rendered without it, so the output may differ slightly: initials and character counts (such as Avatar initials) can split a joined emoji, a flag, or a letter written with a separate accent mark. Names in ordinary composed letters (`José`, `Zoë`, `李小龙`) come out the same. Render with an official Node.js build to remove the difference.',
75
+ },
76
+ ],
77
+ },
78
+ {
79
+ id: 'remote-images',
80
+ title: 'Images from the web',
81
+ content: [
82
+ {
83
+ type: 'prose',
84
+ text: 'An image the page names by an `https` address (an `<img>`\u2019s or an `<input>`\u2019s `src`, an `<img>`\u2019s or a `<source>`\u2019s `srcset`, a `<video>`\u2019s `poster`, or a CSS `url()`) is fetched once while the page renders, and the file carries it as a data: URI, so it shows in a viewer that blocks the network. The same goes for an image the page shows only later (after a click, in the next view), when the page\u2019s own code writes its address whole: an address an element shows as an image (the same `src`, `srcSet` and `poster`), written there or in a variable the same file reads there (`<img src={logoUrl}>`); an address whose path ends in an image extension; or one a name says is an image: a component\u2019s or an object\u2019s `src`, `srcSet` or `poster`, or a property or attribute whose name names an image: one of the name\u2019s words is avatar, image, img, photo, picture, thumbnail, thumb, logo, icon, cover, banner, poster or background, singular or plural (`avatarUrl` and `cover_images` count; `logoutUrl` does not). An address written only where an element takes it for something else, such as an `<iframe>`\u2019s or a `<video>`\u2019s `src`, is not fetched, even when its path names an image, and the file puts no carried data in such an attribute. Nor is an address whose path names a type that is never an image (`clip.mp4`). The page\u2019s script keeps every address as the page wrote it, so a link, a text and the URL API read the page\u2019s own address. Where the browser takes an image\u2019s address (the same attributes, or a CSS `url()` in a style the script sets), the file gives it the carried data instead. An address the code gives a fragment gets the carried image too; one it gives another query (`${hero}?w=640`, or the URL API\u2019s `searchParams`) can name another image, so the file asks the network for it. A link\u2019s address written in `href`, directly or through a variable that only links read, is never fetched, even when it names an image file. An address that counts only by a name (`imageUploadUrl`, an object\u2019s `src`) can be an API\u2019s or a player\u2019s: when its answer is another type (an API\u2019s JSON, a page), the result lists it with why, and the fetch adds no warning. Any other address the script draws later warns when its fetch fails, as in the first paint. No other address is fetched. An image address the code builds from parts where a whole one would count (a template or `+` chain that starts with `https://`, such as `https://cdn.example.com/${id}.png` in an `<img>`\u2019s `src`) cannot be carried: a warning names it, its file and its line. An address built any other way, such as from a variable that holds the host, is neither carried nor warned. The render sends no cookies or credentials with the request, takes only an image (by its type and its bytes) up to 8 MB, and gives each image 2 seconds to answer and 5 to arrive, and all of them 15. When the network answers none of the first images the render asks for, it asks for no more, so a machine with no network loses about 2 seconds. When a fetch fails (no network, no answer in time, not an image, too large, or an address that is not `https`), the page keeps the address and the render warns, naming why, except for an address that counts only by a name, as above. The JSON result lists every address fetched (`remoteImages.fetched`) and every one that was not, with why (`remoteImages.failed`); the text names the first ten of each and counts the rest. The page\u2019s source keeps the addresses, so `--reverse` gives back the page as written, and a render later fetches the images again.',
85
+ },
86
+ {
87
+ type: 'prose',
88
+ text: 'An image the file carries travels with it: anyone who has the file can see it, also after the address stops working or changes. Keep images that are not for everyone out of a page you share.',
89
+ },
90
+ ],
91
+ },
92
+ {
93
+ id: 'interactive',
94
+ title: 'The page\u2019s script',
95
+ content: [
96
+ {
97
+ type: 'prose',
98
+ text: 'The file carries the page\u2019s own script: the page\u2019s modules and the packages they use, bundled for the browser, inline after the embedded source. The file paints the rendered markup first; then the script draws the live page over it, so state, effects, click handlers, popovers, menus, dialogs, tabs and forms work as in the app, and a layout the page picks with `useMediaQuery` fits the reader\u2019s screen once the script runs. The render adds no network request and no `eval`, so the file works in a sandboxed viewer frame that allows scripts, under a content security policy that allows inline scripts. A link out of the file opens in a new tab, since a viewer\u2019s frame cannot follow it. A form submits through its submit event, which the file fires itself: a viewer\u2019s frame may block form submission, and a file has no server to send a form to. React and the page\u2019s modules add about 0.4 to 1 MB to a page, and up to 2 MB to a page with charts. The note at the file\u2019s top says it runs a script.',
99
+ },
100
+ {
101
+ type: 'prose',
102
+ text: 'esbuild builds the script. It is a dependency of the CLI that only this command loads, so no other command starts slower for it. A page whose script cannot be built for the browser (it imports `fs` or `path`, say) stops with ERR_RENDER_SCRIPT, which names the module, and nothing is written. A sandboxed frame can still block what the page itself does on load or on a click, such as a remote image, storage (`localStorage`, `sessionStorage`, cookies), an `alert()`, or moving focus before the reader acts. When the page\u2019s script throws, in its render or in an effect (a cookie write in a frame that blocks cookies, say), the file keeps showing its first paint. Storage works there in memory, so a page that saves to it keeps working.',
103
+ },
104
+ ],
105
+ },
106
+ {
107
+ id: 'get-it-back',
108
+ title: 'Get the page back',
109
+ content: [
110
+ {
111
+ type: 'code',
112
+ lang: 'bash',
113
+ code: 'astryx experimental import page.html --out page.tsx',
114
+ },
115
+ {
116
+ type: 'prose',
117
+ text: 'This is the way back (unrender). Every rendered file carries its source, so this writes the page back byte for byte; edit it and render again. A file whose source block was removed but whose markup came from Astryx components is rebuilt from that markup instead: the components, their recorded props and the text come back, while styling, icons and behavior do not, so treat it as a starting point. HTML that was never an Astryx page is refused with ERR_RENDER_NOT_ASTRYX; describe the page to `astryx build` to start one.',
118
+ },
119
+ {
120
+ type: 'prose',
121
+ text: "It writes the page, the modules, stylesheets and JSON files the page reaches through its own imports, and the images, fonts and media the render carried (however the page named them, as long as their bytes really are one): each goes where the page's relative imports find it from wherever you put the page, and a file the page imports through a path alias (`@/components/Header`) goes where your project's `tsconfig.json` or `jsconfig.json` alias points. Every file but the page goes inside the one new folder the restore creates (the topmost folder on the page's path that does not exist yet), never into a folder that already exists: a page that imports other files comes back into a new folder (`--out restored/app/page.tsx`), and a file it imports through a path alias comes back where that alias points only when that place is inside the new folder. When your alias points at a file you already have, the page uses that file if it, and every file it imports, is byte for byte the page's copy (`aliased.sameAsProject`); otherwise the page's copy comes back in its own layout inside the new folder, and the result names the file your alias reaches today (`aliased.differs`). The `paths` entries it gives apply to your whole project, so it also names the narrower fix: the relative import each restored file can use instead (`instead`). Where no alias of yours names such an import, the file also comes back in the page's own layout inside the new folder, and the result (`aliased`) names each such import, the whole `paths` the page needs to build (the entries your config has now, with the new ones), and the tsconfig.json or jsconfig.json they belong in. Only an import that cannot be a package name or a package's own subpath import is followed this way (`@/…`, `~/…`), so a received file can never remap a package or your own imports. Nor does it write a file that a test, story or benchmark runner would run by its default patterns (Jest, Vitest, Bun, AVA, Playwright, Storybook, Cypress and `node --test`: names such as `*.test.*`, `*.spec.*`, `*_test.*`, `*-test.*`, `*.bench.*`, `*.stories.*`, `*.cy.*`, and anything under `test/`, `tests/` or `__tests__/`), judged from the repository root (every folder above the file up to it), else the topmost folder with a package.json. Restored files are the sender's code: read them before you run or import them. Without `--out`, everything comes back into a new folder beside the HTML file, named after it (`page.html` comes back into `page-restored/`). A received file that carries anything else (a file the page never imports, a dotfile, `package.json`, a tool configuration, a path that leaves the folder) is refused with nothing written. A rendered file that lost its embedded source on the way (a sanitizer or an editor strips `<script>` blocks) and has no Astryx components to rebuild from is refused with `ERR_RENDER_SOURCE_DAMAGED`, as is a rendered file cut short before its embedded source, and a file a merge left with conflict markers (keep the whole file from one side, or render the merged page again). An existing file is never replaced unless you pass `--overwrite`, and the refusal names every one; a generated, vendored or ignored file, and any path through a symbolic link, is not written even then. Add `--json` for the result as data: what was written, how big it is, and every warning.",
122
+ },
123
+ ],
124
+ },
125
+ {
126
+ id: 'file-notes',
127
+ title: 'What the file says about itself',
128
+ content: [
129
+ {
130
+ type: 'prose',
131
+ text: 'A rendered file explains itself to whoever opens it next, a person or an agent with no other context. A plain note at its top names the CLI version and render format that made it, the page\u2019s path in its project, the files it carries, and the packages it rendered with and their versions. It then gives the exact commands, pinned to that CLI version with `npx @astryxdesign/cli@<version>`, that get the source back, and the one that renders the restored page over the same file again. A short note after the embedded source repeats the first command for a reader who starts at the end. The embedded source records the same facts as JSON.',
132
+ },
133
+ {
134
+ type: 'prose',
135
+ text: 'Change a page through its source, not through the HTML: the carried source never sees edits made to the markup. A render replaces an HTML file only when a render wrote it, so rendering the restored page with `--out` over the old file is safe.',
136
+ },
137
+ ],
138
+ },
139
+ {
140
+ id: 'changed-after-render',
141
+ title: 'Edits made to the HTML',
142
+ content: [
143
+ {
144
+ type: 'prose',
145
+ text: 'The embedded source also keeps checksums of the markup and the styles, the text of the markup and the title, as rendered. When someone edits the HTML after the render, `experimental import` still writes the page as rendered, and the result says `edited: true` and lists each run of text that changed, the title first: what it was, what it is now, and the restored file and line that hold the old text when it appears there once. `stylesEdited: true` says the styles changed. Make the same changes in the restored files, then render again. A change to attributes, elements or formatting alone shows as `edited: true` with no text changes.',
146
+ },
147
+ ],
148
+ },
149
+ {
150
+ id: 'versions',
151
+ title: 'Across CLI versions',
152
+ content: [
153
+ {
154
+ type: 'prose',
155
+ text: 'The embedded source carries a render format number. Every CLI reads each format up to its own, and a new optional field never changes the number, so an older CLI keeps reading files a newer one writes. A file that carries a kind of file an older CLI does not take (an `.mts`, `.cts` or `.cjs` module, or a module or JSON file named like configuration, such as `config.ts` or `data/config.json`) says format 2. A file whose modules import a TypeScript file by its JavaScript name through a relative import (`./fmt.js` for `fmt.ts`), which older CLIs cannot follow, says format 3. Every other file says format 1. A file in a newer format than the running CLI reads is refused with `ERR_RENDER_NEWER_FORMAT`, and the message names the CLI version that wrote it, which reads it. A file from an older CLI carries no note, but its `generator` meta names the version that wrote it, and `experimental import` reports that version as `renderedBy`.',
156
+ },
157
+ {
158
+ type: 'prose',
159
+ text: 'The note names the Core version the page was written for. To bring restored code to a project on a newer Core, run that project\u2019s own upgrade over the restored folder: `astryx upgrade --from <that version> --path <restored folder> --apply`.',
160
+ },
161
+ ],
162
+ },
163
+ ],
164
+ };
@@ -61,7 +61,7 @@ export const oceanTheme = defineTheme({
61
61
  },
62
62
  {
63
63
  type: 'prose',
64
- text: 'The stylesheet can contain self-hosted `@font-face` rules or import a hosted stylesheet. A hosted `@import` is simple, but it delays loading compared with a preconnected `<link>`; choose that trade-off deliberately. Doctor warns when it cannot prove the loader — a hosted `@import`, or no font stylesheet while the app loads the family itself — but the warning does not fail the app.',
64
+ text: "The stylesheet can contain self-hosted `@font-face` rules or import a hosted stylesheet. A hosted `@import` is simple, but it delays loading compared with a preconnected `<link>`; choose that trade-off deliberately. Doctor warns when it cannot prove the loader, such as a hosted `@import`, but the warning does not fail the app. A Google Fonts or Bunny Fonts stylesheet `<link>` in the app's page head (`index.html`, or a Next.js root layout or `_document`) counts as loading the families it names.",
65
65
  },
66
66
  {
67
67
  type: 'code',
@@ -86,6 +86,10 @@ export const docs = {
86
86
  ],
87
87
  ],
88
88
  },
89
+ {
90
+ type: 'prose',
91
+ text: 'Outside a project, a run can also use each package that the `package.json` of the folder holding your CLI lists in `dependencies` or `optionalDependencies`, such as an icon library your pages import. A page resolves its imports of them there, and `{@command template}`, `{@command build}` and `{@command theme eject}` do not name them as missing.',
92
+ },
89
93
  ],
90
94
  },
91
95
  {
@@ -12,7 +12,11 @@ export const docs = {
12
12
  type: 'generic',
13
13
  name: 'i18n-library-integration',
14
14
  title: 'Library Integration',
15
- placement: {parent: 'namespace:internationalization', slot: 'guides', order: 20},
15
+ placement: {
16
+ parent: 'namespace:internationalization',
17
+ slot: 'guides',
18
+ order: 20,
19
+ },
16
20
  category: 'guide',
17
21
  description:
18
22
  "Override astryx's default text, coexist with react-intl / i18next / next-intl / LinguiJS, or use astryx as your i18n library.",
@@ -31,7 +35,7 @@ export const docs = {
31
35
  content: [
32
36
  {
33
37
  type: 'prose',
34
- text: 'Use `overrides` to change individual strings without shipping a full catalog. Overrides are keyed by locale and merged on top of the built-in and user-supplied catalogs.',
38
+ text: 'Use `overrides` to change individual Astryx strings across your app without shipping a full catalog. Overrides are keyed by locale and merged on top of the built-in and user-supplied catalogs.',
35
39
  },
36
40
  {
37
41
  type: 'code',
@@ -46,7 +50,7 @@ export const docs = {
46
50
  },
47
51
  {
48
52
  type: 'prose',
49
- text: 'Overrides win over both bundled English and any `messages` catalog for the same key. Use them for brand voice tweaks or one-off wording changes.',
53
+ text: 'Overrides win over both bundled English and any `messages` catalog for the same key, for every component in the subtree. Use them to change Astryx wording across your app, such as brand voice. To reword one component, use its prop for that string when it has one, such as `placeholder`, `emptySearchText` or `cancelLabel`: the prop replaces the default in every locale, and other instances keep it.',
50
54
  },
51
55
  ],
52
56
  },
@@ -22,9 +22,11 @@ export const docs = {
22
22
  'icon definition',
23
23
  'icons.json',
24
24
  'integration icons',
25
+ 'icon pack',
26
+ 'local icon set',
25
27
  ],
26
28
  description:
27
- 'Ship an icon set: register each icon against an icon definition, so apps find icons by meaning and templates use your icons.',
29
+ 'Ship an icon set, or make one inside your app: register each icon against an icon definition, so apps find icons by meaning and templates use your icons.',
28
30
  sections: [
29
31
  {
30
32
  id: 'experimental',
@@ -32,7 +34,7 @@ export const docs = {
32
34
  content: [
33
35
  {
34
36
  type: 'prose',
35
- text: 'Icon sets are experimental: the `astryx experimental icon` commands, the `experimental.iconSet` key in astryx.config, the `experimental.iconSets` key in an integration manifest, the data file, icon definitions, and the output and JSON of all of them can change, or go away, in any patch release without a deprecation period. A project that installs no icon-set package and does not set `experimental.iconSet` sees no change in any stable command, apart from: the marked `experimental` group in help and in `astryx manifest` (its command, and its `responseTypes` and `jsonSupported` entries); the marked experimental entries in the CLI reference listings; and a search for \"experimental\", which also finds the stable `stability` field of the field reference. Installing a package that ships icon sets turns icon features on, with or without `experimental.iconSet`: discover, doctor, `astryx doctor integration validate <package>`, and the icons topic ({@link generic:icons}) read the installed sets. Copied templates follow a set only once `experimental.iconSet` names it. `astryx search` never returns icons or these docs; to find an icon by meaning, use `astryx experimental icon <words>`.',
37
+ text: 'Icon sets are experimental: the `astryx experimental icon` commands, the `experimental.iconSet` key in astryx.config, the `experimental.iconSets` key in an integration manifest, the data file, icon definitions, and the output and JSON of all of them can change, or go away, in any patch release without a deprecation period. A project that installs no icon-set package and does not set `experimental.iconSet` sees no change in any stable command, apart from: the marked `experimental` group in help and in `astryx manifest` (its command, and its `responseTypes` and `jsonSupported` entries); the marked experimental entries in the CLI reference listings; a search for \"experimental\", which also finds the stable `stability` field of the field reference; and `astryx discover`, which lists the icon sets your sources offer that you could add, so you can compare them before you pick one. Installing a package that ships icon sets turns icon features on, with or without `experimental.iconSet`: discover, doctor, `astryx doctor integration validate <package>`, and the icons topic ({@link generic:icons}) read the installed sets. Copied templates follow a set only once `experimental.iconSet` names it. `astryx search` never returns these docs. Where icon features are on, `astryx search` answers an icon ask too. An icon ask is a query that uses the word `icon` or `icons`, names an installed icon set, or writes an icon\'s export name, as in `trash icon`, `heroicons trash` or `SearchIcon`. Two cases ask for no icon: a word that is the exact name of a component or hook (`Icon`, `NavIcon`, `IconButton`), and an `icon` or `icons` right after `with` (only `a`, `an` or `the` between) that no `of` or `for` follows, when the results hold a component or template (`card with an icon`; `card with an icon of a star` still asks). Search then lists up to three installed icons that the ask\'s words find, in its own `icons` block after its results; its `results` and `matchCount` never hold an icon, and a search with `--type` lists none. To see every icon that matches, use `astryx experimental icon <words>`.',
36
38
  },
37
39
  ],
38
40
  },
@@ -42,7 +44,23 @@ export const docs = {
42
44
  content: [
43
45
  {
44
46
  type: 'prose',
45
- text: 'Astryx keeps a list of icon definitions: one file per meaning, like `close` or `delete` (`astryx docs cli/experimental/icon-definitions`). An icon set registers which of its icons draws each definition, in the `map` of its data file; one icon may draw several definitions (`file` and `document` can both be your `document` icon). Templates say which definition each of their icons draws, so a project that uses your set gets your icon for every definition you map. Every set maps the built-in definitions, the names Core renders itself.',
47
+ text: 'Astryx owns the meanings; libraries own the drawings. Astryx ships one icon definition per meaning, like `close`, `delete` or `search`: a camelCase name, one sentence that says the job the icon does, and a few words people use for it (`astryx docs cli/experimental/icon-definitions`). A definition names no library and no drawing, so any library can draw it its own way.',
48
+ },
49
+ {
50
+ type: 'prose',
51
+ text: "A library maps its icons onto the definitions where it already lives: in its own package, or in the integration package that already ships for it. Run `astryx experimental icon new-set` there: the set's data file says which icon draws each definition (its `map`), and the package's entry exports the icons. No separate add-on package is needed, and Astryx needs no change. One icon may draw several definitions (`file` and `document` can both be your `document` icon). Every set maps the built-in definitions, the names Core renders itself.",
52
+ },
53
+ {
54
+ type: 'prose',
55
+ text: 'When your library draws something no definition covers, add the meaning in the same package: `astryx experimental icon new-definition <name> --description ... --words ... --icon <id>`, or `--new-definition` on `experimental icon add`. It hooks in like an Astryx definition: `astryx experimental icon` answers to its name and words, and once the package is installed the definitions list shows it with the package that ships it. It maps only within your set; to offer it to every set, see Share a definition with every set.',
56
+ },
57
+ {
58
+ type: 'prose',
59
+ text: "An agent asks by meaning: `astryx experimental icon <words>`. The icon a set maps to the definition those words name comes first, from the project's main set before its backups, with the exact import line. Related icons stay findable by their own words and definitions and rank after it: `search` answers with the set's search icon first, while `find in document` answers with the set's icon for `documentSearch`, where the set maps one. So ask for the job the icon does, take the first match, and paste its import. Templates work the same way: each declares the definition its icons draw, so a project that switches sets gets the new set's icon for every definition that set maps.",
60
+ },
61
+ {
62
+ type: 'prose',
63
+ text: 'Related meanings belong to a `group`, such as `notifications` for `notification`, `notificationActive` and `notificationOff`. A match in `astryx experimental icon` lists the other meanings of its group as `relatives`, so an agent that asked for the bell sees that "mute" has a meaning of its own; a group never changes which icon comes first. A meaning can also declare `replaces`, naming an older meaning it takes the place of: the old name keeps answering, in an icon set\'s `map`, in a template\'s `icons` and in the search, and `integration check` names each `map` key to rename. A meaning your icon set adds may join an Astryx group or start its own, and may replace another of your own meanings, never an Astryx one.',
46
64
  },
47
65
  {
48
66
  type: 'prose',
@@ -50,6 +68,59 @@ export const docs = {
50
68
  },
51
69
  ],
52
70
  },
71
+ {
72
+ id: 'in-your-app',
73
+ title: 'Make a set inside your app',
74
+ content: [
75
+ {
76
+ type: 'prose',
77
+ text: "When no published icon set fits, make one in your own app. The app's package can hold the set, so you make and install no other package, and nothing is published. In the app's folder, with Heroicons as the example:",
78
+ },
79
+ {
80
+ type: 'code',
81
+ lang: 'bash',
82
+ code: `npm install @heroicons/react
83
+ astryx experimental icon new-set heroicons --from @heroicons/react/24/outline
84
+ # Add the entry the receipt names: index.js, index.d.ts, and package.json "main", "types", "exports".
85
+ astryx integration check
86
+ # One pair for every definition the check lists:
87
+ astryx experimental icon map --pairs close=x-mark,search=magnifying-glass
88
+ astryx integration check
89
+ astryx experimental icon use heroicons`,
90
+ },
91
+ {
92
+ type: 'prose',
93
+ text: "`new-set` wraps every icon of the library, writes the set in `icon-sets/`, and declares it in `astryx.integration.mjs`. The set's icons import from your app's package name, so add the entry its receipt names before the first check: `index.js` and `index.d.ts`, each with `export * from './icon-sets/heroicons/heroicons.generated.js';`, and `main`, `types`, and `exports` in package.json. A package can import itself by name through its `exports`, so your code and copied templates find the icons. `integration check` lists each built-in definition the set does not map yet, with a suggested icon when one fits. Check each meaning, then map them all in one `map --pairs` run; when the library has no icon for a meaning, map the closest one. When the check passes, `use` makes the set the app's main set: `astryx experimental icon <meaning>` finds its icons, and copied templates follow it.",
94
+ },
95
+ {
96
+ type: 'prose',
97
+ text: "Core components draw their own icons (close, chevrons, status) from the theme. To draw them from your set too, extend the app's theme in code with the set's theme map, imported by your app's package name, and pass the result to `<Theme>`:",
98
+ },
99
+ {
100
+ type: 'code',
101
+ lang: 'tsx',
102
+ code: `import {defineTheme} from '@astryxdesign/core/theme';
103
+ import {Theme} from '@astryxdesign/core/theme';
104
+ import {themeIcons} from 'app'; // your app's package name
105
+ import {themes, defaultThemeSlug} from './astryx-themes';
106
+
107
+ const appTheme = defineTheme({
108
+ name: 'app',
109
+ extends: themes[defaultThemeSlug],
110
+ icons: themeIcons,
111
+ });
112
+
113
+ // Where the app renders its root:
114
+ <Theme theme={appTheme}>
115
+ <App />
116
+ </Theme>;`,
117
+ },
118
+ {
119
+ type: 'prose',
120
+ text: 'An app that is never published sets `"private": true` in package.json. The receipt then leaves out the steps for a published package: peers, the `typecheck` script, the strict check, and the description. To keep the set apart from your app code, run the same commands in a folder with its own private package.json, install that folder in the app (`npm install ./icons`), and run `use` in the app.',
121
+ },
122
+ ],
123
+ },
53
124
  {
54
125
  id: 'add-an-icon-set',
55
126
  title: 'Add an icon set',
@@ -65,7 +136,7 @@ export const docs = {
65
136
  },
66
137
  {
67
138
  type: 'prose',
68
- text: "The set's icons import from your package by name, so your package's entry must re-export the generated module. The command writes only the set's own files: your entry, `exports`, `main`, `types`, `files`, peers, and scripts are yours, and the receipt names each change to make as text to copy. For an entry file in the package (and the declaration file package.json names) that is the line `export * from './icon-sets/outline/outline.generated.js';`, relative to it; for a package with no entry, `index.js` and `index.d.ts` with that line and the package.json `main`, `types`, and `exports` that name them; for a built or CommonJS entry, the line to add to the source it is built from. `integration check` names the same change until you make it, and the receipt also names the peers and the `typecheck` script to add. `integration check --strict` type-checks the set's doc files with your package's TypeScript; the receipt says when it is missing (`npm install -D typescript@6`).",
139
+ text: "The set's icons import from your package by name, so your package's entry must re-export the generated module. The command writes only the set's own files: your entry, `exports`, `main`, `types`, `files`, peers, and scripts are yours, and the receipt names each change to make as text to copy. For an entry file in the package (and the declaration file package.json names) that is the line `export * from './icon-sets/outline/outline.generated.js';`, relative to it; for a package with no entry, `index.js` and `index.d.ts` with that line and the package.json `main`, `types`, and `exports` that name them; for a built or CommonJS entry, the line to add to the source it is built from. `integration check` names the same change until you make it, and, for a package that is not private, the receipt also names the peers and the `typecheck` script to add. `integration check --strict` type-checks the set's doc files with your package's TypeScript; the receipt says when it is missing (`npm install -D typescript@6`).",
69
140
  },
70
141
  ],
71
142
  },
@@ -241,7 +312,7 @@ for (const [name, Icon] of Object.entries(icons)) {
241
312
  },
242
313
  {
243
314
  type: 'prose',
244
- text: 'An export that is not a component goes through your adapter: a function in your package that turns it into one. Pass it to `experimental icon new-set` as `--adapter ./src/adapt.js#adapt`, which declares it in the data file as `"adapter": {"module": "./src/adapt.js", "export": "adapt"}`; with `--from`, every data export becomes an icon through it, and `experimental icon add` writes `export const RocketIcon = adaptIcon(RocketIconSource);`:',
315
+ text: 'An export that is not a component goes through your adapter: a function in your package that turns it into one. Pass it to `experimental icon new-set` as `--adapter ./src/adapt.js#adapt`, which declares it in the data file as `"adapter": {"module": "./src/adapt.js", "export": "adapt"}`; with `--from`, every data export becomes an icon through it, and `experimental icon add` writes `export const RocketIcon = /* @__PURE__ */ adaptIcon(RocketIconSource);` (the mark lets a bundler drop the icons an app does not use, so the adapter must only build the component, with no other effect):',
245
316
  },
246
317
  {
247
318
  type: 'code',
@@ -300,6 +371,7 @@ export const brand = defineTheme({name: 'brand', icons: themeIcons});`,
300
371
  '`icon_builtin_definition_missing` (error): a built-in definition is not in `map`.',
301
372
  '`icon_definition_unused` (warning): a definition you declared is not in `map`.',
302
373
  "`icon_definition_shadowed` (warning): a definition you declared now exists in Astryx; map to Astryx's and remove yours.",
374
+ '`icon_definition_replaced` (warning): a `map` key names a definition that another definition replaced. The entry maps the new definition; rename the key (any `experimental icon map` run writes it).',
303
375
  '`icon_module_not_public` (error), `icon_export_name` (warning), `icon_not_component` (error): the export contract above.',
304
376
  '`icon_export_missing` (error): an export, the generated module, or the adapter does not exist.',
305
377
  "`icon_module_invalid` (error): the set's module, a file it re-exports, or the generated module does not parse; reported once, instead of a missing export per icon.",
@@ -514,7 +586,7 @@ export const brand = defineTheme({name: 'brand', icons: themeIconsFilled});`,
514
586
  content: [
515
587
  {
516
588
  type: 'prose',
517
- text: 'Every place the CLI reads or reports icon sets, all experimental. Outside `astryx experimental icon`, each appears only in a project that installs an icon-set package or sets `experimental.iconSet`; `astryx search` never returns icons:',
589
+ text: 'Every place the CLI reads or reports icon sets, all experimental. Outside `astryx experimental icon`, each appears only in a project that installs an icon-set package or sets `experimental.iconSet`, and `astryx search` shows icons only in their own block after its results:',
518
590
  },
519
591
  {
520
592
  type: 'table',
@@ -522,7 +594,7 @@ export const brand = defineTheme({name: 'brand', icons: themeIconsFilled});`,
522
594
  rows: [
523
595
  [
524
596
  '`experimental.iconSet` in astryx.config',
525
- "The project's main icon set, by set name or as `<package>/<set>`, or a list: the main set first, then backup sets in order. Templates follow icon sets only when it is set. Discover and doctor read them when it is set or when an icon-set package is installed. `astryx experimental icon` ranks the main set's icons first, and without it treats the only installed set as the project's. `astryx experimental icon use <main> --backup <set>` writes it.",
597
+ "The project's main icon set, by set name or as `<package>/<set>`, or a list: the main set first, then backup sets in order. Templates follow icon sets only when it is set. Discover and doctor read installed sets when it is set or when an icon-set package is installed; discover lists the sets your sources offer either way. `astryx experimental icon` ranks the main set's icons first, and without it treats the only installed set as the project's. `astryx experimental icon use <main> --backup <set>` writes it.",
526
598
  ],
527
599
  [
528
600
  '`experimental.iconVariant` in astryx.config',
@@ -536,13 +608,17 @@ export const brand = defineTheme({name: 'brand', icons: themeIconsFilled});`,
536
608
  "A template descriptor's `icons`",
537
609
  "The icon definition each imported icon draws (`{TrashIcon: 'delete'}`): a named import by the name it imports, a default import by its local name. `astryx template`, shown or copied, then writes the icons from the first set in the list that has each meaning and reports `icons` (status, set, order, variant, mapped, placeholder, kept, sets): every key is mapped, a placeholder when no set has its meaning, or kept with why (a namespace or type-only import, a re-export, an Astryx import or one from a set in the list, an import from the library a set in the list wraps, no import at all, or an icon that draws no definition and has no match). `integration check` notes a key the template's source never imports (`template_icon_not_imported`), never failing, and notes an imported icon the package's templates do not declare (`template_icon_undeclared`), which fails `--strict --next`.",
538
610
  ],
611
+ [
612
+ '`astryx search`',
613
+ "A search with no `--type` answers an icon ask: a query that uses the word `icon` or `icons`, names an installed icon set, or writes an icon's export name, as in `trash icon`, `heroicons trash` or `SearchIcon`. It lists up to three installed icons that the ask's words find, in an `icons` block after its results, ranked as `astryx experimental icon <words>` ranks them, each with its import line and the command that reads it. An `icon` or `icons` right after `with`, with only `a`, `an` or `the` between, that no `of` or `for` follows names a feature of a component or template the search answers, so `card with an icon` lists no icons and `card with an icon of a star` does. The results and their count never hold an icon, and a search with `--type` lists none.",
614
+ ],
539
615
  [
540
616
  '`astryx discover`',
541
- "A package's sets (`iconSets`) and, for `@scope/name/<set>`, the set's display name, license, icon count, and definitions; `--type icon-set` keeps only sets.",
617
+ "A package's sets (`iconSets`) and, for `@scope/name/<set>`, the set's display name, license, icon count, and definitions. A set your sources offer is listed where icon features are off too, marked experimental: `[experimental]` in text; in JSON, `experimental: true` on a search match and the set page, and `experimentalFields: ['iconSets']` on a package entry; its page says how many of the CLI's icon definitions it maps, of how many (`definitions: N/M` in the text view, the count `experimental icon --list` prints), when the source lists its definitions, and gives the command that installs its package, and `astryx experimental icon use <set>` to pick it; its definitions and `--type icon-set` need the opt-in.",
542
618
  ],
543
619
  [
544
620
  '`astryx doctor`',
545
- 'In an app, the `icon-sets` check: fails when `experimental.iconSet` names a set, main or backup, that is not installed, was withdrawn (an invalid set, or one whose module does not resolve), or that two packages ship by that name, saying why; fails when more than one set is installed and the list leaves one out; fails when `experimental.iconVariant` names a variant the main set does not declare; and warns when another installed set was withdrawn. When a main set is decided (the one `experimental.iconSet` names, or the only installed set), the `icon-placeholders` check warns while copied code uses the placeholder for a missing icon, naming each file and meaning. In your icon-set package, check with `astryx integration check` instead: plain `doctor` diagnoses an app.',
621
+ 'In an app, the `icon-sets` check: fails when `experimental.iconSet` names a set, main or backup, that is not installed, was withdrawn (an invalid set, or one whose module does not resolve), or that two packages ship by that name, saying why; fails when more than one set is installed and the list leaves one out; fails when `experimental.iconVariant` names a variant the main set does not declare; and warns when another installed set was withdrawn. When a main set is decided (the one `experimental.iconSet` names, or the only installed set), the `icon-placeholders` check warns while copied code uses the placeholder for a missing icon, naming each file and meaning, and the `icon-imports` check names each file and import that does not match your list after you change it or uninstall a set, with the icon of your list that draws the same meaning: it warns for an icon from a set your list leaves out, or from a backup when an earlier set draws the same meaning; it fails for an icon import of a package that is not installed or declared, which breaks the build (an import that a `paths` or `baseUrl` entry in your tsconfig or jsconfig maps to your own code never counts). In your icon-set package, check with `astryx integration check` instead: plain `doctor` diagnoses an app.',
546
622
  ],
547
623
  [
548
624
  'JSON types',
@@ -38,15 +38,26 @@ export const docs = {
38
38
  type: 'list',
39
39
  style: 'ordered',
40
40
  items: [
41
- 'Scaffold: pick the shell, budget each region, and choose navigation',
42
- "Structure: rank each region's content and choose its container",
43
- 'Spacing: align each region to one content line, then set gaps and density',
44
- 'Breakpoints: decide what each region does as width changes',
41
+ 'Scaffold: pick the frame and give every fixed region a width budget. AppShell for apps with navigation (SideNav by default; TopNav for a shallow nav over a control-heavy page), Layout with a LayoutPanel in its start or end slot for multi-pane tools, and a plain content column for documents and forms. Data views take the full width of their region; text, forms and lists sit in a column capped by Layout contentWidth (640 for text and forms, 960 for mixed content). A short form keeps its own 640 column even inside a wide template frame or a multi-column grid',
42
+ 'Structure: one lead and one primary action per region. Section is the default unit, with no border; records render as rows (Table for columns, List for single lines), never one Card each; Card is for a self-contained widget or a hard boundary. Body copy is plain Text with no props: rank with weight and the secondary color, not smaller text',
43
+ "Spacing: the container owns padding, and children zero their margins. Hold one content line per region and use tokens inside regions (raw px only for structural widths). Tight gaps (gap={1} to {2}) bind; generous gaps (gap={4} to {6}) separate. Pin a header or footer with LayoutHeader and LayoutFooter in Layout's slots",
44
+ "Breakpoints: write down what each region does as width changes. Navigation becomes MobileNav at AppShell's mobileNav breakpoint, a side panel becomes a Dialog or BottomSheet (useMediaQuery), and columns that must reflow use Grid columns={{minWidth, max}}: a number of columns never reflows",
45
45
  ],
46
46
  },
47
+ {
48
+ type: 'code',
49
+ lang: 'tsx',
50
+ label: 'A three-region tool frame',
51
+ code: `<AppShell sideNav={<SideNav>{/* nav items */}</SideNav>}>
52
+ <Layout
53
+ content={<LayoutContent>{/* table fills its region */}</LayoutContent>}
54
+ end={<LayoutPanel width={380} hasDivider isScrollable>{/* detail */}</LayoutPanel>}
55
+ />
56
+ </AppShell>`,
57
+ },
47
58
  {
48
59
  type: 'prose',
49
- text: 'This guide decides layout, not component APIs. Run `{@command build "<idea>"}` to start from the closest template for your app type, and `{@command component <Name>}` for a component\'s props.',
60
+ text: 'Each guide below has the rules, examples and checks for one step. This guide decides layout, not component APIs. Run `{@command build "<idea>"}` to start from the closest template for your app type, and `{@command component <Name>}` for a component\'s props.',
50
61
  },
51
62
  ],
52
63
  slots: {
@@ -103,7 +103,7 @@ export const docs = {
103
103
  {
104
104
  type: 'code',
105
105
  lang: 'text',
106
- code: "astryx: could not get Astryx 0.6.8 to match this project's Core (the registry could not be reached); answering with CLI 0.7.2 instead\nastryx: could not get Astryx 0.6.8 to match this project's Core (the registry does not have it); answering with CLI 0.7.2 instead\nastryx: could not get Astryx 0.6.8 to match this project's Core (the release cache /home/me/.cache/astryx/releases cannot be written (EACCES)); answering with CLI 0.7.2 instead",
106
+ code: "astryx: could not get Astryx 0.6.8 to match this project's Core (the registry https://registry.npmjs.org/ could not be reached); answering with CLI 0.7.2 instead\nastryx: could not get Astryx 0.6.8 to match this project's Core (the registry https://registry.npmjs.org/ does not have it); answering with CLI 0.7.2 instead\nastryx: could not get Astryx 0.6.8 to match this project's Core (the release cache /home/me/.cache/astryx/releases cannot be written (EACCES)); answering with CLI 0.7.2 instead",
107
107
  },
108
108
  {
109
109
  type: 'prose',
@@ -113,7 +113,7 @@ export const docs = {
113
113
  type: 'list',
114
114
  style: 'unordered',
115
115
  items: [
116
- "The registry could not be reached: you are offline, or a proxy blocks it. Astryx installs with npm, so set npm's `proxy`, `https-proxy`, or `registry` in your `.npmrc`, or add the CLI to the project and install its dependencies.",
116
+ "The registry could not be reached: you are offline, or a proxy blocks it. Astryx installs with npm, so set npm's `proxy`, `https-proxy`, or `registry` in your `.npmrc`, or add the CLI to the project and install its dependencies. A failed install waits 2 minutes before the next try (10 after a second failure in a row), but the next run tries again at once when npm's `registry` or `@astryxdesign:registry` changed.",
117
117
  "The registry does not have it: a private registry without the Astryx packages. Point npm's registry for `@astryxdesign` at one that has them.",
118
118
  'The cache cannot be written: a read-only home folder, as in some containers. Point `XDG_CACHE_HOME` at a writable folder: {@link generic:ci-and-containers}.',
119
119
  ],
@@ -103,7 +103,7 @@ const isNarrow = useMediaQuery('(max-width: 1024px)');
103
103
  content: [
104
104
  {
105
105
  type: 'prose',
106
- text: 'For columns that reflow on small screens, use `Grid columns={{minWidth, max}}`. A numeric `columns` is exactly N columns at every width and never reflows: `columns={4}` on a 390px phone renders four tracks under 100px wide, and the row overflows the page as soon as their content cannot shrink to fit. `{minWidth: 240, max: 4}` renders at most four columns, each at least 240px, and drops to one full-width column when the container is narrow; `max` is what lets that last column shrink to the container, and `gap` counts toward the room the columns need.',
106
+ text: 'For columns that reflow on small screens, use `Grid columns={{minWidth, max}}`. A numeric `columns` is exactly N columns at every width and never reflows: `columns={4}` on a 390px phone renders four tracks under 100px wide, and the row overflows the page as soon as their content cannot shrink to fit. `{minWidth: 240, max: 4}` renders at most four columns, each at least 240px, and drops to one full-width column when the container is narrow. `max` caps the count on wide screens; with or without it, a lone column shrinks to a container narrower than `minWidth`. `gap` counts toward the room the columns need.',
107
107
  },
108
108
  {
109
109
  type: 'code',
@@ -123,7 +123,7 @@ const isNarrow = useMediaQuery('(max-width: 1024px)');
123
123
  type: 'list',
124
124
  style: 'unordered',
125
125
  items: [
126
- '`{minWidth}` alone: as many columns as fit at the floor, no cap; a container narrower than `minWidth` overflows, so add `max` for anything that reaches a phone',
126
+ '`{minWidth}` alone: as many columns as fit at the floor, no cap; in a container narrower than `minWidth`, one column shrinks to the container width',
127
127
  "`{minWidth, repeat: 'fit'}`: empty tracks collapse so present items stretch",
128
128
  "A numeric `GridSpan` wider than the grid's current columns adds implicit columns to the whole grid; items placed before and after the span flow into them, and `columns='full'` then covers only the explicit columns. In a reflowing grid keep spans within the smallest count it can reach, or use `'full'`, which adds none",
129
129
  'Styling that changes the room columns have to fit changes the count a reflowing shape reaches: a `columnGap` or `gap` step, inline padding on the grid, or `grid-auto-flow: column` through `xstyle`, which places items into extra implicit columns. A `className` rule replaces the computed track list only when it wins the cascade against the generated styles; prefer `xstyle` for overrides',
@@ -47,6 +47,7 @@ export const docs = {
47
47
  items: [
48
48
  'Build content-first and wrap each section in a Card, producing a padded scroll column',
49
49
  'Stretch prose, forms, or lists across a wide region instead of capping with contentWidth',
50
+ "Carry a template's 1440 frame or three-column grid over to a single short form, instead of capping the form at 640 in its own column",
50
51
  'SideNav when the nav is really filters or controls, or must hold wide elements like breadcrumbs',
51
52
  'TopNav when top-slot ownership is unclear, or the hierarchy is deep or still growing',
52
53
  'Both bars when the ecosystem layer is thin, so the second only wastes space',