@astryx-vue/core 0.33.4 → 0.34.0

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 (266) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-CwyMvZEI.js → AlertDialog-CdrF01J0.js} +3 -3
  3. package/dist/AvatarGroup/index.d.ts +1 -1
  4. package/dist/AvatarGroup/index.js +1 -1
  5. package/dist/{AvatarGroup-BIPixZOb.js → AvatarGroup-CACtdvXz.js} +1 -1
  6. package/dist/Banner/index.d.ts +1 -1
  7. package/dist/Banner/index.js +1 -1
  8. package/dist/{Banner-CMXebR4Y.js → Banner-CAyN5-NO.js} +1 -1
  9. package/dist/BottomSheet/index.d.ts +1 -1
  10. package/dist/Breadcrumbs/index.js +2 -2
  11. package/dist/{Breadcrumbs-BPxPAEHQ.js → Breadcrumbs-BQnrbWXt.js} +1 -1
  12. package/dist/Button/index.d.ts +1 -1
  13. package/dist/Button/index.js +1 -1
  14. package/dist/{Button-B7PvGVt6.js → Button-CrZtv_4j.js} +2 -2
  15. package/dist/ButtonGroup/index.d.ts +1 -1
  16. package/dist/ButtonGroup/index.js +1 -1
  17. package/dist/{ButtonGroup-BkwQ0h97.js → ButtonGroup-Jgx-IWPz.js} +2 -2
  18. package/dist/Calendar/index.d.ts +1 -1
  19. package/dist/Card/index.d.ts +1 -1
  20. package/dist/Carousel/index.d.ts +1 -1
  21. package/dist/Carousel/index.js +1 -1
  22. package/dist/{Carousel-BmfKiv69.js → Carousel-BdhtUtf-.js} +1 -1
  23. package/dist/Chat/index.d.ts +1 -1
  24. package/dist/Chat/index.js +1 -1
  25. package/dist/{Chat-2AG37D51.js → Chat-DT712Yft.js} +1 -1
  26. package/dist/CheckboxInput/index.d.ts +1 -1
  27. package/dist/CheckboxInput/index.js +1 -1
  28. package/dist/{CheckboxInput-rbMgS8ZL.js → CheckboxInput-D8N6yvK5.js} +4 -4
  29. package/dist/CheckboxList/index.d.ts +1 -1
  30. package/dist/CheckboxList/index.js +1 -1
  31. package/dist/{CheckboxListItem-Ckt1Cwt_.js → CheckboxListItem--iUp9-KO.js} +4 -4
  32. package/dist/ClickableCard/index.d.ts +1 -1
  33. package/dist/ClickableCard/index.js +1 -1
  34. package/dist/{ClickableCard-Dh0tOQv-.js → ClickableCard-B_upAn7L.js} +1 -1
  35. package/dist/Code/index.d.ts +3 -2
  36. package/dist/Code/index.js +3 -2
  37. package/dist/Code/languages/dockerfile/index.d.ts +5 -0
  38. package/dist/Code/languages/dockerfile/index.js +47 -0
  39. package/dist/Code/languages/graphql/index.d.ts +5 -0
  40. package/dist/Code/languages/graphql/index.js +24 -0
  41. package/dist/Code/languages/java/index.d.ts +5 -0
  42. package/dist/Code/languages/java/index.js +17 -0
  43. package/dist/Code/languages/lua/index.d.ts +5 -0
  44. package/dist/Code/languages/lua/index.js +14 -0
  45. package/dist/Code/languages/objective-c/index.d.ts +5 -0
  46. package/dist/Code/languages/objective-c/index.js +29 -0
  47. package/dist/Code/languages/powershell/index.d.ts +5 -0
  48. package/dist/Code/languages/powershell/index.js +36 -0
  49. package/dist/Code/languages/ruby/index.d.ts +5 -0
  50. package/dist/Code/languages/ruby/index.js +21 -0
  51. package/dist/Code/languages/thrift/index.d.ts +5 -0
  52. package/dist/Code/languages/thrift/index.js +15 -0
  53. package/dist/Code/languages/toml/index.d.ts +5 -0
  54. package/dist/Code/languages/toml/index.js +55 -0
  55. package/dist/{CodeBlock-ZluDuBT7.js → CodeBlock-BkqcfoZ1.js} +309 -96
  56. package/dist/Collapsible/index.d.ts +1 -1
  57. package/dist/Collapsible/index.js +1 -1
  58. package/dist/{Collapsible-B_9H2wV_.js → Collapsible-BKt7UCeF.js} +1 -1
  59. package/dist/CommandPalette/index.d.ts +1 -1
  60. package/dist/CommandPalette/index.js +1 -1
  61. package/dist/{CommandPalette-Cbr-WWC8.js → CommandPalette-CvOeE6i-.js} +1 -1
  62. package/dist/ComplexSelector/index.d.ts +1 -1
  63. package/dist/ComplexSelector/index.js +1 -1
  64. package/dist/{ComplexSelector-BPvBCUJk.js → ComplexSelector-CVEfoN0k.js} +2 -2
  65. package/dist/ContextMenu/index.d.ts +1 -1
  66. package/dist/ContextMenu/index.js +2 -2
  67. package/dist/{ContextMenu-BF4ALBZn.js → ContextMenu-ZqWtb5Si.js} +2 -2
  68. package/dist/DateInput/index.d.ts +1 -1
  69. package/dist/DateInput/index.js +1 -1
  70. package/dist/{DateInput-C7PICKR2.js → DateInput-7FFzOvcu.js} +2 -2
  71. package/dist/DateRangeInput/index.d.ts +1 -1
  72. package/dist/DateRangeInput/index.js +1 -1
  73. package/dist/{DateRangeInput-Dt-BA7AA.js → DateRangeInput-C0ICAvm7.js} +3 -3
  74. package/dist/DateTimeInput/index.d.ts +1 -1
  75. package/dist/DateTimeInput/index.js +1 -1
  76. package/dist/{DateTimeInput-XEESzGJf.js → DateTimeInput-CaX09wfm.js} +4 -4
  77. package/dist/Dialog/index.d.ts +1 -1
  78. package/dist/Dialog/index.js +1 -1
  79. package/dist/{DialogHeader-DcP4xAk3.js → DialogHeader-DLaiYrvF.js} +1 -1
  80. package/dist/Drawer/index.d.ts +1 -1
  81. package/dist/Drawer/index.js +1 -1
  82. package/dist/{Drawer-CdHbZffI.js → Drawer-BpuER-VT.js} +1 -1
  83. package/dist/DropdownMenu/index.js +2 -2
  84. package/dist/{DropdownMenu-C1494BkC.js → DropdownMenu-K8JPIcSk.js} +4 -4
  85. package/dist/Field/index.js +3 -3
  86. package/dist/{Field-KszpxUdx.js → Field-CjC4qc2q.js} +1 -1
  87. package/dist/{FieldInfoTip-CY9BTVtK.js → FieldInfoTip-Cu4LNidQ.js} +1 -1
  88. package/dist/{FieldLabel-KPCTcJpO.js → FieldLabel-BFBAGrFY.js} +1 -1
  89. package/dist/FileInput/index.js +1 -1
  90. package/dist/{FileInput-BTIn6OoY.js → FileInput-DFsbOoe-.js} +3 -3
  91. package/dist/HoverCard/index.d.ts +1 -1
  92. package/dist/IconButton/index.js +1 -1
  93. package/dist/{IconButton-e5xeGow-.js → IconButton-BPjZPGRy.js} +1 -1
  94. package/dist/InfoTip/index.d.ts +1 -1
  95. package/dist/InfoTip/index.js +1 -1
  96. package/dist/{InfoTip-DpvV8zrm.js → InfoTip-DqDgJRtp.js} +1 -1
  97. package/dist/{InputClearButton-BzxJH6mk.js → InputClearButton-BZzOtoH7.js} +1 -1
  98. package/dist/InputGroup/index.js +1 -1
  99. package/dist/{InputGroup-Bj4hksiI.js → InputGroup-BN6v-b9L.js} +1 -1
  100. package/dist/InternationalizationProvider/index.d.ts +1 -1
  101. package/dist/InternationalizationProvider/index.js +1 -1
  102. package/dist/{InternationalizationProvider-BGtwZDY0.js → InternationalizationProvider-DzNfleAX.js} +1 -1
  103. package/dist/{Item-D62Cibn1.js → Item-BzjepDWA.js} +1 -1
  104. package/dist/Lightbox/index.js +1 -1
  105. package/dist/{Lightbox-FWtAn7X5.js → Lightbox-K2cAUZRG.js} +1 -1
  106. package/dist/Link/index.d.ts +1 -1
  107. package/dist/Link/index.js +1 -1
  108. package/dist/{Link-BxK3lbA-.js → Link-v-K2lhCh.js} +1 -1
  109. package/dist/List/index.d.ts +1 -1
  110. package/dist/List/index.js +2 -2
  111. package/dist/{ListItem-B4jt3EXr.js → ListItem-BTcwwpFb.js} +2 -2
  112. package/dist/Markdown/index.d.ts +1 -1
  113. package/dist/Markdown/index.js +2 -2
  114. package/dist/Markdown/parser/index.js +1 -1
  115. package/dist/{Markdown-CsoseOGe.js → Markdown-B4WsMYzN.js} +80 -5
  116. package/dist/MetadataList/index.d.ts +1 -1
  117. package/dist/MoreMenu/index.d.ts +1 -1
  118. package/dist/MoreMenu/index.js +1 -1
  119. package/dist/{MoreMenu-4zcxptan.js → MoreMenu-BF9qhsxq.js} +3 -3
  120. package/dist/MultiSelector/index.d.ts +1 -1
  121. package/dist/MultiSelector/index.js +1 -1
  122. package/dist/{MultiSelector-LuAE71wE.js → MultiSelector-CDMoxGKV.js} +3 -3
  123. package/dist/NavItem/index.js +1 -1
  124. package/dist/{NavItem-mcmzIshL.js → NavItem-DUnSwKRl.js} +1 -1
  125. package/dist/NavMenu/index.js +2 -2
  126. package/dist/{NavMenu-Bp35Bk7_.js → NavMenu-DAnQr1S5.js} +1 -1
  127. package/dist/{NavMenuItem-DviXkleh.js → NavMenuItem-CrTUxgBP.js} +2 -2
  128. package/dist/NumberInput/index.d.ts +1 -1
  129. package/dist/NumberInput/index.js +1 -1
  130. package/dist/{NumberInput-CxzhFPQw.js → NumberInput-DQ7FMUTd.js} +3 -3
  131. package/dist/Outline/index.js +1 -1
  132. package/dist/{Outline-KpA-ffCT.js → Outline-CSHJqtg4.js} +2 -2
  133. package/dist/OverflowList/index.d.ts +1 -1
  134. package/dist/OverflowList/index.js +1 -1
  135. package/dist/{OverflowList-DRZxrAYq.js → OverflowList-CK6sgmY3.js} +1 -1
  136. package/dist/Pagination/index.js +1 -1
  137. package/dist/{Pagination-B3JMAlnl.js → Pagination-B-337WLy.js} +2 -2
  138. package/dist/{PanGestureRecognizer-R5y8LZ9h.js → PanGestureRecognizer-yYMpXB93.js} +1 -1
  139. package/dist/Popover/index.d.ts +1 -1
  140. package/dist/Popover/index.js +1 -1
  141. package/dist/{Popover-CQr95J2s.js → Popover-DVrWAYg2.js} +1 -1
  142. package/dist/PowerSearch/index.d.ts +1 -1
  143. package/dist/PowerSearch/index.js +1 -1
  144. package/dist/{PowerSearch-BEaqgsZa.js → PowerSearch-sWyeh9Az.js} +19 -19
  145. package/dist/{PressTracker-Dze87pxw.js → PressTracker-CjfG1d8n.js} +2 -2
  146. package/dist/ProgressBar/index.d.ts +1 -1
  147. package/dist/Radio/index.d.ts +1 -1
  148. package/dist/Radio/index.js +1 -1
  149. package/dist/{RadioGroup-CpMYh9eL.js → RadioGroup-BloTgj7H.js} +4 -4
  150. package/dist/RadioList/index.d.ts +1 -1
  151. package/dist/RadioList/index.js +1 -1
  152. package/dist/{RadioListItem-n-h5r1GO.js → RadioListItem-BERujpW8.js} +1 -1
  153. package/dist/Resizable/index.d.ts +1 -1
  154. package/dist/ScrollableArea/index.d.ts +1 -1
  155. package/dist/SegmentedControl/index.js +1 -1
  156. package/dist/{SegmentedControl-nz9d6e0y.js → SegmentedControl-BzvLJL8T.js} +6 -6
  157. package/dist/SelectableCard/index.d.ts +1 -1
  158. package/dist/SelectableCard/index.js +1 -1
  159. package/dist/{SelectableCard-C018jluo.js → SelectableCard-IAv2X4dq.js} +1 -1
  160. package/dist/Selector/index.d.ts +1 -1
  161. package/dist/Selector/index.js +1 -1
  162. package/dist/{Selector-CW1jaM4F.js → Selector-CsEWOfWV.js} +1 -1
  163. package/dist/SideNav/index.d.ts +1 -1
  164. package/dist/SideNav/index.js +1 -1
  165. package/dist/{SideNav-DgRpBPuP.js → SideNav-CVAi462m.js} +2 -2
  166. package/dist/Slider/index.js +1 -1
  167. package/dist/{Slider-Bz72itTP.js → Slider-D0omHlRI.js} +5 -5
  168. package/dist/Stack/index.d.ts +1 -1
  169. package/dist/Stepper/index.d.ts +1 -1
  170. package/dist/Stepper/index.js +1 -1
  171. package/dist/{Stepper-Af_rH8C4.js → Stepper-CetoMTog.js} +1 -1
  172. package/dist/Switch/index.d.ts +1 -1
  173. package/dist/Switch/index.js +1 -1
  174. package/dist/{Switch-BYsb1gKn.js → Switch-DTwurKmh.js} +6 -6
  175. package/dist/TabList/index.d.ts +1 -1
  176. package/dist/TabList/index.js +1 -1
  177. package/dist/{TabList-Cgw2IuL-.js → TabList-BJTT4nm6.js} +2 -2
  178. package/dist/Table/index.d.ts +1 -1
  179. package/dist/Table/index.js +1 -1
  180. package/dist/{Table-DzE-4_og.js → Table-CUqi9BXT.js} +11 -11
  181. package/dist/TextArea/index.d.ts +1 -1
  182. package/dist/TextArea/index.js +1 -1
  183. package/dist/{TextArea-DrYMTaZm.js → TextArea-BKwmXPGQ.js} +4 -4
  184. package/dist/TextInput/index.d.ts +1 -1
  185. package/dist/TextInput/index.js +1 -1
  186. package/dist/{TextInput-B-1cuwcB.js → TextInput-CRXs8cDs.js} +4 -4
  187. package/dist/Thumbnail/index.js +1 -1
  188. package/dist/{Thumbnail-DeMaRkDU.js → Thumbnail-GUwgnwZb.js} +2 -2
  189. package/dist/{TimeField-C1Nv-fz3.js → TimeField-Bn_ziTCi.js} +1 -1
  190. package/dist/TimeInput/index.d.ts +1 -1
  191. package/dist/TimeInput/index.js +1 -1
  192. package/dist/{TimeInput-Dvh6qqHI.js → TimeInput-BKkwmN1V.js} +2 -2
  193. package/dist/Timestamp/index.d.ts +1 -1
  194. package/dist/Timestamp/index.js +1 -1
  195. package/dist/{Timestamp-wFkl39dn.js → Timestamp-Dlz2SvSe.js} +1 -1
  196. package/dist/Toast/index.js +1 -1
  197. package/dist/{Toast-CO6Z1r1s.js → Toast-BSnsRCyB.js} +3 -3
  198. package/dist/ToggleButton/index.d.ts +1 -1
  199. package/dist/ToggleButton/index.js +1 -1
  200. package/dist/{ToggleButton-DPpjDYxP.js → ToggleButton-DE79lIQq.js} +3 -3
  201. package/dist/Token/index.js +1 -1
  202. package/dist/{Token-DZkUAIYA.js → Token-BdClMOG9.js} +1 -1
  203. package/dist/Tokenizer/index.d.ts +1 -1
  204. package/dist/Tokenizer/index.js +1 -1
  205. package/dist/{Tokenizer-CX7D4klL.js → Tokenizer-BitI30VU.js} +5 -5
  206. package/dist/Toolbar/index.d.ts +1 -1
  207. package/dist/Tooltip/index.d.ts +1 -1
  208. package/dist/TopNav/index.d.ts +1 -1
  209. package/dist/TopNav/index.js +1 -1
  210. package/dist/{TopNav-D8Hc_kQ-.js → TopNav-BUjEldSq.js} +2 -2
  211. package/dist/TreeList/index.js +1 -1
  212. package/dist/{TreeList-lNyuRBOk.js → TreeList-BVJ3V-xI.js} +1 -1
  213. package/dist/Typeahead/index.js +1 -1
  214. package/dist/{Typeahead-BiosTaFo.js → Typeahead-C54ao2ye.js} +3 -3
  215. package/dist/{accessibleName-f5xApbXG.js → accessibleName-19W3jhkD.js} +1 -1
  216. package/dist/{boxHold-YML2o6iP.js → boxHold-0ChMpiin.js} +1 -1
  217. package/dist/code-block-DCVrTLMZ.js +19 -0
  218. package/dist/composables/index.js +4 -4
  219. package/dist/{composables-CPDafrux.js → composables-CF2weN-L.js} +2 -2
  220. package/dist/{geometry-CGa3nNzZ.js → geometry-BnZ6uDX_.js} +1 -1
  221. package/dist/grammar-4Pn2745Q.d.ts +58 -0
  222. package/dist/grammar-Dz71GleT.js +144 -0
  223. package/dist/{index-B6GTqpW-.d.ts → index--kbwaSXW.d.ts} +3 -3
  224. package/dist/{index-CQi9WGWE.d.ts → index-AgTJRqUY.d.ts} +2 -2
  225. package/dist/{index-CTv55aOa.d.ts → index-BRr_eg_u.d.ts} +1 -1
  226. package/dist/{index-ChqMaV6N.d.ts → index-BZDl_iLU.d.ts} +61 -13
  227. package/dist/{index-BB9acgK8.d.ts → index-BgT6mH3U.d.ts} +1 -1
  228. package/dist/{index-C1e8LNx2.d.ts → index-BjqoHLMq.d.ts} +1 -1
  229. package/dist/{index-DofC9Rll.d.ts → index-BtqvPjAf.d.ts} +1 -1
  230. package/dist/{index-CZ29Xu_E.d.ts → index-Bwh8O-v8.d.ts} +1 -1
  231. package/dist/{index-BdICULsZ.d.ts → index-CArlEl1O.d.ts} +555 -159
  232. package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
  233. package/dist/{index-a_FOKJMw.d.ts → index-CbA8rR_b.d.ts} +2 -2
  234. package/dist/{index-jz9GfvS0.d.ts → index-CdvmnNMH.d.ts} +1 -1
  235. package/dist/{index-DhrnMYVh.d.ts → index-D1C2Nt3F.d.ts} +2 -2
  236. package/dist/{index-BVx-HFp8.d.ts → index-D9t_l8pJ.d.ts} +1 -1
  237. package/dist/{index-CukA-J8A.d.ts → index-DHsYyqMP.d.ts} +9 -9
  238. package/dist/{index-DYabo8TI.d.ts → index-DPhQZXYw.d.ts} +1 -1
  239. package/dist/{index-CUuUoX3h.d.ts → index-JE1HrzdJ.d.ts} +3 -3
  240. package/dist/{index-utZGF4GR.d.ts → index-NOXYEdOI.d.ts} +1 -1
  241. package/dist/{index-DN5Ga_Zm.d.ts → index-QC9FDUDA.d.ts} +3 -3
  242. package/dist/{index-CpkQlo1t.d.ts → index-V6uruC4Z.d.ts} +2 -2
  243. package/dist/{index-tdOyqA_U.d.ts → index-a6o69uPN.d.ts} +2 -2
  244. package/dist/{index-C9uW39Mj.d.ts → index-mK1ICsVg.d.ts} +3 -3
  245. package/dist/{index-DlsrR4Gm.d.ts → index-uLDBzCDo.d.ts} +10 -10
  246. package/dist/{index-ql9ApSTF.d.ts → index-yQc-te9a.d.ts} +2 -2
  247. package/dist/index.d.ts +27 -27
  248. package/dist/index.js +80 -78
  249. package/dist/{loadCatalog-BODWYaNy.d.ts → loadCatalog-C_Cy_8WN.d.ts} +2 -0
  250. package/dist/{loadCatalog-DMOOMWtw.js → loadCatalog-VlWGFIMU.js} +6 -17
  251. package/dist/locale/index.d.ts +2 -2
  252. package/dist/locale/index.js +3 -2
  253. package/dist/{locale-C8X7gJlc.js → locale-U0KLmREA.js} +1 -1
  254. package/dist/{pressFeedback--_INTed0.js → pressFeedback-B3cqaMGl.js} +1 -1
  255. package/dist/{publicParser-C8RBKNLA.js → publicParser-Dbu2LRTf.js} +2 -2
  256. package/dist/{useActionGroupTracking-BTjuGF9J.js → useActionGroupTracking-D0IwimcQ.js} +2 -2
  257. package/dist/{useInputStatusIcon-Bl2JFlc3.js → useInputStatusIcon-C2AkJiAT.js} +1 -1
  258. package/dist/{useMenuPress-CF1GHP_7.js → useMenuPress-B5h9PBx_.js} +1 -1
  259. package/dist/{usePressFeedback-B_NavJu0.js → usePressFeedback-iyoKakPX.js} +1 -1
  260. package/dist/{useTouchHitArea-BpEJXuu-.js → useTouchHitArea-MvzPCmJg.js} +1 -1
  261. package/package.json +37 -1
  262. package/reset.css +14 -0
  263. package/styles/code.css +85 -8
  264. package/styles/markdown.css +6 -5
  265. package/styles/progress-bar.css +25 -26
  266. package/dist/index-C9ZssPUV.d.ts +0 -380
