vue-stream-markdown 0.1.3 → 0.1.5

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 (193) hide show
  1. package/README.md +3 -1
  2. package/dist/arrow-left-C5s0Sn8o.js +25 -0
  3. package/dist/{blockquote-DdEg2gww.js → blockquote-bkADuiGm.js} +1 -9
  4. package/dist/{button-CJyeXWq2.js → button-BQhuT7wh.js} +2 -3
  5. package/dist/button-JYC8d-B-.js +5 -0
  6. package/dist/{code-CJ4tMt6L.js → code-DF8PTNol.js} +10 -18
  7. package/dist/code-block-BhMDz2ZL.js +9 -0
  8. package/dist/{code-block-CQ4lgva1.js → code-block-Dm2wl0cb.js} +87 -77
  9. package/dist/{composables-Cj6_jbwr.js → composables-yny5gJo3.js} +570 -234
  10. package/dist/{delete-BdWzKJCy.js → delete-D17YBeI-.js} +1 -9
  11. package/dist/dropdown-Y5_Z4a_u.js +5 -0
  12. package/dist/{emphasis-CTuGt1Ok.js → emphasis-B-2R_0Q5.js} +1 -9
  13. package/dist/{en-US-Bfc50l3I.js → en-US-Kw2LYAMk.js} +7 -1
  14. package/dist/{error-component-ClGLfmwy.js → error-component-Bb0gIZsx.js} +4 -3
  15. package/dist/error-component-DEIWb6kB.js +4 -0
  16. package/dist/flip-horizontal-BFWjqDbQ.js +25 -0
  17. package/dist/{heading-2vpQQtTH.js → heading-DyJIwNrN.js} +1 -9
  18. package/dist/{html-DL0PcUXX.js → html-DXNqMvt_.js} +0 -8
  19. package/dist/{image-xeiC5YFM.js → image-BPhFn1xp.js} +40 -76
  20. package/dist/image-DXBD47sF.js +8 -0
  21. package/dist/image-DvOGBhi-.js +327 -0
  22. package/dist/index.css +44 -64
  23. package/dist/index.d.ts +155 -81
  24. package/dist/index.js +55 -63
  25. package/dist/{inline-code-CBoqhfz7.js → inline-code-C44UJ2TH.js} +0 -8
  26. package/dist/{inline-math-C2NUSasr.js → inline-math-wO1rMt9T.js} +2 -10
  27. package/dist/{link-BceXudNH.js → link-sGo7CEll.js} +3 -11
  28. package/dist/{list-BCiFKGaz.js → list-C0I1ysSI.js} +1 -9
  29. package/dist/{list-item-p-OLUR_9.js → list-item-BoC2wKBL.js} +1 -9
  30. package/dist/{math-DXOLG3Xg.js → math-BlqtUf2r.js} +2 -10
  31. package/dist/{mermaid-CU4hpB6S.js → mermaid-Ka1jnXrR.js} +6 -14
  32. package/dist/modal-Duhc-vVa.js +4 -0
  33. package/dist/modal-Rc_RoeYA.js +94 -0
  34. package/dist/node-list-C1je2nLd.js +3 -0
  35. package/dist/{node-list-CGr_EVtn.js → node-list-YhpHXdM_.js} +0 -16
  36. package/dist/{paragraph-DYjqr_Sa.js → paragraph-BN-4-Dn7.js} +1 -9
  37. package/dist/previewers-D0VVcdjL.js +10 -0
  38. package/dist/rotate-ccw-square-C2KVFUF3.js +24 -0
  39. package/dist/{segmented-CF6exjdD.js → segmented-CaC54iz_.js} +1 -1
  40. package/dist/segmented-XdoLnuuq.js +6 -0
  41. package/dist/{shiki-BlfngIRi.js → shiki-sJNZTn1K.js} +4 -12
  42. package/dist/spin-wM2KE8mO.js +3 -0
  43. package/dist/{strong-CvOjLZiq.js → strong-NdAS3VjP.js} +1 -9
  44. package/dist/{table-C5VHgkTQ.js → table-CWX5B2i1.js} +14 -18
  45. package/dist/table-R9gmCXm_.js +3 -0
  46. package/dist/{text-DuONUqRA.js → text-DpleLvNh.js} +0 -8
  47. package/dist/{thematic-break-CcNPEI9Y.js → thematic-break-D5GvzU5S.js} +0 -8
  48. package/dist/tooltip-BJDs-A8d.js +4 -0
  49. package/dist/tooltip-Bgbzbk4Q.js +68 -0
  50. package/dist/{vanilla-D5DzB31q.js → vanilla-BTOVqKl7.js} +1 -1
  51. package/dist/vanilla-DA5bwIkr.js +4 -0
  52. package/dist/{yaml-DJHrmzSe.js → yaml-y0snrPRx.js} +1 -9
  53. package/dist/{zh-CN-CL1XGe0H.js → zh-CN-Dfow4Yn2.js} +7 -1
  54. package/dist/zoom-container-B1qbA-7z.js +153 -0
  55. package/dist/zoom-container-KztuE4ri.js +6 -0
  56. package/package.json +9 -10
  57. package/dist/button-2wMU7qkH.js +0 -5
  58. package/dist/code-block-BucFZooo.js +0 -9
  59. package/dist/dropdown-dsCfq0Hl.js +0 -5
  60. package/dist/error-component-B0mmLhh6.js +0 -4
  61. package/dist/modal-CuQR21UD.js +0 -71
  62. package/dist/modal-DcpxxDDX.js +0 -3
  63. package/dist/node-list-lgY1wbfQ.js +0 -3
  64. package/dist/previewers-qHMi6xZ3.js +0 -10
  65. package/dist/segmented-BeHqXuFx.js +0 -6
  66. package/dist/spin-Bz4zGBEo.js +0 -3
  67. package/dist/table-CZLbUHiJ.js +0 -3
  68. package/dist/tooltip-BzVZqo7w.js +0 -4
  69. package/dist/tooltip-gxsqaBNg.js +0 -71
  70. package/dist/vanilla-CKj7EQLx.js +0 -4
  71. package/dist/zoom-container-CwEDlKRx.js +0 -6
  72. package/dist/zoom-container-D_fBClW2.js +0 -111
  73. /package/dist/{angular-Chs-UKBr.js → angular-Mip1mspI.js} +0 -0
  74. /package/dist/{angular-component-Cc_FANXU.js → angular-component-Cq5UbX7R.js} +0 -0
  75. /package/dist/{apache-COYnc6xR.js → apache-BSq7fX32.js} +0 -0
  76. /package/dist/{asciidoc-BabXBDAL.js → asciidoc-DS-PMOLv.js} +0 -0
  77. /package/dist/{assembly-CDqKhexW.js → assembly-BPatlOM7.js} +0 -0
  78. /package/dist/{astro-C9kftzFG.js → astro-CSD_ZjXp.js} +0 -0
  79. /package/dist/{bash-Ce4pNIkV.js → bash-RITislE1.js} +0 -0
  80. /package/dist/{batch-CHQBRjFL.js → batch-DWPShYhN.js} +0 -0
  81. /package/dist/{bicep-8jxWtuBF.js → bicep-C6BEHfP6.js} +0 -0
  82. /package/dist/{c-FBUef746.js → c-DNo3tsNy.js} +0 -0
  83. /package/dist/{check-C4xOk8um.js → check-BfpxIITS.js} +0 -0
  84. /package/dist/{chevron-down-cnOJ4h1g.js → chevron-down-LeNeemjn.js} +0 -0
  85. /package/dist/{circle-alert-CLX-h5rZ.js → circle-alert-BjDuIzgc.js} +0 -0
  86. /package/dist/{clojure-BulUroSy.js → clojure-C1DEYHW0.js} +0 -0
  87. /package/dist/{cmake-CW3vz1Mo.js → cmake-B69mdXcH.js} +0 -0
  88. /package/dist/{cobol-CIn3oFju.js → cobol-qmL-zIWi.js} +0 -0
  89. /package/dist/{code-D8LSp8rK.js → code-D9CiymEK.js} +0 -0
  90. /package/dist/{codeowners-CJggXF_b.js → codeowners-Crklt5nF.js} +0 -0
  91. /package/dist/{coffeescript-CBrVvzGY.js → coffeescript-k3huSp23.js} +0 -0
  92. /package/dist/{copy-Cabve0xf.js → copy-C4580J93.js} +0 -0
  93. /package/dist/{cpp-BTKeuyd-.js → cpp-Cn3MB35e.js} +0 -0
  94. /package/dist/{crystal-DyIYvZbm.js → crystal-D5aGETSx.js} +0 -0
  95. /package/dist/{csharp-NqZ1vyF9.js → csharp-CgkTkbPx.js} +0 -0
  96. /package/dist/{css-BpR5Lajb.js → css-DRH4n_IV.js} +0 -0
  97. /package/dist/{csv-eCMFnKKK.js → csv-D5nNTIzO.js} +0 -0
  98. /package/dist/{cue-TY97dGOQ.js → cue-B5mC88-N.js} +0 -0
  99. /package/dist/{d-NftUsdTd.js → d-BdQRMgma.js} +0 -0
  100. /package/dist/{dart-DJpwZZbk.js → dart-BGnfn0NN.js} +0 -0
  101. /package/dist/{database-aZwE71Px.js → database-Ca1VGX7u.js} +0 -0
  102. /package/dist/{diff-CYRzypaU.js → diff-DVaTsnqu.js} +0 -0
  103. /package/dist/{docker-CxHBuukH.js → docker-E47qYlmL.js} +0 -0
  104. /package/dist/{download-Bnn7rtYw.js → download-DytrK56a.js} +0 -0
  105. /package/dist/{elixir-BKSxVc1h.js → elixir-C-jqqu6q.js} +0 -0
  106. /package/dist/{elm-DScuAf3X.js → elm-CmeHvaWl.js} +0 -0
  107. /package/dist/{env-CDAKsodl.js → env-Ck1BHoxR.js} +0 -0
  108. /package/dist/{erlang-D2M1ZL3m.js → erlang-CIP8kpGJ.js} +0 -0
  109. /package/dist/{eye-CdeX8PhP.js → eye-TaEwQS2Z.js} +0 -0
  110. /package/dist/{fortran-CORyQ0wt.js → fortran-DJVP2s7V.js} +0 -0
  111. /package/dist/{fsharp-BJz_Jgpl.js → fsharp-Bp6mUcG0.js} +0 -0
  112. /package/dist/{git-DgrlTr1E.js → git-BDcqJ1Gp.js} +0 -0
  113. /package/dist/{gleam-t_xad9Kw.js → gleam-JLiZVlev.js} +0 -0
  114. /package/dist/{go-Cvlh1xtL.js → go-ClcCiS7e.js} +0 -0
  115. /package/dist/{graphql-ApIm0mDD.js → graphql-D2RDo-DF.js} +0 -0
  116. /package/dist/{groovy-CaLnK8PV.js → groovy-DLZBw8xE.js} +0 -0
  117. /package/dist/{haml-MwijEO_6.js → haml-Da74jRwZ.js} +0 -0
  118. /package/dist/{handlebars-CKdUPI9h.js → handlebars-CNgS57Sz.js} +0 -0
  119. /package/dist/{haskell-NPOXEnck.js → haskell-DCvfD6VB.js} +0 -0
  120. /package/dist/{haxe-DyKBMsDE.js → haxe-CHVK1TId.js} +0 -0
  121. /package/dist/{html-CMgES1dE.js → html-Du4235Z-.js} +0 -0
  122. /package/dist/{http-B9FFNmUr.js → http-B8VAFeQ5.js} +0 -0
  123. /package/dist/{image-CMZAakWu.js → image-D8MZj4W5.js} +0 -0
  124. /package/dist/{java-iU-L9wJz.js → java-CoSdnK1N.js} +0 -0
  125. /package/dist/{javascript-DtnWdTFC.js → javascript-BCDeVll0.js} +0 -0
  126. /package/dist/{jinja-CoWszo_D.js → jinja-DYbiqZy0.js} +0 -0
  127. /package/dist/{json-C80qKCnh.js → json-CdzCyWJA.js} +0 -0
  128. /package/dist/{julia-DG2BCBLx.js → julia-pswJGtpP.js} +0 -0
  129. /package/dist/{kdl-7twRfIlJ.js → kdl-M8rfQ85l.js} +0 -0
  130. /package/dist/{kotlin-BjrOgP7R.js → kotlin-CfCV33oB.js} +0 -0
  131. /package/dist/{latex-DIQfUvG8.js → latex-DK8DFhTm.js} +0 -0
  132. /package/dist/{less-BJ1yEAWt.js → less-BFnNZiIs.js} +0 -0
  133. /package/dist/{link-DeV4CQOB.js → link-C7eU_yi-.js} +0 -0
  134. /package/dist/{liquid-BqKFZ1wQ.js → liquid-C8h46DoX.js} +0 -0
  135. /package/dist/{lisp-oekhB2ti.js → lisp-C3FbGuD1.js} +0 -0
  136. /package/dist/{log-D1XEqR9q.js → log-D-O3FXf2.js} +0 -0
  137. /package/dist/{lua-C5Q97-1D.js → lua-BC_aR1_i.js} +0 -0
  138. /package/dist/{luau-BT8KwqZ2.js → luau-DFUOrNN7.js} +0 -0
  139. /package/dist/{makefile-B4a0ciG4.js → makefile-Ck67veVV.js} +0 -0
  140. /package/dist/{markdown-DvNyKsiJ.js → markdown-BX13X3kd.js} +0 -0
  141. /package/dist/{marko-BzsIf6bg.js → marko-CQE8YTCc.js} +0 -0
  142. /package/dist/{matlab-cMBkmDhQ.js → matlab-Bd9O2Ml3.js} +0 -0
  143. /package/dist/{maximize-4PIqBONS.js → maximize-CDZ9rnYF.js} +0 -0
  144. /package/dist/{mermaid-8JIH2gkQ.js → mermaid-Dv-Pr0W-.js} +0 -0
  145. /package/dist/{minimize-BJ8htyDF.js → minimize-B9ER7p2X.js} +0 -0
  146. /package/dist/{nextflow-DNmqU1xg.js → nextflow-D3lDq1Yi.js} +0 -0
  147. /package/dist/{nginx-DDfYF_rj.js → nginx-CgsqCL4l.js} +0 -0
  148. /package/dist/{nim-D9xEmy4k.js → nim-BJdSu3c6.js} +0 -0
  149. /package/dist/{nix-BV1Deshw.js → nix-B7K_D6CN.js} +0 -0
  150. /package/dist/{ocaml-BkFn4LL3.js → ocaml-gYS1Y45s.js} +0 -0
  151. /package/dist/{perl-BytUHDE7.js → perl-DXFhFWhI.js} +0 -0
  152. /package/dist/{php-BImJJtNM.js → php-We35bF4E.js} +0 -0
  153. /package/dist/{postcss-CrZ9_0sT.js → postcss-BWovY_YV.js} +0 -0
  154. /package/dist/{powershell-DYSGu7TM.js → powershell-C6teiBsq.js} +0 -0
  155. /package/dist/{prisma-BhRvcOFY.js → prisma-UyJEg0_X.js} +0 -0
  156. /package/dist/{prolog-DuaCKek_.js → prolog-YZsPgdnw.js} +0 -0
  157. /package/dist/{properties-BbIJwuP-.js → properties-DaPbL0e2.js} +0 -0
  158. /package/dist/{proto-CE0aVW11.js → proto-1LIwu2O1.js} +0 -0
  159. /package/dist/{pug-B1-IC-Tc.js → pug-CzkUK-Ec.js} +0 -0
  160. /package/dist/{puppet-8nYquiMG.js → puppet-CNhB1MHb.js} +0 -0
  161. /package/dist/{python-DhRyfBrD.js → python-B_hgEobv.js} +0 -0
  162. /package/dist/{r-Cjje17IA.js → r-CVeKYmPK.js} +0 -0
  163. /package/dist/{racket-Dx0gMnpg.js → racket-D5UfvXuw.js} +0 -0
  164. /package/dist/{razor-DPht_bdD.js → razor-RIKaANTN.js} +0 -0
  165. /package/dist/{ruby-B8RxtCzI.js → ruby-C8wV0pMO.js} +0 -0
  166. /package/dist/{rust-Cjtli6yf.js → rust-75Gei1mP.js} +0 -0
  167. /package/dist/{sass-Dv3DMzjs.js → sass-Cq68xmQ4.js} +0 -0
  168. /package/dist/{scala-B7bZGKXq.js → scala-C_E5rjSc.js} +0 -0
  169. /package/dist/{scheme-B2PsEdVN.js → scheme-Bm-q-nLL.js} +0 -0
  170. /package/dist/{shader-BZzu3zGr.js → shader-DPaRkMCs.js} +0 -0
  171. /package/dist/{shiki-token-renderer-D164wC7Y.js → shiki-token-renderer-CLmUjKa3.js} +0 -0
  172. /package/dist/{solidity-CLieFYpL.js → solidity-DvHG_0CD.js} +0 -0
  173. /package/dist/{spin-Ds5W7qC_.js → spin--f5jNjBn.js} +0 -0
  174. /package/dist/{stata-C0yUiO47.js → stata-DoVloJLm.js} +0 -0
  175. /package/dist/{svelte-rtF4yNGL.js → svelte-tlbA11de.js} +0 -0
  176. /package/dist/{swift-CzvYoIM0.js → swift-BZn5eRnK.js} +0 -0
  177. /package/dist/{table-4ec9FVB_.js → table-CaUMjs4M.js} +0 -0
  178. /package/dist/{terraform-CD_BZGb-.js → terraform-c5-k7yB1.js} +0 -0
  179. /package/dist/{text-D1-vbZ7l.js → text-DPCGWvDK.js} +0 -0
  180. /package/dist/{toml-C6jUF0Xd.js → toml-DdLGBe1A.js} +0 -0
  181. /package/dist/{twig-C4dfP84J.js → twig-D_jzZxh6.js} +0 -0
  182. /package/dist/{typescript-Bk-pp-cK.js → typescript-B95hq2ns.js} +0 -0
  183. /package/dist/{typst-DPCpaVSH.js → typst-CSAEQ4yK.js} +0 -0
  184. /package/dist/{v-nRGMJ2Ki.js → v-BAhebuOB.js} +0 -0
  185. /package/dist/{vala-B78bKcY0.js → vala-RAu83-lp.js} +0 -0
  186. /package/dist/{verilog-CRpkl76S.js → verilog-BgmTn52U.js} +0 -0
  187. /package/dist/{vim-DpKnut7b.js → vim-c8oTCLkH.js} +0 -0
  188. /package/dist/{vue-D5eadhjo.js → vue-TGT6HTBA.js} +0 -0
  189. /package/dist/{xml-Dvx5F-hl.js → xml-C1HDr874.js} +0 -0
  190. /package/dist/{yaml-n1S8nAOh.js → yaml-BO7FjFQZ.js} +0 -0
  191. /package/dist/{zig-R-iFzxfW.js → zig-qANBp1SU.js} +0 -0
  192. /package/dist/{zoomIn-CEukuh3x.js → zoomIn-iVMAUxIz.js} +0 -0
  193. /package/dist/{zoomOut-qlzQyQli.js → zoomOut-Cxq1_dIQ.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { t as node_list_default } from "./node-list-CGr_EVtn.js";
1
+ import { t as node_list_default } from "./node-list-YhpHXdM_.js";
2
2
  import { createElementBlock, createVNode, defineComponent, mergeProps, openBlock } from "vue";
3
3
 
4
4
  //#region src/components/renderers/delete.vue?vue&type=script&setup=true&lang.ts
@@ -18,18 +18,10 @@ var delete_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineC
18
18
  type: Object,
19
19
  required: true
20
20
  },
