@astryxdesign/cli 0.7.4 → 0.7.5-canary.031a639

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 (315) hide show
  1. package/README.md +20 -20
  2. package/api/component/_adapter.mjs +16 -1
  3. package/api/component/component.test.mjs +31 -0
  4. package/api/discover/_adapter.d.mts +1 -1
  5. package/api/docs/_adapter.d.mts +5 -2
  6. package/api/docs/_adapter.mjs +24 -16
  7. package/api/docs/docs.test.mjs +18 -0
  8. package/api/docs/integrationDocs.test.mjs +2 -2
  9. package/api/experimental.d.mts +5 -0
  10. package/api/experimental.mjs +15 -0
  11. package/api/hook/list/list.d.mts +1 -1
  12. package/api/icon/_adapter.d.mts +3 -2
  13. package/api/icon/_adapter.mjs +16 -3
  14. package/api/icon/_authoring.d.mts +5 -1
  15. package/api/icon/_authoring.mjs +478 -63
  16. package/api/icon/_options.d.mts +11 -0
  17. package/api/icon/_options.mjs +39 -4
  18. package/api/icon/_records.d.mts +19 -0
  19. package/api/icon/_records.mjs +25 -0
  20. package/api/icon/add/add.d.mts +3 -3
  21. package/api/icon/add/add.mjs +227 -14
  22. package/api/icon/all-or-nothing.test.mjs +283 -0
  23. package/api/icon/detail/detail.mjs +2 -13
  24. package/api/icon/error-codes.test.mjs +14 -7
  25. package/api/icon/icon.d.mts +2 -2
  26. package/api/icon/icon.doc.mjs +30 -2
  27. package/api/icon/icon.mjs +57 -8
  28. package/api/icon/icon.test.mjs +133 -1
  29. package/api/icon/icon.type.d.mts +126 -1
  30. package/api/icon/icon.type.mjs +67 -3
  31. package/api/icon/iconAdd.doc.mjs +22 -6
  32. package/api/icon/iconMap.doc.mjs +24 -8
  33. package/api/icon/iconNewDefinition.doc.mjs +2 -2
  34. package/api/icon/iconNewSet.doc.mjs +30 -2
  35. package/api/icon/iconUse.doc.mjs +4 -1
  36. package/api/icon/map/map.d.mts +4 -4
  37. package/api/icon/map/map.mjs +134 -9
  38. package/api/icon/new-definition/new-definition.mjs +6 -2
  39. package/api/icon/new-set/new-set.mjs +2 -2
  40. package/api/icon/new-set/new-set.test.mjs +60 -10
  41. package/api/icon/option-pairs.test.mjs +368 -0
  42. package/api/icon/search/search.d.mts +10 -0
  43. package/api/icon/search/search.mjs +55 -14
  44. package/api/icon/use/use.mjs +2 -13
  45. package/api/integration/add-helpers.d.mts +15 -1
  46. package/api/integration/add-helpers.mjs +1 -1
  47. package/api/integration/pack-check.lifecycle-output.test.mjs +24 -1
  48. package/api/integration/pack-check.mjs +10 -4
  49. package/api/integration/pack-check.test.mjs +5 -1
  50. package/api/integration/validate-integration.type.d.mts +3 -2
  51. package/api/integration/validate-integration.type.mjs +3 -2
  52. package/api/render/_adapter.d.mts +28 -0
  53. package/api/render/_adapter.mjs +540 -0
  54. package/api/render/render.d.mts +15 -0
  55. package/api/render/render.doc.d.mts +9 -0
  56. package/api/render/render.doc.mjs +112 -0
  57. package/api/render/render.mjs +113 -0
  58. package/api/render/render.test.mjs +1155 -0
  59. package/api/render/render.type.d.mts +74 -0
  60. package/api/render/render.type.mjs +64 -0
  61. package/api/search/_adapter.test.mjs +21 -2
  62. package/api/search/_result.d.mts +5 -5
  63. package/api/search/search.d.mts +1 -1
  64. package/api/template/template.mjs +3 -1
  65. package/api/template/template.type.d.mts +2 -1
  66. package/api/template/template.type.mjs +1 -1
  67. package/api/template/tokenizer-showcase.test.mjs +47 -0
  68. package/api/template/unknown-name.test.mjs +63 -0
  69. package/api/theme/build/build.adaptation-enrollment.test.mjs +4 -0
  70. package/api/theme/build/build.icon-entry-variants.test.mjs +134 -0
  71. package/api/theme/build/build.icon-variants.test.mjs +105 -0
  72. package/api/theme/build/build.mjs +134 -75
  73. package/api/theme/build/build.test.mjs +77 -0
  74. package/api/upgrade/_adapter.d.mts +47 -2
  75. package/api/upgrade/_adapter.mjs +58 -2
  76. package/api/upgrade/run/failure-receipt.test.mjs +212 -0
  77. package/api/upgrade/run/outcomes.test.mjs +646 -0
  78. package/api/upgrade/run/run.d.mts +36 -0
  79. package/api/upgrade/run/run.mjs +670 -44
  80. package/api/upgrade/upgrade.doc.mjs +4 -4
  81. package/api/upgrade/upgrade.mjs +19 -4
  82. package/api/upgrade/upgrade.type.d.mts +36 -1
  83. package/api/upgrade/upgrade.type.mjs +29 -4
  84. package/assets/codemods/__tests__/runner.symlinks.test.mjs +205 -0
  85. package/assets/codemods/__tests__/runner.unparseable.test.mjs +457 -0
  86. package/assets/codemods/integration-runner.mjs +8 -2
  87. package/assets/codemods/integration-runner.protection.test.mjs +53 -0
  88. package/assets/codemods/outcome.mjs +79 -0
  89. package/assets/codemods/outcome.test.mjs +40 -0
  90. package/assets/codemods/parse.mjs +94 -0
  91. package/assets/codemods/run-codemod.mjs +109 -5
  92. package/assets/codemods/runner.mjs +119 -13
  93. package/assets/codemods/transform-prop.mjs +99 -49
  94. package/assets/codemods/transform-prop.test.mjs +36 -1
  95. package/assets/codemods/transforms/next/__tests__/migrate-codeblock-tokenizer-to-language.test.mjs +130 -0
  96. package/assets/codemods/transforms/next/index.mjs +11 -1
  97. package/assets/codemods/transforms/next/migrate-codeblock-tokenizer-to-language.mjs +315 -0
  98. package/assets/codemods/transforms/v0.1.3/__tests__/migrate-layout-components-to-experimental.test.mjs +216 -2
  99. package/assets/codemods/transforms/v0.1.3/migrate-layout-components-to-experimental.mjs +88 -6
  100. package/assets/codemods/transforms/v0.6.0/migrate-astryx-theme-selectors-to-data-attrs.mjs +4 -3
  101. package/assets/codemods/transforms/v0.7.0/__tests__/migrate-deprecated-theme-surface.test.mjs +207 -6
  102. package/assets/codemods/transforms/v0.7.0/__tests__/validate-data-token-ownership.test.mjs +143 -70
  103. package/assets/codemods/transforms/v0.7.0/migrate-deprecated-theme-surface-v0.6-data.mjs +6 -1
  104. package/assets/codemods/transforms/v0.7.0/migrate-deprecated-theme-surface.mjs +244 -42
  105. package/assets/codemods/transforms/v0.7.0/validate-data-token-ownership.mjs +23 -78
  106. package/assets/discover/official-packages.json +4 -0
  107. package/assets/docs/author-a-theme.doc.mjs +3 -1
  108. package/assets/docs/icons.doc.mjs +82 -1
  109. package/assets/docs/theme.doc.dense.mjs +8 -0
  110. package/assets/docs/theme.doc.mjs +16 -0
  111. package/assets/docs/theme.doc.zh.mjs +11 -0
  112. package/assets/docs/tree/icon-definitions.doc.mjs +2 -2
  113. package/assets/docs/tree/icon-set-files.doc.mjs +1 -1
  114. package/assets/docs/tree/icon-sets.doc.mjs +50 -20
  115. package/assets/docs/tree/render-pages.doc.mjs +94 -0
  116. package/assets/docs/tree/styling-advanced.doc.mjs +1 -1
  117. package/assets/docs/tree/template-styles.doc.mjs +1 -1
  118. package/assets/docs/tree/tokens-color.doc.mjs +145 -1
  119. package/assets/docs/tree/tokens.doc.mjs +1 -1
  120. package/assets/icons/definitions/activity.doc.mjs +1 -1
  121. package/assets/icons/definitions/alignCenter.doc.mjs +9 -0
  122. package/assets/icons/definitions/alignEnd.doc.mjs +10 -0
  123. package/assets/icons/definitions/alignStart.doc.mjs +10 -0
  124. package/assets/icons/definitions/archive.doc.mjs +1 -1
  125. package/assets/icons/definitions/arrowsUpDown.doc.mjs +1 -1
  126. package/assets/icons/definitions/attach.doc.mjs +1 -1
  127. package/assets/icons/definitions/audio.doc.mjs +1 -1
  128. package/assets/icons/definitions/cart.doc.mjs +1 -1
  129. package/assets/icons/definitions/checkDouble.doc.mjs +1 -1
  130. package/assets/icons/definitions/chevronsLeft.doc.mjs +1 -1
  131. package/assets/icons/definitions/chevronsRight.doc.mjs +1 -1
  132. package/assets/icons/definitions/close.doc.mjs +1 -1
  133. package/assets/icons/definitions/collapse.doc.mjs +1 -1
  134. package/assets/icons/definitions/compose.doc.mjs +1 -1
  135. package/assets/icons/definitions/conversation.doc.mjs +1 -1
  136. package/assets/icons/definitions/copy.doc.mjs +1 -1
  137. package/assets/icons/definitions/cpu.doc.mjs +9 -0
  138. package/assets/icons/definitions/database.doc.mjs +1 -1
  139. package/assets/icons/definitions/desktop.doc.mjs +1 -1
  140. package/assets/icons/definitions/discount.doc.mjs +1 -1
  141. package/assets/icons/definitions/download.doc.mjs +1 -1
  142. package/assets/icons/definitions/emoji.doc.mjs +1 -1
  143. package/assets/icons/definitions/error.doc.mjs +1 -1
  144. package/assets/icons/definitions/expand.doc.mjs +1 -1
  145. package/assets/icons/definitions/experiment.doc.mjs +1 -1
  146. package/assets/icons/definitions/externalLink.doc.mjs +7 -1
  147. package/assets/icons/definitions/eyeSlash.doc.mjs +1 -1
  148. package/assets/icons/definitions/flipHorizontal.doc.mjs +9 -0
  149. package/assets/icons/definitions/flipVertical.doc.mjs +9 -0
  150. package/assets/icons/definitions/folderAdd.doc.mjs +1 -1
  151. package/assets/icons/definitions/gitBranch.doc.mjs +9 -0
  152. package/assets/icons/definitions/gitFork.doc.mjs +9 -0
  153. package/assets/icons/definitions/info.doc.mjs +1 -1
  154. package/assets/icons/definitions/location.doc.mjs +1 -1
  155. package/assets/icons/definitions/mention.doc.mjs +1 -1
  156. package/assets/icons/definitions/menu.doc.mjs +1 -1
  157. package/assets/icons/definitions/microphone.doc.mjs +1 -1
  158. package/assets/icons/definitions/mobile.doc.mjs +1 -1
  159. package/assets/icons/definitions/money.doc.mjs +1 -1
  160. package/assets/icons/definitions/moreHorizontal.doc.mjs +1 -1
  161. package/assets/icons/definitions/notificationActive.doc.mjs +1 -1
  162. package/assets/icons/definitions/notificationOff.doc.mjs +1 -1
  163. package/assets/icons/definitions/panelLeft.doc.mjs +10 -0
  164. package/assets/icons/definitions/panelRight.doc.mjs +10 -0
  165. package/assets/icons/definitions/raiseHand.doc.mjs +1 -1
  166. package/assets/icons/definitions/redo.doc.mjs +1 -1
  167. package/assets/icons/definitions/refresh.doc.mjs +1 -1
  168. package/assets/icons/definitions/rotate.doc.mjs +9 -0
  169. package/assets/icons/definitions/scale.doc.mjs +10 -0
  170. package/assets/icons/definitions/search.doc.mjs +1 -1
  171. package/assets/icons/definitions/send.doc.mjs +1 -1
  172. package/assets/icons/definitions/settings.doc.mjs +1 -1
  173. package/assets/icons/definitions/star.doc.mjs +1 -1
  174. package/assets/icons/definitions/stop.doc.mjs +1 -1
  175. package/assets/icons/definitions/success.doc.mjs +1 -1
  176. package/assets/icons/definitions/textCase.doc.mjs +9 -0
  177. package/assets/icons/definitions/thumbsDown.doc.mjs +1 -1
  178. package/assets/icons/definitions/thumbsUp.doc.mjs +1 -1
  179. package/assets/icons/definitions/trendDown.doc.mjs +7 -1
  180. package/assets/icons/definitions/trendUp.doc.mjs +1 -1
  181. package/assets/icons/definitions/undo.doc.mjs +1 -1
  182. package/assets/icons/definitions/upload.doc.mjs +1 -1
  183. package/assets/icons/definitions/userAdd.doc.mjs +1 -1
  184. package/assets/icons/definitions/warning.doc.mjs +1 -1
  185. package/assets/templates/blocks/components/BottomSheet/BottomSheetSwitcherReviewFlow.doc.mjs +6 -4
  186. package/assets/templates/blocks/components/BottomSheet/BottomSheetSwitcherReviewFlow.tsx +61 -55
  187. package/assets/templates/blocks/components/BottomSheet/BottomSheetSwitcherShowcase.doc.mjs +6 -4
  188. package/assets/templates/blocks/components/BottomSheet/BottomSheetSwitcherShowcase.tsx +68 -37
  189. package/assets/templates/blocks/components/CodeBlock/CodeBlockBashCommand.doc.mjs +1 -1
  190. package/assets/templates/blocks/components/CodeBlock/CodeBlockBashCommand.tsx +10 -2
  191. package/assets/templates/blocks/components/Thumbnail/ThumbnailDisabled.doc.mjs +1 -1
  192. package/assets/templates/blocks/components/Tokenizer/TokenizerClear.tsx +15 -14
  193. package/assets/templates/blocks/components/Tokenizer/TokenizerCreatable.tsx +30 -30
  194. package/assets/templates/blocks/components/Tokenizer/TokenizerEndContent.tsx +15 -14
  195. package/assets/templates/blocks/components/Tokenizer/TokenizerIcon.tsx +15 -14
  196. package/assets/templates/blocks/components/Tokenizer/TokenizerMaxEntries.tsx +17 -16
  197. package/assets/templates/blocks/components/Tokenizer/TokenizerOverflow.tsx +29 -29
  198. package/assets/templates/blocks/components/Tokenizer/TokenizerShowcase.tsx +22 -14
  199. package/assets/templates/blocks/components/Tokenizer/TokenizerStates.tsx +39 -41
  200. package/assets/templates/pages/canvas-editor/template.doc.mjs +9 -0
  201. package/assets/templates/pages/dashboard-alert-rail/page.tsx +3 -3
  202. package/assets/templates/pages/form-wizard-inline/template.doc.mjs +6 -1
  203. package/assets/templates/pages/library/page.tsx +1 -2
  204. package/assets/templates/pages/table-comparison/page.tsx +12 -3
  205. package/assets/templates/pages/table-comparison/template.doc.mjs +1 -0
  206. package/assets/templates/pages/table-tree/template.doc.mjs +3 -0
  207. package/assets/templates/themes/butter/butterPaletteRefs.generated.ts +3 -2
  208. package/assets/templates/themes/butter/butterTheme.ts +47 -44
  209. package/assets/templates/themes/chocolate/chocolateTheme.ts +15 -2
  210. package/assets/templates/themes/gothic/gothicTheme.ts +21 -16
  211. package/assets/templates/themes/matcha/matchaPaletteRefs.generated.ts +1 -1
  212. package/assets/templates/themes/matcha/matchaTheme.ts +15 -2
  213. package/assets/templates/themes/neutral/neutralPaletteRefs.generated.ts +4 -4
  214. package/assets/templates/themes/neutral/neutralTheme.ts +24 -119
  215. package/assets/templates/themes/stone/stoneTheme.ts +46 -21
  216. package/assets/templates/themes/y2k/y2kTheme.ts +20 -16
  217. package/assets/theme.template.ts +18 -5
  218. package/authoring/codemod/type.ts +10 -0
  219. package/authoring/debug/parse.d.mts +2 -2
  220. package/authoring/doctypes/icon-definition/icon-definition.doc.mjs +4 -4
  221. package/authoring/doctypes/icon-set/icon-set-data.doc.mjs +6 -0
  222. package/authoring/doctypes/icon-set/parse.d.mts +1 -0
  223. package/authoring/doctypes/icon-set/parse.mjs +1 -0
  224. package/authoring/doctypes/icon-set/type.ts +5 -0
  225. package/authoring/doctypes/template/template.doc.mjs +1 -1
  226. package/authoring/doctypes/template/type.ts +2 -1
  227. package/clients/cli/commands/build-theme.adaptations.test.mjs +110 -0
  228. package/clients/cli/commands/build-theme.outside-project.test.mjs +140 -0
  229. package/clients/cli/commands/doctor.mjs +16 -17
  230. package/clients/cli/commands/experimental/icon.mjs +167 -35
  231. package/clients/cli/commands/experimental/index.mjs +2 -0
  232. package/clients/cli/commands/experimental/render.mjs +113 -0
  233. package/clients/cli/commands/experimental-icon-add.doc.mjs +14 -4
  234. package/clients/cli/commands/experimental-icon-map.doc.mjs +12 -2
  235. package/clients/cli/commands/experimental-icon-new-definition.doc.mjs +1 -1
  236. package/clients/cli/commands/experimental-icon-new-set.doc.mjs +28 -1
  237. package/clients/cli/commands/experimental-icon.doc.mjs +18 -2
  238. package/clients/cli/commands/experimental-render.doc.mjs +60 -0
  239. package/clients/cli/commands/experimental.doc.mjs +4 -2
  240. package/clients/cli/commands/icon-authoring.test.mjs +1823 -13
  241. package/clients/cli/commands/icon-options-wiring.test.mjs +158 -0
  242. package/clients/cli/commands/icon.test.mjs +1 -1
  243. package/clients/cli/commands/template.mjs +4 -1
  244. package/clients/cli/commands/text-json-parity.test.mjs +46 -0
  245. package/clients/cli/commands/upgrade.doc.mjs +47 -2
  246. package/clients/cli/commands/upgrade.file-protection.test.mjs +175 -0
  247. package/clients/cli/commands/upgrade.flag-help.test.mjs +37 -0
  248. package/clients/cli/commands/upgrade.integration-policy.test.mjs +103 -0
  249. package/clients/cli/commands/upgrade.mjs +9 -2
  250. package/clients/cli/commands/upgrade.outcomes.test.mjs +350 -0
  251. package/clients/cli/index.mjs +1 -0
  252. package/foundation/agent-docs/agent-docs.mjs +1 -0
  253. package/foundation/agent-docs/agent-docs.test.mjs +5 -0
  254. package/foundation/discovery/component-discovery.d.mts +2 -1
  255. package/foundation/discovery/component-discovery.export-names.test.mjs +41 -0
  256. package/foundation/discovery/component-discovery.mjs +13 -7
  257. package/foundation/discovery/icon-set-checks.d.mts +43 -9
  258. package/foundation/discovery/icon-set-checks.mjs +296 -21
  259. package/foundation/discovery/icon-set-checks.test.mjs +125 -12
  260. package/foundation/discovery/icon-set-writer.d.mts +192 -3
  261. package/foundation/discovery/icon-set-writer.mjs +608 -34
  262. package/foundation/discovery/icon-set-writer.test.mjs +26 -0
  263. package/foundation/discovery/module-exports.mjs +82 -25
  264. package/foundation/discovery/module-exports.test.mjs +38 -1
  265. package/foundation/discovery/package-exports.d.mts +13 -0
  266. package/foundation/discovery/package-exports.mjs +40 -1
  267. package/foundation/discovery/template-icons.d.mts +6 -0
  268. package/foundation/discovery/template-icons.mjs +98 -10
  269. package/foundation/discovery/template-icons.test.mjs +103 -0
  270. package/foundation/doc-compiler/doc-loads.test.mjs +22 -11
  271. package/foundation/doc-compiler/import.mjs +81 -8
  272. package/foundation/doc-compiler/read.d.mts +4 -3
  273. package/foundation/doc-compiler/read.mjs +15 -10
  274. package/foundation/doc-compiler/read.test.mjs +59 -1
  275. package/foundation/doc-compiler/tree.mjs +3 -1
  276. package/foundation/fs/module-loader.d.mts +3 -2
  277. package/foundation/fs/module-loader.mjs +3 -2
  278. package/foundation/fs/publish-file-eperm-mutation.test.mjs +2 -0
  279. package/foundation/fs/read-record.d.mts +27 -0
  280. package/foundation/fs/read-record.mjs +83 -15
  281. package/foundation/fs/read-record.test.mjs +88 -1
  282. package/foundation/render/assets.d.mts +31 -0
  283. package/foundation/render/assets.mjs +102 -0
  284. package/foundation/render/component-map.d.mts +52 -0
  285. package/foundation/render/component-map.mjs +141 -0
  286. package/foundation/render/css-cut.d.mts +29 -0
  287. package/foundation/render/css-cut.mjs +144 -0
  288. package/foundation/render/embedded-files.d.mts +28 -0
  289. package/foundation/render/embedded-files.mjs +108 -0
  290. package/foundation/render/embedded-imports.d.mts +61 -0
  291. package/foundation/render/embedded-imports.mjs +315 -0
  292. package/foundation/render/html-reader.d.mts +37 -0
  293. package/foundation/render/html-reader.mjs +121 -0
  294. package/foundation/render/page-worker.d.mts +7 -0
  295. package/foundation/render/page-worker.mjs +519 -0
  296. package/foundation/render/rebuild.d.mts +19 -0
  297. package/foundation/render/rebuild.mjs +269 -0
  298. package/foundation/render/render-page.d.mts +85 -0
  299. package/foundation/render/render-page.mjs +612 -0
  300. package/foundation/render/render.test.mjs +117 -0
  301. package/foundation/render/source-block.d.mts +52 -0
  302. package/foundation/render/source-block.mjs +106 -0
  303. package/foundation/response/base.d.ts +7 -0
  304. package/foundation/response/error-codes.d.mts +10 -1
  305. package/foundation/response/error-codes.doc.mjs +59 -2
  306. package/foundation/response/error-codes.mjs +62 -1
  307. package/foundation/response/json.d.mts +10 -3
  308. package/foundation/response/json.mjs +16 -4
  309. package/foundation/response/response-types.doc.mjs +39 -2
  310. package/foundation/text/string-utils.mjs +33 -0
  311. package/foundation/text/string-utils.test.mjs +17 -0
  312. package/foundation/text/suggest-order.d.mts +17 -3
  313. package/foundation/text/suggest-order.mjs +58 -13
  314. package/foundation/text/suggest-order.test.mjs +53 -0
  315. package/package.json +15 -9
