vue-stream-markdown 0.1.5 → 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 (194) hide show
  1. package/dist/{blockquote-bkADuiGm.js → blockquote-CxA1dQZe.js} +4 -3
  2. package/dist/{button-BQhuT7wh.js → button-B2ebQt7R.js} +1 -1
  3. package/dist/button-C6zIegam.js +5 -0
  4. package/dist/{code-DF8PTNol.js → code-CPG6B2Cw.js} +11 -11
  5. package/dist/code-block--1wFjtmu.js +9 -0
  6. package/dist/{code-block-Dm2wl0cb.js → code-block-I_Yd1Flg.js} +8 -8
  7. package/dist/{composables-yny5gJo3.js → composables-DWipZHuF.js} +636 -625
  8. package/dist/corner-down-left-jxlwq3ox.js +24 -0
  9. package/dist/{delete-D17YBeI-.js → delete-DQ21z5-F.js} +4 -3
  10. package/dist/dist-CYkm26BF.js +119 -0
  11. package/dist/dropdown-CtWjJiAf.js +5 -0
  12. package/dist/{emphasis-B-2R_0Q5.js → emphasis-BjLkIDQB.js} +4 -3
  13. package/dist/{en-US-Kw2LYAMk.js → en-US-K7SXR3gy.js} +2 -1
  14. package/dist/{error-component-Bb0gIZsx.js → error-component-DSOVrE5J.js} +1 -1
  15. package/dist/error-component-DtcRn_0A.js +4 -0
  16. package/dist/footnote-definition-BmS8hchP.js +103 -0
  17. package/dist/footnote-reference-Z2tITeCE.js +86 -0
  18. package/dist/{heading-DyJIwNrN.js → heading-BwBFJB_E.js} +4 -3
  19. package/dist/{html-DXNqMvt_.js → html-DFU0myJP.js} +2 -2
  20. package/dist/{image-DvOGBhi-.js → image-BLlap3ce.js} +12 -97
  21. package/dist/{image-BPhFn1xp.js → image-IKvFWz2r.js} +14 -12
  22. package/dist/image-aT9xxnwh.js +8 -0
  23. package/dist/index.css +25 -0
  24. package/dist/index.d.ts +138 -73
  25. package/dist/index.js +283 -38
  26. package/dist/{inline-code-C44UJ2TH.js → inline-code-Bqu84Yyu.js} +2 -2
  27. package/dist/{inline-math-wO1rMt9T.js → inline-math-C2Ryxm-K.js} +4 -4
  28. package/dist/{link-sGo7CEll.js → link-BXl7E_6o.js} +6 -6
  29. package/dist/{list-C0I1ysSI.js → list-DLcwTZns.js} +4 -3
  30. package/dist/{list-item-BoC2wKBL.js → list-item-H0eYeIdB.js} +4 -3
  31. package/dist/{math-BlqtUf2r.js → math-C-0d5PaJ.js} +4 -4
  32. package/dist/{mermaid-Ka1jnXrR.js → mermaid-0x6C2MY5.js} +12 -10
  33. package/dist/modal-BDgfKnFl.js +4 -0
  34. package/dist/{modal-Rc_RoeYA.js → modal-CEqU9Ubu.js} +3 -3
  35. package/dist/{node-list-YhpHXdM_.js → node-list--v2wbxOo.js} +19 -10
  36. package/dist/node-list-CHvX62Zh.js +4 -0
  37. package/dist/{paragraph-BN-4-Dn7.js → paragraph-DRPfp6DV.js} +4 -3
  38. package/dist/previewers-DsN-cTwd.js +10 -0
  39. package/dist/segmented-DIVDGfR5.js +6 -0
  40. package/dist/{segmented-CaC54iz_.js → segmented-Drf8EBQD.js} +1 -1
  41. package/dist/{shiki-sJNZTn1K.js → shiki-CkwRD3TS.js} +5 -5
  42. package/dist/spin-DWkKEP0G.js +3 -0
  43. package/dist/{strong-NdAS3VjP.js → strong-D6V4fCRG.js} +4 -3
  44. package/dist/table-B2mghd3l.js +3 -0
  45. package/dist/{table-CWX5B2i1.js → table-DLUgGL5Q.js} +8 -8
  46. package/dist/{text-DpleLvNh.js → text-DoY1TIw3.js} +2 -2
  47. package/dist/{thematic-break-D5GvzU5S.js → thematic-break-DXDZ5dcO.js} +2 -2
  48. package/dist/{tooltip-Bgbzbk4Q.js → tooltip-Bdt9-aQx.js} +1 -1
  49. package/dist/tooltip-DQ1-yPia.js +4 -0
  50. package/dist/{vanilla-BTOVqKl7.js → vanilla-BSgZTIo9.js} +1 -1
  51. package/dist/vanilla-DUbuBied.js +4 -0
  52. package/dist/{yaml-y0snrPRx.js → yaml-3cd5rdJj.js} +3 -3
  53. package/dist/{zh-CN-Dfow4Yn2.js → zh-CN-CykTNqF_.js} +3 -2
  54. package/dist/zoom-container-D2DxS8V5.js +6 -0
  55. package/dist/{zoom-container-B1qbA-7z.js → zoom-container-f44XxzOI.js} +2 -2
  56. package/package.json +1 -1
  57. package/dist/button-JYC8d-B-.js +0 -5
  58. package/dist/code-block-BhMDz2ZL.js +0 -9
  59. package/dist/dropdown-Y5_Z4a_u.js +0 -5
  60. package/dist/error-component-DEIWb6kB.js +0 -4
  61. package/dist/image-DXBD47sF.js +0 -8
  62. package/dist/modal-Duhc-vVa.js +0 -4
  63. package/dist/node-list-C1je2nLd.js +0 -3
  64. package/dist/previewers-D0VVcdjL.js +0 -10
  65. package/dist/segmented-XdoLnuuq.js +0 -6
  66. package/dist/spin-wM2KE8mO.js +0 -3
  67. package/dist/table-R9gmCXm_.js +0 -3
  68. package/dist/tooltip-BJDs-A8d.js +0 -4
  69. package/dist/vanilla-DA5bwIkr.js +0 -4
  70. package/dist/zoom-container-KztuE4ri.js +0 -6
  71. /package/dist/{angular-Mip1mspI.js → angular-CEQtRU3N.js} +0 -0
  72. /package/dist/{angular-component-Cq5UbX7R.js → angular-component-QEWXDi5W.js} +0 -0
  73. /package/dist/{apache-BSq7fX32.js → apache-D1WYHuA2.js} +0 -0
  74. /package/dist/{arrow-left-C5s0Sn8o.js → arrow-left-DiHYz8df.js} +0 -0
  75. /package/dist/{asciidoc-DS-PMOLv.js → asciidoc-BbV_Tvaj.js} +0 -0
  76. /package/dist/{assembly-BPatlOM7.js → assembly-DOdgqSeT.js} +0 -0
  77. /package/dist/{astro-CSD_ZjXp.js → astro-I7-Zr25r.js} +0 -0
  78. /package/dist/{bash-RITislE1.js → bash-BC7HOdMh.js} +0 -0
  79. /package/dist/{batch-DWPShYhN.js → batch-XAv7F3kV.js} +0 -0
  80. /package/dist/{bicep-C6BEHfP6.js → bicep-B9IAZzHb.js} +0 -0
  81. /package/dist/{c-DNo3tsNy.js → c-B3pMu4KG.js} +0 -0
  82. /package/dist/{check-BfpxIITS.js → check-BjAiKMbo.js} +0 -0
  83. /package/dist/{chevron-down-LeNeemjn.js → chevron-down-B4lkjpIC.js} +0 -0
  84. /package/dist/{circle-alert-BjDuIzgc.js → circle-alert-DlAafH7h.js} +0 -0
  85. /package/dist/{clojure-C1DEYHW0.js → clojure-DwxK-YDX.js} +0 -0
  86. /package/dist/{cmake-B69mdXcH.js → cmake-DtnmI6Z6.js} +0 -0
  87. /package/dist/{cobol-qmL-zIWi.js → cobol--wWeXL_f.js} +0 -0
  88. /package/dist/{code-D9CiymEK.js → code-lfRPXNJI.js} +0 -0
  89. /package/dist/{codeowners-Crklt5nF.js → codeowners-Dtwyh-5g.js} +0 -0
  90. /package/dist/{coffeescript-k3huSp23.js → coffeescript-BlF7y2QG.js} +0 -0
  91. /package/dist/{copy-C4580J93.js → copy-BTFPPhff.js} +0 -0
  92. /package/dist/{cpp-Cn3MB35e.js → cpp-D_TbJeEH.js} +0 -0
  93. /package/dist/{crystal-D5aGETSx.js → crystal-lJ2ZzJQu.js} +0 -0
  94. /package/dist/{csharp-CgkTkbPx.js → csharp-D-5hlCJT.js} +0 -0
  95. /package/dist/{css-DRH4n_IV.js → css-Drykp8uH.js} +0 -0
  96. /package/dist/{csv-D5nNTIzO.js → csv-oLjD_o9N.js} +0 -0
  97. /package/dist/{cue-B5mC88-N.js → cue-BBe_9OA4.js} +0 -0
  98. /package/dist/{d-BdQRMgma.js → d-CPNK2-3G.js} +0 -0
  99. /package/dist/{dart-BGnfn0NN.js → dart-BNaQZJdJ.js} +0 -0
  100. /package/dist/{database-Ca1VGX7u.js → database-DRAhifbf.js} +0 -0
  101. /package/dist/{diff-DVaTsnqu.js → diff-D_vIvULL.js} +0 -0
  102. /package/dist/{docker-E47qYlmL.js → docker-BgJkkqCD.js} +0 -0
  103. /package/dist/{download-DytrK56a.js → download-Bk2mYZyf.js} +0 -0
  104. /package/dist/{elixir-C-jqqu6q.js → elixir-CTx5aScS.js} +0 -0
  105. /package/dist/{elm-CmeHvaWl.js → elm-nHy9iRuu.js} +0 -0
  106. /package/dist/{env-Ck1BHoxR.js → env-CrWzDcwP.js} +0 -0
  107. /package/dist/{erlang-CIP8kpGJ.js → erlang-CxR4-Qdt.js} +0 -0
  108. /package/dist/{eye-TaEwQS2Z.js → eye-DpAj1af-.js} +0 -0
  109. /package/dist/{flip-horizontal-BFWjqDbQ.js → flip-horizontal-CEf7aAdM.js} +0 -0
  110. /package/dist/{fortran-DJVP2s7V.js → fortran-DhUZYzo3.js} +0 -0
  111. /package/dist/{fsharp-Bp6mUcG0.js → fsharp-DyIvnsyH.js} +0 -0
  112. /package/dist/{git-BDcqJ1Gp.js → git-D4qjCZtd.js} +0 -0
  113. /package/dist/{gleam-JLiZVlev.js → gleam-D-ovCBt_.js} +0 -0
  114. /package/dist/{go-ClcCiS7e.js → go-CEH2y3pJ.js} +0 -0
  115. /package/dist/{graphql-D2RDo-DF.js → graphql-DbV-8_AJ.js} +0 -0
  116. /package/dist/{groovy-DLZBw8xE.js → groovy-B-_VVp4c.js} +0 -0
  117. /package/dist/{haml-Da74jRwZ.js → haml-Cnm_v56B.js} +0 -0
  118. /package/dist/{handlebars-CNgS57Sz.js → handlebars-8EEQS0El.js} +0 -0
  119. /package/dist/{haskell-DCvfD6VB.js → haskell-cLvKQFrd.js} +0 -0
  120. /package/dist/{haxe-CHVK1TId.js → haxe-DtCGwrr1.js} +0 -0
  121. /package/dist/{html-Du4235Z-.js → html-C2NHp3i4.js} +0 -0
  122. /package/dist/{http-B8VAFeQ5.js → http-DYO1Ugj7.js} +0 -0
  123. /package/dist/{image-D8MZj4W5.js → image-DDiNDOKJ.js} +0 -0
  124. /package/dist/{java-CoSdnK1N.js → java-it6UCC5M.js} +0 -0
  125. /package/dist/{javascript-BCDeVll0.js → javascript-DVxfoa-a.js} +0 -0
  126. /package/dist/{jinja-DYbiqZy0.js → jinja-CUKX2CXM.js} +0 -0
  127. /package/dist/{json-CdzCyWJA.js → json-O68iFOiu.js} +0 -0
  128. /package/dist/{julia-pswJGtpP.js → julia-Dq3BwHeZ.js} +0 -0
  129. /package/dist/{kdl-M8rfQ85l.js → kdl-CFVZba8u.js} +0 -0
  130. /package/dist/{kotlin-CfCV33oB.js → kotlin-BKhxhG0q.js} +0 -0
  131. /package/dist/{latex-DK8DFhTm.js → latex-B3hQqfJO.js} +0 -0
  132. /package/dist/{less-BFnNZiIs.js → less-Bw2JZJkw.js} +0 -0
  133. /package/dist/{link-C7eU_yi-.js → link-DCaSecEI.js} +0 -0
  134. /package/dist/{liquid-C8h46DoX.js → liquid-BsGDMxjJ.js} +0 -0
  135. /package/dist/{lisp-C3FbGuD1.js → lisp-CnrazyOe.js} +0 -0
  136. /package/dist/{log-D-O3FXf2.js → log-BuRjhdbZ.js} +0 -0
  137. /package/dist/{lua-BC_aR1_i.js → lua-CA97s0xX.js} +0 -0
  138. /package/dist/{luau-DFUOrNN7.js → luau-hq6gk9_N.js} +0 -0
  139. /package/dist/{makefile-Ck67veVV.js → makefile-mNhrnPWo.js} +0 -0
  140. /package/dist/{markdown-BX13X3kd.js → markdown-El6B7b99.js} +0 -0
  141. /package/dist/{marko-CQE8YTCc.js → marko-8nTOMumd.js} +0 -0
  142. /package/dist/{matlab-Bd9O2Ml3.js → matlab-DuqengFv.js} +0 -0
  143. /package/dist/{maximize-CDZ9rnYF.js → maximize-B1-N6kOL.js} +0 -0
  144. /package/dist/{mermaid-Dv-Pr0W-.js → mermaid-Byu8TsQE.js} +0 -0
  145. /package/dist/{minimize-B9ER7p2X.js → minimize-CVVLdf2H.js} +0 -0
  146. /package/dist/{nextflow-D3lDq1Yi.js → nextflow-DRCOPmGT.js} +0 -0
  147. /package/dist/{nginx-CgsqCL4l.js → nginx-DTgW--wm.js} +0 -0
  148. /package/dist/{nim-BJdSu3c6.js → nim-r-ftp-xj.js} +0 -0
  149. /package/dist/{nix-B7K_D6CN.js → nix-BdWPBS1Z.js} +0 -0
  150. /package/dist/{ocaml-gYS1Y45s.js → ocaml-vXi6ujuu.js} +0 -0
  151. /package/dist/{perl-DXFhFWhI.js → perl-C_g5vs30.js} +0 -0
  152. /package/dist/{php-We35bF4E.js → php-C_b0sjdl.js} +0 -0
  153. /package/dist/{postcss-BWovY_YV.js → postcss-Bsz3PPjI.js} +0 -0
  154. /package/dist/{powershell-C6teiBsq.js → powershell-D0kxdwKl.js} +0 -0
  155. /package/dist/{prisma-UyJEg0_X.js → prisma-BocqbK7a.js} +0 -0
  156. /package/dist/{prolog-YZsPgdnw.js → prolog-D-zd1rzT.js} +0 -0
  157. /package/dist/{properties-DaPbL0e2.js → properties-Dds-063G.js} +0 -0
  158. /package/dist/{proto-1LIwu2O1.js → proto-CzD9trm_.js} +0 -0
  159. /package/dist/{pug-CzkUK-Ec.js → pug-B1V2RxQS.js} +0 -0
  160. /package/dist/{puppet-CNhB1MHb.js → puppet-BcnVd0q5.js} +0 -0
  161. /package/dist/{python-B_hgEobv.js → python-BcZnB7mH.js} +0 -0
  162. /package/dist/{r-CVeKYmPK.js → r-CxSFFuvL.js} +0 -0
  163. /package/dist/{racket-D5UfvXuw.js → racket-DJ_82PRG.js} +0 -0
  164. /package/dist/{razor-RIKaANTN.js → razor-D7IkXHVQ.js} +0 -0
  165. /package/dist/{rotate-ccw-square-C2KVFUF3.js → rotate-ccw-square-5sO65BY9.js} +0 -0
  166. /package/dist/{ruby-C8wV0pMO.js → ruby-Cidk52Rl.js} +0 -0
  167. /package/dist/{rust-75Gei1mP.js → rust-DJvcpkbm.js} +0 -0
  168. /package/dist/{sass-Cq68xmQ4.js → sass-DTFDeixE.js} +0 -0
  169. /package/dist/{scala-C_E5rjSc.js → scala-GlHhGi5O.js} +0 -0
  170. /package/dist/{scheme-Bm-q-nLL.js → scheme-rNcj5mL9.js} +0 -0
  171. /package/dist/{shader-DPaRkMCs.js → shader-Df9eByRK.js} +0 -0
  172. /package/dist/{shiki-token-renderer-CLmUjKa3.js → shiki-token-renderer-BMveKuYt.js} +0 -0
  173. /package/dist/{solidity-DvHG_0CD.js → solidity-CfuYjRuT.js} +0 -0
  174. /package/dist/{spin--f5jNjBn.js → spin-D4Oi_m7j.js} +0 -0
  175. /package/dist/{stata-DoVloJLm.js → stata-BB5c_hbh.js} +0 -0
  176. /package/dist/{svelte-tlbA11de.js → svelte-2ISqxu6B.js} +0 -0
  177. /package/dist/{swift-BZn5eRnK.js → swift-wpybyudn.js} +0 -0
  178. /package/dist/{table-CaUMjs4M.js → table-iNA4la0w.js} +0 -0
  179. /package/dist/{terraform-c5-k7yB1.js → terraform-CLzhaCaX.js} +0 -0
  180. /package/dist/{text-DPCGWvDK.js → text-C0mKr3tC.js} +0 -0
  181. /package/dist/{toml-DdLGBe1A.js → toml-DImd1uev.js} +0 -0
  182. /package/dist/{twig-D_jzZxh6.js → twig-DEBVmtOq.js} +0 -0
  183. /package/dist/{typescript-B95hq2ns.js → typescript-Xo5tgeOd.js} +0 -0
  184. /package/dist/{typst-CSAEQ4yK.js → typst-_Ui0vNYP.js} +0 -0
  185. /package/dist/{v-BAhebuOB.js → v-Ch6vEAHG.js} +0 -0
  186. /package/dist/{vala-RAu83-lp.js → vala-Ds_Ad1cC.js} +0 -0
  187. /package/dist/{verilog-BgmTn52U.js → verilog-CUqRomTC.js} +0 -0
  188. /package/dist/{vim-c8oTCLkH.js → vim-BFUPh6oM.js} +0 -0
  189. /package/dist/{vue-TGT6HTBA.js → vue-DzgIlbJ2.js} +0 -0
  190. /package/dist/{xml-C1HDr874.js → xml-CmbQxaqc.js} +0 -0
  191. /package/dist/{yaml-BO7FjFQZ.js → yaml-BhwCoLnZ.js} +0 -0
  192. /package/dist/{zig-qANBp1SU.js → zig-Bmrmp8vo.js} +0 -0
  193. /package/dist/{zoomIn-iVMAUxIz.js → zoomIn-CCKcyIEv.js} +0 -0
  194. /package/dist/{zoomOut-Cxq1_dIQ.js → zoomOut-BrSwLQZ_.js} +0 -0