21
- mediumZoom: {
22
- type: Object,
23
- required: true
24
- },
25
21
  indexKey: {
26
22
  type: [Number, String],
27
23
  required: true
28
24
  },
29
- getContainer: {
30
- type: Function,
31
- required: true
32
- },
33
25
  controls: {
34
26
  type: [Boolean, Object],
35
27
  required: false
@@ -0,0 +1,5 @@
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 +1,4 @@
1
- import { t as node_list_default } from "./node-list-CGr_EVtn.js";
1
+ import { t as node_list_default } from "./node-list-YhpHXdM_.js";
2
2
  import { createElementBlock, createVNode, defineComponent, mergeProps, openBlock } from "vue";
3
3
 
4
4
  //#region src/components/renderers/emphasis.vue?vue&type=script&setup=true&lang.ts
@@ -18,18 +18,10 @@ var emphasis_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defin
18
18
  type: Object,
19
19
  required: true
20
20
  },
21
- mediumZoom: {
22
- type: Object,
23
- required: true
24
- },
25
21
  indexKey: {
26
22
  type: [Number, String],
27
23
  required: true
28
24
  },
29
- getContainer: {
30
- type: Function,
31
- required: true
32
- },
33
25
  controls: {
34
26
  type: [Boolean, Object],
35
27
  required: false
@@ -9,7 +9,13 @@ 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"
13
19
  };
