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,69 @@
|
|
|
1
|
+
import { t as button_default } from "./button-D8xx1WIP.js";
|
|
2
|
+
import { Fragment, createBlock, createElementBlock, defineComponent, mergeModels, openBlock, renderList, useModel } from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/segmented.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
const _hoisted_1 = { "data-stream-markdown": "segmented" };
|
|
6
|
+
var segmented_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "segmented",
|
|
8
|
+
props: /* @__PURE__ */ mergeModels({
|
|
9
|
+
options: {
|
|
10
|
+
type: Array,
|
|
11
|
+
required: false,
|
|
12
|
+
default: () => []
|
|
13
|
+
},
|
|
14
|
+
buttonStyle: {
|
|
15
|
+
type: Object,
|
|
16
|
+
required: false,
|
|
17
|
+
default: () => ({})
|
|
18
|
+
}
|
|
19
|
+
}, {
|
|
20
|
+
"value": {
|
|
21
|
+
type: String,
|
|
22
|
+
required: false,
|
|
23
|
+
default: ""
|
|
24
|
+
},
|
|
25
|
+
"valueModifiers": {}
|
|
26
|
+
}),
|
|
27
|
+
emits: /* @__PURE__ */ mergeModels(["change"], ["update:value"]),
|
|
28
|
+
setup(__props, { emit: __emit }) {
|
|
29
|
+
const props = __props;
|
|
30
|
+
const emits = __emit;
|
|
31
|
+
const modelValue = useModel(__props, "value");
|
|
32
|
+
if (props.options.length && !modelValue.value) modelValue.value = props.options[0].value;
|
|
33
|
+
function getButtonStyle(item) {
|
|
34
|
+
return {
|
|
35
|
+
paddingBlock: "0.25rem",
|
|
36
|
+
backgroundColor: modelValue.value === item.value ? "var(--accent)" : void 0,
|
|
37
|
+
...props.buttonStyle
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function onClick(item) {
|
|
41
|
+
modelValue.value = item.value;
|
|
42
|
+
emits("change", item.value);
|
|
43
|
+
}
|
|
44
|
+
return (_ctx, _cache) => {
|
|
45
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (item) => {
|
|
46
|
+
return openBlock(), createBlock(button_default, {
|
|
47
|
+
key: item.value,
|
|
48
|
+
variant: "text",
|
|
49
|
+
icon: item.icon,
|
|
50
|
+
name: item.label,
|
|
51
|
+
"button-style": getButtonStyle(item),
|
|
52
|
+
onClick: () => onClick(item)
|
|
53
|
+
}, null, 8, [
|
|
54
|
+
"icon",
|
|
55
|
+
"name",
|
|
56
|
+
"button-style",
|
|
57
|
+
"onClick"
|
|
58
|
+
]);
|
|
59
|
+
}), 128))]);
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region src/components/segmented.vue
|
|
66
|
+
var segmented_default = segmented_vue_vue_type_script_setup_true_lang_default;
|
|
67
|
+
|
|
68
|
+
//#endregion
|
|
69
|
+
export { segmented_default as t };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/shader
|
|
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.41 12c0 .9-.47 1.72-1.23 2.17c-.76.44-1.7.44-2.45 0A2.5 2.5 0 0 1 1.5 12c0-1.38 1.1-2.5 2.46-2.5A2.48 2.48 0 0 1 6.4 12h0Zm3.78-7.23A2.85 2.85 0 0 0 4.6 3.6a2.9 2.9 0 0 0 1.77 3.5c2.19.88 2.7 1.75 2.43 4.13a2.85 2.85 0 0 0 5.58 1.17a2.9 2.9 0 0 0-1.77-3.5c-2.19-.88-2.7-1.76-2.43-4.13h0Z"
|
|
16
|
+
}, null, -1)])]);
|
|
17
|
+
}
|
|
18
|
+
var shader_default = markRaw({
|
|
19
|
+
name: "catppuccin-shader",
|
|
20
|
+
render
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { shader_default as default };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
.stream-markdown [data-stream-markdown="code"] .line {
|
|
2
|
+
display: block;
|
|
3
|
+
position: relative;
|
|
4
|
+
}
|
|
5
|
+
.stream-markdown [data-stream-markdown="code"] .line:before {
|
|
6
|
+
text-align: right;
|
|
7
|
+
width: 1rem;
|
|
8
|
+
color: color-mix(in oklab, var(--muted-foreground) 50%, transparent);
|
|
9
|
+
font-size: 13px;
|
|
10
|
+
font-family: var(--font-mono);
|
|
11
|
+
content: counter(line);
|
|
12
|
+
counter-increment: line;
|
|
13
|
+
user-select: none;
|
|
14
|
+
margin-right: 1rem;
|
|
15
|
+
display: inline-block;
|
|
16
|
+
}
|
|
17
|
+
.stream-markdown [data-stream-markdown="code"][data-show-line-numbers="false"] .line:before {
|
|
18
|
+
display: none;
|
|
19
|
+
}
|
|
20
|
+
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { r as useShiki } from "./composables-qhB1h_ed.js";
|
|
2
|
+
import { t as vanilla_default } from "./vanilla-DkX6g0dm.js";
|
|
3
|
+
import { computed, createBlock, createCommentVNode, defineAsyncComponent, defineComponent, mergeProps, normalizeProps, openBlock, ref, toRefs, unref, watch } from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/components/renderers/code/shiki.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var shiki_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "shiki",
|
|
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 { shikiOptions, codeOptions, isDark } = toRefs(props);
|
|
73
|
+
const ShikiTokensRenderer = defineAsyncComponent(() => import("./renderer-CZ41eK_V.js"));
|
|
74
|
+
const code = computed(() => props.node.value.trim());
|
|
75
|
+
const lang = computed(() => props.node.lang || "");
|
|
76
|
+
const showLineNumbers = computed(() => {
|
|
77
|
+
var _codeOptions$value;
|
|
78
|
+
return typeof ((_codeOptions$value = codeOptions.value) === null || _codeOptions$value === void 0 ? void 0 : _codeOptions$value.lineNumbers) === "boolean" ? codeOptions.value.lineNumbers : true;
|
|
79
|
+
});
|
|
80
|
+
const { codeToTokens } = useShiki({
|
|
81
|
+
lang,
|
|
82
|
+
shikiOptions,
|
|
83
|
+
isDark
|
|
84
|
+
});
|
|
85
|
+
const tokens = ref();
|
|
86
|
+
watch(() => [
|
|
87
|
+
code.value,
|
|
88
|
+
shikiOptions.value,
|
|
89
|
+
isDark.value
|
|
90
|
+
], async () => {
|
|
91
|
+
tokens.value = await codeToTokens(code.value);
|
|
92
|
+
}, { immediate: true });
|
|
93
|
+
return (_ctx, _cache) => {
|
|
94
|
+
return tokens.value ? (openBlock(), createBlock(unref(ShikiTokensRenderer), {
|
|
95
|
+
key: 0,
|
|
96
|
+
"data-stream-markdown": "code",
|
|
97
|
+
"data-show-line-numbers": showLineNumbers.value,
|
|
98
|
+
tokens: tokens.value,
|
|
99
|
+
"show-line-numbers": showLineNumbers.value
|
|
100
|
+
}, null, 8, [
|
|
101
|
+
"data-show-line-numbers",
|
|
102
|
+
"tokens",
|
|
103
|
+
"show-line-numbers"
|
|
104
|
+
])) : (openBlock(), createBlock(vanilla_default, normalizeProps(mergeProps({ key: 1 }, props)), null, 16));
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
//#endregion
|
|
110
|
+
//#region src/components/renderers/code/shiki.vue
|
|
111
|
+
var shiki_default = shiki_vue_vue_type_script_setup_true_lang_default;
|
|
112
|
+
|
|
113
|
+
//#endregion
|
|
114
|
+
export { shiki_default as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/solidity
|
|
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: "m3 11.5l2.5 4l2.5-4l2.5 4l2.5-4l-2.5-4l-2.5 4m2.5 4h-5m7.5-4H3m10-7l-2.5-4l-2.5 4l-2.5-4l-2.5 4l2.5 4l2.5-4M5.5.5h5M3 4.5h10"
|
|
16
|
+
}, null, -1)])]);
|
|
17
|
+
}
|
|
18
|
+
var solidity_default = markRaw({
|
|
19
|
+
name: "catppuccin-solidity",
|
|
20
|
+
render
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { solidity_default as default };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.stream-markdown [data-stream-markdown="spin"] {
|
|
2
|
+
border: 2px solid var(--foreground);
|
|
3
|
+
border-top-color: #0000;
|
|
4
|
+
border-radius: 50%;
|
|
5
|
+
width: 1rem;
|
|
6
|
+
height: 1rem;
|
|
7
|
+
margin-block: 1rem;
|
|
8
|
+
animation: 1s linear infinite spin;
|
|
9
|
+
display: inline-block;
|
|
10
|
+
}
|
|
11
|
+
@keyframes spin {
|
|
12
|
+
from {
|
|
13
|
+
transform: rotate(0);
|
|
14
|
+
}
|
|
15
|
+
to {
|
|
16
|
+
transform: rotate(360deg);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createElementBlock, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region \0plugin-vue:export-helper
|
|
4
|
+
var __plugin_vue_export_helper_default = (sfc, props) => {
|
|
5
|
+
const target = sfc.__vccOpts || sfc;
|
|
6
|
+
for (const [key, val] of props) target[key] = val;
|
|
7
|
+
return target;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/components/spin.vue
|
|
12
|
+
const _sfc_main = {};
|
|
13
|
+
const _hoisted_1 = {
|
|
14
|
+
"aria-hidden": "true",
|
|
15
|
+
"data-stream-markdown": "spin"
|
|
16
|
+
};
|
|
17
|
+
function _sfc_render(_ctx, _cache) {
|
|
18
|
+
return openBlock(), createElementBlock("div", _hoisted_1);
|
|
19
|
+
}
|
|
20
|
+
var spin_default = /* @__PURE__ */ __plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render]]);
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { spin_default as t };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/stata
|
|
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("rect", {
|
|
11
|
+
width: "13",
|
|
12
|
+
height: "13",
|
|
13
|
+
x: "1.5",
|
|
14
|
+
y: "1.5",
|
|
15
|
+
fill: "none",
|
|
16
|
+
stroke: "#7dc4e4",
|
|
17
|
+
rx: ".722",
|
|
18
|
+
ry: ".722"
|
|
19
|
+
}, null, -1), createElementVNode("path", {
|
|
20
|
+
fill: "none",
|
|
21
|
+
stroke: "#cad3f5",
|
|
22
|
+
"stroke-linecap": "round",
|
|
23
|
+
"stroke-linejoin": "round",
|
|
24
|
+
d: "M3.5 12.5h6v-9h3v6h-9v-3h9v-3h-6v9zv-3"
|
|
25
|
+
}, null, -1)])]);
|
|
26
|
+
}
|
|
27
|
+
var stata_default = markRaw({
|
|
28
|
+
name: "catppuccin-stata",
|
|
29
|
+
render
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
export { stata_default as default };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { t as node_list_default } from "./node-list-CGr_EVtn.js";
|
|
2
|
+
import { createElementBlock, createVNode, defineComponent, mergeProps, openBlock } from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/renderers/strong.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
const _hoisted_1 = { "data-stream-markdown": "strong" };
|
|
6
|
+
var strong_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "strong",
|
|
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
|
+
return (_ctx, _cache) => {
|
|
73
|
+
return openBlock(), createElementBlock("strong", _hoisted_1, [createVNode(node_list_default, mergeProps(props, { nodes: __props.node.children }), null, 16, ["nodes"])]);
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region src/components/renderers/strong.vue
|
|
80
|
+
var strong_default = strong_vue_vue_type_script_setup_true_lang_default;
|
|
81
|
+
|
|
82
|
+
//#endregion
|
|
83
|
+
export { strong_default as default };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/svelte
|
|
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: "M12.86 6.72s1.39-1.98.08-3.87C11.286.763 9.44 1.6 9.44 1.6S6.15 3.35 4.33 4.59c-1.4 1-2.24 2.26-1.03 4.37c1.22 2.1 4.58 1.21 4.58 1.21" }), createElementVNode("path", { d: "M3.14 9.28s-1.39 1.98-.08 3.87c1.31 1.9 3.5 1.24 3.5 1.24s3.29-1.74 5.11-2.98c1.4-1 2.24-2.26 1.03-4.37c-1.22-2.1-4.58-1.21-4.58-1.21M6.3 6.96l4.14-2.56m-4.92 7.25L9.66 9.1" })], -1)])]);
|
|
16
|
+
}
|
|
17
|
+
var svelte_default = markRaw({
|
|
18
|
+
name: "catppuccin-svelte",
|
|
19
|
+
render
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { svelte_default as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/swift
|
|
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: "M14.34 10.2c.34-1.08 1.1-5.07-4.45-8.62a.48.48 0 0 0-.6.07a.44.44 0 0 0-.02.6c.03.02 2.07 2.5 1.34 5.34c-1.26-.86-6.24-4.81-6.24-4.81L7.25 7.5L1.9 4.05S5.68 8.7 8 10.45c-1.12.4-3.56.82-6.78-1.18a.48.48 0 0 0-.58.06a.44.44 0 0 0-.08.56c.11.18 2.7 4.36 8.14 4.36c1.5 0 2.37-.42 3.08-.77c.43-.2.77-.37 1.14-.37c.93 0 1.54.92 1.54.93c.1.14.27.22.44.21a.46.46 0 0 0 .4-.28c.67-1.55-.49-3.2-.96-3.78h0Z"
|
|
16
|
+
}, null, -1)])]);
|
|
17
|
+
}
|
|
18
|
+
var swift_default = markRaw({
|
|
19
|
+
name: "catppuccin-swift",
|
|
20
|
+
render
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { swift_default as default };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Fragment, createElementBlock, createElementVNode, defineComponent, mergeProps, normalizeStyle, openBlock, renderList, renderSlot } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region src/components/table.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
const _hoisted_1 = { "data-stream-markdown": "table" };
|
|
5
|
+
const _hoisted_2 = { "data-stream-markdown": "table-header" };
|
|
6
|
+
const _hoisted_3 = { "data-stream-markdown": "table-body" };
|
|
7
|
+
var table_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "table",
|
|
9
|
+
props: {
|
|
10
|
+
getAlign: {
|
|
11
|
+
type: Function,
|
|
12
|
+
required: false
|
|
13
|
+
},
|
|
14
|
+
headers: {
|
|
15
|
+
type: Array,
|
|
16
|
+
required: false
|
|
17
|
+
},
|
|
18
|
+
rows: {
|
|
19
|
+
type: Array,
|
|
20
|
+
required: false
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
setup(__props) {
|
|
24
|
+
const props = __props;
|
|
25
|
+
function getAlign(index) {
|
|
26
|
+
var _props$getAlign;
|
|
27
|
+
return ((_props$getAlign = props.getAlign) === null || _props$getAlign === void 0 ? void 0 : _props$getAlign.call(props, index)) || "left";
|
|
28
|
+
}
|
|
29
|
+
return (_ctx, _cache) => {
|
|
30
|
+
return openBlock(), createElementBlock("table", _hoisted_1, [createElementVNode("thead", _hoisted_2, [createElementVNode("tr", null, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.headers, (cell, index) => {
|
|
31
|
+
return openBlock(), createElementBlock("th", {
|
|
32
|
+
key: `header-${index}`,
|
|
33
|
+
style: normalizeStyle({ textAlign: getAlign(index) })
|
|
34
|
+
}, [renderSlot(_ctx.$slots, "header-cell", mergeProps({ ref_for: true }, {
|
|
35
|
+
cell,
|
|
36
|
+
cellIndex: index
|
|
37
|
+
}))], 4);
|
|
38
|
+
}), 128))])]), createElementVNode("tbody", _hoisted_3, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.rows, (row, rowIndex) => {
|
|
39
|
+
return openBlock(), createElementBlock("tr", { key: `${row}-${rowIndex}` }, [(openBlock(true), createElementBlock(Fragment, null, renderList(row.children, (cell, cellIndex) => {
|
|
40
|
+
return openBlock(), createElementBlock("td", {
|
|
41
|
+
key: cellIndex,
|
|
42
|
+
style: normalizeStyle({ textAlign: getAlign(cellIndex) })
|
|
43
|
+
}, [renderSlot(_ctx.$slots, "body-cell", mergeProps({ ref_for: true }, {
|
|
44
|
+
cell,
|
|
45
|
+
rowIndex,
|
|
46
|
+
cellIndex
|
|
47
|
+
}))], 4);
|
|
48
|
+
}), 128))]);
|
|
49
|
+
}), 128))])]);
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/components/table.vue
|
|
56
|
+
var table_default = table_vue_vue_type_script_setup_true_lang_default;
|
|
57
|
+
|
|
58
|
+
//#endregion
|
|
59
|
+
export { table_default as t };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.stream-markdown [data-stream-markdown="table-wrapper"] {
|
|
2
|
+
flex-direction: column;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: .5rem;
|
|
5
|
+
margin-block: 1rem;
|
|
6
|
+
display: flex;
|
|
7
|
+
}
|
|
8
|
+
.stream-markdown [data-stream-markdown="table-controls"] {
|
|
9
|
+
justify-content: end;
|
|
10
|
+
align-items: center;
|
|
11
|
+
gap: .25rem;
|
|
12
|
+
width: 100%;
|
|
13
|
+
display: flex;
|
|
14
|
+
}
|
|
15
|
+
.stream-markdown [data-stream-markdown="table-inner-wrapper"] {
|
|
16
|
+
width: 100%;
|
|
17
|
+
overflow-x: auto;
|
|
18
|
+
}
|
|
19
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
.stream-markdown [data-stream-markdown="table"] {
|
|
2
|
+
border-collapse: collapse;
|
|
3
|
+
border: 1px solid var(--border);
|
|
4
|
+
border-radius: .5rem;
|
|
5
|
+
width: 100%;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
}
|
|
8
|
+
.stream-markdown [data-stream-markdown="table-header"] {
|
|
9
|
+
background-color: color-mix(in oklab, var(--muted) 80%, transparent);
|
|
10
|
+
position: relative;
|
|
11
|
+
}
|
|
12
|
+
.stream-markdown [data-stream-markdown="table-body"] {
|
|
13
|
+
border-color: var(--border);
|
|
14
|
+
background-color: color-mix(in oklab, var(--muted) 40%, transparent);
|
|
15
|
+
border-block-width: 1px;
|
|
16
|
+
font-weight: 600;
|
|
17
|
+
position: relative;
|
|
18
|
+
}
|
|
19
|
+
.stream-markdown [data-stream-markdown="table"] tr {
|
|
20
|
+
border-bottom: 1px solid var(--border);
|
|
21
|
+
}
|
|
22
|
+
.stream-markdown [data-stream-markdown="table"] p {
|
|
23
|
+
margin: 0;
|
|
24
|
+
}
|
|
25
|
+
.stream-markdown [data-stream-markdown="table-header"] th {
|
|
26
|
+
white-space: nowrap;
|
|
27
|
+
}
|
|
28
|
+
.stream-markdown [data-stream-markdown="table-header"] th, .stream-markdown [data-stream-markdown="table-body"] td {
|
|
29
|
+
padding-block: .5rem;
|
|
30
|
+
padding-inline: 1rem;
|
|
31
|
+
font-size: .875rem;
|
|
32
|
+
line-height: 1.25rem;
|
|
33
|
+
}
|
|
34
|
+
|