md-editor-v3 4.16.7 → 4.16.8

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 (80) hide show
  1. package/README.md +13 -4
  2. package/lib/cjs/MdEditor.cjs +1 -0
  3. package/lib/cjs/ModalToolbar.cjs +12 -0
  4. package/lib/cjs/chunks/index3.cjs +22 -6
  5. package/lib/es/MdEditor.mjs +1 -0
  6. package/lib/es/ModalToolbar.mjs +12 -0
  7. package/lib/es/chunks/index3.mjs +22 -6
  8. package/lib/preview.css +5 -0
  9. package/lib/style.css +6 -3
  10. package/lib/types/DropdownToolbar/DropdownToolbar.d.ts +7 -8
  11. package/lib/types/DropdownToolbar/index.d.ts +46 -47
  12. package/lib/types/MdCatalog/CatalogLink.d.ts +5 -6
  13. package/lib/types/MdCatalog/MdCatalog.d.ts +3 -4
  14. package/lib/types/MdCatalog/index.d.ts +44 -45
  15. package/lib/types/MdEditor/Editor.d.ts +125 -125
  16. package/lib/types/MdEditor/components/Checkbox/index.d.ts +2 -3
  17. package/lib/types/MdEditor/components/Divider/index.d.ts +1 -1
  18. package/lib/types/MdEditor/components/Dropdown/index.d.ts +5 -6
  19. package/lib/types/MdEditor/components/Icon/Icon.d.ts +2 -3
  20. package/lib/types/MdEditor/components/Icon/Str.d.ts +0 -1
  21. package/lib/types/MdEditor/components/Icon/index.d.ts +4 -5
  22. package/lib/types/MdEditor/components/Modal/Modal.d.ts +14 -6
  23. package/lib/types/MdEditor/components/Modal/index.d.ts +68 -50
  24. package/lib/types/MdEditor/components/Popper/index.d.ts +2 -3
  25. package/lib/types/MdEditor/composition.d.ts +3 -4
  26. package/lib/types/MdEditor/config.d.ts +0 -1
  27. package/lib/types/MdEditor/index.d.ts +259 -260
  28. package/lib/types/MdEditor/layouts/Content/ContentPreview.d.ts +37 -38
  29. package/lib/types/MdEditor/layouts/Content/codemirror/autocompletion.d.ts +1 -2
  30. package/lib/types/MdEditor/layouts/Content/codemirror/commands.d.ts +1 -2
  31. package/lib/types/MdEditor/layouts/Content/codemirror/index.d.ts +2 -3
  32. package/lib/types/MdEditor/layouts/Content/codemirror/themeLight.d.ts +1 -2
  33. package/lib/types/MdEditor/layouts/Content/codemirror/themeOneDark.d.ts +4 -2
  34. package/lib/types/MdEditor/layouts/Content/composition/index.d.ts +6 -7
  35. package/lib/types/MdEditor/layouts/Content/composition/useAttach.d.ts +1 -2
  36. package/lib/types/MdEditor/layouts/Content/composition/useAutoScroll.d.ts +2 -3
  37. package/lib/types/MdEditor/layouts/Content/composition/useCodeMirror.d.ts +3 -4
  38. package/lib/types/MdEditor/layouts/Content/composition/useCopyCode.d.ts +1 -2
  39. package/lib/types/MdEditor/layouts/Content/composition/useHighlight.d.ts +1 -2
  40. package/lib/types/MdEditor/layouts/Content/composition/useKatex.d.ts +1 -2
  41. package/lib/types/MdEditor/layouts/Content/composition/useMarkdownIt.d.ts +2 -3
  42. package/lib/types/MdEditor/layouts/Content/composition/useMermaid.d.ts +2 -3
  43. package/lib/types/MdEditor/layouts/Content/composition/usePasteUpload.d.ts +2 -3
  44. package/lib/types/MdEditor/layouts/Content/composition/useResize.d.ts +1 -2
  45. package/lib/types/MdEditor/layouts/Content/composition/userZoom.d.ts +1 -2
  46. package/lib/types/MdEditor/layouts/Content/index.d.ts +76 -76
  47. package/lib/types/MdEditor/layouts/Content/markdownIt/admonition/index.d.ts +6 -2
  48. package/lib/types/MdEditor/layouts/Content/markdownIt/code/index.d.ts +10 -3
  49. package/lib/types/MdEditor/layouts/Content/markdownIt/heading/index.d.ts +2 -3
  50. package/lib/types/MdEditor/layouts/Content/markdownIt/katex/index.d.ts +6 -2
  51. package/lib/types/MdEditor/layouts/Content/markdownIt/mermaid/index.d.ts +2 -3
  52. package/lib/types/MdEditor/layouts/Content/markdownIt/xss/index.d.ts +1 -1
  53. package/lib/types/MdEditor/layouts/Content/props.d.ts +3 -4
  54. package/lib/types/MdEditor/layouts/Content/type.d.ts +0 -1
  55. package/lib/types/MdEditor/layouts/Footer/MarkdownTotal.d.ts +2 -3
  56. package/lib/types/MdEditor/layouts/Footer/ScrollAuto.d.ts +2 -3
  57. package/lib/types/MdEditor/layouts/Footer/index.d.ts +5 -6
  58. package/lib/types/MdEditor/layouts/Modals/Clip.d.ts +2 -3
  59. package/lib/types/MdEditor/layouts/Modals/Link.d.ts +2 -3
  60. package/lib/types/MdEditor/layouts/Modals/index.d.ts +2 -3
  61. package/lib/types/MdEditor/layouts/Toolbar/TableShape.d.ts +2 -3
  62. package/lib/types/MdEditor/layouts/Toolbar/composition.d.ts +0 -1
  63. package/lib/types/MdEditor/layouts/Toolbar/index.d.ts +25 -26
  64. package/lib/types/MdEditor/layouts/Toolbar/props.d.ts +3 -4
  65. package/lib/types/MdEditor/props.d.ts +4 -5
  66. package/lib/types/MdEditor/type.d.ts +7 -8
  67. package/lib/types/MdEditor/utils/content-help.d.ts +1 -2
  68. package/lib/types/MdEditor/utils/md-it.d.ts +1 -5
  69. package/lib/types/MdEditor/utils/scroll-auto.d.ts +1 -2
  70. package/lib/types/MdEditor/utils/vue-tsx.d.ts +0 -1
  71. package/lib/types/MdPreview/MdPreview.d.ts +56 -56
  72. package/lib/types/MdPreview/composition/useExpose.d.ts +1 -2
  73. package/lib/types/MdPreview/index.d.ts +118 -119
  74. package/lib/types/ModalToolbar/ModalToolbar.d.ts +23 -6
  75. package/lib/types/ModalToolbar/index.d.ts +102 -67
  76. package/lib/types/NormalToolbar/NormalToolbar.d.ts +5 -6
  77. package/lib/types/NormalToolbar/index.d.ts +30 -31
  78. package/lib/types/config.d.ts +2 -2
  79. package/lib/umd/index.js +29 -29
  80. package/package.json +4 -5
