vue-stream-markdown 0.1.4 → 0.1.6

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 (196) hide show
  1. package/README.md +3 -1
  2. package/dist/arrow-left-DiHYz8df.js +25 -0
  3. package/dist/{blockquote-DdEg2gww.js → blockquote-CxA1dQZe.js} +4 -11
  4. package/dist/{button-jFTF378X.js → button-B2ebQt7R.js} +2 -3
  5. package/dist/button-C6zIegam.js +5 -0
  6. package/dist/{code-BxWvKFxG.js → code-CPG6B2Cw.js} +12 -20
  7. package/dist/code-block--1wFjtmu.js +9 -0
  8. package/dist/{code-block-uZcUI59D.js → code-block-I_Yd1Flg.js} +62 -67
  9. package/dist/{composables-Cx0nvyHl.js → composables-DWipZHuF.js} +1119 -840
  10. package/dist/corner-down-left-jxlwq3ox.js +24 -0
  11. package/dist/{delete-BdWzKJCy.js → delete-DQ21z5-F.js} +4 -11
  12. package/dist/dist-CYkm26BF.js +119 -0
  13. package/dist/dropdown-CtWjJiAf.js +5 -0
  14. package/dist/{emphasis-CTuGt1Ok.js → emphasis-BjLkIDQB.js} +4 -11
  15. package/dist/{en-US-Bfc50l3I.js → en-US-K7SXR3gy.js} +8 -1
  16. package/dist/{error-component-Bhl770lu.js → error-component-DSOVrE5J.js} +1 -1
  17. package/dist/error-component-DtcRn_0A.js +4 -0
  18. package/dist/flip-horizontal-CEf7aAdM.js +25 -0
  19. package/dist/footnote-definition-BmS8hchP.js +103 -0
  20. package/dist/footnote-reference-Z2tITeCE.js +86 -0
  21. package/dist/{heading-2vpQQtTH.js → heading-BwBFJB_E.js} +4 -11
  22. package/dist/{html-DL0PcUXX.js → html-DFU0myJP.js} +2 -10
  23. package/dist/image-BLlap3ce.js +242 -0
  24. package/dist/{image-BDtPwitR.js → image-IKvFWz2r.js} +43 -78
  25. package/dist/image-aT9xxnwh.js +8 -0
  26. package/dist/index.css +69 -64
  27. package/dist/index.d.ts +192 -82
  28. package/dist/index.js +291 -65
  29. package/dist/{inline-code-CBoqhfz7.js → inline-code-Bqu84Yyu.js} +2 -10
  30. package/dist/{inline-math-CAqboT7h.js → inline-math-C2Ryxm-K.js} +4 -12
  31. package/dist/{link-C8BSlPhZ.js → link-BXl7E_6o.js} +6 -14
  32. package/dist/{list-BCiFKGaz.js → list-DLcwTZns.js} +4 -11
  33. package/dist/{list-item-p-OLUR_9.js → list-item-H0eYeIdB.js} +4 -11
  34. package/dist/{math-CT1TB2pK.js → math-C-0d5PaJ.js} +4 -12
  35. package/dist/{mermaid-CYrA8rCl.js → mermaid-0x6C2MY5.js} +12 -18
  36. package/dist/modal-BDgfKnFl.js +4 -0
  37. package/dist/modal-CEqU9Ubu.js +94 -0
  38. package/dist/{node-list-CGr_EVtn.js → node-list--v2wbxOo.js} +19 -26
  39. package/dist/node-list-CHvX62Zh.js +4 -0
  40. package/dist/{paragraph-DYjqr_Sa.js → paragraph-DRPfp6DV.js} +4 -11
  41. package/dist/previewers-DsN-cTwd.js +10 -0
  42. package/dist/rotate-ccw-square-5sO65BY9.js +24 -0
  43. package/dist/segmented-DIVDGfR5.js +6 -0
  44. package/dist/{segmented-DBW9ignu.js → segmented-Drf8EBQD.js} +1 -1
  45. package/dist/{shiki-bQYWLdW3.js → shiki-CkwRD3TS.js} +6 -14
  46. package/dist/spin-DWkKEP0G.js +3 -0
  47. package/dist/{strong-CvOjLZiq.js → strong-D6V4fCRG.js} +4 -11
  48. package/dist/table-B2mghd3l.js +3 -0
  49. package/dist/{table-l_3z210v.js → table-DLUgGL5Q.js} +13 -18
  50. package/dist/{text-DuONUqRA.js → text-DoY1TIw3.js} +2 -10
  51. package/dist/{thematic-break-CcNPEI9Y.js → thematic-break-DXDZ5dcO.js} +2 -10
  52. package/dist/tooltip-Bdt9-aQx.js +68 -0
  53. package/dist/tooltip-DQ1-yPia.js +4 -0
  54. package/dist/{vanilla-CFWVwBvD.js → vanilla-BSgZTIo9.js} +1 -1
  55. package/dist/vanilla-DUbuBied.js +4 -0
  56. package/dist/{yaml-DJHrmzSe.js → yaml-3cd5rdJj.js} +3 -11
  57. package/dist/{zh-CN-CL1XGe0H.js → zh-CN-CykTNqF_.js} +9 -2
  58. package/dist/zoom-container-D2DxS8V5.js +6 -0
  59. package/dist/{zoom-container-gjQ0EMyk.js → zoom-container-f44XxzOI.js} +52 -23
  60. package/package.json +9 -10
  61. package/dist/button-D6ccVxGm.js +0 -5
  62. package/dist/code-block-B72JfFy-.js +0 -9
  63. package/dist/dropdown-oiCw8QVq.js +0 -5
  64. package/dist/error-component-8y13-fYG.js +0 -4
  65. package/dist/modal-CuQR21UD.js +0 -71
  66. package/dist/modal-DcpxxDDX.js +0 -3
  67. package/dist/node-list-lgY1wbfQ.js +0 -3
  68. package/dist/previewers-ByaS2Ksa.js +0 -10
  69. package/dist/segmented-B4IEw3wg.js +0 -6
  70. package/dist/spin-Bz4zGBEo.js +0 -3
  71. package/dist/table-CZLbUHiJ.js +0 -3
  72. package/dist/tooltip-3UDC9mw-.js +0 -71
  73. package/dist/tooltip-CAoc_U1X.js +0 -4
  74. package/dist/vanilla-De7W3PpS.js +0 -4
  75. package/dist/zoom-container-DBgGdbJS.js +0 -6
  76. /package/dist/{angular-Chs-UKBr.js → angular-CEQtRU3N.js} +0 -0
  77. /package/dist/{angular-component-Cc_FANXU.js → angular-component-QEWXDi5W.js} +0 -0
  78. /package/dist/{apache-COYnc6xR.js → apache-D1WYHuA2.js} +0 -0
  79. /package/dist/{asciidoc-BabXBDAL.js → asciidoc-BbV_Tvaj.js} +0 -0
  80. /package/dist/{assembly-CDqKhexW.js → assembly-DOdgqSeT.js} +0 -0
  81. /package/dist/{astro-C9kftzFG.js → astro-I7-Zr25r.js} +0 -0
  82. /package/dist/{bash-Ce4pNIkV.js → bash-BC7HOdMh.js} +0 -0
  83. /package/dist/{batch-CHQBRjFL.js → batch-XAv7F3kV.js} +0 -0
  84. /package/dist/{bicep-8jxWtuBF.js → bicep-B9IAZzHb.js} +0 -0
  85. /package/dist/{c-FBUef746.js → c-B3pMu4KG.js} +0 -0
  86. /package/dist/{check-C4xOk8um.js → check-BjAiKMbo.js} +0 -0
  87. /package/dist/{chevron-down-cnOJ4h1g.js → chevron-down-B4lkjpIC.js} +0 -0
  88. /package/dist/{circle-alert-CLX-h5rZ.js → circle-alert-DlAafH7h.js} +0 -0
  89. /package/dist/{clojure-BulUroSy.js → clojure-DwxK-YDX.js} +0 -0
  90. /package/dist/{cmake-CW3vz1Mo.js → cmake-DtnmI6Z6.js} +0 -0
  91. /package/dist/{cobol-CIn3oFju.js → cobol--wWeXL_f.js} +0 -0
  92. /package/dist/{code-D8LSp8rK.js → code-lfRPXNJI.js} +0 -0
  93. /package/dist/{codeowners-CJggXF_b.js → codeowners-Dtwyh-5g.js} +0 -0
  94. /package/dist/{coffeescript-CBrVvzGY.js → coffeescript-BlF7y2QG.js} +0 -0
  95. /package/dist/{copy-Cabve0xf.js → copy-BTFPPhff.js} +0 -0
  96. /package/dist/{cpp-BTKeuyd-.js → cpp-D_TbJeEH.js} +0 -0
  97. /package/dist/{crystal-DyIYvZbm.js → crystal-lJ2ZzJQu.js} +0 -0
  98. /package/dist/{csharp-NqZ1vyF9.js → csharp-D-5hlCJT.js} +0 -0
  99. /package/dist/{css-BpR5Lajb.js → css-Drykp8uH.js} +0 -0
  100. /package/dist/{csv-eCMFnKKK.js → csv-oLjD_o9N.js} +0 -0
  101. /package/dist/{cue-TY97dGOQ.js → cue-BBe_9OA4.js} +0 -0
  102. /package/dist/{d-NftUsdTd.js → d-CPNK2-3G.js} +0 -0
  103. /package/dist/{dart-DJpwZZbk.js → dart-BNaQZJdJ.js} +0 -0
  104. /package/dist/{database-aZwE71Px.js → database-DRAhifbf.js} +0 -0
  105. /package/dist/{diff-CYRzypaU.js → diff-D_vIvULL.js} +0 -0
  106. /package/dist/{docker-CxHBuukH.js → docker-BgJkkqCD.js} +0 -0
  107. /package/dist/{download-Bnn7rtYw.js → download-Bk2mYZyf.js} +0 -0
  108. /package/dist/{elixir-BKSxVc1h.js → elixir-CTx5aScS.js} +0 -0
  109. /package/dist/{elm-DScuAf3X.js → elm-nHy9iRuu.js} +0 -0
  110. /package/dist/{env-CDAKsodl.js → env-CrWzDcwP.js} +0 -0
  111. /package/dist/{erlang-D2M1ZL3m.js → erlang-CxR4-Qdt.js} +0 -0
  112. /package/dist/{eye-CdeX8PhP.js → eye-DpAj1af-.js} +0 -0
  113. /package/dist/{fortran-CORyQ0wt.js → fortran-DhUZYzo3.js} +0 -0
  114. /package/dist/{fsharp-BJz_Jgpl.js → fsharp-DyIvnsyH.js} +0 -0
  115. /package/dist/{git-DgrlTr1E.js → git-D4qjCZtd.js} +0 -0
  116. /package/dist/{gleam-t_xad9Kw.js → gleam-D-ovCBt_.js} +0 -0
  117. /package/dist/{go-Cvlh1xtL.js → go-CEH2y3pJ.js} +0 -0
  118. /package/dist/{graphql-ApIm0mDD.js → graphql-DbV-8_AJ.js} +0 -0
  119. /package/dist/{groovy-CaLnK8PV.js → groovy-B-_VVp4c.js} +0 -0
  120. /package/dist/{haml-MwijEO_6.js → haml-Cnm_v56B.js} +0 -0
  121. /package/dist/{handlebars-CKdUPI9h.js → handlebars-8EEQS0El.js} +0 -0
  122. /package/dist/{haskell-NPOXEnck.js → haskell-cLvKQFrd.js} +0 -0
  123. /package/dist/{haxe-DyKBMsDE.js → haxe-DtCGwrr1.js} +0 -0
  124. /package/dist/{html-CMgES1dE.js → html-C2NHp3i4.js} +0 -0
  125. /package/dist/{http-B9FFNmUr.js → http-DYO1Ugj7.js} +0 -0
  126. /package/dist/{image-CMZAakWu.js → image-DDiNDOKJ.js} +0 -0
  127. /package/dist/{java-iU-L9wJz.js → java-it6UCC5M.js} +0 -0
  128. /package/dist/{javascript-DtnWdTFC.js → javascript-DVxfoa-a.js} +0 -0
  129. /package/dist/{jinja-CoWszo_D.js → jinja-CUKX2CXM.js} +0 -0
  130. /package/dist/{json-C80qKCnh.js → json-O68iFOiu.js} +0 -0
  131. /package/dist/{julia-DG2BCBLx.js → julia-Dq3BwHeZ.js} +0 -0
  132. /package/dist/{kdl-7twRfIlJ.js → kdl-CFVZba8u.js} +0 -0
  133. /package/dist/{kotlin-BjrOgP7R.js → kotlin-BKhxhG0q.js} +0 -0
  134. /package/dist/{latex-DIQfUvG8.js → latex-B3hQqfJO.js} +0 -0
  135. /package/dist/{less-BJ1yEAWt.js → less-Bw2JZJkw.js} +0 -0
  136. /package/dist/{link-DeV4CQOB.js → link-DCaSecEI.js} +0 -0
  137. /package/dist/{liquid-BqKFZ1wQ.js → liquid-BsGDMxjJ.js} +0 -0
  138. /package/dist/{lisp-oekhB2ti.js → lisp-CnrazyOe.js} +0 -0
  139. /package/dist/{log-D1XEqR9q.js → log-BuRjhdbZ.js} +0 -0
  140. /package/dist/{lua-C5Q97-1D.js → lua-CA97s0xX.js} +0 -0
  141. /package/dist/{luau-BT8KwqZ2.js → luau-hq6gk9_N.js} +0 -0
  142. /package/dist/{makefile-B4a0ciG4.js → makefile-mNhrnPWo.js} +0 -0
  143. /package/dist/{markdown-DvNyKsiJ.js → markdown-El6B7b99.js} +0 -0
  144. /package/dist/{marko-BzsIf6bg.js → marko-8nTOMumd.js} +0 -0
  145. /package/dist/{matlab-cMBkmDhQ.js → matlab-DuqengFv.js} +0 -0
  146. /package/dist/{maximize-4PIqBONS.js → maximize-B1-N6kOL.js} +0 -0
  147. /package/dist/{mermaid-8JIH2gkQ.js → mermaid-Byu8TsQE.js} +0 -0
  148. /package/dist/{minimize-BJ8htyDF.js → minimize-CVVLdf2H.js} +0 -0
  149. /package/dist/{nextflow-DNmqU1xg.js → nextflow-DRCOPmGT.js} +0 -0
  150. /package/dist/{nginx-DDfYF_rj.js → nginx-DTgW--wm.js} +0 -0
  151. /package/dist/{nim-D9xEmy4k.js → nim-r-ftp-xj.js} +0 -0
  152. /package/dist/{nix-BV1Deshw.js → nix-BdWPBS1Z.js} +0 -0
  153. /package/dist/{ocaml-BkFn4LL3.js → ocaml-vXi6ujuu.js} +0 -0
  154. /package/dist/{perl-BytUHDE7.js → perl-C_g5vs30.js} +0 -0
  155. /package/dist/{php-BImJJtNM.js → php-C_b0sjdl.js} +0 -0
  156. /package/dist/{postcss-CrZ9_0sT.js → postcss-Bsz3PPjI.js} +0 -0
  157. /package/dist/{powershell-DYSGu7TM.js → powershell-D0kxdwKl.js} +0 -0
  158. /package/dist/{prisma-BhRvcOFY.js → prisma-BocqbK7a.js} +0 -0
  159. /package/dist/{prolog-DuaCKek_.js → prolog-D-zd1rzT.js} +0 -0
  160. /package/dist/{properties-BbIJwuP-.js → properties-Dds-063G.js} +0 -0
  161. /package/dist/{proto-CE0aVW11.js → proto-CzD9trm_.js} +0 -0
  162. /package/dist/{pug-B1-IC-Tc.js → pug-B1V2RxQS.js} +0 -0
  163. /package/dist/{puppet-8nYquiMG.js → puppet-BcnVd0q5.js} +0 -0
  164. /package/dist/{python-DhRyfBrD.js → python-BcZnB7mH.js} +0 -0
  165. /package/dist/{r-Cjje17IA.js → r-CxSFFuvL.js} +0 -0
  166. /package/dist/{racket-Dx0gMnpg.js → racket-DJ_82PRG.js} +0 -0
  167. /package/dist/{razor-DPht_bdD.js → razor-D7IkXHVQ.js} +0 -0
  168. /package/dist/{ruby-B8RxtCzI.js → ruby-Cidk52Rl.js} +0 -0
  169. /package/dist/{rust-Cjtli6yf.js → rust-DJvcpkbm.js} +0 -0
  170. /package/dist/{sass-Dv3DMzjs.js → sass-DTFDeixE.js} +0 -0
  171. /package/dist/{scala-B7bZGKXq.js → scala-GlHhGi5O.js} +0 -0
  172. /package/dist/{scheme-B2PsEdVN.js → scheme-rNcj5mL9.js} +0 -0
  173. /package/dist/{shader-BZzu3zGr.js → shader-Df9eByRK.js} +0 -0
  174. /package/dist/{shiki-token-renderer-D164wC7Y.js → shiki-token-renderer-BMveKuYt.js} +0 -0
  175. /package/dist/{solidity-CLieFYpL.js → solidity-CfuYjRuT.js} +0 -0
  176. /package/dist/{spin-Ds5W7qC_.js → spin-D4Oi_m7j.js} +0 -0
  177. /package/dist/{stata-C0yUiO47.js → stata-BB5c_hbh.js} +0 -0
  178. /package/dist/{svelte-rtF4yNGL.js → svelte-2ISqxu6B.js} +0 -0
  179. /package/dist/{swift-CzvYoIM0.js → swift-wpybyudn.js} +0 -0
  180. /package/dist/{table-4ec9FVB_.js → table-iNA4la0w.js} +0 -0
  181. /package/dist/{terraform-CD_BZGb-.js → terraform-CLzhaCaX.js} +0 -0
  182. /package/dist/{text-D1-vbZ7l.js → text-C0mKr3tC.js} +0 -0
  183. /package/dist/{toml-C6jUF0Xd.js → toml-DImd1uev.js} +0 -0
  184. /package/dist/{twig-C4dfP84J.js → twig-DEBVmtOq.js} +0 -0
  185. /package/dist/{typescript-Bk-pp-cK.js → typescript-Xo5tgeOd.js} +0 -0
  186. /package/dist/{typst-DPCpaVSH.js → typst-_Ui0vNYP.js} +0 -0
  187. /package/dist/{v-nRGMJ2Ki.js → v-Ch6vEAHG.js} +0 -0
  188. /package/dist/{vala-B78bKcY0.js → vala-Ds_Ad1cC.js} +0 -0
  189. /package/dist/{verilog-CRpkl76S.js → verilog-CUqRomTC.js} +0 -0
  190. /package/dist/{vim-DpKnut7b.js → vim-BFUPh6oM.js} +0 -0
  191. /package/dist/{vue-D5eadhjo.js → vue-DzgIlbJ2.js} +0 -0
  192. /package/dist/{xml-Dvx5F-hl.js → xml-CmbQxaqc.js} +0 -0
  193. /package/dist/{yaml-n1S8nAOh.js → yaml-BhwCoLnZ.js} +0 -0
  194. /package/dist/{zig-R-iFzxfW.js → zig-Bmrmp8vo.js} +0 -0
  195. /package/dist/{zoomIn-CEukuh3x.js → zoomIn-CCKcyIEv.js} +0 -0
  196. /package/dist/{zoomOut-qlzQyQli.js → zoomOut-BrSwLQZ_.js} +0 -0
