@yiitap/vue 0.13.0 → 0.15.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 (68) hide show
  1. package/dist/index.cjs +270 -22
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.js +270 -22
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +52672 -25834
  6. package/dist/index.mjs.map +1 -1
  7. package/dist/vue.css +1 -1
  8. package/package.json +55 -58
  9. package/types/components/YiiEditor.vue.d.ts +8 -12
  10. package/types/components/buttons/OExtensionDropdown.vue.d.ts +11 -0
  11. package/types/components/common/OBlockPlaceholder.vue.d.ts +1 -1
  12. package/types/components/common/OBlockPopover.vue.d.ts +1 -1
  13. package/types/components/common/OCommandBtn.vue.d.ts +8 -8
  14. package/types/components/common/OCommonBtn.vue.d.ts +8 -8
  15. package/types/components/common/OMenubarBtn.vue.d.ts +7 -7
  16. package/types/components/common/OMetaInput.vue.d.ts +1 -1
  17. package/types/components/common/ONodeView.vue.d.ts +4 -8
  18. package/types/components/index.d.ts +1 -0
  19. package/types/components/menus/OSideMenu.vue.d.ts +9 -0
  20. package/types/components/ui/OBtn.vue.d.ts +3 -3
  21. package/types/components/ui/OBtnGroup.vue.d.ts +3 -3
  22. package/types/components/ui/OCheckbox.vue.d.ts +1 -1
  23. package/types/components/ui/ODialog.vue.d.ts +2 -2
  24. package/types/components/ui/OIcon.vue.d.ts +1 -1
  25. package/types/components/ui/OImageViewer.vue.d.ts +1 -1
  26. package/types/components/ui/OInput.vue.d.ts +2 -2
  27. package/types/components/ui/OPopover.vue.d.ts +4 -4
  28. package/types/components/ui/OTextarea.vue.d.ts +2 -2
  29. package/types/components/ui/OTooltip.vue.d.ts +1 -1
  30. package/types/constants/brand-color.d.ts +4 -0
  31. package/types/constants/empty-block.d.ts +75 -5
  32. package/types/constants/index.d.ts +1 -1
  33. package/types/extensions/audio/index.d.ts +4 -0
  34. package/types/extensions/blockquote/index.d.ts +1 -1
  35. package/types/extensions/char-command/emoji/view.vue.d.ts +2 -2
  36. package/types/extensions/char-command/index.d.ts +4 -0
  37. package/types/extensions/char-command/slash/view.vue.d.ts +1 -1
  38. package/types/extensions/code-block/index.d.ts +3 -3
  39. package/types/extensions/details/index.d.ts +1 -1
  40. package/types/extensions/extensions.d.ts +55 -0
  41. package/types/extensions/factory.d.ts +111 -0
  42. package/types/extensions/horizontal-rule/index.d.ts +3 -1
  43. package/types/extensions/index.d.ts +3 -51
  44. package/types/extensions/multi-column/__tests__/index.spec.d.ts +1 -0
  45. package/types/extensions/multi-column/core/dom.d.ts +13 -0
  46. package/types/extensions/multi-column/core/keymap.d.ts +3 -0
  47. package/types/extensions/multi-column/core/schema.d.ts +3 -0
  48. package/types/extensions/multi-column/core/state.d.ts +16 -0
  49. package/types/extensions/multi-column/extensions/column-container.d.ts +5 -0
  50. package/types/extensions/multi-column/extensions/column-dropcursor.d.ts +5 -0
  51. package/types/extensions/multi-column/extensions/column.d.ts +5 -0
  52. package/types/extensions/multi-column/extensions/multi-column.d.ts +20 -0
  53. package/types/extensions/multi-column/index.d.ts +4 -0
  54. package/types/extensions/multi-column/plugins/resize.d.ts +6 -0
  55. package/types/extensions/multi-column/utils/utils.d.ts +15 -0
  56. package/types/extensions/paragraph/index.d.ts +3 -1
  57. package/types/extensions/side-menu/utils.d.ts +9 -0
  58. package/types/extensions/starter-kit.d.ts +20 -0
  59. package/types/index.d.ts +1 -0
  60. package/types/components/common/o-side-node/AddNode.vue.d.ts +0 -92
  61. package/types/components/common/o-side-node/AddNodeView.vue.d.ts +0 -96
  62. package/types/components/common/o-side-node/DragNode.vue.d.ts +0 -96
  63. package/types/components/common/o-side-node/DragNodeView.vue.d.ts +0 -96
  64. package/types/components/common/o-side-node/index.vue.d.ts +0 -96
  65. package/types/constants/color.d.ts +0 -5
  66. package/types/extensions/dynamic.d.ts +0 -8
  67. package/types/extensions/heading/index.d.ts +0 -7
  68. /package/types/extensions/{heading → audio}/view.vue.d.ts +0 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yiitap/vue",