@@ -0,0 +1,94 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /**
4
+ * @file `astryx docs cli/experimental/render-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: 'render-pages',
13
+ placement: {parent: 'namespace:experimental', slot: 'guides', order: 20},
14
+ stability: 'experimental',
15
+ title: 'Pages as one HTML file',
16
+ category: 'guide',
17
+ keywords: [
18
+ 'render',
19
+ 'static html',
20
+ 'single file',
21
+ 'artifact',
22
+ 'share a page',
23
+ 'snapshot',
24
+ 'embed',
25
+ 'sandboxed iframe',
26
+ 'reverse',
27
+ ],
28
+ description:
29
+ 'Experimental. Render a page to one self-contained HTML file for sharing or embedding, and get the page back from it.',
30
+ sections: [
31
+ {
32
+ id: 'experimental',
33
+ title: 'Experimental',
34
+ content: [
35
+ {
36
+ type: 'prose',
37
+ 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.',
38
+ },
39
+ ],
40
+ },
41
+ {
42
+ id: 'make-a-file',
43
+ title: 'Make a file to share',
44
+ content: [
45
+ {
46
+ type: 'prose',
47
+ text: 'Build the page with Astryx components as usual, then render it. The page module needs a default export; it renders on your machine with the React and Astryx packages your project installed.',
48
+ },
49
+ {
50
+ type: 'code',
51
+ lang: 'bash',
52
+ code: 'astryx experimental render src/app/page.tsx --out page.html',
53
+ },
54
+ {
55
+ type: 'prose',
56
+ text: 'The result is ONE file with nothing beside it: the markup, only the CSS rules the page uses (from Core and from any stylesheet it imports, such as a theme), the page\u2019s own StyleX styles, and local images as data: URIs. It runs no script and loads nothing from the network, so it opens from disk, attaches to a message, and displays inside a sandboxed frame that blocks network and script. Colors follow the viewer\u2019s light or dark setting, and a `data-theme` of `light` or `dark` on the root element picks one. 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.',
57
+ },
58
+ {
59
+ type: 'prose',
60
+ text: 'What it cannot keep: anything that needs a browser while running. State, effects, click handlers and data loaded after the first paint are gone, and a chart sized by its container is empty, so give charts a fixed size. Read browser-only values such as window inside an effect, or the render stops with ERR_RENDER_BROWSER_API.',
61
+ },
62
+ ],
63
+ },
64
+ {
65
+ id: 'warnings',
66
+ title: 'Read the warnings',
67
+ content: [
68
+ {
69
+ type: 'prose',
70
+ 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"`. Others flag remote images (a sandboxed viewer cannot load them; 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.',
71
+ },
72
+ ],
73
+ },
74
+ {
75
+ id: 'get-it-back',
76
+ title: 'Get the page back',
77
+ content: [
78
+ {
79
+ type: 'code',
80
+ lang: 'bash',
81
+ code: 'astryx experimental render --reverse page.html --out page.tsx',
82
+ },
83
+ {
84
+ type: 'prose',
85
+ text: '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.',
86
+ },
87
+ {
88
+ type: 'prose',
89
+ 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 only when that alias points inside the new folder. 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. 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.',
90
+ },
91
+ ],
92
+ },
93
+ ],
94
+ };
@@ -142,7 +142,7 @@ const overrides = stylex.create({
142
142
  },
143
143
  {
144
144
  type: 'prose',
145
- text: 'The upgrade treats a `components` map as a theme when it belongs to a `defineTheme()` call imported from Astryx, an object typed as an Astryx theme, or a theme object with a static `name` whose component entries are style objects. It leaves computed theme keys, unqualified classes, unknown consumer classes, declarations, comments, and CSS inside JavaScript or TypeScript strings unchanged. It adds `TODO(astryx upgrade)` when a map has both an old and a canonical key, and when a bare class Astryx once emitted has no known meaning on the target it qualifies. Review each TODO by hand.',
145
+ text: 'The upgrade treats a `components` map as a theme when it belongs to a `defineTheme()` call imported from Astryx, an object typed as an Astryx theme, or the theme object a same-stem theme descriptor (`<stem>.doc.mjs`) declares: the top-level binding exported as `<stem>`, with a static `name` and component entries that are style objects. A look-alike object anywhere else, such as a theme object from another library in the same file, is not an Astryx theme. It leaves computed theme keys, unqualified classes, unknown consumer classes, declarations, comments, and CSS inside JavaScript or TypeScript strings unchanged. It adds `TODO(astryx upgrade)` when a map has both an old and a canonical key, and when a bare class Astryx once emitted has no known meaning on the target it qualifies. Review each TODO by hand.',
146
146
  },
147
147
  ],
148
148
  },
@@ -56,7 +56,7 @@ import {colorVars} from '@astryxdesign/core/theme/tokens.stylex';
56
56
 
57
57
  const styles = stylex.create({
58
58
  trend: {
59
- color: colorVars['--color-success'],
59
+ color: colorVars['--color-text-success'],
60
60
  minWidth: 0,
61
61
  },
62
62
  });
@@ -26,6 +26,55 @@ export const docs = {
26
26
  "type": "prose",
27
27
  "text": "Semantic colors for consistent theming. All colors use light-dark() for automatic mode switching."
28
28
  },
29
+ {
30
+ "type": "prose",
31
+ "text": "Status roles: pick the token by the surface. `<status>` is info, success, warning, or error."
32
+ },
33
+ {
34
+ "type": "table",
35
+ "headers": [
36
+ "Status role",
37
+ "Use it for",
38
+ "Pairs with"
39
+ ],
40
+ "rows": [
41
+ [
42
+ "--color-text-<status>",
43
+ "Status text on the page or a card (4.5:1 or more).",
44
+ "—"
45
+ ],
46
+ [
47
+ "--color-icon-<status>",
48
+ "Status icons on the page or a card. Defaults to the text colour.",
49
+ "—"
50
+ ],
51
+ [
52
+ "--color-border-<status>",
53
+ "Status borders on the page or a card, such as an invalid field. Defaults to the text colour.",
54
+ "—"
55
+ ],
56
+ [
57
+ "--color-<status>",
58
+ "Strong status fill, such as a Badge or StatusDot.",
59
+ "--color-on-<status>"
60
+ ],
61
+ [
62
+ "--color-on-<status>",
63
+ "Text and icons on the strong fill (4.5:1 or more).",
64
+ "--color-<status>"
65
+ ],
66
+ [
67
+ "--color-<status>-muted",
68
+ "Pale status fill, such as a Banner.",
69
+ "--color-on-<status>-muted"
70
+ ],
71
+ [
72
+ "--color-on-<status>-muted",
73
+ "Text and icons on the pale fill (4.5:1 or more).",
74
+ "--color-<status>-muted"
75
+ ]
76
+ ]
77
+ },
29
78
  {
30
79
  "type": "table",
31
80
  "headers": [
@@ -154,6 +203,21 @@ export const docs = {
154
203
  "#AA071E",
155
204
  "#E3193B"
156
205
  ],
206
+ [
207
+ "--color-info",
208
+ "#0064E0",
209
+ "#0064E0"
210
+ ],
211
+ [
212
+ "--color-info-muted",
213
+ "#0082FB33",
214
+ "#0082FB3F"
215
+ ],
216
+ [
217
+ "--color-on-info",
218
+ "#FFFFFF",
219
+ "#FFFFFF"
220
+ ],
157
221
  [
158
222
  "--color-success",
159
223
  "#0D8626",
@@ -182,7 +246,7 @@ export const docs = {
182
246
  [
183
247
  "--color-on-error",
184
248
  "#FFFFFF",
185
- "#FFFFFF"
249
+ "#0A1317"
186
250
  ],
187
251
  [
188
252
  "--color-warning",
@@ -199,6 +263,86 @@ export const docs = {
199
263
  "#0A1317",
200
264
  "#0A1317"
201
265
  ],
266
+ [
267
+ "--color-text-info",
268
+ "var(--color-text-blue)",
269
+ "var(--color-text-blue)"
270
+ ],
271
+ [
272
+ "--color-text-success",
273
+ "var(--color-text-green)",
274
+ "var(--color-text-green)"
275
+ ],
276
+ [
277
+ "--color-text-warning",
278
+ "var(--color-text-yellow)",
279
+ "var(--color-text-yellow)"
280
+ ],
281
+ [
282
+ "--color-text-error",
283
+ "var(--color-text-red)",
284
+ "var(--color-text-red)"
285
+ ],
286
+ [
287
+ "--color-icon-info",
288
+ "var(--color-text-info)",
289
+ "var(--color-text-info)"
290
+ ],
291
+ [
292
+ "--color-icon-success",
293
+ "var(--color-text-success)",
294
+ "var(--color-text-success)"
295
+ ],
296
+ [
297
+ "--color-icon-warning",
298
+ "var(--color-text-warning)",
299
+ "var(--color-text-warning)"
300
+ ],
301
+ [
302
+ "--color-icon-error",
303
+ "var(--color-text-error)",
304
+ "var(--color-text-error)"
305
+ ],
306
+ [
307
+ "--color-border-info",
308
+ "var(--color-text-info)",
309
+ "var(--color-text-info)"
310
+ ],
311
+ [
312
+ "--color-border-success",
313
+ "var(--color-text-success)",
314
+ "var(--color-text-success)"
315
+ ],
316
+ [
317
+ "--color-border-warning",
318
+ "var(--color-text-warning)",
319
+ "var(--color-text-warning)"
320
+ ],
321
+ [
322
+ "--color-border-error",
323
+ "var(--color-text-error)",
324
+ "var(--color-text-error)"
325
+ ],
326
+ [
327
+ "--color-on-info-muted",
328
+ "var(--color-text-blue)",
329
+ "var(--color-text-blue)"
330
+ ],
331
+ [
332
+ "--color-on-success-muted",
333
+ "var(--color-text-green)",
334
+ "var(--color-text-green)"
335
+ ],
336
+ [
337
+ "--color-on-warning-muted",
338
+ "var(--color-text-yellow)",
339
+ "var(--color-text-yellow)"
340
+ ],
341
+ [
342
+ "--color-on-error-muted",
343
+ "var(--color-text-red)",
344
+ "var(--color-text-red)"
345
+ ],
202
346
  [
203
347
  "--color-border",
204
348
  "#05365919",
@@ -2,7 +2,7 @@
2
2
 
3
3
  // AUTO-GENERATED — do not edit manually.
4
4
  // Run: node scripts/generate-token-docs.mjs
5
- // Total: 263 tokens across 15 categories.
5
+ // Total: 282 tokens across 15 categories.
6
6
 
7
7
  /** @type {import('@astryxdesign/cli/authoring').NamespaceDoc} */
