reactjs-tiptap-editor 0.0.28 → 0.0.31
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/lib/index.d.cts +80 -525
- package/lib/index.d.ts +80 -525
- package/lib/locales-B608BFfQ.cjs +1 -0
- package/lib/{locales-CReRRAlY.js → locales-BrSFP5MK.js} +158 -186
- package/lib/reactjs-tiptap-editor.cjs +1 -2
- package/lib/reactjs-tiptap-editor.js +51 -145
- package/lib/style.css +1 -1
- package/lib/tiptap-BpA04puz.cjs +116 -0
- package/lib/{tiptap-oijPpdck.js → tiptap-CAUX0xVq.js} +1192 -1442
- package/lib/utils-CGZQDv8A.cjs +135 -0
- package/lib/{utils-B4dNn5Nv.js → utils-DR1fgdST.js} +2613 -2506
- package/lib/vendor-CnblLvXI.js +17901 -0
- package/lib/vendor-xLJPanGi.cjs +17 -0
- package/package.json +7 -3
- package/lib/locales-BW5KWG4_.cjs +0 -2
- package/lib/locales-BW5KWG4_.cjs.map +0 -1
- package/lib/locales-CReRRAlY.js.map +0 -1
- package/lib/radix-BnsE5jjU.cjs +0 -2
- package/lib/radix-BnsE5jjU.cjs.map +0 -1
- package/lib/radix-DynsTgIE.js +0 -3104
- package/lib/radix-DynsTgIE.js.map +0 -1
- package/lib/reactjs-tiptap-editor.cjs.map +0 -1
- package/lib/reactjs-tiptap-editor.js.map +0 -1
- package/lib/tiptap-CMeHtctt.cjs +0 -117
- package/lib/tiptap-CMeHtctt.cjs.map +0 -1
- package/lib/tiptap-oijPpdck.js.map +0 -1
- package/lib/utils-B4dNn5Nv.js.map +0 -1
- package/lib/utils-Bvt21Jwu.cjs +0 -136
- package/lib/utils-Bvt21Jwu.cjs.map +0 -1
- package/lib/vendor-Btqs8WA3.cjs +0 -453
- package/lib/vendor-Btqs8WA3.cjs.map +0 -1
- package/lib/vendor-CCqRdwcC.js +0 -27904
- package/lib/vendor-CCqRdwcC.js.map +0 -1
package/lib/index.d.cts
CHANGED
|
@@ -5,13 +5,10 @@ import { BulletListOptions as BulletListOptions_2 } from '@tiptap/extension-bull
|
|
|
5
5
|
import { BundledLanguage } from 'shiki';
|
|
6
6
|
import { BundledTheme } from 'shiki';
|
|
7
7
|
import { CharacterCountOptions } from '@tiptap/extension-character-count';
|
|
8
|
-
import { ClassProp } from 'class-variance-authority/types';
|
|
9
8
|
import { CodeBlockOptions as CodeBlockOptions_2 } from '@tiptap/extension-code-block';
|
|
10
9
|
import { CodeOptions as CodeOptions_2 } from '@tiptap/extension-code';
|
|
11
10
|
import { ColorOptions as ColorOptions_2 } from '@tiptap/extension-color';
|
|
12
|
-
import { default as default_2 } from 'react';
|
|
13
11
|
import { DropcursorOptions } from '@tiptap/extension-dropcursor';
|
|
14
|
-
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
15
12
|
import { Editor } from '@tiptap/react';
|
|
16
13
|
import { Editor as Editor_2 } from '@tiptap/core';
|
|
17
14
|
import { Extension } from '@tiptap/core';
|
|
@@ -25,9 +22,6 @@ import { HistoryOptions as HistoryOptions_2 } from '@tiptap/extension-history';
|
|
|
25
22
|
import { HorizontalRuleOptions as HorizontalRuleOptions_2 } from '@tiptap/extension-horizontal-rule';
|
|
26
23
|
import { ImageOptions } from '@tiptap/extension-image';
|
|
27
24
|
import { ItalicOptions as ItalicOptions_2 } from '@tiptap/extension-italic';
|
|
28
|
-
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
29
|
-
import { JSXElementConstructor } from 'react';
|
|
30
|
-
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
31
25
|
import { LinkOptions as LinkOptions_2 } from '@tiptap/extension-link';
|
|
32
26
|
import { ListItemOptions } from '@tiptap/extension-list-item';
|
|
33
27
|
import { Mark } from '@tiptap/core';
|
|
@@ -36,102 +30,22 @@ import { Node as Node_3 } from '@tiptap/react';
|
|
|
36
30
|
import { OrderedListOptions as OrderedListOptions_2 } from '@tiptap/extension-ordered-list';
|
|
37
31
|
import { ParagraphOptions } from '@tiptap/extension-paragraph';
|
|
38
32
|
import { PlaceholderOptions } from '@tiptap/extension-placeholder';
|
|
39
|
-
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
40
|
-
import * as React_2 from 'react';
|
|
41
|
-
import { ReactElement } from 'react';
|
|
42
|
-
import { ReactNode } from 'react';
|
|
43
33
|
import { RefAttributes } from 'react';
|
|
44
|
-
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
45
34
|
import { StrikeOptions as StrikeOptions_2 } from '@tiptap/extension-strike';
|
|
46
35
|
import { SubscriptExtensionOptions } from '@tiptap/extension-subscript';
|
|
47
36
|
import { SuperscriptExtensionOptions } from '@tiptap/extension-superscript';
|
|
48
|
-
import { SVGProps } from 'react';
|
|
49
|
-
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
50
37
|
import { TableCellOptions } from '@tiptap/extension-table-cell';
|
|
51
38
|
import { TableHeaderOptions } from '@tiptap/extension-table-header';
|
|
52
39
|
import { TableRowOptions } from '@tiptap/extension-table-row';
|
|
53
|
-
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
54
40
|
import { TaskItemOptions } from '@tiptap/extension-task-item';
|
|
55
41
|
import { TaskListOptions as TaskListOptions_2 } from '@tiptap/extension-task-list';
|
|
56
42
|
import { TextAlignOptions as TextAlignOptions_2 } from '@tiptap/extension-text-align';
|
|
57
43
|
import { TextStyleOptions } from '@tiptap/extension-text-style';
|
|
58
|
-
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
59
|
-
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
60
|
-
import { TooltipContentProps } from '@radix-ui/react-tooltip';
|
|
61
|
-
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
62
44
|
import { UnderlineOptions as UnderlineOptions_2 } from '@tiptap/extension-underline';
|
|
63
45
|
import { UseEditorOptions } from '@tiptap/react';
|
|
64
|
-
import { VariantProps } from 'class-variance-authority';
|
|
65
|
-
|
|
66
|
-
declare type Action = {
|
|
67
|
-
type: ActionType['ADD_TOAST'];
|
|
68
|
-
toast: ToasterToast;
|
|
69
|
-
} | {
|
|
70
|
-
type: ActionType['UPDATE_TOAST'];
|
|
71
|
-
toast: Partial<ToasterToast>;
|
|
72
|
-
} | {
|
|
73
|
-
type: ActionType['DISMISS_TOAST'];
|
|
74
|
-
toastId?: ToasterToast['id'];
|
|
75
|
-
} | {
|
|
76
|
-
type: ActionType['REMOVE_TOAST'];
|
|
77
|
-
toastId?: ToasterToast['id'];
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
export declare const ActionButton: default_2.ForwardRefExoticComponent<Partial<ActionButtonProps> & default_2.RefAttributes<HTMLButtonElement>>;
|
|
81
|
-
|
|
82
|
-
export declare interface ActionButtonProps {
|
|
83
|
-
icon?: string;
|
|
84
|
-
title?: string;
|
|
85
|
-
tooltip?: string;
|
|
86
|
-
disabled?: boolean;
|
|
87
|
-
shortcutKeys?: string[];
|
|
88
|
-
customClass?: string;
|
|
89
|
-
loading?: boolean;
|
|
90
|
-
tooltipOptions?: TooltipContentProps;
|
|
91
|
-
color?: string;
|
|
92
|
-
action?: ButtonViewReturnComponentProps['action'];
|
|
93
|
-
isActive?: ButtonViewReturnComponentProps['isActive'];
|
|
94
|
-
children?: default_2.ReactNode;
|
|
95
|
-
asChild?: boolean;
|
|
96
|
-
upload?: boolean;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export declare const ActionMenuButton: default_2.ForwardRefExoticComponent<ActionMenuButtonProps & default_2.RefAttributes<HTMLButtonElement>>;
|
|
100
|
-
|
|
101
|
-
export declare interface ActionMenuButtonProps {
|
|
102
|
-
/** Icon name to display */
|
|
103
|
-
icon?: any;
|
|
104
|
-
/** Button title text */
|
|
105
|
-
title?: string;
|
|
106
|
-
/** Tooltip text */
|
|
107
|
-
tooltip?: string;
|
|
108
|
-
/** Whether the button is disabled */
|
|
109
|
-
disabled?: boolean;
|
|
110
|
-
/** Keyboard shortcut keys */
|
|
111
|
-
shortcutKeys?: string[];
|
|
112
|
-
/** Button color */
|
|
113
|
-
color?: string;
|
|
114
|
-
/** Click action handler */
|
|
115
|
-
action?: ButtonViewReturnComponentProps['action'];
|
|
116
|
-
/** Active state checker */
|
|
117
|
-
isActive?: ButtonViewReturnComponentProps['isActive'];
|
|
118
|
-
/** Whether to render as child */
|
|
119
|
-
asChild?: boolean;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
declare type ActionType = typeof actionTypes;
|
|
123
|
-
|
|
124
|
-
declare const actionTypes: {
|
|
125
|
-
readonly ADD_TOAST: "ADD_TOAST";
|
|
126
|
-
readonly UPDATE_TOAST: "UPDATE_TOAST";
|
|
127
|
-
readonly DISMISS_TOAST: "DISMISS_TOAST";
|
|
128
|
-
readonly REMOVE_TOAST: "REMOVE_TOAST";
|
|
129
|
-
};
|
|
130
46
|
|
|
131
47
|
declare type Alignments = 'left' | 'center' | 'right' | 'justify';
|
|
132
48
|
|
|
133
|
-
export declare function AspectRatio(props: SVGProps<SVGSVGElement>): JSX_2.Element;
|
|
134
|
-
|
|
135
49
|
export declare const BaseKit: Extension<BaseKitOptions, any>;
|
|
136
50
|
|
|
137
51
|
/**
|
|
@@ -241,8 +155,6 @@ export declare interface BaseKitOptions {
|
|
|
241
155
|
|
|
242
156
|
export declare const Blockquote: Node_2<BlockquoteOptions, any>;
|
|
243
157
|
|
|
244
|
-
export declare function BlockquoteLeft(props: SVGProps<SVGSVGElement>): JSX_2.Element;
|
|
245
|
-
|
|
246
158
|
export declare interface BlockquoteOptions extends BlockquoteOptions_2, GeneralOptions<BlockquoteOptions> {
|
|
247
159
|
}
|
|
248
160
|
|
|
@@ -251,51 +163,6 @@ export declare const Bold: Mark<BoldOptions, any>;
|
|
|
251
163
|
export declare interface BoldOptions extends BoldOptions_2, GeneralOptions<BoldOptions> {
|
|
252
164
|
}
|
|
253
165
|
|
|
254
|
-
/** display in bubble text menu */
|
|
255
|
-
export declare const BUBBLE_TEXT_LIST: string[];
|
|
256
|
-
|
|
257
|
-
/** Represents the overall types for bubbles */
|
|
258
|
-
declare type BubbleAllType = BubbleImageType | BubbleVideoType | ExtensionNameKeys | 'divider' | (string & {});
|
|
259
|
-
|
|
260
|
-
/** Represents the size types for bubble images or videos */
|
|
261
|
-
declare type BubbleImageOrVideoSizeType = 'size-small' | 'size-medium' | 'size-large';
|
|
262
|
-
|
|
263
|
-
/** Represents the various types for bubble images */
|
|
264
|
-
declare type BubbleImageType = `image-${BubbleImageOrVideoSizeType}` | `video-${BubbleImageOrVideoSizeType}` | 'image' | 'image-aspect-ratio' | 'remove';
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* Bubble Menu Component
|
|
268
|
-
*
|
|
269
|
-
* @param editor Editor instance
|
|
270
|
-
* @param disabled Whether the menu is disabled
|
|
271
|
-
* @param bubbleMenu Bubble menu configuration
|
|
272
|
-
* @returns Bubble menu component
|
|
273
|
-
*/
|
|
274
|
-
export declare function BubbleMenu({ editor, disabled, bubbleMenu }: BubbleMenuComponentProps): string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | (JSX_2.Element | null)[] | null | undefined;
|
|
275
|
-
|
|
276
|
-
export declare interface BubbleMenuComponentProps {
|
|
277
|
-
editor: Editor_2;
|
|
278
|
-
disabled?: boolean;
|
|
279
|
-
bubbleMenu?: BubbleMenuProps;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
export declare function BubbleMenuImage(props: IPropsBubbleMenu): JSX_2.Element;
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* Represents the structure of a bubble menu item.
|
|
286
|
-
*/
|
|
287
|
-
export declare interface BubbleMenuItem extends ButtonViewReturn {
|
|
288
|
-
/** The type of the bubble item */
|
|
289
|
-
type: BubbleAllType;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
export declare function BubbleMenuLink({ editor, disabled }: BubbleMenuLinkProps): JSX_2.Element;
|
|
293
|
-
|
|
294
|
-
export declare interface BubbleMenuLinkProps {
|
|
295
|
-
editor: Editor;
|
|
296
|
-
disabled?: boolean;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
166
|
/**
|
|
300
167
|
* Represents the BubbleMenuProps.
|
|
301
168
|
*/
|
|
@@ -356,6 +223,13 @@ declare interface BubbleMenuProps {
|
|
|
356
223
|
*/
|
|
357
224
|
hidden?: boolean;
|
|
358
225
|
};
|
|
226
|
+
excalidrawConfig?: {
|
|
227
|
+
/**
|
|
228
|
+
* @description excalidraw menu hidden
|
|
229
|
+
* @default false
|
|
230
|
+
*/
|
|
231
|
+
hidden?: boolean;
|
|
232
|
+
};
|
|
359
233
|
render?: (props: BubbleMenuRenderProps, dom: React.ReactNode) => React.ReactNode;
|
|
360
234
|
}
|
|
361
235
|
|
|
@@ -368,63 +242,11 @@ declare interface BubbleMenuRenderProps {
|
|
|
368
242
|
bubbleMenu: BubbleMenuProps;
|
|
369
243
|
}
|
|
370
244
|
|
|
371
|
-
export declare function BubbleMenuText(props: BubbleMenuTextProps): JSX_2.Element;
|
|
372
|
-
|
|
373
|
-
export declare interface BubbleMenuTextProps {
|
|
374
|
-
editor: Editor_2;
|
|
375
|
-
disabled?: boolean;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
export declare function BubbleMenuVideo(props: IPropsBubbleMenu): JSX_2.Element;
|
|
379
|
-
|
|
380
|
-
/**
|
|
381
|
-
* Represents the options for configuring bubbles.
|
|
382
|
-
* @interface BubbleOptions
|
|
383
|
-
* @template T
|
|
384
|
-
*/
|
|
385
|
-
export declare interface BubbleOptions<T> {
|
|
386
|
-
/** The menu of bubble types for each node type. */
|
|
387
|
-
list: NodeTypeMenu;
|
|
388
|
-
/** The default list of bubble types. */
|
|
389
|
-
defaultBubbleList: any;
|
|
390
|
-
/** The function to generate a bubble menu. */
|
|
391
|
-
button: BubbleView<T>;
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
/** Represents the menu of bubble types for each node type */
|
|
395
|
-
export declare type BubbleTypeMenu = Partial<Record<NodeTypeKey, BubbleMenuItem[]>>;
|
|
396
|
-
|
|
397
|
-
/** Represents the types for bubble videos */
|
|
398
|
-
declare type BubbleVideoType = 'video' | 'remove';
|
|
399
|
-
|
|
400
|
-
/**
|
|
401
|
-
* Represents a function to generate a bubble menu
|
|
402
|
-
*/
|
|
403
|
-
declare interface BubbleView<T = any> {
|
|
404
|
-
/**
|
|
405
|
-
* Generates a bubble menu based on the provided options.
|
|
406
|
-
* @param {ButtonViewParams<T>} options - The options for generating the bubble menu.
|
|
407
|
-
* @returns {BubbleTypeMenu} The generated bubble menu.
|
|
408
|
-
*/
|
|
409
|
-
(options: ButtonViewParams<T>): BubbleTypeMenu;
|
|
410
|
-
}
|
|
411
|
-
|
|
412
245
|
export declare const BulletList: Node_2<BulletListOptions, any>;
|
|
413
246
|
|
|
414
247
|
export declare interface BulletListOptions extends BulletListOptions_2, GeneralOptions<BulletListOptions> {
|
|
415
248
|
}
|
|
416
249
|
|
|
417
|
-
export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
418
|
-
|
|
419
|
-
export declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
420
|
-
asChild?: boolean;
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
export declare const buttonVariants: (props?: ({
|
|
424
|
-
variant?: "default" | "link" | "outline" | "destructive" | "secondary" | "ghost" | null | undefined;
|
|
425
|
-
size?: "default" | "icon" | "sm" | "lg" | null | undefined;
|
|
426
|
-
} & ClassProp) | undefined) => string;
|
|
427
|
-
|
|
428
250
|
/**
|
|
429
251
|
* Represents the ButtonView function.
|
|
430
252
|
*/
|
|
@@ -510,116 +332,15 @@ export declare interface ColorOptions extends ColorOptions_2, GeneralOptions<Col
|
|
|
510
332
|
defaultColor?: string;
|
|
511
333
|
}
|
|
512
334
|
|
|
513
|
-
export declare function ColorPicker(props: ColorPickerProps): JSX_2.Element;
|
|
514
|
-
|
|
515
|
-
export declare interface ColorPickerProps {
|
|
516
|
-
highlight?: boolean;
|
|
517
|
-
disabled?: boolean;
|
|
518
|
-
colors?: string[];
|
|
519
|
-
defaultColor?: string;
|
|
520
|
-
children: default_2.ReactNode;
|
|
521
|
-
onChange?: (color: string | undefined) => void;
|
|
522
|
-
setSelectedColor?: (color: string | undefined) => void;
|
|
523
|
-
selectedColor?: string;
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
/** Default color list for text color and text highlight */
|
|
527
|
-
export declare const COLORS_LIST: readonly ["#000000", "#262626", "#595959", "#8C8C8C", "#BFBFBF", "#D9D9D9", "#E9E9E9", "#F5F5F5", "#FAFAFA", "#FFFFFF", "#F5222D", "#FA541C", "#FA8C16", "#FADB14", "#52C41A", "#13C2C2", "#1890FF", "#2F54EB", "#722ED1", "#EB2F96", "#FFE8E6", "#FFECE0", "#FFEFD1", "#FCFCCA", "#E4F7D2", "#D3F5F0", "#D4EEFC", "#DEE8FC", "#EFE1FA", "#FAE1EB", "#FFA39E", "#FFBB96", "#FFD591", "#FFFB8F", "#B7EB8F", "#87E8DE", "#91D5FF", "#ADC6FF", "#D3ADF7", "#FFADD2", "#FF4D4F", "#FF7A45", "#FFA940", "#FFEC3D", "#73D13D", "#36CFC9", "#40A9FF", "#597EF7", "#9254DE", "#F759AB", "#CF1322", "#D4380D", "#D46B08", "#D4B106", "#389E0D", "#08979C", "#096DD9", "#1D39C4", "#531DAB", "#C41D7F", "#820014", "#871400", "#873800", "#614700", "#135200", "#00474F", "#003A8C", "#061178", "#22075E", "#780650"];
|
|
528
|
-
|
|
529
335
|
export declare const Column: Node_2<any, any>;
|
|
530
336
|
|
|
531
337
|
export declare const ColumnActionButton: Extension<any, any>;
|
|
532
338
|
|
|
533
|
-
export declare function ColumnsBubbleMenu({ editor }: any): JSX_2.Element;
|
|
534
|
-
|
|
535
|
-
export declare function ContentMenu(props: ContentMenuProps): JSX_2.Element;
|
|
536
|
-
|
|
537
|
-
export declare interface ContentMenuProps {
|
|
538
|
-
editor: Editor_2;
|
|
539
|
-
disabled?: boolean;
|
|
540
|
-
className?: string;
|
|
541
|
-
pluginKey?: string;
|
|
542
|
-
}
|
|
543
|
-
|
|
544
339
|
declare const _default: ForwardRefExoticComponent<RichTextEditorProps & RefAttributes< {
|
|
545
340
|
editor: Editor_2 | null;
|
|
546
341
|
}>>;
|
|
547
342
|
export default _default;
|
|
548
343
|
|
|
549
|
-
export declare const DEFAULT_COLOR = "#262626";
|
|
550
|
-
|
|
551
|
-
/** Default font family list */
|
|
552
|
-
export declare const DEFAULT_FONT_FAMILY_LIST: string[];
|
|
553
|
-
|
|
554
|
-
/** Default font size list */
|
|
555
|
-
export declare const DEFAULT_FONT_SIZE_LIST: readonly ["10px", "11px", "12px", "14px", "16px", "18px", "20px", "22px", "24px", "26px", "28px", "36px", "48px", "72px"];
|
|
556
|
-
|
|
557
|
-
/** Default font size value */
|
|
558
|
-
export declare const DEFAULT_FONT_SIZE_VALUE = "default";
|
|
559
|
-
|
|
560
|
-
/** Default lang */
|
|
561
|
-
export declare const DEFAULT_LANG_VALUE: "en";
|
|
562
|
-
|
|
563
|
-
export declare const DEFAULT_LANGUAGE_CODE_BLOCK: string[];
|
|
564
|
-
|
|
565
|
-
export declare const DEFAULT_LINE_HEIGHT = "1";
|
|
566
|
-
|
|
567
|
-
/** Line Height List */
|
|
568
|
-
export declare const DEFAULT_LINE_HEIGHT_LIST: string[];
|
|
569
|
-
|
|
570
|
-
export declare function DeleteColumn(): JSX_2.Element;
|
|
571
|
-
|
|
572
|
-
export declare function DeleteRow(): JSX_2.Element;
|
|
573
|
-
|
|
574
|
-
export declare const DropdownMenu: React_2.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
575
|
-
|
|
576
|
-
export declare const DropdownMenuCheckboxItem: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
577
|
-
|
|
578
|
-
export declare const DropdownMenuContent: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
579
|
-
|
|
580
|
-
export declare const DropdownMenuGroup: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
581
|
-
|
|
582
|
-
export declare const DropdownMenuItem: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
583
|
-
inset?: boolean;
|
|
584
|
-
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
585
|
-
|
|
586
|
-
export declare const DropdownMenuLabel: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
587
|
-
inset?: boolean;
|
|
588
|
-
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
589
|
-
|
|
590
|
-
export declare const DropdownMenuPortal: React_2.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
591
|
-
|
|
592
|
-
export declare const DropdownMenuRadioGroup: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
593
|
-
|
|
594
|
-
export declare const DropdownMenuRadioItem: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
595
|
-
|
|
596
|
-
export declare const DropdownMenuSeparator: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
597
|
-
|
|
598
|
-
export declare function DropdownMenuShortcut({ className, ...props }: React_2.HTMLAttributes<HTMLSpanElement>): JSX_2.Element;
|
|
599
|
-
|
|
600
|
-
export declare namespace DropdownMenuShortcut {
|
|
601
|
-
var displayName: string;
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
export declare const DropdownMenuSub: React_2.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
605
|
-
|
|
606
|
-
export declare const DropdownMenuSubContent: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
607
|
-
|
|
608
|
-
export declare const DropdownMenuSubTrigger: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
609
|
-
inset?: boolean;
|
|
610
|
-
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
611
|
-
|
|
612
|
-
export declare const DropdownMenuTrigger: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
613
|
-
|
|
614
|
-
/** Throttle time for editor input (milliseconds) */
|
|
615
|
-
export declare const EDITOR_UPDATE_THROTTLE_WAIT_TIME: 200;
|
|
616
|
-
|
|
617
|
-
/**
|
|
618
|
-
* watch throttling time must be less than the update time
|
|
619
|
-
* otherwise the cursor position will reach the end
|
|
620
|
-
*/
|
|
621
|
-
export declare const EDITOR_UPDATE_WATCH_THROTTLE_WAIT_TIME: number;
|
|
622
|
-
|
|
623
344
|
export declare const Emoji: Node_2<any, any>;
|
|
624
345
|
|
|
625
346
|
export declare const en: {
|
|
@@ -631,6 +352,9 @@ export declare const en: {
|
|
|
631
352
|
'editor.recent': string;
|
|
632
353
|
'editor.nofill': string;
|
|
633
354
|
'editor.format': string;
|
|
355
|
+
'editor.delete': string;
|
|
356
|
+
'editor.edit': string;
|
|
357
|
+
'editor.settings': string;
|
|
634
358
|
'editor.table_of_content': string;
|
|
635
359
|
'editor.draghandle.tooltip': string;
|
|
636
360
|
'editor.copyToClipboard': string;
|
|
@@ -771,6 +495,8 @@ export declare const en: {
|
|
|
771
495
|
'editor.importWrod.tooltip': string;
|
|
772
496
|
};
|
|
773
497
|
|
|
498
|
+
export declare const Excalidraw: Node_2<any, any>;
|
|
499
|
+
|
|
774
500
|
export declare const ExportPdf: Extension<any, any>;
|
|
775
501
|
|
|
776
502
|
export declare const ExportWord: Extension<ExportWordOptions, any>;
|
|
@@ -778,13 +504,6 @@ export declare const ExportWord: Extension<ExportWordOptions, any>;
|
|
|
778
504
|
declare interface ExportWordOptions extends GeneralOptions<ExportWordOptions> {
|
|
779
505
|
}
|
|
780
506
|
|
|
781
|
-
/**
|
|
782
|
-
* Represents the keys for different extensions.
|
|
783
|
-
*/
|
|
784
|
-
declare type ExtensionNameKeys = 'bold' | 'italic' | 'underline' | 'strike' | 'color' | 'highlight' | 'heading' | 'textAlign' | 'bulletList' | 'orderedList' | 'taskList' | 'indent' | 'link' | 'image' | 'video' | 'table' | 'blockquote' | 'horizontalRule' | 'code' | 'codeBlock' | 'clear' | 'history';
|
|
785
|
-
|
|
786
|
-
export declare function FileWordOutline(props: SVGProps<SVGSVGElement>): JSX_2.Element;
|
|
787
|
-
|
|
788
507
|
export declare const FontFamily: Extension<FontFamilyOptions, any>;
|
|
789
508
|
|
|
790
509
|
declare interface FontFamilyOptions extends FontFamilyOptions_2, GeneralOptions<FontFamilyOptions> {
|
|
@@ -809,8 +528,6 @@ export declare interface FontSizeOptions extends GeneralOptions<FontSizeOptions>
|
|
|
809
528
|
fontSizes: (string | NameValueOption)[];
|
|
810
529
|
}
|
|
811
530
|
|
|
812
|
-
export declare function FormatLineHeight(props: SVGProps<SVGSVGElement>): JSX_2.Element;
|
|
813
|
-
|
|
814
531
|
/**
|
|
815
532
|
* 格式刷
|
|
816
533
|
*/
|
|
@@ -836,15 +553,6 @@ declare interface GeneralOptions<T> {
|
|
|
836
553
|
toolbar?: boolean;
|
|
837
554
|
}
|
|
838
555
|
|
|
839
|
-
export declare function getBubbleImage(editor: Editor): BubbleMenuItem[];
|
|
840
|
-
|
|
841
|
-
/**
|
|
842
|
-
* Bubble menu text list
|
|
843
|
-
*/
|
|
844
|
-
export declare function getBubbleText(editor: Editor, t: any): BubbleMenuItem[];
|
|
845
|
-
|
|
846
|
-
export declare function getBubbleVideo(editor: Editor): BubbleMenuItem[];
|
|
847
|
-
|
|
848
556
|
export declare const Heading: Node_2<HeadingOptions, any>;
|
|
849
557
|
|
|
850
558
|
export declare interface HeadingOptions extends HeadingOptions_2, GeneralOptions<HeadingOptions> {
|
|
@@ -867,24 +575,7 @@ export declare const HorizontalRule: Node_2<HorizontalRuleOptions, any>;
|
|
|
867
575
|
export declare interface HorizontalRuleOptions extends HorizontalRuleOptions_2, GeneralOptions<HorizontalRuleOptions> {
|
|
868
576
|
}
|
|
869
577
|
|
|
870
|
-
export declare
|
|
871
|
-
|
|
872
|
-
export declare interface IconComponentProps {
|
|
873
|
-
name: string;
|
|
874
|
-
className?: string;
|
|
875
|
-
onClick?: default_2.MouseEventHandler<SVGElement>;
|
|
876
|
-
}
|
|
877
|
-
|
|
878
|
-
export declare const icons: any;
|
|
879
|
-
|
|
880
|
-
export declare const Iframe: Node_2<IframeOptions, any>;
|
|
881
|
-
|
|
882
|
-
declare interface IframeOptions extends GeneralOptions<IframeOptions> {
|
|
883
|
-
allowFullscreen: boolean;
|
|
884
|
-
HTMLAttributes: {
|
|
885
|
-
[key: string]: any;
|
|
886
|
-
};
|
|
887
|
-
}
|
|
578
|
+
export declare const Iframe: Node_2<any, any>;
|
|
888
579
|
|
|
889
580
|
declare interface IKatexOptions {
|
|
890
581
|
HTMLAttributes: Record<string, any>;
|
|
@@ -893,22 +584,6 @@ declare interface IKatexOptions {
|
|
|
893
584
|
declare const Image_2: Node_2<ImageOptions, any>;
|
|
894
585
|
export { Image_2 as Image }
|
|
895
586
|
|
|
896
|
-
/** Maximum size for image adjustments */
|
|
897
|
-
export declare const IMAGE_MAX_SIZE: 100000;
|
|
898
|
-
|
|
899
|
-
/** Minimum size for image adjustments */
|
|
900
|
-
export declare const IMAGE_MIN_SIZE: 20;
|
|
901
|
-
|
|
902
|
-
/** Options for setting image size in the bubble menu */
|
|
903
|
-
export declare enum IMAGE_SIZE {
|
|
904
|
-
'size-small' = 200,
|
|
905
|
-
'size-medium' = 500,
|
|
906
|
-
'size-large' = "100%"
|
|
907
|
-
}
|
|
908
|
-
|
|
909
|
-
/** Throttle time during adjustments for images (milliseconds) */
|
|
910
|
-
export declare const IMAGE_THROTTLE_WAIT_TIME: 16;
|
|
911
|
-
|
|
912
587
|
export declare const ImageUpload: Node_3<ImageUploadOptions, any>;
|
|
913
588
|
|
|
914
589
|
export declare interface ImageUploadOptions {
|
|
@@ -936,16 +611,6 @@ export declare interface IndentOptions extends GeneralOptions<IndentOptions> {
|
|
|
936
611
|
maxIndent: number;
|
|
937
612
|
}
|
|
938
613
|
|
|
939
|
-
export declare const Input: React_2.ForwardRefExoticComponent<InputProps & React_2.RefAttributes<HTMLInputElement>>;
|
|
940
|
-
|
|
941
|
-
export declare interface InputProps extends React_2.InputHTMLAttributes<HTMLInputElement> {
|
|
942
|
-
}
|
|
943
|
-
|
|
944
|
-
declare interface IPropsBubbleMenu {
|
|
945
|
-
editor: Editor;
|
|
946
|
-
disabled?: boolean;
|
|
947
|
-
}
|
|
948
|
-
|
|
949
614
|
export declare const Italic: Mark<ItalicOptions, any>;
|
|
950
615
|
|
|
951
616
|
export declare interface ItalicOptions extends ItalicOptions_2, GeneralOptions<ItalicOptions> {
|
|
@@ -953,12 +618,8 @@ export declare interface ItalicOptions extends ItalicOptions_2, GeneralOptions<I
|
|
|
953
618
|
|
|
954
619
|
export declare const Katex: Node_2<IKatexOptions, any>;
|
|
955
620
|
|
|
956
|
-
export declare const Label: React_2.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React_2.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: ClassProp | undefined) => string> & React_2.RefAttributes<HTMLLabelElement>>;
|
|
957
|
-
|
|
958
621
|
declare type LanguageType = 'en' | 'vi' | 'zh_CN' | string;
|
|
959
622
|
|
|
960
|
-
export declare const LINE_HEIGHT_100 = 1.7;
|
|
961
|
-
|
|
962
623
|
export declare const LineHeight: Extension<LineHeightOptions, any>;
|
|
963
624
|
|
|
964
625
|
export declare interface LineHeightOptions extends GeneralOptions<LineHeightOptions> {
|
|
@@ -991,10 +652,6 @@ declare class Locale {
|
|
|
991
652
|
|
|
992
653
|
export declare const locale: Locale;
|
|
993
654
|
|
|
994
|
-
export declare const MAP_LANGUAGE_CODE_LABELS: any;
|
|
995
|
-
|
|
996
|
-
export declare function MenuDown(props: SVGProps<SVGSVGElement>): JSX_2.Element;
|
|
997
|
-
|
|
998
655
|
declare type MessageKeysType = keyof typeof en;
|
|
999
656
|
|
|
1000
657
|
export declare const MoreMark: Extension<MoreMarkOptions, any>;
|
|
@@ -1021,15 +678,6 @@ declare interface NameValueOption<T = string> {
|
|
|
1021
678
|
value: T;
|
|
1022
679
|
}
|
|
1023
680
|
|
|
1024
|
-
/** display in menus */
|
|
1025
|
-
export declare const NODE_TYPE_MENU: any;
|
|
1026
|
-
|
|
1027
|
-
/** Represents the key types for node types */
|
|
1028
|
-
export declare type NodeTypeKey = 'image' | 'text' | 'video';
|
|
1029
|
-
|
|
1030
|
-
/** Represents the menu of overall bubble types for each node type */
|
|
1031
|
-
export declare type NodeTypeMenu = Partial<Record<NodeTypeKey, BubbleAllType[]>>;
|
|
1032
|
-
|
|
1033
681
|
declare interface Options {
|
|
1034
682
|
onHasOneBeforeInsert?: () => void;
|
|
1035
683
|
}
|
|
@@ -1039,14 +687,6 @@ export declare const OrderedList: Node_2<OrderedListOptions, any>;
|
|
|
1039
687
|
export declare interface OrderedListOptions extends OrderedListOptions_2, GeneralOptions<OrderedListOptions> {
|
|
1040
688
|
}
|
|
1041
689
|
|
|
1042
|
-
export declare const Popover: React_2.FC<PopoverPrimitive.PopoverProps>;
|
|
1043
|
-
|
|
1044
|
-
export declare const PopoverContent: React_2.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
1045
|
-
|
|
1046
|
-
export declare const PopoverTrigger: React_2.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
1047
|
-
|
|
1048
|
-
export declare function reducer(state: State, action: Action): State;
|
|
1049
|
-
|
|
1050
690
|
declare interface Result {
|
|
1051
691
|
from: number;
|
|
1052
692
|
to: number;
|
|
@@ -1055,7 +695,7 @@ declare interface Result {
|
|
|
1055
695
|
/**
|
|
1056
696
|
* Interface for RichTextEditor component props
|
|
1057
697
|
*/
|
|
1058
|
-
|
|
698
|
+
declare interface RichTextEditorProps {
|
|
1059
699
|
/** Content of the editor */
|
|
1060
700
|
content: string;
|
|
1061
701
|
/** Extensions for the editor */
|
|
@@ -1117,8 +757,6 @@ declare interface SearchStorage {
|
|
|
1117
757
|
currentIndex: number;
|
|
1118
758
|
}
|
|
1119
759
|
|
|
1120
|
-
export declare const Separator: React_2.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
1121
|
-
|
|
1122
760
|
export declare interface SetImageAttrsOptions {
|
|
1123
761
|
src?: string;
|
|
1124
762
|
/** The alternative text for the image. */
|
|
@@ -1129,18 +767,8 @@ export declare interface SetImageAttrsOptions {
|
|
|
1129
767
|
width?: number | string | null;
|
|
1130
768
|
}
|
|
1131
769
|
|
|
1132
|
-
export declare function SizeL(props: SVGProps<SVGSVGElement>): JSX_2.Element;
|
|
1133
|
-
|
|
1134
|
-
export declare function SizeM(props: SVGProps<SVGSVGElement>): JSX_2.Element;
|
|
1135
|
-
|
|
1136
|
-
export declare function SizeS(props: SVGProps<SVGSVGElement>): JSX_2.Element;
|
|
1137
|
-
|
|
1138
770
|
export declare const SlashCommand: Extension<any, any>;
|
|
1139
771
|
|
|
1140
|
-
declare interface State {
|
|
1141
|
-
toasts: ToasterToast[];
|
|
1142
|
-
}
|
|
1143
|
-
|
|
1144
772
|
export declare const Strike: Mark<StrikeOptions, any>;
|
|
1145
773
|
|
|
1146
774
|
export declare interface StrikeOptions extends StrikeOptions_2, GeneralOptions<StrikeOptions> {
|
|
@@ -1166,25 +794,8 @@ export declare interface SubAndSuperScriptOptions extends GeneralOptions<SubAndS
|
|
|
1166
794
|
superscript: Partial<SuperscriptExtensionOptions> | false;
|
|
1167
795
|
}
|
|
1168
796
|
|
|
1169
|
-
export declare const Switch: React_2.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
1170
|
-
|
|
1171
797
|
export declare const Table: Node_2<TableOptions, any>;
|
|
1172
798
|
|
|
1173
|
-
/** Minimum number of rows and columns for grids when creating a table */
|
|
1174
|
-
export declare const TABLE_DEFAULT_SELECTED_GRID_SIZE: 2;
|
|
1175
|
-
|
|
1176
|
-
/** Default number of rows and columns for grids when creating a table */
|
|
1177
|
-
export declare const TABLE_INIT_GRID_SIZE: 10;
|
|
1178
|
-
|
|
1179
|
-
/** Maximum number of rows and columns for grids when creating a table */
|
|
1180
|
-
export declare const TABLE_MAX_GRID_SIZE: 10;
|
|
1181
|
-
|
|
1182
|
-
export declare function TableBubbleMenu({ editor }: TableBubbleMenuProps): JSX_2.Element;
|
|
1183
|
-
|
|
1184
|
-
export declare interface TableBubbleMenuProps {
|
|
1185
|
-
editor: Editor_2;
|
|
1186
|
-
}
|
|
1187
|
-
|
|
1188
799
|
declare interface TableCellBackgroundOptions {
|
|
1189
800
|
HTMLAttributes: Record<string, any>;
|
|
1190
801
|
types?: any;
|
|
@@ -1209,14 +820,6 @@ export declare interface TableOptions extends GeneralOptions<TableOptions> {
|
|
|
1209
820
|
tableCellBackground: Partial<TableCellBackgroundOptions>;
|
|
1210
821
|
}
|
|
1211
822
|
|
|
1212
|
-
export declare const Tabs: React_2.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1213
|
-
|
|
1214
|
-
export declare const TabsContent: React_2.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
1215
|
-
|
|
1216
|
-
export declare const TabsList: React_2.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
1217
|
-
|
|
1218
|
-
export declare const TabsTrigger: React_2.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
1219
|
-
|
|
1220
823
|
export declare const TaskList: Node_2<TaskListOptions, any>;
|
|
1221
824
|
|
|
1222
825
|
/**
|
|
@@ -1244,66 +847,6 @@ export declare interface TextAlignOptions extends TextAlignOptions_2, GeneralOpt
|
|
|
1244
847
|
declare interface TextBubbleOptions extends GeneralOptions<TextBubbleOptions> {
|
|
1245
848
|
}
|
|
1246
849
|
|
|
1247
|
-
export declare const Toast: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React_2.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
1248
|
-
variant?: "default" | "destructive" | null | undefined;
|
|
1249
|
-
} & ClassProp) | undefined) => string> & React_2.RefAttributes<HTMLLIElement>>;
|
|
1250
|
-
|
|
1251
|
-
export declare function toast({ ...props }: Toast_2): {
|
|
1252
|
-
id: string;
|
|
1253
|
-
dismiss: () => void;
|
|
1254
|
-
update: (props: ToasterToast) => void;
|
|
1255
|
-
};
|
|
1256
|
-
|
|
1257
|
-
declare type Toast_2 = Omit<ToasterToast, 'id'>;
|
|
1258
|
-
|
|
1259
|
-
export declare const ToastAction: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
1260
|
-
|
|
1261
|
-
export declare type ToastActionElement = React_2.ReactElement<typeof ToastAction>;
|
|
1262
|
-
|
|
1263
|
-
export declare const ToastClose: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
1264
|
-
|
|
1265
|
-
export declare const ToastDescription: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
1266
|
-
|
|
1267
|
-
declare type ToasterToast = ToastProps & {
|
|
1268
|
-
id: string;
|
|
1269
|
-
title?: React_2.ReactNode;
|
|
1270
|
-
description?: React_2.ReactNode;
|
|
1271
|
-
action?: ToastActionElement;
|
|
1272
|
-
};
|
|
1273
|
-
|
|
1274
|
-
export declare type ToastProps = React_2.ComponentPropsWithoutRef<typeof Toast>;
|
|
1275
|
-
|
|
1276
|
-
export declare const ToastProvider: React_2.FC<ToastPrimitives.ToastProviderProps>;
|
|
1277
|
-
|
|
1278
|
-
export declare const ToastTitle: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
1279
|
-
|
|
1280
|
-
export declare const ToastViewport: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React_2.RefAttributes<HTMLOListElement>, "ref"> & React_2.RefAttributes<HTMLOListElement>>;
|
|
1281
|
-
|
|
1282
|
-
export declare const Toggle: React_2.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
1283
|
-
variant?: "default" | "outline" | null | undefined;
|
|
1284
|
-
size?: "default" | "sm" | "lg" | null | undefined;
|
|
1285
|
-
} & ClassProp) | undefined) => string> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
1286
|
-
|
|
1287
|
-
export declare const toggleVariants: (props?: ({
|
|
1288
|
-
variant?: "default" | "outline" | null | undefined;
|
|
1289
|
-
size?: "default" | "sm" | "lg" | null | undefined;
|
|
1290
|
-
} & ClassProp) | undefined) => string;
|
|
1291
|
-
|
|
1292
|
-
export declare function Toolbar({ editor, disabled }: ToolbarProps): JSX_2.Element;
|
|
1293
|
-
|
|
1294
|
-
export declare interface ToolbarProps {
|
|
1295
|
-
editor: Editor_2;
|
|
1296
|
-
disabled?: boolean;
|
|
1297
|
-
}
|
|
1298
|
-
|
|
1299
|
-
export declare const Tooltip: React_2.FC<TooltipPrimitive.TooltipProps>;
|
|
1300
|
-
|
|
1301
|
-
export declare const TooltipContent: React_2.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
1302
|
-
|
|
1303
|
-
export declare const TooltipProvider: React_2.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
1304
|
-
|
|
1305
|
-
export declare const TooltipTrigger: React_2.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
1306
|
-
|
|
1307
850
|
/**
|
|
1308
851
|
* Extension based on:
|
|
1309
852
|
* - https://github.com/ueberdosis/tiptap/blob/v1/packages/tiptap-extensions/src/extensions/TrailingNode.js
|
|
@@ -1319,12 +862,6 @@ export declare const Underline: Mark<UnderlineOptions, any>;
|
|
|
1319
862
|
export declare interface UnderlineOptions extends UnderlineOptions_2, GeneralOptions<UnderlineOptions> {
|
|
1320
863
|
}
|
|
1321
864
|
|
|
1322
|
-
export declare function useToast(): {
|
|
1323
|
-
toast: typeof toast;
|
|
1324
|
-
dismiss: (toastId?: string) => void;
|
|
1325
|
-
toasts: ToasterToast[];
|
|
1326
|
-
};
|
|
1327
|
-
|
|
1328
865
|
export declare const vi: {
|
|
1329
866
|
'editor.remove': string;
|
|
1330
867
|
'editor.copy': string;
|
|
@@ -1334,6 +871,9 @@ export declare const vi: {
|
|
|
1334
871
|
'editor.recent': string;
|
|
1335
872
|
'editor.nofill': string;
|
|
1336
873
|
'editor.format': string;
|
|
874
|
+
'editor.delete': string;
|
|
875
|
+
'editor.edit': string;
|
|
876
|
+
'editor.settings': string;
|
|
1337
877
|
'editor.table_of_content': string;
|
|
1338
878
|
'editor.draghandle.tooltip': string;
|
|
1339
879
|
'editor.copyToClipboard': string;
|
|
@@ -1476,13 +1016,6 @@ export declare const vi: {
|
|
|
1476
1016
|
|
|
1477
1017
|
export declare const Video: Node_2<VideoOptions, any>;
|
|
1478
1018
|
|
|
1479
|
-
/** Options for setting video size in the bubble menu */
|
|
1480
|
-
export declare enum VIDEO_SIZE {
|
|
1481
|
-
'size-small' = 480,
|
|
1482
|
-
'size-medium' = 640,
|
|
1483
|
-
'size-large' = "100%"
|
|
1484
|
-
}
|
|
1485
|
-
|
|
1486
1019
|
/**
|
|
1487
1020
|
* Represents the interface for video options, extending GeneralOptions.
|
|
1488
1021
|
*/
|
|
@@ -1527,6 +1060,9 @@ export declare const zh_CN: {
|
|
|
1527
1060
|
'editor.recent': string;
|
|
1528
1061
|
'editor.nofill': string;
|
|
1529
1062
|
'editor.format': string;
|
|
1063
|
+
'editor.delete': string;
|
|
1064
|
+
'editor.edit': string;
|
|
1065
|
+
'editor.settings': string;
|
|
1530
1066
|
'editor.table_of_content': string;
|
|
1531
1067
|
'editor.draghandle.tooltip': string;
|
|
1532
1068
|
'editor.copyToClipboard': string;
|
|
@@ -1686,11 +1222,6 @@ declare module '@tiptap/core' {
|
|
|
1686
1222
|
}
|
|
1687
1223
|
|
|
1688
1224
|
|
|
1689
|
-
declare namespace DropdownMenuShortcut {
|
|
1690
|
-
var displayName: string;
|
|
1691
|
-
}
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
1225
|
declare module '@tiptap/core' {
|
|
1695
1226
|
interface Commands<ReturnType> {
|
|
1696
1227
|
fontSize: {
|
|
@@ -1709,6 +1240,22 @@ declare module '@tiptap/core' {
|
|
|
1709
1240
|
}
|
|
1710
1241
|
|
|
1711
1242
|
|
|
1243
|
+
declare module '@tiptap/core' {
|
|
1244
|
+
interface Commands<ReturnType> {
|
|
1245
|
+
indent: {
|
|
1246
|
+
/**
|
|
1247
|
+
* Set the indent attribute
|
|
1248
|
+
*/
|
|
1249
|
+
indent: () => ReturnType;
|
|
1250
|
+
/**
|
|
1251
|
+
* Set the outdent attribute
|
|
1252
|
+
*/
|
|
1253
|
+
outdent: () => ReturnType;
|
|
1254
|
+
};
|
|
1255
|
+
}
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
|
|
1712
1259
|
declare module '@tiptap/core' {
|
|
1713
1260
|
interface Commands<ReturnType> {
|
|
1714
1261
|
lineHeight: {
|
|
@@ -1735,22 +1282,6 @@ declare module '@tiptap/core' {
|
|
|
1735
1282
|
}
|
|
1736
1283
|
|
|
1737
1284
|
|
|
1738
|
-
declare module '@tiptap/core' {
|
|
1739
|
-
interface Commands<ReturnType> {
|
|
1740
|
-
indent: {
|
|
1741
|
-
/**
|
|
1742
|
-
* Set the indent attribute
|
|
1743
|
-
*/
|
|
1744
|
-
indent: () => ReturnType;
|
|
1745
|
-
/**
|
|
1746
|
-
* Set the outdent attribute
|
|
1747
|
-
*/
|
|
1748
|
-
outdent: () => ReturnType;
|
|
1749
|
-
};
|
|
1750
|
-
}
|
|
1751
|
-
}
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
1285
|
declare module '@tiptap/core' {
|
|
1755
1286
|
interface Commands<ReturnType> {
|
|
1756
1287
|
imageUpload: {
|
|
@@ -1779,6 +1310,15 @@ declare module '@tiptap/core' {
|
|
|
1779
1310
|
}
|
|
1780
1311
|
|
|
1781
1312
|
|
|
1313
|
+
declare module '@tiptap/core' {
|
|
1314
|
+
interface Commands<ReturnType> {
|
|
1315
|
+
painter: {
|
|
1316
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1317
|
+
};
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
|
|
1782
1322
|
declare module '@tiptap/core' {
|
|
1783
1323
|
interface Commands<ReturnType> {
|
|
1784
1324
|
iframe: {
|
|
@@ -1810,8 +1350,25 @@ declare module '@tiptap/core' {
|
|
|
1810
1350
|
|
|
1811
1351
|
declare module '@tiptap/core' {
|
|
1812
1352
|
interface Commands<ReturnType> {
|
|
1813
|
-
|
|
1814
|
-
|
|
1353
|
+
search: {
|
|
1354
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
1355
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
1356
|
+
replace: () => ReturnType;
|
|
1357
|
+
replaceAll: () => ReturnType;
|
|
1358
|
+
goToPrevSearchResult: () => void;
|
|
1359
|
+
goToNextSearchResult: () => void;
|
|
1360
|
+
};
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
|
|
1365
|
+
declare module '@tiptap/core' {
|
|
1366
|
+
interface Commands<ReturnType> {
|
|
1367
|
+
emoji: {
|
|
1368
|
+
setEmoji: (emoji: {
|
|
1369
|
+
name: string;
|
|
1370
|
+
emoji: string;
|
|
1371
|
+
}) => ReturnType;
|
|
1815
1372
|
};
|
|
1816
1373
|
}
|
|
1817
1374
|
}
|
|
@@ -1828,13 +1385,8 @@ declare module '@tiptap/core' {
|
|
|
1828
1385
|
|
|
1829
1386
|
declare module '@tiptap/core' {
|
|
1830
1387
|
interface Commands<ReturnType> {
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
1834
|
-
replace: () => ReturnType;
|
|
1835
|
-
replaceAll: () => ReturnType;
|
|
1836
|
-
goToPrevSearchResult: () => void;
|
|
1837
|
-
goToNextSearchResult: () => void;
|
|
1388
|
+
exportWord: {
|
|
1389
|
+
exportToWord: () => ReturnType;
|
|
1838
1390
|
};
|
|
1839
1391
|
}
|
|
1840
1392
|
}
|
|
@@ -1852,20 +1404,23 @@ declare module '@tiptap/core' {
|
|
|
1852
1404
|
|
|
1853
1405
|
declare module '@tiptap/core' {
|
|
1854
1406
|
interface Commands<ReturnType> {
|
|
1855
|
-
|
|
1856
|
-
|
|
1407
|
+
excalidraw: {
|
|
1408
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
1857
1409
|
};
|
|
1858
1410
|
}
|
|
1859
1411
|
}
|
|
1860
1412
|
|
|
1861
1413
|
|
|
1862
|
-
declare
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1414
|
+
declare namespace DropdownMenuShortcut {
|
|
1415
|
+
var displayName: string;
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
|
|
1419
|
+
declare namespace DialogHeader {
|
|
1420
|
+
var displayName: string;
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
|
|
1424
|
+
declare namespace DialogFooter {
|
|
1425
|
+
var displayName: string;
|
|
1871
1426
|
}
|