@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,380 +0,0 @@
1
- import { k as MarkdownAstDataValue, l as MarkdownPluginEntry, t as MarkdownExtensionNode } from "./protocol-DwUmpC5G.js";
2
- import { Component, PropType, VNode, VNodeChild } from "vue";
3
- //#region src/Markdown/ast.d.ts
4
- interface MdPoint {
5
- offset?: number | null;
6
- line?: number;
7
- column?: number;
8
- }
9
- interface MdPosition {
10
- start?: MdPoint;
11
- end?: MdPoint;
12
- }
13
- interface MdNode {
14
- type: string;
15
- value?: string;
16
- children?: MdNode[];
17
- depth?: 1 | 2 | 3 | 4 | 5 | 6;
18
- ordered?: boolean;
19
- start?: number | null;
20
- spread?: boolean | null;
21
- checked?: boolean | null;
22
- lang?: string | null;
23
- url?: string;
24
- alt?: string | null;
25
- title?: string | null;
26
- align?: Array<'left' | 'right' | 'center' | null> | null;
27
- identifier?: string;
28
- label?: string | null;
29
- /** Parser offsets. Used to tell a bare autolink from an explicit link. */
30
- position?: MdPosition;
31
- /**
32
- * Set on `type: 'extension'` nodes a plugin inserts.
33
- * `plugin` matches `MarkdownPlugin.name` or `MarkdownInlinePlugin.name`.
34
- */
35
- plugin?: string;
36
- /** Name of an extension node within its plugin. */
37
- name?: string;
38
- /** `block` extension nodes are rendered as their own block. */
39
- display?: 'inline' | 'block';
40
- /** Matched source text on an extension node. */
41
- source?: string;
42
- /** Citation id, set when a parser turns `[id]` into a citation node. */
43
- sourceId?: string;
44
- /**
45
- * Extra fields a plugin wants the renderer to read.
46
- * Nested objects and arrays are allowed so document metadata can live here.
47
- */
48
- data?: MarkdownAstDataValue;
49
- }
50
- declare function isMarkdownExtensionNode(node: MdNode, plugin?: string, name?: string): node is MdNode & {
51
- type: 'extension';
52
- plugin: string;
53
- name: string;
54
- };
55
- //#endregion
56
- //#region src/Markdown/plugins.d.ts
57
- interface MarkdownTransformContext {
58
- /** Record a problem. The document still renders. */
59
- report: (message: string) => void;
60
- }
61
- interface MarkdownPluginRenderContext {
62
- /** Render this node's children with the normal Markdown renderers. */
63
- renderChildren: () => VNodeChild[];
64
- }
65
- /**
66
- * A document plugin. `transform` receives the parsed root and returns the next
67
- * root. Return the same root when nothing changed so a streaming render can
68
- * reuse settled blocks. `render` draws `extension` nodes whose `plugin` equals
69
- * `name`.
70
- */
71
- interface MarkdownPlugin {
72
- name: string;
73
- transform?: (root: MdNode, context: MarkdownTransformContext) => MdNode;
74
- render?: (node: MdNode, context: MarkdownPluginRenderContext) => VNodeChild | null;
75
- }
76
- /**
77
- * A text-node plugin. `pattern` needs the `g` flag. Matches inside inline
78
- * code and fenced code never run, because those nodes are not text.
79
- * `replace` returns the node for the match, or `null` to skip it.
80
- * `render` draws an extension node whose `plugin` equals `name`.
81
- */
82
- interface MarkdownInlinePlugin {
83
- name?: string;
84
- pattern: RegExp;
85
- getEndIndex?: (text: string, match: RegExpMatchArray) => number | false;
86
- replace: (match: RegExpMatchArray) => MdNode | null;
87
- render?: (node: MdNode, context: MarkdownPluginRenderContext) => VNodeChild | null;
88
- }
89
- declare function defineMarkdownPlugin<Plugin extends MarkdownPlugin>(plugin: Plugin): Plugin;
90
- declare function applyMarkdownPlugins(root: MdNode, plugins?: readonly MarkdownPlugin[]): MdNode;
91
- declare function applyInlinePlugins(root: MdNode, plugins?: readonly MarkdownInlinePlugin[]): MdNode;
92
- //#endregion
93
- //#region src/Markdown/types.d.ts
94
- type MarkdownDisplay = 'block' | 'inline';
95
- type MarkdownDensity = 'default' | 'compact';
96
- type MarkdownAlign = 'start' | 'center';
97
- type MarkdownHeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
98
- type MarkdownAutolink = 'gfm';
99
- type MarkdownCitationStyle = 'label' | 'number';
100
- interface MarkdownHeadingProps {
101
- level: MarkdownHeadingLevel;
102
- id: string;
103
- }
104
- interface MarkdownLinkProps {
105
- href: string;
106
- }
107
- interface MarkdownImageProps {
108
- alt: string;
109
- src: string;
110
- }
111
- interface MarkdownCodeProps {
112
- code: string;
113
- language?: string;
114
- }
115
- interface MarkdownInlineCodeProps {
116
- value: string;
117
- }
118
- interface MarkdownListProps {
119
- ordered: boolean;
120
- start?: number;
121
- }
122
- /**
123
- * Replacement renderers for a node kind. Each component receives the node's
124
- * data as props and, where the node has content, that content as the default
125
- * slot. A string tag such as `'p'` is also a valid component.
126
- */
127
- interface MarkdownComponents {
128
- blockquote?: Component;
129
- code?: Component;
130
- heading?: Component;
131
- hr?: Component;
132
- image?: Component;
133
- inlineCode?: Component;
134
- link?: Component;
135
- list?: Component;
136
- paragraph?: Component;
137
- table?: Component;
138
- }
139
- interface MarkdownSource {
140
- title?: string;
141
- url?: string;
142
- /**
143
- * Favicon or logo URL, drawn in a round slot before the label.
144
- */
145
- icon?: string;
146
- }
147
- interface MarkdownProps {
148
- /**
149
- * Horizontal alignment of the prose measure when `contentWidth` is set.
150
- * @default 'start'
151
- */
152
- contentAlign?: MarkdownAlign;
153
- /**
154
- * Markdown source. A default slot string is used when this is omitted.
155
- */
156
- content?: string;
157
- /**
158
- * Maximum width of prose blocks. Tables and code blocks keep the container
159
- * width. Numbers are pixels.
160
- */
161
- contentWidth?: number | string;
162
- /**
163
- * Renderers that replace the built-in node views.
164
- */
165
- components?: MarkdownComponents;
166
- /**
167
- * Vertical rhythm. `compact` tightens the space between blocks.
168
- * @default 'default'
169
- */
170
- density?: MarkdownDensity;
171
- /**
172
- * `inline` renders the source as phrasing content inside a span.
173
- * @default 'block'
174
- */
175
- display?: MarkdownDisplay;
176
- /**
177
- * The heading level that a markdown `#` maps to. Deeper headings shift with
178
- * it and stop at `h6`.
179
- * @default 1
180
- */
181
- headingLevelStart?: MarkdownHeadingLevel;
182
- /**
183
- * Re-parses only the open trailing block and fades in appended text.
184
- * Settled blocks keep their rendered nodes. This prop does not reveal
185
- * characters on its own. Run `useStreamingText` first and pass that string
186
- * as `content`; `Markdown` will not smooth the string a second time.
187
- * @default false
188
- */
189
- isStreaming?: boolean;
190
- /**
191
- * Called when a link is activated. Return `false` to cancel navigation.
192
- */
193
- onLinkClick?: (href: string, event: MouseEvent) => void | false;
194
- /**
195
- * Document plugins. A `MarkdownPlugin` may replace the parsed tree and draw
196
- * the extension nodes it owns. A `MarkdownPluginEntry` from
197
- * `createMarkdownPlugin` runs syntax and transforms, including
198
- * `markdownSourceLinesPlugin`. An empty list leaves the document unchanged.
199
- */
200
- plugins?: readonly (MarkdownPlugin | MarkdownPluginEntry)[];
201
- /**
202
- * Patterns matched against text nodes, in order. The first match at a
203
- * position wins. Inline code and fenced code are left alone.
204
- */
205
- inlinePlugins?: readonly MarkdownInlinePlugin[];
206
- /**
207
- * `'gfm'` links bare `https://` URLs, `www.` hosts, and emails.
208
- * Omit it and those stay text. `<https://…>` and `<email>` stay links.
209
- */
210
- autolink?: MarkdownAutolink;
211
- /**
212
- * `label` is a chip with the source title. `number` is a compact badge.
213
- * @default 'label'
214
- */
215
- citationStyle?: MarkdownCitationStyle;
216
- /**
217
- * Citation sources keyed by id. `[id]` and `【id】` that match a key render
218
- * as a citation chip instead of literal text.
219
- */
220
- sources?: Record<string, MarkdownSource>;
221
- }
222
- interface MarkdownSlots {
223
- default?: () => VNodeChild;
224
- }
225
- //#endregion
226
- //#region src/Markdown/Markdown.vue.d.ts
227
- declare const _default: typeof __VLS_export;
228
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
229
- content: {
230
- type: StringConstructor;
231
- default: undefined;
232
- };
233
- contentAlign: {
234
- type: PropType<MarkdownProps["contentAlign"]>;
235
- default: string;
236
- };
237
- contentWidth: {
238
- type: PropType<MarkdownProps["contentWidth"]>;
239
- default: undefined;
240
- };
241
- components: {
242
- type: PropType<MarkdownProps["components"]>;
243
- default: undefined;
244
- };
245
- density: {
246
- type: PropType<MarkdownProps["density"]>;
247
- default: string;
248
- };
249
- display: {
250
- type: PropType<MarkdownProps["display"]>;
251
- default: string;
252
- };
253
- headingLevelStart: {
254
- type: PropType<MarkdownProps["headingLevelStart"]>;
255
- default: number;
256
- };
257
- isStreaming: {
258
- type: BooleanConstructor;
259
- default: boolean;
260
- };
261
- onLinkClick: {
262
- type: PropType<MarkdownProps["onLinkClick"]>;
263
- default: undefined;
264
- };
265
- plugins: {
266
- type: PropType<MarkdownProps["plugins"]>;
267
- default: undefined;
268
- };
269
- inlinePlugins: {
270
- type: PropType<MarkdownProps["inlinePlugins"]>;
271
- default: undefined;
272
- };
273
- autolink: {
274
- type: PropType<MarkdownProps["autolink"]>;
275
- default: undefined;
276
- };
277
- citationStyle: {
278
- type: PropType<MarkdownProps["citationStyle"]>;
279
- default: string;
280
- };
281
- sources: {
282
- type: PropType<MarkdownProps["sources"]>;
283
- default: undefined;
284
- };
285
- }>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
286
- [key: string]: any;
287
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
288
- content: {
289
- type: StringConstructor;
290
- default: undefined;
291
- };
292
- contentAlign: {
293
- type: PropType<MarkdownProps["contentAlign"]>;
294
- default: string;
295
- };
296
- contentWidth: {
297
- type: PropType<MarkdownProps["contentWidth"]>;
298
- default: undefined;
299
- };
300
- components: {
301
- type: PropType<MarkdownProps["components"]>;
302
- default: undefined;
303
- };
304
- density: {
305
- type: PropType<MarkdownProps["density"]>;
306
- default: string;
307
- };
308
- display: {
309
- type: PropType<MarkdownProps["display"]>;
310
- default: string;
311
- };
312
- headingLevelStart: {
313
- type: PropType<MarkdownProps["headingLevelStart"]>;
314
- default: number;
315
- };
316
- isStreaming: {
317
- type: BooleanConstructor;
318
- default: boolean;
319
- };
320
- onLinkClick: {
321
- type: PropType<MarkdownProps["onLinkClick"]>;
322
- default: undefined;
323
- };
324
- plugins: {
325
- type: PropType<MarkdownProps["plugins"]>;
326
- default: undefined;
327
- };
328
- inlinePlugins: {
329
- type: PropType<MarkdownProps["inlinePlugins"]>;
330
- default: undefined;
331
- };
332
- autolink: {
333
- type: PropType<MarkdownProps["autolink"]>;
334
- default: undefined;
335
- };
336
- citationStyle: {
337
- type: PropType<MarkdownProps["citationStyle"]>;
338
- default: string;
339
- };
340
- sources: {
341
- type: PropType<MarkdownProps["sources"]>;
342
- default: undefined;
343
- };
344
- }>> & Readonly<{}>, {
345
- plugins: readonly (MarkdownPluginEntry<MarkdownExtensionNode<string, string, MarkdownAstDataValue, "inline" | "block">> | MarkdownPlugin)[] | undefined;
346
- density: MarkdownDensity | undefined;
347
- content: string;
348
- display: MarkdownDisplay | undefined;
349
- contentWidth: string | number | undefined;
350
- components: MarkdownComponents | undefined;
351
- contentAlign: MarkdownAlign | undefined;
352
- headingLevelStart: MarkdownHeadingLevel | undefined;
353
- onLinkClick: ((href: string, event: MouseEvent) => void | false) | undefined;
354
- inlinePlugins: readonly MarkdownInlinePlugin[] | undefined;
355
- autolink: "gfm" | undefined;
356
- citationStyle: MarkdownCitationStyle | undefined;
357
- sources: Record<string, MarkdownSource> | undefined;
358
- isStreaming: boolean;
359
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
360
- //#endregion
361
- //#region src/Markdown/parse.d.ts
362
- interface ParseMarkdownOptions {
363
- /**
364
- * `'gfm'` keeps GitHub-style bare URLs, `www.` hosts, and emails as links.
365
- * Omit it and those stay text. Angle-bracket autolinks stay either way.
366
- */
367
- autolink?: 'gfm';
368
- }
369
- declare function parseMarkdown(source: string, options?: ParseMarkdownOptions): MdNode;
370
- //#endregion
371
- //#region src/Markdown/slug.d.ts
372
- /** URL slug for a heading. Letters and numbers from any language are kept. */
373
- declare function slugify(value: string): string;
374
- /**
375
- * `setup`, then `setup-1`, then `setup-2`. An empty slug becomes `section`.
376
- * One map covers a whole document.
377
- */
378
- declare function uniqueSlug(baseSlug: string, counts: Map<string, number>): string;
379
- //#endregion
380
- export { MarkdownPlugin as C, applyMarkdownPlugins as D, applyInlinePlugins as E, defineMarkdownPlugin as O, MarkdownInlinePlugin as S, MarkdownTransformContext as T, MarkdownLinkProps as _, _default as a, MarkdownSlots as b, MarkdownCitationStyle as c, MarkdownDensity as d, MarkdownDisplay as f, MarkdownInlineCodeProps as g, MarkdownImageProps as h, parseMarkdown as i, isMarkdownExtensionNode as k, MarkdownCodeProps as l, MarkdownHeadingProps as m, uniqueSlug as n, MarkdownAlign as o, MarkdownHeadingLevel as p, ParseMarkdownOptions as r, MarkdownAutolink as s, slugify as t, MarkdownComponents as u, MarkdownListProps as v, MarkdownPluginRenderContext as w, MarkdownSource as x, MarkdownProps as y };