@halo-dev/richtext-editor 2.17.0 → 2.19.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 (95) hide show
  1. package/dist/components/Editor.vue.d.ts +10 -8
  2. package/dist/components/EditorBubbleMenu.vue.d.ts +0 -1
  3. package/dist/components/EditorHeader.vue.d.ts +0 -1
  4. package/dist/components/block/BlockActionButton.vue.d.ts +20 -18
  5. package/dist/components/block/BlockActionInput.vue.d.ts +15 -15
  6. package/dist/components/block/BlockCard.vue.d.ts +17 -16
  7. package/dist/components/bubble/BubbleItem.vue.d.ts +31 -32
  8. package/dist/components/bubble/BubbleMenu.vue.d.ts +24 -38
  9. package/dist/components/bubble/BubbleMenuPlugin.d.ts +0 -1
  10. package/dist/components/common/ColorPickerDropdown.vue.d.ts +19 -17
  11. package/dist/components/toolbar/ToolbarItem.vue.d.ts +26 -27
  12. package/dist/components/toolbar/ToolbarSubItem.vue.d.ts +23 -24
  13. package/dist/components/toolbox/ToolboxItem.vue.d.ts +22 -23
  14. package/dist/dev/App.vue.d.ts +2 -0
  15. package/dist/extensions/audio/AudioView.vue.d.ts +3 -4
  16. package/dist/extensions/audio/BubbleItemAudioLink.vue.d.ts +15 -16
  17. package/dist/extensions/audio/index.d.ts +0 -1
  18. package/dist/extensions/blockquote/index.d.ts +0 -1
  19. package/dist/extensions/bold/index.d.ts +0 -1
  20. package/dist/extensions/bullet-list/index.d.ts +0 -1
  21. package/dist/extensions/clear-format/index.d.ts +0 -1
  22. package/dist/extensions/code/index.d.ts +0 -1
  23. package/dist/extensions/code-block/CodeBlockSelect.vue.d.ts +30 -0
  24. package/dist/extensions/code-block/CodeBlockViewRenderer.vue.d.ts +3 -23
  25. package/dist/extensions/code-block/code-block.d.ts +57 -7
  26. package/dist/extensions/code-block/index.d.ts +1 -1
  27. package/dist/extensions/color/ColorBubbleItem.vue.d.ts +15 -16
  28. package/dist/extensions/color/ColorToolbarItem.vue.d.ts +25 -26
  29. package/dist/extensions/color/index.d.ts +0 -1
  30. package/dist/extensions/columns/column.d.ts +0 -1
  31. package/dist/extensions/columns/columns.d.ts +0 -1
  32. package/dist/extensions/commands-menu/CommandsView.vue.d.ts +0 -1
  33. package/dist/extensions/commands-menu/commands.d.ts +0 -1
  34. package/dist/extensions/draggable/index.d.ts +0 -1
  35. package/dist/extensions/font-size/index.d.ts +0 -1
  36. package/dist/extensions/format-brush/index.d.ts +0 -1
  37. package/dist/extensions/format-brush/util.d.ts +0 -1
  38. package/dist/extensions/gap-cursor/gap-cursor-selection.d.ts +0 -1
  39. package/dist/extensions/gap-cursor/index.d.ts +0 -1
  40. package/dist/extensions/heading/index.d.ts +0 -1
  41. package/dist/extensions/highlight/HighlightBubbleItem.vue.d.ts +15 -16
  42. package/dist/extensions/highlight/HighlightToolbarItem.vue.d.ts +25 -26
  43. package/dist/extensions/highlight/index.d.ts +0 -1
  44. package/dist/extensions/history/index.d.ts +0 -1
  45. package/dist/extensions/iframe/BubbleItemIframeLink.vue.d.ts +15 -16
  46. package/dist/extensions/iframe/BubbleItemIframeSize.vue.d.ts +3 -4
  47. package/dist/extensions/iframe/IframeView.vue.d.ts +3 -4
  48. package/dist/extensions/iframe/index.d.ts +0 -1
  49. package/dist/extensions/image/BubbleItemImageAlt.vue.d.ts +15 -16
  50. package/dist/extensions/image/BubbleItemImageHref.vue.d.ts +15 -16
  51. package/dist/extensions/image/BubbleItemImageLink.vue.d.ts +15 -16
  52. package/dist/extensions/image/BubbleItemImageSize.vue.d.ts +19 -20
  53. package/dist/extensions/image/ImageView.vue.d.ts +3 -4
  54. package/dist/extensions/image/index.d.ts +0 -1
  55. package/dist/extensions/indent/index.d.ts +1 -1
  56. package/dist/extensions/index.d.ts +4 -4
  57. package/dist/extensions/italic/index.d.ts +0 -1
  58. package/dist/extensions/link/LinkBubbleButton.vue.d.ts +15 -16
  59. package/dist/extensions/link/index.d.ts +1 -2
  60. package/dist/extensions/list-keymap/index.d.ts +0 -1
  61. package/dist/extensions/node-selected/index.d.ts +0 -1
  62. package/dist/extensions/ordered-list/index.d.ts +0 -1
  63. package/dist/extensions/paragraph/index.d.ts +0 -1
  64. package/dist/extensions/range-selection/index.d.ts +0 -1
  65. package/dist/extensions/range-selection/range-selection.d.ts +0 -1
  66. package/dist/extensions/search-and-replace/SearchAndReplace.vue.d.ts +0 -1
  67. package/dist/extensions/search-and-replace/SearchAndReplacePlugin.d.ts +0 -1
  68. package/dist/extensions/search-and-replace/index.d.ts +0 -1
  69. package/dist/extensions/strike/index.d.ts +0 -1
  70. package/dist/extensions/subscript/index.d.ts +0 -1
  71. package/dist/extensions/superscript/index.d.ts +0 -1
  72. package/dist/extensions/table/index.d.ts +0 -1
  73. package/dist/extensions/table/table-cell.d.ts +0 -1
  74. package/dist/extensions/table/table-header.d.ts +0 -1
  75. package/dist/extensions/table/util.d.ts +1 -2
  76. package/dist/extensions/task-list/index.d.ts +0 -1
  77. package/dist/extensions/text/index.d.ts +0 -1
  78. package/dist/extensions/text-align/index.d.ts +0 -1
  79. package/dist/extensions/text-style/index.d.ts +3 -0
  80. package/dist/extensions/trailing-node/index.d.ts +0 -1
  81. package/dist/extensions/underline/index.d.ts +0 -1
  82. package/dist/extensions/video/BubbleItemVideoLink.vue.d.ts +15 -16
  83. package/dist/extensions/video/BubbleItemVideoSize.vue.d.ts +19 -20
  84. package/dist/extensions/video/VideoView.vue.d.ts +3 -4
  85. package/dist/extensions/video/index.d.ts +0 -1
  86. package/dist/index.d.ts +0 -1
  87. package/dist/rich-text-editor.es.js +14647 -28673
  88. package/dist/rich-text-editor.iife.js +50 -53
  89. package/dist/style.css +1 -10
  90. package/dist/types/index.d.ts +0 -1
  91. package/dist/utils/delete-node.d.ts +0 -1
  92. package/dist/utils/isListActive.d.ts +12 -0
  93. package/dist/utils/isNodeEmpty.d.ts +0 -1
  94. package/package.json +38 -41
  95. package/dist/extensions/code-block/lowlight.d.ts +0 -16
