reactjs-tiptap-editor 0.0.7 → 0.0.9
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 +892 -37
- package/lib/index.d.ts +892 -37
- package/lib/reactjs-tiptap-editor.cjs +2 -1
- package/lib/reactjs-tiptap-editor.cjs.map +1 -0
- package/lib/reactjs-tiptap-editor.js +4840 -4500
- package/lib/reactjs-tiptap-editor.js.map +1 -0
- package/lib/style.css +1 -1
- package/lib/{vendor-D8S0CsNZ.js → vendor-CEGfMB8c.js} +23282 -22852
- package/lib/vendor-CEGfMB8c.js.map +1 -0
- package/lib/vendor-hs-6p2w6.cjs +524 -0
- package/lib/vendor-hs-6p2w6.cjs.map +1 -0
- package/package.json +21 -17
- package/lib/vendor-B-W_3NKN.cjs +0 -518
package/lib/index.d.cts
CHANGED
|
@@ -3,13 +3,18 @@ import { BlockquoteOptions as BlockquoteOptions_2 } from '@tiptap/extension-bloc
|
|
|
3
3
|
import { BoldOptions as BoldOptions_2 } from '@tiptap/extension-bold';
|
|
4
4
|
import { BulletListOptions as BulletListOptions_2 } from '@tiptap/extension-bullet-list';
|
|
5
5
|
import { CharacterCountOptions } from '@tiptap/extension-character-count';
|
|
6
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
6
7
|
import { CodeBlockLowlightOptions } from '@tiptap/extension-code-block-lowlight';
|
|
7
8
|
import { CodeOptions as CodeOptions_2 } from '@tiptap/extension-code';
|
|
8
9
|
import { ColorOptions as ColorOptions_2 } from '@tiptap/extension-color';
|
|
10
|
+
import { default as default_2 } from 'react';
|
|
9
11
|
import { DropcursorOptions } from '@tiptap/extension-dropcursor';
|
|
12
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
10
13
|
import { Editor } from '@tiptap/react';
|
|
14
|
+
import { Editor as Editor_2 } from '@tiptap/core';
|
|
11
15
|
import { Extension } from '@tiptap/core';
|
|
12
16
|
import { FocusOptions as FocusOptions_2 } from '@tiptap/extension-focus';
|
|
17
|
+
import { FontFamilyOptions as FontFamilyOptions_2 } from '@tiptap/extension-font-family';
|
|
13
18
|
import { ForwardRefExoticComponent } from 'react';
|
|
14
19
|
import { HardBreakOptions } from '@tiptap/extension-hard-break';
|
|
15
20
|
import { HeadingOptions as HeadingOptions_2 } from '@tiptap/extension-heading';
|
|
@@ -18,6 +23,9 @@ import { HistoryOptions as HistoryOptions_2 } from '@tiptap/extension-history';
|
|
|
18
23
|
import { HorizontalRuleOptions as HorizontalRuleOptions_2 } from '@tiptap/extension-horizontal-rule';
|
|
19
24
|
import { ImageOptions } from '@tiptap/extension-image';
|
|
20
25
|
import { ItalicOptions as ItalicOptions_2 } from '@tiptap/extension-italic';
|
|
26
|
+
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
27
|
+
import { JSXElementConstructor } from 'react';
|
|
28
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
21
29
|
import { LinkOptions as LinkOptions_2 } from '@tiptap/extension-link';
|
|
22
30
|
import { ListItemOptions } from '@tiptap/extension-list-item';
|
|
23
31
|
import { Mark } from '@tiptap/core';
|
|
@@ -26,22 +34,102 @@ import { Node as Node_3 } from '@tiptap/react';
|
|
|
26
34
|
import { OrderedListOptions as OrderedListOptions_2 } from '@tiptap/extension-ordered-list';
|
|
27
35
|
import { ParagraphOptions } from '@tiptap/extension-paragraph';
|
|
28
36
|
import { PlaceholderOptions } from '@tiptap/extension-placeholder';
|
|
37
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
38
|
+
import * as React_2 from 'react';
|
|
39
|
+
import { ReactElement } from 'react';
|
|
40
|
+
import { ReactNode } from 'react';
|
|
29
41
|
import { RefAttributes } from 'react';
|
|
42
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
30
43
|
import { StrikeOptions as StrikeOptions_2 } from '@tiptap/extension-strike';
|
|
31
44
|
import { SubscriptExtensionOptions } from '@tiptap/extension-subscript';
|
|
32
45
|
import { SuperscriptExtensionOptions } from '@tiptap/extension-superscript';
|
|
46
|
+
import { SVGProps } from 'react';
|
|
47
|
+
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
33
48
|
import { TableCellOptions } from '@tiptap/extension-table-cell';
|
|
34
49
|
import { TableHeaderOptions } from '@tiptap/extension-table-header';
|
|
35
50
|
import { TableRowOptions } from '@tiptap/extension-table-row';
|
|
51
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
36
52
|
import { TaskItemOptions } from '@tiptap/extension-task-item';
|
|
37
53
|
import { TaskListOptions as TaskListOptions_2 } from '@tiptap/extension-task-list';
|
|
38
54
|
import { TextAlignOptions as TextAlignOptions_2 } from '@tiptap/extension-text-align';
|
|
39
55
|
import { TextStyleOptions } from '@tiptap/extension-text-style';
|
|
56
|
+
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
57
|
+
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
58
|
+
import { TooltipContentProps } from '@radix-ui/react-tooltip';
|
|
59
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
40
60
|
import { UnderlineOptions as UnderlineOptions_2 } from '@tiptap/extension-underline';
|
|
41
61
|
import { UseEditorOptions } from '@tiptap/react';
|
|
62
|
+
import { VariantProps } from 'class-variance-authority';
|
|
63
|
+
|
|
64
|
+
declare type Action = {
|
|
65
|
+
type: ActionType['ADD_TOAST'];
|
|
66
|
+
toast: ToasterToast;
|
|
67
|
+
} | {
|
|
68
|
+
type: ActionType['UPDATE_TOAST'];
|
|
69
|
+
toast: Partial<ToasterToast>;
|
|
70
|
+
} | {
|
|
71
|
+
type: ActionType['DISMISS_TOAST'];
|
|
72
|
+
toastId?: ToasterToast['id'];
|
|
73
|
+
} | {
|
|
74
|
+
type: ActionType['REMOVE_TOAST'];
|
|
75
|
+
toastId?: ToasterToast['id'];
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export declare const ActionButton: default_2.ForwardRefExoticComponent<Partial<ActionButtonProps> & default_2.RefAttributes<HTMLButtonElement>>;
|
|
79
|
+
|
|
80
|
+
export declare interface ActionButtonProps {
|
|
81
|
+
icon?: string;
|
|
82
|
+
title?: string;
|
|
83
|
+
tooltip?: string;
|
|
84
|
+
disabled?: boolean;
|
|
85
|
+
shortcutKeys?: string[];
|
|
86
|
+
customClass?: string;
|
|
87
|
+
loading?: boolean;
|
|
88
|
+
tooltipOptions?: TooltipContentProps;
|
|
89
|
+
color?: string;
|
|
90
|
+
action?: ButtonViewReturnComponentProps['action'];
|
|
91
|
+
isActive?: ButtonViewReturnComponentProps['isActive'];
|
|
92
|
+
children?: default_2.ReactNode;
|
|
93
|
+
asChild?: boolean;
|
|
94
|
+
upload?: boolean;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export declare const ActionMenuButton: default_2.ForwardRefExoticComponent<ActionMenuButtonProps & default_2.RefAttributes<HTMLButtonElement>>;
|
|
98
|
+
|
|
99
|
+
export declare interface ActionMenuButtonProps {
|
|
100
|
+
/** Icon name to display */
|
|
101
|
+
icon?: any;
|
|
102
|
+
/** Button title text */
|
|
103
|
+
title?: string;
|
|
104
|
+
/** Tooltip text */
|
|
105
|
+
tooltip?: string;
|
|
106
|
+
/** Whether the button is disabled */
|
|
107
|
+
disabled?: boolean;
|
|
108
|
+
/** Keyboard shortcut keys */
|
|
109
|
+
shortcutKeys?: string[];
|
|
110
|
+
/** Button color */
|
|
111
|
+
color?: string;
|
|
112
|
+
/** Click action handler */
|
|
113
|
+
action?: ButtonViewReturnComponentProps['action'];
|
|
114
|
+
/** Active state checker */
|
|
115
|
+
isActive?: ButtonViewReturnComponentProps['isActive'];
|
|
116
|
+
/** Whether to render as child */
|
|
117
|
+
asChild?: boolean;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
declare type ActionType = typeof actionTypes;
|
|
121
|
+
|
|
122
|
+
declare const actionTypes: {
|
|
123
|
+
readonly ADD_TOAST: "ADD_TOAST";
|
|
124
|
+
readonly UPDATE_TOAST: "UPDATE_TOAST";
|
|
125
|
+
readonly DISMISS_TOAST: "DISMISS_TOAST";
|
|
126
|
+
readonly REMOVE_TOAST: "REMOVE_TOAST";
|
|
127
|
+
};
|
|
42
128
|
|
|
43
129
|
declare type Alignments = 'left' | 'center' | 'right' | 'justify';
|
|
44
130
|
|
|
131
|
+
export declare function AspectRatio(props: SVGProps<SVGSVGElement>): JSX_2.Element;
|
|
132
|
+
|
|
45
133
|
export declare const BaseKit: Extension<BaseKitOptions, any>;
|
|
46
134
|
|
|
47
135
|
/**
|
|
@@ -145,6 +233,8 @@ export declare interface BaseKitOptions {
|
|
|
145
233
|
|
|
146
234
|
export declare const Blockquote: Node_2<BlockquoteOptions, any>;
|
|
147
235
|
|
|
236
|
+
export declare function BlockquoteLeft(props: SVGProps<SVGSVGElement>): JSX_2.Element;
|
|
237
|
+
|
|
148
238
|
export declare interface BlockquoteOptions extends BlockquoteOptions_2, GeneralOptions<BlockquoteOptions> {
|
|
149
239
|
}
|
|
150
240
|
|
|
@@ -153,11 +243,170 @@ export declare const Bold: Mark<BoldOptions, any>;
|
|
|
153
243
|
export declare interface BoldOptions extends BoldOptions_2, GeneralOptions<BoldOptions> {
|
|
154
244
|
}
|
|
155
245
|
|
|
246
|
+
/** Represents the overall types for bubbles */
|
|
247
|
+
declare type BubbleAllType = BubbleImageType | BubbleVideoType | ExtensionNameKeys | 'divider' | (string & {});
|
|
248
|
+
|
|
249
|
+
/** Represents the size types for bubble images or videos */
|
|
250
|
+
declare type BubbleImageOrVideoSizeType = 'size-small' | 'size-medium' | 'size-large';
|
|
251
|
+
|
|
252
|
+
/** Represents the various types for bubble images */
|
|
253
|
+
declare type BubbleImageType = `image-${BubbleImageOrVideoSizeType}` | `video-${BubbleImageOrVideoSizeType}` | 'image' | 'image-aspect-ratio' | 'remove';
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Bubble Menu Component
|
|
257
|
+
*
|
|
258
|
+
* @param editor Editor instance
|
|
259
|
+
* @param disabled Whether the menu is disabled
|
|
260
|
+
* @param bubbleMenu Bubble menu configuration
|
|
261
|
+
* @returns Bubble menu component
|
|
262
|
+
*/
|
|
263
|
+
export declare function BubbleMenu({ editor, disabled, bubbleMenu }: BubbleMenuComponentProps): string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | (JSX_2.Element | null)[] | null | undefined;
|
|
264
|
+
|
|
265
|
+
export declare interface BubbleMenuComponentProps {
|
|
266
|
+
editor: Editor_2;
|
|
267
|
+
disabled?: boolean;
|
|
268
|
+
bubbleMenu?: BubbleMenuProps;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
export declare function BubbleMenuImage(props: IPropsBubbleMenu): JSX_2.Element;
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Represents the structure of a bubble menu item.
|
|
275
|
+
*/
|
|
276
|
+
export declare interface BubbleMenuItem extends ButtonViewReturn {
|
|
277
|
+
/** The type of the bubble item */
|
|
278
|
+
type: BubbleAllType;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export declare function BubbleMenuLink({ editor, disabled }: BubbleMenuLinkProps): JSX_2.Element;
|
|
282
|
+
|
|
283
|
+
export declare interface BubbleMenuLinkProps {
|
|
284
|
+
editor: Editor;
|
|
285
|
+
disabled?: boolean;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Represents the BubbleMenuProps.
|
|
290
|
+
*/
|
|
291
|
+
declare interface BubbleMenuProps {
|
|
292
|
+
columnConfig?: {
|
|
293
|
+
/**
|
|
294
|
+
* @description Column menu hidden
|
|
295
|
+
* @default false
|
|
296
|
+
*/
|
|
297
|
+
hidden?: boolean;
|
|
298
|
+
};
|
|
299
|
+
tableConfig?: {
|
|
300
|
+
/**
|
|
301
|
+
* @description Table menu hidden
|
|
302
|
+
* @default false
|
|
303
|
+
*/
|
|
304
|
+
hidden?: boolean;
|
|
305
|
+
};
|
|
306
|
+
floatingMenuConfig?: {
|
|
307
|
+
/**
|
|
308
|
+
* @description Floating menu hidden
|
|
309
|
+
* @default false
|
|
310
|
+
*/
|
|
311
|
+
hidden?: boolean;
|
|
312
|
+
};
|
|
313
|
+
linkConfig?: {
|
|
314
|
+
/**
|
|
315
|
+
* @description Link menu hidden
|
|
316
|
+
* @default false
|
|
317
|
+
*/
|
|
318
|
+
hidden?: boolean;
|
|
319
|
+
};
|
|
320
|
+
textConfig?: {
|
|
321
|
+
/**
|
|
322
|
+
* @description Text menu hidden
|
|
323
|
+
* @default false
|
|
324
|
+
*/
|
|
325
|
+
hidden?: boolean;
|
|
326
|
+
};
|
|
327
|
+
imageConfig?: {
|
|
328
|
+
/**
|
|
329
|
+
* @description Image menu hidden
|
|
330
|
+
* @default false
|
|
331
|
+
*/
|
|
332
|
+
hidden?: boolean;
|
|
333
|
+
};
|
|
334
|
+
videoConfig?: {
|
|
335
|
+
/**
|
|
336
|
+
* @description Video menu hidden
|
|
337
|
+
* @default false
|
|
338
|
+
*/
|
|
339
|
+
hidden?: boolean;
|
|
340
|
+
};
|
|
341
|
+
render?: (props: BubbleMenuRenderProps, dom: React.ReactNode) => React.ReactNode;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Represents the BubbleMenuRenderProps.
|
|
346
|
+
*/
|
|
347
|
+
declare interface BubbleMenuRenderProps {
|
|
348
|
+
editor: Editor;
|
|
349
|
+
disabled: boolean;
|
|
350
|
+
bubbleMenu: BubbleMenuProps;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
export declare function BubbleMenuText(props: BubbleMenuTextProps): JSX_2.Element;
|
|
354
|
+
|
|
355
|
+
export declare interface BubbleMenuTextProps {
|
|
356
|
+
editor: Editor_2;
|
|
357
|
+
disabled?: boolean;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
export declare function BubbleMenuVideo(props: IPropsBubbleMenu): JSX_2.Element;
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* Represents the options for configuring bubbles.
|
|
364
|
+
* @interface BubbleOptions
|
|
365
|
+
* @template T
|
|
366
|
+
*/
|
|
367
|
+
export declare interface BubbleOptions<T> {
|
|
368
|
+
/** The menu of bubble types for each node type. */
|
|
369
|
+
list: NodeTypeMenu;
|
|
370
|
+
/** The default list of bubble types. */
|
|
371
|
+
defaultBubbleList: any;
|
|
372
|
+
/** The function to generate a bubble menu. */
|
|
373
|
+
button: BubbleView<T>;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/** Represents the menu of bubble types for each node type */
|
|
377
|
+
export declare type BubbleTypeMenu = Partial<Record<NodeTypeKey, BubbleMenuItem[]>>;
|
|
378
|
+
|
|
379
|
+
/** Represents the types for bubble videos */
|
|
380
|
+
declare type BubbleVideoType = 'video' | 'remove';
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Represents a function to generate a bubble menu
|
|
384
|
+
*/
|
|
385
|
+
declare interface BubbleView<T = any> {
|
|
386
|
+
/**
|
|
387
|
+
* Generates a bubble menu based on the provided options.
|
|
388
|
+
* @param {ButtonViewParams<T>} options - The options for generating the bubble menu.
|
|
389
|
+
* @returns {BubbleTypeMenu} The generated bubble menu.
|
|
390
|
+
*/
|
|
391
|
+
(options: ButtonViewParams<T>): BubbleTypeMenu;
|
|
392
|
+
}
|
|
393
|
+
|
|
156
394
|
export declare const BulletList: Node_2<BulletListOptions, any>;
|
|
157
395
|
|
|
158
396
|
export declare interface BulletListOptions extends BulletListOptions_2, GeneralOptions<BulletListOptions> {
|
|
159
397
|
}
|
|
160
398
|
|
|
399
|
+
export declare const Button: React_2.ForwardRefExoticComponent<ButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
400
|
+
|
|
401
|
+
export declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
402
|
+
asChild?: boolean;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
export declare const buttonVariants: (props?: ({
|
|
406
|
+
variant?: "link" | "default" | "outline" | "destructive" | "secondary" | "ghost" | null | undefined;
|
|
407
|
+
size?: "icon" | "default" | "sm" | "lg" | null | undefined;
|
|
408
|
+
} & ClassProp) | undefined) => string;
|
|
409
|
+
|
|
161
410
|
/**
|
|
162
411
|
* Represents the ButtonView function.
|
|
163
412
|
*/
|
|
@@ -233,14 +482,23 @@ export declare const Color: Extension<ColorOptions, any>;
|
|
|
233
482
|
export declare interface ColorOptions extends ColorOptions_2, GeneralOptions<ColorOptions> {
|
|
234
483
|
}
|
|
235
484
|
|
|
485
|
+
export declare function ColorPicker(props: ColorPickerProps): JSX_2.Element;
|
|
486
|
+
|
|
487
|
+
export declare interface ColorPickerProps {
|
|
488
|
+
highlight?: boolean;
|
|
489
|
+
disabled?: boolean;
|
|
490
|
+
children: default_2.ReactNode;
|
|
491
|
+
onChange?: (color: string | undefined) => void;
|
|
492
|
+
setSelectedColor?: (color: string | undefined) => void;
|
|
493
|
+
selectedColor?: string;
|
|
494
|
+
}
|
|
495
|
+
|
|
236
496
|
declare enum ColumnLayout {
|
|
237
497
|
SidebarLeft = "sidebar-left",
|
|
238
498
|
SidebarRight = "sidebar-right",
|
|
239
499
|
TwoColumn = "two-column"
|
|
240
500
|
}
|
|
241
501
|
|
|
242
|
-
export declare const Columns: Node_2<ColumnsOptions, any>;
|
|
243
|
-
|
|
244
502
|
export declare interface ColumnsOptions extends GeneralOptions<ColumnsOptions> {
|
|
245
503
|
columnOptions: any;
|
|
246
504
|
layout: ColumnLayout;
|
|
@@ -248,10 +506,200 @@ export declare interface ColumnsOptions extends GeneralOptions<ColumnsOptions> {
|
|
|
248
506
|
|
|
249
507
|
export declare const ColumnToolbar: Extension<any, any>;
|
|
250
508
|
|
|
251
|
-
declare
|
|
509
|
+
export declare function ContentMenu(props: ContentMenuProps): JSX_2.Element;
|
|
510
|
+
|
|
511
|
+
export declare interface ContentMenuProps {
|
|
512
|
+
editor: Editor_2;
|
|
513
|
+
disabled?: boolean;
|
|
514
|
+
className?: string;
|
|
515
|
+
pluginKey?: string;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
declare const _default: ForwardRefExoticComponent<IPropsRichTextEditor & RefAttributes<unknown>>;
|
|
252
519
|
export default _default;
|
|
253
520
|
|
|
254
|
-
export declare
|
|
521
|
+
export declare function DeleteColumn(): JSX_2.Element;
|
|
522
|
+
|
|
523
|
+
export declare function DeleteRow(): JSX_2.Element;
|
|
524
|
+
|
|
525
|
+
export declare const DropdownMenu: React_2.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
526
|
+
|
|
527
|
+
export declare const DropdownMenuCheckboxItem: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
528
|
+
|
|
529
|
+
export declare const DropdownMenuContent: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
530
|
+
|
|
531
|
+
export declare const DropdownMenuGroup: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
532
|
+
|
|
533
|
+
export declare const DropdownMenuItem: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
534
|
+
inset?: boolean;
|
|
535
|
+
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
536
|
+
|
|
537
|
+
export declare const DropdownMenuLabel: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
538
|
+
inset?: boolean;
|
|
539
|
+
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
540
|
+
|
|
541
|
+
export declare const DropdownMenuPortal: React_2.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
542
|
+
|
|
543
|
+
export declare const DropdownMenuRadioGroup: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
544
|
+
|
|
545
|
+
export declare const DropdownMenuRadioItem: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
546
|
+
|
|
547
|
+
export declare const DropdownMenuSeparator: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
548
|
+
|
|
549
|
+
export declare function DropdownMenuShortcut({ className, ...props }: React_2.HTMLAttributes<HTMLSpanElement>): JSX_2.Element;
|
|
550
|
+
|
|
551
|
+
export declare namespace DropdownMenuShortcut {
|
|
552
|
+
var displayName: string;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
export declare const DropdownMenuSub: React_2.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
556
|
+
|
|
557
|
+
export declare const DropdownMenuSubContent: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
558
|
+
|
|
559
|
+
export declare const DropdownMenuSubTrigger: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
560
|
+
inset?: boolean;
|
|
561
|
+
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
562
|
+
|
|
563
|
+
export declare const DropdownMenuTrigger: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
564
|
+
|
|
565
|
+
export declare const en: {
|
|
566
|
+
'editor.remove': string;
|
|
567
|
+
'editor.copy': string;
|
|
568
|
+
'editor.words': string;
|
|
569
|
+
'editor.characters': string;
|
|
570
|
+
'editor.default': string;
|
|
571
|
+
'editor.recent': string;
|
|
572
|
+
'editor.nofill': string;
|
|
573
|
+
'editor.format': string;
|
|
574
|
+
'editor.draghandle.tooltip': string;
|
|
575
|
+
'editor.copyToClipboard': string;
|
|
576
|
+
'editor.importWord.tooltip': string;
|
|
577
|
+
'editor.slash': string;
|
|
578
|
+
'editor.slash.empty': string;
|
|
579
|
+
'editor.slash.format': string;
|
|
580
|
+
'editor.slash.insert': string;
|
|
581
|
+
'editor.slash.embed': string;
|
|
582
|
+
'editor.content': string;
|
|
583
|
+
'editor.fontFamily.tooltip': string;
|
|
584
|
+
'editor.fontFamily.default.tooltip': string;
|
|
585
|
+
'editor.moremark': string;
|
|
586
|
+
'editor.size.small.tooltip': string;
|
|
587
|
+
'editor.size.medium.tooltip': string;
|
|
588
|
+
'editor.size.large.tooltip': string;
|
|
589
|
+
'editor.bold.tooltip': string;
|
|
590
|
+
'editor.italic.tooltip': string;
|
|
591
|
+
'editor.underline.tooltip': string;
|
|
592
|
+
'editor.strike.tooltip': string;
|
|
593
|
+
'editor.color.tooltip': string;
|
|
594
|
+
'editor.color.more': string;
|
|
595
|
+
'editor.highlight.tooltip': string;
|
|
596
|
+
'editor.lineheight.tooltip': string;
|
|
597
|
+
'editor.heading.tooltip': string;
|
|
598
|
+
'editor.heading.h1.tooltip': string;
|
|
599
|
+
'editor.heading.h2.tooltip': string;
|
|
600
|
+
'editor.heading.h3.tooltip': string;
|
|
601
|
+
'editor.heading.h4.tooltip': string;
|
|
602
|
+
'editor.heading.h5.tooltip': string;
|
|
603
|
+
'editor.heading.h6.tooltip': string;
|
|
604
|
+
'editor.paragraph.tooltip': string;
|
|
605
|
+
'editor.textalign.tooltip': string;
|
|
606
|
+
'editor.textalign.left.tooltip': string;
|
|
607
|
+
'editor.textalign.center.tooltip': string;
|
|
608
|
+
'editor.textalign.right.tooltip': string;
|
|
609
|
+
'editor.textalign.justify.tooltip': string;
|
|
610
|
+
'editor.indent': string;
|
|
611
|
+
'editor.indent.indent': string;
|
|
612
|
+
'editor.indent.outdent': string;
|
|
613
|
+
'editor.fontSize.tooltip': string;
|
|
614
|
+
'editor.fontSize.default.tooltip': string;
|
|
615
|
+
'editor.superscript.tooltip': string;
|
|
616
|
+
'editor.subscript.tooltip': string;
|
|
617
|
+
'editor.bulletlist.tooltip': string;
|
|
618
|
+
'editor.orderedlist.tooltip': string;
|
|
619
|
+
'editor.tasklist.tooltip': string;
|
|
620
|
+
'editor.indent.tooltip': string;
|
|
621
|
+
'editor.outdent.tooltip': string;
|
|
622
|
+
'editor.columns.tooltip': string;
|
|
623
|
+
'editor.link.tooltip': string;
|
|
624
|
+
'editor.link.unlink.tooltip': string;
|
|
625
|
+
'editor.link.open.tooltip': string;
|
|
626
|
+
'editor.link.edit.tooltip': string;
|
|
627
|
+
'editor.link.dialog.title': string;
|
|
628
|
+
'editor.link.dialog.link': string;
|
|
629
|
+
'editor.link.dialog.text': string;
|
|
630
|
+
'editor.link.dialog.openInNewTab': string;
|
|
631
|
+
'editor.link.dialog.link.placeholder': string;
|
|
632
|
+
'editor.link.dialog.text.placeholder': string;
|
|
633
|
+
'editor.link.dialog.button.apply': string;
|
|
634
|
+
'editor.image.tooltip': string;
|
|
635
|
+
'editor.image.dragger.tooltip': string;
|
|
636
|
+
'editor.image.float.left.tooltip': string;
|
|
637
|
+
'editor.image.float.none.tooltip': string;
|
|
638
|
+
'editor.image.float.right.tooltip': string;
|
|
639
|
+
'editor.image.dialog.title': string;
|
|
640
|
+
'editor.image.dialog.tab.url': string;
|
|
641
|
+
'editor.image.dialog.tab.upload': string;
|
|
642
|
+
'editor.image.dialog.uploading': string;
|
|
643
|
+
'editor.image.dialog.form.link': string;
|
|
644
|
+
'editor.image.dialog.placeholder': string;
|
|
645
|
+
'editor.image.dialog.form.alt': string;
|
|
646
|
+
'editor.image.dialog.form.aspectRatio': string;
|
|
647
|
+
'editor.image.dialog.form.file': string;
|
|
648
|
+
'editor.image.dialog.button.apply': string;
|
|
649
|
+
'editor.video.tooltip': string;
|
|
650
|
+
'editor.video.dialog.tab.upload': string;
|
|
651
|
+
'editor.video.dialog.uploading': string;
|
|
652
|
+
'editor.video.dialog.title': string;
|
|
653
|
+
'editor.video.dialog.link': string;
|
|
654
|
+
'editor.video.dialog.placeholder': string;
|
|
655
|
+
'editor.video.dialog.button.apply': string;
|
|
656
|
+
'editor.table.tooltip': string;
|
|
657
|
+
'editor.table.menu.insert_table': string;
|
|
658
|
+
'editor.table.menu.insert_table.with_header_row': string;
|
|
659
|
+
'editor.table.menu.add_column_before': string;
|
|
660
|
+
'editor.table.menu.add_column_after': string;
|
|
661
|
+
'editor.table.menu.delete_column': string;
|
|
662
|
+
'editor.table.menu.add_row_before': string;
|
|
663
|
+
'editor.table.menu.add_row_after': string;
|
|
664
|
+
'editor.table.menu.delete_row': string;
|
|
665
|
+
'editor.table.menu.merge_or_split_cells': string;
|
|
666
|
+
'editor.table.menu.delete_table': string;
|
|
667
|
+
'editor.blockquote.tooltip': string;
|
|
668
|
+
'editor.horizontalrule.tooltip': string;
|
|
669
|
+
'editor.code.tooltip': string;
|
|
670
|
+
'editor.codeblock.tooltip': string;
|
|
671
|
+
'editor.clear.tooltip': string;
|
|
672
|
+
'editor.undo.tooltip': string;
|
|
673
|
+
'editor.redo.tooltip': string;
|
|
674
|
+
'editor.fullscreen.tooltip.fullscreen': string;
|
|
675
|
+
'editor.fullscreen.tooltip.exit': string;
|
|
676
|
+
'editor.imageUpload.fileTypeNotSupported': string;
|
|
677
|
+
'editor.imageUpload.fileSizeTooBig': string;
|
|
678
|
+
'editor.table.menu.insertColumnBefore': string;
|
|
679
|
+
'editor.table.menu.insertColumnAfter': string;
|
|
680
|
+
'editor.table.menu.deleteColumn': string;
|
|
681
|
+
'editor.table.menu.insertRowAbove': string;
|
|
682
|
+
'editor.table.menu.insertRowBelow': string;
|
|
683
|
+
'editor.table.menu.deleteRow': string;
|
|
684
|
+
'editor.table.menu.mergeCells': string;
|
|
685
|
+
'editor.table.menu.splitCells': string;
|
|
686
|
+
'editor.table.menu.deleteTable': string;
|
|
687
|
+
'editor.table.menu.setCellsBgColor': string;
|
|
688
|
+
'editor.emoji.tooltip': string;
|
|
689
|
+
'editor.iframe.tooltip': string;
|
|
690
|
+
};
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* Represents the keys for different extensions.
|
|
694
|
+
*/
|
|
695
|
+
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';
|
|
696
|
+
|
|
697
|
+
export declare function FileWordOutline(props: SVGProps<SVGSVGElement>): JSX_2.Element;
|
|
698
|
+
|
|
699
|
+
export declare const FontFamily: Extension<FontFamilyOptions, any>;
|
|
700
|
+
|
|
701
|
+
declare interface FontFamilyOptions extends FontFamilyOptions_2, GeneralOptions<FontFamilyOptions> {
|
|
702
|
+
}
|
|
255
703
|
|
|
256
704
|
export declare const FontSize: Extension<FontSizeOptions, any>;
|
|
257
705
|
|
|
@@ -268,6 +716,8 @@ export declare interface FontSizeOptions extends GeneralOptions<FontSizeOptions>
|
|
|
268
716
|
fontSizes: string[];
|
|
269
717
|
}
|
|
270
718
|
|
|
719
|
+
export declare function FormatLineHeight(props: SVGProps<SVGSVGElement>): JSX_2.Element;
|
|
720
|
+
|
|
271
721
|
/**
|
|
272
722
|
* 格式刷
|
|
273
723
|
*/
|
|
@@ -293,6 +743,15 @@ declare interface GeneralOptions<T> {
|
|
|
293
743
|
toolbar?: boolean;
|
|
294
744
|
}
|
|
295
745
|
|
|
746
|
+
export declare function getBubbleImage(editor: Editor): BubbleMenuItem[];
|
|
747
|
+
|
|
748
|
+
/**
|
|
749
|
+
* Bubble menu text list
|
|
750
|
+
*/
|
|
751
|
+
export declare function getBubbleText(editor: Editor, t: any): BubbleMenuItem[];
|
|
752
|
+
|
|
753
|
+
export declare function getBubbleVideo(editor: Editor): BubbleMenuItem[];
|
|
754
|
+
|
|
296
755
|
export declare const Heading: Node_2<HeadingOptions, any>;
|
|
297
756
|
|
|
298
757
|
export declare interface HeadingOptions extends HeadingOptions_2, GeneralOptions<HeadingOptions> {
|
|
@@ -315,6 +774,16 @@ export declare const HorizontalRule: Node_2<HorizontalRuleOptions, any>;
|
|
|
315
774
|
export declare interface HorizontalRuleOptions extends HorizontalRuleOptions_2, GeneralOptions<HorizontalRuleOptions> {
|
|
316
775
|
}
|
|
317
776
|
|
|
777
|
+
export declare function IconComponent(props: IconComponentProps): JSX_2.Element | null;
|
|
778
|
+
|
|
779
|
+
export declare interface IconComponentProps {
|
|
780
|
+
name: string;
|
|
781
|
+
className?: string;
|
|
782
|
+
onClick?: default_2.MouseEventHandler<SVGElement>;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
export declare const icons: any;
|
|
786
|
+
|
|
318
787
|
export declare const Iframe: Node_2<IframeOptions, any>;
|
|
319
788
|
|
|
320
789
|
declare interface IframeOptions extends GeneralOptions<IframeOptions> {
|
|
@@ -343,7 +812,17 @@ export declare interface IndentOptions extends GeneralOptions<IndentOptions> {
|
|
|
343
812
|
maxIndent: number;
|
|
344
813
|
}
|
|
345
814
|
|
|
346
|
-
declare
|
|
815
|
+
export declare const Input: React_2.ForwardRefExoticComponent<InputProps & React_2.RefAttributes<HTMLInputElement>>;
|
|
816
|
+
|
|
817
|
+
export declare interface InputProps extends React_2.InputHTMLAttributes<HTMLInputElement> {
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
declare interface IPropsBubbleMenu {
|
|
821
|
+
editor: Editor;
|
|
822
|
+
disabled?: boolean;
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
declare interface IPropsRichTextEditor {
|
|
347
826
|
content: string;
|
|
348
827
|
extensions: AnyExtension[];
|
|
349
828
|
output: 'html' | 'json' | 'text';
|
|
@@ -362,6 +841,7 @@ declare interface IPropsRcTiptapEditor {
|
|
|
362
841
|
editorClass?: string | string[] | Record<string, any>;
|
|
363
842
|
contentClass?: string | string[] | Record<string, any>;
|
|
364
843
|
onChangeContent?: (val: any) => void;
|
|
844
|
+
bubbleMenu?: BubbleMenuProps;
|
|
365
845
|
useEditorOptions?: UseEditorOptions;
|
|
366
846
|
}
|
|
367
847
|
|
|
@@ -370,7 +850,9 @@ export declare const Italic: Mark<ItalicOptions, any>;
|
|
|
370
850
|
export declare interface ItalicOptions extends ItalicOptions_2, GeneralOptions<ItalicOptions> {
|
|
371
851
|
}
|
|
372
852
|
|
|
373
|
-
declare
|
|
853
|
+
export declare const Label: React_2.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React_2.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: ClassProp | undefined) => string> & React_2.RefAttributes<HTMLLabelElement>>;
|
|
854
|
+
|
|
855
|
+
declare type LanguageType = 'en' | 'vi' | 'zh_CN' | string;
|
|
374
856
|
|
|
375
857
|
export declare const LineHeight: Extension<LineHeightOptions, any>;
|
|
376
858
|
|
|
@@ -390,20 +872,24 @@ declare class Locale {
|
|
|
390
872
|
constructor();
|
|
391
873
|
get lang(): LanguageType;
|
|
392
874
|
set lang(lang: LanguageType);
|
|
393
|
-
get message(): Record<LanguageType, Record<
|
|
394
|
-
set message(message: Record<LanguageType, Record<
|
|
395
|
-
loadLangMessage(lang: LanguageType): Record<
|
|
875
|
+
get message(): Record<LanguageType, Record<MessageKeysType, string>>;
|
|
876
|
+
set message(message: Record<LanguageType, Record<MessageKeysType, string>>);
|
|
877
|
+
loadLangMessage(lang: LanguageType): Record<MessageKeysType, string>;
|
|
396
878
|
private isLangSupported;
|
|
397
879
|
setLang(lang: LanguageType): void;
|
|
398
880
|
registerWatchLang(hook: (lang: LanguageType) => void): {
|
|
399
881
|
unsubscribe: () => void;
|
|
400
882
|
};
|
|
401
|
-
setMessage(lang:
|
|
402
|
-
buildLocalesHandler(lang?: LanguageType): (path:
|
|
883
|
+
setMessage(lang: string, message: Record<MessageKeysType, string>): void;
|
|
884
|
+
buildLocalesHandler(lang?: LanguageType): (path: MessageKeysType) => string;
|
|
403
885
|
}
|
|
404
886
|
|
|
405
887
|
export declare const locale: Locale;
|
|
406
888
|
|
|
889
|
+
export declare function MenuDown(props: SVGProps<SVGSVGElement>): JSX_2.Element;
|
|
890
|
+
|
|
891
|
+
declare type MessageKeysType = keyof typeof en;
|
|
892
|
+
|
|
407
893
|
export declare const MoreMark: Extension<MoreMarkOptions, any>;
|
|
408
894
|
|
|
409
895
|
export declare interface MoreMarkOptions extends GeneralOptions<MoreMarkOptions> {
|
|
@@ -421,11 +907,29 @@ export declare interface MoreMarkOptions extends GeneralOptions<MoreMarkOptions>
|
|
|
421
907
|
superscript: Partial<SuperscriptExtensionOptions> | false;
|
|
422
908
|
}
|
|
423
909
|
|
|
910
|
+
export declare const MultiColumn: Node_2<ColumnsOptions, any>;
|
|
911
|
+
|
|
912
|
+
/** Represents the key types for node types */
|
|
913
|
+
export declare type NodeTypeKey = 'image' | 'text' | 'video';
|
|
914
|
+
|
|
915
|
+
/** Represents the menu of overall bubble types for each node type */
|
|
916
|
+
export declare type NodeTypeMenu = Partial<Record<NodeTypeKey, BubbleAllType[]>>;
|
|
917
|
+
|
|
424
918
|
export declare const OrderedList: Node_2<OrderedListOptions, any>;
|
|
425
919
|
|
|
426
920
|
export declare interface OrderedListOptions extends OrderedListOptions_2, GeneralOptions<OrderedListOptions> {
|
|
427
921
|
}
|
|
428
922
|
|
|
923
|
+
export declare const Popover: React_2.FC<PopoverPrimitive.PopoverProps>;
|
|
924
|
+
|
|
925
|
+
export declare const PopoverContent: React_2.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
926
|
+
|
|
927
|
+
export declare const PopoverTrigger: React_2.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
928
|
+
|
|
929
|
+
export declare function reducer(state: State, action: Action): State;
|
|
930
|
+
|
|
931
|
+
export declare const Separator: React_2.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
932
|
+
|
|
429
933
|
export declare interface SetImageAttrsOptions {
|
|
430
934
|
src?: string;
|
|
431
935
|
/** The alternative text for the image. */
|
|
@@ -436,8 +940,18 @@ export declare interface SetImageAttrsOptions {
|
|
|
436
940
|
width?: number | string | null;
|
|
437
941
|
}
|
|
438
942
|
|
|
943
|
+
export declare function SizeL(props: SVGProps<SVGSVGElement>): JSX_2.Element;
|
|
944
|
+
|
|
945
|
+
export declare function SizeM(props: SVGProps<SVGSVGElement>): JSX_2.Element;
|
|
946
|
+
|
|
947
|
+
export declare function SizeS(props: SVGProps<SVGSVGElement>): JSX_2.Element;
|
|
948
|
+
|
|
439
949
|
export declare const SlashCommand: Extension<any, any>;
|
|
440
950
|
|
|
951
|
+
declare interface State {
|
|
952
|
+
toasts: ToasterToast[];
|
|
953
|
+
}
|
|
954
|
+
|
|
441
955
|
export declare const Strike: Mark<StrikeOptions, any>;
|
|
442
956
|
|
|
443
957
|
export declare interface StrikeOptions extends StrikeOptions_2, GeneralOptions<StrikeOptions> {
|
|
@@ -463,12 +977,20 @@ export declare interface SubAndSuperScriptOptions extends GeneralOptions<SubAndS
|
|
|
463
977
|
superscript: Partial<SuperscriptExtensionOptions> | false;
|
|
464
978
|
}
|
|
465
979
|
|
|
980
|
+
export declare const Switch: React_2.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
981
|
+
|
|
466
982
|
export declare const Table: Node_2<TableOptions, any>;
|
|
467
983
|
|
|
468
|
-
declare
|
|
984
|
+
export declare function TableBubbleMenu({ editor }: TableBubbleMenuProps): JSX_2.Element;
|
|
985
|
+
|
|
986
|
+
export declare interface TableBubbleMenuProps {
|
|
987
|
+
editor: Editor_2;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
declare interface TableCellBackgroundOptions {
|
|
469
991
|
HTMLAttributes: Record<string, any>;
|
|
470
992
|
types?: any;
|
|
471
|
-
}
|
|
993
|
+
}
|
|
472
994
|
|
|
473
995
|
export declare interface TableOptions extends GeneralOptions<TableOptions> {
|
|
474
996
|
HTMLAttributes: Record<string, any>;
|
|
@@ -487,6 +1009,14 @@ export declare interface TableOptions extends GeneralOptions<TableOptions> {
|
|
|
487
1009
|
tableCellBackground: Partial<TableCellBackgroundOptions>;
|
|
488
1010
|
}
|
|
489
1011
|
|
|
1012
|
+
export declare const Tabs: React_2.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1013
|
+
|
|
1014
|
+
export declare const TabsContent: React_2.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
1015
|
+
|
|
1016
|
+
export declare const TabsList: React_2.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
1017
|
+
|
|
1018
|
+
export declare const TabsTrigger: React_2.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
1019
|
+
|
|
490
1020
|
export declare const TaskList: Node_2<TaskListOptions, any>;
|
|
491
1021
|
|
|
492
1022
|
/**
|
|
@@ -514,6 +1044,66 @@ export declare interface TextAlignOptions extends TextAlignOptions_2, GeneralOpt
|
|
|
514
1044
|
declare interface TextBubbleOptions extends GeneralOptions<TextBubbleOptions> {
|
|
515
1045
|
}
|
|
516
1046
|
|
|
1047
|
+
export declare const Toast: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React_2.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
|
|
1048
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
1049
|
+
} & ClassProp) | undefined) => string> & React_2.RefAttributes<HTMLLIElement>>;
|
|
1050
|
+
|
|
1051
|
+
export declare function toast({ ...props }: Toast_2): {
|
|
1052
|
+
id: string;
|
|
1053
|
+
dismiss: () => void;
|
|
1054
|
+
update: (props: ToasterToast) => void;
|
|
1055
|
+
};
|
|
1056
|
+
|
|
1057
|
+
declare type Toast_2 = Omit<ToasterToast, 'id'>;
|
|
1058
|
+
|
|
1059
|
+
export declare const ToastAction: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
1060
|
+
|
|
1061
|
+
export declare type ToastActionElement = React_2.ReactElement<typeof ToastAction>;
|
|
1062
|
+
|
|
1063
|
+
export declare const ToastClose: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
1064
|
+
|
|
1065
|
+
export declare const ToastDescription: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
1066
|
+
|
|
1067
|
+
declare type ToasterToast = ToastProps & {
|
|
1068
|
+
id: string;
|
|
1069
|
+
title?: React_2.ReactNode;
|
|
1070
|
+
description?: React_2.ReactNode;
|
|
1071
|
+
action?: ToastActionElement;
|
|
1072
|
+
};
|
|
1073
|
+
|
|
1074
|
+
export declare type ToastProps = React_2.ComponentPropsWithoutRef<typeof Toast>;
|
|
1075
|
+
|
|
1076
|
+
export declare const ToastProvider: React_2.FC<ToastPrimitives.ToastProviderProps>;
|
|
1077
|
+
|
|
1078
|
+
export declare const ToastTitle: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
1079
|
+
|
|
1080
|
+
export declare const ToastViewport: React_2.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React_2.RefAttributes<HTMLOListElement>, "ref"> & React_2.RefAttributes<HTMLOListElement>>;
|
|
1081
|
+
|
|
1082
|
+
export declare const Toggle: React_2.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
1083
|
+
variant?: "default" | "outline" | null | undefined;
|
|
1084
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
1085
|
+
} & ClassProp) | undefined) => string> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
1086
|
+
|
|
1087
|
+
export declare const toggleVariants: (props?: ({
|
|
1088
|
+
variant?: "default" | "outline" | null | undefined;
|
|
1089
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
1090
|
+
} & ClassProp) | undefined) => string;
|
|
1091
|
+
|
|
1092
|
+
export declare function Toolbar({ editor, disabled }: ToolbarProps): JSX_2.Element;
|
|
1093
|
+
|
|
1094
|
+
export declare interface ToolbarProps {
|
|
1095
|
+
editor: Editor_2;
|
|
1096
|
+
disabled?: boolean;
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
export declare const Tooltip: React_2.FC<TooltipPrimitive.TooltipProps>;
|
|
1100
|
+
|
|
1101
|
+
export declare const TooltipContent: React_2.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
1102
|
+
|
|
1103
|
+
export declare const TooltipProvider: React_2.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
1104
|
+
|
|
1105
|
+
export declare const TooltipTrigger: React_2.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
1106
|
+
|
|
517
1107
|
/**
|
|
518
1108
|
* Extension based on:
|
|
519
1109
|
* - https://github.com/ueberdosis/tiptap/blob/v1/packages/tiptap-extensions/src/extensions/TrailingNode.js
|
|
@@ -529,6 +1119,139 @@ export declare const Underline: Mark<UnderlineOptions, any>;
|
|
|
529
1119
|
export declare interface UnderlineOptions extends UnderlineOptions_2, GeneralOptions<UnderlineOptions> {
|
|
530
1120
|
}
|
|
531
1121
|
|
|
1122
|
+
export declare function useToast(): {
|
|
1123
|
+
toast: typeof toast;
|
|
1124
|
+
dismiss: (toastId?: string) => void;
|
|
1125
|
+
toasts: ToasterToast[];
|
|
1126
|
+
};
|
|
1127
|
+
|
|
1128
|
+
export declare const vi: {
|
|
1129
|
+
'editor.remove': string;
|
|
1130
|
+
'editor.copy': string;
|
|
1131
|
+
'editor.words': string;
|
|
1132
|
+
'editor.characters': string;
|
|
1133
|
+
'editor.default': string;
|
|
1134
|
+
'editor.recent': string;
|
|
1135
|
+
'editor.nofill': string;
|
|
1136
|
+
'editor.format': string;
|
|
1137
|
+
'editor.draghandle.tooltip': string;
|
|
1138
|
+
'editor.copyToClipboard': string;
|
|
1139
|
+
'editor.importWord.tooltip': string;
|
|
1140
|
+
'editor.slash': string;
|
|
1141
|
+
'editor.slash.empty': string;
|
|
1142
|
+
'editor.slash.format': string;
|
|
1143
|
+
'editor.slash.insert': string;
|
|
1144
|
+
'editor.slash.embed': string;
|
|
1145
|
+
'editor.content': string;
|
|
1146
|
+
'editor.moremark': string;
|
|
1147
|
+
'editor.size.small.tooltip': string;
|
|
1148
|
+
'editor.fontFamily.tooltip': string;
|
|
1149
|
+
'editor.fontFamily.default.tooltip': string;
|
|
1150
|
+
'editor.size.medium.tooltip': string;
|
|
1151
|
+
'editor.size.large.tooltip': string;
|
|
1152
|
+
'editor.bold.tooltip': string;
|
|
1153
|
+
'editor.italic.tooltip': string;
|
|
1154
|
+
'editor.underline.tooltip': string;
|
|
1155
|
+
'editor.strike.tooltip': string;
|
|
1156
|
+
'editor.color.tooltip': string;
|
|
1157
|
+
'editor.color.more': string;
|
|
1158
|
+
'editor.highlight.tooltip': string;
|
|
1159
|
+
'editor.lineheight.tooltip': string;
|
|
1160
|
+
'editor.heading.tooltip': string;
|
|
1161
|
+
'editor.heading.h1.tooltip': string;
|
|
1162
|
+
'editor.heading.h2.tooltip': string;
|
|
1163
|
+
'editor.heading.h3.tooltip': string;
|
|
1164
|
+
'editor.heading.h4.tooltip': string;
|
|
1165
|
+
'editor.heading.h5.tooltip': string;
|
|
1166
|
+
'editor.heading.h6.tooltip': string;
|
|
1167
|
+
'editor.paragraph.tooltip': string;
|
|
1168
|
+
'editor.textalign.tooltip': string;
|
|
1169
|
+
'editor.textalign.left.tooltip': string;
|
|
1170
|
+
'editor.textalign.center.tooltip': string;
|
|
1171
|
+
'editor.textalign.right.tooltip': string;
|
|
1172
|
+
'editor.textalign.justify.tooltip': string;
|
|
1173
|
+
'editor.indent': string;
|
|
1174
|
+
'editor.indent.indent': string;
|
|
1175
|
+
'editor.indent.outdent': string;
|
|
1176
|
+
'editor.fontSize.tooltip': string;
|
|
1177
|
+
'editor.fontSize.default.tooltip': string;
|
|
1178
|
+
'editor.superscript.tooltip': string;
|
|
1179
|
+
'editor.subscript.tooltip': string;
|
|
1180
|
+
'editor.bulletlist.tooltip': string;
|
|
1181
|
+
'editor.orderedlist.tooltip': string;
|
|
1182
|
+
'editor.tasklist.tooltip': string;
|
|
1183
|
+
'editor.indent.tooltip': string;
|
|
1184
|
+
'editor.outdent.tooltip': string;
|
|
1185
|
+
'editor.columns.tooltip': string;
|
|
1186
|
+
'editor.link.tooltip': string;
|
|
1187
|
+
'editor.link.unlink.tooltip': string;
|
|
1188
|
+
'editor.link.open.tooltip': string;
|
|
1189
|
+
'editor.link.edit.tooltip': string;
|
|
1190
|
+
'editor.link.dialog.title': string;
|
|
1191
|
+
'editor.link.dialog.link': string;
|
|
1192
|
+
'editor.link.dialog.text': string;
|
|
1193
|
+
'editor.link.dialog.openInNewTab': string;
|
|
1194
|
+
'editor.link.dialog.link.placeholder': string;
|
|
1195
|
+
'editor.link.dialog.text.placeholder': string;
|
|
1196
|
+
'editor.link.dialog.button.apply': string;
|
|
1197
|
+
'editor.image.tooltip': string;
|
|
1198
|
+
'editor.image.dragger.tooltip': string;
|
|
1199
|
+
'editor.image.float.left.tooltip': string;
|
|
1200
|
+
'editor.image.float.none.tooltip': string;
|
|
1201
|
+
'editor.image.float.right.tooltip': string;
|
|
1202
|
+
'editor.image.dialog.title': string;
|
|
1203
|
+
'editor.image.dialog.tab.url': string;
|
|
1204
|
+
'editor.image.dialog.tab.upload': string;
|
|
1205
|
+
'editor.image.dialog.uploading': string;
|
|
1206
|
+
'editor.image.dialog.form.link': string;
|
|
1207
|
+
'editor.image.dialog.placeholder': string;
|
|
1208
|
+
'editor.image.dialog.form.alt': string;
|
|
1209
|
+
'editor.image.dialog.form.aspectRatio': string;
|
|
1210
|
+
'editor.image.dialog.form.file': string;
|
|
1211
|
+
'editor.image.dialog.button.apply': string;
|
|
1212
|
+
'editor.video.tooltip': string;
|
|
1213
|
+
'editor.video.dialog.tab.upload': string;
|
|
1214
|
+
'editor.video.dialog.uploading': string;
|
|
1215
|
+
'editor.video.dialog.title': string;
|
|
1216
|
+
'editor.video.dialog.link': string;
|
|
1217
|
+
'editor.video.dialog.placeholder': string;
|
|
1218
|
+
'editor.video.dialog.button.apply': string;
|
|
1219
|
+
'editor.table.tooltip': string;
|
|
1220
|
+
'editor.table.menu.insert_table': string;
|
|
1221
|
+
'editor.table.menu.insert_table.with_header_row': string;
|
|
1222
|
+
'editor.table.menu.add_column_before': string;
|
|
1223
|
+
'editor.table.menu.add_column_after': string;
|
|
1224
|
+
'editor.table.menu.delete_column': string;
|
|
1225
|
+
'editor.table.menu.add_row_before': string;
|
|
1226
|
+
'editor.table.menu.add_row_after': string;
|
|
1227
|
+
'editor.table.menu.delete_row': string;
|
|
1228
|
+
'editor.table.menu.merge_or_split_cells': string;
|
|
1229
|
+
'editor.table.menu.delete_table': string;
|
|
1230
|
+
'editor.blockquote.tooltip': string;
|
|
1231
|
+
'editor.horizontalrule.tooltip': string;
|
|
1232
|
+
'editor.code.tooltip': string;
|
|
1233
|
+
'editor.codeblock.tooltip': string;
|
|
1234
|
+
'editor.clear.tooltip': string;
|
|
1235
|
+
'editor.undo.tooltip': string;
|
|
1236
|
+
'editor.redo.tooltip': string;
|
|
1237
|
+
'editor.fullscreen.tooltip.fullscreen': string;
|
|
1238
|
+
'editor.fullscreen.tooltip.exit': string;
|
|
1239
|
+
'editor.imageUpload.fileTypeNotSupported': string;
|
|
1240
|
+
'editor.imageUpload.fileSizeTooBig': string;
|
|
1241
|
+
'editor.table.menu.insertColumnBefore': string;
|
|
1242
|
+
'editor.table.menu.insertColumnAfter': string;
|
|
1243
|
+
'editor.table.menu.deleteColumn': string;
|
|
1244
|
+
'editor.table.menu.insertRowAbove': string;
|
|
1245
|
+
'editor.table.menu.insertRowBelow': string;
|
|
1246
|
+
'editor.table.menu.deleteRow': string;
|
|
1247
|
+
'editor.table.menu.mergeCells': string;
|
|
1248
|
+
'editor.table.menu.splitCells': string;
|
|
1249
|
+
'editor.table.menu.deleteTable': string;
|
|
1250
|
+
'editor.table.menu.setCellsBgColor': string;
|
|
1251
|
+
'editor.emoji.tooltip': string;
|
|
1252
|
+
'editor.iframe.tooltip': string;
|
|
1253
|
+
};
|
|
1254
|
+
|
|
532
1255
|
export declare const Video: Node_2<VideoOptions, any>;
|
|
533
1256
|
|
|
534
1257
|
/**
|
|
@@ -566,6 +1289,133 @@ declare interface VideoOptions_2 {
|
|
|
566
1289
|
|
|
567
1290
|
export declare const VideoUpload: Node_2<VideoOptions_2, any>;
|
|
568
1291
|
|
|
1292
|
+
export declare const zh_CN: {
|
|
1293
|
+
'editor.remove': string;
|
|
1294
|
+
'editor.copy': string;
|
|
1295
|
+
'editor.words': string;
|
|
1296
|
+
'editor.characters': string;
|
|
1297
|
+
'editor.default': string;
|
|
1298
|
+
'editor.recent': string;
|
|
1299
|
+
'editor.nofill': string;
|
|
1300
|
+
'editor.format': string;
|
|
1301
|
+
'editor.draghandle.tooltip': string;
|
|
1302
|
+
'editor.copyToClipboard': string;
|
|
1303
|
+
'editor.importWord.tooltip': string;
|
|
1304
|
+
'editor.slash': string;
|
|
1305
|
+
'editor.slash.empty': string;
|
|
1306
|
+
'editor.slash.format': string;
|
|
1307
|
+
'editor.slash.insert': string;
|
|
1308
|
+
'editor.slash.embed': string;
|
|
1309
|
+
'editor.content': string;
|
|
1310
|
+
'editor.fontFamily.tooltip': string;
|
|
1311
|
+
'editor.fontFamily.default.tooltip': string;
|
|
1312
|
+
'editor.moremark': string;
|
|
1313
|
+
'editor.size.small.tooltip': string;
|
|
1314
|
+
'editor.size.medium.tooltip': string;
|
|
1315
|
+
'editor.size.large.tooltip': string;
|
|
1316
|
+
'editor.bold.tooltip': string;
|
|
1317
|
+
'editor.italic.tooltip': string;
|
|
1318
|
+
'editor.underline.tooltip': string;
|
|
1319
|
+
'editor.strike.tooltip': string;
|
|
1320
|
+
'editor.color.tooltip': string;
|
|
1321
|
+
'editor.color.more': string;
|
|
1322
|
+
'editor.highlight.tooltip': string;
|
|
1323
|
+
'editor.lineheight.tooltip': string;
|
|
1324
|
+
'editor.heading.tooltip': string;
|
|
1325
|
+
'editor.heading.h1.tooltip': string;
|
|
1326
|
+
'editor.heading.h2.tooltip': string;
|
|
1327
|
+
'editor.heading.h3.tooltip': string;
|
|
1328
|
+
'editor.heading.h4.tooltip': string;
|
|
1329
|
+
'editor.heading.h5.tooltip': string;
|
|
1330
|
+
'editor.heading.h6.tooltip': string;
|
|
1331
|
+
'editor.paragraph.tooltip': string;
|
|
1332
|
+
'editor.textalign.tooltip': string;
|
|
1333
|
+
'editor.textalign.left.tooltip': string;
|
|
1334
|
+
'editor.textalign.center.tooltip': string;
|
|
1335
|
+
'editor.textalign.right.tooltip': string;
|
|
1336
|
+
'editor.textalign.justify.tooltip': string;
|
|
1337
|
+
'editor.indent': string;
|
|
1338
|
+
'editor.indent.indent': string;
|
|
1339
|
+
'editor.indent.outdent': string;
|
|
1340
|
+
'editor.fontSize.tooltip': string;
|
|
1341
|
+
'editor.fontSize.default.tooltip': string;
|
|
1342
|
+
'editor.superscript.tooltip': string;
|
|
1343
|
+
'editor.subscript.tooltip': string;
|
|
1344
|
+
'editor.bulletlist.tooltip': string;
|
|
1345
|
+
'editor.orderedlist.tooltip': string;
|
|
1346
|
+
'editor.tasklist.tooltip': string;
|
|
1347
|
+
'editor.indent.tooltip': string;
|
|
1348
|
+
'editor.outdent.tooltip': string;
|
|
1349
|
+
'editor.columns.tooltip': string;
|
|
1350
|
+
'editor.link.tooltip': string;
|
|
1351
|
+
'editor.link.unlink.tooltip': string;
|
|
1352
|
+
'editor.link.open.tooltip': string;
|
|
1353
|
+
'editor.link.edit.tooltip': string;
|
|
1354
|
+
'editor.link.dialog.title': string;
|
|
1355
|
+
'editor.link.dialog.link': string;
|
|
1356
|
+
'editor.link.dialog.text': string;
|
|
1357
|
+
'editor.link.dialog.openInNewTab': string;
|
|
1358
|
+
'editor.link.dialog.link.placeholder': string;
|
|
1359
|
+
'editor.link.dialog.text.placeholder': string;
|
|
1360
|
+
'editor.link.dialog.button.apply': string;
|
|
1361
|
+
'editor.image.tooltip': string;
|
|
1362
|
+
'editor.image.dragger.tooltip': string;
|
|
1363
|
+
'editor.image.float.left.tooltip': string;
|
|
1364
|
+
'editor.image.float.none.tooltip': string;
|
|
1365
|
+
'editor.image.float.right.tooltip': string;
|
|
1366
|
+
'editor.image.dialog.title': string;
|
|
1367
|
+
'editor.image.dialog.tab.url': string;
|
|
1368
|
+
'editor.image.dialog.tab.upload': string;
|
|
1369
|
+
'editor.image.dialog.uploading': string;
|
|
1370
|
+
'editor.image.dialog.form.link': string;
|
|
1371
|
+
'editor.image.dialog.placeholder': string;
|
|
1372
|
+
'editor.image.dialog.form.alt': string;
|
|
1373
|
+
'editor.image.dialog.form.aspectRatio': string;
|
|
1374
|
+
'editor.image.dialog.form.file': string;
|
|
1375
|
+
'editor.image.dialog.button.apply': string;
|
|
1376
|
+
'editor.video.tooltip': string;
|
|
1377
|
+
'editor.video.dialog.tab.upload': string;
|
|
1378
|
+
'editor.video.dialog.uploading': string;
|
|
1379
|
+
'editor.video.dialog.title': string;
|
|
1380
|
+
'editor.video.dialog.link': string;
|
|
1381
|
+
'editor.video.dialog.placeholder': string;
|
|
1382
|
+
'editor.video.dialog.button.apply': string;
|
|
1383
|
+
'editor.table.tooltip': string;
|
|
1384
|
+
'editor.table.menu.insert_table': string;
|
|
1385
|
+
'editor.table.menu.insert_table.with_header_row': string;
|
|
1386
|
+
'editor.table.menu.add_column_before': string;
|
|
1387
|
+
'editor.table.menu.add_column_after': string;
|
|
1388
|
+
'editor.table.menu.delete_column': string;
|
|
1389
|
+
'editor.table.menu.add_row_before': string;
|
|
1390
|
+
'editor.table.menu.add_row_after': string;
|
|
1391
|
+
'editor.table.menu.delete_row': string;
|
|
1392
|
+
'editor.table.menu.merge_or_split_cells': string;
|
|
1393
|
+
'editor.table.menu.delete_table': string;
|
|
1394
|
+
'editor.blockquote.tooltip': string;
|
|
1395
|
+
'editor.horizontalrule.tooltip': string;
|
|
1396
|
+
'editor.code.tooltip': string;
|
|
1397
|
+
'editor.codeblock.tooltip': string;
|
|
1398
|
+
'editor.clear.tooltip': string;
|
|
1399
|
+
'editor.undo.tooltip': string;
|
|
1400
|
+
'editor.redo.tooltip': string;
|
|
1401
|
+
'editor.fullscreen.tooltip.fullscreen': string;
|
|
1402
|
+
'editor.fullscreen.tooltip.exit': string;
|
|
1403
|
+
'editor.imageUpload.fileTypeNotSupported': string;
|
|
1404
|
+
'editor.imageUpload.fileSizeTooBig': string;
|
|
1405
|
+
'editor.table.menu.insertColumnBefore': string;
|
|
1406
|
+
'editor.table.menu.insertColumnAfter': string;
|
|
1407
|
+
'editor.table.menu.deleteColumn': string;
|
|
1408
|
+
'editor.table.menu.insertRowAbove': string;
|
|
1409
|
+
'editor.table.menu.insertRowBelow': string;
|
|
1410
|
+
'editor.table.menu.deleteRow': string;
|
|
1411
|
+
'editor.table.menu.mergeCells': string;
|
|
1412
|
+
'editor.table.menu.splitCells': string;
|
|
1413
|
+
'editor.table.menu.deleteTable': string;
|
|
1414
|
+
'editor.table.menu.setCellsBgColor': string;
|
|
1415
|
+
'editor.emoji.tooltip': string;
|
|
1416
|
+
'editor.iframe.tooltip': string;
|
|
1417
|
+
};
|
|
1418
|
+
|
|
569
1419
|
export { }
|
|
570
1420
|
|
|
571
1421
|
|
|
@@ -603,27 +1453,15 @@ declare module '@tiptap/core' {
|
|
|
603
1453
|
}
|
|
604
1454
|
|
|
605
1455
|
|
|
606
|
-
declare
|
|
607
|
-
|
|
608
|
-
indent: {
|
|
609
|
-
/**
|
|
610
|
-
* Set the indent attribute
|
|
611
|
-
*/
|
|
612
|
-
indent: () => ReturnType;
|
|
613
|
-
/**
|
|
614
|
-
* Set the outdent attribute
|
|
615
|
-
*/
|
|
616
|
-
outdent: () => ReturnType;
|
|
617
|
-
};
|
|
618
|
-
}
|
|
1456
|
+
declare namespace DropdownMenuShortcut {
|
|
1457
|
+
var displayName: string;
|
|
619
1458
|
}
|
|
620
1459
|
|
|
621
1460
|
|
|
622
1461
|
declare module '@tiptap/core' {
|
|
623
1462
|
interface Commands<ReturnType> {
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
unsetLineHeight: () => ReturnType;
|
|
1463
|
+
videoUpload: {
|
|
1464
|
+
setVideoUpload: () => ReturnType;
|
|
627
1465
|
};
|
|
628
1466
|
}
|
|
629
1467
|
}
|
|
@@ -656,8 +1494,9 @@ declare module '@tiptap/core' {
|
|
|
656
1494
|
|
|
657
1495
|
declare module '@tiptap/core' {
|
|
658
1496
|
interface Commands<ReturnType> {
|
|
659
|
-
|
|
660
|
-
|
|
1497
|
+
lineHeight: {
|
|
1498
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
1499
|
+
unsetLineHeight: () => ReturnType;
|
|
661
1500
|
};
|
|
662
1501
|
}
|
|
663
1502
|
}
|
|
@@ -665,9 +1504,25 @@ declare module '@tiptap/core' {
|
|
|
665
1504
|
|
|
666
1505
|
declare module '@tiptap/core' {
|
|
667
1506
|
interface Commands<ReturnType> {
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
1507
|
+
indent: {
|
|
1508
|
+
/**
|
|
1509
|
+
* Set the indent attribute
|
|
1510
|
+
*/
|
|
1511
|
+
indent: () => ReturnType;
|
|
1512
|
+
/**
|
|
1513
|
+
* Set the outdent attribute
|
|
1514
|
+
*/
|
|
1515
|
+
outdent: () => ReturnType;
|
|
1516
|
+
};
|
|
1517
|
+
}
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
|
|
1521
|
+
declare module '@tiptap/core' {
|
|
1522
|
+
interface Commands<ReturnType> {
|
|
1523
|
+
tableCellBackground: {
|
|
1524
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
1525
|
+
unsetTableCellBackground: () => ReturnType;
|
|
671
1526
|
};
|
|
672
1527
|
}
|
|
673
1528
|
}
|
|
@@ -684,9 +1539,9 @@ declare module '@tiptap/core' {
|
|
|
684
1539
|
|
|
685
1540
|
declare module '@tiptap/core' {
|
|
686
1541
|
interface Commands<ReturnType> {
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
1542
|
+
columns: {
|
|
1543
|
+
setColumns: () => ReturnType;
|
|
1544
|
+
setLayout: (layout: ColumnLayout) => ReturnType;
|
|
690
1545
|
};
|
|
691
1546
|
}
|
|
692
1547
|
}
|