@halo-dev/richtext-editor 2.17.0 → 2.19.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 +10 -8
- package/dist/components/EditorBubbleMenu.vue.d.ts +0 -1
- package/dist/components/EditorHeader.vue.d.ts +0 -1
- package/dist/components/block/BlockActionButton.vue.d.ts +20 -18
- package/dist/components/block/BlockActionInput.vue.d.ts +15 -15
- package/dist/components/block/BlockCard.vue.d.ts +17 -16
- package/dist/components/bubble/BubbleItem.vue.d.ts +31 -32
- package/dist/components/bubble/BubbleMenu.vue.d.ts +24 -38
- package/dist/components/bubble/BubbleMenuPlugin.d.ts +0 -1
- package/dist/components/common/ColorPickerDropdown.vue.d.ts +19 -17
- package/dist/components/toolbar/ToolbarItem.vue.d.ts +26 -27
- package/dist/components/toolbar/ToolbarSubItem.vue.d.ts +23 -24
- package/dist/components/toolbox/ToolboxItem.vue.d.ts +22 -23
- package/dist/dev/App.vue.d.ts +2 -0
- package/dist/extensions/audio/AudioView.vue.d.ts +3 -4
- package/dist/extensions/audio/BubbleItemAudioLink.vue.d.ts +15 -16
- package/dist/extensions/audio/index.d.ts +0 -1
- package/dist/extensions/blockquote/index.d.ts +0 -1
- package/dist/extensions/bold/index.d.ts +0 -1
- package/dist/extensions/bullet-list/index.d.ts +0 -1
- package/dist/extensions/clear-format/index.d.ts +0 -1
- package/dist/extensions/code/index.d.ts +0 -1
- package/dist/extensions/code-block/CodeBlockSelect.vue.d.ts +30 -0
- package/dist/extensions/code-block/CodeBlockViewRenderer.vue.d.ts +3 -23
- 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 -16
- package/dist/extensions/color/ColorToolbarItem.vue.d.ts +25 -26
- package/dist/extensions/color/index.d.ts +0 -1
- 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 +0 -1
- 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 +0 -1
- package/dist/extensions/highlight/HighlightBubbleItem.vue.d.ts +15 -16
- package/dist/extensions/highlight/HighlightToolbarItem.vue.d.ts +25 -26
- package/dist/extensions/highlight/index.d.ts +0 -1
- package/dist/extensions/history/index.d.ts +0 -1
- package/dist/extensions/iframe/BubbleItemIframeLink.vue.d.ts +15 -16
- package/dist/extensions/iframe/BubbleItemIframeSize.vue.d.ts +3 -4
- package/dist/extensions/iframe/IframeView.vue.d.ts +3 -4
- package/dist/extensions/iframe/index.d.ts +0 -1
- package/dist/extensions/image/BubbleItemImageAlt.vue.d.ts +15 -16
- package/dist/extensions/image/BubbleItemImageHref.vue.d.ts +15 -16
- package/dist/extensions/image/BubbleItemImageLink.vue.d.ts +15 -16
- package/dist/extensions/image/BubbleItemImageSize.vue.d.ts +19 -20
- package/dist/extensions/image/ImageView.vue.d.ts +3 -4
- package/dist/extensions/image/index.d.ts +0 -1
- package/dist/extensions/indent/index.d.ts +1 -1
- package/dist/extensions/index.d.ts +4 -4
- package/dist/extensions/italic/index.d.ts +0 -1
- package/dist/extensions/link/LinkBubbleButton.vue.d.ts +15 -16
- 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 +0 -1
- package/dist/extensions/paragraph/index.d.ts +0 -1
- 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 +0 -1
- 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 +0 -1
- package/dist/extensions/subscript/index.d.ts +0 -1
- package/dist/extensions/superscript/index.d.ts +0 -1
- package/dist/extensions/table/index.d.ts +0 -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 +0 -1
- package/dist/extensions/text/index.d.ts +0 -1
- package/dist/extensions/text-align/index.d.ts +0 -1
- package/dist/extensions/text-style/index.d.ts +3 -0
- package/dist/extensions/trailing-node/index.d.ts +0 -1
- package/dist/extensions/underline/index.d.ts +0 -1
- package/dist/extensions/video/BubbleItemVideoLink.vue.d.ts +15 -16
- package/dist/extensions/video/BubbleItemVideoSize.vue.d.ts +19 -20
- package/dist/extensions/video/VideoView.vue.d.ts +3 -4
- package/dist/extensions/video/index.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/rich-text-editor.es.js +14647 -28673
- package/dist/rich-text-editor.iife.js +50 -53
- 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 +12 -0
- package/dist/utils/isNodeEmpty.d.ts +0 -1
- package/package.json +38 -41
- package/dist/extensions/code-block/lowlight.d.ts +0 -16
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
import { Editor } from '../../tiptap/vue-3';
|
|
2
2
|
import { Component } from 'vue';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
icon?: Component | undefined;
|
|
3
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
4
|
+
editor?: Editor;
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
action?: () => void;
|
|
8
|
+
icon?: Component;
|
|
10
9
|
}>, {
|
|
11
10
|
editor: undefined;
|
|
12
11
|
title: undefined;
|
|
13
12
|
description: undefined;
|
|
14
13
|
action: undefined;
|
|
15
14
|
icon: undefined;
|
|
16
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<
|
|
17
|
-
editor?: Editor
|
|
18
|
-
title?: string
|
|
19
|
-
description?: string
|
|
20
|
-
action?: (
|
|
21
|
-
icon?: Component
|
|
15
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
16
|
+
editor?: Editor;
|
|
17
|
+
title?: string;
|
|
18
|
+
description?: string;
|
|
19
|
+
action?: () => void;
|
|
20
|
+
icon?: Component;
|
|
22
21
|
}>, {
|
|
23
22
|
editor: undefined;
|
|
24
23
|
title: undefined;
|
|
@@ -26,22 +25,13 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
26
25
|
action: undefined;
|
|
27
26
|
icon: undefined;
|
|
28
27
|
}>>>, {
|
|
28
|
+
title: string;
|
|
29
29
|
editor: Editor;
|
|
30
30
|
icon: Component;
|
|
31
|
-
title: string;
|
|
32
31
|
action: () => void;
|
|
33
32
|
description: string;
|
|
34
33
|
}, {}>;
|
|
35
34
|
export default _default;
|
|
36
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
37
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
38
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
39
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
40
|
-
} : {
|
|
41
|
-
type: import('vue').PropType<T[K]>;
|
|
42
|
-
required: true;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
35
|
type __VLS_WithDefaults<P, D> = {
|
|
46
36
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
47
37
|
default: D[K];
|
|
@@ -50,3 +40,12 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
50
40
|
type __VLS_Prettify<T> = {
|
|
51
41
|
[K in keyof T]: T[K];
|
|
52
42
|
} & {};
|
|
43
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
44
|
+
type __VLS_TypePropsToOption<T> = {
|
|
45
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
46
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
47
|
+
} : {
|
|
48
|
+
type: import('vue').PropType<T[K]>;
|
|
49
|
+
required: true;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Decoration, Node as ProseMirrorNode } from '../../tiptap/pm';
|
|
2
2
|
import { Editor, Node } from '../../tiptap/vue-3';
|
|
3
|
-
|
|
4
|
-
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<{
|
|
5
4
|
editor: Editor;
|
|
6
5
|
node: ProseMirrorNode;
|
|
7
6
|
decorations: Decoration[];
|
|
@@ -10,7 +9,7 @@ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
10
9
|
getPos: () => number;
|
|
11
10
|
updateAttributes: (attributes: Record<string, any>) => void;
|
|
12
11
|
deleteNode: () => void;
|
|
13
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<
|
|
12
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
14
13
|
editor: Editor;
|
|
15
14
|
node: ProseMirrorNode;
|
|
16
15
|
decorations: Decoration[];
|
|
@@ -22,7 +21,7 @@ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
22
21
|
}>>>, {}, {}>;
|
|
23
22
|
export default _default;
|
|
24
23
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
25
|
-
type
|
|
24
|
+
type __VLS_TypePropsToOption<T> = {
|
|
26
25
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
27
26
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
28
27
|
} : {
|
|
@@ -1,36 +1,35 @@
|
|
|
1
1
|
import { Editor } from '../../tiptap/vue-3';
|
|
2
2
|
import { Component } from 'vue';
|
|
3
|
-
|
|
4
|
-
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<{
|
|
5
4
|
editor: Editor;
|
|
6
5
|
isActive: ({ editor }: {
|
|
7
6
|
editor: Editor;
|
|
8
7
|
}) => boolean;
|
|
9
|
-
visible?: (
|
|
8
|
+
visible?: ({ editor }: {
|
|
10
9
|
editor: Editor;
|
|
11
|
-
}) => boolean
|
|
12
|
-
icon?: Component
|
|
13
|
-
title?: string
|
|
14
|
-
action?: (
|
|
10
|
+
}) => boolean;
|
|
11
|
+
icon?: Component;
|
|
12
|
+
title?: string;
|
|
13
|
+
action?: ({ editor }: {
|
|
15
14
|
editor: Editor;
|
|
16
|
-
}) => void
|
|
17
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<
|
|
15
|
+
}) => void;
|
|
16
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
18
17
|
editor: Editor;
|
|
19
18
|
isActive: ({ editor }: {
|
|
20
19
|
editor: Editor;
|
|
21
20
|
}) => boolean;
|
|
22
|
-
visible?: (
|
|
21
|
+
visible?: ({ editor }: {
|
|
23
22
|
editor: Editor;
|
|
24
|
-
}) => boolean
|
|
25
|
-
icon?: Component
|
|
26
|
-
title?: string
|
|
27
|
-
action?: (
|
|
23
|
+
}) => boolean;
|
|
24
|
+
icon?: Component;
|
|
25
|
+
title?: string;
|
|
26
|
+
action?: ({ editor }: {
|
|
28
27
|
editor: Editor;
|
|
29
|
-
}) => void
|
|
28
|
+
}) => void;
|
|
30
29
|
}>>>, {}, {}>;
|
|
31
30
|
export default _default;
|
|
32
31
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
33
|
-
type
|
|
32
|
+
type __VLS_TypePropsToOption<T> = {
|
|
34
33
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
35
34
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
36
35
|
} : {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface Option {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string;
|
|
4
|
+
}
|
|
5
|
+
declare let __VLS_typeProps: {
|
|
6
|
+
container?: any;
|
|
7
|
+
containerClass?: string;
|
|
8
|
+
options: Option[];
|
|
9
|
+
filterSort?: (options: Option[], query: string) => number;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_PublicProps = {
|
|
12
|
+
modelValue?: any;
|
|
13
|
+
} & typeof __VLS_typeProps;
|
|
14
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<__VLS_PublicProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
"update:modelValue": (modelValue: any) => void;
|
|
16
|
+
select: () => void;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_PublicProps>>> & {
|
|
18
|
+
onSelect?: (() => any) | undefined;
|
|
19
|
+
"onUpdate:modelValue"?: ((modelValue: any) => any) | undefined;
|
|
20
|
+
}, {}, {}>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
23
|
+
type __VLS_TypePropsToOption<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
|
+
};
|
|
@@ -1,28 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
-
editor: Editor;
|
|
6
|
-
node: ProseMirrorNode;
|
|
7
|
-
decorations: Decoration[];
|
|
8
|
-
selected: boolean;
|
|
9
|
-
extension: Node<any, any>;
|
|
10
|
-
getPos: () => number;
|
|
11
|
-
updateAttributes: (attributes: Record<string, any>) => void;
|
|
12
|
-
deleteNode: () => void;
|
|
13
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
14
|
-
editor: Editor;
|
|
15
|
-
node: ProseMirrorNode;
|
|
16
|
-
decorations: Decoration[];
|
|
17
|
-
selected: boolean;
|
|
18
|
-
extension: Node<any, any>;
|
|
19
|
-
getPos: () => number;
|
|
20
|
-
updateAttributes: (attributes: Record<string, any>) => void;
|
|
21
|
-
deleteNode: () => void;
|
|
22
|
-
}>>>, {}, {}>;
|
|
1
|
+
import { NodeViewProps } from '../../tiptap/vue-3';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<NodeViewProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<NodeViewProps>>>, {}, {}>;
|
|
23
3
|
export default _default;
|
|
24
4
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
25
|
-
type
|
|
5
|
+
type __VLS_TypePropsToOption<T> = {
|
|
26
6
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
27
7
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
28
8
|
} : {
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export interface CustomCodeBlockLowlightOptions extends CodeBlockLowlightOptions {
|
|
4
|
-
lowlight: any;
|
|
5
|
-
defaultLanguage: string | null | undefined;
|
|
6
|
-
}
|
|
1
|
+
import { EditorState } from '../../tiptap/pm';
|
|
7
2
|
declare module "@/tiptap" {
|
|
8
3
|
interface Commands<ReturnType> {
|
|
9
4
|
codeIndent: {
|
|
@@ -12,5 +7,60 @@ declare module "@/tiptap" {
|
|
|
12
7
|
};
|
|
13
8
|
}
|
|
14
9
|
}
|
|
15
|
-
|
|
10
|
+
export interface Option {
|
|
11
|
+
label: string;
|
|
12
|
+
value: string;
|
|
13
|
+
}
|
|
14
|
+
export interface CodeBlockOptions {
|
|
15
|
+
/**
|
|
16
|
+
* Define whether the node should be exited on triple enter.
|
|
17
|
+
* @default true
|
|
18
|
+
*/
|
|
19
|
+
exitOnTripleEnter: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Define whether the node should be exited on arrow down if there is no node after it.
|
|
22
|
+
* @default true
|
|
23
|
+
*/
|
|
24
|
+
exitOnArrowDown: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Custom HTML attributes that should be added to the rendered HTML tag.
|
|
27
|
+
* @default {}
|
|
28
|
+
* @example { class: 'foo' }
|
|
29
|
+
*/
|
|
30
|
+
HTMLAttributes: Record<string, any>;
|
|
31
|
+
/**
|
|
32
|
+
* The default language for code block
|
|
33
|
+
* @default null
|
|
34
|
+
*/
|
|
35
|
+
defaultLanguage: string | null | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* The default theme for code block
|
|
38
|
+
* @default null
|
|
39
|
+
*/
|
|
40
|
+
defaultTheme: string | null | undefined;
|
|
41
|
+
}
|
|
42
|
+
export interface ExtensionCodeBlockOptions extends CodeBlockOptions {
|
|
43
|
+
/**
|
|
44
|
+
* Used for language list
|
|
45
|
+
*
|
|
46
|
+
* @default []
|
|
47
|
+
*/
|
|
48
|
+
languages: Array<Option> | ((state: EditorState) => Array<{
|
|
49
|
+
label: string;
|
|
50
|
+
value: string;
|
|
51
|
+
}>);
|
|
52
|
+
/**
|
|
53
|
+
* Used for theme list
|
|
54
|
+
*
|
|
55
|
+
* @default []
|
|
56
|
+
*/
|
|
57
|
+
themes?: Array<{
|
|
58
|
+
label: string;
|
|
59
|
+
value: string;
|
|
60
|
+
}> | ((state: EditorState) => Array<{
|
|
61
|
+
label: string;
|
|
62
|
+
value: string;
|
|
63
|
+
}>);
|
|
64
|
+
}
|
|
65
|
+
declare const _default: import('../../tiptap/vue-3').Node<ExtensionCodeBlockOptions, any>;
|
|
16
66
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as ExtensionCodeBlock } from './code-block';
|
|
2
|
-
export
|
|
2
|
+
export * from './code-block';
|
|
@@ -1,36 +1,35 @@
|
|
|
1
1
|
import { Editor } from '../../tiptap/vue-3';
|
|
2
2
|
import { Component } from 'vue';
|
|
3
|
-
|
|
4
|
-
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<{
|
|
5
4
|
editor: Editor;
|
|
6
5
|
isActive: ({ editor }: {
|
|
7
6
|
editor: Editor;
|
|
8
7
|
}) => boolean;
|
|
9
|
-
visible?: (
|
|
8
|
+
visible?: ({ editor }: {
|
|
10
9
|
editor: Editor;
|
|
11
|
-
}) => boolean
|
|
12
|
-
icon?: Component
|
|
13
|
-
title?: string
|
|
14
|
-
action?: (
|
|
10
|
+
}) => boolean;
|
|
11
|
+
icon?: Component;
|
|
12
|
+
title?: string;
|
|
13
|
+
action?: ({ editor }: {
|
|
15
14
|
editor: Editor;
|
|
16
|
-
}) => void
|
|
17
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<
|
|
15
|
+
}) => void;
|
|
16
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
18
17
|
editor: Editor;
|
|
19
18
|
isActive: ({ editor }: {
|
|
20
19
|
editor: Editor;
|
|
21
20
|
}) => boolean;
|
|
22
|
-
visible?: (
|
|
21
|
+
visible?: ({ editor }: {
|
|
23
22
|
editor: Editor;
|
|
24
|
-
}) => boolean
|
|
25
|
-
icon?: Component
|
|
26
|
-
title?: string
|
|
27
|
-
action?: (
|
|
23
|
+
}) => boolean;
|
|
24
|
+
icon?: Component;
|
|
25
|
+
title?: string;
|
|
26
|
+
action?: ({ editor }: {
|
|
28
27
|
editor: Editor;
|
|
29
|
-
}) => void
|
|
28
|
+
}) => void;
|
|
30
29
|
}>>>, {}, {}>;
|
|
31
30
|
export default _default;
|
|
32
31
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
33
|
-
type
|
|
32
|
+
type __VLS_TypePropsToOption<T> = {
|
|
34
33
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
35
34
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
36
35
|
} : {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { Editor } from '../../tiptap/vue-3';
|
|
2
2
|
import { Component } from 'vue';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
icon?: Component | undefined;
|
|
3
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
4
|
+
editor?: Editor;
|
|
5
|
+
isActive?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
title?: string;
|
|
8
|
+
action?: () => void;
|
|
9
|
+
icon?: Component;
|
|
11
10
|
}>, {
|
|
12
11
|
editor: undefined;
|
|
13
12
|
isActive: boolean;
|
|
@@ -15,13 +14,13 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
15
14
|
title: undefined;
|
|
16
15
|
action: undefined;
|
|
17
16
|
icon: undefined;
|
|
18
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<
|
|
19
|
-
editor?: Editor
|
|
20
|
-
isActive?: boolean
|
|
21
|
-
disabled?: boolean
|
|
22
|
-
title?: string
|
|
23
|
-
action?: (
|
|
24
|
-
icon?: Component
|
|
17
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
18
|
+
editor?: Editor;
|
|
19
|
+
isActive?: boolean;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
title?: string;
|
|
22
|
+
action?: () => void;
|
|
23
|
+
icon?: Component;
|
|
25
24
|
}>, {
|
|
26
25
|
editor: undefined;
|
|
27
26
|
isActive: boolean;
|
|
@@ -30,23 +29,14 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
30
29
|
action: undefined;
|
|
31
30
|
icon: undefined;
|
|
32
31
|
}>>>, {
|
|
32
|
+
title: string;
|
|
33
33
|
editor: Editor;
|
|
34
|
-
isActive: boolean;
|
|
35
34
|
icon: Component;
|
|
36
|
-
|
|
35
|
+
isActive: boolean;
|
|
37
36
|
action: () => void;
|
|
38
37
|
disabled: boolean;
|
|
39
38
|
}, {}>;
|
|
40
39
|
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
40
|
type __VLS_WithDefaults<P, D> = {
|
|
51
41
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
52
42
|
default: D[K];
|
|
@@ -55,3 +45,12 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
55
45
|
type __VLS_Prettify<T> = {
|
|
56
46
|
[K in keyof T]: T[K];
|
|
57
47
|
} & {};
|
|
48
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
49
|
+
type __VLS_TypePropsToOption<T> = {
|
|
50
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
51
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
52
|
+
} : {
|
|
53
|
+
type: import('vue').PropType<T[K]>;
|
|
54
|
+
required: true;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Dispatch, EditorState, EditorView, ResolvedPos, Transaction } from '../../tiptap';
|
|
2
2
|
import { Extension, ParentConfig } from '../../tiptap/core';
|
|
3
3
|
import { Command } from '../../tiptap/pm';
|
|
4
|
-
|
|
5
4
|
declare module "@tiptap/core" {
|
|
6
5
|
interface NodeConfig<Options, Storage> {
|
|
7
6
|
allowGapCursor?: boolean | null | ((this: {
|
|
@@ -1,36 +1,35 @@
|
|
|
1
1
|
import { Editor } from '../../tiptap/vue-3';
|
|
2
2
|
import { Component } from 'vue';
|
|
3
|
-
|
|
4
|
-
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<{
|
|
5
4
|
editor: Editor;
|
|
6
5
|
isActive: ({ editor }: {
|
|
7
6
|
editor: Editor;
|
|
8
7
|
}) => boolean;
|
|
9
|
-
visible?: (
|
|
8
|
+
visible?: ({ editor }: {
|
|
10
9
|
editor: Editor;
|
|
11
|
-
}) => boolean
|
|
12
|
-
icon?: Component
|
|
13
|
-
title?: string
|
|
14
|
-
action?: (
|
|
10
|
+
}) => boolean;
|
|
11
|
+
icon?: Component;
|
|
12
|
+
title?: string;
|
|
13
|
+
action?: ({ editor }: {
|
|
15
14
|
editor: Editor;
|
|
16
|
-
}) => void
|
|
17
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<
|
|
15
|
+
}) => void;
|
|
16
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
18
17
|
editor: Editor;
|
|
19
18
|
isActive: ({ editor }: {
|
|
20
19
|
editor: Editor;
|
|
21
20
|
}) => boolean;
|
|
22
|
-
visible?: (
|
|
21
|
+
visible?: ({ editor }: {
|
|
23
22
|
editor: Editor;
|
|
24
|
-
}) => boolean
|
|
25
|
-
icon?: Component
|
|
26
|
-
title?: string
|
|
27
|
-
action?: (
|
|
23
|
+
}) => boolean;
|
|
24
|
+
icon?: Component;
|
|
25
|
+
title?: string;
|
|
26
|
+
action?: ({ editor }: {
|
|
28
27
|
editor: Editor;
|
|
29
|
-
}) => void
|
|
28
|
+
}) => void;
|
|
30
29
|
}>>>, {}, {}>;
|
|
31
30
|
export default _default;
|
|
32
31
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
33
|
-
type
|
|
32
|
+
type __VLS_TypePropsToOption<T> = {
|
|
34
33
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
35
34
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
36
35
|
} : {
|