@@ -1,7 +1,10 @@
1
1
  import { Editor } from '../tiptap/vue-3';
2
2
  import { CSSProperties, PropType } from 'vue';
3
-
4
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
3
+ declare function __VLS_template(): {
4
+ content?(_: {}): any;
5
+ extra?(_: {}): any;
6
+ };
7
+ declare const __VLS_component: import('vue').DefineComponent<{
5
8
  editor: {
6
9
  type: PropType<Editor>;
7
10
  required: true;
@@ -12,7 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
12
15
  default: () => {};
13
16
  };
14
17
  locale: {
15
- type: PropType<"en" | "zh-CN" | "zh" | "en-US">;
18
+ type: PropType<"zh-CN" | "en" | "zh" | "en-US">;
16
19
  required: false;
17
20
  default: string;
18
21
  };
@@ -27,18 +30,17 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
27
30
  default: () => {};
28
31
  };
29
32
  locale: {
30
- type: PropType<"en" | "zh-CN" | "zh" | "en-US">;
33
+ type: PropType<"zh-CN" | "en" | "zh" | "en-US">;
31
34
  required: false;
32
35
  default: string;
33
36
  };
34
37
  }>>, {
35
38
  locale: "en" | "zh-CN" | "zh" | "en-US";
36
39
  contentStyles: CSSProperties;
37
- }, {}>, {
38
- content?(_: {}): any;
39
- extra?(_: {}): any;
40
- }>;
40
+ }, {}>;
41
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
41
42
  export default _default;