14
20
  var error = {
15
21
  "vanilla": "Error",
@@ -1,4 +1,4 @@
1
- import { M as ICONS, u as useI18n } from "./composables-Cj6_jbwr.js";
1
+ import { H as useContext, u as useI18n } from "./composables-yny5gJo3.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
@@ -25,6 +25,7 @@ var error_component_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ *
25
25
  setup(__props) {
26
26
  const props = __props;
27
27
  const { t } = useI18n();
28
+ const { icons } = useContext();
28
29
  const messages = computed(() => ({
29
30
  "vanilla": t("error.vanilla"),
30
31
  "image": t("error.image"),
@@ -35,8 +36,8 @@ var error_component_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ *
35
36
  }));
36
37
  const icon = computed(() => {
37
38
  if (props.icon) return props.icon;
38
- if (ICONS[props.variant]) return ICONS[props.variant];
39
- return ICONS[props.variant.replace("harden-", "")] || ICONS.error;
39
+ if (icons.value[props.variant]) return icons.value[props.variant];
40
+ return icons.value[props.variant.replace("harden-", "")] || icons.value.error;
40
41
  });
41
42
  const message = computed(() => props.message ? props.message : messages.value[props.variant] || messages.value.vanilla);
42
43
  const isHarden = computed(() => {
@@ -0,0 +1,4 @@
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 };
@@ -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 };
@@ -1,4 +1,4 @@
1
- import { t as node_list_default } from "./node-list-CGr_EVtn.js";
1
+ import { t as node_list_default } from "./node-list-YhpHXdM_.js";
2
2
  import { computed, createBlock, createVNode, defineComponent, mergeProps, openBlock, resolveDynamicComponent, withCtx } from "vue";
3
3
 
4
4
  //#region src/components/renderers/heading.vue?vue&type=script&setup=true&lang.ts
@@ -17,18 +17,10 @@ var heading_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ define
17
17
  type: Object,
18
18
  required: true
19
19
  },
20
- mediumZoom: {
21
- type: Object,
22
- required: true
23
- },
24
20
  indexKey: {
25
21
  type: [Number, String],
26
22
  required: true
27
23
  },
28
- getContainer: {
29
- type: Function,
30
- required: true
31
- },
32
24
  controls: {
33
25
  type: [Boolean, Object],
34
26
  required: false
@@ -17,18 +17,10 @@ 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
20
  indexKey: {
25
21
  type: [Number, String],
26
22
  required: true
27
23
  },
28
- getContainer: {
29
- type: Function,
30
- required: true
31
- },
32
24
  controls: {
33
25
  type: [Boolean, Object],
34
26
  required: false
@@ -1,18 +1,16 @@
1
- import { M as ICONS, O as save, g as useHardenSanitizers, u as useI18n, z as useControls } from "./composables-Cj6_jbwr.js";
2
- import "./tooltip-gxsqaBNg.js";
3
- import { t as button_default } from "./button-CJyeXWq2.js";
4
- import { t as error_component_default } from "./error-component-ClGLfmwy.js";
5
- import { t as spin_default } from "./spin-Ds5W7qC_.js";
6
- import { Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, normalizeStyle, openBlock, ref, resolveDynamicComponent, toDisplayString, toRefs, unref, withCtx } from "vue";
1
+ import { H as useContext, V as useControls, g as useHardenSanitizers, k as saveImage, u as useI18n } from "./composables-yny5gJo3.js";
2
+ import "./tooltip-Bgbzbk4Q.js";
3
+ import { t as button_default } from "./button-BQhuT7wh.js";
4
+ import "./modal-Rc_RoeYA.js";
5
+ import { t as error_component_default } from "./error-component-Bb0gIZsx.js";
6
+ import { t as image_default$1 } from "./image-DvOGBhi-.js";
7
+ import "./zoom-container-B1qbA-7z.js";
8
+ import { t as spin_default } from "./spin--f5jNjBn.js";
9
+ import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeProps, normalizeStyle, openBlock, ref, resolveDynamicComponent, toDisplayString, toRefs, unref, withCtx } from "vue";
7
10
 
8
11
  //#region src/components/renderers/image.vue?vue&type=script&setup=true&lang.ts
9
12
  const _hoisted_1 = { "data-stream-markdown": "image-wrapper" };
10
- const _hoisted_2 = [
11
- "src",
12
- "alt",
13
- "title"
14
- ];
15
- const _hoisted_3 = {
13
+ const _hoisted_2 = {
16
14
  key: 0,
17
15
  "data-stream-markdown": "image-caption"
18
16
  };
@@ -31,18 +29,10 @@ var image_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
31
29
  type: Object,
32
30
  required: true
33
31
  },
34
- mediumZoom: {
35
- type: Object,
36
- required: true
37
- },
38
32
  indexKey: {
39
33
  type: [Number, String],
40
34
  required: true
41
35
  },
42
- getContainer: {
43
- type: Function,
44
- required: true
45
- },
46
36
  controls: {
47
37
  type: [Boolean, Object],
48
38
  required: false
@@ -82,17 +72,17 @@ var image_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
82
72
  },
83
73
  setup(__props) {
84
74
  const props = __props;
85
- const fileExtensionPattern = /\.[^/.]+$/;
86
75
  const { t } = useI18n();
76
+ const { icons } = useContext();
87
77
  const { controls, hardenOptions } = toRefs(props);
88
78
  const { isControlEnabled } = useControls({ controls });
89
- const imgRef = ref();
90
79
  const maskRef = ref();
91
80
  const loadError = ref(false);
92
81
  const imageLoaded = ref(false);
93
82
  const fallbackAttempted = ref(false);
94
83
  const isLoading = computed(() => props.node.loading || !props.node.url);
95
- const showDownload = computed(() => isControlEnabled("image.download"));
84
+ const enableDownload = computed(() => isControlEnabled("image.download"));
85
+ const enablePreview = computed(() => isControlEnabled("image.preview"));
96
86
  const fallback = computed(() => {
97
87
  var _props$imageOptions;
98
88
  return ((_props$imageOptions = props.imageOptions) === null || _props$imageOptions === void 0 ? void 0 : _props$imageOptions.fallback) ?? "";
@@ -116,8 +106,6 @@ var image_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
116
106
  });
117
107
  function handleLoaded() {
118
108
  imageLoaded.value = true;
119
- if (fallbackAttempted.value) return;
120
- if (imgRef.value) props.mediumZoom.attach(imgRef.value);
121
109
  }
122
110
  function handleError() {
123
111
  if (fallback.value && !fallbackAttempted.value) {
@@ -128,29 +116,13 @@ var image_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
128
116
  }
129
117
  async function handleDownload() {
130
118
  if (!imageSrc.value) return;
131
- const blob = await (await fetch(imageSrc.value)).blob();
132
- const originalFilename = new URL(imageSrc.value, window.location.origin).pathname.split("/").pop() || "";
133
- const extension = originalFilename.split(".").pop();
134
- const hasExtension = originalFilename.includes(".") && extension !== void 0 && extension.length <= 4;
135
- let filename = "";
136
- if (hasExtension) filename = originalFilename;
137
- else {
138
- const mimeType = blob.type;
139
- let fileExtension = "png";
140
- if (mimeType.includes("jpeg") || mimeType.includes("jpg")) fileExtension = "jpg";
141
- else if (mimeType.includes("png")) fileExtension = "png";
142
- else if (mimeType.includes("svg")) fileExtension = "svg";
143
- else if (mimeType.includes("gif")) fileExtension = "gif";
144
- else if (mimeType.includes("webp")) fileExtension = "webp";
145
- filename = `${(alt.value || originalFilename || "image").replace(fileExtensionPattern, "")}.${fileExtension}`;
146
- }
147
- save(filename, blob, blob.type);
119
+ saveImage(imageSrc.value, alt.value);
148
120
  }
149
121
  function handleMouseEnter() {
150
- if (maskRef.value) maskRef.value.style.display = "block";
122
+ if (maskRef.value) maskRef.value.style.opacity = 1;
151
123
  }
152
124
  function handleMouseLeave() {
153
- if (maskRef.value) maskRef.value.style.display = "none";
125
+ if (maskRef.value) maskRef.value.style.opacity = 0;
154
126
  }
155
127
  return (_ctx, _cache) => {
156
128
  return openBlock(), createElementBlock("figure", {
@@ -164,10 +136,10 @@ var image_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
164
136
  ref_key: "maskRef",
165
137
  ref: maskRef,
166
138
  "data-stream-markdown": "image-mask"
167
- }, [!isLoading.value && showDownload.value ? (openBlock(), createBlock(button_default, {
139
+ }, [!isLoading.value && enableDownload.value ? (openBlock(), createBlock(button_default, {
168
140
  key: 0,
169
141
  "data-stream-markdown": "image-download-button",
170
- icon: unref(ICONS).download,
142
+ icon: unref(icons).download,
171
143
  name: unref(t)("button.download"),
172
144
  "icon-class": "test",
173
145
  "icon-width": 16,
@@ -176,37 +148,29 @@ var image_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
176
148
  onClick: handleDownload
177
149
  }, null, 8, ["icon", "name"])) : createCommentVNode("v-if", true)], 512)) : createCommentVNode("v-if", true),
178
150
  (isLoading.value || !imageLoaded.value) && !unref(isHardenUrl) ? (openBlock(), createBlock(spin_default, { key: 1 })) : createCommentVNode("v-if", true),
179
- createVNode(Transition, {
180
- name: "img-switch",
181
- mode: "out-in"
182
- }, {
183
- default: withCtx(() => [!isLoading.value && !unref(isHardenUrl) && typeof unref(transformedUrl) === "string" ? (openBlock(), createElementBlock("img", {
184
- ref_key: "imgRef",
185
- ref: imgRef,
186
- key: unref(transformedUrl),
187
- "data-stream-markdown": "image",
188
- src: unref(transformedUrl),
189
- alt: alt.value,
190
- title: title.value,
191
- style: normalizeStyle({
192
- opacity: isLoading.value ? 0 : 1,
193
- cursor: isLoading.value ? "default" : "pointer"
194
- }),
195
- loading: "lazy",
196
- decoding: "async",
197
- "data-zoomable": "",
198
- onLoad: handleLoaded,
199
- onError: handleError
200
- }, null, 44, _hoisted_2)) : unref(isHardenUrl) || loadError.value ? (openBlock(), createBlock(resolveDynamicComponent(Error.value), mergeProps({
201
- key: 1,
202
- variant: unref(isHardenUrl) ? "harden-image" : "image"
203
- }, props), {
204
- default: withCtx(() => [createTextVNode(toDisplayString(title.value), 1)]),
205
- _: 1
206
- }, 16, ["variant"])) : createCommentVNode("v-if", true)]),
151
+ !isLoading.value && !unref(isHardenUrl) && typeof unref(transformedUrl) === "string" ? (openBlock(), createBlock(image_default$1, {
152
+ key: unref(transformedUrl),
153
+ src: unref(transformedUrl),
154
+ alt: alt.value,
155
+ title: title.value,
156
+ preview: !fallbackAttempted.value && enablePreview.value,
157
+ controls: unref(controls),
158
+ onLoad: handleLoaded,
159
+ onError: handleError
160
+ }, null, 8, [
161
+ "src",
162
+ "alt",
163
+ "title",
164
+ "preview",
165
+ "controls"
166
+ ])) : unref(isHardenUrl) || loadError.value ? (openBlock(), createBlock(resolveDynamicComponent(Error.value), mergeProps({
167
+ key: 3,
168
+ variant: unref(isHardenUrl) ? "harden-image" : "image"
169
+ }, props), {
170
+ default: withCtx(() => [createTextVNode(toDisplayString(title.value), 1)]),
207
171
  _: 1
208
- })
209
- ]), showCaption.value && title.value ? (openBlock(), createElementBlock("figcaption", _hoisted_3, toDisplayString(title.value), 1)) : createCommentVNode("v-if", true)], 36);
172
+ }, 16, ["variant"])) : createCommentVNode("v-if", true)
173
+ ]), showCaption.value && title.value ? (openBlock(), createElementBlock("figcaption", _hoisted_2, toDisplayString(title.value), 1)) : createCommentVNode("v-if", true)], 36);
210
174
  };
211
175
  }
212
176
  });
@@ -0,0 +1,8 @@
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 };