@halo-dev/richtext-editor 0.0.0-alpha.30 → 0.0.0-alpha.31
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 +2 -165
- package/dist/components/EditorBubbleMenu.vue.d.ts +2 -99
- package/dist/components/EditorHeader.vue.d.ts +2 -19
- package/dist/rich-text-editor.es.js +9605 -7486
- package/dist/rich-text-editor.es.js.map +1 -1
- package/dist/rich-text-editor.iife.js +8843 -6724
- package/dist/rich-text-editor.iife.js.map +1 -1
- package/dist/style.css +324 -45
- package/package.json +51 -54
- package/dist/components/block/BlockActionButton.vue.d.ts +0 -27
- package/dist/components/block/BlockActionInput.vue.d.ts +0 -30
- package/dist/components/block/BlockActionSeparator.vue.d.ts +0 -2
- package/dist/components/block/BlockCard.vue.d.ts +0 -71
- package/dist/components/bubble/BubbleItem.vue.d.ts +0 -60
- package/dist/components/index.d.ts +0 -8
- package/dist/components/toolbar/ToolbarItem.vue.d.ts +0 -60
- package/dist/components/toolbar/ToolbarSubItem.vue.d.ts +0 -63
- package/dist/components/toolbox/ToolboxItem.vue.d.ts +0 -63
- package/dist/extensions/audio/AudioView.vue.d.ts +0 -102
- package/dist/extensions/audio/index.d.ts +0 -12
- package/dist/extensions/blockquote/index.d.ts +0 -2
- package/dist/extensions/bold/index.d.ts +0 -2
- package/dist/extensions/bullet-list/index.d.ts +0 -2
- package/dist/extensions/code/index.d.ts +0 -2
- package/dist/extensions/code-block/CodeBlockViewRenderer.vue.d.ts +0 -99
- package/dist/extensions/code-block/code-block.d.ts +0 -15
- package/dist/extensions/code-block/index.d.ts +0 -2
- package/dist/extensions/code-block/lowlight.d.ts +0 -2
- package/dist/extensions/color/ColorBubbleItem.vue.d.ts +0 -78
- package/dist/extensions/color/ColorToolbarItem.vue.d.ts +0 -78
- package/dist/extensions/color/index.d.ts +0 -2
- package/dist/extensions/commands-menu/CommandsView.vue.d.ts +0 -33
- package/dist/extensions/commands-menu/commands.d.ts +0 -3
- package/dist/extensions/commands-menu/index.d.ts +0 -1
- package/dist/extensions/font-size/index.d.ts +0 -14
- package/dist/extensions/heading/index.d.ts +0 -2
- package/dist/extensions/highlight/HighlightBubbleItem.vue.d.ts +0 -79
- package/dist/extensions/highlight/HighlightToolbarItem.vue.d.ts +0 -79
- package/dist/extensions/highlight/index.d.ts +0 -2
- package/dist/extensions/history/index.d.ts +0 -2
- package/dist/extensions/iframe/IframeView.vue.d.ts +0 -113
- package/dist/extensions/iframe/index.d.ts +0 -12
- package/dist/extensions/image/ImageView.vue.d.ts +0 -120
- package/dist/extensions/image/index.d.ts +0 -2
- package/dist/extensions/indent/index.d.ts +0 -22
- package/dist/extensions/index.d.ts +0 -35
- package/dist/extensions/italic/index.d.ts +0 -2
- package/dist/extensions/link/LinkBubbleButton.vue.d.ts +0 -75
- package/dist/extensions/link/index.d.ts +0 -2
- package/dist/extensions/ordered-list/index.d.ts +0 -2
- package/dist/extensions/strike/index.d.ts +0 -2
- package/dist/extensions/subscript/index.d.ts +0 -2
- package/dist/extensions/superscript/index.d.ts +0 -2
- package/dist/extensions/table/index.d.ts +0 -2
- package/dist/extensions/task-list/index.d.ts +0 -2
- package/dist/extensions/text-align/index.d.ts +0 -2
- package/dist/extensions/underline/index.d.ts +0 -2
- package/dist/extensions/video/VideoView.vue.d.ts +0 -117
- package/dist/extensions/video/index.d.ts +0 -12
- package/dist/locales/index.d.ts +0 -7
|
@@ -1,165 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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;
|
|
1
|
+
declare const _default: any;
|
|
2
|
+
export default _default;
|
|
@@ -1,99 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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;
|
|
1
|
+
declare const _default: any;
|
|
2
|
+
export default _default;
|
|
@@ -1,19 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
editor: {
|
|
4
|
-
type: typeof Editor;
|
|
5
|
-
required: true;
|
|
6
|
-
};
|
|
7
|
-
}, {
|
|
8
|
-
props: any;
|
|
9
|
-
getToolbarItemsFromExtensions: () => ToolbarItem[];
|
|
10
|
-
getToolboxItemsFromExtensions: () => any[];
|
|
11
|
-
readonly VMenu: any;
|
|
12
|
-
readonly MdiPlusCircle: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
|
|
13
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
14
|
-
editor: {
|
|
15
|
-
type: typeof Editor;
|
|
16
|
-
required: true;
|
|
17
|
-
};
|
|
18
|
-
}>>, {}>;
|
|
19
|
-
export default _sfc_main;
|
|
1
|
+
declare const _default: any;
|
|
2
|
+
export default _default;
|