@@ -1,6 +1,6 @@
1
1
  import { t as _sfc_main$4 } from "./Icon-Dk0jccgU.js";
2
2
  import { i as useSize } from "./SizeContext-BbaF-SEx.js";
3
- import { t as _sfc_main$5 } from "./Button-B7PvGVt6.js";
3
+ import { t as _sfc_main$5 } from "./Button-CrZtv_4j.js";
4
4
  import { t as isImeKeyEvent } from "./ime-VY8-80S8.js";
5
5
  import { a as trackInteractionModality, t as getInteractionModality } from "./interactionModality-4Km2ibsq.js";
6
6
  import { t as _sfc_main$6 } from "./ButtonTooltip-ZpQP-aQg.js";
@@ -8,7 +8,7 @@ import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
8
8
  import { n as isDevBuild, t as devPropError } from "./devBuild-G249YcdZ.js";
9
9
  import { t as devWarn } from "./useDevWarning-B2fsk2B-.js";
10
10
  import { t as useAnnounce } from "./announce-GU01Oix2.js";
11
- import { t as useInputStatusIcon } from "./useInputStatusIcon-Bl2JFlc3.js";
11
+ import { t as useInputStatusIcon } from "./useInputStatusIcon-C2AkJiAT.js";
12
12
  import { o as useComponentMessages } from "./context-B8IEFCDR.js";
