md-editor-v3 4.12.2 → 4.12.4
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 +7 -9
- package/lib/es/MdEditor.mjs +7 -9
- package/lib/types/DropdownToolbar/DropdownToolbar.d.ts +3 -2
- package/lib/types/DropdownToolbar/index.d.ts +17 -16
- package/lib/types/MdCatalog/CatalogLink.d.ts +5 -4
- package/lib/types/MdCatalog/MdCatalog.d.ts +3 -2
- package/lib/types/MdCatalog/index.d.ts +19 -18
- package/lib/types/MdEditor/Editor.d.ts +36 -36
- package/lib/types/MdEditor/components/Checkbox/index.d.ts +2 -1
- package/lib/types/MdEditor/components/Divider/index.d.ts +1 -1
- package/lib/types/MdEditor/components/Dropdown/index.d.ts +2 -1
- package/lib/types/MdEditor/components/Icon/Icon.d.ts +2 -1
- package/lib/types/MdEditor/components/Icon/Str.d.ts +1 -0
- package/lib/types/MdEditor/components/Icon/index.d.ts +3 -2
- package/lib/types/MdEditor/components/Modal/Modal.d.ts +2 -1
- package/lib/types/MdEditor/components/Modal/index.d.ts +18 -17
- package/lib/types/MdEditor/components/Popper/index.d.ts +2 -1
- package/lib/types/MdEditor/composition.d.ts +4 -4
- package/lib/types/MdEditor/config.d.ts +1 -0
- package/lib/types/MdEditor/index.d.ts +24 -23
- package/lib/types/MdEditor/layouts/Content/ContentPreview.d.ts +13 -12
- package/lib/types/MdEditor/layouts/Content/codemirror/autocompletion.d.ts +2 -1
- package/lib/types/MdEditor/layouts/Content/codemirror/commands.d.ts +2 -1
- package/lib/types/MdEditor/layouts/Content/codemirror/index.d.ts +3 -2
- package/lib/types/MdEditor/layouts/Content/codemirror/themeLight.d.ts +2 -1
- package/lib/types/MdEditor/layouts/Content/codemirror/themeOneDark.d.ts +2 -4
- package/lib/types/MdEditor/layouts/Content/composition/index.d.ts +7 -6
- package/lib/types/MdEditor/layouts/Content/composition/useAttach.d.ts +2 -1
- package/lib/types/MdEditor/layouts/Content/composition/useAutoScroll.d.ts +3 -2
- package/lib/types/MdEditor/layouts/Content/composition/useCodeMirror.d.ts +4 -3
- package/lib/types/MdEditor/layouts/Content/composition/useCopyCode.d.ts +2 -1
- package/lib/types/MdEditor/layouts/Content/composition/useHighlight.d.ts +1 -0
- package/lib/types/MdEditor/layouts/Content/composition/useKatex.d.ts +1 -0
- package/lib/types/MdEditor/layouts/Content/composition/useMarkdownIt.d.ts +3 -2
- package/lib/types/MdEditor/layouts/Content/composition/useMermaid.d.ts +2 -1
- package/lib/types/MdEditor/layouts/Content/composition/usePasteUpload.d.ts +1 -0
- package/lib/types/MdEditor/layouts/Content/composition/useResize.d.ts +2 -1
- package/lib/types/MdEditor/layouts/Content/composition/userZoom.d.ts +2 -1
- package/lib/types/MdEditor/layouts/Content/index.d.ts +13 -13
- package/lib/types/MdEditor/layouts/Content/markdownIt/codetabs/index.d.ts +2 -9
- package/lib/types/MdEditor/layouts/Content/markdownIt/heading/index.d.ts +3 -2
- package/lib/types/MdEditor/layouts/Content/markdownIt/katex/index.d.ts +1 -5
- package/lib/types/MdEditor/layouts/Content/markdownIt/mermaid/index.d.ts +2 -1
- package/lib/types/MdEditor/layouts/Content/props.d.ts +4 -3
- package/lib/types/MdEditor/layouts/Content/type.d.ts +1 -0
- package/lib/types/MdEditor/layouts/Footer/MarkdownTotal.d.ts +2 -1
- package/lib/types/MdEditor/layouts/Footer/ScrollAuto.d.ts +2 -1
- package/lib/types/MdEditor/layouts/Footer/index.d.ts +3 -2
- package/lib/types/MdEditor/layouts/Modals/Clip.d.ts +2 -1
- package/lib/types/MdEditor/layouts/Modals/Link.d.ts +2 -1
- package/lib/types/MdEditor/layouts/Modals/index.d.ts +2 -1
- package/lib/types/MdEditor/layouts/Toolbar/TableShape.d.ts +2 -1
- package/lib/types/MdEditor/layouts/Toolbar/composition.d.ts +1 -0
- package/lib/types/MdEditor/layouts/Toolbar/index.d.ts +9 -8
- package/lib/types/MdEditor/layouts/Toolbar/props.d.ts +4 -3
- package/lib/types/MdEditor/props.d.ts +3 -2
- package/lib/types/MdEditor/type.d.ts +7 -6
- package/lib/types/MdEditor/utils/content-help.d.ts +2 -1
- package/lib/types/MdEditor/utils/scroll-auto.d.ts +2 -1
- package/lib/types/MdEditor/utils/vue-tsx.d.ts +2 -1
- package/lib/types/MdPreview/MdPreview.d.ts +17 -17
- package/lib/types/MdPreview/composition/useExpose.d.ts +2 -1
- package/lib/types/MdPreview/index.d.ts +21 -20
- package/lib/types/ModalToolbar/ModalToolbar.d.ts +3 -2
- package/lib/types/ModalToolbar/index.d.ts +17 -16
- package/lib/types/NormalToolbar/NormalToolbar.d.ts +3 -2
- package/lib/types/NormalToolbar/index.d.ts +17 -16
- package/lib/types/config.d.ts +2 -2
- package/lib/umd/index.js +36 -36
- package/package.json +2 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import markdownit from 'markdown-it/lib';
|
|
2
|
-
import { Ref } from 'vue';
|
|
3
1
|
import { HeadList, MdHeadingId } from '../../../../type';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
import { default as markdownit } from 'markdown-it/lib';
|
|
4
|
+
|
|
4
5
|
export interface HeadingPluginOps extends markdownit.Options {
|
|
5
6
|
mdHeadingId: MdHeadingId;
|
|
6
7
|
headsRef: Ref<HeadList[]>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
-
import { CompletionSource } from '@codemirror/autocomplete';
|
|
3
|
-
import { LooseRequired } from '@vue/shared';
|
|
4
1
|
import { HeadList, SettingType, MdHeadingId, Themes } from '../../type';
|
|
2
|
+
import { LooseRequired } from '@vue/shared';
|
|
3
|
+
import { CompletionSource } from '@codemirror/autocomplete';
|
|
4
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
5
|
+
|
|
5
6
|
export declare const contentPreviewProps: {
|
|
6
7
|
modelValue: {
|
|
7
8
|
type: PropType<string>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { PropType, VNode, ExtractPropTypes } from 'vue';
|
|
2
1
|
import { Footers } from '../../type';
|
|
3
|
-
|
|
2
|
+
import { PropType, VNode, ExtractPropTypes } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare const _default: import('vue').DefineComponent<{
|
|
4
5
|
modelValue: {
|
|
5
6
|
type: PropType<string>;
|
|
6
7
|
default: string;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { PropType, ExtractPropTypes } from 'vue';
|
|
2
|
+
|
|
2
3
|
interface HoverData {
|
|
3
4
|
x: number;
|
|
4
5
|
y: number;
|
|
5
6
|
}
|
|
6
|
-
declare const TableShape: import(
|
|
7
|
+
declare const TableShape: import('vue').DefineComponent<{
|
|
7
8
|
tableShape: {
|
|
8
9
|
type: PropType<number[]>;
|
|
9
10
|
default: () => number[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { VNode } from 'vue';
|
|
2
1
|
import { ToolbarNames } from '../../type';
|
|
3
|
-
|
|
2
|
+
import { VNode } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare const _default: import('vue').DefineComponent<{
|
|
4
5
|
noPrettier: {
|
|
5
6
|
type: import("vue").PropType<boolean>;
|
|
6
7
|
};
|
|
@@ -13,7 +14,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
14
|
default: () => never[];
|
|
14
15
|
};
|
|
15
16
|
setting: {
|
|
16
|
-
type: import("vue").PropType<import(
|
|
17
|
+
type: import("vue").PropType<import("~/type").SettingType>;
|
|
17
18
|
default: () => {};
|
|
18
19
|
};
|
|
19
20
|
screenfull: {
|
|
@@ -25,7 +26,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
26
|
default: string;
|
|
26
27
|
};
|
|
27
28
|
updateSetting: {
|
|
28
|
-
type: import("vue").PropType<import(
|
|
29
|
+
type: import("vue").PropType<import("~/type").UpdateSetting>;
|
|
29
30
|
default: () => void;
|
|
30
31
|
};
|
|
31
32
|
tableShape: {
|
|
@@ -56,7 +57,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
56
57
|
default: () => never[];
|
|
57
58
|
};
|
|
58
59
|
setting: {
|
|
59
|
-
type: import("vue").PropType<import(
|
|
60
|
+
type: import("vue").PropType<import("~/type").SettingType>;
|
|
60
61
|
default: () => {};
|
|
61
62
|
};
|
|
62
63
|
screenfull: {
|
|
@@ -68,7 +69,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
68
69
|
default: string;
|
|
69
70
|
};
|
|
70
71
|
updateSetting: {
|
|
71
|
-
type: import("vue").PropType<import(
|
|
72
|
+
type: import("vue").PropType<import("~/type").UpdateSetting>;
|
|
72
73
|
default: () => void;
|
|
73
74
|
};
|
|
74
75
|
tableShape: {
|
|
@@ -90,9 +91,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
90
91
|
toolbars: ToolbarNames[];
|
|
91
92
|
toolbarsExclude: ToolbarNames[];
|
|
92
93
|
tableShape: number[];
|
|
93
|
-
setting: import(
|
|
94
|
+
setting: import("~/type").SettingType;
|
|
94
95
|
screenfull: Record<string, any>;
|
|
95
96
|
screenfullJs: string;
|
|
96
|
-
updateSetting: import(
|
|
97
|
+
updateSetting: import("~/type").UpdateSetting;
|
|
97
98
|
}>;
|
|
98
99
|
export default _default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { PropType, VNode, ExtractPropTypes } from 'vue';
|
|
2
|
-
import { LooseRequired } from '@vue/shared';
|
|
3
1
|
import { ToolbarNames, SettingType, UpdateSetting } from '../../type';
|
|
2
|
+
import { LooseRequired } from '@vue/shared';
|
|
3
|
+
import { PropType, VNode, ExtractPropTypes } from 'vue';
|
|
4
|
+
|
|
4
5
|
export declare const toolbarProps: {
|
|
5
6
|
noPrettier: {
|
|
6
7
|
type: PropType<boolean>;
|
|
@@ -34,7 +35,7 @@ export declare const toolbarProps: {
|
|
|
34
35
|
default: () => number[];
|
|
35
36
|
};
|
|
36
37
|
defToolbars: {
|
|
37
|
-
type: PropType<VNode<import(
|
|
38
|
+
type: PropType<VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
38
39
|
[key: string]: any;
|
|
39
40
|
}>>;
|
|
40
41
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { PropType, CSSProperties } from 'vue';
|
|
2
|
-
import { CompletionSource } from '@codemirror/autocomplete';
|
|
3
1
|
import { ToolbarNames, MdHeadingId, Themes, Footers, ChangeEvent, SaveEvent, UploadImgEvent, HtmlChangedEvent, GetCatalogEvent, ErrorEvent, EditorEmits, CustomIcon } from './type';
|
|
2
|
+
import { CompletionSource } from '@codemirror/autocomplete';
|
|
3
|
+
import { PropType, CSSProperties } from 'vue';
|
|
4
|
+
|
|
4
5
|
export declare const mdHeadingId: MdHeadingId;
|
|
5
6
|
export declare const mdPreviewProps: {
|
|
6
7
|
/**
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { LooseRequired } from '@vue/shared';
|
|
2
|
-
import markdownit from 'markdown-it/lib';
|
|
3
|
-
import { Component, ExtractPropTypes, SetupContext } from 'vue';
|
|
4
|
-
import { Extension } from '@codemirror/state';
|
|
5
|
-
import { KeyBinding, EditorView } from '@codemirror/view';
|
|
6
|
-
import { editorProps, mdPreviewProps } from './props';
|
|
7
1
|
import { IconName } from './components/Icon/Icon';
|
|
2
|
+
import { editorProps, mdPreviewProps } from './props';
|
|
3
|
+
import { KeyBinding, EditorView } from '@codemirror/view';
|
|
4
|
+
import { Extension } from '@codemirror/state';
|
|
5
|
+
import { Component, ExtractPropTypes, SetupContext } from 'vue';
|
|
6
|
+
import { default as markdownit } from 'markdown-it/lib';
|
|
7
|
+
import { LooseRequired } from '@vue/shared';
|
|
8
|
+
|
|
8
9
|
declare global {
|
|
9
10
|
interface Window {
|
|
10
11
|
hljs: any;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import CodeMirrorUt from '../layouts/Content/codemirror';
|
|
1
|
+
import { default as CodeMirrorUt } from '../layouts/Content/codemirror';
|
|
2
|
+
|
|
2
3
|
export type ToolDirective = 'bold' | 'underline' | 'italic' | 'strikeThrough' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'quote' | 'unorderedList' | 'orderedList' | 'task' | 'codeRow' | 'code' | 'link' | 'image' | 'table' | 'sub' | 'sup' | 'prettier' | 'flow' | 'sequence' | 'gantt' | 'class' | 'state' | 'pie' | 'relationship' | 'journey' | 'katexInline' | 'katexBlock' | 'universal';
|
|
3
4
|
/**
|
|
4
5
|
*
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ComponentPublicInstance, SetupContext } from 'vue';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
* 获取指定插槽内容
|
|
4
5
|
* 方法设定:vue组件中v-slot优先级高于props
|
|
@@ -14,7 +15,7 @@ export declare const getSlot: ({ instance, ctx, props }: {
|
|
|
14
15
|
[x: string]: unknown;
|
|
15
16
|
};
|
|
16
17
|
slots: Readonly<{
|
|
17
|
-
[name: string]: import(
|
|
18
|
+
[name: string]: import('vue').Slot | undefined;
|
|
18
19
|
}>;
|
|
19
20
|
emit: (event: any, ...args: any[]) => void;
|
|
20
21
|
expose: (exposed?: Record<string, any> | undefined) => void;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
declare const MdPreview: import(
|
|
1
|
+
declare const MdPreview: import('vue').DefineComponent<{
|
|
2
2
|
modelValue: {
|
|
3
3
|
type: import("vue").PropType<string>;
|
|
4
4
|
default: string;
|
|
5
5
|
};
|
|
6
6
|
theme: {
|
|
7
|
-
type: import("vue").PropType<import(
|
|
7
|
+
type: import("vue").PropType<import("~/type").Themes>;
|
|
8
8
|
default: string;
|
|
9
9
|
};
|
|
10
10
|
class: {
|
|
@@ -16,10 +16,10 @@ declare const MdPreview: import("vue").DefineComponent<{
|
|
|
16
16
|
default: string;
|
|
17
17
|
};
|
|
18
18
|
onHtmlChanged: {
|
|
19
|
-
type: import("vue").PropType<import(
|
|
19
|
+
type: import("vue").PropType<import("~/type").HtmlChangedEvent>;
|
|
20
20
|
};
|
|
21
21
|
onGetCatalog: {
|
|
22
|
-
type: import("vue").PropType<import(
|
|
22
|
+
type: import("vue").PropType<import("~/type").GetCatalogEvent>;
|
|
23
23
|
};
|
|
24
24
|
editorId: {
|
|
25
25
|
type: import("vue").PropType<string>;
|
|
@@ -38,8 +38,8 @@ declare const MdPreview: import("vue").DefineComponent<{
|
|
|
38
38
|
default: () => {};
|
|
39
39
|
};
|
|
40
40
|
mdHeadingId: {
|
|
41
|
-
type: import("vue").PropType<import(
|
|
42
|
-
default: import(
|
|
41
|
+
type: import("vue").PropType<import("~/type").MdHeadingId>;
|
|
42
|
+
default: import("~/type").MdHeadingId;
|
|
43
43
|
};
|
|
44
44
|
sanitize: {
|
|
45
45
|
type: import("vue").PropType<(html: string) => string>;
|
|
@@ -81,20 +81,20 @@ declare const MdPreview: import("vue").DefineComponent<{
|
|
|
81
81
|
default: boolean;
|
|
82
82
|
};
|
|
83
83
|
customIcon: {
|
|
84
|
-
type: import("vue").PropType<import(
|
|
84
|
+
type: import("vue").PropType<import("~/type").CustomIcon>;
|
|
85
85
|
default: {};
|
|
86
86
|
};
|
|
87
87
|
sanitizeMermaid: {
|
|
88
88
|
type: import("vue").PropType<(h: string) => Promise<string>>;
|
|
89
89
|
default: (h: string) => Promise<string>;
|
|
90
90
|
};
|
|
91
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import(
|
|
91
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("~/type").EditorEmits, "onChange" | "onSave" | "onUploadImg" | "onHtmlChanged" | "onGetCatalog" | "onError" | "update:modelValue" | "onBlur" | "onFocus" | "onInput" | "onDrop" | "onInputBoxWitdhChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
92
92
|
modelValue: {
|
|
93
93
|
type: import("vue").PropType<string>;
|
|
94
94
|
default: string;
|
|
95
95
|
};
|
|
96
96
|
theme: {
|
|
97
|
-
type: import("vue").PropType<import(
|
|
97
|
+
type: import("vue").PropType<import("~/type").Themes>;
|
|
98
98
|
default: string;
|
|
99
99
|
};
|
|
100
100
|
class: {
|
|
@@ -106,10 +106,10 @@ declare const MdPreview: import("vue").DefineComponent<{
|
|
|
106
106
|
default: string;
|
|
107
107
|
};
|
|
108
108
|
onHtmlChanged: {
|
|
109
|
-
type: import("vue").PropType<import(
|
|
109
|
+
type: import("vue").PropType<import("~/type").HtmlChangedEvent>;
|
|
110
110
|
};
|
|
111
111
|
onGetCatalog: {
|
|
112
|
-
type: import("vue").PropType<import(
|
|
112
|
+
type: import("vue").PropType<import("~/type").GetCatalogEvent>;
|
|
113
113
|
};
|
|
114
114
|
editorId: {
|
|
115
115
|
type: import("vue").PropType<string>;
|
|
@@ -128,8 +128,8 @@ declare const MdPreview: import("vue").DefineComponent<{
|
|
|
128
128
|
default: () => {};
|
|
129
129
|
};
|
|
130
130
|
mdHeadingId: {
|
|
131
|
-
type: import("vue").PropType<import(
|
|
132
|
-
default: import(
|
|
131
|
+
type: import("vue").PropType<import("~/type").MdHeadingId>;
|
|
132
|
+
default: import("~/type").MdHeadingId;
|
|
133
133
|
};
|
|
134
134
|
sanitize: {
|
|
135
135
|
type: import("vue").PropType<(html: string) => string>;
|
|
@@ -171,7 +171,7 @@ declare const MdPreview: import("vue").DefineComponent<{
|
|
|
171
171
|
default: boolean;
|
|
172
172
|
};
|
|
173
173
|
customIcon: {
|
|
174
|
-
type: import("vue").PropType<import(
|
|
174
|
+
type: import("vue").PropType<import("~/type").CustomIcon>;
|
|
175
175
|
default: {};
|
|
176
176
|
};
|
|
177
177
|
sanitizeMermaid: {
|
|
@@ -195,12 +195,12 @@ declare const MdPreview: import("vue").DefineComponent<{
|
|
|
195
195
|
class: string;
|
|
196
196
|
style: string | import("vue").CSSProperties;
|
|
197
197
|
modelValue: string;
|
|
198
|
-
theme: import(
|
|
198
|
+
theme: import("~/type").Themes;
|
|
199
199
|
language: string;
|
|
200
200
|
editorId: string;
|
|
201
201
|
showCodeRowNumber: boolean;
|
|
202
202
|
previewTheme: string;
|
|
203
|
-
mdHeadingId: import(
|
|
203
|
+
mdHeadingId: import("~/type").MdHeadingId;
|
|
204
204
|
sanitize: (html: string) => string;
|
|
205
205
|
noMermaid: boolean;
|
|
206
206
|
noKatex: boolean;
|
|
@@ -210,7 +210,7 @@ declare const MdPreview: import("vue").DefineComponent<{
|
|
|
210
210
|
codeStyleReverseList: string[];
|
|
211
211
|
noHighlight: boolean;
|
|
212
212
|
noImgZoomIn: boolean;
|
|
213
|
-
customIcon: import(
|
|
213
|
+
customIcon: import("~/type").CustomIcon;
|
|
214
214
|
sanitizeMermaid: (h: string) => Promise<string>;
|
|
215
215
|
}>;
|
|
216
216
|
export default MdPreview;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
|
+
|
|
2
3
|
declare const _default: {
|
|
3
4
|
new (...args: any[]): {
|
|
4
|
-
$: import(
|
|
5
|
+
$: import('vue').ComponentInternalInstance;
|
|
5
6
|
$data: {};
|
|
6
7
|
$props: Partial<{
|
|
7
8
|
class: string;
|
|
8
|
-
style: string | import(
|
|
9
|
+
style: string | import('vue').CSSProperties;
|
|
9
10
|
modelValue: string;
|
|
10
|
-
theme: import(
|
|
11
|
+
theme: import('..').Themes;
|
|
11
12
|
language: string;
|
|
12
13
|
editorId: string;
|
|
13
14
|
showCodeRowNumber: boolean;
|
|
14
15
|
previewTheme: string;
|
|
15
|
-
mdHeadingId: import(
|
|
16
|
+
mdHeadingId: import('..').MdHeadingId;
|
|
16
17
|
sanitize: (html: string) => string;
|
|
17
18
|
noMermaid: boolean;
|
|
18
19
|
noKatex: boolean;
|
|
@@ -22,9 +23,9 @@ declare const _default: {
|
|
|
22
23
|
codeStyleReverseList: string[];
|
|
23
24
|
noHighlight: boolean;
|
|
24
25
|
noImgZoomIn: boolean;
|
|
25
|
-
customIcon: import(
|
|
26
|
+
customIcon: import('..').CustomIcon;
|
|
26
27
|
sanitizeMermaid: (h: string) => Promise<string>;
|
|
27
|
-
}> & Omit<Readonly<import(
|
|
28
|
+
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
28
29
|
modelValue: {
|
|
29
30
|
type: import("vue").PropType<string>;
|
|
30
31
|
default: string;
|
|
@@ -127,7 +128,7 @@ declare const _default: {
|
|
|
127
128
|
onOnInput?: ((...args: any[]) => any) | undefined;
|
|
128
129
|
onOnDrop?: ((...args: any[]) => any) | undefined;
|
|
129
130
|
onOnInputBoxWitdhChange?: ((...args: any[]) => any) | undefined;
|
|
130
|
-
} & import(
|
|
131
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "class" | "style" | "modelValue" | "theme" | "language" | "editorId" | "showCodeRowNumber" | "previewTheme" | "mdHeadingId" | "sanitize" | "noMermaid" | "noKatex" | "codeTheme" | "formatCopiedText" | "codeStyleReverse" | "codeStyleReverseList" | "noHighlight" | "noImgZoomIn" | "customIcon" | "sanitizeMermaid">;
|
|
131
132
|
$attrs: {
|
|
132
133
|
[x: string]: unknown;
|
|
133
134
|
};
|
|
@@ -135,13 +136,13 @@ declare const _default: {
|
|
|
135
136
|
[x: string]: unknown;
|
|
136
137
|
};
|
|
137
138
|
$slots: Readonly<{
|
|
138
|
-
[name: string]: import(
|
|
139
|
+
[name: string]: import('vue').Slot | undefined;
|
|
139
140
|
}>;
|
|
140
|
-
$root: import(
|
|
141
|
-
$parent: import(
|
|
141
|
+
$root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
142
|
+
$parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
142
143
|
$emit: (event: "onChange" | "onSave" | "onUploadImg" | "onHtmlChanged" | "onGetCatalog" | "onError" | "update:modelValue" | "onBlur" | "onFocus" | "onInput" | "onDrop" | "onInputBoxWitdhChange", ...args: any[]) => void;
|
|
143
144
|
$el: any;
|
|
144
|
-
$options: import(
|
|
145
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
145
146
|
modelValue: {
|
|
146
147
|
type: import("vue").PropType<string>;
|
|
147
148
|
default: string;
|
|
@@ -278,14 +279,14 @@ declare const _default: {
|
|
|
278
279
|
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
279
280
|
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
280
281
|
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
281
|
-
renderTracked?: (((e: import(
|
|
282
|
-
renderTriggered?: (((e: import(
|
|
283
|
-
errorCaptured?: (((err: unknown, instance: import(
|
|
282
|
+
renderTracked?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
|
|
283
|
+
renderTriggered?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
|
|
284
|
+
errorCaptured?: (((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
284
285
|
};
|
|
285
286
|
$forceUpdate: () => void;
|
|
286
|
-
$nextTick: typeof import(
|
|
287
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import(
|
|
288
|
-
} & Readonly<import(
|
|
287
|
+
$nextTick: typeof import('vue').nextTick;
|
|
288
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import('vue').WatchOptions<boolean> | undefined): import('vue').WatchStopHandle;
|
|
289
|
+
} & Readonly<import('vue').ExtractPropTypes<{
|
|
289
290
|
modelValue: {
|
|
290
291
|
type: import("vue").PropType<string>;
|
|
291
292
|
default: string;
|
|
@@ -388,11 +389,11 @@ declare const _default: {
|
|
|
388
389
|
onOnInput?: ((...args: any[]) => any) | undefined;
|
|
389
390
|
onOnDrop?: ((...args: any[]) => any) | undefined;
|
|
390
391
|
onOnInputBoxWitdhChange?: ((...args: any[]) => any) | undefined;
|
|
391
|
-
} & import(
|
|
392
|
+
} & import('vue').ShallowUnwrapRef<() => JSX.Element> & {} & import('vue').ComponentCustomProperties & {};
|
|
392
393
|
__isFragment?: undefined;
|
|
393
394
|
__isTeleport?: undefined;
|
|
394
395
|
__isSuspense?: undefined;
|
|
395
|
-
} & import(
|
|
396
|
+
} & import('vue').ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
396
397
|
modelValue: {
|
|
397
398
|
type: import("vue").PropType<string>;
|
|
398
399
|
default: string;
|
|
@@ -516,7 +517,7 @@ declare const _default: {
|
|
|
516
517
|
noImgZoomIn: boolean;
|
|
517
518
|
customIcon: import("..").CustomIcon;
|
|
518
519
|
sanitizeMermaid: (h: string) => Promise<string>;
|
|
519
|
-
}, {}, string> & import(
|
|
520
|
+
}, {}, string> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
520
521
|
install: (app: App) => App;
|
|
521
522
|
};
|
|
522
523
|
export default _default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { PropType, ExtractPropTypes } from 'vue';
|
|
2
1
|
import { Themes } from '../MdEditor/type';
|
|
3
|
-
|
|
2
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare const _default: import('vue').DefineComponent<{
|
|
4
5
|
title: {
|
|
5
6
|
type: PropType<string>;
|
|
6
7
|
default: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
|
+
|
|
2
3
|
declare const _default: {
|
|
3
4
|
new (...args: any[]): {
|
|
4
|
-
$: import(
|
|
5
|
+
$: import('vue').ComponentInternalInstance;
|
|
5
6
|
$data: {};
|
|
6
7
|
$props: Partial<{
|
|
7
8
|
title: string;
|
|
@@ -10,7 +11,7 @@ declare const _default: {
|
|
|
10
11
|
showAdjust: boolean;
|
|
11
12
|
isFullscreen: boolean;
|
|
12
13
|
modalTitle: string;
|
|
13
|
-
}> & Omit<Readonly<import(
|
|
14
|
+
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
14
15
|
title: {
|
|
15
16
|
type: import("vue").PropType<string>;
|
|
16
17
|
default: string;
|
|
@@ -63,7 +64,7 @@ declare const _default: {
|
|
|
63
64
|
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
64
65
|
onOnClick?: ((...args: any[]) => any) | undefined;
|
|
65
66
|
onOnAdjust?: ((...args: any[]) => any) | undefined;
|
|
66
|
-
} & import(
|
|
67
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "title" | "height" | "width" | "showAdjust" | "isFullscreen" | "modalTitle">;
|
|
67
68
|
$attrs: {
|
|
68
69
|
[x: string]: unknown;
|
|
69
70
|
};
|
|
@@ -71,13 +72,13 @@ declare const _default: {
|
|
|
71
72
|
[x: string]: unknown;
|
|
72
73
|
};
|
|
73
74
|
$slots: Readonly<{
|
|
74
|
-
[name: string]: import(
|
|
75
|
+
[name: string]: import('vue').Slot | undefined;
|
|
75
76
|
}>;
|
|
76
|
-
$root: import(
|
|
77
|
-
$parent: import(
|
|
77
|
+
$root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
78
|
+
$parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
78
79
|
$emit: (event: "onClick" | "onClose" | "onAdjust", ...args: any[]) => void;
|
|
79
80
|
$el: any;
|
|
80
|
-
$options: import(
|
|
81
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
81
82
|
title: {
|
|
82
83
|
type: import("vue").PropType<string>;
|
|
83
84
|
default: string;
|
|
@@ -150,14 +151,14 @@ declare const _default: {
|
|
|
150
151
|
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
151
152
|
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
152
153
|
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
153
|
-
renderTracked?: (((e: import(
|
|
154
|
-
renderTriggered?: (((e: import(
|
|
155
|
-
errorCaptured?: (((err: unknown, instance: import(
|
|
154
|
+
renderTracked?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
|
|
155
|
+
renderTriggered?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
|
|
156
|
+
errorCaptured?: (((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
156
157
|
};
|
|
157
158
|
$forceUpdate: () => void;
|
|
158
|
-
$nextTick: typeof import(
|
|
159
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import(
|
|
160
|
-
} & Readonly<import(
|
|
159
|
+
$nextTick: typeof import('vue').nextTick;
|
|
160
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import('vue').WatchOptions<boolean> | undefined): import('vue').WatchStopHandle;
|
|
161
|
+
} & Readonly<import('vue').ExtractPropTypes<{
|
|
161
162
|
title: {
|
|
162
163
|
type: import("vue").PropType<string>;
|
|
163
164
|
default: string;
|
|
@@ -210,11 +211,11 @@ declare const _default: {
|
|
|
210
211
|
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
211
212
|
onOnClick?: ((...args: any[]) => any) | undefined;
|
|
212
213
|
onOnAdjust?: ((...args: any[]) => any) | undefined;
|
|
213
|
-
} & import(
|
|
214
|
+
} & import('vue').ShallowUnwrapRef<() => JSX.Element> & {} & import('vue').ComponentCustomProperties & {};
|
|
214
215
|
__isFragment?: undefined;
|
|
215
216
|
__isTeleport?: undefined;
|
|
216
217
|
__isSuspense?: undefined;
|
|
217
|
-
} & import(
|
|
218
|
+
} & import('vue').ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
218
219
|
title: {
|
|
219
220
|
type: import("vue").PropType<string>;
|
|
220
221
|
default: string;
|
|
@@ -274,7 +275,7 @@ declare const _default: {
|
|
|
274
275
|
showAdjust: boolean;
|
|
275
276
|
isFullscreen: boolean;
|
|
276
277
|
modalTitle: string;
|
|
277
|
-
}, {}, string> & import(
|
|
278
|
+
}, {}, string> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
278
279
|
install: (app: App) => App;
|
|
279
280
|
};
|
|
280
281
|
export default _default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { PropType, ExtractPropTypes } from 'vue';
|
|
2
1
|
import { Themes } from '../MdEditor/type';
|
|
3
|
-
|
|
2
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare const _default: import('vue').DefineComponent<{
|
|
4
5
|
title: {
|
|
5
6
|
type: PropType<string>;
|
|
6
7
|
default: string;
|