@yiitap/vue 0.16.2 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +15 -284
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +15 -284
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13024 -54396
- package/dist/index.mjs.map +1 -1
- package/dist/vue.css +1 -1
- package/package.json +29 -29
- package/types/components/common/OBlockPopover.vue.d.ts +1 -1
- package/types/components/common/OToast.d.ts +3 -0
- package/types/components/index.d.ts +0 -1
- package/types/components/ui/OPopover.new.vue.d.ts +112 -0
- package/types/components/ui/OTooltip.new.vue.d.ts +63 -0
- package/types/utils/convert.d.ts +1 -0
- package/types/components/common/OFloatingToast.d.ts +0 -13
- package/types/components/ui/OTooltip.d.ts +0 -16
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.17.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Yiitap",
|
|
@@ -28,7 +28,13 @@
|
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@floating-ui/dom": "^1.7.4",
|
|
31
|
+
"tippy.js": "^6.3.7",
|
|
32
|
+
"uuid": "^10.0.0"
|
|
33
|
+
},
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"@mermaid-js/layout-elk": "^0.2.0",
|
|
31
36
|
"@tiptap/core": "^3.20.0",
|
|
37
|
+
"@tiptap/extension-audio": "^3.20.0",
|
|
32
38
|
"@tiptap/extension-bubble-menu": "^3.20.0",
|
|
33
39
|
"@tiptap/extension-code-block-lowlight": "^3.20.0",
|
|
34
40
|
"@tiptap/extension-collaboration": "^3.20.0",
|
|
@@ -42,6 +48,7 @@
|
|
|
42
48
|
"@tiptap/extension-image": "^3.20.0",
|
|
43
49
|
"@tiptap/extension-link": "^3.20.0",
|
|
44
50
|
"@tiptap/extension-list": "^3.20.0",
|
|
51
|
+
"@tiptap/extension-mathematics": "^3.20.0",
|
|
45
52
|
"@tiptap/extension-mention": "^3.20.0",
|
|
46
53
|
"@tiptap/extension-paragraph": "^3.20.0",
|
|
47
54
|
"@tiptap/extension-subscript": "^3.20.0",
|
|
@@ -54,44 +61,37 @@
|
|
|
54
61
|
"@tiptap/extension-underline": "^3.20.0",
|
|
55
62
|
"@tiptap/extension-unique-id": "^3.20.0",
|
|
56
63
|
"@tiptap/extensions": "^3.20.0",
|
|
64
|
+
"@tiptap/markdown": "^3.20.0",
|
|
57
65
|
"@tiptap/pm": "^3.20.0",
|
|
58
66
|
"@tiptap/starter-kit": "^3.20.0",
|
|
59
67
|
"@tiptap/suggestion": "^3.20.0",
|
|
60
68
|
"@tiptap/vue-3": "^3.20.0",
|
|
61
|
-
"tippy.js": "^6.3.7",
|
|
62
|
-
"uuid": "^10.0.0",
|
|
63
|
-
"@yiitap/core": "0.16.2",
|
|
64
|
-
"@yiitap/extension-ai-block": "0.16.2",
|
|
65
|
-
"@yiitap/extension-blockquote": "0.16.2",
|
|
66
|
-
"@yiitap/extension-callout": "0.16.2",
|
|
67
|
-
"@yiitap/extension-char-command": "0.16.2",
|
|
68
|
-
"@yiitap/extension-color-highlighter": "0.16.2",
|
|
69
|
-
"@yiitap/extension-inline-placeholder": "0.16.2",
|
|
70
|
-
"@yiitap/extension-image": "0.16.2",
|
|
71
|
-
"@yiitap/extension-model-viewer": "0.16.2",
|
|
72
|
-
"@yiitap/extension-multi-column": "0.16.2",
|
|
73
|
-
"@yiitap/extension-placeholder": "0.16.2",
|
|
74
|
-
"@yiitap/extension-selection-decoration": "0.16.2",
|
|
75
|
-
"@yiitap/extension-shortcut": "0.16.2",
|
|
76
|
-
"@yiitap/extension-table": "0.16.2",
|
|
77
|
-
"@yiitap/extension-table-wrapper": "0.16.2",
|
|
78
|
-
"@yiitap/extension-task-item": "0.16.2",
|
|
79
|
-
"@yiitap/extension-video": "0.16.2"
|
|
80
|
-
},
|
|
81
|
-
"peerDependencies": {
|
|
82
|
-
"@mermaid-js/layout-elk": "^0.2.0",
|
|
83
|
-
"@tiptap/extension-audio": "^3.20.0",
|
|
84
|
-
"@tiptap/extension-mathematics": "^3.20.0",
|
|
85
|
-
"@tiptap/markdown": "^3.20.0",
|
|
86
69
|
"@types/uuid": "^10.0.0",
|
|
87
70
|
"katex": "^0.16.25",
|
|
88
71
|
"lowlight": "^3.3.0",
|
|
89
72
|
"markdown-it": "^14.1.1",
|
|
90
73
|
"mermaid": "^11.12.0",
|
|
91
74
|
"vue": "^3.3.8",
|
|
92
|
-
"@yiitap/
|
|
93
|
-
"@yiitap/
|
|
94
|
-
"@yiitap/
|
|
75
|
+
"@yiitap/core": "0.17.0",
|
|
76
|
+
"@yiitap/extension-ai-block": "0.17.0",
|
|
77
|
+
"@yiitap/extension-blockquote": "0.17.0",
|
|
78
|
+
"@yiitap/extension-callout": "0.17.0",
|
|
79
|
+
"@yiitap/extension-char-command": "0.17.0",
|
|
80
|
+
"@yiitap/extension-color-highlighter": "0.17.0",
|
|
81
|
+
"@yiitap/extension-image": "0.17.0",
|
|
82
|
+
"@yiitap/extension-inline-placeholder": "0.17.0",
|
|
83
|
+
"@yiitap/extension-model-viewer": "0.17.0",
|
|
84
|
+
"@yiitap/extension-multi-column": "0.17.0",
|
|
85
|
+
"@yiitap/extension-placeholder": "0.17.0",
|
|
86
|
+
"@yiitap/extension-selection-decoration": "0.17.0",
|
|
87
|
+
"@yiitap/extension-shortcut": "0.17.0",
|
|
88
|
+
"@yiitap/extension-table": "0.17.0",
|
|
89
|
+
"@yiitap/extension-table-wrapper": "0.17.0",
|
|
90
|
+
"@yiitap/extension-task-item": "0.17.0",
|
|
91
|
+
"@yiitap/extension-video": "0.17.0",
|
|
92
|
+
"@yiitap/i18n": "0.17.0",
|
|
93
|
+
"@yiitap/util-emoji": "0.17.0",
|
|
94
|
+
"@yiitap/vue": "0.17.0"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
97
|
"rollup-plugin-visualizer": "^5.14.0",
|
|
@@ -84,8 +84,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
84
84
|
offset: [number, number];
|
|
85
85
|
contentClass: string;
|
|
86
86
|
tippyClass: string;
|
|
87
|
-
showArrow: boolean;
|
|
88
87
|
modelValue: boolean;
|
|
88
|
+
showArrow: boolean;
|
|
89
89
|
hideClickOutside: boolean;
|
|
90
90
|
readonly: boolean;
|
|
91
91
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
declare class ToastManager {
|
|
2
2
|
private instances;
|
|
3
|
+
private readonly gap;
|
|
4
|
+
private readonly topMargin;
|
|
3
5
|
error(message: string, duration?: number): void;
|
|
4
6
|
info(message: string, duration?: number): void;
|
|
5
7
|
success(message: string, duration?: number): void;
|
|
6
8
|
warning(message: string, duration?: number): void;
|
|
7
9
|
show(message: string, type?: 'success' | 'error' | 'info' | 'warning', duration?: number): void;
|
|
8
10
|
private repositionToasts;
|
|
11
|
+
private destroy;
|
|
9
12
|
}
|
|
10
13
|
export declare const OToast: ToastManager;
|
|
11
14
|
export {};
|
|
@@ -25,7 +25,6 @@ export { default as OTableCellHandler } from './common/OTableCellHandler.vue';
|
|
|
25
25
|
export { default as OTableGrid } from './common/OTableGrid.vue';
|
|
26
26
|
export { default as OTableCellBackground } from './common/OTableCellBackground.vue';
|
|
27
27
|
export { default as OTextColorBoard } from './common/OTextColorBoard.vue';
|
|
28
|
-
export { OFloatingToast } from './common/OFloatingToast';
|
|
29
28
|
export { OToast } from './common/OToast';
|
|
30
29
|
export { default as ONodeView } from './common/ONodeView.vue';
|
|
31
30
|
export { default as AddNode } from './common/o-side-menu/AddNode.vue';
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import { type Placement } from '@floating-ui/dom';
|
|
3
|
+
declare var __VLS_1: {}, __VLS_11: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
trigger?: (props: typeof __VLS_1) => any;
|
|
6
|
+
} & {
|
|
7
|
+
default?: (props: typeof __VLS_11) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
10
|
+
disable: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
arrow: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
offset: {
|
|
19
|
+
type: PropType<number | {
|
|
20
|
+
mainAxis?: number;
|
|
21
|
+
crossAxis?: number;
|
|
22
|
+
}>;
|
|
23
|
+
default: number;
|
|
24
|
+
};
|
|
25
|
+
placement: {
|
|
26
|
+
type: PropType<Placement>;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
trigger: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
contentClass: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
event: {
|
|
38
|
+
type: PropType<{
|
|
39
|
+
clientX: number;
|
|
40
|
+
clientY: number;
|
|
41
|
+
} | null>;
|
|
42
|
+
default: any;
|
|
43
|
+
};
|
|
44
|
+
hideDelay: {
|
|
45
|
+
type: NumberConstructor;
|
|
46
|
+
default: number;
|
|
47
|
+
};
|
|
48
|
+
}>, {
|
|
49
|
+
setShow: (show: boolean, immediate?: boolean) => void;
|
|
50
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
51
|
+
"update:show": (...args: any[]) => void;
|
|
52
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
53
|
+
disable: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
arrow: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
offset: {
|
|
62
|
+
type: PropType<number | {
|
|
63
|
+
mainAxis?: number;
|
|
64
|
+
crossAxis?: number;
|
|
65
|
+
}>;
|
|
66
|
+
default: number;
|
|
67
|
+
};
|
|
68
|
+
placement: {
|
|
69
|
+
type: PropType<Placement>;
|
|
70
|
+
default: string;
|
|
71
|
+
};
|
|
72
|
+
trigger: {
|
|
73
|
+
type: StringConstructor;
|
|
74
|
+
default: string;
|
|
75
|
+
};
|
|
76
|
+
contentClass: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
event: {
|
|
81
|
+
type: PropType<{
|
|
82
|
+
clientX: number;
|
|
83
|
+
clientY: number;
|
|
84
|
+
} | null>;
|
|
85
|
+
default: any;
|
|
86
|
+
};
|
|
87
|
+
hideDelay: {
|
|
88
|
+
type: NumberConstructor;
|
|
89
|
+
default: number;
|
|
90
|
+
};
|
|
91
|
+
}>> & Readonly<{
|
|
92
|
+
"onUpdate:show"?: (...args: any[]) => any;
|
|
93
|
+
}>, {
|
|
94
|
+
placement: Placement;
|
|
95
|
+
trigger: string;
|
|
96
|
+
offset: number;
|
|
97
|
+
arrow: boolean;
|
|
98
|
+
contentClass: string;
|
|
99
|
+
disable: boolean;
|
|
100
|
+
event: {
|
|
101
|
+
clientX: number;
|
|
102
|
+
clientY: number;
|
|
103
|
+
};
|
|
104
|
+
hideDelay: number;
|
|
105
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
106
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
107
|
+
export default _default;
|
|
108
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
109
|
+
new (): {
|
|
110
|
+
$slots: S;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
trigger?: (props: typeof __VLS_1) => any;
|
|
5
|
+
} & {
|
|
6
|
+
default?: (props: typeof __VLS_3) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
9
|
+
placement: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
trigger: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
delay: {
|
|
18
|
+
type: NumberConstructor;
|
|
19
|
+
default: number;
|
|
20
|
+
};
|
|
21
|
+
duration: {
|
|
22
|
+
type: NumberConstructor;
|
|
23
|
+
default: number;
|
|
24
|
+
};
|
|
25
|
+
offset: {
|
|
26
|
+
type: PropType<number[]>;
|
|
27
|
+
default: () => number[];
|
|
28
|
+
};
|
|
29
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
|
+
placement: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
trigger: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
delay: {
|
|
39
|
+
type: NumberConstructor;
|
|
40
|
+
default: number;
|
|
41
|
+
};
|
|
42
|
+
duration: {
|
|
43
|
+
type: NumberConstructor;
|
|
44
|
+
default: number;
|
|
45
|
+
};
|
|
46
|
+
offset: {
|
|
47
|
+
type: PropType<number[]>;
|
|
48
|
+
default: () => number[];
|
|
49
|
+
};
|
|
50
|
+
}>> & Readonly<{}>, {
|
|
51
|
+
placement: string;
|
|
52
|
+
trigger: string;
|
|
53
|
+
delay: number;
|
|
54
|
+
duration: number;
|
|
55
|
+
offset: number[];
|
|
56
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
57
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
58
|
+
export default _default;
|
|
59
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
60
|
+
new (): {
|
|
61
|
+
$slots: S;
|
|
62
|
+
};
|
|
63
|
+
};
|
package/types/utils/convert.d.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import { Editor } from '@tiptap/core';
|
|
5
5
|
export declare const toJSON: (editor: Editor, html: string) => Record<string, any>;
|
|
6
6
|
export declare const htmlToJSON: (editor: Editor, html: string) => Record<string, any>;
|
|
7
|
+
export declare const htmlToJSON0: (editor: Editor, html: string) => Record<string, any>;
|
|
7
8
|
export declare const systemKeymap: () => {
|
|
8
9
|
mod: string;
|
|
9
10
|
alt: string;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
type ToastType = 'success' | 'error' | 'info' | 'warning';
|
|
2
|
-
declare class ToastManager {
|
|
3
|
-
private instances;
|
|
4
|
-
error(message: string, duration?: number): void;
|
|
5
|
-
info(message: string, duration?: number): void;
|
|
6
|
-
success(message: string, duration?: number): void;
|
|
7
|
-
warning(message: string, duration?: number): void;
|
|
8
|
-
show(message: string, type?: ToastType, duration?: number): void;
|
|
9
|
-
private hide;
|
|
10
|
-
private repositionToasts;
|
|
11
|
-
}
|
|
12
|
-
export declare const OFloatingToast: ToastManager;
|
|
13
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import 'tippy.js/animations/perspective.css';
|
|
2
|
-
export declare const OTooltip: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
-
placement: {
|
|
4
|
-
type: StringConstructor;
|
|
5
|
-
default: string;
|
|
6
|
-
};
|
|
7
|
-
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
-
placement: {
|
|
11
|
-
type: StringConstructor;
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
14
|
-
}>> & Readonly<{}>, {
|
|
15
|
-
placement: string;
|
|
16
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|