@halo-dev/richtext-editor 2.21.0 → 2.22.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 (149) hide show
  1. package/README.md +61 -0
  2. package/dist/components/Editor.vue.d.ts +5 -4
  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 +52 -0
  26. package/dist/components/upload/ResourceReplaceButton.vue.d.ts +14 -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/audio/AudioView.vue.d.ts +107 -2
  30. package/dist/extensions/audio/BubbleItemAudioLink.vue.d.ts +2 -29
  31. package/dist/extensions/audio/BubbleItemAudioPosition.vue.d.ts +7 -0
  32. package/dist/extensions/audio/index.d.ts +9 -4
  33. package/dist/extensions/blockquote/index.d.ts +2 -2
  34. package/dist/extensions/bold/index.d.ts +2 -2
  35. package/dist/extensions/bullet-list/index.d.ts +3 -3
  36. package/dist/extensions/character-count/index.d.ts +1 -0
  37. package/dist/extensions/clear-format/index.d.ts +2 -2
  38. package/dist/extensions/code/index.d.ts +2 -2
  39. package/dist/extensions/code-block/CodeBlockSelect.vue.d.ts +7 -5
  40. package/dist/extensions/code-block/code-block.d.ts +7 -5
  41. package/dist/extensions/code-block/index.d.ts +0 -1
  42. package/dist/extensions/color/ColorBubbleItem.vue.d.ts +2 -29
  43. package/dist/extensions/color/ColorToolbarItem.vue.d.ts +2 -24
  44. package/dist/extensions/color/index.d.ts +2 -2
  45. package/dist/extensions/columns/column.d.ts +6 -2
  46. package/dist/extensions/columns/columns.d.ts +11 -4
  47. package/dist/extensions/columns/index.d.ts +2 -2
  48. package/dist/extensions/commands-menu/CommandsView.vue.d.ts +1 -1
  49. package/dist/extensions/commands-menu/commands.d.ts +2 -3
  50. package/dist/extensions/commands-menu/index.d.ts +1 -1
  51. package/dist/extensions/details/index.d.ts +6 -0
  52. package/dist/extensions/document/index.d.ts +2 -0
  53. package/dist/extensions/drop-cursor/index.d.ts +1 -0
  54. package/dist/extensions/extensions-kit.d.ts +91 -0
  55. package/dist/extensions/figure/FigureCaptionView.vue.d.ts +3 -0
  56. package/dist/extensions/figure/figure-caption.d.ts +2 -0
  57. package/dist/extensions/figure/index.d.ts +15 -0
  58. package/dist/extensions/font-size/index.d.ts +4 -14
  59. package/dist/extensions/format-brush/index.d.ts +4 -4
  60. package/dist/extensions/gallery/BubbleItemAddImage.vue.d.ts +7 -0
  61. package/dist/extensions/gallery/BubbleItemGap.vue.d.ts +493 -0
  62. package/dist/extensions/gallery/BubbleItemGroupSize.vue.d.ts +493 -0
  63. package/dist/extensions/gallery/BubbleItemLayout.vue.d.ts +493 -0
  64. package/dist/extensions/gallery/GalleryView.vue.d.ts +3 -0
  65. package/dist/extensions/gallery/gallery-bubble.d.ts +8 -0
  66. package/dist/extensions/gallery/index.d.ts +28 -0
  67. package/dist/extensions/gallery/useGalleryImages.d.ts +7 -0
  68. package/dist/extensions/gap-cursor/index.d.ts +1 -17
  69. package/dist/extensions/hard-break/index.d.ts +1 -0
  70. package/dist/extensions/heading/index.d.ts +2 -2
  71. package/dist/extensions/highlight/HighlightBubbleItem.vue.d.ts +2 -29
  72. package/dist/extensions/highlight/HighlightToolbarItem.vue.d.ts +2 -24
  73. package/dist/extensions/highlight/index.d.ts +2 -2
  74. package/dist/extensions/history/index.d.ts +1 -3
  75. package/dist/extensions/horizontal-rule/index.d.ts +1 -0
  76. package/dist/extensions/iframe/BubbleItemIframeAlign.vue.d.ts +7 -0
  77. package/dist/extensions/iframe/BubbleItemIframeLink.vue.d.ts +2 -29
  78. package/dist/extensions/iframe/BubbleItemIframeSize.vue.d.ts +2 -6
  79. package/dist/extensions/iframe/IframeView.vue.d.ts +54 -1
  80. package/dist/extensions/iframe/index.d.ts +4 -4
  81. package/dist/extensions/image/BubbleItemImageAlt.vue.d.ts +2 -29
  82. package/dist/extensions/image/BubbleItemImageHref.vue.d.ts +2 -29
  83. package/dist/extensions/image/BubbleItemImageLink.vue.d.ts +2 -29
  84. package/dist/extensions/image/BubbleItemImagePosition.vue.d.ts +7 -0
  85. package/dist/extensions/image/BubbleItemImageSize.vue.d.ts +2 -29
  86. package/dist/extensions/image/ImageView.vue.d.ts +109 -2
  87. package/dist/extensions/image/index.d.ts +8 -2
  88. package/dist/extensions/indent/index.d.ts +5 -5
  89. package/dist/extensions/index.d.ts +49 -47
  90. package/dist/extensions/italic/index.d.ts +2 -2
  91. package/dist/extensions/link/LinkBubbleButton.vue.d.ts +2 -29
  92. package/dist/extensions/link/index.d.ts +2 -2
  93. package/dist/extensions/list-extra/index.d.ts +6 -0
  94. package/dist/extensions/list-keymap/index.d.ts +4 -4
  95. package/dist/extensions/node-selected/index.d.ts +3 -4
  96. package/dist/extensions/ordered-list/index.d.ts +3 -3
  97. package/dist/extensions/paragraph/index.d.ts +2 -2
  98. package/dist/extensions/placeholder/index.d.ts +1 -0
  99. package/dist/extensions/range-selection/index.d.ts +2 -2
  100. package/dist/extensions/search-and-replace/IconButton.vue.d.ts +20 -0
  101. package/dist/extensions/search-and-replace/MatchToggleButton.vue.d.ts +20 -0
  102. package/dist/extensions/search-and-replace/SearchAndReplace.vue.d.ts +5 -2
  103. package/dist/extensions/search-and-replace/SearchAndReplacePlugin.d.ts +3 -2
  104. package/dist/extensions/search-and-replace/index.d.ts +2 -3
  105. package/dist/extensions/strike/index.d.ts +2 -2
  106. package/dist/extensions/subscript/index.d.ts +2 -2
  107. package/dist/extensions/superscript/index.d.ts +2 -2
  108. package/dist/extensions/table/index.d.ts +4 -2
  109. package/dist/extensions/table/table-row.d.ts +1 -1
  110. package/dist/extensions/task-list/index.d.ts +3 -3
  111. package/dist/extensions/text/BubbleItemTextType.vue.d.ts +3 -0
  112. package/dist/extensions/text/index.d.ts +4 -2
  113. package/dist/extensions/text-align/index.d.ts +2 -2
  114. package/dist/extensions/text-style/index.d.ts +3 -3
  115. package/dist/extensions/trailing-node/index.d.ts +1 -2
  116. package/dist/extensions/underline/index.d.ts +2 -2
  117. package/dist/extensions/upload/index.d.ts +8 -0
  118. package/dist/extensions/video/BubbleItemVideoLink.vue.d.ts +2 -29
  119. package/dist/extensions/video/BubbleItemVideoPosition.vue.d.ts +7 -0
  120. package/dist/extensions/video/BubbleItemVideoSize.vue.d.ts +2 -29
  121. package/dist/extensions/video/VideoView.vue.d.ts +107 -2
  122. package/dist/extensions/video/index.d.ts +18 -4
  123. package/dist/index.d.ts +1 -4
  124. package/dist/index.es.js +39156 -0
  125. package/dist/index.iife.js +176 -0
  126. package/dist/style.css +2 -1
  127. package/dist/tiptap/index.d.ts +3 -3
  128. package/dist/tiptap/pm/index.d.ts +0 -1
  129. package/dist/types/index.d.ts +115 -59
  130. package/dist/utils/attachment.d.ts +3 -0
  131. package/dist/utils/clipboard.d.ts +9 -0
  132. package/dist/utils/delete-node.d.ts +1 -1
  133. package/dist/utils/filter-duplicate-extensions.d.ts +2 -0
  134. package/dist/utils/index.d.ts +8 -0
  135. package/dist/utils/{isListActive.d.ts → is-list-active.d.ts} +2 -2
  136. package/dist/utils/is-node-empty.d.ts +6 -0
  137. package/dist/utils/keyboard.d.ts +37 -0
  138. package/dist/utils/upload.d.ts +67 -0
  139. package/package.json +46 -58
  140. package/dist/components/block/BlockActionInput.vue.d.ts +0 -15
  141. package/dist/components/block/BlockCard.vue.d.ts +0 -30
  142. package/dist/components/bubble/BubbleMenu.vue.d.ts +0 -84
  143. package/dist/components/bubble/BubbleMenuPlugin.d.ts +0 -52
  144. package/dist/dev/main.d.ts +0 -1
  145. package/dist/extensions/draggable/index.d.ts +0 -13
  146. package/dist/rich-text-editor.es.js +0 -41650
  147. package/dist/rich-text-editor.iife.js +0 -136
  148. package/dist/utils/isNodeEmpty.d.ts +0 -4
  149. /package/dist/components/icon/{MdiDeleteForeverOutline.vue.d.ts → MingcuteDelete2Line.vue.d.ts} +0 -0
