@halo-dev/richtext-editor 0.0.0-alpha.32 → 0.0.0-alpha.33
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 +1 -1
- package/dist/components/EditorBubbleMenu.vue.d.ts +1 -1
- package/dist/components/EditorHeader.vue.d.ts +1 -1
- package/dist/components/block/BlockCard.vue.d.ts +1 -1
- package/dist/components/block/index.d.ts +4 -0
- package/dist/components/bubble/BubbleItem.vue.d.ts +1 -1
- package/dist/components/bubble/BubbleMenuPlugin.d.ts +3 -3
- package/dist/components/bubble/index.d.ts +2 -0
- package/dist/components/index.d.ts +7 -9
- package/dist/components/toolbar/index.d.ts +2 -0
- package/dist/components/toolbox/ToolboxItem.vue.d.ts +1 -1
- package/dist/components/toolbox/index.d.ts +1 -0
- package/dist/extensions/audio/AudioView.vue.d.ts +2 -3
- package/dist/extensions/audio/BubbleItemAudioLink.vue.d.ts +1 -1
- package/dist/extensions/audio/index.d.ts +2 -2
- package/dist/extensions/blockquote/index.d.ts +1 -1
- package/dist/extensions/bold/index.d.ts +1 -1
- package/dist/extensions/bullet-list/index.d.ts +1 -1
- package/dist/extensions/code/index.d.ts +1 -1
- package/dist/extensions/code-block/CodeBlockViewRenderer.vue.d.ts +2 -3
- package/dist/extensions/code-block/code-block.d.ts +2 -2
- package/dist/extensions/color/ColorBubbleItem.vue.d.ts +1 -1
- package/dist/extensions/color/ColorToolbarItem.vue.d.ts +1 -1
- package/dist/extensions/color/index.d.ts +1 -1
- package/dist/extensions/columns/column.d.ts +1 -1
- package/dist/extensions/columns/columns.d.ts +2 -2
- package/dist/extensions/commands-menu/commands.d.ts +1 -1
- package/dist/extensions/draggable/index.d.ts +3 -3
- package/dist/extensions/font-size/index.d.ts +2 -2
- package/dist/extensions/heading/index.d.ts +1 -1
- package/dist/extensions/highlight/HighlightBubbleItem.vue.d.ts +1 -1
- package/dist/extensions/highlight/HighlightToolbarItem.vue.d.ts +1 -1
- package/dist/extensions/highlight/index.d.ts +1 -1
- package/dist/extensions/history/index.d.ts +1 -1
- package/dist/extensions/iframe/BubbleItemIframeLink.vue.d.ts +1 -1
- package/dist/extensions/iframe/BubbleItemIframeSize.vue.d.ts +1 -1
- package/dist/extensions/iframe/IframeView.vue.d.ts +2 -3
- package/dist/extensions/iframe/index.d.ts +2 -2
- package/dist/extensions/image/BubbleItemImageAlt.vue.d.ts +1 -1
- package/dist/extensions/image/BubbleItemImageHref.vue.d.ts +1 -1
- package/dist/extensions/image/BubbleItemImageLink.vue.d.ts +1 -1
- package/dist/extensions/image/BubbleItemImageSize.vue.d.ts +1 -1
- package/dist/extensions/image/ImageView.vue.d.ts +2 -3
- package/dist/extensions/image/index.d.ts +1 -1
- package/dist/extensions/indent/index.d.ts +2 -2
- package/dist/extensions/italic/index.d.ts +1 -1
- package/dist/extensions/link/LinkBubbleButton.vue.d.ts +1 -1
- package/dist/extensions/node-selected/index.d.ts +1 -1
- package/dist/extensions/ordered-list/index.d.ts +1 -1
- package/dist/extensions/strike/index.d.ts +1 -1
- package/dist/extensions/subscript/index.d.ts +1 -1
- package/dist/extensions/superscript/index.d.ts +1 -1
- package/dist/extensions/table/index.d.ts +1 -1
- package/dist/extensions/table/table-cell.d.ts +1 -1
- package/dist/extensions/table/table-header.d.ts +1 -1
- package/dist/extensions/table/util.d.ts +2 -3
- package/dist/extensions/task-list/index.d.ts +1 -1
- package/dist/extensions/text/index.d.ts +1 -1
- package/dist/extensions/text-align/index.d.ts +1 -1
- package/dist/extensions/trailing-node/index.d.ts +1 -1
- package/dist/extensions/underline/index.d.ts +1 -1
- package/dist/extensions/video/BubbleItemVideoLink.vue.d.ts +1 -1
- package/dist/extensions/video/BubbleItemVideoSize.vue.d.ts +1 -1
- package/dist/extensions/video/VideoView.vue.d.ts +2 -3
- package/dist/extensions/video/index.d.ts +2 -2
- package/dist/index.d.ts +1 -3
- package/dist/rich-text-editor.es.js +38400 -44131
- package/dist/rich-text-editor.es.js.map +1 -1
- package/dist/rich-text-editor.iife.js +146 -58207
- package/dist/rich-text-editor.iife.js.map +1 -1
- package/dist/style.css +2 -2460
- package/dist/tiptap/core/index.d.ts +1 -0
- package/dist/tiptap/index.d.ts +5 -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 +2 -4
- package/dist/utils/delete-node.d.ts +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default as BlockActionButton } from "./BlockActionButton.vue";
|
|
2
|
+
export { default as BlockActionInput } from "./BlockActionInput.vue";
|
|
3
|
+
export { default as BlockActionSeparator } from "./BlockActionSeparator.vue";
|
|
4
|
+
export { default as BlockCard } from "./BlockCard.vue";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Editor } from
|
|
2
|
-
import { EditorState, Plugin, PluginKey } from
|
|
3
|
-
import type { EditorView } from
|
|
1
|
+
import { Editor } from '../../tiptap/vue-3';
|
|
2
|
+
import { EditorState, Plugin, PluginKey } from '../../tiptap/pm';
|
|
3
|
+
import type { EditorView } from '../../tiptap/pm';
|
|
4
4
|
import { type Instance, type Props } from "tippy.js";
|
|
5
5
|
export interface TippyOptionProps extends Props {
|
|
6
6
|
fixed?: boolean;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export { default as
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export { default as ToolbarSubItem } from "./toolbar/ToolbarSubItem.vue";
|
|
9
|
-
export { default as ToolboxItem } from "./toolbox/ToolboxItem.vue";
|
|
1
|
+
export * from "./block";
|
|
2
|
+
export * from "./bubble";
|
|
3
|
+
export * from "./toolbar";
|
|
4
|
+
export * from "./toolbox";
|
|
5
|
+
export { default as RichTextEditor } from "./Editor.vue";
|
|
6
|
+
export * from "./EditorHeader.vue";
|
|
7
|
+
export * from "./EditorBubbleMenu.vue";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ToolboxItem } from "./ToolboxItem.vue";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { Node as ProseMirrorNode } from
|
|
2
|
-
import type {
|
|
3
|
-
import type { Editor, Node } from "@tiptap/core";
|
|
1
|
+
import type { Node as ProseMirrorNode, Decoration } from '../../tiptap/pm';
|
|
2
|
+
import type { Editor, Node } from '../../tiptap/vue-3';
|
|
4
3
|
declare const _default: import("vue").DefineComponent<{
|
|
5
4
|
editor: {
|
|
6
5
|
type: import("vue").PropType<Editor>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ExtensionOptions } from '../../types';
|
|
2
|
-
import { Node } from
|
|
3
|
-
declare module "
|
|
2
|
+
import { Node } from '../../tiptap/vue-3';
|
|
3
|
+
declare module "@/tiptap" {
|
|
4
4
|
interface Commands<ReturnType> {
|
|
5
5
|
audio: {
|
|
6
6
|
setAudio: (options: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { BlockquoteOptions } from "@tiptap/extension-blockquote";
|
|
2
2
|
import type { ExtensionOptions } from '../../types';
|
|
3
|
-
declare const Blockquote: import(
|
|
3
|
+
declare const Blockquote: import('../../tiptap/vue-3').Node<ExtensionOptions & BlockquoteOptions, any>;
|
|
4
4
|
export default Blockquote;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { BoldOptions } from "@tiptap/extension-bold";
|
|
2
2
|
import type { ExtensionOptions } from '../../types';
|
|
3
|
-
declare const Bold: import(
|
|
3
|
+
declare const Bold: import('../../tiptap/vue-3').Mark<ExtensionOptions & BoldOptions, any>;
|
|
4
4
|
export default Bold;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { BulletListOptions } from "@tiptap/extension-bullet-list";
|
|
2
2
|
import type { ExtensionOptions } from '../../types';
|
|
3
|
-
declare const BulletList: import(
|
|
3
|
+
declare const BulletList: import('../../tiptap/vue-3').Node<ExtensionOptions & BulletListOptions, any>;
|
|
4
4
|
export default BulletList;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { CodeOptions } from "@tiptap/extension-code";
|
|
2
2
|
import type { ExtensionOptions } from '../../types';
|
|
3
|
-
declare const Code: import(
|
|
3
|
+
declare const Code: import('../../tiptap/vue-3').Mark<ExtensionOptions & CodeOptions, any>;
|
|
4
4
|
export default Code;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { Node as ProseMirrorNode } from
|
|
2
|
-
import type {
|
|
3
|
-
import type { Editor, Node } from "@tiptap/core";
|
|
1
|
+
import type { Node as ProseMirrorNode, Decoration } from '../../tiptap/pm';
|
|
2
|
+
import type { Editor, Node } from '../../tiptap/vue-3';
|
|
4
3
|
declare const _default: import("vue").DefineComponent<{
|
|
5
4
|
editor: {
|
|
6
5
|
type: import("vue").PropType<Editor>;
|
|
@@ -3,7 +3,7 @@ export interface CustomCodeBlockLowlightOptions extends CodeBlockLowlightOptions
|
|
|
3
3
|
lowlight: any;
|
|
4
4
|
defaultLanguage: string | null | undefined;
|
|
5
5
|
}
|
|
6
|
-
declare module "
|
|
6
|
+
declare module "@/tiptap" {
|
|
7
7
|
interface Commands<ReturnType> {
|
|
8
8
|
codeIndent: {
|
|
9
9
|
codeIndent: () => ReturnType;
|
|
@@ -11,5 +11,5 @@ declare module "@tiptap/core" {
|
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
declare const _default: import(
|
|
14
|
+
declare const _default: import('../../tiptap/vue-3').Node<CustomCodeBlockLowlightOptions & CodeBlockLowlightOptions, any>;
|
|
15
15
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ExtensionOptions } from '../../types';
|
|
2
2
|
import type { ColorOptions } from "@tiptap/extension-color";
|
|
3
|
-
declare const Color: import(
|
|
3
|
+
declare const Color: import('../../tiptap/vue-3').Extension<ColorOptions & ExtensionOptions, any>;
|
|
4
4
|
export default Color;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Extension } from
|
|
2
|
-
import { Node, ResolvedPos } from
|
|
3
|
-
import type { EditorView } from
|
|
1
|
+
import { Extension } from '../../tiptap/vue-3';
|
|
2
|
+
import { Node, ResolvedPos } from '../../tiptap/pm';
|
|
3
|
+
import type { EditorView } from '../../tiptap/pm';
|
|
4
4
|
export interface ActiveNode {
|
|
5
5
|
$pos: ResolvedPos;
|
|
6
6
|
node: Node;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Extension } from
|
|
1
|
+
import { Extension } from '../../tiptap/vue-3';
|
|
2
2
|
export type FontSizeOptions = {
|
|
3
3
|
types: string[];
|
|
4
4
|
};
|
|
5
|
-
declare module "
|
|
5
|
+
declare module "@/tiptap" {
|
|
6
6
|
interface Commands<ReturnType> {
|
|
7
7
|
fontSize: {
|
|
8
8
|
setFontSize: (size: number) => ReturnType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { HeadingOptions } from "@tiptap/extension-heading";
|
|
2
2
|
import type { ExtensionOptions } from '../../types';
|
|
3
|
-
declare const Blockquote: import(
|
|
3
|
+
declare const Blockquote: import('../../tiptap/vue-3').Node<ExtensionOptions & HeadingOptions, any>;
|
|
4
4
|
export default Blockquote;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { HighlightOptions } from "@tiptap/extension-highlight";
|
|
2
2
|
import type { ExtensionOptions } from '../../types';
|
|
3
|
-
declare const Highlight: import(
|
|
3
|
+
declare const Highlight: import('../../tiptap/vue-3').Mark<ExtensionOptions & HighlightOptions, any>;
|
|
4
4
|
export default Highlight;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { HistoryOptions } from "@tiptap/extension-history";
|
|
2
2
|
import type { ExtensionOptions } from '../../types';
|
|
3
|
-
declare const History: import(
|
|
3
|
+
declare const History: import('../../tiptap/vue-3').Extension<ExtensionOptions & HistoryOptions, any>;
|
|
4
4
|
export default History;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { Node as ProseMirrorNode } from
|
|
2
|
-
import type {
|
|
3
|
-
import type { Editor, Node } from "@tiptap/core";
|
|
1
|
+
import type { Node as ProseMirrorNode, Decoration } from '../../tiptap/pm';
|
|
2
|
+
import type { Editor, Node } from '../../tiptap/vue-3';
|
|
4
3
|
declare const _default: import("vue").DefineComponent<{
|
|
5
4
|
editor: {
|
|
6
5
|
type: import("vue").PropType<Editor>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ExtensionOptions } from '../../types';
|
|
2
|
-
import { Node } from
|
|
3
|
-
declare module "
|
|
2
|
+
import { Node } from '../../tiptap/vue-3';
|
|
3
|
+
declare module "@/tiptap" {
|
|
4
4
|
interface Commands<ReturnType> {
|
|
5
5
|
iframe: {
|
|
6
6
|
setIframe: (options: {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { Editor, Node } from
|
|
2
|
-
import type { Node as ProseMirrorNode } from
|
|
3
|
-
import type { Decoration } from "@tiptap/pm/view";
|
|
1
|
+
import type { Editor, Node } from '../../tiptap/vue-3';
|
|
2
|
+
import type { Node as ProseMirrorNode, Decoration } from '../../tiptap/pm';
|
|
4
3
|
declare const _default: import("vue").DefineComponent<{
|
|
5
4
|
editor: {
|
|
6
5
|
type: import("vue").PropType<Editor>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ImageOptions } from "@tiptap/extension-image";
|
|
2
2
|
import type { ExtensionOptions } from '../../types';
|
|
3
|
-
declare const Image: import(
|
|
3
|
+
declare const Image: import('../../tiptap/vue-3').Node<ExtensionOptions & ImageOptions, any>;
|
|
4
4
|
export default Image;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type KeyboardShortcutCommand, Extension } from
|
|
2
|
-
declare module "
|
|
1
|
+
import { type KeyboardShortcutCommand, Extension } from '../../tiptap/vue-3';
|
|
2
|
+
declare module "@/tiptap" {
|
|
3
3
|
interface Commands<ReturnType> {
|
|
4
4
|
indent: {
|
|
5
5
|
indent: () => ReturnType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ItalicOptions } from "@tiptap/extension-italic";
|
|
2
2
|
import type { ExtensionOptions } from '../../types';
|
|
3
|
-
declare const Italic: import(
|
|
3
|
+
declare const Italic: import('../../tiptap/vue-3').Mark<ExtensionOptions & ItalicOptions, any>;
|
|
4
4
|
export default Italic;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { OrderedListOptions } from "@tiptap/extension-ordered-list";
|
|
2
2
|
import type { ExtensionOptions } from '../../types';
|
|
3
|
-
declare const OrderedList: import(
|
|
3
|
+
declare const OrderedList: import('../../tiptap/vue-3').Node<ExtensionOptions & OrderedListOptions, any>;
|
|
4
4
|
export default OrderedList;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { StrikeOptions } from "@tiptap/extension-strike";
|
|
2
2
|
import type { ExtensionOptions } from '../../types';
|
|
3
|
-
declare const Strike: import(
|
|
3
|
+
declare const Strike: import('../../tiptap/vue-3').Mark<ExtensionOptions & StrikeOptions, any>;
|
|
4
4
|
export default Strike;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { SubscriptExtensionOptions } from "@tiptap/extension-subscript";
|
|
2
2
|
import type { ExtensionOptions } from '../../types';
|
|
3
|
-
declare const Subscript: import(
|
|
3
|
+
declare const Subscript: import('../../tiptap/vue-3').Mark<ExtensionOptions & SubscriptExtensionOptions, any>;
|
|
4
4
|
export default Subscript;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { SuperscriptExtensionOptions } from "@tiptap/extension-superscript";
|
|
2
2
|
import type { ExtensionOptions } from '../../types';
|
|
3
|
-
declare const Superscript: import(
|
|
3
|
+
declare const Superscript: import('../../tiptap/vue-3').Mark<ExtensionOptions & SuperscriptExtensionOptions, any>;
|
|
4
4
|
export default Superscript;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type TableOptions } from "@tiptap/extension-table";
|
|
2
2
|
import type { ExtensionOptions } from '../../types';
|
|
3
|
-
declare const Table: import(
|
|
3
|
+
declare const Table: import('../../tiptap/vue-3').Node<ExtensionOptions & TableOptions, any>;
|
|
4
4
|
export default Table;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { CellSelection } from
|
|
2
|
-
import type { Selection, Transaction } from
|
|
3
|
-
import { Node } from "@tiptap/pm/model";
|
|
1
|
+
import { Node, CellSelection } from '../../tiptap/pm';
|
|
2
|
+
import type { Selection, Transaction } from '../../tiptap/pm';
|
|
4
3
|
export declare const selectTable: (tr: Transaction) => Transaction;
|
|
5
4
|
export declare const selectColumn: (index: number) => (tr: Transaction) => Transaction;
|
|
6
5
|
export declare const selectRow: (index: number) => (tr: Transaction) => Transaction;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { TaskListOptions } from "@tiptap/extension-task-list";
|
|
2
2
|
import type { ExtensionOptions } from '../../types';
|
|
3
|
-
declare const TaskList: import(
|
|
3
|
+
declare const TaskList: import('../../tiptap/vue-3').Node<ExtensionOptions & TaskListOptions, any>;
|
|
4
4
|
export default TaskList;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { TextAlignOptions } from "@tiptap/extension-text-align";
|
|
2
2
|
import type { ExtensionOptions } from '../../types';
|
|
3
|
-
declare const TextAlign: import(
|
|
3
|
+
declare const TextAlign: import('../../tiptap/vue-3').Extension<ExtensionOptions & TextAlignOptions, any>;
|
|
4
4
|
export default TextAlign;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { UnderlineOptions } from "@tiptap/extension-underline";
|
|
2
2
|
import type { ExtensionOptions } from '../../types';
|
|
3
|
-
declare const Underline: import(
|
|
3
|
+
declare const Underline: import('../../tiptap/vue-3').Mark<ExtensionOptions & UnderlineOptions, any>;
|
|
4
4
|
export default Underline;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { Node as ProseMirrorNode } from
|
|
2
|
-
import type {
|
|
3
|
-
import type { Editor, Node } from "@tiptap/core";
|
|
1
|
+
import type { Node as ProseMirrorNode, Decoration } from '../../tiptap/pm';
|
|
2
|
+
import type { Editor, Node } from '../../tiptap/vue-3';
|
|
4
3
|
declare const _default: import("vue").DefineComponent<{
|
|
5
4
|
editor: {
|
|
6
5
|
type: import("vue").PropType<Editor>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ExtensionOptions } from '../../types';
|
|
2
|
-
import { Node } from
|
|
3
|
-
declare module "
|
|
2
|
+
import { Node } from '../../tiptap/vue-3';
|
|
3
|
+
declare module "@/tiptap" {
|
|
4
4
|
interface Commands<ReturnType> {
|
|
5
5
|
video: {
|
|
6
6
|
setVideo: (options: {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import type { Plugin } from "vue";
|
|
2
|
-
import RichTextEditor from "./components/Editor.vue";
|
|
3
2
|
declare const plugin: Plugin;
|
|
4
3
|
export default plugin;
|
|
5
|
-
export
|
|
6
|
-
export * from "@tiptap/vue-3";
|
|
4
|
+
export * from "./tiptap";
|
|
7
5
|
export * from "./extensions";
|
|
8
6
|
export * from "./components";
|