3
3
  "description": "A WYSIWYG rich-text block-based editor built on top of tiptap.",
4
- "version": "0.13.0",
4
+ "version": "0.15.0",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "Yiitap",
@@ -28,73 +28,70 @@
28
28
  ],
29
29
  "dependencies": {
30
30
  "@floating-ui/dom": "^1.7.4",
31
- "@mermaid-js/layout-elk": "^0.2.0",
32
- "katex": "^0.16.25",
33
- "lowlight": "^3.3.0",
34
- "mermaid": "^11.12.0",
31
+ "@tiptap/core": "^3.20.0",
32
+ "@tiptap/extension-blockquote": "^3.20.0",
33
+ "@tiptap/extension-bubble-menu": "^3.20.0",
34
+ "@tiptap/extension-code-block-lowlight": "^3.20.0",
35
+ "@tiptap/extension-collaboration": "^3.20.0",
36
+ "@tiptap/extension-collaboration-caret": "^3.20.0",
37
+ "@tiptap/extension-details": "^3.20.0",
38
+ "@tiptap/extension-document": "^3.20.0",
39
+ "@tiptap/extension-font-family": "^3.20.0",
40
+ "@tiptap/extension-heading": "^3.20.0",
41
+ "@tiptap/extension-highlight": "^3.20.0",
42
+ "@tiptap/extension-horizontal-rule": "^3.20.0",
43
+ "@tiptap/extension-image": "^3.20.0",
44
+ "@tiptap/extension-link": "^3.20.0",
45
+ "@tiptap/extension-list": "^3.20.0",
46
+ "@tiptap/extension-mention": "^3.20.0",
47
+ "@tiptap/extension-paragraph": "^3.20.0",
48
+ "@tiptap/extension-subscript": "^3.20.0",
49
+ "@tiptap/extension-superscript": "^3.20.0",
50
+ "@tiptap/extension-table": "^3.20.0",
51
+ "@tiptap/extension-text": "^3.20.0",
52
+ "@tiptap/extension-text-align": "^3.20.0",
53
+ "@tiptap/extension-text-style": "^3.20.0",
54
+ "@tiptap/extension-typography": "^3.20.0",
55
+ "@tiptap/extension-underline": "^3.20.0",
56
+ "@tiptap/extension-unique-id": "^3.20.0",
57
+ "@tiptap/extensions": "^3.20.0",
58
+ "@tiptap/pm": "^3.20.0",
59
+ "@tiptap/starter-kit": "^3.20.0",
60
+ "@tiptap/suggestion": "^3.20.0",
61
+ "@tiptap/vue-3": "^3.20.0",
35
62
  "tippy.js": "^6.3.7",
36
63
  "uuid": "^10.0.0",
37
- "@yiitap/i18n": "0.13.0"
64
+ "@yiitap/extension-ai-block": "0.15.0",
65
+ "@yiitap/core": "0.15.0",
66
+ "@yiitap/extension-callout": "0.15.0",
67
+ "@yiitap/extension-color-highlighter": "0.15.0",
68
+ "@yiitap/extension-char-command": "0.15.0",
69
+ "@yiitap/extension-image": "0.15.0",
70
+ "@yiitap/extension-multi-column": "0.15.0",
71
+ "@yiitap/extension-inline-placeholder": "0.15.0",
72
+ "@yiitap/extension-placeholder": "0.15.0",
73
+ "@yiitap/extension-selection-decoration": "0.15.0",
74
+ "@yiitap/extension-shortcut": "0.15.0",
75
+ "@yiitap/extension-table": "0.15.0",
76
+ "@yiitap/extension-table-wrapper": "0.15.0",
77
+ "@yiitap/extension-video": "0.15.0",
78
+ "@yiitap/extension-task-item": "0.15.0"
38
79
  },