8
8
  export const docs = {
@@ -5,5 +5,5 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'activity',
7
7
  description: 'Activity or live status over time.',
8
- words: ['pulse', 'monitor', 'live'],
8
+ words: ['pulse', 'live'],
9
9
  };
@@ -0,0 +1,9 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /** @type {import('@astryxdesign/cli/authoring').IconDefinitionDoc} */
4
+ export default {
5
+ type: 'icon-definition',
6
+ name: 'alignCenter',
7
+ description: 'Center text or items.',
8
+ words: ['center align', 'centre', 'text align'],
9
+ };
@@ -0,0 +1,10 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /** @type {import('@astryxdesign/cli/authoring').IconDefinitionDoc} */
4
+ export default {
5
+ type: 'icon-definition',
6
+ name: 'alignEnd',
7
+ description:
8
+ 'Align text or items to the end edge: the right in a left-to-right layout, the left in a right-to-left one.',
9
+ words: ['align end', 'right align', 'justify right', 'text align'],
10
+ };
@@ -0,0 +1,10 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /** @type {import('@astryxdesign/cli/authoring').IconDefinitionDoc} */
4
+ export default {
5
+ type: 'icon-definition',
6
+ name: 'alignStart',
7
+ description:
8
+ 'Align text or items to the start edge: the left in a left-to-right layout, the right in a right-to-left one.',
9
+ words: ['align start', 'left align', 'justify left', 'text align'],
10
+ };
@@ -5,5 +5,5 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'archive',
7
7
  description: 'Archive an item.',
