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,188 @@
1
+ import { O as save, b as tableDataToMarkdown, j as ICONS, l as useI18n, v as extractTableDataFromElement, x as tableDataToTSV, y as tableDataToCSV, z as useContext } from "./composables-qhB1h_ed.js";
2
+ import { t as node_list_default } from "./node-list-CGr_EVtn.js";
3
+ import "./tooltip-RiXixMIt.js";
4
+ import { t as button_default } from "./button-D8xx1WIP.js";
5
+ import { t as spin_default } from "./spin-Ds5W7qC_.js";
6
+ import { t as table_default$1 } from "./table-4ec9FVB_.js";
7
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, openBlock, ref, renderList, withCtx } from "vue";
8
+ import { useClipboard } from "@vueuse/core";
9
+
10
+ //#region src/components/renderers/table.vue?vue&type=script&setup=true&lang.ts
11
+ const _hoisted_1 = { "data-stream-markdown": "table-wrapper" };
12
+ const _hoisted_2 = { "data-stream-markdown": "table-controls" };
13
+ const _hoisted_3 = { "data-stream-markdown": "table-inner-wrapper" };
14
+ var table_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
15
+ __name: "table",
16
+ props: {
17
+ node: {
18
+ type: Object,
19
+ required: true
20
+ },
21
+ markdownParser: {
22
+ type: Object,
23
+ required: true
24
+ },
25
+ nodeRenderers: {
26
+ type: Object,
27
+ required: true
28
+ },
29
+ mediumZoom: {
30
+ type: Object,
31
+ required: true
32
+ },
33
+ indexKey: {
34
+ type: [Number, String],
35
+ required: true
36
+ },
37
+ getContainer: {
38
+ type: Function,
39
+ required: true
40
+ },
41
+ controls: {
42
+ type: [Boolean, Object],
43
+ required: false
44
+ },
45
+ previewers: {
46
+ type: [Boolean, Object],
47
+ required: false
48
+ },
49
+ shikiOptions: {
50
+ type: Object,
51
+ required: false
52
+ },
53
+ mermaidOptions: {
54
+ type: Object,
55
+ required: false
56
+ },
57
+ katexOptions: {
58
+ type: Object,
59
+ required: false
60
+ },
61
+ hardenOptions: {
62
+ type: Object,
63
+ required: false
64
+ },
65
+ codeOptions: {
66
+ type: Object,
67
+ required: false
68
+ },
69
+ imageOptions: {
70
+ type: Object,
71
+ required: false
72
+ },
73
+ isDark: {
74
+ type: Boolean,
75
+ required: false
76
+ }
77
+ },
78
+ setup(__props) {
79
+ const props = __props;
80
+ const { t } = useI18n();
81
+ const { onCopied } = useContext();
82
+ const { copy, copied } = useClipboard({ legacy: true });
83
+ const tableRef = ref();
84
+ const align = computed(() => props.node.align || []);
85
+ const headerCells = computed(() => props.node.children[0].children ?? []);
86
+ const bodyRows = computed(() => props.node.children.slice(1));
87
+ const loading = computed(() => props.markdownParser.hasLoadingNode(props.node.children));
88
+ function getAlign(index) {
89
+ return align.value[index] || "left";
90
+ }
91
+ function getTableContent(format) {
92
+ if (!tableRef.value) return null;
93
+ const tableData = extractTableDataFromElement(tableRef.value);
94
+ switch (format) {
95
+ case "markdown": return {
96
+ content: tableDataToMarkdown(tableData),
97
+ mimeType: "text/markdown",
98
+ extension: "md"
99
+ };
100
+ case "tsv": return {
101
+ content: tableDataToTSV(tableData),
102
+ mimeType: "text/tsv",
103
+ extension: "tsv"
104
+ };
105
+ case "csv":
106
+ default: return {
107
+ content: tableDataToCSV(tableData),
108
+ mimeType: "text/csv",
109
+ extension: "csv"
110
+ };
111
+ }
112
+ }
113
+ const options = [
114
+ {
115
+ label: "CSV",
116
+ value: "csv"
117
+ },
118
+ {
119
+ label: "TSV",
120
+ value: "tsv"
121
+ },
122
+ {
123
+ label: "Markdown",
124
+ value: "markdown"
125
+ }
126
+ ];
127
+ const controls = computed(() => [{
128
+ name: t("button.copy"),
129
+ key: "copy",
130
+ icon: copied.value ? ICONS.check : ICONS.copy,
131
+ options,
132
+ onClick: (_event, item) => {
133
+ const data = getTableContent((item === null || item === void 0 ? void 0 : item.value) || "csv");
134
+ if (!data) return;
135
+ copy(data.content);
136
+ onCopied(data.content);
137
+ }
138
+ }, {
139
+ name: t("button.download"),
140
+ key: "download",
141
+ icon: ICONS.download,
142
+ options,
143
+ onClick: (_event, item) => {
144
+ const data = getTableContent((item === null || item === void 0 ? void 0 : item.value) || "csv");
145
+ if (!data) return;
146
+ save(`table.${data.extension}`, data.content, data.mimeType);
147
+ }
148
+ }]);
149
+ function getNodes(cell) {
150
+ return [cell];
151
+ }
152
+ return (_ctx, _cache) => {
153
+ return openBlock(), createElementBlock("div", _hoisted_1, [
154
+ createElementVNode("div", _hoisted_2, [(openBlock(true), createElementBlock(Fragment, null, renderList(controls.value, (item) => {
155
+ return openBlock(), createBlock(button_default, {
156
+ key: item.key,
157
+ name: item.name,
158
+ icon: item.icon,
159
+ options: item.options,
160
+ onClick: item.onClick
161
+ }, null, 8, [
162
+ "name",
163
+ "icon",
164
+ "options",
165
+ "onClick"
166
+ ]);
167
+ }), 128))]),
168
+ createElementVNode("div", _hoisted_3, [createVNode(table_default$1, {
169
+ headers: headerCells.value,
170
+ rows: bodyRows.value,
171
+ "get-align": getAlign
172
+ }, {
173
+ "header-cell": withCtx(({ cell }) => [createVNode(node_list_default, mergeProps(props, { nodes: getNodes(cell) }), null, 16, ["nodes"])]),
174
+ "body-cell": withCtx(({ cell }) => [createVNode(node_list_default, mergeProps(props, { nodes: getNodes(cell) }), null, 16, ["nodes"])]),
175
+ _: 1
176
+ }, 8, ["headers", "rows"])]),
177
+ loading.value ? (openBlock(), createBlock(spin_default, { key: 0 })) : createCommentVNode("v-if", true)
178
+ ]);
179
+ };
180
+ }
181
+ });
182
+
183
+ //#endregion
184
+ //#region src/components/renderers/table.vue
185
+ var table_default = table_vue_vue_type_script_setup_true_lang_default;
186
+
187
+ //#endregion
188
+ export { table_default as default };
@@ -0,0 +1,24 @@
1
+ import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
2
+
3
+ //#region ~icons/catppuccin/terraform
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 6l8 4.25l4-2.25m-12-2V1.5l8 4.25l4-2.25V8m-4-2.25v8.75M5.53 3.82L5.5 12.5l4 2"
16
+ }, null, -1)])]);
17
+ }
18
+ var terraform_default = markRaw({
19
+ name: "catppuccin-terraform",
20
+ render
21
+ });
22
+
23
+ //#endregion
24
+ export { terraform_default as default };
@@ -0,0 +1,5 @@
1
+ .stream-markdown [data-stream-markdown="text"] {
2
+ white-space: pre-wrap;
3
+ overflow-wrap: break-word;
4
+ }
5
+
@@ -0,0 +1,23 @@
1
+ import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
2
+
3
+ //#region ~icons/catppuccin/text
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: "M13.5 6.5v6a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h4.01" }), createElementVNode("path", { d: "m8.5 1.5l5 5h-4a1 1 0 0 1-1-1zm-3 10h5m-5-3h5m-5-3h1" })], -1)])]);
16
+ }
17
+ var text_default = markRaw({
18
+ name: "catppuccin-text",
19
+ render
20
+ });
21
+
22
+ //#endregion
23
+ export { text_default as default };
@@ -0,0 +1,81 @@
1
+ import { createElementBlock, defineComponent, openBlock, toDisplayString } from "vue";
2
+
3
+ //#region src/components/renderers/text.vue?vue&type=script&setup=true&lang.ts
4
+ const _hoisted_1 = { "data-stream-markdown": "text" };
5
+ var text_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
6
+ __name: "text",
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("span", _hoisted_1, toDisplayString(__props.node.value), 1);
72
+ };
73
+ }
74
+ });
75
+
76
+ //#endregion
77
+ //#region src/components/renderers/text.vue
78
+ var text_default = text_vue_vue_type_script_setup_true_lang_default;
79
+
80
+ //#endregion
81
+ export { text_default as default };
@@ -0,0 +1,6 @@
1
+ .stream-markdown [data-stream-markdown="thematic-break"] {
2
+ border-top: 1px solid var(--border);
3
+ margin-top: 1.5rem;
4
+ margin-bottom: 1.5rem;
5
+ }
6
+
@@ -0,0 +1,81 @@
1
+ import { createElementBlock, defineComponent, openBlock } from "vue";
2
+
3
+ //#region src/components/renderers/thematic-break.vue?vue&type=script&setup=true&lang.ts
4
+ const _hoisted_1 = { "data-stream-markdown": "thematic-break" };
5
+ var thematic_break_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
6
+ __name: "thematic-break",
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("hr", _hoisted_1);
72
+ };
73
+ }
74
+ });
75
+
76
+ //#endregion
77
+ //#region src/components/renderers/thematic-break.vue
78
+ var thematic_break_default = thematic_break_vue_vue_type_script_setup_true_lang_default;
79
+
80
+ //#endregion
81
+ export { thematic_break_default as default };
package/dist/theme.css ADDED
@@ -0,0 +1,67 @@
1
+ .stream-markdown.light {
2
+ --background: oklch(1 0 0);
3
+ --foreground: oklch(0.141 0.005 285.823);
4
+ --card: oklch(1 0 0);
5
+ --card-foreground: oklch(0.141 0.005 285.823);
6
+ --popover: oklch(1 0 0);
7
+ --popover-foreground: oklch(0.141 0.005 285.823);
8
+ --primary: oklch(0.488 0.243 264.376);
9
+ --primary-foreground: oklch(0.97 0.014 254.604);
10
+ --secondary: oklch(0.967 0.001 286.375);
11
+ --secondary-foreground: oklch(0.21 0.006 285.885);
12
+ --muted: oklch(0.967 0.001 286.375);
13
+ --muted-foreground: oklch(0.552 0.016 285.938);
14
+ --accent: oklch(0.967 0.001 286.375);
15
+ --accent-foreground: oklch(0.21 0.006 285.885);
16
+ --destructive: oklch(0.577 0.245 27.325);
17
+ --border: oklch(0.92 0.004 286.32);
18
+ --input: oklch(0.92 0.004 286.32);
19
+ --ring: oklch(0.708 0 0);
20
+ --chart-1: oklch(0.809 0.105 251.813);
21
+ --chart-2: oklch(0.623 0.214 259.815);
22
+ --chart-3: oklch(0.546 0.245 262.881);
23
+ --chart-4: oklch(0.488 0.243 264.376);
24
+ --chart-5: oklch(0.424 0.199 265.638);
25
+ --sidebar: oklch(0.985 0 0);
26
+ --sidebar-foreground: oklch(0.141 0.005 285.823);
27
+ --sidebar-primary: oklch(0.546 0.245 262.881);
28
+ --sidebar-primary-foreground: oklch(0.97 0.014 254.604);
29
+ --sidebar-accent: oklch(0.967 0.001 286.375);
30
+ --sidebar-accent-foreground: oklch(0.21 0.006 285.885);
31
+ --sidebar-border: oklch(0.92 0.004 286.32);
32
+ --sidebar-ring: oklch(0.708 0 0);
33
+ }
34
+
35
+ .stream-markdown.dark {
36
+ --background: oklch(0.141 0.005 285.823);
37
+ --foreground: oklch(0.985 0 0);
38
+ --card: oklch(0.21 0.006 285.885);
39
+ --card-foreground: oklch(0.985 0 0);
40
+ --popover: oklch(0.21 0.006 285.885);
41
+ --popover-foreground: oklch(0.985 0 0);
42
+ --primary: oklch(0.488 0.243 264.376);
43
+ --primary-foreground: oklch(0.97 0.014 254.604);
44
+ --secondary: oklch(0.274 0.006 286.033);
45
+ --secondary-foreground: oklch(0.985 0 0);
46
+ --muted: oklch(0.274 0.006 286.033);
47
+ --muted-foreground: oklch(0.705 0.015 286.067);
48
+ --accent: oklch(0.274 0.006 286.033);
49
+ --accent-foreground: oklch(0.985 0 0);
50
+ --destructive: oklch(0.704 0.191 22.216);
51
+ --border: oklch(1 0 0 / 10%);
52
+ --input: oklch(1 0 0 / 15%);
53
+ --ring: oklch(0.556 0 0);
54
+ --chart-1: oklch(0.809 0.105 251.813);
55
+ --chart-2: oklch(0.623 0.214 259.815);
56
+ --chart-3: oklch(0.546 0.245 262.881);
57
+ --chart-4: oklch(0.488 0.243 264.376);
58
+ --chart-5: oklch(0.424 0.199 265.638);
59
+ --sidebar: oklch(0.21 0.006 285.885);
60
+ --sidebar-foreground: oklch(0.985 0 0);
61
+ --sidebar-primary: oklch(0.623 0.214 259.815);
62
+ --sidebar-primary-foreground: oklch(0.97 0.014 254.604);
63
+ --sidebar-accent: oklch(0.274 0.006 286.033);
64
+ --sidebar-accent-foreground: oklch(0.985 0 0);
65
+ --sidebar-border: oklch(1 0 0 / 10%);
66
+ --sidebar-ring: oklch(0.439 0 0);
67
+ }
@@ -0,0 +1,24 @@
1
+ import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
2
+
3
+ //#region ~icons/catppuccin/toml
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: "#ee99a0",
13
+ "stroke-linecap": "round",
14
+ "stroke-linejoin": "round",
15
+ d: "M3.5 1.5h-2v13h2m9-13h2v13h-2m-8-11h7v3h-2v6h-3v-6h-2z"
16
+ }, null, -1)])]);
17
+ }
18
+ var toml_default = markRaw({
19
+ name: "catppuccin-toml",
20
+ render
21
+ });
22
+
23
+ //#endregion
24
+ export { toml_default as default };
@@ -0,0 +1,4 @@
1
+ import "./composables-qhB1h_ed.js";
2
+ import { t as tooltip_default } from "./tooltip-RiXixMIt.js";
3
+
4
+ export { tooltip_default as default };
@@ -0,0 +1,5 @@
1
+ .stream-markdown [data-stream-markdown="tooltip-overlay"] {
2
+ padding-block: .25rem;
3
+ padding-inline: .5rem;
4
+ }
5
+
@@ -0,0 +1,71 @@
1
+ import { z as useContext } from "./composables-qhB1h_ed.js";
2
+ import { computed, createBlock, createElementVNode, defineComponent, openBlock, ref, renderSlot, toDisplayString, unref, withCtx } from "vue";
3
+ import { Tippy } from "vue-tippy";
4
+
5
+ //#region src/components/tooltip.vue?vue&type=script&setup=true&lang.ts
6
+ const _hoisted_1 = { "data-stream-markdown": "tooltip-overlay" };
7
+ var tooltip_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
8
+ __name: "tooltip",
9
+ props: {
10
+ content: {
11
+ type: String,
12
+ required: false
13
+ },
14
+ trigger: {
15
+ type: String,
16
+ required: false
17
+ },
18
+ placement: {
19
+ type: null,
20
+ required: false
21
+ },
22
+ interactive: {
23
+ type: Boolean,
24
+ required: false
25
+ }
26
+ },
27
+ setup(__props, { expose: __expose }) {
28
+ const { isDark, getContainer } = useContext();
29
+ const tippyRef = ref();
30
+ const appendTo = computed(() => getContainer() || "parent");
31
+ __expose({
32
+ show: () => {
33
+ var _tippyRef$value;
34
+ return (_tippyRef$value = tippyRef.value) === null || _tippyRef$value === void 0 ? void 0 : _tippyRef$value.show();
35
+ },
36
+ hide: () => {
37
+ var _tippyRef$value2;
38
+ return (_tippyRef$value2 = tippyRef.value) === null || _tippyRef$value2 === void 0 ? void 0 : _tippyRef$value2.hide();
39
+ }
40
+ });
41
+ return (_ctx, _cache) => {
42
+ return openBlock(), createBlock(unref(Tippy), {
43
+ ref_key: "tippyRef",
44
+ ref: tippyRef,
45
+ trigger: __props.trigger,
46
+ placement: __props.placement,
47
+ interactive: __props.interactive,
48
+ "append-to": appendTo.value,
49
+ theme: unref(isDark) ? "" : "light",
50
+ "data-stream-markdown": "tooltip"
51
+ }, {
52
+ content: withCtx(() => [renderSlot(_ctx.$slots, "content", {}, () => [createElementVNode("pre", _hoisted_1, toDisplayString(__props.content), 1)])]),
53
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
54
+ _: 3
55
+ }, 8, [
56
+ "trigger",
57
+ "placement",
58
+ "interactive",
59
+ "append-to",
60
+ "theme"
61
+ ]);
62
+ };
63
+ }
64
+ });
65
+
66
+ //#endregion
67
+ //#region src/components/tooltip.vue
68
+ var tooltip_default = tooltip_vue_vue_type_script_setup_true_lang_default;
69
+
70
+ //#endregion
71
+ export { tooltip_default as t };
@@ -0,0 +1,30 @@
1
+ import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
2
+
3
+ //#region ~icons/catppuccin/twig
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: "#a6da95",
13
+ "stroke-linecap": "round",
14
+ "stroke-linejoin": "round",
15
+ d: "M.502 7C.876 6.703 1.87 6.356 3 6.513c.724.118 1.466.309 2.507 1.058c.52.374.896.867 1.493 1.429m1.985 6.499H4.99c.057-.826.025-1.656-.093-2.475A8 8 0 0 0 3.579 9.19C2.342 7.549.404 7.303.502 7m8.483 8.5L13 15.499c-.143-1.147-.493-2.3-.528-3.455c-.05-1.719-.205-4.044 1.621-4.081c.907.08 1.294.836 1.4 1.037c-.04-.399-.33-1.94-1.493-2.415c-1.393-.57-3.333 1.648-3.517 1.967M2 2c.14.214 1.216-.506 2.263-.267C5.367 1.986 6.553 3.656 7 9m3.483-.448A10.26 10.26 0 0 0 8.679 3.66C8.127 2.886 6.215.19 4.1.53C2.74.75 2.123 1.542 2 2"
16
+ }, null, -1), createElementVNode("path", {
17
+ fill: "none",
18
+ stroke: "#cad3f5",
19
+ "stroke-linecap": "round",
20
+ "stroke-linejoin": "round",
21
+ d: "M8 11a.5.5 0 0 1-.5.5a.5.5 0 0 1-.5-.5a.5.5 0 0 1 .5-.5a.5.5 0 0 1 .5.5m3 0a.5.5 0 0 1-.5.5a.5.5 0 0 1-.5-.5a.5.5 0 0 1 .5-.5a.5.5 0 0 1 .5.5"
22
+ }, null, -1)])]);
23
+ }
24
+ var twig_default = markRaw({
25
+ name: "catppuccin-twig",
26
+ render
27
+ });
28
+
29
+ //#endregion
30
+ export { twig_default as default };
@@ -0,0 +1,23 @@
1
+ import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
2
+
3
+ //#region ~icons/catppuccin/typescript
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: "#8aadf4",
13
+ "stroke-linecap": "round",
14
+ "stroke-linejoin": "round"
15
+ }, [createElementVNode("path", { d: "M4 1.5h8A2.5 2.5 0 0 1 14.5 4v8a2.5 2.5 0 0 1-2.5 2.5H4A2.5 2.5 0 0 1 1.5 12V4A2.5 2.5 0 0 1 4 1.5" }), createElementVNode("path", { d: "M12.5 8.75c0-.69-.54-1.25-1.2-1.25h-.6c-.66 0-1.2.56-1.2 1.25S10.04 10 10.7 10h.6c.66 0 1.2.56 1.2 1.25s-.54 1.25-1.2 1.25h-.6c-.66 0-1.2-.56-1.2-1.25m-3-3.75v5M5 7.5h3" })], -1)])]);
16
+ }
17
+ var typescript_default = markRaw({
18
+ name: "catppuccin-typescript",
19
+ render
20
+ });
21
+
22
+ //#endregion
23
+ export { typescript_default as default };
@@ -0,0 +1,24 @@
1
+ import { createElementBlock, createElementVNode, markRaw, openBlock } from "vue";
2
+
3
+ //#region ~icons/catppuccin/typst
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: "#8bd5ca",
13
+ "stroke-linecap": "round",
14
+ "stroke-linejoin": "round",
15
+ d: "M8.343 11.167q0 .904.252 1.214t.915.31q.687 0 1.763-.715l.457.786Q9.716 14.5 8.412 14.5t-2.06-.643q-.754-.666-.754-2.333V5.286H4.453l-.183-.881l1.328-.429V2.81L8.343 1.5v2.619l2.7-.214l-.251 1.548l-2.449-.096z"
16
+ }, null, -1)])]);
17
+ }
18
+ var typst_default = markRaw({
19
+ name: "catppuccin-typst",
20
+ render
21
+ });
22
+
23
+ //#endregion
24
+ export { typst_default as default };