13
13
  import { t as useOverflow } from "./useOverflow-GU0pxGaU.js";
14
14
  import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
@@ -22,14 +22,14 @@ import { t as useHeldPresentation } from "./useHeldPresentation-CaIKTwUh.js";
22
22
  import { n as preloadBottomSheet, t as LazyBottomSheet } from "./lazyBottomSheet-Bg5E8lr3.js";
23
23
  import { t as useBusyAnnouncement } from "./busyAnnouncement-CExubuYm.js";
24
24
  import { n as spinnerOwnerKey, t as _sfc_main$12 } from "./Spinner-D1adu3uH.js";
25
- import { t as _sfc_main$13 } from "./Field-KszpxUdx.js";
25
+ import { t as _sfc_main$13 } from "./Field-CjC4qc2q.js";
26
26
  import { t as useFieldPartStyling } from "./fieldParts-CuE5V12i.js";
27
27
  import { n as alertDialogMessages, t as tokenizerMessages } from "./tokenizer-C1y-55Ft.js";
28
28
  import { t as _sfc_main$14 } from "./EmptyState-BAP8BpDj.js";
29
- import { t as _sfc_main$15 } from "./Token-DZkUAIYA.js";
29
+ import { t as _sfc_main$15 } from "./Token-BdClMOG9.js";
30
30
  import { n as scrollOptionIntoView, r as useAnchoredListbox } from "./stillPointerGate-BvCX7ddI.js";
31
31
  import { i as _sfc_main$16, n as useTypeaheadAnnouncement, o as useTypeaheadMenu, r as useLatchedOptionGrid, t as useTypeaheadMenuConfig } from "./useTypeaheadMenuConfig-COiZ4isy.js";
