md-editor-v3 4.13.1 → 4.13.3-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.
- package/lib/cjs/MdEditor.cjs +16 -3
- package/lib/cjs/chunks/index2.cjs +10 -2
- package/lib/es/MdEditor.mjs +16 -3
- package/lib/es/chunks/index2.mjs +10 -2
- package/lib/preview.css +1 -1
- package/lib/style.css +1 -1
- package/lib/types/DropdownToolbar/DropdownToolbar.d.ts +17 -9
- package/lib/types/DropdownToolbar/index.d.ts +112 -126
- package/lib/types/MdCatalog/CatalogLink.d.ts +2 -2
- package/lib/types/MdCatalog/MdCatalog.d.ts +2 -2
- package/lib/types/MdCatalog/index.d.ts +114 -144
- package/lib/types/MdEditor/Editor.d.ts +129 -121
- package/lib/types/MdEditor/components/Checkbox/index.d.ts +2 -2
- package/lib/types/MdEditor/components/Divider/index.d.ts +1 -1
- package/lib/types/MdEditor/components/Dropdown/index.d.ts +13 -7
- package/lib/types/MdEditor/components/Icon/Icon.d.ts +2 -2
- package/lib/types/MdEditor/components/Icon/index.d.ts +4 -2
- package/lib/types/MdEditor/components/Modal/Modal.d.ts +2 -2
- package/lib/types/MdEditor/components/Modal/index.d.ts +133 -163
- package/lib/types/MdEditor/components/Popper/index.d.ts +2 -2
- package/lib/types/MdEditor/index.d.ts +643 -657
- package/lib/types/MdEditor/layouts/Content/ContentPreview.d.ts +31 -31
- package/lib/types/MdEditor/layouts/Content/composition/useHighlight.d.ts +1 -1
- package/lib/types/MdEditor/layouts/Content/composition/useKatex.d.ts +1 -1
- package/lib/types/MdEditor/layouts/Content/composition/useMermaid.d.ts +1 -1
- package/lib/types/MdEditor/layouts/Content/index.d.ts +72 -72
- package/lib/types/MdEditor/layouts/Content/markdownIt/admonition/index.d.ts +2 -0
- package/lib/types/MdEditor/layouts/Content/markdownIt/codetabs/index.d.ts +1 -1
- package/lib/types/MdEditor/layouts/Content/markdownIt/heading/index.d.ts +1 -1
- package/lib/types/MdEditor/layouts/Content/markdownIt/katex/index.d.ts +1 -0
- package/lib/types/MdEditor/layouts/Content/markdownIt/mermaid/index.d.ts +1 -0
- package/lib/types/MdEditor/layouts/Footer/MarkdownTotal.d.ts +2 -2
- package/lib/types/MdEditor/layouts/Footer/ScrollAuto.d.ts +2 -2
- package/lib/types/MdEditor/layouts/Footer/index.d.ts +4 -4
- package/lib/types/MdEditor/layouts/Modals/Clip.d.ts +2 -2
- package/lib/types/MdEditor/layouts/Modals/Link.d.ts +2 -2
- package/lib/types/MdEditor/layouts/Modals/index.d.ts +2 -2
- package/lib/types/MdEditor/layouts/Toolbar/TableShape.d.ts +2 -2
- package/lib/types/MdEditor/layouts/Toolbar/index.d.ts +24 -24
- package/lib/types/MdEditor/props.d.ts +7 -3
- package/lib/types/MdEditor/type.d.ts +3 -3
- package/lib/types/MdEditor/utils/dom.d.ts +1 -1
- package/lib/types/MdEditor/utils/vue-tsx.d.ts +2 -11
- package/lib/types/MdPreview/MdPreview.d.ts +52 -52
- package/lib/types/MdPreview/index.d.ts +310 -340
- package/lib/types/ModalToolbar/ModalToolbar.d.ts +9 -5
- package/lib/types/ModalToolbar/index.d.ts +168 -190
- package/lib/types/NormalToolbar/NormalToolbar.d.ts +9 -5
- package/lib/types/NormalToolbar/index.d.ts +80 -102
- package/lib/umd/index.js +48 -42
- package/package.json +18 -18
|
@@ -5,121 +5,121 @@ import { ExtractPropTypes } from 'vue';
|
|
|
5
5
|
export type ContentPreviewProps = Readonly<LooseRequired<Readonly<ExtractPropTypes<typeof contentPreviewProps>>>>;
|
|
6
6
|
declare const ContentPreview: import('vue').DefineComponent<{
|
|
7
7
|
modelValue: {
|
|
8
|
-
type: import(
|
|
8
|
+
type: import('vue').PropType<string>;
|
|
9
9
|
default: string;
|
|
10
10
|
};
|
|
11
11
|
setting: {
|
|
12
|
-
type: import(
|
|
12
|
+
type: import('vue').PropType<import('../../type').SettingType>;
|
|
13
13
|
default: () => {
|
|
14
14
|
preview: boolean;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
onHtmlChanged: {
|
|
18
|
-
type: import(
|
|
18
|
+
type: import('vue').PropType<(h: string) => void>;
|
|
19
19
|
default: () => void;
|
|
20
20
|
};
|
|
21
21
|
onGetCatalog: {
|
|
22
|
-
type: import(
|
|
22
|
+
type: import('vue').PropType<(list: import('../../type').HeadList[]) => void>;
|
|
23
23
|
default: () => void;
|
|
24
24
|
};
|
|
25
25
|
mdHeadingId: {
|
|
26
|
-
type: import(
|
|
26
|
+
type: import('vue').PropType<import('../../type').MdHeadingId>;
|
|
27
27
|
default: () => string;
|
|
28
28
|
};
|
|
29
29
|
noMermaid: {
|
|
30
|
-
type: import(
|
|
30
|
+
type: import('vue').PropType<boolean>;
|
|
31
31
|
default: boolean;
|
|
32
32
|
};
|
|
33
33
|
sanitize: {
|
|
34
|
-
type: import(
|
|
34
|
+
type: import('vue').PropType<(html: string) => string>;
|
|
35
35
|
default: (html: string) => string;
|
|
36
36
|
};
|
|
37
37
|
noKatex: {
|
|
38
|
-
type: import(
|
|
38
|
+
type: import('vue').PropType<boolean>;
|
|
39
39
|
default: boolean;
|
|
40
40
|
};
|
|
41
41
|
formatCopiedText: {
|
|
42
|
-
type: import(
|
|
42
|
+
type: import('vue').PropType<(text: string) => string>;
|
|
43
43
|
default: (text: string) => string;
|
|
44
44
|
};
|
|
45
45
|
noHighlight: {
|
|
46
|
-
type: import(
|
|
46
|
+
type: import('vue').PropType<boolean>;
|
|
47
47
|
default: boolean;
|
|
48
48
|
};
|
|
49
49
|
previewOnly: {
|
|
50
|
-
type: import(
|
|
50
|
+
type: import('vue').PropType<boolean>;
|
|
51
51
|
default: boolean;
|
|
52
52
|
};
|
|
53
53
|
noImgZoomIn: {
|
|
54
|
-
type: import(
|
|
54
|
+
type: import('vue').PropType<boolean>;
|
|
55
55
|
};
|
|
56
56
|
sanitizeMermaid: {
|
|
57
|
-
type: import(
|
|
57
|
+
type: import('vue').PropType<(h: string) => Promise<string>>;
|
|
58
58
|
};
|
|
59
|
-
}, () => JSX.Element, unknown, {}, {}, import(
|
|
59
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
60
60
|
modelValue: {
|
|
61
|
-
type: import(
|
|
61
|
+
type: import('vue').PropType<string>;
|
|
62
62
|
default: string;
|
|
63
63
|
};
|
|
64
64
|
setting: {
|
|
65
|
-
type: import(
|
|
65
|
+
type: import('vue').PropType<import('../../type').SettingType>;
|
|
66
66
|
default: () => {
|
|
67
67
|
preview: boolean;
|
|
68
68
|
};
|
|
69
69
|
};
|
|
70
70
|
onHtmlChanged: {
|
|
71
|
-
type: import(
|
|
71
|
+
type: import('vue').PropType<(h: string) => void>;
|
|
72
72
|
default: () => void;
|
|
73
73
|
};
|
|
74
74
|
onGetCatalog: {
|
|
75
|
-
type: import(
|
|
75
|
+
type: import('vue').PropType<(list: import('../../type').HeadList[]) => void>;
|
|
76
76
|
default: () => void;
|
|
77
77
|
};
|
|
78
78
|
mdHeadingId: {
|
|
79
|
-
type: import(
|
|
79
|
+
type: import('vue').PropType<import('../../type').MdHeadingId>;
|
|
80
80
|
default: () => string;
|
|
81
81
|
};
|
|
82
82
|
noMermaid: {
|
|
83
|
-
type: import(
|
|
83
|
+
type: import('vue').PropType<boolean>;
|
|
84
84
|
default: boolean;
|
|
85
85
|
};
|
|
86
86
|
sanitize: {
|
|
87
|
-
type: import(
|
|
87
|
+
type: import('vue').PropType<(html: string) => string>;
|
|
88
88
|
default: (html: string) => string;
|
|
89
89
|
};
|
|
90
90
|
noKatex: {
|
|
91
|
-
type: import(
|
|
91
|
+
type: import('vue').PropType<boolean>;
|
|
92
92
|
default: boolean;
|
|
93
93
|
};
|
|
94
94
|
formatCopiedText: {
|
|
95
|
-
type: import(
|
|
95
|
+
type: import('vue').PropType<(text: string) => string>;
|
|
96
96
|
default: (text: string) => string;
|
|
97
97
|
};
|
|
98
98
|
noHighlight: {
|
|
99
|
-
type: import(
|
|
99
|
+
type: import('vue').PropType<boolean>;
|
|
100
100
|
default: boolean;
|
|
101
101
|
};
|
|
102
102
|
previewOnly: {
|
|
103
|
-
type: import(
|
|
103
|
+
type: import('vue').PropType<boolean>;
|
|
104
104
|
default: boolean;
|
|
105
105
|
};
|
|
106
106
|
noImgZoomIn: {
|
|
107
|
-
type: import(
|
|
107
|
+
type: import('vue').PropType<boolean>;
|
|
108
108
|
};
|
|
109
109
|
sanitizeMermaid: {
|
|
110
|
-
type: import(
|
|
110
|
+
type: import('vue').PropType<(h: string) => Promise<string>>;
|
|
111
111
|
};
|
|
112
112
|
}>>, {
|
|
113
113
|
previewOnly: boolean;
|
|
114
114
|
onHtmlChanged: (h: string) => void;
|
|
115
|
-
onGetCatalog: (list: import(
|
|
115
|
+
onGetCatalog: (list: import('../../type').HeadList[]) => void;
|
|
116
116
|
modelValue: string;
|
|
117
|
-
mdHeadingId: import(
|
|
117
|
+
mdHeadingId: import('../../type').MdHeadingId;
|
|
118
118
|
sanitize: (html: string) => string;
|
|
119
119
|
noMermaid: boolean;
|
|
120
120
|
noKatex: boolean;
|
|
121
121
|
formatCopiedText: (text: string) => string;
|
|
122
122
|
noHighlight: boolean;
|
|
123
|
-
setting: import(
|
|
124
|
-
}>;
|
|
123
|
+
setting: import('../../type').SettingType;
|
|
124
|
+
}, {}>;
|
|
125
125
|
export default ContentPreview;
|
|
@@ -5,5 +5,5 @@ import { ContentPreviewProps } from '../ContentPreview';
|
|
|
5
5
|
*
|
|
6
6
|
* @param props 内容组件props
|
|
7
7
|
*/
|
|
8
|
-
declare const useHighlight: (props: ContentPreviewProps) => any
|
|
8
|
+
declare const useHighlight: (props: ContentPreviewProps) => import('vue').ShallowRef<any>;
|
|
9
9
|
export default useHighlight;
|
|
@@ -5,7 +5,7 @@ import { ContentPreviewProps } from '../ContentPreview';
|
|
|
5
5
|
*
|
|
6
6
|
*/
|
|
7
7
|
declare const useMermaid: (props: ContentPreviewProps) => {
|
|
8
|
-
mermaidRef: any
|
|
8
|
+
mermaidRef: import('vue').ShallowRef<any>;
|
|
9
9
|
reRenderRef: import('vue').ShallowRef<number>;
|
|
10
10
|
replaceMermaid: () => void;
|
|
11
11
|
};
|
|
@@ -1,264 +1,264 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{
|
|
2
2
|
updateModelValue: {
|
|
3
|
-
type: import(
|
|
3
|
+
type: import('vue').PropType<(v: string) => void>;
|
|
4
4
|
default: () => void;
|
|
5
5
|
};
|
|
6
6
|
onChange: {
|
|
7
|
-
type: import(
|
|
7
|
+
type: import('vue').PropType<(v: string) => void>;
|
|
8
8
|
default: () => void;
|
|
9
9
|
};
|
|
10
10
|
placeholder: {
|
|
11
|
-
type: import(
|
|
11
|
+
type: import('vue').PropType<string>;
|
|
12
12
|
default: string;
|
|
13
13
|
};
|
|
14
14
|
scrollAuto: {
|
|
15
|
-
type: import(
|
|
15
|
+
type: import('vue').PropType<boolean>;
|
|
16
16
|
};
|
|
17
17
|
autofocus: {
|
|
18
|
-
type: import(
|
|
18
|
+
type: import('vue').PropType<boolean>;
|
|
19
19
|
};
|
|
20
20
|
disabled: {
|
|
21
|
-
type: import(
|
|
21
|
+
type: import('vue').PropType<boolean>;
|
|
22
22
|
};
|
|
23
23
|
readonly: {
|
|
24
|
-
type: import(
|
|
24
|
+
type: import('vue').PropType<boolean>;
|
|
25
25
|
};
|
|
26
26
|
maxlength: {
|
|
27
|
-
type: import(
|
|
27
|
+
type: import('vue').PropType<number>;
|
|
28
28
|
};
|
|
29
29
|
autoDetectCode: {
|
|
30
|
-
type: import(
|
|
30
|
+
type: import('vue').PropType<boolean>;
|
|
31
31
|
};
|
|
32
32
|
onBlur: {
|
|
33
|
-
type: import(
|
|
33
|
+
type: import('vue').PropType<(event: FocusEvent) => void>;
|
|
34
34
|
default: () => void;
|
|
35
35
|
};
|
|
36
36
|
onFocus: {
|
|
37
|
-
type: import(
|
|
37
|
+
type: import('vue').PropType<(event: FocusEvent) => void>;
|
|
38
38
|
default: () => void;
|
|
39
39
|
};
|
|
40
40
|
noPrettier: {
|
|
41
|
-
type: import(
|
|
41
|
+
type: import('vue').PropType<boolean>;
|
|
42
42
|
};
|
|
43
43
|
completions: {
|
|
44
|
-
type: import(
|
|
44
|
+
type: import('vue').PropType<import('@codemirror/autocomplete').CompletionSource[]>;
|
|
45
45
|
};
|
|
46
46
|
catalogVisible: {
|
|
47
|
-
type: import(
|
|
47
|
+
type: import('vue').PropType<boolean>;
|
|
48
48
|
};
|
|
49
49
|
theme: {
|
|
50
|
-
type: import(
|
|
50
|
+
type: import('vue').PropType<import('../../type').Themes>;
|
|
51
51
|
default: string;
|
|
52
52
|
};
|
|
53
53
|
onInput: {
|
|
54
|
-
type: import(
|
|
54
|
+
type: import('vue').PropType<(event: Event) => void>;
|
|
55
55
|
};
|
|
56
56
|
onDrop: {
|
|
57
|
-
type: import(
|
|
57
|
+
type: import('vue').PropType<(event: DragEvent) => void>;
|
|
58
58
|
default: () => void;
|
|
59
59
|
};
|
|
60
60
|
inputBoxWitdh: {
|
|
61
|
-
type: import(
|
|
61
|
+
type: import('vue').PropType<string>;
|
|
62
62
|
};
|
|
63
63
|
onInputBoxWitdhChange: {
|
|
64
|
-
type: import(
|
|
64
|
+
type: import('vue').PropType<(width: string) => void>;
|
|
65
65
|
};
|
|
66
66
|
transformImgUrl: {
|
|
67
|
-
type: import(
|
|
67
|
+
type: import('vue').PropType<(t: string) => string | Promise<string>>;
|
|
68
68
|
default: (t: string) => string;
|
|
69
69
|
};
|
|
70
70
|
modelValue: {
|
|
71
|
-
type: import(
|
|
71
|
+
type: import('vue').PropType<string>;
|
|
72
72
|
default: string;
|
|
73
73
|
};
|
|
74
74
|
setting: {
|
|
75
|
-
type: import(
|
|
75
|
+
type: import('vue').PropType<import('../../type').SettingType>;
|
|
76
76
|
default: () => {
|
|
77
77
|
preview: boolean;
|
|
78
78
|
};
|
|
79
79
|
};
|
|
80
80
|
onHtmlChanged: {
|
|
81
|
-
type: import(
|
|
81
|
+
type: import('vue').PropType<(h: string) => void>;
|
|
82
82
|
default: () => void;
|
|
83
83
|
};
|
|
84
84
|
onGetCatalog: {
|
|
85
|
-
type: import(
|
|
85
|
+
type: import('vue').PropType<(list: import('../../type').HeadList[]) => void>;
|
|
86
86
|
default: () => void;
|
|
87
87
|
};
|
|
88
88
|
mdHeadingId: {
|
|
89
|
-
type: import(
|
|
89
|
+
type: import('vue').PropType<import('../../type').MdHeadingId>;
|
|
90
90
|
default: () => string;
|
|
91
91
|
};
|
|
92
92
|
noMermaid: {
|
|
93
|
-
type: import(
|
|
93
|
+
type: import('vue').PropType<boolean>;
|
|
94
94
|
default: boolean;
|
|
95
95
|
};
|
|
96
96
|
sanitize: {
|
|
97
|
-
type: import(
|
|
97
|
+
type: import('vue').PropType<(html: string) => string>;
|
|
98
98
|
default: (html: string) => string;
|
|
99
99
|
};
|
|
100
100
|
noKatex: {
|
|
101
|
-
type: import(
|
|
101
|
+
type: import('vue').PropType<boolean>;
|
|
102
102
|
default: boolean;
|
|
103
103
|
};
|
|
104
104
|
formatCopiedText: {
|
|
105
|
-
type: import(
|
|
105
|
+
type: import('vue').PropType<(text: string) => string>;
|
|
106
106
|
default: (text: string) => string;
|
|
107
107
|
};
|
|
108
108
|
noHighlight: {
|
|
109
|
-
type: import(
|
|
109
|
+
type: import('vue').PropType<boolean>;
|
|
110
110
|
default: boolean;
|
|
111
111
|
};
|
|
112
112
|
previewOnly: {
|
|
113
|
-
type: import(
|
|
113
|
+
type: import('vue').PropType<boolean>;
|
|
114
114
|
default: boolean;
|
|
115
115
|
};
|
|
116
116
|
noImgZoomIn: {
|
|
117
|
-
type: import(
|
|
117
|
+
type: import('vue').PropType<boolean>;
|
|
118
118
|
};
|
|
119
119
|
sanitizeMermaid: {
|
|
120
|
-
type: import(
|
|
120
|
+
type: import('vue').PropType<(h: string) => Promise<string>>;
|
|
121
121
|
};
|
|
122
|
-
}, () => JSX.Element, unknown, {}, {}, import(
|
|
122
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
123
123
|
updateModelValue: {
|
|
124
|
-
type: import(
|
|
124
|
+
type: import('vue').PropType<(v: string) => void>;
|
|
125
125
|
default: () => void;
|
|
126
126
|
};
|
|
127
127
|
onChange: {
|
|
128
|
-
type: import(
|
|
128
|
+
type: import('vue').PropType<(v: string) => void>;
|
|
129
129
|
default: () => void;
|
|
130
130
|
};
|
|
131
131
|
placeholder: {
|
|
132
|
-
type: import(
|
|
132
|
+
type: import('vue').PropType<string>;
|
|
133
133
|
default: string;
|
|
134
134
|
};
|
|
135
135
|
scrollAuto: {
|
|
136
|
-
type: import(
|
|
136
|
+
type: import('vue').PropType<boolean>;
|
|
137
137
|
};
|
|
138
138
|
autofocus: {
|
|
139
|
-
type: import(
|
|
139
|
+
type: import('vue').PropType<boolean>;
|
|
140
140
|
};
|
|
141
141
|
disabled: {
|
|
142
|
-
type: import(
|
|
142
|
+
type: import('vue').PropType<boolean>;
|
|
143
143
|
};
|
|
144
144
|
readonly: {
|
|
145
|
-
type: import(
|
|
145
|
+
type: import('vue').PropType<boolean>;
|
|
146
146
|
};
|
|
147
147
|
maxlength: {
|
|
148
|
-
type: import(
|
|
148
|
+
type: import('vue').PropType<number>;
|
|
149
149
|
};
|
|
150
150
|
autoDetectCode: {
|
|
151
|
-
type: import(
|
|
151
|
+
type: import('vue').PropType<boolean>;
|
|
152
152
|
};
|
|
153
153
|
onBlur: {
|
|
154
|
-
type: import(
|
|
154
|
+
type: import('vue').PropType<(event: FocusEvent) => void>;
|
|
155
155
|
default: () => void;
|
|
156
156
|
};
|
|
157
157
|
onFocus: {
|
|
158
|
-
type: import(
|
|
158
|
+
type: import('vue').PropType<(event: FocusEvent) => void>;
|
|
159
159
|
default: () => void;
|
|
160
160
|
};
|
|
161
161
|
noPrettier: {
|
|
162
|
-
type: import(
|
|
162
|
+
type: import('vue').PropType<boolean>;
|
|
163
163
|
};
|
|
164
164
|
completions: {
|
|
165
|
-
type: import(
|
|
165
|
+
type: import('vue').PropType<import('@codemirror/autocomplete').CompletionSource[]>;
|
|
166
166
|
};
|
|
167
167
|
catalogVisible: {
|
|
168
|
-
type: import(
|
|
168
|
+
type: import('vue').PropType<boolean>;
|
|
169
169
|
};
|
|
170
170
|
theme: {
|
|
171
|
-
type: import(
|
|
171
|
+
type: import('vue').PropType<import('../../type').Themes>;
|
|
172
172
|
default: string;
|
|
173
173
|
};
|
|
174
174
|
onInput: {
|
|
175
|
-
type: import(
|
|
175
|
+
type: import('vue').PropType<(event: Event) => void>;
|
|
176
176
|
};
|
|
177
177
|
onDrop: {
|
|
178
|
-
type: import(
|
|
178
|
+
type: import('vue').PropType<(event: DragEvent) => void>;
|
|
179
179
|
default: () => void;
|
|
180
180
|
};
|
|
181
181
|
inputBoxWitdh: {
|
|
182
|
-
type: import(
|
|
182
|
+
type: import('vue').PropType<string>;
|
|
183
183
|
};
|
|
184
184
|
onInputBoxWitdhChange: {
|
|
185
|
-
type: import(
|
|
185
|
+
type: import('vue').PropType<(width: string) => void>;
|
|
186
186
|
};
|
|
187
187
|
transformImgUrl: {
|
|
188
|
-
type: import(
|
|
188
|
+
type: import('vue').PropType<(t: string) => string | Promise<string>>;
|
|
189
189
|
default: (t: string) => string;
|
|
190
190
|
};
|
|
191
191
|
modelValue: {
|
|
192
|
-
type: import(
|
|
192
|
+
type: import('vue').PropType<string>;
|
|
193
193
|
default: string;
|
|
194
194
|
};
|
|
195
195
|
setting: {
|
|
196
|
-
type: import(
|
|
196
|
+
type: import('vue').PropType<import('../../type').SettingType>;
|
|
197
197
|
default: () => {
|
|
198
198
|
preview: boolean;
|
|
199
199
|
};
|
|
200
200
|
};
|
|
201
201
|
onHtmlChanged: {
|
|
202
|
-
type: import(
|
|
202
|
+
type: import('vue').PropType<(h: string) => void>;
|
|
203
203
|
default: () => void;
|
|
204
204
|
};
|
|
205
205
|
onGetCatalog: {
|
|
206
|
-
type: import(
|
|
206
|
+
type: import('vue').PropType<(list: import('../../type').HeadList[]) => void>;
|
|
207
207
|
default: () => void;
|
|
208
208
|
};
|
|
209
209
|
mdHeadingId: {
|
|
210
|
-
type: import(
|
|
210
|
+
type: import('vue').PropType<import('../../type').MdHeadingId>;
|
|
211
211
|
default: () => string;
|
|
212
212
|
};
|
|
213
213
|
noMermaid: {
|
|
214
|
-
type: import(
|
|
214
|
+
type: import('vue').PropType<boolean>;
|
|
215
215
|
default: boolean;
|
|
216
216
|
};
|
|
217
217
|
sanitize: {
|
|
218
|
-
type: import(
|
|
218
|
+
type: import('vue').PropType<(html: string) => string>;
|
|
219
219
|
default: (html: string) => string;
|
|
220
220
|
};
|
|
221
221
|
noKatex: {
|
|
222
|
-
type: import(
|
|
222
|
+
type: import('vue').PropType<boolean>;
|
|
223
223
|
default: boolean;
|
|
224
224
|
};
|
|
225
225
|
formatCopiedText: {
|
|
226
|
-
type: import(
|
|
226
|
+
type: import('vue').PropType<(text: string) => string>;
|
|
227
227
|
default: (text: string) => string;
|
|
228
228
|
};
|
|
229
229
|
noHighlight: {
|
|
230
|
-
type: import(
|
|
230
|
+
type: import('vue').PropType<boolean>;
|
|
231
231
|
default: boolean;
|
|
232
232
|
};
|
|
233
233
|
previewOnly: {
|
|
234
|
-
type: import(
|
|
234
|
+
type: import('vue').PropType<boolean>;
|
|
235
235
|
default: boolean;
|
|
236
236
|
};
|
|
237
237
|
noImgZoomIn: {
|
|
238
|
-
type: import(
|
|
238
|
+
type: import('vue').PropType<boolean>;
|
|
239
239
|
};
|
|
240
240
|
sanitizeMermaid: {
|
|
241
|
-
type: import(
|
|
241
|
+
type: import('vue').PropType<(h: string) => Promise<string>>;
|
|
242
242
|
};
|
|
243
243
|
}>>, {
|
|
244
244
|
previewOnly: boolean;
|
|
245
245
|
onChange: (v: string) => void;
|
|
246
246
|
onHtmlChanged: (h: string) => void;
|
|
247
|
-
onGetCatalog: (list: import(
|
|
247
|
+
onGetCatalog: (list: import('../../type').HeadList[]) => void;
|
|
248
248
|
onBlur: (event: FocusEvent) => void;
|
|
249
249
|
onFocus: (event: FocusEvent) => void;
|
|
250
250
|
onDrop: (event: DragEvent) => void;
|
|
251
251
|
placeholder: string;
|
|
252
252
|
transformImgUrl: (t: string) => string | Promise<string>;
|
|
253
253
|
modelValue: string;
|
|
254
|
-
theme: import(
|
|
255
|
-
mdHeadingId: import(
|
|
254
|
+
theme: import('../../type').Themes;
|
|
255
|
+
mdHeadingId: import('../../type').MdHeadingId;
|
|
256
256
|
sanitize: (html: string) => string;
|
|
257
257
|
noMermaid: boolean;
|
|
258
258
|
noKatex: boolean;
|
|
259
259
|
formatCopiedText: (text: string) => string;
|
|
260
260
|
noHighlight: boolean;
|
|
261
|
-
setting: import(
|
|
261
|
+
setting: import('../../type').SettingType;
|
|
262
262
|
updateModelValue: (v: string) => void;
|
|
263
|
-
}>;
|
|
263
|
+
}, {}>;
|
|
264
264
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HeadList, MdHeadingId } from '../../../../type';
|
|
2
2
|
import { Ref } from 'vue';
|
|
3
|
-
import { default as markdownit } from 'markdown-it
|
|
3
|
+
import { default as markdownit } from 'markdown-it';
|
|
4
4
|
|
|
5
5
|
export interface HeadingPluginOps extends markdownit.Options {
|
|
6
6
|
mdHeadingId: MdHeadingId;
|
|
@@ -5,12 +5,12 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
5
5
|
type: PropType<string>;
|
|
6
6
|
default: string;
|
|
7
7
|
};
|
|
8
|
-
}, () => JSX.Element, unknown, {}, {}, import(
|
|
8
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
9
9
|
modelValue: {
|
|
10
10
|
type: PropType<string>;
|
|
11
11
|
default: string;
|
|
12
12
|
};
|
|
13
13
|
}>>, {
|
|
14
14
|
modelValue: string;
|
|
15
|
-
}>;
|
|
15
|
+
}, {}>;
|
|
16
16
|
export default _default;
|
|
@@ -8,7 +8,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
8
8
|
type: PropType<(v: boolean) => void>;
|
|
9
9
|
default: () => void;
|
|
10
10
|
};
|
|
11
|
-
}, () => JSX.Element, unknown, {}, {}, import(
|
|
11
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
12
12
|
scrollAuto: {
|
|
13
13
|
type: PropType<boolean>;
|
|
14
14
|
};
|
|
@@ -18,5 +18,5 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
18
18
|
};
|
|
19
19
|
}>>, {
|
|
20
20
|
onScrollAutoChange: (v: boolean) => void;
|
|
21
|
-
}>;
|
|
21
|
+
}, {}>;
|
|
22
22
|
export default _default;
|
|
@@ -18,11 +18,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
18
18
|
default: () => void;
|
|
19
19
|
};
|
|
20
20
|
defFooters: {
|
|
21
|
-
type: PropType<VNode<import(
|
|
21
|
+
type: PropType<VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
22
22
|
[key: string]: any;
|
|
23
23
|
}>>;
|
|
24
24
|
};
|
|
25
|
-
}, () => JSX.Element, unknown, {}, {}, import(
|
|
25
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
26
26
|
modelValue: {
|
|
27
27
|
type: PropType<string>;
|
|
28
28
|
default: string;
|
|
@@ -39,7 +39,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
39
39
|
default: () => void;
|
|
40
40
|
};
|
|
41
41
|
defFooters: {
|
|
42
|
-
type: PropType<VNode<import(
|
|
42
|
+
type: PropType<VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
43
43
|
[key: string]: any;
|
|
44
44
|
}>>;
|
|
45
45
|
};
|
|
@@ -47,5 +47,5 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
47
47
|
footers: Footers[];
|
|
48
48
|
modelValue: string;
|
|
49
49
|
onScrollAutoChange: (v: boolean) => void;
|
|
50
|
-
}>;
|
|
50
|
+
}, {}>;
|
|
51
51
|
export default _default;
|
|
@@ -13,7 +13,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
13
13
|
type: PropType<(data?: any) => void>;
|
|
14
14
|
default: () => void;
|
|
15
15
|
};
|
|
16
|
-
}, () => JSX.Element, unknown, {}, {}, import(
|
|
16
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
17
17
|
visible: {
|
|
18
18
|
type: PropType<boolean>;
|
|
19
19
|
default: boolean;
|
|
@@ -30,5 +30,5 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
30
30
|
visible: boolean;
|
|
31
31
|
onCancel: () => void;
|
|
32
32
|
onOk: (data?: any) => void;
|
|
33
|
-
}>;
|
|
33
|
+
}, {}>;
|
|
34
34
|
export default _default;
|