@halo-dev/richtext-editor 0.0.0-alpha.18-1 → 0.0.0-alpha.18
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/EditorHeader.vue.d.ts +19 -0
- package/dist/components/EditorLinkBubbleMenuItems.vue.d.ts +23 -0
- package/dist/components/block/BlockActionButton.vue.d.ts +27 -0
- package/dist/components/block/BlockActionInput.vue.d.ts +30 -0
- package/dist/components/block/BlockActionSeparator.vue.d.ts +2 -0
- package/dist/components/block/BlockCard.vue.d.ts +73 -0
- package/dist/extensions/audio/AudioView.vue.d.ts +98 -0
- package/dist/extensions/audio/index.d.ts +12 -0
- package/dist/extensions/code-block/CodeBlockViewRenderer.vue.d.ts +99 -0
- package/dist/extensions/code-block/code-block.d.ts +2 -0
- package/dist/extensions/code-block/index.d.ts +2 -0
- package/dist/extensions/code-block/lowlight.d.ts +2 -0
- package/dist/extensions/commands-menu/CommandsView.vue.d.ts +33 -0
- package/dist/extensions/commands-menu/commands.d.ts +3 -0
- package/dist/extensions/commands-menu/index.d.ts +3 -0
- package/dist/extensions/commands-menu/suggestion.d.ts +29 -0
- package/dist/extensions/iframe/IframeView.vue.d.ts +102 -0
- package/dist/extensions/iframe/index.d.ts +12 -0
- package/dist/extensions/image/ImageView.vue.d.ts +97 -0
- package/dist/extensions/image/index.d.ts +2 -0
- package/dist/extensions/index.d.ts +35 -0
- package/dist/extensions/table/index.d.ts +2 -0
- package/dist/extensions/video/VideoView.vue.d.ts +109 -0
- package/dist/extensions/video/index.d.ts +12 -0
- package/dist/index.d.ts +9 -0
- package/dist/menus/index.d.ts +32 -0
- package/dist/rich-text-editor.es.js +1163 -305
- package/dist/rich-text-editor.es.js.map +1 -1
- package/dist/rich-text-editor.iife.js +1224 -366
- package/dist/rich-text-editor.iife.js.map +1 -1
- package/dist/style.css +24 -4
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { PropType } from "vue";
|
|
2
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
3
|
+
menuItems: {
|
|
4
|
+
type: PropType<MenuItem[]>;
|
|
5
|
+
required: false;
|
|
6
|
+
default: () => any[];
|
|
7
|
+
};
|
|
8
|
+
}, {
|
|
9
|
+
readonly VMenu: any;
|
|
10
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
menuItems: {
|
|
12
|
+
type: PropType<MenuItem[]>;
|
|
13
|
+
required: false;
|
|
14
|
+
default: () => any[];
|
|
15
|
+
};
|
|
16
|
+
}>>, {
|
|
17
|
+
menuItems: MenuItem[];
|
|
18
|
+
}>;
|
|
19
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Editor } from "@tiptap/vue-3";
|
|
2
|
+
import { type PropType } from "vue";
|
|
3
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
|
+
editor: {
|
|
5
|
+
type: PropType<Editor>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
}, {
|
|
9
|
+
props: any;
|
|
10
|
+
href: import("vue").WritableComputedRef<any>;
|
|
11
|
+
target: import("vue").WritableComputedRef<boolean>;
|
|
12
|
+
handleUnSetLink: () => void;
|
|
13
|
+
readonly VDropdown: any;
|
|
14
|
+
readonly MdiLinkVariant: any;
|
|
15
|
+
readonly MdiLinkVariantOff: any;
|
|
16
|
+
readonly MdiShare: any;
|
|
17
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
+
editor: {
|
|
19
|
+
type: PropType<Editor>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
}>>, {}>;
|
|
23
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
+
tooltip: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: false;
|
|
5
|
+
default: any;
|
|
6
|
+
};
|
|
7
|
+
selected: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
required: false;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
+
tooltip: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
required: false;
|
|
16
|
+
default: any;
|
|
17
|
+
};
|
|
18
|
+
selected: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
required: false;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
}>>, {
|
|
24
|
+
selected: boolean;
|
|
25
|
+
tooltip: string;
|
|
26
|
+
}>;
|
|
27
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
+
tooltip: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: false;
|
|
5
|
+
default: any;
|
|
6
|
+
};
|
|
7
|
+
modelValue: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
}, {
|
|
12
|
+
props: any;
|
|
13
|
+
emit: (emit: "update:modelValue", value: string) => void;
|
|
14
|
+
value: import("vue").WritableComputedRef<string>;
|
|
15
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
+
tooltip: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
required: false;
|
|
19
|
+
default: any;
|
|
20
|
+
};
|
|
21
|
+
modelValue: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
}>> & {
|
|
26
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
27
|
+
}, {
|
|
28
|
+
tooltip: string;
|
|
29
|
+
}>;
|
|
30
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
+
selected: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
default: boolean;
|
|
6
|
+
};
|
|
7
|
+
editor: {
|
|
8
|
+
type: any;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
getPos: {
|
|
12
|
+
type: FunctionConstructor;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
deleteNode: {
|
|
16
|
+
type: FunctionConstructor;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
}, {
|
|
20
|
+
props: any;
|
|
21
|
+
hover: import("vue").Ref<boolean>;
|
|
22
|
+
dropdownVisible: import("vue").ComputedRef<boolean>;
|
|
23
|
+
handleInsertNewLine: () => void;
|
|
24
|
+
readonly VDropdown: any;
|
|
25
|
+
readonly MdiDeleteForeverOutline: any;
|
|
26
|
+
readonly MdiArrowULeftBottom: any;
|
|
27
|
+
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
|
+
BlockActionButton: import("vue").DefineComponent<{
|
|
29
|
+
tooltip: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
required: false;
|
|
32
|
+
default: any;
|
|
33
|
+
};
|
|
34
|
+
selected: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
required: false;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
40
|
+
tooltip: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
required: false;
|
|
43
|
+
default: any;
|
|
44
|
+
};
|
|
45
|
+
selected: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
required: false;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
}>>, {
|
|
51
|
+
selected: boolean;
|
|
52
|
+
tooltip: string;
|
|
53
|
+
}>;
|
|
54
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
55
|
+
selected: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
required: true;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
editor: {
|
|
61
|
+
type: any;
|
|
62
|
+
required: true;
|
|
63
|
+
};
|
|
64
|
+
getPos: {
|
|
65
|
+
type: FunctionConstructor;
|
|
66
|
+
required: true;
|
|
67
|
+
};
|
|
68
|
+
deleteNode: {
|
|
69
|
+
type: FunctionConstructor;
|
|
70
|
+
required: true;
|
|
71
|
+
};
|
|
72
|
+
}>>, {}>;
|
|
73
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
+
editor: {
|
|
3
|
+
type: any;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
node: {
|
|
7
|
+
type: any;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
decorations: {
|
|
11
|
+
type: ArrayConstructor;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
selected: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
extension: {
|
|
19
|
+
type: any;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
getPos: {
|
|
23
|
+
type: FunctionConstructor;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
updateAttributes: {
|
|
27
|
+
type: FunctionConstructor;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
deleteNode: {
|
|
31
|
+
type: FunctionConstructor;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
}, {
|
|
35
|
+
props: any;
|
|
36
|
+
src: import("vue").WritableComputedRef<any>;
|
|
37
|
+
autoplay: import("vue").ComputedRef<any>;
|
|
38
|
+
loop: import("vue").ComputedRef<any>;
|
|
39
|
+
handleSetFocus: () => void;
|
|
40
|
+
handleToggleAutoplay: () => void;
|
|
41
|
+
handleToggleLoop: () => void;
|
|
42
|
+
handleOpenLink: () => void;
|
|
43
|
+
readonly NodeViewWrapper: import("vue").DefineComponent<{
|
|
44
|
+
as: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
49
|
+
as: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
}>>, {
|
|
54
|
+
as: string;
|
|
55
|
+
}>;
|
|
56
|
+
BlockCard: any;
|
|
57
|
+
BlockActionButton: any;
|
|
58
|
+
BlockActionSeparator: any;
|
|
59
|
+
readonly MdiLinkVariant: any;
|
|
60
|
+
readonly MdiPlayCircle: any;
|
|
61
|
+
readonly MdiPlayCircleOutline: any;
|
|
62
|
+
readonly MdiMotionPlayOutline: any;
|
|
63
|
+
readonly MdiMotionPlay: any;
|
|
64
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
65
|
+
editor: {
|
|
66
|
+
type: any;
|
|
67
|
+
required: true;
|
|
68
|
+
};
|
|
69
|
+
node: {
|
|
70
|
+
type: any;
|
|
71
|
+
required: true;
|
|
72
|
+
};
|
|
73
|
+
decorations: {
|
|
74
|
+
type: ArrayConstructor;
|
|
75
|
+
required: true;
|
|
76
|
+
};
|
|
77
|
+
selected: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
required: true;
|
|
80
|
+
};
|
|
81
|
+
extension: {
|
|
82
|
+
type: any;
|
|
83
|
+
required: true;
|
|
84
|
+
};
|
|
85
|
+
getPos: {
|
|
86
|
+
type: FunctionConstructor;
|
|
87
|
+
required: true;
|
|
88
|
+
};
|
|
89
|
+
updateAttributes: {
|
|
90
|
+
type: FunctionConstructor;
|
|
91
|
+
required: true;
|
|
92
|
+
};
|
|
93
|
+
deleteNode: {
|
|
94
|
+
type: FunctionConstructor;
|
|
95
|
+
required: true;
|
|
96
|
+
};
|
|
97
|
+
}>>, {}>;
|
|
98
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
+
editor: {
|
|
3
|
+
type: any;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
node: {
|
|
7
|
+
type: any;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
decorations: {
|
|
11
|
+
type: ArrayConstructor;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
selected: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
extension: {
|
|
19
|
+
type: any;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
getPos: {
|
|
23
|
+
type: FunctionConstructor;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
updateAttributes: {
|
|
27
|
+
type: FunctionConstructor;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
deleteNode: {
|
|
31
|
+
type: FunctionConstructor;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
}, {
|
|
35
|
+
props: any;
|
|
36
|
+
languages: import("vue").ComputedRef<string[]>;
|
|
37
|
+
selectedLanguage: import("vue").WritableComputedRef<any>;
|
|
38
|
+
readonly NodeViewContent: import("vue").DefineComponent<{
|
|
39
|
+
as: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
44
|
+
as: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
}>>, {
|
|
49
|
+
as: string;
|
|
50
|
+
}>;
|
|
51
|
+
readonly NodeViewWrapper: import("vue").DefineComponent<{
|
|
52
|
+
as: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
57
|
+
as: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
}>>, {
|
|
62
|
+
as: string;
|
|
63
|
+
}>;
|
|
64
|
+
BlockCard: any;
|
|
65
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
66
|
+
editor: {
|
|
67
|
+
type: any;
|
|
68
|
+
required: true;
|
|
69
|
+
};
|
|
70
|
+
node: {
|
|
71
|
+
type: any;
|
|
72
|
+
required: true;
|
|
73
|
+
};
|
|
74
|
+
decorations: {
|
|
75
|
+
type: ArrayConstructor;
|
|
76
|
+
required: true;
|
|
77
|
+
};
|
|
78
|
+
selected: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
required: true;
|
|
81
|
+
};
|
|
82
|
+
extension: {
|
|
83
|
+
type: any;
|
|
84
|
+
required: true;
|
|
85
|
+
};
|
|
86
|
+
getPos: {
|
|
87
|
+
type: FunctionConstructor;
|
|
88
|
+
required: true;
|
|
89
|
+
};
|
|
90
|
+
updateAttributes: {
|
|
91
|
+
type: FunctionConstructor;
|
|
92
|
+
required: true;
|
|
93
|
+
};
|
|
94
|
+
deleteNode: {
|
|
95
|
+
type: FunctionConstructor;
|
|
96
|
+
required: true;
|
|
97
|
+
};
|
|
98
|
+
}>>, {}>;
|
|
99
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type PropType } from "vue";
|
|
2
|
+
import type { Item } from "./suggestion";
|
|
3
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
|
+
items: {
|
|
5
|
+
type: PropType<Item[]>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
command: {
|
|
9
|
+
type: PropType<(item: Item) => void>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
props: any;
|
|
14
|
+
selectedIndex: import("vue").Ref<number>;
|
|
15
|
+
onKeyDown: ({ event }: {
|
|
16
|
+
event: KeyboardEvent;
|
|
17
|
+
}) => boolean;
|
|
18
|
+
handleKeyUp: () => void;
|
|
19
|
+
handleKeyDown: () => void;
|
|
20
|
+
handleKeyEnter: () => void;
|
|
21
|
+
handleSelectItem: (index: number) => void;
|
|
22
|
+
scrollToSelected: () => void;
|
|
23
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
+
items: {
|
|
25
|
+
type: PropType<Item[]>;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
command: {
|
|
29
|
+
type: PropType<(item: Item) => void>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
}>>, {}>;
|
|
33
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type Editor, type Range } from "@tiptap/vue-3";
|
|
2
|
+
import { type Component } from "vue";
|
|
3
|
+
import type { SuggestionOptions } from "@tiptap/suggestion";
|
|
4
|
+
export interface Item {
|
|
5
|
+
icon: Component;
|
|
6
|
+
title: string;
|
|
7
|
+
keywords: string[];
|
|
8
|
+
command: ({ editor, range }: {
|
|
9
|
+
editor: Editor;
|
|
10
|
+
range: Range;
|
|
11
|
+
}) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const CommentParagraph: Item;
|
|
14
|
+
export declare const CommandHeader1: Item;
|
|
15
|
+
export declare const CommandHeader2: Item;
|
|
16
|
+
export declare const CommandHeader3: Item;
|
|
17
|
+
export declare const CommandHeader4: Item;
|
|
18
|
+
export declare const CommandHeader5: Item;
|
|
19
|
+
export declare const CommandHeader6: Item;
|
|
20
|
+
export declare const CommandCodeBlock: Item;
|
|
21
|
+
export declare const CommandIframe: Item;
|
|
22
|
+
export declare const CommandVideo: Item;
|
|
23
|
+
export declare const CommandAudio: Item;
|
|
24
|
+
export declare const CommandTable: Item;
|
|
25
|
+
export declare const CommandBulletList: Item;
|
|
26
|
+
export declare const CommandOrderedList: Item;
|
|
27
|
+
export declare const CommandTaskList: Item;
|
|
28
|
+
declare const _default: Omit<SuggestionOptions<Item>, "editor">;
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
+
editor: {
|
|
3
|
+
type: any;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
node: {
|
|
7
|
+
type: any;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
decorations: {
|
|
11
|
+
type: ArrayConstructor;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
selected: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
extension: {
|
|
19
|
+
type: any;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
getPos: {
|
|
23
|
+
type: FunctionConstructor;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
updateAttributes: {
|
|
27
|
+
type: FunctionConstructor;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
deleteNode: {
|
|
31
|
+
type: FunctionConstructor;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
}, {
|
|
35
|
+
props: any;
|
|
36
|
+
src: import("vue").WritableComputedRef<any>;
|
|
37
|
+
width: import("vue").WritableComputedRef<any>;
|
|
38
|
+
height: import("vue").WritableComputedRef<any>;
|
|
39
|
+
frameborder: import("vue").ComputedRef<any>;
|
|
40
|
+
handleSetFocus: () => void;
|
|
41
|
+
handleSetSize: (width: string, height: string) => void;
|
|
42
|
+
handleToggleFrameborder: () => void;
|
|
43
|
+
sizeMatch: (width: string, height: string) => boolean;
|
|
44
|
+
handleOpenLink: () => void;
|
|
45
|
+
readonly NodeViewWrapper: import("vue").DefineComponent<{
|
|
46
|
+
as: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
51
|
+
as: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
}>>, {
|
|
56
|
+
as: string;
|
|
57
|
+
}>;
|
|
58
|
+
BlockCard: any;
|
|
59
|
+
BlockActionButton: any;
|
|
60
|
+
BlockActionInput: any;
|
|
61
|
+
BlockActionSeparator: any;
|
|
62
|
+
readonly MdiLinkVariant: any;
|
|
63
|
+
readonly MdiCellphoneIphone: any;
|
|
64
|
+
readonly MdiTabletIpad: any;
|
|
65
|
+
readonly MdiDesktopMac: any;
|
|
66
|
+
readonly MdiBorderAllVariant: any;
|
|
67
|
+
readonly MdiBorderNoneVariant: any;
|
|
68
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
69
|
+
editor: {
|
|
70
|
+
type: any;
|
|
71
|
+
required: true;
|
|
72
|
+
};
|
|
73
|
+
node: {
|
|
74
|
+
type: any;
|
|
75
|
+
required: true;
|
|
76
|
+
};
|
|
77
|
+
decorations: {
|
|
78
|
+
type: ArrayConstructor;
|
|
79
|
+
required: true;
|
|
80
|
+
};
|
|
81
|
+
selected: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
required: true;
|
|
84
|
+
};
|
|
85
|
+
extension: {
|
|
86
|
+
type: any;
|
|
87
|
+
required: true;
|
|
88
|
+
};
|
|
89
|
+
getPos: {
|
|
90
|
+
type: FunctionConstructor;
|
|
91
|
+
required: true;
|
|
92
|
+
};
|
|
93
|
+
updateAttributes: {
|
|
94
|
+
type: FunctionConstructor;
|
|
95
|
+
required: true;
|
|
96
|
+
};
|
|
97
|
+
deleteNode: {
|
|
98
|
+
type: FunctionConstructor;
|
|
99
|
+
required: true;
|
|
100
|
+
};
|
|
101
|
+
}>>, {}>;
|
|
102
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Node } from "@tiptap/core";
|
|
2
|
+
declare module "@tiptap/core" {
|
|
3
|
+
interface Commands<ReturnType> {
|
|
4
|
+
iframe: {
|
|
5
|
+
setIframe: (options: {
|
|
6
|
+
src: string;
|
|
7
|
+
}) => ReturnType;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
declare const Iframe: Node<any, any>;
|
|
12
|
+
export default Iframe;
|