@halo-dev/richtext-editor 0.0.0-alpha.30 → 0.0.0-alpha.32
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 +13 -134
- package/dist/components/EditorBubbleMenu.vue.d.ts +4 -89
- package/dist/components/EditorHeader.vue.d.ts +5 -11
- package/dist/components/block/BlockActionButton.vue.d.ts +16 -13
- package/dist/components/block/BlockActionInput.vue.d.ts +13 -17
- package/dist/components/block/BlockActionSeparator.vue.d.ts +1 -1
- package/dist/components/block/BlockCard.vue.d.ts +29 -51
- package/dist/components/bubble/BubbleItem.vue.d.ts +74 -45
- package/dist/components/bubble/BubbleMenuPlugin.d.ts +53 -0
- package/dist/components/common/ColorPickerDropdown.vue.d.ts +26 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/toolbar/ToolbarItem.vue.d.ts +33 -42
- package/dist/components/toolbar/ToolbarSubItem.vue.d.ts +33 -45
- package/dist/components/toolbox/ToolboxItem.vue.d.ts +33 -44
- package/dist/extensions/audio/AudioView.vue.d.ts +25 -56
- package/dist/extensions/audio/BubbleItemAudioLink.vue.d.ts +58 -0
- package/dist/extensions/audio/index.d.ts +1 -0
- package/dist/extensions/blockquote/index.d.ts +3 -1
- package/dist/extensions/bold/index.d.ts +3 -1
- package/dist/extensions/bullet-list/index.d.ts +3 -1
- package/dist/extensions/code/index.d.ts +3 -1
- package/dist/extensions/code-block/CodeBlockViewRenderer.vue.d.ts +25 -53
- package/dist/extensions/code-block/code-block.d.ts +1 -1
- package/dist/extensions/code-block/lowlight.d.ts +15 -1
- package/dist/extensions/color/ColorBubbleItem.vue.d.ts +38 -58
- package/dist/extensions/color/ColorToolbarItem.vue.d.ts +40 -57
- package/dist/extensions/color/index.d.ts +3 -1
- package/dist/extensions/columns/column.d.ts +3 -0
- package/dist/extensions/columns/columns.d.ts +15 -0
- package/dist/extensions/columns/index.d.ts +2 -0
- package/dist/extensions/commands-menu/CommandsView.vue.d.ts +8 -14
- package/dist/extensions/commands-menu/commands.d.ts +1 -1
- package/dist/extensions/draggable/index.d.ts +14 -0
- package/dist/extensions/heading/index.d.ts +3 -1
- package/dist/extensions/highlight/HighlightBubbleItem.vue.d.ts +38 -59
- package/dist/extensions/highlight/HighlightToolbarItem.vue.d.ts +40 -58
- package/dist/extensions/highlight/index.d.ts +3 -1
- package/dist/extensions/history/index.d.ts +3 -1
- package/dist/extensions/iframe/BubbleItemIframeLink.vue.d.ts +58 -0
- package/dist/extensions/iframe/BubbleItemIframeSize.vue.d.ts +13 -0
- package/dist/extensions/iframe/IframeView.vue.d.ts +25 -67
- package/dist/extensions/iframe/index.d.ts +1 -0
- package/dist/extensions/image/BubbleItemImageAlt.vue.d.ts +58 -0
- package/dist/extensions/image/BubbleItemImageHref.vue.d.ts +58 -0
- package/dist/extensions/image/BubbleItemImageLink.vue.d.ts +58 -0
- package/dist/extensions/image/BubbleItemImageSize.vue.d.ts +58 -0
- package/dist/extensions/image/ImageView.vue.d.ts +25 -74
- package/dist/extensions/image/index.d.ts +3 -1
- package/dist/extensions/index.d.ts +7 -3
- package/dist/extensions/italic/index.d.ts +3 -1
- package/dist/extensions/link/LinkBubbleButton.vue.d.ts +36 -53
- package/dist/extensions/link/index.d.ts +3 -1
- package/dist/extensions/node-selected/index.d.ts +6 -0
- package/dist/extensions/ordered-list/index.d.ts +3 -1
- package/dist/extensions/paragraph/index.d.ts +4 -0
- package/dist/extensions/strike/index.d.ts +3 -1
- package/dist/extensions/subscript/index.d.ts +3 -1
- package/dist/extensions/superscript/index.d.ts +3 -1
- package/dist/extensions/table/index.d.ts +3 -1
- package/dist/extensions/table/table-cell.d.ts +6 -0
- package/dist/extensions/table/table-header.d.ts +6 -0
- package/dist/extensions/table/table-row.d.ts +2 -0
- package/dist/extensions/table/util.d.ts +27 -0
- package/dist/extensions/task-list/index.d.ts +3 -1
- package/dist/extensions/text/index.d.ts +3 -0
- package/dist/extensions/text-align/index.d.ts +3 -1
- package/dist/extensions/trailing-node/index.d.ts +9 -0
- package/dist/extensions/underline/index.d.ts +3 -1
- package/dist/extensions/video/BubbleItemVideoLink.vue.d.ts +58 -0
- package/dist/extensions/video/BubbleItemVideoSize.vue.d.ts +58 -0
- package/dist/extensions/video/VideoView.vue.d.ts +25 -71
- package/dist/extensions/video/index.d.ts +1 -0
- package/dist/rich-text-editor.es.js +9629 -7494
- package/dist/rich-text-editor.es.js.map +1 -1
- package/dist/rich-text-editor.iife.js +8867 -6732
- package/dist/rich-text-editor.iife.js.map +1 -1
- package/dist/style.css +334 -53
- package/dist/types/index.d.ts +117 -0
- package/dist/utils/delete-node.d.ts +2 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +51 -54
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Editor } from "@tiptap/core";
|
|
2
|
+
import { EditorState, Plugin, PluginKey } from "@tiptap/pm/state";
|
|
3
|
+
import type { EditorView } from "@tiptap/pm/view";
|
|
4
|
+
import { type Instance, type Props } from "tippy.js";
|
|
5
|
+
export interface TippyOptionProps extends Props {
|
|
6
|
+
fixed?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface BubbleMenuPluginProps {
|
|
9
|
+
pluginKey: PluginKey | string;
|
|
10
|
+
editor: Editor;
|
|
11
|
+
element: HTMLElement;
|
|
12
|
+
tippyOptions?: Partial<TippyOptionProps>;
|
|
13
|
+
updateDelay?: number;
|
|
14
|
+
shouldShow?: ((props: {
|
|
15
|
+
editor: Editor;
|
|
16
|
+
state: EditorState;
|
|
17
|
+
node?: HTMLElement;
|
|
18
|
+
view?: EditorView;
|
|
19
|
+
oldState?: EditorState;
|
|
20
|
+
from?: number;
|
|
21
|
+
to?: number;
|
|
22
|
+
}) => boolean) | null;
|
|
23
|
+
getRenderContainer?: (node: HTMLElement) => HTMLElement;
|
|
24
|
+
defaultAnimation?: boolean;
|
|
25
|
+
}
|
|
26
|
+
export type BubbleMenuViewProps = BubbleMenuPluginProps & {
|
|
27
|
+
view: EditorView;
|
|
28
|
+
};
|
|
29
|
+
export declare class BubbleMenuView {
|
|
30
|
+
editor: Editor;
|
|
31
|
+
element: HTMLElement;
|
|
32
|
+
view: EditorView;
|
|
33
|
+
preventHide: boolean;
|
|
34
|
+
tippy: Instance<TippyOptionProps> | undefined;
|
|
35
|
+
tippyOptions?: Partial<TippyOptionProps>;
|
|
36
|
+
getRenderContainer?: BubbleMenuPluginProps["getRenderContainer"];
|
|
37
|
+
defaultAnimation?: BubbleMenuPluginProps["defaultAnimation"];
|
|
38
|
+
shouldShow: Exclude<BubbleMenuPluginProps["shouldShow"], null>;
|
|
39
|
+
constructor({ editor, element, view, tippyOptions, shouldShow, getRenderContainer, defaultAnimation, }: BubbleMenuViewProps);
|
|
40
|
+
mousedownHandler: () => void;
|
|
41
|
+
dragstartHandler: () => void;
|
|
42
|
+
blurHandler: ({ event }: {
|
|
43
|
+
event: FocusEvent;
|
|
44
|
+
}) => void;
|
|
45
|
+
createTooltip(): void;
|
|
46
|
+
update(view: EditorView, oldState?: EditorState): void;
|
|
47
|
+
addActiveBubbleMenu: () => void;
|
|
48
|
+
removeActiveBubbleMenu: () => void;
|
|
49
|
+
show(): void;
|
|
50
|
+
hide(): void;
|
|
51
|
+
destroy(): void;
|
|
52
|
+
}
|
|
53
|
+
export declare const BubbleMenuPlugin: (options: BubbleMenuPluginProps) => Plugin<any>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
|
+
modelValue: {
|
|
3
|
+
type: import("vue").PropType<string>;
|
|
4
|
+
default: undefined;
|
|
5
|
+
};
|
|
6
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
"update:modelValue": (value?: string | undefined) => void;
|
|
8
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
+
modelValue: {
|
|
10
|
+
type: import("vue").PropType<string>;
|
|
11
|
+
default: undefined;
|
|
12
|
+
};
|
|
13
|
+
}>> & {
|
|
14
|
+
"onUpdate:modelValue"?: ((value?: string | undefined) => any) | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
modelValue: string;
|
|
17
|
+
}, {}>, {
|
|
18
|
+
default?(_: {}): any;
|
|
19
|
+
prefix?(_: {}): any;
|
|
20
|
+
}>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -3,6 +3,7 @@ export { default as BlockActionInput } from "./block/BlockActionInput.vue";
|
|
|
3
3
|
export { default as BlockActionSeparator } from "./block/BlockActionSeparator.vue";
|
|
4
4
|
export { default as BlockCard } from "./block/BlockCard.vue";
|
|
5
5
|
export { default as BubbleItem } from "./bubble/BubbleItem.vue";
|
|
6
|
+
export { default as NodeBubbleMenu } from "./bubble/BubbleMenu.vue";
|
|
6
7
|
export { default as ToolbarItem } from "./toolbar/ToolbarItem.vue";
|
|
7
8
|
export { default as ToolbarSubItem } from "./toolbar/ToolbarSubItem.vue";
|
|
8
9
|
export { default as ToolboxItem } from "./toolbox/ToolboxItem.vue";
|
|
@@ -1,60 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
default:
|
|
1
|
+
import type { Component } from "vue";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
title: {
|
|
4
|
+
type: import("vue").PropType<string>;
|
|
5
|
+
default: undefined;
|
|
6
6
|
};
|
|
7
7
|
disabled: {
|
|
8
|
-
type:
|
|
9
|
-
required: false;
|
|
8
|
+
type: import("vue").PropType<boolean>;
|
|
10
9
|
default: boolean;
|
|
11
10
|
};
|
|
12
|
-
|
|
13
|
-
type:
|
|
14
|
-
|
|
15
|
-
default: any;
|
|
16
|
-
};
|
|
17
|
-
action: {
|
|
18
|
-
type: FunctionConstructor;
|
|
19
|
-
required: false;
|
|
20
|
-
default: any;
|
|
11
|
+
isActive: {
|
|
12
|
+
type: import("vue").PropType<boolean>;
|
|
13
|
+
default: boolean;
|
|
21
14
|
};
|
|
22
15
|
icon: {
|
|
23
|
-
type:
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
type: import("vue").PropType<Component>;
|
|
17
|
+
default: undefined;
|
|
18
|
+
};
|
|
19
|
+
action: {
|
|
20
|
+
type: import("vue").PropType<() => void>;
|
|
21
|
+
default: undefined;
|
|
26
22
|
};
|
|
27
23
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
-
|
|
29
|
-
type:
|
|
30
|
-
|
|
31
|
-
default: boolean;
|
|
24
|
+
title: {
|
|
25
|
+
type: import("vue").PropType<string>;
|
|
26
|
+
default: undefined;
|
|
32
27
|
};
|
|
33
28
|
disabled: {
|
|
34
|
-
type:
|
|
35
|
-
required: false;
|
|
29
|
+
type: import("vue").PropType<boolean>;
|
|
36
30
|
default: boolean;
|
|
37
31
|
};
|
|
38
|
-
|
|
39
|
-
type:
|
|
40
|
-
|
|
41
|
-
default: any;
|
|
42
|
-
};
|
|
43
|
-
action: {
|
|
44
|
-
type: FunctionConstructor;
|
|
45
|
-
required: false;
|
|
46
|
-
default: any;
|
|
32
|
+
isActive: {
|
|
33
|
+
type: import("vue").PropType<boolean>;
|
|
34
|
+
default: boolean;
|
|
47
35
|
};
|
|
48
36
|
icon: {
|
|
49
|
-
type:
|
|
50
|
-
|
|
51
|
-
|
|
37
|
+
type: import("vue").PropType<Component>;
|
|
38
|
+
default: undefined;
|
|
39
|
+
};
|
|
40
|
+
action: {
|
|
41
|
+
type: import("vue").PropType<() => void>;
|
|
42
|
+
default: undefined;
|
|
52
43
|
};
|
|
53
44
|
}>>, {
|
|
54
45
|
title: string;
|
|
55
|
-
isActive: boolean;
|
|
56
|
-
action: Function;
|
|
57
|
-
icon: any;
|
|
58
46
|
disabled: boolean;
|
|
59
|
-
|
|
60
|
-
|
|
47
|
+
isActive: boolean;
|
|
48
|
+
icon: Component;
|
|
49
|
+
action: () => void;
|
|
50
|
+
}, {}>;
|
|
51
|
+
export default _default;
|
|
@@ -1,63 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
default:
|
|
1
|
+
import type { Component } from "vue";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
title: {
|
|
4
|
+
type: import("vue").PropType<string>;
|
|
5
|
+
default: undefined;
|
|
6
6
|
};
|
|
7
7
|
disabled: {
|
|
8
|
-
type:
|
|
9
|
-
required: false;
|
|
8
|
+
type: import("vue").PropType<boolean>;
|
|
10
9
|
default: boolean;
|
|
11
10
|
};
|
|
12
|
-
|
|
13
|
-
type:
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
isActive: {
|
|
12
|
+
type: import("vue").PropType<boolean>;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
icon: {
|
|
16
|
+
type: import("vue").PropType<Component>;
|
|
17
|
+
default: undefined;
|
|
16
18
|
};
|
|
17
19
|
action: {
|
|
18
|
-
type:
|
|
19
|
-
|
|
20
|
-
default: any;
|
|
20
|
+
type: import("vue").PropType<() => void>;
|
|
21
|
+
default: undefined;
|
|
21
22
|
};
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
default:
|
|
23
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
+
title: {
|
|
25
|
+
type: import("vue").PropType<string>;
|
|
26
|
+
default: undefined;
|
|
26
27
|
};
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
isActive: {
|
|
32
|
-
type: BooleanConstructor;
|
|
33
|
-
required: false;
|
|
28
|
+
disabled: {
|
|
29
|
+
type: import("vue").PropType<boolean>;
|
|
34
30
|
default: boolean;
|
|
35
31
|
};
|
|
36
|
-
|
|
37
|
-
type:
|
|
38
|
-
required: false;
|
|
32
|
+
isActive: {
|
|
33
|
+
type: import("vue").PropType<boolean>;
|
|
39
34
|
default: boolean;
|
|
40
35
|
};
|
|
41
|
-
|
|
42
|
-
type:
|
|
43
|
-
|
|
44
|
-
default: any;
|
|
36
|
+
icon: {
|
|
37
|
+
type: import("vue").PropType<Component>;
|
|
38
|
+
default: undefined;
|
|
45
39
|
};
|
|
46
40
|
action: {
|
|
47
|
-
type:
|
|
48
|
-
|
|
49
|
-
default: any;
|
|
50
|
-
};
|
|
51
|
-
icon: {
|
|
52
|
-
type: any;
|
|
53
|
-
required: false;
|
|
54
|
-
default: any;
|
|
41
|
+
type: import("vue").PropType<() => void>;
|
|
42
|
+
default: undefined;
|
|
55
43
|
};
|
|
56
44
|
}>>, {
|
|
57
45
|
title: string;
|
|
58
|
-
isActive: boolean;
|
|
59
|
-
action: Function;
|
|
60
|
-
icon: any;
|
|
61
46
|
disabled: boolean;
|
|
62
|
-
|
|
63
|
-
|
|
47
|
+
isActive: boolean;
|
|
48
|
+
icon: Component;
|
|
49
|
+
action: () => void;
|
|
50
|
+
}, {}>;
|
|
51
|
+
export default _default;
|
|
@@ -1,63 +1,52 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Component } from "vue";
|
|
2
|
+
import type { Editor } from "@tiptap/core";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
4
|
editor: {
|
|
3
|
-
type:
|
|
4
|
-
|
|
5
|
-
default: any;
|
|
5
|
+
type: import("vue").PropType<Editor>;
|
|
6
|
+
default: undefined;
|
|
6
7
|
};
|
|
7
8
|
title: {
|
|
8
|
-
type:
|
|
9
|
-
|
|
10
|
-
default: any;
|
|
9
|
+
type: import("vue").PropType<string>;
|
|
10
|
+
default: undefined;
|
|
11
11
|
};
|
|
12
|
-
|
|
13
|
-
type:
|
|
14
|
-
|
|
15
|
-
default: any;
|
|
12
|
+
icon: {
|
|
13
|
+
type: import("vue").PropType<Component>;
|
|
14
|
+
default: undefined;
|
|
16
15
|
};
|
|
17
16
|
action: {
|
|
18
|
-
type:
|
|
19
|
-
|
|
20
|
-
default: any;
|
|
17
|
+
type: import("vue").PropType<() => void>;
|
|
18
|
+
default: undefined;
|
|
21
19
|
};
|
|
22
|
-
|
|
23
|
-
type:
|
|
24
|
-
|
|
25
|
-
default: any;
|
|
20
|
+
description: {
|
|
21
|
+
type: import("vue").PropType<string>;
|
|
22
|
+
default: undefined;
|
|
26
23
|
};
|
|
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<{
|
|
24
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
25
|
editor: {
|
|
32
|
-
type:
|
|
33
|
-
|
|
34
|
-
default: any;
|
|
26
|
+
type: import("vue").PropType<Editor>;
|
|
27
|
+
default: undefined;
|
|
35
28
|
};
|
|
36
29
|
title: {
|
|
37
|
-
type:
|
|
38
|
-
|
|
39
|
-
default: any;
|
|
30
|
+
type: import("vue").PropType<string>;
|
|
31
|
+
default: undefined;
|
|
40
32
|
};
|
|
41
|
-
|
|
42
|
-
type:
|
|
43
|
-
|
|
44
|
-
default: any;
|
|
33
|
+
icon: {
|
|
34
|
+
type: import("vue").PropType<Component>;
|
|
35
|
+
default: undefined;
|
|
45
36
|
};
|
|
46
37
|
action: {
|
|
47
|
-
type:
|
|
48
|
-
|
|
49
|
-
default: any;
|
|
38
|
+
type: import("vue").PropType<() => void>;
|
|
39
|
+
default: undefined;
|
|
50
40
|
};
|
|
51
|
-
|
|
52
|
-
type:
|
|
53
|
-
|
|
54
|
-
default: any;
|
|
41
|
+
description: {
|
|
42
|
+
type: import("vue").PropType<string>;
|
|
43
|
+
default: undefined;
|
|
55
44
|
};
|
|
56
45
|
}>>, {
|
|
57
|
-
editor:
|
|
46
|
+
editor: Editor;
|
|
58
47
|
title: string;
|
|
59
|
-
|
|
60
|
-
|
|
48
|
+
icon: Component;
|
|
49
|
+
action: () => void;
|
|
61
50
|
description: string;
|
|
62
|
-
}>;
|
|
63
|
-
export default
|
|
51
|
+
}, {}>;
|
|
52
|
+
export default _default;
|
|
@@ -1,102 +1,71 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Node as ProseMirrorNode } from "@tiptap/pm/model";
|
|
2
|
+
import type { Decoration } from "@tiptap/pm/view";
|
|
3
|
+
import type { Editor, Node } from "@tiptap/core";
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
5
|
editor: {
|
|
3
|
-
type:
|
|
6
|
+
type: import("vue").PropType<Editor>;
|
|
4
7
|
required: true;
|
|
5
8
|
};
|
|
6
9
|
node: {
|
|
7
|
-
type:
|
|
10
|
+
type: import("vue").PropType<ProseMirrorNode>;
|
|
8
11
|
required: true;
|
|
9
12
|
};
|
|
10
13
|
decorations: {
|
|
11
|
-
type:
|
|
14
|
+
type: import("vue").PropType<Decoration[]>;
|
|
12
15
|
required: true;
|
|
13
16
|
};
|
|
14
17
|
selected: {
|
|
15
|
-
type:
|
|
18
|
+
type: import("vue").PropType<boolean>;
|
|
16
19
|
required: true;
|
|
17
20
|
};
|
|
18
21
|
extension: {
|
|
19
|
-
type: any
|
|
22
|
+
type: import("vue").PropType<Node<any, any>>;
|
|
20
23
|
required: true;
|
|
21
24
|
};
|
|
22
25
|
getPos: {
|
|
23
|
-
type:
|
|
26
|
+
type: import("vue").PropType<() => number>;
|
|
24
27
|
required: true;
|
|
25
28
|
};
|
|
26
29
|
updateAttributes: {
|
|
27
|
-
type:
|
|
30
|
+
type: import("vue").PropType<(attributes: Record<string, any>) => void>;
|
|
28
31
|
required: true;
|
|
29
32
|
};
|
|
30
33
|
deleteNode: {
|
|
31
|
-
type:
|
|
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
|
-
inputRef: import("vue").Ref<any>;
|
|
44
|
-
readonly NodeViewWrapper: import("vue").DefineComponent<{
|
|
45
|
-
as: {
|
|
46
|
-
type: StringConstructor;
|
|
47
|
-
default: string;
|
|
48
|
-
};
|
|
49
|
-
}, 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<{
|
|
50
|
-
as: {
|
|
51
|
-
type: StringConstructor;
|
|
52
|
-
default: string;
|
|
53
|
-
};
|
|
54
|
-
}>>, {
|
|
55
|
-
as: string;
|
|
56
|
-
}>;
|
|
57
|
-
readonly VDropdown: any;
|
|
58
|
-
BlockCard: any;
|
|
59
|
-
BlockActionButton: any;
|
|
60
|
-
BlockActionSeparator: any;
|
|
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>;
|
|
67
|
-
readonly i18n: any;
|
|
68
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
+
type: import("vue").PropType<() => void>;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
69
38
|
editor: {
|
|
70
|
-
type:
|
|
39
|
+
type: import("vue").PropType<Editor>;
|
|
71
40
|
required: true;
|
|
72
41
|
};
|
|
73
42
|
node: {
|
|
74
|
-
type:
|
|
43
|
+
type: import("vue").PropType<ProseMirrorNode>;
|
|
75
44
|
required: true;
|
|
76
45
|
};
|
|
77
46
|
decorations: {
|
|
78
|
-
type:
|
|
47
|
+
type: import("vue").PropType<Decoration[]>;
|
|
79
48
|
required: true;
|
|
80
49
|
};
|
|
81
50
|
selected: {
|
|
82
|
-
type:
|
|
51
|
+
type: import("vue").PropType<boolean>;
|
|
83
52
|
required: true;
|
|
84
53
|
};
|
|
85
54
|
extension: {
|
|
86
|
-
type: any
|
|
55
|
+
type: import("vue").PropType<Node<any, any>>;
|
|
87
56
|
required: true;
|
|
88
57
|
};
|
|
89
58
|
getPos: {
|
|
90
|
-
type:
|
|
59
|
+
type: import("vue").PropType<() => number>;
|
|
91
60
|
required: true;
|
|
92
61
|
};
|
|
93
62
|
updateAttributes: {
|
|
94
|
-
type:
|
|
63
|
+
type: import("vue").PropType<(attributes: Record<string, any>) => void>;
|
|
95
64
|
required: true;
|
|
96
65
|
};
|
|
97
66
|
deleteNode: {
|
|
98
|
-
type:
|
|
67
|
+
type: import("vue").PropType<() => void>;
|
|
99
68
|
required: true;
|
|
100
69
|
};
|
|
101
|
-
}>>, {}>;
|
|
102
|
-
export default
|
|
70
|
+
}>>, {}, {}>;
|
|
71
|
+
export default _default;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { Editor } from "@tiptap/core";
|
|
2
|
+
import { type Component } from "vue";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
editor: {
|
|
5
|
+
type: import("vue").PropType<Editor>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
isActive: {
|
|
9
|
+
type: import("vue").PropType<({ editor }: {
|
|
10
|
+
editor: Editor;
|
|
11
|
+
}) => boolean>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
visible: {
|
|
15
|
+
type: import("vue").PropType<({ editor }: {
|
|
16
|
+
editor: Editor;
|
|
17
|
+
}) => boolean>;
|
|
18
|
+
};
|
|
19
|
+
icon: {
|
|
20
|
+
type: import("vue").PropType<Component>;
|
|
21
|
+
};
|
|
22
|
+
title: {
|
|
23
|
+
type: import("vue").PropType<string>;
|
|
24
|
+
};
|
|
25
|
+
action: {
|
|
26
|
+
type: import("vue").PropType<({ editor }: {
|
|
27
|
+
editor: Editor;
|
|
28
|
+
}) => void>;
|
|
29
|
+
};
|
|
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: import("vue").PropType<Editor>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
isActive: {
|
|
36
|
+
type: import("vue").PropType<({ editor }: {
|
|
37
|
+
editor: Editor;
|
|
38
|
+
}) => boolean>;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
visible: {
|
|
42
|
+
type: import("vue").PropType<({ editor }: {
|
|
43
|
+
editor: Editor;
|
|
44
|
+
}) => boolean>;
|
|
45
|
+
};
|
|
46
|
+
icon: {
|
|
47
|
+
type: import("vue").PropType<Component>;
|
|
48
|
+
};
|
|
49
|
+
title: {
|
|
50
|
+
type: import("vue").PropType<string>;
|
|
51
|
+
};
|
|
52
|
+
action: {
|
|
53
|
+
type: import("vue").PropType<({ editor }: {
|
|
54
|
+
editor: Editor;
|
|
55
|
+
}) => void>;
|
|
56
|
+
};
|
|
57
|
+
}>>, {}, {}>;
|
|
58
|
+
export default _default;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { BlockquoteOptions } from "@tiptap/extension-blockquote";
|
|
2
|
+
import type { ExtensionOptions } from '../../types';
|
|
3
|
+
declare const Blockquote: import("@tiptap/core").Node<ExtensionOptions & BlockquoteOptions, any>;
|
|
2
4
|
export default Blockquote;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { BoldOptions } from "@tiptap/extension-bold";
|
|
2
|
+
import type { ExtensionOptions } from '../../types';
|
|
3
|
+
declare const Bold: import("@tiptap/core").Mark<ExtensionOptions & BoldOptions, any>;
|
|
2
4
|
export default Bold;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { BulletListOptions } from "@tiptap/extension-bullet-list";
|
|
2
|
+
import type { ExtensionOptions } from '../../types';
|
|
3
|
+
declare const BulletList: import("@tiptap/core").Node<ExtensionOptions & BulletListOptions, any>;
|
|
2
4
|
export default BulletList;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { CodeOptions } from "@tiptap/extension-code";
|
|
2
|
+
import type { ExtensionOptions } from '../../types';
|
|
3
|
+
declare const Code: import("@tiptap/core").Mark<ExtensionOptions & CodeOptions, any>;
|
|
2
4
|
export default Code;
|