39
80
  "peerDependencies": {
40
- "@tiptap/extension-emoji": "^3.16.0",
41
- "@tiptap/extension-mathematics": "^3.16.0",
42
- "@tiptap/core": "^3.16.0",
43
- "@tiptap/extension-blockquote": "^3.16.0",
44
- "@tiptap/extension-bubble-menu": "^3.16.0",
45
- "@tiptap/extension-code-block-lowlight": "^3.16.0",
46
- "@tiptap/extension-collaboration": "^3.16.0",
47
- "@tiptap/extension-collaboration-caret": "^3.16.0",
48
- "@tiptap/extension-details": "^3.16.0",
49
- "@tiptap/extension-document": "^3.16.0",
50
- "@tiptap/extension-font-family": "^3.16.0",
51
- "@tiptap/extension-heading": "^3.16.0",
52
- "@tiptap/extension-highlight": "^3.16.0",
53
- "@tiptap/extension-horizontal-rule": "^3.16.0",
54
- "@tiptap/extension-image": "^3.16.0",
55
- "@tiptap/extension-link": "^3.16.0",
56
- "@tiptap/extension-list": "^3.16.0",
57
- "@tiptap/extension-mention": "^3.16.0",
58
- "@tiptap/extension-paragraph": "^3.16.0",
59
- "@tiptap/extension-subscript": "^3.16.0",
60
- "@tiptap/extension-superscript": "^3.16.0",
61
- "@tiptap/extension-table": "^3.16.0",
62
- "@tiptap/extension-text": "^3.16.0",
63
- "@tiptap/extension-text-align": "^3.16.0",
64
- "@tiptap/extension-text-style": "^3.16.0",
65
- "@tiptap/extension-typography": "^3.16.0",
66
- "@tiptap/extension-underline": "^3.16.0",
67
- "@tiptap/extension-unique-id": "^3.16.0",
68
- "@tiptap/extensions": "^3.16.0",
69
- "@tiptap/markdown": "^3.16.0",
70
- "@tiptap/pm": "^3.16.0",
71
- "@tiptap/starter-kit": "^3.16.0",
72
- "@tiptap/suggestion": "^3.16.0",
73
- "@tiptap/vue-3": "^3.16.0",
81
+ "@tiptap/extension-audio": "^3.20.0",
82
+ "@tiptap/extension-mathematics": "^3.20.0",
83
+ "@tiptap/markdown": "^3.20.0",
74
84
  "@types/uuid": "^10.0.0",
75
85
  "@mermaid-js/layout-elk": "^0.2.0",
76
86
  "katex": "^0.16.25",
77
- "markdown-it": "^14.1.0",
87
+ "lowlight": "^3.3.0",
88
+ "markdown-it": "^14.1.1",
78
89
  "mermaid": "^11.12.0",
79
90
  "openai": "^4.88.0",
80
91
  "vue": "^3.3.8",
81
- "@yiitap/core": "0.13.0",
82
- "@yiitap/extension-ai-block": "0.13.0",
83
- "@yiitap/extension-callout": "0.13.0",
84
- "@yiitap/extension-color-highlighter": "0.13.0",
85
- "@yiitap/extension-char-command": "0.13.0",
86
- "@yiitap/extension-image": "0.13.0",
87
- "@yiitap/extension-focus": "0.13.0",
88
- "@yiitap/extension-inline-placeholder": "0.13.0",
89
- "@yiitap/extension-placeholder": "0.13.0",
90
- "@yiitap/extension-selection-decoration": "0.13.0",
91
- "@yiitap/extension-shortcut": "0.13.0",
92
- "@yiitap/extension-table": "0.13.0",
93
- "@yiitap/extension-table-wrapper": "0.13.0",
94
- "@yiitap/extension-task-item": "0.13.0",
95
- "@yiitap/extension-video": "0.13.0",
96
- "@yiitap/vue": "0.13.0",
97
- "@yiitap/util-emoji": "0.13.0"
92
+ "@yiitap/util-emoji": "0.15.0",
93
+ "@yiitap/vue": "0.15.0",
94
+ "@yiitap/i18n": "0.15.0"
98
95
  },
