md-editor-v3 4.16.6 → 4.16.8-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 (73) hide show
  1. package/lib/cjs/MdEditor.cjs +3 -2
  2. package/lib/es/MdEditor.mjs +3 -2
  3. package/lib/types/DropdownToolbar/DropdownToolbar.d.ts +7 -8
  4. package/lib/types/DropdownToolbar/index.d.ts +46 -47
  5. package/lib/types/MdCatalog/CatalogLink.d.ts +5 -6
  6. package/lib/types/MdCatalog/MdCatalog.d.ts +3 -4
  7. package/lib/types/MdCatalog/index.d.ts +44 -45
  8. package/lib/types/MdEditor/Editor.d.ts +125 -125
  9. package/lib/types/MdEditor/components/Checkbox/index.d.ts +2 -3
  10. package/lib/types/MdEditor/components/Divider/index.d.ts +1 -1
  11. package/lib/types/MdEditor/components/Dropdown/index.d.ts +5 -6
  12. package/lib/types/MdEditor/components/Icon/Icon.d.ts +2 -3
  13. package/lib/types/MdEditor/components/Icon/Str.d.ts +0 -1
  14. package/lib/types/MdEditor/components/Icon/index.d.ts +4 -5
  15. package/lib/types/MdEditor/components/Modal/Modal.d.ts +2 -3
  16. package/lib/types/MdEditor/components/Modal/index.d.ts +49 -50
  17. package/lib/types/MdEditor/components/Popper/index.d.ts +2 -3
  18. package/lib/types/MdEditor/composition.d.ts +3 -4
  19. package/lib/types/MdEditor/config.d.ts +0 -1
  20. package/lib/types/MdEditor/index.d.ts +259 -260
  21. package/lib/types/MdEditor/layouts/Content/ContentPreview.d.ts +37 -38
  22. package/lib/types/MdEditor/layouts/Content/codemirror/autocompletion.d.ts +1 -2
  23. package/lib/types/MdEditor/layouts/Content/codemirror/commands.d.ts +1 -2
  24. package/lib/types/MdEditor/layouts/Content/codemirror/index.d.ts +2 -3
  25. package/lib/types/MdEditor/layouts/Content/codemirror/themeLight.d.ts +1 -2
  26. package/lib/types/MdEditor/layouts/Content/codemirror/themeOneDark.d.ts +4 -2
  27. package/lib/types/MdEditor/layouts/Content/composition/index.d.ts +6 -7
  28. package/lib/types/MdEditor/layouts/Content/composition/useAttach.d.ts +1 -2
  29. package/lib/types/MdEditor/layouts/Content/composition/useAutoScroll.d.ts +2 -3
  30. package/lib/types/MdEditor/layouts/Content/composition/useCodeMirror.d.ts +3 -4
  31. package/lib/types/MdEditor/layouts/Content/composition/useCopyCode.d.ts +1 -2
  32. package/lib/types/MdEditor/layouts/Content/composition/useHighlight.d.ts +1 -2
  33. package/lib/types/MdEditor/layouts/Content/composition/useKatex.d.ts +1 -2
  34. package/lib/types/MdEditor/layouts/Content/composition/useMarkdownIt.d.ts +2 -3
  35. package/lib/types/MdEditor/layouts/Content/composition/useMermaid.d.ts +2 -3
  36. package/lib/types/MdEditor/layouts/Content/composition/usePasteUpload.d.ts +2 -3
  37. package/lib/types/MdEditor/layouts/Content/composition/useResize.d.ts +1 -2
  38. package/lib/types/MdEditor/layouts/Content/composition/userZoom.d.ts +1 -2
  39. package/lib/types/MdEditor/layouts/Content/index.d.ts +76 -76
  40. package/lib/types/MdEditor/layouts/Content/markdownIt/admonition/index.d.ts +6 -2
  41. package/lib/types/MdEditor/layouts/Content/markdownIt/code/index.d.ts +10 -3
  42. package/lib/types/MdEditor/layouts/Content/markdownIt/heading/index.d.ts +2 -3
  43. package/lib/types/MdEditor/layouts/Content/markdownIt/katex/index.d.ts +6 -2
  44. package/lib/types/MdEditor/layouts/Content/markdownIt/mermaid/index.d.ts +2 -3
  45. package/lib/types/MdEditor/layouts/Content/markdownIt/xss/index.d.ts +1 -1
  46. package/lib/types/MdEditor/layouts/Content/props.d.ts +3 -4
  47. package/lib/types/MdEditor/layouts/Content/type.d.ts +0 -1
  48. package/lib/types/MdEditor/layouts/Footer/MarkdownTotal.d.ts +2 -3
  49. package/lib/types/MdEditor/layouts/Footer/ScrollAuto.d.ts +2 -3
  50. package/lib/types/MdEditor/layouts/Footer/index.d.ts +5 -6
  51. package/lib/types/MdEditor/layouts/Modals/Clip.d.ts +2 -3
  52. package/lib/types/MdEditor/layouts/Modals/Link.d.ts +2 -3
  53. package/lib/types/MdEditor/layouts/Modals/index.d.ts +2 -3
  54. package/lib/types/MdEditor/layouts/Toolbar/TableShape.d.ts +2 -3
  55. package/lib/types/MdEditor/layouts/Toolbar/composition.d.ts +0 -1
  56. package/lib/types/MdEditor/layouts/Toolbar/index.d.ts +25 -26
  57. package/lib/types/MdEditor/layouts/Toolbar/props.d.ts +3 -4
  58. package/lib/types/MdEditor/props.d.ts +4 -5
  59. package/lib/types/MdEditor/type.d.ts +7 -8
  60. package/lib/types/MdEditor/utils/content-help.d.ts +1 -2
  61. package/lib/types/MdEditor/utils/md-it.d.ts +1 -5
  62. package/lib/types/MdEditor/utils/scroll-auto.d.ts +1 -2
  63. package/lib/types/MdEditor/utils/vue-tsx.d.ts +0 -1
  64. package/lib/types/MdPreview/MdPreview.d.ts +56 -56
  65. package/lib/types/MdPreview/composition/useExpose.d.ts +1 -2
  66. package/lib/types/MdPreview/index.d.ts +118 -119
  67. package/lib/types/ModalToolbar/ModalToolbar.d.ts +5 -6
  68. package/lib/types/ModalToolbar/index.d.ts +66 -67
  69. package/lib/types/NormalToolbar/NormalToolbar.d.ts +5 -6
  70. package/lib/types/NormalToolbar/index.d.ts +30 -31
  71. package/lib/types/config.d.ts +2 -2
  72. package/lib/umd/index.js +2 -2
  73. package/package.json +4 -5