8
- words: ['store', 'box'],
8
+ words: ['box', 'stash'],
9
9
  };
@@ -5,6 +5,6 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'arrowsUpDown',
7
7
  description: 'Show that a column can be sorted.',
8
- words: ['sort', 'sortable', 'reorder'],
8
+ words: ['sort', 'sortable', 'reorder', 'arrow up down'],
9
9
  builtIn: true,
10
10
  };
@@ -5,5 +5,5 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'attach',
7
7
  description: 'Attach a file.',
8
- words: ['attachment', 'paperclip'],
8
+ words: ['attachment', 'paperclip', 'paper clip'],
9
9
  };
@@ -5,5 +5,5 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'audio',
7
7
  description: 'Sound or volume.',
8
- words: ['sound', 'volume', 'speaker'],
8
+ words: ['sound', 'volume', 'speaker', 'speaker wave'],
9
9
  };
@@ -5,5 +5,5 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'cart',
7
7
  description: 'A shopping cart.',
8
- words: ['shop', 'buy', 'checkout'],
8
+ words: ['shop', 'buy', 'checkout', 'shopping cart'],
9
9
  };
@@ -5,6 +5,6 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'checkDouble',
7
7
  description: 'Show that something was copied or read.',
8
- words: ['copied', 'read', 'seen'],
8
+ words: ['copied', 'read', 'seen', 'double check', 'check check'],
9
9
  builtIn: true,
