@yiitap/vue 0.14.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 (44) hide show
  1. package/dist/index.cjs +106 -98
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.js +106 -98
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +9984 -9585
  6. package/dist/index.mjs.map +1 -1
  7. package/dist/vue.css +1 -1
  8. package/package.json +53 -52
  9. package/types/components/YiiEditor.vue.d.ts +2 -2
  10. package/types/components/buttons/OExtensionDropdown.vue.d.ts +11 -0
  11. package/types/components/common/OBlockPopover.vue.d.ts +3 -3
  12. package/types/components/common/OCommandBtn.vue.d.ts +2 -2
  13. package/types/components/common/OCommonBtn.vue.d.ts +2 -2
  14. package/types/components/common/OMenubarBtn.vue.d.ts +1 -1
  15. package/types/components/common/ONodeView.vue.d.ts +4 -8
  16. package/types/components/index.d.ts +1 -0
  17. package/types/components/ui/ODialog.vue.d.ts +2 -2
  18. package/types/components/ui/OInput.vue.d.ts +2 -2
  19. package/types/components/ui/OPopover.vue.d.ts +4 -4
  20. package/types/components/ui/OTooltip.vue.d.ts +1 -1
  21. package/types/constants/empty-block.d.ts +75 -5
  22. package/types/extensions/audio/index.d.ts +4 -0
  23. package/types/extensions/extensions.d.ts +5 -5
  24. package/types/extensions/factory.d.ts +4 -3
  25. package/types/extensions/multi-column/__tests__/index.spec.d.ts +1 -0
  26. package/types/extensions/multi-column/core/dom.d.ts +13 -0
  27. package/types/extensions/multi-column/core/keymap.d.ts +3 -0
  28. package/types/extensions/multi-column/core/schema.d.ts +3 -0
  29. package/types/extensions/multi-column/core/state.d.ts +16 -0
  30. package/types/extensions/multi-column/extensions/column-container.d.ts +5 -0
  31. package/types/extensions/multi-column/extensions/column-dropcursor.d.ts +5 -0
  32. package/types/extensions/multi-column/extensions/column.d.ts +5 -0
  33. package/types/extensions/multi-column/extensions/multi-column.d.ts +20 -0
  34. package/types/extensions/multi-column/index.d.ts +4 -0
  35. package/types/extensions/multi-column/plugins/resize.d.ts +6 -0
  36. package/types/extensions/multi-column/utils/utils.d.ts +15 -0
  37. package/types/extensions/side-menu/utils.d.ts +9 -0
  38. package/types/components/common/o-side-node/AddNode.vue.d.ts +0 -92
  39. package/types/components/common/o-side-node/AddNodeView.vue.d.ts +0 -96
  40. package/types/components/common/o-side-node/DragNode.vue.d.ts +0 -96
  41. package/types/components/common/o-side-node/DragNodeView.vue.d.ts +0 -96
  42. package/types/components/common/o-side-node/index.vue.d.ts +0 -96
  43. package/types/extensions/heading/index.d.ts +0 -7
  44. /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.14.0",
4
+ "version": "0.15.0",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "Yiitap",
@@ -28,58 +28,59 @@
28
28
  ],
