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,21 @@
|
|
|
1
|
+
.stream-markdown [data-stream-markdown="error-component"] {
|
|
2
|
+
color: var(--muted-foreground);
|
|
3
|
+
font-family: var(--font-mono);
|
|
4
|
+
font-size: .875rem;
|
|
5
|
+
line-height: 1.25rem;
|
|
6
|
+
display: inline-block;
|
|
7
|
+
}
|
|
8
|
+
.stream-markdown [data-stream-markdown="error-component"] span {
|
|
9
|
+
word-break: break-word;
|
|
10
|
+
overflow-wrap: break-word;
|
|
11
|
+
flex: 1;
|
|
12
|
+
min-width: 0;
|
|
13
|
+
}
|
|
14
|
+
.stream-markdown [data-stream-markdown="error-component-icon"] {
|
|
15
|
+
vertical-align: text-bottom;
|
|
16
|
+
align-items: center;
|
|
17
|
+
margin-right: .5rem;
|
|
18
|
+
line-height: 1;
|
|
19
|
+
display: inline-flex;
|
|
20
|
+
}
|
|
21
|
+
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { j as ICONS, l as useI18n } from "./composables-qhB1h_ed.js";
|
|
2
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, openBlock, renderSlot, resolveDynamicComponent, toDisplayString } from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/error-component.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
const _hoisted_1 = { "data-stream-markdown": "error-component" };
|
|
6
|
+
const _hoisted_2 = { "data-stream-markdown": "error-component-icon" };
|
|
7
|
+
var error_component_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
8
|
+
inheritAttrs: false,
|
|
9
|
+
__name: "error-component",
|
|
10
|
+
props: {
|
|
11
|
+
variant: {
|
|
12
|
+
type: String,
|
|
13
|
+
required: false,
|
|
14
|
+
default: "vanilla"
|
|
15
|
+
},
|
|
16
|
+
icon: {
|
|
17
|
+
type: null,
|
|
18
|
+
required: false
|
|
19
|
+
},
|
|
20
|
+
message: {
|
|
21
|
+
type: String,
|
|
22
|
+
required: false
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
setup(__props) {
|
|
26
|
+
const props = __props;
|
|
27
|
+
const { t } = useI18n();
|
|
28
|
+
const messages = computed(() => ({
|
|
29
|
+
"vanilla": t("error.vanilla"),
|
|
30
|
+
"image": t("error.image"),
|
|
31
|
+
"mermaid": t("error.mermaid"),
|
|
32
|
+
"katex": t("error.katex"),
|
|
33
|
+
"harden-image": t("error.harden"),
|
|
34
|
+
"harden-link": t("error.harden")
|
|
35
|
+
}));
|
|
36
|
+
const icon = computed(() => {
|
|
37
|
+
if (props.icon) return props.icon;
|
|
38
|
+
if (ICONS[props.variant]) return ICONS[props.variant];
|
|
39
|
+
return ICONS[props.variant.replace("harden-", "")] || ICONS.error;
|
|
40
|
+
});
|
|
41
|
+
const message = computed(() => props.message ? props.message : messages.value[props.variant] || messages.value.vanilla);
|
|
42
|
+
const isHarden = computed(() => {
|
|
43
|
+
var _props$variant, _props$variant$starts;
|
|
44
|
+
return (_props$variant = props.variant) === null || _props$variant === void 0 || (_props$variant$starts = _props$variant.startsWith) === null || _props$variant$starts === void 0 ? void 0 : _props$variant$starts.call(_props$variant, "harden-");
|
|
45
|
+
});
|
|
46
|
+
return (_ctx, _cache) => {
|
|
47
|
+
return openBlock(), createElementBlock("span", _hoisted_1, [
|
|
48
|
+
createElementVNode("div", _hoisted_2, [(openBlock(), createBlock(resolveDynamicComponent(icon.value)))]),
|
|
49
|
+
isHarden.value ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("v-if", true),
|
|
50
|
+
createTextVNode(" [" + toDisplayString(message.value) + "] ", 1)
|
|
51
|
+
]);
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region src/components/error-component.vue
|
|
58
|
+
var error_component_default = error_component_vue_vue_type_script_setup_true_lang_default;
|
|
59
|
+
|
|
60
|
+
//#endregion
|
|
61
|
+
export { error_component_default as t };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/lucide/eye
|
|
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("path", { d: "M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0" }), createElementVNode("circle", {
|
|
17
|
+
cx: "12",
|
|
18
|
+
cy: "12",
|
|
19
|
+
r: "3"
|
|
20
|
+
})], -1)])]);
|
|
21
|
+
}
|
|
22
|
+
var eye_default = markRaw({
|
|
23
|
+
name: "lucide-eye",
|
|
24
|
+
render
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { eye_default as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/fortran
|
|
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: "M7.5 14.5v-1l-1-1v-3h2l1 2h1v-6h-1l-1 2h-2v-4h5l1 3h1v-5h-11v1l1 1v9l-1 1.25v.75z"
|
|
16
|
+
}, null, -1)])]);
|
|
17
|
+
}
|
|
18
|
+
var fortran_default = markRaw({
|
|
19
|
+
name: "catppuccin-fortran",
|
|
20
|
+
render
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { fortran_default as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/fsharp
|
|
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: "#8aadf4",
|
|
13
|
+
"stroke-linecap": "round",
|
|
14
|
+
"stroke-linejoin": "round",
|
|
15
|
+
d: "m1 8l5.5-6v2.93L3.57 8l2.93 2.8v2.93zm14 0L9.5 2v2.93L12.25 8L9.5 10.79v2.93z"
|
|
16
|
+
}, null, -1)])]);
|
|
17
|
+
}
|
|
18
|
+
var fsharp_default = markRaw({
|
|
19
|
+
name: "catppuccin-fsharp",
|
|
20
|
+
render
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { fsharp_default as default };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/git
|
|
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-linecap": "round",
|
|
13
|
+
"stroke-linejoin": "round"
|
|
14
|
+
}, [createElementVNode("path", {
|
|
15
|
+
stroke: "#cad3f5",
|
|
16
|
+
d: "M8.5 10.5a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1a1 1 0 0 1 1 1m0-6a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1a1 1 0 0 1 1 1m3 3a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1a1 1 0 0 1 1 1m-4-2v4m-1-6l-1-1m4 4l-1-1"
|
|
17
|
+
}), createElementVNode("path", {
|
|
18
|
+
stroke: "#f5a97f",
|
|
19
|
+
d: "m9.06 1.06l5.88 5.88a1.5 1.5 0 0 1 0 2.12l-5.88 5.88a1.5 1.5 0 0 1-2.12 0L1.06 9.06a1.5 1.5 0 0 1 0-2.12l5.88-5.88a1.5 1.5 0 0 1 2.12 0"
|
|
20
|
+
})], -1)])]);
|
|
21
|
+
}
|
|
22
|
+
var git_default = markRaw({
|
|
23
|
+
name: "catppuccin-git",
|
|
24
|
+
render
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { git_default as default };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/gleam
|
|
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: "#f5bde6",
|
|
13
|
+
"stroke-width": ".84",
|
|
14
|
+
d: "M7.986 1.42a.96.96 0 0 0-.851.51L5.704 4.577a.98.98 0 0 1-.658.498l-2.856.601c-.733.155-1.032 1.115-.526 1.69l1.972 2.238c.192.217.284.512.251.806l-.334 3.02c-.086.775.696 1.37 1.377 1.044l2.65-1.265a.94.94 0 0 1 .812 0l2.65 1.265c.68.325 1.462-.269 1.376-1.044l-.334-3.02a1.04 1.04 0 0 1 .251-.806l1.972-2.239c.506-.574.207-1.534-.526-1.689l-2.856-.6a.98.98 0 0 1-.658-.5L8.837 1.93a.96.96 0 0 0-.851-.51"
|
|
15
|
+
}, null, -1), createElementVNode("path", {
|
|
16
|
+
fill: "none",
|
|
17
|
+
stroke: "#f5bde6",
|
|
18
|
+
"stroke-linecap": "round",
|
|
19
|
+
"stroke-linejoin": "round",
|
|
20
|
+
d: "M8.685 9.262a.75.754 0 0 1-.705.496a.75.754 0 0 1-.704-.496M10.5 8"
|
|
21
|
+
}, null, -1)])]);
|
|
22
|
+
}
|
|
23
|
+
var gleam_default = markRaw({
|
|
24
|
+
name: "catppuccin-gleam",
|
|
25
|
+
render
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
export { gleam_default as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/go
|
|
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: "#7dc4e4",
|
|
13
|
+
"stroke-linecap": "round",
|
|
14
|
+
"stroke-linejoin": "round",
|
|
15
|
+
d: "m15.48 8.06l-4.85.48m4.85-.48a4.98 4.98 0 0 1-4.54 5.42a5 5 0 1 1 2.95-8.66l-1.7 1.84a2.5 2.5 0 0 0-4.18 2.06c.05.57.3 1.1.69 1.51c.25.27 1 .83 1.78.82c.8-.02 1.58-.25 2.07-.81c0 0 .8-.96.68-1.88M2.5 8.5l-2 .01m1.5 2h1.5m-2-3.99l2-.02"
|
|
16
|
+
}, null, -1)])]);
|
|
17
|
+
}
|
|
18
|
+
var go_default = markRaw({
|
|
19
|
+
name: "catppuccin-go",
|
|
20
|
+
render
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { go_default as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/graphql
|
|
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: "#f5bde6",
|
|
13
|
+
"stroke-linecap": "round",
|
|
14
|
+
"stroke-linejoin": "round",
|
|
15
|
+
d: "M9 1.5a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1a1 1 0 0 1 1 1m-5.5 3a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1a1 1 0 0 1 1 1m0 7a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1a1 1 0 0 1 1 1m11 0a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1a1 1 0 0 1 1 1m-5.5 3a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1a1 1 0 0 1 1 1m5.5-10a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1a1 1 0 0 1 1 1m-12 1v5m11-5v5m-10 1h9m-6 2.5l-3-1.5m6 1.5l3-1.5m-9-2l4-8m5 8l-4-8m-5 1l3-1.5m3 0l3 1.5"
|
|
16
|
+
}, null, -1)])]);
|
|
17
|
+
}
|
|
18
|
+
var graphql_default = markRaw({
|
|
19
|
+
name: "catppuccin-graphql",
|
|
20
|
+
render
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { graphql_default as default };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/groovy
|
|
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: "#7dc4e4",
|
|
13
|
+
"stroke-linecap": "round",
|
|
14
|
+
"stroke-linejoin": "round"
|
|
15
|
+
}, [createElementVNode("path", { d: "M11.68 5.38c.4.19.54.68 1.53 3.25c1 2.57-.92 4.07-.92 4.07s-6.73 2.47-6.73 1.63c-.18-.92-1.92-2.08-1.92-2.08s-.52-.63.06-.75c5.89-1.27 6.96-.61 7.3-2" }), createElementVNode("path", { d: "M7.38 10.63C2.62 10.88 2.48 8.08 2.5 8C3.6 4.6 9.24.91 10.8 1.58C14.07 3.04 9.2 8.96 7 8.5c-4.02-.83 1.5-4 1.5-4" })], -1)])]);
|
|
16
|
+
}
|
|
17
|
+
var groovy_default = markRaw({
|
|
18
|
+
name: "catppuccin-groovy",
|
|
19
|
+
render
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { groovy_default as default };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/haml
|
|
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-linecap": "round",
|
|
13
|
+
"stroke-linejoin": "round"
|
|
14
|
+
}, [
|
|
15
|
+
createElementVNode("path", {
|
|
16
|
+
stroke: "#cad3f5",
|
|
17
|
+
d: "M7.6 9.5s1.75.97 2.55 1.13c.8.17 1.5.8 2.49-.26c1.07-1.15 1.13-1.02.26-1.68c-.88-.66-2.41-1.94-2.41-2.69"
|
|
18
|
+
}),
|
|
19
|
+
createElementVNode("path", {
|
|
20
|
+
stroke: "#eed49f",
|
|
21
|
+
d: "M6.87 5.56a.83.83 0 0 0 1.23.27L12 2.5l1 1.04L9.58 6.8a6.47 6.47 0 0 0-2.36 3.56l-1.2 4.13l-1.49-.5l1-3.98a6.17 6.17 0 0 0-.47-4.24L3.5 2.04l1.37-.54Z"
|
|
22
|
+
}),
|
|
23
|
+
createElementVNode("path", {
|
|
24
|
+
stroke: "#cad3f5",
|
|
25
|
+
d: "m12 4.5l-1-1.16ZM5.41 2.62l-1.4.7Z"
|
|
26
|
+
})
|
|
27
|
+
], -1)])]);
|
|
28
|
+
}
|
|
29
|
+
var haml_default = markRaw({
|
|
30
|
+
name: "catppuccin-haml",
|
|
31
|
+
render
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
//#endregion
|
|
35
|
+
export { haml_default as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/handlebars
|
|
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: "M8 6.15a1.73 1.73 0 0 0-2.48-.22c-.97.82-1.78 2.5-3.31 2.5a.99.99 0 0 1-.83-.66a.97.97 0 0 1 .24-1.02C.45 6.75.1 8.67 1.03 9.56a4.76 4.76 0 0 0 4.7.56C6.63 9.76 7.4 9.2 8 8.45zm0 0a1.73 1.73 0 0 1 2.48-.22c.96.82 1.78 2.5 3.3 2.5a1 1 0 0 0 .84-.66a.97.97 0 0 0-.24-1.02c1.17 0 1.52 1.92.58 2.81a4.76 4.76 0 0 1-4.7.56A5.34 5.34 0 0 1 8 8.45z"
|
|
16
|
+
}, null, -1)])]);
|
|
17
|
+
}
|
|
18
|
+
var handlebars_default = markRaw({
|
|
19
|
+
name: "catppuccin-handlebars",
|
|
20
|
+
render
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { handlebars_default as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/haskell
|
|
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: "M12.5 4.5h3m-1.5 3h1.5m-10 6l2.5-5l-2.5-5H8l5.6 10h-2.53l-1.52-2.92L8 13.5zm-5 0l2.5-5l-2.5-5H3l2.5 5l-2.5 5z"
|
|
16
|
+
}, null, -1)])]);
|
|
17
|
+
}
|
|
18
|
+
var haskell_default = markRaw({
|
|
19
|
+
name: "catppuccin-haskell",
|
|
20
|
+
render
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { haskell_default as default };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/haxe
|
|
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: "#f5a97f",
|
|
13
|
+
"stroke-linecap": "round",
|
|
14
|
+
"stroke-linejoin": "round"
|
|
15
|
+
}, [createElementVNode("path", { d: "M1.5 1.5H5l3 1.75l3-1.75h3.5V5l-1.75 3l1.75 3v3.5H11l-3-1.75l-3 1.75H1.5V11l1.75-3L1.5 5z" }), createElementVNode("path", { d: "m12.65 8.35l-4.3 4.3a.5.5 0 0 1-.7 0l-4.3-4.3a.5.5 0 0 1 0-.7l4.3-4.3c.2-.2.5-.2.7 0l4.3 4.3c.2.2.2.5 0 .7" })], -1)])]);
|
|
16
|
+
}
|
|
17
|
+
var haxe_default = markRaw({
|
|
18
|
+
name: "catppuccin-haxe",
|
|
19
|
+
render
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { haxe_default as default };
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { t as node_list_default } from "./node-list-CGr_EVtn.js";
|
|
2
|
+
import { computed, createBlock, createVNode, defineComponent, mergeProps, openBlock, resolveDynamicComponent, withCtx } from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/renderers/heading.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var heading_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "heading",
|
|
7
|
+
props: {
|
|
8
|
+
node: {
|
|
9
|
+
type: Object,
|
|
10
|
+
required: true
|
|
11
|
+
},
|
|
12
|
+
markdownParser: {
|
|
13
|
+
type: Object,
|
|
14
|
+
required: true
|
|
15
|
+
},
|
|
16
|
+
nodeRenderers: {
|
|
17
|
+
type: Object,
|
|
18
|
+
required: true
|
|
19
|
+
},
|
|
20
|
+
mediumZoom: {
|
|
21
|
+
type: Object,
|
|
22
|
+
required: true
|
|
23
|
+
},
|
|
24
|
+
indexKey: {
|
|
25
|
+
type: [Number, String],
|
|
26
|
+
required: true
|
|
27
|
+
},
|
|
28
|
+
getContainer: {
|
|
29
|
+
type: Function,
|
|
30
|
+
required: true
|
|
31
|
+
},
|
|
32
|
+
controls: {
|
|
33
|
+
type: [Boolean, Object],
|
|
34
|
+
required: false
|
|
35
|
+
},
|
|
36
|
+
previewers: {
|
|
37
|
+
type: [Boolean, Object],
|
|
38
|
+
required: false
|
|
39
|
+
},
|
|
40
|
+
shikiOptions: {
|
|
41
|
+
type: Object,
|
|
42
|
+
required: false
|
|
43
|
+
},
|
|
44
|
+
mermaidOptions: {
|
|
45
|
+
type: Object,
|
|
46
|
+
required: false
|
|
47
|
+
},
|
|
48
|
+
katexOptions: {
|
|
49
|
+
type: Object,
|
|
50
|
+
required: false
|
|
51
|
+
},
|
|
52
|
+
hardenOptions: {
|
|
53
|
+
type: Object,
|
|
54
|
+
required: false
|
|
55
|
+
},
|
|
56
|
+
codeOptions: {
|
|
57
|
+
type: Object,
|
|
58
|
+
required: false
|
|
59
|
+
},
|
|
60
|
+
imageOptions: {
|
|
61
|
+
type: Object,
|
|
62
|
+
required: false
|
|
63
|
+
},
|
|
64
|
+
isDark: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
required: false
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
setup(__props) {
|
|
70
|
+
const props = __props;
|
|
71
|
+
const depth = computed(() => props.node.depth);
|
|
72
|
+
const tag = computed(() => `h${depth.value}`);
|
|
73
|
+
const id = computed(() => `heading-${depth.value}`);
|
|
74
|
+
return (_ctx, _cache) => {
|
|
75
|
+
return openBlock(), createBlock(resolveDynamicComponent(tag.value), { "data-stream-markdown": id.value }, {
|
|
76
|
+
default: withCtx(() => [createVNode(node_list_default, mergeProps(props, { nodes: __props.node.children }), null, 16, ["nodes"])]),
|
|
77
|
+
_: 1
|
|
78
|
+
}, 8, ["data-stream-markdown"]);
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region src/components/renderers/heading.vue
|
|
85
|
+
var heading_default = heading_vue_vue_type_script_setup_true_lang_default;
|
|
86
|
+
|
|
87
|
+
//#endregion
|
|
88
|
+
export { heading_default as default };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
.stream-markdown [data-stream-markdown="heading-1"], .stream-markdown [data-stream-markdown="heading-2"], .stream-markdown [data-stream-markdown="heading-3"], .stream-markdown [data-stream-markdown="heading-4"], .stream-markdown [data-stream-markdown="heading-5"], .stream-markdown [data-stream-markdown="heading-6"] {
|
|
2
|
+
margin-top: 1.5rem;
|
|
3
|
+
margin-bottom: .5rem;
|
|
4
|
+
font-weight: 600;
|
|
5
|
+
}
|
|
6
|
+
.stream-markdown [data-stream-markdown="heading-1"] {
|
|
7
|
+
font-size: 1.875rem;
|
|
8
|
+
line-height: 2.25rem;
|
|
9
|
+
}
|
|
10
|
+
.stream-markdown [data-stream-markdown="heading-2"] {
|
|
11
|
+
font-size: 1.5rem;
|
|
12
|
+
line-height: 2rem;
|
|
13
|
+
}
|
|
14
|
+
.stream-markdown [data-stream-markdown="heading-3"] {
|
|
15
|
+
font-size: 1.25rem;
|
|
16
|
+
line-height: 1.75rem;
|
|
17
|
+
}
|
|
18
|
+
.stream-markdown [data-stream-markdown="heading-4"] {
|
|
19
|
+
font-size: 1.125rem;
|
|
20
|
+
line-height: 1.75rem;
|
|
21
|
+
}
|
|
22
|
+
.stream-markdown [data-stream-markdown="heading-5"] {
|
|
23
|
+
font-size: 1rem;
|
|
24
|
+
line-height: 1.5rem;
|
|
25
|
+
}
|
|
26
|
+
.stream-markdown [data-stream-markdown="heading-6"] {
|
|
27
|
+
font-size: .875rem;
|
|
28
|
+
line-height: 1.25rem;
|
|
29
|
+
}
|
|
30
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/html
|
|
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-linecap": "round",
|
|
13
|
+
"stroke-linejoin": "round"
|
|
14
|
+
}, [createElementVNode("path", {
|
|
15
|
+
stroke: "#f5a97f",
|
|
16
|
+
d: "M1.5 1.5h13L13 13l-5 2l-5-2z"
|
|
17
|
+
}), createElementVNode("path", {
|
|
18
|
+
stroke: "#cad3f5",
|
|
19
|
+
d: "M11 4.5H5l.25 3h5.5l-.25 3l-2.5 1l-2.5-1l-.08-1"
|
|
20
|
+
})], -1)])]);
|
|
21
|
+
}
|
|
22
|
+
var html_default = markRaw({
|
|
23
|
+
name: "catppuccin-html",
|
|
24
|
+
render
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { html_default as default };
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { computed, createElementBlock, createElementVNode, defineComponent, normalizeStyle, openBlock, ref } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region src/components/previewers/html.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
const _hoisted_1 = ["srcdoc"];
|
|
5
|
+
var html_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "html",
|
|
7
|
+
props: {
|
|
8
|
+
node: {
|
|
9
|
+
type: Object,
|
|
10
|
+
required: true
|
|
11
|
+
},
|
|
12
|
+
markdownParser: {
|
|
13
|
+
type: Object,
|
|
14
|
+
required: true
|
|
15
|
+
},
|
|
16
|
+
nodeRenderers: {
|
|
17
|
+
type: Object,
|
|
18
|
+
required: true
|
|
19
|
+
},
|
|
20
|
+
mediumZoom: {
|
|
21
|
+
type: Object,
|
|
22
|
+
required: true
|
|
23
|
+
},
|
|
24
|
+
indexKey: {
|
|
25
|
+
type: [Number, String],
|
|
26
|
+
required: true
|
|
27
|
+
},
|
|
28
|
+
getContainer: {
|
|
29
|
+
type: Function,
|
|
30
|
+
required: true
|
|
31
|
+
},
|
|
32
|
+
controls: {
|
|
33
|
+
type: [Boolean, Object],
|
|
34
|
+
required: false
|
|
35
|
+
},
|
|
36
|
+
previewers: {
|
|
37
|
+
type: [Boolean, Object],
|
|
38
|
+
required: false
|
|
39
|
+
},
|
|
40
|
+
shikiOptions: {
|
|
41
|
+
type: Object,
|
|
42
|
+
required: false
|
|
43
|
+
},
|
|
44
|
+
mermaidOptions: {
|
|
45
|
+
type: Object,
|
|
46
|
+
required: false
|
|
47
|
+
},
|
|
48
|
+
katexOptions: {
|
|
49
|
+
type: Object,
|
|
50
|
+
required: false
|
|
51
|
+
},
|
|
52
|
+
hardenOptions: {
|
|
53
|
+
type: Object,
|
|
54
|
+
required: false
|
|
55
|
+
},
|
|
56
|
+
codeOptions: {
|
|
57
|
+
type: Object,
|
|
58
|
+
required: false
|
|
59
|
+
},
|
|
60
|
+
imageOptions: {
|
|
61
|
+
type: Object,
|
|
62
|
+
required: false
|
|
63
|
+
},
|
|
64
|
+
isDark: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
required: false
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
setup(__props) {
|
|
70
|
+
const props = __props;
|
|
71
|
+
const iframeRef = ref();
|
|
72
|
+
const height = ref(0);
|
|
73
|
+
const code = computed(() => props.node.value.trim());
|
|
74
|
+
function updateHeight() {
|
|
75
|
+
var _iframeRef$value;
|
|
76
|
+
const doc = (_iframeRef$value = iframeRef.value) === null || _iframeRef$value === void 0 ? void 0 : _iframeRef$value.contentDocument;
|
|
77
|
+
if (!doc) return;
|
|
78
|
+
height.value = doc.body.scrollHeight + 16;
|
|
79
|
+
}
|
|
80
|
+
return (_ctx, _cache) => {
|
|
81
|
+
return openBlock(), createElementBlock("div", {
|
|
82
|
+
class: "html-previewer",
|
|
83
|
+
style: normalizeStyle({ height: `${height.value}px` })
|
|
84
|
+
}, [createElementVNode("iframe", {
|
|
85
|
+
ref_key: "iframeRef",
|
|
86
|
+
ref: iframeRef,
|
|
87
|
+
"data-stream-markdown": "html-previewer",
|
|
88
|
+
srcdoc: code.value,
|
|
89
|
+
sandbox: "allow-scripts allow-same-origin",
|
|
90
|
+
frameborder: 0,
|
|
91
|
+
onLoad: updateHeight
|
|
92
|
+
}, null, 40, _hoisted_1)], 4);
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
//#endregion
|
|
98
|
+
//#region src/components/previewers/html.vue
|
|
99
|
+
var html_default = html_vue_vue_type_script_setup_true_lang_default;
|
|
100
|
+
|
|
101
|
+
//#endregion
|
|
102
|
+
export { html_default as default };
|