vue-stream-markdown 0.1.1 → 0.1.2
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/README.md +1 -0
- package/dist/button-DBgeYAZy.js +5 -0
- package/dist/{button-dU2iYZBS.js → button-vKhxUL3C.js} +1 -1
- package/dist/{code-BfJ58lYO.js → code-_dL6Qk0F.js} +7 -7
- package/dist/code-block-DGZ48hb0.js +9 -0
- package/dist/{code-block-CZHD64ft.js → code-block-wYeMwBck.js} +5 -5
- package/dist/{composables-BwAY_BDJ.js → composables-CZ7YmjNl.js} +6 -16
- package/dist/dropdown-DR-uQ215.js +5 -0
- package/dist/error-component-CKCT9gXy.js +4 -0
- package/dist/{error-component-CiIR_1Cg.js → error-component-ChEpOmSX.js} +1 -1
- package/dist/{image-BporCeem.js → image-DB-4Sv8R.js} +4 -4
- package/dist/index.css +633 -8
- package/dist/index.d.ts +28 -28
- package/dist/index.js +15 -15
- package/dist/{inline-math-BfG4600m.js → inline-math-rChhv_1j.js} +2 -2
- package/dist/{link-D-OnakwP.js → link-CJk67Kbh.js} +2 -2
- package/dist/{math-CvKkCYb9.js → math-ZLxqHT_f.js} +2 -2
- package/dist/{mermaid-FgnWaZtT.js → mermaid-CNFU7Pg8.js} +5 -5
- package/dist/{previewers-CoU4RlpQ.js → previewers-CMreQ4TA.js} +1 -1
- package/dist/segmented-63wrfRNo.js +6 -0
- package/dist/{segmented-Baxxk3UJ.js → segmented-RoWxDIP3.js} +1 -1
- package/dist/{shiki-BHOZKGKS.js → shiki-4529WbJJ.js} +1 -1
- package/dist/{table-B__TdLr7.js → table-BmGwZIPR.js} +3 -3
- package/dist/tooltip--rusT8LZ.js +4 -0
- package/dist/{tooltip-CA6Kp7Ek.js → tooltip-KcTe6tBF.js} +1 -1
- package/dist/zoom-container-C-CB2LTY.js +6 -0
- package/dist/{zoom-container-Dlqv-z-t.js → zoom-container-D1Mys9gv.js} +8 -10
- package/package.json +2 -1
- package/dist/blockquote-DFANmQEB.css +0 -13
- package/dist/button-Bz0s_F3s.js +0 -5
- package/dist/button-C12sn_G5.css +0 -24
- package/dist/code-NAXHb0o2.css +0 -4
- package/dist/code-block-BFUXyGQH.js +0 -9
- package/dist/code-block-Bv8s2E8I.css +0 -62
- package/dist/delete-Ci7IJDoT.css +0 -4
- package/dist/dropdown-RWgcV-8w.js +0 -5
- package/dist/emphasis-BseYvUae.css +0 -4
- package/dist/error-component-BIPPxd-M.css +0 -21
- package/dist/error-component-CR9t-T1D.js +0 -4
- package/dist/heading-KxpVX3-u.css +0 -30
- package/dist/html-C5_wsY4-.css +0 -5
- package/dist/image-B77jbMUB.css +0 -46
- package/dist/inline-code-Eo65bj3F.css +0 -12
- package/dist/inline-math-DgBjIrPT.css +0 -7
- package/dist/link-BA_j8di3.css +0 -12
- package/dist/list-CcVBNIly.css +0 -11
- package/dist/list-item-Y6Cphjrp.css +0 -15
- package/dist/math-Cq89zpB6.css +0 -11
- package/dist/mermaid-C9ZUejzK.css +0 -8
- package/dist/modal-CWdgVkH_.css +0 -48
- package/dist/node-list-C9O-A1aZ.css +0 -11
- package/dist/paragraph-wRNmMYAI.css +0 -6
- package/dist/segmented-C0uEAYuJ.js +0 -6
- package/dist/segmented-DLmggl-e.css +0 -8
- package/dist/shiki-CMgjqKKu.css +0 -20
- package/dist/spin-B2FU3Sx6.css +0 -19
- package/dist/strong-DpeQmP2J.css +0 -4
- package/dist/table-BWn_kG8W.css +0 -19
- package/dist/table-CJzlDdmv.css +0 -34
- package/dist/text-D098eCyi.css +0 -5
- package/dist/thematic-break-C5zxgoE9.css +0 -6
- package/dist/tooltip-DAngu9Wp.css +0 -5
- package/dist/tooltip-DoIUaZgq.js +0 -4
- package/dist/vanilla-BZ8bn5Yz.css +0 -4
- package/dist/yaml-McBkYbxI.css +0 -5
- package/dist/zoom-container-BENM7TpV.css +0 -28
- package/dist/zoom-container-BPbftW_I.js +0 -6
package/README.md
CHANGED
|
@@ -42,6 +42,7 @@ For detailed usage and API documentation, please refer to the [Documentation](ht
|
|
|
42
42
|
<script setup lang="ts">
|
|
43
43
|
import { ref } from 'vue'
|
|
44
44
|
import { Markdown } from 'vue-stream-markdown'
|
|
45
|
+
import 'vue-stream-markdown/index.css'
|
|
45
46
|
// If you don't have shadcn CSS variables globally, import the theme
|
|
46
47
|
import 'vue-stream-markdown/theme.css'
|
|
47
48
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as tooltip_default } from "./tooltip-
|
|
1
|
+
import { t as tooltip_default } from "./tooltip-KcTe6tBF.js";
|
|
2
2
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, h, normalizeClass, normalizeStyle, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, withCtx } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/dropdown.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./previewers-
|
|
2
|
-
import { i as useShiki } from "./composables-
|
|
3
|
-
import "./tooltip-
|
|
4
|
-
import "./button-
|
|
1
|
+
import "./previewers-CMreQ4TA.js";
|
|
2
|
+
import { i as useShiki } from "./composables-CZ7YmjNl.js";
|
|
3
|
+
import "./tooltip-KcTe6tBF.js";
|
|
4
|
+
import "./button-vKhxUL3C.js";
|
|
5
5
|
import "./modal-CuQR21UD.js";
|
|
6
|
-
import { t as code_block_default } from "./code-block-
|
|
7
|
-
import "./segmented-
|
|
6
|
+
import { t as code_block_default } from "./code-block-wYeMwBck.js";
|
|
7
|
+
import "./segmented-RoWxDIP3.js";
|
|
8
8
|
import { computed, createBlock, createCommentVNode, defineAsyncComponent, defineComponent, mergeProps, normalizeProps, openBlock, resolveDynamicComponent, withCtx } from "vue";
|
|
9
9
|
|
|
10
10
|
//#region src/components/renderers/code/index.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -83,7 +83,7 @@ var index_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
83
83
|
const { installed: hasShiki } = useShiki();
|
|
84
84
|
const components = {
|
|
85
85
|
vanilla: defineAsyncComponent(() => import("./vanilla-CA9QO96X.js")),
|
|
86
|
-
shiki: defineAsyncComponent(() => import("./shiki-
|
|
86
|
+
shiki: defineAsyncComponent(() => import("./shiki-4529WbJJ.js"))
|
|
87
87
|
};
|
|
88
88
|
const component = computed(() => {
|
|
89
89
|
if (hasShiki.value) return components.shiki;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import "./previewers-CMreQ4TA.js";
|
|
2
|
+
import "./composables-CZ7YmjNl.js";
|
|
3
|
+
import "./tooltip-KcTe6tBF.js";
|
|
4
|
+
import "./button-vKhxUL3C.js";
|
|
5
|
+
import "./modal-CuQR21UD.js";
|
|
6
|
+
import { t as code_block_default } from "./code-block-wYeMwBck.js";
|
|
7
|
+
import "./segmented-RoWxDIP3.js";
|
|
8
|
+
|
|
9
|
+
export { code_block_default as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as CODE_PREVIEWERS } from "./previewers-
|
|
2
|
-
import { B as useContext, I as LANGUAGE_ALIAS, L as LANGUAGE_EXTENSIONS, M as ICONS, O as save, R as LANGUAGE_ICONS, a as useMermaid, u as useI18n, z as useControls } from "./composables-
|
|
3
|
-
import { t as button_default } from "./button-
|
|
1
|
+
import { t as CODE_PREVIEWERS } from "./previewers-CMreQ4TA.js";
|
|
2
|
+
import { B as useContext, I as LANGUAGE_ALIAS, L as LANGUAGE_EXTENSIONS, M as ICONS, O as save, R as LANGUAGE_ICONS, a as useMermaid, u as useI18n, z as useControls } from "./composables-CZ7YmjNl.js";
|
|
3
|
+
import { t as button_default } from "./button-vKhxUL3C.js";
|
|
4
4
|
import { t as modal_default } from "./modal-CuQR21UD.js";
|
|
5
|
-
import { t as segmented_default } from "./segmented-
|
|
5
|
+
import { t as segmented_default } from "./segmented-RoWxDIP3.js";
|
|
6
6
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineAsyncComponent, defineComponent, mergeProps, normalizeClass, normalizeProps, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, toRefs, unref, useModel, vShow, watch, withCtx, withDirectives } from "vue";
|
|
7
7
|
import { useClipboard } from "@vueuse/core";
|
|
8
8
|
|
|
@@ -208,7 +208,7 @@ var index_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
208
208
|
const { t } = useI18n();
|
|
209
209
|
const { isControlEnabled } = useControls({ controls });
|
|
210
210
|
const { installed: hasMermaid } = useMermaid();
|
|
211
|
-
const CodeNode = defineAsyncComponent(() => import("./code-
|
|
211
|
+
const CodeNode = defineAsyncComponent(() => import("./code-_dL6Qk0F.js"));
|
|
212
212
|
const { onCopied } = useContext();
|
|
213
213
|
const { copy, copied } = useClipboard({ legacy: true });
|
|
214
214
|
const { saveMermaid } = useMermaid();
|
|
@@ -1578,28 +1578,18 @@ function useZoom(options = {}) {
|
|
|
1578
1578
|
}
|
|
1579
1579
|
function startDrag(e) {
|
|
1580
1580
|
isDragging.value = true;
|
|
1581
|
-
|
|
1581
|
+
dragStart.value = {
|
|
1582
1582
|
x: e.clientX - translateX.value,
|
|
1583
1583
|
y: e.clientY - translateY.value
|
|
1584
1584
|
};
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
};
|
|
1585
|
+
if (e.pointerType !== "mouse") {
|
|
1586
|
+
if (e.target instanceof HTMLElement) e.target.setPointerCapture(e.pointerId);
|
|
1587
|
+
}
|
|
1589
1588
|
}
|
|
1590
1589
|
function onDrag(e) {
|
|
1591
1590
|
if (!isDragging.value) return;
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
if (e instanceof MouseEvent) {
|
|
1595
|
-
clientX = e.clientX;
|
|
1596
|
-
clientY = e.clientY;
|
|
1597
|
-
} else {
|
|
1598
|
-
clientX = e.touches[0].clientX;
|
|
1599
|
-
clientY = e.touches[0].clientY;
|
|
1600
|
-
}
|
|
1601
|
-
translateX.value = clientX - dragStart.value.x;
|
|
1602
|
-
translateY.value = clientY - dragStart.value.y;
|
|
1591
|
+
translateX.value = e.clientX - dragStart.value.x;
|
|
1592
|
+
translateY.value = e.clientY - dragStart.value.y;
|
|
1603
1593
|
}
|
|
1604
1594
|
function stopDrag() {
|
|
1605
1595
|
isDragging.value = false;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as ICONS, u as useI18n } from "./composables-
|
|
1
|
+
import { M as ICONS, u as useI18n } from "./composables-CZ7YmjNl.js";
|
|
2
2
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, openBlock, renderSlot, resolveDynamicComponent, toDisplayString } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/error-component.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { M as ICONS, O as save, g as useHardenSanitizers, u as useI18n, z as useControls } from "./composables-
|
|
2
|
-
import "./tooltip-
|
|
3
|
-
import { t as button_default } from "./button-
|
|
4
|
-
import { t as error_component_default } from "./error-component-
|
|
1
|
+
import { M as ICONS, O as save, g as useHardenSanitizers, u as useI18n, z as useControls } from "./composables-CZ7YmjNl.js";
|
|
2
|
+
import "./tooltip-KcTe6tBF.js";
|
|
3
|
+
import { t as button_default } from "./button-vKhxUL3C.js";
|
|
4
|
+
import { t as error_component_default } from "./error-component-ChEpOmSX.js";
|
|
5
5
|
import { t as spin_default } from "./spin-Ds5W7qC_.js";
|
|
6
6
|
import { Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, normalizeStyle, openBlock, ref, resolveDynamicComponent, toDisplayString, toRefs, unref, withCtx } from "vue";
|
|
7
7
|
|