@@ -1,3 +1,4 @@
1
+ import { H as useContext } from "./composables-DWipZHuF.js";
1
2
  import { Fragment, Transition, computed, createBlock, createCommentVNode, createElementBlock, defineComponent, mergeProps, openBlock, renderList, resolveDynamicComponent, withCtx } from "vue";
2
3
 
3
4
  //#region src/components/markdown.vue?vue&type=script&setup=true&lang.ts
@@ -17,8 +18,8 @@ var markdown_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defin
17
18
  type: Object,
18
19
  required: true
19
20
  },
20
- indexKey: {
21
- type: [Number, String],
21
+ nodeKey: {
22
+ type: String,
22
23
  required: true
23
24
  },
24
25
  controls: {
@@ -85,8 +86,8 @@ var node_list_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defi
85
86
  required: false,
86
87
  default: () => []
87
88
  },
88
- indexKey: {
89
- type: [Number, String],
89
+ nodeKey: {
90
+ type: String,
90
91
  required: false
91
92
  },
92
93
  markdownParser: {
@@ -136,11 +137,17 @@ var node_list_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defi
136
137
  },
137
138
  setup(__props) {
138
139
  const props = __props;
140
+ const { mode, enableAnimate } = useContext();
141
+ const enableTransition = computed(() => {
142
+ if (typeof enableAnimate.value === "boolean") return enableAnimate.value;
143
+ return mode.value === "streaming";
144
+ });
139
145
  const nodes = computed(() => {
140
146
  var _props$nodes;
141
147
  return (_props$nodes = props.nodes) === null || _props$nodes === void 0 ? void 0 : _props$nodes.map((node, index) => ({
142
148
  node,
143
- index
149
+ index,
150
+ key: getNodeKey(node, index)
144
151
  }));
145
152
  });
146
153
  const excludeTransition = ["code"];
@@ -154,22 +161,24 @@ var node_list_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defi
154
161
  nodes: void 0
155
162
  };
156
163
  }
157
- function getNodeIndexKey(index) {
158
- return `${props.indexKey || "stream-markdown"}-${index}`;
164
+ function getNodeKey(node, index) {
165
+ const nodeKey = `${props.nodeKey || "stream-markdown"}-${node.type}`;
166
+ if (node.type === "footnoteReference" || node.type === "footnoteDefinition") return `${nodeKey}-${node.identifier}`;
167
+ return `${nodeKey}-${index}`;
159
168
  }
160
169
  return (_ctx, _cache) => {
161
170
  return openBlock(true), createElementBlock(Fragment, null, renderList(nodes.value, (item) => {
162
- return openBlock(), createElementBlock(Fragment, { key: item.index }, [!excludeTransition.includes(item.node.type) ? (openBlock(), createBlock(Transition, {
171
+ return openBlock(), createElementBlock(Fragment, { key: item.key }, [enableTransition.value && !excludeTransition.includes(item.node.type) ? (openBlock(), createBlock(Transition, {
163
172
  key: 0,
164
173
  name: "typewriter",
165
174
  appear: ""
166
175
  }, {
167
- default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(getNodeComponent(item.node)), mergeProps({ ref_for: true }, getNodeBindings(item.node), { "index-key": getNodeIndexKey(item.index) }), null, 16, ["index-key"]))]),
176
+ default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(getNodeComponent(item.node)), mergeProps({ ref_for: true }, getNodeBindings(item.node), { "node-key": item.key }), null, 16, ["node-key"]))]),
168
177
  _: 2
169
178
  }, 1024)) : (openBlock(), createBlock(resolveDynamicComponent(getNodeComponent(item.node)), mergeProps({
170
179
  key: 1,
171
180
  ref_for: true
172
- }, getNodeBindings(item.node), { "index-key": getNodeIndexKey(item.index) }), null, 16, ["index-key"]))], 64);
181
+ }, getNodeBindings(item.node), { "node-key": item.key }), null, 16, ["node-key"]))], 64);
173
182
  }), 128);
