md-editor-v3 4.11.2 → 4.12.0-beta.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/README.md +11 -1
- package/lib/cjs/DropdownToolbar.cjs +1 -1
- package/lib/cjs/MdCatalog.cjs +1 -1
- package/lib/cjs/MdEditor.cjs +7 -7
- package/lib/cjs/MdModal.cjs +1 -1
- package/lib/cjs/MdPreview.cjs +1 -1
- package/lib/cjs/ModalToolbar.cjs +1 -1
- package/lib/cjs/chunks/config.cjs +1 -1
- package/lib/cjs/chunks/index.cjs +7 -7
- package/lib/cjs/chunks/index4.cjs +2 -2
- package/lib/cjs/index.cjs +1 -1
- package/lib/es/DropdownToolbar.mjs +2 -5
- package/lib/es/MdCatalog.mjs +18 -18
- package/lib/es/MdEditor.mjs +173 -172
- package/lib/es/MdModal.mjs +2 -7
- package/lib/es/MdPreview.mjs +2 -13
- package/lib/es/ModalToolbar.mjs +8 -10
- package/lib/es/chunks/config.mjs +23 -24
- package/lib/es/chunks/index.mjs +178 -147
- package/lib/es/chunks/index4.mjs +22 -18
- package/lib/es/index.mjs +23 -43
- package/lib/preview.css +1 -1
- package/lib/style.css +1 -1
- package/lib/types/DropdownToolbar/index.d.ts +8 -8
- package/lib/types/MdCatalog/CatalogLink.d.ts +1 -1
- package/lib/types/MdCatalog/MdCatalog.d.ts +1 -1
- package/lib/types/MdCatalog/index.d.ts +5 -5
- package/lib/types/MdEditor/Editor.d.ts +15 -15
- package/lib/types/MdEditor/components/Dropdown/index.d.ts +1 -1
- package/lib/types/MdEditor/components/Modal/Modal.d.ts +2 -2
- package/lib/types/MdEditor/components/Modal/index.d.ts +8 -8
- package/lib/types/MdEditor/components/Popper/index.d.ts +15 -0
- package/lib/types/MdEditor/config.d.ts +3 -3
- package/lib/types/MdEditor/index.d.ts +68 -68
- package/lib/types/MdEditor/layouts/Content/ContentPreview.d.ts +8 -4
- package/lib/types/MdEditor/layouts/Content/composition/useAttach.d.ts +9 -0
- package/lib/types/MdEditor/layouts/Content/index.d.ts +12 -8
- package/lib/types/MdEditor/layouts/Content/props.d.ts +6 -2
- package/lib/types/MdEditor/layouts/Modals/Link.d.ts +1 -1
- package/lib/types/MdEditor/layouts/Toolbar/index.d.ts +1 -1
- package/lib/types/MdEditor/props.d.ts +2 -2
- package/lib/types/MdEditor/static/env.d.ts +1 -0
- package/lib/types/MdEditor/type.d.ts +7 -1
- package/lib/types/MdEditor/utils/index.d.ts +4 -0
- package/lib/types/MdPreview/MdPreview.d.ts +13 -13
- package/lib/types/MdPreview/index.d.ts +45 -45
- package/lib/types/ModalToolbar/ModalToolbar.d.ts +3 -3
- package/lib/types/ModalToolbar/index.d.ts +16 -16
- package/lib/types/NormalToolbar/index.d.ts +5 -5
- package/lib/umd/index.js +46 -46
- package/package.json +32 -31
package/lib/es/MdModal.mjs
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import { M as
|
|
2
|
-
import "vue";
|
|
3
|
-
import "./chunks/config.mjs";
|
|
4
|
-
import "./chunks/vue-tsx.mjs";
|
|
5
|
-
import "./chunks/dom.mjs";
|
|
6
|
-
import "@vavt/util";
|
|
1
|
+
import { M as f } from "./chunks/index3.mjs";
|
|
7
2
|
export {
|
|
8
|
-
|
|
3
|
+
f as default
|
|
9
4
|
};
|
package/lib/es/MdPreview.mjs
CHANGED
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
import { M as
|
|
2
|
-
import "vue";
|
|
3
|
-
import "./chunks/config.mjs";
|
|
4
|
-
import "./chunks/index4.mjs";
|
|
5
|
-
import "./chunks/dom.mjs";
|
|
6
|
-
import "@vavt/util";
|
|
7
|
-
import "medium-zoom";
|
|
8
|
-
import "copy-to-clipboard";
|
|
9
|
-
import "markdown-it";
|
|
10
|
-
import "markdown-it-image-figures";
|
|
11
|
-
import "markdown-it-task-lists";
|
|
12
|
-
import "lru-cache";
|
|
1
|
+
import { M as f } from "./chunks/index.mjs";
|
|
13
2
|
export {
|
|
14
|
-
|
|
3
|
+
f as default
|
|
15
4
|
};
|
package/lib/es/ModalToolbar.mjs
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { defineComponent as s, createVNode as o, Fragment as d, isVNode as
|
|
2
|
-
import { p as
|
|
1
|
+
import { defineComponent as s, createVNode as o, Fragment as d, isVNode as c } from "vue";
|
|
2
|
+
import { p as r } from "./chunks/config.mjs";
|
|
3
3
|
import { g as a } from "./chunks/vue-tsx.mjs";
|
|
4
4
|
import { M as f } from "./chunks/index3.mjs";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
function m(t) {
|
|
8
|
-
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !r(t);
|
|
5
|
+
function g(t) {
|
|
6
|
+
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !c(t);
|
|
9
7
|
}
|
|
10
|
-
const
|
|
8
|
+
const m = {
|
|
11
9
|
title: {
|
|
12
10
|
type: String,
|
|
13
11
|
default: ""
|
|
@@ -68,7 +66,7 @@ const g = {
|
|
|
68
66
|
*/
|
|
69
67
|
}, i = /* @__PURE__ */ s({
|
|
70
68
|
name: "ModalToolbar",
|
|
71
|
-
props:
|
|
69
|
+
props: m,
|
|
72
70
|
emits: ["onClick", "onClose", "onAdjust"],
|
|
73
71
|
setup(t, e) {
|
|
74
72
|
return () => {
|
|
@@ -80,7 +78,7 @@ const g = {
|
|
|
80
78
|
ctx: e
|
|
81
79
|
}, "default");
|
|
82
80
|
return o(d, null, [o("div", {
|
|
83
|
-
class: `${
|
|
81
|
+
class: `${r}-toolbar-item`,
|
|
84
82
|
title: t.title,
|
|
85
83
|
onClick: () => {
|
|
86
84
|
t.onClick instanceof Function ? t.onClick() : e.emit("onClick");
|
|
@@ -98,7 +96,7 @@ const g = {
|
|
|
98
96
|
onAdjust: (l) => {
|
|
99
97
|
t.onAdjust instanceof Function ? t.onAdjust(l) : e.emit("onAdjust", l);
|
|
100
98
|
}
|
|
101
|
-
},
|
|
99
|
+
}, g(n) ? n : {
|
|
102
100
|
default: () => [n]
|
|
103
101
|
})]);
|
|
104
102
|
};
|
package/lib/es/chunks/config.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
const a = "md-editor", o = "
|
|
1
|
+
const a = "md-editor", o = "https://at.alicdn.com/t/c/font_2605852_prouiefeic.js", r = "https://at.alicdn.com/t/c/font_2605852_prouiefeic.css", e = "https://cdnjs.cloudflare.com/ajax/libs", n = `${e}/highlight.js/11.8.0/highlight.min.js`, c = {
|
|
2
2
|
main: `${e}/prettier/2.8.0/standalone.js`,
|
|
3
3
|
markdown: `${e}/prettier/2.8.0/parser-markdown.js`
|
|
4
|
-
},
|
|
4
|
+
}, d = {
|
|
5
5
|
css: `${e}/cropperjs/1.5.13/cropper.min.css`,
|
|
6
6
|
js: `${e}/cropperjs/1.5.13/cropper.min.js`
|
|
7
|
-
},
|
|
7
|
+
}, h = `${e}/screenfull.js/5.2.0/screenfull.min.js`, g = [
|
|
8
8
|
"bold",
|
|
9
9
|
"underline",
|
|
10
10
|
"italic",
|
|
@@ -37,7 +37,7 @@ const a = "md-editor", o = "md-editor-v3", r = "https://at.alicdn.com/t/c/font_2
|
|
|
37
37
|
"htmlPreview",
|
|
38
38
|
"catalog",
|
|
39
39
|
"github"
|
|
40
|
-
],
|
|
40
|
+
], m = ["markdownTotal", "=", "scrollSwitch"], p = {
|
|
41
41
|
"zh-CN": {
|
|
42
42
|
toolbarTips: {
|
|
43
43
|
bold: "加粗",
|
|
@@ -196,14 +196,14 @@ const a = "md-editor", o = "md-editor-v3", r = "https://at.alicdn.com/t/c/font_2
|
|
|
196
196
|
block: "block"
|
|
197
197
|
},
|
|
198
198
|
footer: {
|
|
199
|
-
markdownTotal: "
|
|
199
|
+
markdownTotal: "Character Count",
|
|
200
200
|
scrollAuto: "Scroll Auto"
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
},
|
|
203
|
+
}, u = `${e}/mermaid/10.6.1/mermaid.esm.min.mjs`, k = {
|
|
204
204
|
js: `${e}/KaTeX/0.16.9/katex.min.js`,
|
|
205
205
|
css: `${e}/KaTeX/0.16.9/katex.min.css`
|
|
206
|
-
},
|
|
206
|
+
}, b = {
|
|
207
207
|
a11y: {
|
|
208
208
|
light: `${e}/highlight.js/11.8.0/styles/a11y-light.min.css`,
|
|
209
209
|
dark: `${e}/highlight.js/11.8.0/styles/a11y-dark.min.css`
|
|
@@ -245,29 +245,28 @@ const a = "md-editor", o = "md-editor-v3", r = "https://at.alicdn.com/t/c/font_2
|
|
|
245
245
|
markdownItPlugins: (i) => i,
|
|
246
246
|
iconfontType: "svg",
|
|
247
247
|
mermaidConfig: (i) => i
|
|
248
|
-
},
|
|
248
|
+
}, f = (i) => {
|
|
249
249
|
if (i)
|
|
250
250
|
for (const t in i) {
|
|
251
251
|
const s = i[t];
|
|
252
252
|
s && (l[t] = s);
|
|
253
253
|
}
|
|
254
|
-
},
|
|
254
|
+
}, j = 170;
|
|
255
255
|
export {
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
256
|
+
j as M,
|
|
257
|
+
o as a,
|
|
258
|
+
g as b,
|
|
259
|
+
f as c,
|
|
260
|
+
m as d,
|
|
261
261
|
l as e,
|
|
262
|
-
f,
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
g as n,
|
|
262
|
+
b as f,
|
|
263
|
+
c as g,
|
|
264
|
+
n as h,
|
|
265
|
+
r as i,
|
|
266
|
+
d as j,
|
|
267
|
+
k,
|
|
268
|
+
h as l,
|
|
269
|
+
u as m,
|
|
271
270
|
a as p,
|
|
272
|
-
|
|
271
|
+
p as s
|
|
273
272
|
};
|