29
29
  "dependencies": {
30
30
  "@floating-ui/dom": "^1.7.4",
31
- "@tiptap/core": "^3.16.0",
32
- "@tiptap/extension-blockquote": "^3.16.0",
33
- "@tiptap/extension-bubble-menu": "^3.16.0",
34
- "@tiptap/extension-code-block-lowlight": "^3.16.0",
35
- "@tiptap/extension-collaboration": "^3.16.0",
36
- "@tiptap/extension-collaboration-caret": "^3.16.0",
37
- "@tiptap/extension-details": "^3.16.0",
38
- "@tiptap/extension-document": "^3.16.0",
39
- "@tiptap/extension-font-family": "^3.16.0",
40
- "@tiptap/extension-heading": "^3.16.0",
41
- "@tiptap/extension-highlight": "^3.16.0",
42
- "@tiptap/extension-horizontal-rule": "^3.16.0",
43
- "@tiptap/extension-image": "^3.16.0",
44
- "@tiptap/extension-link": "^3.16.0",
45
- "@tiptap/extension-list": "^3.16.0",
46
- "@tiptap/extension-mention": "^3.16.0",
47
- "@tiptap/extension-paragraph": "^3.16.0",
48
- "@tiptap/extension-subscript": "^3.16.0",
49
- "@tiptap/extension-superscript": "^3.16.0",
50
- "@tiptap/extension-table": "^3.16.0",
51
- "@tiptap/extension-text": "^3.16.0",
52
- "@tiptap/extension-text-align": "^3.16.0",
53
- "@tiptap/extension-text-style": "^3.16.0",
54
- "@tiptap/extension-typography": "^3.16.0",
55
- "@tiptap/extension-underline": "^3.16.0",
56
- "@tiptap/extension-unique-id": "^3.16.0",
57
- "@tiptap/extensions": "^3.16.0",
58
- "@tiptap/pm": "^3.16.0",
59
- "@tiptap/starter-kit": "^3.16.0",
60
- "@tiptap/suggestion": "^3.16.0",
61
- "@tiptap/vue-3": "^3.16.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",
62
62
  "tippy.js": "^6.3.7",
63
63
  "uuid": "^10.0.0",
64
- "@yiitap/extension-ai-block": "0.14.0",
65
- "@yiitap/extension-callout": "0.14.0",
66
- "@yiitap/core": "0.14.0",
67
- "@yiitap/extension-char-command": "0.14.0",
68
- "@yiitap/extension-color-highlighter": "0.14.0",
69
- "@yiitap/extension-focus": "0.14.0",
70
- "@yiitap/extension-image": "0.14.0",
71
- "@yiitap/extension-inline-placeholder": "0.14.0",
72
- "@yiitap/extension-placeholder": "0.14.0",
73
- "@yiitap/extension-selection-decoration": "0.14.0",
74
- "@yiitap/extension-shortcut": "0.14.0",
75
- "@yiitap/extension-table": "0.14.0",
76
- "@yiitap/extension-table-wrapper": "0.14.0",
77
- "@yiitap/extension-task-item": "0.14.0",
78
- "@yiitap/extension-video": "0.14.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"
79
79
  },
80
80
  "peerDependencies": {
81
- "@tiptap/extension-mathematics": "^3.16.0",
82
- "@tiptap/markdown": "^3.16.0",
81
+ "@tiptap/extension-audio": "^3.20.0",
82
+ "@tiptap/extension-mathematics": "^3.20.0",
83
+ "@tiptap/markdown": "^3.20.0",
83
84
  "@types/uuid": "^10.0.0",
84
85
  "@mermaid-js/layout-elk": "^0.2.0",
85
86
  "katex": "^0.16.25",
@@ -88,9 +89,9 @@
88
89
  "mermaid": "^11.12.0",
89
90
  "openai": "^4.88.0",
90
91
  "vue": "^3.3.8",
91
- "@yiitap/i18n": "0.14.0",
92
- "@yiitap/util-emoji": "0.14.0",
93
- "@yiitap/vue": "0.14.0"
92
+ "@yiitap/util-emoji": "0.15.0",
93
+ "@yiitap/vue": "0.15.0",
94
+ "@yiitap/i18n": "0.15.0"
94
95
  },
95
96
  "devDependencies": {
96
97
  "rollup-plugin-visualizer": "^5.14.0",
@@ -346,10 +346,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
346
346
  locale: string;
347
347
  darkMode: boolean;
348
348
  content: string | Record<string, any>;
349
- extensions: string[];
349
+ floatingMenu: string[];
350
350
  autofocus: FocusPosition;
351
+ extensions: string[];
351
352
  editable: boolean;
352
- floatingMenu: string[];
353
353
  bubbleMenu: string[];
354
354
  sideMenu: SideMenuConfig;
355
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;
@@ -39,8 +39,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
39
39
  default: () => [number, number];
40
40
  };
41
41
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
42
- "update:modelValue": (...args: any[]) => void;
43
42
  show: (...args: any[]) => void;
43
+ "update:modelValue": (...args: any[]) => void;
44
44
  hide: (...args: any[]) => void;
45
45
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
46
46
  modelValue: {
@@ -76,13 +76,13 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
76
76
  default: () => [number, number];
77
77
  };