@@ -1,12 +1,11 @@
1
1
  import { PropType } from 'vue';
2
-
3
2
  export type IconName = 'bold' | 'underline' | 'italic' | 'strike-through' | 'title' | 'sub' | 'sup' | 'quote' | 'unordered-list' | 'ordered-list' | 'task' | 'code-row' | 'code' | 'link' | 'image' | 'table' | 'revoke' | 'next' | 'baocun' | 'prettier' | 'suoxiao' | 'fangda' | 'fullscreen-exit' | 'fullscreen' | 'preview-only' | 'preview' | 'coding' | 'catalog' | 'github' | 'mermaid' | 'formula' | 'close' | 'delete' | 'upload' | 'collapse-tips';
4
- declare const _default: import('vue').DefineComponent<{
3
+ declare const _default: import("vue").DefineComponent<{
5
4
  name: {
6
5
  type: PropType<IconName>;
7
6
  default: string;
8
7
  };
9
- }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
8
+ }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10
9
  name: {
11
10
  type: PropType<IconName>;
12
11
  default: string;
@@ -1,4 +1,3 @@
1
1
  import { CustomIcon } from '../../type';
2
-
3
2
  declare const StrIcon: (name: 'copy' | 'collapse-tips', customIcon: CustomIcon) => string;
4
3
  export default StrIcon;
@@ -1,14 +1,13 @@
1
- import { IconName } from './Icon';
2
1
  import { PropType } from 'vue';
3
-
4
- declare const _default: import('vue').DefineComponent<{
2
+ import { IconName } from './Icon';
3
+ declare const _default: import("vue").DefineComponent<{
5
4
  name: {
6
5
  type: PropType<IconName>;
7
6
  default: string;
8
7
  };
9
- }, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
8
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
10
9
  [key: string]: any;
11
- }>, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
10
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
12
11
  name: {
13
12
  type: PropType<IconName>;
14
13
  default: string;
@@ -1,6 +1,5 @@
1
1
  import { PropType, ExtractPropTypes, CSSProperties } from 'vue';
2
-
3
- declare const _default: import('vue').DefineComponent<{
2
+ declare const _default: import("vue").DefineComponent<{
4
3
  title: {
5
4
  type: PropType<string>;
6
5
  default: string;
@@ -39,7 +38,7 @@ declare const _default: import('vue').DefineComponent<{
39
38
  type: PropType<CSSProperties>;
40
39
  default: () => {};
41
40
  };
42
- }, () => "" | import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "onClose"[], "onClose", import('vue').PublicProps, Readonly<ExtractPropTypes<{
41
+ }, () => "" | import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onClose"[], "onClose", import("vue").PublicProps, Readonly<ExtractPropTypes<{
43
42
  title: {
44
43
  type: PropType<string>;
45
44
  default: string;
@@ -1,91 +1,90 @@
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
  title: {
6
- type: import('vue').PropType<string>;
5
+ type: import("vue").PropType<string>;
7
6
  default: string;
8
7
  };
9
8
  visible: {
10
- type: import('vue').PropType<boolean>;
9
+ type: import("vue").PropType<boolean>;
11
10
  default: boolean;
12
11
  };
13
12
  width: {
14
- type: import('vue').PropType<string>;
13
+ type: import("vue").PropType<string>;
15
14
  default: string;
16
15
  };
17
16
  height: {
18
- type: import('vue').PropType<string>;
17
+ type: import("vue").PropType<string>;
19
18
  default: string;
20
19
  };
21
20
  onClose: {
22
- type: import('vue').PropType<() => void>;
21
+ type: import("vue").PropType<() => void>;
23
22
  };
24
23
  showAdjust: {
25
- type: import('vue').PropType<boolean>;
24
+ type: import("vue").PropType<boolean>;
26
25
  default: boolean;
27
26
  };
28
27
  isFullscreen: {
29
- type: import('vue').PropType<boolean>;
28
+ type: import("vue").PropType<boolean>;
30
29
  default: boolean;
31
30
  };
32
31
  onAdjust: {
33
- type: import('vue').PropType<(val: boolean) => void>;
32
+ type: import("vue").PropType<(val: boolean) => void>;
34
33
  default: () => void;
35
34
  };
36
35
  class: {
37
- type: import('vue').PropType<string>;
36
+ type: import("vue").PropType<string>;
38
37
  };
39
38
  style: {
40
- type: import('vue').PropType<import('vue').CSSProperties>;
39
+ type: import("vue").PropType<import("vue").CSSProperties>;
41
40
  default: () => {};
42
41
  };
43
42
  }>> & {
44
43
  onOnClose?: ((...args: any[]) => any) | undefined;
45
- }, () => "" | import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "onClose"[], import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{
44
+ }, () => "" | import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onClose"[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
46
45
  title: {
47
- type: import('vue').PropType<string>;
46
+ type: import("vue").PropType<string>;
48
47
  default: string;
49
48
  };
50
49
  visible: {
51
- type: import('vue').PropType<boolean>;
50
+ type: import("vue").PropType<boolean>;
52
51
  default: boolean;
53
52
  };
54
53
  width: {
55
- type: import('vue').PropType<string>;
54
+ type: import("vue").PropType<string>;
56
55
  default: string;
57
56
  };
58
57
  height: {
59
- type: import('vue').PropType<string>;
58
+ type: import("vue").PropType<string>;
60
59
  default: string;
61
60
  };
62
61
  onClose: {
63
- type: import('vue').PropType<() => void>;
62
+ type: import("vue").PropType<() => void>;
64
63
  };
65
64
  showAdjust: {
66
- type: import('vue').PropType<boolean>;
65
+ type: import("vue").PropType<boolean>;
67
66
  default: boolean;
68
67
  };
69
68
  isFullscreen: {
70
- type: import('vue').PropType<boolean>;
69
+ type: import("vue").PropType<boolean>;
71
70
  default: boolean;
72
71
  };
73
72
  onAdjust: {
74
- type: import('vue').PropType<(val: boolean) => void>;
73
+ type: import("vue").PropType<(val: boolean) => void>;
75
74
  default: () => void;
76
75
  };
77
76
  class: {
78
- type: import('vue').PropType<string>;
77
+ type: import("vue").PropType<string>;
79
78
  };
80
79
  style: {
81
- type: import('vue').PropType<import('vue').CSSProperties>;
80
+ type: import("vue").PropType<import("vue").CSSProperties>;
82
81
  default: () => {};
83
82
  };
84
83
  }>> & {
85
84
  onOnClose?: ((...args: any[]) => any) | undefined;
86
85
  }, {
87
86
  title: string;
88
- style: import('vue').CSSProperties;
87
+ style: import("vue").CSSProperties;
89
88
  visible: boolean;
90
89
  height: string;
91
90
  width: string;
@@ -99,50 +98,50 @@ declare const _default: {
99
98
  C: {};
100
99
  M: {};
101
100
  Defaults: {};
102
- }, Readonly<import('vue').ExtractPropTypes<{
101
+ }, Readonly<import("vue").ExtractPropTypes<{
103
102
  title: {
104
- type: import('vue').PropType<string>;
103
+ type: import("vue").PropType<string>;
105
104
  default: string;
106
105
  };
107
106
  visible: {
108
- type: import('vue').PropType<boolean>;
107
+ type: import("vue").PropType<boolean>;
109
108
  default: boolean;
110
109
  };
111
110
  width: {
112
- type: import('vue').PropType<string>;
111
+ type: import("vue").PropType<string>;
113
112
  default: string;
114
113
  };
115
114
  height: {
116
- type: import('vue').PropType<string>;
115
+ type: import("vue").PropType<string>;
117
116
  default: string;
118
117
  };
119
118
  onClose: {
120
- type: import('vue').PropType<() => void>;
119
+ type: import("vue").PropType<() => void>;
121
120
  };
122
121
  showAdjust: {
123
- type: import('vue').PropType<boolean>;
122
+ type: import("vue").PropType<boolean>;
124
123
  default: boolean;
125
124
  };
126
125
  isFullscreen: {
127
- type: import('vue').PropType<boolean>;
126
+ type: import("vue").PropType<boolean>;
128
127
  default: boolean;
129
128
  };
130
129
  onAdjust: {
131
- type: import('vue').PropType<(val: boolean) => void>;
130
+ type: import("vue").PropType<(val: boolean) => void>;
132
131
  default: () => void;
133
132
  };
134
133
  class: {
135
- type: import('vue').PropType<string>;
134
+ type: import("vue").PropType<string>;
136
135
  };
137
136
  style: {
138
- type: import('vue').PropType<import('vue').CSSProperties>;
137
+ type: import("vue").PropType<import("vue").CSSProperties>;
139
138
  default: () => {};
140
139
  };
141
140
  }>> & {
142
141
  onOnClose?: ((...args: any[]) => any) | undefined;
143
142
  }, () => "" | import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
144
143
  title: string;
145
- style: import('vue').CSSProperties;
144
+ style: import("vue").CSSProperties;
146
145
  visible: boolean;
147
146
  height: string;
148
147
  width: string;
@@ -153,57 +152,57 @@ declare const _default: {
153
152
  __isFragment?: undefined;
154
153
  __isTeleport?: undefined;
155
154
  __isSuspense?: undefined;
156
- } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
155
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
157
156
  title: {
158
- type: import('vue').PropType<string>;
157
+ type: import("vue").PropType<string>;
159
158
  default: string;
160
159
  };
161
160
  visible: {
162
- type: import('vue').PropType<boolean>;
161
+ type: import("vue").PropType<boolean>;
163
162
  default: boolean;
164
163
  };
165
164
  width: {
166
- type: import('vue').PropType<string>;
165
+ type: import("vue").PropType<string>;
167
166
  default: string;
168
167
  };
169
168
  height: {
170
- type: import('vue').PropType<string>;
169
+ type: import("vue").PropType<string>;
171
170
  default: string;
172
171
  };
173
172
  onClose: {
174
- type: import('vue').PropType<() => void>;
173
+ type: import("vue").PropType<() => void>;
175
174
  };
176
175
  showAdjust: {
177
- type: import('vue').PropType<boolean>;
176
+ type: import("vue").PropType<boolean>;
178
177
  default: boolean;
179
178
  };
180
179
  isFullscreen: {
181
- type: import('vue').PropType<boolean>;
180
+ type: import("vue").PropType<boolean>;
182
181
  default: boolean;
183
182
  };
184
183
  onAdjust: {
185
- type: import('vue').PropType<(val: boolean) => void>;
184
+ type: import("vue").PropType<(val: boolean) => void>;
186
185
  default: () => void;
187
186
  };
188
187
  class: {
189
- type: import('vue').PropType<string>;
188
+ type: import("vue").PropType<string>;
190
189
  };
191
190
  style: {
192
- type: import('vue').PropType<import('vue').CSSProperties>;
191
+ type: import("vue").PropType<import("vue").CSSProperties>;
193
192
  default: () => {};
194
193
  };
195
194
  }>> & {
196
195
  onOnClose?: ((...args: any[]) => any) | undefined;
197
- }, () => "" | import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "onClose"[], "onClose", {
196
+ }, () => "" | import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onClose"[], "onClose", {
198
197
  title: string;
199
- style: import('vue').CSSProperties;
198
+ style: import("vue").CSSProperties;
200
199
  visible: boolean;
201
200
  height: string;
202
201
  width: string;
203
202
  showAdjust: boolean;
204
203
  isFullscreen: boolean;
205
204
  onAdjust: (val: boolean) => void;
206
- }, {}, string, {}> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
205
+ }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
207
206
  install: (app: App) => App;
208
207
  };