@@ -0,0 +1,24 @@
1
+ import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
2
+
3
+ //#region ~icons/lucide/corner-down-left
4
+ const _hoisted_1 = {
5
+ viewBox: "0 0 24 24",
6
+ width: "1.2em",
7
+ height: "1.2em"
8
+ };
9
+ function render(_ctx, _cache) {
10
+ return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("g", {
11
+ fill: "none",
12
+ stroke: "currentColor",
13
+ "stroke-linecap": "round",
14
+ "stroke-linejoin": "round",
15
+ "stroke-width": "2"
16
+ }, [createElementVNode("path", { d: "M20 4v7a4 4 0 0 1-4 4H4" }), createElementVNode("path", { d: "m9 10l-5 5l5 5" })], -1)])]);
17
+ }
18
+ var corner_down_left_default = markRaw({
19
+ name: "lucide-corner-down-left",
20
+ render
21
+ });
22
+
23
+ //#endregion
24
+ export { corner_down_left_default as default };
@@ -1,4 +1,5 @@
1
- import { t as node_list_default } from "./node-list-CGr_EVtn.js";
1
+ import "./composables-DWipZHuF.js";
2
+ import { t as node_list_default } from "./node-list--v2wbxOo.js";
2
3
  import { createElementBlock, createVNode, defineComponent, mergeProps, openBlock } from "vue";