32
- import { t as _sfc_main$17 } from "./TextInput-B-1cuwcB.js";
32
+ import { t as _sfc_main$17 } from "./TextInput-CRXs8cDs.js";
33
33
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, isRef, mergeModels, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onMounted, openBlock, provide, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useSlots, useTemplateRef, watch, withCtx } from "vue";
34
34
  import "../styles/layer.css";
35
35
  import "../styles/alert-dialog.css";
@@ -1,3 +1,3 @@
1
- import { T as _default } from "../index-BdICULsZ.js";
1
+ import { T as _default } from "../index-CArlEl1O.js";
2
2
  import { et as ToolbarOrientation, nt as ToolbarSize, tt as ToolbarProps } from "../useResizable-CKDaU_se.js";
3
3
  export { _default as Toolbar, type ToolbarOrientation, type ToolbarProps, type ToolbarSize };
@@ -1,2 +1,2 @@
1
- import { a as TooltipAlignment, c as TooltipProps, i as _default, l as TooltipTouchTrigger, n as UseTooltipReturn, o as TooltipFocusTrigger, r as useTooltip, s as TooltipPlacement, t as UseTooltipOptions } from "../index-DYabo8TI.js";
1
+ import { a as TooltipAlignment, c as TooltipProps, i as _default, l as TooltipTouchTrigger, n as UseTooltipReturn, o as TooltipFocusTrigger, r as useTooltip, s as TooltipPlacement, t as UseTooltipOptions } from "../index-DPhQZXYw.js";
2
2
  export { _default as Tooltip, type TooltipAlignment, type TooltipFocusTrigger, type TooltipPlacement, type TooltipProps, type TooltipTouchTrigger, type UseTooltipOptions, type UseTooltipReturn, useTooltip };
@@ -1,2 +1,2 @@
1
- import { C as TopNavMenuProps, S as TopNavMenuItem, _ as TopNavMegaMenuEmits, b as TopNavMegaMenuProps, c as _default$5, d as _default$2, f as _default$1, g as TopNavItemProps, h as TopNavItemEmits, l as _default$4, m as TopNavHeadingProps, p as _default, s as _default$6, u as _default$3, v as TopNavMegaMenuFeaturedCardProps, w as TopNavProps, x as TopNavMenuEmits, y as TopNavMegaMenuItemProps } from "../index-BdICULsZ.js";
1
+ import { C as TopNavMenuProps, S as TopNavMenuItem, _ as TopNavMegaMenuEmits, b as TopNavMegaMenuProps, c as _default$5, d as _default$2, f as _default$1, g as TopNavItemProps, h as TopNavItemEmits, l as _default$4, m as TopNavHeadingProps, p as _default, s as _default$6, u as _default$3, v as TopNavMegaMenuFeaturedCardProps, w as TopNavProps, x as TopNavMenuEmits, y as TopNavMegaMenuItemProps } from "../index-CArlEl1O.js";
2
2
  export { _default as TopNav, _default$1 as TopNavHeading, type TopNavHeadingProps, _default$2 as TopNavItem, type TopNavItemEmits, type TopNavItemProps, _default$3 as TopNavMegaMenu, type TopNavMegaMenuEmits, _default$4 as TopNavMegaMenuFeaturedCard, type TopNavMegaMenuFeaturedCardProps, _default$5 as TopNavMegaMenuItem, type TopNavMegaMenuItemProps, type TopNavMegaMenuProps, _default$6 as TopNavMenu, type TopNavMenuEmits, type TopNavMenuItem, type TopNavMenuProps, type TopNavProps };
@@ -1,2 +1,2 @@
1
- import { a as _sfc_main$2, i as _sfc_main$3, n as _sfc_main$5, o as _sfc_main$1, r as _sfc_main$4, s as _sfc_main, t as _sfc_main$6 } from "../TopNav-D8Hc_kQ-.js";
1
+ import { a as _sfc_main$2, i as _sfc_main$3, n as _sfc_main$5, o as _sfc_main$1, r as _sfc_main$4, s as _sfc_main, t as _sfc_main$6 } from "../TopNav-BUjEldSq.js";
2
2
  export { _sfc_main as TopNav, _sfc_main$1 as TopNavHeading, _sfc_main$2 as TopNavItem, _sfc_main$3 as TopNavMegaMenu, _sfc_main$4 as TopNavMegaMenuFeaturedCard, _sfc_main$5 as TopNavMegaMenuItem, _sfc_main$6 as TopNavMenu };
@@ -11,9 +11,9 @@ import { n as _sfc_main$11, t as _sfc_main$10 } from "./MobileNavToggle-AgT6hzTg
11
11
  import { n as mobileNavKey, t as mobileNavCloseKey } from "./context-D8MAZio1.js";
12
12
  import { t as useCloseMobileDrawer } from "./closeOnActivate-D1KgKWwm.js";
13
13
  import { i as safeNavHref, n as isNavigableHref, r as resolveNavRoot } from "./link-DuuA2eCL.js";
14
- import { t as _sfc_main$12 } from "./NavItem-mcmzIshL.js";
14
+ import { t as _sfc_main$12 } from "./NavItem-DUnSwKRl.js";
15
15
  import { n as navMenuCloseKey, o as navMenuPickKey, t as _sfc_main$13 } from "./NavDisclosure-CSnUZY3k.js";
16
- import { n as _sfc_main$15, t as _sfc_main$14 } from "./NavMenuItem-DviXkleh.js";
16
+ import { n as _sfc_main$15, t as _sfc_main$14 } from "./NavMenuItem-CrTUxgBP.js";
17
17
  import { t as _sfc_main$16 } from "./NavHeadingSurface-C3fTf5--.js";
18
18
  import { Fragment, Teleport, Text, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, inject, nextTick, normalizeClass, normalizeProps, onMounted, openBlock, provide, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useId, useSlots, watch, withCtx, withModifiers } from "vue";
19
19
  import "../styles/top-nav.css";
@@ -1,2 +1,2 @@
1
- import { n as useTreeFocus, t as _sfc_main } from "../TreeList-lNyuRBOk.js";
1
+ import { n as useTreeFocus, t as _sfc_main } from "../TreeList-BVJ3V-xI.js";
2
2
  export { _sfc_main as TreeList, useTreeFocus };
@@ -1,5 +1,5 @@
1
1
  import { a as isInLayerSurface } from "./useClickableContainer-Dtjg-nkm.js";
2
- import { t as usePressFeedback } from "./usePressFeedback-B_NavJu0.js";
2
+ import { t as usePressFeedback } from "./usePressFeedback-iyoKakPX.js";
3
3
  import { i as isIconGlyph, t as _sfc_main$2 } from "./Icon-Dk0jccgU.js";
4
4
  import { n as isSafeUrl } from "./safeUrl-CsvfcZ9m.js";
5
5
  import { n as useLinkComponent } from "./context-C_peZbXf.js";
@@ -1,3 +1,3 @@
1
1
  import { a as _sfc_main$2 } from "../useTypeaheadMenuConfig-COiZ4isy.js";
2
- import { n as _sfc_main, t as _sfc_main$1 } from "../Typeahead-BiosTaFo.js";
2
+ import { n as _sfc_main, t as _sfc_main$1 } from "../Typeahead-C54ao2ye.js";
3
3
  export { _sfc_main as BaseTypeahead, _sfc_main$1 as Typeahead, _sfc_main$2 as TypeaheadItem };
@@ -4,16 +4,16 @@ import { t as isImeKeyEvent } from "./ime-VY8-80S8.js";
4
4
  import { t as _sfc_main$3 } from "./ButtonTooltip-ZpQP-aQg.js";
5
5
  import { t as useButtonTooltip } from "./useButtonTooltip-DjCaZMp_.js";
6
6
  import { t as useAnnounce } from "./announce-GU01Oix2.js";
7
- import { t as useInputStatusIcon } from "./useInputStatusIcon-Bl2JFlc3.js";
7
+ import { t as useInputStatusIcon } from "./useInputStatusIcon-C2AkJiAT.js";
8
8
  import { o as useComponentMessages } from "./context-B8IEFCDR.js";
9
9
  import { t as useResolvedLabelHidden } from "./useResolvedLabelHidden-B2rlWiaI.js";
10
10
  import { t as useScrollbars } from "./useScrollbars-Ch0xqJWO.js";
11
11
  import { t as useBusyAnnouncement } from "./busyAnnouncement-CExubuYm.js";
12
12
  import { t as _sfc_main$4 } from "./Spinner-D1adu3uH.js";
13
- import { t as _sfc_main$5 } from "./Field-KszpxUdx.js";
13
+ import { t as _sfc_main$5 } from "./Field-CjC4qc2q.js";
14
14
  import { t as useFieldPartStyling } from "./fieldParts-CuE5V12i.js";