209
208
  export default _default;
@@ -1,11 +1,10 @@
1
1
  import { PropType } from 'vue';
2
-
3
- declare const Popper: import('vue').DefineComponent<{
2
+ declare const Popper: import("vue").DefineComponent<{
4
3
  title: {
5
4
  type: PropType<string>;
6
5
  default: string;
7
6
  };
8
- }, () => any[], unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
7
+ }, () => any[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
9
8
  title: {
10
9
  type: PropType<string>;
11
10
  default: string;
@@ -1,7 +1,6 @@
1
- import { ContentExposeParam } from './layouts/Content/type';
2
- import { SettingType, UpdateSetting, MdPreviewProps, EditorProps, EditorContext } from './type';
3
1
  import { Ref } from 'vue';
4
-
2
+ import { SettingType, UpdateSetting, MdPreviewProps, EditorProps, EditorContext } from './type';
3
+ import { ContentExposeParam } from './layouts/Content/type';
5
4
  /**
6
5
  * 处理保存逻辑,主要是需要异步返回编译后的html
7
6
  *
@@ -54,7 +53,7 @@ export declare const useConfig: (props: EditorProps, context: EditorContext) =>
54
53
  * @param props
55
54
  * @returns
56
55
  */
57
- export declare const useCatalog: (props: EditorProps) => import('vue').ComputedRef<boolean>;
56
+ export declare const useCatalog: (props: EditorProps) => import("vue").ComputedRef<boolean>;
58
57
  /**
59
58
  * 向外暴露属性
60
59
  *
@@ -1,5 +1,4 @@
1
1
  import { CodeCss, Config, ConfigOption, Footers, StaticTextDefault } from './type';
2
-
3
2
  export declare const prefix = "md-editor";
4
3
  export declare const defaultEditorId = "md-editor-v3";
5
4
  export declare const iconfontSvgUrl = "https://at.alicdn.com/t/c/font_2605852_cmafimm6hot.js";