43
+
42
44
  type __VLS_WithTemplateSlots<T, S> = T & {
43
45
  new (): {
44
46
  $slots: S;
@@ -1,6 +1,5 @@
1
1
  import { Editor } from '../tiptap/vue-3';
2
2
  import { PropType } from 'vue';
3
-
4
3
  declare const _default: import('vue').DefineComponent<{
5
4
  editor: {
6
5
  type: PropType<Editor>;
@@ -1,5 +1,4 @@
1
1
  import { Editor } from '../tiptap/vue-3';
2
-
3
2
  declare const _default: import('vue').DefineComponent<{
4
3
  editor: {
5
4
  type: typeof Editor;
@@ -1,31 +1,24 @@
1
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
- tooltip?: string | undefined;
3
- selected?: boolean | undefined;
1
+ declare function __VLS_template(): {
2
+ icon?(_: {}): any;
3
+ };
4
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
5
+ tooltip?: string;
6
+ selected?: boolean;
4
7
  }>, {
5
8
  tooltip: undefined;
6
9
  selected: boolean;
7
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
8
- tooltip?: string | undefined;
9
- selected?: boolean | undefined;
10
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
11
+ tooltip?: string;
12
+ selected?: boolean;
10
13
  }>, {
11
14
  tooltip: undefined;
12
15
  selected: boolean;
13
16
  }>>>, {
14
17
  tooltip: string;
15
18
  selected: boolean;
16
- }, {}>, {
17
- icon?(_: {}): any;
18
- }>;
19
+ }, {}>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
19
21
  export default _default;
20
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
21
- type __VLS_TypePropsToRuntimeProps<T> = {
22
- [K in keyof T]-?: {} extends Pick<T, K> ? {
23
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
24
- } : {
25
- type: import('vue').PropType<T[K]>;
26
- required: true;
27
- };
28
- };
29
22
  type __VLS_WithDefaults<P, D> = {
30
23
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
31
24
  default: D[K];
@@ -39,3 +32,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
39
32
  $slots: S;
40
33
  };
41
34
  };
35
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
36
+ type __VLS_TypePropsToOption<T> = {
37
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
38
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
39
+ } : {
40
+ type: import('vue').PropType<T[K]>;
41
+ required: true;
42
+ };
43
+ };
@@ -1,14 +1,14 @@
1
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
- tooltip?: string | undefined;
3
- modelValue?: string | undefined;
1
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
2
+ tooltip?: string;
3
+ modelValue?: string;
4
4
  }>, {
5
5
  modelValue: string;
6
6
  tooltip: undefined;
7
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<{
10
- tooltip?: string | undefined;
11
- modelValue?: string | undefined;
9
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
10
+ tooltip?: string;
11
+ modelValue?: string;
12
12
  }>, {
13
13
  modelValue: string;
14
14
  tooltip: undefined;
@@ -19,15 +19,6 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
19
19
  modelValue: string;
20
20
  }, {}>;
21
21
  export default _default;
22
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
- type __VLS_TypePropsToRuntimeProps<T> = {
24
- [K in keyof T]-?: {} extends Pick<T, K> ? {
25
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
26
- } : {
27
- type: import('vue').PropType<T[K]>;
28
- required: true;
29
- };
30
- };
31
22
  type __VLS_WithDefaults<P, D> = {
32
23
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
33
24
  default: D[K];
@@ -36,3 +27,12 @@ type __VLS_WithDefaults<P, D> = {
36
27
  type __VLS_Prettify<T> = {
37
28
  [K in keyof T]: T[K];
38
29
  } & {};
30
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
31
+ type __VLS_TypePropsToOption<T> = {
32
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
33
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
34
+ } : {
35
+ type: import('vue').PropType<T[K]>;
36
+ required: true;
37
+ };
38
+ };
@@ -1,13 +1,16 @@
1
1
  import { Editor } from '../../tiptap/vue-3';
2
-
3
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ declare function __VLS_template(): {
3
+ content?(_: {}): any;
4
+ actions?(_: {}): any;
5
+ };
6
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
4
7
  selected: boolean;
5
8
  editor: Editor;
6
9
  getPos: () => number;
7
10
  deleteNode: () => void;
8
11
  }>, {
9
12
  selected: boolean;
10
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
13
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
11
14
  selected: boolean;
12
15
  editor: Editor;
13
16
  getPos: () => number;
@@ -16,20 +19,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
16
19
  selected: boolean;
17
20
  }>>>, {
18
21
  selected: boolean;
19
- }, {}>, {
20
- content?(_: {}): any;
21
- actions?(_: {}): any;
22
- }>;
22
+ }, {}>;
23
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
23
24
  export default _default;
24
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
25
- type __VLS_TypePropsToRuntimeProps<T> = {
26
- [K in keyof T]-?: {} extends Pick<T, K> ? {
27
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
28
- } : {
29
- type: import('vue').PropType<T[K]>;
30
- required: true;
31
- };
32
- };
33
25
  type __VLS_WithDefaults<P, D> = {
34
26
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
35
27
  default: D[K];
@@ -43,3 +35,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
43
35
  $slots: S;
44
36
  };
45
37
  };