@@ -1,6 +1,5 @@
1
- import { HeadList, MdHeadingId, Themes } from '../MdEditor/type';
2
1
  import { PropType, ExtractPropTypes } from 'vue';
3
-
2
+ import { HeadList, MdHeadingId, Themes } from '../MdEditor/type';
4
3
  export interface TocItem {
5
4
  text: string;
6
5
  level: number;
@@ -8,7 +7,7 @@ export interface TocItem {
8
7
  active: boolean;
9
8
  children?: Array<TocItem>;
10
9
  }
11
- declare const MdCatalog: import('vue').DefineComponent<{
10
+ declare const MdCatalog: import("vue").DefineComponent<{
12
11
  /**
13
12
  * 编辑器的Id,务必与需要绑定的编辑器Id相同
14
13
  */
@@ -60,7 +59,7 @@ declare const MdCatalog: import('vue').DefineComponent<{
60
59
  onActive: {
61
60
  type: PropType<(heading: HeadList | undefined) => void>;
62
61
  };
63
- }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("onClick" | "onActive")[], "onClick" | "onActive", import('vue').PublicProps, Readonly<ExtractPropTypes<{
62
+ }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onClick" | "onActive")[], "onClick" | "onActive", import("vue").PublicProps, Readonly<ExtractPropTypes<{
64
63
  /**
65
64
  * 编辑器的Id,务必与需要绑定的编辑器Id相同
66
65
  */
@@ -1,82 +1,81 @@
1
1
  import { App } from 'vue';
2
-
3
2
  declare const _default: {
4
- new (...args: any[]): import('vue').CreateComponentPublicInstance<Readonly<import('vue').ExtractPropTypes<{
3
+ new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
5
4
  editorId: {
6
- type: import('vue').PropType<string>;
5
+ type: import("vue").PropType<string>;
7
6
  };
8
7
  class: {
9
8
  type: StringConstructor;
10
9
  default: string;
11
10
  };
12
11
  mdHeadingId: {
13
- type: import('vue').PropType<import('..').MdHeadingId>;
12
+ type: import("vue").PropType<import("..").MdHeadingId>;
14
13
  default: (text: string) => string;
15
14
  };
16
15
  scrollElement: {
17
- type: import('vue').PropType<string | HTMLElement>;
16
+ type: import("vue").PropType<string | HTMLElement>;
18
17
  };
19
18
  theme: {
20
- type: import('vue').PropType<import('..').Themes>;
19
+ type: import("vue").PropType<import("..").Themes>;
21
20
  default: string;
22
21
  };
23
22
  offsetTop: {
24
- type: import('vue').PropType<number>;
23
+ type: import("vue").PropType<number>;
25
24
  default: number;
26
25
  };
27
26
  scrollElementOffsetTop: {
28
- type: import('vue').PropType<number>;
27
+ type: import("vue").PropType<number>;
29
28
  default: number;
30
29
  };
31
30
  onClick: {
32
- type: import('vue').PropType<(e: MouseEvent, t: import('./MdCatalog').TocItem) => void>;
31
+ type: import("vue").PropType<(e: MouseEvent, t: import("./MdCatalog").TocItem) => void>;
33
32
  };
34
33
  onActive: {
35
- type: import('vue').PropType<(heading: import('..').HeadList | undefined) => void>;
34
+ type: import("vue").PropType<(heading: import("..").HeadList | undefined) => void>;
36
35
  };
37
36
  }>> & {
38
37
  onOnClick?: ((...args: any[]) => any) | undefined;
39
38
  onOnActive?: ((...args: any[]) => any) | undefined;
40
- }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("onClick" | "onActive")[], import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{
39
+ }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onClick" | "onActive")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
41
40
  editorId: {
42
- type: import('vue').PropType<string>;
41
+ type: import("vue").PropType<string>;
43
42
  };
44
43
  class: {
45
44
  type: StringConstructor;
46
45
  default: string;
47
46
  };
48
47
  mdHeadingId: {
49
- type: import('vue').PropType<import('..').MdHeadingId>;
48
+ type: import("vue").PropType<import("..").MdHeadingId>;
50
49
  default: (text: string) => string;
51
50
  };
52
51
  scrollElement: {
53
- type: import('vue').PropType<string | HTMLElement>;
52
+ type: import("vue").PropType<string | HTMLElement>;
54
53
  };
55
54
  theme: {
56
- type: import('vue').PropType<import('..').Themes>;
55
+ type: import("vue").PropType<import("..").Themes>;
57
56
  default: string;
58
57
  };
59
58
  offsetTop: {
60
- type: import('vue').PropType<number>;
59
+ type: import("vue").PropType<number>;
61
60
  default: number;
62
61
  };
63
62
  scrollElementOffsetTop: {
64
- type: import('vue').PropType<number>;
63
+ type: import("vue").PropType<number>;
65
64
  default: number;
66
65
  };
67
66
  onClick: {
68
- type: import('vue').PropType<(e: MouseEvent, t: import('./MdCatalog').TocItem) => void>;
67
+ type: import("vue").PropType<(e: MouseEvent, t: import("./MdCatalog").TocItem) => void>;
69
68
  };
70
69
  onActive: {
71
- type: import('vue').PropType<(heading: import('..').HeadList | undefined) => void>;
70
+ type: import("vue").PropType<(heading: import("..").HeadList | undefined) => void>;
72
71
  };
73
72
  }>> & {
74
73
  onOnClick?: ((...args: any[]) => any) | undefined;
75
74
  onOnActive?: ((...args: any[]) => any) | undefined;
76
75
  }, {
77
76
  class: string;
78
- theme: import('..').Themes;
79
- mdHeadingId: import('..').MdHeadingId;
77
+ theme: import("..").Themes;
78
+ mdHeadingId: import("..").MdHeadingId;
80
79
  offsetTop: number;
81
80
  scrollElementOffsetTop: number;
82
81
  }, true, {}, {}, {
@@ -86,95 +85,95 @@ declare const _default: {
86
85
  C: {};
87
86
  M: {};
88
87
  Defaults: {};
89
- }, Readonly<import('vue').ExtractPropTypes<{
88
+ }, Readonly<import("vue").ExtractPropTypes<{
90
89
  editorId: {
91
- type: import('vue').PropType<string>;
90
+ type: import("vue").PropType<string>;
92
91
  };
93
92
  class: {
94
93
  type: StringConstructor;
95
94
  default: string;
96
95
  };
97
96
  mdHeadingId: {
98
- type: import('vue').PropType<import('..').MdHeadingId>;
97
+ type: import("vue").PropType<import("..").MdHeadingId>;
99
98
  default: (text: string) => string;
100
99
  };
101
100
  scrollElement: {
102
- type: import('vue').PropType<string | HTMLElement>;
101
+ type: import("vue").PropType<string | HTMLElement>;
103
102
  };
104
103
  theme: {
105
- type: import('vue').PropType<import('..').Themes>;
104
+ type: import("vue").PropType<import("..").Themes>;
106
105
  default: string;
107
106
  };
108
107
  offsetTop: {
109
- type: import('vue').PropType<number>;
108
+ type: import("vue").PropType<number>;
110
109
  default: number;
111
110
  };
112
111
  scrollElementOffsetTop: {
113
- type: import('vue').PropType<number>;
112
+ type: import("vue").PropType<number>;
114
113
  default: number;
115
114
  };
116
115
  onClick: {
117
- type: import('vue').PropType<(e: MouseEvent, t: import('./MdCatalog').TocItem) => void>;
116
+ type: import("vue").PropType<(e: MouseEvent, t: import("./MdCatalog").TocItem) => void>;
118
117
  };
119
118
  onActive: {
120
- type: import('vue').PropType<(heading: import('..').HeadList | undefined) => void>;
119
+ type: import("vue").PropType<(heading: import("..").HeadList | undefined) => void>;
121
120
  };
122
121
  }>> & {
123
122
  onOnClick?: ((...args: any[]) => any) | undefined;
124
123
  onOnActive?: ((...args: any[]) => any) | undefined;
125
124
  }, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
126
125
  class: string;
127
- theme: import('..').Themes;
128
- mdHeadingId: import('..').MdHeadingId;
126
+ theme: import("..").Themes;
127
+ mdHeadingId: import("..").MdHeadingId;
129
128
  offsetTop: number;
130
129
  scrollElementOffsetTop: number;
131
130
  }>;
132
131
  __isFragment?: undefined;
133
132
  __isTeleport?: undefined;
134
133
  __isSuspense?: undefined;
135
- } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
134
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
136
135
  editorId: {
137
- type: import('vue').PropType<string>;
136
+ type: import("vue").PropType<string>;
138
137
  };
139
138
  class: {
140
139
  type: StringConstructor;
141
140
  default: string;
142
141
  };
143
142
  mdHeadingId: {
144
- type: import('vue').PropType<import('..').MdHeadingId>;
143
+ type: import("vue").PropType<import("..").MdHeadingId>;
145
144
  default: (text: string) => string;
146
145
  };
147
146
  scrollElement: {
148
- type: import('vue').PropType<string | HTMLElement>;
147
+ type: import("vue").PropType<string | HTMLElement>;
149
148
  };
150
149
  theme: {
151
- type: import('vue').PropType<import('..').Themes>;
150
+ type: import("vue").PropType<import("..").Themes>;
152
151
  default: string;
153
152
  };
154
153
  offsetTop: {
155
- type: import('vue').PropType<number>;
154
+ type: import("vue").PropType<number>;
156
155
  default: number;
157
156
  };
158
157
  scrollElementOffsetTop: {
159
- type: import('vue').PropType<number>;
158
+ type: import("vue").PropType<number>;
160
159
  default: number;
161
160
  };
162
161
  onClick: {
163
- type: import('vue').PropType<(e: MouseEvent, t: import('./MdCatalog').TocItem) => void>;
162
+ type: import("vue").PropType<(e: MouseEvent, t: import("./MdCatalog").TocItem) => void>;
164
163
  };
165
164
  onActive: {
166
- type: import('vue').PropType<(heading: import('..').HeadList | undefined) => void>;
165
+ type: import("vue").PropType<(heading: import("..").HeadList | undefined) => void>;
167
166
  };
168
167
  }>> & {
169
168
  onOnClick?: ((...args: any[]) => any) | undefined;
170
169
  onOnActive?: ((...args: any[]) => any) | undefined;
171
- }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("onClick" | "onActive")[], "onClick" | "onActive", {
170
+ }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onClick" | "onActive")[], "onClick" | "onActive", {
172
171
  class: string;
173
- theme: import('..').Themes;
174
- mdHeadingId: import('..').MdHeadingId;
172
+ theme: import("..").Themes;
173
+ mdHeadingId: import("..").MdHeadingId;
175
174
  offsetTop: number;
176
175
  scrollElementOffsetTop: number;
177
- }, {}, string, {}> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
176
+ }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
178
177
  install: (app: App) => App;
179
178
  };
180
179
  export default _default;