10
10
  };
@@ -5,6 +5,6 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'chevronsLeft',
7
7
  description: 'Jump to the first item or page.',
8
- words: ['first', 'start'],
8
+ words: ['first', 'start', 'chevron double left'],
9
9
  builtIn: true,
10
10
  };
@@ -5,6 +5,6 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'chevronsRight',
7
7
  description: 'Jump to the last item or page.',
8
- words: ['last', 'end'],
8
+ words: ['last', 'end', 'chevron double right'],
9
9
  builtIn: true,
10
10
  };
@@ -5,6 +5,6 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'close',
7
7
  description: 'Dismiss or close a dialog, panel, tag or banner.',
8
- words: ['dismiss', 'cancel', 'remove'],
8
+ words: ['dismiss', 'cancel', 'remove', 'x', 'x mark'],
9
9
  builtIn: true,
10
10
  };
@@ -5,5 +5,5 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'collapse',
7
7
  description: 'Make something smaller or exit full screen.',
8
- words: ['minimize', 'shrink'],
8
+ words: ['minimize', 'shrink', 'arrows pointing in'],
9
9
  };
@@ -5,5 +5,5 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'compose',
7
7
  description: 'Write something new, such as a message or post.',
8
- words: ['write', 'new message', 'draft'],
8
+ words: ['write', 'new message', 'draft', 'square pen', 'pencil square'],
9
9
  };
