@halo-dev/richtext-editor 0.0.0-alpha.8 → 2.12.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 +44 -0
- package/dist/components/EditorBubbleMenu.vue.d.ts +14 -0
- package/dist/components/EditorHeader.vue.d.ts +13 -0
- package/dist/components/block/BlockActionButton.vue.d.ts +41 -0
- package/dist/components/block/BlockActionInput.vue.d.ts +38 -0
- package/dist/components/block/BlockActionSeparator.vue.d.ts +2 -0
- package/dist/components/block/BlockCard.vue.d.ts +44 -0
- package/dist/components/block/index.d.ts +4 -0
- package/dist/components/bubble/BubbleItem.vue.d.ts +76 -0
- package/dist/components/bubble/BubbleMenuPlugin.d.ts +53 -0
- package/dist/components/bubble/index.d.ts +2 -0
- package/dist/components/common/ColorPickerDropdown.vue.d.ts +41 -0
- package/dist/components/icon/MdiDeleteForeverOutline.vue.d.ts +2 -0
- package/dist/components/index.d.ts +7 -0
- package/dist/components/toolbar/ToolbarItem.vue.d.ts +50 -0
- package/dist/components/toolbar/ToolbarSubItem.vue.d.ts +50 -0
- package/dist/components/toolbar/index.d.ts +2 -0
- package/dist/components/toolbox/ToolboxItem.vue.d.ts +51 -0
- package/dist/components/toolbox/index.d.ts +1 -0
- package/dist/dev/main.d.ts +1 -0
- package/dist/extensions/audio/AudioView.vue.d.ts +31 -0
- package/dist/extensions/audio/BubbleItemAudioLink.vue.d.ts +39 -0
- package/dist/extensions/audio/index.d.ts +13 -0
- package/dist/extensions/blockquote/index.d.ts +4 -0
- package/dist/extensions/bold/index.d.ts +4 -0
- package/dist/extensions/bullet-list/index.d.ts +4 -0
- package/dist/extensions/code/index.d.ts +4 -0
- package/dist/extensions/code-block/CodeBlockViewRenderer.vue.d.ts +31 -0
- package/dist/extensions/code-block/code-block.d.ts +14 -1
- package/dist/extensions/code-block/lowlight.d.ts +15 -1
- package/dist/extensions/color/ColorBubbleItem.vue.d.ts +39 -0
- package/dist/extensions/color/ColorToolbarItem.vue.d.ts +56 -0
- package/dist/extensions/color/index.d.ts +4 -0
- package/dist/extensions/columns/column.d.ts +3 -0
- package/dist/extensions/columns/columns.d.ts +15 -0
- package/dist/extensions/columns/index.d.ts +2 -0
- package/dist/extensions/commands-menu/CommandsView.vue.d.ts +27 -0
- package/dist/extensions/commands-menu/commands.d.ts +1 -1
- package/dist/extensions/commands-menu/index.d.ts +0 -1
- package/dist/extensions/draggable/index.d.ts +14 -0
- package/dist/extensions/font-size/index.d.ts +14 -0
- package/dist/extensions/heading/index.d.ts +4 -0
- package/dist/extensions/highlight/HighlightBubbleItem.vue.d.ts +39 -0
- package/dist/extensions/highlight/HighlightToolbarItem.vue.d.ts +56 -0
- package/dist/extensions/highlight/index.d.ts +4 -0
- package/dist/extensions/history/index.d.ts +4 -0
- package/dist/extensions/iframe/BubbleItemIframeLink.vue.d.ts +39 -0
- package/dist/extensions/iframe/BubbleItemIframeSize.vue.d.ts +16 -0
- package/dist/extensions/iframe/IframeView.vue.d.ts +31 -0
- package/dist/extensions/iframe/index.d.ts +13 -0
- package/dist/extensions/image/BubbleItemImageAlt.vue.d.ts +39 -0
- package/dist/extensions/image/BubbleItemImageHref.vue.d.ts +39 -0
- package/dist/extensions/image/BubbleItemImageLink.vue.d.ts +39 -0
- package/dist/extensions/image/BubbleItemImageSize.vue.d.ts +39 -0
- package/dist/extensions/image/ImageView.vue.d.ts +31 -0
- package/dist/extensions/image/index.d.ts +4 -0
- package/dist/extensions/indent/index.d.ts +22 -0
- package/dist/extensions/index.d.ts +37 -29
- package/dist/extensions/italic/index.d.ts +4 -0
- package/dist/extensions/link/LinkBubbleButton.vue.d.ts +39 -0
- package/dist/extensions/link/index.d.ts +4 -0
- package/dist/extensions/list-keymap/index.d.ts +7 -0
- package/dist/extensions/node-selected/index.d.ts +6 -0
- package/dist/extensions/ordered-list/index.d.ts +4 -0
- package/dist/extensions/paragraph/index.d.ts +4 -0
- package/dist/extensions/search-and-replace/SearchAndReplace.vue.d.ts +33 -0
- package/dist/extensions/search-and-replace/SearchAndReplacePlugin.d.ts +108 -0
- package/dist/extensions/search-and-replace/index.d.ts +34 -0
- package/dist/extensions/strike/index.d.ts +4 -0
- package/dist/extensions/subscript/index.d.ts +4 -0
- package/dist/extensions/superscript/index.d.ts +4 -0
- package/dist/extensions/table/index.d.ts +4 -0
- package/dist/extensions/table/table-cell.d.ts +6 -0
- package/dist/extensions/table/table-header.d.ts +6 -0
- package/dist/extensions/table/table-row.d.ts +2 -0
- package/dist/extensions/table/util.d.ts +27 -0
- package/dist/extensions/task-list/index.d.ts +4 -0
- package/dist/extensions/text/index.d.ts +3 -0
- package/dist/extensions/text-align/index.d.ts +4 -0
- package/dist/extensions/trailing-node/index.d.ts +9 -0
- package/dist/extensions/underline/index.d.ts +4 -0
- package/dist/extensions/video/BubbleItemVideoLink.vue.d.ts +39 -0
- package/dist/extensions/video/BubbleItemVideoSize.vue.d.ts +39 -0
- package/dist/extensions/video/VideoView.vue.d.ts +31 -0
- package/dist/extensions/video/index.d.ts +13 -0
- package/dist/index.d.ts +3 -3
- package/dist/locales/index.d.ts +7 -0
- package/dist/rich-text-editor.es.js +43543 -79127
- package/dist/rich-text-editor.iife.js +151 -89045
- package/dist/style.css +10 -1774
- package/dist/tiptap/core/index.d.ts +1 -0
- package/dist/tiptap/index.d.ts +6 -0
- package/dist/tiptap/pm/index.d.ts +20 -0
- package/dist/tiptap/vue-3/index.d.ts +1 -0
- package/dist/types/index.d.ts +115 -0
- package/dist/utils/anchor.d.ts +2 -0
- package/dist/utils/delete-node.d.ts +2 -0
- package/dist/utils/index.d.ts +2 -0
- package/package.json +83 -78
- package/dist/extensions/commands-menu/suggestion.d.ts +0 -23
- package/dist/extensions/katex/index.d.ts +0 -2
- package/dist/rich-text-editor.es.js.map +0 -1
- package/dist/rich-text-editor.iife.js.map +0 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Node as ProseMirrorNode, Decoration } from '../../tiptap/pm';
|
|
2
|
+
import type { Editor, Node } from '../../tiptap/vue-3';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
editor: Editor;
|
|
5
|
+
node: ProseMirrorNode;
|
|
6
|
+
decorations: Decoration[];
|
|
7
|
+
selected: boolean;
|
|
8
|
+
extension: Node<any, any>;
|
|
9
|
+
getPos: () => number;
|
|
10
|
+
updateAttributes: (attributes: Record<string, any>) => void;
|
|
11
|
+
deleteNode: () => void;
|
|
12
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
13
|
+
editor: Editor;
|
|
14
|
+
node: ProseMirrorNode;
|
|
15
|
+
decorations: Decoration[];
|
|
16
|
+
selected: boolean;
|
|
17
|
+
extension: Node<any, any>;
|
|
18
|
+
getPos: () => number;
|
|
19
|
+
updateAttributes: (attributes: Record<string, any>) => void;
|
|
20
|
+
deleteNode: () => void;
|
|
21
|
+
}>>>, {}, {}>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
25
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
26
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
27
|
+
} : {
|
|
28
|
+
type: import('vue').PropType<T[K]>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -1,2 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import type { CodeBlockLowlightOptions } from "@tiptap/extension-code-block-lowlight";
|
|
2
|
+
export interface CustomCodeBlockLowlightOptions extends CodeBlockLowlightOptions {
|
|
3
|
+
lowlight: any;
|
|
4
|
+
defaultLanguage: string | null | undefined;
|
|
5
|
+
}
|
|
6
|
+
declare module "@/tiptap" {
|
|
7
|
+
interface Commands<ReturnType> {
|
|
8
|
+
codeIndent: {
|
|
9
|
+
codeIndent: () => ReturnType;
|
|
10
|
+
codeOutdent: () => ReturnType;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
declare const _default: import('../../tiptap/vue-3').Node<CustomCodeBlockLowlightOptions & CodeBlockLowlightOptions, any>;
|
|
2
15
|
export default _default;
|
|
@@ -1,2 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="highlight.js" />
|
|
2
|
+
declare const lowlight: {
|
|
3
|
+
highlight: (language: string, value: string, options?: Readonly<import("lowlight").Options> | null | undefined) => import("hast").Root;
|
|
4
|
+
highlightAuto: (value: string, options?: Readonly<import("lowlight").AutoOptions> | null | undefined) => import("hast").Root;
|
|
5
|
+
listLanguages: () => string[];
|
|
6
|
+
register: {
|
|
7
|
+
(grammars: Readonly<Record<string, import("highlight.js").LanguageFn>>): undefined;
|
|
8
|
+
(name: string, grammar: import("highlight.js").LanguageFn): undefined;
|
|
9
|
+
};
|
|
10
|
+
registerAlias: {
|
|
11
|
+
(aliases: Readonly<Record<string, string | readonly string[]>>): undefined;
|
|
12
|
+
(language: string, alias: string | readonly string[]): undefined;
|
|
13
|
+
};
|
|
14
|
+
registered: (aliasOrName: string) => boolean;
|
|
15
|
+
};
|
|
2
16
|
export default lowlight;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { Editor } from '../../tiptap/vue-3';
|
|
2
|
+
import type { Component } from "vue";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
editor: Editor;
|
|
5
|
+
isActive: ({ editor }: {
|
|
6
|
+
editor: Editor;
|
|
7
|
+
}) => boolean;
|
|
8
|
+
visible?: (({ editor }: {
|
|
9
|
+
editor: Editor;
|
|
10
|
+
}) => boolean) | undefined;
|
|
11
|
+
icon?: Component | undefined;
|
|
12
|
+
title?: string | undefined;
|
|
13
|
+
action?: (({ editor }: {
|
|
14
|
+
editor: Editor;
|
|
15
|
+
}) => void) | undefined;
|
|
16
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
17
|
+
editor: Editor;
|
|
18
|
+
isActive: ({ editor }: {
|
|
19
|
+
editor: Editor;
|
|
20
|
+
}) => boolean;
|
|
21
|
+
visible?: (({ editor }: {
|
|
22
|
+
editor: Editor;
|
|
23
|
+
}) => boolean) | undefined;
|
|
24
|
+
icon?: Component | undefined;
|
|
25
|
+
title?: string | undefined;
|
|
26
|
+
action?: (({ editor }: {
|
|
27
|
+
editor: Editor;
|
|
28
|
+
}) => void) | undefined;
|
|
29
|
+
}>>>, {}, {}>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
32
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
33
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
34
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
35
|
+
} : {
|
|
36
|
+
type: import('vue').PropType<T[K]>;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { Component } from "vue";
|
|
2
|
+
import type { Editor } from '../../tiptap/vue-3';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
editor?: Editor | undefined;
|
|
5
|
+
isActive?: boolean | undefined;
|
|
6
|
+
disabled?: boolean | undefined;
|
|
7
|
+
title?: string | undefined;
|
|
8
|
+
action?: (() => void) | undefined;
|
|
9
|
+
icon?: Component | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
editor: undefined;
|
|
12
|
+
isActive: boolean;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
title: undefined;
|
|
15
|
+
action: undefined;
|
|
16
|
+
icon: undefined;
|
|
17
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
18
|
+
editor?: Editor | undefined;
|
|
19
|
+
isActive?: boolean | undefined;
|
|
20
|
+
disabled?: boolean | undefined;
|
|
21
|
+
title?: string | undefined;
|
|
22
|
+
action?: (() => void) | undefined;
|
|
23
|
+
icon?: Component | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
editor: undefined;
|
|
26
|
+
isActive: boolean;
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
title: undefined;
|
|
29
|
+
action: undefined;
|
|
30
|
+
icon: undefined;
|
|
31
|
+
}>>>, {
|
|
32
|
+
editor: Editor;
|
|
33
|
+
title: string;
|
|
34
|
+
isActive: boolean;
|
|
35
|
+
icon: Component;
|
|
36
|
+
action: () => void;
|
|
37
|
+
disabled: boolean;
|
|
38
|
+
}, {}>;
|
|
39
|
+
export default _default;
|
|
40
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
41
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
42
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
43
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
44
|
+
} : {
|
|
45
|
+
type: import('vue').PropType<T[K]>;
|
|
46
|
+
required: true;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
type __VLS_WithDefaults<P, D> = {
|
|
50
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
51
|
+
default: D[K];
|
|
52
|
+
}> : P[K];
|
|
53
|
+
};
|
|
54
|
+
type __VLS_Prettify<T> = {
|
|
55
|
+
[K in keyof T]: T[K];
|
|
56
|
+
} & {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Node } from '../../tiptap/vue-3';
|
|
2
|
+
declare module "@/tiptap" {
|
|
3
|
+
interface Commands<ReturnType> {
|
|
4
|
+
columns: {
|
|
5
|
+
insertColumns: (attrs?: {
|
|
6
|
+
cols: number;
|
|
7
|
+
}) => ReturnType;
|
|
8
|
+
addColBefore: () => ReturnType;
|
|
9
|
+
addColAfter: () => ReturnType;
|
|
10
|
+
deleteCol: () => ReturnType;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
declare const Columns: Node<any, any>;
|
|
15
|
+
export default Columns;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type PropType } from "vue";
|
|
2
|
+
import type { CommandMenuItem } from '../../types';
|
|
3
|
+
declare function onKeyDown({ event }: {
|
|
4
|
+
event: KeyboardEvent;
|
|
5
|
+
}): boolean;
|
|
6
|
+
declare const _default: import("vue").DefineComponent<{
|
|
7
|
+
items: {
|
|
8
|
+
type: PropType<CommandMenuItem[]>;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
command: {
|
|
12
|
+
type: PropType<(item: CommandMenuItem) => void>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
}, {
|
|
16
|
+
onKeyDown: typeof onKeyDown;
|
|
17
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
|
+
items: {
|
|
19
|
+
type: PropType<CommandMenuItem[]>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
command: {
|
|
23
|
+
type: PropType<(item: CommandMenuItem) => void>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
}>>, {}, {}>;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Extension } from '../../tiptap/vue-3';
|
|
2
|
+
import { Node, ResolvedPos } from '../../tiptap/pm';
|
|
3
|
+
import type { EditorView } from '../../tiptap/pm';
|
|
4
|
+
export interface ActiveNode {
|
|
5
|
+
$pos: ResolvedPos;
|
|
6
|
+
node: Node;
|
|
7
|
+
el: HTMLElement;
|
|
8
|
+
offset: number;
|
|
9
|
+
domOffsetLeft: number;
|
|
10
|
+
domOffsetTop: number;
|
|
11
|
+
}
|
|
12
|
+
export declare const selectAncestorNodeByDom: (dom: HTMLElement, view: EditorView) => ActiveNode | null;
|
|
13
|
+
declare const Draggable: Extension<any, any>;
|
|
14
|
+
export default Draggable;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Extension } from '../../tiptap/vue-3';
|
|
2
|
+
export type FontSizeOptions = {
|
|
3
|
+
types: string[];
|
|
4
|
+
};
|
|
5
|
+
declare module "@/tiptap" {
|
|
6
|
+
interface Commands<ReturnType> {
|
|
7
|
+
fontSize: {
|
|
8
|
+
setFontSize: (size: number) => ReturnType;
|
|
9
|
+
unsetFontSize: () => ReturnType;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
declare const FontSize: Extension<FontSizeOptions, any>;
|
|
14
|
+
export default FontSize;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { Editor } from '../../tiptap/vue-3';
|
|
2
|
+
import type { Component } from "vue";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
editor: Editor;
|
|
5
|
+
isActive: ({ editor }: {
|
|
6
|
+
editor: Editor;
|
|
7
|
+
}) => boolean;
|
|
8
|
+
visible?: (({ editor }: {
|
|
9
|
+
editor: Editor;
|
|
10
|
+
}) => boolean) | undefined;
|
|
11
|
+
icon?: Component | undefined;
|
|
12
|
+
title?: string | undefined;
|
|
13
|
+
action?: (({ editor }: {
|
|
14
|
+
editor: Editor;
|
|
15
|
+
}) => void) | undefined;
|
|
16
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
17
|
+
editor: Editor;
|
|
18
|
+
isActive: ({ editor }: {
|
|
19
|
+
editor: Editor;
|
|
20
|
+
}) => boolean;
|
|
21
|
+
visible?: (({ editor }: {
|
|
22
|
+
editor: Editor;
|
|
23
|
+
}) => boolean) | undefined;
|
|
24
|
+
icon?: Component | undefined;
|
|
25
|
+
title?: string | undefined;
|
|
26
|
+
action?: (({ editor }: {
|
|
27
|
+
editor: Editor;
|
|
28
|
+
}) => void) | undefined;
|
|
29
|
+
}>>>, {}, {}>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
32
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
33
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
34
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
35
|
+
} : {
|
|
36
|
+
type: import('vue').PropType<T[K]>;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { Component } from "vue";
|
|
2
|
+
import type { Editor } from '../../tiptap/vue-3';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
editor?: Editor | undefined;
|
|
5
|
+
isActive?: boolean | undefined;
|
|
6
|
+
disabled?: boolean | undefined;
|
|
7
|
+
title?: string | undefined;
|
|
8
|
+
action?: (() => void) | undefined;
|
|
9
|
+
icon?: Component | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
editor: undefined;
|
|
12
|
+
isActive: boolean;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
title: undefined;
|
|
15
|
+
action: undefined;
|
|
16
|
+
icon: undefined;
|
|
17
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
18
|
+
editor?: Editor | undefined;
|
|
19
|
+
isActive?: boolean | undefined;
|
|
20
|
+
disabled?: boolean | undefined;
|
|
21
|
+
title?: string | undefined;
|
|
22
|
+
action?: (() => void) | undefined;
|
|
23
|
+
icon?: Component | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
editor: undefined;
|
|
26
|
+
isActive: boolean;
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
title: undefined;
|
|
29
|
+
action: undefined;
|
|
30
|
+
icon: undefined;
|
|
31
|
+
}>>>, {
|
|
32
|
+
editor: Editor;
|
|
33
|
+
title: string;
|
|
34
|
+
isActive: boolean;
|
|
35
|
+
icon: Component;
|
|
36
|
+
action: () => void;
|
|
37
|
+
disabled: boolean;
|
|
38
|
+
}, {}>;
|
|
39
|
+
export default _default;
|
|
40
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
41
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
42
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
43
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
44
|
+
} : {
|
|
45
|
+
type: import('vue').PropType<T[K]>;
|
|
46
|
+
required: true;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
type __VLS_WithDefaults<P, D> = {
|
|
50
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
51
|
+
default: D[K];
|
|
52
|
+
}> : P[K];
|
|
53
|
+
};
|
|
54
|
+
type __VLS_Prettify<T> = {
|
|
55
|
+
[K in keyof T]: T[K];
|
|
56
|
+
} & {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { Editor } from '../../tiptap/vue-3';
|
|
2
|
+
import { type Component } from "vue";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
editor: Editor;
|
|
5
|
+
isActive: ({ editor }: {
|
|
6
|
+
editor: Editor;
|
|
7
|
+
}) => boolean;
|
|
8
|
+
visible?: (({ editor }: {
|
|
9
|
+
editor: Editor;
|
|
10
|
+
}) => boolean) | undefined;
|
|
11
|
+
icon?: Component | undefined;
|
|
12
|
+
title?: string | undefined;
|
|
13
|
+
action?: (({ editor }: {
|
|
14
|
+
editor: Editor;
|
|
15
|
+
}) => void) | undefined;
|
|
16
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
17
|
+
editor: Editor;
|
|
18
|
+
isActive: ({ editor }: {
|
|
19
|
+
editor: Editor;
|
|
20
|
+
}) => boolean;
|
|
21
|
+
visible?: (({ editor }: {
|
|
22
|
+
editor: Editor;
|
|
23
|
+
}) => boolean) | undefined;
|
|
24
|
+
icon?: Component | undefined;
|
|
25
|
+
title?: string | undefined;
|
|
26
|
+
action?: (({ editor }: {
|
|
27
|
+
editor: Editor;
|
|
28
|
+
}) => void) | undefined;
|
|
29
|
+
}>>>, {}, {}>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
32
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
33
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
34
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
35
|
+
} : {
|
|
36
|
+
type: import('vue').PropType<T[K]>;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Editor } from '../../tiptap/vue-3';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
editor: Editor;
|
|
4
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
editor: Editor;
|
|
6
|
+
}>>>, {}, {}>;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
9
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
10
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
11
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
12
|
+
} : {
|
|
13
|
+
type: import('vue').PropType<T[K]>;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Node as ProseMirrorNode, Decoration } from '../../tiptap/pm';
|
|
2
|
+
import type { Editor, Node } from '../../tiptap/vue-3';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
editor: Editor;
|
|
5
|
+
node: ProseMirrorNode;
|
|
6
|
+
decorations: Decoration[];
|
|
7
|
+
selected: boolean;
|
|
8
|
+
extension: Node<any, any>;
|
|
9
|
+
getPos: () => number;
|
|
10
|
+
updateAttributes: (attributes: Record<string, any>) => void;
|
|
11
|
+
deleteNode: () => void;
|
|
12
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
13
|
+
editor: Editor;
|
|
14
|
+
node: ProseMirrorNode;
|
|
15
|
+
decorations: Decoration[];
|
|
16
|
+
selected: boolean;
|
|
17
|
+
extension: Node<any, any>;
|
|
18
|
+
getPos: () => number;
|
|
19
|
+
updateAttributes: (attributes: Record<string, any>) => void;
|
|
20
|
+
deleteNode: () => void;
|
|
21
|
+
}>>>, {}, {}>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
25
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
26
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
27
|
+
} : {
|
|
28
|
+
type: import('vue').PropType<T[K]>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ExtensionOptions } from '../../types';
|
|
2
|
+
import { Node } from '../../tiptap/vue-3';
|
|
3
|
+
declare module "@/tiptap" {
|
|
4
|
+
interface Commands<ReturnType> {
|
|
5
|
+
iframe: {
|
|
6
|
+
setIframe: (options: {
|
|
7
|
+
src: string;
|
|
8
|
+
}) => ReturnType;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
declare const Iframe: Node<ExtensionOptions, any>;
|
|
13
|
+
export default Iframe;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { Editor } from '../../tiptap/vue-3';
|
|
2
|
+
import { type Component } from "vue";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
editor: Editor;
|
|
5
|
+
isActive: ({ editor }: {
|
|
6
|
+
editor: Editor;
|
|
7
|
+
}) => boolean;
|
|
8
|
+
visible?: (({ editor }: {
|
|
9
|
+
editor: Editor;
|
|
10
|
+
}) => boolean) | undefined;
|
|
11
|
+
icon?: Component | undefined;
|
|
12
|
+
title?: string | undefined;
|
|
13
|
+
action?: (({ editor }: {
|
|
14
|
+
editor: Editor;
|
|
15
|
+
}) => void) | undefined;
|
|
16
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
17
|
+
editor: Editor;
|
|
18
|
+
isActive: ({ editor }: {
|
|
19
|
+
editor: Editor;
|
|
20
|
+
}) => boolean;
|
|
21
|
+
visible?: (({ editor }: {
|
|
22
|
+
editor: Editor;
|
|
23
|
+
}) => boolean) | undefined;
|
|
24
|
+
icon?: Component | undefined;
|
|
25
|
+
title?: string | undefined;
|
|
26
|
+
action?: (({ editor }: {
|
|
27
|
+
editor: Editor;
|
|
28
|
+
}) => void) | undefined;
|
|
29
|
+
}>>>, {}, {}>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
32
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
33
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
34
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
35
|
+
} : {
|
|
36
|
+
type: import('vue').PropType<T[K]>;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { Editor } from '../../tiptap/vue-3';
|
|
2
|
+
import { type Component } from "vue";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
editor: Editor;
|
|
5
|
+
isActive: ({ editor }: {
|
|
6
|
+
editor: Editor;
|
|
7
|
+
}) => boolean;
|
|
8
|
+
visible?: (({ editor }: {
|
|
9
|
+
editor: Editor;
|
|
10
|
+
}) => boolean) | undefined;
|
|
11
|
+
icon?: Component | undefined;
|
|
12
|
+
title?: string | undefined;
|
|
13
|
+
action?: (({ editor }: {
|
|
14
|
+
editor: Editor;
|
|
15
|
+
}) => void) | undefined;
|
|
16
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
17
|
+
editor: Editor;
|
|
18
|
+
isActive: ({ editor }: {
|
|
19
|
+
editor: Editor;
|
|
20
|
+
}) => boolean;
|
|
21
|
+
visible?: (({ editor }: {
|
|
22
|
+
editor: Editor;
|
|
23
|
+
}) => boolean) | undefined;
|
|
24
|
+
icon?: Component | undefined;
|
|
25
|
+
title?: string | undefined;
|
|
26
|
+
action?: (({ editor }: {
|
|
27
|
+
editor: Editor;
|
|
28
|
+
}) => void) | undefined;
|
|
29
|
+
}>>>, {}, {}>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
32
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
33
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
34
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
35
|
+
} : {
|
|
36
|
+
type: import('vue').PropType<T[K]>;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { Editor } from '../../tiptap/vue-3';
|
|
2
|
+
import { type Component } from "vue";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
editor: Editor;
|
|
5
|
+
isActive: ({ editor }: {
|
|
6
|
+
editor: Editor;
|
|
7
|
+
}) => boolean;
|
|
8
|
+
visible?: (({ editor }: {
|
|
9
|
+
editor: Editor;
|
|
10
|
+
}) => boolean) | undefined;
|
|
11
|
+
icon?: Component | undefined;
|
|
12
|
+
title?: string | undefined;
|
|
13
|
+
action?: (({ editor }: {
|
|
14
|
+
editor: Editor;
|
|
15
|
+
}) => void) | undefined;
|
|
16
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
17
|
+
editor: Editor;
|
|
18
|
+
isActive: ({ editor }: {
|
|
19
|
+
editor: Editor;
|
|
20
|
+
}) => boolean;
|
|
21
|
+
visible?: (({ editor }: {
|
|
22
|
+
editor: Editor;
|
|
23
|
+
}) => boolean) | undefined;
|
|
24
|
+
icon?: Component | undefined;
|
|
25
|
+
title?: string | undefined;
|
|
26
|
+
action?: (({ editor }: {
|
|
27
|
+
editor: Editor;
|
|
28
|
+
}) => void) | undefined;
|
|
29
|
+
}>>>, {}, {}>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
32
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
33
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
34
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
35
|
+
} : {
|
|
36
|
+
type: import('vue').PropType<T[K]>;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { Editor } from '../../tiptap/vue-3';
|
|
2
|
+
import { type Component } from "vue";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
editor: Editor;
|
|
5
|
+
isActive?: (({ editor }: {
|
|
6
|
+
editor: Editor;
|
|
7
|
+
}) => boolean) | undefined;
|
|
8
|
+
visible?: (({ editor }: {
|
|
9
|
+
editor: Editor;
|
|
10
|
+
}) => boolean) | undefined;
|
|
11
|
+
icon?: Component | undefined;
|
|
12
|
+
title?: string | undefined;
|
|
13
|
+
action?: (({ editor }: {
|
|
14
|
+
editor: Editor;
|
|
15
|
+
}) => void) | undefined;
|
|
16
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
17
|
+
editor: Editor;
|
|
18
|
+
isActive?: (({ editor }: {
|
|
19
|
+
editor: Editor;
|
|
20
|
+
}) => boolean) | undefined;
|
|
21
|
+
visible?: (({ editor }: {
|
|
22
|
+
editor: Editor;
|
|
23
|
+
}) => boolean) | undefined;
|
|
24
|
+
icon?: Component | undefined;
|
|
25
|
+
title?: string | undefined;
|
|
26
|
+
action?: (({ editor }: {
|
|
27
|
+
editor: Editor;
|
|
28
|
+
}) => void) | undefined;
|
|
29
|
+
}>>>, {}, {}>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
32
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
33
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
34
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
35
|
+
} : {
|
|
36
|
+
type: import('vue').PropType<T[K]>;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
};
|