@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.
Files changed (81) hide show
  1. package/dist/components/Editor.vue.d.ts +13 -134
  2. package/dist/components/EditorBubbleMenu.vue.d.ts +4 -89
  3. package/dist/components/EditorHeader.vue.d.ts +5 -11
  4. package/dist/components/block/BlockActionButton.vue.d.ts +16 -13
  5. package/dist/components/block/BlockActionInput.vue.d.ts +13 -17
  6. package/dist/components/block/BlockActionSeparator.vue.d.ts +1 -1
  7. package/dist/components/block/BlockCard.vue.d.ts +29 -51
  8. package/dist/components/bubble/BubbleItem.vue.d.ts +74 -45
  9. package/dist/components/bubble/BubbleMenuPlugin.d.ts +53 -0
  10. package/dist/components/common/ColorPickerDropdown.vue.d.ts +26 -0
  11. package/dist/components/index.d.ts +1 -0
  12. package/dist/components/toolbar/ToolbarItem.vue.d.ts +33 -42
  13. package/dist/components/toolbar/ToolbarSubItem.vue.d.ts +33 -45
  14. package/dist/components/toolbox/ToolboxItem.vue.d.ts +33 -44
  15. package/dist/extensions/audio/AudioView.vue.d.ts +25 -56
  16. package/dist/extensions/audio/BubbleItemAudioLink.vue.d.ts +58 -0
  17. package/dist/extensions/audio/index.d.ts +1 -0
  18. package/dist/extensions/blockquote/index.d.ts +3 -1
  19. package/dist/extensions/bold/index.d.ts +3 -1
  20. package/dist/extensions/bullet-list/index.d.ts +3 -1
  21. package/dist/extensions/code/index.d.ts +3 -1
  22. package/dist/extensions/code-block/CodeBlockViewRenderer.vue.d.ts +25 -53
  23. package/dist/extensions/code-block/code-block.d.ts +1 -1
  24. package/dist/extensions/code-block/lowlight.d.ts +15 -1
  25. package/dist/extensions/color/ColorBubbleItem.vue.d.ts +38 -58
  26. package/dist/extensions/color/ColorToolbarItem.vue.d.ts +40 -57
  27. package/dist/extensions/color/index.d.ts +3 -1
  28. package/dist/extensions/columns/column.d.ts +3 -0
  29. package/dist/extensions/columns/columns.d.ts +15 -0
  30. package/dist/extensions/columns/index.d.ts +2 -0
  31. package/dist/extensions/commands-menu/CommandsView.vue.d.ts +8 -14
  32. package/dist/extensions/commands-menu/commands.d.ts +1 -1
  33. package/dist/extensions/draggable/index.d.ts +14 -0
  34. package/dist/extensions/heading/index.d.ts +3 -1
  35. package/dist/extensions/highlight/HighlightBubbleItem.vue.d.ts +38 -59
  36. package/dist/extensions/highlight/HighlightToolbarItem.vue.d.ts +40 -58
  37. package/dist/extensions/highlight/index.d.ts +3 -1
  38. package/dist/extensions/history/index.d.ts +3 -1
  39. package/dist/extensions/iframe/BubbleItemIframeLink.vue.d.ts +58 -0
  40. package/dist/extensions/iframe/BubbleItemIframeSize.vue.d.ts +13 -0
  41. package/dist/extensions/iframe/IframeView.vue.d.ts +25 -67
  42. package/dist/extensions/iframe/index.d.ts +1 -0
  43. package/dist/extensions/image/BubbleItemImageAlt.vue.d.ts +58 -0
  44. package/dist/extensions/image/BubbleItemImageHref.vue.d.ts +58 -0
  45. package/dist/extensions/image/BubbleItemImageLink.vue.d.ts +58 -0
  46. package/dist/extensions/image/BubbleItemImageSize.vue.d.ts +58 -0
  47. package/dist/extensions/image/ImageView.vue.d.ts +25 -74
  48. package/dist/extensions/image/index.d.ts +3 -1
  49. package/dist/extensions/index.d.ts +7 -3
  50. package/dist/extensions/italic/index.d.ts +3 -1
  51. package/dist/extensions/link/LinkBubbleButton.vue.d.ts +36 -53
  52. package/dist/extensions/link/index.d.ts +3 -1
  53. package/dist/extensions/node-selected/index.d.ts +6 -0
  54. package/dist/extensions/ordered-list/index.d.ts +3 -1
  55. package/dist/extensions/paragraph/index.d.ts +4 -0
  56. package/dist/extensions/strike/index.d.ts +3 -1
  57. package/dist/extensions/subscript/index.d.ts +3 -1
  58. package/dist/extensions/superscript/index.d.ts +3 -1
  59. package/dist/extensions/table/index.d.ts +3 -1
  60. package/dist/extensions/table/table-cell.d.ts +6 -0
  61. package/dist/extensions/table/table-header.d.ts +6 -0
  62. package/dist/extensions/table/table-row.d.ts +2 -0
  63. package/dist/extensions/table/util.d.ts +27 -0
  64. package/dist/extensions/task-list/index.d.ts +3 -1
  65. package/dist/extensions/text/index.d.ts +3 -0
  66. package/dist/extensions/text-align/index.d.ts +3 -1
  67. package/dist/extensions/trailing-node/index.d.ts +9 -0
  68. package/dist/extensions/underline/index.d.ts +3 -1
  69. package/dist/extensions/video/BubbleItemVideoLink.vue.d.ts +58 -0
  70. package/dist/extensions/video/BubbleItemVideoSize.vue.d.ts +58 -0
  71. package/dist/extensions/video/VideoView.vue.d.ts +25 -71
  72. package/dist/extensions/video/index.d.ts +1 -0
  73. package/dist/rich-text-editor.es.js +9629 -7494
  74. package/dist/rich-text-editor.es.js.map +1 -1
  75. package/dist/rich-text-editor.iife.js +8867 -6732
  76. package/dist/rich-text-editor.iife.js.map +1 -1
  77. package/dist/style.css +334 -53
  78. package/dist/types/index.d.ts +117 -0
  79. package/dist/utils/delete-node.d.ts +2 -0
  80. package/dist/utils/index.d.ts +1 -0
  81. package/package.json +51 -54