15
15
  import { t as typeaheadMessages } from "./typeahead-BgfLP7vR.js";
16
- import { t as _sfc_main$6 } from "./Token-DZkUAIYA.js";
16
+ import { t as _sfc_main$6 } from "./Token-BdClMOG9.js";
17
17
  import { n as scrollOptionIntoView, r as useAnchoredListbox } from "./stillPointerGate-BvCX7ddI.js";
18
18
  import { i as _sfc_main$7, n as useTypeaheadAnnouncement, o as useTypeaheadMenu, r as useLatchedOptionGrid, t as useTypeaheadMenuConfig } from "./useTypeaheadMenuConfig-COiZ4isy.js";
19
19
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, guardReactiveProps, inject, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onMounted, openBlock, provide, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useTemplateRef, watch, withCtx } from "vue";
@@ -3,7 +3,7 @@ import { t as _sfc_main$4 } from "./Icon-Dk0jccgU.js";
3
3
  import { t as focusForLastInput } from "./focusReturn-DfZS7TCp.js";
4
4
  import { o as useComponentMessages } from "./context-B8IEFCDR.js";
5
5
  import { r as keepDisabledRowUnfocused } from "./menuActivation-BQqnzKAX.js";
6
- import { t as _sfc_main$5 } from "./Item-D62Cibn1.js";
6
+ import { t as _sfc_main$5 } from "./Item-BzjepDWA.js";
7
7
  import { t as _sfc_main$6 } from "./CheckboxIndicator-fH4d-JE1.js";
8
8
  import { r as useCompactDefinition } from "./compactDefinition-BeFUKEFg.js";
9
9
  import { r as readCompactTouch } from "./presentationHold-ZKixVLcz.js";
@@ -1,4 +1,4 @@
1
- import { n as installBoxHold } from "./pressFeedback--_INTed0.js";
1
+ import { n as installBoxHold } from "./pressFeedback-B3cqaMGl.js";
2
2
  import { t as armClickGuard } from "./clickGuard-CxqcfBCJ.js";
3
3
  import { i as subscribeInput } from "./inputStream-HXw2lZ-3.js";
4
4
  import { n as lockSelection } from "./selectionLock-BrUpRS0E.js";
@@ -0,0 +1,19 @@
1
+ //#region src/locale/messages/code-block.ts
2
+ const codeBlockMessages = {
3
+ "en": {
4
+ copied: "Copied",
5
+ copyFailed: "Failed to copy value to clipboard.",
6
+ copyCode: "Copy code",
7
+ code: "Code",
8
+ diffLabel: (language) => `${language} diff`
9
+ },
10
+ "zh-CN": {
11
+ copied: "已复制",
12
+ copyFailed: "复制失败",
13
+ copyCode: "复制代码",
14
+ code: "代码",
15
+ diffLabel: (language) => `${language} diff`
16
+ }
17
+ };
18
+ //#endregion
19
+ export { codeBlockMessages as t };
@@ -1,5 +1,5 @@
1
1
  import { i as useClickableContainer, n as hasInteractiveAncestor, r as hasTextSelection, t as INTERACTIVE_SELECTORS } from "../useClickableContainer-Dtjg-nkm.js";
2
- import { t as usePressFeedback } from "../usePressFeedback-B_NavJu0.js";
2
+ import { t as usePressFeedback } from "../usePressFeedback-iyoKakPX.js";
3
3
  import { n as useLayerTeleportTarget, r as useResolvedLayerTeleport, t as useLayerMountTarget } from "../useLayerMountTarget-zwZQglr2.js";
4
4
  import { t as useDismiss } from "../useDismiss-6SGAlkB_.js";
5
5
  import { n as useLayer } from "../tooltipTriggerRules-CHNpQ6RL.js";
@@ -7,7 +7,7 @@ import { t as useCoarsePointer } from "../useCoarsePointer-GItEMrjX.js";
7
7
  import { t as useMediaQuery } from "../useMediaQuery-BzXGT1Aw.js";
8
8
  import { t as characterCount } from "../characters-wTnzjkkR.js";
9
9
  import { n as useDevWarning, t as devWarn } from "../useDevWarning-B2fsk2B-.js";
10
- import { _ as useAnimator, a as usePanGesture, b as createAnimator, c as imageModeFromPixels, d as useGridRovingFocus, f as useGridFocus, g as useContainerReveal, h as useControllableState, i as useSnapPaging, l as perceptualLightness, m as useDragToSnapPoints, n as snapToGraphemeBoundary, o as useKeyboardHint, p as useEntryAnimation, r as useStreamingText, s as useIndicatorFocusRing, t as useTouchTrigger, u as useImageMode, v as createDragToSnapPoints, y as createPanGesture } from "../composables-CPDafrux.js";
10
+ import { _ as useAnimator, a as usePanGesture, b as createAnimator, c as imageModeFromPixels, d as useGridRovingFocus, f as useGridFocus, g as useContainerReveal, h as useControllableState, i as useSnapPaging, l as perceptualLightness, m as useDragToSnapPoints, n as snapToGraphemeBoundary, o as useKeyboardHint, p as useEntryAnimation, r as useStreamingText, s as useIndicatorFocusRing, t as useTouchTrigger, u as useImageMode, v as createDragToSnapPoints, y as createPanGesture } from "../composables-CF2weN-L.js";
11
11
  import { t as useAnimatedLayout } from "../useAnimatedLayout-CRAuCwTZ.js";
12
12
  import { t as useAnnounce } from "../announce-GU01Oix2.js";
13
13
  import { n as useAppShellMobile, t as appShellMobileKey } from "../useAppShellMobile-DTsyuAJ4.js";
@@ -24,10 +24,10 @@ import { t as useFocusTrap } from "../useFocusTrap-DcjriBe1.js";
24
24
  import { t as useHandleRef } from "../useHandleRef-6cdKugm8.js";
25
25
  import { n as percent, r as useHotkeys, t as useResizable } from "../useResizable-I0APFcMz.js";
26
26
  import { t as useInputContainer } from "../useInputContainer-CLhsKYZ6.js";
27
- import { t as useInputStatusIcon } from "../useInputStatusIcon-Bl2JFlc3.js";
27
+ import { t as useInputStatusIcon } from "../useInputStatusIcon-C2AkJiAT.js";
28
28
  import { t as useInteractiveRole } from "../useInteractiveRole-Cn0Nd5GX.js";
29
29
  import { t as useListFocus } from "../useListFocus-Ccd_HU9T.js";
30
- import { a as menuPressStep, c as resetMenuPress, i as MENU_PRESS_SETTLE_MS, l as useLongPress, n as useMenuPress, o as MENU_PRESS_MARKER, r as MENU_PRESS_HANDOFF_PX, s as isMenuPressActivation, t as MENU_PRESS_LIT_ATTRIBUTE } from "../useMenuPress-CF1GHP_7.js";
30
+ import { a as menuPressStep, c as resetMenuPress, i as MENU_PRESS_SETTLE_MS, l as useLongPress, n as useMenuPress, o as MENU_PRESS_MARKER, r as MENU_PRESS_HANDOFF_PX, s as isMenuPressActivation, t as MENU_PRESS_LIT_ATTRIBUTE } from "../useMenuPress-B5h9PBx_.js";
31
31
  import { t as useMergedRefs } from "../useMergedRefs-DTGo1cEU.js";
32
32
  import { a as todayISODate, i as toISODate, n as buildMonthGrid, r as parseISODate, t as addMonths } from "../useMonthGrid-Bzvlstgc.js";
33
33
  import { n as useNumberField, t as computeSteppedValue } from "../useNumberField-Dk1BE3-K.js";
@@ -8,8 +8,8 @@ import { n as createMotionEngine, r as SETTLE_THRESHOLD } from "./animator-ozeBZ
8
8
  import { t as devWarn } from "./useDevWarning-B2fsk2B-.js";
9
9
  import { t as resolveMotion } from "./resolveMotion-DftkGFw6.js";
10
10
  import { a as registerSpringsTable, o as springs } from "./springs-DjAn_oV5.js";
11
- import { c as isActive, i as getGestureHost, r as travel, s as MANIPULATION } from "./geometry-CGa3nNzZ.js";
12
- import { n as GestureRecognizer, t as PanGestureRecognizer } from "./PanGestureRecognizer-R5y8LZ9h.js";
11
+ import { c as isActive, i as getGestureHost, r as travel, s as MANIPULATION } from "./geometry-BnZ6uDX_.js";
12
+ import { n as GestureRecognizer, t as PanGestureRecognizer } from "./PanGestureRecognizer-yYMpXB93.js";
13
13
  import { i as locksSelectionFor, n as lockSelection } from "./selectionLock-BrUpRS0E.js";
