@yiitap/vue 0.8.0 → 0.10.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.
- package/dist/index.cjs +23 -293
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +22 -292
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26656 -57476
- package/dist/index.mjs.map +1 -1
- package/dist/vue.css +1 -1
- package/package.json +54 -53
- package/types/components/YiiEditor.vue.d.ts +23 -356
- package/types/components/common/OBlockPlaceholder.vue.d.ts +1 -1
- package/types/components/common/OBlockPopover.vue.d.ts +2 -456
- package/types/components/common/OBlockToolbar.vue.d.ts +2 -479
- package/types/components/common/OCommandBtn.vue.d.ts +2 -98
- package/types/components/common/OCommonBtn.vue.d.ts +2 -107
- package/types/components/common/OContextMenu.vue.d.ts +2 -416
- package/types/components/common/OMenubarBtn.vue.d.ts +2 -90
- package/types/components/common/OMetaInput.vue.d.ts +2 -82
- package/types/components/common/ONodeView.vue.d.ts +2 -109
- package/types/components/menus/OMainMenu.vue.d.ts +2 -29
- package/types/components/ui/OBtn.vue.d.ts +2 -61
- package/types/components/ui/OBtnGroup.vue.d.ts +2 -47
- package/types/components/ui/ODialog.vue.d.ts +2 -34
- package/types/components/ui/OInput.vue.d.ts +3 -62
- package/types/components/ui/OList.vue.d.ts +2 -25
- package/types/components/ui/OListItem.vue.d.ts +2 -16
- package/types/components/ui/OPopover.vue.d.ts +6 -120
- package/types/components/ui/OTextarea.vue.d.ts +3 -71
- package/types/components/ui/OTooltip.vue.d.ts +3 -58
- package/types/extensions/char-command/slash/view.vue.d.ts +2 -0
- package/types/extensions/index.d.ts +3 -3
- package/types/extensions/side-menu/side-menu-plugin.d.ts +3 -2
- package/types/extensions/side-menu/utils.d.ts +3 -3
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.
|
|
4
|
+
"version": "0.10.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Yiitap",
|
|
@@ -29,70 +29,71 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@floating-ui/dom": "^1.7.4",
|
|
31
31
|
"@mermaid-js/layout-elk": "^0.2.0",
|
|
32
|
-
"@tiptap/core": "^3.7.2",
|
|
33
|
-
"@tiptap/extension-blockquote": "^3.7.2",
|
|
34
|
-
"@tiptap/extension-bubble-menu": "^3.7.2",
|
|
35
|
-
"@tiptap/extension-code-block-lowlight": "^3.7.2",
|
|
36
|
-
"@tiptap/extension-details": "^3.7.2",
|
|
37
|
-
"@tiptap/extension-document": "^3.7.2",
|
|
38
|
-
"@tiptap/extension-font-family": "^3.7.2",
|
|
39
|
-
"@tiptap/extension-heading": "^3.7.2",
|
|
40
|
-
"@tiptap/extension-highlight": "^3.7.2",
|
|
41
|
-
"@tiptap/extension-horizontal-rule": "^3.7.2",
|
|
42
|
-
"@tiptap/extension-image": "^3.7.2",
|
|
43
|
-
"@tiptap/extension-link": "^3.7.2",
|
|
44
|
-
"@tiptap/extension-list": "^3.7.2",
|
|
45
|
-
"@tiptap/extension-mathematics": "^3.7.2",
|
|
46
|
-
"@tiptap/extension-mention": "^3.7.2",
|
|
47
|
-
"@tiptap/extension-paragraph": "^3.7.2",
|
|
48
|
-
"@tiptap/extension-subscript": "^3.7.2",
|
|
49
|
-
"@tiptap/extension-superscript": "^3.7.2",
|
|
50
|
-
"@tiptap/extension-table": "^3.7.2",
|
|
51
|
-
"@tiptap/extension-text": "^3.7.2",
|
|
52
|
-
"@tiptap/extension-text-align": "^3.7.2",
|
|
53
|
-
"@tiptap/extension-text-style": "^3.7.2",
|
|
54
|
-
"@tiptap/extension-typography": "^3.7.2",
|
|
55
|
-
"@tiptap/extension-underline": "^3.7.2",
|
|
56
|
-
"@tiptap/extensions": "^3.7.2",
|
|
57
|
-
"@tiptap/markdown": "^3.7.2",
|
|
58
|
-
"@tiptap/pm": "^3.7.2",
|
|
59
|
-
"@tiptap/starter-kit": "^3.7.2",
|
|
60
|
-
"@tiptap/suggestion": "^3.7.2",
|
|
61
|
-
"@tiptap/vue-3": "^3.7.2",
|
|
62
32
|
"katex": "^0.16.25",
|
|
63
33
|
"lowlight": "^3.3.0",
|
|
64
34
|
"mermaid": "^11.12.0",
|
|
65
35
|
"tippy.js": "^6.3.7",
|
|
66
|
-
"uuid": "^10.0.0"
|
|
67
|
-
"@yiitap/core": "0.8.0",
|
|
68
|
-
"@yiitap/extension-char-command": "0.8.0",
|
|
69
|
-
"@yiitap/extension-callout": "0.8.0",
|
|
70
|
-
"@yiitap/extension-color-highlighter": "0.8.0",
|
|
71
|
-
"@yiitap/extension-image": "0.8.0",
|
|
72
|
-
"@yiitap/extension-focus": "0.8.0",
|
|
73
|
-
"@yiitap/extension-ai-block": "0.8.0",
|
|
74
|
-
"@yiitap/extension-inline-placeholder": "0.8.0",
|
|
75
|
-
"@yiitap/extension-placeholder": "0.8.0",
|
|
76
|
-
"@yiitap/extension-selection-decoration": "0.8.0",
|
|
77
|
-
"@yiitap/extension-table": "0.8.0",
|
|
78
|
-
"@yiitap/extension-shortcut": "0.8.0",
|
|
79
|
-
"@yiitap/extension-table-wrapper": "0.8.0",
|
|
80
|
-
"@yiitap/extension-trailing-node": "0.8.0",
|
|
81
|
-
"@yiitap/extension-unique-id": "0.8.0",
|
|
82
|
-
"@yiitap/extension-video": "0.8.0",
|
|
83
|
-
"@yiitap/vue": "0.8.0",
|
|
84
|
-
"@yiitap/util-emoji": "0.8.0"
|
|
36
|
+
"uuid": "^10.0.0"
|
|
85
37
|
},
|
|
86
38
|
"peerDependencies": {
|
|
87
|
-
"@tiptap/extension-emoji": "3.
|
|
88
|
-
"@tiptap/extension-mathematics": "3.
|
|
39
|
+
"@tiptap/extension-emoji": "^3.16.0",
|
|
40
|
+
"@tiptap/extension-mathematics": "^3.16.0",
|
|
41
|
+
"@tiptap/core": "^3.16.0",
|
|
42
|
+
"@tiptap/extension-blockquote": "^3.16.0",
|
|
43
|
+
"@tiptap/extension-bubble-menu": "^3.16.0",
|
|
44
|
+
"@tiptap/extension-code-block-lowlight": "^3.16.0",
|
|
45
|
+
"@tiptap/extension-collaboration": "^3.16.0",
|
|
46
|
+
"@tiptap/extension-collaboration-caret": "^3.16.0",
|
|
47
|
+
"@tiptap/extension-details": "^3.16.0",
|
|
48
|
+
"@tiptap/extension-document": "^3.16.0",
|
|
49
|
+
"@tiptap/extension-font-family": "^3.16.0",
|
|
50
|
+
"@tiptap/extension-heading": "^3.16.0",
|
|
51
|
+
"@tiptap/extension-highlight": "^3.16.0",
|
|
52
|
+
"@tiptap/extension-horizontal-rule": "^3.16.0",
|
|
53
|
+
"@tiptap/extension-image": "^3.16.0",
|
|
54
|
+
"@tiptap/extension-link": "^3.16.0",
|
|
55
|
+
"@tiptap/extension-list": "^3.16.0",
|
|
56
|
+
"@tiptap/extension-mention": "^3.16.0",
|
|
57
|
+
"@tiptap/extension-paragraph": "^3.16.0",
|
|
58
|
+
"@tiptap/extension-subscript": "^3.16.0",
|
|
59
|
+
"@tiptap/extension-superscript": "^3.16.0",
|
|
60
|
+
"@tiptap/extension-table": "^3.16.0",
|
|
61
|
+
"@tiptap/extension-text": "^3.16.0",
|
|
62
|
+
"@tiptap/extension-text-align": "^3.16.0",
|
|
63
|
+
"@tiptap/extension-text-style": "^3.16.0",
|
|
64
|
+
"@tiptap/extension-typography": "^3.16.0",
|
|
65
|
+
"@tiptap/extension-underline": "^3.16.0",
|
|
66
|
+
"@tiptap/extension-unique-id": "^3.16.0",
|
|
67
|
+
"@tiptap/extensions": "^3.16.0",
|
|
68
|
+
"@tiptap/markdown": "^3.16.0",
|
|
69
|
+
"@tiptap/pm": "^3.16.0",
|
|
70
|
+
"@tiptap/starter-kit": "^3.16.0",
|
|
71
|
+
"@tiptap/suggestion": "^3.16.0",
|
|
72
|
+
"@tiptap/vue-3": "^3.16.0",
|
|
89
73
|
"@types/uuid": "^10.0.0",
|
|
90
74
|
"@mermaid-js/layout-elk": "^0.2.0",
|
|
91
75
|
"katex": "^0.16.25",
|
|
92
76
|
"markdown-it": "^14.1.0",
|
|
93
77
|
"mermaid": "^11.12.0",
|
|
94
78
|
"openai": "^4.88.0",
|
|
95
|
-
"vue": "^3.3.8"
|
|
79
|
+
"vue": "^3.3.8",
|
|
80
|
+
"@yiitap/core": "0.10.0",
|
|
81
|
+
"@yiitap/extension-ai-block": "0.10.0",
|
|
82
|
+
"@yiitap/extension-callout": "0.10.0",
|
|
83
|
+
"@yiitap/extension-char-command": "0.10.0",
|
|
84
|
+
"@yiitap/extension-color-highlighter": "0.10.0",
|
|
85
|
+
"@yiitap/extension-focus": "0.10.0",
|
|
86
|
+
"@yiitap/extension-image": "0.10.0",
|
|
87
|
+
"@yiitap/extension-inline-placeholder": "0.10.0",
|
|
88
|
+
"@yiitap/extension-placeholder": "0.10.0",
|
|
89
|
+
"@yiitap/extension-selection-decoration": "0.10.0",
|
|
90
|
+
"@yiitap/extension-shortcut": "0.10.0",
|
|
91
|
+
"@yiitap/extension-table": "0.10.0",
|
|
92
|
+
"@yiitap/extension-table-wrapper": "0.10.0",
|
|
93
|
+
"@yiitap/extension-task-item": "0.10.0",
|
|
94
|
+
"@yiitap/extension-video": "0.10.0",
|
|
95
|
+
"@yiitap/util-emoji": "0.10.0",
|
|
96
|
+
"@yiitap/vue": "0.10.0"
|
|
96
97
|
},
|
|
97
98
|
"devDependencies": {
|
|
98
99
|
"rollup-plugin-visualizer": "^5.14.0",
|
|
@@ -1,43 +1,25 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
2
|
import type { FocusPosition } from '@tiptap/core';
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import OBubbleMenu from './menus/OBubbleMenu.vue';
|
|
6
|
-
import OFloatingMenu from './menus/OFloatingMenu.vue';
|
|
7
|
-
import OSideMenu from './menus/OSideMenu.vue';
|
|
3
|
+
import type { CollaborationOptions } from '@tiptap/extension-collaboration';
|
|
4
|
+
import type { CollaborationCaretOptions } from '@tiptap/extension-collaboration-caret';
|
|
8
5
|
import { Editor } from '@tiptap/core';
|
|
9
6
|
type SideMenuAddType = 'menu' | 'empty';
|
|
10
7
|
interface SideMenuConfig {
|
|
11
8
|
show: boolean;
|
|
12
9
|
add: SideMenuAddType;
|
|
13
10
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}>;
|
|
20
|
-
declare const bubbleMenuOptions: import("vue").ComputedRef<{
|
|
21
|
-
editor: import("@tiptap/vue-3").Editor;
|
|
22
|
-
menu: string[];
|
|
23
|
-
}>;
|
|
24
|
-
declare const floatingMenuOptions: import("vue").ComputedRef<{
|
|
25
|
-
editor: import("@tiptap/vue-3").Editor;
|
|
26
|
-
menu: string[];
|
|
27
|
-
}>;
|
|
28
|
-
declare const sideMenuOptions: import("vue").ComputedRef<{
|
|
29
|
-
editor: import("@tiptap/vue-3").Editor;
|
|
30
|
-
add: SideMenuAddType;
|
|
31
|
-
menu: any[];
|
|
32
|
-
}>;
|
|
33
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
11
|
+
interface CollabConfig {
|
|
12
|
+
enabled: boolean;
|
|
13
|
+
collaboration: CollaborationOptions;
|
|
14
|
+
collaborationCaret: CollaborationCaretOptions;
|
|
15
|
+
}
|
|
34
16
|
declare var __VLS_4: {}, __VLS_6: {};
|
|
35
|
-
type __VLS_Slots =
|
|
17
|
+
type __VLS_Slots = {} & {
|
|
36
18
|
'toolbar-left'?: (props: typeof __VLS_4) => any;
|
|
37
19
|
} & {
|
|
38
20
|
'toolbar-right'?: (props: typeof __VLS_6) => any;
|
|
39
|
-
}
|
|
40
|
-
declare const
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
41
23
|
/**
|
|
42
24
|
* Initial content. This can be HTML or JSON.
|
|
43
25
|
*/
|
|
@@ -177,335 +159,12 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
177
159
|
type: PropType<AiOption>;
|
|
178
160
|
default: () => void;
|
|
179
161
|
};
|
|
180
|
-
}>, {
|
|
181
|
-
EditorContent: typeof EditorContent;
|
|
182
|
-
OMainMenu: typeof OMainMenu;
|
|
183
|
-
OBubbleMenu: typeof OBubbleMenu;
|
|
184
|
-
OFloatingMenu: typeof OFloatingMenu;
|
|
185
|
-
OSideMenu: typeof OSideMenu;
|
|
186
|
-
darkModeAlt: typeof darkModeAlt;
|
|
187
|
-
editor: typeof editor;
|
|
188
|
-
mainMenuOptions: typeof mainMenuOptions;
|
|
189
|
-
bubbleMenuOptions: typeof bubbleMenuOptions;
|
|
190
|
-
floatingMenuOptions: typeof floatingMenuOptions;
|
|
191
|
-
sideMenuOptions: typeof sideMenuOptions;
|
|
192
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
193
|
-
update: (payload: {
|
|
194
|
-
json: Object;
|
|
195
|
-
html: string;
|
|
196
|
-
}) => any;
|
|
197
|
-
transaction: (payload: {
|
|
198
|
-
editor: Editor;
|
|
199
|
-
transaction: Object;
|
|
200
|
-
}) => any;
|
|
201
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
202
|
-
/**
|
|
203
|
-
* Initial content. This can be HTML or JSON.
|
|
204
|
-
*/
|
|
205
|
-
content: {
|
|
206
|
-
type: (ObjectConstructor | StringConstructor)[];
|
|
207
|
-
default: string;
|
|
208
|
-
};
|
|
209
|
-
/**
|
|
210
|
-
* Set first block as title.
|
|
211
|
-
*/
|
|
212
|
-
title: {
|
|
213
|
-
type: BooleanConstructor;
|
|
214
|
-
default: boolean;
|
|
215
|
-
};
|
|
216
|
-
/**
|
|
217
|
-
* Determines if users can write into the editor.
|
|
218
|
-
*/
|
|
219
|
-
editable: {
|
|
220
|
-
type: BooleanConstructor;
|
|
221
|
-
default: boolean;
|
|
222
|
-
};
|
|
223
|
-
/**
|
|
224
|
-
* Force the cursor to jump in the editor on initialization.
|
|
225
|
-
*/
|
|
226
|
-
autofocus: {
|
|
227
|
-
type: PropType<FocusPosition>;
|
|
228
|
-
default: boolean;
|
|
229
|
-
};
|
|
230
162
|
/**
|
|
231
|
-
*
|
|
163
|
+
* Collab config.
|
|
232
164
|
*/
|
|
233
|
-
|
|
234
|
-
type:
|
|
235
|
-
default:
|
|
236
|
-
};
|
|
237
|
-
/**
|
|
238
|
-
* By default, Yiitap is in light mode, you can set it to dark mode.
|
|
239
|
-
*/
|
|
240
|
-
darkMode: {
|
|
241
|
-
type: BooleanConstructor;
|
|
242
|
-
default: boolean;
|
|
243
|
-
};
|
|
244
|
-
/**
|
|
245
|
-
* Show main menu or not.
|
|
246
|
-
*/
|
|
247
|
-
showMainMenu: {
|
|
248
|
-
type: BooleanConstructor;
|
|
249
|
-
default: boolean;
|
|
250
|
-
};
|
|
251
|
-
/**
|
|
252
|
-
* Show bubble menu or not.
|
|
253
|
-
*/
|
|
254
|
-
showBubbleMenu: {
|
|
255
|
-
type: BooleanConstructor;
|
|
256
|
-
default: boolean;
|
|
257
|
-
};
|
|
258
|
-
/**
|
|
259
|
-
* Show floating menu or not.
|
|
260
|
-
*/
|
|
261
|
-
showFloatingMenu: {
|
|
262
|
-
type: BooleanConstructor;
|
|
263
|
-
default: boolean;
|
|
264
|
-
};
|
|
265
|
-
/**
|
|
266
|
-
* Side menu config
|
|
267
|
-
*/
|
|
268
|
-
sideMenu: {
|
|
269
|
-
type: PropType<SideMenuConfig>;
|
|
270
|
-
default: () => SideMenuConfig;
|
|
271
|
-
};
|
|
272
|
-
/**
|
|
273
|
-
* Show side node or not.
|
|
274
|
-
*/
|
|
275
|
-
showSideNode: {
|
|
276
|
-
type: BooleanConstructor;
|
|
277
|
-
default: boolean;
|
|
278
|
-
};
|
|
279
|
-
/**
|
|
280
|
-
* Configure the list of extensions you want to enable.
|
|
281
|
-
*
|
|
282
|
-
* By default, Yiitap enables
|
|
283
|
-
* <a href="https://github.com/yiitap/yiitap/blob/main/packages/vue/src/extensions/index.ts" target="_blank">BuiltinExtensions</a>.
|
|
284
|
-
*/
|
|
285
|
-
extensions: {
|
|
286
|
-
type: () => string[];
|
|
287
|
-
default: () => any[];
|
|
288
|
-
};
|
|
289
|
-
/**
|
|
290
|
-
* Configure the list of menu items you want to enable in main menu.
|
|
291
|
-
*
|
|
292
|
-
* By default, Yiitap uses
|
|
293
|
-
* <a href="https://github.com/yiitap/yiitap/blob/main/packages/vue/src/constants/menu.ts" target="_blank">DefaultMenu</a>.
|
|
294
|
-
*/
|
|
295
|
-
mainMenu: {
|
|
296
|
-
type: () => string[];
|
|
297
|
-
default: () => any[];
|
|
298
|
-
};
|
|
299
|
-
/**
|
|
300
|
-
* Configure the list of menu items you want to enable in table menu.
|
|
301
|
-
*
|
|
302
|
-
* By default, Yiitap uses
|
|
303
|
-
* <a href="https://github.com/yiitap/yiitap/blob/main/packages/vue/src/constants/menu.ts" target="_blank">TableMenu</a>.
|
|
304
|
-
*/
|
|
305
|
-
tableMenu: {
|
|
306
|
-
type: () => string[];
|
|
307
|
-
default: () => any[];
|
|
308
|
-
};
|
|
309
|
-
/**
|
|
310
|
-
* Configure the list of menu items you want to enable in bubble menu.
|
|
311
|
-
*
|
|
312
|
-
* By default, Yiitap uses
|
|
313
|
-
* <a href="https://github.com/yiitap/yiitap/blob/main/packages/vue/src/constants/menu.ts" target="_blank">DefaultBubble</a>.
|
|
314
|
-
*/
|
|
315
|
-
bubbleMenu: {
|
|
316
|
-
type: () => string[];
|
|
317
|
-
default: () => any[];
|
|
318
|
-
};
|
|
319
|
-
/**
|
|
320
|
-
* Configure the list of menu items you want to enable in floating menu.
|
|
321
|
-
*
|
|
322
|
-
* By default, Yiitap uses
|
|
323
|
-
* <a href="https://github.com/yiitap/yiitap/blob/main/packages/vue/src/constants/menu.ts" target="_blank">DefaultFloating</a>.
|
|
324
|
-
*/
|
|
325
|
-
floatingMenu: {
|
|
326
|
-
type: () => string[];
|
|
327
|
-
default: () => any[];
|
|
328
|
-
};
|
|
329
|
-
/**
|
|
330
|
-
* Set the page view of the editor.
|
|
331
|
-
*/
|
|
332
|
-
pageView: {
|
|
333
|
-
type: StringConstructor;
|
|
334
|
-
default: string;
|
|
335
|
-
validator: (value: string) => boolean;
|
|
336
|
-
};
|
|
337
|
-
aiOption: {
|
|
338
|
-
type: PropType<AiOption>;
|
|
339
|
-
default: () => void;
|
|
340
|
-
};
|
|
341
|
-
}>> & Readonly<{
|
|
342
|
-
onUpdate?: (payload: {
|
|
343
|
-
json: Object;
|
|
344
|
-
html: string;
|
|
345
|
-
}) => any;
|
|
346
|
-
onTransaction?: (payload: {
|
|
347
|
-
editor: Editor;
|
|
348
|
-
transaction: Object;
|
|
349
|
-
}) => any;
|
|
350
|
-
}>, {
|
|
351
|
-
locale: string;
|
|
352
|
-
content: string | Record<string, any>;
|
|
353
|
-
title: boolean;
|
|
354
|
-
extensions: string[];
|
|
355
|
-
autofocus: FocusPosition;
|
|
356
|
-
editable: boolean;
|
|
357
|
-
aiOption: AiOption;
|
|
358
|
-
darkMode: boolean;
|
|
359
|
-
bubbleMenu: string[];
|
|
360
|
-
floatingMenu: string[];
|
|
361
|
-
sideMenu: SideMenuConfig;
|
|
362
|
-
showMainMenu: boolean;
|
|
363
|
-
showBubbleMenu: boolean;
|
|
364
|
-
showFloatingMenu: boolean;
|
|
365
|
-
showSideNode: boolean;
|
|
366
|
-
mainMenu: string[];
|
|
367
|
-
tableMenu: string[];
|
|
368
|
-
pageView: string;
|
|
369
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
370
|
-
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
371
|
-
/**
|
|
372
|
-
* Initial content. This can be HTML or JSON.
|
|
373
|
-
*/
|
|
374
|
-
content: {
|
|
375
|
-
type: (ObjectConstructor | StringConstructor)[];
|
|
376
|
-
default: string;
|
|
377
|
-
};
|
|
378
|
-
/**
|
|
379
|
-
* Set first block as title.
|
|
380
|
-
*/
|
|
381
|
-
title: {
|
|
382
|
-
type: BooleanConstructor;
|
|
383
|
-
default: boolean;
|
|
384
|
-
};
|
|
385
|
-
/**
|
|
386
|
-
* Determines if users can write into the editor.
|
|
387
|
-
*/
|
|
388
|
-
editable: {
|
|
389
|
-
type: BooleanConstructor;
|
|
390
|
-
default: boolean;
|
|
391
|
-
};
|
|
392
|
-
/**
|
|
393
|
-
* Force the cursor to jump in the editor on initialization.
|
|
394
|
-
*/
|
|
395
|
-
autofocus: {
|
|
396
|
-
type: PropType<FocusPosition>;
|
|
397
|
-
default: boolean;
|
|
398
|
-
};
|
|
399
|
-
/**
|
|
400
|
-
* Set the locale of the editor
|
|
401
|
-
*/
|
|
402
|
-
locale: {
|
|
403
|
-
type: StringConstructor;
|
|
404
|
-
default: string;
|
|
405
|
-
};
|
|
406
|
-
/**
|
|
407
|
-
* By default, Yiitap is in light mode, you can set it to dark mode.
|
|
408
|
-
*/
|
|
409
|
-
darkMode: {
|
|
410
|
-
type: BooleanConstructor;
|
|
411
|
-
default: boolean;
|
|
412
|
-
};
|
|
413
|
-
/**
|
|
414
|
-
* Show main menu or not.
|
|
415
|
-
*/
|
|
416
|
-
showMainMenu: {
|
|
417
|
-
type: BooleanConstructor;
|
|
418
|
-
default: boolean;
|
|
419
|
-
};
|
|
420
|
-
/**
|
|
421
|
-
* Show bubble menu or not.
|
|
422
|
-
*/
|
|
423
|
-
showBubbleMenu: {
|
|
424
|
-
type: BooleanConstructor;
|
|
425
|
-
default: boolean;
|
|
426
|
-
};
|
|
427
|
-
/**
|
|
428
|
-
* Show floating menu or not.
|
|
429
|
-
*/
|
|
430
|
-
showFloatingMenu: {
|
|
431
|
-
type: BooleanConstructor;
|
|
432
|
-
default: boolean;
|
|
433
|
-
};
|
|
434
|
-
/**
|
|
435
|
-
* Side menu config
|
|
436
|
-
*/
|
|
437
|
-
sideMenu: {
|
|
438
|
-
type: PropType<SideMenuConfig>;
|
|
439
|
-
default: () => SideMenuConfig;
|
|
440
|
-
};
|
|
441
|
-
/**
|
|
442
|
-
* Show side node or not.
|
|
443
|
-
*/
|
|
444
|
-
showSideNode: {
|
|
445
|
-
type: BooleanConstructor;
|
|
446
|
-
default: boolean;
|
|
447
|
-
};
|
|
448
|
-
/**
|
|
449
|
-
* Configure the list of extensions you want to enable.
|
|
450
|
-
*
|
|
451
|
-
* By default, Yiitap enables
|
|
452
|
-
* <a href="https://github.com/yiitap/yiitap/blob/main/packages/vue/src/extensions/index.ts" target="_blank">BuiltinExtensions</a>.
|
|
453
|
-
*/
|
|
454
|
-
extensions: {
|
|
455
|
-
type: () => string[];
|
|
456
|
-
default: () => any[];
|
|
457
|
-
};
|
|
458
|
-
/**
|
|
459
|
-
* Configure the list of menu items you want to enable in main menu.
|
|
460
|
-
*
|
|
461
|
-
* By default, Yiitap uses
|
|
462
|
-
* <a href="https://github.com/yiitap/yiitap/blob/main/packages/vue/src/constants/menu.ts" target="_blank">DefaultMenu</a>.
|
|
463
|
-
*/
|
|
464
|
-
mainMenu: {
|
|
465
|
-
type: () => string[];
|
|
466
|
-
default: () => any[];
|
|
467
|
-
};
|
|
468
|
-
/**
|
|
469
|
-
* Configure the list of menu items you want to enable in table menu.
|
|
470
|
-
*
|
|
471
|
-
* By default, Yiitap uses
|
|
472
|
-
* <a href="https://github.com/yiitap/yiitap/blob/main/packages/vue/src/constants/menu.ts" target="_blank">TableMenu</a>.
|
|
473
|
-
*/
|
|
474
|
-
tableMenu: {
|
|
475
|
-
type: () => string[];
|
|
476
|
-
default: () => any[];
|
|
477
|
-
};
|
|
478
|
-
/**
|
|
479
|
-
* Configure the list of menu items you want to enable in bubble menu.
|
|
480
|
-
*
|
|
481
|
-
* By default, Yiitap uses
|
|
482
|
-
* <a href="https://github.com/yiitap/yiitap/blob/main/packages/vue/src/constants/menu.ts" target="_blank">DefaultBubble</a>.
|
|
483
|
-
*/
|
|
484
|
-
bubbleMenu: {
|
|
485
|
-
type: () => string[];
|
|
486
|
-
default: () => any[];
|
|
487
|
-
};
|
|
488
|
-
/**
|
|
489
|
-
* Configure the list of menu items you want to enable in floating menu.
|
|
490
|
-
*
|
|
491
|
-
* By default, Yiitap uses
|
|
492
|
-
* <a href="https://github.com/yiitap/yiitap/blob/main/packages/vue/src/constants/menu.ts" target="_blank">DefaultFloating</a>.
|
|
493
|
-
*/
|
|
494
|
-
floatingMenu: {
|
|
495
|
-
type: () => string[];
|
|
496
|
-
default: () => any[];
|
|
497
|
-
};
|
|
498
|
-
/**
|
|
499
|
-
* Set the page view of the editor.
|
|
500
|
-
*/
|
|
501
|
-
pageView: {
|
|
502
|
-
type: StringConstructor;
|
|
503
|
-
default: string;
|
|
504
|
-
validator: (value: string) => boolean;
|
|
505
|
-
};
|
|
506
|
-
aiOption: {
|
|
507
|
-
type: PropType<AiOption>;
|
|
508
|
-
default: () => void;
|
|
165
|
+
collab: {
|
|
166
|
+
type: PropType<CollabConfig>;
|
|
167
|
+
default: () => CollabConfig;
|
|
509
168
|
};
|
|
510
169
|
}>, {
|
|
511
170
|
/**
|
|
@@ -669,6 +328,13 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
669
328
|
type: PropType<AiOption>;
|
|
670
329
|
default: () => void;
|
|
671
330
|
};
|
|
331
|
+
/**
|
|
332
|
+
* Collab config.
|
|
333
|
+
*/
|
|
334
|
+
collab: {
|
|
335
|
+
type: PropType<CollabConfig>;
|
|
336
|
+
default: () => CollabConfig;
|
|
337
|
+
};
|
|
672
338
|
}>> & Readonly<{
|
|
673
339
|
onUpdate?: (payload: {
|
|
674
340
|
json: Object;
|
|
@@ -681,6 +347,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
681
347
|
}>, {
|
|
682
348
|
locale: string;
|
|
683
349
|
content: string | Record<string, any>;
|
|
350
|
+
floatingMenu: string[];
|
|
684
351
|
title: boolean;
|
|
685
352
|
extensions: string[];
|
|
686
353
|
autofocus: FocusPosition;
|
|
@@ -688,7 +355,6 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
688
355
|
aiOption: AiOption;
|
|
689
356
|
darkMode: boolean;
|
|
690
357
|
bubbleMenu: string[];
|
|
691
|
-
floatingMenu: string[];
|
|
692
358
|
sideMenu: SideMenuConfig;
|
|
693
359
|
showMainMenu: boolean;
|
|
694
360
|
showBubbleMenu: boolean;
|
|
@@ -697,6 +363,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
697
363
|
mainMenu: string[];
|
|
698
364
|
tableMenu: string[];
|
|
699
365
|
pageView: string;
|
|
366
|
+
collab: CollabConfig;
|
|
700
367
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
701
368
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
702
369
|
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
|
-
icon: string;
|
|
21
20
|
placeholder: string;
|
|
21
|
+
icon: string;
|
|
22
22
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
23
23
|
export default _default;
|