174
183
  };
175
184
  }
@@ -0,0 +1,4 @@
1
+ import "./composables-DWipZHuF.js";
2
+ import { t as node_list_default } from "./node-list--v2wbxOo.js";
3
+
4
+ export { node_list_default as default };
@@ -1,4 +1,5 @@
1
- import { t as node_list_default } from "./node-list-YhpHXdM_.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/paragraph.vue?vue&type=script&setup=true&lang.ts
@@ -18,8 +19,8 @@ var paragraph_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defi
18
19
  type: Object,
19
20
  required: true
20
21
  },
21
- indexKey: {
22
- type: [Number, String],
22
+ nodeKey: {
23
+ type: String,
23
24
  required: true
24
25
  },
25
26
  controls: {
@@ -0,0 +1,10 @@
1
+ import { defineAsyncComponent } from "vue";
2
+
3
+ //#region src/components/previewers/index.ts
4
+ const CODE_PREVIEWERS = {
5
+ html: defineAsyncComponent(() => import("./html-DFU0myJP.js")),
6
+ mermaid: defineAsyncComponent(() => import("./mermaid-0x6C2MY5.js"))
7
+ };
8
+
9
+ //#endregion
10
+ export { CODE_PREVIEWERS as t };
@@ -0,0 +1,6 @@
1
+ import "./composables-DWipZHuF.js";
2
+ import "./tooltip-Bdt9-aQx.js";
3
+ import "./button-B2ebQt7R.js";
4
+ import { t as segmented_default } from "./segmented-Drf8EBQD.js";
5
+
6
+ export { segmented_default as default };
@@ -1,4 +1,4 @@
1
- import { t as button_default } from "./button-BQhuT7wh.js";
1
+ import { t as button_default } from "./button-B2ebQt7R.js";
2
2
  import { Fragment, createBlock, createElementBlock, defineComponent, mergeModels, openBlock, renderList, useModel } from "vue";
3
3
 
4
4
  //#region src/components/segmented.vue?vue&type=script&setup=true&lang.ts
@@ -1,5 +1,5 @@
1
- import { U as useCodeOptions, r as useShiki } from "./composables-yny5gJo3.js";
2
- import { t as vanilla_default } from "./vanilla-BTOVqKl7.js";
1
+ import { U as useCodeOptions, r as useShiki } from "./composables-DWipZHuF.js";
2
+ import { t as vanilla_default } from "./vanilla-BSgZTIo9.js";
3
3
  import { computed, createBlock, createCommentVNode, defineAsyncComponent, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, ref, toRefs, unref, watch } from "vue";
4
4
 
5
5
  //#region src/components/renderers/code/shiki.vue?vue&type=script&setup=true&lang.ts
@@ -18,8 +18,8 @@ var shiki_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
18
18
  type: Object,
19
19
  required: true
20
20
  },
21
- indexKey: {
22
- type: [Number, String],
21
+ nodeKey: {
22
+ type: String,
23
23
  required: true
24
24
  },
25
25
  controls: {
@@ -62,7 +62,7 @@ var shiki_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
62
62
  setup(__props) {
63
63
  const props = __props;
64
64
  const { shikiOptions, codeOptions, isDark } = toRefs(props);
65
- const ShikiTokensRenderer = defineAsyncComponent(() => import("./shiki-token-renderer-CLmUjKa3.js"));
65
+ const ShikiTokensRenderer = defineAsyncComponent(() => import("./shiki-token-renderer-BMveKuYt.js"));
66
66
  const code = computed(() => props.node.value.trim());
67
67
  const lang = computed(() => props.node.lang || "");
68
68
  const { showLineNumbers } = useCodeOptions({
@@ -0,0 +1,3 @@
1
+ import { t as spin_default } from "./spin-D4Oi_m7j.js";
2
+
3
+ export { spin_default as default };
@@ -1,4 +1,5 @@
1
- import { t as node_list_default } from "./node-list-YhpHXdM_.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/strong.vue?vue&type=script&setup=true&lang.ts
@@ -18,8 +19,8 @@ var strong_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineC
18
19
  type: Object,
19
20
  required: true
20
21
  },
21
- indexKey: {
22
- type: [Number, String],
22
+ nodeKey: {
23
+ type: String,
23
24
  required: true
24
25
  },
25
26
  controls: {
@@ -0,0 +1,3 @@
1
+ import { t as table_default } from "./table-iNA4la0w.js";
2
+
3
+ export { table_default as default };
@@ -1,9 +1,9 @@
1
- import { H as useContext, O as save, V as useControls, b as tableDataToMarkdown, u as useI18n, v as extractTableDataFromElement, x as tableDataToTSV, y as tableDataToCSV } from "./composables-yny5gJo3.js";
2
- import { t as node_list_default } from "./node-list-YhpHXdM_.js";
3
- import "./tooltip-Bgbzbk4Q.js";
4
- import { t as button_default } from "./button-BQhuT7wh.js";
5
- import { t as spin_default } from "./spin--f5jNjBn.js";
6
- import { t as table_default$1 } from "./table-CaUMjs4M.js";
1
+ import { A as save, C as tableDataToTSV, H as useContext, P as useI18n, S as tableDataToMarkdown, V as useControls, b as extractTableDataFromElement, x as tableDataToCSV } 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 { t as spin_default } from "./spin-D4Oi_m7j.js";
6
+ import { t as table_default$1 } from "./table-iNA4la0w.js";
7
7
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, openBlock, ref, renderList, withCtx } from "vue";
8
8
  import { useClipboard } from "@vueuse/core";
9
9
 
@@ -26,8 +26,8 @@ var table_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
26
26
  type: Object,
27
27
  required: true
28
28
  },
29
- indexKey: {
30
- type: [Number, String],
29
+ nodeKey: {
30
+ type: String,
31
31
  required: true
32
32
  },
33
33
  controls: {
@@ -17,8 +17,8 @@ var text_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCom
17
17
  type: Object,
18
18
  required: true
19
19
  },
20
- indexKey: {
21
- type: [Number, String],
20
+ nodeKey: {
21
+ type: String,
22
22
  required: true
23
23
  },
24
24
  controls: {
@@ -17,8 +17,8 @@ var thematic_break_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */
17
17
  type: Object,
18
18
  required: true
19
19
  },
20
- indexKey: {
21
- type: [Number, String],
20
+ nodeKey: {
21
+ type: String,
22
22
  required: true
23
23
  },
24
24
  controls: {
@@ -1,4 +1,4 @@
1
- import { B as useFloatingElement, H as useContext } from "./composables-yny5gJo3.js";
1
+ import { B as useFloatingElement, H as useContext } from "./composables-DWipZHuF.js";
2
2
  import { Fragment, Teleport, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeProps, normalizeStyle, openBlock, renderSlot, toDisplayString, toRefs, unref } from "vue";
3
3
 
4
4
  //#region src/components/tooltip.vue?vue&type=script&setup=true&lang.ts
@@ -0,0 +1,4 @@
1
+ import "./composables-DWipZHuF.js";
2
+ import { t as tooltip_default } from "./tooltip-Bdt9-aQx.js";
3
+
4
+ export { tooltip_default as default };
@@ -1,4 +1,4 @@
1
- import { U as useCodeOptions } from "./composables-yny5gJo3.js";
1
+ import { U as useCodeOptions } from "./composables-DWipZHuF.js";
2
2
  import { computed, defineComponent, h, renderList, toRefs } from "vue";
3
3
 
4
4
  //#region src/components/renderers/code/vanilla.ts
@@ -0,0 +1,4 @@
1
+ import "./composables-DWipZHuF.js";
2
+ import { t as vanilla_default } from "./vanilla-BSgZTIo9.js";
3
+
4
+ export { vanilla_default as default };
@@ -1,4 +1,4 @@
1
- import { t as table_default } from "./table-CaUMjs4M.js";
1
+ import { t as table_default } from "./table-iNA4la0w.js";
2
2
  import { computed, createElementBlock, createTextVNode, createVNode, defineComponent, openBlock, toDisplayString, withCtx } from "vue";
3
3
 
4
4
  //#region src/components/renderers/yaml.vue?vue&type=script&setup=true&lang.ts
@@ -18,8 +18,8 @@ var yaml_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCom
18
18
  type: Object,
19
19
  required: true
20
20
  },
21
- indexKey: {
22
- type: [Number, String],
21
+ nodeKey: {
22
+ type: String,
23
23
  required: true
24
24
  },
25
25
  controls: {
@@ -4,7 +4,7 @@ var button = {
4
4
  "zoomOut": "缩小",
5
5
  "resetZoom": "重置缩放",
6
6
  "preview": "预览",
7
- "source": "源代码",
7
+ "source": "代码",
8
8
  "collapse": "折叠",
9
9
  "copy": "复制",
10
10
  "download": "下载",
@@ -15,7 +15,8 @@ var button = {
15
15
  "rotateLeft": "左转",
16
16
  "rotateRight": "右转",
17
17
  "previous": "上个",
18
- "next": "下个"
18
+ "next": "下个",
19
+ "back": "返回"
19
20
  };
20
21
  var error = {
21
22
  "vanilla": "错误",
@@ -0,0 +1,6 @@
1
+ import "./composables-DWipZHuF.js";
2
+ import "./tooltip-Bdt9-aQx.js";
3
+ import "./button-B2ebQt7R.js";
4
+ import { t as zoom_container_default } from "./zoom-container-f44XxzOI.js";
5
+
6
+ export { zoom_container_default as default };
@@ -1,5 +1,5 @@
1
- import { H as useContext, t as useZoom, u as useI18n } from "./composables-yny5gJo3.js";
2
- import { t as button_default } from "./button-BQhuT7wh.js";
1
+ import { H as useContext, P as useI18n, t as useZoom } from "./composables-DWipZHuF.js";
2
+ import { t as button_default } from "./button-B2ebQt7R.js";
3
3
  import { computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, normalizeStyle, openBlock, ref, renderSlot, unref, withModifiers } from "vue";
4
4
 
5
5
  //#region src/components/zoom-container.vue?vue&type=script&setup=true&lang.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vue-stream-markdown",
3
3
  "type": "module",
4
- "version": "0.1.5",
4
+ "version": "0.1.6",
5
5
  "description": "Streaming markdown output, Useful for text streams like LLM outputs.",
6
6
  "author": "jinghaihan",
7
7
  "license": "MIT",
@@ -1,5 +0,0 @@
1
- import "./composables-yny5gJo3.js";
2
- import "./tooltip-Bgbzbk4Q.js";
3
- import { t as button_default } from "./button-BQhuT7wh.js";
4
-
5
- export { button_default as default };
@@ -1,9 +0,0 @@
1
- import "./previewers-D0VVcdjL.js";
2
- import "./composables-yny5gJo3.js";
3
- import "./tooltip-Bgbzbk4Q.js";
4
- import "./button-BQhuT7wh.js";
5
- import "./modal-Rc_RoeYA.js";
6
- import { t as code_block_default } from "./code-block-Dm2wl0cb.js";
7
- import "./segmented-CaC54iz_.js";
8
-
9
- export { code_block_default as default };
@@ -1,5 +0,0 @@
1
- import "./composables-yny5gJo3.js";
2
- import "./tooltip-Bgbzbk4Q.js";
3
- import { n as dropdown_default } from "./button-BQhuT7wh.js";
4
-
5
- export { dropdown_default as default };
@@ -1,4 +0,0 @@
1
- import "./composables-yny5gJo3.js";
2
- import { t as error_component_default } from "./error-component-Bb0gIZsx.js";
3
-
4
- export { error_component_default as default };
@@ -1,8 +0,0 @@
1
- import "./composables-yny5gJo3.js";
2
- import "./tooltip-Bgbzbk4Q.js";
3
- import "./button-BQhuT7wh.js";
4
- import "./modal-Rc_RoeYA.js";
5
- import { t as image_default } from "./image-DvOGBhi-.js";
6
- import "./zoom-container-B1qbA-7z.js";
7
-
8
- export { image_default as default };
@@ -1,4 +0,0 @@
1
- import "./composables-yny5gJo3.js";
2
- import { t as modal_default } from "./modal-Rc_RoeYA.js";
3
-
4
- export { modal_default as default };
@@ -1,3 +0,0 @@
1
- import { t as node_list_default } from "./node-list-YhpHXdM_.js";
2
-
3
- export { node_list_default as default };
@@ -1,10 +0,0 @@
1
- import { defineAsyncComponent } from "vue";
2
-
3
- //#region src/components/previewers/index.ts
4
- const CODE_PREVIEWERS = {
5
- html: defineAsyncComponent(() => import("./html-DXNqMvt_.js")),
6
- mermaid: defineAsyncComponent(() => import("./mermaid-Ka1jnXrR.js"))
7
- };
8
-
9
- //#endregion
10
- export { CODE_PREVIEWERS as t };
@@ -1,6 +0,0 @@
1
- import "./composables-yny5gJo3.js";
2
- import "./tooltip-Bgbzbk4Q.js";
3
- import "./button-BQhuT7wh.js";
4
- import { t as segmented_default } from "./segmented-CaC54iz_.js";
5
-
6
- export { segmented_default as default };
@@ -1,3 +0,0 @@
1
- import { t as spin_default } from "./spin--f5jNjBn.js";
2
-
3
- export { spin_default as default };
@@ -1,3 +0,0 @@
1
- import { t as table_default } from "./table-CaUMjs4M.js";
2
-
3
- export { table_default as default };
@@ -1,4 +0,0 @@
1
- import "./composables-yny5gJo3.js";
2
- import { t as tooltip_default } from "./tooltip-Bgbzbk4Q.js";
3
-
4
- export { tooltip_default as default };
@@ -1,4 +0,0 @@
1
- import "./composables-yny5gJo3.js";
2
- import { t as vanilla_default } from "./vanilla-BTOVqKl7.js";
3
-
4
- export { vanilla_default as default };
@@ -1,6 +0,0 @@
1
- import "./composables-yny5gJo3.js";
2
- import "./tooltip-Bgbzbk4Q.js";
3
- import "./button-BQhuT7wh.js";
4
- import { t as zoom_container_default } from "./zoom-container-B1qbA-7z.js";
5
-
6
- export { zoom_container_default as default };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes