md-editor-v3 4.11.3 → 4.12.0-beta.1

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 (53) hide show
  1. package/README.md +11 -1
  2. package/lib/cjs/DropdownToolbar.cjs +1 -1
  3. package/lib/cjs/MdCatalog.cjs +1 -1
  4. package/lib/cjs/MdEditor.cjs +7 -7
  5. package/lib/cjs/MdModal.cjs +1 -1
  6. package/lib/cjs/MdPreview.cjs +1 -1
  7. package/lib/cjs/ModalToolbar.cjs +1 -1
  8. package/lib/cjs/chunks/config.cjs +1 -1
  9. package/lib/cjs/chunks/index.cjs +7 -7
  10. package/lib/cjs/chunks/index3.cjs +1 -1
  11. package/lib/cjs/chunks/index4.cjs +2 -2
  12. package/lib/cjs/index.cjs +1 -1
  13. package/lib/es/DropdownToolbar.mjs +2 -5
  14. package/lib/es/MdCatalog.mjs +18 -18
  15. package/lib/es/MdEditor.mjs +173 -173
  16. package/lib/es/MdModal.mjs +2 -7
  17. package/lib/es/MdPreview.mjs +2 -14
  18. package/lib/es/ModalToolbar.mjs +8 -10
  19. package/lib/es/chunks/config.mjs +22 -23
  20. package/lib/es/chunks/index.mjs +153 -137
  21. package/lib/es/chunks/index3.mjs +108 -84
  22. package/lib/es/chunks/index4.mjs +22 -18
  23. package/lib/es/index.mjs +23 -44
  24. package/lib/preview.css +1 -1
  25. package/lib/style.css +1 -1
  26. package/lib/types/DropdownToolbar/index.d.ts +8 -8
  27. package/lib/types/MdCatalog/CatalogLink.d.ts +1 -1
  28. package/lib/types/MdCatalog/MdCatalog.d.ts +1 -1
  29. package/lib/types/MdCatalog/index.d.ts +5 -5
  30. package/lib/types/MdEditor/Editor.d.ts +15 -15
  31. package/lib/types/MdEditor/components/Dropdown/index.d.ts +1 -1
  32. package/lib/types/MdEditor/components/Modal/Modal.d.ts +19 -4
  33. package/lib/types/MdEditor/components/Modal/index.d.ts +34 -11
  34. package/lib/types/MdEditor/components/Popper/index.d.ts +15 -0
  35. package/lib/types/MdEditor/config.d.ts +3 -3
  36. package/lib/types/MdEditor/index.d.ts +68 -68
  37. package/lib/types/MdEditor/layouts/Content/ContentPreview.d.ts +8 -4
  38. package/lib/types/MdEditor/layouts/Content/composition/useAttach.d.ts +9 -0
  39. package/lib/types/MdEditor/layouts/Content/index.d.ts +12 -8
  40. package/lib/types/MdEditor/layouts/Content/props.d.ts +6 -2
  41. package/lib/types/MdEditor/layouts/Modals/Link.d.ts +1 -1
  42. package/lib/types/MdEditor/layouts/Toolbar/index.d.ts +1 -1
  43. package/lib/types/MdEditor/props.d.ts +2 -2
  44. package/lib/types/MdEditor/static/env.d.ts +1 -0
  45. package/lib/types/MdEditor/type.d.ts +7 -1
  46. package/lib/types/MdEditor/utils/index.d.ts +4 -0
  47. package/lib/types/MdPreview/MdPreview.d.ts +13 -13
  48. package/lib/types/MdPreview/index.d.ts +45 -45
  49. package/lib/types/ModalToolbar/ModalToolbar.d.ts +3 -3
  50. package/lib/types/ModalToolbar/index.d.ts +16 -16
  51. package/lib/types/NormalToolbar/index.d.ts +5 -5
  52. package/lib/umd/index.js +67 -68
  53. package/package.json +32 -32
@@ -1,9 +1,4 @@
1
- import { M as e } from "./chunks/index3.mjs";
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
- e as default
3
+ f as default
9
4
  };
@@ -1,16 +1,4 @@
1
- import { M } from "./chunks/index.mjs";
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 "markdown-it-xss";
13
- import "lru-cache";
1
+ import { M as f } from "./chunks/index.mjs";
14
2
  export {
15
- M as default
3
+ f as default
16
4
  };
@@ -1,13 +1,11 @@
1
- import { defineComponent as s, createVNode as o, Fragment as d, isVNode as r } from "vue";
2
- import { p as c } from "./chunks/config.mjs";
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
- import "./chunks/dom.mjs";
6
- import "@vavt/util";
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 g = {
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: g,
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: `${c}-toolbar-item`,
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
- }, m(n) ? n : {
99
+ }, g(n) ? n : {
102
100
  default: () => [n]
103
101
  })]);
104
102
  };
@@ -1,10 +1,10 @@
1
- const a = "md-editor", o = "md-editor-v3", r = "https://at.alicdn.com/t/c/font_2605852_prouiefeic.js", n = "https://at.alicdn.com/t/c/font_2605852_prouiefeic.css", e = "https://cdnjs.cloudflare.com/ajax/libs", c = `${e}/highlight.js/11.8.0/highlight.min.js`, d = {
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
- }, h = {
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
- }, g = `${e}/screenfull.js/5.2.0/screenfull.min.js`, m = [
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
- ], p = ["markdownTotal", "=", "scrollSwitch"], u = {
40
+ ], m = ["markdownTotal", "=", "scrollSwitch"], p = {
41
41
  "zh-CN": {
42
42
  toolbarTips: {
43
43
  bold: "加粗",
@@ -200,10 +200,10 @@ const a = "md-editor", o = "md-editor-v3", r = "https://at.alicdn.com/t/c/font_2
200
200
  scrollAuto: "Scroll Auto"
201
201
  }
202
202
  }
203
- }, k = `${e}/mermaid/10.6.1/mermaid.esm.min.mjs`, b = {
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
- }, f = {
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
- }, j = (i) => {
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
- }, v = 170;
254
+ }, j = 170;
255
255
  export {
256
- v as M,
257
- r as a,
258
- m as b,
259
- j as c,
260
- p as d,
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
- d as g,
264
- c as h,
265
- n as i,
266
- h as j,
267
- b as k,
268
- o as l,
269
- k as m,
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
- u as s
271
+ p as s
273
272
  };