@halo-dev/richtext-editor 2.14.0 → 2.16.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 +4 -3
- package/dist/components/EditorBubbleMenu.vue.d.ts +5 -4
- package/dist/components/EditorHeader.vue.d.ts +3 -2
- package/dist/components/block/BlockActionButton.vue.d.ts +2 -2
- package/dist/components/block/BlockActionInput.vue.d.ts +3 -3
- package/dist/components/block/BlockActionSeparator.vue.d.ts +1 -1
- package/dist/components/block/BlockCard.vue.d.ts +4 -3
- package/dist/components/block/index.d.ts +4 -4
- package/dist/components/bubble/BubbleItem.vue.d.ts +5 -4
- package/dist/components/bubble/BubbleMenu.vue.d.ts +91 -0
- package/dist/components/bubble/BubbleMenuPlugin.d.ts +3 -3
- package/dist/components/bubble/index.d.ts +2 -2
- package/dist/components/common/ColorPickerDropdown.vue.d.ts +3 -3
- package/dist/components/icon/MdiDeleteForeverOutline.vue.d.ts +1 -1
- package/dist/components/index.d.ts +7 -7
- package/dist/components/toolbar/ToolbarItem.vue.d.ts +11 -4
- package/dist/components/toolbar/ToolbarSubItem.vue.d.ts +5 -4
- package/dist/components/toolbar/index.d.ts +2 -2
- package/dist/components/toolbox/ToolboxItem.vue.d.ts +5 -4
- package/dist/components/toolbox/index.d.ts +1 -1
- package/dist/extensions/audio/AudioView.vue.d.ts +5 -4
- package/dist/extensions/audio/BubbleItemAudioLink.vue.d.ts +5 -4
- package/dist/extensions/audio/index.d.ts +2 -1
- package/dist/extensions/blockquote/index.d.ts +3 -2
- package/dist/extensions/bold/index.d.ts +3 -2
- package/dist/extensions/bullet-list/index.d.ts +3 -2
- package/dist/extensions/clear-format/index.d.ts +5 -0
- package/dist/extensions/code/index.d.ts +3 -2
- package/dist/extensions/code-block/CodeBlockViewRenderer.vue.d.ts +5 -4
- package/dist/extensions/code-block/code-block.d.ts +2 -1
- package/dist/extensions/code-block/index.d.ts +2 -2
- package/dist/extensions/code-block/lowlight.d.ts +4 -4
- package/dist/extensions/color/ColorBubbleItem.vue.d.ts +5 -4
- package/dist/extensions/color/ColorToolbarItem.vue.d.ts +6 -5
- package/dist/extensions/color/index.d.ts +3 -2
- package/dist/extensions/columns/column.d.ts +1 -0
- package/dist/extensions/columns/columns.d.ts +1 -0
- package/dist/extensions/columns/index.d.ts +2 -2
- package/dist/extensions/commands-menu/CommandsView.vue.d.ts +5 -4
- package/dist/extensions/commands-menu/commands.d.ts +1 -0
- package/dist/extensions/commands-menu/index.d.ts +1 -1
- package/dist/extensions/draggable/index.d.ts +2 -2
- package/dist/extensions/font-size/index.d.ts +1 -0
- package/dist/extensions/format-brush/index.d.ts +16 -0
- package/dist/extensions/format-brush/util.d.ts +28 -0
- package/dist/extensions/heading/index.d.ts +3 -2
- package/dist/extensions/highlight/HighlightBubbleItem.vue.d.ts +5 -4
- package/dist/extensions/highlight/HighlightToolbarItem.vue.d.ts +6 -5
- package/dist/extensions/highlight/index.d.ts +3 -2
- package/dist/extensions/history/index.d.ts +3 -2
- package/dist/extensions/iframe/BubbleItemIframeLink.vue.d.ts +5 -4
- package/dist/extensions/iframe/BubbleItemIframeSize.vue.d.ts +4 -3
- package/dist/extensions/iframe/IframeView.vue.d.ts +5 -4
- package/dist/extensions/iframe/index.d.ts +2 -1
- package/dist/extensions/image/BubbleItemImageAlt.vue.d.ts +5 -4
- package/dist/extensions/image/BubbleItemImageHref.vue.d.ts +5 -4
- package/dist/extensions/image/BubbleItemImageLink.vue.d.ts +5 -4
- package/dist/extensions/image/BubbleItemImageSize.vue.d.ts +5 -4
- package/dist/extensions/image/ImageView.vue.d.ts +5 -4
- package/dist/extensions/image/index.d.ts +3 -2
- package/dist/extensions/indent/index.d.ts +2 -1
- package/dist/extensions/index.d.ts +45 -42
- package/dist/extensions/italic/index.d.ts +3 -2
- package/dist/extensions/link/LinkBubbleButton.vue.d.ts +5 -4
- package/dist/extensions/link/index.d.ts +3 -2
- package/dist/extensions/list-keymap/index.d.ts +3 -2
- package/dist/extensions/node-selected/index.d.ts +1 -0
- package/dist/extensions/ordered-list/index.d.ts +3 -2
- package/dist/extensions/paragraph/index.d.ts +4 -3
- package/dist/extensions/search-and-replace/SearchAndReplace.vue.d.ts +6 -5
- package/dist/extensions/search-and-replace/SearchAndReplacePlugin.d.ts +2 -1
- package/dist/extensions/search-and-replace/index.d.ts +2 -1
- package/dist/extensions/strike/index.d.ts +3 -2
- package/dist/extensions/subscript/index.d.ts +3 -2
- package/dist/extensions/superscript/index.d.ts +3 -2
- package/dist/extensions/table/index.d.ts +3 -2
- package/dist/extensions/table/table-cell.d.ts +1 -0
- package/dist/extensions/table/table-header.d.ts +1 -0
- package/dist/extensions/table/table-row.d.ts +1 -1
- package/dist/extensions/table/util.d.ts +20 -2
- package/dist/extensions/task-list/index.d.ts +3 -2
- package/dist/extensions/text/index.d.ts +2 -1
- package/dist/extensions/text-align/index.d.ts +3 -2
- package/dist/extensions/trailing-node/index.d.ts +1 -0
- package/dist/extensions/underline/index.d.ts +3 -2
- package/dist/extensions/video/BubbleItemVideoLink.vue.d.ts +5 -4
- package/dist/extensions/video/BubbleItemVideoSize.vue.d.ts +5 -4
- package/dist/extensions/video/VideoView.vue.d.ts +5 -4
- package/dist/extensions/video/index.d.ts +2 -1
- package/dist/index.d.ts +6 -10
- package/dist/locales/index.d.ts +1 -1
- package/dist/rich-text-editor.es.js +12561 -11260
- package/dist/rich-text-editor.iife.js +58 -63
- package/dist/style.css +1 -1
- package/dist/tiptap/core/index.d.ts +1 -1
- package/dist/tiptap/index.d.ts +6 -6
- package/dist/tiptap/pm/index.d.ts +20 -20
- package/dist/tiptap/vue-3/index.d.ts +1 -1
- package/dist/types/index.d.ts +4 -3
- package/dist/utils/delete-node.d.ts +2 -1
- package/dist/utils/index.d.ts +2 -2
- package/package.json +44 -42
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as ExtensionColumns } from
|
|
2
|
-
export { default as ExtensionColumn } from
|
|
1
|
+
export { default as ExtensionColumns } from './columns';
|
|
2
|
+
export { default as ExtensionColumn } from './column';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { CommandMenuItem } from '../../types';
|
|
3
|
+
|
|
3
4
|
declare function onKeyDown({ event }: {
|
|
4
5
|
event: KeyboardEvent;
|
|
5
6
|
}): boolean;
|
|
6
|
-
declare const _default: import(
|
|
7
|
+
declare const _default: import('vue').DefineComponent<{
|
|
7
8
|
items: {
|
|
8
9
|
type: PropType<CommandMenuItem[]>;
|
|
9
10
|
required: true;
|
|
@@ -14,7 +15,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14
15
|
};
|
|
15
16
|
}, {
|
|
16
17
|
onKeyDown: typeof onKeyDown;
|
|
17
|
-
}, unknown, {}, {}, import(
|
|
18
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
18
19
|
items: {
|
|
19
20
|
type: PropType<CommandMenuItem[]>;
|
|
20
21
|
required: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as ExtensionCommands } from
|
|
1
|
+
export { default as ExtensionCommands } from './commands';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Extension } from '../../tiptap/vue-3';
|
|
2
|
-
import { Node, ResolvedPos } from '../../tiptap/pm';
|
|
3
|
-
|
|
2
|
+
import { Node, ResolvedPos, EditorView } from '../../tiptap/pm';
|
|
3
|
+
|
|
4
4
|
export interface ActiveNode {
|
|
5
5
|
$pos: ResolvedPos;
|
|
6
6
|
node: Node;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Extension } from '../../tiptap';
|
|
2
|
+
|
|
3
|
+
declare module "@/tiptap" {
|
|
4
|
+
interface Commands<ReturnType> {
|
|
5
|
+
formatBrush: {
|
|
6
|
+
copyFormatBrush: () => ReturnType;
|
|
7
|
+
pasteFormatBrush: () => ReturnType;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export interface FormatBrushStore {
|
|
12
|
+
formatBrush: boolean;
|
|
13
|
+
formatBrushMarks: any[];
|
|
14
|
+
}
|
|
15
|
+
declare const formatBrush: Extension<any, FormatBrushStore>;
|
|
16
|
+
export default formatBrush;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { EditorState, MarkRange, Transaction } from '../../tiptap';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* get its marks through the first text node in the selector
|
|
5
|
+
*
|
|
6
|
+
* @param state editor state
|
|
7
|
+
* @returns the marks of the current first text node
|
|
8
|
+
*/
|
|
9
|
+
export declare const getMarksByFirstTextNode: (state: EditorState) => MarkRange[];
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* Set marks for the text in the currently selected content. This method will first remove all marks
|
|
13
|
+
* from the currently selected text, and then add marks again.
|
|
14
|
+
*
|
|
15
|
+
* For CellSelection, it is necessary to iterate through ranges and set marks for each range.
|
|
16
|
+
*
|
|
17
|
+
* @param state editor state
|
|
18
|
+
* @param marks the marks to be set
|
|
19
|
+
* @param transaction transaction
|
|
20
|
+
*
|
|
21
|
+
* @returns transaction
|
|
22
|
+
*
|
|
23
|
+
* */
|
|
24
|
+
export declare const setMarks: (state: EditorState, marks: MarkRange[], transaction?: Transaction) => Transaction;
|
|
25
|
+
export declare const setMarksByRange: (tr: Transaction, state: EditorState, range: {
|
|
26
|
+
from: number;
|
|
27
|
+
to: number;
|
|
28
|
+
}, marks: MarkRange[]) => void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { HeadingOptions } from '@tiptap/extension-heading';
|
|
2
|
+
import { ExtensionOptions } from '../../types';
|
|
3
|
+
|
|
3
4
|
declare const Blockquote: import('../../tiptap').Node<ExtensionOptions & HeadingOptions, any>;
|
|
4
5
|
export default Blockquote;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { Editor } from '../../tiptap/vue-3';
|
|
2
|
+
import { Component } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
5
|
editor: Editor;
|
|
5
6
|
isActive: ({ editor }: {
|
|
6
7
|
editor: Editor;
|
|
@@ -13,7 +14,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
13
14
|
action?: (({ editor }: {
|
|
14
15
|
editor: Editor;
|
|
15
16
|
}) => void) | undefined;
|
|
16
|
-
}>, {}, unknown, {}, {}, import(
|
|
17
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
17
18
|
editor: Editor;
|
|
18
19
|
isActive: ({ editor }: {
|
|
19
20
|
editor: Editor;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
import { Editor } from '../../tiptap/vue-3';
|
|
3
|
+
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
5
|
editor?: Editor | undefined;
|
|
5
6
|
isActive?: boolean | undefined;
|
|
6
7
|
disabled?: boolean | undefined;
|
|
@@ -14,7 +15,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
14
15
|
title: undefined;
|
|
15
16
|
action: undefined;
|
|
16
17
|
icon: undefined;
|
|
17
|
-
}>, {}, unknown, {}, {}, import(
|
|
18
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
18
19
|
editor?: Editor | undefined;
|
|
19
20
|
isActive?: boolean | undefined;
|
|
20
21
|
disabled?: boolean | undefined;
|
|
@@ -30,11 +31,11 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
30
31
|
icon: undefined;
|
|
31
32
|
}>>>, {
|
|
32
33
|
editor: Editor;
|
|
34
|
+
disabled: boolean;
|
|
33
35
|
title: string;
|
|
34
36
|
isActive: boolean;
|
|
35
37
|
icon: Component;
|
|
36
38
|
action: () => void;
|
|
37
|
-
disabled: boolean;
|
|
38
39
|
}, {}>;
|
|
39
40
|
export default _default;
|
|
40
41
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { HighlightOptions } from '@tiptap/extension-highlight';
|
|
2
|
+
import { ExtensionOptions } from '../../types';
|
|
3
|
+
|
|
3
4
|
declare const Highlight: import('../../tiptap/vue-3').Mark<ExtensionOptions & HighlightOptions, any>;
|
|
4
5
|
export default Highlight;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { HistoryOptions } from '@tiptap/extension-history';
|
|
2
|
+
import { ExtensionOptions } from '../../types';
|
|
3
|
+
|
|
3
4
|
declare const History: import('../../tiptap/vue-3').Extension<ExtensionOptions & HistoryOptions, any>;
|
|
4
5
|
export default History;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { Editor } from '../../tiptap/vue-3';
|
|
2
|
+
import { Component } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
5
|
editor: Editor;
|
|
5
6
|
isActive: ({ editor }: {
|
|
6
7
|
editor: Editor;
|
|
@@ -13,7 +14,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
13
14
|
action?: (({ editor }: {
|
|
14
15
|
editor: Editor;
|
|
15
16
|
}) => void) | undefined;
|
|
16
|
-
}>, {}, unknown, {}, {}, import(
|
|
17
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
17
18
|
editor: Editor;
|
|
18
19
|
isActive: ({ editor }: {
|
|
19
20
|
editor: Editor;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { Editor } from '../../tiptap/vue-3';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
4
|
editor: Editor;
|
|
4
|
-
}>, {}, unknown, {}, {}, import(
|
|
5
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
6
|
editor: Editor;
|
|
6
7
|
}>>>, {}, {}>;
|
|
7
8
|
export default _default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { Node as ProseMirrorNode, Decoration } from '../../tiptap/pm';
|
|
2
|
+
import { Editor, Node } from '../../tiptap/vue-3';
|
|
3
|
+
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
5
|
editor: Editor;
|
|
5
6
|
node: ProseMirrorNode;
|
|
6
7
|
decorations: Decoration[];
|
|
@@ -9,7 +10,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
9
10
|
getPos: () => number;
|
|
10
11
|
updateAttributes: (attributes: Record<string, any>) => void;
|
|
11
12
|
deleteNode: () => void;
|
|
12
|
-
}>, {}, unknown, {}, {}, import(
|
|
13
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
13
14
|
editor: Editor;
|
|
14
15
|
node: ProseMirrorNode;
|
|
15
16
|
decorations: Decoration[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { Editor } from '../../tiptap/vue-3';
|
|
2
|
+
import { Component } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
5
|
editor: Editor;
|
|
5
6
|
isActive: ({ editor }: {
|
|
6
7
|
editor: Editor;
|
|
@@ -13,7 +14,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
13
14
|
action?: (({ editor }: {
|
|
14
15
|
editor: Editor;
|
|
15
16
|
}) => void) | undefined;
|
|
16
|
-
}>, {}, unknown, {}, {}, import(
|
|
17
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
17
18
|
editor: Editor;
|
|
18
19
|
isActive: ({ editor }: {
|
|
19
20
|
editor: Editor;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { Editor } from '../../tiptap/vue-3';
|
|
2
|
+
import { Component } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
5
|
editor: Editor;
|
|
5
6
|
isActive: ({ editor }: {
|
|
6
7
|
editor: Editor;
|
|
@@ -13,7 +14,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
13
14
|
action?: (({ editor }: {
|
|
14
15
|
editor: Editor;
|
|
15
16
|
}) => void) | undefined;
|
|
16
|
-
}>, {}, unknown, {}, {}, import(
|
|
17
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
17
18
|
editor: Editor;
|
|
18
19
|
isActive: ({ editor }: {
|
|
19
20
|
editor: Editor;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { Editor } from '../../tiptap/vue-3';
|
|
2
|
+
import { Component } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
5
|
editor: Editor;
|
|
5
6
|
isActive: ({ editor }: {
|
|
6
7
|
editor: Editor;
|
|
@@ -13,7 +14,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
13
14
|
action?: (({ editor }: {
|
|
14
15
|
editor: Editor;
|
|
15
16
|
}) => void) | undefined;
|
|
16
|
-
}>, {}, unknown, {}, {}, import(
|
|
17
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
17
18
|
editor: Editor;
|
|
18
19
|
isActive: ({ editor }: {
|
|
19
20
|
editor: Editor;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { Editor } from '../../tiptap/vue-3';
|
|
2
|
+
import { Component } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
5
|
editor: Editor;
|
|
5
6
|
isActive?: (({ editor }: {
|
|
6
7
|
editor: Editor;
|
|
@@ -13,7 +14,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
13
14
|
action?: (({ editor }: {
|
|
14
15
|
editor: Editor;
|
|
15
16
|
}) => void) | undefined;
|
|
16
|
-
}>, {}, unknown, {}, {}, import(
|
|
17
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
17
18
|
editor: Editor;
|
|
18
19
|
isActive?: (({ editor }: {
|
|
19
20
|
editor: Editor;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { Editor, Node } from '../../tiptap/vue-3';
|
|
2
|
+
import { Node as ProseMirrorNode, Decoration } from '../../tiptap/pm';
|
|
3
|
+
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
5
|
editor: Editor;
|
|
5
6
|
node: ProseMirrorNode;
|
|
6
7
|
decorations: Decoration[];
|
|
@@ -9,7 +10,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
9
10
|
getPos: () => number;
|
|
10
11
|
updateAttributes: (attributes: Record<string, any>) => void;
|
|
11
12
|
deleteNode: () => void;
|
|
12
|
-
}>, {}, unknown, {}, {}, import(
|
|
13
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
13
14
|
editor: Editor;
|
|
14
15
|
node: ProseMirrorNode;
|
|
15
16
|
decorations: Decoration[];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { ImageOptions } from '@tiptap/extension-image';
|
|
2
|
+
import { ExtensionOptions } from '../../types';
|
|
3
|
+
|
|
3
4
|
declare const Image: import('../../tiptap/vue-3').Node<ExtensionOptions & ImageOptions, any>;
|
|
4
5
|
export default Image;
|
|
@@ -1,43 +1,46 @@
|
|
|
1
|
-
import ExtensionHistory from
|
|
2
|
-
import ExtensionHeading from
|
|
3
|
-
import ExtensionBold from
|
|
4
|
-
import ExtensionItalic from
|
|
5
|
-
import ExtensionStrike from
|
|
6
|
-
import ExtensionUnderline from
|
|
7
|
-
import ExtensionHighlight from
|
|
8
|
-
import ExtensionBlockquote from
|
|
9
|
-
import ExtensionCode from
|
|
10
|
-
import ExtensionSuperscript from
|
|
11
|
-
import ExtensionSubscript from
|
|
12
|
-
import ExtensionBulletList from
|
|
13
|
-
import ExtensionOrderedList from
|
|
14
|
-
import ExtensionTaskList from
|
|
15
|
-
import ExtensionListKeymap from
|
|
16
|
-
import ExtensionTable from
|
|
17
|
-
import ExtensionTextAlign from
|
|
18
|
-
import ExtensionTextStyle from
|
|
19
|
-
import ExtensionLink from
|
|
20
|
-
import ExtensionColor from
|
|
21
|
-
import ExtensionFontSize from
|
|
22
|
-
import ExtensionDropcursor from
|
|
23
|
-
import ExtensionGapcursor from
|
|
24
|
-
import ExtensionHardBreak from
|
|
25
|
-
import ExtensionHorizontalRule from
|
|
26
|
-
import ExtensionDocument from
|
|
27
|
-
import ExtensionParagraph from
|
|
28
|
-
import ExtensionPlaceholder from
|
|
29
|
-
import { ExtensionCommands } from
|
|
1
|
+
import { default as ExtensionHistory } from './history';
|
|
2
|
+
import { default as ExtensionHeading } from './heading';
|
|
3
|
+
import { default as ExtensionBold } from './bold';
|
|
4
|
+
import { default as ExtensionItalic } from './italic';
|
|
5
|
+
import { default as ExtensionStrike } from './strike';
|
|
6
|
+
import { default as ExtensionUnderline } from './underline';
|
|
7
|
+
import { default as ExtensionHighlight } from './highlight';
|
|
8
|
+
import { default as ExtensionBlockquote } from './blockquote';
|
|
9
|
+
import { default as ExtensionCode } from './code';
|
|
10
|
+
import { default as ExtensionSuperscript } from './superscript';
|
|
11
|
+
import { default as ExtensionSubscript } from './subscript';
|
|
12
|
+
import { default as ExtensionBulletList } from './bullet-list';
|
|
13
|
+
import { default as ExtensionOrderedList } from './ordered-list';
|
|
14
|
+
import { default as ExtensionTaskList } from './task-list';
|
|
15
|
+
import { default as ExtensionListKeymap } from './list-keymap';
|
|
16
|
+
import { default as ExtensionTable } from './table';
|
|
17
|
+
import { default as ExtensionTextAlign } from './text-align';
|
|
18
|
+
import { default as ExtensionTextStyle } from '@tiptap/extension-text-style';
|
|
19
|
+
import { default as ExtensionLink } from './link';
|
|
20
|
+
import { default as ExtensionColor } from './color';
|
|
21
|
+
import { default as ExtensionFontSize } from './font-size';
|
|
22
|
+
import { default as ExtensionDropcursor } from '@tiptap/extension-dropcursor';
|
|
23
|
+
import { default as ExtensionGapcursor } from '@tiptap/extension-gapcursor';
|
|
24
|
+
import { default as ExtensionHardBreak } from '@tiptap/extension-hard-break';
|
|
25
|
+
import { default as ExtensionHorizontalRule } from '@tiptap/extension-horizontal-rule';
|
|
26
|
+
import { default as ExtensionDocument } from '@tiptap/extension-document';
|
|
27
|
+
import { default as ExtensionParagraph } from './paragraph';
|
|
28
|
+
import { default as ExtensionPlaceholder } from '@tiptap/extension-placeholder';
|
|
29
|
+
import { ExtensionCommands } from '../extensions/commands-menu';
|
|
30
30
|
import { ExtensionCodeBlock, lowlight } from './code-block';
|
|
31
|
-
import ExtensionIframe from
|
|
32
|
-
import ExtensionVideo from
|
|
33
|
-
import ExtensionAudio from
|
|
34
|
-
import ExtensionImage from
|
|
35
|
-
import ExtensionIndent from
|
|
36
|
-
import { ExtensionColumns, ExtensionColumn } from
|
|
37
|
-
import ExtensionText from
|
|
38
|
-
import ExtensionDraggable from
|
|
39
|
-
import ExtensionNodeSelected from
|
|
40
|
-
import ExtensionTrailingNode from
|
|
41
|
-
import ExtensionSearchAndReplace from
|
|
42
|
-
|
|
43
|
-
|
|
31
|
+
import { default as ExtensionIframe } from './iframe';
|
|
32
|
+
import { default as ExtensionVideo } from './video';
|
|
33
|
+
import { default as ExtensionAudio } from './audio';
|
|
34
|
+
import { default as ExtensionImage } from './image';
|
|
35
|
+
import { default as ExtensionIndent } from './indent';
|
|
36
|
+
import { ExtensionColumns, ExtensionColumn } from './columns';
|
|
37
|
+
import { default as ExtensionText } from './text';
|
|
38
|
+
import { default as ExtensionDraggable } from './draggable';
|
|
39
|
+
import { default as ExtensionNodeSelected } from './node-selected';
|
|
40
|
+
import { default as ExtensionTrailingNode } from './trailing-node';
|
|
41
|
+
import { default as ExtensionSearchAndReplace } from './search-and-replace';
|
|
42
|
+
import { default as ExtensionClearFormat } from './clear-format';
|
|
43
|
+
import { default as ExtensionFormatBrush } from './format-brush';
|
|
44
|
+
|
|
45
|
+
declare const allExtensions: (import('@tiptap/core').Extension<any, any> | import('@tiptap/core').Node<any, any> | import('@tiptap/core').Mark<import('../types').ExtensionOptions & import('@tiptap/extension-superscript').SuperscriptExtensionOptions, any>)[];
|
|
46
|
+
export { allExtensions, ExtensionBlockquote, ExtensionBold, ExtensionBulletList, ExtensionCode, ExtensionDocument, ExtensionDropcursor, ExtensionGapcursor, ExtensionHardBreak, ExtensionHeading, ExtensionHistory, ExtensionHorizontalRule, ExtensionItalic, ExtensionOrderedList, ExtensionStrike, ExtensionText, ExtensionImage, ExtensionTaskList, ExtensionLink, ExtensionTextAlign, ExtensionTextStyle, ExtensionUnderline, ExtensionTable, ExtensionSubscript, ExtensionSuperscript, ExtensionParagraph, ExtensionPlaceholder, ExtensionHighlight, ExtensionCommands, ExtensionCodeBlock, lowlight, ExtensionIframe, ExtensionVideo, ExtensionAudio, ExtensionColor, ExtensionFontSize, ExtensionIndent, ExtensionDraggable, ExtensionColumns, ExtensionColumn, ExtensionNodeSelected, ExtensionTrailingNode, ExtensionListKeymap, ExtensionSearchAndReplace, ExtensionClearFormat, ExtensionFormatBrush, };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { ItalicOptions } from '@tiptap/extension-italic';
|
|
2
|
+
import { ExtensionOptions } from '../../types';
|
|
3
|
+
|
|
3
4
|
declare const Italic: import('../../tiptap/vue-3').Mark<ExtensionOptions & ItalicOptions, any>;
|
|
4
5
|
export default Italic;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
import { Editor } from '../../tiptap/vue-3';
|
|
3
|
+
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
5
|
editor: Editor;
|
|
5
6
|
isActive: ({ editor }: {
|
|
6
7
|
editor: Editor;
|
|
@@ -13,7 +14,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
13
14
|
action?: (({ editor }: {
|
|
14
15
|
editor: Editor;
|
|
15
16
|
}) => void) | undefined;
|
|
16
|
-
}>, {}, unknown, {}, {}, import(
|
|
17
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
17
18
|
editor: Editor;
|
|
18
19
|
isActive: ({ editor }: {
|
|
19
20
|
editor: Editor;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { LinkOptions } from '@tiptap/extension-link';
|
|
2
|
+
import { ExtensionOptions } from '../../types';
|
|
3
|
+
|
|
3
4
|
declare const Link: import('../../tiptap/vue-3').Mark<ExtensionOptions & LinkOptions, any>;
|
|
4
5
|
export default Link;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ListKeymapOptions } from '@tiptap/extension-list-keymap';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
* Optimize the listKeymap extension until the issue with @tiptap/extension-list-keymap is resolved.
|
|
4
5
|
* https://github.com/ueberdosis/tiptap/issues/4395
|
|
5
6
|
*/
|
|
6
|
-
declare const ExtensionListKeymap: import(
|
|
7
|
+
declare const ExtensionListKeymap: import('@tiptap/core').Extension<ListKeymapOptions, any>;
|
|
7
8
|
export default ExtensionListKeymap;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { OrderedListOptions } from '@tiptap/extension-ordered-list';
|
|
2
|
+
import { ExtensionOptions } from '../../types';
|
|
3
|
+
|
|
3
4
|
declare const OrderedList: import('../../tiptap/vue-3').Node<ExtensionOptions & OrderedListOptions, any>;
|
|
4
5
|
export default OrderedList;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { ParagraphOptions } from '@tiptap/extension-paragraph';
|
|
2
|
+
import { ExtensionOptions } from '../../types';
|
|
3
|
+
|
|
4
|
+
declare const Paragraph: import('../../tiptap').Node<ExtensionOptions & ParagraphOptions, any>;
|
|
4
5
|
export default Paragraph;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { PluginKey, Editor } from '../../tiptap';
|
|
3
|
+
import { SearchAndReplacePluginState } from './SearchAndReplacePlugin';
|
|
4
|
+
|
|
5
|
+
declare const _default: import('vue').DefineComponent<{
|
|
5
6
|
editor: {
|
|
6
7
|
type: PropType<Editor>;
|
|
7
8
|
required: true;
|
|
@@ -14,7 +15,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14
15
|
type: BooleanConstructor;
|
|
15
16
|
default: boolean;
|
|
16
17
|
};
|
|
17
|
-
}, {}, unknown, {}, {}, import(
|
|
18
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
18
19
|
editor: {
|
|
19
20
|
type: PropType<Editor>;
|
|
20
21
|
required: true;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PMNode, Selection } from '../../tiptap';
|
|
2
2
|
import { Decoration, EditorView, Plugin, PluginKey, Transaction } from '../../tiptap/pm';
|
|
3
3
|
import { Editor } from '../../tiptap/vue-3';
|
|
4
|
+
|
|
4
5
|
export interface SearchAndReplacePluginProps {
|
|
5
6
|
editor: Editor;
|
|
6
7
|
element: HTMLElement;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { StrikeOptions } from '@tiptap/extension-strike';
|
|
2
|
+
import { ExtensionOptions } from '../../types';
|
|
3
|
+
|
|
3
4
|
declare const Strike: import('../../tiptap/vue-3').Mark<ExtensionOptions & StrikeOptions, any>;
|
|
4
5
|
export default Strike;
|