@halo-dev/richtext-editor 0.0.0-alpha.3 → 0.0.0-alpha.30

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 (60) hide show
  1. package/dist/components/Editor.vue.d.ts +165 -0
  2. package/dist/components/EditorBubbleMenu.vue.d.ts +99 -0
  3. package/dist/components/EditorHeader.vue.d.ts +19 -0
  4. package/dist/components/block/BlockActionButton.vue.d.ts +27 -0
  5. package/dist/components/block/BlockActionInput.vue.d.ts +30 -0
  6. package/dist/components/block/BlockActionSeparator.vue.d.ts +2 -0
  7. package/dist/components/block/BlockCard.vue.d.ts +71 -0
  8. package/dist/components/bubble/BubbleItem.vue.d.ts +60 -0
  9. package/dist/components/index.d.ts +8 -0
  10. package/dist/components/toolbar/ToolbarItem.vue.d.ts +60 -0
  11. package/dist/components/toolbar/ToolbarSubItem.vue.d.ts +63 -0
  12. package/dist/components/toolbox/ToolboxItem.vue.d.ts +63 -0
  13. package/dist/extensions/audio/AudioView.vue.d.ts +102 -0
  14. package/dist/extensions/audio/index.d.ts +12 -0
  15. package/dist/extensions/blockquote/index.d.ts +2 -0
  16. package/dist/extensions/bold/index.d.ts +2 -0
  17. package/dist/extensions/bullet-list/index.d.ts +2 -0
  18. package/dist/extensions/code/index.d.ts +2 -0
  19. package/dist/extensions/code-block/CodeBlockViewRenderer.vue.d.ts +99 -0
  20. package/dist/extensions/code-block/code-block.d.ts +14 -1
  21. package/dist/extensions/color/ColorBubbleItem.vue.d.ts +78 -0
  22. package/dist/extensions/color/ColorToolbarItem.vue.d.ts +78 -0
  23. package/dist/extensions/color/index.d.ts +2 -0
  24. package/dist/extensions/commands-menu/CommandsView.vue.d.ts +33 -0
  25. package/dist/extensions/commands-menu/index.d.ts +0 -1
  26. package/dist/extensions/font-size/index.d.ts +14 -0
  27. package/dist/extensions/heading/index.d.ts +2 -0
  28. package/dist/extensions/highlight/HighlightBubbleItem.vue.d.ts +79 -0
  29. package/dist/extensions/highlight/HighlightToolbarItem.vue.d.ts +79 -0
  30. package/dist/extensions/highlight/index.d.ts +2 -0
  31. package/dist/extensions/history/index.d.ts +2 -0
  32. package/dist/extensions/iframe/IframeView.vue.d.ts +113 -0
  33. package/dist/extensions/iframe/index.d.ts +12 -0
  34. package/dist/extensions/image/ImageView.vue.d.ts +120 -0
  35. package/dist/extensions/image/index.d.ts +2 -0
  36. package/dist/extensions/indent/index.d.ts +22 -0
  37. package/dist/extensions/index.d.ts +35 -0
  38. package/dist/extensions/italic/index.d.ts +2 -0
  39. package/dist/extensions/link/LinkBubbleButton.vue.d.ts +75 -0
  40. package/dist/extensions/link/index.d.ts +2 -0
  41. package/dist/extensions/ordered-list/index.d.ts +2 -0
  42. package/dist/extensions/strike/index.d.ts +2 -0
  43. package/dist/extensions/subscript/index.d.ts +2 -0
  44. package/dist/extensions/superscript/index.d.ts +2 -0
  45. package/dist/extensions/table/index.d.ts +2 -0
  46. package/dist/extensions/task-list/index.d.ts +2 -0
  47. package/dist/extensions/text-align/index.d.ts +2 -0
  48. package/dist/extensions/underline/index.d.ts +2 -0
  49. package/dist/extensions/video/VideoView.vue.d.ts +117 -0
  50. package/dist/extensions/video/index.d.ts +12 -0
  51. package/dist/index.d.ts +5 -2
  52. package/dist/locales/index.d.ts +7 -0
  53. package/dist/rich-text-editor.es.js +24871 -56112
  54. package/dist/rich-text-editor.es.js.map +1 -1
  55. package/dist/rich-text-editor.iife.js +24779 -56020
  56. package/dist/rich-text-editor.iife.js.map +1 -1
  57. package/dist/style.css +1401 -2006
  58. package/package.json +72 -47
  59. package/dist/extensions/commands-menu/suggestion.d.ts +0 -23
  60. package/dist/extensions/katex/index.d.ts +0 -2
