@yiitap/vue 0.16.2 → 0.16.3
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 +100 -105
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +100 -105
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5006 -5039
- package/dist/index.mjs.map +1 -1
- package/dist/vue.css +1 -1
- package/package.json +21 -21
- 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.16.
|
|
4
|
+
"version": "0.16.3",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Yiitap",
|
|
@@ -60,23 +60,23 @@
|
|
|
60
60
|
"@tiptap/vue-3": "^3.20.0",
|
|
61
61
|
"tippy.js": "^6.3.7",
|
|
62
62
|
"uuid": "^10.0.0",
|
|
63
|
-
"@yiitap/core": "0.16.
|
|
64
|
-
"@yiitap/extension-
|
|
65
|
-
"@yiitap/extension-
|
|
66
|
-
"@yiitap/extension-
|
|
67
|
-
"@yiitap/extension-char-command": "0.16.
|
|
68
|
-
"@yiitap/extension-color-highlighter": "0.16.
|
|
69
|
-
"@yiitap/extension-inline-placeholder": "0.16.
|
|
70
|
-
"@yiitap/extension-
|
|
71
|
-
"@yiitap/extension-
|
|
72
|
-
"@yiitap/extension-
|
|
73
|
-
"@yiitap/extension-
|
|
74
|
-
"@yiitap/extension-
|
|
75
|
-
"@yiitap/extension-
|
|
76
|
-
"@yiitap/extension-
|
|
77
|
-
"@yiitap/extension-table-wrapper": "0.16.
|
|
78
|
-
"@yiitap/extension-task-item": "0.16.
|
|
79
|
-
"@yiitap/extension-video": "0.16.
|
|
63
|
+
"@yiitap/core": "0.16.3",
|
|
64
|
+
"@yiitap/extension-blockquote": "0.16.3",
|
|
65
|
+
"@yiitap/extension-callout": "0.16.3",
|
|
66
|
+
"@yiitap/extension-ai-block": "0.16.3",
|
|
67
|
+
"@yiitap/extension-char-command": "0.16.3",
|
|
68
|
+
"@yiitap/extension-color-highlighter": "0.16.3",
|
|
69
|
+
"@yiitap/extension-inline-placeholder": "0.16.3",
|
|
70
|
+
"@yiitap/extension-model-viewer": "0.16.3",
|
|
71
|
+
"@yiitap/extension-multi-column": "0.16.3",
|
|
72
|
+
"@yiitap/extension-image": "0.16.3",
|
|
73
|
+
"@yiitap/extension-selection-decoration": "0.16.3",
|
|
74
|
+
"@yiitap/extension-shortcut": "0.16.3",
|
|
75
|
+
"@yiitap/extension-table": "0.16.3",
|
|
76
|
+
"@yiitap/extension-placeholder": "0.16.3",
|
|
77
|
+
"@yiitap/extension-table-wrapper": "0.16.3",
|
|
78
|
+
"@yiitap/extension-task-item": "0.16.3",
|
|
79
|
+
"@yiitap/extension-video": "0.16.3"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
82
|
"@mermaid-js/layout-elk": "^0.2.0",
|
|
@@ -89,9 +89,9 @@
|
|
|
89
89
|
"markdown-it": "^14.1.1",
|
|
90
90
|
"mermaid": "^11.12.0",
|
|
91
91
|
"vue": "^3.3.8",
|
|
92
|
-
"@yiitap/
|
|
93
|
-
"@yiitap/
|
|
94
|
-
"@yiitap/
|
|
92
|
+
"@yiitap/util-emoji": "0.16.3",
|
|
93
|
+
"@yiitap/vue": "0.16.3",
|
|
94
|
+
"@yiitap/i18n": "0.16.3"
|
|
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>;
|