@@ -5,5 +5,5 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'conversation',
7
7
  description: 'A conversation between people.',
8
- words: ['chat', 'discussion', 'thread'],
8
+ words: ['chat', 'discussion', 'thread', 'chat bubbles', 'messages square'],
9
9
  };
@@ -5,6 +5,6 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'copy',
7
7
  description: 'Copy to the clipboard.',
8
- words: ['duplicate', 'clipboard'],
8
+ words: ['duplicate', 'clipboard', 'document duplicate'],
9
9
  builtIn: true,
10
10
  };
@@ -0,0 +1,9 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /** @type {import('@astryxdesign/cli/authoring').IconDefinitionDoc} */
4
+ export default {
5
+ type: 'icon-definition',
6
+ name: 'cpu',
7
+ description: 'A processor or compute resource.',
8
+ words: ['processor', 'chip', 'compute', 'hardware'],
9
+ };
@@ -5,5 +5,5 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'database',
7
7
  description: 'A database or stored data.',
8
- words: ['data', 'storage', 'table'],
8
+ words: ['data', 'storage'],
9
9
  };
@@ -5,5 +5,5 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'desktop',
7
7
  description: 'A desktop computer, or the desktop layout of a page.',
8
- words: ['computer', 'monitor', 'screen'],
8
+ words: ['computer', 'monitor', 'screen', 'computer desktop'],
9
9
  };