@@ -1,120 +1,71 @@
1
- declare const _sfc_main: import("vue").DefineComponent<{
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: any;
6
+ type: import("vue").PropType<Editor>;
4
7
  required: true;
5
8
  };
6
9
  node: {
7
- type: any;
10
+ type: import("vue").PropType<ProseMirrorNode>;
8
11
  required: true;
9
12
  };
10
13
  decorations: {
11
- type: ArrayConstructor;
14
+ type: import("vue").PropType<Decoration[]>;
12
15
  required: true;
13
16
  };
14
17
  selected: {
15
- type: BooleanConstructor;
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: FunctionConstructor;
26
+ type: import("vue").PropType<() => number>;
24
27
  required: true;
25
28
  };
26
29
  updateAttributes: {
27
- type: FunctionConstructor;
30
+ type: import("vue").PropType<(attributes: Record<string, any>) => void>;
28
31
  required: true;
29
32
  };
30
33
  deleteNode: {
31
- type: FunctionConstructor;
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: any;
39
+ type: import("vue").PropType<Editor>;
89
40
  required: true;
90
41
  };
91
42
  node: {
92
- type: any;
43
+ type: import("vue").PropType<ProseMirrorNode>;
93
44
  required: true;
94
45
  };
95
46
  decorations: {
96
- type: ArrayConstructor;
47
+ type: import("vue").PropType<Decoration[]>;
97
48
  required: true;
98
49
  };
99
50
  selected: {
100
- type: BooleanConstructor;
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: FunctionConstructor;
59
+ type: import("vue").PropType<() => number>;
109
60
  required: true;
110
61
  };
111
62
  updateAttributes: {
112
- type: FunctionConstructor;
63
+ type: import("vue").PropType<(attributes: Record<string, any>) => void>;
113
64
  required: true;
114
65
  };
115
66
  deleteNode: {
116
- type: FunctionConstructor;
67
+ type: import("vue").PropType<() => void>;
117
68
  required: true;
118
69
  };
