@halo-dev/richtext-editor 0.0.0-alpha.25 → 0.0.0-alpha.26
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/dist/components/Editor.vue.d.ts +165 -0
- package/dist/components/EditorBubbleMenu.vue.d.ts +99 -0
- package/dist/components/EditorHeader.vue.d.ts +2 -0
- package/dist/components/block/BlockCard.vue.d.ts +2 -5
- package/dist/components/index.d.ts +1 -0
- package/dist/components/toolbox/ToolboxItem.vue.d.ts +63 -0
- package/dist/extensions/audio/AudioView.vue.d.ts +8 -5
- package/dist/extensions/color/ColorBubbleItem.vue.d.ts +78 -0
- package/dist/extensions/color/ColorToolbarItem.vue.d.ts +78 -0
- package/dist/extensions/color/index.d.ts +2 -0
- package/dist/extensions/font-size/index.d.ts +14 -0
- package/dist/extensions/highlight/HighlightBubbleItem.vue.d.ts +79 -0
- package/dist/extensions/highlight/HighlightToolbarItem.vue.d.ts +79 -0
- package/dist/extensions/iframe/IframeView.vue.d.ts +16 -6
- package/dist/extensions/image/ImageView.vue.d.ts +14 -8
- package/dist/extensions/image/index.d.ts +1 -1
- package/dist/extensions/index.d.ts +3 -1
- package/dist/extensions/link/LinkBubbleButton.vue.d.ts +1 -1
- package/dist/extensions/video/VideoView.vue.d.ts +17 -10
- package/dist/rich-text-editor.es.js +5454 -1733
- package/dist/rich-text-editor.es.js.map +1 -1
- package/dist/rich-text-editor.iife.js +5454 -1733
- package/dist/rich-text-editor.iife.js.map +1 -1
- package/dist/style.css +228 -77
- package/package.json +51 -47
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { Editor } from "@tiptap/vue-3";
|
|
2
|
+
import { type CSSProperties, type PropType } from "vue";
|
|
3
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
|
+
editor: {
|
|
5
|
+
type: PropType<Editor>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
contentStyles: {
|
|
9
|
+
type: PropType<CSSProperties>;
|
|
10
|
+
required: false;
|
|
11
|
+
default: () => {};
|
|
12
|
+
};
|
|
13
|
+
locale: {
|
|
14
|
+
type: PropType<"zh-CN" | "en" | "zh" | "en-US">;
|
|
15
|
+
required: false;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
}, {
|
|
19
|
+
props: any;
|
|
20
|
+
readonly EditorContent: import("vue").DefineComponent<{
|
|
21
|
+
editor: {
|
|
22
|
+
default: null;
|
|
23
|
+
type: PropType<Editor>;
|
|
24
|
+
};
|
|
25
|
+
}, {
|
|
26
|
+
rootEl: import("vue").Ref<Element>;
|
|
27
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
+
editor: {
|
|
29
|
+
default: null;
|
|
30
|
+
type: PropType<Editor>;
|
|
31
|
+
};
|
|
32
|
+
}>>, {
|
|
33
|
+
editor: Editor;
|
|
34
|
+
}>;
|
|
35
|
+
EditorHeader: import("vue").DefineComponent<{
|
|
36
|
+
editor: {
|
|
37
|
+
type: typeof Editor;
|
|
38
|
+
required: true;
|
|
39
|
+
};
|
|
40
|
+
}, {
|
|
41
|
+
props: any;
|
|
42
|
+
getToolbarItemsFromExtensions: () => ToolbarItem[];
|
|
43
|
+
getToolboxItemsFromExtensions: () => any[];
|
|
44
|
+
readonly VMenu: any;
|
|
45
|
+
readonly MdiPlusCircle: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
|
|
46
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
47
|
+
editor: {
|
|
48
|
+
type: typeof Editor;
|
|
49
|
+
required: true;
|
|
50
|
+
};
|
|
51
|
+
}>>, {}>;
|
|
52
|
+
EditorBubbleMenu: import("vue").DefineComponent<{
|
|
53
|
+
editor: {
|
|
54
|
+
type: PropType<import("@tiptap/core").Editor>;
|
|
55
|
+
required: true;
|
|
56
|
+
};
|
|
57
|
+
}, {
|
|
58
|
+
props: any;
|
|
59
|
+
getBubbleItemsFromExtensions: () => any[];
|
|
60
|
+
getShouldShow: ({ editor, view, state, from, to, }: {
|
|
61
|
+
editor: import("@tiptap/core").Editor;
|
|
62
|
+
view: import("prosemirror-view").EditorView;
|
|
63
|
+
state: import("prosemirror-state").EditorState;
|
|
64
|
+
oldState?: import("prosemirror-state").EditorState;
|
|
65
|
+
from: number;
|
|
66
|
+
to: number;
|
|
67
|
+
}) => boolean;
|
|
68
|
+
readonly roundArrow: string;
|
|
69
|
+
readonly BubbleMenu: import("vue").DefineComponent<{
|
|
70
|
+
pluginKey: {
|
|
71
|
+
type: PropType<string | import("prosemirror-state").PluginKey<any>>;
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
74
|
+
editor: {
|
|
75
|
+
type: PropType<import("@tiptap/core").Editor>;
|
|
76
|
+
required: true;
|
|
77
|
+
};
|
|
78
|
+
updateDelay: {
|
|
79
|
+
type: PropType<number>;
|
|
80
|
+
default: undefined;
|
|
81
|
+
};
|
|
82
|
+
tippyOptions: {
|
|
83
|
+
type: PropType<Partial<import("tippy.js").Props>>;
|
|
84
|
+
default: () => {};
|
|
85
|
+
};
|
|
86
|
+
shouldShow: {
|
|
87
|
+
type: PropType<(props: {
|
|
88
|
+
editor: import("@tiptap/core").Editor;
|
|
89
|
+
view: import("prosemirror-view").EditorView;
|
|
90
|
+
state: import("prosemirror-state").EditorState;
|
|
91
|
+
oldState?: import("prosemirror-state").EditorState;
|
|
92
|
+
from: number;
|
|
93
|
+
to: number;
|
|
94
|
+
}) => boolean>;
|
|
95
|
+
default: null;
|
|
96
|
+
};
|
|
97
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
98
|
+
[key: string]: any;
|
|
99
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
100
|
+
pluginKey: {
|
|
101
|
+
type: PropType<string | import("prosemirror-state").PluginKey<any>>;
|
|
102
|
+
default: string;
|
|
103
|
+
};
|
|
104
|
+
editor: {
|
|
105
|
+
type: PropType<import("@tiptap/core").Editor>;
|
|
106
|
+
required: true;
|
|
107
|
+
};
|
|
108
|
+
updateDelay: {
|
|
109
|
+
type: PropType<number>;
|
|
110
|
+
default: undefined;
|
|
111
|
+
};
|
|
112
|
+
tippyOptions: {
|
|
113
|
+
type: PropType<Partial<import("tippy.js").Props>>;
|
|
114
|
+
default: () => {};
|
|
115
|
+
};
|
|
116
|
+
shouldShow: {
|
|
117
|
+
type: PropType<(props: {
|
|
118
|
+
editor: import("@tiptap/core").Editor;
|
|
119
|
+
view: import("prosemirror-view").EditorView;
|
|
120
|
+
state: import("prosemirror-state").EditorState;
|
|
121
|
+
oldState?: import("prosemirror-state").EditorState;
|
|
122
|
+
from: number;
|
|
123
|
+
to: number;
|
|
124
|
+
}) => boolean>;
|
|
125
|
+
default: null;
|
|
126
|
+
};
|
|
127
|
+
}>>, {
|
|
128
|
+
pluginKey: string | import("prosemirror-state").PluginKey<any>;
|
|
129
|
+
updateDelay: number;
|
|
130
|
+
tippyOptions: Partial<import("tippy.js").Props>;
|
|
131
|
+
shouldShow: (props: {
|
|
132
|
+
editor: import("@tiptap/core").Editor;
|
|
133
|
+
view: import("prosemirror-view").EditorView;
|
|
134
|
+
state: import("prosemirror-state").EditorState;
|
|
135
|
+
oldState?: import("prosemirror-state").EditorState;
|
|
136
|
+
from: number;
|
|
137
|
+
to: number;
|
|
138
|
+
}) => boolean;
|
|
139
|
+
}>;
|
|
140
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
141
|
+
editor: {
|
|
142
|
+
type: PropType<import("@tiptap/core").Editor>;
|
|
143
|
+
required: true;
|
|
144
|
+
};
|
|
145
|
+
}>>, {}>;
|
|
146
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
147
|
+
editor: {
|
|
148
|
+
type: PropType<Editor>;
|
|
149
|
+
required: true;
|
|
150
|
+
};
|
|
151
|
+
contentStyles: {
|
|
152
|
+
type: PropType<CSSProperties>;
|
|
153
|
+
required: false;
|
|
154
|
+
default: () => {};
|
|
155
|
+
};
|
|
156
|
+
locale: {
|
|
157
|
+
type: PropType<"zh-CN" | "en" | "zh" | "en-US">;
|
|
158
|
+
required: false;
|
|
159
|
+
default: string;
|
|
160
|
+
};
|
|
161
|
+
}>>, {
|
|
162
|
+
contentStyles: CSSProperties;
|
|
163
|
+
locale: "zh-CN" | "en" | "zh" | "en-US";
|
|
164
|
+
}>;
|
|
165
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import type { PropType } from "vue";
|
|
2
|
+
import type { Editor } from "@tiptap/core";
|
|
3
|
+
import type { EditorView } from "prosemirror-view";
|
|
4
|
+
import type { EditorState } from "prosemirror-state";
|
|
5
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
6
|
+
editor: {
|
|
7
|
+
type: PropType<Editor>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
}, {
|
|
11
|
+
props: any;
|
|
12
|
+
getBubbleItemsFromExtensions: () => any[];
|
|
13
|
+
getShouldShow: ({ editor, view, state, from, to, }: {
|
|
14
|
+
editor: Editor;
|
|
15
|
+
view: EditorView;
|
|
16
|
+
state: EditorState;
|
|
17
|
+
oldState?: EditorState;
|
|
18
|
+
from: number;
|
|
19
|
+
to: number;
|
|
20
|
+
}) => boolean;
|
|
21
|
+
readonly roundArrow: string;
|
|
22
|
+
readonly BubbleMenu: import("vue").DefineComponent<{
|
|
23
|
+
pluginKey: {
|
|
24
|
+
type: PropType<string | import("prosemirror-state").PluginKey<any>>;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
editor: {
|
|
28
|
+
type: PropType<Editor>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
updateDelay: {
|
|
32
|
+
type: PropType<number>;
|
|
33
|
+
default: undefined;
|
|
34
|
+
};
|
|
35
|
+
tippyOptions: {
|
|
36
|
+
type: PropType<Partial<import("tippy.js").Props>>;
|
|
37
|
+
default: () => {};
|
|
38
|
+
};
|
|
39
|
+
shouldShow: {
|
|
40
|
+
type: PropType<(props: {
|
|
41
|
+
editor: Editor;
|
|
42
|
+
view: EditorView;
|
|
43
|
+
state: EditorState;
|
|
44
|
+
oldState?: EditorState;
|
|
45
|
+
from: number;
|
|
46
|
+
to: number;
|
|
47
|
+
}) => boolean>;
|
|
48
|
+
default: null;
|
|
49
|
+
};
|
|
50
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
51
|
+
[key: string]: any;
|
|
52
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
53
|
+
pluginKey: {
|
|
54
|
+
type: PropType<string | import("prosemirror-state").PluginKey<any>>;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
editor: {
|
|
58
|
+
type: PropType<Editor>;
|
|
59
|
+
required: true;
|
|
60
|
+
};
|
|
61
|
+
updateDelay: {
|
|
62
|
+
type: PropType<number>;
|
|
63
|
+
default: undefined;
|
|
64
|
+
};
|
|
65
|
+
tippyOptions: {
|
|
66
|
+
type: PropType<Partial<import("tippy.js").Props>>;
|
|
67
|
+
default: () => {};
|
|
68
|
+
};
|
|
69
|
+
shouldShow: {
|
|
70
|
+
type: PropType<(props: {
|
|
71
|
+
editor: Editor;
|
|
72
|
+
view: EditorView;
|
|
73
|
+
state: EditorState;
|
|
74
|
+
oldState?: EditorState;
|
|
75
|
+
from: number;
|
|
76
|
+
to: number;
|
|
77
|
+
}) => boolean>;
|
|
78
|
+
default: null;
|
|
79
|
+
};
|
|
80
|
+
}>>, {
|
|
81
|
+
pluginKey: string | import("prosemirror-state").PluginKey<any>;
|
|
82
|
+
updateDelay: number;
|
|
83
|
+
tippyOptions: Partial<import("tippy.js").Props>;
|
|
84
|
+
shouldShow: (props: {
|
|
85
|
+
editor: Editor;
|
|
86
|
+
view: EditorView;
|
|
87
|
+
state: EditorState;
|
|
88
|
+
oldState?: EditorState;
|
|
89
|
+
from: number;
|
|
90
|
+
to: number;
|
|
91
|
+
}) => boolean;
|
|
92
|
+
}>;
|
|
93
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
94
|
+
editor: {
|
|
95
|
+
type: PropType<Editor>;
|
|
96
|
+
required: true;
|
|
97
|
+
};
|
|
98
|
+
}>>, {}>;
|
|
99
|
+
export default _sfc_main;
|
|
@@ -7,7 +7,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
7
7
|
}, {
|
|
8
8
|
props: any;
|
|
9
9
|
getToolbarItemsFromExtensions: () => ToolbarItem[];
|
|
10
|
+
getToolboxItemsFromExtensions: () => any[];
|
|
10
11
|
readonly VMenu: any;
|
|
12
|
+
readonly MdiPlusCircle: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
|
|
11
13
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
14
|
editor: {
|
|
13
15
|
type: typeof Editor;
|
|
@@ -18,12 +18,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
18
18
|
};
|
|
19
19
|
}, {
|
|
20
20
|
props: any;
|
|
21
|
-
hover: import("vue").Ref<boolean>;
|
|
22
|
-
dropdownVisible: import("vue").ComputedRef<boolean>;
|
|
23
21
|
handleInsertNewLine: () => void;
|
|
24
|
-
readonly
|
|
25
|
-
readonly
|
|
26
|
-
readonly MdiArrowULeftBottom: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}>;
|
|
22
|
+
readonly MdiDeleteForeverOutline: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
|
|
23
|
+
readonly MdiArrowULeftBottom: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
|
|
27
24
|
BlockActionSeparator: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
28
25
|
BlockActionButton: import("vue").DefineComponent<{
|
|
29
26
|
tooltip: {
|
|
@@ -5,3 +5,4 @@ export { default as BlockCard } from "./block/BlockCard.vue";
|
|
|
5
5
|
export { default as BubbleItem } from "./bubble/BubbleItem.vue";
|
|
6
6
|
export { default as ToolbarItem } from "./toolbar/ToolbarItem.vue";
|
|
7
7
|
export { default as ToolbarSubItem } from "./toolbar/ToolbarSubItem.vue";
|
|
8
|
+
export { default as ToolboxItem } from "./toolbox/ToolboxItem.vue";
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
+
editor: {
|
|
3
|
+
type: any;
|
|
4
|
+
required: false;
|
|
5
|
+
default: any;
|
|
6
|
+
};
|
|
7
|
+
title: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
required: false;
|
|
10
|
+
default: any;
|
|
11
|
+
};
|
|
12
|
+
description: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
required: false;
|
|
15
|
+
default: any;
|
|
16
|
+
};
|
|
17
|
+
action: {
|
|
18
|
+
type: FunctionConstructor;
|
|
19
|
+
required: false;
|
|
20
|
+
default: any;
|
|
21
|
+
};
|
|
22
|
+
icon: {
|
|
23
|
+
type: any;
|
|
24
|
+
required: false;
|
|
25
|
+
default: any;
|
|
26
|
+
};
|
|
27
|
+
}, {
|
|
28
|
+
props: any;
|
|
29
|
+
action: () => void;
|
|
30
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
|
+
editor: {
|
|
32
|
+
type: any;
|
|
33
|
+
required: false;
|
|
34
|
+
default: any;
|
|
35
|
+
};
|
|
36
|
+
title: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
required: false;
|
|
39
|
+
default: any;
|
|
40
|
+
};
|
|
41
|
+
description: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
required: false;
|
|
44
|
+
default: any;
|
|
45
|
+
};
|
|
46
|
+
action: {
|
|
47
|
+
type: FunctionConstructor;
|
|
48
|
+
required: false;
|
|
49
|
+
default: any;
|
|
50
|
+
};
|
|
51
|
+
icon: {
|
|
52
|
+
type: any;
|
|
53
|
+
required: false;
|
|
54
|
+
default: any;
|
|
55
|
+
};
|
|
56
|
+
}>>, {
|
|
57
|
+
editor: any;
|
|
58
|
+
title: string;
|
|
59
|
+
action: Function;
|
|
60
|
+
icon: any;
|
|
61
|
+
description: string;
|
|
62
|
+
}>;
|
|
63
|
+
export default _sfc_main;
|
|
@@ -40,6 +40,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
40
40
|
handleToggleAutoplay: () => void;
|
|
41
41
|
handleToggleLoop: () => void;
|
|
42
42
|
handleOpenLink: () => void;
|
|
43
|
+
inputRef: import("vue").Ref<any>;
|
|
43
44
|
readonly NodeViewWrapper: import("vue").DefineComponent<{
|
|
44
45
|
as: {
|
|
45
46
|
type: StringConstructor;
|
|
@@ -53,14 +54,16 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
53
54
|
}>>, {
|
|
54
55
|
as: string;
|
|
55
56
|
}>;
|
|
57
|
+
readonly VDropdown: any;
|
|
56
58
|
BlockCard: any;
|
|
57
59
|
BlockActionButton: any;
|
|
58
60
|
BlockActionSeparator: any;
|
|
59
|
-
readonly MdiLinkVariant: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}>;
|
|
60
|
-
readonly
|
|
61
|
-
readonly
|
|
62
|
-
readonly
|
|
63
|
-
readonly
|
|
61
|
+
readonly MdiLinkVariant: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
|
|
62
|
+
readonly MdiShare: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
|
|
63
|
+
readonly MdiPlayCircle: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
|
|
64
|
+
readonly MdiPlayCircleOutline: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
|
|
65
|
+
readonly MdiMotionPlayOutline: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
|
|
66
|
+
readonly MdiMotionPlay: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
|
|
64
67
|
readonly i18n: any;
|
|
65
68
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
66
69
|
editor: {
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
+
editor: {
|
|
3
|
+
type: any;
|
|
4
|
+
required: false;
|
|
5
|
+
default: any;
|
|
6
|
+
};
|
|
7
|
+
isActive: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
required: false;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
visible: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
required: false;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
title: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
required: false;
|
|
20
|
+
default: any;
|
|
21
|
+
};
|
|
22
|
+
action: {
|
|
23
|
+
type: FunctionConstructor;
|
|
24
|
+
required: false;
|
|
25
|
+
default: any;
|
|
26
|
+
};
|
|
27
|
+
icon: {
|
|
28
|
+
type: any;
|
|
29
|
+
required: false;
|
|
30
|
+
default: any;
|
|
31
|
+
};
|
|
32
|
+
}, {
|
|
33
|
+
props: any;
|
|
34
|
+
handleSetColor: (color?: string) => void;
|
|
35
|
+
handleUnsetColor: () => void;
|
|
36
|
+
readonly BubbleItem: any;
|
|
37
|
+
ColorPickerDropdown: any;
|
|
38
|
+
readonly i18n: any;
|
|
39
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
40
|
+
editor: {
|
|
41
|
+
type: any;
|
|
42
|
+
required: false;
|
|
43
|
+
default: any;
|
|
44
|
+
};
|
|
45
|
+
isActive: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
required: false;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
visible: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
required: false;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
title: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
required: false;
|
|
58
|
+
default: any;
|
|
59
|
+
};
|
|
60
|
+
action: {
|
|
61
|
+
type: FunctionConstructor;
|
|
62
|
+
required: false;
|
|
63
|
+
default: any;
|
|
64
|
+
};
|
|
65
|
+
icon: {
|
|
66
|
+
type: any;
|
|
67
|
+
required: false;
|
|
68
|
+
default: any;
|
|
69
|
+
};
|
|
70
|
+
}>>, {
|
|
71
|
+
editor: any;
|
|
72
|
+
title: string;
|
|
73
|
+
isActive: boolean;
|
|
74
|
+
visible: boolean;
|
|
75
|
+
action: Function;
|
|
76
|
+
icon: any;
|
|
77
|
+
}>;
|
|
78
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
+
editor: {
|
|
3
|
+
type: any;
|
|
4
|
+
required: false;
|
|
5
|
+
default: any;
|
|
6
|
+
};
|
|
7
|
+
isActive: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
required: false;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
disabled: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
required: false;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
title: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
required: false;
|
|
20
|
+
default: any;
|
|
21
|
+
};
|
|
22
|
+
action: {
|
|
23
|
+
type: FunctionConstructor;
|
|
24
|
+
required: false;
|
|
25
|
+
default: any;
|
|
26
|
+
};
|
|
27
|
+
icon: {
|
|
28
|
+
type: any;
|
|
29
|
+
required: false;
|
|
30
|
+
default: any;
|
|
31
|
+
};
|
|
32
|
+
}, {
|
|
33
|
+
props: any;
|
|
34
|
+
handleSetColor: (color?: string) => void;
|
|
35
|
+
handleUnsetColor: () => void;
|
|
36
|
+
readonly ToolbarItem: any;
|
|
37
|
+
ColorPickerDropdown: any;
|
|
38
|
+
readonly i18n: any;
|
|
39
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
40
|
+
editor: {
|
|
41
|
+
type: any;
|
|
42
|
+
required: false;
|
|
43
|
+
default: any;
|
|
44
|
+
};
|
|
45
|
+
isActive: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
required: false;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
disabled: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
required: false;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
title: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
required: false;
|
|
58
|
+
default: any;
|
|
59
|
+
};
|
|
60
|
+
action: {
|
|
61
|
+
type: FunctionConstructor;
|
|
62
|
+
required: false;
|
|
63
|
+
default: any;
|
|
64
|
+
};
|
|
65
|
+
icon: {
|
|
66
|
+
type: any;
|
|
67
|
+
required: false;
|
|
68
|
+
default: any;
|
|
69
|
+
};
|
|
70
|
+
}>>, {
|
|
71
|
+
editor: any;
|
|
72
|
+
title: string;
|
|
73
|
+
isActive: boolean;
|
|
74
|
+
action: Function;
|
|
75
|
+
icon: any;
|
|
76
|
+
disabled: boolean;
|
|
77
|
+
}>;
|
|
78
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Extension } from "@tiptap/core";
|
|
2
|
+
export type FontSizeOptions = {
|
|
3
|
+
types: string[];
|
|
4
|
+
};
|
|
5
|
+
declare module "@tiptap/core" {
|
|
6
|
+
interface Commands<ReturnType> {
|
|
7
|
+
fontSize: {
|
|
8
|
+
setFontSize: (size: number) => ReturnType;
|
|
9
|
+
unsetFontSize: () => ReturnType;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
declare const FontSize: Extension<FontSizeOptions, any>;
|
|
14
|
+
export default FontSize;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
+
editor: {
|
|
3
|
+
type: any;
|
|
4
|
+
required: false;
|
|
5
|
+
default: any;
|
|
6
|
+
};
|
|
7
|
+
isActive: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
required: false;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
visible: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
required: false;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
title: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
required: false;
|
|
20
|
+
default: any;
|
|
21
|
+
};
|
|
22
|
+
action: {
|
|
23
|
+
type: FunctionConstructor;
|
|
24
|
+
required: false;
|
|
25
|
+
default: any;
|
|
26
|
+
};
|
|
27
|
+
icon: {
|
|
28
|
+
type: any;
|
|
29
|
+
required: false;
|
|
30
|
+
default: any;
|
|
31
|
+
};
|
|
32
|
+
}, {
|
|
33
|
+
props: any;
|
|
34
|
+
handleSetColor: (color?: string) => void;
|
|
35
|
+
handleUnsetColor: () => void;
|
|
36
|
+
readonly BubbleItem: any;
|
|
37
|
+
ColorPickerDropdown: any;
|
|
38
|
+
readonly MdiFormatColorMarkerCancel: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
|
|
39
|
+
readonly i18n: any;
|
|
40
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
41
|
+
editor: {
|
|
42
|
+
type: any;
|
|
43
|
+
required: false;
|
|
44
|
+
default: any;
|
|
45
|
+
};
|
|
46
|
+
isActive: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
required: false;
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
visible: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
required: false;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
title: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
required: false;
|
|
59
|
+
default: any;
|
|
60
|
+
};
|
|
61
|
+
action: {
|
|
62
|
+
type: FunctionConstructor;
|
|
63
|
+
required: false;
|
|
64
|
+
default: any;
|
|
65
|
+
};
|
|
66
|
+
icon: {
|
|
67
|
+
type: any;
|
|
68
|
+
required: false;
|
|
69
|
+
default: any;
|
|
70
|
+
};
|
|
71
|
+
}>>, {
|
|
72
|
+
editor: any;
|
|
73
|
+
title: string;
|
|
74
|
+
isActive: boolean;
|
|
75
|
+
visible: boolean;
|
|
76
|
+
action: Function;
|
|
77
|
+
icon: any;
|
|
78
|
+
}>;
|
|
79
|
+
export default _sfc_main;
|