@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
|
@@ -1,79 +1,11 @@
|
|
|
1
|
-
import OIcon from './OIcon.vue';
|
|
2
|
-
declare const emit: (event: "blur" | "focus" | "update:modelValue", ...args: any[]) => void;
|
|
3
|
-
declare const input: import("vue").Ref<HTMLInputElement, HTMLInputElement>;
|
|
4
|
-
declare const value: import("vue").WritableComputedRef<string, string>;
|
|
5
1
|
declare function focus(): void;
|
|
6
2
|
declare function clear(): void;
|
|
7
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
8
3
|
declare var __VLS_1: {}, __VLS_3: {};
|
|
9
|
-
type __VLS_Slots =
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
10
5
|
prefix?: (props: typeof __VLS_1) => any;
|
|
11
6
|
} & {
|
|
12
7
|
suffix?: (props: typeof __VLS_3) => any;
|
|
13
|
-
}
|
|
14
|
-
declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
15
|
-
modelValue: {
|
|
16
|
-
type: StringConstructor;
|
|
17
|
-
default: string;
|
|
18
|
-
};
|
|
19
|
-
placeholder: {
|
|
20
|
-
type: StringConstructor;
|
|
21
|
-
default: string;
|
|
22
|
-
};
|
|
23
|
-
clearable: {
|
|
24
|
-
type: BooleanConstructor;
|
|
25
|
-
default: boolean;
|
|
26
|
-
};
|
|
27
|
-
type: {
|
|
28
|
-
type: StringConstructor;
|
|
29
|
-
default: string;
|
|
30
|
-
};
|
|
31
|
-
rows: {
|
|
32
|
-
type: NumberConstructor;
|
|
33
|
-
default: number;
|
|
34
|
-
};
|
|
35
|
-
}>, {
|
|
36
|
-
OIcon: typeof OIcon;
|
|
37
|
-
emit: typeof emit;
|
|
38
|
-
input: typeof input;
|
|
39
|
-
value: typeof value;
|
|
40
|
-
clear: typeof clear;
|
|
41
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
42
|
-
blur: (...args: any[]) => void;
|
|
43
|
-
focus: (...args: any[]) => void;
|
|
44
|
-
"update:modelValue": (...args: any[]) => void;
|
|
45
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
46
|
-
modelValue: {
|
|
47
|
-
type: StringConstructor;
|
|
48
|
-
default: string;
|
|
49
|
-
};
|
|
50
|
-
placeholder: {
|
|
51
|
-
type: StringConstructor;
|
|
52
|
-
default: string;
|
|
53
|
-
};
|
|
54
|
-
clearable: {
|
|
55
|
-
type: BooleanConstructor;
|
|
56
|
-
default: boolean;
|
|
57
|
-
};
|
|
58
|
-
type: {
|
|
59
|
-
type: StringConstructor;
|
|
60
|
-
default: string;
|
|
61
|
-
};
|
|
62
|
-
rows: {
|
|
63
|
-
type: NumberConstructor;
|
|
64
|
-
default: number;
|
|
65
|
-
};
|
|
66
|
-
}>> & Readonly<{
|
|
67
|
-
onBlur?: (...args: any[]) => any;
|
|
68
|
-
onFocus?: (...args: any[]) => any;
|
|
69
|
-
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
70
|
-
}>, {
|
|
71
|
-
type: string;
|
|
72
|
-
modelValue: string;
|
|
73
|
-
placeholder: string;
|
|
74
|
-
clearable: boolean;
|
|
75
|
-
rows: number;
|
|
76
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
};
|
|
77
9
|
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
78
10
|
modelValue: {
|
|
79
11
|
type: StringConstructor;
|
|
@@ -129,8 +61,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
129
61
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
130
62
|
}>, {
|
|
131
63
|
type: string;
|
|
132
|
-
modelValue: string;
|
|
133
64
|
placeholder: string;
|
|
65
|
+
modelValue: string;
|
|
134
66
|
clearable: boolean;
|
|
135
67
|
rows: number;
|
|
136
68
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,66 +1,11 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
2
|
import 'tippy.js/animations/perspective.css';
|
|
3
|
-
declare const triggerRef: import("vue").Ref<HTMLElement, HTMLElement>;
|
|
4
|
-
declare const contentRef: import("vue").Ref<HTMLElement, HTMLElement>;
|
|
5
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
6
3
|
declare var __VLS_1: {}, __VLS_3: {};
|
|
7
|
-
type __VLS_Slots =
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
8
5
|
trigger?: (props: typeof __VLS_1) => any;
|
|
9
6
|
} & {
|
|
10
7
|
default?: (props: typeof __VLS_3) => any;
|
|
11
|
-
}
|
|
12
|
-
declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
13
|
-
placement: {
|
|
14
|
-
type: StringConstructor;
|
|
15
|
-
default: string;
|
|
16
|
-
};
|
|
17
|
-
trigger: {
|
|
18
|
-
type: StringConstructor;
|
|
19
|
-
default: string;
|
|
20
|
-
};
|
|
21
|
-
delay: {
|
|
22
|
-
type: NumberConstructor;
|
|
23
|
-
default: number;
|
|
24
|
-
};
|
|
25
|
-
duration: {
|
|
26
|
-
type: NumberConstructor;
|
|
27
|
-
default: number;
|
|
28
|
-
};
|
|
29
|
-
offset: {
|
|
30
|
-
type: PropType<[number, number]>;
|
|
31
|
-
default: () => [number, number];
|
|
32
|
-
};
|
|
33
|
-
}>, {
|
|
34
|
-
triggerRef: typeof triggerRef;
|
|
35
|
-
contentRef: typeof contentRef;
|
|
36
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
37
|
-
placement: {
|
|
38
|
-
type: StringConstructor;
|
|
39
|
-
default: string;
|
|
40
|
-
};
|
|
41
|
-
trigger: {
|
|
42
|
-
type: StringConstructor;
|
|
43
|
-
default: string;
|
|
44
|
-
};
|
|
45
|
-
delay: {
|
|
46
|
-
type: NumberConstructor;
|
|
47
|
-
default: number;
|
|
48
|
-
};
|
|
49
|
-
duration: {
|
|
50
|
-
type: NumberConstructor;
|
|
51
|
-
default: number;
|
|
52
|
-
};
|
|
53
|
-
offset: {
|
|
54
|
-
type: PropType<[number, number]>;
|
|
55
|
-
default: () => [number, number];
|
|
56
|
-
};
|
|
57
|
-
}>> & Readonly<{}>, {
|
|
58
|
-
placement: string;
|
|
59
|
-
trigger: string;
|
|
60
|
-
delay: number;
|
|
61
|
-
duration: number;
|
|
62
|
-
offset: [number, number];
|
|
63
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
};
|
|
64
9
|
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
65
10
|
placement: {
|
|
66
11
|
type: StringConstructor;
|
|
@@ -105,10 +50,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
105
50
|
};
|
|
106
51
|
}>> & Readonly<{}>, {
|
|
107
52
|
placement: string;
|
|
53
|
+
offset: [number, number];
|
|
108
54
|
trigger: string;
|
|
109
55
|
delay: number;
|
|
110
56
|
duration: number;
|
|
111
|
-
offset: [number, number];
|
|
112
57
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
113
58
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
114
59
|
export default _default;
|
|
@@ -187,7 +187,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
187
187
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
188
188
|
$slots: {
|
|
189
189
|
prefix?: (props: {}) => any;
|
|
190
|
+
} & {
|
|
190
191
|
default?: (props: {}) => any;
|
|
192
|
+
} & {
|
|
191
193
|
suffix?: (props: {}) => any;
|
|
192
194
|
};
|
|
193
195
|
});
|
|
@@ -15,6 +15,7 @@ import Superscript from '@tiptap/extension-superscript';
|
|
|
15
15
|
import TextAlign from '@tiptap/extension-text-align';
|
|
16
16
|
import Typography from '@tiptap/extension-typography';
|
|
17
17
|
import Underline from '@tiptap/extension-underline';
|
|
18
|
+
import UniqueID from '@tiptap/extension-unique-id';
|
|
18
19
|
import OColorHighlighter from '@yiitap/extension-color-highlighter';
|
|
19
20
|
import OFocus from '@yiitap/extension-focus';
|
|
20
21
|
import OInlinePlaceholder from '@yiitap/extension-inline-placeholder';
|
|
@@ -22,8 +23,7 @@ import OPlaceholder from '@yiitap/extension-placeholder';
|
|
|
22
23
|
import OSelectionDecoration from '@yiitap/extension-selection-decoration';
|
|
23
24
|
import OShortcut from '@yiitap/extension-shortcut';
|
|
24
25
|
import OTable from '@yiitap/extension-table';
|
|
25
|
-
import
|
|
26
|
-
import OUniqueID from '@yiitap/extension-unique-id';
|
|
26
|
+
import OTaskItem from '@yiitap/extension-task-item';
|
|
27
27
|
import OCharCommand from '@yiitap/extension-char-command';
|
|
28
28
|
import { ColonCommand as OColonCommand, SlashCommand as OSlashCommand, SlashZhCommand as OSlashZhCommand } from '@yiitap/extension-char-command';
|
|
29
29
|
import OAiBlock from './ai-block';
|
|
@@ -48,4 +48,4 @@ export declare const DefaultExtensionNames: string[];
|
|
|
48
48
|
export declare const TiptapExtensionNames: string[];
|
|
49
49
|
export declare const YiitapExtensionNames: string[];
|
|
50
50
|
export declare const BuiltinExtensionNames: string[];
|
|
51
|
-
export { BackgroundColor, BlockMath, Color, Details, DetailsContent, DetailsSummary, Emoji, Focus, FontFamily, Highlight, Image, InlineMath, Link, Markdown, Mention, Subscript, Superscript, Table, TableHeader, TableCell, TableRow, TaskItem, TaskList, TextAlign, TextStyle, Typography, Underline, 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,
|
|
51
|
+
export { BackgroundColor, BlockMath, Color, Details, DetailsContent, DetailsSummary, Emoji, 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, };
|
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
* Plugin state example: https://github.com/remirror/remirror/blob/main/packages/remirror__extension-code-block/src/code-block-plugin.ts
|
|
6
6
|
*/
|
|
7
7
|
import type { Editor } from '@tiptap/core';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { Plugin, PluginKey } from '@tiptap/pm/state';
|
|
9
|
+
import type { EditorState } from '@tiptap/pm/state';
|
|
10
|
+
import type { EditorView } from '@tiptap/pm/view';
|
|
10
11
|
import type { Instance, Props } from 'tippy.js';
|
|
11
12
|
export declare const SideMenuPluginKey: PluginKey<any>;
|
|
12
13
|
export declare class SideMenuState {
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* @author YousefED@BlockNote
|
|
5
5
|
* see https://github.com/TypeCellOS/BlockNote/blob/main/packages/core/src/extensions/SideMenu/SideMenuPlugin.ts
|
|
6
6
|
*/
|
|
7
|
-
import { Editor } from '@tiptap/core';
|
|
8
|
-
import { EditorView } from '@tiptap/pm/view';
|
|
9
|
-
import { Node, NodeType } from '@tiptap/pm/model';
|
|
7
|
+
import type { Editor } from '@tiptap/core';
|
|
8
|
+
import type { EditorView } from '@tiptap/pm/view';
|
|
9
|
+
import type { Node, NodeType } from '@tiptap/pm/model';
|
|
10
10
|
import type { Selection } from '@tiptap/pm/state';
|
|
11
11
|
export declare function getNodeElementFromCoords(coords: {
|
|
12
12
|
left: number;
|