@@ -0,0 +1,113 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{
2
+ editor: {
3
+ type: any;
4
+ required: true;
5
+ };
6
+ node: {
7
+ type: any;
8
+ required: true;
9
+ };
10
+ decorations: {
11
+ type: ArrayConstructor;
12
+ required: true;
13
+ };
14
+ selected: {
15
+ type: BooleanConstructor;
16
+ required: true;
17
+ };
18
+ extension: {
19
+ type: any;
20
+ required: true;
21
+ };
22
+ getPos: {
23
+ type: FunctionConstructor;
24
+ required: true;
25
+ };
26
+ updateAttributes: {
27
+ type: FunctionConstructor;
28
+ required: true;
29
+ };
30
+ deleteNode: {
31
+ type: FunctionConstructor;
32
+ required: true;
33
+ };
34
+ }, {
35
+ props: any;
36
+ src: import("vue").WritableComputedRef<any>;
37
+ width: import("vue").WritableComputedRef<any>;
38
+ height: import("vue").WritableComputedRef<any>;
39
+ frameborder: import("vue").ComputedRef<any>;
40
+ handleSetFocus: () => void;
41
+ handleSetSize: (width: string, height: string) => void;
42
+ handleToggleFrameborder: () => void;
43
+ sizeMatch: (width: string, height: string) => boolean;
44
+ handleOpenLink: () => void;
45
+ frameRef: import("vue").Ref<any>;
46
+ handleRefresh: () => void;
47
+ inputRef: import("vue").Ref<any>;
48
+ readonly NodeViewWrapper: import("vue").DefineComponent<{
49
+ as: {
50
+ type: StringConstructor;
51
+ default: string;
52
+ };
53
+ }, 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<{
54
+ as: {
55
+ type: StringConstructor;
56
+ default: string;
57
+ };
58
+ }>>, {
59
+ as: string;
60
+ }>;
61
+ readonly VDropdown: any;
62
+ BlockCard: any;
63
+ BlockActionButton: any;
64
+ BlockActionInput: any;
65
+ BlockActionSeparator: any;
66
+ readonly MdiLinkVariant: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
67
+ readonly MdiShare: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
68
+ readonly MdiCellphoneIphone: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
69
+ readonly MdiTabletIpad: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
70
+ readonly MdiDesktopMac: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
71
+ readonly MdiBorderAllVariant: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
72
+ readonly MdiBorderNoneVariant: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
73
+ readonly MdiFormatAlignLeft: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
74
+ readonly MdiFormatAlignCenter: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
75
+ readonly MdiFormatAlignRight: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
76
+ readonly MdiFormatAlignJustify: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
77
+ readonly MdiWebSync: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
78
+ readonly i18n: any;
79
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
80
+ editor: {
81
+ type: any;
82
+ required: true;
83
+ };
84
+ node: {
85
+ type: any;
86
+ required: true;
87
+ };
88
+ decorations: {
89
+ type: ArrayConstructor;
90
+ required: true;
91
+ };
92
+ selected: {
93
+ type: BooleanConstructor;
94
+ required: true;
95
+ };
96
+ extension: {
97
+ type: any;
98
+ required: true;
99
+ };
100
+ getPos: {
101
+ type: FunctionConstructor;
102
+ required: true;
103
+ };
104
+ updateAttributes: {
105
+ type: FunctionConstructor;
106
+ required: true;
107
+ };
108
+ deleteNode: {
109
+ type: FunctionConstructor;
110
+ required: true;
111
+ };
112
+ }>>, {}>;
113
+ export default _sfc_main;
@@ -0,0 +1,12 @@
1
+ import { Node } from "@tiptap/core";
2
+ declare module "@tiptap/core" {
3
+ interface Commands<ReturnType> {
4
+ iframe: {
5
+ setIframe: (options: {
6
+ src: string;
7
+ }) => ReturnType;
8
+ };
9
+ }
10
+ }
11
+ declare const Iframe: Node<ExtensionOptions, any>;
12
+ export default Iframe;
@@ -0,0 +1,120 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{
2
+ editor: {
3
+ type: any;
4
+ required: true;
5
+ };
6
+ node: {
7
+ type: any;
8
+ required: true;
9
+ };
10
+ decorations: {
11
+ type: ArrayConstructor;
12
+ required: true;
13
+ };
14
+ selected: {
15
+ type: BooleanConstructor;
16
+ required: true;
17
+ };
18
+ extension: {
19
+ type: any;
20
+ required: true;
21
+ };
22
+ getPos: {
23
+ type: FunctionConstructor;
24
+ required: true;
25
+ };
26
+ updateAttributes: {
27
+ type: FunctionConstructor;
28
+ required: true;
29
+ };
30
+ deleteNode: {
31
+ type: FunctionConstructor;
32
+ required: true;
33
+ };
34
+ }, {
35
+ props: any;
36
+ 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<{
87
+ editor: {
88
+ type: any;
89
+ required: true;
90
+ };
91
+ node: {
92
+ type: any;
93
+ required: true;
94
+ };
95
+ decorations: {
96
+ type: ArrayConstructor;
97
+ required: true;
98
+ };
99
+ selected: {
100
+ type: BooleanConstructor;
101
+ required: true;
102
+ };
103
+ extension: {
104
+ type: any;
105
+ required: true;
106
+ };
107
+ getPos: {
108
+ type: FunctionConstructor;
109
+ required: true;
110
+ };
111
+ updateAttributes: {
112
+ type: FunctionConstructor;
113
+ required: true;
114
+ };
115
+ deleteNode: {
116
+ type: FunctionConstructor;
117
+ required: true;
118
+ };
119
+ }>>, {}>;
120
+ export default _sfc_main;
@@ -0,0 +1,2 @@
1
+ declare const Image: import("@tiptap/vue-3").Node<any, any>;
2
+ export default Image;
@@ -0,0 +1,22 @@
1
+ import { type KeyboardShortcutCommand, Extension } from "@tiptap/core";
2
+ declare module "@tiptap/core" {
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,35 @@
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 ExtensionText from "@tiptap/extension-text";
26
+ import ExtensionPlaceholder from "@tiptap/extension-placeholder";
27
+ import { ExtensionCommands } from "../extensions/commands-menu";
28
+ import { ExtensionCodeBlock, lowlight } from '../extensions/code-block';
29
+ import ExtensionIframe from "./iframe";
30
+ import ExtensionVideo from "./video";
31
+ import ExtensionAudio from "./audio";
32
+ import ExtensionImage from "./image";
33
+ 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, };
@@ -0,0 +1,2 @@
1
+ declare const Italic: import("@tiptap/vue-3").Mark<any, any>;
2
+ export default Italic;
@@ -0,0 +1,75 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{
2
+ editor: {
3
+ type: any;
4
+ required: true;
5
+ };
6
+ isActive: {
7
+ type: BooleanConstructor;
8
+ required: false;
9
+ default: boolean;
10
+ };
11
+ visible: {
12
+ type: BooleanConstructor;
13
+ required: false;
14
+ default: boolean;
15
+ };
16
+ title: {
17
+ type: StringConstructor;
18
+ required: false;
19
+ default: any;
20
+ };
21
+ action: {
22
+ type: FunctionConstructor;
23
+ required: false;
24
+ default: any;
25
+ };
26
+ icon: {
27
+ type: any;
28
+ required: false;
29
+ default: any;
30
+ };
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<{
39
+ editor: {
40
+ type: any;
41
+ required: true;
42
+ };
43
+ isActive: {
44
+ type: BooleanConstructor;
45
+ required: false;
46
+ default: boolean;
47
+ };
48
+ visible: {
49
+ type: BooleanConstructor;
50
+ required: false;
51
+ default: boolean;
52
+ };
53
+ title: {
54
+ type: StringConstructor;
55
+ required: false;
56
+ default: any;
57
+ };
58
+ action: {
59
+ type: FunctionConstructor;
60
+ required: false;
61
+ default: any;
62
+ };
63
+ icon: {
64
+ type: any;
65
+ required: false;
66
+ default: any;
67
+ };
68
+ }>>, {
69
+ title: string;
70
+ isActive: boolean;
71
+ visible: boolean;
72
+ action: Function;
73
+ icon: any;
74
+ }>;
75
+ export default _sfc_main;
@@ -0,0 +1,2 @@
1
+ declare const Link: import("@tiptap/vue-3").Mark<any, any>;
2
+ export default Link;
@@ -0,0 +1,2 @@
1
+ declare const OrderedList: import("@tiptap/vue-3").Node<any, any>;
2
+ export default OrderedList;
@@ -0,0 +1,2 @@
1
+ declare const Strike: import("@tiptap/vue-3").Mark<any, any>;
2
+ export default Strike;
@@ -0,0 +1,2 @@
1
+ declare const Subscript: import("@tiptap/vue-3").Mark<any, any>;
2
+ export default Subscript;
@@ -0,0 +1,2 @@
1
+ declare const Superscript: import("@tiptap/vue-3").Mark<any, any>;
2
+ export default Superscript;
@@ -0,0 +1,2 @@
1
+ declare const Table: import("@tiptap/vue-3").Node<any, any>;
2
+ export default Table;
@@ -0,0 +1,2 @@
1
+ declare const TaskList: import("@tiptap/vue-3").Node<any, any>;
2
+ export default TaskList;
@@ -0,0 +1,2 @@
1
+ declare const TextAlign: import("@tiptap/vue-3").Extension<any, any>;
2
+ export default TextAlign;
@@ -0,0 +1,2 @@
1
+ declare const Underline: import("@tiptap/vue-3").Mark<any, any>;
2
+ export default Underline;
@@ -0,0 +1,117 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{
2
+ editor: {
3
+ type: any;
4
+ required: true;
5
+ };
6
+ node: {
7
+ type: any;
8
+ required: true;
9
+ };
10
+ decorations: {
11
+ type: ArrayConstructor;
12
+ required: true;
13
+ };
14
+ selected: {
15
+ type: BooleanConstructor;
16
+ required: true;
17
+ };
18
+ extension: {
19
+ type: any;
20
+ required: true;
21
+ };
22
+ getPos: {
23
+ type: FunctionConstructor;
24
+ required: true;
25
+ };
26
+ updateAttributes: {
27
+ type: FunctionConstructor;
28
+ required: true;
29
+ };
30
+ deleteNode: {
31
+ type: FunctionConstructor;
32
+ required: true;
33
+ };
34
+ }, {
35
+ props: any;
36
+ src: import("vue").WritableComputedRef<any>;
37
+ width: import("vue").WritableComputedRef<any>;
38
+ height: import("vue").WritableComputedRef<any>;
39
+ controls: import("vue").ComputedRef<any>;
40
+ autoplay: import("vue").ComputedRef<any>;
41
+ loop: import("vue").ComputedRef<any>;
42
+ handleSetFocus: () => void;
43
+ handleSetSize: (width: string, height: string) => void;
44
+ handleToggleControls: () => void;
45
+ handleToggleAutoplay: () => void;
46
+ handleToggleLoop: () => void;
47
+ handleOpenLink: () => void;
48
+ inputRef: import("vue").Ref<any>;
49
+ readonly NodeViewWrapper: import("vue").DefineComponent<{
50
+ as: {
51
+ type: StringConstructor;
52
+ default: string;
53
+ };
54
+ }, 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<{
55
+ as: {
56
+ type: StringConstructor;
57
+ default: string;
58
+ };
59
+ }>>, {
60
+ as: string;
61
+ }>;
62
+ readonly VDropdown: any;
63
+ BlockCard: any;
64
+ BlockActionButton: any;
65
+ BlockActionInput: any;
66
+ BlockActionSeparator: any;
67
+ readonly MdiLinkVariant: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
68
+ readonly MdiShare: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
69
+ readonly MdiImageSizeSelectActual: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
70
+ readonly MdiImageSizeSelectSmall: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
71
+ readonly MdiImageSizeSelectLarge: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
72
+ readonly MdiFormatAlignLeft: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
73
+ readonly MdiFormatAlignCenter: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
74
+ readonly MdiFormatAlignRight: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
75
+ readonly MdiFormatAlignJustify: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
76
+ readonly MdiCogPlay: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
77
+ readonly MdiCogPlayOutline: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
78
+ readonly MdiPlayCircle: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
79
+ readonly MdiPlayCircleOutline: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
80
+ readonly MdiMotionPlayOutline: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
81
+ readonly MdiMotionPlay: import("vue").FunctionalComponent<import("vue").SVGAttributes, {}, any>;
82
+ readonly i18n: any;
83
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
84
+ editor: {
85
+ type: any;
86
+ required: true;
87
+ };
88
+ node: {
89
+ type: any;
90
+ required: true;
91
+ };
92
+ decorations: {
93
+ type: ArrayConstructor;
94
+ required: true;
95
+ };
96
+ selected: {
97
+ type: BooleanConstructor;
98
+ required: true;
99
+ };
100
+ extension: {
101
+ type: any;
102
+ required: true;
103
+ };
104
+ getPos: {
105
+ type: FunctionConstructor;
106
+ required: true;
107
+ };
108
+ updateAttributes: {
109
+ type: FunctionConstructor;
110
+ required: true;
111
+ };
112
+ deleteNode: {
113
+ type: FunctionConstructor;
114
+ required: true;
115
+ };
116
+ }>>, {}>;
117
+ export default _sfc_main;
@@ -0,0 +1,12 @@
1
+ import { Node } from "@tiptap/core";
2
+ declare module "@tiptap/core" {
3
+ interface Commands<ReturnType> {
4
+ video: {
5
+ setVideo: (options: {
6
+ src: string;
7
+ }) => ReturnType;
8
+ };
9
+ }
10
+ }
11
+ declare const Video: Node<ExtensionOptions, any>;
12
+ export default Video;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,8 @@
1
1
  import type { Plugin } from "vue";
2
- import Editor from "./components/Editor.vue";
2
+ import RichTextEditor from "./components/Editor.vue";
3
3
  declare const plugin: Plugin;
4
4
  export default plugin;
5
- export { Editor };
5
+ export { RichTextEditor };
6
+ export * from "@tiptap/vue-3";
7
+ export * from "./extensions";
8
+ export * from "./components";
@@ -0,0 +1,7 @@
1
+ declare const i18n: import("vue-i18n").I18n<{
2
+ en: any;
3
+ zh: any;
4
+ "en-US": any;
5
+ "zh-CN": any;
6
+ }, {}, {}, string, false>;
7
+ export { i18n };