@yiitap/vue 0.16.0 → 0.16.2
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 +104 -97
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +102 -95
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16278 -15987
- package/dist/index.mjs.map +1 -1
- package/dist/vue.css +1 -1
- package/package.json +21 -21
- package/types/components/YiiEditor.vue.d.ts +1 -1
- package/types/components/common/OTableCellHandler.vue.d.ts +112 -0
- package/types/components/index.d.ts +1 -0
- package/types/extensions/blockquote/index.d.ts +3 -5
- package/types/hooks/index.d.ts +1 -0
- package/types/hooks/useTable.d.ts +37 -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.16.
|
|
4
|
+
"version": "0.16.2",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Yiitap",
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@floating-ui/dom": "^1.7.4",
|
|
31
31
|
"@tiptap/core": "^3.20.0",
|
|
32
|
-
"@tiptap/extension-blockquote": "^3.20.0",
|
|
33
32
|
"@tiptap/extension-bubble-menu": "^3.20.0",
|
|
34
33
|
"@tiptap/extension-code-block-lowlight": "^3.20.0",
|
|
35
34
|
"@tiptap/extension-collaboration": "^3.20.0",
|
|
@@ -61,22 +60,23 @@
|
|
|
61
60
|
"@tiptap/vue-3": "^3.20.0",
|
|
62
61
|
"tippy.js": "^6.3.7",
|
|
63
62
|
"uuid": "^10.0.0",
|
|
64
|
-
"@yiitap/core": "0.16.
|
|
65
|
-
"@yiitap/extension-ai-block": "0.16.
|
|
66
|
-
"@yiitap/extension-
|
|
67
|
-
"@yiitap/extension-
|
|
68
|
-
"@yiitap/extension-
|
|
69
|
-
"@yiitap/extension-
|
|
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
|
|
78
|
-
"@yiitap/extension-
|
|
79
|
-
"@yiitap/extension-
|
|
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
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/i18n": "0.16.
|
|
93
|
-
"@yiitap/util-emoji": "0.16.
|
|
94
|
-
"@yiitap/vue": "0.16.
|
|
92
|
+
"@yiitap/i18n": "0.16.2",
|
|
93
|
+
"@yiitap/util-emoji": "0.16.2",
|
|
94
|
+
"@yiitap/vue": "0.16.2"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
97
|
"rollup-plugin-visualizer": "^5.14.0",
|
|
@@ -344,9 +344,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
344
344
|
}>, {
|
|
345
345
|
title: boolean;
|
|
346
346
|
locale: string;
|
|
347
|
-
darkMode: boolean;
|
|
348
347
|
content: string | Record<string, any>;
|
|
349
348
|
floatingMenu: string[];
|
|
349
|
+
darkMode: boolean;
|
|
350
350
|
autofocus: FocusPosition;
|
|
351
351
|
extensions: string[];
|
|
352
352
|
editable: boolean;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
declare var __VLS_9: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_9) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
7
|
+
modelValue: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
row: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
column: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
tooltip: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
placement: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
offset: {
|
|
28
|
+
type: PropType<[number, number]>;
|
|
29
|
+
default: () => [number, number];
|
|
30
|
+
};
|
|
31
|
+
tippyClass: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
contentClass: {
|
|
36
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
tooltipPlacement: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
tooltipOffset: {
|
|
44
|
+
type: PropType<[number, number]>;
|
|
45
|
+
default: () => [number, number];
|
|
46
|
+
};
|
|
47
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
48
|
+
"update:modelValue": (...args: any[]) => void;
|
|
49
|
+
add: (...args: any[]) => void;
|
|
50
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
51
|
+
modelValue: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
row: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
column: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
tooltip: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
placement: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
offset: {
|
|
72
|
+
type: PropType<[number, number]>;
|
|
73
|
+
default: () => [number, number];
|
|
74
|
+
};
|
|
75
|
+
tippyClass: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
contentClass: {
|
|
80
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
81
|
+
default: string;
|
|
82
|
+
};
|
|
83
|
+
tooltipPlacement: {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
default: string;
|
|
86
|
+
};
|
|
87
|
+
tooltipOffset: {
|
|
88
|
+
type: PropType<[number, number]>;
|
|
89
|
+
default: () => [number, number];
|
|
90
|
+
};
|
|
91
|
+
}>> & Readonly<{
|
|
92
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
93
|
+
onAdd?: (...args: any[]) => any;
|
|
94
|
+
}>, {
|
|
95
|
+
placement: string;
|
|
96
|
+
offset: [number, number];
|
|
97
|
+
tooltip: string;
|
|
98
|
+
contentClass: string | Record<string, any>;
|
|
99
|
+
tippyClass: string;
|
|
100
|
+
modelValue: boolean;
|
|
101
|
+
column: boolean;
|
|
102
|
+
row: boolean;
|
|
103
|
+
tooltipPlacement: string;
|
|
104
|
+
tooltipOffset: [number, 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
|
+
};
|
|
@@ -21,6 +21,7 @@ export { default as OLanguageDropdown } from './common/OLanguageDropdown.vue';
|
|
|
21
21
|
export { default as OMediaInput } from './common/OMediaInput.vue';
|
|
22
22
|
export { default as OMetaInput } from './common/OMetaInput.vue';
|
|
23
23
|
export { default as OMenubarBtn } from './common/OMenubarBtn.vue';
|
|
24
|
+
export { default as OTableCellHandler } from './common/OTableCellHandler.vue';
|
|
24
25
|
export { default as OTableGrid } from './common/OTableGrid.vue';
|
|
25
26
|
export { default as OTableCellBackground } from './common/OTableCellBackground.vue';
|
|
26
27
|
export { default as OTextColorBoard } from './common/OTextColorBoard.vue';
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import type
|
|
2
|
-
export
|
|
3
|
-
triggerCharacters: string[];
|
|
4
|
-
}
|
|
5
|
-
declare const OBlockquote: import("@tiptap/core").Node<OBlockquoteOptions, any>;
|
|
1
|
+
import { type BlockquoteOptions as OBlockquoteOptions } from '@yiitap/extension-blockquote';
|
|
2
|
+
export declare const OBlockquote: import("@tiptap/core").Node<OBlockquoteOptions, any>;
|
|
6
3
|
export default OBlockquote;
|
|
4
|
+
export type { OBlockquoteOptions };
|
package/types/hooks/index.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ export { default as useAi } from './useAi';
|
|
|
2
2
|
export { default as useCommon } from './useCommon';
|
|
3
3
|
export { default as useNodeView } from './useNodeView';
|
|
4
4
|
export { default as useI18n } from './useI18n';
|
|
5
|
+
export { default as useTable } from './useTable';
|
|
5
6
|
export { default as useTheme } from './useTheme';
|
|
6
7
|
export { default as useTiptap } from './useTiptap';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export default function (): {
|
|
2
|
+
showColPopover: import("vue").Ref<boolean, boolean>;
|
|
3
|
+
showRowPopover: import("vue").Ref<boolean, boolean>;
|
|
4
|
+
columnActions: import("vue").ComputedRef<({
|
|
5
|
+
label: any;
|
|
6
|
+
value: string;
|
|
7
|
+
icon: string;
|
|
8
|
+
class?: undefined;
|
|
9
|
+
} | {
|
|
10
|
+
label: any;
|
|
11
|
+
value: string;
|
|
12
|
+
icon: string;
|
|
13
|
+
class: string;
|
|
14
|
+
})[]>;
|
|
15
|
+
rowActions: import("vue").ComputedRef<({
|
|
16
|
+
label: any;
|
|
17
|
+
value: string;
|
|
18
|
+
icon: string;
|
|
19
|
+
class?: undefined;
|
|
20
|
+
} | {
|
|
21
|
+
label: any;
|
|
22
|
+
value: string;
|
|
23
|
+
icon: string;
|
|
24
|
+
class: string;
|
|
25
|
+
})[]>;
|
|
26
|
+
isEditable: {
|
|
27
|
+
value: boolean;
|
|
28
|
+
};
|
|
29
|
+
cellInfo: import("vue").ComputedRef<{
|
|
30
|
+
rowIndex: number;
|
|
31
|
+
colIndex: number;
|
|
32
|
+
}>;
|
|
33
|
+
initProps: (value: any) => void;
|
|
34
|
+
selectColumn: () => void;
|
|
35
|
+
selectRow: () => void;
|
|
36
|
+
runCommand: (command: string, options?: Indexable) => void;
|
|
37
|
+
};
|