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,202 @@
|
|
|
1
|
+
import { t as tooltip_default } from "./tooltip-RiXixMIt.js";
|
|
2
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, h, normalizeClass, normalizeStyle, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, withCtx } from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/components/dropdown.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
const _hoisted_1 = { "data-stream-markdown": "dropdown-overlay" };
|
|
6
|
+
var dropdown_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
7
|
+
__name: "dropdown",
|
|
8
|
+
props: {
|
|
9
|
+
title: {
|
|
10
|
+
type: String,
|
|
11
|
+
required: false
|
|
12
|
+
},
|
|
13
|
+
options: {
|
|
14
|
+
type: Array,
|
|
15
|
+
required: false,
|
|
16
|
+
default: () => []
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
emits: ["click"],
|
|
20
|
+
setup(__props, { emit: __emit }) {
|
|
21
|
+
const emits = __emit;
|
|
22
|
+
const tooltipRef = ref();
|
|
23
|
+
const BUTTON_STYLE = {
|
|
24
|
+
minWidth: "120px",
|
|
25
|
+
display: "flex",
|
|
26
|
+
justifyContent: "start",
|
|
27
|
+
gap: "0.625rem",
|
|
28
|
+
fontSize: "0.875rem",
|
|
29
|
+
lineHeight: "1.25rem"
|
|
30
|
+
};
|
|
31
|
+
function handleClick(event, item) {
|
|
32
|
+
var _tooltipRef$value;
|
|
33
|
+
emits("click", event, item);
|
|
34
|
+
(_tooltipRef$value = tooltipRef.value) === null || _tooltipRef$value === void 0 || _tooltipRef$value.hide();
|
|
35
|
+
}
|
|
36
|
+
return (_ctx, _cache) => {
|
|
37
|
+
return openBlock(), createBlock(tooltip_default, {
|
|
38
|
+
ref_key: "tooltipRef",
|
|
39
|
+
ref: tooltipRef,
|
|
40
|
+
trigger: "click",
|
|
41
|
+
placement: "bottom",
|
|
42
|
+
interactive: true,
|
|
43
|
+
"data-stream-markdown": "dropdown"
|
|
44
|
+
}, {
|
|
45
|
+
content: withCtx(() => [createElementVNode("div", _hoisted_1, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option) => {
|
|
46
|
+
return openBlock(), createBlock(button_default, {
|
|
47
|
+
key: option.value,
|
|
48
|
+
name: option.label,
|
|
49
|
+
icon: option.icon,
|
|
50
|
+
"button-style": BUTTON_STYLE,
|
|
51
|
+
variant: "text",
|
|
52
|
+
onClick: (e) => handleClick(e, option)
|
|
53
|
+
}, null, 8, [
|
|
54
|
+
"name",
|
|
55
|
+
"icon",
|
|
56
|
+
"onClick"
|
|
57
|
+
]);
|
|
58
|
+
}), 128))])]),
|
|
59
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
60
|
+
_: 3
|
|
61
|
+
}, 512);
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region src/components/dropdown.vue
|
|
68
|
+
var dropdown_default = dropdown_vue_vue_type_script_setup_true_lang_default;
|
|
69
|
+
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region src/components/button.vue?vue&type=script&setup=true&lang.ts
|
|
72
|
+
var button_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
73
|
+
__name: "button",
|
|
74
|
+
props: {
|
|
75
|
+
variant: {
|
|
76
|
+
type: String,
|
|
77
|
+
required: false,
|
|
78
|
+
default: "icon"
|
|
79
|
+
},
|
|
80
|
+
name: {
|
|
81
|
+
type: String,
|
|
82
|
+
required: true
|
|
83
|
+
},
|
|
84
|
+
buttonClass: {
|
|
85
|
+
type: [
|
|
86
|
+
String,
|
|
87
|
+
Array,
|
|
88
|
+
Object
|
|
89
|
+
],
|
|
90
|
+
required: false
|
|
91
|
+
},
|
|
92
|
+
buttonStyle: {
|
|
93
|
+
type: Object,
|
|
94
|
+
required: false,
|
|
95
|
+
default: () => ({})
|
|
96
|
+
},
|
|
97
|
+
icon: {
|
|
98
|
+
type: null,
|
|
99
|
+
required: false
|
|
100
|
+
},
|
|
101
|
+
iconWidth: {
|
|
102
|
+
type: Number,
|
|
103
|
+
required: false,
|
|
104
|
+
default: 14
|
|
105
|
+
},
|
|
106
|
+
iconHeight: {
|
|
107
|
+
type: Number,
|
|
108
|
+
required: false,
|
|
109
|
+
default: 14
|
|
110
|
+
},
|
|
111
|
+
iconClass: {
|
|
112
|
+
type: [
|
|
113
|
+
String,
|
|
114
|
+
Array,
|
|
115
|
+
Object
|
|
116
|
+
],
|
|
117
|
+
required: false
|
|
118
|
+
},
|
|
119
|
+
iconStyle: {
|
|
120
|
+
type: Object,
|
|
121
|
+
required: false,
|
|
122
|
+
default: () => ({})
|
|
123
|
+
},
|
|
124
|
+
options: {
|
|
125
|
+
type: Array,
|
|
126
|
+
required: false,
|
|
127
|
+
default: () => []
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
emits: ["click"],
|
|
131
|
+
setup(__props, { emit: __emit }) {
|
|
132
|
+
const props = __props;
|
|
133
|
+
const emits = __emit;
|
|
134
|
+
const isDropdown = computed(() => props.options.length > 0);
|
|
135
|
+
function onClick(event) {
|
|
136
|
+
if (isDropdown.value) return;
|
|
137
|
+
emits("click", event);
|
|
138
|
+
}
|
|
139
|
+
function onDropdownClick(event, item) {
|
|
140
|
+
if (item) emits("click", event, item);
|
|
141
|
+
}
|
|
142
|
+
const Icon = computed(() => {
|
|
143
|
+
if (!props.icon) return null;
|
|
144
|
+
return h(props.icon, {
|
|
145
|
+
width: props.iconWidth,
|
|
146
|
+
height: props.iconHeight,
|
|
147
|
+
class: props.iconClass,
|
|
148
|
+
style: props.iconStyle
|
|
149
|
+
});
|
|
150
|
+
});
|
|
151
|
+
return (_ctx, _cache) => {
|
|
152
|
+
return __props.variant === "icon" ? (openBlock(), createBlock(resolveDynamicComponent(isDropdown.value ? dropdown_default : tooltip_default), {
|
|
153
|
+
key: 0,
|
|
154
|
+
content: isDropdown.value ? void 0 : __props.name,
|
|
155
|
+
title: __props.name,
|
|
156
|
+
options: __props.options,
|
|
157
|
+
onClick: onDropdownClick
|
|
158
|
+
}, {
|
|
159
|
+
default: withCtx(() => [createElementVNode("button", {
|
|
160
|
+
"data-stream-markdown": "button",
|
|
161
|
+
type: "button",
|
|
162
|
+
class: normalizeClass(__props.buttonClass),
|
|
163
|
+
style: normalizeStyle(__props.buttonStyle),
|
|
164
|
+
onClick
|
|
165
|
+
}, [(openBlock(), createBlock(resolveDynamicComponent(Icon.value)))], 6)]),
|
|
166
|
+
_: 1
|
|
167
|
+
}, 8, [
|
|
168
|
+
"content",
|
|
169
|
+
"title",
|
|
170
|
+
"options"
|
|
171
|
+
])) : __props.variant === "text" && !isDropdown.value ? (openBlock(), createElementBlock("button", {
|
|
172
|
+
key: 1,
|
|
173
|
+
"data-stream-markdown": "button",
|
|
174
|
+
type: "button",
|
|
175
|
+
class: normalizeClass(__props.buttonClass),
|
|
176
|
+
style: normalizeStyle(__props.buttonStyle),
|
|
177
|
+
onClick
|
|
178
|
+
}, [(openBlock(), createBlock(resolveDynamicComponent(Icon.value))), createTextVNode(" " + toDisplayString(__props.name), 1)], 6)) : (openBlock(), createBlock(dropdown_default, {
|
|
179
|
+
key: 2,
|
|
180
|
+
title: __props.name,
|
|
181
|
+
options: __props.options,
|
|
182
|
+
onClick: onDropdownClick
|
|
183
|
+
}, {
|
|
184
|
+
default: withCtx(() => [createElementVNode("button", {
|
|
185
|
+
"data-stream-markdown": "button",
|
|
186
|
+
type: "button",
|
|
187
|
+
class: normalizeClass(__props.buttonClass),
|
|
188
|
+
style: normalizeStyle(__props.buttonStyle),
|
|
189
|
+
onClick
|
|
190
|
+
}, [(openBlock(), createBlock(resolveDynamicComponent(Icon.value))), createTextVNode(" " + toDisplayString(__props.name), 1)], 6)]),
|
|
191
|
+
_: 1
|
|
192
|
+
}, 8, ["title", "options"]));
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
|
|
197
|
+
//#endregion
|
|
198
|
+
//#region src/components/button.vue
|
|
199
|
+
var button_default = button_vue_vue_type_script_setup_true_lang_default;
|
|
200
|
+
|
|
201
|
+
//#endregion
|
|
202
|
+
export { dropdown_default as n, button_default as t };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/c
|
|
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: "M4.056 12.952a7.05 7.05 0 0 0 9.944 0l-1.79-1.783a4.513 4.513 0 0 1-6.364 0a4.47 4.47 0 0 1 0-6.338a4.513 4.513 0 0 1 6.364 0l.895-.891l.895-.892a7.05 7.05 0 0 0-9.944 0a6.98 6.98 0 0 0 0 9.904",
|
|
16
|
+
"clip-rule": "evenodd"
|
|
17
|
+
}, null, -1)])]);
|
|
18
|
+
}
|
|
19
|
+
var c_default = markRaw({
|
|
20
|
+
name: "catppuccin-c",
|
|
21
|
+
render
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { c_default as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/lucide/check
|
|
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: "M20 6L9 17l-5-5"
|
|
17
|
+
}, null, -1)])]);
|
|
18
|
+
}
|
|
19
|
+
var check_default = markRaw({
|
|
20
|
+
name: "lucide-check",
|
|
21
|
+
render
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { check_default as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/lucide/chevron-down
|
|
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: "m6 9l6 6l6-6"
|
|
17
|
+
}, null, -1)])]);
|
|
18
|
+
}
|
|
19
|
+
var chevron_down_default = markRaw({
|
|
20
|
+
name: "lucide-chevron-down",
|
|
21
|
+
render
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { chevron_down_default as default };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/lucide/circle-alert
|
|
4
|
+
const _hoisted_1 = {
|
|
5
|
+
viewBox: "0 0 24 24",
|
|
6
|
+
width: "1.2em",
|
|
7
|
+
height: "1.2em"
|
|
8
|
+
};
|
|
9
|
+
function render(_ctx, _cache) {
|
|
10
|
+
return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("g", {
|
|
11
|
+
fill: "none",
|
|
12
|
+
stroke: "currentColor",
|
|
13
|
+
"stroke-linecap": "round",
|
|
14
|
+
"stroke-linejoin": "round",
|
|
15
|
+
"stroke-width": "2"
|
|
16
|
+
}, [createElementVNode("circle", {
|
|
17
|
+
cx: "12",
|
|
18
|
+
cy: "12",
|
|
19
|
+
r: "10"
|
|
20
|
+
}), createElementVNode("path", { d: "M12 8v4m0 4h.01" })], -1)])]);
|
|
21
|
+
}
|
|
22
|
+
var circle_alert_default = markRaw({
|
|
23
|
+
name: "lucide-circle-alert",
|
|
24
|
+
render
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export { circle_alert_default as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, createStaticVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/clojure
|
|
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=\"#a6da95\" d=\"M14.17 10.03A6.5 6.5 0 0 1 1.81 6.02\"></path><path stroke=\"#8aadf4\" d=\"M1.87 5.85A6.5 6.5 0 0 1 14.22 9.9\"></path><path stroke=\"#a6da95\" d=\"M6.36 4.9a3.5 3.5 0 1 0 3.41 6.12\"></path><path stroke=\"#8aadf4\" d=\"M9.77 11.02a3.5 3.5 0 0 0-3.03-6.29\"></path><path stroke=\"#cad3f5\" d=\"M8 7.5s-1.66 2.48-1.5 3.65\"></path><path stroke=\"#cad3f5\" d=\"M1.81 6.02C2.47 5 3.83 4.49 5 4.46c4.06 0 3 5.56 5.03 6.86c1.21.52 3.5-.21 4.15-1.32\"></path></g>", 1)])]);
|
|
11
|
+
}
|
|
12
|
+
var clojure_default = markRaw({
|
|
13
|
+
name: "catppuccin-clojure",
|
|
14
|
+
render
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { clojure_default as default };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/cmake
|
|
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: "#a6da95",
|
|
17
|
+
d: "m6 11.5l-3.5 3H13Z"
|
|
18
|
+
}),
|
|
19
|
+
createElementVNode("path", {
|
|
20
|
+
stroke: "#ed8796",
|
|
21
|
+
d: "m9 1.5l5.5 11l-4.5-2z"
|
|
22
|
+
}),
|
|
23
|
+
createElementVNode("path", {
|
|
24
|
+
stroke: "#8aadf4",
|
|
25
|
+
d: "m1.5 12.5l6-5l-.5-6Z"
|
|
26
|
+
})
|
|
27
|
+
], -1)])]);
|
|
28
|
+
}
|
|
29
|
+
var cmake_default = markRaw({
|
|
30
|
+
name: "catppuccin-cmake",
|
|
31
|
+
render
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
//#endregion
|
|
35
|
+
export { cmake_default as default };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/catppuccin/cobol
|
|
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: "M6.74 2.24c.32-1.32 2.2-1.32 2.52 0a1.3 1.3 0 0 0 1.93.8c1.15-.7 2.48.62 1.77 1.77a1.3 1.3 0 0 0 .8 1.93c1.32.32 1.32 2.2 0 2.52a1.3 1.3 0 0 0-.8 1.93c.7 1.15-.62 2.48-1.77 1.77a1.3 1.3 0 0 0-1.93.8c-.32 1.32-2.2 1.32-2.52 0a1.3 1.3 0 0 0-1.93-.8c-1.15.7-2.48-.62-1.77-1.77a1.3 1.3 0 0 0-.8-1.93c-1.32-.32-1.32-2.2 0-2.52a1.3 1.3 0 0 0 .8-1.93c-.7-1.15.62-2.48 1.77-1.77a1.3 1.3 0 0 0 1.93-.8M10 6.5a2.5 2.5 0 1 0 0 3"
|
|
16
|
+
}, null, -1)])]);
|
|
17
|
+
}
|
|
18
|
+
var cobol_default = markRaw({
|
|
19
|
+
name: "catppuccin-cobol",
|
|
20
|
+
render
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { cobol_default as default };
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import "./previewers-Drlf7IQF.js";
|
|
2
|
+
import { r as useShiki } from "./composables-qhB1h_ed.js";
|
|
3
|
+
import "./tooltip-RiXixMIt.js";
|
|
4
|
+
import "./button-D8xx1WIP.js";
|
|
5
|
+
import "./modal-CuQR21UD.js";
|
|
6
|
+
import { t as code_block_default } from "./code-block-C4D_QNTq.js";
|
|
7
|
+
import "./segmented-BEtO1eyl.js";
|
|
8
|
+
import { computed, createBlock, createCommentVNode, defineAsyncComponent, defineComponent, mergeProps, normalizeProps, openBlock, resolveDynamicComponent, withCtx } from "vue";
|
|
9
|
+
|
|
10
|
+
//#region src/components/renderers/code/index.vue?vue&type=script&setup=true&lang.ts
|
|
11
|
+
var index_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
12
|
+
__name: "index",
|
|
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
|
+
showHeader: {
|
|
75
|
+
type: Boolean,
|
|
76
|
+
required: false,
|
|
77
|
+
default: true
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
setup(__props) {
|
|
81
|
+
const props = __props;
|
|
82
|
+
const languageClass = computed(() => `language-${props.node.lang}`);
|
|
83
|
+
const { installed: hasShiki } = useShiki();
|
|
84
|
+
const components = {
|
|
85
|
+
vanilla: defineAsyncComponent(() => import("./vanilla-CA9QO96X.js")),
|
|
86
|
+
shiki: defineAsyncComponent(() => import("./shiki-vToM7Pz1.js"))
|
|
87
|
+
};
|
|
88
|
+
const component = computed(() => {
|
|
89
|
+
if (hasShiki.value) return components.shiki;
|
|
90
|
+
return components.vanilla;
|
|
91
|
+
});
|
|
92
|
+
return (_ctx, _cache) => {
|
|
93
|
+
return __props.showHeader ? (openBlock(), createBlock(code_block_default, normalizeProps(mergeProps({ key: 0 }, props)), {
|
|
94
|
+
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(component.value), mergeProps(props, { class: [languageClass.value] }), null, 16, ["class"]))]),
|
|
95
|
+
_: 1
|
|
96
|
+
}, 16)) : (openBlock(), createBlock(resolveDynamicComponent(component.value), mergeProps({ key: 1 }, props, { class: [languageClass.value] }), null, 16, ["class"]));
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
//#endregion
|
|
102
|
+
//#region src/components/renderers/code/index.vue
|
|
103
|
+
var code_default = index_vue_vue_type_script_setup_true_lang_default;
|
|
104
|
+
|
|
105
|
+
//#endregion
|
|
106
|
+
export { code_default as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region ~icons/lucide/code
|
|
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: "m16 18l6-6l-6-6M8 6l-6 6l6 6"
|
|
17
|
+
}, null, -1)])]);
|
|
18
|
+
}
|
|
19
|
+
var code_default = markRaw({
|
|
20
|
+
name: "lucide-code",
|
|
21
|
+
render
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
export { code_default as default };
|