md-editor-v3 6.0.0 → 6.1.0-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 +4 -4
- package/lib/cjs/ModalToolbar.cjs +1 -1
- package/lib/cjs/NormalToolbar.cjs +1 -1
- package/lib/cjs/chunks/dom.cjs +1 -1
- package/lib/cjs/chunks/index.cjs +1 -1
- package/lib/cjs/chunks/index3.cjs +49 -49
- package/lib/es/MdEditor.mjs +446 -426
- package/lib/es/ModalToolbar.mjs +6 -5
- package/lib/es/NormalToolbar.mjs +2 -1
- package/lib/es/chunks/dom.mjs +132 -92
- package/lib/es/chunks/index.mjs +10 -9
- package/lib/es/chunks/index3.mjs +624 -626
- package/lib/preview.css +1 -1
- package/lib/style.css +1 -1
- package/lib/types/MdEditor/composition.d.ts +3 -3
- package/lib/types/MdEditor/layouts/Content/ContentPreview.d.ts +0 -13
- package/lib/types/MdEditor/layouts/Content/index.d.ts +0 -3
- package/lib/types/MdEditor/layouts/Content/props.d.ts +1 -13
- package/lib/types/MdEditor/type.d.ts +1 -0
- package/lib/types/MdEditor/utils/dom.d.ts +6 -0
- package/package.json +2 -2
|
@@ -11,12 +11,6 @@ declare const ContentPreview: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
11
11
|
type: import("vue").PropType<(v: string) => void>;
|
|
12
12
|
default: () => void;
|
|
13
13
|
};
|
|
14
|
-
setting: {
|
|
15
|
-
type: import("vue").PropType<import("../../type").SettingType>;
|
|
16
|
-
default: () => {
|
|
17
|
-
preview: boolean;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
14
|
onHtmlChanged: {
|
|
21
15
|
type: import("vue").PropType<(h: string) => void>;
|
|
22
16
|
default: () => void;
|
|
@@ -80,12 +74,6 @@ declare const ContentPreview: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
80
74
|
type: import("vue").PropType<(v: string) => void>;
|
|
81
75
|
default: () => void;
|
|
82
76
|
};
|
|
83
|
-
setting: {
|
|
84
|
-
type: import("vue").PropType<import("../../type").SettingType>;
|
|
85
|
-
default: () => {
|
|
86
|
-
preview: boolean;
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
77
|
onHtmlChanged: {
|
|
90
78
|
type: import("vue").PropType<(h: string) => void>;
|
|
91
79
|
default: () => void;
|
|
@@ -152,6 +140,5 @@ declare const ContentPreview: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
152
140
|
noKatex: boolean;
|
|
153
141
|
formatCopiedText: (text: string) => string;
|
|
154
142
|
noHighlight: boolean;
|
|
155
|
-
setting: import("../../type").SettingType;
|
|
156
143
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
157
144
|
export default ContentPreview;
|
|
@@ -15,7 +15,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
15
|
readonly noKatex: boolean;
|
|
16
16
|
readonly formatCopiedText: (text: string) => string;
|
|
17
17
|
readonly noHighlight: boolean;
|
|
18
|
-
readonly setting: import("../../type").SettingType;
|
|
19
18
|
readonly updateModelValue: (v: string) => void;
|
|
20
19
|
readonly onInput: ((event: Event) => void) | undefined;
|
|
21
20
|
readonly oninputBoxWidthChange: ((width: string) => void) | undefined;
|
|
@@ -51,7 +50,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
51
50
|
readonly noKatex: boolean;
|
|
52
51
|
readonly formatCopiedText: (text: string) => string;
|
|
53
52
|
readonly noHighlight: boolean;
|
|
54
|
-
readonly setting: import("../../type").SettingType;
|
|
55
53
|
readonly updateModelValue: (v: string) => void;
|
|
56
54
|
readonly onInput: ((event: Event) => void) | undefined;
|
|
57
55
|
readonly oninputBoxWidthChange: ((width: string) => void) | undefined;
|
|
@@ -87,7 +85,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
87
85
|
noKatex: boolean;
|
|
88
86
|
formatCopiedText: (text: string) => string;
|
|
89
87
|
noHighlight: boolean;
|
|
90
|
-
setting: import("../../type").SettingType;
|
|
91
88
|
updateModelValue: (v: string) => void;
|
|
92
89
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
93
90
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CompletionSource } from '@codemirror/autocomplete';
|
|
2
2
|
import { LooseRequired } from '@vue/shared';
|
|
3
3
|
import { ExtractPropTypes, PropType } from 'vue';
|
|
4
|
-
import { HeadList,
|
|
4
|
+
import { HeadList, MdHeadingId } from '../../type';
|
|
5
5
|
export declare const contentPreviewProps: {
|
|
6
6
|
modelValue: {
|
|
7
7
|
type: PropType<string>;
|
|
@@ -11,12 +11,6 @@ export declare const contentPreviewProps: {
|
|
|
11
11
|
type: PropType<(v: string) => void>;
|
|
12
12
|
default: () => void;
|
|
13
13
|
};
|
|
14
|
-
setting: {
|
|
15
|
-
type: PropType<SettingType>;
|
|
16
|
-
default: () => {
|
|
17
|
-
preview: boolean;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
14
|
onHtmlChanged: {
|
|
21
15
|
type: PropType<(h: string) => void>;
|
|
22
16
|
default: () => void;
|
|
@@ -144,12 +138,6 @@ export declare const contentProps: {
|
|
|
144
138
|
type: PropType<(v: string) => void>;
|
|
145
139
|
default: () => void;
|
|
146
140
|
};
|
|
147
|
-
setting: {
|
|
148
|
-
type: PropType<SettingType>;
|
|
149
|
-
default: () => {
|
|
150
|
-
preview: boolean;
|
|
151
|
-
};
|
|
152
|
-
};
|
|
153
141
|
onHtmlChanged: {
|
|
154
142
|
type: PropType<(h: string) => void>;
|
|
155
143
|
default: () => void;
|
|
@@ -29,6 +29,12 @@ export declare const updateHandler: <K extends keyof HTMLElementTagNameMap>(tagN
|
|
|
29
29
|
* @returns
|
|
30
30
|
*/
|
|
31
31
|
export declare const createHTMLElement: <K extends keyof HTMLElementTagNameMap>(tagName: K, attributes: Partial<HTMLElementTagNameMap[K]>) => HTMLElementTagNameMap[K];
|
|
32
|
+
/**
|
|
33
|
+
* mermaid复制代码事件绑定
|
|
34
|
+
*/
|
|
35
|
+
export declare const copyMermaid: (containers: NodeListOf<HTMLElement> | undefined, options: {
|
|
36
|
+
customIcon: CustomIcon;
|
|
37
|
+
}) => () => void;
|
|
32
38
|
/**
|
|
33
39
|
* 缩放、拖拽mermaid模块
|
|
34
40
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "md-editor-v3",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.0-0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@typescript-eslint/eslint-plugin": "^8.43.0",
|
|
75
75
|
"@typescript-eslint/parser": "^8.43.0",
|
|
76
76
|
"@typescript-eslint/utils": "^8.43.0",
|
|
77
|
-
"@vavt/markdown-theme": "^4.5.
|
|
77
|
+
"@vavt/markdown-theme": "^4.5.3",
|
|
78
78
|
"@vavt/vite-plugin-import-markdown": "^1.0.0",
|
|
79
79
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
80
80
|
"@vitejs/plugin-vue-jsx": "^5.1.1",
|