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.
Files changed (206) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +96 -0
  3. package/dist/angular-Chs-UKBr.js +29 -0
  4. package/dist/angular-component-Cc_FANXU.js +29 -0
  5. package/dist/apache-COYnc6xR.js +35 -0
  6. package/dist/asciidoc-BabXBDAL.js +24 -0
  7. package/dist/assembly-CDqKhexW.js +35 -0
  8. package/dist/astro-C9kftzFG.js +28 -0
  9. package/dist/bash-Ce4pNIkV.js +27 -0
  10. package/dist/batch-CHQBRjFL.js +23 -0
  11. package/dist/bicep-8jxWtuBF.js +46 -0
  12. package/dist/blockquote-DFANmQEB.css +13 -0
  13. package/dist/blockquote-DdEg2gww.js +83 -0
  14. package/dist/button-BClRCjnc.js +5 -0
  15. package/dist/button-C12sn_G5.css +24 -0
  16. package/dist/button-D8xx1WIP.js +202 -0
  17. package/dist/c-FBUef746.js +25 -0
  18. package/dist/check-C4xOk8um.js +25 -0
  19. package/dist/chevron-down-cnOJ4h1g.js +25 -0
  20. package/dist/circle-alert-CLX-h5rZ.js +28 -0
  21. package/dist/clojure-BulUroSy.js +18 -0
  22. package/dist/cmake-CW3vz1Mo.js +35 -0
  23. package/dist/cobol-CIn3oFju.js +24 -0
  24. package/dist/code-CP6mPwkq.js +106 -0
  25. package/dist/code-D8LSp8rK.js +25 -0
  26. package/dist/code-NAXHb0o2.css +4 -0
  27. package/dist/code-block-C4D_QNTq.js +408 -0
  28. package/dist/code-block-D2zjJAww.css +57 -0
  29. package/dist/code-block-Dzw63Lki.js +9 -0
  30. package/dist/codeowners-CJggXF_b.js +27 -0
  31. package/dist/coffeescript-CBrVvzGY.js +23 -0
  32. package/dist/composables-qhB1h_ed.js +1567 -0
  33. package/dist/copy-Cabve0xf.js +31 -0
  34. package/dist/cpp-BTKeuyd-.js +31 -0
  35. package/dist/crystal-DyIYvZbm.js +24 -0
  36. package/dist/csharp-NqZ1vyF9.js +22 -0
  37. package/dist/css-BpR5Lajb.js +26 -0
  38. package/dist/csv-eCMFnKKK.js +24 -0
  39. package/dist/cue-TY97dGOQ.js +32 -0
  40. package/dist/d-NftUsdTd.js +24 -0
  41. package/dist/dart-DJpwZZbk.js +23 -0
  42. package/dist/database-aZwE71Px.js +24 -0
  43. package/dist/delete-BdWzKJCy.js +83 -0
  44. package/dist/delete-Ci7IJDoT.css +4 -0
  45. package/dist/diff-CYRzypaU.js +35 -0
  46. package/dist/docker-CxHBuukH.js +24 -0
  47. package/dist/download-Bnn7rtYw.js +24 -0
  48. package/dist/dropdown-Ca_PKF_d.js +5 -0
  49. package/dist/elixir-BKSxVc1h.js +24 -0
  50. package/dist/elm-DScuAf3X.js +24 -0
  51. package/dist/emphasis-BseYvUae.css +4 -0
  52. package/dist/emphasis-CTuGt1Ok.js +83 -0
  53. package/dist/en-US-Bfc50l3I.js +27 -0
  54. package/dist/env-CDAKsodl.js +24 -0
  55. package/dist/erlang-D2M1ZL3m.js +23 -0
  56. package/dist/error-component-BIPPxd-M.css +21 -0
  57. package/dist/error-component-CLEJmPmM.js +4 -0
  58. package/dist/error-component-CzarUjhh.js +61 -0
  59. package/dist/eye-CdeX8PhP.js +28 -0
  60. package/dist/fortran-CORyQ0wt.js +24 -0
  61. package/dist/fsharp-BJz_Jgpl.js +24 -0
  62. package/dist/git-DgrlTr1E.js +28 -0
  63. package/dist/gleam-t_xad9Kw.js +29 -0
  64. package/dist/go-Cvlh1xtL.js +24 -0
  65. package/dist/graphql-ApIm0mDD.js +24 -0
  66. package/dist/groovy-CaLnK8PV.js +23 -0
  67. package/dist/haml-MwijEO_6.js +35 -0
  68. package/dist/handlebars-CKdUPI9h.js +24 -0
  69. package/dist/haskell-NPOXEnck.js +24 -0
  70. package/dist/haxe-DyKBMsDE.js +23 -0
  71. package/dist/heading-2vpQQtTH.js +88 -0
  72. package/dist/heading-KxpVX3-u.css +30 -0
  73. package/dist/html-C5_wsY4-.css +5 -0
  74. package/dist/html-CMgES1dE.js +28 -0
  75. package/dist/html-DL0PcUXX.js +102 -0
  76. package/dist/http-B9FFNmUr.js +23 -0
  77. package/dist/image-B77jbMUB.css +46 -0
  78. package/dist/image-CMZAakWu.js +39 -0
  79. package/dist/image-heJSlrNv.js +215 -0
  80. package/dist/index.css +43 -0
  81. package/dist/index.d.ts +762 -0
  82. package/dist/index.js +18674 -0
  83. package/dist/inline-code-CBoqhfz7.js +81 -0
  84. package/dist/inline-code-Eo65bj3F.css +12 -0
  85. package/dist/inline-math-B4XO1wMP.js +110 -0
  86. package/dist/inline-math-DgBjIrPT.css +7 -0
  87. package/dist/java-iU-L9wJz.js +35 -0
  88. package/dist/javascript-DtnWdTFC.js +23 -0
  89. package/dist/jinja-CoWszo_D.js +24 -0
  90. package/dist/json-C80qKCnh.js +24 -0
  91. package/dist/julia-DG2BCBLx.js +35 -0
  92. package/dist/kdl-7twRfIlJ.js +40 -0
  93. package/dist/kotlin-BjrOgP7R.js +18 -0
  94. package/dist/latex-DIQfUvG8.js +24 -0
  95. package/dist/less-BJ1yEAWt.js +24 -0
  96. package/dist/link-BA_j8di3.css +12 -0
  97. package/dist/link-DOtoFtxu.js +107 -0
  98. package/dist/link-DeV4CQOB.js +24 -0
  99. package/dist/liquid-BqKFZ1wQ.js +24 -0
  100. package/dist/lisp-oekhB2ti.js +23 -0
  101. package/dist/list-BCiFKGaz.js +88 -0
  102. package/dist/list-CcVBNIly.css +11 -0
  103. package/dist/list-item-Y6Cphjrp.css +15 -0
  104. package/dist/list-item-p-OLUR_9.js +95 -0
  105. package/dist/log-D1XEqR9q.js +23 -0
  106. package/dist/lua-C5Q97-1D.js +28 -0
  107. package/dist/luau-BT8KwqZ2.js +28 -0
  108. package/dist/makefile-B4a0ciG4.js +28 -0
  109. package/dist/markdown-DvNyKsiJ.js +24 -0
  110. package/dist/marko-BzsIf6bg.js +18 -0
  111. package/dist/math-Byka28HI.js +110 -0
  112. package/dist/math-Cq89zpB6.css +11 -0
  113. package/dist/matlab-cMBkmDhQ.js +28 -0
  114. package/dist/maximize-4PIqBONS.js +25 -0
  115. package/dist/mermaid-8JIH2gkQ.js +24 -0
  116. package/dist/mermaid-C9ZUejzK.css +8 -0
  117. package/dist/mermaid-X0AFRzfF.js +203 -0
  118. package/dist/minimize-BJ8htyDF.js +25 -0
  119. package/dist/modal-CWdgVkH_.css +48 -0
  120. package/dist/modal-CuQR21UD.js +71 -0
  121. package/dist/modal-DcpxxDDX.js +3 -0
  122. package/dist/nextflow-DNmqU1xg.js +24 -0
  123. package/dist/nginx-DDfYF_rj.js +23 -0
  124. package/dist/nim-D9xEmy4k.js +24 -0
  125. package/dist/nix-BV1Deshw.js +18 -0
  126. package/dist/node-list-C9O-A1aZ.css +11 -0
  127. package/dist/node-list-CGr_EVtn.js +199 -0
  128. package/dist/node-list-lgY1wbfQ.js +3 -0
  129. package/dist/ocaml-BkFn4LL3.js +27 -0
  130. package/dist/paragraph-DYjqr_Sa.js +83 -0
  131. package/dist/paragraph-wRNmMYAI.css +6 -0
  132. package/dist/perl-BytUHDE7.js +24 -0
  133. package/dist/php-BImJJtNM.js +24 -0
  134. package/dist/postcss-CrZ9_0sT.js +18 -0
  135. package/dist/powershell-DYSGu7TM.js +23 -0
  136. package/dist/previewers-Drlf7IQF.js +10 -0
  137. package/dist/prisma-BhRvcOFY.js +24 -0
  138. package/dist/prolog-DuaCKek_.js +24 -0
  139. package/dist/properties-BbIJwuP-.js +24 -0
  140. package/dist/proto-CE0aVW11.js +18 -0
  141. package/dist/pug-B1-IC-Tc.js +24 -0
  142. package/dist/puppet-8nYquiMG.js +24 -0
  143. package/dist/python-DhRyfBrD.js +35 -0
  144. package/dist/r-Cjje17IA.js +28 -0
  145. package/dist/racket-Dx0gMnpg.js +28 -0
  146. package/dist/razor-DPht_bdD.js +24 -0
  147. package/dist/renderer-CZ41eK_V.js +43 -0
  148. package/dist/ruby-B8RxtCzI.js +24 -0
  149. package/dist/rust-Cjtli6yf.js +23 -0
  150. package/dist/sass-Dv3DMzjs.js +24 -0
  151. package/dist/scala-B7bZGKXq.js +24 -0
  152. package/dist/scheme-B2PsEdVN.js +24 -0
  153. package/dist/segmented-BEtO1eyl.js +69 -0
  154. package/dist/segmented-CWoQcX-H.js +6 -0
  155. package/dist/segmented-DLmggl-e.css +8 -0
  156. package/dist/shader-BZzu3zGr.js +24 -0
  157. package/dist/shiki-CMgjqKKu.css +20 -0
  158. package/dist/shiki-vToM7Pz1.js +114 -0
  159. package/dist/solidity-CLieFYpL.js +24 -0
  160. package/dist/spin-B2FU3Sx6.css +19 -0
  161. package/dist/spin-Bz4zGBEo.js +3 -0
  162. package/dist/spin-Ds5W7qC_.js +23 -0
  163. package/dist/stata-C0yUiO47.js +33 -0
  164. package/dist/strong-CvOjLZiq.js +83 -0
  165. package/dist/strong-DpeQmP2J.css +4 -0
  166. package/dist/svelte-rtF4yNGL.js +23 -0
  167. package/dist/swift-CzvYoIM0.js +24 -0
  168. package/dist/table-4ec9FVB_.js +59 -0
  169. package/dist/table-BWn_kG8W.css +19 -0
  170. package/dist/table-CJzlDdmv.css +34 -0
  171. package/dist/table-CZLbUHiJ.js +3 -0
  172. package/dist/table-DjkiVd9L.js +188 -0
  173. package/dist/terraform-CD_BZGb-.js +24 -0
  174. package/dist/text-D098eCyi.css +5 -0
  175. package/dist/text-D1-vbZ7l.js +23 -0
  176. package/dist/text-DuONUqRA.js +81 -0
  177. package/dist/thematic-break-C5zxgoE9.css +6 -0
  178. package/dist/thematic-break-CcNPEI9Y.js +81 -0
  179. package/dist/theme.css +67 -0
  180. package/dist/toml-C6jUF0Xd.js +24 -0
  181. package/dist/tooltip-Ac_2x9ps.js +4 -0
  182. package/dist/tooltip-DAngu9Wp.css +5 -0
  183. package/dist/tooltip-RiXixMIt.js +71 -0
  184. package/dist/twig-C4dfP84J.js +30 -0
  185. package/dist/typescript-Bk-pp-cK.js +23 -0
  186. package/dist/typst-DPCpaVSH.js +24 -0
  187. package/dist/v-nRGMJ2Ki.js +23 -0
  188. package/dist/vala-B78bKcY0.js +24 -0
  189. package/dist/vanilla-BZ8bn5Yz.css +4 -0
  190. package/dist/vanilla-CA9QO96X.js +3 -0
  191. package/dist/vanilla-DkX6g0dm.js +87 -0
  192. package/dist/verilog-CRpkl76S.js +23 -0
  193. package/dist/vim-DpKnut7b.js +24 -0
  194. package/dist/vue-D5eadhjo.js +23 -0
  195. package/dist/xml-Dvx5F-hl.js +24 -0
  196. package/dist/yaml-DJHrmzSe.js +94 -0
  197. package/dist/yaml-McBkYbxI.css +5 -0
  198. package/dist/yaml-n1S8nAOh.js +24 -0
  199. package/dist/zh-CN-CL1XGe0H.js +27 -0
  200. package/dist/zig-R-iFzxfW.js +24 -0
  201. package/dist/zoom-container-BDEP09K9.js +6 -0
  202. package/dist/zoom-container-BENM7TpV.css +28 -0
  203. package/dist/zoom-container-BfUO3Ocp.js +113 -0
  204. package/dist/zoomIn-CEukuh3x.js +28 -0
  205. package/dist/zoomOut-qlzQyQli.js +28 -0
  206. package/package.json +115 -0
