vue-devui 1.5.4 → 1.5.6

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 (120) hide show
  1. package/alert/index.es.js +3 -3
  2. package/alert/index.umd.js +1 -1
  3. package/auto-complete/index.es.js +27 -9
  4. package/auto-complete/index.umd.js +19 -1
  5. package/avatar/index.es.js +77 -3
  6. package/avatar/index.umd.js +75 -1
  7. package/carousel/index.es.js +448 -0
  8. package/carousel/index.umd.js +1 -0
  9. package/carousel/package.json +8 -0
  10. package/carousel/style.css +1 -0
  11. package/checkbox/index.es.js +27 -9
  12. package/checkbox/index.umd.js +19 -1
  13. package/code-review/index.es.js +73 -0
  14. package/code-review/index.umd.js +1 -0
  15. package/code-review/package.json +8 -0
  16. package/code-review/style.css +1 -0
  17. package/collapse/index.es.js +5 -1
  18. package/collapse/index.umd.js +5 -1
  19. package/date-picker-pro/index.es.js +54 -11
  20. package/date-picker-pro/index.umd.js +44 -1
  21. package/echarts/index.es.js +395 -0
  22. package/echarts/index.umd.js +1 -0
  23. package/echarts/package.json +8 -0
  24. package/editor-md/index.es.js +9173 -0
  25. package/editor-md/index.umd.js +142 -0
  26. package/editor-md/package.json +8 -0
  27. package/editor-md/style.css +1 -0
  28. package/form/index.es.js +27 -9
  29. package/form/index.umd.js +22 -4
  30. package/global.d.ts +6 -0
  31. package/grid/index.es.js +25 -1
  32. package/grid/index.umd.js +1 -1
  33. package/image-preview/index.es.js +34 -9
  34. package/image-preview/index.umd.js +26 -1
  35. package/input/index.es.js +27 -9
  36. package/input/index.umd.js +19 -1
  37. package/input-number/index.es.js +35 -11
  38. package/input-number/index.umd.js +30 -6
  39. package/mention/index.es.js +27 -9
  40. package/mention/index.umd.js +19 -1
  41. package/notification/index.es.js +11 -4
  42. package/notification/index.umd.js +8 -1
  43. package/nuxt/components/Carousel.js +3 -0
  44. package/nuxt/components/CarouselItem.js +3 -0
  45. package/nuxt/components/CodeReview.js +3 -0
  46. package/nuxt/components/DChart.js +2 -0
  47. package/nuxt/components/EditorMd.js +3 -0
  48. package/nuxt/components/EditorMdInjectionKey.js +3 -0
  49. package/nuxt/components/MdRender.js +3 -0
  50. package/nuxt/components/codeReviewProps.js +3 -0
  51. package/nuxt/components/devuiChartProps.js +2 -0
  52. package/nuxt/components/editorMdProps.js +3 -0
  53. package/nuxt/components/mdRenderProps.js +3 -0
  54. package/nuxt/components/mdToolbarItemProps.js +3 -0
  55. package/package.json +11 -3
  56. package/pagination/index.es.js +34 -13
  57. package/pagination/index.umd.js +22 -1
  58. package/popover/index.es.js +12 -4
  59. package/popover/index.umd.js +9 -1
  60. package/radio/index.es.js +27 -9
  61. package/radio/index.umd.js +30 -12
  62. package/rate/index.es.js +2 -2
  63. package/rate/index.umd.js +1 -1
  64. package/search/index.es.js +31 -11
  65. package/search/index.umd.js +21 -1
  66. package/select/index.es.js +32 -11
  67. package/select/index.umd.js +22 -1
  68. package/skeleton/index.es.js +17 -1
  69. package/skeleton/index.umd.js +17 -1
  70. package/style.css +1 -1
  71. package/switch/index.es.js +27 -9
  72. package/switch/index.umd.js +25 -7
  73. package/table/index.es.js +27 -9
  74. package/table/index.umd.js +19 -1
  75. package/textarea/index.es.js +27 -9
  76. package/textarea/index.umd.js +19 -1
  77. package/time-picker/index.es.js +27 -9
  78. package/time-picker/index.umd.js +19 -1
  79. package/time-select/index.es.js +32 -11
  80. package/time-select/index.umd.js +27 -6
  81. package/tree/index.es.js +27 -9
  82. package/tree/index.umd.js +19 -1
  83. package/types/avatar/src/components/icon-nobody.d.ts +1 -1
  84. package/types/code-review/index.d.ts +11 -0
  85. package/types/code-review/src/code-review-types.d.ts +14 -0
  86. package/types/code-review/src/code-review.d.ts +27 -0
  87. package/types/code-review/src/composables/use-code-review.d.ts +4 -0
  88. package/types/echarts/index.d.ts +11 -0
  89. package/types/echarts/src/echarts-theme.d.ts +351 -0
  90. package/types/echarts/src/echarts-types.d.ts +8 -0
  91. package/types/echarts/src/echarts.d.ts +16 -0
  92. package/types/editor-md/index.d.ts +12 -0
  93. package/types/editor-md/src/components/font-color.d.ts +2 -0
  94. package/types/editor-md/src/components/font-size.d.ts +2 -0
  95. package/types/editor-md/src/components/md-render.d.ts +95 -0
  96. package/types/editor-md/src/components/toolbar-item.d.ts +14 -0
  97. package/types/editor-md/src/components/toolbar.d.ts +3 -0
  98. package/types/editor-md/src/composables/helper.d.ts +2 -0
  99. package/types/editor-md/src/composables/md-render-service.d.ts +26 -0
  100. package/types/editor-md/src/composables/use-editor-md-render.d.ts +10 -0
  101. package/types/editor-md/src/composables/use-editor-md-theme.d.ts +3 -0
  102. package/types/editor-md/src/composables/use-editor-md-toolbar.d.ts +4 -0
  103. package/types/editor-md/src/composables/use-editor-md.d.ts +15 -0
  104. package/types/editor-md/src/editor-md-types.d.ts +172 -0
  105. package/types/editor-md/src/editor-md.d.ts +198 -0
  106. package/types/editor-md/src/icons-config.d.ts +23 -0
  107. package/types/editor-md/src/plugins/mermaid.d.ts +2 -0
  108. package/types/editor-md/src/plugins/toc.d.ts +1 -0
  109. package/types/editor-md/src/toolbar-config.d.ts +22 -0
  110. package/types/editor-md/src/utils.d.ts +2 -0
  111. package/types/grid/src/grid-types.d.ts +4 -0
  112. package/types/grid/src/row.d.ts +9 -0
  113. package/types/menu/src/menu.d.ts +1 -1
  114. package/types/nav-sprite/src/nav-sprite.d.ts +1 -1
  115. package/types/timeline/src/components/timeline-item.d.ts +1 -1
  116. package/types/vue-devui.d.ts +4 -1
  117. package/upload/index.es.js +11 -4
  118. package/upload/index.umd.js +8 -1
  119. package/vue-devui.es.js +16564 -14195
  120. package/vue-devui.umd.js +315 -20
