@halo-dev/richtext-editor 2.21.0 → 2.23.0

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 (156) hide show
  1. package/README.md +61 -0
  2. package/dist/components/Editor.vue.d.ts +6 -5
  3. package/dist/components/EditorHeader.vue.d.ts +4 -4
  4. package/dist/components/base/DropdownItem.vue.d.ts +29 -0
  5. package/dist/components/base/Input.vue.d.ts +29 -0
  6. package/dist/components/base/index.d.ts +2 -0
  7. package/dist/components/block/BlockActionButton.vue.d.ts +13 -8
  8. package/dist/{dev/App.vue.d.ts → components/block/BlockActionHorizontalSeparator.vue.d.ts} +1 -1
  9. package/dist/components/block/BlockActionSeparator.vue.d.ts +2 -1
  10. package/dist/components/block/index.d.ts +1 -2
  11. package/dist/components/bubble/BubbleButton.vue.d.ts +28 -0
  12. package/dist/components/bubble/BubbleItem.vue.d.ts +3 -37
  13. package/dist/components/{EditorBubbleMenu.vue.d.ts → bubble/EditorBubbleMenu.vue.d.ts} +3 -3
  14. package/dist/components/bubble/index.d.ts +2 -1
  15. package/dist/components/common/ColorPickerDropdown.vue.d.ts +7 -7
  16. package/dist/components/drag/EditorDragButtonItem.vue.d.ts +8 -0
  17. package/dist/components/drag/EditorDragHandle.vue.d.ts +14 -0
  18. package/dist/components/drag/EditorDragMenu.vue.d.ts +43 -0
  19. package/dist/components/drag/default-drag.d.ts +8 -0
  20. package/dist/components/drag/index.d.ts +4 -0
  21. package/dist/components/index.d.ts +4 -2
  22. package/dist/components/toolbar/ToolbarItem.vue.d.ts +2 -24
  23. package/dist/components/toolbar/ToolbarSubItem.vue.d.ts +2 -20
  24. package/dist/components/toolbox/ToolboxItem.vue.d.ts +2 -21
  25. package/dist/components/upload/EditorLinkObtain.vue.d.ts +51 -0
  26. package/dist/components/upload/ResourceReplaceButton.vue.d.ts +13 -0
  27. package/dist/components/upload/index.d.ts +2 -0
  28. package/dist/composables/use-attachment.d.ts +7 -0
  29. package/dist/extensions/align/index.d.ts +6 -0
  30. package/dist/extensions/audio/AudioView.vue.d.ts +106 -2
  31. package/dist/extensions/audio/BubbleItemAudioLink.vue.d.ts +2 -29
  32. package/dist/extensions/audio/BubbleItemAudioPosition.vue.d.ts +7 -0
  33. package/dist/extensions/audio/index.d.ts +9 -4
  34. package/dist/extensions/block-position/index.d.ts +48 -0
  35. package/dist/extensions/blockquote/index.d.ts +3 -3
  36. package/dist/extensions/bold/index.d.ts +3 -3
  37. package/dist/extensions/bullet-list/index.d.ts +3 -3
  38. package/dist/extensions/character-count/index.d.ts +1 -0
  39. package/dist/extensions/clear-format/index.d.ts +2 -2
  40. package/dist/extensions/code/index.d.ts +3 -3
  41. package/dist/extensions/code-block/CodeBlockSelect.vue.d.ts +7 -5
  42. package/dist/extensions/code-block/code-block.d.ts +7 -5
  43. package/dist/extensions/code-block/index.d.ts +0 -1
  44. package/dist/extensions/color/ColorBubbleItem.vue.d.ts +2 -29
  45. package/dist/extensions/color/ColorToolbarItem.vue.d.ts +2 -24
  46. package/dist/extensions/color/index.d.ts +3 -3
  47. package/dist/extensions/columns/column.d.ts +6 -2
  48. package/dist/extensions/columns/columns.d.ts +11 -4
  49. package/dist/extensions/columns/index.d.ts +2 -2
  50. package/dist/extensions/commands-menu/CommandsView.vue.d.ts +2 -2
  51. package/dist/extensions/commands-menu/commands.d.ts +2 -3
  52. package/dist/extensions/commands-menu/index.d.ts +1 -1
  53. package/dist/extensions/details/index.d.ts +6 -0
  54. package/dist/extensions/document/index.d.ts +2 -0
  55. package/dist/extensions/drop-cursor/index.d.ts +1 -0
  56. package/dist/extensions/extensions-kit.d.ts +96 -0
  57. package/dist/extensions/figure/FigureCaptionView.vue.d.ts +3 -0
  58. package/dist/extensions/figure/figure-caption.d.ts +2 -0
  59. package/dist/extensions/figure/index.d.ts +15 -0
  60. package/dist/extensions/font-size/index.d.ts +4 -14
  61. package/dist/extensions/format-brush/index.d.ts +4 -4
  62. package/dist/extensions/gallery/BubbleItemAddImage.vue.d.ts +7 -0
  63. package/dist/extensions/gallery/BubbleItemGap.vue.d.ts +493 -0
  64. package/dist/extensions/gallery/BubbleItemGroupSize.vue.d.ts +493 -0
  65. package/dist/extensions/gallery/BubbleItemLayout.vue.d.ts +493 -0
  66. package/dist/extensions/gallery/GalleryView.vue.d.ts +3 -0
  67. package/dist/extensions/gallery/gallery-bubble.d.ts +8 -0
  68. package/dist/extensions/gallery/index.d.ts +28 -0
  69. package/dist/extensions/gallery/useGalleryImages.d.ts +7 -0
  70. package/dist/extensions/gap-cursor/index.d.ts +1 -17
  71. package/dist/extensions/hard-break/index.d.ts +1 -0
  72. package/dist/extensions/heading/index.d.ts +3 -3
  73. package/dist/extensions/highlight/HighlightBubbleItem.vue.d.ts +2 -29
  74. package/dist/extensions/highlight/HighlightToolbarItem.vue.d.ts +2 -24
  75. package/dist/extensions/highlight/index.d.ts +3 -3
  76. package/dist/extensions/history/index.d.ts +1 -3
  77. package/dist/extensions/horizontal-rule/index.d.ts +1 -0
  78. package/dist/extensions/iframe/BubbleItemIframeAlign.vue.d.ts +7 -0
  79. package/dist/extensions/iframe/BubbleItemIframeLink.vue.d.ts +2 -29
  80. package/dist/extensions/iframe/BubbleItemIframeSize.vue.d.ts +2 -6
  81. package/dist/extensions/iframe/IframeView.vue.d.ts +54 -1
  82. package/dist/extensions/iframe/index.d.ts +4 -4
  83. package/dist/extensions/image/BubbleItemImageAlt.vue.d.ts +2 -29
  84. package/dist/extensions/image/BubbleItemImageHref.vue.d.ts +2 -29
  85. package/dist/extensions/image/BubbleItemImageLink.vue.d.ts +2 -29
  86. package/dist/extensions/image/BubbleItemImagePosition.vue.d.ts +7 -0
  87. package/dist/extensions/image/BubbleItemImageSize.vue.d.ts +2 -29
  88. package/dist/extensions/image/ImageView.vue.d.ts +108 -2
  89. package/dist/extensions/image/index.d.ts +9 -3
  90. package/dist/extensions/indent/index.d.ts +5 -5
  91. package/dist/extensions/index.d.ts +50 -47
  92. package/dist/extensions/italic/index.d.ts +3 -3
  93. package/dist/extensions/link/LinkBubbleButton.vue.d.ts +2 -29
  94. package/dist/extensions/link/index.d.ts +3 -3
  95. package/dist/extensions/list-extra/index.d.ts +6 -0
  96. package/dist/extensions/list-keymap/index.d.ts +4 -4
  97. package/dist/extensions/node-selected/index.d.ts +3 -4
  98. package/dist/extensions/ordered-list/index.d.ts +3 -3
  99. package/dist/extensions/paragraph/index.d.ts +3 -3
  100. package/dist/extensions/placeholder/index.d.ts +1 -0
  101. package/dist/extensions/range-selection/index.d.ts +2 -2
  102. package/dist/extensions/search-and-replace/IconButton.vue.d.ts +20 -0
  103. package/dist/extensions/search-and-replace/MatchToggleButton.vue.d.ts +20 -0
  104. package/dist/extensions/search-and-replace/SearchAndReplace.vue.d.ts +5 -2
  105. package/dist/extensions/search-and-replace/SearchAndReplacePlugin.d.ts +3 -2
  106. package/dist/extensions/search-and-replace/index.d.ts +2 -3
  107. package/dist/extensions/smart-scroll/index.d.ts +28 -0
  108. package/dist/extensions/strike/index.d.ts +3 -3
  109. package/dist/extensions/subscript/index.d.ts +3 -3
  110. package/dist/extensions/superscript/index.d.ts +3 -3
  111. package/dist/extensions/table/index.d.ts +5 -3
  112. package/dist/extensions/table/table-row.d.ts +1 -1
  113. package/dist/extensions/task-list/index.d.ts +3 -3
  114. package/dist/extensions/text/BubbleItemTextType.vue.d.ts +3 -0
  115. package/dist/extensions/text/index.d.ts +4 -2
  116. package/dist/extensions/text-align/index.d.ts +3 -3
  117. package/dist/extensions/text-style/index.d.ts +3 -3
  118. package/dist/extensions/trailing-node/index.d.ts +1 -2
  119. package/dist/extensions/underline/index.d.ts +3 -3
  120. package/dist/extensions/upload/index.d.ts +8 -0
  121. package/dist/extensions/video/BubbleItemVideoLink.vue.d.ts +2 -29
  122. package/dist/extensions/video/BubbleItemVideoPosition.vue.d.ts +7 -0
  123. package/dist/extensions/video/BubbleItemVideoSize.vue.d.ts +2 -29
  124. package/dist/extensions/video/VideoView.vue.d.ts +106 -2
  125. package/dist/extensions/video/index.d.ts +18 -4
  126. package/dist/index.d.ts +1 -4
  127. package/dist/index.es.js +41115 -0
  128. package/dist/index.iife.js +176 -0
  129. package/dist/locales/en.json.d.ts +177 -0
  130. package/dist/locales/es.json.d.ts +177 -0
  131. package/dist/locales/index.d.ts +1044 -4
  132. package/dist/locales/zh-CN.json.d.ts +177 -0
  133. package/dist/style.css +2 -1
  134. package/dist/tiptap/index.d.ts +3 -3
  135. package/dist/tiptap/pm/index.d.ts +0 -1
  136. package/dist/types/index.d.ts +115 -59
  137. package/dist/utils/attachment.d.ts +3 -0
  138. package/dist/utils/clipboard.d.ts +9 -0
  139. package/dist/utils/delete-node.d.ts +1 -1
  140. package/dist/utils/filter-duplicate-extensions.d.ts +2 -0
  141. package/dist/utils/index.d.ts +8 -0
  142. package/dist/utils/{isListActive.d.ts → is-list-active.d.ts} +2 -2
  143. package/dist/utils/is-node-empty.d.ts +6 -0
  144. package/dist/utils/keyboard.d.ts +37 -0
  145. package/dist/utils/upload.d.ts +78 -0
  146. package/package.json +52 -64
  147. package/dist/components/block/BlockActionInput.vue.d.ts +0 -15
  148. package/dist/components/block/BlockCard.vue.d.ts +0 -30
  149. package/dist/components/bubble/BubbleMenu.vue.d.ts +0 -84
  150. package/dist/components/bubble/BubbleMenuPlugin.d.ts +0 -52
  151. package/dist/dev/main.d.ts +0 -1
  152. package/dist/extensions/draggable/index.d.ts +0 -13
  153. package/dist/rich-text-editor.es.js +0 -41650
  154. package/dist/rich-text-editor.iife.js +0 -136
  155. package/dist/utils/isNodeEmpty.d.ts +0 -4
  156. /package/dist/components/icon/{MdiDeleteForeverOutline.vue.d.ts → MingcuteDelete2Line.vue.d.ts} +0 -0
