reactjs-tiptap-editor 0.0.4 → 0.0.6
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/README.md +8 -0
- package/lib/index.d.cts +707 -0
- package/lib/index.d.ts +707 -4
- package/lib/reactjs-tiptap-editor.cjs +1 -0
- package/lib/reactjs-tiptap-editor.js +5452 -1
- package/lib/style.css +1 -1
- package/lib/{vendor-DlmsfAkr.js → vendor-B-W_3NKN.cjs} +162 -162
- package/lib/{vendor-B_w0TZys.mjs → vendor-D8S0CsNZ.js} +2712 -2754
- package/package.json +68 -61
- package/lib/components/ActionButton.d.ts +0 -20
- package/lib/components/ActionMenuButton.d.ts +0 -14
- package/lib/components/ColorPicker.d.ts +0 -12
- package/lib/components/RcTiptapEditor.d.ts +0 -26
- package/lib/components/Toolbar.d.ts +0 -2
- package/lib/components/icons/AspectRatio.d.ts +0 -3
- package/lib/components/icons/Blockquote.d.ts +0 -1
- package/lib/components/icons/DeleteColumn.d.ts +0 -4
- package/lib/components/icons/DeleteRow.d.ts +0 -4
- package/lib/components/icons/FileWordOutline.d.ts +0 -3
- package/lib/components/icons/Icon.d.ts +0 -7
- package/lib/components/icons/LineHeight.d.ts +0 -3
- package/lib/components/icons/MenuDown.d.ts +0 -3
- package/lib/components/icons/SizeL.d.ts +0 -3
- package/lib/components/icons/SizeM.d.ts +0 -3
- package/lib/components/icons/SizeS.d.ts +0 -3
- package/lib/components/icons/icons.d.ts +0 -2
- package/lib/components/menus/bubble.d.ts +0 -56
- package/lib/components/menus/components/BubbleMenuLink.d.ts +0 -2
- package/lib/components/menus/components/BubbleMenuMedia.d.ts +0 -9
- package/lib/components/menus/components/BubbleMenuText.d.ts +0 -8
- package/lib/components/menus/components/ContentMenu.d.ts +0 -2
- package/lib/components/menus/components/TableBubbleMenu.d.ts +0 -2
- package/lib/components/ui/button.d.ts +0 -11
- package/lib/components/ui/dropdown-menu.d.ts +0 -27
- package/lib/components/ui/input.d.ts +0 -5
- package/lib/components/ui/label.d.ts +0 -5
- package/lib/components/ui/popover.d.ts +0 -6
- package/lib/components/ui/separator.d.ts +0 -4
- package/lib/components/ui/switch.d.ts +0 -4
- package/lib/components/ui/tabs.d.ts +0 -7
- package/lib/components/ui/toast.d.ts +0 -15
- package/lib/components/ui/toaster.d.ts +0 -1
- package/lib/components/ui/toggle.d.ts +0 -12
- package/lib/components/ui/tooltip.d.ts +0 -7
- package/lib/components/ui/use-toast.d.ts +0 -44
- package/lib/constants/index.d.ts +0 -44
- package/lib/extensions/BaseKit.d.ts +0 -111
- package/lib/extensions/Blockquote/Blockquote.d.ts +0 -6
- package/lib/extensions/Blockquote/index.d.ts +0 -1
- package/lib/extensions/Bold/Bold.d.ts +0 -6
- package/lib/extensions/Bold/index.d.ts +0 -1
- package/lib/extensions/BulletList/BulletList.d.ts +0 -6
- package/lib/extensions/BulletList/index.d.ts +0 -1
- package/lib/extensions/Clear/Clear.d.ts +0 -6
- package/lib/extensions/Clear/index.d.ts +0 -1
- package/lib/extensions/Code/Code.d.ts +0 -6
- package/lib/extensions/Code/index.d.ts +0 -1
- package/lib/extensions/CodeBlock/CodeBlock.d.ts +0 -6
- package/lib/extensions/CodeBlock/index.d.ts +0 -1
- package/lib/extensions/Color/Color.d.ts +0 -6
- package/lib/extensions/Color/components/ColorActionButton.d.ts +0 -13
- package/lib/extensions/Color/index.d.ts +0 -1
- package/lib/extensions/Document/Document.d.ts +0 -2
- package/lib/extensions/Document/index.d.ts +0 -1
- package/lib/extensions/FontFamily/FontFamily.d.ts +0 -3
- package/lib/extensions/FontFamily/components/FontFamilyButton.d.ts +0 -26
- package/lib/extensions/FontFamily/index.d.ts +0 -1
- package/lib/extensions/FontSize/FontSize.d.ts +0 -32
- package/lib/extensions/FontSize/components/FontSizeMenuButton.d.ts +0 -23
- package/lib/extensions/FontSize/index.d.ts +0 -1
- package/lib/extensions/FormatPainter/FormatPainter.d.ts +0 -24
- package/lib/extensions/FormatPainter/index.d.ts +0 -1
- package/lib/extensions/Heading/Heading.d.ts +0 -6
- package/lib/extensions/Heading/components/HeadingButton.d.ts +0 -26
- package/lib/extensions/Heading/index.d.ts +0 -1
- package/lib/extensions/Highlight/Highlight.d.ts +0 -6
- package/lib/extensions/Highlight/components/HighlightActionButton.d.ts +0 -14
- package/lib/extensions/Highlight/index.d.ts +0 -1
- package/lib/extensions/History/History.d.ts +0 -6
- package/lib/extensions/History/components/HistoryActionButton.d.ts +0 -20
- package/lib/extensions/History/index.d.ts +0 -1
- package/lib/extensions/HorizontalRule/HorizontalRule.d.ts +0 -6
- package/lib/extensions/HorizontalRule/index.d.ts +0 -1
- package/lib/extensions/Iframe/Iframe.d.ts +0 -23
- package/lib/extensions/Iframe/components/IframeNodeView.d.ts +0 -2
- package/lib/extensions/Iframe/embed.d.ts +0 -23
- package/lib/extensions/Iframe/index.d.ts +0 -1
- package/lib/extensions/Image/Image.d.ts +0 -25
- package/lib/extensions/Image/components/ImageView.d.ts +0 -2
- package/lib/extensions/Image/index.d.ts +0 -1
- package/lib/extensions/ImageUpload/ImageUpload.d.ts +0 -16
- package/lib/extensions/ImageUpload/components/ImageUploader.d.ts +0 -2
- package/lib/extensions/ImageUpload/index.d.ts +0 -1
- package/lib/extensions/Indent/Indent.d.ts +0 -23
- package/lib/extensions/Indent/index.d.ts +0 -1
- package/lib/extensions/Italic/Italic.d.ts +0 -6
- package/lib/extensions/Italic/index.d.ts +0 -1
- package/lib/extensions/LineHeight/LineHeight.d.ts +0 -17
- package/lib/extensions/LineHeight/components/LineHeightDropdown.d.ts +0 -12
- package/lib/extensions/LineHeight/index.d.ts +0 -1
- package/lib/extensions/Link/Link.d.ts +0 -6
- package/lib/extensions/Link/components/LinkEditBlock.d.ts +0 -6
- package/lib/extensions/Link/components/LinkEditPopover.d.ts +0 -14
- package/lib/extensions/Link/components/LinkViewBlock.d.ts +0 -8
- package/lib/extensions/Link/index.d.ts +0 -1
- package/lib/extensions/ListItem/ListItem.d.ts +0 -1
- package/lib/extensions/ListItem/index.d.ts +0 -1
- package/lib/extensions/MoreMark/MoreMark.d.ts +0 -20
- package/lib/extensions/MoreMark/components/ActionMoreButton.d.ts +0 -25
- package/lib/extensions/MoreMark/index.d.ts +0 -1
- package/lib/extensions/MultiColumn/Column.d.ts +0 -4
- package/lib/extensions/MultiColumn/ColumnToolbar.d.ts +0 -3
- package/lib/extensions/MultiColumn/Columns.d.ts +0 -22
- package/lib/extensions/MultiColumn/index.d.ts +0 -3
- package/lib/extensions/MultiColumn/menus/ColumnsMenu.d.ts +0 -6
- package/lib/extensions/MultiColumn/menus/index.d.ts +0 -1
- package/lib/extensions/OrderedList/OrderedList.d.ts +0 -6
- package/lib/extensions/OrderedList/index.d.ts +0 -1
- package/lib/extensions/Selection/Selection.d.ts +0 -4
- package/lib/extensions/Selection/index.d.ts +0 -1
- package/lib/extensions/SlashCommand/SlashCommand.d.ts +0 -4
- package/lib/extensions/SlashCommand/components/CommandsList.d.ts +0 -4
- package/lib/extensions/SlashCommand/groups.d.ts +0 -3
- package/lib/extensions/SlashCommand/index.d.ts +0 -1
- package/lib/extensions/SlashCommand/types.d.ts +0 -25
- package/lib/extensions/Strike/Strike.d.ts +0 -6
- package/lib/extensions/Strike/index.d.ts +0 -1
- package/lib/extensions/Subscript/Subscript.d.ts +0 -23
- package/lib/extensions/Subscript/index.d.ts +0 -1
- package/lib/extensions/Table/cell-background.d.ts +0 -19
- package/lib/extensions/Table/components/CreateTablePopover.d.ts +0 -14
- package/lib/extensions/Table/components/TableActionButton.d.ts +0 -13
- package/lib/extensions/Table/index.d.ts +0 -5
- package/lib/extensions/Table/table.d.ts +0 -24
- package/lib/extensions/TaskList/TaskList.d.ts +0 -12
- package/lib/extensions/TaskList/index.d.ts +0 -1
- package/lib/extensions/TextAlign/TextAlign.d.ts +0 -18
- package/lib/extensions/TextAlign/components/TextAlignMenuButton.d.ts +0 -27
- package/lib/extensions/TextAlign/index.d.ts +0 -1
- package/lib/extensions/TextBubble/TextBubble.d.ts +0 -7
- package/lib/extensions/TextBubble/components/TextDropdown.d.ts +0 -10
- package/lib/extensions/TextBubble/index.d.ts +0 -1
- package/lib/extensions/TrailingNode/TrailingNode.d.ts +0 -12
- package/lib/extensions/TrailingNode/index.d.ts +0 -1
- package/lib/extensions/UnderLine/Underline.d.ts +0 -6
- package/lib/extensions/UnderLine/index.d.ts +0 -1
- package/lib/extensions/Video/Video.d.ts +0 -55
- package/lib/extensions/Video/index.d.ts +0 -1
- package/lib/extensions/VideoUpload/VideoUpload.d.ts +0 -14
- package/lib/extensions/VideoUpload/components/VideoUploaderView.d.ts +0 -2
- package/lib/extensions/VideoUpload/index.d.ts +0 -1
- package/lib/extensions/index.d.ts +0 -64
- package/lib/lib/utils.d.ts +0 -3
- package/lib/locales/en.d.ts +0 -2
- package/lib/locales/index.d.ts +0 -33
- package/lib/locales/vi.d.ts +0 -2
- package/lib/plugins/image-upload.d.ts +0 -12
- package/lib/reactjs-tiptap-editor.mjs +0 -5315
- package/lib/theme/theme.d.ts +0 -4
- package/lib/types.d.ts +0 -80
- package/lib/utils/getRenderContainer.d.ts +0 -4
- package/lib/utils/indent.d.ts +0 -15
- package/lib/utils/is-mobile.d.ts +0 -19
- package/lib/utils/line-height.d.ts +0 -7
- package/lib/utils/mitt.d.ts +0 -24
- package/lib/utils/plateform.d.ts +0 -11
- package/lib/utils/utils.d.ts +0 -17
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Italic';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Extension } from '@tiptap/core';
|
|
2
|
-
import { GeneralOptions } from '../../types';
|
|
3
|
-
|
|
4
|
-
export interface LineHeightOptions extends GeneralOptions<LineHeightOptions> {
|
|
5
|
-
types: string[];
|
|
6
|
-
lineHeights: string[];
|
|
7
|
-
defaultHeight: string;
|
|
8
|
-
}
|
|
9
|
-
declare module '@tiptap/core' {
|
|
10
|
-
interface Commands<ReturnType> {
|
|
11
|
-
lineHeight: {
|
|
12
|
-
setLineHeight: (lineHeight: string) => ReturnType;
|
|
13
|
-
unsetLineHeight: () => ReturnType;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
export declare const LineHeight: Extension<LineHeightOptions, any>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ButtonViewReturnComponentProps } from '../../../types';
|
|
2
|
-
|
|
3
|
-
interface IPropsLineHeightDropdown {
|
|
4
|
-
editor: any;
|
|
5
|
-
icon?: any;
|
|
6
|
-
tooltip?: string;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
action?: ButtonViewReturnComponentProps['action'];
|
|
9
|
-
isActive?: ButtonViewReturnComponentProps['isActive'];
|
|
10
|
-
}
|
|
11
|
-
declare const LineHeightDropdown: (props: IPropsLineHeightDropdown) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export default LineHeightDropdown;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './LineHeight';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { LinkOptions as TiptapLinkOptions } from '@tiptap/extension-link';
|
|
2
|
-
import { GeneralOptions } from '../../types';
|
|
3
|
-
|
|
4
|
-
export interface LinkOptions extends TiptapLinkOptions, GeneralOptions<LinkOptions> {
|
|
5
|
-
}
|
|
6
|
-
export declare const Link: import('@tiptap/core').Mark<LinkOptions, any>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ButtonViewReturnComponentProps } from '../../../types';
|
|
2
|
-
|
|
3
|
-
interface IPropsLinkEditPopover {
|
|
4
|
-
editor: any;
|
|
5
|
-
icon?: any;
|
|
6
|
-
title?: string;
|
|
7
|
-
tooltip?: string;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
shortcutKeys?: string[];
|
|
10
|
-
isActive?: ButtonViewReturnComponentProps['isActive'];
|
|
11
|
-
action?: ButtonViewReturnComponentProps['action'];
|
|
12
|
-
}
|
|
13
|
-
declare const LinkEditPopover: (props: IPropsLinkEditPopover) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export default LinkEditPopover;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Link';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from '@tiptap/extension-list-item';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ListItem';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Extension } from '@tiptap/core';
|
|
2
|
-
import { SubscriptExtensionOptions as TiptapSubscriptOptions } from '@tiptap/extension-subscript';
|
|
3
|
-
import { SuperscriptExtensionOptions as TiptapSuperscriptOptions } from '@tiptap/extension-superscript';
|
|
4
|
-
import { GeneralOptions } from '../../types';
|
|
5
|
-
|
|
6
|
-
export interface MoreMarkOptions extends GeneralOptions<MoreMarkOptions> {
|
|
7
|
-
/**
|
|
8
|
-
* // 下标
|
|
9
|
-
*
|
|
10
|
-
* @default true
|
|
11
|
-
*/
|
|
12
|
-
subscript: Partial<TiptapSubscriptOptions> | false;
|
|
13
|
-
/**
|
|
14
|
-
* // 上标
|
|
15
|
-
*
|
|
16
|
-
* @default true
|
|
17
|
-
*/
|
|
18
|
-
superscript: Partial<TiptapSuperscriptOptions> | false;
|
|
19
|
-
}
|
|
20
|
-
export declare const MoreMark: Extension<MoreMarkOptions, any>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { ButtonViewReturnComponentProps } from '../../../types';
|
|
3
|
-
|
|
4
|
-
export interface Item {
|
|
5
|
-
title: string;
|
|
6
|
-
icon?: any;
|
|
7
|
-
isActive: NonNullable<ButtonViewReturnComponentProps['isActive']>;
|
|
8
|
-
action?: ButtonViewReturnComponentProps['action'];
|
|
9
|
-
style?: React.CSSProperties;
|
|
10
|
-
shortcutKeys?: string[];
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
divider?: boolean;
|
|
13
|
-
default?: boolean;
|
|
14
|
-
}
|
|
15
|
-
interface IPropsActionMoreButton {
|
|
16
|
-
editor: any;
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
color?: string;
|
|
19
|
-
maxHeight?: string | number;
|
|
20
|
-
icon?: any;
|
|
21
|
-
tooltip?: string;
|
|
22
|
-
items?: Item[];
|
|
23
|
-
}
|
|
24
|
-
declare const ActionMoreButton: (props: IPropsActionMoreButton) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
export default ActionMoreButton;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './MoreMark';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Node } from '@tiptap/core';
|
|
2
|
-
import { GeneralOptions } from '../../types';
|
|
3
|
-
|
|
4
|
-
export declare enum ColumnLayout {
|
|
5
|
-
SidebarLeft = "sidebar-left",
|
|
6
|
-
SidebarRight = "sidebar-right",
|
|
7
|
-
TwoColumn = "two-column"
|
|
8
|
-
}
|
|
9
|
-
declare module '@tiptap/core' {
|
|
10
|
-
interface Commands<ReturnType> {
|
|
11
|
-
columns: {
|
|
12
|
-
setColumns: () => ReturnType;
|
|
13
|
-
setLayout: (layout: ColumnLayout) => ReturnType;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
export interface ColumnsOptions extends GeneralOptions<ColumnsOptions> {
|
|
18
|
-
columnOptions: any;
|
|
19
|
-
layout: ColumnLayout;
|
|
20
|
-
}
|
|
21
|
-
export declare const Columns: Node<ColumnsOptions, any>;
|
|
22
|
-
export default Columns;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './ColumnsMenu';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { OrderedListOptions as TiptapOrderedListOptions } from '@tiptap/extension-ordered-list';
|
|
2
|
-
import { GeneralOptions } from '../../types';
|
|
3
|
-
|
|
4
|
-
export interface OrderedListOptions extends TiptapOrderedListOptions, GeneralOptions<OrderedListOptions> {
|
|
5
|
-
}
|
|
6
|
-
export declare const OrderedList: import('@tiptap/core').Node<OrderedListOptions, any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './OrderedList';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Selection';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './SlashCommand';
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Editor, Range } from '@tiptap/core';
|
|
2
|
-
|
|
3
|
-
export interface Group {
|
|
4
|
-
name: string;
|
|
5
|
-
title: string;
|
|
6
|
-
commands: Command[];
|
|
7
|
-
}
|
|
8
|
-
export interface Command {
|
|
9
|
-
name: string;
|
|
10
|
-
label: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
aliases?: string[];
|
|
13
|
-
iconName?: any;
|
|
14
|
-
iconUrl?: string;
|
|
15
|
-
action: ({ editor, range }: {
|
|
16
|
-
editor: Editor;
|
|
17
|
-
range: Range;
|
|
18
|
-
}) => void;
|
|
19
|
-
shouldBeHidden?: (editor: Editor) => boolean;
|
|
20
|
-
}
|
|
21
|
-
export interface MenuListProps {
|
|
22
|
-
editor: Editor;
|
|
23
|
-
items: Group[];
|
|
24
|
-
command: (command: Command) => void;
|
|
25
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { StrikeOptions as TiptapStrikeOptions } from '@tiptap/extension-strike';
|
|
2
|
-
import { GeneralOptions } from '../../types';
|
|
3
|
-
|
|
4
|
-
export interface StrikeOptions extends TiptapStrikeOptions, GeneralOptions<StrikeOptions> {
|
|
5
|
-
}
|
|
6
|
-
export declare const Strike: import('@tiptap/core').Mark<StrikeOptions, any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Strike';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Extension } from '@tiptap/core';
|
|
2
|
-
import { SubscriptExtensionOptions as TiptapSubscriptOptions } from '@tiptap/extension-subscript';
|
|
3
|
-
import { SuperscriptExtensionOptions as TiptapSuperscriptOptions } from '@tiptap/extension-superscript';
|
|
4
|
-
import { GeneralOptions } from '../../types';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Represents the interface for subscript and superscript options, extending GeneralOptions.
|
|
8
|
-
*/
|
|
9
|
-
export interface SubAndSuperScriptOptions extends GeneralOptions<SubAndSuperScriptOptions> {
|
|
10
|
-
/**
|
|
11
|
-
* subscript options or false, indicating whether subscript is enabled
|
|
12
|
-
*
|
|
13
|
-
* @default true
|
|
14
|
-
*/
|
|
15
|
-
subscript: Partial<TiptapSubscriptOptions> | false;
|
|
16
|
-
/**
|
|
17
|
-
* superscript options or false, indicating whether superscript is enabled
|
|
18
|
-
*
|
|
19
|
-
* @default true
|
|
20
|
-
*/
|
|
21
|
-
superscript: Partial<TiptapSuperscriptOptions> | false;
|
|
22
|
-
}
|
|
23
|
-
export declare const SubAndSuperScript: Extension<SubAndSuperScriptOptions, any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Subscript';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Command, Extension } from '@tiptap/core';
|
|
2
|
-
import { Transaction } from '@tiptap/pm/state';
|
|
3
|
-
|
|
4
|
-
export type TableCellBackgroundOptions = {
|
|
5
|
-
HTMLAttributes: Record<string, any>;
|
|
6
|
-
types?: any;
|
|
7
|
-
};
|
|
8
|
-
declare module '@tiptap/core' {
|
|
9
|
-
interface Commands<ReturnType> {
|
|
10
|
-
tableCellBackground: {
|
|
11
|
-
setTableCellBackground: (color: string) => ReturnType;
|
|
12
|
-
unsetTableCellBackground: () => ReturnType;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
export declare const setCellBackgroundMarkup: (tr: Transaction, pos: number, backgroundColor: string) => Transaction;
|
|
17
|
-
export declare const updateCellBackground: (tr: Transaction, options: TableCellBackgroundOptions, backgroundColor: string) => Transaction;
|
|
18
|
-
export declare const createCellBackgroundCommand: (backgroundColor: string, options: TableCellBackgroundOptions) => Command;
|
|
19
|
-
export declare const TableCellBackground: Extension<TableCellBackgroundOptions, any>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
interface IPropsCreateTablePopover {
|
|
2
|
-
createTable: any;
|
|
3
|
-
disabled: any;
|
|
4
|
-
children: any;
|
|
5
|
-
}
|
|
6
|
-
export interface GridSize {
|
|
7
|
-
rows: number;
|
|
8
|
-
cols: number;
|
|
9
|
-
}
|
|
10
|
-
export interface CreateTablePayload extends GridSize {
|
|
11
|
-
withHeaderRow: boolean;
|
|
12
|
-
}
|
|
13
|
-
declare const CreateTablePopover: (props: IPropsCreateTablePopover) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export default CreateTablePopover;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ButtonViewReturnComponentProps } from '../../../types';
|
|
2
|
-
|
|
3
|
-
interface IPropsTableActionButton {
|
|
4
|
-
editor: any;
|
|
5
|
-
icon?: any;
|
|
6
|
-
tooltip?: string;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
color?: string;
|
|
9
|
-
action?: ButtonViewReturnComponentProps['action'];
|
|
10
|
-
isActive?: ButtonViewReturnComponentProps['isActive'];
|
|
11
|
-
}
|
|
12
|
-
declare const TableActionButton: (props: IPropsTableActionButton) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export default TableActionButton;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { type TableRowOptions, TableRow } from '@tiptap/extension-table-row';
|
|
2
|
-
export { Table, type TableOptions } from './table';
|
|
3
|
-
export { TableCell, type TableCellOptions } from '@tiptap/extension-table-cell';
|
|
4
|
-
export { TableHeader, type TableHeaderOptions } from '@tiptap/extension-table-header';
|
|
5
|
-
export { TableCellBackground, type TableCellBackgroundOptions } from './cell-background';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { TableCellOptions } from '@tiptap/extension-table-cell';
|
|
2
|
-
import { TableHeaderOptions } from '@tiptap/extension-table-header';
|
|
3
|
-
import { TableRowOptions } from '@tiptap/extension-table-row';
|
|
4
|
-
import { GeneralOptions } from '../../types';
|
|
5
|
-
import { TableCellBackgroundOptions } from './cell-background';
|
|
6
|
-
|
|
7
|
-
export interface TableOptions extends GeneralOptions<TableOptions> {
|
|
8
|
-
HTMLAttributes: Record<string, any>;
|
|
9
|
-
resizable: boolean;
|
|
10
|
-
handleWidth: number;
|
|
11
|
-
cellMinWidth: number;
|
|
12
|
-
lastColumnResizable: boolean;
|
|
13
|
-
allowTableNodeSelection: boolean;
|
|
14
|
-
/** options for table rows */
|
|
15
|
-
tableRow: Partial<TableRowOptions>;
|
|
16
|
-
/** options for table headers */
|
|
17
|
-
tableHeader: Partial<TableHeaderOptions>;
|
|
18
|
-
/** options for table cells */
|
|
19
|
-
tableCell: Partial<TableCellOptions>;
|
|
20
|
-
/** options for table cell background */
|
|
21
|
-
tableCellBackground: Partial<TableCellBackgroundOptions>;
|
|
22
|
-
}
|
|
23
|
-
export declare const Table: import('@tiptap/core').Node<TableOptions, any>;
|
|
24
|
-
export default Table;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { TaskItemOptions } from '@tiptap/extension-task-item';
|
|
2
|
-
import { TaskListOptions as TiptapTaskListOptions } from '@tiptap/extension-task-list';
|
|
3
|
-
import { GeneralOptions } from '../../types';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Represents the interface for task list options, extending TiptapTaskListOptions and GeneralOptions.
|
|
7
|
-
*/
|
|
8
|
-
export interface TaskListOptions extends TiptapTaskListOptions, GeneralOptions<TaskListOptions> {
|
|
9
|
-
/** options for task items */
|
|
10
|
-
taskItem: Partial<TaskItemOptions>;
|
|
11
|
-
}
|
|
12
|
-
export declare const TaskList: import('@tiptap/core').Node<TaskListOptions, any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './TaskList';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Extension } from '@tiptap/core';
|
|
2
|
-
import { TextAlignOptions as TiptapTextAlignOptions } from '@tiptap/extension-text-align';
|
|
3
|
-
import { GeneralOptions } from '../../types';
|
|
4
|
-
|
|
5
|
-
type Alignments = 'left' | 'center' | 'right' | 'justify';
|
|
6
|
-
/**
|
|
7
|
-
* Represents the interface for text align options, extending TiptapTextAlignOptions and GeneralOptions.
|
|
8
|
-
*/
|
|
9
|
-
export interface TextAlignOptions extends TiptapTextAlignOptions, GeneralOptions<TextAlignOptions> {
|
|
10
|
-
/**
|
|
11
|
-
* List of available alignment options
|
|
12
|
-
*
|
|
13
|
-
* @default ['left', 'center', 'right', 'justify']
|
|
14
|
-
*/
|
|
15
|
-
alignments: Alignments[];
|
|
16
|
-
}
|
|
17
|
-
export declare const TextAlign: Extension<TextAlignOptions, any>;
|
|
18
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { ButtonViewReturnComponentProps } from '../../../types';
|
|
3
|
-
|
|
4
|
-
interface IPropsTextAlignMenuButton {
|
|
5
|
-
}
|
|
6
|
-
export interface Item {
|
|
7
|
-
title: string;
|
|
8
|
-
icon?: any;
|
|
9
|
-
isActive: NonNullable<ButtonViewReturnComponentProps['isActive']>;
|
|
10
|
-
action?: ButtonViewReturnComponentProps['action'];
|
|
11
|
-
style?: React.CSSProperties;
|
|
12
|
-
shortcutKeys?: string[];
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
divider?: boolean;
|
|
15
|
-
default?: boolean;
|
|
16
|
-
}
|
|
17
|
-
interface IPropsTextAlignMenuButton {
|
|
18
|
-
editor: any;
|
|
19
|
-
disabled?: boolean;
|
|
20
|
-
color?: string;
|
|
21
|
-
maxHeight?: string | number;
|
|
22
|
-
icon?: any;
|
|
23
|
-
tooltip?: string;
|
|
24
|
-
items?: Item[];
|
|
25
|
-
}
|
|
26
|
-
declare const TextAlignMenuButton: (props: IPropsTextAlignMenuButton) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
export default TextAlignMenuButton;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './TextAlign';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Extension } from '@tiptap/core';
|
|
2
|
-
import { GeneralOptions } from '../../types';
|
|
3
|
-
|
|
4
|
-
export interface TextBubbleOptions extends GeneralOptions<TextBubbleOptions> {
|
|
5
|
-
}
|
|
6
|
-
export declare const TextBubble: Extension<TextBubbleOptions, any>;
|
|
7
|
-
export default TextBubble;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
interface IPropsTextDropdown {
|
|
2
|
-
editor: any;
|
|
3
|
-
disabled?: boolean;
|
|
4
|
-
color?: string;
|
|
5
|
-
maxHeight?: string | number;
|
|
6
|
-
icon?: any;
|
|
7
|
-
tooltip?: string;
|
|
8
|
-
}
|
|
9
|
-
declare const TextDropdown: (props: IPropsTextDropdown) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export default TextDropdown;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './TextBubble';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Extension } from '@tiptap/core';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Extension based on:
|
|
5
|
-
* - https://github.com/ueberdosis/tiptap/blob/v1/packages/tiptap-extensions/src/extensions/TrailingNode.js
|
|
6
|
-
* - https://github.com/remirror/remirror/blob/e0f1bec4a1e8073ce8f5500d62193e52321155b9/packages/prosemirror-trailing-node/src/trailing-node-plugin.ts
|
|
7
|
-
*/
|
|
8
|
-
export interface TrailingNodeOptions {
|
|
9
|
-
node: string;
|
|
10
|
-
notAfter: string[];
|
|
11
|
-
}
|
|
12
|
-
export declare const TrailingNode: Extension<TrailingNodeOptions, any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './TrailingNode';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { UnderlineOptions as TiptapUnderlineOptions } from '@tiptap/extension-underline';
|
|
2
|
-
import { GeneralOptions } from '../../types';
|
|
3
|
-
|
|
4
|
-
export interface UnderlineOptions extends TiptapUnderlineOptions, GeneralOptions<UnderlineOptions> {
|
|
5
|
-
}
|
|
6
|
-
export declare const Underline: import('@tiptap/core').Mark<UnderlineOptions, any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Underline';
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Node } from '@tiptap/core';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Represents the interface for video options, extending GeneralOptions.
|
|
5
|
-
*/
|
|
6
|
-
export interface VideoOptions {
|
|
7
|
-
/**
|
|
8
|
-
* Indicates whether fullscreen play is allowed
|
|
9
|
-
*
|
|
10
|
-
* @default true
|
|
11
|
-
*/
|
|
12
|
-
allowFullscreen: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Indicates whether to display the frameborder
|
|
15
|
-
*
|
|
16
|
-
* @default false
|
|
17
|
-
*/
|
|
18
|
-
frameborder: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Width of the video, can be a number or string
|
|
21
|
-
*
|
|
22
|
-
* @default VIDEO_SIZE['size-medium']
|
|
23
|
-
*/
|
|
24
|
-
width: number | string;
|
|
25
|
-
/** HTML attributes object for passing additional attributes */
|
|
26
|
-
HTMLAttributes: {
|
|
27
|
-
[key: string]: any;
|
|
28
|
-
};
|
|
29
|
-
upload?: (file: File) => Promise<string>;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Represents the type for setting video options
|
|
33
|
-
*/
|
|
34
|
-
type SetVideoOptions = {
|
|
35
|
-
/** The source URL of the video */
|
|
36
|
-
src: string;
|
|
37
|
-
/** The width of the video */
|
|
38
|
-
width: string | number;
|
|
39
|
-
};
|
|
40
|
-
declare module '@tiptap/core' {
|
|
41
|
-
interface Commands<ReturnType> {
|
|
42
|
-
video: {
|
|
43
|
-
/**
|
|
44
|
-
* Add an video
|
|
45
|
-
*/
|
|
46
|
-
setVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
47
|
-
/**
|
|
48
|
-
* Update an video
|
|
49
|
-
*/
|
|
50
|
-
updateVideo: (options: Partial<SetVideoOptions>) => ReturnType;
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
export declare const Video: Node<VideoOptions, any>;
|
|
55
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Video';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Node } from '@tiptap/core';
|
|
2
|
-
|
|
3
|
-
export interface VideoOptions {
|
|
4
|
-
upload?: (files: File[]) => void;
|
|
5
|
-
}
|
|
6
|
-
declare module '@tiptap/core' {
|
|
7
|
-
interface Commands<ReturnType> {
|
|
8
|
-
videoUpload: {
|
|
9
|
-
setVideoUpload: () => ReturnType;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
export declare const VideoUpload: Node<VideoOptions, any>;
|
|
14
|
-
export default VideoUpload;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './VideoUpload';
|