99
96
  "devDependencies": {
100
97
  "rollup-plugin-visualizer": "^5.14.0",
@@ -1,7 +1,5 @@
1
1
  import { type PropType } from 'vue';
2
2
  import type { FocusPosition } from '@tiptap/core';
3
- import type { CollaborationOptions } from '@tiptap/extension-collaboration';
4
- import type { CollaborationCaretOptions } from '@tiptap/extension-collaboration-caret';
5
3
  import { Editor } from '@tiptap/core';
6
4
  type SideMenuAddType = 'menu' | 'empty';
7
5
  interface SideMenuConfig {
@@ -10,8 +8,6 @@ interface SideMenuConfig {
10
8
  }
11
9
  interface CollabConfig {
12
10
  enabled: boolean;
13
- collaboration: CollaborationOptions;
14
- collaborationCaret: CollaborationCaretOptions;
15
11
  }
16
12
  declare var __VLS_4: {}, __VLS_6: {};
17
13
  type __VLS_Slots = {} & {
@@ -24,7 +20,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
24
20
  * Initial content. This can be HTML or JSON.
25
21
  */
26
22
  content: {
27
- type: (ObjectConstructor | StringConstructor)[];
23
+ type: (StringConstructor | ObjectConstructor)[];
28
24
  default: string;
29
25
  };
30
26
  /**
@@ -186,14 +182,14 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
186
182
  }) => any;
187
183
  transaction: (payload: {
188
184
  editor: Editor;
189
- transaction: Object;
185
+ transaction: object;
190
186
  }) => any;
191
187
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
192
188
  /**
193
189
  * Initial content. This can be HTML or JSON.
194
190
  */
195
191
  content: {
196
- type: (ObjectConstructor | StringConstructor)[];
192
+ type: (StringConstructor | ObjectConstructor)[];
197
193
  default: string;
198
194
  };
199
195
  /**
@@ -342,18 +338,18 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
342
338
  }) => any;
343
339
  onTransaction?: (payload: {
344
340
  editor: Editor;
345
- transaction: Object;
341
+ transaction: object;
346
342
  }) => any;
347
343
  }>, {
344
+ title: boolean;
345
+ aiOption: AiOption;
348
346
  locale: string;
347
+ darkMode: boolean;
349
348
  content: string | Record<string, any>;
350
349
  floatingMenu: string[];
351
- extensions: string[];
352
350
  autofocus: FocusPosition;
351
+ extensions: string[];
353
352
  editable: boolean;
354
- title: boolean;
355
- aiOption: AiOption;
356
- darkMode: boolean;
357
353
  bubbleMenu: string[];
358
354
  sideMenu: SideMenuConfig;
359
355
  showMainMenu: boolean;
@@ -0,0 +1,11 @@
1
+ import { Editor } from '@tiptap/core';
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ editor: {
4
+ type: typeof Editor;
5
+ };
6
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
7
+ editor: {
8
+ type: typeof Editor;
9
+ };
10
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
11
+ export default _default;
@@ -17,7 +17,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
17
17
  default: string;
18
18
  };
19
19
  }>> & Readonly<{}>, {
20
- placeholder: string;
21
20
  icon: string;
21
+ placeholder: string;
22
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
23
23
  export default _default;
@@ -81,8 +81,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
81
81
  onHide?: (...args: any[]) => any;
82
82
  }>, {
83
83
  placement: string;
84
- contentClass: string;
85
84
  offset: [number, number];
85
+ contentClass: string;
86
86
  tippyClass: string;
87
87
  showArrow: boolean;
88
88
  modelValue: boolean;
@@ -28,15 +28,15 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
28
28
  default: boolean;
29
29
  };
30
30
  contentClass: {
31
- type: (ObjectConstructor | StringConstructor)[];
31
+ type: (StringConstructor | ObjectConstructor)[];
32
32
  default: string;
33
33
  };
34
34
  contentStyle: {
35
- type: (ObjectConstructor | StringConstructor)[];
35
+ type: (StringConstructor | ObjectConstructor)[];
36
36
  default: string;
37
37
  };
38
38
  iconClass: {
39
- type: (ObjectConstructor | StringConstructor)[];
39
+ type: (StringConstructor | ObjectConstructor)[];
40
40
  default: string;
41
41
  };
42
42
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -67,15 +67,15 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
67
67
  default: boolean;
68
68
  };
69
69
  contentClass: {
70
- type: (ObjectConstructor | StringConstructor)[];
70
+ type: (StringConstructor | ObjectConstructor)[];
71
71
  default: string;
72
72
  };
73
73
  contentStyle: {
74
- type: (ObjectConstructor | StringConstructor)[];
74
+ type: (StringConstructor | ObjectConstructor)[];
75
75
  default: string;
76
76
  };
77
77
  iconClass: {
78
- type: (ObjectConstructor | StringConstructor)[];
78
+ type: (StringConstructor | ObjectConstructor)[];
79
79
  default: string;
80
80
  };
81
81
  }>> & Readonly<{
@@ -83,13 +83,13 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
83
83
  }>, {
84
84
  color: string;
85
85
  placement: string;
86
+ tooltip: string;
86
87
  icon: string;
87
88
  background: string;
88
- tooltip: string;
89
- disabled: boolean;
90
89
  contentClass: string | Record<string, any>;
91
90
  contentStyle: string | Record<string, any>;
92
91
  iconClass: string | Record<string, any>;
92
+ disabled: boolean;
93
93
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
94
94
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
95
95
  export default _default;
@@ -32,15 +32,15 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
32
32
  default: boolean;
33
33
  };
34
34
  contentClass: {
35
- type: (ObjectConstructor | StringConstructor)[];
35
+ type: (StringConstructor | ObjectConstructor)[];
36
36
  default: string;
37
37
  };
38
38
  contentStyle: {
39
- type: (ObjectConstructor | StringConstructor)[];
39
+ type: (StringConstructor | ObjectConstructor)[];
40
40
  default: string;
41
41
  };
42
42
  iconClass: {
43
- type: (ObjectConstructor | StringConstructor)[];
43
+ type: (StringConstructor | ObjectConstructor)[];
44
44
  default: string;
45
45
  };
46
46
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -75,15 +75,15 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
75
75
  default: boolean;
76
76
  };
77
77
  contentClass: {
78
- type: (ObjectConstructor | StringConstructor)[];
78
+ type: (StringConstructor | ObjectConstructor)[];
79
79
  default: string;
80
80
  };
81
81
  contentStyle: {
82
- type: (ObjectConstructor | StringConstructor)[];
82
+ type: (StringConstructor | ObjectConstructor)[];
83
83
  default: string;
84
84
  };
85
85
  iconClass: {
86
- type: (ObjectConstructor | StringConstructor)[];
86
+ type: (StringConstructor | ObjectConstructor)[];
87
87
  default: string;
88
88
  };
89
89
  }>> & Readonly<{
@@ -91,13 +91,13 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
91
91
  }>, {
92
92
  color: string;
93
93
  placement: string;
94
+ tooltip: string;
94
95
  icon: string;
95
96
  background: string;
96
- tooltip: string;
97
- disabled: boolean;
98
97
  contentClass: string | Record<string, any>;
99
98
  contentStyle: string | Record<string, any>;
100
99
  iconClass: string | Record<string, any>;
100
+ disabled: boolean;
101
101
  loading: boolean;
102
102
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
103
103
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -24,15 +24,15 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
24
24
  default: string;
25
25
  };
26
26
  contentClass: {
27
- type: (ObjectConstructor | StringConstructor)[];
27
+ type: (StringConstructor | ObjectConstructor)[];
28
28
  default: string;
29
29
  };
30
30
  contentStyle: {
31
- type: (ObjectConstructor | StringConstructor)[];
31
+ type: (StringConstructor | ObjectConstructor)[];
32
32
  default: string;
33
33
  };
34
34
  iconClass: {
35
- type: (ObjectConstructor | StringConstructor)[];
35
+ type: (StringConstructor | ObjectConstructor)[];
36
36
  default: string;
37
37
  };
38
38
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -59,15 +59,15 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
59
59
  default: string;
60
60
  };
61
61
  contentClass: {
62
- type: (ObjectConstructor | StringConstructor)[];
62
+ type: (StringConstructor | ObjectConstructor)[];
63
63
  default: string;
64
64
  };
65
65
  contentStyle: {
66
- type: (ObjectConstructor | StringConstructor)[];
66
+ type: (StringConstructor | ObjectConstructor)[];
67
67
  default: string;
68
68
  };
69
69
  iconClass: {
70
- type: (ObjectConstructor | StringConstructor)[];
70
+ type: (StringConstructor | ObjectConstructor)[];
71
71
  default: string;
72
72
  };
73
73
  }>> & Readonly<{
@@ -75,9 +75,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
75
75
  }>, {
76
76
  color: string;
77
77
  placement: string;
78
+ tooltip: string;
78
79
  icon: string;
79
80
  background: string;
80
- tooltip: string;
81
81
  contentClass: string | Record<string, any>;
82
82
  contentStyle: string | Record<string, any>;
83
83
  iconClass: string | Record<string, any>;
@@ -60,9 +60,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
60
60
  onConfirm?: (...args: any[]) => any;
61
61
  }>, {
62
62
  type: string;
63
+ title: string;
63
64
  icon: string;
64
65
  val: string;
65
- title: string;
66
66
  secondIcon: string;
67
67
  secondLabel: string;
68
68
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,6 +1,6 @@
1
- declare var __VLS_13: {};
1
+ declare var __VLS_6: {};
2
2
  type __VLS_Slots = {} & {
3
- default?: (props: typeof __VLS_13) => any;
3
+ default?: (props: typeof __VLS_6) => any;
4
4
  };
5
5
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
6
  editor: {
@@ -47,9 +47,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
47
47
  type: import("vue").PropType<import("@tiptap/core").NodeViewProps["HTMLAttributes"]>;
48
48
  required: true;
49
49
  };
50
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
51
- action: (...args: any[]) => void;
52
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
50
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
53
51
  editor: {
54
52
  type: import("vue").PropType<import("@tiptap/core").NodeViewProps["editor"]>;
55
53
  required: true;
@@ -94,9 +92,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
94
92
  type: import("vue").PropType<import("@tiptap/core").NodeViewProps["HTMLAttributes"]>;
95
93
  required: true;
96
94
  };
97
- }>> & Readonly<{
98
- onAction?: (...args: any[]) => any;
99
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
95
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
100
96
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
101
97
  export default _default;
102
98
  type __VLS_WithSlots<T, S> = T & {
@@ -1,6 +1,7 @@
1
1
  export { default as OAlignDropdown } from './buttons/OAlignDropdown.vue';
2
2
  export { default as OCodeBlockDownloadDropdown } from './buttons/OCodeBlockDownloadDropdown.vue';
3
3
  export { default as OCodeBlockViewDropdown } from './buttons/OCodeBlockViewDropdown.vue';
4
+ export { default as OExtensionDropdown } from './buttons/OExtensionDropdown.vue';
4
5
  export { default as OLinkBtn } from './buttons/OLinkBtn.vue';
5
6
  export { default as OBlockPlaceholder } from './common/OBlockPlaceholder.vue';
6
7
  export { default as OBlockList } from './common/OBlockList.vue';
@@ -12,6 +12,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
12
12
  type: StringConstructor;
13
13
  default: string;
14
14
  };
15
+ title: {
16
+ type: BooleanConstructor;
17
+ default: boolean;
18
+ };
15
19
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
16
20
  editor: {
17
21
  type: typeof Editor;
@@ -25,7 +29,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
25
29
  type: StringConstructor;
26
30
  default: string;
27
31
  };
32
+ title: {
33
+ type: BooleanConstructor;
34
+ default: boolean;
35
+ };
28
36
  }>> & Readonly<{}>, {
37
+ title: boolean;
29
38
  add: string;
30
39
  menuClass: string;
31
40
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -8,7 +8,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
8
8
  default: string;
9
9
  };
10
10
  iconClass: {
11
- type: (ObjectConstructor | StringConstructor)[];
11
+ type: (StringConstructor | ObjectConstructor)[];
12
12
  default: string;
13
13
  };
14
14
  label: {
@@ -31,7 +31,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
31
31
  default: string;
32
32
  };
33
33
  iconClass: {
34
- type: (ObjectConstructor | StringConstructor)[];
34
+ type: (StringConstructor | ObjectConstructor)[];
35
35
  default: string;
36
36
  };
37
37
  label: {
@@ -50,9 +50,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
50
50
  onClick?: (...args: any[]) => any;
51
51
  }>, {
52
52
  type: string;
53
+ label: string;
53
54
  icon: string;
54
55
  iconClass: string | Record<string, any>;
55
- label: string;
56
56
  loading: boolean;
57
57
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
58
58
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -8,7 +8,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
8
8
  default: string;
9
9
  };
10
10
  iconClass: {
11
- type: (ObjectConstructor | StringConstructor)[];
11
+ type: (StringConstructor | ObjectConstructor)[];
12
12
  default: string;
13
13
  };
14
14
  label: {
@@ -27,7 +27,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
27
27
  default: string;
28
28
  };
29
29
  iconClass: {
30
- type: (ObjectConstructor | StringConstructor)[];
30
+ type: (StringConstructor | ObjectConstructor)[];
31
31
  default: string;
32
32
  };
33
33
  label: {
@@ -42,9 +42,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
42
42
  onClick?: (...args: any[]) => any;
43
43
  }>, {
44
44
  type: string;
45
+ label: string;
45
46
  icon: string;
46
47
  iconClass: string | Record<string, any>;
47
- label: string;
48
48
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
49
49
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
50
50
  export default _default;
@@ -21,7 +21,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
21
21
  }>> & Readonly<{
22
22
  "onUpdate:modelValue"?: (...args: any[]) => any;
23
23
  }>, {
24
- modelValue: boolean;
25
24
  label: string;
25
+ modelValue: boolean;
26
26
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
27
27
  export default _default;
@@ -8,11 +8,11 @@ type __VLS_Slots = {} & {
8
8
  footer?: (props: typeof __VLS_17) => any;
9
9
  };
10
10
  declare const __VLS_component: import("vue").DefineComponent<DialogOption, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
- "update:show": (...args: any[]) => void;
12
11
  close: (...args: any[]) => void;
12
+ "update:show": (...args: any[]) => void;
13
13
  }, string, import("vue").PublicProps, Readonly<DialogOption> & Readonly<{
14
- "onUpdate:show"?: (...args: any[]) => any;
15
14
  onClose?: (...args: any[]) => any;
15
+ "onUpdate:show"?: (...args: any[]) => any;
16
16
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
17
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
18
18
  export default _default;
@@ -43,8 +43,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
43
43
  default: boolean;
44
44
  };
45
45
  }>> & Readonly<{}>, {
46
- small: boolean;
47
46
  name: string;
47
+ small: boolean;
48
48
  color: string;
49
49
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
50
50
  export default _default;
@@ -37,8 +37,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
37
37
  }>> & Readonly<{
38
38
  "onUpdate:show"?: (...args: any[]) => any;
39
39
  }>, {
40
- show: boolean;
41
40
  title: string;
41
+ show: boolean;
42
42
  images: EditorImage[];
43
43
  current: number;
44
44
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -27,9 +27,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
27
27
  clear: typeof clear;
28
28
  focus: typeof focus;
29
29
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
30
+ focus: (...args: any[]) => void;
30
31
  blur: (...args: any[]) => void;
31
32
  enter: (...args: any[]) => void;
32
- focus: (...args: any[]) => void;
33
33
  "update:modelValue": (...args: any[]) => void;
34
34
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
35
35
  modelValue: {
@@ -49,9 +49,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
49
49
  default: string;
50
50
  };
51
51
  }>> & Readonly<{
52
+ onFocus?: (...args: any[]) => any;
52
53
  onBlur?: (...args: any[]) => any;
53
54
  onEnter?: (...args: any[]) => any;
54
- onFocus?: (...args: any[]) => any;
55
55
  "onUpdate:modelValue"?: (...args: any[]) => any;
56
56
  }>, {
57
57
  type: string;
@@ -110,14 +110,14 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
110
110
  }>, {
111
111
  placement: string;
112
112
  trigger: string;
113
+ delay: number;
114
+ duration: number;
115
+ offset: [number, number];
116
+ arrow: boolean;
113
117
  contentClass: string;
114
118
  disable: boolean;
115
- arrow: boolean;
116
- offset: [number, number];
117
119
  tippyClass: string;
118
120
  event: Record<string, any>;
119
- delay: number;
120
- duration: number;
121
121
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
122
122
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
123
123
  export default _default;
@@ -31,8 +31,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
31
31
  clear: typeof clear;
32
32
  focus: typeof focus;
33
33
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
34
- blur: (...args: any[]) => void;
35
34
  focus: (...args: any[]) => void;
35
+ blur: (...args: any[]) => void;
36
36
  "update:modelValue": (...args: any[]) => void;
37
37
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
38
38
  modelValue: {
@@ -56,8 +56,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
56
56
  default: number;
57
57
  };
58
58
  }>> & Readonly<{
59
- onBlur?: (...args: any[]) => any;
60
59
  onFocus?: (...args: any[]) => any;
60
+ onBlur?: (...args: any[]) => any;
61
61
  "onUpdate:modelValue"?: (...args: any[]) => any;
62
62
  }>, {
63
63
  type: string;
@@ -51,9 +51,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
51
51
  }>> & Readonly<{}>, {
52
52
  placement: string;
53
53
  trigger: string;
54
- offset: [number, number];
55
54
  delay: number;
56
55
  duration: number;
56
+ offset: [number, number];
57
57
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
58
58
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
59
59
  export default _default;