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,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/list.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var list_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "list",
|
|
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 isTaskList = computed(() => props.node.children.some((child) => typeof child.checked === "boolean"));
|
|
72
|
+
const tag = computed(() => props.node.ordered ? "ol" : "ul");
|
|
73
|
+
const id = computed(() => isTaskList.value ? "task-list" : props.node.ordered ? "ordered-list" : "unordered-list");
|
|
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/list.vue
|
|
85
|
+
var list_default = list_vue_vue_type_script_setup_true_lang_default;
|
|
86
|
+
|
|
87
|
+
//#endregion
|
|
88
|
+
export { list_default as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
.stream-markdown [data-stream-markdown="ordered-list"], .stream-markdown [data-stream-markdown="unordered-list"], .stream-markdown [data-stream-markdown="task-list"] {
|
|
2
|
+
white-space: normal;
|
|
3
|
+
padding-left: 1.25rem;
|
|
4
|
+
}
|
|
5
|
+
.stream-markdown [data-stream-markdown="ordered-list"] {
|
|
6
|
+
list-style-type: decimal;
|
|
7
|
+
}
|
|
8
|
+
.stream-markdown [data-stream-markdown="unordered-list"], .stream-markdown [data-stream-markdown="task-list"] {
|
|
9
|
+
list-style-type: disc;
|
|
10
|
+
}
|
|
11
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
.stream-markdown [data-stream-markdown="list-item"] {
|
|
2
|
+
padding-block: .25rem;
|
|
3
|
+
padding-left: .25rem;
|
|
4
|
+
}
|
|
5
|
+
.stream-markdown [data-stream-markdown="list-item"] p {
|
|
6
|
+
margin: 0;
|
|
7
|
+
}
|
|
8
|
+
.stream-markdown [data-stream-markdown="task-list-item"] p {
|
|
9
|
+
display: inline-block;
|
|
10
|
+
}
|
|
11
|
+
.stream-markdown [data-stream-markdown="task-list-item-checkbox"] {
|
|
12
|
+
vertical-align: middle;
|
|
13
|
+
margin-right: .5rem;
|
|
14
|
+
}
|
|
15
|
+
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { t as node_list_default } from "./node-list-CGr_EVtn.js";
|
|
2
|
+
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, openBlock } from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/renderers/list-item.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
const _hoisted_1 = { "data-stream-markdown": "list-item" };
|
|
6
|
+
const _hoisted_2 = {
|
|
7
|
+
key: 0,
|
|
8
|
+
"data-stream-markdown": "task-list-item"
|
|
9
|
+
};
|
|
10
|
+
const _hoisted_3 = ["checked"];
|
|
11
|
+
var list_item_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
12
|
+
__name: "list-item",
|
|
13
|
+
props: {
|
|
14
|
+
node: {
|
|
15
|
+
type: Object,
|
|
16
|
+
required: true
|
|
17
|
+
},
|
|
18
|
+
markdownParser: {
|
|
19
|
+
type: Object,
|
|
20
|
+
required: true
|
|
21
|
+
},
|
|
22
|
+
nodeRenderers: {
|
|
23
|
+
type: Object,
|
|
24
|
+
required: true
|
|
25
|
+
},
|
|
26
|
+
mediumZoom: {
|
|
27
|
+
type: Object,
|
|
28
|
+
required: true
|
|
29
|
+
},
|
|
30
|
+
indexKey: {
|
|
31
|
+
type: [Number, String],
|
|
32
|
+
required: true
|
|
33
|
+
},
|
|
34
|
+
getContainer: {
|
|
35
|
+
type: Function,
|
|
36
|
+
required: true
|
|
37
|
+
},
|
|
38
|
+
controls: {
|
|
39
|
+
type: [Boolean, Object],
|
|
40
|
+
required: false
|
|
41
|
+
},
|
|
42
|
+
previewers: {
|
|
43
|
+
type: [Boolean, Object],
|
|
44
|
+
required: false
|
|
45
|
+
},
|
|
46
|
+
shikiOptions: {
|
|
47
|
+
type: Object,
|
|
48
|
+
required: false
|
|
49
|
+
},
|
|
50
|
+
mermaidOptions: {
|
|
51
|
+
type: Object,
|
|
52
|
+
required: false
|
|
53
|
+
},
|
|
54
|
+
katexOptions: {
|
|
55
|
+
type: Object,
|
|
56
|
+
required: false
|
|
57
|
+
},
|
|
58
|
+
hardenOptions: {
|
|
59
|
+
type: Object,
|
|
60
|
+
required: false
|
|
61
|
+
},
|
|
62
|
+
codeOptions: {
|
|
63
|
+
type: Object,
|
|
64
|
+
required: false
|
|
65
|
+
},
|
|
66
|
+
imageOptions: {
|
|
67
|
+
type: Object,
|
|
68
|
+
required: false
|
|
69
|
+
},
|
|
70
|
+
isDark: {
|
|
71
|
+
type: Boolean,
|
|
72
|
+
required: false
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
setup(__props) {
|
|
76
|
+
const props = __props;
|
|
77
|
+
const isTaskListItem = computed(() => typeof props.node.checked === "boolean");
|
|
78
|
+
const checked = computed(() => !!props.node.checked);
|
|
79
|
+
return (_ctx, _cache) => {
|
|
80
|
+
return openBlock(), createElementBlock("li", _hoisted_1, [isTaskListItem.value ? (openBlock(), createElementBlock("p", _hoisted_2, [createElementVNode("input", {
|
|
81
|
+
"data-stream-markdown": "task-list-item-checkbox",
|
|
82
|
+
type: "checkbox",
|
|
83
|
+
checked: checked.value,
|
|
84
|
+
disabled: ""
|
|
85
|
+
}, null, 8, _hoisted_3), createVNode(node_list_default, mergeProps(props, { nodes: __props.node.children }), null, 16, ["nodes"])])) : (openBlock(), createBlock(node_list_default, mergeProps({ key: 1 }, props, { nodes: __props.node.children }), null, 16, ["nodes"]))]);
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region src/components/renderers/list-item.vue
|
|
92
|
+
var list_item_default = list_item_vue_vue_type_script_setup_true_lang_default;
|
|
93
|
+
|
|
94
|
+
//#endregion
|
|
95
|
+
export { list_item_default as default };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/log
|
|
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 3.5h9v11h-9z" }), createElementVNode("path", { d: "M11.5 3.45V1.5h-9v11h1.95m3.05-5h3m-3 3h3" })], -1)])]);
|
|
16
|
+
}
|
|
17
|
+
var log_default = markRaw({
|
|
18
|
+
name: "catppuccin-log",
|
|
19
|
+
render
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { log_default as default };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/lua
|
|
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: "M10.5 7A1.5 1.5 0 0 1 9 8.5A1.5 1.5 0 0 1 7.5 7A1.5 1.5 0 0 1 9 5.5A1.5 1.5 0 0 1 10.5 7"
|
|
17
|
+
}), createElementVNode("path", {
|
|
18
|
+
stroke: "#8aadf4",
|
|
19
|
+
d: "M7 2.5a6.5 6.5 0 1 0 0 13a6.5 6.5 0 0 0 0-13m7-2a1.5 1.5 0 1 0 0 3a1.5 1.5 0 0 0 0-3"
|
|
20
|
+
})], -1)])]);
|
|
21
|
+
}
|
|
22
|
+
var lua_default = markRaw({
|
|
23
|
+
name: "catppuccin-lua",
|
|
24
|
+
render
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { lua_default as default };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/luau
|
|
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: "#91d7e3",
|
|
13
|
+
"stroke-linejoin": "round",
|
|
14
|
+
d: "M4.289 1.5L14.5 4.245L11.777 14.5L1.5 11.711Z"
|
|
15
|
+
}, null, -1), createElementVNode("path", {
|
|
16
|
+
fill: "none",
|
|
17
|
+
stroke: "#cad3f5",
|
|
18
|
+
"stroke-linejoin": "round",
|
|
19
|
+
d: "m9.2 5l-.7 2.8l2.8.7l.7-2.8z"
|
|
20
|
+
}, null, -1)])]);
|
|
21
|
+
}
|
|
22
|
+
var luau_default = markRaw({
|
|
23
|
+
name: "catppuccin-luau",
|
|
24
|
+
render
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { luau_default as default };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/makefile
|
|
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: "m9.24 8.47l-5.28 5.58c-.56.6-1.47.6-2.04 0a1.57 1.57 0 0 1 0-2.14L7.2 6.32"
|
|
17
|
+
}), createElementVNode("path", {
|
|
18
|
+
stroke: "#cad3f5",
|
|
19
|
+
d: "m13.74 8.03l-.86-.93a2.46 2.46 0 0 1-.64-1.68v-.65l-1.89-2.04A3.7 3.7 0 0 0 7.63 1.5H5.5l.64.61A4.72 4.72 0 0 1 7.5 5.57v1.16l1.46 1.5h1.71l1.57 1.42m-.74.85l3-3"
|
|
20
|
+
})], -1)])]);
|
|
21
|
+
}
|
|
22
|
+
var makefile_default = markRaw({
|
|
23
|
+
name: "catppuccin-makefile",
|
|
24
|
+
render
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { makefile_default as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/markdown
|
|
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: "m9.25 8.25l2.25 2.25l2.25-2.25M3.5 11V5.5l2.04 3l1.96-3V11m4-.5V5M1.65 2.5h12.7c.59 0 1.15.49 1.15 1v9c0 .51-.56 1-1.15 1H1.65c-.59 0-1.15-.49-1.15-1V3.58c0-.5.56-1.08 1.15-1.08"
|
|
16
|
+
}, null, -1)])]);
|
|
17
|
+
}
|
|
18
|
+
var markdown_default = markRaw({
|
|
19
|
+
name: "catppuccin-markdown",
|
|
20
|
+
render
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { markdown_default as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, createStaticVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/marko
|
|
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] = [createStaticVNode("<g fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path stroke=\"#ed8796\" d=\"m12 13.5l3.5-5l-3.5-6\"></path><path stroke=\"#8aadf4\" d=\"m4 2.5l-3.47 6l3.47 5\"></path><path stroke=\"#8bd5ca\" d=\"M6.43 8.5L4 2.5\"></path><path stroke=\"#a6da95\" d=\"m9 2.5l-2.57 6\"></path><path stroke=\"#eed49f\" d=\"m9 13.5l3.51-5L9 2.5\"></path></g>", 1)])]);
|
|
11
|
+
}
|
|
12
|
+
var marko_default = markRaw({
|
|
13
|
+
name: "catppuccin-marko",
|
|
14
|
+
render
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { marko_default as default };
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { a as useMathRenderer } from "./composables-qhB1h_ed.js";
|
|
2
|
+
import { t as error_component_default } from "./error-component-CzarUjhh.js";
|
|
3
|
+
import { Transition, computed, createBlock, createCommentVNode, createElementBlock, defineComponent, mergeProps, openBlock, resolveDynamicComponent, toRefs, unref, withCtx } from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/components/renderers/math.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
const _hoisted_1 = ["innerHTML"];
|
|
7
|
+
var math_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "math",
|
|
9
|
+
props: {
|
|
10
|
+
node: {
|
|
11
|
+
type: Object,
|
|
12
|
+
required: true
|
|
13
|
+
},
|
|
14
|
+
markdownParser: {
|
|
15
|
+
type: Object,
|
|
16
|
+
required: true
|
|
17
|
+
},
|
|
18
|
+
nodeRenderers: {
|
|
19
|
+
type: Object,
|
|
20
|
+
required: true
|
|
21
|
+
},
|
|
22
|
+
mediumZoom: {
|
|
23
|
+
type: Object,
|
|
24
|
+
required: true
|
|
25
|
+
},
|
|
26
|
+
indexKey: {
|
|
27
|
+
type: [Number, String],
|
|
28
|
+
required: true
|
|
29
|
+
},
|
|
30
|
+
getContainer: {
|
|
31
|
+
type: Function,
|
|
32
|
+
required: true
|
|
33
|
+
},
|
|
34
|
+
controls: {
|
|
35
|
+
type: [Boolean, Object],
|
|
36
|
+
required: false
|
|
37
|
+
},
|
|
38
|
+
previewers: {
|
|
39
|
+
type: [Boolean, Object],
|
|
40
|
+
required: false
|
|
41
|
+
},
|
|
42
|
+
shikiOptions: {
|
|
43
|
+
type: Object,
|
|
44
|
+
required: false
|
|
45
|
+
},
|
|
46
|
+
mermaidOptions: {
|
|
47
|
+
type: Object,
|
|
48
|
+
required: false
|
|
49
|
+
},
|
|
50
|
+
katexOptions: {
|
|
51
|
+
type: Object,
|
|
52
|
+
required: false
|
|
53
|
+
},
|
|
54
|
+
hardenOptions: {
|
|
55
|
+
type: Object,
|
|
56
|
+
required: false
|
|
57
|
+
},
|
|
58
|
+
codeOptions: {
|
|
59
|
+
type: Object,
|
|
60
|
+
required: false
|
|
61
|
+
},
|
|
62
|
+
imageOptions: {
|
|
63
|
+
type: Object,
|
|
64
|
+
required: false
|
|
65
|
+
},
|
|
66
|
+
isDark: {
|
|
67
|
+
type: Boolean,
|
|
68
|
+
required: false
|
|
69
|
+
},
|
|
70
|
+
throttle: {
|
|
71
|
+
type: Number,
|
|
72
|
+
required: false,
|
|
73
|
+
default: 300
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
setup(__props) {
|
|
77
|
+
const props = __props;
|
|
78
|
+
const { node, katexOptions, throttle } = toRefs(props);
|
|
79
|
+
const { html, error, errorMessage } = useMathRenderer({
|
|
80
|
+
node,
|
|
81
|
+
katexOptions,
|
|
82
|
+
throttle
|
|
83
|
+
});
|
|
84
|
+
const Error = computed(() => {
|
|
85
|
+
var _katexOptions$value;
|
|
86
|
+
return ((_katexOptions$value = katexOptions.value) === null || _katexOptions$value === void 0 ? void 0 : _katexOptions$value.errorComponent) ?? error_component_default;
|
|
87
|
+
});
|
|
88
|
+
return (_ctx, _cache) => {
|
|
89
|
+
return openBlock(), createBlock(Transition, { name: "table-node-fade" }, {
|
|
90
|
+
default: withCtx(() => [unref(error) ? (openBlock(), createBlock(resolveDynamicComponent(Error.value), mergeProps({
|
|
91
|
+
key: 0,
|
|
92
|
+
variant: "katex",
|
|
93
|
+
message: unref(errorMessage)
|
|
94
|
+
}, props), null, 16, ["message"])) : (openBlock(), createElementBlock("div", {
|
|
95
|
+
key: 1,
|
|
96
|
+
"data-stream-markdown": "math",
|
|
97
|
+
innerHTML: unref(html)
|
|
98
|
+
}, null, 8, _hoisted_1))]),
|
|
99
|
+
_: 1
|
|
100
|
+
});
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
//#endregion
|
|
106
|
+
//#region src/components/renderers/math.vue
|
|
107
|
+
var math_default = math_vue_vue_type_script_setup_true_lang_default;
|
|
108
|
+
|
|
109
|
+
//#endregion
|
|
110
|
+
export { math_default as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
.stream-markdown [data-stream-markdown="math"] {
|
|
2
|
+
text-align: center;
|
|
3
|
+
margin-block: 1rem;
|
|
4
|
+
}
|
|
5
|
+
.stream-markdown .math-enter-active, .stream-markdown .math-leave-active {
|
|
6
|
+
transition: opacity var (--default-transition-duration) ease;
|
|
7
|
+
}
|
|
8
|
+
.stream-markdown .math-enter-from, .stream-markdown .math-leave-to {
|
|
9
|
+
opacity: 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/matlab
|
|
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: "#7dc4e4",
|
|
16
|
+
d: "M4 11L.5 8.5L5 7q.78-1.77 1.89-1.89c.74-.07 1.94-1.28 3.61-3.61M5 7l1.5 1.5"
|
|
17
|
+
}), createElementVNode("path", {
|
|
18
|
+
stroke: "#f5a97f",
|
|
19
|
+
d: "m15.5 12.5l-5-11C8.5 6.83 6.33 10 4 11c1.67-.33 2.67.83 3 3.5c3.5-1.5 3.5-3.5 5-4s1.5 1.5 3.5 2"
|
|
20
|
+
})], -1)])]);
|
|
21
|
+
}
|
|
22
|
+
var matlab_default = markRaw({
|
|
23
|
+
name: "catppuccin-matlab",
|
|
24
|
+
render
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { matlab_default as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/lucide/maximize
|
|
4
|
+
const _hoisted_1 = {
|
|
5
|
+
viewBox: "0 0 24 24",
|
|
6
|
+
width: "1.2em",
|
|
7
|
+
height: "1.2em"
|
|
8
|
+
};
|
|
9
|
+
function render(_ctx, _cache) {
|
|
10
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", {
|
|
11
|
+
fill: "none",
|
|
12
|
+
stroke: "currentColor",
|
|
13
|
+
"stroke-linecap": "round",
|
|
14
|
+
"stroke-linejoin": "round",
|
|
15
|
+
"stroke-width": "2",
|
|
16
|
+
d: "M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3M3 16v3a2 2 0 0 0 2 2h3m8 0h3a2 2 0 0 0 2-2v-3"
|
|
17
|
+
}, null, -1)])]);
|
|
18
|
+
}
|
|
19
|
+
var maximize_default = markRaw({
|
|
20
|
+
name: "lucide-maximize",
|
|
21
|
+
render
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { maximize_default as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/mermaid
|
|
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: "M1.5 2.5c0 6 2.25 5.75 4 7c.83.67 1.17 2 1 4h3c-.17-2 .17-3.33 1-4c1.75-1.25 4-1 4-7C12 2.5 10 3 8 7C6 3 4 2.5 1.5 2.5"
|
|
16
|
+
}, null, -1)])]);
|
|
17
|
+
}
|
|
18
|
+
var mermaid_default = markRaw({
|
|
19
|
+
name: "catppuccin-mermaid",
|
|
20
|
+
render
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { mermaid_default as default };
|