38
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
39
+ type __VLS_TypePropsToOption<T> = {
40
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
41
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
42
+ } : {
43
+ type: import('vue').PropType<T[K]>;
44
+ required: true;
45
+ };
46
+ };
@@ -1,20 +1,19 @@
1
1
  import { Editor } from '../../tiptap/vue-3';
2
2
  import { Component } from 'vue';
3
-
4
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
5
4
  editor: Editor;
6
- isActive?: (({ editor }: {
5
+ isActive?: ({ editor }: {
7
6
  editor: Editor;
8
- }) => boolean) | undefined;
9
- visible?: (({ editor }: {
7
+ }) => boolean;
8
+ visible?: ({ editor }: {
10
9
  editor: Editor;
11
- }) => boolean) | undefined;
12
- icon?: Component | undefined;
13
- iconStyle?: string | undefined;
14
- title?: string | undefined;
15
- action?: (({ editor }: {
10
+ }) => boolean;
11
+ icon?: Component;
12
+ iconStyle?: string;
13
+ title?: string;
14
+ action?: ({ editor }: {
16
15
  editor: Editor;
17
- }) => Component | void) | undefined;
16
+ }) => Component | void;
18
17
  }>, {
19
18
  isActive: () => false;
20
19
  visible: () => true;
@@ -22,20 +21,20 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
22
21
  action: undefined;
23
22
  icon: undefined;
24
23
  iconStyle: undefined;
25
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
24
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
26
25
  editor: Editor;
27
- isActive?: (({ editor }: {
26
+ isActive?: ({ editor }: {
28
27
  editor: Editor;
29
- }) => boolean) | undefined;
30
- visible?: (({ editor }: {
28
+ }) => boolean;
29
+ visible?: ({ editor }: {
31
30
  editor: Editor;
32
- }) => boolean) | undefined;
33
- icon?: Component | undefined;
34
- iconStyle?: string | undefined;
35
- title?: string | undefined;
36
- action?: (({ editor }: {
31
+ }) => boolean;
32
+ icon?: Component;
33
+ iconStyle?: string;
34
+ title?: string;
35
+ action?: ({ editor }: {
37
36
  editor: Editor;
38
- }) => Component | void) | undefined;
37
+ }) => Component | void;
39
38
  }>, {
40
39
  isActive: () => false;
41
40
  visible: () => true;
@@ -44,29 +43,20 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
44
43
  icon: undefined;
45
44
  iconStyle: undefined;
46
45
  }>>>, {
46
+ title: string;
47
+ icon: Component;
47
48
  isActive: ({ editor }: {
48
49
  editor: Editor;
49
50
  }) => boolean;
50
51
  visible: ({ editor }: {
51
52
  editor: Editor;
52
53
  }) => boolean;
53
- icon: Component;
54
54
  iconStyle: string;
55
- title: string;
56
55
  action: ({ editor }: {
57
56
  editor: Editor;
58
57
  }) => Component | void;
59
58
  }, {}>;
