md-editor-v3 4.3.0 → 4.5.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.
Files changed (38) hide show
  1. package/README.md +131 -111
  2. package/lib/cjs/MdCatalog.cjs +1 -1
  3. package/lib/cjs/MdEditor.cjs +27 -27
  4. package/lib/cjs/MdModal.cjs +1 -1
  5. package/lib/cjs/MdPreview.cjs +1 -1
  6. package/lib/cjs/ModalToolbar.cjs +1 -1
  7. package/lib/cjs/chunks/config.cjs +1 -1
  8. package/lib/cjs/chunks/index.cjs +6 -6
  9. package/lib/cjs/chunks/index3.cjs +1 -2
  10. package/lib/cjs/chunks/index4.cjs +2 -0
  11. package/lib/cjs/index.cjs +1 -1
  12. package/lib/es/MdCatalog.mjs +1 -1
  13. package/lib/es/MdEditor.mjs +925 -1117
  14. package/lib/es/MdModal.mjs +6 -139
  15. package/lib/es/MdPreview.mjs +1 -1
  16. package/lib/es/ModalToolbar.mjs +1 -1
  17. package/lib/es/chunks/config.mjs +25 -26
  18. package/lib/es/chunks/index.mjs +430 -327
  19. package/lib/es/chunks/index3.mjs +163 -61
  20. package/lib/es/chunks/index4.mjs +69 -0
  21. package/lib/es/index.mjs +18 -17
  22. package/lib/preview.css +1 -1
  23. package/lib/style.css +1 -1
  24. package/lib/types/MdEditor/Editor.d.ts +19 -1
  25. package/lib/types/MdEditor/components/Icon/Icon.d.ts +16 -0
  26. package/lib/types/MdEditor/components/Icon/Str.d.ts +3 -0
  27. package/lib/types/MdEditor/components/Icon/index.d.ts +16 -0
  28. package/lib/types/MdEditor/config.d.ts +2 -1
  29. package/lib/types/MdEditor/index.d.ts +42 -4
  30. package/lib/types/MdEditor/layouts/Content/ContentPreview.d.ts +33 -73
  31. package/lib/types/MdEditor/layouts/Content/index.d.ts +73 -58
  32. package/lib/types/MdEditor/layouts/Content/props.d.ts +73 -17
  33. package/lib/types/MdEditor/props.d.ts +29 -1
  34. package/lib/types/MdEditor/type.d.ts +37 -8
  35. package/lib/types/MdPreview/MdPreview.d.ts +18 -0
  36. package/lib/types/MdPreview/index.d.ts +39 -1
  37. package/lib/umd/index.js +43 -43
  38. package/package.json +1 -1