14
14
  import { t as resolveSnapPoint } from "./resolveSnapPoint-A4dhS5jj.js";
15
15
  import { t as useAttachment } from "./useAttachment-CGiD9rt6.js";
@@ -1,5 +1,5 @@
1
1
  import { c as containsAlongFlatTree, d as shadowHostOf, f as shadowRootsOutward, g as isNode, h as isHTMLElement, l as deepActiveElement, m as isElement, n as sharedKey, t as realmValue, u as parentAcrossShadow } from "./sharedRealm-DBtNH73I.js";
2
- import { d as isInsideScrollView, f as parseTouchAction, m as clockOf, p as rootOverflow, u as SCROLLABLE_OVERFLOW } from "./pressFeedback--_INTed0.js";
2
+ import { d as isInsideScrollView, f as parseTouchAction, m as clockOf, p as rootOverflow, u as SCROLLABLE_OVERFLOW } from "./pressFeedback-B3cqaMGl.js";
3
3
  import { i as withoutClickGuard, n as disarmClickGuard, t as armClickGuard } from "./clickGuard-CxqcfBCJ.js";
4
4
  import { i as subscribeInput } from "./inputStream-HXw2lZ-3.js";
5
5
  import { i as UIKIT_LONG_PRESS, o as UIKIT_PRESS, s as UIKIT_TAP } from "./gestures-yKyyMqeQ.js";
