@halo-dev/richtext-editor 2.15.0 → 2.17.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 +8 -7
- 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 +7 -6
- 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 +6 -5
- 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 +2 -1
- 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 +1 -0
- package/dist/extensions/format-brush/util.d.ts +2 -1
- package/dist/extensions/gap-cursor/gap-cursor-selection.d.ts +45 -0
- package/dist/extensions/gap-cursor/index.d.ts +42 -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 +46 -44
- 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 +6 -2
- package/dist/extensions/range-selection/index.d.ts +23 -0
- package/dist/extensions/range-selection/range-selection.d.ts +65 -0
- 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 +2 -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 +31719 -30397
- package/dist/rich-text-editor.iife.js +60 -66
- package/dist/style.css +5 -5
- 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 +4 -1
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/is-allowed-uri.d.ts +1 -0
- package/dist/utils/isNodeEmpty.d.ts +5 -0
- package/package.json +41 -42
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { ExtensionOptions } from '../../types';
|
|
2
|
+
import { ColorOptions } from '@tiptap/extension-color';
|
|
3
|
+
|
|
3
4
|
declare const Color: import('../../tiptap/vue-3').Extension<ColorOptions & ExtensionOptions, any>;
|
|
4
5
|
export default Color;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as
|
|
2
|
-
export { default as
|
|
1
|
+
export { default as ExtensionColumn } from './column';
|
|
2
|
+
export { default as ExtensionColumns } from './columns';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { CommandMenuItem } from '../../types';
|
|
2
|
+
import { PropType } from 'vue';
|
|
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
|
+
import { EditorView, Node, ResolvedPos } from '../../tiptap/pm';
|
|
1
2
|
import { Extension } from '../../tiptap/vue-3';
|
|
2
|
-
|
|
3
|
-
import type { EditorView } from '../../tiptap/pm';
|
|
3
|
+
|
|
4
4
|
export interface ActiveNode {
|
|
5
5
|
$pos: ResolvedPos;
|
|
6
6
|
node: Node;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { PMNode } from '../../tiptap';
|
|
2
|
+
import { ResolvedPos, Selection, Slice, Mappable } from '../../tiptap/pm';
|
|
3
|
+
|
|
4
|
+
declare class GapCursorSelection extends Selection {
|
|
5
|
+
private start;
|
|
6
|
+
constructor($pos: ResolvedPos);
|
|
7
|
+
map(doc: PMNode, mapping: Mappable): Selection;
|
|
8
|
+
content(): Slice;
|
|
9
|
+
eq(other: Selection): boolean;
|
|
10
|
+
toJSON(): any;
|
|
11
|
+
get isStart(): boolean | null;
|
|
12
|
+
static fromJSON(doc: PMNode, json: any): GapCursorSelection;
|
|
13
|
+
getBookmark(): GapBookmark;
|
|
14
|
+
/**
|
|
15
|
+
* Validates if a GapCursor can be placed at the given position
|
|
16
|
+
*
|
|
17
|
+
* This function checks whether a GapCursor can be placed at the specified position in the document.
|
|
18
|
+
* It ensures that the position is not within a text block, and that the node at the position allows a GapCursor.
|
|
19
|
+
*
|
|
20
|
+
* @param {ResolvedPos} $pos - The resolved position in the document to validate.
|
|
21
|
+
* @returns {boolean} - Returns true if a GapCursor can be placed at the given position, false otherwise.
|
|
22
|
+
*/
|
|
23
|
+
static valid($pos: ResolvedPos): boolean;
|
|
24
|
+
static findGapCursorFrom($pos: ResolvedPos, dir: number, mustMove?: boolean): ResolvedPos | null;
|
|
25
|
+
}
|
|
26
|
+
declare class GapBookmark {
|
|
27
|
+
readonly pos: number;
|
|
28
|
+
constructor(pos: number);
|
|
29
|
+
map(mapping: Mappable): GapBookmark;
|
|
30
|
+
resolve(doc: PMNode): Selection | GapCursorSelection;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Checks if the position before the given resolved position is closed
|
|
34
|
+
*
|
|
35
|
+
* This function traverses up the document tree from the given resolved position and checks if the position
|
|
36
|
+
* immediately before it is closed. A position is considered closed if the previous node is closed or
|
|
37
|
+
* if the parent node is isolating.
|
|
38
|
+
*
|
|
39
|
+
* @param {ResolvedPos} $pos - The resolved position in the document to check.
|
|
40
|
+
* @returns {boolean} - Returns true if the position before the given position is closed, false otherwise.
|
|
41
|
+
*/
|
|
42
|
+
export declare function closedBefore($pos: ResolvedPos): boolean;
|
|
43
|
+
export declare function closedAfter($pos: ResolvedPos): boolean;
|
|
44
|
+
export declare function isNodeStart($pos: ResolvedPos): boolean | null;
|
|
45
|
+
export default GapCursorSelection;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Dispatch, EditorState, EditorView, ResolvedPos, Transaction } from '../../tiptap';
|
|
2
|
+
import { Extension, ParentConfig } from '../../tiptap/core';
|
|
3
|
+
import { Command } from '../../tiptap/pm';
|
|
4
|
+
|
|
5
|
+
declare module "@tiptap/core" {
|
|
6
|
+
interface NodeConfig<Options, Storage> {
|
|
7
|
+
allowGapCursor?: boolean | null | ((this: {
|
|
8
|
+
name: string;
|
|
9
|
+
options: Options;
|
|
10
|
+
storage: Storage;
|
|
11
|
+
parent: ParentConfig<NodeConfig<Options>>["allowGapCursor"];
|
|
12
|
+
}) => boolean | null);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Adds GapCursor to top-level nodes
|
|
17
|
+
*
|
|
18
|
+
* When the top-level nodes (nodes with a depth of 1 relative to the doc) have the {@link NodeConfig#allowGapCursor} attribute set to true,
|
|
19
|
+
* a GapCursor can be inserted before and after these nodes.
|
|
20
|
+
*
|
|
21
|
+
* This extension provides the ability to navigate between these nodes using the arrow keys.
|
|
22
|
+
*
|
|
23
|
+
* Note that some nodes and shortcuts may conflict with GapCursor due to their own behaviors, such as:
|
|
24
|
+
* - CodeBlock nodes
|
|
25
|
+
* - Backspace on an empty line
|
|
26
|
+
* - Tab key
|
|
27
|
+
*/
|
|
28
|
+
declare const GapCursor: Extension<any, any>;
|
|
29
|
+
export declare function handleBackspaceAtStart(pos: number, state: EditorState, dispatch: Dispatch): boolean;
|
|
30
|
+
export declare function handleInlineContent($beforePos: ResolvedPos, state: EditorState, dispatch: Dispatch): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Handles arrow key navigation for GapCursor
|
|
33
|
+
*
|
|
34
|
+
* This function determines the direction (vertical or horizontal) and
|
|
35
|
+
* the movement (positive or negative) based on the axis and direction parameters.
|
|
36
|
+
*
|
|
37
|
+
* @param {("vert" | "horiz")} axis - The axis of movement, either vertical ("vert") or horizontal ("horiz").
|
|
38
|
+
* @param {number} dir - The direction of movement, positive (1) or negative (-1).
|
|
39
|
+
*/
|
|
40
|
+
export declare function arrow(axis: "vert" | "horiz", dir: number): Command;
|
|
41
|
+
export declare const arrowGapCursor: (dir: number, dirStr: any, state: EditorState, view?: EditorView) => (tr: Transaction) => ResolvedPos | undefined;
|
|
42
|
+
export default GapCursor;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { ExtensionOptions } from '../../types';
|
|
2
|
+
import { HeadingOptions } from '@tiptap/extension-heading';
|
|
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 { Editor } from '../../tiptap/vue-3';
|
|
2
|
+
import { Component } from 'vue';
|
|
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,9 +31,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
30
31
|
icon: undefined;
|
|
31
32
|
}>>>, {
|
|
32
33
|
editor: Editor;
|
|
33
|
-
title: string;
|
|
34
34
|
isActive: boolean;
|
|
35
35
|
icon: Component;
|
|
36
|
+
title: string;
|
|
36
37
|
action: () => void;
|
|
37
38
|
disabled: boolean;
|
|
38
39
|
}, {}>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { ExtensionOptions } from '../../types';
|
|
2
|
+
import { HighlightOptions } from '@tiptap/extension-highlight';
|
|
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 { ExtensionOptions } from '../../types';
|
|
2
|
+
import { HistoryOptions } from '@tiptap/extension-history';
|
|
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 { Decoration, Node as ProseMirrorNode } 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 { Decoration, Node as ProseMirrorNode } 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,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { ExtensionOptions } from '../../types';
|
|
2
|
+
import { ImageOptions } from '@tiptap/extension-image';
|
|
3
|
+
|
|
3
4
|
declare const Image: import('../../tiptap/vue-3').Node<ExtensionOptions & ImageOptions, any>;
|
|
4
5
|
export default Image;
|
|
@@ -1,45 +1,47 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import ExtensionPlaceholder from "@tiptap/extension-placeholder";
|
|
29
|
-
import { ExtensionCommands } from "../extensions/commands-menu";
|
|
1
|
+
import { default as ExtensionDocument } from '@tiptap/extension-document';
|
|
2
|
+
import { default as ExtensionDropcursor } from '@tiptap/extension-dropcursor';
|
|
3
|
+
import { default as ExtensionHardBreak } from '@tiptap/extension-hard-break';
|
|
4
|
+
import { default as ExtensionHorizontalRule } from '@tiptap/extension-horizontal-rule';
|
|
5
|
+
import { default as ExtensionPlaceholder } from '@tiptap/extension-placeholder';
|
|
6
|
+
import { default as ExtensionTextStyle } from '@tiptap/extension-text-style';
|
|
7
|
+
import { default as ExtensionBlockquote } from './blockquote';
|
|
8
|
+
import { default as ExtensionBold } from './bold';
|
|
9
|
+
import { default as ExtensionBulletList } from './bullet-list';
|
|
10
|
+
import { default as ExtensionCode } from './code';
|
|
11
|
+
import { default as ExtensionColor } from './color';
|
|
12
|
+
import { default as ExtensionFontSize } from './font-size';
|
|
13
|
+
import { default as ExtensionHeading } from './heading';
|
|
14
|
+
import { default as ExtensionHighlight } from './highlight';
|
|
15
|
+
import { default as ExtensionHistory } from './history';
|
|
16
|
+
import { default as ExtensionItalic } from './italic';
|
|
17
|
+
import { default as ExtensionLink } from './link';
|
|
18
|
+
import { default as ExtensionListKeymap } from './list-keymap';
|
|
19
|
+
import { default as ExtensionOrderedList } from './ordered-list';
|
|
20
|
+
import { default as ExtensionParagraph } from './paragraph';
|
|
21
|
+
import { default as ExtensionStrike } from './strike';
|
|
22
|
+
import { default as ExtensionSubscript } from './subscript';
|
|
23
|
+
import { default as ExtensionSuperscript } from './superscript';
|
|
24
|
+
import { default as ExtensionTable } from './table';
|
|
25
|
+
import { default as ExtensionTaskList } from './task-list';
|
|
26
|
+
import { default as ExtensionTextAlign } from './text-align';
|
|
27
|
+
import { default as ExtensionUnderline } from './underline';
|
|
30
28
|
import { ExtensionCodeBlock, lowlight } from './code-block';
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import {
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
|
|
45
|
-
|
|
29
|
+
import { ExtensionCommands } from '../extensions/commands-menu';
|
|
30
|
+
import { default as ExtensionAudio } from './audio';
|
|
31
|
+
import { default as ExtensionClearFormat } from './clear-format';
|
|
32
|
+
import { ExtensionColumn, ExtensionColumns } from './columns';
|
|
33
|
+
import { default as ExtensionDraggable } from './draggable';
|
|
34
|
+
import { default as ExtensionFormatBrush } from './format-brush';
|
|
35
|
+
import { default as ExtensionGapcursor } from './gap-cursor';
|
|
36
|
+
import { default as ExtensionIframe } from './iframe';
|
|
37
|
+
import { default as ExtensionImage } from './image';
|
|
38
|
+
import { default as ExtensionIndent } from './indent';
|
|
39
|
+
import { default as ExtensionNodeSelected } from './node-selected';
|
|
40
|
+
import { ExtensionRangeSelection, RangeSelection } from './range-selection';
|
|
41
|
+
import { default as ExtensionSearchAndReplace } from './search-and-replace';
|
|
42
|
+
import { default as ExtensionText } from './text';
|
|
43
|
+
import { default as ExtensionTrailingNode } from './trailing-node';
|
|
44
|
+
import { default as ExtensionVideo } from './video';
|
|
45
|
+
|
|
46
|
+
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-subscript').SubscriptExtensionOptions, any>)[];
|
|
47
|
+
export { ExtensionAudio, ExtensionBlockquote, ExtensionBold, ExtensionBulletList, ExtensionClearFormat, ExtensionCode, ExtensionCodeBlock, ExtensionColor, ExtensionColumn, ExtensionColumns, ExtensionCommands, ExtensionDocument, ExtensionDraggable, ExtensionDropcursor, ExtensionFontSize, ExtensionFormatBrush, ExtensionGapcursor, ExtensionHardBreak, ExtensionHeading, ExtensionHighlight, ExtensionHistory, ExtensionHorizontalRule, ExtensionIframe, ExtensionImage, ExtensionIndent, ExtensionItalic, ExtensionLink, ExtensionListKeymap, ExtensionNodeSelected, ExtensionOrderedList, ExtensionParagraph, ExtensionPlaceholder, ExtensionRangeSelection, ExtensionSearchAndReplace, ExtensionStrike, ExtensionSubscript, ExtensionSuperscript, ExtensionTable, ExtensionTaskList, ExtensionText, ExtensionTextAlign, ExtensionTextStyle, ExtensionTrailingNode, ExtensionUnderline, ExtensionVideo, RangeSelection, allExtensions, lowlight, };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { ExtensionOptions } from '../../types';
|
|
2
|
+
import { ItalicOptions } from '@tiptap/extension-italic';
|
|
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 { 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,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { ExtensionOptions } from '../../types';
|
|
2
|
+
import { LinkOptions } from '@tiptap/extension-link';
|
|
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;
|