vue-stream-markdown 0.1.6 → 0.2.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.
- package/README.md +1 -0
- package/dist/{blockquote-CxA1dQZe.js → blockquote-C68fU4lp.js} +2 -2
- package/dist/{button-B2ebQt7R.js → button-BDO3n0n_.js} +36 -28
- package/dist/button-CdUyT8T_.js +6 -0
- package/dist/{code-CPG6B2Cw.js → code-2Dd0EGfm.js} +10 -9
- package/dist/code-block-Co2UoPPS.js +10 -0
- package/dist/{code-block-I_Yd1Flg.js → code-block-hQLDeAmP.js} +66 -78
- package/dist/{composables-DWipZHuF.js → composables-DuQ72m6O.js} +402 -365
- package/dist/{delete-DQ21z5-F.js → delete-CB-OS2WZ.js} +2 -2
- package/dist/dropdown-BB3nyts8.js +6 -0
- package/dist/{emphasis-BjLkIDQB.js → emphasis-BmUoyBRK.js} +2 -2
- package/dist/{error-component-DSOVrE5J.js → error-component-CtZr0_st.js} +10 -4
- package/dist/error-component-biOT0E-h.js +5 -0
- package/dist/{footnote-definition-BmS8hchP.js → footnote-definition-55TjXXwa.js} +8 -7
- package/dist/{footnote-reference-Z2tITeCE.js → footnote-reference-lk2rvC4Q.js} +1 -1
- package/dist/{heading-BwBFJB_E.js → heading-BlOK3uk2.js} +2 -2
- package/dist/icon-PEivHbuv.js +67 -0
- package/dist/icon-mUoYnA6R.js +4 -0
- package/dist/image-B6Pw2YBI.js +9 -0
- package/dist/{image-IKvFWz2r.js → image-Bqn98dDB.js} +12 -11
- package/dist/{image-BLlap3ce.js → image-VMGQj_VU.js} +75 -59
- package/dist/{index.css → index.css/index.css} +6 -4
- package/dist/index.d.ts +224 -188
- package/dist/index.js +2280 -88
- package/dist/{inline-math-C2Ryxm-K.js → inline-math--lfq9WCW.js} +3 -2
- package/dist/{link-BXl7E_6o.js → link-DAOjAX6n.js} +4 -3
- package/dist/{list-DLcwTZns.js → list-EOEqkWEi.js} +2 -2
- package/dist/{list-item-H0eYeIdB.js → list-item-ZG4eadLp.js} +2 -2
- package/dist/{math-C-0d5PaJ.js → math-3zyrsc0O.js} +3 -2
- package/dist/{mermaid-0x6C2MY5.js → mermaid-VkvXdOuQ.js} +27 -15
- package/dist/modal-BKzT1TQI.js +4 -0
- package/dist/{modal-CEqU9Ubu.js → modal-DrPdD2g1.js} +2 -2
- package/dist/{node-list--v2wbxOo.js → node-list-D7eKaZGS.js} +1 -1
- package/dist/node-list-DtNGUnnI.js +4 -0
- package/dist/{paragraph-DRPfp6DV.js → paragraph-DEyWEFYY.js} +2 -2
- package/dist/previewers-DYnyVv4Y.js +10 -0
- package/dist/segmented-6Ch-Ees3.js +7 -0
- package/dist/{segmented-Drf8EBQD.js → segmented-CeLXMLZa.js} +1 -1
- package/dist/{shiki-CkwRD3TS.js → shiki-Dgoch7Q6.js} +3 -3
- package/dist/spin-DElj7VPm.js +3 -0
- package/dist/{strong-D6V4fCRG.js → strong-CFjQLk1h.js} +2 -2
- package/dist/table-20vwclBI.js +3 -0
- package/dist/{table-DLUgGL5Q.js → table-DI25RphX.js} +19 -23
- package/dist/tooltip-CAyfm3_l.js +4 -0
- package/dist/{tooltip-Bdt9-aQx.js → tooltip-CnO7OPL1.js} +1 -1
- package/dist/vanilla-BZ1fQWZQ.js +4 -0
- package/dist/{vanilla-BSgZTIo9.js → vanilla-YFxsSfhA.js} +1 -1
- package/dist/{yaml-3cd5rdJj.js → yaml-eOuEqAWX.js} +1 -1
- package/dist/{zoom-container-f44XxzOI.js → zoom-container-CrKx_BbS.js} +32 -32
- package/dist/zoom-container-j4kY9qX_.js +7 -0
- package/package.json +19 -12
- package/dist/button-C6zIegam.js +0 -5
- package/dist/code-block--1wFjtmu.js +0 -9
- package/dist/dropdown-CtWjJiAf.js +0 -5
- package/dist/error-component-DtcRn_0A.js +0 -4
- package/dist/image-aT9xxnwh.js +0 -8
- package/dist/modal-BDgfKnFl.js +0 -4
- package/dist/node-list-CHvX62Zh.js +0 -4
- package/dist/previewers-DsN-cTwd.js +0 -10
- package/dist/segmented-DIVDGfR5.js +0 -6
- package/dist/spin-DWkKEP0G.js +0 -3
- package/dist/table-B2mghd3l.js +0 -3
- package/dist/tooltip-DQ1-yPia.js +0 -4
- package/dist/vanilla-DUbuBied.js +0 -4
- package/dist/zoom-container-D2DxS8V5.js +0 -6
- /package/dist/{angular-CEQtRU3N.js → angular-CJL7ngrz.js} +0 -0
- /package/dist/{angular-component-QEWXDi5W.js → angular-component-COlDvuNE.js} +0 -0
- /package/dist/{apache-D1WYHuA2.js → apache-CVvmKdUn.js} +0 -0
- /package/dist/{arrow-left-DiHYz8df.js → arrow-left-Dqeb1_Um.js} +0 -0
- /package/dist/{asciidoc-BbV_Tvaj.js → asciidoc-DOmevTVz.js} +0 -0
- /package/dist/{assembly-DOdgqSeT.js → assembly-Bj0yQVcL.js} +0 -0
- /package/dist/{astro-I7-Zr25r.js → astro-DUti0QFn.js} +0 -0
- /package/dist/{bash-BC7HOdMh.js → bash-BfyNXzLO.js} +0 -0
- /package/dist/{batch-XAv7F3kV.js → batch-Dp6N3cFQ.js} +0 -0
- /package/dist/{bicep-B9IAZzHb.js → bicep-CEkCHedl.js} +0 -0
- /package/dist/{c-B3pMu4KG.js → c-CTmG9vr2.js} +0 -0
- /package/dist/{check-BjAiKMbo.js → check-C6XCJVPi.js} +0 -0
- /package/dist/{chevron-down-B4lkjpIC.js → chevron-down-aK8OlmM2.js} +0 -0
- /package/dist/{circle-alert-DlAafH7h.js → circle-alert-C5r2kfnc.js} +0 -0
- /package/dist/{clojure-DwxK-YDX.js → clojure-CHjliXb8.js} +0 -0
- /package/dist/{cmake-DtnmI6Z6.js → cmake-BsKz8Gt4.js} +0 -0
- /package/dist/{cobol--wWeXL_f.js → cobol-BvWYwPFU.js} +0 -0
- /package/dist/{code-lfRPXNJI.js → code-Bwlpb4mV.js} +0 -0
- /package/dist/{codeowners-Dtwyh-5g.js → codeowners-CfTM6yvs.js} +0 -0
- /package/dist/{coffeescript-BlF7y2QG.js → coffeescript-BDiFe_B2.js} +0 -0
- /package/dist/{copy-BTFPPhff.js → copy-VpvA-5VS.js} +0 -0
- /package/dist/{corner-down-left-jxlwq3ox.js → corner-down-left-B77X84F8.js} +0 -0
- /package/dist/{cpp-D_TbJeEH.js → cpp-BfV_KWzp.js} +0 -0
- /package/dist/{crystal-lJ2ZzJQu.js → crystal-BXT0x2i3.js} +0 -0
- /package/dist/{csharp-D-5hlCJT.js → csharp-C6rkxA6x.js} +0 -0
- /package/dist/{css-Drykp8uH.js → css-Drxb2cuf.js} +0 -0
- /package/dist/{csv-oLjD_o9N.js → csv-CHKRaQ9l.js} +0 -0
- /package/dist/{cue-BBe_9OA4.js → cue-DksiF2mE.js} +0 -0
- /package/dist/{d-CPNK2-3G.js → d-C8JgmiVc.js} +0 -0
- /package/dist/{dart-BNaQZJdJ.js → dart-BX3GppmW.js} +0 -0
- /package/dist/{database-DRAhifbf.js → database-Lmva5T5u.js} +0 -0
- /package/dist/{diff-D_vIvULL.js → diff-C61xHcnV.js} +0 -0
- /package/dist/{docker-BgJkkqCD.js → docker-Dws0Euuu.js} +0 -0
- /package/dist/{download-Bk2mYZyf.js → download-BB76SD0m.js} +0 -0
- /package/dist/{elixir-CTx5aScS.js → elixir-CtaCeLkf.js} +0 -0
- /package/dist/{elm-nHy9iRuu.js → elm-CFvSvo-7.js} +0 -0
- /package/dist/{en-US-K7SXR3gy.js → en-US-Cw-sFSiZ.js} +0 -0
- /package/dist/{env-CrWzDcwP.js → env-BwMmmmE5.js} +0 -0
- /package/dist/{erlang-CxR4-Qdt.js → erlang-DJRbvPSq.js} +0 -0
- /package/dist/{eye-DpAj1af-.js → eye-VjweBQoW.js} +0 -0
- /package/dist/{flip-horizontal-CEf7aAdM.js → flip-horizontal-D4IxaKDu.js} +0 -0
- /package/dist/{fortran-DhUZYzo3.js → fortran-D3Vf5GTV.js} +0 -0
- /package/dist/{fsharp-DyIvnsyH.js → fsharp-C2iQH5b1.js} +0 -0
- /package/dist/{git-D4qjCZtd.js → git-DN4z97-P.js} +0 -0
- /package/dist/{gleam-D-ovCBt_.js → gleam-PhX3VC_5.js} +0 -0
- /package/dist/{go-CEH2y3pJ.js → go-xPznl0oK.js} +0 -0
- /package/dist/{graphql-DbV-8_AJ.js → graphql-sVzb1_rA.js} +0 -0
- /package/dist/{groovy-B-_VVp4c.js → groovy-Bvkrc3eE.js} +0 -0
- /package/dist/{haml-Cnm_v56B.js → haml-Y_qa35Lk.js} +0 -0
- /package/dist/{handlebars-8EEQS0El.js → handlebars-Bo6cxn4k.js} +0 -0
- /package/dist/{haskell-cLvKQFrd.js → haskell-D8t1pxAr.js} +0 -0
- /package/dist/{haxe-DtCGwrr1.js → haxe-C-sdXVB9.js} +0 -0
- /package/dist/{html-DFU0myJP.js → html-D7bGx0Cz.js} +0 -0
- /package/dist/{html-C2NHp3i4.js → html-I3JKB_2G.js} +0 -0
- /package/dist/{http-DYO1Ugj7.js → http-Dj2NVTPO.js} +0 -0
- /package/dist/{image-DDiNDOKJ.js → image-DzKVFSaY.js} +0 -0
- /package/dist/{inline-code-Bqu84Yyu.js → inline-code-BZNE1ALQ.js} +0 -0
- /package/dist/{java-it6UCC5M.js → java-BulcCUaV.js} +0 -0
- /package/dist/{javascript-DVxfoa-a.js → javascript-DQlby440.js} +0 -0
- /package/dist/{jinja-CUKX2CXM.js → jinja-HRQZM5oZ.js} +0 -0
- /package/dist/{json-O68iFOiu.js → json-wUPUX2x-.js} +0 -0
- /package/dist/{julia-Dq3BwHeZ.js → julia-DjHYSWzj.js} +0 -0
- /package/dist/{kdl-CFVZba8u.js → kdl-CGLuct22.js} +0 -0
- /package/dist/{kotlin-BKhxhG0q.js → kotlin-CnR9eg7m.js} +0 -0
- /package/dist/{latex-B3hQqfJO.js → latex-CesDKd8G.js} +0 -0
- /package/dist/{less-Bw2JZJkw.js → less-215r2nUv.js} +0 -0
- /package/dist/{link-DCaSecEI.js → link-4JB1WqYS.js} +0 -0
- /package/dist/{liquid-BsGDMxjJ.js → liquid-FFTnvZwx.js} +0 -0
- /package/dist/{lisp-CnrazyOe.js → lisp-BNWIo3S3.js} +0 -0
- /package/dist/{log-BuRjhdbZ.js → log-C3BhnPjM.js} +0 -0
- /package/dist/{lua-CA97s0xX.js → lua-jBHQD7Fh.js} +0 -0
- /package/dist/{luau-hq6gk9_N.js → luau-CJKAqC3L.js} +0 -0
- /package/dist/{makefile-mNhrnPWo.js → makefile-DZmoFYpF.js} +0 -0
- /package/dist/{markdown-El6B7b99.js → markdown-BEABBw2C.js} +0 -0
- /package/dist/{marko-8nTOMumd.js → marko-DE7d51Q2.js} +0 -0
- /package/dist/{matlab-DuqengFv.js → matlab-n99nEoGl.js} +0 -0
- /package/dist/{maximize-B1-N6kOL.js → maximize-VRncBaHe.js} +0 -0
- /package/dist/{mermaid-Byu8TsQE.js → mermaid-Dv9_1JlU.js} +0 -0
- /package/dist/{minimize-CVVLdf2H.js → minimize-k8aU78V4.js} +0 -0
- /package/dist/{nextflow-DRCOPmGT.js → nextflow-DjdDVx1j.js} +0 -0
- /package/dist/{nginx-DTgW--wm.js → nginx-DH4jOOdC.js} +0 -0
- /package/dist/{nim-r-ftp-xj.js → nim-Cb0hPGv5.js} +0 -0
- /package/dist/{nix-BdWPBS1Z.js → nix-Bf4Vwv5v.js} +0 -0
- /package/dist/{ocaml-vXi6ujuu.js → ocaml-BwJ1z9S7.js} +0 -0
- /package/dist/{perl-C_g5vs30.js → perl-P6bAYvN9.js} +0 -0
- /package/dist/{php-C_b0sjdl.js → php-BGTGPBW1.js} +0 -0
- /package/dist/{postcss-Bsz3PPjI.js → postcss-D8a2Jx1D.js} +0 -0
- /package/dist/{powershell-D0kxdwKl.js → powershell-DNOnus4K.js} +0 -0
- /package/dist/{prisma-BocqbK7a.js → prisma-DquVk_GR.js} +0 -0
- /package/dist/{prolog-D-zd1rzT.js → prolog-BxJJGnOg.js} +0 -0
- /package/dist/{properties-Dds-063G.js → properties-DjauSeDE.js} +0 -0
- /package/dist/{proto-CzD9trm_.js → proto-3aU1SxxY.js} +0 -0
- /package/dist/{pug-B1V2RxQS.js → pug-OiYFRnMd.js} +0 -0
- /package/dist/{puppet-BcnVd0q5.js → puppet-8Sq4QIbE.js} +0 -0
- /package/dist/{python-BcZnB7mH.js → python-CBYVyhMm.js} +0 -0
- /package/dist/{r-CxSFFuvL.js → r-DfzMNaiK.js} +0 -0
- /package/dist/{racket-DJ_82PRG.js → racket-EkEmTJtD.js} +0 -0
- /package/dist/{razor-D7IkXHVQ.js → razor-BSd-q379.js} +0 -0
- /package/dist/{rotate-ccw-square-5sO65BY9.js → rotate-ccw-square-Dy0doneR.js} +0 -0
- /package/dist/{ruby-Cidk52Rl.js → ruby-CNn-W_DF.js} +0 -0
- /package/dist/{rust-DJvcpkbm.js → rust-BW9y4Ksf.js} +0 -0
- /package/dist/{sass-DTFDeixE.js → sass-Cyleqehh.js} +0 -0
- /package/dist/{scala-GlHhGi5O.js → scala-2YqaI_aG.js} +0 -0
- /package/dist/{scheme-rNcj5mL9.js → scheme-CWx6sQlk.js} +0 -0
- /package/dist/{shader-Df9eByRK.js → shader-CLzSKNOz.js} +0 -0
- /package/dist/{shiki-token-renderer-BMveKuYt.js → shiki-token-renderer-BjxmGfXH.js} +0 -0
- /package/dist/{solidity-CfuYjRuT.js → solidity-CgjJUETv.js} +0 -0
- /package/dist/{spin-D4Oi_m7j.js → spin-DzERwGWy.js} +0 -0
- /package/dist/{stata-BB5c_hbh.js → stata-CI3W9UFN.js} +0 -0
- /package/dist/{svelte-2ISqxu6B.js → svelte-D-OV6frL.js} +0 -0
- /package/dist/{swift-wpybyudn.js → swift-CcBwS4X5.js} +0 -0
- /package/dist/{table-iNA4la0w.js → table-BMlD4JhL.js} +0 -0
- /package/dist/{terraform-CLzhaCaX.js → terraform-BwM_GPTy.js} +0 -0
- /package/dist/{text-DoY1TIw3.js → text-DP2IAZrc.js} +0 -0
- /package/dist/{text-C0mKr3tC.js → text-hIzRUiKs.js} +0 -0
- /package/dist/{thematic-break-DXDZ5dcO.js → thematic-break-DIO-A8eY.js} +0 -0
- /package/dist/{theme.css → theme.css/theme.css} +0 -0
- /package/dist/{toml-DImd1uev.js → toml-CXJ7B-C1.js} +0 -0
- /package/dist/{twig-DEBVmtOq.js → twig-CXQNsdEx.js} +0 -0
- /package/dist/{typescript-Xo5tgeOd.js → typescript-0uiFYOof.js} +0 -0
- /package/dist/{typst-_Ui0vNYP.js → typst-gIi5b52E.js} +0 -0
- /package/dist/{v-Ch6vEAHG.js → v-Ct-HfSu0.js} +0 -0
- /package/dist/{vala-Ds_Ad1cC.js → vala-BZbAZj2w.js} +0 -0
- /package/dist/{verilog-CUqRomTC.js → verilog-NzFyyNP_.js} +0 -0
- /package/dist/{vim-BFUPh6oM.js → vim-CN-tRagW.js} +0 -0
- /package/dist/{vue-DzgIlbJ2.js → vue-BmLzKAao.js} +0 -0
- /package/dist/{xml-CmbQxaqc.js → xml-CBzkooc-.js} +0 -0
- /package/dist/{yaml-BhwCoLnZ.js → yaml-CT7I_lPM.js} +0 -0
- /package/dist/{zh-CN-CykTNqF_.js → zh-CN-B9lWRP8O.js} +0 -0
- /package/dist/{zig-Bmrmp8vo.js → zig-B7F-QzJD.js} +0 -0
- /package/dist/{zoomIn-CCKcyIEv.js → zoomIn-DlPeXZbT.js} +0 -0
- /package/dist/{zoomOut-BrSwLQZ_.js → zoomOut-Lvyw8SOW.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./composables-
|
|
2
|
-
import { t as node_list_default } from "./node-list
|
|
1
|
+
import "./composables-DuQ72m6O.js";
|
|
2
|
+
import { t as node_list_default } from "./node-list-D7eKaZGS.js";
|
|
3
3
|
import { createElementBlock, createVNode, defineComponent, mergeProps, openBlock } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/renderers/delete.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./composables-
|
|
2
|
-
import { t as node_list_default } from "./node-list
|
|
1
|
+
import "./composables-DuQ72m6O.js";
|
|
2
|
+
import { t as node_list_default } from "./node-list-D7eKaZGS.js";
|
|
3
3
|
import { createElementBlock, createVNode, defineComponent, mergeProps, openBlock } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/renderers/emphasis.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { W as useContext, y as useI18n } from "./composables-DuQ72m6O.js";
|
|
2
|
+
import { t as icon_default } from "./icon-PEivHbuv.js";
|
|
2
3
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, openBlock, renderSlot, resolveDynamicComponent, toDisplayString } from "vue";
|
|
3
4
|
|
|
4
5
|
//#region src/components/error-component.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -36,8 +37,10 @@ var error_component_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ *
|
|
|
36
37
|
}));
|
|
37
38
|
const icon = computed(() => {
|
|
38
39
|
if (props.icon) return props.icon;
|
|
39
|
-
if (icons.value[props.variant]) return
|
|
40
|
-
|
|
40
|
+
if (icons.value[props.variant]) return props.variant;
|
|
41
|
+
const name = props.variant.replace("harden-", "");
|
|
42
|
+
if (icons.value[name]) return name;
|
|
43
|
+
return "error";
|
|
41
44
|
});
|
|
42
45
|
const message = computed(() => props.message ? props.message : messages.value[props.variant] || messages.value.vanilla);
|
|
43
46
|
const isHarden = computed(() => {
|
|
@@ -46,7 +49,10 @@ var error_component_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ *
|
|
|
46
49
|
});
|
|
47
50
|
return (_ctx, _cache) => {
|
|
48
51
|
return openBlock(), createElementBlock("span", _hoisted_1, [
|
|
49
|
-
createElementVNode("div", _hoisted_2, [(openBlock(), createBlock(
|
|
52
|
+
createElementVNode("div", _hoisted_2, [typeof icon.value === "string" ? (openBlock(), createBlock(icon_default, {
|
|
53
|
+
key: 0,
|
|
54
|
+
icon: icon.value
|
|
55
|
+
}, null, 8, ["icon"])) : (openBlock(), createBlock(resolveDynamicComponent(icon.value), { key: 1 }))]),
|
|
50
56
|
isHarden.value ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("v-if", true),
|
|
51
57
|
createTextVNode(" [" + toDisplayString(message.value) + "] ", 1)
|
|
52
58
|
]);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as node_list_default } from "./node-list
|
|
3
|
-
import "./tooltip-
|
|
4
|
-
import { t as button_default } from "./button-
|
|
1
|
+
import { W as useContext, y as useI18n } from "./composables-DuQ72m6O.js";
|
|
2
|
+
import { t as node_list_default } from "./node-list-D7eKaZGS.js";
|
|
3
|
+
import "./tooltip-CnO7OPL1.js";
|
|
4
|
+
import { t as button_default } from "./button-BDO3n0n_.js";
|
|
5
|
+
import "./icon-PEivHbuv.js";
|
|
5
6
|
import { computed, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, openBlock, toDisplayString, unref } from "vue";
|
|
6
7
|
|
|
7
8
|
//#region src/components/renderers/footnote-definition.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -66,7 +67,7 @@ var footnote_definition_vue_vue_type_script_setup_true_lang_default = /* @__PURE
|
|
|
66
67
|
setup(__props) {
|
|
67
68
|
const props = __props;
|
|
68
69
|
const { t } = useI18n();
|
|
69
|
-
const {
|
|
70
|
+
const { getContainer } = useContext();
|
|
70
71
|
const id = computed(() => props.node.identifier);
|
|
71
72
|
const label = computed(() => props.node.label ?? id.value);
|
|
72
73
|
const title = computed(() => `${label.value}.`);
|
|
@@ -85,11 +86,11 @@ var footnote_definition_vue_vue_type_script_setup_true_lang_default = /* @__PURE
|
|
|
85
86
|
createVNode(button_default, {
|
|
86
87
|
"data-stream-markdown": "footnote-definition-button",
|
|
87
88
|
name: unref(t)("button.back"),
|
|
88
|
-
icon:
|
|
89
|
+
icon: "cornerDownLeft",
|
|
89
90
|
"icon-style": { color: "var(--primary)" },
|
|
90
91
|
"button-style": { padding: "0.25rem" },
|
|
91
92
|
onClick: scrollToReference
|
|
92
|
-
}, null, 8, ["name"
|
|
93
|
+
}, null, 8, ["name"])
|
|
93
94
|
], 8, _hoisted_1);
|
|
94
95
|
};
|
|
95
96
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { W as useContext } from "./composables-DuQ72m6O.js";
|
|
2
2
|
import { computed, createElementBlock, createElementVNode, defineComponent, openBlock, toDisplayString } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/renderers/footnote-reference.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./composables-
|
|
2
|
-
import { t as node_list_default } from "./node-list
|
|
1
|
+
import "./composables-DuQ72m6O.js";
|
|
2
|
+
import { t as node_list_default } from "./node-list-D7eKaZGS.js";
|
|
3
3
|
import { computed, createBlock, createVNode, defineComponent, mergeProps, openBlock, resolveDynamicComponent, withCtx } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/renderers/heading.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { W as useContext } from "./composables-DuQ72m6O.js";
|
|
2
|
+
import { computed, createElementBlock, createVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, unref } from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/icon.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var icon_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "icon",
|
|
7
|
+
props: {
|
|
8
|
+
icon: {
|
|
9
|
+
type: null,
|
|
10
|
+
required: true
|
|
11
|
+
},
|
|
12
|
+
width: {
|
|
13
|
+
type: Number,
|
|
14
|
+
required: false,
|
|
15
|
+
default: 14
|
|
16
|
+
},
|
|
17
|
+
height: {
|
|
18
|
+
type: Number,
|
|
19
|
+
required: false,
|
|
20
|
+
default: 14
|
|
21
|
+
},
|
|
22
|
+
class: {
|
|
23
|
+
type: [
|
|
24
|
+
String,
|
|
25
|
+
Array,
|
|
26
|
+
Object
|
|
27
|
+
],
|
|
28
|
+
required: false
|
|
29
|
+
},
|
|
30
|
+
style: {
|
|
31
|
+
type: Object,
|
|
32
|
+
required: false
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
setup(__props) {
|
|
36
|
+
const props = __props;
|
|
37
|
+
const { icons } = useContext();
|
|
38
|
+
const Icon = computed(() => typeof props.icon === "string" ? icons.value[props.icon] : props.icon);
|
|
39
|
+
const iconStyle = computed(() => ({
|
|
40
|
+
width: `${props.width}px`,
|
|
41
|
+
height: `${props.height}px`
|
|
42
|
+
}));
|
|
43
|
+
return (_ctx, _cache) => {
|
|
44
|
+
return openBlock(), createElementBlock("div", {
|
|
45
|
+
"data-stream-markdown": "icon",
|
|
46
|
+
style: normalizeStyle(iconStyle.value)
|
|
47
|
+
}, [createVNode(unref(Icon), {
|
|
48
|
+
width: __props.width,
|
|
49
|
+
height: __props.height,
|
|
50
|
+
class: normalizeClass(props.class),
|
|
51
|
+
style: normalizeStyle(__props.style)
|
|
52
|
+
}, null, 8, [
|
|
53
|
+
"width",
|
|
54
|
+
"height",
|
|
55
|
+
"class",
|
|
56
|
+
"style"
|
|
57
|
+
])], 4);
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region src/components/icon.vue
|
|
64
|
+
var icon_default = icon_vue_vue_type_script_setup_true_lang_default;
|
|
65
|
+
|
|
66
|
+
//#endregion
|
|
67
|
+
export { icon_default as t };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "./composables-DuQ72m6O.js";
|
|
2
|
+
import "./tooltip-CnO7OPL1.js";
|
|
3
|
+
import "./button-BDO3n0n_.js";
|
|
4
|
+
import "./icon-PEivHbuv.js";
|
|
5
|
+
import "./modal-DrPdD2g1.js";
|
|
6
|
+
import "./zoom-container-CrKx_BbS.js";
|
|
7
|
+
import { t as image_default } from "./image-VMGQj_VU.js";
|
|
8
|
+
|
|
9
|
+
export { image_default as default };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./tooltip-
|
|
3
|
-
import { t as button_default } from "./button-
|
|
4
|
-
import "./
|
|
5
|
-
import
|
|
6
|
-
import "./
|
|
7
|
-
import
|
|
8
|
-
import { t as
|
|
1
|
+
import { B as saveImage, U as useControls, i as useSanitizers, y as useI18n } from "./composables-DuQ72m6O.js";
|
|
2
|
+
import "./tooltip-CnO7OPL1.js";
|
|
3
|
+
import { t as button_default } from "./button-BDO3n0n_.js";
|
|
4
|
+
import "./icon-PEivHbuv.js";
|
|
5
|
+
import "./modal-DrPdD2g1.js";
|
|
6
|
+
import { t as error_component_default } from "./error-component-CtZr0_st.js";
|
|
7
|
+
import "./zoom-container-CrKx_BbS.js";
|
|
8
|
+
import { t as image_default$1 } from "./image-VMGQj_VU.js";
|
|
9
|
+
import { t as spin_default } from "./spin-DzERwGWy.js";
|
|
9
10
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeProps, normalizeStyle, openBlock, ref, resolveDynamicComponent, toDisplayString, toRefs, unref, withCtx } from "vue";
|
|
10
11
|
|
|
11
12
|
//#region src/components/renderers/image.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -73,7 +74,6 @@ var image_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
73
74
|
setup(__props) {
|
|
74
75
|
const props = __props;
|
|
75
76
|
const { t } = useI18n();
|
|
76
|
-
const { icons } = useContext();
|
|
77
77
|
const { controls, hardenOptions } = toRefs(props);
|
|
78
78
|
const { isControlEnabled } = useControls({ controls });
|
|
79
79
|
const maskRef = ref();
|
|
@@ -139,14 +139,14 @@ var image_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
139
139
|
}, [!isLoading.value && enableDownload.value ? (openBlock(), createBlock(button_default, {
|
|
140
140
|
key: 0,
|
|
141
141
|
"data-stream-markdown": "image-download-button",
|
|
142
|
-
icon:
|
|
142
|
+
icon: "download",
|
|
143
143
|
name: unref(t)("button.download"),
|
|
144
144
|
"icon-class": "test",
|
|
145
145
|
"icon-width": 16,
|
|
146
146
|
"icon-height": 16,
|
|
147
147
|
"button-style": { backgroundColor: "color-mix(in oklab, var(--background) 90%, transparent)" },
|
|
148
148
|
onClick: handleDownload
|
|
149
|
-
}, null, 8, ["
|
|
149
|
+
}, null, 8, ["name"])) : createCommentVNode("v-if", true)], 512)) : createCommentVNode("v-if", true),
|
|
150
150
|
(isLoading.value || !imageLoaded.value) && !unref(isHardenUrl) ? (openBlock(), createBlock(spin_default, { key: 1 })) : createCommentVNode("v-if", true),
|
|
151
151
|
!isLoading.value && !unref(isHardenUrl) && typeof unref(transformedUrl) === "string" ? (openBlock(), createBlock(image_default$1, {
|
|
152
152
|
key: unref(transformedUrl),
|
|
@@ -156,6 +156,7 @@ var image_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
156
156
|
preview: !fallbackAttempted.value && enablePreview.value,
|
|
157
157
|
controls: unref(controls),
|
|
158
158
|
"transform-harden-url": unref(transformHardenUrl),
|
|
159
|
+
"node-props": props,
|
|
159
160
|
onLoad: handleLoaded,
|
|
160
161
|
onError: handleError
|
|
161
162
|
}, null, 8, [
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as saveImage, U as useControls, W as useContext, m as useMediumZoom, y as useI18n } from "./composables-DuQ72m6O.js";
|
|
2
2
|
import { n as treeFlatFilter } from "./dist-CYkm26BF.js";
|
|
3
|
-
import { t as button_default } from "./button-
|
|
4
|
-
import { t as modal_default } from "./modal-
|
|
5
|
-
import { t as zoom_container_default } from "./zoom-container-
|
|
6
|
-
import { Fragment, computed, createBlock,
|
|
3
|
+
import { t as button_default } from "./button-BDO3n0n_.js";
|
|
4
|
+
import { t as modal_default } from "./modal-DrPdD2g1.js";
|
|
5
|
+
import { t as zoom_container_default } from "./zoom-container-CrKx_BbS.js";
|
|
6
|
+
import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, normalizeStyle, openBlock, ref, renderList, toRefs, unref, watch, withCtx } from "vue";
|
|
7
7
|
import { useCycleList } from "@vueuse/core";
|
|
8
8
|
|
|
9
9
|
//#region src/components/image.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -50,6 +50,10 @@ var image_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
50
50
|
transformHardenUrl: {
|
|
51
51
|
type: Function,
|
|
52
52
|
required: false
|
|
53
|
+
},
|
|
54
|
+
nodeProps: {
|
|
55
|
+
type: Object,
|
|
56
|
+
required: true
|
|
53
57
|
}
|
|
54
58
|
},
|
|
55
59
|
emits: ["load", "error"],
|
|
@@ -59,7 +63,7 @@ var image_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
59
63
|
const { margin, controls } = toRefs(props);
|
|
60
64
|
const { t } = useI18n();
|
|
61
65
|
const { icons, parsedNodes } = useContext();
|
|
62
|
-
const { isControlEnabled, getControlValue } = useControls({ controls });
|
|
66
|
+
const { isControlEnabled, getControlValue, resolveControls } = useControls({ controls });
|
|
63
67
|
const imageNodes = computed(() => treeFlatFilter(parsedNodes.value, (node) => node.type === "image" && !node.loading));
|
|
64
68
|
const imageList = computed(() => {
|
|
65
69
|
return [...new Set(imageNodes.value.map((node) => node.url))].filter((url) => props.transformHardenUrl ? props.transformHardenUrl(url) : url).filter(Boolean);
|
|
@@ -96,6 +100,61 @@ var image_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
96
100
|
transition: "transform 0.3s ease",
|
|
97
101
|
...elementStyle.value
|
|
98
102
|
}));
|
|
103
|
+
const builtinControls = computed(() => [
|
|
104
|
+
{
|
|
105
|
+
key: "download",
|
|
106
|
+
icon: "download",
|
|
107
|
+
name: t("button.download"),
|
|
108
|
+
onClick: download,
|
|
109
|
+
visible: () => !!imageSrc.value && enableDownload.value
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
key: "previous",
|
|
113
|
+
icon: "arrowLeft",
|
|
114
|
+
name: t("button.previous"),
|
|
115
|
+
onClick: () => prev(),
|
|
116
|
+
visible: () => imageList.value.length > 1 && enableCarousel.value
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
key: "next",
|
|
120
|
+
icon: icons.value.arrowRight ? "arrowRight" : "arrowLeft",
|
|
121
|
+
name: t("button.next"),
|
|
122
|
+
onClick: () => next(),
|
|
123
|
+
buttonStyle: icons.value.arrowRight ? void 0 : { transform: "scaleX(-1)" },
|
|
124
|
+
visible: () => imageList.value.length > 1 && enableCarousel.value
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
key: "flipX",
|
|
128
|
+
icon: "flipHorizontal",
|
|
129
|
+
name: t("button.flipX"),
|
|
130
|
+
onClick: flipHorizontal,
|
|
131
|
+
visible: () => enableFlip.value
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
key: "flipY",
|
|
135
|
+
icon: icons.value.flipVertical ? "flipVertical" : "flipHorizontal",
|
|
136
|
+
name: t("button.flipY"),
|
|
137
|
+
onClick: flipVertical,
|
|
138
|
+
buttonStyle: icons.value.flipVertical ? void 0 : { rotate: "90deg" },
|
|
139
|
+
visible: () => enableFlip.value
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
key: "rotateLeft",
|
|
143
|
+
icon: "rotateLeft",
|
|
144
|
+
name: t("button.rotateLeft"),
|
|
145
|
+
onClick: rotateLeft,
|
|
146
|
+
visible: () => enableRotate.value
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
key: "rotateRight",
|
|
150
|
+
icon: icons.value.rotateRight ? "rotateRight" : "rotateLeft",
|
|
151
|
+
name: t("button.rotateRight"),
|
|
152
|
+
onClick: rotateRight,
|
|
153
|
+
buttonStyle: icons.value.rotateRight ? void 0 : { transform: "scaleX(-1)" },
|
|
154
|
+
visible: () => enableRotate.value
|
|
155
|
+
}
|
|
156
|
+
]);
|
|
157
|
+
const zoomControls = computed(() => resolveControls("image", builtinControls.value, props.nodeProps));
|
|
99
158
|
function handleLoad(event) {
|
|
100
159
|
loaded.value = true;
|
|
101
160
|
emits("load", event);
|
|
@@ -151,7 +210,7 @@ var image_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
151
210
|
onClick: handleOpen
|
|
152
211
|
}, null, 40, _hoisted_1), createVNode(modal_default, {
|
|
153
212
|
open: open.value,
|
|
154
|
-
"onUpdate:open": _cache[
|
|
213
|
+
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => open.value = $event),
|
|
155
214
|
transition: "",
|
|
156
215
|
"modal-style": { backgroundColor: "rgba(0, 0, 0, 0.45)" },
|
|
157
216
|
close: handleClose
|
|
@@ -166,58 +225,15 @@ var image_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
166
225
|
},
|
|
167
226
|
onClick: handleClose
|
|
168
227
|
}, {
|
|
169
|
-
controls: withCtx((buttonProps) => [
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
onClick: _cache[0] || (_cache[0] = () => unref(prev)())
|
|
179
|
-
}), null, 16, ["icon", "name"])) : createCommentVNode("v-if", true),
|
|
180
|
-
imageList.value.length > 1 && enableCarousel.value ? (openBlock(), createBlock(button_default, mergeProps({ key: 2 }, buttonProps, {
|
|
181
|
-
icon: unref(icons).arrowRight || unref(icons).arrowLeft,
|
|
182
|
-
name: unref(t)("button.next"),
|
|
183
|
-
"button-style": { transform: unref(icons).arrowRight ? void 0 : "scaleX(-1)" },
|
|
184
|
-
onClick: _cache[1] || (_cache[1] = () => unref(next)())
|
|
185
|
-
}), null, 16, [
|
|
186
|
-
"icon",
|
|
187
|
-
"name",
|
|
188
|
-
"button-style"
|
|
189
|
-
])) : createCommentVNode("v-if", true),
|
|
190
|
-
enableFlip.value ? (openBlock(), createBlock(button_default, mergeProps({ key: 3 }, buttonProps, {
|
|
191
|
-
icon: unref(icons).flipHorizontal,
|
|
192
|
-
name: unref(t)("button.flipX"),
|
|
193
|
-
onClick: flipHorizontal
|
|
194
|
-
}), null, 16, ["icon", "name"])) : createCommentVNode("v-if", true),
|
|
195
|
-
enableFlip.value ? (openBlock(), createBlock(button_default, mergeProps({ key: 4 }, buttonProps, {
|
|
196
|
-
icon: unref(icons).flipVertical || unref(icons).flipHorizontal,
|
|
197
|
-
name: unref(t)("button.flipY"),
|
|
198
|
-
"button-style": { rotate: unref(icons).flipVertical ? void 0 : "90deg" },
|
|
199
|
-
onClick: flipVertical
|
|
200
|
-
}), null, 16, [
|
|
201
|
-
"icon",
|
|
202
|
-
"name",
|
|
203
|
-
"button-style"
|
|
204
|
-
])) : createCommentVNode("v-if", true),
|
|
205
|
-
enableRotate.value ? (openBlock(), createBlock(button_default, mergeProps({ key: 5 }, buttonProps, {
|
|
206
|
-
icon: unref(icons).rotateLeft,
|
|
207
|
-
name: unref(t)("button.rotateLeft"),
|
|
208
|
-
onClick: rotateLeft
|
|
209
|
-
}), null, 16, ["icon", "name"])) : createCommentVNode("v-if", true),
|
|
210
|
-
enableRotate.value ? (openBlock(), createBlock(button_default, mergeProps({ key: 6 }, buttonProps, {
|
|
211
|
-
icon: unref(icons).rotateRight || unref(icons).rotateLeft,
|
|
212
|
-
name: unref(t)("button.rotateRight"),
|
|
213
|
-
"button-style": { transform: unref(icons).rotateRight ? void 0 : "scaleX(-1)" },
|
|
214
|
-
onClick: rotateRight
|
|
215
|
-
}), null, 16, [
|
|
216
|
-
"icon",
|
|
217
|
-
"name",
|
|
218
|
-
"button-style"
|
|
219
|
-
])) : createCommentVNode("v-if", true)
|
|
220
|
-
]),
|
|
228
|
+
controls: withCtx((buttonProps) => [(openBlock(true), createElementBlock(Fragment, null, renderList(zoomControls.value, (item) => {
|
|
229
|
+
return openBlock(), createBlock(button_default, mergeProps({ ref_for: true }, {
|
|
230
|
+
...buttonProps,
|
|
231
|
+
...item
|
|
232
|
+
}, {
|
|
233
|
+
key: item.key,
|
|
234
|
+
onClick: item.onClick
|
|
235
|
+
}), null, 16, ["onClick"]);
|
|
236
|
+
}), 128))]),
|
|
221
237
|
default: withCtx(() => [createElementVNode("img", {
|
|
222
238
|
ref_key: "_zoomElementRef",
|
|
223
239
|
ref: _zoomElementRef,
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
color: var(--popover-foreground);
|
|
49
49
|
border: 1px solid var(--border);
|
|
50
50
|
border-radius: 0.5rem;
|
|
51
|
-
z-index:
|
|
51
|
+
z-index: 110;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.stream-markdown [data-stream-markdown='tooltip-overlay'] {
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
|
|
251
251
|
.stream-markdown [data-stream-markdown='zoom-controls'] {
|
|
252
252
|
position: absolute;
|
|
253
|
-
z-index:
|
|
253
|
+
z-index: 1;
|
|
254
254
|
display: flex;
|
|
255
255
|
align-items: center;
|
|
256
256
|
gap: 0.25rem;
|
|
@@ -270,7 +270,7 @@
|
|
|
270
270
|
margin-block: 1rem;
|
|
271
271
|
border-radius: 0.75rem;
|
|
272
272
|
border: 1px solid var(--border);
|
|
273
|
-
overflow:
|
|
273
|
+
overflow: clip;
|
|
274
274
|
}
|
|
275
275
|
|
|
276
276
|
.stream-markdown [data-stream-markdown='code-block'][data-collapsed='true'] [data-stream-markdown='code-block-header'] {
|
|
@@ -278,7 +278,9 @@
|
|
|
278
278
|
}
|
|
279
279
|
|
|
280
280
|
.stream-markdown [data-stream-markdown='code-block-header'] {
|
|
281
|
-
position:
|
|
281
|
+
position: sticky;
|
|
282
|
+
top: 0;
|
|
283
|
+
z-index: 5;
|
|
282
284
|
display: flex;
|
|
283
285
|
justify-content: space-between;
|
|
284
286
|
align-items: center;
|