@halo-dev/richtext-editor 2.18.0 → 2.20.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/components/Editor.vue.d.ts +16 -10
- package/dist/components/EditorBubbleMenu.vue.d.ts +3 -4
- package/dist/components/EditorHeader.vue.d.ts +3 -4
- package/dist/components/block/BlockActionButton.vue.d.ts +17 -33
- package/dist/components/block/BlockActionInput.vue.d.ts +11 -34
- package/dist/components/block/BlockActionSeparator.vue.d.ts +1 -1
- package/dist/components/block/BlockCard.vue.d.ts +14 -29
- package/dist/components/bubble/BubbleItem.vue.d.ts +24 -56
- package/dist/components/bubble/BubbleMenu.vue.d.ts +33 -40
- package/dist/components/bubble/BubbleMenuPlugin.d.ts +0 -1
- package/dist/components/common/ColorPickerDropdown.vue.d.ts +19 -33
- package/dist/components/icon/MdiDeleteForeverOutline.vue.d.ts +1 -1
- package/dist/components/toolbar/ToolbarItem.vue.d.ts +19 -51
- package/dist/components/toolbar/ToolbarSubItem.vue.d.ts +16 -46
- package/dist/components/toolbox/ToolboxItem.vue.d.ts +15 -45
- package/dist/dev/App.vue.d.ts +2 -0
- package/dist/extensions/audio/AudioView.vue.d.ts +2 -31
- package/dist/extensions/audio/BubbleItemAudioLink.vue.d.ts +15 -25
- package/dist/extensions/audio/index.d.ts +0 -1
- package/dist/extensions/blockquote/index.d.ts +1 -2
- package/dist/extensions/bold/index.d.ts +1 -2
- package/dist/extensions/bullet-list/index.d.ts +1 -2
- package/dist/extensions/clear-format/index.d.ts +0 -1
- package/dist/extensions/code/index.d.ts +1 -2
- package/dist/extensions/code-block/CodeBlockSelect.vue.d.ts +25 -0
- package/dist/extensions/code-block/CodeBlockViewRenderer.vue.d.ts +2 -31
- package/dist/extensions/code-block/code-block.d.ts +57 -7
- package/dist/extensions/code-block/index.d.ts +1 -1
- package/dist/extensions/color/ColorBubbleItem.vue.d.ts +15 -25
- package/dist/extensions/color/ColorToolbarItem.vue.d.ts +18 -50
- package/dist/extensions/color/index.d.ts +1 -2
- package/dist/extensions/columns/column.d.ts +0 -1
- package/dist/extensions/columns/columns.d.ts +0 -1
- package/dist/extensions/commands-menu/CommandsView.vue.d.ts +4 -5
- package/dist/extensions/commands-menu/commands.d.ts +0 -1
- package/dist/extensions/draggable/index.d.ts +0 -1
- package/dist/extensions/font-size/index.d.ts +0 -1
- package/dist/extensions/format-brush/index.d.ts +0 -1
- package/dist/extensions/format-brush/util.d.ts +0 -1
- package/dist/extensions/gap-cursor/gap-cursor-selection.d.ts +0 -1
- package/dist/extensions/gap-cursor/index.d.ts +0 -1
- package/dist/extensions/heading/index.d.ts +1 -2
- package/dist/extensions/highlight/HighlightBubbleItem.vue.d.ts +15 -25
- package/dist/extensions/highlight/HighlightToolbarItem.vue.d.ts +18 -50
- package/dist/extensions/highlight/index.d.ts +3 -1
- package/dist/extensions/history/index.d.ts +1 -2
- package/dist/extensions/iframe/BubbleItemIframeLink.vue.d.ts +15 -25
- package/dist/extensions/iframe/BubbleItemIframeSize.vue.d.ts +3 -13
- package/dist/extensions/iframe/IframeView.vue.d.ts +2 -31
- package/dist/extensions/iframe/index.d.ts +0 -1
- package/dist/extensions/image/BubbleItemImageAlt.vue.d.ts +15 -25
- package/dist/extensions/image/BubbleItemImageHref.vue.d.ts +15 -25
- package/dist/extensions/image/BubbleItemImageLink.vue.d.ts +15 -25
- package/dist/extensions/image/BubbleItemImageSize.vue.d.ts +19 -29
- package/dist/extensions/image/ImageView.vue.d.ts +2 -31
- package/dist/extensions/image/index.d.ts +1 -2
- package/dist/extensions/indent/index.d.ts +0 -1
- package/dist/extensions/index.d.ts +4 -4
- package/dist/extensions/italic/index.d.ts +1 -2
- package/dist/extensions/link/LinkBubbleButton.vue.d.ts +15 -25
- package/dist/extensions/link/index.d.ts +1 -2
- package/dist/extensions/list-keymap/index.d.ts +0 -1
- package/dist/extensions/node-selected/index.d.ts +0 -1
- package/dist/extensions/ordered-list/index.d.ts +1 -2
- package/dist/extensions/paragraph/index.d.ts +1 -2
- package/dist/extensions/range-selection/index.d.ts +0 -1
- package/dist/extensions/range-selection/range-selection.d.ts +0 -1
- package/dist/extensions/search-and-replace/SearchAndReplace.vue.d.ts +4 -5
- package/dist/extensions/search-and-replace/SearchAndReplacePlugin.d.ts +0 -1
- package/dist/extensions/search-and-replace/index.d.ts +0 -1
- package/dist/extensions/strike/index.d.ts +1 -2
- package/dist/extensions/subscript/index.d.ts +1 -2
- package/dist/extensions/superscript/index.d.ts +1 -2
- package/dist/extensions/table/index.d.ts +3 -1
- package/dist/extensions/table/table-cell.d.ts +0 -1
- package/dist/extensions/table/table-header.d.ts +0 -1
- package/dist/extensions/table/util.d.ts +1 -2
- package/dist/extensions/task-list/index.d.ts +1 -2
- package/dist/extensions/text/index.d.ts +1 -2
- package/dist/extensions/text-align/index.d.ts +1 -2
- package/dist/extensions/text-style/index.d.ts +0 -1
- package/dist/extensions/trailing-node/index.d.ts +0 -1
- package/dist/extensions/underline/index.d.ts +1 -2
- package/dist/extensions/video/BubbleItemVideoLink.vue.d.ts +15 -25
- package/dist/extensions/video/BubbleItemVideoSize.vue.d.ts +19 -29
- package/dist/extensions/video/VideoView.vue.d.ts +2 -31
- package/dist/extensions/video/index.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/rich-text-editor.es.js +15778 -29939
- package/dist/rich-text-editor.iife.js +50 -54
- package/dist/style.css +1 -10
- package/dist/types/index.d.ts +0 -1
- package/dist/utils/delete-node.d.ts +0 -1
- package/dist/utils/isListActive.d.ts +0 -1
- package/dist/utils/isNodeEmpty.d.ts +0 -1
- package/package.json +39 -42
- package/dist/extensions/code-block/lowlight.d.ts +0 -16
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { Editor } from '../tiptap/vue-3';
|
|
2
2
|
import { CSSProperties, PropType } from 'vue';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
slots: {
|
|
5
|
+
content?(_: {}): any;
|
|
6
|
+
extra?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
13
|
editor: {
|
|
6
14
|
type: PropType<Editor>;
|
|
7
15
|
required: true;
|
|
@@ -12,11 +20,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
12
20
|
default: () => {};
|
|
13
21
|
};
|
|
14
22
|
locale: {
|
|
15
|
-
type: PropType<"
|
|
23
|
+
type: PropType<"zh-CN" | "en" | "zh" | "en-US">;
|
|
16
24
|
required: false;
|
|
17
25
|
default: string;
|
|
18
26
|
};
|
|
19
|
-
}
|
|
27
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
20
28
|
editor: {
|
|
21
29
|
type: PropType<Editor>;
|
|
22
30
|
required: true;
|
|
@@ -27,17 +35,15 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
27
35
|
default: () => {};
|
|
28
36
|
};
|
|
29
37
|
locale: {
|
|
30
|
-
type: PropType<"
|
|
38
|
+
type: PropType<"zh-CN" | "en" | "zh" | "en-US">;
|
|
31
39
|
required: false;
|
|
32
40
|
default: string;
|
|
33
41
|
};
|
|
34
|
-
}
|
|
42
|
+
}>> & Readonly<{}>, {
|
|
35
43
|
locale: "en" | "zh-CN" | "zh" | "en-US";
|
|
36
44
|
contentStyles: CSSProperties;
|
|
37
|
-
}, {}
|
|
38
|
-
|
|
39
|
-
extra?(_: {}): any;
|
|
40
|
-
}>;
|
|
45
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
46
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
41
47
|
export default _default;
|
|
42
48
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
43
49
|
new (): {
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { Editor } from '../tiptap/vue-3';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
|
-
|
|
4
|
-
declare const _default: import('vue').DefineComponent<{
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
4
|
editor: {
|
|
6
5
|
type: PropType<Editor>;
|
|
7
6
|
required: true;
|
|
8
7
|
};
|
|
9
|
-
}
|
|
8
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
10
9
|
editor: {
|
|
11
10
|
type: PropType<Editor>;
|
|
12
11
|
required: true;
|
|
13
12
|
};
|
|
14
|
-
}
|
|
13
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
15
14
|
export default _default;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { Editor } from '../tiptap/vue-3';
|
|
2
|
-
|
|
3
|
-
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
3
|
editor: {
|
|
5
4
|
type: typeof Editor;
|
|
6
5
|
required: true;
|
|
7
6
|
};
|
|
8
|
-
}
|
|
7
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
9
8
|
editor: {
|
|
10
9
|
type: typeof Editor;
|
|
11
10
|
required: true;
|
|
12
11
|
};
|
|
13
|
-
}
|
|
12
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
14
13
|
export default _default;
|
|
@@ -1,39 +1,23 @@
|
|
|
1
|
-
declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
slots: {
|
|
3
|
+
icon?(_: {}): any;
|
|
4
|
+
};
|
|
5
|
+
refs: {};
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
9
|
+
declare const __VLS_component: import('vue').DefineComponent<{
|
|
10
|
+
tooltip?: string;
|
|
11
|
+
selected?: boolean;
|
|
12
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
13
|
+
tooltip?: string;
|
|
14
|
+
selected?: boolean;
|
|
15
|
+
}> & Readonly<{}>, {
|
|
14
16
|
tooltip: string;
|
|
15
17
|
selected: boolean;
|
|
16
|
-
}, {}
|
|
17
|
-
|
|
18
|
-
}>;
|
|
18
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
19
20
|
export default _default;
|
|
20
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
21
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
22
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
23
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
24
|
-
} : {
|
|
25
|
-
type: import('vue').PropType<T[K]>;
|
|
26
|
-
required: true;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
type __VLS_WithDefaults<P, D> = {
|
|
30
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
31
|
-
default: D[K];
|
|
32
|
-
}> : P[K];
|
|
33
|
-
};
|
|
34
|
-
type __VLS_Prettify<T> = {
|
|
35
|
-
[K in keyof T]: T[K];
|
|
36
|
-
} & {};
|
|
37
21
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
38
22
|
new (): {
|
|
39
23
|
$slots: S;
|
|
@@ -1,38 +1,15 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<
|
|
2
|
-
tooltip?: string
|
|
3
|
-
modelValue?: string
|
|
4
|
-
}
|
|
5
|
-
modelValue: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
tooltip?: string | undefined;
|
|
11
|
-
modelValue?: string | undefined;
|
|
12
|
-
}>, {
|
|
13
|
-
modelValue: string;
|
|
14
|
-
tooltip: undefined;
|
|
15
|
-
}>>> & {
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
tooltip?: string;
|
|
3
|
+
modelValue?: string;
|
|
4
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
5
|
+
"update:modelValue": (value: string) => any;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
7
|
+
tooltip?: string;
|
|
8
|
+
modelValue?: string;
|
|
9
|
+
}> & Readonly<{
|
|
16
10
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
17
|
-
}
|
|
11
|
+
}>, {
|
|
18
12
|
tooltip: string;
|
|
19
13
|
modelValue: string;
|
|
20
|
-
}, {}>;
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
15
|
export default _default;
|
|
22
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
23
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
24
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
25
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
26
|
-
} : {
|
|
27
|
-
type: import('vue').PropType<T[K]>;
|
|
28
|
-
required: true;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
type __VLS_WithDefaults<P, D> = {
|
|
32
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
33
|
-
default: D[K];
|
|
34
|
-
}> : P[K];
|
|
35
|
-
};
|
|
36
|
-
type __VLS_Prettify<T> = {
|
|
37
|
-
[K in keyof T]: T[K];
|
|
38
|
-
} & {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
2
|
export default _default;
|
|
@@ -1,43 +1,28 @@
|
|
|
1
1
|
import { Editor } from '../../tiptap/vue-3';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
slots: {
|
|
4
|
+
content?(_: {}): any;
|
|
5
|
+
actions?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<{
|
|
4
12
|
selected: boolean;
|
|
5
13
|
editor: Editor;
|
|
6
14
|
getPos: () => number;
|
|
7
15
|
deleteNode: () => void;
|
|
8
|
-
}
|
|
9
|
-
selected: boolean;
|
|
10
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
16
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
11
17
|
selected: boolean;
|
|
12
18
|
editor: Editor;
|
|
13
19
|
getPos: () => number;
|
|
14
20
|
deleteNode: () => void;
|
|
15
|
-
}>, {
|
|
16
|
-
selected: boolean;
|
|
17
|
-
}>>>, {
|
|
21
|
+
}> & Readonly<{}>, {
|
|
18
22
|
selected: boolean;
|
|
19
|
-
}, {}
|
|
20
|
-
|
|
21
|
-
actions?(_: {}): any;
|
|
22
|
-
}>;
|
|
23
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
25
|
export default _default;
|
|
24
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
25
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
26
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
27
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
28
|
-
} : {
|
|
29
|
-
type: import('vue').PropType<T[K]>;
|
|
30
|
-
required: true;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
type __VLS_WithDefaults<P, D> = {
|
|
34
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
35
|
-
default: D[K];
|
|
36
|
-
}> : P[K];
|
|
37
|
-
};
|
|
38
|
-
type __VLS_Prettify<T> = {
|
|
39
|
-
[K in keyof T]: T[K];
|
|
40
|
-
} & {};
|
|
41
26
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
42
27
|
new (): {
|
|
43
28
|
$slots: S;
|
|
@@ -1,77 +1,45 @@
|
|
|
1
1
|
import { Editor } from '../../tiptap/vue-3';
|
|
2
2
|
import { Component } from 'vue';
|
|
3
|
-
|
|
4
|
-
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
declare const _default: import('vue').DefineComponent<{
|
|
5
4
|
editor: Editor;
|
|
6
|
-
isActive?: (
|
|
5
|
+
isActive?: ({ editor }: {
|
|
7
6
|
editor: Editor;
|
|
8
|
-
}) => boolean
|
|
9
|
-
visible?: (
|
|
7
|
+
}) => boolean;
|
|
8
|
+
visible?: ({ editor }: {
|
|
10
9
|
editor: Editor;
|
|
11
|
-
}) => boolean
|
|
12
|
-
icon?: Component
|
|
13
|
-
iconStyle?: string
|
|
14
|
-
title?: string
|
|
15
|
-
action?: (
|
|
10
|
+
}) => boolean;
|
|
11
|
+
icon?: Component;
|
|
12
|
+
iconStyle?: string;
|
|
13
|
+
title?: string;
|
|
14
|
+
action?: ({ editor }: {
|
|
16
15
|
editor: Editor;
|
|
17
|
-
}) => Component | void
|
|
18
|
-
}
|
|
19
|
-
isActive: () => false;
|
|
20
|
-
visible: () => true;
|
|
21
|
-
title: undefined;
|
|
22
|
-
action: undefined;
|
|
23
|
-
icon: undefined;
|
|
24
|
-
iconStyle: undefined;
|
|
25
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
16
|
+
}) => Component | void;
|
|
17
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
26
18
|
editor: Editor;
|
|
27
|
-
isActive?: (
|
|
19
|
+
isActive?: ({ editor }: {
|
|
28
20
|
editor: Editor;
|
|
29
|
-
}) => boolean
|
|
30
|
-
visible?: (
|
|
21
|
+
}) => boolean;
|
|
22
|
+
visible?: ({ editor }: {
|
|
31
23
|
editor: Editor;
|
|
32
|
-
}) => boolean
|
|
33
|
-
icon?: Component
|
|
34
|
-
iconStyle?: string
|
|
35
|
-
title?: string
|
|
36
|
-
action?: (
|
|
24
|
+
}) => boolean;
|
|
25
|
+
icon?: Component;
|
|
26
|
+
iconStyle?: string;
|
|
27
|
+
title?: string;
|
|
28
|
+
action?: ({ editor }: {
|
|
37
29
|
editor: Editor;
|
|
38
|
-
}) => Component | void
|
|
39
|
-
}>, {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
title: undefined;
|
|
43
|
-
action: undefined;
|
|
44
|
-
icon: undefined;
|
|
45
|
-
iconStyle: undefined;
|
|
46
|
-
}>>>, {
|
|
30
|
+
}) => Component | void;
|
|
31
|
+
}> & Readonly<{}>, {
|
|
32
|
+
title: string;
|
|
33
|
+
icon: Component;
|
|
47
34
|
isActive: ({ editor }: {
|
|
48
35
|
editor: Editor;
|
|
49
36
|
}) => boolean;
|
|
50
37
|
visible: ({ editor }: {
|
|
51
38
|
editor: Editor;
|
|
52
39
|
}) => boolean;
|
|
53
|
-
icon: Component;
|
|
54
40
|
iconStyle: string;
|
|
55
|
-
title: string;
|
|
56
41
|
action: ({ editor }: {
|
|
57
42
|
editor: Editor;
|
|
58
43
|
}) => Component | void;
|
|
59
|
-
}, {}>;
|
|
44
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
60
45
|
export default _default;
|
|
61
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
62
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
63
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
64
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
65
|
-
} : {
|
|
66
|
-
type: import('vue').PropType<T[K]>;
|
|
67
|
-
required: true;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
type __VLS_WithDefaults<P, D> = {
|
|
71
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
72
|
-
default: D[K];
|
|
73
|
-
}> : P[K];
|
|
74
|
-
};
|
|
75
|
-
type __VLS_Prettify<T> = {
|
|
76
|
-
[K in keyof T]: T[K];
|
|
77
|
-
} & {};
|
|
@@ -1,88 +1,81 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
|
|
3
|
-
declare
|
|
2
|
+
import { BubbleMenuPluginProps } from './BubbleMenuPlugin';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {
|
|
8
|
+
root: HTMLDivElement;
|
|
9
|
+
};
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
14
|
pluginKey: {
|
|
5
|
-
type: PropType<
|
|
15
|
+
type: PropType<BubbleMenuPluginProps["pluginKey"]>;
|
|
6
16
|
default: string;
|
|
7
17
|
};
|
|
8
18
|
editor: {
|
|
9
|
-
type: PropType<
|
|
19
|
+
type: PropType<BubbleMenuPluginProps["editor"]>;
|
|
10
20
|
required: true;
|
|
11
21
|
};
|
|
12
22
|
tippyOptions: {
|
|
13
|
-
type: PropType<
|
|
23
|
+
type: PropType<BubbleMenuPluginProps["tippyOptions"]>;
|
|
14
24
|
default: () => {};
|
|
15
25
|
};
|
|
16
26
|
shouldShow: {
|
|
17
|
-
type: PropType<
|
|
18
|
-
editor: import('@tiptap/vue-3').Editor;
|
|
19
|
-
state: import('../../tiptap').EditorState;
|
|
20
|
-
node?: HTMLElement | undefined;
|
|
21
|
-
view?: import('../../tiptap').EditorView | undefined;
|
|
22
|
-
oldState?: import('../../tiptap').EditorState | undefined;
|
|
23
|
-
from?: number | undefined;
|
|
24
|
-
to?: number | undefined;
|
|
25
|
-
}) => boolean>;
|
|
27
|
+
type: PropType<Exclude<Required<BubbleMenuPluginProps>["shouldShow"], null>>;
|
|
26
28
|
default: null;
|
|
27
29
|
};
|
|
28
30
|
getRenderContainer: {
|
|
29
|
-
type: PropType<
|
|
31
|
+
type: PropType<Exclude<Required<BubbleMenuPluginProps>["getRenderContainer"], null>>;
|
|
30
32
|
default: null;
|
|
31
33
|
};
|
|
32
34
|
defaultAnimation: {
|
|
33
|
-
type: PropType<
|
|
35
|
+
type: PropType<BubbleMenuPluginProps["defaultAnimation"]>;
|
|
34
36
|
default: boolean;
|
|
35
37
|
};
|
|
36
|
-
}
|
|
38
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
37
39
|
pluginKey: {
|
|
38
|
-
type: PropType<
|
|
40
|
+
type: PropType<BubbleMenuPluginProps["pluginKey"]>;
|
|
39
41
|
default: string;
|
|
40
42
|
};
|
|
41
43
|
editor: {
|
|
42
|
-
type: PropType<
|
|
44
|
+
type: PropType<BubbleMenuPluginProps["editor"]>;
|
|
43
45
|
required: true;
|
|
44
46
|
};
|
|
45
47
|
tippyOptions: {
|
|
46
|
-
type: PropType<
|
|
48
|
+
type: PropType<BubbleMenuPluginProps["tippyOptions"]>;
|
|
47
49
|
default: () => {};
|
|
48
50
|
};
|
|
49
51
|
shouldShow: {
|
|
50
|
-
type: PropType<
|
|
51
|
-
editor: import('@tiptap/vue-3').Editor;
|
|
52
|
-
state: import('../../tiptap').EditorState;
|
|
53
|
-
node?: HTMLElement | undefined;
|
|
54
|
-
view?: import('../../tiptap').EditorView | undefined;
|
|
55
|
-
oldState?: import('../../tiptap').EditorState | undefined;
|
|
56
|
-
from?: number | undefined;
|
|
57
|
-
to?: number | undefined;
|
|
58
|
-
}) => boolean>;
|
|
52
|
+
type: PropType<Exclude<Required<BubbleMenuPluginProps>["shouldShow"], null>>;
|
|
59
53
|
default: null;
|
|
60
54
|
};
|
|
61
55
|
getRenderContainer: {
|
|
62
|
-
type: PropType<
|
|
56
|
+
type: PropType<Exclude<Required<BubbleMenuPluginProps>["getRenderContainer"], null>>;
|
|
63
57
|
default: null;
|
|
64
58
|
};
|
|
65
59
|
defaultAnimation: {
|
|
66
|
-
type: PropType<
|
|
60
|
+
type: PropType<BubbleMenuPluginProps["defaultAnimation"]>;
|
|
67
61
|
default: boolean;
|
|
68
62
|
};
|
|
69
|
-
}
|
|
63
|
+
}>> & Readonly<{}>, {
|
|
70
64
|
getRenderContainer: (node: HTMLElement) => HTMLElement;
|
|
71
65
|
defaultAnimation: boolean | undefined;
|
|
72
66
|
shouldShow: (props: {
|
|
73
67
|
editor: import('@tiptap/vue-3').Editor;
|
|
74
68
|
state: import('../../tiptap').EditorState;
|
|
75
|
-
node?: HTMLElement
|
|
76
|
-
view?: import('../../tiptap').EditorView
|
|
77
|
-
oldState?: import('../../tiptap').EditorState
|
|
78
|
-
from?: number
|
|
79
|
-
to?: number
|
|
69
|
+
node?: HTMLElement;
|
|
70
|
+
view?: import('../../tiptap').EditorView;
|
|
71
|
+
oldState?: import('../../tiptap').EditorState;
|
|
72
|
+
from?: number;
|
|
73
|
+
to?: number;
|
|
80
74
|
}) => boolean;
|
|
81
75
|
tippyOptions: Partial<import('./BubbleMenuPlugin').TippyOptionProps> | undefined;
|
|
82
76
|
pluginKey: string | import('../../tiptap').PluginKey<any>;
|
|
83
|
-
}, {}
|
|
84
|
-
|
|
85
|
-
}>;
|
|
77
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
78
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
86
79
|
export default _default;
|
|
87
80
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
88
81
|
new (): {
|
|
@@ -1,39 +1,25 @@
|
|
|
1
|
-
declare
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
slots: {
|
|
3
|
+
default?(_: {}): any;
|
|
4
|
+
prefix?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<{
|
|
11
|
+
modelValue?: string;
|
|
12
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
13
|
+
"update:modelValue": (value?: string | undefined) => any;
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
15
|
+
modelValue?: string;
|
|
16
|
+
}> & Readonly<{
|
|
12
17
|
"onUpdate:modelValue"?: ((value?: string | undefined) => any) | undefined;
|
|
13
|
-
}
|
|
18
|
+
}>, {
|
|
14
19
|
modelValue: string;
|
|
15
|
-
}, {}
|
|
16
|
-
|
|
17
|
-
prefix?(_: {}): any;
|
|
18
|
-
}>;
|
|
20
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
19
22
|
export default _default;
|
|
20
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
21
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
22
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
23
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
24
|
-
} : {
|
|
25
|
-
type: import('vue').PropType<T[K]>;
|
|
26
|
-
required: true;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
type __VLS_WithDefaults<P, D> = {
|
|
30
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
31
|
-
default: D[K];
|
|
32
|
-
}> : P[K];
|
|
33
|
-
};
|
|
34
|
-
type __VLS_Prettify<T> = {
|
|
35
|
-
[K in keyof T]: T[K];
|
|
36
|
-
} & {};
|
|
37
23
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
38
24
|
new (): {
|
|
39
25
|
$slots: S;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
2
|
export default _default;
|
|
@@ -1,57 +1,25 @@
|
|
|
1
1
|
import { ToolbarItem } from '../../types';
|
|
2
2
|
import { Component } from 'vue';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
19
|
-
isActive?: boolean | undefined;
|
|
20
|
-
disabled?: boolean | undefined;
|
|
21
|
-
title?: string | undefined;
|
|
22
|
-
action?: (() => void) | undefined;
|
|
23
|
-
icon?: Component | undefined;
|
|
24
|
-
children?: ToolbarItem[] | undefined;
|
|
25
|
-
}>, {
|
|
26
|
-
isActive: boolean;
|
|
27
|
-
disabled: boolean;
|
|
28
|
-
title: undefined;
|
|
29
|
-
action: undefined;
|
|
30
|
-
icon: undefined;
|
|
31
|
-
children: undefined;
|
|
32
|
-
}>>>, {
|
|
33
|
-
isActive: boolean;
|
|
34
|
-
icon: Component;
|
|
3
|
+
declare const _default: import('vue').DefineComponent<{
|
|
4
|
+
isActive?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
title?: string;
|
|
7
|
+
action?: () => void;
|
|
8
|
+
icon?: Component;
|
|
9
|
+
children?: ToolbarItem[];
|
|
10
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
11
|
+
isActive?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
title?: string;
|
|
14
|
+
action?: () => void;
|
|
15
|
+
icon?: Component;
|
|
16
|
+
children?: ToolbarItem[];
|
|
17
|
+
}> & Readonly<{}>, {
|
|
35
18
|
title: string;
|
|
19
|
+
children: ToolbarItem[];
|
|
20
|
+
icon: Component;
|
|
21
|
+
isActive: boolean;
|
|
36
22
|
action: () => void;
|
|
37
23
|
disabled: boolean;
|
|
38
|
-
|
|
39
|
-
}, {}>;
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
40
25
|
export default _default;
|
|
41
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
42
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
43
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
44
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
45
|
-
} : {
|
|
46
|
-
type: import('vue').PropType<T[K]>;
|
|
47
|
-
required: true;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
type __VLS_WithDefaults<P, D> = {
|
|
51
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
52
|
-
default: D[K];
|
|
53
|
-
}> : P[K];
|
|
54
|
-
};
|
|
55
|
-
type __VLS_Prettify<T> = {
|
|
56
|
-
[K in keyof T]: T[K];
|
|
57
|
-
} & {};
|