60
59
  export default _default;
61
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
62
- type __VLS_TypePropsToRuntimeProps<T> = {
63
- [K in keyof T]-?: {} extends Pick<T, K> ? {
64
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
65
- } : {
66
- type: import('vue').PropType<T[K]>;
67
- required: true;
68
- };
69
- };
70
60
  type __VLS_WithDefaults<P, D> = {
71
61
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
72
62
  default: D[K];
@@ -75,3 +65,12 @@ type __VLS_WithDefaults<P, D> = {
75
65
  type __VLS_Prettify<T> = {
76
66
  [K in keyof T]: T[K];
77
67
  } & {};
68
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
69
+ type __VLS_TypePropsToOption<T> = {
70
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
71
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
72
+ } : {
73
+ type: import('vue').PropType<T[K]>;
74
+ required: true;
75
+ };
76
+ };
@@ -1,69 +1,56 @@
1
1
  import { PropType } from 'vue';
2
-
3
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
2
+ import { BubbleMenuPluginProps } from './BubbleMenuPlugin';
3
+ declare function __VLS_template(): {
4
+ default?(_: {}): any;
5
+ };
6
+ declare const __VLS_component: import('vue').DefineComponent<{
4
7
  pluginKey: {
5
- type: PropType<string | import('../../tiptap').PluginKey<any>>;
8
+ type: PropType<BubbleMenuPluginProps["pluginKey"]>;
6
9
  default: string;
7
10
  };
8
11
  editor: {
9
- type: PropType<import('@tiptap/vue-3').Editor>;
12
+ type: PropType<BubbleMenuPluginProps["editor"]>;
10
13
  required: true;
11
14
  };
12
15
  tippyOptions: {
13
- type: PropType<Partial<import('./BubbleMenuPlugin').TippyOptionProps> | undefined>;
16
+ type: PropType<BubbleMenuPluginProps["tippyOptions"]>;
14
17
  default: () => {};
15
18
  };
16
19
  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>;
20
+ type: PropType<Exclude<Required<BubbleMenuPluginProps>["shouldShow"], null>>;
26
21
  default: null;
27
22
  };
28
23
  getRenderContainer: {
29
- type: PropType<(node: HTMLElement) => HTMLElement>;
24
+ type: PropType<Exclude<Required<BubbleMenuPluginProps>["getRenderContainer"], null>>;
30
25
  default: null;
31
26
  };
32
27
  defaultAnimation: {
33
- type: PropType<boolean | undefined>;
28
+ type: PropType<BubbleMenuPluginProps["defaultAnimation"]>;
34
29
  default: boolean;
35
30
  };
36
31
  }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
37
32
  pluginKey: {
38
- type: PropType<string | import('../../tiptap').PluginKey<any>>;
33
+ type: PropType<BubbleMenuPluginProps["pluginKey"]>;
39
34
  default: string;
40
35
  };
41
36
  editor: {
42
- type: PropType<import('@tiptap/vue-3').Editor>;
37
+ type: PropType<BubbleMenuPluginProps["editor"]>;
43
38
  required: true;
44
39
  };
45
40
  tippyOptions: {
46
- type: PropType<Partial<import('./BubbleMenuPlugin').TippyOptionProps> | undefined>;
41
+ type: PropType<BubbleMenuPluginProps["tippyOptions"]>;
47
42
  default: () => {};
48
43
  };
49
44
  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>;
45
+ type: PropType<Exclude<Required<BubbleMenuPluginProps>["shouldShow"], null>>;
59
46
  default: null;
60
47
  };
