@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
|
@@ -1,120 +1,71 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Editor, Node } from "@tiptap/core";
|
|
2
|
+
import type { Node as ProseMirrorNode } from "@tiptap/pm/model";
|
|
3
|
+
import type { Decoration } from "@tiptap/pm/view";
|
|
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
|
-
imgScale: import("vue").Ref<number>;
|
|
37
|
-
src: import("vue").WritableComputedRef<any>;
|
|
38
|
-
alt: import("vue").WritableComputedRef<any>;
|
|
39
|
-
width: import("vue").WritableComputedRef<any>;
|
|
40
|
-
height: import("vue").WritableComputedRef<any>;
|
|
41
|
-
resizeRef: import("vue").Ref<HTMLElement>;
|
|
42
|
-
mounted: boolean;
|
|
43
|
-
reuseResizeObserver: () => {
|
|
44
|
-
isSupported: import("vue").ComputedRef<boolean>;
|
|
45
|
-
stop: () => void;
|
|
46
|
-
};
|
|
47
|
-
resizeObserver: {
|
|
48
|
-
isSupported: import("vue").ComputedRef<boolean>;
|
|
49
|
-
stop: () => void;
|
|
50
|
-
};
|
|
51
|
-
resetResizeObserver: () => void;
|
|
52
|
-
handleSetSize: (width?: string, height?: string) => void;
|
|
53
|
-
handleSetFocus: () => void;
|
|
54
|
-
handleOpenLink: () => void;
|
|
55
|
-
inputRef: import("vue").Ref<any>;
|
|
56
|
-
BlockActionButton: any;
|
|
57
|
-
BlockActionInput: any;
|
|
58
|
-
BlockActionSeparator: any;
|
|
59
|
-
BlockCard: any;
|
|
60
|
-
readonly i18n: any;
|
|
61
|
-
readonly NodeViewWrapper: import("vue").DefineComponent<{
|
|
62
|
-
as: {
|
|
63
|
-
type: StringConstructor;
|
|
64
|
-
default: string;
|
|
65
|
-
};
|
|
66
|
-
}, 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<{
|
|
67
|
-
as: {
|
|
68
|
-
type: StringConstructor;
|
|
69
|
-
default: string;
|
|
70
|
-
};
|
|
71
|
-
}>>, {
|
|
72
|
-
as: string;
|
|
73
|
-
}>;
|
|
74
|
-
readonly VDropdown: any;
|
|
75
|
-
readonly MdiBackupRestore: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
|
|
76
|
-
readonly MdiFormatAlignCenter: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
|
|
77
|
-
readonly MdiFormatAlignJustify: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
|
|
78
|
-
readonly MdiFormatAlignLeft: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
|
|
79
|
-
readonly MdiFormatAlignRight: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
|
|
80
|
-
readonly MdiImageSizeSelectActual: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
|
|
81
|
-
readonly MdiImageSizeSelectLarge: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
|
|
82
|
-
readonly MdiImageSizeSelectSmall: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
|
|
83
|
-
readonly MdiLinkVariant: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
|
|
84
|
-
readonly MdiShare: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
|
|
85
|
-
readonly MdiTextBoxEditOutline: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
|
|
86
|
-
}, 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<{
|
|
87
38
|
editor: {
|
|
88
|
-
type:
|
|
39
|
+
type: import("vue").PropType<Editor>;
|
|
89
40
|
required: true;
|
|
90
41
|
};
|
|
91
42
|
node: {
|
|
92
|
-
type:
|
|
43
|
+
type: import("vue").PropType<ProseMirrorNode>;
|
|
93
44
|
required: true;
|
|
94
45
|
};
|
|
95
46
|
decorations: {
|
|
96
|
-
type:
|
|
47
|
+
type: import("vue").PropType<Decoration[]>;
|
|
97
48
|
required: true;
|
|
98
49
|
};
|
|
99
50
|
selected: {
|
|
100
|
-
type:
|
|
51
|
+
type: import("vue").PropType<boolean>;
|
|
101
52
|
required: true;
|
|
102
53
|
};
|
|
103
54
|
extension: {
|
|
104
|
-
type: any
|
|
55
|
+
type: import("vue").PropType<Node<any, any>>;
|
|
105
56
|
required: true;
|
|
106
57
|
};
|
|
107
58
|
getPos: {
|
|
108
|
-
type:
|
|
59
|
+
type: import("vue").PropType<() => number>;
|
|
109
60
|
required: true;
|
|
110
61
|
};
|
|
111
62
|
updateAttributes: {
|
|
112
|
-
type:
|
|
63
|
+
type: import("vue").PropType<(attributes: Record<string, any>) => void>;
|
|
113
64
|
required: true;
|
|
114
65
|
};
|
|
115
66
|
deleteNode: {
|
|
116
|
-
type:
|
|
67
|
+
type: import("vue").PropType<() => void>;
|
|
117
68
|
required: true;
|
|
118
69
|
};
|
|
119
|
-
}>>, {}>;
|
|
120
|
-
export default
|
|
70
|
+
}>>, {}, {}>;
|
|
71
|
+
export default _default;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ImageOptions } from "@tiptap/extension-image";
|
|
2
|
+
import type { ExtensionOptions } from '../../types';
|
|
3
|
+
declare const Image: import("@tiptap/core").Node<ExtensionOptions & ImageOptions, any>;
|
|
2
4
|
export default Image;
|
|
@@ -22,7 +22,6 @@ import ExtensionGapcursor from "@tiptap/extension-gapcursor";
|
|
|
22
22
|
import ExtensionHardBreak from "@tiptap/extension-hard-break";
|
|
23
23
|
import ExtensionHorizontalRule from "@tiptap/extension-horizontal-rule";
|
|
24
24
|
import ExtensionDocument from "@tiptap/extension-document";
|
|
25
|
-
import ExtensionText from "@tiptap/extension-text";
|
|
26
25
|
import ExtensionPlaceholder from "@tiptap/extension-placeholder";
|
|
27
26
|
import { ExtensionCommands } from "../extensions/commands-menu";
|
|
28
27
|
import { ExtensionCodeBlock, lowlight } from '../extensions/code-block';
|
|
@@ -31,5 +30,10 @@ import ExtensionVideo from "./video";
|
|
|
31
30
|
import ExtensionAudio from "./audio";
|
|
32
31
|
import ExtensionImage from "./image";
|
|
33
32
|
import ExtensionIndent from "./indent";
|
|
34
|
-
|
|
35
|
-
|
|
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, };
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { ItalicOptions } from "@tiptap/extension-italic";
|
|
2
|
+
import type { ExtensionOptions } from '../../types';
|
|
3
|
+
declare const Italic: import("@tiptap/core").Mark<ExtensionOptions & ItalicOptions, any>;
|
|
2
4
|
export default Italic;
|
|
@@ -1,75 +1,58 @@
|
|
|
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:
|
|
5
|
+
type: import("vue").PropType<Editor>;
|
|
4
6
|
required: true;
|
|
5
7
|
};
|
|
6
8
|
isActive: {
|
|
7
|
-
type:
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
type: import("vue").PropType<({ editor }: {
|
|
10
|
+
editor: Editor;
|
|
11
|
+
}) => boolean>;
|
|
12
|
+
required: true;
|
|
10
13
|
};
|
|
11
14
|
visible: {
|
|
12
|
-
type:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
type: import("vue").PropType<({ editor }: {
|
|
16
|
+
editor: Editor;
|
|
17
|
+
}) => boolean>;
|
|
18
|
+
};
|
|
19
|
+
icon: {
|
|
20
|
+
type: import("vue").PropType<Component>;
|
|
15
21
|
};
|
|
16
22
|
title: {
|
|
17
|
-
type:
|
|
18
|
-
required: false;
|
|
19
|
-
default: any;
|
|
23
|
+
type: import("vue").PropType<string>;
|
|
20
24
|
};
|
|
21
25
|
action: {
|
|
22
|
-
type:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
26
|
-
icon: {
|
|
27
|
-
type: any;
|
|
28
|
-
required: false;
|
|
29
|
-
default: any;
|
|
26
|
+
type: import("vue").PropType<({ editor }: {
|
|
27
|
+
editor: Editor;
|
|
28
|
+
}) => void>;
|
|
30
29
|
};
|
|
31
|
-
}, {
|
|
32
|
-
props: any;
|
|
33
|
-
href: import("vue").WritableComputedRef<any>;
|
|
34
|
-
target: import("vue").WritableComputedRef<boolean>;
|
|
35
|
-
readonly VDropdown: any;
|
|
36
|
-
readonly MdiLinkVariant: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
|
|
37
|
-
readonly i18n: any;
|
|
38
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
39
31
|
editor: {
|
|
40
|
-
type:
|
|
32
|
+
type: import("vue").PropType<Editor>;
|
|
41
33
|
required: true;
|
|
42
34
|
};
|
|
43
35
|
isActive: {
|
|
44
|
-
type:
|
|
45
|
-
|
|
46
|
-
|
|
36
|
+
type: import("vue").PropType<({ editor }: {
|
|
37
|
+
editor: Editor;
|
|
38
|
+
}) => boolean>;
|
|
39
|
+
required: true;
|
|
47
40
|
};
|
|
48
41
|
visible: {
|
|
49
|
-
type:
|
|
50
|
-
|
|
51
|
-
|
|
42
|
+
type: import("vue").PropType<({ editor }: {
|
|
43
|
+
editor: Editor;
|
|
44
|
+
}) => boolean>;
|
|
45
|
+
};
|
|
46
|
+
icon: {
|
|
47
|
+
type: import("vue").PropType<Component>;
|
|
52
48
|
};
|
|
53
49
|
title: {
|
|
54
|
-
type:
|
|
55
|
-
required: false;
|
|
56
|
-
default: any;
|
|
50
|
+
type: import("vue").PropType<string>;
|
|
57
51
|
};
|
|
58
52
|
action: {
|
|
59
|
-
type:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
};
|
|
63
|
-
icon: {
|
|
64
|
-
type: any;
|
|
65
|
-
required: false;
|
|
66
|
-
default: any;
|
|
53
|
+
type: import("vue").PropType<({ editor }: {
|
|
54
|
+
editor: Editor;
|
|
55
|
+
}) => void>;
|
|
67
56
|
};
|
|
68
|
-
}>>, {
|
|
69
|
-
|
|
70
|
-
isActive: boolean;
|
|
71
|
-
visible: boolean;
|
|
72
|
-
action: Function;
|
|
73
|
-
icon: any;
|
|
74
|
-
}>;
|
|
75
|
-
export default _sfc_main;
|
|
57
|
+
}>>, {}, {}>;
|
|
58
|
+
export default _default;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { LinkOptions } from "@tiptap/extension-link";
|
|
2
|
+
import type { ExtensionOptions } from '../../types';
|
|
3
|
+
declare const Link: import("@tiptap/core").Mark<ExtensionOptions & LinkOptions, any>;
|
|
2
4
|
export default Link;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { OrderedListOptions } from "@tiptap/extension-ordered-list";
|
|
2
|
+
import type { ExtensionOptions } from '../../types';
|
|
3
|
+
declare const OrderedList: import("@tiptap/core").Node<ExtensionOptions & OrderedListOptions, any>;
|
|
2
4
|
export default OrderedList;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { StrikeOptions } from "@tiptap/extension-strike";
|
|
2
|
+
import type { ExtensionOptions } from '../../types';
|
|
3
|
+
declare const Strike: import("@tiptap/core").Mark<ExtensionOptions & StrikeOptions, any>;
|
|
2
4
|
export default Strike;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SubscriptExtensionOptions } from "@tiptap/extension-subscript";
|
|
2
|
+
import type { ExtensionOptions } from '../../types';
|
|
3
|
+
declare const Subscript: import("@tiptap/core").Mark<ExtensionOptions & SubscriptExtensionOptions, any>;
|
|
2
4
|
export default Subscript;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SuperscriptExtensionOptions } from "@tiptap/extension-superscript";
|
|
2
|
+
import type { ExtensionOptions } from '../../types';
|
|
3
|
+
declare const Superscript: import("@tiptap/core").Mark<ExtensionOptions & SuperscriptExtensionOptions, any>;
|
|
2
4
|
export default Superscript;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { type TableOptions } from "@tiptap/extension-table";
|
|
2
|
+
import type { ExtensionOptions } from '../../types';
|
|
3
|
+
declare const Table: import("@tiptap/core").Node<ExtensionOptions & TableOptions, any>;
|
|
2
4
|
export default Table;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CellSelection } from "@tiptap/pm/tables";
|
|
2
|
+
import type { Selection, Transaction } from "@tiptap/pm/state";
|
|
3
|
+
import { Node } from "@tiptap/pm/model";
|
|
4
|
+
export declare const selectTable: (tr: Transaction) => Transaction;
|
|
5
|
+
export declare const selectColumn: (index: number) => (tr: Transaction) => Transaction;
|
|
6
|
+
export declare const selectRow: (index: number) => (tr: Transaction) => Transaction;
|
|
7
|
+
export declare const getCellsInColumn: (columnIndex: number | number[]) => (selection: Selection) => {
|
|
8
|
+
pos: number;
|
|
9
|
+
start: number;
|
|
10
|
+
node: Node | null | undefined;
|
|
11
|
+
}[] | undefined;
|
|
12
|
+
export declare const getCellsInRow: (rowIndex: number | number[]) => (selection: Selection) => {
|
|
13
|
+
pos: number;
|
|
14
|
+
start: number;
|
|
15
|
+
node: Node | null | undefined;
|
|
16
|
+
}[] | undefined;
|
|
17
|
+
export declare const findTable: (selection: Selection) => {
|
|
18
|
+
pos: number;
|
|
19
|
+
start: number;
|
|
20
|
+
depth: number;
|
|
21
|
+
node: Node;
|
|
22
|
+
} | undefined;
|
|
23
|
+
export declare const isRectSelected: (rect: any) => (selection: CellSelection) => boolean;
|
|
24
|
+
export declare const isCellSelection: (selection: any) => boolean;
|
|
25
|
+
export declare const isColumnSelected: (columnIndex: number) => (selection: any) => boolean;
|
|
26
|
+
export declare const isRowSelected: (rowIndex: number) => (selection: any) => boolean;
|
|
27
|
+
export declare const isTableSelected: (selection: any) => boolean;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { TaskListOptions } from "@tiptap/extension-task-list";
|
|
2
|
+
import type { ExtensionOptions } from '../../types';
|
|
3
|
+
declare const TaskList: import("@tiptap/core").Node<ExtensionOptions & TaskListOptions, any>;
|
|
2
4
|
export default TaskList;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { TextAlignOptions } from "@tiptap/extension-text-align";
|
|
2
|
+
import type { ExtensionOptions } from '../../types';
|
|
3
|
+
declare const TextAlign: import("@tiptap/core").Extension<ExtensionOptions & TextAlignOptions, any>;
|
|
2
4
|
export default TextAlign;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Extension } from "@tiptap/core";
|
|
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;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import type { UnderlineOptions } from "@tiptap/extension-underline";
|
|
2
|
+
import type { ExtensionOptions } from '../../types';
|
|
3
|
+
declare const Underline: import("@tiptap/core").Mark<ExtensionOptions & UnderlineOptions, any>;
|
|
2
4
|
export default Underline;
|
|
@@ -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;
|
|
@@ -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;
|