@@ -9,8 +9,8 @@ declare const _default: {
9
9
  style: string | import("vue").CSSProperties;
10
10
  mdHeadingId: import("./type").MdHeadingId;
11
11
  theme: import("./type").Themes;
12
- pageFullscreen: boolean;
13
12
  preview: boolean;
13
+ pageFullscreen: boolean;
14
14
  htmlPreview: boolean;
15
15
  toolbars: import("./type").ToolbarNames[];
16
16
  toolbarsExclude: import("./type").ToolbarNames[];
@@ -33,6 +33,8 @@ declare const _default: {
33
33
  codeStyleReverse: boolean;
34
34
  codeStyleReverseList: string[];
35
35
  noHighlight: boolean;
36
+ noImgZoomIn: boolean;
37
+ customIcon: import("./type").CustomIcon;
36
38
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
37
39
  onChange: {
38
40
  type: import("vue").PropType<import("./type").ChangeEvent>;
@@ -207,6 +209,14 @@ declare const _default: {
207
209
  type: import("vue").PropType<boolean>;
208
210
  default: boolean;
209
211
  };
212
+ noImgZoomIn: {
213
+ type: import("vue").PropType<boolean>;
214
+ default: boolean;
215
+ };
216
+ customIcon: {
217
+ type: import("vue").PropType<import("./type").CustomIcon>;
218
+ default: {};
219
+ };
210
220
  }>> & {
211
221
  onOnChange?: ((...args: any[]) => any) | undefined;
212
222
  onOnFocus?: ((...args: any[]) => any) | undefined;
@@ -218,7 +228,7 @@ declare const _default: {
218
228
  onOnHtmlChanged?: ((...args: any[]) => any) | undefined;
219
229
  onOnGetCatalog?: ((...args: any[]) => any) | undefined;
220
230
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
221
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "editorId" | "class" | "style" | "mdHeadingId" | "theme" | "pageFullscreen" | "preview" | "htmlPreview" | "toolbars" | "toolbarsExclude" | "noPrettier" | "tabWidth" | "tableShape" | "placeholder" | "footers" | "scrollAuto" | "showToolbarName" | "modelValue" | "language" | "showCodeRowNumber" | "previewTheme" | "sanitize" | "noMermaid" | "noKatex" | "codeTheme" | "formatCopiedText" | "codeStyleReverse" | "codeStyleReverseList" | "noHighlight">;
231
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "editorId" | "class" | "style" | "mdHeadingId" | "theme" | "preview" | "pageFullscreen" | "htmlPreview" | "toolbars" | "toolbarsExclude" | "noPrettier" | "tabWidth" | "tableShape" | "placeholder" | "footers" | "scrollAuto" | "showToolbarName" | "modelValue" | "language" | "showCodeRowNumber" | "previewTheme" | "sanitize" | "noMermaid" | "noKatex" | "codeTheme" | "formatCopiedText" | "codeStyleReverse" | "codeStyleReverseList" | "noHighlight" | "noImgZoomIn" | "customIcon">;
222
232
  $attrs: {
223
233
  [x: string]: unknown;
224
234
  };
@@ -406,6 +416,14 @@ declare const _default: {
406
416
  type: import("vue").PropType<boolean>;
407
417
  default: boolean;
408
418
  };
419
+ noImgZoomIn: {
420
+ type: import("vue").PropType<boolean>;
421
+ default: boolean;
422
+ };
423
+ customIcon: {
424
+ type: import("vue").PropType<import("./type").CustomIcon>;
425
+ default: {};
426
+ };
409
427
  }>> & {
410
428
  onOnChange?: ((...args: any[]) => any) | undefined;
411
429
  onOnFocus?: ((...args: any[]) => any) | undefined;
@@ -423,8 +441,8 @@ declare const _default: {
423
441
  style: string | import("vue").CSSProperties;
424
442
  mdHeadingId: import("./type").MdHeadingId;
425
443
  theme: import("./type").Themes;
426
- pageFullscreen: boolean;
427
444
  preview: boolean;
445
+ pageFullscreen: boolean;
428
446
  htmlPreview: boolean;
429
447
  toolbars: import("./type").ToolbarNames[];
430
448
  toolbarsExclude: import("./type").ToolbarNames[];
@@ -447,6 +465,8 @@ declare const _default: {
447
465
  codeStyleReverse: boolean;
448
466
  codeStyleReverseList: string[];
449
467
  noHighlight: boolean;
468
+ noImgZoomIn: boolean;
469
+ customIcon: import("./type").CustomIcon;
450
470
  }, {}, string> & {
451
471
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
452
472
  created?: ((() => void) | (() => void)[]) | undefined;
@@ -641,6 +661,14 @@ declare const _default: {
641
661
  type: import("vue").PropType<boolean>;
642
662
  default: boolean;
643
663
  };
664
+ noImgZoomIn: {
665
+ type: import("vue").PropType<boolean>;
666
+ default: boolean;
667
+ };
668
+ customIcon: {
669
+ type: import("vue").PropType<import("./type").CustomIcon>;
670
+ default: {};
671
+ };
644
672
  }>> & {
645
673
  onOnChange?: ((...args: any[]) => any) | undefined;
646
674
  onOnFocus?: ((...args: any[]) => any) | undefined;
@@ -830,6 +858,14 @@ declare const _default: {
830
858
  type: import("vue").PropType<boolean>;
831
859
  default: boolean;
832
860
  };
861
+ noImgZoomIn: {
862
+ type: import("vue").PropType<boolean>;
863
+ default: boolean;
864
+ };
865
+ customIcon: {
866
+ type: import("vue").PropType<import("./type").CustomIcon>;
867
+ default: {};
868
+ };
833
869
  }>> & {
834
870
  onOnChange?: ((...args: any[]) => any) | undefined;
835
871
  onOnFocus?: ((...args: any[]) => any) | undefined;
@@ -847,8 +883,8 @@ declare const _default: {
847
883
  style: string | import("vue").CSSProperties;
848
884
  mdHeadingId: import("./type").MdHeadingId;
849
885
  theme: import("./type").Themes;
850
- pageFullscreen: boolean;
851
886
  preview: boolean;
887
+ pageFullscreen: boolean;
852
888
  htmlPreview: boolean;
853
889
  toolbars: import("./type").ToolbarNames[];
854
890
  toolbarsExclude: import("./type").ToolbarNames[];
@@ -871,6 +907,8 @@ declare const _default: {
871
907
  codeStyleReverse: boolean;
872
908
  codeStyleReverseList: string[];
873
909
  noHighlight: boolean;
910
+ noImgZoomIn: boolean;
911
+ customIcon: import("./type").CustomIcon;
874
912
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
875
913
  install: (app: App) => App;
876
914
  };
@@ -1,154 +1,114 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
1
+ import { ExtractPropTypes } from 'vue';
2
2
  import { LooseRequired } from '@vue/shared';
3
- import { HeadList, MdHeadingId, SettingType } from '../../type';
4
- export declare const contentPreviewProps: {
5
- modelValue: {
6
- type: PropType<string>;
7
- default: string;
8
- };
9
- setting: {
10
- type: PropType<SettingType>;
11
- default: () => {};
12
- };
13
- onHtmlChanged: {
14
- type: PropType<(h: string) => void>;
15
- default: () => void;
16
- };
17
- onGetCatalog: {
18
- type: PropType<(list: HeadList[]) => void>;
19
- default: () => void;
20
- };
21
- mdHeadingId: {
22
- type: PropType<MdHeadingId>;
23
- default: () => string;
24
- };
25
- noMermaid: {
26
- type: PropType<boolean>;
27
- default: boolean;
28
- };
29
- sanitize: {
30
- type: PropType<(html: string) => string>;
31
- default: (html: string) => string;
32
- };
33
- noKatex: {
34
- type: PropType<boolean>;
35
- default: boolean;
36
- };
37
- formatCopiedText: {
38
- type: PropType<(text: string) => string>;
39
- default: (text: string) => string;
40
- };
41
- noHighlight: {
42
- type: PropType<boolean>;
43
- default: boolean;
44
- };
45
- previewOnly: {
46
- type: PropType<boolean>;
47
- default: boolean;
48
- };
49
- };
3
+ import { contentPreviewProps } from './props';
50
4
  export type ContentPreviewProps = Readonly<LooseRequired<Readonly<ExtractPropTypes<typeof contentPreviewProps>>>>;
51
5
  declare const ContentPreview: import("vue").DefineComponent<{
52
6
  modelValue: {
53
- type: PropType<string>;
7
+ type: import("vue").PropType<string>;
54
8
  default: string;
55
9
  };
56
10
  setting: {
57
- type: PropType<SettingType>;
11
+ type: import("vue").PropType<import('../../type').SettingType>;
58
12
  default: () => {};
59
13
  };
60
14
  onHtmlChanged: {
61
- type: PropType<(h: string) => void>;
15
+ type: import("vue").PropType<(h: string) => void>;
62
16
  default: () => void;
63
17
  };
64
18
  onGetCatalog: {
65
- type: PropType<(list: HeadList[]) => void>;
19
+ type: import("vue").PropType<(list: import('../../type').HeadList[]) => void>;
66
20
  default: () => void;
67
21
  };
68
22
  mdHeadingId: {
69
- type: PropType<MdHeadingId>;
23
+ type: import("vue").PropType<import('../../type').MdHeadingId>;
70
24
  default: () => string;
71
25
  };
72
26
  noMermaid: {
73
- type: PropType<boolean>;
27
+ type: import("vue").PropType<boolean>;
74
28
  default: boolean;
75
29
  };
76
30
  sanitize: {
77
- type: PropType<(html: string) => string>;
31
+ type: import("vue").PropType<(html: string) => string>;
78
32
  default: (html: string) => string;
79
33
  };
80
34
  noKatex: {
81
- type: PropType<boolean>;
35
+ type: import("vue").PropType<boolean>;
82
36
  default: boolean;
83
37
  };
84
38
  formatCopiedText: {
85
- type: PropType<(text: string) => string>;
39
+ type: import("vue").PropType<(text: string) => string>;
86
40
  default: (text: string) => string;
87
41
  };
88
42
  noHighlight: {
89
- type: PropType<boolean>;
43
+ type: import("vue").PropType<boolean>;
90
44
  default: boolean;
91
45
  };
92
46
  previewOnly: {
93
- type: PropType<boolean>;
47
+ type: import("vue").PropType<boolean>;
94
48
  default: boolean;
95
49
  };
50
+ noImgZoomIn: {
51
+ type: import("vue").PropType<boolean>;
52
+ };
96
53
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
97
54
  modelValue: {
98
- type: PropType<string>;
55
+ type: import("vue").PropType<string>;
99
56
  default: string;
100
57
  };
101
58
  setting: {
102
- type: PropType<SettingType>;
59
+ type: import("vue").PropType<import('../../type').SettingType>;
103
60
  default: () => {};
104
61
  };
105
62
  onHtmlChanged: {
106
- type: PropType<(h: string) => void>;
63
+ type: import("vue").PropType<(h: string) => void>;
107
64
  default: () => void;
108
65
  };
109
66
  onGetCatalog: {
110
- type: PropType<(list: HeadList[]) => void>;
67
+ type: import("vue").PropType<(list: import('../../type').HeadList[]) => void>;
111
68
  default: () => void;
112
69
  };
113
70
  mdHeadingId: {
114
- type: PropType<MdHeadingId>;
71
+ type: import("vue").PropType<import('../../type').MdHeadingId>;
115
72
  default: () => string;
116
73
  };
117
74
  noMermaid: {
118
- type: PropType<boolean>;
75
+ type: import("vue").PropType<boolean>;
119
76
  default: boolean;
120
77
  };
121
78
  sanitize: {
122
- type: PropType<(html: string) => string>;
79
+ type: import("vue").PropType<(html: string) => string>;
123
80
  default: (html: string) => string;
124
81
  };
125
82
  noKatex: {
126
- type: PropType<boolean>;
83
+ type: import("vue").PropType<boolean>;
127
84
  default: boolean;
128
85
  };
129
86
  formatCopiedText: {
130
- type: PropType<(text: string) => string>;
87
+ type: import("vue").PropType<(text: string) => string>;
131
88
  default: (text: string) => string;
132
89
  };
133
90
  noHighlight: {
134
- type: PropType<boolean>;
91
+ type: import("vue").PropType<boolean>;
135
92
  default: boolean;
136
93
  };
137
94
  previewOnly: {
138
- type: PropType<boolean>;
95
+ type: import("vue").PropType<boolean>;
139
96
  default: boolean;
140
97
  };
98
+ noImgZoomIn: {
99
+ type: import("vue").PropType<boolean>;
100
+ };
141
101
  }>>, {
142
- mdHeadingId: MdHeadingId;
102
+ mdHeadingId: import('../../type').MdHeadingId;
143
103
  modelValue: string;
144
104
  onHtmlChanged: (h: string) => void;
145
- onGetCatalog: (list: HeadList[]) => void;
105
+ onGetCatalog: (list: import('../../type').HeadList[]) => void;
146
106
  sanitize: (html: string) => string;
147
107
  noMermaid: boolean;
148
108
  noKatex: boolean;
149
109
  formatCopiedText: (text: string) => string;
150
110
  noHighlight: boolean;
151
- setting: SettingType;
111
+ setting: import('../../type').SettingType;
152
112
  previewOnly: boolean;
153
113
  }>;
154
114
  export default ContentPreview;
@@ -1,51 +1,15 @@
1
1
  declare const _default: import("vue").DefineComponent<{
2
- value: {
3
- type: import("vue").PropType<string>;
4
- default: string;
5
- };
6
2
  onChange: {
7
3
  type: import("vue").PropType<(v: string) => void>;
8
4
  default: () => void;
9
5
  };
10
- setting: {
11
- type: import("vue").PropType<import("../../type").SettingType>;
12
- default: () => {};
13
- };
14
- onHtmlChanged: {
15
- type: import("vue").PropType<(h: string) => void>;
16
- default: () => void;
17
- };
18
- onGetCatalog: {
19
- type: import("vue").PropType<(list: import("../../type").HeadList[]) => void>;
20
- default: () => void;
21
- };
22
- mdHeadingId: {
23
- type: import("vue").PropType<import("../../type").MdHeadingId>;
24
- default: () => string;
25
- };
26
- noMermaid: {
27
- type: import("vue").PropType<boolean>;
28
- default: boolean;
29
- };
30
- sanitize: {
31
- type: import("vue").PropType<(html: string) => string>;
32
- default: (html: string) => string;
33
- };
34
6
  placeholder: {
35
7
  type: import("vue").PropType<string>;
36
8
  default: string;
37
9
  };
38
- noKatex: {
39
- type: import("vue").PropType<boolean>;
40
- default: boolean;
41
- };
42
10
  scrollAuto: {
43
11
  type: import("vue").PropType<boolean>;
44
12
  };
45
- formatCopiedText: {
46
- type: import("vue").PropType<(text: string) => string>;
47
- default: (text: string) => string;
48
- };
49
13
  autofocus: {
50
14
  type: import("vue").PropType<boolean>;
51
15
  };
@@ -72,10 +36,6 @@ declare const _default: import("vue").DefineComponent<{
72
36
  noPrettier: {
73
37
  type: import("vue").PropType<boolean>;
74
38
  };
75
- noHighlight: {
76
- type: import("vue").PropType<boolean>;
77
- default: boolean;
78
- };
79
39
  completions: {
80
40
  type: import("vue").PropType<import("@codemirror/autocomplete").CompletionSource[]>;
81
41
  };
@@ -89,15 +49,10 @@ declare const _default: import("vue").DefineComponent<{
89
49
  onInput: {
90
50
  type: import("vue").PropType<(event: Event) => void>;
91
51
  };
92
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
93
- value: {
52
+ modelValue: {
94
53
  type: import("vue").PropType<string>;
95
54
  default: string;
96
55
  };
97
- onChange: {
98
- type: import("vue").PropType<(v: string) => void>;
99
- default: () => void;
100
- };
101
56
  setting: {
102
57
  type: import("vue").PropType<import("../../type").SettingType>;
103
58
  default: () => {};
@@ -122,21 +77,37 @@ declare const _default: import("vue").DefineComponent<{
122
77
  type: import("vue").PropType<(html: string) => string>;
123
78
  default: (html: string) => string;
124
79
  };
125
- placeholder: {
126
- type: import("vue").PropType<string>;
127
- default: string;
128
- };
129
80
  noKatex: {
130
81
  type: import("vue").PropType<boolean>;
131
82
  default: boolean;
132
83
  };
133
- scrollAuto: {
134
- type: import("vue").PropType<boolean>;
135
- };
136
84
  formatCopiedText: {
137
85
  type: import("vue").PropType<(text: string) => string>;
138
86
  default: (text: string) => string;
139
87
  };
88
+ noHighlight: {
89
+ type: import("vue").PropType<boolean>;
90
+ default: boolean;
91
+ };
92
+ previewOnly: {
93
+ type: import("vue").PropType<boolean>;
94
+ default: boolean;
95
+ };
96
+ noImgZoomIn: {
97
+ type: import("vue").PropType<boolean>;
98
+ };
99
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
100
+ onChange: {
101
+ type: import("vue").PropType<(v: string) => void>;
102
+ default: () => void;
103
+ };
104
+ placeholder: {
105
+ type: import("vue").PropType<string>;
106
+ default: string;
107
+ };
108
+ scrollAuto: {
109
+ type: import("vue").PropType<boolean>;
110
+ };
140
111
  autofocus: {
141
112
  type: import("vue").PropType<boolean>;
142
113
  };
@@ -163,10 +134,6 @@ declare const _default: import("vue").DefineComponent<{
163
134
  noPrettier: {
164
135
  type: import("vue").PropType<boolean>;
165
136
  };
166
- noHighlight: {
167
- type: import("vue").PropType<boolean>;
168
- default: boolean;
169
- };
170
137
  completions: {
171
138
  type: import("vue").PropType<import("@codemirror/autocomplete").CompletionSource[]>;
172
139
  };
@@ -180,6 +147,53 @@ declare const _default: import("vue").DefineComponent<{
180
147
  onInput: {
181
148
  type: import("vue").PropType<(event: Event) => void>;
182
149
  };
150
+ modelValue: {
151
+ type: import("vue").PropType<string>;
152
+ default: string;
153
+ };
154
+ setting: {
155
+ type: import("vue").PropType<import("../../type").SettingType>;
156
+ default: () => {};
157
+ };
158
+ onHtmlChanged: {
159
+ type: import("vue").PropType<(h: string) => void>;
160
+ default: () => void;
161
+ };
162
+ onGetCatalog: {
163
+ type: import("vue").PropType<(list: import("../../type").HeadList[]) => void>;
164
+ default: () => void;
165
+ };
166
+ mdHeadingId: {
167
+ type: import("vue").PropType<import("../../type").MdHeadingId>;
168
+ default: () => string;
169
+ };
170
+ noMermaid: {
171
+ type: import("vue").PropType<boolean>;
172
+ default: boolean;
173
+ };
174
+ sanitize: {
175
+ type: import("vue").PropType<(html: string) => string>;
176
+ default: (html: string) => string;
177
+ };
178
+ noKatex: {
179
+ type: import("vue").PropType<boolean>;
180
+ default: boolean;
181
+ };
182
+ formatCopiedText: {
183
+ type: import("vue").PropType<(text: string) => string>;
184
+ default: (text: string) => string;
185
+ };
186
+ noHighlight: {
187
+ type: import("vue").PropType<boolean>;
188
+ default: boolean;
189
+ };
190
+ previewOnly: {
191
+ type: import("vue").PropType<boolean>;
192
+ default: boolean;
193
+ };
194
+ noImgZoomIn: {
195
+ type: import("vue").PropType<boolean>;
196
+ };
183
197
  }>>, {
184
198
  onChange: (v: string) => void;
185
199
  onFocus: (event: FocusEvent) => void;
@@ -187,6 +201,7 @@ declare const _default: import("vue").DefineComponent<{
187
201
  mdHeadingId: import("../../type").MdHeadingId;
188
202
  theme: import("../../type").Themes;
189
203
  placeholder: string;
204
+ modelValue: string;
190
205
  onHtmlChanged: (h: string) => void;
191
206
  onGetCatalog: (list: import("../../type").HeadList[]) => void;
192
207
  sanitize: (html: string) => string;
@@ -195,6 +210,6 @@ declare const _default: import("vue").DefineComponent<{
195
210
  formatCopiedText: (text: string) => string;
196
211
  noHighlight: boolean;
197
212
  setting: import("../../type").SettingType;
198
- value: string;
213
+ previewOnly: boolean;
199
214
  }>;
200
215
  export default _default;
@@ -2,15 +2,11 @@ import { ExtractPropTypes, PropType } from 'vue';
2
2
  import { CompletionSource } from '@codemirror/autocomplete';
3
3
  import { LooseRequired } from '@vue/shared';
4
4
  import { HeadList, SettingType, MdHeadingId, Themes } from '../../type';
5
- export declare const contentProps: {
6
- value: {
5
+ export declare const contentPreviewProps: {
6
+ modelValue: {
7
7
  type: PropType<string>;
8
8
  default: string;
9
9
  };
10
- onChange: {
11
- type: PropType<(v: string) => void>;
12
- default: () => void;
13
- };
14
10
  setting: {
15
11
  type: PropType<SettingType>;
16
12
  default: () => {};
@@ -35,21 +31,38 @@ export declare const contentProps: {
35
31
  type: PropType<(html: string) => string>;
36
32
  default: (html: string) => string;
37
33
  };
38
- placeholder: {
39
- type: PropType<string>;
40
- default: string;
41
- };
42
34
  noKatex: {
43
35
  type: PropType<boolean>;
44
36
  default: boolean;
45
37
  };
46
- scrollAuto: {
47
- type: PropType<boolean>;
48
- };
49
38
  formatCopiedText: {
50
39
  type: PropType<(text: string) => string>;
51
40
  default: (text: string) => string;
52
41
  };
42
+ noHighlight: {
43
+ type: PropType<boolean>;
44
+ default: boolean;
45
+ };
46
+ previewOnly: {
47
+ type: PropType<boolean>;
48
+ default: boolean;
49
+ };
50
+ noImgZoomIn: {
51
+ type: PropType<boolean>;
52
+ };
53
+ };
54
+ export declare const contentProps: {
55
+ onChange: {
56
+ type: PropType<(v: string) => void>;
57
+ default: () => void;
58
+ };
59
+ placeholder: {
60
+ type: PropType<string>;
61
+ default: string;
62
+ };
63
+ scrollAuto: {
64
+ type: PropType<boolean>;
65
+ };
53
66
  autofocus: {
54
67
  type: PropType<boolean>;
55
68
  };
@@ -82,10 +95,6 @@ export declare const contentProps: {
82
95
  noPrettier: {
83
96
  type: PropType<boolean>;
84
97
  };
85
- noHighlight: {
86
- type: PropType<boolean>;
87
- default: boolean;
88
- };
89
98
  completions: {
90
99
  type: PropType<CompletionSource[]>;
91
100
  };
@@ -99,5 +108,52 @@ export declare const contentProps: {
99
108
  onInput: {
100
109
  type: PropType<(event: Event) => void>;
101
110
  };
111
+ modelValue: {
112
+ type: PropType<string>;
113
+ default: string;
114
+ };
115
+ setting: {
116
+ type: PropType<SettingType>;
117
+ default: () => {};
118
+ };
119
+ onHtmlChanged: {
120
+ type: PropType<(h: string) => void>;
121
+ default: () => void;
122
+ };
123
+ onGetCatalog: {
124
+ type: PropType<(list: HeadList[]) => void>;
125
+ default: () => void;
126
+ };
127
+ mdHeadingId: {
128
+ type: PropType<MdHeadingId>;
129
+ default: () => string;
130
+ };
131
+ noMermaid: {
132
+ type: PropType<boolean>;
133
+ default: boolean;
134
+ };
135
+ sanitize: {
136
+ type: PropType<(html: string) => string>;
137
+ default: (html: string) => string;
138
+ };
139
+ noKatex: {
140
+ type: PropType<boolean>;
141
+ default: boolean;
142
+ };
143
+ formatCopiedText: {
144
+ type: PropType<(text: string) => string>;
145
+ default: (text: string) => string;
146
+ };
147
+ noHighlight: {
148
+ type: PropType<boolean>;
149
+ default: boolean;
150
+ };
151
+ previewOnly: {
152
+ type: PropType<boolean>;
153
+ default: boolean;
154
+ };
155
+ noImgZoomIn: {
156
+ type: PropType<boolean>;
157
+ };
102
158
  };
103
159
  export type ContentProps = Readonly<LooseRequired<Readonly<ExtractPropTypes<typeof contentProps>>>>;
@@ -1,6 +1,6 @@
1
1
  import { PropType, CSSProperties } from 'vue';
2
2
  import { CompletionSource } from '@codemirror/autocomplete';
3
- import { ToolbarNames, MdHeadingId, Themes, Footers, ChangeEvent, SaveEvent, UploadImgEvent, HtmlChangedEvent, GetCatalogEvent, ErrorEvent, EditorEmits } from './type';
3
+ import { ToolbarNames, MdHeadingId, Themes, Footers, ChangeEvent, SaveEvent, UploadImgEvent, HtmlChangedEvent, GetCatalogEvent, ErrorEvent, EditorEmits, CustomIcon } from './type';
4
4
  export declare const mdHeadingId: MdHeadingId;
5
5
  export declare const mdPreviewProps: {
6
6
  /**
@@ -172,6 +172,20 @@ export declare const mdPreviewProps: {
172
172
  type: PropType<boolean>;
173
173
  default: boolean;
174
174
  };
175
+ /**
176
+ * 是否关闭编辑器默认的放大缩小功能
177
+ */
178
+ noImgZoomIn: {
179
+ type: PropType<boolean>;
180
+ default: boolean;
181
+ };
182
+ /**
183
+ * 自定义的图标
184
+ */
185
+ customIcon: {
186
+ type: PropType<CustomIcon>;
187
+ default: {};
188
+ };
175
189
  };
176
190
  export declare const editorProps: {
177
191
  /**
@@ -570,6 +584,20 @@ export declare const editorProps: {
570
584
  type: PropType<boolean>;
571
585
  default: boolean;
572
586
  };
587
+ /**
588
+ * 是否关闭编辑器默认的放大缩小功能
589
+ */
590
+ noImgZoomIn: {
591
+ type: PropType<boolean>;
592
+ default: boolean;
593
+ };
594
+ /**
595
+ * 自定义的图标
596
+ */
597
+ customIcon: {
598
+ type: PropType<CustomIcon>;
599
+ default: {};
600
+ };
573
601
  };
574
602
  export declare const mdPreviewEmits: EditorEmits;
575
603
  export declare const editorEmits: EditorEmits;