61
48
  getRenderContainer: {
62
- type: PropType<(node: HTMLElement) => HTMLElement>;
49
+ type: PropType<Exclude<Required<BubbleMenuPluginProps>["getRenderContainer"], null>>;
63
50
  default: null;
64
51
  };
65
52
  defaultAnimation: {
66
- type: PropType<boolean | undefined>;
53
+ type: PropType<BubbleMenuPluginProps["defaultAnimation"]>;
67
54
  default: boolean;
68
55
  };
69
56
  }>>, {
@@ -72,17 +59,16 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
72
59
  shouldShow: (props: {
73
60
  editor: import('@tiptap/vue-3').Editor;
74
61
  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;
62
+ node?: HTMLElement;
63
+ view?: import('../../tiptap').EditorView;
64
+ oldState?: import('../../tiptap').EditorState;
65
+ from?: number;
66
+ to?: number;
80
67
  }) => boolean;
81
68
  tippyOptions: Partial<import('./BubbleMenuPlugin').TippyOptionProps> | undefined;
82
69
  pluginKey: string | import('../../tiptap').PluginKey<any>;
83
- }, {}>, {
84
- default?(_: {}): any;
85
- }>;
70
+ }, {}>;
71
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
86
72
  export default _default;
87
73
  type __VLS_WithTemplateSlots<T, S> = T & {
88
74
  new (): {
@@ -1,7 +1,6 @@
1
1
  import { EditorView, EditorState, Plugin, PluginKey } from '../../tiptap/pm';
2
2
  import { Editor } from '../../tiptap/vue-3';
3
3
  import { Instance, Props } from 'tippy.js';
4
-
5
4
  export interface TippyOptionProps extends Props {
6
5
  fixed?: boolean;
7
6
  }
@@ -1,31 +1,24 @@
1
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
- modelValue?: string | undefined;
1
+ declare function __VLS_template(): {
2
+ default?(_: {}): any;
3
+ prefix?(_: {}): any;
4
+ };
5
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
6
+ modelValue?: string;
3
7
  }>, {
4
8
  modelValue: undefined;
5
9
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
10
  "update:modelValue": (value?: string | undefined) => void;
7
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
8
- modelValue?: string | undefined;
11
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
12
+ modelValue?: string;
9
13
  }>, {
10
14
  modelValue: undefined;
11
15
  }>>> & {
12
16
  "onUpdate:modelValue"?: ((value?: string | undefined) => any) | undefined;
13
17
  }, {
14
18
  modelValue: string;
15
- }, {}>, {
16
- default?(_: {}): any;
17
- prefix?(_: {}): any;
18
- }>;
19
+ }, {}>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
19
21
  export default _default;
20
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
21
- type __VLS_TypePropsToRuntimeProps<T> = {
22
- [K in keyof T]-?: {} extends Pick<T, K> ? {
23
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
24
- } : {
25
- type: import('vue').PropType<T[K]>;
26
- required: true;
27
- };
28
- };
29
22
  type __VLS_WithDefaults<P, D> = {
30
23
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
31
24
  default: D[K];
@@ -39,3 +32,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
39
32
  $slots: S;
40
33
  };
41
34
  };
35
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
36
+ type __VLS_TypePropsToOption<T> = {
37
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
38
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
39
+ } : {
40
+ type: import('vue').PropType<T[K]>;
41
+ required: true;
42
+ };
43
+ };
@@ -1,13 +1,12 @@
1
1
  import { ToolbarItem } from '../../types';
2
2
  import { Component } from 'vue';