@@ -5,5 +5,5 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'discount',
7
7
  description: 'A discount, coupon, or percentage off.',
8
- words: ['coupon', 'sale', 'percent'],
8
+ words: ['coupon', 'sale', 'percent', 'percent badge'],
9
9
  };
@@ -5,5 +5,5 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'download',
7
7
  description: 'Download a file.',
8
- words: ['export', 'save file'],
8
+ words: ['export', 'save file', 'arrow down tray'],
9
9
  };
@@ -5,5 +5,5 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'emoji',
7
7
  description: 'Add an emoji or a reaction.',
8
- words: ['smile', 'reaction', 'face'],
8
+ words: ['smile', 'reaction', 'face', 'face smile'],
9
9
  };
@@ -5,6 +5,6 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'error',
7
7
  description: 'Show that something failed.',
8
- words: ['failed', 'invalid', 'problem'],
8
+ words: ['failed', 'invalid', 'problem', 'x circle', 'circle x'],
9
9
  builtIn: true,
10
10
  };
@@ -5,5 +5,5 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'expand',
7
7
  description: 'Make something larger or full screen.',
8
- words: ['maximize', 'fullscreen', 'enlarge'],
8
+ words: ['maximize', 'fullscreen', 'enlarge', 'arrows pointing out'],
9
9
  };
