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.
- package/dist/{blockquote-bkADuiGm.js → blockquote-CxA1dQZe.js} +4 -3
- package/dist/{button-BQhuT7wh.js → button-B2ebQt7R.js} +1 -1
- package/dist/button-C6zIegam.js +5 -0
- package/dist/{code-DF8PTNol.js → code-CPG6B2Cw.js} +11 -11
- package/dist/code-block--1wFjtmu.js +9 -0
- package/dist/{code-block-Dm2wl0cb.js → code-block-I_Yd1Flg.js} +8 -8
- package/dist/{composables-yny5gJo3.js → composables-DWipZHuF.js} +636 -625
- package/dist/corner-down-left-jxlwq3ox.js +24 -0
- package/dist/{delete-D17YBeI-.js → delete-DQ21z5-F.js} +4 -3
- package/dist/dist-CYkm26BF.js +119 -0
- package/dist/dropdown-CtWjJiAf.js +5 -0
- package/dist/{emphasis-B-2R_0Q5.js → emphasis-BjLkIDQB.js} +4 -3
- package/dist/{en-US-Kw2LYAMk.js → en-US-K7SXR3gy.js} +2 -1
- package/dist/{error-component-Bb0gIZsx.js → error-component-DSOVrE5J.js} +1 -1
- package/dist/error-component-DtcRn_0A.js +4 -0
- package/dist/footnote-definition-BmS8hchP.js +103 -0
- package/dist/footnote-reference-Z2tITeCE.js +86 -0
- package/dist/{heading-DyJIwNrN.js → heading-BwBFJB_E.js} +4 -3
- package/dist/{html-DXNqMvt_.js → html-DFU0myJP.js} +2 -2
- package/dist/{image-DvOGBhi-.js → image-BLlap3ce.js} +12 -97
- package/dist/{image-BPhFn1xp.js → image-IKvFWz2r.js} +14 -12
- package/dist/image-aT9xxnwh.js +8 -0
- package/dist/index.css +25 -0
- package/dist/index.d.ts +138 -73
- package/dist/index.js +283 -38
- package/dist/{inline-code-C44UJ2TH.js → inline-code-Bqu84Yyu.js} +2 -2
- package/dist/{inline-math-wO1rMt9T.js → inline-math-C2Ryxm-K.js} +4 -4
- package/dist/{link-sGo7CEll.js → link-BXl7E_6o.js} +6 -6
- package/dist/{list-C0I1ysSI.js → list-DLcwTZns.js} +4 -3
- package/dist/{list-item-BoC2wKBL.js → list-item-H0eYeIdB.js} +4 -3
- package/dist/{math-BlqtUf2r.js → math-C-0d5PaJ.js} +4 -4
- package/dist/{mermaid-Ka1jnXrR.js → mermaid-0x6C2MY5.js} +12 -10
- package/dist/modal-BDgfKnFl.js +4 -0
- package/dist/{modal-Rc_RoeYA.js → modal-CEqU9Ubu.js} +3 -3
- package/dist/{node-list-YhpHXdM_.js → node-list--v2wbxOo.js} +19 -10
- package/dist/node-list-CHvX62Zh.js +4 -0
- package/dist/{paragraph-BN-4-Dn7.js → paragraph-DRPfp6DV.js} +4 -3
- package/dist/previewers-DsN-cTwd.js +10 -0
- package/dist/segmented-DIVDGfR5.js +6 -0
- package/dist/{segmented-CaC54iz_.js → segmented-Drf8EBQD.js} +1 -1
- package/dist/{shiki-sJNZTn1K.js → shiki-CkwRD3TS.js} +5 -5
- package/dist/spin-DWkKEP0G.js +3 -0
- package/dist/{strong-NdAS3VjP.js → strong-D6V4fCRG.js} +4 -3
- package/dist/table-B2mghd3l.js +3 -0
- package/dist/{table-CWX5B2i1.js → table-DLUgGL5Q.js} +8 -8
- package/dist/{text-DpleLvNh.js → text-DoY1TIw3.js} +2 -2
- package/dist/{thematic-break-D5GvzU5S.js → thematic-break-DXDZ5dcO.js} +2 -2
- package/dist/{tooltip-Bgbzbk4Q.js → tooltip-Bdt9-aQx.js} +1 -1
- package/dist/tooltip-DQ1-yPia.js +4 -0
- package/dist/{vanilla-BTOVqKl7.js → vanilla-BSgZTIo9.js} +1 -1
- package/dist/vanilla-DUbuBied.js +4 -0
- package/dist/{yaml-y0snrPRx.js → yaml-3cd5rdJj.js} +3 -3
- package/dist/{zh-CN-Dfow4Yn2.js → zh-CN-CykTNqF_.js} +3 -2
- package/dist/zoom-container-D2DxS8V5.js +6 -0
- package/dist/{zoom-container-B1qbA-7z.js → zoom-container-f44XxzOI.js} +2 -2
- package/package.json +1 -1
- package/dist/button-JYC8d-B-.js +0 -5
- package/dist/code-block-BhMDz2ZL.js +0 -9
- package/dist/dropdown-Y5_Z4a_u.js +0 -5
- package/dist/error-component-DEIWb6kB.js +0 -4
- package/dist/image-DXBD47sF.js +0 -8
- package/dist/modal-Duhc-vVa.js +0 -4
- package/dist/node-list-C1je2nLd.js +0 -3
- package/dist/previewers-D0VVcdjL.js +0 -10
- package/dist/segmented-XdoLnuuq.js +0 -6
- package/dist/spin-wM2KE8mO.js +0 -3
- package/dist/table-R9gmCXm_.js +0 -3
- package/dist/tooltip-BJDs-A8d.js +0 -4
- package/dist/vanilla-DA5bwIkr.js +0 -4
- package/dist/zoom-container-KztuE4ri.js +0 -6
- /package/dist/{angular-Mip1mspI.js → angular-CEQtRU3N.js} +0 -0
- /package/dist/{angular-component-Cq5UbX7R.js → angular-component-QEWXDi5W.js} +0 -0
- /package/dist/{apache-BSq7fX32.js → apache-D1WYHuA2.js} +0 -0
- /package/dist/{arrow-left-C5s0Sn8o.js → arrow-left-DiHYz8df.js} +0 -0
- /package/dist/{asciidoc-DS-PMOLv.js → asciidoc-BbV_Tvaj.js} +0 -0
- /package/dist/{assembly-BPatlOM7.js → assembly-DOdgqSeT.js} +0 -0
- /package/dist/{astro-CSD_ZjXp.js → astro-I7-Zr25r.js} +0 -0
- /package/dist/{bash-RITislE1.js → bash-BC7HOdMh.js} +0 -0
- /package/dist/{batch-DWPShYhN.js → batch-XAv7F3kV.js} +0 -0
- /package/dist/{bicep-C6BEHfP6.js → bicep-B9IAZzHb.js} +0 -0
- /package/dist/{c-DNo3tsNy.js → c-B3pMu4KG.js} +0 -0
- /package/dist/{check-BfpxIITS.js → check-BjAiKMbo.js} +0 -0
- /package/dist/{chevron-down-LeNeemjn.js → chevron-down-B4lkjpIC.js} +0 -0
- /package/dist/{circle-alert-BjDuIzgc.js → circle-alert-DlAafH7h.js} +0 -0
- /package/dist/{clojure-C1DEYHW0.js → clojure-DwxK-YDX.js} +0 -0
- /package/dist/{cmake-B69mdXcH.js → cmake-DtnmI6Z6.js} +0 -0
- /package/dist/{cobol-qmL-zIWi.js → cobol--wWeXL_f.js} +0 -0
- /package/dist/{code-D9CiymEK.js → code-lfRPXNJI.js} +0 -0
- /package/dist/{codeowners-Crklt5nF.js → codeowners-Dtwyh-5g.js} +0 -0
- /package/dist/{coffeescript-k3huSp23.js → coffeescript-BlF7y2QG.js} +0 -0
- /package/dist/{copy-C4580J93.js → copy-BTFPPhff.js} +0 -0
- /package/dist/{cpp-Cn3MB35e.js → cpp-D_TbJeEH.js} +0 -0
- /package/dist/{crystal-D5aGETSx.js → crystal-lJ2ZzJQu.js} +0 -0
- /package/dist/{csharp-CgkTkbPx.js → csharp-D-5hlCJT.js} +0 -0
- /package/dist/{css-DRH4n_IV.js → css-Drykp8uH.js} +0 -0
- /package/dist/{csv-D5nNTIzO.js → csv-oLjD_o9N.js} +0 -0
- /package/dist/{cue-B5mC88-N.js → cue-BBe_9OA4.js} +0 -0
- /package/dist/{d-BdQRMgma.js → d-CPNK2-3G.js} +0 -0
- /package/dist/{dart-BGnfn0NN.js → dart-BNaQZJdJ.js} +0 -0
- /package/dist/{database-Ca1VGX7u.js → database-DRAhifbf.js} +0 -0
- /package/dist/{diff-DVaTsnqu.js → diff-D_vIvULL.js} +0 -0
- /package/dist/{docker-E47qYlmL.js → docker-BgJkkqCD.js} +0 -0
- /package/dist/{download-DytrK56a.js → download-Bk2mYZyf.js} +0 -0
- /package/dist/{elixir-C-jqqu6q.js → elixir-CTx5aScS.js} +0 -0
- /package/dist/{elm-CmeHvaWl.js → elm-nHy9iRuu.js} +0 -0
- /package/dist/{env-Ck1BHoxR.js → env-CrWzDcwP.js} +0 -0
- /package/dist/{erlang-CIP8kpGJ.js → erlang-CxR4-Qdt.js} +0 -0
- /package/dist/{eye-TaEwQS2Z.js → eye-DpAj1af-.js} +0 -0
- /package/dist/{flip-horizontal-BFWjqDbQ.js → flip-horizontal-CEf7aAdM.js} +0 -0
- /package/dist/{fortran-DJVP2s7V.js → fortran-DhUZYzo3.js} +0 -0
- /package/dist/{fsharp-Bp6mUcG0.js → fsharp-DyIvnsyH.js} +0 -0
- /package/dist/{git-BDcqJ1Gp.js → git-D4qjCZtd.js} +0 -0
- /package/dist/{gleam-JLiZVlev.js → gleam-D-ovCBt_.js} +0 -0
- /package/dist/{go-ClcCiS7e.js → go-CEH2y3pJ.js} +0 -0
- /package/dist/{graphql-D2RDo-DF.js → graphql-DbV-8_AJ.js} +0 -0
- /package/dist/{groovy-DLZBw8xE.js → groovy-B-_VVp4c.js} +0 -0
- /package/dist/{haml-Da74jRwZ.js → haml-Cnm_v56B.js} +0 -0
- /package/dist/{handlebars-CNgS57Sz.js → handlebars-8EEQS0El.js} +0 -0
- /package/dist/{haskell-DCvfD6VB.js → haskell-cLvKQFrd.js} +0 -0
- /package/dist/{haxe-CHVK1TId.js → haxe-DtCGwrr1.js} +0 -0
- /package/dist/{html-Du4235Z-.js → html-C2NHp3i4.js} +0 -0
- /package/dist/{http-B8VAFeQ5.js → http-DYO1Ugj7.js} +0 -0
- /package/dist/{image-D8MZj4W5.js → image-DDiNDOKJ.js} +0 -0
- /package/dist/{java-CoSdnK1N.js → java-it6UCC5M.js} +0 -0
- /package/dist/{javascript-BCDeVll0.js → javascript-DVxfoa-a.js} +0 -0
- /package/dist/{jinja-DYbiqZy0.js → jinja-CUKX2CXM.js} +0 -0
- /package/dist/{json-CdzCyWJA.js → json-O68iFOiu.js} +0 -0
- /package/dist/{julia-pswJGtpP.js → julia-Dq3BwHeZ.js} +0 -0
- /package/dist/{kdl-M8rfQ85l.js → kdl-CFVZba8u.js} +0 -0
- /package/dist/{kotlin-CfCV33oB.js → kotlin-BKhxhG0q.js} +0 -0
- /package/dist/{latex-DK8DFhTm.js → latex-B3hQqfJO.js} +0 -0
- /package/dist/{less-BFnNZiIs.js → less-Bw2JZJkw.js} +0 -0
- /package/dist/{link-C7eU_yi-.js → link-DCaSecEI.js} +0 -0
- /package/dist/{liquid-C8h46DoX.js → liquid-BsGDMxjJ.js} +0 -0
- /package/dist/{lisp-C3FbGuD1.js → lisp-CnrazyOe.js} +0 -0
- /package/dist/{log-D-O3FXf2.js → log-BuRjhdbZ.js} +0 -0
- /package/dist/{lua-BC_aR1_i.js → lua-CA97s0xX.js} +0 -0
- /package/dist/{luau-DFUOrNN7.js → luau-hq6gk9_N.js} +0 -0
- /package/dist/{makefile-Ck67veVV.js → makefile-mNhrnPWo.js} +0 -0
- /package/dist/{markdown-BX13X3kd.js → markdown-El6B7b99.js} +0 -0
- /package/dist/{marko-CQE8YTCc.js → marko-8nTOMumd.js} +0 -0
- /package/dist/{matlab-Bd9O2Ml3.js → matlab-DuqengFv.js} +0 -0
- /package/dist/{maximize-CDZ9rnYF.js → maximize-B1-N6kOL.js} +0 -0
- /package/dist/{mermaid-Dv-Pr0W-.js → mermaid-Byu8TsQE.js} +0 -0
- /package/dist/{minimize-B9ER7p2X.js → minimize-CVVLdf2H.js} +0 -0
- /package/dist/{nextflow-D3lDq1Yi.js → nextflow-DRCOPmGT.js} +0 -0
- /package/dist/{nginx-CgsqCL4l.js → nginx-DTgW--wm.js} +0 -0
- /package/dist/{nim-BJdSu3c6.js → nim-r-ftp-xj.js} +0 -0
- /package/dist/{nix-B7K_D6CN.js → nix-BdWPBS1Z.js} +0 -0
- /package/dist/{ocaml-gYS1Y45s.js → ocaml-vXi6ujuu.js} +0 -0
- /package/dist/{perl-DXFhFWhI.js → perl-C_g5vs30.js} +0 -0
- /package/dist/{php-We35bF4E.js → php-C_b0sjdl.js} +0 -0
- /package/dist/{postcss-BWovY_YV.js → postcss-Bsz3PPjI.js} +0 -0
- /package/dist/{powershell-C6teiBsq.js → powershell-D0kxdwKl.js} +0 -0
- /package/dist/{prisma-UyJEg0_X.js → prisma-BocqbK7a.js} +0 -0
- /package/dist/{prolog-YZsPgdnw.js → prolog-D-zd1rzT.js} +0 -0
- /package/dist/{properties-DaPbL0e2.js → properties-Dds-063G.js} +0 -0
- /package/dist/{proto-1LIwu2O1.js → proto-CzD9trm_.js} +0 -0
- /package/dist/{pug-CzkUK-Ec.js → pug-B1V2RxQS.js} +0 -0
- /package/dist/{puppet-CNhB1MHb.js → puppet-BcnVd0q5.js} +0 -0
- /package/dist/{python-B_hgEobv.js → python-BcZnB7mH.js} +0 -0
- /package/dist/{r-CVeKYmPK.js → r-CxSFFuvL.js} +0 -0
- /package/dist/{racket-D5UfvXuw.js → racket-DJ_82PRG.js} +0 -0
- /package/dist/{razor-RIKaANTN.js → razor-D7IkXHVQ.js} +0 -0
- /package/dist/{rotate-ccw-square-C2KVFUF3.js → rotate-ccw-square-5sO65BY9.js} +0 -0
- /package/dist/{ruby-C8wV0pMO.js → ruby-Cidk52Rl.js} +0 -0
- /package/dist/{rust-75Gei1mP.js → rust-DJvcpkbm.js} +0 -0
- /package/dist/{sass-Cq68xmQ4.js → sass-DTFDeixE.js} +0 -0
- /package/dist/{scala-C_E5rjSc.js → scala-GlHhGi5O.js} +0 -0
- /package/dist/{scheme-Bm-q-nLL.js → scheme-rNcj5mL9.js} +0 -0
- /package/dist/{shader-DPaRkMCs.js → shader-Df9eByRK.js} +0 -0
- /package/dist/{shiki-token-renderer-CLmUjKa3.js → shiki-token-renderer-BMveKuYt.js} +0 -0
- /package/dist/{solidity-DvHG_0CD.js → solidity-CfuYjRuT.js} +0 -0
- /package/dist/{spin--f5jNjBn.js → spin-D4Oi_m7j.js} +0 -0
- /package/dist/{stata-DoVloJLm.js → stata-BB5c_hbh.js} +0 -0
- /package/dist/{svelte-tlbA11de.js → svelte-2ISqxu6B.js} +0 -0
- /package/dist/{swift-BZn5eRnK.js → swift-wpybyudn.js} +0 -0
- /package/dist/{table-CaUMjs4M.js → table-iNA4la0w.js} +0 -0
- /package/dist/{terraform-c5-k7yB1.js → terraform-CLzhaCaX.js} +0 -0
- /package/dist/{text-DPCGWvDK.js → text-C0mKr3tC.js} +0 -0
- /package/dist/{toml-DdLGBe1A.js → toml-DImd1uev.js} +0 -0
- /package/dist/{twig-D_jzZxh6.js → twig-DEBVmtOq.js} +0 -0
- /package/dist/{typescript-B95hq2ns.js → typescript-Xo5tgeOd.js} +0 -0
- /package/dist/{typst-CSAEQ4yK.js → typst-_Ui0vNYP.js} +0 -0
- /package/dist/{v-BAhebuOB.js → v-Ch6vEAHG.js} +0 -0
- /package/dist/{vala-RAu83-lp.js → vala-Ds_Ad1cC.js} +0 -0
- /package/dist/{verilog-BgmTn52U.js → verilog-CUqRomTC.js} +0 -0
- /package/dist/{vim-c8oTCLkH.js → vim-BFUPh6oM.js} +0 -0
- /package/dist/{vue-TGT6HTBA.js → vue-DzgIlbJ2.js} +0 -0
- /package/dist/{xml-C1HDr874.js → xml-CmbQxaqc.js} +0 -0
- /package/dist/{yaml-BO7FjFQZ.js → yaml-BhwCoLnZ.js} +0 -0
- /package/dist/{zig-qANBp1SU.js → zig-Bmrmp8vo.js} +0 -0
- /package/dist/{zoomIn-iVMAUxIz.js → zoomIn-CCKcyIEv.js} +0 -0
- /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
|
-
|
|
21
|
-
type:
|
|
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
|
-
|
|
89
|
-
type:
|
|
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
|
|
158
|
-
|
|
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.
|
|
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), { "
|
|
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), { "
|
|
181
|
+
}, getNodeBindings(item.node), { "node-key": item.key }), null, 16, ["node-key"]))], 64);
|
|
173
182
|
}), 128);
|
|
174
183
|
};
|
|
175
184
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
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
|
-
|
|
22
|
-
type:
|
|
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 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as button_default } from "./button-
|
|
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-
|
|
2
|
-
import { t as vanilla_default } from "./vanilla-
|
|
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
|
-
|
|
22
|
-
type:
|
|
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-
|
|
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({
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
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
|
-
|
|
22
|
-
type:
|
|
22
|
+
nodeKey: {
|
|
23
|
+
type: String,
|
|
23
24
|
required: true
|
|
24
25
|
},
|
|
25
26
|
controls: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as node_list_default } from "./node-list
|
|
3
|
-
import "./tooltip-
|
|
4
|
-
import { t as button_default } from "./button-
|
|
5
|
-
import { t as spin_default } from "./spin
|
|
6
|
-
import { t as table_default$1 } from "./table-
|
|
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
|
-
|
|
30
|
-
type:
|
|
29
|
+
nodeKey: {
|
|
30
|
+
type: String,
|
|
31
31
|
required: true
|
|
32
32
|
},
|
|
33
33
|
controls: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as useFloatingElement, H as useContext } from "./composables-
|
|
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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as table_default } from "./table-
|
|
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
|
-
|
|
22
|
-
type:
|
|
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": "错误",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as useContext,
|
|
2
|
-
import { t as button_default } from "./button-
|
|
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
package/dist/button-JYC8d-B-.js
DELETED
|
@@ -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 };
|
package/dist/image-DXBD47sF.js
DELETED
|
@@ -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 };
|
package/dist/modal-Duhc-vVa.js
DELETED
|
@@ -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 };
|
package/dist/spin-wM2KE8mO.js
DELETED
package/dist/table-R9gmCXm_.js
DELETED
package/dist/tooltip-BJDs-A8d.js
DELETED
package/dist/vanilla-DA5bwIkr.js
DELETED
|
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
|
|
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
|