@@ -0,0 +1,81 @@
1
+ import { createElementBlock, defineComponent, openBlock, toDisplayString } from "vue";
2
+
3
+ //#region src/components/renderers/inline-code.vue?vue&type=script&setup=true&lang.ts
4
+ const _hoisted_1 = { "data-stream-markdown": "inline-code" };
5
+ var inline_code_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
6
+ __name: "inline-code",
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
+ return (_ctx, _cache) => {
71
+ return openBlock(), createElementBlock("code", _hoisted_1, toDisplayString(__props.node.value), 1);
72
+ };
73
+ }
74
+ });
75
+
76
+ //#endregion
77
+ //#region src/components/renderers/inline-code.vue
78
+ var inline_code_default = inline_code_vue_vue_type_script_setup_true_lang_default;
79
+
80
+ //#endregion
81
+ export { inline_code_default as default };
@@ -0,0 +1,12 @@
1
+ .stream-markdown [data-stream-markdown="inline-code"] {
2
+ background-color: var(--muted);
3
+ font-family: var(--font-mono);
4
+ white-space: normal;
5
+ overflow-wrap: break-word;
6
+ border-radius: .25rem;
7
+ padding-block: .125rem;
8
+ padding-inline: .375rem;
9
+ font-size: .875rem;
10
+ line-height: 1.25rem;
11
+ }
12
+
@@ -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/inline-math.vue?vue&type=script&setup=true&lang.ts
6
+ const _hoisted_1 = ["innerHTML"];
7
+ var inline_math_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
8
+ __name: "inline-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("span", {
95
+ key: 1,
96
+ "data-stream-markdown": "inline-math",
97
+ innerHTML: unref(html)
98
+ }, null, 8, _hoisted_1))]),
99
+ _: 1
100
+ });
101
+ };
102
+ }
103
+ });
104
+
105
+ //#endregion
106
+ //#region src/components/renderers/inline-math.vue
107
+ var inline_math_default = inline_math_vue_vue_type_script_setup_true_lang_default;
108
+
109
+ //#endregion
110
+ export { inline_math_default as default };
@@ -0,0 +1,7 @@
1
+ .stream-markdown .inline-math-enter-active, .stream-markdown .inline-math-leave-active {
2
+ transition: opacity var (--default-transition-duration) ease;
3
+ }
4
+ .stream-markdown .inline-math-enter-from, .stream-markdown .inline-math-leave-to {
5
+ opacity: 0;
6
+ }
7
+
@@ -0,0 +1,35 @@
1
+ import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
2
+
3
+ //#region ~icons/catppuccin/java
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: "M10.73 8.41c.57 3 1.59 5.83 2.77 7.09c-6.63-3.45-9.76-1.75-10.5 0c-.66-3.4-.54-5.74.09-7.78"
18
+ }),
19
+ createElementVNode("path", {
20
+ stroke: "#ed8796",
21
+ d: "M8.5 7c.63.34 1.82 1.07 2.24 1.41c-.54-2.9-.64-5.96-.74-7.91c-2.13.58-5.73 1.98-6.9 7.22c.52-.69 1.72-1.05 2.4-1.22"
22
+ }),
23
+ createElementVNode("path", {
24
+ stroke: "#ed8796",
25
+ d: "M5.5 7A1.5 1.5 0 0 0 7 8.5A1.5 1.5 0 0 0 8.5 7A1.5 1.5 0 0 0 7 5.5A1.5 1.5 0 0 0 5.5 7"
26
+ })
27
+ ], -1)])]);
28
+ }
29
+ var java_default = markRaw({
30
+ name: "catppuccin-java",
31
+ render
32
+ });
33
+
34
+ //#endregion
35
+ export { java_default as default };
@@ -0,0 +1,23 @@
1
+ import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
2
+
3
+ //#region ~icons/catppuccin/javascript
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: "#eed49f",
13
+ "stroke-linecap": "round",
14
+ "stroke-linejoin": "round"
15
+ }, [createElementVNode("path", { d: "M4.5 11a1.5 1.5 0 0 0 3 0V7.5m5 1.25c0-.69-.537-1.25-1.2-1.25h-.6c-.663 0-1.2.56-1.2 1.25S10.037 10 10.7 10h.6c.663 0 1.2.56 1.2 1.25s-.537 1.25-1.2 1.25h-.6c-.663 0-1.2-.56-1.2-1.25" }), createElementVNode("path", { d: "M4 1.5h8c1.385 0 2.5 1.115 2.5 2.5v8c0 1.385-1.115 2.5-2.5 2.5H4A2.495 2.495 0 0 1 1.5 12V4c0-1.385 1.115-2.5 2.5-2.5" })], -1)])]);
16
+ }
17
+ var javascript_default = markRaw({
18
+ name: "catppuccin-javascript",
19
+ render
20
+ });
21
+
22
+ //#endregion
23
+ export { javascript_default as default };
@@ -0,0 +1,24 @@
1
+ import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
2
+
3
+ //#region ~icons/catppuccin/jinja
4
+ const _hoisted_1 = {
5
+ viewBox: "0 0 16 16",
6
+ width: "1.2em",
7
+ height: "1.2em"
8
+ };
9
+ function render(_ctx, _cache) {
10
+ return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", {
11
+ fill: "none",
12
+ stroke: "#ed8796",
13
+ "stroke-linecap": "round",
14
+ "stroke-linejoin": "round",
15
+ d: "M1.5 1.5c3.78 1.03 8.02 1.54 13 0L13 5c-3.5.75-6.5.75-10 0zm0 6.09C6 8.75 10 8.75 14.5 7.5m-9-1.52v8.52m-3 0h4m3 0h4m-3-8.52v8.52M3.5 8v6.5m9-6.5v6.5"
16
+ }, null, -1)])]);
17
+ }
18
+ var jinja_default = markRaw({
19
+ name: "catppuccin-jinja",
20
+ render
21
+ });
22
+
23
+ //#endregion
24
+ export { jinja_default as default };
@@ -0,0 +1,24 @@
1
+ import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
2
+
3
+ //#region ~icons/catppuccin/json
4
+ const _hoisted_1 = {
5
+ viewBox: "0 0 16 16",
6
+ width: "1.2em",
7
+ height: "1.2em"
8
+ };
9
+ function render(_ctx, _cache) {
10
+ return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", {
11
+ fill: "none",
12
+ stroke: "#eed49f",
13
+ "stroke-linecap": "round",
14
+ "stroke-linejoin": "round",
15
+ d: "M4.5 2.5H4c-.75 0-1.5.75-1.5 1.5v2c0 1.1-1 2-1.83 2c.83 0 1.83.9 1.83 2v2c0 .75.75 1.5 1.5 1.5h.5m7-11h.5c.75 0 1.5.75 1.5 1.5v2c0 1.1 1 2 1.83 2c-.83 0-1.83.9-1.83 2v2c0 .74-.75 1.5-1.5 1.5h-.5m-6.5-3a.5.5 0 1 0 0-1a.5.5 0 0 0 0 1m3 0a.5.5 0 1 0 0-1a.5.5 0 0 0 0 1m3 0a.5.5 0 1 0 0-1a.5.5 0 0 0 0 1"
16
+ }, null, -1)])]);
17
+ }
18
+ var json_default = markRaw({
19
+ name: "catppuccin-json",
20
+ render
21
+ });
22
+
23
+ //#endregion
24
+ export { json_default as default };
@@ -0,0 +1,35 @@
1
+ import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
2
+
3
+ //#region ~icons/catppuccin/julia
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: "M10.5 5a2.5 2.5 0 1 1-5 0a2.5 2.5 0 0 1 5 0"
18
+ }),
19
+ createElementVNode("path", {
20
+ stroke: "#ed8796",
21
+ d: "M6.5 11a2.5 2.5 0 1 1-5 0a2.5 2.5 0 0 1 5 0"
22
+ }),
23
+ createElementVNode("path", {
24
+ stroke: "#c6a0f6",
25
+ d: "M14.5 11a2.5 2.5 0 1 1-5 0a2.5 2.5 0 0 1 5 0"
26
+ })
27
+ ], -1)])]);
28
+ }
29
+ var julia_default = markRaw({
30
+ name: "catppuccin-julia",
31
+ render
32
+ });
33
+
34
+ //#endregion
35
+ export { julia_default as default };
@@ -0,0 +1,40 @@
1
+ import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
2
+
3
+ //#region ~icons/catppuccin/kdl
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] = [
11
+ createElementVNode("path", {
12
+ fill: "none",
13
+ stroke: "#91d7e3",
14
+ "stroke-linecap": "round",
15
+ "stroke-linejoin": "round",
16
+ d: "m6.74 4.996l-1 5.367l2.48.4s2.16.2 2.6-2.262c.44-2.464-1.58-3.184-1.58-3.184z"
17
+ }, null, -1),
18
+ createElementVNode("path", {
19
+ fill: "none",
20
+ stroke: "#f4dbd6",
21
+ "stroke-linecap": "round",
22
+ "stroke-linejoin": "round",
23
+ d: "M5.54 4.916L2.04 8.06l3.86 2.483M1.5 5.076l.58 6.008"
24
+ }, null, -1),
25
+ createElementVNode("path", {
26
+ fill: "none",
27
+ stroke: "#c6a0f6",
28
+ "stroke-linecap": "round",
29
+ "stroke-linejoin": "round",
30
+ d: "m11.28 5.357l.32 5.206l2.9-.26"
31
+ }, null, -1)
32
+ ])]);
33
+ }
34
+ var kdl_default = markRaw({
35
+ name: "catppuccin-kdl",
36
+ render
37
+ });
38
+
39
+ //#endregion
40
+ export { kdl_default as default };
@@ -0,0 +1,18 @@
1
+ import { createElementBlock, createElementVNode, createStaticVNode, markRaw, openBlock } from "vue";
2
+
3
+ //#region ~icons/catppuccin/kotlin
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=\"#c6a0f6\" d=\"M2.5 13.5h11L8 8\"></path><path stroke=\"#f5a97f\" d=\"M8.03 2.5h5.47l-8 8\"></path><path stroke=\"#ed8796\" d=\"M2.5 13.5V8\"></path><path stroke=\"#7dc4e4\" d=\"M8 2.5H2.5V8l3-2.5\"></path></g>", 1)])]);
11
+ }
12
+ var kotlin_default = markRaw({
13
+ name: "catppuccin-kotlin",
14
+ render
15
+ });
16
+
17
+ //#endregion
18
+ export { kotlin_default as default };
@@ -0,0 +1,24 @@
1
+ import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
2
+
3
+ //#region ~icons/catppuccin/latex
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: "#cad3f5",
13
+ "stroke-linecap": "round",
14
+ "stroke-linejoin": "round",
15
+ d: "M13 12.5h1.5m-.5-4l-3 4m0-4l3 4m-3.5 0h1m2-4l1.1.01m-4.1-.01h1.42m-4.42 4H9m-1.5-2v4m-.86 0h3.66l.2-.5m-3.75-3.5H10l.5.5M2 13.5h3m-1.5-5v5m-2-3.5l.25-1.5h3.5L5.5 10m4-3.5l2-5l2 5m-3-2h2M9 6.5h1m3 0h1m-9.5-5v5m-1-5h2m-2 5H7l.54-.99"
16
+ }, null, -1)])]);
17
+ }
18
+ var latex_default = markRaw({
19
+ name: "catppuccin-latex",
20
+ render
21
+ });
22
+
23
+ //#endregion
24
+ export { latex_default as default };
@@ -0,0 +1,24 @@
1
+ import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
2
+
3
+ //#region ~icons/catppuccin/less
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 2.5c-.74 0-1.5.76-1.5 1.5v2c0 1.1-1.1 2-1.83 2c.74 0 1.83.9 1.83 2v2c0 .74.76 1.5 1.5 1.5m1.5-8v5a1 1 0 0 0 1 1H7m4.5-4c0-.69-.59-1-1.25-1h-.5c-.66 0-1.25.56-1.25 1.25S9.09 9 9.75 9h.5c.66 0 1.25.56 1.25 1.25s-.59 1.25-1.25 1.25h-.5c-.66 0-1.25-.31-1.25-1m3.5-8c.74 0 1.5.76 1.5 1.5v2c0 1.1 1.1 2 1.83 2c-.74 0-1.83.9-1.83 2v2c0 .74-.76 1.5-1.5 1.5"
16
+ }, null, -1)])]);
17
+ }
18
+ var less_default = markRaw({
19
+ name: "catppuccin-less",
20
+ render
21
+ });
22
+
23
+ //#endregion
24
+ export { less_default as default };
@@ -0,0 +1,12 @@
1
+ .stream-markdown [data-stream-markdown="link"] {
2
+ color: var(--primary);
3
+ overflow-wrap: anywhere;
4
+ text-decoration: underline;
5
+ }
6
+ .stream-markdown [data-stream-markdown="link"][data-stream-markdown-loading="true"] {
7
+ cursor: default;
8
+ pointer-events: none;
9
+ text-decoration: none;
10
+ position: relative;
11
+ }
12
+
@@ -0,0 +1,107 @@
1
+ import { g as useHardenSanitizers } from "./composables-qhB1h_ed.js";
2
+ import { t as node_list_default } from "./node-list-CGr_EVtn.js";
3
+ import { t as error_component_default } from "./error-component-CzarUjhh.js";
4
+ import { computed, createBlock, createCommentVNode, createElementBlock, createVNode, defineComponent, mergeProps, openBlock, resolveDynamicComponent, toRefs, unref, withCtx } from "vue";
5
+
6
+ //#region src/components/renderers/link.vue?vue&type=script&setup=true&lang.ts
7
+ const _hoisted_1 = ["data-stream-markdown-loading", "href"];
8
+ var link_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
9
+ __name: "link",
10
+ props: {
11
+ node: {
12
+ type: Object,
13
+ required: true
14
+ },
15
+ markdownParser: {
16
+ type: Object,
17
+ required: true
18
+ },
19
+ nodeRenderers: {
20
+ type: Object,
21
+ required: true
22
+ },
23
+ mediumZoom: {
24
+ type: Object,
25
+ required: true
26
+ },
27
+ indexKey: {
28
+ type: [Number, String],
29
+ required: true
30
+ },
31
+ getContainer: {
32
+ type: Function,
33
+ required: true
34
+ },
35
+ controls: {
36
+ type: [Boolean, Object],
37
+ required: false
38
+ },
39
+ previewers: {
40
+ type: [Boolean, Object],
41
+ required: false
42
+ },
43
+ shikiOptions: {
44
+ type: Object,
45
+ required: false
46
+ },
47
+ mermaidOptions: {
48
+ type: Object,
49
+ required: false
50
+ },
51
+ katexOptions: {
52
+ type: Object,
53
+ required: false
54
+ },
55
+ hardenOptions: {
56
+ type: Object,
57
+ required: false
58
+ },
59
+ codeOptions: {
60
+ type: Object,
61
+ required: false
62
+ },
63
+ imageOptions: {
64
+ type: Object,
65
+ required: false
66
+ },
67
+ isDark: {
68
+ type: Boolean,
69
+ required: false
70
+ }
71
+ },
72
+ setup(__props) {
73
+ const props = __props;
74
+ const { hardenOptions } = toRefs(props);
75
+ const url = computed(() => props.node.url);
76
+ const loading = computed(() => props.node.loading || props.markdownParser.hasLoadingNode(props.node.children) || !url.value);
77
+ const { transformedUrl, isHardenUrl } = useHardenSanitizers({
78
+ url,
79
+ hardenOptions,
80
+ loading
81
+ });
82
+ const Error = computed(() => {
83
+ var _hardenOptions$value;
84
+ return ((_hardenOptions$value = hardenOptions.value) === null || _hardenOptions$value === void 0 ? void 0 : _hardenOptions$value.errorComponent) ?? error_component_default;
85
+ });
86
+ return (_ctx, _cache) => {
87
+ return !unref(isHardenUrl) && typeof unref(transformedUrl) === "string" ? (openBlock(), createElementBlock("a", {
88
+ key: 0,
89
+ "data-stream-markdown": "link",
90
+ "data-stream-markdown-loading": loading.value,
91
+ rel: "noreferrer",
92
+ target: "_blank",
93
+ href: unref(transformedUrl)
94
+ }, [createVNode(node_list_default, mergeProps(props, { nodes: __props.node.children }), null, 16, ["nodes"])], 8, _hoisted_1)) : (openBlock(), createBlock(resolveDynamicComponent(Error.value), mergeProps({ key: 1 }, props, { variant: "harden-link" }), {
95
+ default: withCtx(() => [createVNode(node_list_default, mergeProps(props, { nodes: __props.node.children }), null, 16, ["nodes"])]),
96
+ _: 1
97
+ }, 16));
98
+ };
99
+ }
100
+ });
101
+
102
+ //#endregion
103
+ //#region src/components/renderers/link.vue
104
+ var link_default = link_vue_vue_type_script_setup_true_lang_default;
105
+
106
+ //#endregion
107
+ export { link_default as default };
@@ -0,0 +1,24 @@
1
+ import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
2
+
3
+ //#region ~icons/lucide/link
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: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" }), createElementVNode("path", { d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" })], -1)])]);
17
+ }
18
+ var link_default = markRaw({
19
+ name: "lucide-link",
20
+ render
21
+ });
22
+
23
+ //#endregion
24
+ export { link_default as default };
@@ -0,0 +1,24 @@
1
+ import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
2
+
3
+ //#region ~icons/catppuccin/liquid
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: "M15.5 4.49c-.594 0-1.183-.084-1.7-.365a4.6 4.6 0 0 0-4.434 0c-.93.52-2.08.522-3.013.005a4.2 4.2 0 0 0-2.21-.576a4.2 4.2 0 0 0-2.24.578A2.8 2.8 0 0 1 .5 4.514m15 3.942c-.594 0-1.183-.085-1.7-.366a4.6 4.6 0 0 0-4.434 0c-.93.52-2.08.522-3.013.005a4.2 4.2 0 0 0-2.21-.576a4.2 4.2 0 0 0-2.24.578A2.8 2.8 0 0 1 .5 8.479m15 3.984c-.594 0-1.183-.084-1.7-.366a4.6 4.6 0 0 0-4.434 0c-.93.52-2.08.522-3.013.005a4.2 4.2 0 0 0-2.21-.575a4.2 4.2 0 0 0-2.24.577a2.8 2.8 0 0 1-1.403.382"
16
+ }, null, -1)])]);
17
+ }
18
+ var liquid_default = markRaw({
19
+ name: "catppuccin-liquid",
20
+ render
21
+ });
22
+
23
+ //#endregion
24
+ export { liquid_default as default };
@@ -0,0 +1,23 @@
1
+ import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
2
+
3
+ //#region ~icons/catppuccin/lisp
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: "#ed8796",
13
+ "stroke-linecap": "round",
14
+ "stroke-linejoin": "round"
15
+ }, [createElementVNode("path", { d: "M.5 5.06v6.07C.5 12.41.82 13 2.27 13h5.6c1.04 0 1.63-.51 1.63-1.62c0-.85-.2-1.88-1.5-1.88h-.36C6.4 9.5 6 8.77 6 7.75C6 6.81 6.8 6 7.49 6h2.68" }), createElementVNode("path", { d: "M3.5 10.5V4.99C3.5 3.89 3.62 3 5 3h9c.97 0 1.5.99 1.5 1.63c.12 1.55-.98 1.62-2.1 2.16c-.58.26-1.4.52-1.4.98V11" })], -1)])]);
16
+ }
17
+ var lisp_default = markRaw({
18
+ name: "catppuccin-lisp",
19
+ render
20
+ });
21
+
22
+ //#endregion
23
+ export { lisp_default as default };