@@ -1,3 +1,108 @@
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
+ import { AttachmentSimple } from '@halo-dev/ui-shared';
3
+ 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, {
4
+ editorLinkObtain: ({
5
+ $: import('vue').ComponentInternalInstance;
6
+ $data: {};
7
+ $props: {
8
+ readonly editor: import('@tiptap/core').Editor;
9
+ readonly accept?: string | undefined;
10
+ readonly uploadedFile?: File | undefined;
11
+ readonly uploadToAttachmentFile: (file: File, options?: import('axios').AxiosRequestConfig) => Promise<import('@halo-dev/api-client').Attachment>;
12
+ readonly onSetExternalLink?: ((attachment?: AttachmentSimple | undefined) => any) | undefined;
13
+ readonly onOnUploadReady?: ((file: File) => any) | undefined;
14
+ readonly onOnUploadProgress?: ((progress: number) => any) | undefined;
15
+ readonly onOnUploadFinish?: (() => any) | undefined;
16
+ readonly onOnUploadError?: ((error: Error) => any) | undefined;
17
+ readonly onOnUploadAbort?: (() => any) | undefined;
18
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
19
+ $attrs: {
20
+ [x: string]: unknown;
21
+ };
22
+ $refs: {
23
+ [x: string]: unknown;
24
+ };
25
+ $slots: Readonly<{
26
+ [name: string]: import('vue').Slot<any> | undefined;
27
+ }>;
28
+ $root: import('vue').ComponentPublicInstance | null;
29
+ $parent: import('vue').ComponentPublicInstance | null;
30
+ $host: Element | null;
31
+ $emit: ((event: "setExternalLink", attachment?: AttachmentSimple | undefined) => void) & ((event: "onUploadReady", file: File) => void) & ((event: "onUploadProgress", progress: number) => void) & ((event: "onUploadFinish") => void) & ((event: "onUploadError", error: Error) => void) & ((event: "onUploadAbort") => void);
32
+ $el: any;
33
+ $options: import('vue').ComponentOptionsBase<Readonly<{
34
+ editor: import('@tiptap/core').Editor;
35
+ accept?: string;
36
+ uploadedFile?: File;
37
+ uploadToAttachmentFile: (file: File, options?: import('axios').AxiosRequestConfig) => Promise<import('@halo-dev/api-client').Attachment>;
38
+ }> & Readonly<{
39
+ onSetExternalLink?: ((attachment?: AttachmentSimple | undefined) => any) | undefined;
40
+ onOnUploadReady?: ((file: File) => any) | undefined;
41
+ onOnUploadProgress?: ((progress: number) => any) | undefined;
42
+ onOnUploadFinish?: (() => any) | undefined;
43
+ onOnUploadError?: ((error: Error) => any) | undefined;
44
+ onOnUploadAbort?: (() => any) | undefined;
45
+ }>, {
46
+ abort: () => void;
47
+ retry: () => void;
48
+ reset: () => void;
49
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
50
+ setExternalLink: (attachment?: AttachmentSimple | undefined) => any;
51
+ onUploadReady: (file: File) => any;
52
+ onUploadProgress: (progress: number) => any;
53
+ onUploadFinish: () => any;
54
+ onUploadError: (error: Error) => any;
55
+ onUploadAbort: () => any;
56
+ }, string, {
57
+ accept: string;
58
+ uploadedFile: File;
59
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
60
+ beforeCreate?: (() => void) | (() => void)[];
61
+ created?: (() => void) | (() => void)[];
62
+ beforeMount?: (() => void) | (() => void)[];
63
+ mounted?: (() => void) | (() => void)[];
64
+ beforeUpdate?: (() => void) | (() => void)[];
65
+ updated?: (() => void) | (() => void)[];
66
+ activated?: (() => void) | (() => void)[];
67
+ deactivated?: (() => void) | (() => void)[];
68
+ beforeDestroy?: (() => void) | (() => void)[];
69
+ beforeUnmount?: (() => void) | (() => void)[];
70
+ destroyed?: (() => void) | (() => void)[];
71
+ unmounted?: (() => void) | (() => void)[];
72
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
73
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
74
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
75
+ };
76
+ $forceUpdate: () => void;
77
+ $nextTick: typeof import('vue').nextTick;
78
+ $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;
79
+ } & Readonly<{
80
+ accept: string;
81
+ uploadedFile: File;
82
+ }> & Omit<Readonly<{
83
+ editor: import('@tiptap/core').Editor;
84
+ accept?: string;
85
+ uploadedFile?: File;
86
+ uploadToAttachmentFile: (file: File, options?: import('axios').AxiosRequestConfig) => Promise<import('@halo-dev/api-client').Attachment>;
87
+ }> & Readonly<{
88
+ onSetExternalLink?: ((attachment?: AttachmentSimple | undefined) => any) | undefined;
89
+ onOnUploadReady?: ((file: File) => any) | undefined;
90
+ onOnUploadProgress?: ((progress: number) => any) | undefined;
91
+ onOnUploadFinish?: (() => any) | undefined;
92
+ onOnUploadError?: ((error: Error) => any) | undefined;
93
+ onOnUploadAbort?: (() => any) | undefined;
94
+ }>, "reset" | "abort" | "retry" | ("accept" | "uploadedFile")> & import('vue').ShallowUnwrapRef<{
95
+ abort: () => void;
96
+ retry: () => void;
97
+ reset: () => void;
98
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
99
+ $slots: {
100
+ uploading?(_: {
101
+ progress: number | undefined;
102
+ }): any;
103
+ error?(_: {}): any;
104
+ icon?(_: {}): any;
105
+ };
106
+ }) | null;
107
+ }, any>;
3
108
  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 { Node, PluginKey } from '../../tiptap';
2
2
  import { ExtensionOptions } from '../../types';
3
- declare module "@/tiptap" {
3
+ import { Attachment } from '@halo-dev/api-client';
4
+ import { AxiosRequestConfig } from 'axios';
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>;
@@ -1,4 +1,4 @@
1
1
  import { ExtensionOptions } from '../../types';
2
2
  import { BlockquoteOptions } from '@tiptap/extension-blockquote';
3
- declare const Blockquote: import('@tiptap/core').Node<ExtensionOptions & BlockquoteOptions, any>;
4
- export default Blockquote;
3
+ export type ExtensionBlockquoteOptions = Partial<BlockquoteOptions> & ExtensionOptions;
4
+ export declare const ExtensionBlockquote: import('@tiptap/core').Node<ExtensionBlockquoteOptions, any>;
@@ -1,4 +1,4 @@
1
1
  import { ExtensionOptions } from '../../types';
2
2
  import { BoldOptions } from '@tiptap/extension-bold';
3
- declare const Bold: import('@tiptap/core').Mark<ExtensionOptions & BoldOptions, any>;
4
- export default Bold;
3
+ export type ExtensionBoldOptions = Partial<BoldOptions> & ExtensionOptions;
4
+ export declare const ExtensionBold: import('@tiptap/core').Mark<ExtensionBoldOptions, any>;
@@ -1,4 +1,4 @@
1
1
  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;
2
+ import { BulletListOptions } from '@tiptap/extension-list';
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
1
  import { ExtensionOptions } from '../../types';
2
2
  import { CodeOptions } from '@tiptap/extension-code';
3
- declare const Code: import('@tiptap/core').Mark<ExtensionOptions & CodeOptions, any>;
4
- export default Code;
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
1
  import { ExtensionOptions } from '../../types';
2
2
  import { ColorOptions } from '@tiptap/extension-color';
3
- declare const Color: import('@tiptap/core').Extension<ColorOptions & ExtensionOptions, any>;
4
- export default Color;
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';
@@ -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 { PluginKey } from '../../tiptap';
2
+ import { ExtensionOptions } from '../../types';
3
+ import { DetailsOptions } from '@tiptap/extension-details';
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,91 @@
1
+ import { Extension, Extensions } from '../tiptap';
2
+ import { ExtensionOptions } from '../types';
3
+ import { HardBreakOptions } from '@tiptap/extension-hard-break';
4
+ import { HorizontalRuleOptions } from '@tiptap/extension-horizontal-rule';
5
+ import { CharacterCountOptions, DropcursorOptions, PlaceholderOptions } from '@tiptap/extensions';
6
+ import { ExtensionAudioOptions } from './audio';
7
+ import { ExtensionBlockquoteOptions } from './blockquote';
8
+ import { ExtensionBoldOptions } from './bold';
9
+ import { ExtensionBulletListOptions } from './bullet-list';
10
+ import { ExtensionClearFormatOptions } from './clear-format';
11
+ import { ExtensionCodeOptions } from './code';
12
+ import { ExtensionCodeBlockOptions } from './code-block';
13
+ import { ExtensionColorOptions } from './color';
14
+ import { ExtensionColumnsOptions } from './columns';
15
+ import { ExtensionDetailsOptions } from './details';
16
+ import { ExtensionFigureOptions } from './figure';
17
+ import { ExtensionFontSizeOptions } from './font-size';
18
+ import { ExtensionGalleryOptions } from './gallery';
19
+ import { ExtensionHeadingOptions } from './heading';
20
+ import { ExtensionHighlightOptions } from './highlight';
21
+ import { ExtensionImageOptions } from './image';
22
+ import { ExtensionIndentOptions } from './indent';
23
+ import { ExtensionItalicOptions } from './italic';
24
+ import { ExtensionLinkOptions } from './link';
25
+ import { ExtensionListKeymapOptions } from './list-keymap';
26
+ import { ExtensionNodeSelectedOptions } from './node-selected';
27
+ import { ExtensionOrderedListOptions } from './ordered-list';
28
+ import { ExtensionParagraphOptions } from './paragraph';
29
+ import { ExtensionStrikeOptions } from './strike';
30
+ import { ExtensionSubscriptOptions } from './subscript';
31
+ import { ExtensionSuperscriptOptions } from './superscript';
32
+ import { ExtensionTableOptions } from './table';
33
+ import { ExtensionTaskListOptions } from './task-list';
34
+ import { ExtensionTextOptions } from './text';
35
+ import { ExtensionTextAlignOptions } from './text-align';
36
+ import { ExtensionTextStyleOptions } from './text-style';
37
+ import { ExtensionUnderlineOptions } from './underline';
38
+ import { ExtensionVideoOptions } from './video';
39
+ export interface ExtensionsKitOptions {
40
+ audio: Partial<ExtensionAudioOptions> | false;
41
+ blockquote: Partial<ExtensionBlockquoteOptions> | false;
42
+ bold: Partial<ExtensionBoldOptions> | false;
43
+ bulletList: Partial<ExtensionBulletListOptions> | false;
44
+ characterCount: Partial<CharacterCountOptions> | false;
45
+ clearFormat: Partial<ExtensionClearFormatOptions> | false;
46
+ code: Partial<ExtensionCodeOptions> | false;
47
+ codeBlock: Partial<ExtensionOptions & ExtensionCodeBlockOptions> | false;
48
+ color: Partial<ExtensionColorOptions> | false;
49
+ columns: Partial<ExtensionColumnsOptions> | false;
50
+ commandsMenu?: false;
51
+ details: Partial<ExtensionDetailsOptions> | false;
52
+ document?: boolean;
53
+ dropCursor: Partial<DropcursorOptions> | false;
54
+ figure: Partial<ExtensionFigureOptions> | false;
55
+ fontSize: Partial<ExtensionFontSizeOptions> | false;
56
+ formatBrush: Partial<ExtensionOptions> | false;
57
+ gallery: Partial<ExtensionGalleryOptions> | false;
58
+ gapCursor?: boolean;
59
+ hardBreak: Partial<HardBreakOptions> | false;
60
+ heading: Partial<ExtensionHeadingOptions> | false;
61
+ highlight: Partial<ExtensionHighlightOptions> | false;
62
+ history: Partial<ExtensionOptions> | false;
63
+ horizontalRule: Partial<HorizontalRuleOptions> | false;
64
+ iframe: Partial<ExtensionOptions> | false;
65
+ image: Partial<ExtensionImageOptions> | false;
66
+ indent: Partial<ExtensionIndentOptions> | false;
67
+ italic: Partial<ExtensionItalicOptions> | false;
68
+ link: Partial<ExtensionLinkOptions> | false;
69
+ listKeymap: Partial<ExtensionListKeymapOptions> | false;
70
+ nodeSelected: Partial<ExtensionNodeSelectedOptions> | false;
71
+ orderedList: Partial<ExtensionOrderedListOptions> | false;
72
+ paragraph: Partial<ExtensionParagraphOptions> | false;
73
+ placeholder: Partial<PlaceholderOptions> | false;
74
+ rangeSelection?: boolean;
75
+ searchAndReplace?: boolean;
76
+ strike: Partial<ExtensionStrikeOptions> | false;
77
+ subscript: Partial<ExtensionSubscriptOptions> | false;
78
+ superscript: Partial<ExtensionSuperscriptOptions> | false;
79
+ table: Partial<ExtensionTableOptions> | false;
80
+ taskList: Partial<ExtensionTaskListOptions> | false;
81
+ text: Partial<ExtensionTextOptions> | false;
82
+ textAlign: Partial<ExtensionTextAlignOptions> | false;
83
+ textStyle: Partial<ExtensionTextStyleOptions> | false;
84
+ trailingNode?: boolean;
85
+ underline: Partial<ExtensionUnderlineOptions> | false;
86
+ upload?: boolean;
87
+ video: Partial<ExtensionVideoOptions> | false;
88
+ listExtra: Partial<ExtensionOptions> | false;
89
+ customExtensions?: Extensions;
90
+ }
91
+ 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 { ExtensionOptions } from '../../types';
2
+ import { FontSizeOptions } from '@tiptap/extension-text-style';
3
+ export type ExtensionFontSizeOptions = Partial<FontSizeOptions> & ExtensionOptions;
4
+ export declare const ExtensionFontSize: import('@tiptap/core').Extension<ExtensionFontSizeOptions, any>;
@@ -1,5 +1,6 @@
1
1
  import { Extension } from '../../tiptap';
2
- declare module "@/tiptap" {
2
+ import { ExtensionOptions } from '../../types';
3
+ declare module '../../tiptap' {
3
4
  interface Commands<ReturnType> {
4
5
  formatBrush: {
5
6
  copyFormatBrush: () => ReturnType;
@@ -7,9 +8,8 @@ declare module "@/tiptap" {
7
8
  };
8
9
  }
9
10
  }
10
- export interface FormatBrushStore {
11
+ export interface ExtensionFormatBrushStore {
11
12
  formatBrush: boolean;
12
13
  formatBrushMarks: any[];
13
14
  }
14
- declare const formatBrush: Extension<any, FormatBrushStore>;
15
- export default formatBrush;
15
+ export declare const ExtensionFormatBrush: Extension<ExtensionOptions, ExtensionFormatBrushStore>;
@@ -0,0 +1,7 @@
1
+ import { BubbleItemComponentProps } from '../../types';
2
+ declare const _default: import('vue').DefineComponent<BubbleItemComponentProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
3
+ close: (...args: any[]) => void;
4
+ }, string, import('vue').PublicProps, Readonly<BubbleItemComponentProps> & Readonly<{
5
+ onClose?: ((...args: any[]) => any) | undefined;
6
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
+ export default _default;