vue-stream-markdown 0.0.0-alpha.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/LICENSE.md +21 -0
- package/README.md +96 -0
- package/dist/angular-Chs-UKBr.js +29 -0
- package/dist/angular-component-Cc_FANXU.js +29 -0
- package/dist/apache-COYnc6xR.js +35 -0
- package/dist/asciidoc-BabXBDAL.js +24 -0
- package/dist/assembly-CDqKhexW.js +35 -0
- package/dist/astro-C9kftzFG.js +28 -0
- package/dist/bash-Ce4pNIkV.js +27 -0
- package/dist/batch-CHQBRjFL.js +23 -0
- package/dist/bicep-8jxWtuBF.js +46 -0
- package/dist/blockquote-DFANmQEB.css +13 -0
- package/dist/blockquote-DdEg2gww.js +83 -0
- package/dist/button-BClRCjnc.js +5 -0
- package/dist/button-C12sn_G5.css +24 -0
- package/dist/button-D8xx1WIP.js +202 -0
- package/dist/c-FBUef746.js +25 -0
- package/dist/check-C4xOk8um.js +25 -0
- package/dist/chevron-down-cnOJ4h1g.js +25 -0
- package/dist/circle-alert-CLX-h5rZ.js +28 -0
- package/dist/clojure-BulUroSy.js +18 -0
- package/dist/cmake-CW3vz1Mo.js +35 -0
- package/dist/cobol-CIn3oFju.js +24 -0
- package/dist/code-CP6mPwkq.js +106 -0
- package/dist/code-D8LSp8rK.js +25 -0
- package/dist/code-NAXHb0o2.css +4 -0
- package/dist/code-block-C4D_QNTq.js +408 -0
- package/dist/code-block-D2zjJAww.css +57 -0
- package/dist/code-block-Dzw63Lki.js +9 -0
- package/dist/codeowners-CJggXF_b.js +27 -0
- package/dist/coffeescript-CBrVvzGY.js +23 -0
- package/dist/composables-qhB1h_ed.js +1567 -0
- package/dist/copy-Cabve0xf.js +31 -0
- package/dist/cpp-BTKeuyd-.js +31 -0
- package/dist/crystal-DyIYvZbm.js +24 -0
- package/dist/csharp-NqZ1vyF9.js +22 -0
- package/dist/css-BpR5Lajb.js +26 -0
- package/dist/csv-eCMFnKKK.js +24 -0
- package/dist/cue-TY97dGOQ.js +32 -0
- package/dist/d-NftUsdTd.js +24 -0
- package/dist/dart-DJpwZZbk.js +23 -0
- package/dist/database-aZwE71Px.js +24 -0
- package/dist/delete-BdWzKJCy.js +83 -0
- package/dist/delete-Ci7IJDoT.css +4 -0
- package/dist/diff-CYRzypaU.js +35 -0
- package/dist/docker-CxHBuukH.js +24 -0
- package/dist/download-Bnn7rtYw.js +24 -0
- package/dist/dropdown-Ca_PKF_d.js +5 -0
- package/dist/elixir-BKSxVc1h.js +24 -0
- package/dist/elm-DScuAf3X.js +24 -0
- package/dist/emphasis-BseYvUae.css +4 -0
- package/dist/emphasis-CTuGt1Ok.js +83 -0
- package/dist/en-US-Bfc50l3I.js +27 -0
- package/dist/env-CDAKsodl.js +24 -0
- package/dist/erlang-D2M1ZL3m.js +23 -0
- package/dist/error-component-BIPPxd-M.css +21 -0
- package/dist/error-component-CLEJmPmM.js +4 -0
- package/dist/error-component-CzarUjhh.js +61 -0
- package/dist/eye-CdeX8PhP.js +28 -0
- package/dist/fortran-CORyQ0wt.js +24 -0
- package/dist/fsharp-BJz_Jgpl.js +24 -0
- package/dist/git-DgrlTr1E.js +28 -0
- package/dist/gleam-t_xad9Kw.js +29 -0
- package/dist/go-Cvlh1xtL.js +24 -0
- package/dist/graphql-ApIm0mDD.js +24 -0
- package/dist/groovy-CaLnK8PV.js +23 -0
- package/dist/haml-MwijEO_6.js +35 -0
- package/dist/handlebars-CKdUPI9h.js +24 -0
- package/dist/haskell-NPOXEnck.js +24 -0
- package/dist/haxe-DyKBMsDE.js +23 -0
- package/dist/heading-2vpQQtTH.js +88 -0
- package/dist/heading-KxpVX3-u.css +30 -0
- package/dist/html-C5_wsY4-.css +5 -0
- package/dist/html-CMgES1dE.js +28 -0
- package/dist/html-DL0PcUXX.js +102 -0
- package/dist/http-B9FFNmUr.js +23 -0
- package/dist/image-B77jbMUB.css +46 -0
- package/dist/image-CMZAakWu.js +39 -0
- package/dist/image-heJSlrNv.js +215 -0
- package/dist/index.css +43 -0
- package/dist/index.d.ts +762 -0
- package/dist/index.js +18674 -0
- package/dist/inline-code-CBoqhfz7.js +81 -0
- package/dist/inline-code-Eo65bj3F.css +12 -0
- package/dist/inline-math-B4XO1wMP.js +110 -0
- package/dist/inline-math-DgBjIrPT.css +7 -0
- package/dist/java-iU-L9wJz.js +35 -0
- package/dist/javascript-DtnWdTFC.js +23 -0
- package/dist/jinja-CoWszo_D.js +24 -0
- package/dist/json-C80qKCnh.js +24 -0
- package/dist/julia-DG2BCBLx.js +35 -0
- package/dist/kdl-7twRfIlJ.js +40 -0
- package/dist/kotlin-BjrOgP7R.js +18 -0
- package/dist/latex-DIQfUvG8.js +24 -0
- package/dist/less-BJ1yEAWt.js +24 -0
- package/dist/link-BA_j8di3.css +12 -0
- package/dist/link-DOtoFtxu.js +107 -0
- package/dist/link-DeV4CQOB.js +24 -0
- package/dist/liquid-BqKFZ1wQ.js +24 -0
- package/dist/lisp-oekhB2ti.js +23 -0
- package/dist/list-BCiFKGaz.js +88 -0
- package/dist/list-CcVBNIly.css +11 -0
- package/dist/list-item-Y6Cphjrp.css +15 -0
- package/dist/list-item-p-OLUR_9.js +95 -0
- package/dist/log-D1XEqR9q.js +23 -0
- package/dist/lua-C5Q97-1D.js +28 -0
- package/dist/luau-BT8KwqZ2.js +28 -0
- package/dist/makefile-B4a0ciG4.js +28 -0
- package/dist/markdown-DvNyKsiJ.js +24 -0
- package/dist/marko-BzsIf6bg.js +18 -0
- package/dist/math-Byka28HI.js +110 -0
- package/dist/math-Cq89zpB6.css +11 -0
- package/dist/matlab-cMBkmDhQ.js +28 -0
- package/dist/maximize-4PIqBONS.js +25 -0
- package/dist/mermaid-8JIH2gkQ.js +24 -0
- package/dist/mermaid-C9ZUejzK.css +8 -0
- package/dist/mermaid-X0AFRzfF.js +203 -0
- package/dist/minimize-BJ8htyDF.js +25 -0
- package/dist/modal-CWdgVkH_.css +48 -0
- package/dist/modal-CuQR21UD.js +71 -0
- package/dist/modal-DcpxxDDX.js +3 -0
- package/dist/nextflow-DNmqU1xg.js +24 -0
- package/dist/nginx-DDfYF_rj.js +23 -0
- package/dist/nim-D9xEmy4k.js +24 -0
- package/dist/nix-BV1Deshw.js +18 -0
- package/dist/node-list-C9O-A1aZ.css +11 -0
- package/dist/node-list-CGr_EVtn.js +199 -0
- package/dist/node-list-lgY1wbfQ.js +3 -0
- package/dist/ocaml-BkFn4LL3.js +27 -0
- package/dist/paragraph-DYjqr_Sa.js +83 -0
- package/dist/paragraph-wRNmMYAI.css +6 -0
- package/dist/perl-BytUHDE7.js +24 -0
- package/dist/php-BImJJtNM.js +24 -0
- package/dist/postcss-CrZ9_0sT.js +18 -0
- package/dist/powershell-DYSGu7TM.js +23 -0
- package/dist/previewers-Drlf7IQF.js +10 -0
- package/dist/prisma-BhRvcOFY.js +24 -0
- package/dist/prolog-DuaCKek_.js +24 -0
- package/dist/properties-BbIJwuP-.js +24 -0
- package/dist/proto-CE0aVW11.js +18 -0
- package/dist/pug-B1-IC-Tc.js +24 -0
- package/dist/puppet-8nYquiMG.js +24 -0
- package/dist/python-DhRyfBrD.js +35 -0
- package/dist/r-Cjje17IA.js +28 -0
- package/dist/racket-Dx0gMnpg.js +28 -0
- package/dist/razor-DPht_bdD.js +24 -0
- package/dist/renderer-CZ41eK_V.js +43 -0
- package/dist/ruby-B8RxtCzI.js +24 -0
- package/dist/rust-Cjtli6yf.js +23 -0
- package/dist/sass-Dv3DMzjs.js +24 -0
- package/dist/scala-B7bZGKXq.js +24 -0
- package/dist/scheme-B2PsEdVN.js +24 -0
- package/dist/segmented-BEtO1eyl.js +69 -0
- package/dist/segmented-CWoQcX-H.js +6 -0
- package/dist/segmented-DLmggl-e.css +8 -0
- package/dist/shader-BZzu3zGr.js +24 -0
- package/dist/shiki-CMgjqKKu.css +20 -0
- package/dist/shiki-vToM7Pz1.js +114 -0
- package/dist/solidity-CLieFYpL.js +24 -0
- package/dist/spin-B2FU3Sx6.css +19 -0
- package/dist/spin-Bz4zGBEo.js +3 -0
- package/dist/spin-Ds5W7qC_.js +23 -0
- package/dist/stata-C0yUiO47.js +33 -0
- package/dist/strong-CvOjLZiq.js +83 -0
- package/dist/strong-DpeQmP2J.css +4 -0
- package/dist/svelte-rtF4yNGL.js +23 -0
- package/dist/swift-CzvYoIM0.js +24 -0
- package/dist/table-4ec9FVB_.js +59 -0
- package/dist/table-BWn_kG8W.css +19 -0
- package/dist/table-CJzlDdmv.css +34 -0
- package/dist/table-CZLbUHiJ.js +3 -0
- package/dist/table-DjkiVd9L.js +188 -0
- package/dist/terraform-CD_BZGb-.js +24 -0
- package/dist/text-D098eCyi.css +5 -0
- package/dist/text-D1-vbZ7l.js +23 -0
- package/dist/text-DuONUqRA.js +81 -0
- package/dist/thematic-break-C5zxgoE9.css +6 -0
- package/dist/thematic-break-CcNPEI9Y.js +81 -0
- package/dist/theme.css +67 -0
- package/dist/toml-C6jUF0Xd.js +24 -0
- package/dist/tooltip-Ac_2x9ps.js +4 -0
- package/dist/tooltip-DAngu9Wp.css +5 -0
- package/dist/tooltip-RiXixMIt.js +71 -0
- package/dist/twig-C4dfP84J.js +30 -0
- package/dist/typescript-Bk-pp-cK.js +23 -0
- package/dist/typst-DPCpaVSH.js +24 -0
- package/dist/v-nRGMJ2Ki.js +23 -0
- package/dist/vala-B78bKcY0.js +24 -0
- package/dist/vanilla-BZ8bn5Yz.css +4 -0
- package/dist/vanilla-CA9QO96X.js +3 -0
- package/dist/vanilla-DkX6g0dm.js +87 -0
- package/dist/verilog-CRpkl76S.js +23 -0
- package/dist/vim-DpKnut7b.js +24 -0
- package/dist/vue-D5eadhjo.js +23 -0
- package/dist/xml-Dvx5F-hl.js +24 -0
- package/dist/yaml-DJHrmzSe.js +94 -0
- package/dist/yaml-McBkYbxI.css +5 -0
- package/dist/yaml-n1S8nAOh.js +24 -0
- package/dist/zh-CN-CL1XGe0H.js +27 -0
- package/dist/zig-R-iFzxfW.js +24 -0
- package/dist/zoom-container-BDEP09K9.js +6 -0
- package/dist/zoom-container-BENM7TpV.css +28 -0
- package/dist/zoom-container-BfUO3Ocp.js +113 -0
- package/dist/zoomIn-CEukuh3x.js +28 -0
- package/dist/zoomOut-qlzQyQli.js +28 -0
- package/package.json +115 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/v
|
|
4
|
+
const _hoisted_1 = {
|
|
5
|
+
viewBox: "0 0 16 16",
|
|
6
|
+
width: "1.2em",
|
|
7
|
+
height: "1.2em"
|
|
8
|
+
};
|
|
9
|
+
function render(_ctx, _cache) {
|
|
10
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("g", {
|
|
11
|
+
fill: "none",
|
|
12
|
+
stroke: "#8aadf4",
|
|
13
|
+
"stroke-linecap": "round",
|
|
14
|
+
"stroke-linejoin": "round"
|
|
15
|
+
}, [createElementVNode("path", { d: "m1.5 1.5l4 .5L10 14.5H6z" }), createElementVNode("path", { d: "M8 8.95L10.5 2l4-.5l-4.5 13" })], -1)])]);
|
|
16
|
+
}
|
|
17
|
+
var v_default = markRaw({
|
|
18
|
+
name: "catppuccin-v",
|
|
19
|
+
render
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { v_default as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/vala
|
|
4
|
+
const _hoisted_1 = {
|
|
5
|
+
viewBox: "0 0 16 16",
|
|
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: "#c6a0f6",
|
|
13
|
+
"stroke-linecap": "round",
|
|
14
|
+
"stroke-linejoin": "round",
|
|
15
|
+
d: "M6.121 8.65c-.09-3.733-.195-7.6-.195-7.6M3.178 7.59s-.184-.01-.395-.033c-1.02-.113-1.52-.573-1.638-1.506a3.44 3.44 0 0 1 .795-2.575A8.26 8.26 0 0 1 6.533.656A7 7 0 0 1 7.921.528L8.875.5l.032 1.368c.018.753.055 11.049.088 13.62M14.873.5c-.012.034-1.502 3.55-3.01 7.6L9 15.5H6.376c0-1-.24-6.144-.255-6.85"
|
|
16
|
+
}, null, -1)])]);
|
|
17
|
+
}
|
|
18
|
+
var vala_default = markRaw({
|
|
19
|
+
name: "catppuccin-vala",
|
|
20
|
+
render
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { vala_default as default };
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { computed, createElementBlock, createElementVNode, defineComponent, openBlock, toDisplayString } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region src/components/renderers/code/vanilla.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
const _hoisted_1 = { "data-stream-markdown": "code" };
|
|
5
|
+
const _hoisted_2 = ["textContent"];
|
|
6
|
+
var vanilla_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "vanilla",
|
|
8
|
+
props: {
|
|
9
|
+
node: {
|
|
10
|
+
type: Object,
|
|
11
|
+
required: true
|
|
12
|
+
},
|
|
13
|
+
markdownParser: {
|
|
14
|
+
type: Object,
|
|
15
|
+
required: true
|
|
16
|
+
},
|
|
17
|
+
nodeRenderers: {
|
|
18
|
+
type: Object,
|
|
19
|
+
required: true
|
|
20
|
+
},
|
|
21
|
+
mediumZoom: {
|
|
22
|
+
type: Object,
|
|
23
|
+
required: true
|
|
24
|
+
},
|
|
25
|
+
indexKey: {
|
|
26
|
+
type: [Number, String],
|
|
27
|
+
required: true
|
|
28
|
+
},
|
|
29
|
+
getContainer: {
|
|
30
|
+
type: Function,
|
|
31
|
+
required: true
|
|
32
|
+
},
|
|
33
|
+
controls: {
|
|
34
|
+
type: [Boolean, Object],
|
|
35
|
+
required: false
|
|
36
|
+
},
|
|
37
|
+
previewers: {
|
|
38
|
+
type: [Boolean, Object],
|
|
39
|
+
required: false
|
|
40
|
+
},
|
|
41
|
+
shikiOptions: {
|
|
42
|
+
type: Object,
|
|
43
|
+
required: false
|
|
44
|
+
},
|
|
45
|
+
mermaidOptions: {
|
|
46
|
+
type: Object,
|
|
47
|
+
required: false
|
|
48
|
+
},
|
|
49
|
+
katexOptions: {
|
|
50
|
+
type: Object,
|
|
51
|
+
required: false
|
|
52
|
+
},
|
|
53
|
+
hardenOptions: {
|
|
54
|
+
type: Object,
|
|
55
|
+
required: false
|
|
56
|
+
},
|
|
57
|
+
codeOptions: {
|
|
58
|
+
type: Object,
|
|
59
|
+
required: false
|
|
60
|
+
},
|
|
61
|
+
imageOptions: {
|
|
62
|
+
type: Object,
|
|
63
|
+
required: false
|
|
64
|
+
},
|
|
65
|
+
isDark: {
|
|
66
|
+
type: Boolean,
|
|
67
|
+
required: false
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
setup(__props) {
|
|
71
|
+
const props = __props;
|
|
72
|
+
const code = computed(() => props.node.value.trim());
|
|
73
|
+
return (_ctx, _cache) => {
|
|
74
|
+
return openBlock(), createElementBlock("pre", _hoisted_1, [createElementVNode("code", {
|
|
75
|
+
translate: "no",
|
|
76
|
+
textContent: toDisplayString(code.value)
|
|
77
|
+
}, null, 8, _hoisted_2)]);
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
//#endregion
|
|
83
|
+
//#region src/components/renderers/code/vanilla.vue
|
|
84
|
+
var vanilla_default = vanilla_vue_vue_type_script_setup_true_lang_default;
|
|
85
|
+
|
|
86
|
+
//#endregion
|
|
87
|
+
export { vanilla_default as t };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/verilog
|
|
4
|
+
const _hoisted_1 = {
|
|
5
|
+
viewBox: "0 0 16 16",
|
|
6
|
+
width: "1.2em",
|
|
7
|
+
height: "1.2em"
|
|
8
|
+
};
|
|
9
|
+
function render(_ctx, _cache) {
|
|
10
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("g", {
|
|
11
|
+
fill: "none",
|
|
12
|
+
stroke: "#cad3f5",
|
|
13
|
+
"stroke-linecap": "round",
|
|
14
|
+
"stroke-linejoin": "round"
|
|
15
|
+
}, [createElementVNode("path", { d: "M4.5 2.5h7a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-7c0-1.1.9-2 2-2" }), createElementVNode("path", { d: "M5.5 5.5h5v5h-5zm8.5 0h1.5M14 8h1.5M14 10.5h1.5M.5 5H2M.5 7.5H2M.5 10H2m3.5-8V.5M8 2V.5M10.5 2V.5m-5 15V14M8 15.5V14m2.5 1.5V14" })], -1)])]);
|
|
16
|
+
}
|
|
17
|
+
var verilog_default = markRaw({
|
|
18
|
+
name: "catppuccin-verilog",
|
|
19
|
+
render
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { verilog_default as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/vim
|
|
4
|
+
const _hoisted_1 = {
|
|
5
|
+
viewBox: "0 0 16 16",
|
|
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: "#a6da95",
|
|
13
|
+
"stroke-linecap": "round",
|
|
14
|
+
"stroke-linejoin": "round",
|
|
15
|
+
d: "M1.5 2.5h4m-3 0v11h3l8-11H11l-6.5 9v-9m10 0H9"
|
|
16
|
+
}, null, -1)])]);
|
|
17
|
+
}
|
|
18
|
+
var vim_default = markRaw({
|
|
19
|
+
name: "catppuccin-vim",
|
|
20
|
+
render
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { vim_default as default };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/vue
|
|
4
|
+
const _hoisted_1 = {
|
|
5
|
+
viewBox: "0 0 16 16",
|
|
6
|
+
width: "1.2em",
|
|
7
|
+
height: "1.2em"
|
|
8
|
+
};
|
|
9
|
+
function render(_ctx, _cache) {
|
|
10
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("g", {
|
|
11
|
+
fill: "none",
|
|
12
|
+
stroke: "#a6da95",
|
|
13
|
+
"stroke-linecap": "round",
|
|
14
|
+
"stroke-linejoin": "round"
|
|
15
|
+
}, [createElementVNode("path", { d: "M1 1.5h5.44L8 4.56L9.56 1.5H15l-6.99 13z" }), createElementVNode("path", { d: "M12.05 1.73L8 9.28L3.95 1.73" })], -1)])]);
|
|
16
|
+
}
|
|
17
|
+
var vue_default = markRaw({
|
|
18
|
+
name: "catppuccin-vue",
|
|
19
|
+
render
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { vue_default as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/xml
|
|
4
|
+
const _hoisted_1 = {
|
|
5
|
+
viewBox: "0 0 16 16",
|
|
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: "#f5a97f",
|
|
13
|
+
"stroke-linecap": "round",
|
|
14
|
+
"stroke-linejoin": "round",
|
|
15
|
+
d: "M4.5 4.5L1 8l3.5 3.5m7-7L15 8l-3.5 3.5M9.5 2l-3 12"
|
|
16
|
+
}, null, -1)])]);
|
|
17
|
+
}
|
|
18
|
+
var xml_default = markRaw({
|
|
19
|
+
name: "catppuccin-xml",
|
|
20
|
+
render
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { xml_default as default };
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { t as table_default } from "./table-4ec9FVB_.js";
|
|
2
|
+
import { computed, createElementBlock, createTextVNode, createVNode, defineComponent, openBlock, toDisplayString, withCtx } from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/renderers/yaml.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
const _hoisted_1 = { "data-stream-markdown": "yaml" };
|
|
6
|
+
var yaml_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "yaml",
|
|
8
|
+
props: {
|
|
9
|
+
node: {
|
|
10
|
+
type: Object,
|
|
11
|
+
required: true
|
|
12
|
+
},
|
|
13
|
+
markdownParser: {
|
|
14
|
+
type: Object,
|
|
15
|
+
required: true
|
|
16
|
+
},
|
|
17
|
+
nodeRenderers: {
|
|
18
|
+
type: Object,
|
|
19
|
+
required: true
|
|
20
|
+
},
|
|
21
|
+
mediumZoom: {
|
|
22
|
+
type: Object,
|
|
23
|
+
required: true
|
|
24
|
+
},
|
|
25
|
+
indexKey: {
|
|
26
|
+
type: [Number, String],
|
|
27
|
+
required: true
|
|
28
|
+
},
|
|
29
|
+
getContainer: {
|
|
30
|
+
type: Function,
|
|
31
|
+
required: true
|
|
32
|
+
},
|
|
33
|
+
controls: {
|
|
34
|
+
type: [Boolean, Object],
|
|
35
|
+
required: false
|
|
36
|
+
},
|
|
37
|
+
previewers: {
|
|
38
|
+
type: [Boolean, Object],
|
|
39
|
+
required: false
|
|
40
|
+
},
|
|
41
|
+
shikiOptions: {
|
|
42
|
+
type: Object,
|
|
43
|
+
required: false
|
|
44
|
+
},
|
|
45
|
+
mermaidOptions: {
|
|
46
|
+
type: Object,
|
|
47
|
+
required: false
|
|
48
|
+
},
|
|
49
|
+
katexOptions: {
|
|
50
|
+
type: Object,
|
|
51
|
+
required: false
|
|
52
|
+
},
|
|
53
|
+
hardenOptions: {
|
|
54
|
+
type: Object,
|
|
55
|
+
required: false
|
|
56
|
+
},
|
|
57
|
+
codeOptions: {
|
|
58
|
+
type: Object,
|
|
59
|
+
required: false
|
|
60
|
+
},
|
|
61
|
+
imageOptions: {
|
|
62
|
+
type: Object,
|
|
63
|
+
required: false
|
|
64
|
+
},
|
|
65
|
+
isDark: {
|
|
66
|
+
type: Boolean,
|
|
67
|
+
required: false
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
setup(__props) {
|
|
71
|
+
const props = __props;
|
|
72
|
+
const reg = /\s*:\s*/;
|
|
73
|
+
const data = computed(() => props.node.value.trim().split("\n").map((line) => line.split(reg)));
|
|
74
|
+
const headers = computed(() => data.value.map((line) => line[0]));
|
|
75
|
+
const rows = computed(() => [{ children: data.value.map((line) => line[1]) }]);
|
|
76
|
+
return (_ctx, _cache) => {
|
|
77
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(table_default, {
|
|
78
|
+
headers: headers.value,
|
|
79
|
+
rows: rows.value
|
|
80
|
+
}, {
|
|
81
|
+
"header-cell": withCtx(({ cell }) => [createTextVNode(toDisplayString(cell), 1)]),
|
|
82
|
+
"body-cell": withCtx(({ cell }) => [createTextVNode(toDisplayString(cell), 1)]),
|
|
83
|
+
_: 1
|
|
84
|
+
}, 8, ["headers", "rows"])]);
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
//#endregion
|
|
90
|
+
//#region src/components/renderers/yaml.vue
|
|
91
|
+
var yaml_default = yaml_vue_vue_type_script_setup_true_lang_default;
|
|
92
|
+
|
|
93
|
+
//#endregion
|
|
94
|
+
export { yaml_default as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/yaml
|
|
4
|
+
const _hoisted_1 = {
|
|
5
|
+
viewBox: "0 0 16 16",
|
|
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: "#ed8796",
|
|
13
|
+
"stroke-linecap": "round",
|
|
14
|
+
"stroke-linejoin": "round",
|
|
15
|
+
d: "M2.5 1.5h3l3 4l3-4h3l-9 13h-3L7 8z"
|
|
16
|
+
}, null, -1)])]);
|
|
17
|
+
}
|
|
18
|
+
var yaml_default = markRaw({
|
|
19
|
+
name: "catppuccin-yaml",
|
|
20
|
+
render
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { yaml_default as default };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//#region src/locales/zh-CN.json
|
|
2
|
+
var button = {
|
|
3
|
+
"zoomIn": "放大",
|
|
4
|
+
"zoomOut": "缩小",
|
|
5
|
+
"resetZoom": "重置缩放",
|
|
6
|
+
"preview": "预览",
|
|
7
|
+
"source": "源代码",
|
|
8
|
+
"collapse": "折叠",
|
|
9
|
+
"copy": "复制",
|
|
10
|
+
"download": "下载",
|
|
11
|
+
"minimize": "最小化",
|
|
12
|
+
"maximize": "最大化"
|
|
13
|
+
};
|
|
14
|
+
var error = {
|
|
15
|
+
"vanilla": "错误",
|
|
16
|
+
"image": "图片加载失败",
|
|
17
|
+
"mermaid": "Mermaid 渲染失败",
|
|
18
|
+
"katex": "Katex 渲染失败",
|
|
19
|
+
"harden": "已拦截"
|
|
20
|
+
};
|
|
21
|
+
var zh_CN_default = {
|
|
22
|
+
button,
|
|
23
|
+
error
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
export { button, zh_CN_default as default, error };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/zig
|
|
4
|
+
const _hoisted_1 = {
|
|
5
|
+
viewBox: "0 0 16 16",
|
|
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: "#eed49f",
|
|
13
|
+
"stroke-linecap": "round",
|
|
14
|
+
"stroke-linejoin": "round",
|
|
15
|
+
d: "M10 3.5H6l-1.5 2h4l-7 9l4.5-2h4l1.5-2h-4l7-9z"
|
|
16
|
+
}, null, -1)])]);
|
|
17
|
+
}
|
|
18
|
+
var zig_default = markRaw({
|
|
19
|
+
name: "catppuccin-zig",
|
|
20
|
+
render
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { zig_default as default };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
.stream-markdown [data-stream-markdown="zoom-container"] {
|
|
2
|
+
height: 100%;
|
|
3
|
+
position: relative;
|
|
4
|
+
overflow: hidden;
|
|
5
|
+
}
|
|
6
|
+
.stream-markdown [data-stream-markdown="zoom-inner"] {
|
|
7
|
+
justify-content: center;
|
|
8
|
+
align-items: center;
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 100%;
|
|
11
|
+
display: flex;
|
|
12
|
+
}
|
|
13
|
+
.stream-markdown [data-stream-markdown="zoom-transform-container"] {
|
|
14
|
+
flex-shrink: 0;
|
|
15
|
+
width: 100%;
|
|
16
|
+
}
|
|
17
|
+
.stream-markdown [data-stream-markdown="zoom-controls"] {
|
|
18
|
+
z-index: 10;
|
|
19
|
+
border: 1px solid var(--border);
|
|
20
|
+
background-color: var(--background);
|
|
21
|
+
border-radius: .75rem;
|
|
22
|
+
align-items: center;
|
|
23
|
+
gap: .25rem;
|
|
24
|
+
padding: .25rem;
|
|
25
|
+
display: flex;
|
|
26
|
+
position: absolute;
|
|
27
|
+
}
|
|
28
|
+
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { j as ICONS, l as useI18n, t as useZoom } from "./composables-qhB1h_ed.js";
|
|
2
|
+
import { t as button_default } from "./button-D8xx1WIP.js";
|
|
3
|
+
import { computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeStyle, openBlock, ref, renderSlot, unref } from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/components/zoom-container.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
const _hoisted_1 = { "data-stream-markdown": "zoom-inner" };
|
|
7
|
+
var zoom_container_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "zoom-container",
|
|
9
|
+
props: {
|
|
10
|
+
showControl: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
required: false,
|
|
13
|
+
default: true
|
|
14
|
+
},
|
|
15
|
+
position: {
|
|
16
|
+
type: String,
|
|
17
|
+
required: false,
|
|
18
|
+
default: "bottom-right"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
setup(__props) {
|
|
22
|
+
const props = __props;
|
|
23
|
+
const containerRef = ref();
|
|
24
|
+
const { t } = useI18n();
|
|
25
|
+
const { zoom, isDragging, transformStyle, zoomIn, zoomOut, resetZoom, startDrag, onDrag, stopDrag, handleWheel } = useZoom();
|
|
26
|
+
const zoomPercent = computed(() => `${Math.round(zoom.value * 100)}%`);
|
|
27
|
+
const controlsStyle = computed(() => {
|
|
28
|
+
switch (props.position) {
|
|
29
|
+
case "top-left": return {
|
|
30
|
+
top: "0.5rem",
|
|
31
|
+
left: "0.5rem"
|
|
32
|
+
};
|
|
33
|
+
case "top-right": return {
|
|
34
|
+
top: "0.5rem",
|
|
35
|
+
right: "0.5rem"
|
|
36
|
+
};
|
|
37
|
+
case "bottom-left": return {
|
|
38
|
+
bottom: "0.5rem",
|
|
39
|
+
left: "0.5rem"
|
|
40
|
+
};
|
|
41
|
+
case "bottom-right":
|
|
42
|
+
default: return {
|
|
43
|
+
bottom: "0.5rem",
|
|
44
|
+
right: "0.5rem"
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
function onWheel(event) {
|
|
49
|
+
if (containerRef.value) handleWheel(event, containerRef.value);
|
|
50
|
+
}
|
|
51
|
+
return (_ctx, _cache) => {
|
|
52
|
+
return openBlock(), createElementBlock("div", {
|
|
53
|
+
ref_key: "containerRef",
|
|
54
|
+
ref: containerRef,
|
|
55
|
+
"data-stream-markdown": "zoom-container",
|
|
56
|
+
onWheel,
|
|
57
|
+
onMousedown: _cache[0] || (_cache[0] = (...args) => unref(startDrag) && unref(startDrag)(...args)),
|
|
58
|
+
onMousemove: _cache[1] || (_cache[1] = (...args) => unref(onDrag) && unref(onDrag)(...args)),
|
|
59
|
+
onMouseup: _cache[2] || (_cache[2] = (...args) => unref(stopDrag) && unref(stopDrag)(...args)),
|
|
60
|
+
onMouseleave: _cache[3] || (_cache[3] = (...args) => unref(stopDrag) && unref(stopDrag)(...args)),
|
|
61
|
+
onTouchstartPassive: _cache[4] || (_cache[4] = (...args) => unref(startDrag) && unref(startDrag)(...args)),
|
|
62
|
+
onTouchmovePassive: _cache[5] || (_cache[5] = (...args) => unref(onDrag) && unref(onDrag)(...args)),
|
|
63
|
+
onTouchendPassive: _cache[6] || (_cache[6] = (...args) => unref(stopDrag) && unref(stopDrag)(...args))
|
|
64
|
+
}, [__props.showControl ? (openBlock(), createElementBlock("div", {
|
|
65
|
+
key: 0,
|
|
66
|
+
"data-stream-markdown": "zoom-controls",
|
|
67
|
+
style: normalizeStyle(controlsStyle.value)
|
|
68
|
+
}, [
|
|
69
|
+
createVNode(button_default, {
|
|
70
|
+
icon: unref(ICONS).zoomIn,
|
|
71
|
+
name: unref(t)("button.zoomIn"),
|
|
72
|
+
onClick: unref(zoomIn)
|
|
73
|
+
}, null, 8, [
|
|
74
|
+
"icon",
|
|
75
|
+
"name",
|
|
76
|
+
"onClick"
|
|
77
|
+
]),
|
|
78
|
+
createVNode(button_default, {
|
|
79
|
+
icon: unref(ICONS).zoomOut,
|
|
80
|
+
name: unref(t)("button.zoomOut"),
|
|
81
|
+
onClick: unref(zoomOut)
|
|
82
|
+
}, null, 8, [
|
|
83
|
+
"icon",
|
|
84
|
+
"name",
|
|
85
|
+
"onClick"
|
|
86
|
+
]),
|
|
87
|
+
createVNode(button_default, {
|
|
88
|
+
title: unref(t)("button.resetZoom"),
|
|
89
|
+
name: zoomPercent.value,
|
|
90
|
+
variant: "text",
|
|
91
|
+
onClick: unref(resetZoom)
|
|
92
|
+
}, null, 8, [
|
|
93
|
+
"title",
|
|
94
|
+
"name",
|
|
95
|
+
"onClick"
|
|
96
|
+
])
|
|
97
|
+
], 4)) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_1, [createElementVNode("div", {
|
|
98
|
+
"data-stream-markdown": "zoom-transform-container",
|
|
99
|
+
style: normalizeStyle({
|
|
100
|
+
...unref(transformStyle),
|
|
101
|
+
cursor: unref(isDragging) ? "grabbing" : "grab"
|
|
102
|
+
})
|
|
103
|
+
}, [renderSlot(_ctx.$slots, "default")], 4)])], 544);
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region src/components/zoom-container.vue
|
|
110
|
+
var zoom_container_default = zoom_container_vue_vue_type_script_setup_true_lang_default;
|
|
111
|
+
|
|
112
|
+
//#endregion
|
|
113
|
+
export { zoom_container_default as t };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/lucide/zoomIn
|
|
4
|
+
const _hoisted_1 = {
|
|
5
|
+
viewBox: "0 0 24 24",
|
|
6
|
+
width: "1.2em",
|
|
7
|
+
height: "1.2em"
|
|
8
|
+
};
|
|
9
|
+
function render(_ctx, _cache) {
|
|
10
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("g", {
|
|
11
|
+
fill: "none",
|
|
12
|
+
stroke: "currentColor",
|
|
13
|
+
"stroke-linecap": "round",
|
|
14
|
+
"stroke-linejoin": "round",
|
|
15
|
+
"stroke-width": "2"
|
|
16
|
+
}, [createElementVNode("circle", {
|
|
17
|
+
cx: "11",
|
|
18
|
+
cy: "11",
|
|
19
|
+
r: "8"
|
|
20
|
+
}), createElementVNode("path", { d: "m21 21l-4.35-4.35M11 8v6m-3-3h6" })], -1)])]);
|
|
21
|
+
}
|
|
22
|
+
var zoomIn_default = markRaw({
|
|
23
|
+
name: "lucide-zoomIn",
|
|
24
|
+
render
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { zoomIn_default as default };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/lucide/zoomOut
|
|
4
|
+
const _hoisted_1 = {
|
|
5
|
+
viewBox: "0 0 24 24",
|
|
6
|
+
width: "1.2em",
|
|
7
|
+
height: "1.2em"
|
|
8
|
+
};
|
|
9
|
+
function render(_ctx, _cache) {
|
|
10
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("g", {
|
|
11
|
+
fill: "none",
|
|
12
|
+
stroke: "currentColor",
|
|
13
|
+
"stroke-linecap": "round",
|
|
14
|
+
"stroke-linejoin": "round",
|
|
15
|
+
"stroke-width": "2"
|
|
16
|
+
}, [createElementVNode("circle", {
|
|
17
|
+
cx: "11",
|
|
18
|
+
cy: "11",
|
|
19
|
+
r: "8"
|
|
20
|
+
}), createElementVNode("path", { d: "m21 21l-4.35-4.35M8 11h6" })], -1)])]);
|
|
21
|
+
}
|
|
22
|
+
var zoomOut_default = markRaw({
|
|
23
|
+
name: "lucide-zoomOut",
|
|
24
|
+
render
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { zoomOut_default as default };
|