3
4
 
4
5
  //#region src/components/renderers/delete.vue?vue&type=script&setup=true&lang.ts
@@ -18,16 +19,8 @@ var delete_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineC
18
19
  type: Object,
19
20
  required: true
20
21
  },
21
- mediumZoom: {
22
- type: Object,
23
- required: true
24
- },
25
- indexKey: {
26
- type: [Number, String],
27
- required: true
28
- },
29
- getContainer: {
30
- type: Function,
22
+ nodeKey: {
23
+ type: String,
31
24
  required: true
32
25
  },
33
26
  controls: {
@@ -0,0 +1,119 @@
1
+ //#region node_modules/.pnpm/treechop@0.1.2/node_modules/treechop/dist/index.js
2
+ const DEFAULT_CHILDREN_KEY = "children";
3
+ function createTreeUtils(options = {}) {
4
+ const { childrenKey = DEFAULT_CHILDREN_KEY } = options;
5
+ return {
6
+ childrenKey,
7
+ getChildrenKey(node, meta) {
8
+ return typeof this.childrenKey === "function" ? this.childrenKey(node, meta) : this.childrenKey;
9
+ },
10
+ getChildren(node, meta) {
11
+ return node[this.getChildrenKey(node, meta)] || [];
12
+ },
13
+ hasChildren(node, meta) {
14
+ const children = this.getChildren(node, meta);
15
+ return Array.isArray(children) && children.length > 0;
16
+ }
17
+ };
18
+ }
19
+ function preOrderTraverse(tree, callback, utils) {
20
+ const result = [];
21
+ const traverse = (nodes, parents = [], depth = 0) => {
22
+ nodes.forEach((node, index) => {
23
+ const meta = {
24
+ depth,
25
+ index,
26
+ parents
27
+ };
28
+ result.push(callback(node, meta));
29
+ if (utils.hasChildren(node, meta)) traverse(utils.getChildren(node, meta), [...parents, node], depth + 1);
30
+ });
31
+ };
32
+ traverse(tree);
33
+ return result;
34
+ }
35
+ function postOrderTraverse(tree, callback, utils) {
36
+ const result = [];
37
+ const traverse = (nodes, parents = [], depth = 0) => {
38
+ nodes.forEach((node, index) => {
39
+ const meta = {
40
+ depth,
41
+ index,
42
+ parents
43
+ };
44
+ if (utils.hasChildren(node, meta)) traverse(utils.getChildren(node, meta), [...parents, node], depth + 1);
45
+ result.push(callback(node, meta));
46
+ });
47
+ };
48
+ traverse(tree);
49
+ return result;
50
+ }
51
+ function breadthTraverse(tree, callback, utils) {
52
+ const result = [];
53
+ const queue = tree.map((node, index) => [
54
+ node,
55
+ index,
56
+ [],
57
+ 0
58
+ ]);
59
+ while (queue.length) {
60
+ const [node, index, parents, depth] = queue.shift();
61
+ const meta = {
62
+ depth,
63
+ index,
64
+ parents
65
+ };
66
+ result.push(callback(node, meta));
67
+ if (utils.hasChildren(node, meta)) utils.getChildren(node, meta).forEach((child, childIndex) => {
68
+ queue.push([
69
+ child,
70
+ childIndex,
71
+ [...parents, node],
72
+ depth + 1
73
+ ]);
74
+ });
75
+ }
76
+ return result;
77
+ }
78
+ function treeFlatFilter(tree, predicate, options = {}) {
79
+ const { strategy = "pre" } = options;
80
+ const utils = createTreeUtils(options);
81
+ const callback = (node, meta) => {
82
+ return predicate(node, meta) ? node : null;
83
+ };
84
+ switch (strategy) {
85
+ case "post": return postOrderTraverse(tree, callback, utils).filter(Boolean);
86
+ case "breadth": return breadthTraverse(tree, callback, utils).filter(Boolean);
87
+ case "pre":
88
+ default: return preOrderTraverse(tree, callback, utils).filter(Boolean);
89
+ }
90
+ }
91
+ function treeFilter(tree, predicate, options = {}) {
92
+ const utils = createTreeUtils(options);
93
+ const traverse = (nodes, parents = [], depth = 0) => {
94
+ const result = [];
95
+ for (let i = 0; i < nodes.length; i++) {
96
+ const node = nodes[i];
97
+ const meta = {
98
+ depth,
99
+ index: i,
100
+ parents
101
+ };
102
+ if (predicate(node, meta)) {
103
+ const newNode = { ...node };
104
+ if (utils.hasChildren(node, meta)) {
105
+ const children = traverse(utils.getChildren(node, meta), [...parents, node], depth + 1);
106
+ const childrenKey = utils.getChildrenKey(node, meta);
107
+ if (children.length > 0) newNode[childrenKey] = children;
108
+ else delete newNode[childrenKey];
109
+ }
110
+ result.push(newNode);
111
+ }
112
+ }
113
+ return result;
114
+ };
115
+ return traverse(tree);
116
+ }
117
+
118
+ //#endregion
119
+ export { treeFlatFilter as n, treeFilter as t };
@@ -0,0 +1,5 @@
1
+ import "./composables-DWipZHuF.js";
2
+ import "./tooltip-Bdt9-aQx.js";
3
+ import { n as dropdown_default } from "./button-B2ebQt7R.js";
4
+
5
+ export { dropdown_default as default };
@@ -1,4 +1,5 @@
1
- import { t as node_list_default } from "./node-list-CGr_EVtn.js";
1
+ import "./composables-DWipZHuF.js";
2
+ import { t as node_list_default } from "./node-list--v2wbxOo.js";
2
3
  import { createElementBlock, createVNode, defineComponent, mergeProps, openBlock } from "vue";
3
4
 
4
5
  //#region src/components/renderers/emphasis.vue?vue&type=script&setup=true&lang.ts
@@ -18,16 +19,8 @@ var emphasis_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defin
18
19
  type: Object,
19
20
  required: true
20
21
  },
21
- mediumZoom: {
22
- type: Object,
23
- required: true
24
- },
25
- indexKey: {
26
- type: [Number, String],
27
- required: true
28
- },
29
- getContainer: {
30
- type: Function,
22
+ nodeKey: {
23
+ type: String,
31
24
  required: true
32
25
  },
33
26
  controls: {
@@ -9,7 +9,14 @@ var button = {
9
9
  "copy": "Copy",
10
10
  "download": "Download",
11
11
  "minimize": "Minimize",
12
- "maximize": "Maximize"
12
+ "maximize": "Maximize",
13
+ "flipY": "Flip Y",
14
+ "flipX": "Flip X",
15
+ "rotateLeft": "Rotate Left",
16
+ "rotateRight": "Rotate Right",
17
+ "previous": "Previous",
18
+ "next": "Next",
19
+ "back": "Back"
13
20
  };
14
21
  var error = {
15
22
  "vanilla": "Error",
@@ -1,4 +1,4 @@
1
- import { B as useContext, u as useI18n } from "./composables-Cx0nvyHl.js";
1
+ import { H as useContext, P as useI18n } from "./composables-DWipZHuF.js";
2
2
  import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, openBlock, renderSlot, resolveDynamicComponent, toDisplayString } from "vue";
3
3
 
4
4
  //#region src/components/error-component.vue?vue&type=script&setup=true&lang.ts
@@ -0,0 +1,4 @@
1
+ import "./composables-DWipZHuF.js";
2
+ import { t as error_component_default } from "./error-component-DSOVrE5J.js";
3
+
4
+ export { error_component_default as default };
@@ -0,0 +1,25 @@
1
+ import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
2
+
3
+ //#region ~icons/lucide/flip-horizontal
4
+ const _hoisted_1 = {
5
+ viewBox: "0 0 24 24",
6
+ width: "1.2em",
7
+ height: "1.2em"
8
+ };
9
+ function render(_ctx, _cache) {
10
+ return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", {
11
+ fill: "none",
12
+ stroke: "currentColor",
13
+ "stroke-linecap": "round",
14
+ "stroke-linejoin": "round",
15
+ "stroke-width": "2",
16
+ d: "M8 3H5a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h3m8-18h3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-3m-4-1v2m0-8v2m0-8v2m0-8v2"
17
+ }, null, -1)])]);
18
+ }
19
+ var flip_horizontal_default = markRaw({
20
+ name: "lucide-flip-horizontal",
21
+ render
22
+ });
23
+
24
+ //#endregion
25
+ export { flip_horizontal_default as default };
@@ -0,0 +1,103 @@
1
+ import { H as useContext, P as useI18n } from "./composables-DWipZHuF.js";
2
+ import { t as node_list_default } from "./node-list--v2wbxOo.js";
3
+ import "./tooltip-Bdt9-aQx.js";
4
+ import { t as button_default } from "./button-B2ebQt7R.js";
5
+ import { computed, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, openBlock, toDisplayString, unref } from "vue";
6
+
7
+ //#region src/components/renderers/footnote-definition.vue?vue&type=script&setup=true&lang.ts
8
+ const _hoisted_1 = ["id"];
9
+ const _hoisted_2 = { "data-stream-markdown": "footnote-definition-label" };
10
+ var footnote_definition_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
11
+ __name: "footnote-definition",
12
+ props: {
13
+ node: {
14
+ type: Object,
15
+ required: true
16
+ },
17
+ markdownParser: {
18
+ type: Object,
19
+ required: true
20
+ },
21
+ nodeRenderers: {
22
+ type: Object,
23
+ required: true
24
+ },
25
+ nodeKey: {
26
+ type: String,
27
+ required: true
28
+ },
29
+ controls: {
30
+ type: [Boolean, Object],
31
+ required: false
32
+ },
33
+ previewers: {
34
+ type: [Boolean, Object],
35
+ required: false
36
+ },
37
+ shikiOptions: {
38
+ type: Object,
39
+ required: false
40
+ },
41
+ mermaidOptions: {
42
+ type: Object,
43
+ required: false
44
+ },
45
+ katexOptions: {
46
+ type: Object,
47
+ required: false
48
+ },
49
+ hardenOptions: {
50
+ type: Object,
51
+ required: false
52
+ },
53
+ codeOptions: {
54
+ type: Object,
55
+ required: false
56
+ },
57
+ imageOptions: {
58
+ type: Object,
59
+ required: false
60
+ },
61
+ isDark: {
62
+ type: Boolean,
63
+ required: false
64
+ }
65
+ },
66
+ setup(__props) {
67
+ const props = __props;
68
+ const { t } = useI18n();
69
+ const { icons, getContainer } = useContext();
70
+ const id = computed(() => props.node.identifier);
71
+ const label = computed(() => props.node.label ?? id.value);
72
+ const title = computed(() => `${label.value}.`);
73
+ function scrollToReference() {
74
+ const footnoteElement = (getContainer() || document.body).querySelector(`#footnote-reference-${id.value}`);
75
+ if (!footnoteElement) return;
76
+ footnoteElement.scrollIntoView({ behavior: "smooth" });
77
+ }
78
+ return (_ctx, _cache) => {
79
+ return openBlock(), createElementBlock("a", {
80
+ id: `footnote-definition-${id.value}`,
81
+ "data-stream-markdown": "footnote-definition"
82
+ }, [
83
+ createElementVNode("span", _hoisted_2, toDisplayString(title.value), 1),
84
+ createVNode(node_list_default, mergeProps(props, { nodes: __props.node.children }), null, 16, ["nodes"]),
85
+ createVNode(button_default, {
86
+ "data-stream-markdown": "footnote-definition-button",
87
+ name: unref(t)("button.back"),
88
+ icon: unref(icons).cornerDownLeft,
89
+ "icon-style": { color: "var(--primary)" },
90
+ "button-style": { padding: "0.25rem" },
91
+ onClick: scrollToReference
92
+ }, null, 8, ["name", "icon"])
93
+ ], 8, _hoisted_1);
94
+ };
95
+ }
96
+ });
97
+
98
+ //#endregion
99
+ //#region src/components/renderers/footnote-definition.vue
100
+ var footnote_definition_default = footnote_definition_vue_vue_type_script_setup_true_lang_default;
101
+
102
+ //#endregion
103
+ export { footnote_definition_default as default };
@@ -0,0 +1,86 @@
1
+ import { H as useContext } from "./composables-DWipZHuF.js";
2
+ import { computed, createElementBlock, createElementVNode, defineComponent, openBlock, toDisplayString } from "vue";
3
+
4
+ //#region src/components/renderers/footnote-reference.vue?vue&type=script&setup=true&lang.ts
5
+ const _hoisted_1 = ["id"];
6
+ var footnote_reference_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
7
+ __name: "footnote-reference",
8
+ props: {
9
+ node: {
10
+ type: Object,
11
+ required: true
12
+ },
13
+ markdownParser: {
14
+ type: Object,
15
+ required: true
16
+ },
17
+ nodeRenderers: {
18
+ type: Object,
19
+ required: true
20
+ },
21
+ nodeKey: {
22
+ type: String,
23
+ required: true
24
+ },
25
+ controls: {
26
+ type: [Boolean, Object],
27
+ required: false
28
+ },
29
+ previewers: {
30
+ type: [Boolean, Object],
31
+ required: false
32
+ },
33
+ shikiOptions: {
34
+ type: Object,
35
+ required: false
36
+ },
37
+ mermaidOptions: {
38
+ type: Object,
39
+ required: false
40
+ },
41
+ katexOptions: {
42
+ type: Object,
43
+ required: false
44
+ },
45
+ hardenOptions: {
46
+ type: Object,
47
+ required: false
48
+ },
49
+ codeOptions: {
50
+ type: Object,
51
+ required: false
52
+ },
53
+ imageOptions: {
54
+ type: Object,
55
+ required: false
56
+ },
57
+ isDark: {
58
+ type: Boolean,
59
+ required: false
60
+ }
61
+ },
62
+ setup(__props) {
63
+ const props = __props;
64
+ const { getContainer } = useContext();
65
+ const id = computed(() => props.node.identifier);
66
+ const label = computed(() => props.node.label ?? id.value);
67
+ function scrollToFootnote() {
68
+ const footnoteElement = (getContainer() || document.body).querySelector(`#footnote-definition-${id.value}`);
69
+ if (!footnoteElement) return;
70
+ footnoteElement.scrollIntoView({ behavior: "smooth" });
71
+ }
72
+ return (_ctx, _cache) => {
73
+ return openBlock(), createElementBlock("sup", {
74
+ "data-stream-markdown": "footnote-reference",
75
+ onClick: scrollToFootnote
76
+ }, [createElementVNode("a", { id: `footnote-reference-${id.value}` }, "[" + toDisplayString(label.value) + "]", 9, _hoisted_1)]);
77
+ };
78
+ }
79
+ });
80
+
81
+ //#endregion
82
+ //#region src/components/renderers/footnote-reference.vue
83
+ var footnote_reference_default = footnote_reference_vue_vue_type_script_setup_true_lang_default;
84
+
85
+ //#endregion
86
+ export { footnote_reference_default as default };
@@ -1,4 +1,5 @@
1
- import { t as node_list_default } from "./node-list-CGr_EVtn.js";
1
+ import "./composables-DWipZHuF.js";
2
+ import { t as node_list_default } from "./node-list--v2wbxOo.js";
2
3
  import { computed, createBlock, createVNode, defineComponent, mergeProps, openBlock, resolveDynamicComponent, withCtx } from "vue";
3
4
 
4
5
  //#region src/components/renderers/heading.vue?vue&type=script&setup=true&lang.ts
@@ -17,16 +18,8 @@ var heading_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
17
18
  type: Object,
18
19
  required: true
19
20
  },
20
- mediumZoom: {
21
- type: Object,
22
- required: true
23
- },
24
- indexKey: {
25
- type: [Number, String],
26
- required: true
27
- },
28
- getContainer: {
29
- type: Function,
21
+ nodeKey: {
22
+ type: String,
30
23
  required: true
31
24
  },
32
25
  controls: {
@@ -17,16 +17,8 @@ var html_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCom
17
17
  type: Object,
18
18
  required: true
19
19
  },
20
- mediumZoom: {
21
- type: Object,
22
- required: true
23
- },
24
- indexKey: {
25
- type: [Number, String],
26
- required: true
27
- },
28
- getContainer: {
29
- type: Function,
20
+ nodeKey: {
21
+ type: String,
30
22
  required: true
31
23
  },
32
24
  controls: {