@@ -1,3 +1,107 @@
1
- import { NodeViewProps } from '../../tiptap/vue-3';
2
- declare const _default: import('vue').DefineComponent<NodeViewProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NodeViewProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
1
+ import { NodeViewProps } from '../../tiptap';
2
+ declare const _default: import('vue').DefineComponent<NodeViewProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NodeViewProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
3
+ editorLinkObtain: ({
4
+ $: import('vue').ComponentInternalInstance;
5
+ $data: {};
6
+ $props: {
7
+ readonly editor: import('@tiptap/core').Editor;
8
+ readonly accept?: string | undefined;
9
+ readonly uploadedFile?: File | undefined;
10
+ readonly uploadToAttachmentFile: (file: File, options?: import('axios').AxiosRequestConfig) => Promise<import('@halo-dev/api-client').Attachment>;
11
+ readonly onSetExternalLink?: ((attachment?: any) => any) | undefined;
12
+ readonly onOnUploadReady?: ((file: File) => any) | undefined;
13
+ readonly onOnUploadProgress?: ((progress: number) => any) | undefined;
14
+ readonly onOnUploadFinish?: (() => any) | undefined;
15
+ readonly onOnUploadError?: ((error: Error) => any) | undefined;
16
+ readonly onOnUploadAbort?: (() => any) | undefined;
17
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
18
+ $attrs: {
19
+ [x: string]: unknown;
20
+ };
21
+ $refs: {
22
+ [x: string]: unknown;
23
+ };
24
+ $slots: Readonly<{
25
+ [name: string]: import('vue').Slot<any> | undefined;
26
+ }>;
27
+ $root: import('vue').ComponentPublicInstance | null;
28
+ $parent: import('vue').ComponentPublicInstance | null;
29
+ $host: Element | null;
30
+ $emit: ((event: "setExternalLink", attachment?: any) => void) & ((event: "onUploadReady", file: File) => void) & ((event: "onUploadProgress", progress: number) => void) & ((event: "onUploadFinish") => void) & ((event: "onUploadError", error: Error) => void) & ((event: "onUploadAbort") => void);
31
+ $el: any;
32
+ $options: import('vue').ComponentOptionsBase<Readonly<{
33
+ editor: import('@tiptap/core').Editor;
34
+ accept?: string;
35
+ uploadedFile?: File;
36
+ uploadToAttachmentFile: (file: File, options?: import('axios').AxiosRequestConfig) => Promise<import('@halo-dev/api-client').Attachment>;
37
+ }> & Readonly<{
38
+ onSetExternalLink?: ((attachment?: any) => any) | undefined;
39
+ onOnUploadReady?: ((file: File) => any) | undefined;
40
+ onOnUploadProgress?: ((progress: number) => any) | undefined;
41
+ onOnUploadFinish?: (() => any) | undefined;
42
+ onOnUploadError?: ((error: Error) => any) | undefined;
43
+ onOnUploadAbort?: (() => any) | undefined;
44
+ }>, {
45
+ abort: () => void;
46
+ retry: () => void;
47
+ reset: () => void;
48
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
49
+ setExternalLink: (attachment?: any) => any;
50
+ onUploadReady: (file: File) => any;
51
+ onUploadProgress: (progress: number) => any;
52
+ onUploadFinish: () => any;
53
+ onUploadError: (error: Error) => any;
54
+ onUploadAbort: () => any;
55
+ }, string, {
56
+ accept: string;
57
+ uploadedFile: File;
58
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
59
+ beforeCreate?: (() => void) | (() => void)[];
60
+ created?: (() => void) | (() => void)[];
61
+ beforeMount?: (() => void) | (() => void)[];
62
+ mounted?: (() => void) | (() => void)[];
63
+ beforeUpdate?: (() => void) | (() => void)[];
64
+ updated?: (() => void) | (() => void)[];
65
+ activated?: (() => void) | (() => void)[];
66
+ deactivated?: (() => void) | (() => void)[];
67
+ beforeDestroy?: (() => void) | (() => void)[];
68
+ beforeUnmount?: (() => void) | (() => void)[];
69
+ destroyed?: (() => void) | (() => void)[];
70
+ unmounted?: (() => void) | (() => void)[];
71
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
72
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
73
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
74
+ };
75
+ $forceUpdate: () => void;
76
+ $nextTick: typeof import('vue').nextTick;
77
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
78
+ } & Readonly<{
79
+ accept: string;
80
+ uploadedFile: File;
81
+ }> & Omit<Readonly<{
82
+ editor: import('@tiptap/core').Editor;
83
+ accept?: string;
84
+ uploadedFile?: File;
85
+ uploadToAttachmentFile: (file: File, options?: import('axios').AxiosRequestConfig) => Promise<import('@halo-dev/api-client').Attachment>;
86
+ }> & Readonly<{
87
+ onSetExternalLink?: ((attachment?: any) => any) | undefined;
88
+ onOnUploadReady?: ((file: File) => any) | undefined;
89
+ onOnUploadProgress?: ((progress: number) => any) | undefined;
90
+ onOnUploadFinish?: (() => any) | undefined;
91
+ onOnUploadError?: ((error: Error) => any) | undefined;
92
+ onOnUploadAbort?: (() => any) | undefined;
93
+ }>, "reset" | "abort" | "retry" | ("accept" | "uploadedFile")> & import('vue').ShallowUnwrapRef<{
94
+ abort: () => void;
95
+ retry: () => void;
96
+ reset: () => void;
97
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
98
+ $slots: {
99
+ uploading?(_: {
100
+ progress: number | undefined;
101
+ }): any;
102
+ error?(_: {}): any;
103
+ icon?(_: {}): any;
104
+ };
105
+ }) | null;
106
+ }, any>;
3
107
  export default _default;