119
- }>>, {}>;
120
- export default _sfc_main;
70
+ }>>, {}, {}>;
71
+ export default _default;
@@ -1,2 +1,4 @@
1
- declare const Image: import("@tiptap/vue-3").Node<any, any>;
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
- declare const allExtensions: any[];
35
- 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, };
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
- declare const Italic: import("@tiptap/vue-3").Mark<any, any>;
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
- declare const _sfc_main: import("vue").DefineComponent<{
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: any;
5
+ type: import("vue").PropType<Editor>;
4
6
  required: true;
5
7
  };
6
8
  isActive: {
7
- type: BooleanConstructor;
8
- required: false;
9
- default: boolean;
9
+ type: import("vue").PropType<({ editor }: {
10
+ editor: Editor;
11
+ }) => boolean>;
12
+ required: true;
10
13
  };
11
14
  visible: {
12
- type: BooleanConstructor;
13
- required: false;
14
- default: boolean;
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: StringConstructor;
18
- required: false;
19
- default: any;
23
+ type: import("vue").PropType<string>;
20
24
  };
21
25
  action: {
22
- type: FunctionConstructor;
23
- required: false;
24
- default: any;
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: any;
32
+ type: import("vue").PropType<Editor>;
41
33
  required: true;
42
34
  };
43
35
  isActive: {
44
- type: BooleanConstructor;
45
- required: false;
46
- default: boolean;
36
+ type: import("vue").PropType<({ editor }: {
37
+ editor: Editor;
38
+ }) => boolean>;
39
+ required: true;
47
40
  };
48
41
  visible: {
49
- type: BooleanConstructor;
50
- required: false;
51
- default: boolean;
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: StringConstructor;
55
- required: false;
56
- default: any;
50
+ type: import("vue").PropType<string>;
57
51
  };
58
52
  action: {
59
- type: FunctionConstructor;
60
- required: false;
61
- default: any;
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
- title: string;
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
- declare const Link: import("@tiptap/vue-3").Mark<any, any>;
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;
@@ -0,0 +1,6 @@
1
+ import { Extension } from "@tiptap/core";
2
+ export interface NodeSelectedOptions {
3
+ className: string;
4
+ }
5
+ declare const NodeSelected: Extension<NodeSelectedOptions, any>;
6
+ export default NodeSelected;
@@ -1,2 +1,4 @@
1
- declare const OrderedList: import("@tiptap/vue-3").Node<any, any>;
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;
@@ -0,0 +1,4 @@
1
+ import type { ParagraphOptions } from "@tiptap/extension-paragraph";
2
+ import type { ExtensionOptions } from '../../types';
3
+ declare const Paragraph: import("@tiptap/core").Node<ExtensionOptions & ParagraphOptions, any>;
4
+ export default Paragraph;
@@ -1,2 +1,4 @@
1
- declare const Strike: import("@tiptap/vue-3").Mark<any, any>;
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
- declare const Subscript: import("@tiptap/vue-3").Mark<any, any>;
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
- declare const Superscript: import("@tiptap/vue-3").Mark<any, any>;
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
- declare const Table: import("@tiptap/vue-3").Node<any, any>;
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,6 @@
1
+ import { Node } from "@tiptap/core";
2
+ export interface TableCellOptions {
3
+ HTMLAttributes: Record<string, any>;
4
+ }
5
+ declare const TableCell: Node<TableCellOptions, any>;
6
+ export default TableCell;
@@ -0,0 +1,6 @@
1
+ import { Node } from "@tiptap/core";
2
+ export interface TableCellOptions {
3
+ HTMLAttributes: Record<string, any>;
4
+ }
5
+ declare const TableHeader: Node<TableCellOptions, any>;
6
+ export default TableHeader;
@@ -0,0 +1,2 @@
1
+ declare const TableRow: import("@tiptap/core").Node<import("@tiptap/extension-table-row").TableRowOptions, any>;
2
+ export default TableRow;
@@ -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
- declare const TaskList: import("@tiptap/vue-3").Node<any, any>;
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;
@@ -0,0 +1,3 @@
1
+ import type { ExtensionOptions } from '../../types';
2
+ declare const Text: import("@tiptap/core").Node<ExtensionOptions, any>;
3
+ export default Text;
@@ -1,2 +1,4 @@
1
- declare const TextAlign: import("@tiptap/vue-3").Extension<any, any>;
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
- declare const Underline: import("@tiptap/vue-3").Mark<any, any>;
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;