@@ -0,0 +1,58 @@
1
+ //#region src/Code/grammar.d.ts
2
+ declare const LANGUAGE: unique symbol;
3
+ /** A flat token from a custom tokenize function: absolute offsets in `code`. */
4
+ interface CodeLanguageToken {
5
+ type: string;
6
+ start: number;
7
+ end: number;
8
+ }
9
+ /** A custom language's tokenize function, the shape `tokenizer` takes. */
10
+ type CodeLanguageTokenize = (code: string, language: string) => CodeLanguageToken[];
11
+ /**
12
+ * A language value: an Astryx module from
13
+ * `@astryx-vue/core/Code/languages/<name>`, or a custom language from
14
+ * `createCodeLanguage`. Pass it as `language`, or list it in `codeLanguages`
15
+ * on Markdown and RichTextEditor.
16
+ */
17
+ interface CodeLanguage {
18
+ /** The identifier the label shows, such as `graphql`; shown verbatim. */
19
+ readonly name: string;
20
+ /** The words that name this language in `language` strings and fences. */
21
+ readonly identifiers: ReadonlyArray<string>;
22
+ /** File extensions (no dot) that infer this language, such as `graphql`. */
23
+ readonly fileExtensions: ReadonlyArray<string>;
24
+ /** Whole file names that infer this language, such as `Dockerfile`. */
25
+ readonly fileNames: ReadonlyArray<string>;
26
+ readonly [LANGUAGE]: true;
27
+ }
28
+ interface CodeLanguageMeta {
29
+ name: string;
30
+ identifiers: ReadonlyArray<string>;
31
+ fileExtensions?: ReadonlyArray<string>;
32
+ fileNames?: ReadonlyArray<string>;
33
+ }
34
+ type CreateCodeLanguageOptions = CodeLanguageMeta & {
35
+ /** Returns the tokens of `code`; runs synchronously. */
36
+ tokenize: CodeLanguageTokenize;
37
+ };
38
+ /**
39
+ * Make a custom language value from your own tokenize function. It works
40
+ * everywhere an Astryx language module does: as `language`, and in
41
+ * `codeLanguages` on Markdown and RichTextEditor.
42
+ *
43
+ * @example
44
+ * ```
45
+ * const zig = createCodeLanguage({
46
+ * name: 'zig',
47
+ * identifiers: ['zig'],
48
+ * fileExtensions: ['zig'],
49
+ * tokenize: zigTokens,
50
+ * });
51
+ * <CodeBlock :language="zig" :code="source" />
52
+ * ```
53
+ */
54
+ declare function createCodeLanguage({ tokenize, ...meta }: CreateCodeLanguageOptions): CodeLanguage;
55
+ /** Whether `value` is a language value. */
56
+ declare function isCodeLanguage(value: unknown): value is CodeLanguage;
57
+ //#endregion
58
+ export { createCodeLanguage as a, CreateCodeLanguageOptions as i, CodeLanguageToken as n, isCodeLanguage as o, CodeLanguageTokenize as r, CodeLanguage as t };
@@ -0,0 +1,144 @@
1
+ //#region src/Code/grammar.ts
2
+ const LANGUAGE = Symbol.for("astryx.codeLanguage");
3
+ function makeLanguage(meta, painter) {
4
+ return {
5
+ name: meta.name,
6
+ identifiers: meta.identifiers,
7
+ fileExtensions: meta.fileExtensions ?? [],
8
+ fileNames: meta.fileNames ?? [],
9
+ [LANGUAGE]: true,
10
+ painter
11
+ };
12
+ }
13
+ /** Make an Astryx language module from grammar data. Internal. */
14
+ function defineCodeLanguage(meta, grammar) {
15
+ return makeLanguage(meta, () => ({
16
+ kind: "grammar",
17
+ grammar: grammar()
18
+ }));
19
+ }
20
+ /**
21
+ * Make a custom language value from your own tokenize function. It works
22
+ * everywhere an Astryx language module does: as `language`, and in
23
+ * `codeLanguages` on Markdown and RichTextEditor.
24
+ *
25
+ * @example
26
+ * ```
27
+ * const zig = createCodeLanguage({
28
+ * name: 'zig',
29
+ * identifiers: ['zig'],
30
+ * fileExtensions: ['zig'],
31
+ * tokenize: zigTokens,
32
+ * });
33
+ * <CodeBlock :language="zig" :code="source" />
34
+ * ```
35
+ */
36
+ function createCodeLanguage({ tokenize, ...meta }) {
37
+ return makeLanguage(meta, () => ({
38
+ kind: "tokenize",
39
+ tokenize
40
+ }));
41
+ }
42
+ /** Whether `value` is a language value. */
43
+ function isCodeLanguage(value) {
44
+ return typeof value === "object" && value !== null && value[LANGUAGE] === true;
45
+ }
46
+ /** How a language value paints, or null for any other value. */
47
+ function codeLanguagePainter(language) {
48
+ const internal = language;
49
+ return isCodeLanguage(language) && typeof internal.painter === "function" ? internal.painter() : null;
50
+ }
51
+ /**
52
+ * Whether `language` is a custom language (made with `createCodeLanguage`),
53
+ * whose function runs synchronously at any length, as `tokenizer` does.
54
+ */
55
+ function isCustomCodeLanguage(language) {
56
+ return typeof language !== "string" && codeLanguagePainter(language)?.kind === "tokenize";
57
+ }
58
+ /** The word a language reflects and labels: a string itself, or a value's name. */
59
+ function languageLabel(language) {
60
+ return typeof language === "string" ? language : language.name;
61
+ }
62
+ /** The word a language reflects as `data-language`: its first identifier. */
63
+ function languageKey(language) {
64
+ return typeof language === "string" ? language : language.identifiers[0] ?? language.name;
65
+ }
66
+ /** The listed value that claims `word`; a later entry wins. */
67
+ function listedLanguage(languages, word) {
68
+ if (languages == null) return;
69
+ for (let i = languages.length - 1; i >= 0; i--) if (languages[i].identifiers.includes(word)) return languages[i];
70
+ }
71
+ /** Whether two lists name the same values in the same order. */
72
+ function sameCodeLanguageList(a, b) {
73
+ if (a === b) return true;
74
+ if (a == null || b == null || a.length !== b.length) return false;
75
+ return a.every((language, i) => language === b[i]);
76
+ }
77
+ /** A keyword alternation from a space-separated word list. */
78
+ function keywords(words) {
79
+ return new RegExp(`\\b(?:${words.trim().split(/\s+/).join("|")})\\b`);
80
+ }
81
+ const NUMBER = /\b(?:0x[\da-f_]+|0b[01_]+|0o[0-7_]+|\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d+)?)[a-z]*\b/i;
82
+ const DOUBLE_QUOTED = /"(?:[^"\\\n]|\\.)*"/;
83
+ const SINGLE_QUOTED = /'(?:[^'\\\n]|\\.)*'/;
84
+ const BLOCK_COMMENT = /\/\*[\s\S]*?\*\//;
85
+ const LINE_COMMENT = /\/\/[^\n]*/;
86
+ const HASH_COMMENT = /#[^\n]*/;
87
+ const CALL = /\b[a-z_$][\w$]*(?=\s*\()/i;
88
+ const TYPE_NAME = /\b[A-Z]\w*\b/;
89
+ const OPERATOR = /[+\-*/%=!<>&|^~?:]+/;
90
+ const PUNCTUATION = /[{}()[\];,.@]/;
91
+ /**
92
+ * A C-like grammar: comments, any extra rules, strings, numbers, keywords,
93
+ * calls, type names, operators, and punctuation, in that order.
94
+ */
95
+ function cLike(words, extra = [], comments = [BLOCK_COMMENT, LINE_COMMENT]) {
96
+ return {
97
+ defaultType: "variable",
98
+ patterns: [
99
+ ...comments.map((regex) => ({
100
+ type: "comment",
101
+ regex
102
+ })),
103
+ ...extra,
104
+ {
105
+ type: "string",
106
+ regex: DOUBLE_QUOTED
107
+ },
108
+ {
109
+ type: "string",
110
+ regex: SINGLE_QUOTED
111
+ },
112
+ {
113
+ type: "number",
114
+ regex: NUMBER
115
+ },
116
+ {
117
+ type: "keyword",
118
+ regex: keywords(words)
119
+ },
120
+ {
121
+ type: "function",
122
+ regex: CALL
123
+ },
124
+ {
125
+ type: "type",
126
+ regex: TYPE_NAME
127
+ },
128
+ {
129
+ type: "operator",
130
+ regex: OPERATOR
131
+ },
132
+ {
133
+ type: "punctuation",
134
+ regex: PUNCTUATION
135
+ }
136
+ ]
137
+ };
138
+ }
139
+ /** A preprocessor directive at the start of a line (`#include`). */
140
+ const DIRECTIVE = /^[ \t]*#\s*\w+/m;
141
+ const C_WORDS = "auto break case char const continue default do double else enum extern float for goto if inline int long register restrict return short signed sizeof static struct switch typedef union unsigned void volatile while bool true false NULL nullptr";
142
+ const CPP_WORDS = `${C_WORDS} alignas alignof catch class concept constexpr consteval co_await co_return co_yield decltype delete explicit export friend mutable namespace new noexcept operator override private protected public requires static_assert template this throw try typename using virtual final`;
143
+ //#endregion
144
+ export { isCustomCodeLanguage as _, DIRECTIVE as a, listedLanguage as b, LINE_COMMENT as c, SINGLE_QUOTED as d, cLike as f, isCodeLanguage as g, defineCodeLanguage as h, C_WORDS as i, NUMBER as l, createCodeLanguage as m, CALL as n, DOUBLE_QUOTED as o, codeLanguagePainter as p, CPP_WORDS as r, HASH_COMMENT as s, BLOCK_COMMENT as t, PUNCTUATION as u, languageKey as v, sameCodeLanguageList as x, languageLabel as y };
@@ -8,14 +8,14 @@ declare const __VLS_base: import("vue").DefineComponent<ButtonProps, {
8
8
  }, string, import("vue").PublicProps, Readonly<ButtonProps> & Readonly<{
9
9
  onClick?: ((event: MouseEvent) => any) | undefined;
10
10
  }>, {
11
- type: "button" | "submit" | "reset";
11
+ type: "button" | "reset" | "submit";
12
12
  isDisabled: boolean;
13
+ elevation: ButtonElevation;
13
14
  isLoading: boolean;
14
- variant: ButtonVariant;
15
15
  isIconOnly: boolean;
16
- elevation: ButtonElevation;
17
16
  isInterruptible: boolean;
18
17
  loadingLabel: string;
18
+ variant: ButtonVariant;
19
19
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
20
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
21
21
  declare const _default: typeof __VLS_export;
@@ -161,8 +161,8 @@ declare const __VLS_export: <Value>(__VLS_props: NonNullable<Awaited<typeof __VL
161
161
  props: import("vue").PublicProps & __VLS_PrettifyLocal<(ComplexSelectorProps<Value> & {
162
162
  modelValue: Value;
163
163
  }) & {
164
- onChange?: ((value: Value) => any) | undefined;
165
164
  onClick?: ((event: MouseEvent) => any) | undefined;
165
+ onChange?: ((value: Value) => any) | undefined;
166
166
  onKeydown?: ((event: KeyboardEvent) => any) | undefined;
167
167
  onOpenChange?: ((isOpen: boolean) => any) | undefined;
168
168
  "onUpdate:modelValue"?: ((value: Value) => any) | undefined;
@@ -172,7 +172,7 @@ declare const __VLS_export: <Value>(__VLS_props: NonNullable<Awaited<typeof __VL
172
172
  expose: (exposed: import("vue").ShallowUnwrapRef<ComplexSelectorHandle>) => void;
173
173
  attrs: any;
174
174
  slots: ComplexSelectorSlots<Value>;
175
- emit: (((evt: "change", value: Value) => void) & ((evt: "click", event: MouseEvent) => void) & ((evt: "keydown", event: KeyboardEvent) => void) & ((evt: "openChange", isOpen: boolean) => void)) & ((event: "update:modelValue", value: Value) => void);
175
+ emit: (((evt: "click", event: MouseEvent) => void) & ((evt: "change", value: Value) => void) & ((evt: "keydown", event: KeyboardEvent) => void) & ((evt: "openChange", isOpen: boolean) => void)) & ((event: "update:modelValue", value: Value) => void);
176
176
  }>) => import("vue").VNode & {
177
177
  __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
178
178
  };
@@ -1,4 +1,4 @@
1
- import { s as AstryxMessages, t as AstryxUpstreamCatalog, wn as CalendarSystem } from "./loadCatalog-BODWYaNy.js";
1
+ import { s as AstryxMessages, t as AstryxUpstreamCatalog, wn as CalendarSystem } from "./loadCatalog-C_Cy_8WN.js";
2
2
  import { ComputedRef, InjectionKey } from "vue";
3
3
  //#region src/InternationalizationProvider/catalog.d.ts
4
4
  /**
@@ -1,3 +1,4 @@
1
+ import { t as CodeLanguage } from "./grammar-4Pn2745Q.js";
1
2
  import { i as SyntaxThemeDefinition, o as SyntaxThemeTokens, s as SyntaxTokenKey } from "./syntaxTheme-CwVEcVDk.js";
2
3
  import "./useClipboard-DeO8fCW_.js";
3
4
  import { ComputedRef, VNodeChild } from "vue";
@@ -32,6 +33,24 @@ interface CodeSlots {
32
33
  /** The inline code content. */
33
34
  default?: () => VNodeChild;
34
35
  }
36
+ interface CodeBlockSlots {
37
+ /**
38
+ * Your own controls, shown just before Copy: in the header when the block
39
+ * has one, otherwise beside the code in the top inline-end corner, never over
40
+ * it. The slot never creates a header, and it sits outside the collapse
41
+ * control, so using it never collapses the block.
42
+ */
43
+ endContent?: () => VNodeChild;
44
+ }
45
+ interface CodeBlockSlots {
46
+ /**
47
+ * Your own controls, shown just before Copy: in the header when the block
48
+ * has one, otherwise beside the code in the top inline-end corner, never over
49
+ * it. The slot never creates a header, and it sits outside the collapse
50
+ * control, so using it never collapses the block.
51
+ */
52
+ endContent?: () => VNodeChild;
53
+ }
35
54
  /** The text size of a CodeBlock, which also selects its line height. */
36
55
  type CodeBlockSize = 'sm' | 'md';
37
56
  /**
@@ -67,11 +86,15 @@ interface CodeBlockProps {
67
86
  /** The read-only code to display. */
68
87
  code: string;
69
88
  /**
70
- * The language used for syntax highlighting. An unknown language renders as
71
- * plaintext. `plaintext` also hides the language label in the header.
89
+ * The language used for syntax highlighting: a built-in identifier such as
90
+ * `'ts'`, or a language value, either one imported from
91
+ * `@astryx-vue/core/Code/languages/<name>` (such as `graphql`) or made with
92
+ * `createCodeLanguage`. An unknown identifier renders as plaintext, and
93
+ * `plaintext` also hides the language label in the header. A value is
94
+ * labelled with its `name`, and `data-language` carries its first identifier.
72
95
  * @default 'plaintext'
73
96
  */
74
- language?: string;
97
+ language?: string | CodeLanguage;
75
98
  /**
76
99
  * Syntax colors for this block.
77
100
  *
@@ -94,7 +117,19 @@ interface CodeBlockProps {
94
117
  * @default false
95
118
  */
96
119
  hasLineNumbers?: boolean;
97
- /** One-indexed line numbers to emphasize with an accent background. */
120
+ /**
121
+ * The number of the first line, so a code excerpt reads with its real file
122
+ * line numbers. The gutter shows `startLineNumber + index`, and
123
+ * `highlightLines` uses the same file line numbers. A value below 1, or one
124
+ * that is not a finite number, counts as 1.
125
+ * @default 1
126
+ */
127
+ startLineNumber?: number;
128
+ /**
129
+ * File line numbers to emphasize with an accent background, in the same
130
+ * numbering as the gutter (see `startLineNumber`). A number outside the code
131
+ * highlights nothing.
132
+ */
98
133
  highlightLines?: number[];
99
134
  /**
100
135
  * Paint the code as a unified diff over `language`.
@@ -157,6 +192,9 @@ interface CodeBlockProps {
157
192
  * A custom tokenizer, for a language the built-in tokenizer does not know.
158
193
  * Its return value paints tokens but never replaces the displayed or copied
159
194
  * code text.
195
+ * @deprecated Pass `language={createCodeLanguage({ name, identifiers, tokenize })}`
196
+ * instead; it keeps the label and `data-language` and paints at any length.
197
+ * `tokenizer` still works as it did.
160
198
  */
161
199
  tokenizer?: CodeBlockTokenizer;
162
200
  /**
@@ -195,22 +233,23 @@ interface CodeBlockEmits {
195
233
  }
196
234
  //#endregion
197
235
  //#region src/Code/Code.vue.d.ts
198
- type __VLS_Slots$1 = CodeSlots;
199
- declare const __VLS_base$1: import("vue").DefineComponent<CodeProps, {
236
+ type __VLS_Slots$2 = CodeSlots;
237
+ declare const __VLS_base$2: import("vue").DefineComponent<CodeProps, {
200
238
  element: import("vue").ComputedRef<HTMLElement | null>;
201
239
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CodeProps> & Readonly<{}>, {
202
240
  color: CodeColor;
203
241
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
204
- declare const __VLS_export$2: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
242
+ declare const __VLS_export$2: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
205
243
  declare const _default$2: typeof __VLS_export$2;
206
- type __VLS_WithSlots$1<T, S> = T & {
244
+ type __VLS_WithSlots$2<T, S> = T & {
207
245
  new (): {
208
246
  $slots: S;
209
247
  };
210
248
  };
211
249
  //#endregion
212
250
  //#region src/Code/CodeBlock.vue.d.ts
213
- declare const __VLS_export$1: import("vue").DefineComponent<CodeBlockProps, {
251
+ type __VLS_Slots$1 = CodeBlockSlots;
252
+ declare const __VLS_base$1: import("vue").DefineComponent<CodeBlockProps, {
214
253
  element: import("vue").ComputedRef<HTMLPreElement | null>;
215
254
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
216
255
  copy: () => any;
@@ -222,9 +261,10 @@ declare const __VLS_export$1: import("vue").DefineComponent<CodeBlockProps, {
222
261
  size: CodeBlockSize;
223
262
  width: string;
224
263
  container: CodeBlockContainer;
225
- language: string;
264
+ language: string | CodeLanguage;
226
265
  hasLanguageLabel: boolean;
227
266
  hasLineNumbers: boolean;
267
+ startLineNumber: number;
228
268
  isDiff: boolean;
229
269
  hasCopyButton: boolean;
230
270
  isWrapped: boolean;
@@ -236,7 +276,13 @@ declare const __VLS_export$1: import("vue").DefineComponent<CodeBlockProps, {
236
276
  copyFailedLabel: string;
237
277
  codeLabel: string;
238
278
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
279
+ declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
239
280
  declare const _default$1: typeof __VLS_export$1;
281
+ type __VLS_WithSlots$1<T, S> = T & {
282
+ new (): {
283
+ $slots: S;
284
+ };
285
+ };
240
286
  //#endregion
241
287
  //#region src/Code/diff.d.ts
242
288
  /** How a unified-diff line reads: what it adds, removes, frames, or keeps. */
@@ -329,19 +375,21 @@ type __VLS_WithSlots<T, S> = T & {
329
375
  };
330
376
  //#endregion
331
377
  //#region src/Code/tokenizer.d.ts
378
+ /** A language identifier string or a language value. */
379
+ type CodeLanguageInput = string | CodeLanguage;
332
380
  /** Code shorter than this is tokenized synchronously instead of in chunks. */
333
381
  declare const SYNC_TOKENIZE_THRESHOLD = 2000;
334
382
  /**
335
383
  * Tokenize a code string into one token array per line, with offsets relative
336
384
  * to the start of the line.
337
385
  */
338
- declare function tokenize(code: string, language: string): TokenLine[];
386
+ declare function tokenize(code: string, language: CodeLanguageInput): TokenLine[];
339
387
  /**
340
388
  * The same result as {@link tokenize}, but yielding to the main thread between
341
389
  * chunks so a long file does not block rendering. An aborted signal stops the
342
390
  * work and returns the lines tokenized so far.
343
391
  */
344
- declare function tokenizeAsync(code: string, language: string, signal?: AbortSignal): Promise<TokenLine[]>;
392
+ declare function tokenizeAsync(code: string, language: CodeLanguageInput, signal?: AbortSignal): Promise<TokenLine[]>;
345
393
  /**
346
394
  * Convert flat tokens with absolute offsets, as a custom tokenizer returns
347
395
  * them, into one line-relative token array per line.
@@ -365,4 +413,4 @@ interface UseSyntaxThemeReturn {
365
413
  */
366
414
  declare function useSyntaxTheme(): UseSyntaxThemeReturn | null;
367
415
  //#endregion
368
- export { _default$1 as A, CodeSize as B, applyHighlightRanges as C, diffLineKind as D, DiffLines as E, CodeBlockSize as F, SyntaxToken as H, CodeBlockTokenizer as I, CodeColor as L, CodeBlockContainer as M, CodeBlockEmits as N, parseFenceLanguage as O, CodeBlockProps as P, CodeHighlightMode as R, HIGHLIGHTED_TOKEN_TYPES as S, DiffLineKind as T, TokenLine as U, CodeSlots as V, oneDarkPro as _, tokenize as a, tokyoNight as b, allSyntaxPresets as c, darkSyntaxPresets as d, dracula as f, nord as g, monokai as h, flatTokensToLines as i, _default$2 as j, splitDiffLines as k, catppuccinLatte as l, lightSyntaxPresets as m, useSyntaxTheme as n, tokenizeAsync as o, githubLight as p, SYNC_TOKENIZE_THRESHOLD as r, _default as s, UseSyntaxThemeReturn as t, catppuccinMocha as u, oneLight as v, applyHighlightRangesFlat as w, tokyoNightLight as x, solarizedLight as y, CodeProps as z };
416
+ export { _default$1 as A, CodeProps as B, applyHighlightRanges as C, diffLineKind as D, DiffLines as E, CodeBlockSize as F, CodeSlots as H, CodeBlockSlots as I, CodeBlockTokenizer as L, CodeBlockContainer as M, CodeBlockEmits as N, parseFenceLanguage as O, CodeBlockProps as P, CodeColor as R, HIGHLIGHTED_TOKEN_TYPES as S, DiffLineKind as T, SyntaxToken as U, CodeSize as V, TokenLine as W, oneDarkPro as _, tokenize as a, tokyoNight as b, allSyntaxPresets as c, darkSyntaxPresets as d, dracula as f, nord as g, monokai as h, flatTokensToLines as i, _default$2 as j, splitDiffLines as k, catppuccinLatte as l, lightSyntaxPresets as m, useSyntaxTheme as n, tokenizeAsync as o, githubLight as p, SYNC_TOKENIZE_THRESHOLD as r, _default as s, UseSyntaxThemeReturn as t, catppuccinMocha as u, oneLight as v, applyHighlightRangesFlat as w, tokyoNightLight as x, solarizedLight as y, CodeHighlightMode as z };
@@ -18,8 +18,8 @@ type __VLS_Slots$2 = {
18
18
  };
19
19
  declare const __VLS_base$2: import("vue").DefineComponent<StackProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StackProps> & Readonly<{}>, {
20
20
  as: StackElement;
21
- direction: StackDirection;
22
21
  wrap: StackWrap;
22
+ direction: StackDirection;
23
23
  isScrollable: boolean;
24
24
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
25
  declare const __VLS_export$2: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;