78
78
  }>> & Readonly<{
79
- "onUpdate:modelValue"?: (...args: any[]) => any;
80
79
  onShow?: (...args: any[]) => any;
80
+ "onUpdate:modelValue"?: (...args: any[]) => any;
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;
@@ -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;
@@ -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>;
@@ -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>;
@@ -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';
@@ -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;
@@ -29,8 +29,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
29
29
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
30
30
  focus: (...args: any[]) => void;
31
31
  blur: (...args: any[]) => void;
32
- "update:modelValue": (...args: any[]) => void;
33
32
  enter: (...args: any[]) => void;
33
+ "update:modelValue": (...args: any[]) => void;
34
34
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
35
35
  modelValue: {
36
36
  type: StringConstructor;
@@ -51,8 +51,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
51
51
  }>> & Readonly<{
52
52
  onFocus?: (...args: any[]) => any;
53
53
  onBlur?: (...args: any[]) => any;
54
- "onUpdate:modelValue"?: (...args: any[]) => any;
55
54
  onEnter?: (...args: any[]) => any;
55
+ "onUpdate:modelValue"?: (...args: any[]) => any;
56
56
  }>, {
57
57
  type: string;
58
58
  placeholder: 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;
@@ -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;
@@ -5,20 +5,45 @@ export declare const EmptyParagraph: {
5
5
  type: string;
6
6
  content: any[];
7
7
  }[];
8
- export declare const EmptyListItem: {
8
+ export declare const EmptyAiBlock: {
9
9
  type: string;
10
10
  content: {
11
11
  type: string;
12
12
  content: any[];
13
13
  }[];
14
- }[];
15
- export declare const EmptyTaskItem: {
14
+ };
15
+ export declare const EmptyAudio: {
16
+ type: string;
17
+ attrs: {
18
+ src: string;
19
+ };
20
+ };
21
+ export declare const EmptyBlockquote: {
16
22
  type: string;
17
23
  content: {
18
24
  type: string;
19
25
  content: any[];
20
26
  }[];
21
- }[];
27
+ };
28
+ export declare const EmptyCallout: {
29
+ type: string;
30
+ attrs: {
31
+ icon: string;
32
+ };
33
+ content: {
34
+ type: string;
35
+ content: any[];
36
+ }[];
37
+ };
38
+ export declare const EmptyCodeblock: {
39
+ type: string;
40
+ attrs: {
41
+ attrs: {
42
+ language: string;
43
+ };
44
+ };
45
+ content: any[];
46
+ };
22
47
  export declare const EmptyDetails: {
23
48
  type: string;
24
49
  attrs: {
@@ -31,7 +56,7 @@ export declare const EmptyDetails: {
31
56
  content: any[];
32
57
  }[];
33
58
  }[];
34
- }[];
59
+ };
35
60
  export declare const EmptyDiagram: {
36
61
  type: string;
37
62
  attrs: {
@@ -41,4 +66,49 @@ export declare const EmptyDiagram: {
41
66
  type: string;
42
67
  text: string;
43
68
  }[];
69
+ };
70
+ export declare const EmptyEmoji: {
71
+ type: string;
72
+ content: {
73
+ type: string;
74
+ text: string;
75
+ }[];
76
+ };
77
+ export declare const EmptyImage: {
78
+ type: string;
79
+ attrs: {
80
+ src: string;
81
+ };
82
+ };
83
+ export declare const EmptyListItem: {
84
+ type: string;
85
+ content: {
86
+ type: string;
87
+ content: any[];
88
+ }[];
44
89
  }[];
90
+ export declare const EmptyTable: {
91
+ type: string;
92
+ content: {
93
+ type: string;
94
+ content: {
95
+ type: string;
96
+ content: {
97
+ type: string;
98
+ }[];
99
+ }[];
100
+ }[];
101
+ };
102
+ export declare const EmptyTaskItem: {
103
+ type: string;
104
+ content: {
105
+ type: string;
106
+ content: any[];
107
+ }[];
108
+ }[];
109
+ export declare const EmptyVideo: {
110
+ type: string;
111
+ attrs: {
112
+ src: string;
113
+ };
114
+ };
@@ -0,0 +1,4 @@
1
+ import { type AudioOptions } from '@tiptap/extension-audio';
2
+ export declare const OAudio: import("@tiptap/core").Node<AudioOptions, any>;
3
+ export default OAudio;
4
+ export type { AudioOptions };
@@ -22,8 +22,9 @@ import UniqueID, { type UniqueIDOptions } from '@tiptap/extension-unique-id';
22
22
  import type { AiBlockOptions } from '@yiitap/extension-ai-block';
23
23
  import type { CalloutOptions } from '@yiitap/extension-callout';
24
24
  import OColorHighlighter from '@yiitap/extension-color-highlighter';
25
- import OFocus from '@yiitap/extension-focus';
26
25
  import OInlinePlaceholder from '@yiitap/extension-inline-placeholder';
26
+ import { Column, ColumnContainer, MultiColumn, ColumnDropCursor } from '@yiitap/extension-multi-column';
27
+ import type { MultiColumnOptions, ColumnDropCursorOptions } from '@yiitap/extension-multi-column';
27
28
  import OPlaceholder from '@yiitap/extension-placeholder';
28
29
  import OSelectionDecoration from '@yiitap/extension-selection-decoration';
29
30
  import OShortcut, { type ShortcutOptions } from '@yiitap/extension-shortcut';
@@ -33,16 +34,15 @@ import OCharCommand from '@yiitap/extension-char-command';
33
34
  import { ColonCommand as OColonCommand, SlashCommand as OSlashCommand, SlashZhCommand as OSlashZhCommand } from '@yiitap/extension-char-command';
34
35
  import { ColonSuggestion, SlashSuggestion, EmojiSuggestion } from './char-command';
35
36
  import OAiBlock from './ai-block';
37
+ import OAudio, { type AudioOptions } from './audio';
36
38
  import OBlockMath from './block-math';
37
39
  import OBlockquote, { type OBlockquoteOptions } from './blockquote';
38
40
  import OCallout from './callout';
39
41
  import OCodeBlock, { type OCodeBlockOptions } from './code-block';
40
42
  import ODetails, { type ODetailsOptions } from './details';
41
- import OHeading, { type OHeadingOptions } from './heading';
42
43
  import OHorizontalRule from './horizontal-rule';
43
44
  import OImage from './image';
44
45
  import OLink from './link';
45
- import OParagraph, { type ParagraphOptions } from './paragraph';
46
46
  import OTableCell from './table-cell';
47
47
  import OTableHeader from './table-header';
48
48
  import OTableWrapper from './table-wrapper';
@@ -51,5 +51,5 @@ import OVideo from './video';
51
51
  * Default extensions enabled via StarterKit
52
52
  */
53
53
  export declare const DefaultExtensionNames: string[];
54
- export { BackgroundColor, BlockMath, Collaboration, CollaborationCaret, Color, Details, DetailsContent, DetailsSummary, Focus, FontFamily, Highlight, Image, InlineMath, Link, Markdown, Mention, Subscript, Superscript, Table, TableHeader, TableCell, TableRow, TaskItem, TaskList, TextAlign, TextStyle, Typography, Underline, UniqueID, OAiBlock, OBlockMath, OBlockquote, OCallout, OCharCommand, OCodeBlock, OColonCommand, OColorHighlighter, ODetails, OFocus, OInlinePlaceholder, OHeading, OHorizontalRule, OImage, OLink, OParagraph, OPlaceholder, OSelectionDecoration, OShortcut, OSlashCommand, OSlashZhCommand, OTable, OTableCell, OTableHeader, OTableWrapper, OTaskItem, OVideo, ColonSuggestion, SlashSuggestion, EmojiSuggestion, };
55
- export type { AnyExtension, BackgroundColorOptions, BlockMathOptions, CollaborationOptions, CollaborationCaretOptions, ColorOptions, FocusOptions, FontFamilyOptions, HighlightOptions, HorizontalRuleOptions, ImageOptions, InlineMathOptions, LinkOptions, MarkdownExtensionOptions, MentionOptions, SubscriptExtensionOptions, SuperscriptExtensionOptions, TaskItemOptions, TaskListOptions, TextAlignOptions, TextStyleOptions, TypographyOptions, UnderlineOptions, UniqueIDOptions, AiBlockOptions, CalloutOptions, OBlockquoteOptions, OCodeBlockOptions, ODetailsOptions, OHeadingOptions, ParagraphOptions, ShortcutOptions, };
54
+ export { BackgroundColor, BlockMath, Collaboration, CollaborationCaret, Color, Details, DetailsContent, DetailsSummary, Focus, FontFamily, Highlight, Image, InlineMath, Link, Markdown, Mention, Subscript, Superscript, Table, TableHeader, TableCell, TableRow, TaskItem, TaskList, TextAlign, TextStyle, Typography, Underline, UniqueID, OAiBlock, OAudio, OBlockMath, OBlockquote, OCallout, OCharCommand, OCodeBlock, OColonCommand, OColorHighlighter, ODetails, OHorizontalRule, OImage, OInlinePlaceholder, OLink, OPlaceholder, OSelectionDecoration, OShortcut, OSlashCommand, OSlashZhCommand, OTable, OTableCell, OTableHeader, OTableWrapper, OTaskItem, OVideo, Column, ColumnContainer, MultiColumn, ColumnDropCursor, ColonSuggestion, SlashSuggestion, EmojiSuggestion, };
55
+ export type { AnyExtension, BackgroundColorOptions, BlockMathOptions, CollaborationOptions, CollaborationCaretOptions, ColorOptions, FocusOptions, FontFamilyOptions, HighlightOptions, HorizontalRuleOptions, ImageOptions, InlineMathOptions, LinkOptions, MarkdownExtensionOptions, MentionOptions, SubscriptExtensionOptions, SuperscriptExtensionOptions, TaskItemOptions, TaskListOptions, TextAlignOptions, TextStyleOptions, TypographyOptions, UnderlineOptions, UniqueIDOptions, AiBlockOptions, AudioOptions, CalloutOptions, OBlockquoteOptions, OCodeBlockOptions, ODetailsOptions, ColumnDropCursorOptions, MultiColumnOptions, ShortcutOptions, };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Extensions Registry Factory
3
3
  */
4
- import type { AnyExtension, BackgroundColorOptions, BlockMathOptions, CollaborationOptions, CollaborationCaretOptions, ColorOptions, FocusOptions, FontFamilyOptions, HighlightOptions, HorizontalRuleOptions, ImageOptions, InlineMathOptions, LinkOptions, MarkdownExtensionOptions, MentionOptions, SubscriptExtensionOptions, SuperscriptExtensionOptions, TaskItemOptions, TaskListOptions, TextAlignOptions, TextStyleOptions, TypographyOptions, UnderlineOptions, UniqueIDOptions, AiBlockOptions, CalloutOptions, OBlockquoteOptions, OCodeBlockOptions, ODetailsOptions, OHeadingOptions, ParagraphOptions, ShortcutOptions } from './extensions';
4
+ import type { AnyExtension, BackgroundColorOptions, BlockMathOptions, CollaborationOptions, CollaborationCaretOptions, ColorOptions, FocusOptions, FontFamilyOptions, HighlightOptions, HorizontalRuleOptions, ImageOptions, InlineMathOptions, LinkOptions, MarkdownExtensionOptions, MentionOptions, SubscriptExtensionOptions, SuperscriptExtensionOptions, TaskItemOptions, TaskListOptions, TextAlignOptions, TextStyleOptions, TypographyOptions, UnderlineOptions, UniqueIDOptions, AiBlockOptions, AudioOptions, CalloutOptions, OBlockquoteOptions, OCodeBlockOptions, ODetailsOptions, ColumnDropCursorOptions, MultiColumnOptions, ShortcutOptions } from './extensions';
5
5
  /**
6
6
  * Define the factory type to hide internal Tiptap/Yiitap option types.
7
7
  * This prevents "name from external module" errors.
@@ -34,6 +34,7 @@ export interface ExtensionOptions {
34
34
  Underline: UnderlineOptions;
35
35
  UniqueID: UniqueIDOptions;
36
36
  OAiBlock: AiBlockOptions;
37
+ OAudio: AudioOptions;
37
38
  OBlockMath: BlockMathOptions;
38
39
  OColon: {
39
40
  suggestion?: any;
@@ -51,7 +52,6 @@ export interface ExtensionOptions {
51
52
  OCallout: CalloutOptions;
52
53
  OCodeBlock: OCodeBlockOptions;
53
54
  OColorHighlighter: any;
54
- OHeading: OHeadingOptions;
55
55
  OHorizontalRule: HorizontalRuleOptions;
56
56
  OImage: ImageOptions;
57
57
  OInlinePlaceholder: {
@@ -59,7 +59,8 @@ export interface ExtensionOptions {
59
59
  HTMLAttributes?: Record<string, any>;
60
60
  };
61
61
  OLink: LinkOptions;
62
- OParagraph: ParagraphOptions;
62
+ OMultiColumn: MultiColumnOptions;
63
+ OColumnDropCursor: ColumnDropCursorOptions;
63
64
  OShortcut: ShortcutOptions;
64
65
  OSelectionDecoration: any;
65
66
  OVideo: {
@@ -0,0 +1,13 @@
1
+ import { EditorState } from '@tiptap/pm/state';
2
+ import { DecorationSet, EditorView } from '@tiptap/pm/view';
3
+ export declare function handleMouseMove(view: any, event: any, handleWidth: any): boolean;
4
+ export declare function handleMouseLeave(view: EditorView): boolean;
5
+ /**
6
+ * Handles the mousedown event to initialize the resizing process.
7
+ * @param {EditorView} view - The ProseMirror editor view.
8
+ * @param {MouseEvent} event - The native mouse event.
9
+ * @param {number} minFlex - The minimum flex-grow value allowed for a column.
10
+ */
11
+ export declare function handleMouseDown(view: EditorView, event: MouseEvent, minFlex?: number): boolean;
12
+ export declare function handleGridDecorations(state: EditorState, boundaryPos: number): DecorationSet;
13
+ export declare function handleMouseUp(view: EditorView, event: MouseEvent): boolean;
@@ -0,0 +1,3 @@
1
+ import { type Command } from '@tiptap/pm/state';
2
+ export declare const liftEmptyBlock: Command;
3
+ export declare const columnsKeymap: import("@tiptap/pm/state").Plugin<any>;
@@ -0,0 +1,3 @@
1
+ import type { NodeSpec } from '@tiptap/pm/model';
2
+ export type ColumnNodes = Record<'column' | 'columns', NodeSpec>;
3
+ export declare function columnNodes(): ColumnNodes;
@@ -0,0 +1,16 @@
1
+ import { PluginKey } from '@tiptap/pm/state';
2
+ export declare const gridResizingPluginKey: PluginKey<GridResizeState>;
3
+ export type Dragging = {
4
+ startX: number;
5
+ startFlex: number;
6
+ nextColFlex: number | null;
7
+ nextColPos: number | null;
8
+ totalFlex: number;
9
+ containerWidth: number;
10
+ };
11
+ export declare class GridResizeState {
12
+ activeHandle: number;
13
+ dragging: Dragging | null;
14
+ constructor(activeHandle: number, dragging: Dragging | null);
15
+ apply(tr: any): GridResizeState;
16
+ }
@@ -0,0 +1,5 @@
1
+ import { Node } from '@tiptap/core';
2
+ export interface ColumnContainerOptions {
3
+ HTMLAttributes: Record<string, any>;
4
+ }
5
+ export declare const ColumnContainer: Node<ColumnContainerOptions, any>;
@@ -0,0 +1,5 @@
1
+ import { Extension } from '@tiptap/core';
2
+ export interface ColumnDropCursorOptions {
3
+ HTMLAttributes: Record<string, any>;
4
+ }
5
+ export declare const ColumnDropCursor: Extension<ColumnDropCursorOptions, any>;
@@ -0,0 +1,5 @@
1
+ import { Node } from '@tiptap/core';
2
+ export interface ColumnOptions {
3
+ HTMLAttributes: Record<string, any>;
4
+ }
5
+ export declare const Column: Node<ColumnOptions, any>;
@@ -0,0 +1,20 @@
1
+ import { Extension } from '@tiptap/core';
2
+ export interface MultiColumnOptions {
3
+ HTMLAttributes: Record<string, any>;
4
+ }
5
+ /**
6
+ * Define the structure for the insertMultiColumn command.
7
+ * Default: Creates a container with 2 columns, each containing 1 paragraph.
8
+ */
9
+ declare module '@tiptap/core' {
10
+ interface Commands<ReturnType> {
11
+ multiColumn: {
12
+ /**
13
+ * Insert a multi-column layout.
14
+ * @param num - Number of columns (default: 2)
15
+ */
16
+ insertMultiColumn: (num?: number) => ReturnType;
17
+ };
18
+ }
19
+ }
20
+ export declare const MultiColumn: Extension<MultiColumnOptions, any>;
@@ -0,0 +1,4 @@
1
+ export * from './extensions/column';
2
+ export * from './extensions/column-container';
3
+ export * from './extensions/column-dropcursor';
4
+ export * from './extensions/multi-column';
@@ -0,0 +1,6 @@
1
+ import { Plugin } from '@tiptap/pm/state';
2
+ import { GridResizeState } from '../core/state';
3
+ export declare function gridResizingPlugin(options?: {
4
+ handleWidth?: number;
5
+ minColumnFlex?: number;
6
+ }): Plugin<GridResizeState>;