@astryx-vue/core 0.3.0 → 0.4.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 (505) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-RAVA_cT1.js → AlertDialog-C2inDZWG.js} +5 -5
  3. package/dist/AppShell/index.js +1 -1
  4. package/dist/{AppShell-0wTvOo3H.js → AppShell-CumzH-8z.js} +3 -3
  5. package/dist/Avatar/index.js +1 -1
  6. package/dist/{Avatar-pPZ4dI_s.js → Avatar-BW0TE8t9.js} +47 -34
  7. package/dist/AvatarGroup/index.d.ts +1 -1
  8. package/dist/AvatarGroup/index.js +1 -1
  9. package/dist/{AvatarGroup-B--NQSB3.js → AvatarGroup-DLC_FFR5.js} +57 -13
  10. package/dist/Banner/index.d.ts +1 -1
  11. package/dist/Banner/index.js +1 -1
  12. package/dist/{Banner-GbGxrqQO.js → Banner-C5VAwo4D.js} +68 -34
  13. package/dist/Blockquote/index.js +1 -1
  14. package/dist/Blockquote-DRoKdcxZ.js +27 -0
  15. package/dist/BottomSheet/index.d.ts +1 -1
  16. package/dist/BottomSheet/index.js +2 -2
  17. package/dist/{BottomSheet-pt7m4CvC.js → BottomSheet-B4sc3F1S.js} +286 -140
  18. package/dist/{BottomSheet-JYMB_Ofl.js → BottomSheet-m54uCMJN.js} +20 -4
  19. package/dist/Breadcrumbs/index.d.ts +2 -2
  20. package/dist/Breadcrumbs/index.js +2 -2
  21. package/dist/Breadcrumbs-CTaz7Kh4.js +223 -0
  22. package/dist/Button/index.d.ts +1 -1
  23. package/dist/Button/index.js +1 -1
  24. package/dist/{Button-B6Hj_O_s.js → Button-ONOoHdkg.js} +25 -15
  25. package/dist/ButtonGroup/index.d.ts +1 -1
  26. package/dist/ButtonGroup/index.js +1 -1
  27. package/dist/ButtonGroup-DnkSZ9a5.js +87 -0
  28. package/dist/{ButtonTooltip-nWWrth8j.js → ButtonTooltip-CNKOQHYR.js} +7 -4
  29. package/dist/Calendar/index.d.ts +1 -1
  30. package/dist/Calendar/index.js +1 -1
  31. package/dist/{Calendar-B7vIowKq.js → Calendar-BAqzzQm2.js} +5 -5
  32. package/dist/Card/index.d.ts +2 -2
  33. package/dist/Carousel/index.js +1 -1
  34. package/dist/{Carousel-CA8zpD9v.js → Carousel-DXC22UWq.js} +4 -4
  35. package/dist/Chat/index.d.ts +1 -1
  36. package/dist/Chat/index.js +1 -1
  37. package/dist/{Chat-Bmna9EOA.js → Chat-BdJW6IX5.js} +147 -83
  38. package/dist/CheckboxIndicator/index.js +1 -1
  39. package/dist/{CheckboxIndicator-D37cm2Rh.js → CheckboxIndicator-fH4d-JE1.js} +9 -3
  40. package/dist/CheckboxInput/index.d.ts +1 -1
  41. package/dist/CheckboxInput/index.js +1 -1
  42. package/dist/{CheckboxInput-BS9J6edf.js → CheckboxInput-DJHCbwgC.js} +19 -11
  43. package/dist/CheckboxList/index.d.ts +1 -1
  44. package/dist/CheckboxList/index.js +1 -1
  45. package/dist/{CheckboxList-CX1i_jVP.js → CheckboxList-BdZIP4_J.js} +155 -38
  46. package/dist/Citation/index.js +1 -1
  47. package/dist/{Citation-Djgwa0ko.js → Citation-DbZn2vms.js} +8 -3
  48. package/dist/ClickableCard/index.d.ts +1 -1
  49. package/dist/ClickableCard/index.js +1 -1
  50. package/dist/{ClickableCard-DUsC-j03.js → ClickableCard-ChAfiw9T.js} +9 -6
  51. package/dist/Code/index.js +3 -3
  52. package/dist/{Code-XnPuGxey.js → Code-Bg7GBdxy.js} +2 -1
  53. package/dist/{CodeBlock-D0BFubut.js → CodeBlock-Caaflp7C.js} +3 -3
  54. package/dist/Collapsible/index.d.ts +1 -1
  55. package/dist/Collapsible/index.js +1 -1
  56. package/dist/{Collapsible-Cov3Pyq5.js → Collapsible-Bdj0WYpb.js} +13 -11
  57. package/dist/CommandPalette/index.d.ts +1 -1
  58. package/dist/CommandPalette/index.js +1 -1
  59. package/dist/{CommandPalette-YHsUNg3V.js → CommandPalette-C_MClfAg.js} +143 -63
  60. package/dist/ComplexSelector/index.d.ts +1 -1
  61. package/dist/ComplexSelector/index.js +1 -1
  62. package/dist/{ComplexSelector-DWLdKPGI.js → ComplexSelector-BeVQaqRf.js} +85 -20
  63. package/dist/ContextMenu/index.d.ts +2 -2
  64. package/dist/ContextMenu/index.js +2 -2
  65. package/dist/{ContextMenu-Bq9b3Ti5.js → ContextMenu-C6hPYvYz.js} +297 -179
  66. package/dist/DateInput/index.d.ts +1 -1
  67. package/dist/DateInput/index.js +1 -1
  68. package/dist/{DateInput-DT518j5E.js → DateInput-BjLdmYor.js} +567 -76
  69. package/dist/DateRangeInput/index.d.ts +1 -1
  70. package/dist/DateRangeInput/index.js +1 -1
  71. package/dist/{DateRangeInput-Bqi5tlIA.js → DateRangeInput-Br3wVEfD.js} +85 -20
  72. package/dist/DateTimeInput/index.d.ts +1 -1
  73. package/dist/DateTimeInput/index.js +1 -1
  74. package/dist/DateTimeInput-CAZBwoRe.js +562 -0
  75. package/dist/Dialog/index.d.ts +1 -1
  76. package/dist/Dialog/index.js +2 -2
  77. package/dist/{Dialog-BiOSKQso.js → Dialog-Dce4Y97V.js} +28 -11
  78. package/dist/{Dialog-FGHfDu5M.js → Dialog-fhyxB00e.js} +32 -5
  79. package/dist/Divider/index.d.ts +1 -1
  80. package/dist/Divider/index.js +1 -1
  81. package/dist/{Divider-BtwnL18I.js → Divider-mOZ6vIQw.js} +5 -1
  82. package/dist/DropdownMenu/index.d.ts +2 -2
  83. package/dist/DropdownMenu/index.js +3 -3
  84. package/dist/{DropdownMenu-CoOQVlRp.js → DropdownMenu-BdGmQVb1.js} +85 -57
  85. package/dist/{DropdownMenu-DEb2dSSP.js → DropdownMenu-BzQrNV9C.js} +479 -264
  86. package/dist/{DropdownMenuRadioItem.vue-CXEURBcq.d.ts → DropdownMenuRadioItem.vue-Qd-8Rg4Q.d.ts} +236 -230
  87. package/dist/EmptyState/index.js +1 -1
  88. package/dist/{EmptyState-C_GH7IV5.js → EmptyState-CmOQf2SH.js} +2 -2
  89. package/dist/Field/index.d.ts +4 -3
  90. package/dist/Field/index.js +4 -3
  91. package/dist/{Field-D5gUEGw4.js → Field--OEsLBfE.js} +4 -3
  92. package/dist/{FieldInfoTip-Ds-sW_jY.js → FieldInfoTip-gxsnfkZw.js} +3 -3
  93. package/dist/{FieldLabel-BNeXRuGH.js → FieldLabel-jxIiWgLw.js} +12 -7
  94. package/dist/FieldStatus/index.d.ts +1 -1
  95. package/dist/FileInput/index.d.ts +1 -1
  96. package/dist/FileInput/index.js +1 -1
  97. package/dist/{FileInput-BpdiO1V8.js → FileInput-B_pUxB0Y.js} +106 -29
  98. package/dist/FormLayout/index.d.ts +1 -1
  99. package/dist/FormLayout/index.js +1 -1
  100. package/dist/{FormLayout-D47FjiOq.js → FormLayout-B9dUB6Ps.js} +1 -1
  101. package/dist/Heading/index.d.ts +1 -1
  102. package/dist/Heading/index.js +1 -1
  103. package/dist/{Heading-BnwWEWkp.js → Heading-BzBunfN7.js} +1 -1
  104. package/dist/HoverCard/index.js +1 -1
  105. package/dist/{HoverCard-ycY50pRN.js → HoverCard-BpJhT0sn.js} +35 -22
  106. package/dist/Icon/index.d.ts +4 -4
  107. package/dist/Icon/index.js +1 -1
  108. package/dist/{Icon-bteSId7T.js → Icon-KDnUyY7f.js} +12 -20
  109. package/dist/IconButton/index.js +1 -1
  110. package/dist/{IconButton-DDNgNl7B.js → IconButton-DI-XBbtV.js} +1 -1
  111. package/dist/Indicator/index.d.ts +2 -2
  112. package/dist/Indicator/index.js +2 -1
  113. package/dist/InputClearButton-CwXPan8c.js +40 -0
  114. package/dist/InputGroup/index.d.ts +1 -1
  115. package/dist/InputGroup/index.js +2 -2
  116. package/dist/{InputGroup-CA03Smrs.js → InputGroup-DiiocoIW.js} +2 -2
  117. package/dist/InternationalizationProvider/index.d.ts +1 -1
  118. package/dist/InternationalizationProvider/index.js +1 -1
  119. package/dist/{InternationalizationProvider-DJay_w3B.js → InternationalizationProvider-kBapgKAQ.js} +5 -9
  120. package/dist/{Item-KhFKX9St.js → Item-DWMIjN8n.js} +34 -9
  121. package/dist/Kbd/index.js +1 -1
  122. package/dist/{Kbd-BB-Dw6zE.js → Kbd-CV3LO2Ge.js} +18 -2
  123. package/dist/LayerContentBoundary-CvsKxwwm.js +27 -0
  124. package/dist/LayerProvider/index.js +1 -1
  125. package/dist/{LayerProvider-D9NsQFzL.js → LayerProvider-B6zpMBWC.js} +15 -3
  126. package/dist/Layout/index.d.ts +1 -1
  127. package/dist/Layout/index.js +2 -2
  128. package/dist/{Layout-C6RHllr-.js → Layout-JJRCG7Mf.js} +1 -1
  129. package/dist/{LayoutPanel-DXOsaeQb.js → LayoutPanel-zM5vjrKS.js} +12 -8
  130. package/dist/Lightbox/index.js +1 -1
  131. package/dist/{Lightbox-DTF9EdTG.js → Lightbox-D8wyPgMK.js} +8 -6
  132. package/dist/Link/index.js +1 -1
  133. package/dist/{Link-BqHCtiyt.js → Link-DweIpOtN.js} +29 -12
  134. package/dist/List/index.d.ts +1 -1
  135. package/dist/List/index.js +2 -2
  136. package/dist/{ListItem-8RWT8XAG.js → ListItem-BQXMu1Tb.js} +1 -1
  137. package/dist/Markdown/index.d.ts +5 -2
  138. package/dist/Markdown/index.js +5 -2
  139. package/dist/Markdown/parser/index.d.ts +4 -0
  140. package/dist/Markdown/parser/index.js +3 -0
  141. package/dist/Markdown/plugin-protocol/index.d.ts +35 -0
  142. package/dist/Markdown/plugin-protocol/index.js +107 -0
  143. package/dist/Markdown/plugin-renderer/index.d.ts +31 -0
  144. package/dist/Markdown/plugin-renderer/index.js +42 -0
  145. package/dist/{Markdown-CvtN7HnF.js → Markdown-DhVfOvXk.js} +195 -484
  146. package/dist/MediaTheme-DlLqYhDy.js +433 -0
  147. package/dist/MetadataList/index.js +1 -1
  148. package/dist/{MetadataList-B-OelQlt.js → MetadataList-CEYceIlN.js} +15 -7
  149. package/dist/MobileNav/index.js +1 -1
  150. package/dist/{MobileNavToggle-DxGz0xKA.js → MobileNavToggle-pdoJFZHx.js} +52 -17
  151. package/dist/MoreMenu/index.d.ts +1 -1
  152. package/dist/MoreMenu/index.js +1 -1
  153. package/dist/{MoreMenu-Dlb7MLlW.js → MoreMenu-CFNqSRev.js} +72 -59
  154. package/dist/MultiSelector/index.d.ts +1 -1
  155. package/dist/MultiSelector/index.js +1 -1
  156. package/dist/MultiSelector-DuVatmq5.js +1456 -0
  157. package/dist/{NavDisclosure-C_fugrQ3.js → NavDisclosure-Bq9DTZLO.js} +29 -7
  158. package/dist/{NavHeadingSurface-B3yJspSN.js → NavHeadingSurface-C4v_MtkX.js} +29 -26
  159. package/dist/NavItem/index.d.ts +1 -1
  160. package/dist/NavItem/index.js +2 -2
  161. package/dist/{NavItem-BBIGSvDj.js → NavItem-BPb3yfgz.js} +17 -4
  162. package/dist/NavMenu/index.d.ts +1 -1
  163. package/dist/NavMenu/index.js +3 -3
  164. package/dist/{NavMenu-ThXguZAz.js → NavMenu-BYIDzjix.js} +42 -15
  165. package/dist/{NavMenuItem-BvJNsDFC.js → NavMenuItem-D3FO90GR.js} +14 -12
  166. package/dist/NumberInput/index.d.ts +1 -1
  167. package/dist/NumberInput/index.js +1 -1
  168. package/dist/NumberInput-B0vzOg3N.js +727 -0
  169. package/dist/Outline/index.d.ts +2 -2
  170. package/dist/Outline/index.js +2 -2
  171. package/dist/{Outline-755h-lMP.js → Outline-CfGv2F1o.js} +91 -6
  172. package/dist/OverflowList/index.d.ts +2 -2
  173. package/dist/OverflowList/index.js +1 -1
  174. package/dist/{OverflowList-NmrSMbxb.js → OverflowList-BgRLZ3dh.js} +23 -6
  175. package/dist/Pagination/index.d.ts +1 -1
  176. package/dist/Pagination/index.js +1 -1
  177. package/dist/{Pagination-DqwNQFRp.js → Pagination-Bfe12018.js} +2 -2
  178. package/dist/PickerWheel-CSwUYfes.js +69 -0
  179. package/dist/Popover/index.d.ts +1 -1
  180. package/dist/Popover/index.js +1 -1
  181. package/dist/{Popover-DJf8POzL.js → Popover-78dFjTb9.js} +20 -15
  182. package/dist/PowerSearch/index.d.ts +1 -1
  183. package/dist/PowerSearch/index.js +1 -1
  184. package/dist/{PowerSearch-DvjiPqMZ.js → PowerSearch-BoAMdFaT.js} +774 -586
  185. package/dist/ProgressBar/index.d.ts +1 -1
  186. package/dist/ProgressBar/index.js +1 -1
  187. package/dist/{ProgressBar-CVLzdoBK.js → ProgressBar-VP4JS7vm.js} +10 -7
  188. package/dist/Radio/index.d.ts +1 -1
  189. package/dist/Radio/index.js +1 -1
  190. package/dist/{RadioGroup-Bfu6JSNV.js → RadioGroup-BIipql-L.js} +94 -26
  191. package/dist/RadioList/index.d.ts +1 -1
  192. package/dist/RadioList/index.js +1 -1
  193. package/dist/{RadioList-xY1cwLdZ.js → RadioList-GyhgBg4j.js} +57 -8
  194. package/dist/Resizable/index.d.ts +1 -1
  195. package/dist/Resizable/index.js +1 -1
  196. package/dist/{ResizeHandle-q4nD_586.js → ResizeHandle-TPlUCAHD.js} +103 -50
  197. package/dist/ScrollableArea/index.d.ts +1 -1
  198. package/dist/ScrollableArea/index.js +1 -1
  199. package/dist/{ScrollableArea-D4dCJv9I.js → ScrollableArea-0u6RWtGG.js} +1 -1
  200. package/dist/SegmentedControl/index.d.ts +1 -1
  201. package/dist/SegmentedControl/index.js +1 -1
  202. package/dist/{SegmentedControl-ChHmFrrC.js → SegmentedControl-D1wWGBZo.js} +11 -5
  203. package/dist/SelectableCard/index.d.ts +1 -1
  204. package/dist/SelectableCard/index.js +1 -1
  205. package/dist/{SelectableCard-Cku4dRzc.js → SelectableCard-BEqnhPaX.js} +16 -11
  206. package/dist/Selector/index.d.ts +1 -1
  207. package/dist/Selector/index.js +1 -1
  208. package/dist/Selector-CPISLzp7.js +1049 -0
  209. package/dist/SideNav/index.d.ts +1 -1
  210. package/dist/SideNav/index.js +1 -1
  211. package/dist/{SideNav-BF8mYDxl.js → SideNav-CN2QeAtY.js} +51 -37
  212. package/dist/Slider/index.d.ts +1 -1
  213. package/dist/Slider/index.js +1 -1
  214. package/dist/{Slider-DWobsPgm.js → Slider-pdC0jpHu.js} +172 -46
  215. package/dist/Spinner/index.js +1 -1
  216. package/dist/Spinner-DdVUadii.js +200 -0
  217. package/dist/Stack/index.d.ts +1 -1
  218. package/dist/Stack/index.js +2 -2
  219. package/dist/{Stack-CTsTFfar.js → Stack-Bb_h60t3.js} +1 -1
  220. package/dist/{Stack-kQlYbbL4.js → Stack-Bp-XN9J4.js} +12 -7
  221. package/dist/StatusDot/index.d.ts +1 -1
  222. package/dist/StatusDot/index.js +1 -1
  223. package/dist/{StatusDot-BPUhMOff.js → StatusDot-BS_ohXhd.js} +8 -4
  224. package/dist/Stepper/index.js +1 -1
  225. package/dist/{Stepper-CE8dHysu.js → Stepper-CyaSRSdu.js} +101 -79
  226. package/dist/Switch/index.d.ts +1 -1
  227. package/dist/Switch/index.js +1 -1
  228. package/dist/{Switch-DaVPRxvN.js → Switch-Z2Vfiiic.js} +38 -22
  229. package/dist/TabList/index.d.ts +2 -2
  230. package/dist/TabList/index.js +1 -1
  231. package/dist/{TabList-DIkK9sgK.js → TabList-DRqP0Hrv.js} +205 -63
  232. package/dist/Table/index.d.ts +3 -3
  233. package/dist/Table/index.js +1 -1
  234. package/dist/{Table-fecqnm7P.js → Table-BcrrylMX.js} +726 -452
  235. package/dist/Text/index.d.ts +1 -1
  236. package/dist/Text/index.js +1 -1
  237. package/dist/{Text-CV3LmscH.js → Text-CmTOgYXf.js} +1 -1
  238. package/dist/TextArea/index.d.ts +1 -1
  239. package/dist/TextArea/index.js +1 -1
  240. package/dist/{TextArea-Ab5Sw60T.js → TextArea-DA9CCG_J.js} +104 -50
  241. package/dist/TextInput/index.d.ts +1 -1
  242. package/dist/TextInput/index.js +1 -1
  243. package/dist/{TextInput-zFT1_qgI.js → TextInput-CI96einV.js} +71 -38
  244. package/dist/Theme/index.d.ts +3 -3
  245. package/dist/Theme/index.js +3 -2
  246. package/dist/Theme-BbDT8B_C.js +2125 -0
  247. package/dist/Thumbnail/index.js +1 -1
  248. package/dist/{Thumbnail-C3NnJUFG.js → Thumbnail-B2ZAY59J.js} +13 -10
  249. package/dist/{TimeField-CoHDGmsP.js → TimeField-CpAgja9D.js} +297 -40
  250. package/dist/TimeInput/index.d.ts +1 -1
  251. package/dist/TimeInput/index.js +1 -1
  252. package/dist/{TimeInput-D2k3Ux3p.js → TimeInput-Bw_lHS4M.js} +78 -9
  253. package/dist/Timer/index.d.ts +1 -1
  254. package/dist/Timer/index.js +1 -1
  255. package/dist/{Timer-avMQk5DN.js → Timer-CH7GsEVu.js} +1 -1
  256. package/dist/Timestamp/index.d.ts +1 -1
  257. package/dist/Timestamp/index.js +1 -1
  258. package/dist/{Timestamp-xpQKCk0d.js → Timestamp-BFNuoTZ0.js} +5 -5
  259. package/dist/Toast/index.d.ts +1 -1
  260. package/dist/Toast/index.js +1 -1
  261. package/dist/Toast-DwnPjx6j.js +685 -0
  262. package/dist/ToggleButton/index.d.ts +1 -1
  263. package/dist/ToggleButton/index.js +1 -1
  264. package/dist/{ToggleButton-B-C-Q7XP.js → ToggleButton-cLjh9W-x.js} +5 -4
  265. package/dist/Token/index.d.ts +1 -1
  266. package/dist/Token/index.js +1 -1
  267. package/dist/{Token-DsntTYhQ.js → Token-BfS4vi__.js} +32 -17
  268. package/dist/Tokenizer/index.d.ts +1 -1
  269. package/dist/Tokenizer/index.js +1 -1
  270. package/dist/{Tokenizer-B5C_qY7t.js → Tokenizer-Ci3E5bvP.js} +107 -23
  271. package/dist/Toolbar/index.d.ts +2 -2
  272. package/dist/Toolbar/index.js +1 -1
  273. package/dist/{Toolbar-BrgvvTCk.js → Toolbar-C0pMWL4S.js} +1 -1
  274. package/dist/Tooltip/index.d.ts +1 -1
  275. package/dist/Tooltip/index.js +1 -1
  276. package/dist/{Tooltip-C4Vaqd3G.js → Tooltip-sAM8i1eO.js} +23 -19
  277. package/dist/TopNav/index.d.ts +1 -1
  278. package/dist/TopNav/index.js +1 -1
  279. package/dist/{TopNav-Ciq0l1w7.js → TopNav-gW59zp1o.js} +16 -15
  280. package/dist/TreeList/index.d.ts +1 -1
  281. package/dist/TreeList/index.js +1 -1
  282. package/dist/{TreeList-BUz-KZJd.js → TreeList-DaoI7zaH.js} +124 -41
  283. package/dist/Typeahead/index.d.ts +1 -1
  284. package/dist/Typeahead/index.js +2 -2
  285. package/dist/{Typeahead-JP9RT87x.js → Typeahead-D4JjvjK4.js} +123 -26
  286. package/dist/{TypeaheadMenu-DBW6rHeO.js → TypeaheadMenu-BQlMrfqX.js} +141 -51
  287. package/dist/{announce-Cnio10Wk.js → announce-B210eJVf.js} +17 -2
  288. package/dist/characterReferences-BJ-jLhsR.js +65 -0
  289. package/dist/characters-rcDbGt71.d.ts +29 -0
  290. package/dist/characters-wTnzjkkR.js +58 -0
  291. package/dist/{colorMode-CBgdgDSn.js → colorMode-BxqfDP4P.js} +1 -4
  292. package/dist/composables/index.d.ts +5 -4
  293. package/dist/composables/index.js +23 -18
  294. package/dist/{composables-CbKx9C1Y.js → composables-Bc02zKAO.js} +167 -197
  295. package/dist/context-B6UElI5X.js +5 -0
  296. package/dist/{context-Cfjh8te1.js → context-Cfml4jaK.js} +5 -3
  297. package/dist/{context-iABt_ueM.js → context-DWfi56sq.js} +451 -122
  298. package/dist/context-IvbU9c3T.js +8 -0
  299. package/dist/context-pjBxaMSh.js +28 -0
  300. package/dist/fieldParts--SyRZVQG.js +44 -0
  301. package/dist/fieldParts-LXpQMKE8.d.ts +27 -0
  302. package/dist/{focus-CpficIgf.js → focus-l8jVTcqd.js} +1 -1
  303. package/dist/hoverIntent-DMHGb85c.js +115 -0
  304. package/dist/{index-Cde5JvtX.d.ts → index-B-nESNam.d.ts} +8 -7
  305. package/dist/{index-CsNi1I8j.d.ts → index-B08-Uxhv.d.ts} +4 -2
  306. package/dist/{index-Cn-sSds-.d.ts → index-B56j4eI2.d.ts} +24 -1
  307. package/dist/{index-BkjSF265.d.ts → index-BEZ4ezJk.d.ts} +3 -3
  308. package/dist/{index-DeQwYJbg.d.ts → index-BNaRK-s5.d.ts} +10 -1
  309. package/dist/{index-0QGtSf3r.d.ts → index-BO9TY87G.d.ts} +3 -2
  310. package/dist/{index-IBAInumL.d.ts → index-BQEJj72c.d.ts} +23 -10
  311. package/dist/{index-D97pQbua.d.ts → index-BV2D2x_u.d.ts} +1 -1
  312. package/dist/{index-Crp3NFLW.d.ts → index-BZKgbyN9.d.ts} +1 -1
  313. package/dist/index-BkUkm6Al.d.ts +11 -0
  314. package/dist/{index-ClNU2Th8.d.ts → index-Bn-v89Vt.d.ts} +10 -6
  315. package/dist/{index-Bu8NA2SD.d.ts → index-BnEhvmdR.d.ts} +16 -7
  316. package/dist/index-Bo-ofFyg.d.ts +166 -0
  317. package/dist/{index-i0tNFWfz.d.ts → index-BqhgeAT4.d.ts} +2 -0
  318. package/dist/{index-DWh2WC8W.d.ts → index-C4Cjz6OK.d.ts} +2 -2
  319. package/dist/{index-B7yhzGUT.d.ts → index-C7sam-SB.d.ts} +2 -2
  320. package/dist/{index-BrJzFA5X.d.ts → index-C90l2rH1.d.ts} +1 -1
  321. package/dist/{index-vP0EtrJJ.d.ts → index-C9gAlDt_.d.ts} +6 -3
  322. package/dist/{index-xrzJC4wm.d.ts → index-CJ6ajsUC.d.ts} +1 -1
  323. package/dist/{index-B9e52paP.d.ts → index-CK-Dbh0f.d.ts} +1 -1
  324. package/dist/index-CKUfpmFL.d.ts +375 -0
  325. package/dist/{index-DXpSFlPG.d.ts → index-CKgBTAzC.d.ts} +4 -4
  326. package/dist/{index-gW0HW02U.d.ts → index-COxy6LEW.d.ts} +1 -1
  327. package/dist/{index-B4OOtNP8.d.ts → index-CPtDjmcX.d.ts} +3 -3
  328. package/dist/{index-12QYAbiz.d.ts → index-CRrSHbok.d.ts} +3 -2
  329. package/dist/{index-DG52Bg0W.d.ts → index-CTf3SK0b.d.ts} +6 -0
  330. package/dist/{index-BVKivP59.d.ts → index-CTjkJP4x.d.ts} +32 -3
  331. package/dist/{index-COgrQZIL.d.ts → index-CdvmnNMH.d.ts} +1 -1
  332. package/dist/{index-GI9xIV9l.d.ts → index-CikMzeab.d.ts} +2 -2
  333. package/dist/{index-DUaLJO7l.d.ts → index-CpNlPLBF.d.ts} +172 -126
  334. package/dist/{index-yT1yiiww.d.ts → index-Cs1xsHKi.d.ts} +24 -12
  335. package/dist/{index-Cyb9Du5Z.d.ts → index-CtTGt6Dv.d.ts} +1 -1
  336. package/dist/{index-Byar3h1e.d.ts → index-D05JGsT3.d.ts} +6 -3
  337. package/dist/{index-B3Fomy15.d.ts → index-D0_HsuC3.d.ts} +3 -3
  338. package/dist/{index-BgT6mH3U.d.ts → index-D7ShT2c-.d.ts} +1 -1
  339. package/dist/{index-CkKPMIeX.d.ts → index-D7XRtUTY.d.ts} +9 -0
  340. package/dist/{index-TntQsADQ.d.ts → index-DEm3kRBO.d.ts} +4 -3
  341. package/dist/{index-C2nbK2AA.d.ts → index-DLAG3m9W.d.ts} +13 -3
  342. package/dist/{index-DVmgNb78.d.ts → index-DRJZ-v1E.d.ts} +4 -4
  343. package/dist/{index-CL1T2j4y.d.ts → index-DY8Wph-A.d.ts} +3 -3
  344. package/dist/{index-B1WJxt-n.d.ts → index-DfC05uKG.d.ts} +17 -7
  345. package/dist/{index-C5e-7Obr.d.ts → index-Dj1_1t3j.d.ts} +19 -6
  346. package/dist/{index-D41_xqjs.d.ts → index-Dr4b_oji.d.ts} +20 -13
  347. package/dist/{index-CqE4Bf3Q.d.ts → index-Ds201-d2.d.ts} +16 -2
  348. package/dist/{index-DIXAzTKL.d.ts → index-DxxudRgB.d.ts} +1 -1
  349. package/dist/{index-B42oE_F-.d.ts → index-IfsSCj8J.d.ts} +18 -5
  350. package/dist/{index-XuAAcYiP.d.ts → index-f3d9cVtj.d.ts} +1 -1
  351. package/dist/{index-T2FOcOuI.d.ts → index-jOwU3YoR.d.ts} +400 -90
  352. package/dist/{index-CICeEoZV.d.ts → index-pNtfr-RW.d.ts} +1 -1
  353. package/dist/{index-BhpAUzUr.d.ts → index-unAZVFGz.d.ts} +2 -2
  354. package/dist/index.d.ts +80 -74
  355. package/dist/index.js +149 -134
  356. package/dist/inlineSize-BNe8wggI.js +66 -0
  357. package/dist/inputPresentation-BOyHkCDr.js +62 -0
  358. package/dist/interactionModality-ACpTMhak.js +44 -0
  359. package/dist/isApplePlatform-B1ju6F5B.js +27 -0
  360. package/dist/isRenderable-BnKHIqfd.js +21 -0
  361. package/dist/layerDepth-CNDh-IHb.js +181 -0
  362. package/dist/link-DuuA2eCL.js +30 -0
  363. package/dist/{loadCatalog-BGHKG_9N.d.ts → loadCatalog-DlLFZreI.d.ts} +281 -7
  364. package/dist/loadCatalog-eopw74qb.js +424 -0
  365. package/dist/locale/index.d.ts +2 -2
  366. package/dist/locale/index.js +4 -3
  367. package/dist/locale-CabGJlGp.js +343 -0
  368. package/dist/modalOutlet-CUOcrhIu.js +56 -0
  369. package/dist/optionAction-Cg7xQLUA.d.ts +6 -0
  370. package/dist/{power-search-DrDfcoL1.d.ts → power-search-gHLIYXs5.d.ts} +2 -0
  371. package/dist/protocol-DHxY0NI8.js +113 -0
  372. package/dist/protocol-RSeMzAN1.d.ts +238 -0
  373. package/dist/publicParser-B0MRoikr.d.ts +141 -0
  374. package/dist/publicParser-uHC_T0Fo.js +895 -0
  375. package/dist/resizableChannel-3vivrEcT.js +20 -0
  376. package/dist/safeUrl-CsvfcZ9m.js +54 -0
  377. package/dist/scopedProvide-C-Df7c15.js +30 -0
  378. package/dist/scrollKeyboardDelegation-D7cumnOl.js +238 -0
  379. package/dist/scrollLock-C3aT4-0z.js +102 -0
  380. package/dist/{searchResultMessage-hXXNOFJP.js → searchResultMessage-mCpJBvra.js} +5 -14
  381. package/dist/{semantic-CKH9XVqa.d.ts → semantic-BF_AjLvk.d.ts} +6 -3
  382. package/dist/slug-C65CUsf9.js +32 -0
  383. package/dist/syntaxContext-DmIfNNtb.js +4 -0
  384. package/dist/triggerVariant-BsL8jMHs.js +16 -0
  385. package/dist/{types-0Q_SJv_F.d.ts → types-Bb7OGivY.d.ts} +6 -1
  386. package/dist/{types-CwyibrRB.d.ts → types-C5GQ2KCK.d.ts} +23 -3
  387. package/dist/{types-gKsEkk2g.d.ts → types-CsqwQkf1.d.ts} +143 -10
  388. package/dist/upstreamMap-xr3gvREu.js +731 -0
  389. package/dist/{useAnchoredListbox-DwztMNjP.js → useAnchoredListbox-DGxxKHZb.js} +2 -2
  390. package/dist/{useAsyncSource-xpQovjV_.d.ts → useAsyncSource-aGzrvRkI.d.ts} +3 -0
  391. package/dist/{useClickableContainer-DyNpnSEa.js → useClickableContainer-CdGp_Cev.js} +1 -1
  392. package/dist/{useClipboard-BDfbEsWd.js → useClipboard-Dk8cS810.js} +1 -1
  393. package/dist/useHoverLayerDismiss-kYJ_NqL4.js +27 -0
  394. package/dist/{useIndicator-i1NORM7W.js → useIndicator-MZmfBWid.js} +5 -23
  395. package/dist/{useInputContainer-CpgDe2-4.js → useInputContainer-CLcYrby4.js} +1 -1
  396. package/dist/{useInputStatusIcon-DBOwxV4x.js → useInputStatusIcon-DAE7PExr.js} +1 -1
  397. package/dist/useLayerMountTarget-BmZyeKWE.js +156 -0
  398. package/dist/{useListFocus-D0iOJl39.js → useListFocus-ChxLg0b4.js} +3 -2
  399. package/dist/{useMenuDrillIn-DzKGkTho.js → useMenuDrillIn-DhUnPvKs.js} +6 -5
  400. package/dist/useMenuHover-Djreu23i.js +170 -0
  401. package/dist/useMenuPress-8foxY8z4.js +764 -0
  402. package/dist/{useMergedRefs-CfHHlCsn.js → useMergedRefs-Cb6_w93m.js} +24 -4
  403. package/dist/{useNumberField-4-dIGVed.js → useNumberField-Dk1BE3-K.js} +3 -3
  404. package/dist/useOptionActionGrid-CkJcuvaU.js +97 -0
  405. package/dist/{usePositionedLayer-Cru9_00b.js → usePositionedLayer-B7cvG-_v.js} +43 -49
  406. package/dist/usePressFeedback-BJCpjEpv.js +319 -0
  407. package/dist/{useResizable-DDwPpPe6.d.ts → useResizable-1MHPNaRD.d.ts} +19 -1
  408. package/dist/{useResizable-B3ahKLoZ.js → useResizable-I3BCiLSL.js} +72 -40
  409. package/dist/useResolvedLabelHidden-B2rlWiaI.js +30 -0
  410. package/dist/{useRestoreFocus-Djw9RUIf.js → useRestoreFocus-XEKs5-gp.js} +49 -7
  411. package/dist/useScrollOverflow-DuMoGXmm.js +67 -0
  412. package/dist/useScrollableArea-BE8b3qm7.js +222 -0
  413. package/dist/{useTimeValue-6ufHM15W.js → useTimeValue-BJd0xBhG.js} +4 -22
  414. package/dist/useTranslator-BmWt2BBt.js +35 -0
  415. package/dist/{useTypeahead-PAK8lMYz.js → useTypeahead-BvtflkRk.js} +4 -5
  416. package/dist/utils/index.d.ts +3 -0
  417. package/dist/utils/index.js +5 -0
  418. package/dist/{utils-D33VQDnk.js → utils-ClVseK2w.js} +29 -2
  419. package/dist/utils-z3Q6BGIJ.js +819 -0
  420. package/locales/SOURCE.json +1 -1
  421. package/package.json +18 -2
  422. package/reset.css +364 -1
  423. package/styles/avatar-group.css +9 -1
  424. package/styles/badge.css +8 -5
  425. package/styles/banner.css +124 -26
  426. package/styles/blockquote.css +1 -0
  427. package/styles/bordered-control.css +1 -1
  428. package/styles/bottom-sheet.css +74 -6
  429. package/styles/breadcrumbs.css +16 -2
  430. package/styles/button-group.css +3 -1
  431. package/styles/button.css +53 -11
  432. package/styles/card.css +1 -1
  433. package/styles/chat.css +16 -6
  434. package/styles/checkbox-input.css +10 -0
  435. package/styles/clickable-card.css +10 -3
  436. package/styles/collapsible.css +12 -5
  437. package/styles/command-palette.css +29 -14
  438. package/styles/complex-selector.css +22 -5
  439. package/styles/context-menu.css +3 -3
  440. package/styles/date-input.css +111 -1
  441. package/styles/dialog-header.css +4 -1
  442. package/styles/dialog.css +7 -0
  443. package/styles/dropdown-menu.css +12 -3
  444. package/styles/field.css +5 -0
  445. package/styles/form-layout.css +1 -0
  446. package/styles/heading.css +18 -8
  447. package/styles/icon.css +4 -0
  448. package/styles/kbd.css +1 -1
  449. package/styles/layer.css +72 -0
  450. package/styles/list.css +9 -2
  451. package/styles/metadata-list.css +1 -0
  452. package/styles/mobile-nav.css +4 -1
  453. package/styles/multi-selector.css +48 -1
  454. package/styles/nav-item.css +9 -2
  455. package/styles/nav-menu.css +12 -2
  456. package/styles/number-input.css +9 -1
  457. package/styles/overflow-list.css +1 -1
  458. package/styles/popover.css +2 -1
  459. package/styles/power-search.css +5 -3
  460. package/styles/pressable.css +63 -22
  461. package/styles/progress-bar.css +15 -3
  462. package/styles/radio.css +16 -0
  463. package/styles/resize-handle.css +42 -0
  464. package/styles/segmented-control.css +12 -4
  465. package/styles/selector.css +53 -1
  466. package/styles/side-nav.css +19 -0
  467. package/styles/slider.css +4 -3
  468. package/styles/spinner.css +48 -42
  469. package/styles/stepper.css +58 -4
  470. package/styles/switch.css +26 -0
  471. package/styles/tab-list.css +132 -3
  472. package/styles/table.css +88 -10
  473. package/styles/text-area.css +1 -1
  474. package/styles/text-input.css +1 -1
  475. package/styles/text.css +6 -6
  476. package/styles/thumbnail.css +11 -3
  477. package/styles/time-input.css +8 -0
  478. package/styles/toast.css +37 -3
  479. package/styles/token.css +2 -2
  480. package/styles/tokenizer.css +1 -1
  481. package/styles/toolbar.css +4 -1
  482. package/styles/tree-list.css +1 -1
  483. package/styles/typeahead.css +34 -1
  484. package/styles.css +1 -0
  485. package/dist/Blockquote-DFqBv_oJ.js +0 -18
  486. package/dist/Breadcrumbs-DIm4figq.js +0 -141
  487. package/dist/ButtonGroup-ySQWanDP.js +0 -125
  488. package/dist/DateTimeInput-A7m2O3bg.js +0 -268
  489. package/dist/MultiSelector-BtAUfQ3t.js +0 -990
  490. package/dist/NumberInput-AZ9x3oja.js +0 -473
  491. package/dist/Selector-DJ2BhUTV.js +0 -677
  492. package/dist/Spinner-9cYUCnDy.js +0 -84
  493. package/dist/Theme-CtaUWo4g.js +0 -1246
  494. package/dist/Toast-BuqIZV5z.js +0 -322
  495. package/dist/context-4PuqD1Ic.js +0 -4
  496. package/dist/context-D5-MwxnN.js +0 -4
  497. package/dist/index-BH9PzQ1F.d.ts +0 -87
  498. package/dist/link-C4_WogdF.js +0 -18
  499. package/dist/loadCatalog-CXKqEB9s.js +0 -877
  500. package/dist/locale-DgkZEMTn.js +0 -105
  501. package/dist/platform-B_9W_aHW.js +0 -33
  502. package/dist/scrollLock-BzIvIimL.js +0 -42
  503. package/dist/useMenuPress-D-FRNrBW.js +0 -573
  504. package/dist/useScrollableArea-DDk_CluT.js +0 -172
  505. /package/dist/{index-lgvUFSCO.d.ts → index-CryFtTT6.d.ts} +0 -0
