@halo-dev/richtext-editor 2.15.0 → 2.17.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 (108) hide show
  1. package/dist/components/Editor.vue.d.ts +4 -3
  2. package/dist/components/EditorBubbleMenu.vue.d.ts +5 -4
  3. package/dist/components/EditorHeader.vue.d.ts +3 -2
  4. package/dist/components/block/BlockActionButton.vue.d.ts +2 -2
  5. package/dist/components/block/BlockActionInput.vue.d.ts +3 -3
  6. package/dist/components/block/BlockActionSeparator.vue.d.ts +1 -1
  7. package/dist/components/block/BlockCard.vue.d.ts +4 -3
  8. package/dist/components/block/index.d.ts +4 -4
  9. package/dist/components/bubble/BubbleItem.vue.d.ts +8 -7
  10. package/dist/components/bubble/BubbleMenu.vue.d.ts +91 -0
  11. package/dist/components/bubble/BubbleMenuPlugin.d.ts +3 -3
  12. package/dist/components/bubble/index.d.ts +2 -2
  13. package/dist/components/common/ColorPickerDropdown.vue.d.ts +3 -3
  14. package/dist/components/icon/MdiDeleteForeverOutline.vue.d.ts +1 -1
  15. package/dist/components/index.d.ts +7 -7
  16. package/dist/components/toolbar/ToolbarItem.vue.d.ts +7 -6
  17. package/dist/components/toolbar/ToolbarSubItem.vue.d.ts +5 -4
  18. package/dist/components/toolbar/index.d.ts +2 -2
  19. package/dist/components/toolbox/ToolboxItem.vue.d.ts +6 -5
  20. package/dist/components/toolbox/index.d.ts +1 -1
  21. package/dist/extensions/audio/AudioView.vue.d.ts +5 -4
  22. package/dist/extensions/audio/BubbleItemAudioLink.vue.d.ts +5 -4
  23. package/dist/extensions/audio/index.d.ts +2 -1
  24. package/dist/extensions/blockquote/index.d.ts +3 -2
  25. package/dist/extensions/bold/index.d.ts +3 -2
  26. package/dist/extensions/bullet-list/index.d.ts +3 -2
  27. package/dist/extensions/clear-format/index.d.ts +2 -1
  28. package/dist/extensions/code/index.d.ts +3 -2
  29. package/dist/extensions/code-block/CodeBlockViewRenderer.vue.d.ts +5 -4
  30. package/dist/extensions/code-block/code-block.d.ts +2 -1
  31. package/dist/extensions/code-block/index.d.ts +2 -2
  32. package/dist/extensions/code-block/lowlight.d.ts +4 -4
  33. package/dist/extensions/color/ColorBubbleItem.vue.d.ts +5 -4
  34. package/dist/extensions/color/ColorToolbarItem.vue.d.ts +6 -5
  35. package/dist/extensions/color/index.d.ts +3 -2
  36. package/dist/extensions/columns/column.d.ts +1 -0
  37. package/dist/extensions/columns/columns.d.ts +1 -0
  38. package/dist/extensions/columns/index.d.ts +2 -2
  39. package/dist/extensions/commands-menu/CommandsView.vue.d.ts +5 -4
  40. package/dist/extensions/commands-menu/commands.d.ts +1 -0
  41. package/dist/extensions/commands-menu/index.d.ts +1 -1
  42. package/dist/extensions/draggable/index.d.ts +2 -2
  43. package/dist/extensions/font-size/index.d.ts +1 -0
  44. package/dist/extensions/format-brush/index.d.ts +1 -0
  45. package/dist/extensions/format-brush/util.d.ts +2 -1
  46. package/dist/extensions/gap-cursor/gap-cursor-selection.d.ts +45 -0
  47. package/dist/extensions/gap-cursor/index.d.ts +42 -0
  48. package/dist/extensions/heading/index.d.ts +3 -2
  49. package/dist/extensions/highlight/HighlightBubbleItem.vue.d.ts +5 -4
  50. package/dist/extensions/highlight/HighlightToolbarItem.vue.d.ts +6 -5
  51. package/dist/extensions/highlight/index.d.ts +3 -2
  52. package/dist/extensions/history/index.d.ts +3 -2
  53. package/dist/extensions/iframe/BubbleItemIframeLink.vue.d.ts +5 -4
  54. package/dist/extensions/iframe/BubbleItemIframeSize.vue.d.ts +4 -3
  55. package/dist/extensions/iframe/IframeView.vue.d.ts +5 -4
  56. package/dist/extensions/iframe/index.d.ts +2 -1
  57. package/dist/extensions/image/BubbleItemImageAlt.vue.d.ts +5 -4
  58. package/dist/extensions/image/BubbleItemImageHref.vue.d.ts +5 -4
  59. package/dist/extensions/image/BubbleItemImageLink.vue.d.ts +5 -4
  60. package/dist/extensions/image/BubbleItemImageSize.vue.d.ts +5 -4
  61. package/dist/extensions/image/ImageView.vue.d.ts +5 -4
  62. package/dist/extensions/image/index.d.ts +3 -2
  63. package/dist/extensions/indent/index.d.ts +2 -1
  64. package/dist/extensions/index.d.ts +46 -44
  65. package/dist/extensions/italic/index.d.ts +3 -2
  66. package/dist/extensions/link/LinkBubbleButton.vue.d.ts +5 -4
  67. package/dist/extensions/link/index.d.ts +3 -2
  68. package/dist/extensions/list-keymap/index.d.ts +3 -2
  69. package/dist/extensions/node-selected/index.d.ts +1 -0
  70. package/dist/extensions/ordered-list/index.d.ts +3 -2
  71. package/dist/extensions/paragraph/index.d.ts +6 -2
  72. package/dist/extensions/range-selection/index.d.ts +23 -0
  73. package/dist/extensions/range-selection/range-selection.d.ts +65 -0
  74. package/dist/extensions/search-and-replace/SearchAndReplace.vue.d.ts +6 -5
  75. package/dist/extensions/search-and-replace/SearchAndReplacePlugin.d.ts +2 -1
  76. package/dist/extensions/search-and-replace/index.d.ts +2 -1
  77. package/dist/extensions/strike/index.d.ts +3 -2
  78. package/dist/extensions/subscript/index.d.ts +3 -2
  79. package/dist/extensions/superscript/index.d.ts +3 -2
  80. package/dist/extensions/table/index.d.ts +3 -2
  81. package/dist/extensions/table/table-cell.d.ts +1 -0
  82. package/dist/extensions/table/table-header.d.ts +1 -0
  83. package/dist/extensions/table/table-row.d.ts +1 -1
  84. package/dist/extensions/table/util.d.ts +2 -2
  85. package/dist/extensions/task-list/index.d.ts +3 -2
  86. package/dist/extensions/text/index.d.ts +2 -1
  87. package/dist/extensions/text-align/index.d.ts +3 -2
  88. package/dist/extensions/trailing-node/index.d.ts +1 -0
  89. package/dist/extensions/underline/index.d.ts +3 -2
  90. package/dist/extensions/video/BubbleItemVideoLink.vue.d.ts +5 -4
  91. package/dist/extensions/video/BubbleItemVideoSize.vue.d.ts +5 -4
  92. package/dist/extensions/video/VideoView.vue.d.ts +5 -4
  93. package/dist/extensions/video/index.d.ts +2 -1
  94. package/dist/index.d.ts +6 -10
  95. package/dist/locales/index.d.ts +1 -1
  96. package/dist/rich-text-editor.es.js +31719 -30397
  97. package/dist/rich-text-editor.iife.js +60 -66
  98. package/dist/style.css +5 -5
  99. package/dist/tiptap/core/index.d.ts +1 -1
  100. package/dist/tiptap/index.d.ts +6 -6
  101. package/dist/tiptap/pm/index.d.ts +20 -20
  102. package/dist/tiptap/vue-3/index.d.ts +1 -1
  103. package/dist/types/index.d.ts +4 -3
  104. package/dist/utils/delete-node.d.ts +4 -1
  105. package/dist/utils/index.d.ts +2 -2
  106. package/dist/utils/is-allowed-uri.d.ts +1 -0
  107. package/dist/utils/isNodeEmpty.d.ts +5 -0
  108. package/package.json +41 -42