@@ -1,30 +1,3 @@
1
- import { Editor } from '../../tiptap/vue-3';
2
- import { Component } from 'vue';
3
- declare const _default: import('vue').DefineComponent<{
4
- editor: Editor;
5
- isActive: ({ editor }: {
6
- editor: Editor;
7
- }) => boolean;
8
- visible?: ({ editor }: {
9
- editor: Editor;
10
- }) => boolean;
11
- icon?: Component;
12
- title?: string;
13
- action?: ({ editor }: {
14
- editor: Editor;
15
- }) => void;
16
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
17
- editor: Editor;
18
- isActive: ({ editor }: {
19
- editor: Editor;
20
- }) => boolean;
21
- visible?: ({ editor }: {
22
- editor: Editor;
23
- }) => boolean;
24
- icon?: Component;
25
- title?: string;
26
- action?: ({ editor }: {
27
- editor: Editor;
28
- }) => void;
29
- }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
1
+ import { BubbleItemComponentProps } from '../../types';
2
+ declare const _default: import('vue').DefineComponent<BubbleItemComponentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BubbleItemComponentProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
30
3
  export default _default;
@@ -0,0 +1,7 @@
1
+ import { BubbleItemComponentProps } from '../../types';
2
+ declare const _default: import('vue').DefineComponent<BubbleItemComponentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BubbleItemComponentProps> & Readonly<{}>, {
3
+ visible: ({ editor }: {
4
+ editor: import('@tiptap/core').Editor;
5
+ }) => boolean;
6
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
+ export default _default;
@@ -1,6 +1,8 @@
1
- import { Node } from '../../tiptap/vue-3';
1
+ import { Attachment } from '@halo-dev/api-client';
2
+ import { AxiosRequestConfig } from 'axios';
3
+ import { Node, PluginKey } from '../../tiptap';
2
4
  import { ExtensionOptions } from '../../types';
3
- declare module "@/tiptap" {
5
+ declare module '../../tiptap' {
4
6
  interface Commands<ReturnType> {
5
7
  audio: {
6
8
  setAudio: (options: {
@@ -9,5 +11,8 @@ declare module "@/tiptap" {
9
11
  };
10
12
  }
11
13
  }
12
- declare const Audio: Node<ExtensionOptions, any>;
13
- export default Audio;
14
+ export declare const AUDIO_BUBBLE_MENU_KEY: PluginKey<any>;
15
+ export interface ExtensionAudioOptions extends ExtensionOptions {
16
+ uploadAudio?: (file: File, options?: AxiosRequestConfig) => Promise<Attachment>;
17
+ }
18
+ export declare const ExtensionAudio: Node<ExtensionAudioOptions, any>;
@@ -0,0 +1,48 @@
1
+ import { Extension } from '@tiptap/core';
2
+ export interface ExtensionBlockPositionOptions {
3
+ /**
4
+ * The types where the block position attribute can be applied.
5
+ * @default []
6
+ * @example ['figure']
7
+ */
8
+ types: string[];
9
+ /**
10
+ * The positions which are allowed.
11
+ * @default ['start', 'center', 'end']
12
+ * @example ['start', 'center']
13
+ */
14
+ positions: string[];
15
+ /**
16
+ * The default position.
17
+ * @default null
18
+ * @example 'start'
19
+ */
20
+ defaultPosition: string | null;
21
+ }
22
+ declare module "@tiptap/core" {
23
+ interface Commands<ReturnType> {
24
+ blockPosition: {
25
+ /**
26
+ * Set the block position attribute
27
+ * @param position The position ("start", "center", "end")
28
+ * @example editor.commands.setBlockPosition('start')
29
+ */
30
+ setBlockPosition: (position: string) => ReturnType;
31
+ /**
32
+ * Unset the block position attribute
33
+ * @example editor.commands.unsetBlockPosition()
34
+ */
35
+ unsetBlockPosition: () => ReturnType;
36
+ /**
37
+ * Toggle the block position attribute
38
+ * @param alignment The alignment
39
+ * @example editor.commands.toggleBlockPosition('end')
40
+ */
41
+ toggleBlockPosition: (position: string) => ReturnType;
42
+ };
43
+ }
44
+ }
45
+ /**
46
+ * This extension allows to set the block position.
47
+ */
48
+ export declare const ExtensionBlockPosition: Extension<ExtensionBlockPositionOptions, any>;
@@ -1,4 +1,4 @@
1
- import { ExtensionOptions } from '../../types';
2
1
  import { BlockquoteOptions } from '@tiptap/extension-blockquote';
3
- declare const Blockquote: import('@tiptap/core').Node<ExtensionOptions & BlockquoteOptions, any>;
4
- export default Blockquote;
2
+ import { ExtensionOptions } from '../../types';
3
+ export type ExtensionBlockquoteOptions = Partial<BlockquoteOptions> & ExtensionOptions;
4
+ export declare const ExtensionBlockquote: import('@tiptap/core').Node<ExtensionBlockquoteOptions, any>;
@@ -1,4 +1,4 @@
1
- import { ExtensionOptions } from '../../types';
2
1
  import { BoldOptions } from '@tiptap/extension-bold';
3
- declare const Bold: import('@tiptap/core').Mark<ExtensionOptions & BoldOptions, any>;
4
- export default Bold;
2
+ import { ExtensionOptions } from '../../types';
3
+ export type ExtensionBoldOptions = Partial<BoldOptions> & ExtensionOptions;
4
+ export declare const ExtensionBold: import('@tiptap/core').Mark<ExtensionBoldOptions, any>;
@@ -1,4 +1,4 @@
1
+ import { BulletListOptions } from '@tiptap/extension-list';
1
2
  import { ExtensionOptions } from '../../types';
2
- import { BulletListOptions } from '@tiptap/extension-bullet-list';
3
- declare const BulletList: import('@tiptap/core').Node<ExtensionOptions & BulletListOptions, any>;
4
- export default BulletList;
3
+ export type ExtensionBulletListOptions = Partial<BulletListOptions> & ExtensionOptions;
4
+ export declare const ExtensionBulletList: import('@tiptap/core').Node<ExtensionOptions, any>;
@@ -0,0 +1 @@
1
+ export { CharacterCount as ExtensionCharacterCount } from '@tiptap/extensions';
@@ -1,4 +1,4 @@
1
1
  import { Extension } from '../../tiptap';
2
2
  import { ExtensionOptions } from '../../types';
3
- declare const clearFormat: Extension<ExtensionOptions, any>;
4
- export default clearFormat;
3
+ export type ExtensionClearFormatOptions = ExtensionOptions;
4
+ export declare const ExtensionClearFormat: Extension<ExtensionOptions, any>;
@@ -1,4 +1,4 @@
1
- import { ExtensionOptions } from '../../types';
2
1
  import { CodeOptions } from '@tiptap/extension-code';
3
- declare const Code: import('@tiptap/core').Mark<ExtensionOptions & CodeOptions, any>;
4
- export default Code;
2
+ import { ExtensionOptions } from '../../types';
3
+ export type ExtensionCodeOptions = Partial<CodeOptions> & ExtensionOptions;
4
+ export declare const ExtensionCode: import('@tiptap/core').Mark<ExtensionCodeOptions, any>;
@@ -2,7 +2,7 @@ export interface Option {
2
2
  label: string;
3
3
  value: string;
4
4
  }
5
- declare let __VLS_typeProps: {
5
+ type __VLS_Props = {
6
6
  container?: any;
7
7
  containerClass?: string;
8
8
  options: Option[];
@@ -10,13 +10,15 @@ declare let __VLS_typeProps: {
10
10
  };
11
11
  type __VLS_PublicProps = {
12
12
  modelValue?: string;
13
- } & typeof __VLS_typeProps;
13
+ } & __VLS_Props;
14
14
  declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
- "update:modelValue": (modelValue: string) => any;
15
+ "update:modelValue": (value: string) => any;
16
16
  } & {
17
17
  select: () => any;
18
18
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
19
19
  onSelect?: (() => any) | undefined;
20
- "onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
21
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
21
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
22
+ inputRef: HTMLInputElement;
23
+ }, any>;
22
24
  export default _default;
@@ -1,5 +1,6 @@
1
- import { EditorState } from '../../tiptap/pm';
2
- declare module "@/tiptap" {
1
+ import { EditorState, PluginKey } from '../../tiptap/pm';
2
+ import { ExtensionOptions } from '../../types';
3
+ declare module '../../tiptap' {
3
4
  interface Commands<ReturnType> {
4
5
  codeIndent: {
5
6
  codeIndent: () => ReturnType;
@@ -7,7 +8,7 @@ declare module "@/tiptap" {
7
8
  };
8
9
  }
9
10
  }
10
- export interface Option {
11
+ interface Option {
11
12
  label: string;
12
13
  value: string;
13
14
  }
@@ -62,5 +63,6 @@ export interface ExtensionCodeBlockOptions extends CodeBlockOptions {
62
63
  value: string;
63
64
  }>);
64
65
  }
65
- declare const _default: import('@tiptap/core').Node<ExtensionCodeBlockOptions, any>;
66
- export default _default;
66
+ export declare const CODE_BLOCK_BUBBLE_MENU_KEY: PluginKey<any>;
67
+ export declare const ExtensionCodeBlock: import('@tiptap/core').Node<ExtensionOptions & Partial<ExtensionCodeBlockOptions>, any>;
68
+ export {};
@@ -1,2 +1 @@
1
- export { default as ExtensionCodeBlock } from './code-block';
2
1
  export * from './code-block';
@@ -1,30 +1,3 @@
1
- import { Editor } from '../../tiptap/vue-3';
2
- import { Component } from 'vue';
3
- declare const _default: import('vue').DefineComponent<{
4
- editor: Editor;
5
- isActive: ({ editor }: {
6
- editor: Editor;
7
- }) => boolean;
8
- visible?: ({ editor }: {
9
- editor: Editor;
10
- }) => boolean;
11
- icon?: Component;
12
- title?: string;
13
- action?: ({ editor }: {
14
- editor: Editor;
15
- }) => void;
16
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
17
- editor: Editor;
18
- isActive: ({ editor }: {
19
- editor: Editor;
20
- }) => boolean;
21
- visible?: ({ editor }: {
22
- editor: Editor;
23
- }) => boolean;
24
- icon?: Component;
25
- title?: string;
26
- action?: ({ editor }: {
27
- editor: Editor;
28
- }) => void;
29
- }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
1
+ import { BubbleItemComponentProps } from '../../types';
2
+ declare const _default: import('vue').DefineComponent<BubbleItemComponentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BubbleItemComponentProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
30
3
  export default _default;
@@ -1,25 +1,3 @@
1
- import { Editor } from '../../tiptap/vue-3';
2
- import { Component } from 'vue';
3
- declare const _default: import('vue').DefineComponent<{
4
- editor?: Editor;
5
- isActive?: boolean;
6
- disabled?: boolean;
7
- title?: string;
8
- action?: () => void;
9
- icon?: Component;
10
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
11
- editor?: Editor;
12
- isActive?: boolean;
13
- disabled?: boolean;
14
- title?: string;
15
- action?: () => void;
16
- icon?: Component;
17
- }> & Readonly<{}>, {
18
- title: string;
19
- editor: Editor;
20
- icon: Component;
21
- isActive: boolean;
22
- action: () => void;
23
- disabled: boolean;
24
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
1
+ import { ToolbarItemComponentProps } from '../../types';
2
+ declare const _default: import('vue').DefineComponent<ToolbarItemComponentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ToolbarItemComponentProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
25
3
  export default _default;
@@ -1,4 +1,4 @@
1
- import { ExtensionOptions } from '../../types';
2
1
  import { ColorOptions } from '@tiptap/extension-color';
3
- declare const Color: import('@tiptap/core').Extension<ColorOptions & ExtensionOptions, any>;
4
- export default Color;
2
+ import { ExtensionOptions } from '../../types';
3
+ export type ExtensionColorOptions = Partial<ColorOptions> & ExtensionOptions;
4
+ export declare const ExtensionColor: import('@tiptap/core').Extension<ExtensionColorOptions, any>;
@@ -1,3 +1,7 @@
1
1
  import { Node } from '../../tiptap/vue-3';
2
- declare const Column: Node<any, any>;
3
- export default Column;
2
+ export type ExtensionColumnOptions = {
3
+ HTMLAttributes: {
4
+ class: string;
5
+ };
6
+ };
7
+ export declare const ExtensionColumn: Node<ExtensionColumnOptions, any>;
@@ -1,5 +1,7 @@
1
- import { Node } from '../../tiptap/vue-3';
2
- declare module "@/tiptap" {
1
+ import { Node } from '../../tiptap';
2
+ import { PluginKey } from '../../tiptap/pm';
3
+ import { ExtensionOptions } from '../../types';
4
+ declare module '../../tiptap' {
3
5
  interface Commands<ReturnType> {
4
6
  columns: {
5
7
  insertColumns: (attrs?: {
@@ -11,5 +13,10 @@ declare module "@/tiptap" {
11
13
  };
12
14
  }
13
15
  }
14
- declare const Columns: Node<any, any>;
15
- export default Columns;
16
+ export declare const COLUMNS_BUBBLE_MENU_KEY: PluginKey<any>;
17
+ export interface ExtensionColumnsOptions extends ExtensionOptions {
18
+ HTMLAttributes: {
19
+ class: string;
20
+ };
21
+ }
22
+ export declare const ExtensionColumns: Node<ExtensionColumnsOptions, any>;
@@ -1,2 +1,2 @@
1
- export { default as ExtensionColumn } from './column';
2
- export { default as ExtensionColumns } from './columns';
1
+ export * from './column';
2
+ export * from './columns';
@@ -1,5 +1,5 @@
1
- import { CommandMenuItemType } from '../../types';
2
1
  import { PropType } from 'vue';
2
+ import { CommandMenuItemType } from '../../types';
3
3
  declare function onKeyDown({ event }: {
4
4
  event: KeyboardEvent;
5
5
  }): boolean;
@@ -23,5 +23,5 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
23
23
  type: PropType<(item: CommandMenuItemType) => void>;
24
24
  required: true;
25
25
  };
26
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
26
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
27
27
  export default _default;
@@ -1,3 +1,2 @@
1
- import { Extension } from '../../tiptap/vue-3';
2
- declare const _default: Extension<any, any>;
3
- export default _default;
1
+ import { Extension } from '../../tiptap';
2
+ export declare const ExtensionCommandsMenu: Extension<any, any>;
@@ -1 +1 @@
1
- export { default as ExtensionCommands } from './commands';
1
+ export * from './commands';
@@ -0,0 +1,6 @@
1
+ import { DetailsOptions } from '@tiptap/extension-details';
2
+ import { PluginKey } from '../../tiptap';
3
+ import { ExtensionOptions } from '../../types';
4
+ export declare const DETAILS_BUBBLE_MENU_KEY: PluginKey<any>;
5
+ export type ExtensionDetailsOptions = Partial<DetailsOptions> & ExtensionOptions;
6
+ export declare const ExtensionDetails: import('@tiptap/core').Node<ExtensionDetailsOptions, any>;
@@ -0,0 +1,2 @@
1
+ import { Document as ExtensionDocument } from '@tiptap/extension-document';
2
+ export { ExtensionDocument };
@@ -0,0 +1 @@
1
+ export declare const ExtensionDropcursor: import('@tiptap/core').Extension<import('@tiptap/extensions').DropcursorOptions, any>;
@@ -0,0 +1,96 @@
1
+ import { HardBreakOptions } from '@tiptap/extension-hard-break';
2
+ import { HorizontalRuleOptions } from '@tiptap/extension-horizontal-rule';
3
+ import { CharacterCountOptions, DropcursorOptions, PlaceholderOptions } from '@tiptap/extensions';
4
+ import { Extension, Extensions } from '../tiptap';
5
+ import { ExtensionOptions } from '../types';
6
+ import { ExtensionAudioOptions } from './audio';
7
+ import { ExtensionBlockPositionOptions } from './block-position';
8
+ import { ExtensionBlockquoteOptions } from './blockquote';
9
+ import { ExtensionBoldOptions } from './bold';
10
+ import { ExtensionBulletListOptions } from './bullet-list';
11
+ import { ExtensionClearFormatOptions } from './clear-format';
12
+ import { ExtensionCodeOptions } from './code';
13
+ import { ExtensionCodeBlockOptions } from './code-block';
14
+ import { ExtensionColorOptions } from './color';
15
+ import { ExtensionColumnsOptions } from './columns';
16
+ import { ExtensionDetailsOptions } from './details';
17
+ import { ExtensionFigureOptions } from './figure';
18
+ import { ExtensionFontSizeOptions } from './font-size';
19
+ import { ExtensionGalleryOptions } from './gallery';
20
+ import { ExtensionHeadingOptions } from './heading';
21
+ import { ExtensionHighlightOptions } from './highlight';
22
+ import { ExtensionImageOptions } from './image';
23
+ import { ExtensionIndentOptions } from './indent';
24
+ import { ExtensionItalicOptions } from './italic';
25
+ import { ExtensionLinkOptions } from './link';
26
+ import { ExtensionListKeymapOptions } from './list-keymap';
27
+ import { ExtensionNodeSelectedOptions } from './node-selected';
28
+ import { ExtensionOrderedListOptions } from './ordered-list';
29
+ import { ExtensionParagraphOptions } from './paragraph';
30
+ import { SmartScrollOptions } from './smart-scroll';
31
+ import { ExtensionStrikeOptions } from './strike';
32
+ import { ExtensionSubscriptOptions } from './subscript';
33
+ import { ExtensionSuperscriptOptions } from './superscript';
34
+ import { ExtensionTableOptions } from './table';
35
+ import { ExtensionTaskListOptions } from './task-list';
36
+ import { ExtensionTextOptions } from './text';
37
+ import { ExtensionTextAlignOptions } from './text-align';
38
+ import { ExtensionTextStyleOptions } from './text-style';
39
+ import { ExtensionUnderlineOptions } from './underline';
40
+ import { ExtensionVideoOptions } from './video';
41
+ export interface ExtensionsKitOptions {
42
+ audio: Partial<ExtensionAudioOptions> | false;
43
+ blockquote: Partial<ExtensionBlockquoteOptions> | false;
44
+ bold: Partial<ExtensionBoldOptions> | false;
45
+ bulletList: Partial<ExtensionBulletListOptions> | false;
46
+ characterCount: Partial<CharacterCountOptions> | false;
47
+ clearFormat: Partial<ExtensionClearFormatOptions> | false;
48
+ code: Partial<ExtensionCodeOptions> | false;
49
+ codeBlock: Partial<ExtensionOptions & ExtensionCodeBlockOptions> | false;
50
+ color: Partial<ExtensionColorOptions> | false;
51
+ columns: Partial<ExtensionColumnsOptions> | false;
52
+ commandsMenu?: false;
53
+ details: Partial<ExtensionDetailsOptions> | false;
54
+ document?: boolean;
55
+ dropCursor: Partial<DropcursorOptions> | false;
56
+ figure: Partial<ExtensionFigureOptions> | false;
57
+ fontSize: Partial<ExtensionFontSizeOptions> | false;
58
+ formatBrush: Partial<ExtensionOptions> | false;
59
+ gallery: Partial<ExtensionGalleryOptions> | false;
60
+ gapCursor?: boolean;
61
+ hardBreak: Partial<HardBreakOptions> | false;
62
+ heading: Partial<ExtensionHeadingOptions> | false;
63
+ highlight: Partial<ExtensionHighlightOptions> | false;
64
+ history: Partial<ExtensionOptions> | false;
65
+ horizontalRule: Partial<HorizontalRuleOptions> | false;
66
+ iframe: Partial<ExtensionOptions> | false;
67
+ image: Partial<ExtensionImageOptions> | false;
68
+ indent: Partial<ExtensionIndentOptions> | false;
69
+ italic: Partial<ExtensionItalicOptions> | false;
70
+ link: Partial<ExtensionLinkOptions> | false;
71
+ listKeymap: Partial<ExtensionListKeymapOptions> | false;
72
+ nodeSelected: Partial<ExtensionNodeSelectedOptions> | false;
73
+ orderedList: Partial<ExtensionOrderedListOptions> | false;
74
+ paragraph: Partial<ExtensionParagraphOptions> | false;
75
+ placeholder: Partial<PlaceholderOptions> | false;
76
+ rangeSelection?: boolean;
77
+ searchAndReplace?: boolean;
78
+ smartScroll: Partial<SmartScrollOptions> | false;
79
+ strike: Partial<ExtensionStrikeOptions> | false;
80
+ subscript: Partial<ExtensionSubscriptOptions> | false;
81
+ superscript: Partial<ExtensionSuperscriptOptions> | false;
82
+ table: Partial<ExtensionTableOptions> | false;
83
+ taskList: Partial<ExtensionTaskListOptions> | false;
84
+ text: Partial<ExtensionTextOptions> | false;
85
+ textAlign: Partial<ExtensionTextAlignOptions> | false;
86
+ textStyle: Partial<ExtensionTextStyleOptions> | false;
87
+ trailingNode?: boolean;
88
+ underline: Partial<ExtensionUnderlineOptions> | false;
89
+ upload?: boolean;
90
+ video: Partial<ExtensionVideoOptions> | false;
91
+ listExtra: Partial<ExtensionOptions> | false;
92
+ blockPosition: Partial<ExtensionBlockPositionOptions> | false;
93
+ align: Partial<ExtensionOptions> | false;
94
+ customExtensions?: Extensions;
95
+ }
96
+ export declare const ExtensionsKit: Extension<ExtensionsKitOptions, any>;
@@ -0,0 +1,3 @@
1
+ import { NodeViewProps } from '../../tiptap/vue-3';
2
+ declare const _default: import('vue').DefineComponent<NodeViewProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NodeViewProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
3
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { Node } from '../../tiptap';
2
+ export declare const ExtensionFigureCaption: Node<any, any>;
@@ -0,0 +1,15 @@
1
+ import { Node } from '../../tiptap';
2
+ import { ExtensionOptions } from '../../types';
3
+ declare module '../../tiptap' {
4
+ interface Commands<ReturnType> {
5
+ figure: {
6
+ setFigure: (attrs?: Record<string, unknown>) => ReturnType;
7
+ unsetFigure: () => ReturnType;
8
+ updateFigureContainerWidth: (width?: string) => ReturnType;
9
+ };
10
+ }
11
+ }
12
+ export interface ExtensionFigureOptions extends ExtensionOptions {
13
+ HTMLAttributes: Record<string, unknown>;
14
+ }
15
+ export declare const ExtensionFigure: Node<ExtensionFigureOptions, any>;
@@ -1,14 +1,4 @@
1
- import { Extension } from '../../tiptap/vue-3';
2
- export type FontSizeOptions = {
3
- types: string[];
4
- };
5
- declare module "@/tiptap" {
6
- interface Commands<ReturnType> {
7
- fontSize: {
8
- setFontSize: (size: number) => ReturnType;
9
- unsetFontSize: () => ReturnType;
10
- };
11
- }
12
- }
13
- declare const FontSize: Extension<FontSizeOptions, any>;
14
- export default FontSize;
1
+ import { FontSizeOptions } from '@tiptap/extension-text-style';
2
+ import { ExtensionOptions } from '../../types';
3
+ export type ExtensionFontSizeOptions = Partial<FontSizeOptions> & ExtensionOptions;
4
+ export declare const ExtensionFontSize: import('@tiptap/core').Extension<ExtensionFontSizeOptions, any>;