@@ -0,0 +1,895 @@
1
+ import { c as isMarkdownPluginData, i as freezeMarkdownPluginData, o as getMarkdownPluginDefinition } from "./protocol-DHxY0NI8.js";
2
+ import { fromMarkdown } from "mdast-util-from-markdown";
3
+ import { gfmFromMarkdown } from "mdast-util-gfm";
4
+ import { gfm } from "micromark-extension-gfm";
5
+ //#region src/Markdown/blocks.ts
6
+ function splitSourceLines(source) {
7
+ if (source.length === 0) return [];
8
+ const lines = [];
9
+ let start = 0;
10
+ for (let index = 0; index < source.length; index++) {
11
+ if (source.charCodeAt(index) !== 10) continue;
12
+ const contentEnd = index > start && source.charCodeAt(index - 1) === 13 ? index - 1 : index;
13
+ lines.push({
14
+ text: source.slice(start, contentEnd),
15
+ start,
16
+ end: index + 1,
17
+ newline: true
18
+ });
19
+ start = index + 1;
20
+ }
21
+ if (start < source.length) lines.push({
22
+ text: source.slice(start),
23
+ start,
24
+ end: source.length,
25
+ newline: false
26
+ });
27
+ return lines;
28
+ }
29
+ function fenceOpener(text) {
30
+ const indent = /^ {0,3}/.exec(text);
31
+ const rest = text.slice(indent?.[0].length ?? 0);
32
+ const markerMatch = /^(`{3,}|~{3,})/.exec(rest);
33
+ if (markerMatch == null) return null;
34
+ const marker = markerMatch[1] ?? "";
35
+ const info = rest.slice(marker.length);
36
+ if (marker.startsWith("`") && info.includes("`")) return null;
37
+ const char = marker[0];
38
+ if (char == null) return null;
39
+ return {
40
+ char,
41
+ length: marker.length
42
+ };
43
+ }
44
+ function isFenceClose(text, marker) {
45
+ const match = /^ {0,3}([`~]+)[ \t]*$/.exec(text);
46
+ if (match == null) return false;
47
+ const closing = match[1] ?? "";
48
+ return closing.length >= marker.length && [...closing].every((char) => char === marker.char);
49
+ }
50
+ function isAtxHeading(text) {
51
+ return /^ {0,3}#{1,6}(?:[ \t]|$)/.test(text);
52
+ }
53
+ function isThematicBreak(text) {
54
+ return /^ {0,3}([-*_])(?:[ \t]*\1){2,}[ \t]*$/.test(text);
55
+ }
56
+ function isSetextUnderline(text) {
57
+ return /^ {0,3}(?:=+|-+)[ \t]*$/.test(text);
58
+ }
59
+ function isListItem(text) {
60
+ return /^ {0,3}(?:[-+*]|\d{1,9}[.)])[ \t]/.test(text);
61
+ }
62
+ function isBlockquote(text) {
63
+ return /^ {0,3}>/.test(text);
64
+ }
65
+ function isBlank(text) {
66
+ return /^[ \t]*$/.test(text);
67
+ }
68
+ function isIndented(text) {
69
+ return /^[ \t]+\S/.test(text);
70
+ }
71
+ function continuesList(text) {
72
+ return isListItem(text) || isIndented(text);
73
+ }
74
+ function continuesQuote(text) {
75
+ return isBlockquote(text) || isIndented(text);
76
+ }
77
+ function hasUnsettledParagraph(lines, index, settled) {
78
+ const previous = lines[index - 1];
79
+ if (previous == null || isBlank(previous.text) || settled > previous.start) return false;
80
+ if (isAtxHeading(previous.text) || isListItem(previous.text) || isBlockquote(previous.text)) return false;
81
+ if (isThematicBreak(previous.text) || fenceOpener(previous.text) != null) return false;
82
+ return true;
83
+ }
84
+ /**
85
+ * End index of the prefix whose blocks can no longer change if text is only
86
+ * appended. The last open block stays after this index and is re-parsed.
87
+ * The index never moves backwards as `source` grows by appending.
88
+ */
89
+ function findSettledEnd(source) {
90
+ const lines = splitSourceLines(source);
91
+ let settled = 0;
92
+ let container = "top";
93
+ let fence = null;
94
+ for (let index = 0; index < lines.length; index++) {
95
+ const line = lines[index];
96
+ if (line == null || !line.newline) return settled;
97
+ if (fence != null) {
98
+ if (isFenceClose(line.text, fence)) {
99
+ fence = null;
100
+ if (container === "top") settled = line.end;
101
+ }
102
+ continue;
103
+ }
104
+ const opener = fenceOpener(line.text);
105
+ if (opener != null) {
106
+ fence = opener;
107
+ continue;
108
+ }
109
+ if (container === "top" && isAtxHeading(line.text)) {
110
+ settled = line.end;
111
+ continue;
112
+ }
113
+ if (container === "top" && isSetextUnderline(line.text) && hasUnsettledParagraph(lines, index, settled)) {
114
+ settled = line.end;
115
+ continue;
116
+ }
117
+ if (container === "top" && isThematicBreak(line.text)) {
118
+ settled = line.end;
119
+ continue;
120
+ }
121
+ if (isBlank(line.text)) {
122
+ const next = lines[index + 1];
123
+ if (next == null || !next.newline) return settled;
124
+ if (container === "list" && continuesList(next.text)) continue;
125
+ if (container === "quote" && continuesQuote(next.text)) continue;
126
+ container = "top";
127
+ settled = line.end;
128
+ continue;
129
+ }
130
+ if (container === "top" && isListItem(line.text)) {
131
+ container = "list";
132
+ continue;
133
+ }
134
+ if (container === "top" && isBlockquote(line.text)) container = "quote";
135
+ }
136
+ return settled;
137
+ }
138
+ /** True when a fenced code block has been opened and not closed. */
139
+ function hasOpenFence(source) {
140
+ const lines = splitSourceLines(source);
141
+ let fence = null;
142
+ for (const line of lines) {
143
+ if (!line.newline) return fence != null || fenceOpener(line.text) != null;
144
+ if (fence != null) {
145
+ if (isFenceClose(line.text, fence)) fence = null;
146
+ continue;
147
+ }
148
+ const opener = fenceOpener(line.text);
149
+ if (opener != null) fence = opener;
150
+ }
151
+ return fence != null;
152
+ }
153
+ //#endregion
154
+ //#region src/Markdown/trim.ts
155
+ function isInsideCodeSpan(line, index) {
156
+ let open = false;
157
+ for (let cursor = 0; cursor < index; cursor++) if (line[cursor] === "`") open = !open;
158
+ return open;
159
+ }
160
+ function trimIncompleteLink(line) {
161
+ const image = line.lastIndexOf("![");
162
+ const bracket = line.lastIndexOf("[");
163
+ const start = Math.max(image, bracket);
164
+ if (start < 0 || isInsideCodeSpan(line, start)) return line;
165
+ const slice = line.slice(start);
166
+ if (/^!?\[[^\]]*\]\([^)]*\)$/.test(slice) || /^!?\[[^\]]*\]$/.test(slice)) return line;
167
+ if (/^!?\[[^\]]*\]\([^)]*$/.test(slice) || /^!?\[[^\]]*$/.test(slice)) return line.slice(0, start);
168
+ return line;
169
+ }
170
+ function markerRuns(line, char, maxLength) {
171
+ const runs = [];
172
+ for (let index = 0; index < line.length; index++) {
173
+ if (line[index] !== char) continue;
174
+ let length = 1;
175
+ while (line[index + length] === char) length += 1;
176
+ if (length <= maxLength) runs.push({
177
+ start: index,
178
+ length
179
+ });
180
+ index += length - 1;
181
+ }
182
+ return runs;
183
+ }
184
+ /** Pair equal-length marker runs and close or drop the ones left open. */
185
+ function closeRuns(line, char, maxLength) {
186
+ const runs = markerRuns(line, char, maxLength);
187
+ const openByLength = /* @__PURE__ */ new Map();
188
+ const closed = /* @__PURE__ */ new Set();
189
+ runs.forEach((run, index) => {
190
+ const stack = openByLength.get(run.length) ?? [];
191
+ const opener = stack.pop();
192
+ if (opener == null) {
193
+ stack.push(index);
194
+ openByLength.set(run.length, stack);
195
+ return;
196
+ }
197
+ closed.add(opener);
198
+ closed.add(index);
199
+ openByLength.set(run.length, stack);
200
+ });
201
+ const openIndexes = runs.map((_, index) => index).filter((index) => !closed.has(index));
202
+ if (openIndexes.length === 0) return line;
203
+ let result = line;
204
+ for (const index of [...openIndexes].reverse()) {
205
+ const run = runs[index];
206
+ if (run == null) continue;
207
+ const after = result.slice(run.start + run.length);
208
+ if (after.trim() === "") {
209
+ result = result.slice(0, run.start) + result.slice(run.start + run.length);
210
+ continue;
211
+ }
212
+ const trailing = after.length - after.trimEnd().length;
213
+ const closer = char.repeat(run.length);
214
+ result = result.slice(0, result.length - trailing) + closer + result.slice(result.length - trailing);
215
+ }
216
+ return result;
217
+ }
218
+ function closeStrike(line) {
219
+ const positions = [];
220
+ let search = 0;
221
+ while (search < line.length) {
222
+ const found = line.indexOf("~~", search);
223
+ if (found === -1) break;
224
+ positions.push(found);
225
+ search = found + 2;
226
+ }
227
+ if (positions.length % 2 === 0) return line;
228
+ const start = positions[positions.length - 1];
229
+ if (start == null) return line;
230
+ const after = line.slice(start + 2);
231
+ if (after.trim() === "") return line.slice(0, start);
232
+ const trailing = after.length - after.trimEnd().length;
233
+ return `${line.slice(0, line.length - trailing)}~~${line.slice(line.length - trailing)}`;
234
+ }
235
+ /**
236
+ * Hide unfinished link and code markers on the last line, and close emphasis
237
+ * that already has text so the words can render while the stream continues.
238
+ * An open fence is left untouched.
239
+ */
240
+ function trimStreamingTail(tail) {
241
+ if (tail === "" || hasOpenFence(tail)) return tail;
242
+ const lastNewline = tail.lastIndexOf("\n");
243
+ const head = lastNewline === -1 ? "" : tail.slice(0, lastNewline + 1);
244
+ let line = lastNewline === -1 ? tail : tail.slice(lastNewline + 1);
245
+ line = trimIncompleteLink(line);
246
+ line = closeRuns(line, "`", Number.POSITIVE_INFINITY);
247
+ line = closeRuns(line, "*", 3);
248
+ line = closeStrike(line);
249
+ return head + line;
250
+ }
251
+ //#endregion
252
+ //#region src/Markdown/parse.ts
253
+ const markdownExtensions = [gfm(), { disable: { null: ["htmlFlow", "htmlText"] } }];
254
+ const mdastExtensions = [gfmFromMarkdown()];
255
+ function isAutolinkLiteral(node, source) {
256
+ if (node.type !== "link" || node.title != null && node.title !== "") return false;
257
+ const only = node.children?.length === 1 ? node.children[0] : null;
258
+ if (only == null || only.type !== "text" || only.value == null) return false;
259
+ const start = node.position?.start?.offset;
260
+ const end = node.position?.end?.offset;
261
+ if (start == null || end == null) return false;
262
+ const raw = source.slice(start, end);
263
+ if (raw.startsWith("<") || raw.startsWith("[")) return false;
264
+ return raw === only.value;
265
+ }
266
+ /** Turn bare autolinks back into text. Explicit links and `<url>` stay. */
267
+ function stripAutolinkLiterals(node, source) {
268
+ if (node.children == null) return node;
269
+ let changed = false;
270
+ const children = [];
271
+ for (const child of node.children) {
272
+ if (isAutolinkLiteral(child, source)) {
273
+ const start = child.position?.start?.offset ?? 0;
274
+ const end = child.position?.end?.offset ?? start;
275
+ children.push({
276
+ type: "text",
277
+ value: source.slice(start, end)
278
+ });
279
+ changed = true;
280
+ continue;
281
+ }
282
+ const next = stripAutolinkLiterals(child, source);
283
+ if (next !== child) changed = true;
284
+ children.push(next);
285
+ }
286
+ if (!changed) return node;
287
+ return {
288
+ ...node,
289
+ children: mergeAdjacentText(children)
290
+ };
291
+ }
292
+ function mergeAdjacentText(children) {
293
+ const merged = [];
294
+ for (const child of children) {
295
+ const previous = merged[merged.length - 1];
296
+ if (previous?.type === "text" && child.type === "text") {
297
+ merged[merged.length - 1] = {
298
+ type: "text",
299
+ value: `${previous.value ?? ""}${child.value ?? ""}`
300
+ };
301
+ continue;
302
+ }
303
+ merged.push(child);
304
+ }
305
+ return merged;
306
+ }
307
+ function parseMarkdown$1(source, options) {
308
+ const root = fromMarkdown(source, {
309
+ extensions: markdownExtensions,
310
+ mdastExtensions
311
+ });
312
+ if (options?.autolink === "gfm") return root;
313
+ return stripAutolinkLiterals(root, source);
314
+ }
315
+ function createIncrementalMarkdownState() {
316
+ return {
317
+ settledEnd: 0,
318
+ settledSource: "",
319
+ blocks: []
320
+ };
321
+ }
322
+ function resetIncrementalState(state) {
323
+ state.settledEnd = 0;
324
+ state.settledSource = "";
325
+ state.blocks = [];
326
+ }
327
+ /**
328
+ * Parse `source`, reusing the AST of every block that has already closed.
329
+ * Only the suffix after {@link findSettledEnd} is parsed again. When `source`
330
+ * is no longer an append of the previous value, the cache is dropped.
331
+ */
332
+ function parseMarkdownIncremental$1(source, state, options) {
333
+ const settledPrefix = state.settledSource.slice(0, state.settledEnd);
334
+ if (settledPrefix.length > 0 && !source.startsWith(settledPrefix)) resetIncrementalState(state);
335
+ const end = findSettledEnd(source);
336
+ if (end < state.settledEnd) resetIncrementalState(state);
337
+ if (end > state.settledEnd) {
338
+ const slice = source.slice(state.settledEnd, end);
339
+ if (slice.trim() !== "") {
340
+ const children = parseMarkdown$1(slice, { autolink: options?.autolink }).children ?? [];
341
+ state.blocks = state.blocks.concat(children);
342
+ }
343
+ state.settledEnd = end;
344
+ }
345
+ state.settledSource = source;
346
+ const tail = source.slice(state.settledEnd);
347
+ const prepared = options?.trimTail === true ? trimStreamingTail(tail) : tail;
348
+ const tailBlocks = prepared.trim() === "" ? [] : parseMarkdown$1(prepared, { autolink: options?.autolink }).children ?? [];
349
+ return {
350
+ blocks: state.blocks.concat(tailBlocks),
351
+ settledCount: state.blocks.length
352
+ };
353
+ }
354
+ //#endregion
355
+ //#region src/Markdown/plugin-protocol/run.ts
356
+ /**
357
+ * Run each plugin transform in order. A plugin that returns the same root
358
+ * leaves settled blocks reusable. Reported messages are warnings, not throws.
359
+ */
360
+ function applyProtocolTransforms(root, plugins, source, isFinal) {
361
+ let current = root;
362
+ for (const plugin of plugins) {
363
+ const definition = getMarkdownPluginDefinition(plugin);
364
+ if (definition.transform == null) continue;
365
+ const reports = [];
366
+ const next = definition.transform(current, {
367
+ source,
368
+ isFinal,
369
+ display: "block",
370
+ report(message) {
371
+ reports.push(message);
372
+ }
373
+ });
374
+ for (const message of reports) if (typeof console !== "undefined") console.warn(`[Astryx] Markdown plugin "${definition.name}": ${message}`);
375
+ if (next != null) current = next;
376
+ }
377
+ return current;
378
+ }
379
+ //#endregion
380
+ //#region src/Markdown/plugin-protocol/syntax.ts
381
+ function prepareSyntax(plugins) {
382
+ const inline = [];
383
+ const block = [];
384
+ const names = /* @__PURE__ */ new Set();
385
+ for (const plugin of plugins) {
386
+ const definition = getMarkdownPluginDefinition(plugin);
387
+ if (names.has(definition.name)) throw new Error(`Markdown plugin: duplicate name "${definition.name}"`);
388
+ names.add(definition.name);
389
+ if (!("syntax" in definition) || definition.syntax == null) continue;
390
+ const rendererNames = new Set(Object.keys(definition.renderers));
391
+ const take = (display, group) => {
392
+ for (const contribution of group ?? []) {
393
+ const prepared = {
394
+ pluginName: definition.name,
395
+ display,
396
+ startsWith: contribution.startsWith,
397
+ maxSpan: contribution.maxSpan,
398
+ tokenize: contribution.tokenize,
399
+ rendererNames
400
+ };
401
+ (display === "inline" ? inline : block).push(prepared);
402
+ }
403
+ };
404
+ take("inline", definition.syntax.inline);
405
+ take("block", definition.syntax.block);
406
+ }
407
+ return {
408
+ inline,
409
+ block
410
+ };
411
+ }
412
+ function pointAt(source, offset) {
413
+ let line = 1;
414
+ let column = 1;
415
+ const limit = Math.min(offset, source.length);
416
+ for (let index = 0; index < limit; index += 1) if (source.charCodeAt(index) === 10) {
417
+ line += 1;
418
+ column = 1;
419
+ } else column += 1;
420
+ return {
421
+ line,
422
+ column,
423
+ offset
424
+ };
425
+ }
426
+ function matchAt(source, offset, limit, display, contributions, isFinal) {
427
+ const first = source[offset];
428
+ if (first == null) return { status: "none" };
429
+ for (const contribution of contributions) {
430
+ if (!contribution.startsWith.some((prefix) => prefix[0] === first)) continue;
431
+ let fullPrefix = false;
432
+ for (const prefix of contribution.startsWith) {
433
+ if (source.startsWith(prefix, offset)) {
434
+ fullPrefix = true;
435
+ break;
436
+ }
437
+ if (!isFinal) {
438
+ const remaining = source.slice(offset);
439
+ if (remaining.length < prefix.length && prefix.startsWith(remaining)) return { status: "defer" };
440
+ }
441
+ }
442
+ if (!fullPrefix) continue;
443
+ const endLimit = Math.min(source.length, offset + contribution.maxSpan, limit);
444
+ let result;
445
+ try {
446
+ result = contribution.tokenize({
447
+ source: endLimit === source.length ? source : source.slice(0, endLimit),
448
+ offset,
449
+ end: endLimit,
450
+ isFinal,
451
+ context: display,
452
+ lineStart: source.lastIndexOf("\n", offset - 1) + 1,
453
+ column: offset - (source.lastIndexOf("\n", offset - 1) + 1)
454
+ });
455
+ } catch {
456
+ continue;
457
+ }
458
+ if (result == null || typeof result !== "object" || typeof result.then === "function") continue;
459
+ if (result.status === "no-match") continue;
460
+ if (result.status === "defer") {
461
+ if (!isFinal && endLimit === source.length && source.length - offset < contribution.maxSpan) return { status: "defer" };
462
+ continue;
463
+ }
464
+ if (result.status !== "match") continue;
465
+ const node = result.node;
466
+ if (!Number.isInteger(result.end) || result.end <= offset || result.end > endLimit || node.type !== "extension" || node.plugin !== contribution.pluginName || node.display !== display || node.name.trim() === "" || !isMarkdownPluginData(node.data) || !contribution.rendererNames.has(node.name)) continue;
467
+ return {
468
+ status: "match",
469
+ end: result.end,
470
+ node: {
471
+ ...node,
472
+ data: freezeMarkdownPluginData(node.data),
473
+ source: source.slice(offset, result.end),
474
+ position: {
475
+ start: pointAt(source, offset),
476
+ end: pointAt(source, result.end)
477
+ }
478
+ }
479
+ };
480
+ }
481
+ return { status: "none" };
482
+ }
483
+ function splitText(node, source, contributions, isFinal) {
484
+ const value = node.value ?? "";
485
+ const base = node.position?.start?.offset;
486
+ const end = node.position?.end?.offset;
487
+ const raw = base != null && end != null ? source.slice(base, end) : value;
488
+ const usingDocument = raw === value && base != null;
489
+ const text = usingDocument ? source : value;
490
+ const origin = usingDocument ? base : 0;
491
+ const limit = origin + (usingDocument ? raw.length : value.length);
492
+ const pieces = [];
493
+ let cursor = origin;
494
+ let textStart = origin;
495
+ let changed = false;
496
+ while (cursor < limit) {
497
+ const matched = matchAt(text, cursor, limit, "inline", contributions, isFinal);
498
+ if (matched.status === "match") {
499
+ if (cursor > textStart) pieces.push({
500
+ type: "text",
501
+ value: text.slice(textStart, cursor)
502
+ });
503
+ pieces.push(matched.node);
504
+ cursor = matched.end;
505
+ textStart = cursor;
506
+ changed = true;
507
+ continue;
508
+ }
509
+ if (matched.status === "defer") break;
510
+ cursor += 1;
511
+ }
512
+ if (!changed) return null;
513
+ if (textStart < limit) pieces.push({
514
+ type: "text",
515
+ value: text.slice(textStart, limit)
516
+ });
517
+ return pieces;
518
+ }
519
+ function mapChildren(nodes, source, contributions, isFinal, parentType) {
520
+ if (parentType === "code" || parentType === "inlineCode") return {
521
+ nodes: [...nodes],
522
+ changed: false
523
+ };
524
+ let changed = false;
525
+ const next = [];
526
+ for (const node of nodes) {
527
+ if (node.type === "text" && node.value != null && node.value !== "") {
528
+ const parts = splitText(node, source, contributions, isFinal);
529
+ if (parts != null) {
530
+ changed = true;
531
+ next.push(...parts);
532
+ continue;
533
+ }
534
+ }
535
+ if (node.children != null && node.children.length > 0) {
536
+ const mapped = mapChildren(node.children, source, contributions, isFinal, node.type);
537
+ if (mapped.changed) {
538
+ changed = true;
539
+ next.push({
540
+ ...node,
541
+ children: mapped.nodes
542
+ });
543
+ continue;
544
+ }
545
+ }
546
+ next.push(node);
547
+ }
548
+ return {
549
+ nodes: next,
550
+ changed
551
+ };
552
+ }
553
+ function codeRanges(root) {
554
+ const ranges = [];
555
+ const visit = (node) => {
556
+ if (node.type === "code") {
557
+ const start = node.position?.start?.offset;
558
+ const end = node.position?.end?.offset;
559
+ if (start != null && end != null) ranges.push({
560
+ start,
561
+ end
562
+ });
563
+ }
564
+ for (const child of node.children ?? []) visit(child);
565
+ };
566
+ visit(root);
567
+ return ranges;
568
+ }
569
+ function replaceBlocks(root, source, contributions, isFinal) {
570
+ const ranges = codeRanges(root);
571
+ const matches = [];
572
+ let offset = 0;
573
+ let coveredUntil = 0;
574
+ while (offset <= source.length) {
575
+ const insideCode = ranges.some((range) => offset >= range.start && offset < range.end);
576
+ if (offset >= coveredUntil && !insideCode) {
577
+ const matched = matchAt(source, offset, source.length, "block", contributions, isFinal);
578
+ if (matched.status === "match") {
579
+ matches.push({
580
+ start: offset,
581
+ end: matched.end,
582
+ node: matched.node
583
+ });
584
+ coveredUntil = matched.end;
585
+ offset = matched.end;
586
+ continue;
587
+ }
588
+ }
589
+ const next = source.indexOf("\n", offset);
590
+ if (next === -1) break;
591
+ offset = next + 1;
592
+ }
593
+ if (matches.length === 0) return root;
594
+ const children = root.children ?? [];
595
+ const next = [];
596
+ let matchIndex = 0;
597
+ for (const child of children) {
598
+ const start = child.position?.start?.offset;
599
+ const end = child.position?.end?.offset;
600
+ const match = matches[matchIndex];
601
+ if (match != null && start != null && end != null && end > match.start && start < match.end) {
602
+ if (next[next.length - 1] !== match.node) next.push(match.node);
603
+ if (end >= match.end) matchIndex += 1;
604
+ continue;
605
+ }
606
+ next.push(child);
607
+ }
608
+ return {
609
+ ...root,
610
+ children: next
611
+ };
612
+ }
613
+ /**
614
+ * Apply plugin syntax after the CommonMark parse.
615
+ * Inline matches are spliced into text nodes. Block matches replace
616
+ * top-level children that overlap the match. Code fences are left alone.
617
+ */
618
+ function applyMarkdownSyntax(root, source, plugins, isFinal) {
619
+ const prepared = prepareSyntax(plugins);
620
+ if (prepared.inline.length === 0 && prepared.block.length === 0) return root;
621
+ let current = root;
622
+ if (prepared.inline.length > 0 && current.children != null) {
623
+ const mapped = mapChildren(current.children, source, prepared.inline, isFinal, "root");
624
+ if (mapped.changed) current = {
625
+ ...current,
626
+ children: mapped.nodes
627
+ };
628
+ }
629
+ if (prepared.block.length > 0) current = replaceBlocks(current, source, prepared.block, isFinal);
630
+ return current;
631
+ }
632
+ const BRACKET_CITE = /\[([^\]\s]+)\]|【([^】\s]+)】/g;
633
+ /** Turn `[id]` and `【id】` text into citation nodes when the id is known. */
634
+ function applyCitations(root, sourceIds) {
635
+ const visit = (nodes, parentType) => {
636
+ if (parentType === "code" || parentType === "inlineCode") return {
637
+ nodes: [...nodes],
638
+ changed: false
639
+ };
640
+ let changed = false;
641
+ const next = [];
642
+ for (const node of nodes) {
643
+ const text = node.type === "text" ? node.value ?? "" : "";
644
+ if (text.includes("[") || text.includes("【")) {
645
+ const parts = splitCitations(node.value ?? "", sourceIds);
646
+ if (parts != null) {
647
+ changed = true;
648
+ next.push(...parts);
649
+ continue;
650
+ }
651
+ }
652
+ if (node.children != null && node.children.length > 0) {
653
+ const mapped = visit(node.children, node.type);
654
+ if (mapped.changed) {
655
+ changed = true;
656
+ next.push({
657
+ ...node,
658
+ children: mapped.nodes
659
+ });
660
+ continue;
661
+ }
662
+ }
663
+ next.push(node);
664
+ }
665
+ return {
666
+ nodes: next,
667
+ changed
668
+ };
669
+ };
670
+ if (root.children == null) return root;
671
+ const mapped = visit(root.children, "root");
672
+ return mapped.changed ? {
673
+ ...root,
674
+ children: mapped.nodes
675
+ } : root;
676
+ }
677
+ function splitCitations(value, sourceIds) {
678
+ const pieces = [];
679
+ let cursor = 0;
680
+ let changed = false;
681
+ BRACKET_CITE.lastIndex = 0;
682
+ for (const match of value.matchAll(BRACKET_CITE)) {
683
+ const id = match[1] ?? match[2] ?? "";
684
+ const index = match.index ?? 0;
685
+ if (!sourceIds.has(id)) continue;
686
+ if (match[1] != null && value[index + match[0].length] === "(") continue;
687
+ if (index > cursor) pieces.push({
688
+ type: "text",
689
+ value: value.slice(cursor, index)
690
+ });
691
+ pieces.push({
692
+ type: "citation",
693
+ sourceId: id
694
+ });
695
+ cursor = index + match[0].length;
696
+ changed = true;
697
+ }
698
+ if (!changed) return null;
699
+ if (cursor < value.length) pieces.push({
700
+ type: "text",
701
+ value: value.slice(cursor)
702
+ });
703
+ return pieces;
704
+ }
705
+ //#endregion
706
+ //#region src/Markdown/legacyNodes.ts
707
+ function rangeOf(node, withRange) {
708
+ if (!withRange) return {};
709
+ const start = node.position?.start?.offset;
710
+ const end = node.position?.end?.offset;
711
+ if (start == null || end == null) return {};
712
+ return { range: {
713
+ start,
714
+ end
715
+ } };
716
+ }
717
+ function projectInline(node) {
718
+ switch (node.type) {
719
+ case "text":
720
+ case "html": return {
721
+ type: "text",
722
+ content: node.value ?? ""
723
+ };
724
+ case "strong": return {
725
+ type: "bold",
726
+ children: (node.children ?? []).map(projectInline)
727
+ };
728
+ case "emphasis": return {
729
+ type: "italic",
730
+ children: (node.children ?? []).map(projectInline)
731
+ };
732
+ case "delete": return {
733
+ type: "strikethrough",
734
+ children: (node.children ?? []).map(projectInline)
735
+ };
736
+ case "inlineCode": return {
737
+ type: "code",
738
+ content: node.value ?? ""
739
+ };
740
+ case "break": return { type: "break" };
741
+ case "link":
742
+ case "linkReference": return {
743
+ type: "link",
744
+ href: node.url ?? "",
745
+ children: (node.children ?? []).map(projectInline)
746
+ };
747
+ case "image":
748
+ case "imageReference": return {
749
+ type: "image",
750
+ src: node.url ?? "",
751
+ alt: node.alt ?? node.label ?? ""
752
+ };
753
+ case "citation": return {
754
+ type: "citation",
755
+ sourceId: node.sourceId ?? ""
756
+ };
757
+ case "extension": return node;
758
+ default: return {
759
+ type: "text",
760
+ content: node.value ?? ""
761
+ };
762
+ }
763
+ }
764
+ function projectBlock(node, withRange) {
765
+ const range = rangeOf(node, withRange);
766
+ switch (node.type) {
767
+ case "heading": return {
768
+ ...range,
769
+ type: "heading",
770
+ level: node.depth ?? 1,
771
+ children: (node.children ?? []).map(projectInline)
772
+ };
773
+ case "paragraph": return {
774
+ ...range,
775
+ type: "paragraph",
776
+ children: (node.children ?? []).map(projectInline)
777
+ };
778
+ case "code": return {
779
+ ...range,
780
+ type: "codeblock",
781
+ language: node.lang ?? "",
782
+ content: node.value ?? ""
783
+ };
784
+ case "blockquote": return {
785
+ ...range,
786
+ type: "blockquote",
787
+ children: (node.children ?? []).map((child) => projectBlock(child, false))
788
+ };
789
+ case "list": return {
790
+ ...range,
791
+ type: "list",
792
+ ordered: node.ordered === true,
793
+ start: node.start ?? void 0,
794
+ loose: node.spread === true ? true : void 0,
795
+ items: (node.children ?? []).map((item) => ({
796
+ checked: item.checked ?? void 0,
797
+ children: (item.children ?? []).map((child) => projectBlock(child, false))
798
+ }))
799
+ };
800
+ case "table": {
801
+ const rows = node.children ?? [];
802
+ const header = rows[0];
803
+ const alignments = node.align ?? [];
804
+ const cell = (entry) => ({ children: (entry.children ?? []).map(projectInline) });
805
+ return {
806
+ ...range,
807
+ type: "table",
808
+ headers: (header?.children ?? []).map(cell),
809
+ alignments,
810
+ rows: rows.slice(1).map((row) => (row.children ?? []).map(cell))
811
+ };
812
+ }
813
+ case "thematicBreak": return {
814
+ ...range,
815
+ type: "hr"
816
+ };
817
+ case "image": return {
818
+ ...range,
819
+ type: "image",
820
+ src: node.url ?? "",
821
+ alt: node.alt ?? ""
822
+ };
823
+ case "extension": return {
824
+ ...node,
825
+ ...range
826
+ };
827
+ default: return {
828
+ ...range,
829
+ type: "paragraph",
830
+ children: (node.children ?? []).map(projectInline)
831
+ };
832
+ }
833
+ }
834
+ function projectBlocks(nodes, withRange) {
835
+ return nodes.map((node) => projectBlock(node, withRange));
836
+ }
837
+ //#endregion
838
+ //#region src/Markdown/publicParser.ts
839
+ function idSet(sourceIds) {
840
+ if (sourceIds == null) return void 0;
841
+ const ids = sourceIds instanceof Set ? sourceIds : new Set(sourceIds);
842
+ return ids.size === 0 ? void 0 : ids;
843
+ }
844
+ function parseTree(source, options) {
845
+ let root = parseMarkdown$1(source, { autolink: options?.autolink });
846
+ const ids = idSet(options?.sourceIds);
847
+ if (ids != null) root = applyCitations(root, ids);
848
+ const plugins = options?.plugins;
849
+ if (plugins != null && plugins.length > 0) {
850
+ const isFinal = options?.isFinal !== false;
851
+ root = applyMarkdownSyntax(root, source, plugins, isFinal);
852
+ root = applyProtocolTransforms(root, plugins, source, isFinal);
853
+ }
854
+ return root;
855
+ }
856
+ /** Canonical mdast-shaped root, including plugin syntax and transforms. */
857
+ function parseMarkdownAst(source, options) {
858
+ return parseTree(source, options);
859
+ }
860
+ /** Phrasing children of a one-paragraph document. Anything else is empty. */
861
+ function parseInlineAst(source, options) {
862
+ const root = parseTree(source, options);
863
+ const only = root.children?.length === 1 ? root.children[0] : void 0;
864
+ if (only?.type === "paragraph") return only.children ?? [];
865
+ return [];
866
+ }
867
+ /** Legacy block list. `sourceRanges` adds offsets on the top-level blocks. */
868
+ function parseMarkdown(source, options) {
869
+ return projectBlocks(parseTree(source, options).children ?? [], options?.sourceRanges === true);
870
+ }
871
+ function parseInline(source, options) {
872
+ return parseInlineAst(source, options).map((node) => projectInline(node));
873
+ }
874
+ function createIncrementalState() {
875
+ return {
876
+ prevInput: "",
877
+ settledText: "",
878
+ settledBlocks: [],
879
+ settledUpTo: 0
880
+ };
881
+ }
882
+ /**
883
+ * Public incremental entry. The result matches a full parse. The state records
884
+ * the latest source so a later call can see what was already settled.
885
+ */
886
+ function parseMarkdownIncremental(source, state, options) {
887
+ const blocks = parseMarkdown(source, options);
888
+ state.prevInput = source;
889
+ state.settledText = source;
890
+ state.settledBlocks = blocks;
891
+ state.settledUpTo = source.length;
892
+ return blocks;
893
+ }
894
+ //#endregion
895
+ export { parseMarkdownAst as a, applyProtocolTransforms as c, parseMarkdownIncremental$1 as d, parseMarkdown as i, createIncrementalMarkdownState as l, parseInline as n, parseMarkdownIncremental as o, parseInlineAst as r, applyMarkdownSyntax as s, createIncrementalState as t, parseMarkdown$1 as u };