3
-
4
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
- isActive?: boolean | undefined;
6
- disabled?: boolean | undefined;
7
- title?: string | undefined;
8
- action?: (() => void) | undefined;
9
- icon?: Component | undefined;
10
- children?: ToolbarItem[] | undefined;
3
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
4
+ isActive?: boolean;
5
+ disabled?: boolean;
6
+ title?: string;
7
+ action?: () => void;
8
+ icon?: Component;
9
+ children?: ToolbarItem[];
11
10
  }>, {
12
11
  isActive: boolean;
13
12
  disabled: boolean;
@@ -15,13 +14,13 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
15
14
  action: undefined;
16
15
  icon: undefined;
17
16
  children: undefined;
18
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
19
- isActive?: boolean | undefined;
20
- disabled?: boolean | undefined;
21
- title?: string | undefined;
22
- action?: (() => void) | undefined;
23
- icon?: Component | undefined;
24
- children?: ToolbarItem[] | undefined;
17
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
18
+ isActive?: boolean;
19
+ disabled?: boolean;
20
+ title?: string;
21
+ action?: () => void;
22
+ icon?: Component;
23
+ children?: ToolbarItem[];
25
24
  }>, {
26
25
  isActive: boolean;
27
26
  disabled: boolean;
@@ -30,23 +29,14 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
30
29
  icon: undefined;
31
30
  children: undefined;
32
31
  }>>>, {
33
- isActive: boolean;
34
- icon: Component;
35
32
  title: string;
33
+ children: ToolbarItem[];
34
+ icon: Component;
35
+ isActive: boolean;
36
36
  action: () => void;
37
37
  disabled: boolean;
38
- children: ToolbarItem[];
39
38
  }, {}>;
40
39
  export default _default;
41
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
42
- type __VLS_TypePropsToRuntimeProps<T> = {
43
- [K in keyof T]-?: {} extends Pick<T, K> ? {
44
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
45
- } : {
46
- type: import('vue').PropType<T[K]>;
47
- required: true;
48
- };
49
- };
50
40
  type __VLS_WithDefaults<P, D> = {
51
41
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
52
42
  default: D[K];
@@ -55,3 +45,12 @@ type __VLS_WithDefaults<P, D> = {
55
45
  type __VLS_Prettify<T> = {
56
46
  [K in keyof T]: T[K];
57
47
  } & {};
48
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
49
+ type __VLS_TypePropsToOption<T> = {
50
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
51
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
52
+ } : {
53
+ type: import('vue').PropType<T[K]>;
54
+ required: true;
55
+ };
56
+ };
@@ -1,23 +1,22 @@
1
1
  import { Component } from 'vue';
2
-
3
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
- isActive?: boolean | undefined;
5
- disabled?: boolean | undefined;
6
- title?: string | undefined;
7
- action?: (() => void) | undefined;
8
- icon?: Component | undefined;
2
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
3
+ isActive?: boolean;
4
+ disabled?: boolean;
5
+ title?: string;
6
+ action?: () => void;
7
+ icon?: Component;
9
8
  }>, {
10
9
  isActive: boolean;
11
10
  disabled: boolean;
12
11
  title: undefined;
13
12
  action: undefined;
14
13
  icon: undefined;
15
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
16
- isActive?: boolean | undefined;
17
- disabled?: boolean | undefined;
18
- title?: string | undefined;
19
- action?: (() => void) | undefined;
20
- icon?: Component | undefined;
14
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
15
+ isActive?: boolean;
16
+ disabled?: boolean;
17
+ title?: string;
18
+ action?: () => void;
19
+ icon?: Component;
21
20
  }>, {
22
21
  isActive: boolean;
23
22
  disabled: boolean;
@@ -25,22 +24,13 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
25
24
  action: undefined;
26
25
  icon: undefined;
27
26
  }>>>, {
28
- isActive: boolean;
29
- icon: Component;
30
27
  title: string;
28
+ icon: Component;
29
+ isActive: boolean;
31
30
  action: () => void;
32
31
  disabled: boolean;
33
32
  }, {}>;
34
33
  export default _default;
35
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
36
- type __VLS_TypePropsToRuntimeProps<T> = {
37
- [K in keyof T]-?: {} extends Pick<T, K> ? {
38
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
39
- } : {
40
- type: import('vue').PropType<T[K]>;
41
- required: true;
42
- };
43
- };
44
34
  type __VLS_WithDefaults<P, D> = {
45
35
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
46
36
  default: D[K];
@@ -49,3 +39,12 @@ type __VLS_WithDefaults<P, D> = {
49
39
  type __VLS_Prettify<T> = {
50
40
  [K in keyof T]: T[K];
51
41
  } & {};
42
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
43
+ type __VLS_TypePropsToOption<T> = {
44
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
45
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
46
+ } : {
47
+ type: import('vue').PropType<T[K]>;
48
+ required: true;
49
+ };
50
+ };