@@ -0,0 +1,27 @@
1
+ import 'diff2html/bundles/css/diff2html.min.css';
2
+ import './code-review.scss';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ diff: {
5
+ type: StringConstructor;
6
+ required: boolean;
7
+ default: string;
8
+ };
9
+ outputFormat: {
10
+ type: import("vue").PropType<import("./code-review-types").OutputFormat>;
11
+ default: string;
12
+ };
13
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
14
+ diff: {
15
+ type: StringConstructor;
16
+ required: boolean;
17
+ default: string;
18
+ };
19
+ outputFormat: {
20
+ type: import("vue").PropType<import("./code-review-types").OutputFormat>;
21
+ default: string;
22
+ };
23
+ }>>, {
24
+ diff: string;
25
+ outputFormat: import("./code-review-types").OutputFormat;
26
+ }>;
27
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import type { CodeReviewProps } from '../code-review-types';
2
+ export declare function useCodeReview(props: CodeReviewProps): {
3
+ renderHtml: import("vue").Ref<string>;
4
+ };
@@ -0,0 +1,11 @@
1
+ import type { App } from 'vue';
2
+ import DChart from './src/echarts';
3
+ export * from './src/echarts-types';
4
+ export { DChart };
5
+ declare const _default: {
6
+ title: string;
7
+ category: string;
8
+ status: string;
9
+ install(app: App): void;
10
+ };
11
+ export default _default;
@@ -0,0 +1,351 @@
1
+ export declare const DEFAULT_BASIC_COLOR_PALETTE: string[];
2
+ export declare const DEVUI_ECHART_THEME: {
3
+ defaultColorPalette: string[];
4
+ defaultDarkTheme: {
5
+ color: string[];
6
+ tooltip: {
7
+ axisPointer: {
8
+ label: {
9
+ show: boolean;
10
+ };
11
+ lineStyle: {
12
+ color: string;
13
+ width: number;
14
+ type: number[];
15
+ };
16
+ crossStyle: {
17
+ color: string;
18
+ width: number;
19
+ type: number[];
20
+ };
21
+ };
22
+ backgroundColor: string;
23
+ extraCssText: string;
24
+ borderWidth: number;
25
+ padding: number[];
26
+ textStyle: {
27
+ color: string;
28
+ fontSize: number;
29
+ };
30
+ };
31
+ virtualMap: {
32
+ textStyle: {
33
+ color: string;
34
+ };
35
+ };
36
+ legend: {
37
+ height: string;
38
+ width: string;
39
+ textStyle: {
40
+ color: string;
41
+ };
42
+ };
43
+ textStyle: {
44
+ color: string;
45
+ };
46
+ title: {
47
+ textStyle: {
48
+ color: string;
49
+ };
50
+ };
51
+ toolbox: {
52
+ iconStyle: {
53
+ borderColor: string;
54
+ };
55
+ };
56
+ dataZoom: {
57
+ textStyle: {
58
+ color: string;
59
+ };
60
+ };
61
+ timeline: {
62
+ lineStyle: {
63
+ color: string;
64
+ };
65
+ label: {
66
+ textStyle: {
67
+ color: string;
68
+ };
69
+ };
70
+ };
71
+ timeAxis: {
72
+ axisLine: {
73
+ lineStyle: {
74
+ color: string;
75
+ };
76
+ };
77
+ axisTick: {
78
+ lineStyle: {
79
+ color: string;
80
+ };
81
+ };
82
+ axisLabel: {
83
+ textStyle: {
84
+ color: string;
85
+ };
86
+ };
87
+ splitLine: {
88
+ lineStyle: {
89
+ type: number[];
90
+ color: string;
91
+ };
92
+ };
93
+ };
94
+ logAxis: {
95
+ axisLine: {
96
+ lineStyle: {
97
+ color: string;
98
+ };
99
+ };
100
+ axisTick: {
101
+ lineStyle: {
102
+ color: string;
103
+ };
104
+ };
105
+ axisLabel: {
106
+ textStyle: {
107
+ color: string;
108
+ };
109
+ };
110
+ splitLine: {
111
+ lineStyle: {
112
+ type: number[];
113
+ color: string;
114
+ };
115
+ };
116
+ };
117
+ valueAxis: {
118
+ axisLine: {
119
+ show: boolean;
120
+ lineStyle: {
121
+ color: string;
122
+ };
123
+ };
124
+ axisTick: {
125
+ show: boolean;
126
+ };
127
+ axisLabel: {
128
+ textStyle: {
129
+ color: string;
130
+ };
131
+ };
132
+ splitLine: {
133
+ lineStyle: {
134
+ type: number[];
135
+ color: string;
136
+ };
137
+ };
138
+ };
139
+ categoryAxis: {
140
+ axisLine: {
141
+ show: boolean;
142
+ lineStyle: {
143
+ color: string;
144
+ };
145
+ };
146
+ axisTick: {
147
+ show: boolean;
148
+ };
149
+ axisLabel: {
150
+ textStyle: {
151
+ color: string;
152
+ };
153
+ };
154
+ splitLine: {
155
+ lineStyle: {
156
+ type: number[];
157
+ color: string;
158
+ };
159
+ };
160
+ };
161
+ line: {
162
+ symbol: string;
163
+ };
164
+ graph: {
165
+ color: string[];
166
+ };
167
+ geo: {
168
+ itemStyle: {
169
+ borderColor: string;
170
+ areaColor: string;
171
+ };
172
+ };
173
+ };
174
+ defaultLightTheme: {
175
+ color: string[];
176
+ tooltip: {
177
+ axisPointer: {
178
+ label: {
179
+ show: boolean;
180
+ };
181
+ lineStyle: {
182
+ color: string;
183
+ width: number;
184
+ type: number[];
185
+ };
186
+ crossStyle: {
187
+ color: string;
188
+ width: number;
189
+ type: number[];
190
+ };
191
+ };
192
+ backgroundColor: string;
193
+ extraCssText: string;
194
+ borderWidth: number;
195
+ padding: number[];
196
+ textStyle: {
197
+ color: string;
198
+ fontSize: number;
199
+ };
200
+ };
201
+ virtualMap: {
202
+ textStyle: {
203
+ color: string;
204
+ };
205
+ };
206
+ legend: {
207
+ height: string;
208
+ width: string;
209
+ align: string;
210
+ textStyle: {
211
+ color: string;
212
+ };
213
+ };
214
+ textStyle: {
215
+ color: string;
216
+ };
217
+ title: {
218
+ textStyle: {
219
+ color: string;
220
+ };
221
+ };
222
+ toolbox: {
223
+ iconStyle: {
224
+ borderColor: string;
225
+ };
226
+ };
227
+ dataZoom: {
228
+ textStyle: {
229
+ color: string;
230
+ };
231
+ };
232
+ timeline: {
233
+ lineStyle: {
234
+ color: string;
235
+ };
236
+ label: {
237
+ textStyle: {
238
+ color: string;
239
+ };
240
+ };
241
+ };
242
+ timeAxis: {
243
+ axisLine: {
244
+ lineStyle: {
245
+ color: string;
246
+ };
247
+ };
248
+ axisTick: {
249
+ lineStyle: {
250
+ color: string;
251
+ };
252
+ };
253
+ axisLabel: {
254
+ textStyle: {
255
+ color: string;
256
+ };
257
+ };
258
+ splitLine: {
259
+ lineStyle: {
260
+ type: number[];
261
+ color: string;
262
+ };
263
+ };
264
+ };
265
+ logAxis: {
266
+ axisLine: {
267
+ lineStyle: {
268
+ color: string;
269
+ };
270
+ };
271
+ axisTick: {
272
+ lineStyle: {
273
+ color: string;
274
+ };
275
+ };
276
+ axisLabel: {
277
+ textStyle: {
278
+ color: string;
279
+ };
280
+ };
281
+ splitLine: {
282
+ lineStyle: {
283
+ type: number[];
284
+ color: string;
285
+ };
286
+ };
287
+ };
288
+ valueAxis: {
289
+ axisLine: {
290
+ show: boolean;
291
+ lineStyle: {
292
+ color: string;
293
+ };
294
+ };
295
+ axisTick: {
296
+ show: boolean;
297
+ };
298
+ axisLabel: {
299
+ textStyle: {
300
+ color: string;
301
+ };
302
+ };
303
+ splitLine: {
304
+ lineStyle: {
305
+ type: number[];
306
+ color: string;
307
+ };
308
+ };
309
+ };
310
+ categoryAxis: {
311
+ axisLine: {
312
+ show: boolean;
313
+ lineStyle: {
314
+ color: string;
315
+ };
316
+ };
317
+ axisTick: {
318
+ show: boolean;
319
+ };
320
+ axisLabel: {
321
+ textStyle: {
322
+ color: string;
323
+ };
324
+ };
325
+ splitLine: {
326
+ lineStyle: {
327
+ type: number[];
328
+ color: string;
329
+ };
330
+ };
331
+ };
332
+ line: {
333
+ symbol: string;
334
+ markPoint: {
335
+ label: {
336
+ show: boolean;
337
+ color: string;
338
+ };
339
+ };
340
+ };
341
+ graph: {
342
+ color: string[];
343
+ };
344
+ geo: {
345
+ itemStyle: {
346
+ borderColor: string;
347
+ areaColor: string;
348
+ };
349
+ };
350
+ };
351
+ };
@@ -0,0 +1,8 @@
1
+ import { ExtractPropTypes, PropType } from "vue";
2
+ export declare const devuiChartProps: {
3
+ option: {
4
+ type: PropType<any>;
5
+ default: {};
6
+ };
7
+ };
8
+ export declare type DevuiChartProps = ExtractPropTypes<typeof devuiChartProps>;
@@ -0,0 +1,16 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ option: {
3
+ type: import("vue").PropType<any>;
4
+ default: {};
5
+ };
6
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "chartReady"[], "chartReady", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
7
+ option: {
8
+ type: import("vue").PropType<any>;
9
+ default: {};
10
+ };
11
+ }>> & {
12
+ onChartReady?: ((...args: any[]) => any) | undefined;
13
+ }, {
14
+ option: any;
15
+ }>;
16
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import type { App } from 'vue';
2
+ import EditorMd from './src/editor-md';
3
+ import MdRender from './src/components/md-render';
4
+ export * from './src/editor-md-types';
5
+ export { EditorMd, MdRender };
6
+ declare const _default: {
7
+ title: string;
8
+ category: string;
9
+ status: string;
10
+ install(app: App): void;
11
+ };
12
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,95 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ content: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ disableRender: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ baseUrl: {
11
+ type: StringConstructor;
12
+ default: null;
13
+ };
14
+ breaks: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ customParse: {
19
+ type: import("vue").PropType<(html: string) => string>;
20
+ default: null;
21
+ };
22
+ renderParse: {
23
+ type: import("vue").PropType<(html: string) => string>;
24
+ default: null;
25
+ };
26
+ mdRules: {
27
+ type: ObjectConstructor;
28
+ default: () => {};
29
+ };
30
+ customRendererRules: {
31
+ type: import("vue").PropType<import("../editor-md-types").ICustomRenderRule[]>;
32
+ default: () => never[];
33
+ };
34
+ customXssRules: {
35
+ type: import("vue").PropType<import("../editor-md-types").ICustomXssRule[]>;
36
+ default: () => never[];
37
+ };
38
+ mdPlugins: {
39
+ type: import("vue").PropType<import("../editor-md-types").MdPlugin[]>;
40
+ default: () => never[];
41
+ };
42
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "mdCheckedEvent" | "mdRenderChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
43
+ content: {
44
+ type: StringConstructor;
45
+ default: string;
46
+ };
47
+ disableRender: {
48
+ type: BooleanConstructor;
49
+ default: boolean;
50
+ };
51
+ baseUrl: {
52
+ type: StringConstructor;
53
+ default: null;
54
+ };
55
+ breaks: {
56
+ type: BooleanConstructor;
57
+ default: boolean;
58
+ };
59
+ customParse: {
60
+ type: import("vue").PropType<(html: string) => string>;
61
+ default: null;
62
+ };
63
+ renderParse: {
64
+ type: import("vue").PropType<(html: string) => string>;
65
+ default: null;
66
+ };
67
+ mdRules: {
68
+ type: ObjectConstructor;
69
+ default: () => {};
70
+ };
71
+ customRendererRules: {
72
+ type: import("vue").PropType<import("../editor-md-types").ICustomRenderRule[]>;
73
+ default: () => never[];
74
+ };
75
+ customXssRules: {
76
+ type: import("vue").PropType<import("../editor-md-types").ICustomXssRule[]>;
77
+ default: () => never[];
78
+ };
79
+ mdPlugins: {
80
+ type: import("vue").PropType<import("../editor-md-types").MdPlugin[]>;
81
+ default: () => never[];
82
+ };
83
+ }>>, {
84
+ content: string;
85
+ baseUrl: string;
86
+ breaks: boolean;
87
+ customParse: (html: string) => string;
88
+ renderParse: (html: string) => string;
89
+ mdRules: Record<string, any>;
90
+ customRendererRules: import("../editor-md-types").ICustomRenderRule[];
91
+ customXssRules: import("../editor-md-types").ICustomXssRule[];
92
+ mdPlugins: import("../editor-md-types").MdPlugin[];
93
+ disableRender: boolean;
94
+ }>;
95
+ export default _default;
@@ -0,0 +1,14 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ config: {
3
+ type: import("vue").PropType<import("../toolbar-config").IToolbarItemConfig>;
4
+ default: () => {};
5
+ };
6
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
7
+ config: {
8
+ type: import("vue").PropType<import("../toolbar-config").IToolbarItemConfig>;
9
+ default: () => {};
10
+ };
11
+ }>>, {
12
+ config: import("../toolbar-config").IToolbarItemConfig;
13
+ }>;
14
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import './toolbar.scss';
2
+ declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
3
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export declare function _enforceMaxLength(cm: any, changes: any): boolean;
2
+ export declare function refreshEditorCursor(): void;
@@ -0,0 +1,26 @@
1
+ import { IWhiteList } from 'xss';
2
+ import type { MdPlugin, ICustomXssRule, ICustomRenderRule } from '../editor-md-types';
3
+ export declare class MDRenderService {
4
+ private xssWhiteList;
5
+ private cssWhiteList;
6
+ private mdt;
7
+ private baseUrl;
8
+ private breaks;
9
+ private renderParse;
10
+ constructor();
11
+ private setDefaultXss;
12
+ setBaseUrl(url: string): void;
13
+ setBreaks(breaks: boolean): void;
14
+ setRenderParse(func: Function): void;
15
+ getXssWhiteList(): IWhiteList;
16
+ setXssWhiteList(list: IWhiteList): void;
17
+ setCustomXssRules(rules: ICustomXssRule[]): void;
18
+ setCustomRendererRules(rules: ICustomRenderRule[]): void;
19
+ setOptions(options?: {}): void;
20
+ setPlugins(plugins: Array<MdPlugin>): void;
21
+ private onIgnoreTagAttr;
22
+ private replaceInternalUrl;
23
+ private handleHeaderId;
24
+ generateHTML(text: string): string;
25
+ setRules(mdRules: Record<string, any>): void;
26
+ }
@@ -0,0 +1,10 @@
1
+ import { SetupContext } from 'vue';
2
+ import { MdRenderProps } from '../editor-md-types';
3
+ import { MDRenderService } from './md-render-service';
4
+ export declare function useEditorMdRender(props: MdRenderProps, ctx: SetupContext): {
5
+ previewRef: import("vue").Ref<any>;
6
+ renderService: MDRenderService;
7
+ onPreviewClick: (e: any) => void;
8
+ setContainerContent: () => void;
9
+ };
10
+ export declare function useMdRenderWatcher(props: MdRenderProps, renderService: MDRenderService, setContainerContent: () => void): void;
@@ -0,0 +1,3 @@
1
+ export declare function useEditorMdTheme(callback: () => void): {
2
+ isDarkMode: import("vue").Ref<boolean>;
3
+ };
@@ -0,0 +1,4 @@
1
+ export declare function useToolbar(): {
2
+ toolbars: Record<string, import("../toolbar-config").IToolbarItemConfig>;
3
+ toolbarConfig: import("vue").Ref<import("../editor-md-types").ToolbarConfigProp>;
4
+ };
@@ -0,0 +1,15 @@
1
+ import { Ref, SetupContext } from 'vue';
2
+ import { EditorMdProps } from '../editor-md-types';
3
+ export declare function useEditorMd(props: EditorMdProps, ctx: SetupContext): {
4
+ editorRef: Ref<any>;
5
+ renderRef: Ref<any>;
6
+ toolbars: Record<string, import("../toolbar-config").IToolbarItemConfig>;
7
+ previewHtmlList: Ref<any[]>;
8
+ getEditorIns: () => any;
9
+ onPaste: (e: ClipboardEvent) => void;
10
+ previewContentChange: (html: string) => void;
11
+ onChecked: (e: string) => void;
12
+ onPreviewScroll: () => void;
13
+ onPreviewMouseout: () => void;
14
+ onPreviewMouseover: () => void;
15
+ };