@halo-dev/richtext-editor 0.0.0-alpha.31 → 0.0.0-alpha.33
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 +43 -1
- package/dist/components/EditorBubbleMenu.vue.d.ts +13 -1
- package/dist/components/EditorHeader.vue.d.ts +12 -1
- package/dist/components/block/BlockActionButton.vue.d.ts +30 -0
- package/dist/components/block/BlockActionInput.vue.d.ts +26 -0
- package/dist/components/block/BlockActionSeparator.vue.d.ts +2 -0
- package/dist/components/block/BlockCard.vue.d.ts +49 -0
- package/dist/components/block/index.d.ts +4 -0
- package/dist/components/bubble/BubbleItem.vue.d.ts +89 -0
- package/dist/components/bubble/BubbleMenuPlugin.d.ts +53 -0
- package/dist/components/bubble/index.d.ts +2 -0
- package/dist/components/common/ColorPickerDropdown.vue.d.ts +26 -0
- package/dist/components/index.d.ts +7 -0
- package/dist/components/toolbar/ToolbarItem.vue.d.ts +51 -0
- package/dist/components/toolbar/ToolbarSubItem.vue.d.ts +51 -0
- package/dist/components/toolbar/index.d.ts +2 -0
- package/dist/components/toolbox/ToolboxItem.vue.d.ts +52 -0
- package/dist/components/toolbox/index.d.ts +1 -0
- package/dist/extensions/audio/AudioView.vue.d.ts +70 -0
- package/dist/extensions/audio/BubbleItemAudioLink.vue.d.ts +58 -0
- package/dist/extensions/audio/index.d.ts +13 -0
- package/dist/extensions/blockquote/index.d.ts +4 -0
- package/dist/extensions/bold/index.d.ts +4 -0
- package/dist/extensions/bullet-list/index.d.ts +4 -0
- package/dist/extensions/code/index.d.ts +4 -0
- package/dist/extensions/code-block/CodeBlockViewRenderer.vue.d.ts +70 -0
- package/dist/extensions/code-block/code-block.d.ts +15 -0
- package/dist/extensions/code-block/index.d.ts +2 -0
- package/dist/extensions/code-block/lowlight.d.ts +16 -0
- package/dist/extensions/color/ColorBubbleItem.vue.d.ts +58 -0
- package/dist/extensions/color/ColorToolbarItem.vue.d.ts +61 -0
- package/dist/extensions/color/index.d.ts +4 -0
- 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 +27 -0
- package/dist/extensions/commands-menu/commands.d.ts +3 -0
- package/dist/extensions/commands-menu/index.d.ts +1 -0
- package/dist/extensions/draggable/index.d.ts +14 -0
- package/dist/extensions/font-size/index.d.ts +14 -0
- package/dist/extensions/heading/index.d.ts +4 -0
- package/dist/extensions/highlight/HighlightBubbleItem.vue.d.ts +58 -0
- package/dist/extensions/highlight/HighlightToolbarItem.vue.d.ts +61 -0
- package/dist/extensions/highlight/index.d.ts +4 -0
- package/dist/extensions/history/index.d.ts +4 -0
- 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 +70 -0
- package/dist/extensions/iframe/index.d.ts +13 -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 +70 -0
- package/dist/extensions/image/index.d.ts +4 -0
- package/dist/extensions/indent/index.d.ts +22 -0
- package/dist/extensions/index.d.ts +39 -0
- package/dist/extensions/italic/index.d.ts +4 -0
- package/dist/extensions/link/LinkBubbleButton.vue.d.ts +58 -0
- package/dist/extensions/link/index.d.ts +4 -0
- package/dist/extensions/node-selected/index.d.ts +6 -0
- package/dist/extensions/ordered-list/index.d.ts +4 -0
- package/dist/extensions/paragraph/index.d.ts +4 -0
- package/dist/extensions/strike/index.d.ts +4 -0
- package/dist/extensions/subscript/index.d.ts +4 -0
- package/dist/extensions/superscript/index.d.ts +4 -0
- package/dist/extensions/table/index.d.ts +4 -0
- 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 +26 -0
- package/dist/extensions/task-list/index.d.ts +4 -0
- package/dist/extensions/text/index.d.ts +3 -0
- package/dist/extensions/text-align/index.d.ts +4 -0
- package/dist/extensions/trailing-node/index.d.ts +9 -0
- package/dist/extensions/underline/index.d.ts +4 -0
- 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 +70 -0
- package/dist/extensions/video/index.d.ts +13 -0
- package/dist/index.d.ts +1 -3
- package/dist/locales/index.d.ts +7 -0
- package/dist/rich-text-editor.es.js +38404 -44119
- package/dist/rich-text-editor.es.js.map +1 -1
- package/dist/rich-text-editor.iife.js +146 -58191
- package/dist/rich-text-editor.iife.js.map +1 -1
- package/dist/style.css +2 -2458
- package/dist/tiptap/core/index.d.ts +1 -0
- package/dist/tiptap/index.d.ts +5 -0
- package/dist/tiptap/pm/index.d.ts +20 -0
- package/dist/tiptap/vue-3/index.d.ts +1 -0
- package/dist/types/index.d.ts +115 -0
- package/dist/utils/delete-node.d.ts +2 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { Editor } from '../../tiptap/vue-3';
|
|
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;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { Editor } from '../../tiptap/vue-3';
|
|
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;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { Editor } from '../../tiptap/vue-3';
|
|
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;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { Editor } from '../../tiptap/vue-3';
|
|
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;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { Editor, Node } from '../../tiptap/vue-3';
|
|
2
|
+
import type { Node as ProseMirrorNode, Decoration } from '../../tiptap/pm';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
editor: {
|
|
5
|
+
type: import("vue").PropType<Editor>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
node: {
|
|
9
|
+
type: import("vue").PropType<ProseMirrorNode>;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
decorations: {
|
|
13
|
+
type: import("vue").PropType<Decoration[]>;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
selected: {
|
|
17
|
+
type: import("vue").PropType<boolean>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
extension: {
|
|
21
|
+
type: import("vue").PropType<Node<any, any>>;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
getPos: {
|
|
25
|
+
type: import("vue").PropType<() => number>;
|
|
26
|
+
required: true;
|
|
27
|
+
};
|
|
28
|
+
updateAttributes: {
|
|
29
|
+
type: import("vue").PropType<(attributes: Record<string, any>) => void>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
deleteNode: {
|
|
33
|
+
type: import("vue").PropType<() => void>;
|
|
34
|
+
required: true;
|
|
35
|
+
};
|
|
36
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
37
|
+
editor: {
|
|
38
|
+
type: import("vue").PropType<Editor>;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
node: {
|
|
42
|
+
type: import("vue").PropType<ProseMirrorNode>;
|
|
43
|
+
required: true;
|
|
44
|
+
};
|
|
45
|
+
decorations: {
|
|
46
|
+
type: import("vue").PropType<Decoration[]>;
|
|
47
|
+
required: true;
|
|
48
|
+
};
|
|
49
|
+
selected: {
|
|
50
|
+
type: import("vue").PropType<boolean>;
|
|
51
|
+
required: true;
|
|
52
|
+
};
|
|
53
|
+
extension: {
|
|
54
|
+
type: import("vue").PropType<Node<any, any>>;
|
|
55
|
+
required: true;
|
|
56
|
+
};
|
|
57
|
+
getPos: {
|
|
58
|
+
type: import("vue").PropType<() => number>;
|
|
59
|
+
required: true;
|
|
60
|
+
};
|
|
61
|
+
updateAttributes: {
|
|
62
|
+
type: import("vue").PropType<(attributes: Record<string, any>) => void>;
|
|
63
|
+
required: true;
|
|
64
|
+
};
|
|
65
|
+
deleteNode: {
|
|
66
|
+
type: import("vue").PropType<() => void>;
|
|
67
|
+
required: true;
|
|
68
|
+
};
|
|
69
|
+
}>>, {}, {}>;
|
|
70
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type KeyboardShortcutCommand, Extension } from '../../tiptap/vue-3';
|
|
2
|
+
declare module "@/tiptap" {
|
|
3
|
+
interface Commands<ReturnType> {
|
|
4
|
+
indent: {
|
|
5
|
+
indent: () => ReturnType;
|
|
6
|
+
outdent: () => ReturnType;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
type IndentOptions = {
|
|
11
|
+
names: Array<string>;
|
|
12
|
+
indentRange: number;
|
|
13
|
+
minIndentLevel: number;
|
|
14
|
+
maxIndentLevel: number;
|
|
15
|
+
defaultIndentLevel: number;
|
|
16
|
+
HTMLAttributes: Record<string, any>;
|
|
17
|
+
};
|
|
18
|
+
declare const Indent: Extension<IndentOptions, never>;
|
|
19
|
+
export declare const clamp: (val: number, min: number, max: number) => number;
|
|
20
|
+
export declare const getIndent: () => KeyboardShortcutCommand;
|
|
21
|
+
export declare const getOutdent: (outdentOnlyAtHead: boolean) => KeyboardShortcutCommand;
|
|
22
|
+
export default Indent;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import ExtensionHistory from "./history";
|
|
2
|
+
import ExtensionHeading from "./heading";
|
|
3
|
+
import ExtensionBold from "./bold";
|
|
4
|
+
import ExtensionItalic from "./italic";
|
|
5
|
+
import ExtensionStrike from "./strike";
|
|
6
|
+
import ExtensionUnderline from "./underline";
|
|
7
|
+
import ExtensionHighlight from "./highlight";
|
|
8
|
+
import ExtensionBlockquote from "./blockquote";
|
|
9
|
+
import ExtensionCode from "./code";
|
|
10
|
+
import ExtensionSuperscript from "./superscript";
|
|
11
|
+
import ExtensionSubscript from "./subscript";
|
|
12
|
+
import ExtensionBulletList from "./bullet-list";
|
|
13
|
+
import ExtensionOrderedList from "./ordered-list";
|
|
14
|
+
import ExtensionTaskList from "./task-list";
|
|
15
|
+
import ExtensionTable from "./table";
|
|
16
|
+
import ExtensionTextAlign from "./text-align";
|
|
17
|
+
import ExtensionLink from "./link";
|
|
18
|
+
import ExtensionColor from "./color";
|
|
19
|
+
import ExtensionFontSize from "./font-size";
|
|
20
|
+
import ExtensionDropcursor from "@tiptap/extension-dropcursor";
|
|
21
|
+
import ExtensionGapcursor from "@tiptap/extension-gapcursor";
|
|
22
|
+
import ExtensionHardBreak from "@tiptap/extension-hard-break";
|
|
23
|
+
import ExtensionHorizontalRule from "@tiptap/extension-horizontal-rule";
|
|
24
|
+
import ExtensionDocument from "@tiptap/extension-document";
|
|
25
|
+
import ExtensionPlaceholder from "@tiptap/extension-placeholder";
|
|
26
|
+
import { ExtensionCommands } from "../extensions/commands-menu";
|
|
27
|
+
import { ExtensionCodeBlock, lowlight } from '../extensions/code-block';
|
|
28
|
+
import ExtensionIframe from "./iframe";
|
|
29
|
+
import ExtensionVideo from "./video";
|
|
30
|
+
import ExtensionAudio from "./audio";
|
|
31
|
+
import ExtensionImage from "./image";
|
|
32
|
+
import ExtensionIndent from "./indent";
|
|
33
|
+
import { ExtensionColumns, ExtensionColumn } from "./columns";
|
|
34
|
+
import ExtensionText from "./text";
|
|
35
|
+
import ExtensionDraggable from "./draggable";
|
|
36
|
+
import ExtensionNodeSelected from "./node-selected";
|
|
37
|
+
import ExtensionTrailingNode from "./trailing-node";
|
|
38
|
+
declare const allExtensions: (import("@tiptap/core").Extension<any, any> | import("@tiptap/core").Node<any, any> | import("@tiptap/core").Mark<import("../types").ExtensionOptions & import("@tiptap/extension-superscript").SuperscriptExtensionOptions, any>)[];
|
|
39
|
+
export { allExtensions, ExtensionBlockquote, ExtensionBold, ExtensionBulletList, ExtensionCode, ExtensionDocument, ExtensionDropcursor, ExtensionGapcursor, ExtensionHardBreak, ExtensionHeading, ExtensionHistory, ExtensionHorizontalRule, ExtensionItalic, ExtensionOrderedList, ExtensionStrike, ExtensionText, ExtensionImage, ExtensionTaskList, ExtensionLink, ExtensionTextAlign, ExtensionUnderline, ExtensionTable, ExtensionSubscript, ExtensionSuperscript, ExtensionPlaceholder, ExtensionHighlight, ExtensionCommands, ExtensionCodeBlock, lowlight, ExtensionIframe, ExtensionVideo, ExtensionAudio, ExtensionColor, ExtensionFontSize, ExtensionIndent, ExtensionDraggable, ExtensionColumns, ExtensionColumn, ExtensionNodeSelected, ExtensionTrailingNode, };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { type Component } from "vue";
|
|
2
|
+
import type { Editor } from '../../tiptap/vue-3';
|
|
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;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { SuperscriptExtensionOptions } from "@tiptap/extension-superscript";
|
|
2
|
+
import type { ExtensionOptions } from '../../types';
|
|
3
|
+
declare const Superscript: import('../../tiptap/vue-3').Mark<ExtensionOptions & SuperscriptExtensionOptions, any>;
|
|
4
|
+
export default Superscript;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Node, CellSelection } from '../../tiptap/pm';
|
|
2
|
+
import type { Selection, Transaction } from '../../tiptap/pm';
|
|
3
|
+
export declare const selectTable: (tr: Transaction) => Transaction;
|
|
4
|
+
export declare const selectColumn: (index: number) => (tr: Transaction) => Transaction;
|
|
5
|
+
export declare const selectRow: (index: number) => (tr: Transaction) => Transaction;
|
|
6
|
+
export declare const getCellsInColumn: (columnIndex: number | number[]) => (selection: Selection) => {
|
|
7
|
+
pos: number;
|
|
8
|
+
start: number;
|
|
9
|
+
node: Node | null | undefined;
|
|
10
|
+
}[] | undefined;
|
|
11
|
+
export declare const getCellsInRow: (rowIndex: number | number[]) => (selection: Selection) => {
|
|
12
|
+
pos: number;
|
|
13
|
+
start: number;
|
|
14
|
+
node: Node | null | undefined;
|
|
15
|
+
}[] | undefined;
|
|
16
|
+
export declare const findTable: (selection: Selection) => {
|
|
17
|
+
pos: number;
|
|
18
|
+
start: number;
|
|
19
|
+
depth: number;
|
|
20
|
+
node: Node;
|
|
21
|
+
} | undefined;
|
|
22
|
+
export declare const isRectSelected: (rect: any) => (selection: CellSelection) => boolean;
|
|
23
|
+
export declare const isCellSelection: (selection: any) => boolean;
|
|
24
|
+
export declare const isColumnSelected: (columnIndex: number) => (selection: any) => boolean;
|
|
25
|
+
export declare const isRowSelected: (rowIndex: number) => (selection: any) => boolean;
|
|
26
|
+
export declare const isTableSelected: (selection: any) => boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Extension } from '../../tiptap/vue-3';
|
|
2
|
+
/**
|
|
3
|
+
* Extension based on:
|
|
4
|
+
* - https://github.com/ueberdosis/tiptap/tree/main/demos/src/Experiments/TrailingNode
|
|
5
|
+
* - https://github.com/ueberdosis/tiptap/blob/v1/packages/tiptap-extensions/src/extensions/TrailingNode.js
|
|
6
|
+
* - https://github.com/remirror/remirror/blob/e0f1bec4a1e8073ce8f5500d62193e52321155b9/packages/prosemirror-trailing-node/src/trailing-node-plugin.ts
|
|
7
|
+
*/
|
|
8
|
+
declare const TrailingNode: Extension<any, any>;
|
|
9
|
+
export default TrailingNode;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { Editor } from '../../tiptap/vue-3';
|
|
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;
|