@@ -1,6 +1,7 @@
1
1
  import { Editor } from '../tiptap/vue-3';
2
- import { type CSSProperties, type PropType } from "vue";
3
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ import { CSSProperties, PropType } from 'vue';
3
+
4
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
4
5
  editor: {
5
6
  type: PropType<Editor>;
6
7
  required: true;
@@ -15,7 +16,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
15
16
  required: false;
16
17
  default: string;
17
18
  };
18
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
19
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
19
20
  editor: {
20
21
  type: PropType<Editor>;
21
22
  required: true;
@@ -1,11 +1,12 @@
1
- import type { PropType } from "vue";
2
- import type { Editor } from '../tiptap/vue-3';
3
- declare const _default: import("vue").DefineComponent<{
1
+ import { Editor } from '../tiptap/vue-3';
2
+ import { PropType } from 'vue';
3
+
4
+ declare const _default: import('vue').DefineComponent<{
4
5
  editor: {
5
6
  type: PropType<Editor>;
6
7
  required: true;
7
8
  };
8
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
9
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
9
10
  editor: {
10
11
  type: PropType<Editor>;
11
12
  required: true;
@@ -1,10 +1,11 @@
1
1
  import { Editor } from '../tiptap/vue-3';
2
- declare const _default: import("vue").DefineComponent<{
2
+
3
+ declare const _default: import('vue').DefineComponent<{
3
4
  editor: {
4
5
  type: typeof Editor;
5
6
  required: true;
6
7
  };
7
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
8
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
8
9
  editor: {
9
10
  type: typeof Editor;
10
11
  required: true;
@@ -1,10 +1,10 @@
1
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
2
  tooltip?: string | undefined;
3
3
  selected?: boolean | undefined;
4
4
  }>, {
5
5
  tooltip: undefined;
6
6
  selected: boolean;
7
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
7
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
8
8
  tooltip?: string | undefined;
9
9
  selected?: boolean | undefined;
10
10
  }>, {
@@ -1,12 +1,12 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
2
  tooltip?: string | undefined;
3
3
  modelValue?: string | undefined;
4
4
  }>, {
5
5
  modelValue: string;
6
6
  tooltip: undefined;
7
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
8
  "update:modelValue": (value: string) => void;
9
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
10
10
  tooltip?: string | undefined;
11
11
  modelValue?: string | undefined;
12
12
  }>, {
@@ -1,2 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
2
2
  export default _default;
@@ -1,12 +1,13 @@
1
- import type { Editor } from '../../tiptap/vue-3';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ import { Editor } from '../../tiptap/vue-3';
2
+
3
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
4
  selected: boolean;
4
5
  editor: Editor;
5
6
  getPos: () => number;
6
7
  deleteNode: () => void;
7
8
  }>, {
8
9
  selected: boolean;
9
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
10
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
10
11
  selected: boolean;
11
12
  editor: Editor;
12
13
  getPos: () => number;
@@ -1,4 +1,4 @@
1
- export { default as BlockActionButton } from "./BlockActionButton.vue";
2
- export { default as BlockActionInput } from "./BlockActionInput.vue";
3
- export { default as BlockActionSeparator } from "./BlockActionSeparator.vue";
4
- export { default as BlockCard } from "./BlockCard.vue";
1
+ export { default as BlockActionButton } from './BlockActionButton.vue';
2
+ export { default as BlockActionInput } from './BlockActionInput.vue';
3
+ export { default as BlockActionSeparator } from './BlockActionSeparator.vue';
4
+ export { default as BlockCard } from './BlockCard.vue';
@@ -1,6 +1,7 @@
1
- import type { Editor } from '../../tiptap/vue-3';
2
- import { type Component } from "vue";
3
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ import { Editor } from '../../tiptap/vue-3';
2
+ import { Component } from 'vue';
3
+
4
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
5
  editor: Editor;
5
6
  isActive?: (({ editor }: {
6
7
  editor: Editor;
@@ -21,7 +22,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
21
22
  action: undefined;
22
23
  icon: undefined;
23
24
  iconStyle: undefined;
24
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
25
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
25
26
  editor: Editor;
26
27
  isActive?: (({ editor }: {
27
28
  editor: Editor;
@@ -43,15 +44,15 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
43
44
  icon: undefined;
44
45
  iconStyle: undefined;
45
46
  }>>>, {
46
- title: string;
47
- visible: ({ editor }: {
47
+ isActive: ({ editor }: {
48
48
  editor: Editor;
49
49
  }) => boolean;
50
- isActive: ({ editor }: {
50
+ visible: ({ editor }: {
51
51
  editor: Editor;
52
52
  }) => boolean;
53
53
  icon: Component;
54
54
  iconStyle: string;
55
+ title: string;
55
56
  action: ({ editor }: {
56
57
  editor: Editor;
57
58
  }) => Component | void;
@@ -0,0 +1,91 @@
1
+ import { PropType } from 'vue';
2
+
3
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
4
+ pluginKey: {
5
+ type: PropType<string | import('../../tiptap').PluginKey<any>>;
6
+ default: string;
7
+ };
8
+ editor: {
9
+ type: PropType<import('@tiptap/vue-3').Editor>;
10
+ required: true;
11
+ };
12
+ tippyOptions: {
13
+ type: PropType<Partial<import('./BubbleMenuPlugin').TippyOptionProps> | undefined>;
14
+ default: () => {};
15
+ };
16
+ shouldShow: {
17
+ type: PropType<(props: {
18
+ editor: import('@tiptap/vue-3').Editor;
19
+ state: import('../../tiptap').EditorState;
20
+ node?: HTMLElement | undefined;
21
+ view?: import('../../tiptap').EditorView | undefined;
22
+ oldState?: import('../../tiptap').EditorState | undefined;
23
+ from?: number | undefined;
24
+ to?: number | undefined;
25
+ }) => boolean>;
26
+ default: null;
27
+ };
28
+ getRenderContainer: {
29
+ type: PropType<(node: HTMLElement) => HTMLElement>;
30
+ default: null;
31
+ };
32
+ defaultAnimation: {
33
+ type: PropType<boolean | undefined>;
34
+ default: boolean;
35
+ };
36
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
37
+ pluginKey: {
38
+ type: PropType<string | import('../../tiptap').PluginKey<any>>;
39
+ default: string;
40
+ };
41
+ editor: {
42
+ type: PropType<import('@tiptap/vue-3').Editor>;
43
+ required: true;
44
+ };
45
+ tippyOptions: {
46
+ type: PropType<Partial<import('./BubbleMenuPlugin').TippyOptionProps> | undefined>;
47
+ default: () => {};
48
+ };
49
+ shouldShow: {
50
+ type: PropType<(props: {
51
+ editor: import('@tiptap/vue-3').Editor;
52
+ state: import('../../tiptap').EditorState;
53
+ node?: HTMLElement | undefined;
54
+ view?: import('../../tiptap').EditorView | undefined;
55
+ oldState?: import('../../tiptap').EditorState | undefined;
56
+ from?: number | undefined;
57
+ to?: number | undefined;
58
+ }) => boolean>;
59
+ default: null;
60
+ };
61
+ getRenderContainer: {
62
+ type: PropType<(node: HTMLElement) => HTMLElement>;
63
+ default: null;
64
+ };
65
+ defaultAnimation: {
66
+ type: PropType<boolean | undefined>;
67
+ default: boolean;
68
+ };
69
+ }>>, {
70
+ getRenderContainer: (node: HTMLElement) => HTMLElement;
71
+ defaultAnimation: boolean | undefined;
72
+ shouldShow: (props: {
73
+ editor: import('@tiptap/vue-3').Editor;
74
+ state: import('../../tiptap').EditorState;
75
+ node?: HTMLElement | undefined;
76
+ view?: import('../../tiptap').EditorView | undefined;
77
+ oldState?: import('../../tiptap').EditorState | undefined;
78
+ from?: number | undefined;
79
+ to?: number | undefined;
80
+ }) => boolean;
81
+ tippyOptions: Partial<import('./BubbleMenuPlugin').TippyOptionProps> | undefined;
82
+ pluginKey: string | import('../../tiptap').PluginKey<any>;
83
+ }, {}>, {
84
+ default?(_: {}): any;
85
+ }>;
86
+ export default _default;
87
+ type __VLS_WithTemplateSlots<T, S> = T & {
88
+ new (): {
89
+ $slots: S;
90
+ };
91
+ };
@@ -1,7 +1,7 @@
1
+ import { EditorView, EditorState, Plugin, PluginKey } from '../../tiptap/pm';
1
2
  import { Editor } from '../../tiptap/vue-3';
2
- import { EditorState, Plugin, PluginKey } from '../../tiptap/pm';
3
- import type { EditorView } from '../../tiptap/pm';
4
- import { type Instance, type Props } from "tippy.js";
3
+ import { Instance, Props } from 'tippy.js';
4
+
5
5
  export interface TippyOptionProps extends Props {
6
6
  fixed?: boolean;
7
7
  }
@@ -1,2 +1,2 @@
1
- export { default as BubbleItem } from "./BubbleItem.vue";
2
- export { default as NodeBubbleMenu } from "./BubbleMenu.vue";
1
+ export { default as BubbleItem } from './BubbleItem.vue';
2
+ export { default as NodeBubbleMenu } from './BubbleMenu.vue';
@@ -1,10 +1,10 @@
1
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
2
  modelValue?: string | undefined;
3
3
  }>, {
4
4
  modelValue: undefined;
5
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
6
  "update:modelValue": (value?: string | undefined) => void;
7
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
7
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
8
8
  modelValue?: string | undefined;
9
9
  }>, {
10
10
  modelValue: undefined;
@@ -1,2 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
2
2
  export default _default;
@@ -1,7 +1,7 @@
1
- export * from "./block";
2
- export * from "./bubble";
3
- export * from "./toolbar";
4
- export * from "./toolbox";
5
- export { default as RichTextEditor } from "./Editor.vue";
6
- export * from "./EditorHeader.vue";
7
- export * from "./EditorBubbleMenu.vue";
1
+ export * from './block';
2
+ export * from './bubble';
3
+ export * from './toolbar';
4
+ export * from './toolbox';
5
+ export { default as RichTextEditor } from './Editor.vue';
6
+ export * from './EditorBubbleMenu.vue';
7
+ export * from './EditorHeader.vue';
@@ -1,6 +1,7 @@
1
- import type { Component } from "vue";
2
- import type { ToolbarItem } from '../../types';
3
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ import { ToolbarItem } from '../../types';
2
+ import { Component } from 'vue';
3
+
4
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
5
  isActive?: boolean | undefined;
5
6
  disabled?: boolean | undefined;
6
7
  title?: string | undefined;
@@ -14,7 +15,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
14
15
  action: undefined;
15
16
  icon: undefined;
16
17
  children: undefined;
17
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
18
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
18
19
  isActive?: boolean | undefined;
19
20
  disabled?: boolean | undefined;
20
21
  title?: string | undefined;
@@ -29,12 +30,12 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
29
30
  icon: undefined;
30
31
  children: undefined;
31
32
  }>>>, {
32
- title: string;
33
- children: ToolbarItem[];
34
33
  isActive: boolean;
35
34
  icon: Component;
35
+ title: string;
36
36
  action: () => void;
37
37
  disabled: boolean;
38
+ children: ToolbarItem[];
38
39
  }, {}>;
39
40
  export default _default;
40
41
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,5 +1,6 @@
1
- import type { Component } from "vue";
2
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ import { Component } from 'vue';
2
+
3
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
4
  isActive?: boolean | undefined;
4
5
  disabled?: boolean | undefined;
5
6
  title?: string | undefined;
@@ -11,7 +12,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
11
12
  title: undefined;
12
13
  action: undefined;
13
14
  icon: undefined;
14
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
15
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
15
16
  isActive?: boolean | undefined;
16
17
  disabled?: boolean | undefined;
17
18
  title?: string | undefined;
@@ -24,9 +25,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
24
25
  action: undefined;
25
26
  icon: undefined;
26
27
  }>>>, {
27
- title: string;
28
28
  isActive: boolean;
29
29
  icon: Component;
30
+ title: string;
30
31
  action: () => void;
31
32
  disabled: boolean;
32
33
  }, {}>;
@@ -1,2 +1,2 @@
1
- export { default as ToolbarItem } from "./ToolbarItem.vue";
2
- export { default as ToolbarSubItem } from "./ToolbarSubItem.vue";
1
+ export { default as ToolbarItem } from './ToolbarItem.vue';
2
+ export { default as ToolbarSubItem } from './ToolbarSubItem.vue';
@@ -1,6 +1,7 @@
1
- import type { Component } from "vue";
2
- import type { Editor } from '../../tiptap/vue-3';
3
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ import { Editor } from '../../tiptap/vue-3';
2
+ import { Component } from 'vue';
3
+
4
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
5
  editor?: Editor | undefined;
5
6
  title?: string | undefined;
6
7
  description?: string | undefined;
@@ -12,7 +13,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
12
13
  description: undefined;
13
14
  action: undefined;
14
15
  icon: undefined;
15
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
16
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
16
17
  editor?: Editor | undefined;
17
18
  title?: string | undefined;
18
19
  description?: string | undefined;
@@ -26,8 +27,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
26
27
  icon: undefined;
27
28
  }>>>, {
28
29
  editor: Editor;
29
- title: string;
30
30
  icon: Component;
31
+ title: string;
31
32
  action: () => void;
32
33
  description: string;
33
34
  }, {}>;
@@ -1 +1 @@
1
- export { default as ToolboxItem } from "./ToolboxItem.vue";
1
+ export { default as ToolboxItem } from './ToolboxItem.vue';
@@ -1,6 +1,7 @@
1
- import type { Node as ProseMirrorNode, Decoration } from '../../tiptap/pm';
2
- import type { Editor, Node } from '../../tiptap/vue-3';
3
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
1
+ import { Decoration, Node as ProseMirrorNode } from '../../tiptap/pm';
2
+ import { Editor, Node } from '../../tiptap/vue-3';
3
+
4
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
4
5
  editor: Editor;
5
6
  node: ProseMirrorNode;
6
7
  decorations: Decoration[];
@@ -9,7 +10,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
9
10
  getPos: () => number;
10
11
  updateAttributes: (attributes: Record<string, any>) => void;
11
12
  deleteNode: () => void;
12
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
13
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
13
14
  editor: Editor;
14
15
  node: ProseMirrorNode;
15
16
  decorations: Decoration[];
@@ -1,6 +1,7 @@
1
- import type { Editor } from '../../tiptap/vue-3';
2
- import { type Component } from "vue";
3
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
1
+ import { Editor } from '../../tiptap/vue-3';
2
+ import { Component } from 'vue';
3
+
4
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
4
5
  editor: Editor;
5
6
  isActive: ({ editor }: {
6
7
  editor: Editor;
@@ -13,7 +14,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
13
14
  action?: (({ editor }: {
14
15
  editor: Editor;
15
16
  }) => void) | undefined;
16
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
17
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
17
18
  editor: Editor;
18
19
  isActive: ({ editor }: {
19
20
  editor: Editor;
@@ -1,5 +1,6 @@
1
- import type { ExtensionOptions } from '../../types';
2
1
  import { Node } from '../../tiptap/vue-3';
2
+ import { ExtensionOptions } from '../../types';
3
+
3
4
  declare module "@/tiptap" {
4
5
  interface Commands<ReturnType> {
5
6
  audio: {
@@ -1,4 +1,5 @@
1
- import type { BlockquoteOptions } from "@tiptap/extension-blockquote";
2
- import type { ExtensionOptions } from '../../types';
1
+ import { ExtensionOptions } from '../../types';
2
+ import { BlockquoteOptions } from '@tiptap/extension-blockquote';
3
+
3
4
  declare const Blockquote: import('../../tiptap/vue-3').Node<ExtensionOptions & BlockquoteOptions, any>;
4
5
  export default Blockquote;
@@ -1,4 +1,5 @@
1
- import type { BoldOptions } from "@tiptap/extension-bold";
2
- import type { ExtensionOptions } from '../../types';
1
+ import { ExtensionOptions } from '../../types';
2
+ import { BoldOptions } from '@tiptap/extension-bold';
3
+
3
4
  declare const Bold: import('../../tiptap/vue-3').Mark<ExtensionOptions & BoldOptions, any>;
4
5
  export default Bold;
@@ -1,4 +1,5 @@
1
- import type { BulletListOptions } from "@tiptap/extension-bullet-list";
2
- import type { ExtensionOptions } from '../../types';
1
+ import { ExtensionOptions } from '../../types';
2
+ import { BulletListOptions } from '@tiptap/extension-bullet-list';
3
+
3
4
  declare const BulletList: import('../../tiptap/vue-3').Node<ExtensionOptions & BulletListOptions, any>;
4
5
  export default BulletList;
@@ -1,4 +1,5 @@
1
1
  import { Extension } from '../../tiptap';
2
- import type { ExtensionOptions } from '../../types';
2
+ import { ExtensionOptions } from '../../types';
3
+
3
4
  declare const clearFormat: Extension<ExtensionOptions, any>;
4
5
  export default clearFormat;
@@ -1,4 +1,5 @@
1
- import type { CodeOptions } from "@tiptap/extension-code";
2
- import type { ExtensionOptions } from '../../types';
1
+ import { ExtensionOptions } from '../../types';
2
+ import { CodeOptions } from '@tiptap/extension-code';
3
+
3
4
  declare const Code: import('../../tiptap/vue-3').Mark<ExtensionOptions & CodeOptions, any>;
4
5
  export default Code;
@@ -1,6 +1,7 @@
1
- import type { Node as ProseMirrorNode, Decoration } from '../../tiptap/pm';
2
- import type { Editor, Node } from '../../tiptap/vue-3';
3
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
1
+ import { Decoration, Node as ProseMirrorNode } from '../../tiptap/pm';
2
+ import { Editor, Node } from '../../tiptap/vue-3';
3
+
4
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
4
5
  editor: Editor;
5
6
  node: ProseMirrorNode;
6
7
  decorations: Decoration[];
@@ -9,7 +10,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
9
10
  getPos: () => number;
10
11
  updateAttributes: (attributes: Record<string, any>) => void;
11
12
  deleteNode: () => void;
12
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
13
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
13
14
  editor: Editor;
14
15
  node: ProseMirrorNode;
15
16
  decorations: Decoration[];
@@ -1,4 +1,5 @@
1
- import type { CodeBlockLowlightOptions } from "@tiptap/extension-code-block-lowlight";
1
+ import { CodeBlockLowlightOptions } from '@tiptap/extension-code-block-lowlight';
2
+
2
3
  export interface CustomCodeBlockLowlightOptions extends CodeBlockLowlightOptions {
3
4
  lowlight: any;
4
5
  defaultLanguage: string | null | undefined;
@@ -1,2 +1,2 @@
1
- export { default as ExtensionCodeBlock } from "./code-block";
2
- export { default as lowlight } from "./lowlight";
1
+ export { default as ExtensionCodeBlock } from './code-block';
2
+ export { default as lowlight } from './lowlight';
@@ -1,11 +1,11 @@
1
1
  /// <reference types="highlight.js" />
2
2
  declare const lowlight: {
3
- highlight: (language: string, value: string, options?: Readonly<import("lowlight").Options> | null | undefined) => import("hast").Root;
4
- highlightAuto: (value: string, options?: Readonly<import("lowlight").AutoOptions> | null | undefined) => import("hast").Root;
3
+ highlight: (language: string, value: string, options?: Readonly<import('lowlight').Options> | null | undefined) => import('hast').Root;
4
+ highlightAuto: (value: string, options?: Readonly<import('lowlight').AutoOptions> | null | undefined) => import('hast').Root;
5
5
  listLanguages: () => string[];
6
6
  register: {
7
- (grammars: Readonly<Record<string, import("highlight.js").LanguageFn>>): undefined;
8
- (name: string, grammar: import("highlight.js").LanguageFn): undefined;
7
+ (grammars: Readonly<Record<string, import('highlight.js').LanguageFn>>): undefined;
8
+ (name: string, grammar: import('highlight.js').LanguageFn): undefined;
9
9
  };
10
10
  registerAlias: {
11
11
  (aliases: Readonly<Record<string, string | readonly string[]>>): undefined;
@@ -1,6 +1,7 @@
1
- import type { Editor } from '../../tiptap/vue-3';
2
- import type { Component } from "vue";
3
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
1
+ import { Editor } from '../../tiptap/vue-3';
2
+ import { Component } from 'vue';
3
+
4
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
4
5
  editor: Editor;
5
6
  isActive: ({ editor }: {
6
7
  editor: Editor;
@@ -13,7 +14,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
13
14
  action?: (({ editor }: {
14
15
  editor: Editor;
15
16
  }) => void) | undefined;
16
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
17
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
17
18
  editor: Editor;
18
19
  isActive: ({ editor }: {
19
20
  editor: Editor;
@@ -1,6 +1,7 @@
1
- import type { Component } from "vue";
2
- import type { Editor } from '../../tiptap/vue-3';
3
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ import { Editor } from '../../tiptap/vue-3';
2
+ import { Component } from 'vue';
3
+
4
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
5
  editor?: Editor | undefined;
5
6
  isActive?: boolean | undefined;
6
7
  disabled?: boolean | undefined;
@@ -14,7 +15,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
14
15
  title: undefined;
15
16
  action: undefined;
16
17
  icon: undefined;
17
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
18
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
18
19
  editor?: Editor | undefined;
19
20
  isActive?: boolean | undefined;
20
21
  disabled?: boolean | undefined;
@@ -30,9 +31,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
30
31
  icon: undefined;
31
32
  }>>>, {
32
33
  editor: Editor;
33
- title: string;
34
34
  isActive: boolean;
35
35
  icon: Component;
36
+ title: string;
36
37
  action: () => void;
37
38
  disabled: boolean;
38
39
  }, {}>;