@@ -5,5 +5,5 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'experiment',
7
7
  description: 'An experiment, test, or lab feature.',
8
- words: ['lab', 'test', 'beta'],
8
+ words: ['lab', 'test', 'beta', 'test tube'],
9
9
  };
@@ -5,6 +5,12 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'externalLink',
7
7
  description: 'Open a link in a new tab or another site.',
8
- words: ['open', 'new tab', 'external'],
8
+ words: [
9
+ 'open',
10
+ 'new tab',
11
+ 'external',
12
+ 'arrow top right on square',
13
+ 'square arrow out up right',
14
+ ],
9
15
  builtIn: true,
10
16
  };
@@ -5,6 +5,6 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'eyeSlash',
7
7
  description: 'Hide something, or show that it is hidden.',
8
- words: ['hide', 'hidden', 'invisible'],
8
+ words: ['hide', 'hidden', 'invisible', 'eye off'],
9
9
  builtIn: true,
10
10
  };
@@ -0,0 +1,9 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /** @type {import('@astryxdesign/cli/authoring').IconDefinitionDoc} */
4
+ export default {
5
+ type: 'icon-definition',
6
+ name: 'flipHorizontal',
7
+ description: 'Mirror an image or shape left to right.',
8
+ words: ['mirror', 'flip', 'reflect'],
9
+ };
@@ -0,0 +1,9 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /** @type {import('@astryxdesign/cli/authoring').IconDefinitionDoc} */
4
+ export default {
5
+ type: 'icon-definition',
6
+ name: 'flipVertical',
7
+ description: 'Mirror an image or shape top to bottom.',
8
+ words: ['mirror', 'flip', 'upside down'],
9
+ };
@@ -5,5 +5,5 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'folderAdd',
7
7
  description: 'Create a new folder.',
8
- words: ['new folder'],
8
+ words: ['new folder', 'folder plus'],
9
9
  };
@@ -0,0 +1,9 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /** @type {import('@astryxdesign/cli/authoring').IconDefinitionDoc} */
4
+ export default {
5
+ type: 'icon-definition',
6
+ name: 'gitBranch',
7
+ description: 'A branch of a code repository.',
8
+ words: ['branch', 'version control', 'repository'],
9
+ };
@@ -0,0 +1,9 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /** @type {import('@astryxdesign/cli/authoring').IconDefinitionDoc} */
4
+ export default {
5
+ type: 'icon-definition',
6
+ name: 'gitFork',
7
+ description: 'A fork: a copy of a repository someone develops separately.',
8
+ words: ['fork', 'repository', 'version control'],
9
+ };
@@ -5,6 +5,6 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'info',
7
7
  description: 'Give more information or help.',
8
- words: ['information', 'help', 'about'],
8
+ words: ['information', 'help', 'about', 'information circle'],
9
9
  builtIn: true,
10
10
  };
@@ -5,5 +5,5 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'location',
7
7
  description: 'A place or address.',
8
- words: ['place', 'address', 'map'],
8
+ words: ['place', 'address', 'map', 'map pin'],
9
9
  };
@@ -5,5 +5,5 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'mention',
7
7
  description: 'Mention someone or show an email address.',
8
- words: ['at', 'email', 'handle'],
8
+ words: ['at', 'email', 'handle', 'at symbol', 'at sign'],
9
9
  };
@@ -5,6 +5,6 @@ export default {
5
5
  type: 'icon-definition',
6
6
  name: 'menu',
7
7
  description: 'Open the main navigation menu.',
8
- words: ['hamburger', 'navigation'],
8
+ words: ['hamburger', 'navigation', 'bars'],
9
9
  builtIn: true,
10
10
  };