reactjs-tiptap-editor 0.1.14 → 0.1.15

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.ts CHANGED
@@ -1,178 +1,11 @@
1
1
  import { AnyExtension } from '@tiptap/core';
2
- import { BlockquoteOptions as BlockquoteOptions_2 } from '@tiptap/extension-blockquote';
3
- import { BoldOptions as BoldOptions_2 } from '@tiptap/extension-bold';
4
2
  import { BubbleMenu } from '@tiptap/react';
5
- import { BulletListOptions as BulletListOptions_2 } from '@tiptap/extension-bullet-list';
6
- import { BundledLanguage } from 'shiki';
7
- import { BundledTheme } from 'shiki';
8
- import { CharacterCountOptions } from '@tiptap/extension-character-count';
9
- import { CodeBlockOptions as CodeBlockOptions_2 } from '@tiptap/extension-code-block';
10
- import { CodeOptions as CodeOptions_2 } from '@tiptap/extension-code';
11
- import { ColorOptions as ColorOptions_2 } from '@tiptap/extension-color';
12
- import { default as default_2 } from 'mammoth';
13
- import { DropcursorOptions } from '@tiptap/extension-dropcursor';
14
3
  import { Editor } from '@tiptap/react';
15
4
  import { Editor as Editor_2 } from '@tiptap/core';
16
- import { Extension } from '@tiptap/core';
17
- import { FocusOptions as FocusOptions_2 } from '@tiptap/extension-focus';
18
- import { FontFamilyOptions as FontFamilyOptions_2 } from '@tiptap/extension-font-family';
19
5
  import { ForwardRefExoticComponent } from 'react';
20
- import { HardBreakOptions } from '@tiptap/extension-hard-break';
21
- import { HeadingOptions as HeadingOptions_2 } from '@tiptap/extension-heading';
22
- import { HighlightOptions as HighlightOptions_2 } from '@tiptap/extension-highlight';
23
- import { HistoryOptions as HistoryOptions_2 } from '@tiptap/extension-history';
24
- import { HorizontalRuleOptions as HorizontalRuleOptions_2 } from '@tiptap/extension-horizontal-rule';
25
- import { ImageOptions } from '@tiptap/extension-image';
26
- import { ItalicOptions as ItalicOptions_2 } from '@tiptap/extension-italic';
27
- import { LinkOptions as LinkOptions_2 } from '@tiptap/extension-link';
28
- import { ListItemOptions } from '@tiptap/extension-list-item';
29
- import { Mark } from '@tiptap/core';
30
- import { MentionNodeAttrs } from '@tiptap/extension-mention';
31
- import { MentionOptions } from '@tiptap/extension-mention';
32
- import { Node as Node_2 } from '@tiptap/core';
33
- import { OrderedListOptions as OrderedListOptions_2 } from '@tiptap/extension-ordered-list';
34
- import { ParagraphOptions } from '@tiptap/extension-paragraph';
35
- import { PlaceholderOptions } from '@tiptap/extension-placeholder';
36
6
  import { RefAttributes } from 'react';
37
- import { StrikeOptions as StrikeOptions_2 } from '@tiptap/extension-strike';
38
- import { SubscriptExtensionOptions } from '@tiptap/extension-subscript';
39
- import { SuperscriptExtensionOptions } from '@tiptap/extension-superscript';
40
- import { TableCellOptions } from '@tiptap/extension-table-cell';
41
- import { TableHeaderOptions } from '@tiptap/extension-table-header';
42
- import { TableRowOptions } from '@tiptap/extension-table-row';
43
- import { TaskItemOptions } from '@tiptap/extension-task-item';
44
- import { TaskListOptions as TaskListOptions_2 } from '@tiptap/extension-task-list';
45
- import { TextAlignOptions as TextAlignOptions_2 } from '@tiptap/extension-text-align';
46
- import { TextStyleOptions } from '@tiptap/extension-text-style';
47
- import { UnderlineOptions as UnderlineOptions_2 } from '@tiptap/extension-underline';
48
7
  import { UseEditorOptions } from '@tiptap/react';
49
8
 
50
- declare type Alignments = 'left' | 'center' | 'right' | 'justify';
51
-
52
- export declare const Attachment: Node_2<AttachmentOptions, any>;
53
-
54
- declare interface AttachmentOptions extends GeneralOptions<AttachmentOptions> {
55
- /** Function for uploading files */
56
- upload?: (file: File) => Promise<string>;
57
- }
58
-
59
- export declare const BaseKit: Extension<BaseKitOptions, any>;
60
-
61
- /**
62
- * Represents the interface for options in the base toolkit.
63
- */
64
- export declare interface BaseKitOptions {
65
- /**
66
- * Whether to enable the document option
67
- *
68
- * @default true
69
- */
70
- document: false;
71
- /**
72
- * Whether to enable the document option
73
- *
74
- * @default false
75
- */
76
- multiColumn?: boolean;
77
- /**
78
- * Whether to enable the text option
79
- *
80
- * @default true
81
- */
82
- text: false;
83
- /**
84
- * Whether to enable the Gapcursor
85
- *
86
- * @default true
87
- */
88
- gapcursor: false;
89
- /**
90
- * Dropcursor options or false, indicating whether to enable the drop cursor
91
- *
92
- * @default true
93
- */
94
- dropcursor: Partial<DropcursorOptions> | false;
95
- /**
96
- * character count options or false, indicating whether to enable character count
97
- *
98
- * @default true
99
- */
100
- characterCount: Partial<CharacterCountOptions> | false;
101
- /**
102
- * HardBreak options or false, indicating whether to enable hard breaks
103
- *
104
- * @default true
105
- */
106
- hardBreak: Partial<HardBreakOptions> | false;
107
- /**
108
- * Placeholder options or false, indicating whether to enable placeholders
109
- *
110
- * @default true
111
- */
112
- placeholder: Partial<PlaceholderOptions> | false;
113
- /**
114
- * Paragraph options or false, indicating whether to enable paragraph functionality
115
- *
116
- * @default true
117
- */
118
- paragraph: Partial<ParagraphOptions> | false;
119
- /**
120
- * Focus options or false, indicating whether to enable focus functionality
121
- *
122
- * @default true
123
- */
124
- focus: Partial<FocusOptions_2> | false;
125
- /**
126
- * ListItem options or false, indicating whether to enable list item functionality
127
- *
128
- * @default true
129
- */
130
- listItem: Partial<ListItemOptions> | false;
131
- /**
132
- * Text Style options or false, indicating whether to enable text style functionality
133
- *
134
- * @default true
135
- */
136
- textStyle: Partial<TextStyleOptions> | false;
137
- /**
138
- * Bubble options, taking `BubbleOptions<BaseKitOptions>` as parameters, indicating whether to enable the bubble functionality
139
- */
140
- bubble: any;
141
- /**
142
- * Iframe options or false, indicating whether to enable the iframe
143
- *
144
- * @default true
145
- */
146
- /**
147
- * Trailing node options or false, indicating whether to enable the trailing node
148
- *
149
- * @default true
150
- */
151
- trailingNode: Partial<TrailingNodeOptions> | false;
152
- /**
153
- * textBubble options or false, indicating whether to enable the textBubble
154
- *
155
- * @default true
156
- */
157
- textBubble: Partial<TextBubbleOptions> | false;
158
- /**
159
- * selection options or false, indicating whether to enable the selection
160
- *
161
- * @default true
162
- */
163
- selection: any | false;
164
- }
165
-
166
- export declare const Blockquote: Node_2<BlockquoteOptions, any>;
167
-
168
- export declare interface BlockquoteOptions extends BlockquoteOptions_2, GeneralOptions<BlockquoteOptions> {
169
- }
170
-
171
- export declare const Bold: Mark<BoldOptions, any>;
172
-
173
- export declare interface BoldOptions extends BoldOptions_2, GeneralOptions<BoldOptions> {
174
- }
175
-
176
9
  export { BubbleMenu }
177
10
 
178
11
  /**
@@ -282,100 +115,6 @@ declare interface BubbleMenuRenderProps {
282
115
  bubbleMenu: BubbleMenuProps;
283
116
  }
284
117
 
285
- export declare const BulletList: Node_2<BulletListOptions, any>;
286
-
287
- export declare interface BulletListOptions extends BulletListOptions_2, GeneralOptions<BulletListOptions> {
288
- }
289
-
290
- /**
291
- * Represents the ButtonView function.
292
- */
293
- declare interface ButtonView<T = any> {
294
- (options: ButtonViewParams<T>): ButtonViewReturn | ButtonViewReturn[];
295
- }
296
-
297
- /**
298
- * Represents the parameters for the ButtonView function.
299
- */
300
- declare interface ButtonViewParams<T = any> {
301
- /** Editor object */
302
- editor: Editor;
303
- /** Extension object */
304
- extension: Extension<T>;
305
- /** Translation function */
306
- t: (path: string) => string;
307
- }
308
-
309
- /**
310
- * Represents the return value for the ButtonView component.
311
- */
312
- declare interface ButtonViewReturn {
313
- /** Component */
314
- component: unknown;
315
- /** Component props */
316
- componentProps: ButtonViewReturnComponentProps;
317
- /** Component slots */
318
- componentSlots?: ButtonViewReturnComponentSlots;
319
- }
320
-
321
- /**
322
- * Represents the props for the ButtonView component.
323
- */
324
- declare interface ButtonViewReturnComponentProps {
325
- /** Method triggered when action is performed */
326
- action?: (value?: any) => void;
327
- /** Whether it is in the active state */
328
- isActive?: () => boolean;
329
- /** Button icon */
330
- icon?: any;
331
- /** Text displayed on hover */
332
- tooltip?: string;
333
- [x: string]: any;
334
- }
335
-
336
- /**
337
- * Represents the slots for the ButtonView component.
338
- */
339
- declare interface ButtonViewReturnComponentSlots {
340
- /** Dialog slot */
341
- dialog: () => any;
342
- [x: string]: () => any;
343
- }
344
-
345
- export declare const Clear: Node_2<ClearOptions, any>;
346
-
347
- export declare interface ClearOptions extends GeneralOptions<ClearOptions> {
348
- }
349
-
350
- export declare const Code: Mark<CodeOptions, any>;
351
-
352
- export declare const CodeBlock: Node_2<CodeBlockOptions, any>;
353
-
354
- export declare interface CodeBlockOptions extends GeneralOptions<CodeBlockOptions_2> {
355
- languages?: BundledLanguage[];
356
- defaultTheme: BundledTheme;
357
- }
358
-
359
- export declare interface CodeOptions extends CodeOptions_2, GeneralOptions<CodeOptions> {
360
- }
361
-
362
- export declare const Color: Extension<ColorOptions, any>;
363
-
364
- export declare interface ColorOptions extends ColorOptions_2, GeneralOptions<ColorOptions> {
365
- /**
366
- * An array of color options to display in the color picker
367
- */
368
- colors?: string[];
369
- /**
370
- * The default color to use when no color is selected
371
- */
372
- defaultColor?: string;
373
- }
374
-
375
- export declare const Column: Node_2<any, any>;
376
-
377
- export declare const ColumnActionButton: Extension<any, any>;
378
-
379
118
  declare const _default: ForwardRefExoticComponent<RichTextEditorProps & RefAttributes< {
380
119
  editor: Editor_2 | null;
381
120
  }>>;
@@ -383,746 +122,6 @@ export default _default;
383
122
 
384
123
  export { Editor }
385
124
 
386
- export declare const Emoji: Node_2<any, any>;
387
-
388
- export declare const en: {
389
- 'editor.remove': string;
390
- 'editor.copy': string;
391
- 'editor.words': string;
392
- 'editor.characters': string;
393
- 'editor.default': string;
394
- 'editor.recent': string;
395
- 'editor.nofill': string;
396
- 'editor.format': string;
397
- 'editor.delete': string;
398
- 'editor.edit': string;
399
- 'editor.settings': string;
400
- 'editor.table_of_content': string;
401
- 'editor.draghandle.tooltip': string;
402
- 'editor.copyToClipboard': string;
403
- 'editor.slash': string;
404
- 'editor.slash.empty': string;
405
- 'editor.slash.format': string;
406
- 'editor.slash.insert': string;
407
- 'editor.slash.embed': string;
408
- 'editor.content': string;
409
- 'editor.fontFamily.tooltip': string;
410
- 'editor.fontFamily.default.tooltip': string;
411
- 'editor.moremark': string;
412
- 'editor.size.small.tooltip': string;
413
- 'editor.size.medium.tooltip': string;
414
- 'editor.size.large.tooltip': string;
415
- 'editor.bold.tooltip': string;
416
- 'editor.italic.tooltip': string;
417
- 'editor.underline.tooltip': string;
418
- 'editor.strike.tooltip': string;
419
- 'editor.color.tooltip': string;
420
- 'editor.color.more': string;
421
- 'editor.highlight.tooltip': string;
422
- 'editor.lineheight.tooltip': string;
423
- 'editor.heading.tooltip': string;
424
- 'editor.heading.h1.tooltip': string;
425
- 'editor.heading.h2.tooltip': string;
426
- 'editor.heading.h3.tooltip': string;
427
- 'editor.heading.h4.tooltip': string;
428
- 'editor.heading.h5.tooltip': string;
429
- 'editor.heading.h6.tooltip': string;
430
- 'editor.paragraph.tooltip': string;
431
- 'editor.textalign.tooltip': string;
432
- 'editor.textalign.left.tooltip': string;
433
- 'editor.textalign.center.tooltip': string;
434
- 'editor.textalign.right.tooltip': string;
435
- 'editor.textalign.justify.tooltip': string;
436
- 'editor.indent': string;
437
- 'editor.indent.indent': string;
438
- 'editor.indent.outdent': string;
439
- 'editor.fontSize.tooltip': string;
440
- 'editor.fontSize.default.tooltip': string;
441
- 'editor.superscript.tooltip': string;
442
- 'editor.subscript.tooltip': string;
443
- 'editor.bulletlist.tooltip': string;
444
- 'editor.orderedlist.tooltip': string;
445
- 'editor.tasklist.tooltip': string;
446
- 'editor.indent.tooltip': string;
447
- 'editor.outdent.tooltip': string;
448
- 'editor.columns.tooltip': string;
449
- 'editor.link.tooltip': string;
450
- 'editor.link.unlink.tooltip': string;
451
- 'editor.link.open.tooltip': string;
452
- 'editor.link.edit.tooltip': string;
453
- 'editor.link.dialog.title': string;
454
- 'editor.link.dialog.link': string;
455
- 'editor.link.dialog.text': string;
456
- 'editor.link.dialog.openInNewTab': string;
457
- 'editor.link.dialog.link.placeholder': string;
458
- 'editor.link.dialog.text.placeholder': string;
459
- 'editor.link.dialog.button.apply': string;
460
- 'editor.image.tooltip': string;
461
- 'editor.image.dragger.tooltip': string;
462
- 'editor.image.float.left.tooltip': string;
463
- 'editor.image.float.none.tooltip': string;
464
- 'editor.image.float.right.tooltip': string;
465
- 'editor.image.dialog.title': string;
466
- 'editor.image.dialog.tab.url': string;
467
- 'editor.image.dialog.tab.upload': string;
468
- 'editor.image.dialog.tab.uploadCrop': string;
469
- 'editor.image.dialog.uploading': string;
470
- 'editor.link.dialog.inline': string;
471
- 'editor.image.dialog.form.link': string;
472
- 'editor.image.dialog.placeholder': string;
473
- 'editor.image.dialog.form.alt': string;
474
- 'editor.image.dialog.form.aspectRatio': string;
475
- 'editor.image.dialog.form.file': string;
476
- 'editor.image.dialog.button.apply': string;
477
- 'editor.video.tooltip': string;
478
- 'editor.video.dialog.tab.upload': string;
479
- 'editor.video.dialog.uploading': string;
480
- 'editor.video.dialog.title': string;
481
- 'editor.video.dialog.link': string;
482
- 'editor.video.dialog.placeholder': string;
483
- 'editor.video.dialog.button.apply': string;
484
- 'editor.table.tooltip': string;
485
- 'editor.table.menu.insert_table': string;
486
- 'editor.table.menu.insert_table.with_header_row': string;
487
- 'editor.table.menu.add_column_before': string;
488
- 'editor.table.menu.add_column_after': string;
489
- 'editor.table.menu.delete_column': string;
490
- 'editor.table.menu.add_row_before': string;
491
- 'editor.table.menu.add_row_after': string;
492
- 'editor.table.menu.delete_row': string;
493
- 'editor.table.menu.merge_or_split_cells': string;
494
- 'editor.table.menu.delete_table': string;
495
- 'editor.blockquote.tooltip': string;
496
- 'editor.horizontalrule.tooltip': string;
497
- 'editor.code.tooltip': string;
498
- 'editor.codeblock.tooltip': string;
499
- 'editor.clear.tooltip': string;
500
- 'editor.undo.tooltip': string;
501
- 'editor.redo.tooltip': string;
502
- 'editor.fullscreen.tooltip.fullscreen': string;
503
- 'editor.fullscreen.tooltip.exit': string;
504
- 'editor.imageUpload.cancel': string;
505
- 'editor.imageUpload.crop': string;
506
- 'editor.imageUpload.fileTypeNotSupported': string;
507
- 'editor.imageUpload.fileSizeTooBig': string;
508
- 'editor.table.menu.insertColumnBefore': string;
509
- 'editor.table.menu.insertColumnAfter': string;
510
- 'editor.table.menu.deleteColumn': string;
511
- 'editor.table.menu.insertRowAbove': string;
512
- 'editor.table.menu.insertRowBelow': string;
513
- 'editor.table.menu.deleteRow': string;
514
- 'editor.table.menu.mergeCells': string;
515
- 'editor.table.menu.splitCells': string;
516
- 'editor.table.menu.deleteTable': string;
517
- 'editor.table.menu.setCellsBgColor': string;
518
- 'editor.emoji.tooltip': string;
519
- 'editor.iframe.tooltip': string;
520
- 'editor.searchAndReplace.tooltip': string;
521
- 'editor.search.dialog.text': string;
522
- 'editor.replace.dialog.text': string;
523
- 'editor.replaceAll.dialog.text': string;
524
- 'editor.previous.dialog.text': string;
525
- 'editor.next.dialog.text': string;
526
- no_result_found: string;
527
- 'Smileys & People': string;
528
- 'Animals & Nature': string;
529
- 'Food & Drink': string;
530
- Activity: string;
531
- 'Travel & Places': string;
532
- Object: string;
533
- Symbol: string;
534
- Flags: string;
535
- 'Frequently used': string;
536
- 'editor.formula.dialog.text': string;
537
- 'editor.katex.tooltip': string;
538
- 'editor.exportPdf.tooltip': string;
539
- 'editor.exportWord.tooltip': string;
540
- 'editor.importWord.tooltip': string;
541
- 'editor.importWord.limitSize': string;
542
- 'editor.importWord.converting': string;
543
- 'editor.importWord.convertError': string;
544
- 'editor.importWord.importError': string;
545
- 'editor.textDirection.tooltip': string;
546
- 'editor.textDirection.auto.tooltip': string;
547
- 'editor.textDirection.ltr.tooltip': string;
548
- 'editor.textDirection.rtl.tooltip': string;
549
- 'editor.attachment.tooltip': string;
550
- 'editor.attachment.uploading': string;
551
- 'editor.attachment.please_upload': string;
552
- 'editor.imageGif.tooltip': string;
553
- 'editor.replace.caseSensitive': string;
554
- 'editor.mermaid.tooltip': string;
555
- 'editor.twitter.tooltip': string;
556
- 'editor.tooltip.flipX': string;
557
- 'editor.tooltip.flipY': string;
558
- };
559
-
560
- export declare const Excalidraw: Node_2<any, any>;
561
-
562
- export declare const ExportPdf: Extension<any, any>;
563
-
564
- export declare const ExportWord: Extension<ExportWordOptions, any>;
565
-
566
- declare interface ExportWordOptions extends GeneralOptions<ExportWordOptions> {
567
- }
568
-
569
- export declare const FontFamily: Extension<FontFamilyOptions, any>;
570
-
571
- declare interface FontFamilyOptions extends FontFamilyOptions_2, GeneralOptions<FontFamilyOptions> {
572
- /**
573
- * Font family list.
574
- */
575
- fontFamilyList: (string | NameValueOption)[];
576
- }
577
-
578
- export declare const FontSize: Extension<FontSizeOptions, any>;
579
-
580
- /**
581
- * Represents the interface for font size options, extending GeneralOptions.
582
- */
583
- export declare interface FontSizeOptions extends GeneralOptions<FontSizeOptions> {
584
- types: string[];
585
- /**
586
- * List of available font size values
587
- *
588
- * @default DEFAULT_FONT_SIZE_LIST
589
- */
590
- fontSizes: (string | NameValueOption)[];
591
- }
592
-
593
- /**
594
- * 格式刷
595
- */
596
- export declare const FormatPainter: Extension<FormatPainterOptions, any>;
597
-
598
- /**
599
- * Represents the interface for font size options, extending GeneralOptions.
600
- */
601
- export declare interface FormatPainterOptions extends GeneralOptions<FormatPainterOptions> {
602
- }
603
-
604
- /**
605
- * Represents the general options for Tiptap extensions.
606
- */
607
- declare interface GeneralOptions<T> {
608
- /** Enabled divider */
609
- divider: boolean;
610
- /** Enabled spacer */
611
- spacer: boolean;
612
- /** Button view function */
613
- button: ButtonView<T>;
614
- /** Show on Toolbar */
615
- toolbar?: boolean;
616
- }
617
-
618
- export declare const Heading: Node_2<HeadingOptions, any>;
619
-
620
- export declare interface HeadingOptions extends HeadingOptions_2, GeneralOptions<HeadingOptions> {
621
- }
622
-
623
- declare const Highlight_2: Mark<HighlightOptions, any>;
624
- export { Highlight_2 as Highlight }
625
-
626
- export declare interface HighlightOptions extends HighlightOptions_2, GeneralOptions<HighlightOptions> {
627
- }
628
-
629
- declare const History_2: Extension<HistoryOptions, any>;
630
- export { History_2 as History }
631
-
632
- export declare interface HistoryOptions extends HistoryOptions_2, GeneralOptions<HistoryOptions> {
633
- }
634
-
635
- export declare const HorizontalRule: Node_2<HorizontalRuleOptions, any>;
636
-
637
- export declare interface HorizontalRuleOptions extends HorizontalRuleOptions_2, GeneralOptions<HorizontalRuleOptions> {
638
- }
639
-
640
- export declare const hu_HU: {
641
- 'editor.remove': string;
642
- 'editor.copy': string;
643
- 'editor.words': string;
644
- 'editor.characters': string;
645
- 'editor.default': string;
646
- 'editor.recent': string;
647
- 'editor.nofill': string;
648
- 'editor.format': string;
649
- 'editor.delete': string;
650
- 'editor.edit': string;
651
- 'editor.settings': string;
652
- 'editor.table_of_content': string;
653
- 'editor.draghandle.tooltip': string;
654
- 'editor.copyToClipboard': string;
655
- 'editor.slash': string;
656
- 'editor.slash.empty': string;
657
- 'editor.slash.format': string;
658
- 'editor.slash.insert': string;
659
- 'editor.slash.embed': string;
660
- 'editor.content': string;
661
- 'editor.fontFamily.tooltip': string;
662
- 'editor.fontFamily.default.tooltip': string;
663
- 'editor.moremark': string;
664
- 'editor.size.small.tooltip': string;
665
- 'editor.size.medium.tooltip': string;
666
- 'editor.size.large.tooltip': string;
667
- 'editor.bold.tooltip': string;
668
- 'editor.italic.tooltip': string;
669
- 'editor.underline.tooltip': string;
670
- 'editor.strike.tooltip': string;
671
- 'editor.color.tooltip': string;
672
- 'editor.color.more': string;
673
- 'editor.highlight.tooltip': string;
674
- 'editor.lineheight.tooltip': string;
675
- 'editor.heading.tooltip': string;
676
- 'editor.heading.h1.tooltip': string;
677
- 'editor.heading.h2.tooltip': string;
678
- 'editor.heading.h3.tooltip': string;
679
- 'editor.heading.h4.tooltip': string;
680
- 'editor.heading.h5.tooltip': string;
681
- 'editor.heading.h6.tooltip': string;
682
- 'editor.paragraph.tooltip': string;
683
- 'editor.textalign.tooltip': string;
684
- 'editor.textalign.left.tooltip': string;
685
- 'editor.textalign.center.tooltip': string;
686
- 'editor.textalign.right.tooltip': string;
687
- 'editor.textalign.justify.tooltip': string;
688
- 'editor.indent': string;
689
- 'editor.indent.indent': string;
690
- 'editor.indent.outdent': string;
691
- 'editor.fontSize.tooltip': string;
692
- 'editor.fontSize.default.tooltip': string;
693
- 'editor.superscript.tooltip': string;
694
- 'editor.subscript.tooltip': string;
695
- 'editor.bulletlist.tooltip': string;
696
- 'editor.orderedlist.tooltip': string;
697
- 'editor.tasklist.tooltip': string;
698
- 'editor.indent.tooltip': string;
699
- 'editor.outdent.tooltip': string;
700
- 'editor.columns.tooltip': string;
701
- 'editor.link.tooltip': string;
702
- 'editor.link.unlink.tooltip': string;
703
- 'editor.link.open.tooltip': string;
704
- 'editor.link.edit.tooltip': string;
705
- 'editor.link.dialog.title': string;
706
- 'editor.link.dialog.link': string;
707
- 'editor.link.dialog.text': string;
708
- 'editor.link.dialog.openInNewTab': string;
709
- 'editor.link.dialog.link.placeholder': string;
710
- 'editor.link.dialog.text.placeholder': string;
711
- 'editor.link.dialog.button.apply': string;
712
- 'editor.image.tooltip': string;
713
- 'editor.image.dragger.tooltip': string;
714
- 'editor.image.float.left.tooltip': string;
715
- 'editor.image.float.none.tooltip': string;
716
- 'editor.image.float.right.tooltip': string;
717
- 'editor.image.dialog.title': string;
718
- 'editor.image.dialog.tab.url': string;
719
- 'editor.image.dialog.tab.upload': string;
720
- 'editor.image.dialog.tab.uploadCrop': string;
721
- 'editor.image.dialog.uploading': string;
722
- 'editor.link.dialog.inline': string;
723
- 'editor.image.dialog.form.link': string;
724
- 'editor.image.dialog.placeholder': string;
725
- 'editor.image.dialog.form.alt': string;
726
- 'editor.image.dialog.form.aspectRatio': string;
727
- 'editor.image.dialog.form.file': string;
728
- 'editor.image.dialog.button.apply': string;
729
- 'editor.video.tooltip': string;
730
- 'editor.video.dialog.tab.upload': string;
731
- 'editor.video.dialog.uploading': string;
732
- 'editor.video.dialog.title': string;
733
- 'editor.video.dialog.link': string;
734
- 'editor.video.dialog.placeholder': string;
735
- 'editor.video.dialog.button.apply': string;
736
- 'editor.table.tooltip': string;
737
- 'editor.table.menu.insert_table': string;
738
- 'editor.table.menu.insert_table.with_header_row': string;
739
- 'editor.table.menu.add_column_before': string;
740
- 'editor.table.menu.add_column_after': string;
741
- 'editor.table.menu.delete_column': string;
742
- 'editor.table.menu.add_row_before': string;
743
- 'editor.table.menu.add_row_after': string;
744
- 'editor.table.menu.delete_row': string;
745
- 'editor.table.menu.merge_or_split_cells': string;
746
- 'editor.table.menu.delete_table': string;
747
- 'editor.blockquote.tooltip': string;
748
- 'editor.horizontalrule.tooltip': string;
749
- 'editor.code.tooltip': string;
750
- 'editor.codeblock.tooltip': string;
751
- 'editor.clear.tooltip': string;
752
- 'editor.undo.tooltip': string;
753
- 'editor.redo.tooltip': string;
754
- 'editor.fullscreen.tooltip.fullscreen': string;
755
- 'editor.fullscreen.tooltip.exit': string;
756
- 'editor.imageUpload.cancel': string;
757
- 'editor.imageUpload.crop': string;
758
- 'editor.imageUpload.fileTypeNotSupported': string;
759
- 'editor.imageUpload.fileSizeTooBig': string;
760
- 'editor.table.menu.insertColumnBefore': string;
761
- 'editor.table.menu.insertColumnAfter': string;
762
- 'editor.table.menu.deleteColumn': string;
763
- 'editor.table.menu.insertRowAbove': string;
764
- 'editor.table.menu.insertRowBelow': string;
765
- 'editor.table.menu.deleteRow': string;
766
- 'editor.table.menu.mergeCells': string;
767
- 'editor.table.menu.splitCells': string;
768
- 'editor.table.menu.deleteTable': string;
769
- 'editor.table.menu.setCellsBgColor': string;
770
- 'editor.emoji.tooltip': string;
771
- 'editor.iframe.tooltip': string;
772
- 'editor.searchAndReplace.tooltip': string;
773
- 'editor.search.dialog.text': string;
774
- 'editor.replace.dialog.text': string;
775
- 'editor.replaceAll.dialog.text': string;
776
- 'editor.previous.dialog.text': string;
777
- 'editor.next.dialog.text': string;
778
- no_result_found: string;
779
- 'Smileys & People': string;
780
- 'Animals & Nature': string;
781
- 'Food & Drink': string;
782
- Activity: string;
783
- 'Travel & Places': string;
784
- Object: string;
785
- Symbol: string;
786
- Flags: string;
787
- 'Frequently used': string;
788
- 'editor.formula.dialog.text': string;
789
- 'editor.katex.tooltip': string;
790
- 'editor.exportPdf.tooltip': string;
791
- 'editor.exportWord.tooltip': string;
792
- 'editor.importWord.tooltip': string;
793
- 'editor.importWord.limitSize': string;
794
- 'editor.importWord.converting': string;
795
- 'editor.importWord.convertError': string;
796
- 'editor.importWord.importError': string;
797
- 'editor.textDirection.tooltip': string;
798
- 'editor.textDirection.auto.tooltip': string;
799
- 'editor.textDirection.ltr.tooltip': string;
800
- 'editor.textDirection.rtl.tooltip': string;
801
- 'editor.attachment.tooltip': string;
802
- 'editor.attachment.uploading': string;
803
- 'editor.attachment.please_upload': string;
804
- 'editor.imageGif.tooltip': string;
805
- 'editor.replace.caseSensitive': string;
806
- 'editor.mermaid.tooltip': string;
807
- 'editor.twitter.tooltip': string;
808
- 'editor.tooltip.flipX': string;
809
- 'editor.tooltip.flipY': string;
810
- };
811
-
812
- export declare const Iframe: Node_2<any, any>;
813
-
814
- declare interface IImageOptions extends GeneralOptions<IImageOptions> {
815
- /** Function for uploading files */
816
- upload?: (file: File) => Promise<string>;
817
- HTMLAttributes?: any;
818
- acceptMimes?: string[];
819
- maxSize?: number;
820
- /** The source URL of the image */
821
- resourceImage: 'upload' | 'link' | 'both';
822
- }
823
-
824
- declare interface IKatexOptions {
825
- HTMLAttributes: Record<string, any>;
826
- }
827
-
828
- declare const Image_2: Node_2<IImageOptions, any>;
829
- export { Image_2 as Image }
830
-
831
- export declare const ImageGif: Node_2<ImageGifOptions, any>;
832
-
833
- declare interface ImageGifOptions extends ImageOptions {
834
- /**
835
- * The key for the gif https://giphy.com/
836
- */
837
- GIPHY_API_KEY: string;
838
- }
839
-
840
- export declare const ImportWord: Extension<ImportWordOptions, any>;
841
-
842
- declare interface ImportWordOptions extends GeneralOptions<ImportWordOptions> {
843
- /** Function for converting Word files to HTML */
844
- convert?: (file: File) => Promise<string>;
845
- /** Function for uploading images */
846
- upload?: (files: File[]) => Promise<unknown>;
847
- /**
848
- * File Size limit(10 MB)
849
- *
850
- * @default 1024 * 1024 * 10
851
- */
852
- limit?: number;
853
- mammothOptions?: Parameters<typeof default_2['convertToHtml']>[1];
854
- }
855
-
856
- export declare const Indent: Extension<IndentOptions, any>;
857
-
858
- export declare interface IndentOptions extends GeneralOptions<IndentOptions> {
859
- types: string[];
860
- minIndent: number;
861
- maxIndent: number;
862
- }
863
-
864
- export declare const Italic: Mark<ItalicOptions, any>;
865
-
866
- export declare interface ItalicOptions extends ItalicOptions_2, GeneralOptions<ItalicOptions> {
867
- }
868
-
869
- export declare const Katex: Node_2<IKatexOptions, any>;
870
-
871
- declare type LanguageType = 'en' | 'hu_HU' | 'vi' | 'zh_CN' | 'pt_BR' | (string & {});
872
-
873
- export declare const LineHeight: Extension<LineHeightOptions, any>;
874
-
875
- export declare interface LineHeightOptions extends GeneralOptions<LineHeightOptions> {
876
- types: string[];
877
- lineHeights: string[];
878
- defaultHeight: string;
879
- }
880
-
881
- export declare const Link: Mark<LinkOptions, any>;
882
-
883
- export declare interface LinkOptions extends LinkOptions_2, GeneralOptions<LinkOptions> {
884
- }
885
-
886
- declare class Locale {
887
- private emitter;
888
- constructor();
889
- get lang(): LanguageType;
890
- set lang(lang: LanguageType);
891
- get message(): Record<LanguageType, Record<MessageKeysType, string>>;
892
- set message(message: Record<LanguageType, Record<MessageKeysType, string>>);
893
- loadLangMessage(lang: LanguageType): Record<MessageKeysType, string>;
894
- private isLangSupported;
895
- setLang(lang: LanguageType): void;
896
- registerWatchLang(hook: (lang: LanguageType) => void): {
897
- unsubscribe: () => void;
898
- };
899
- setMessage(lang: string, message: Record<MessageKeysType, string>): void;
900
- buildLocalesHandler(lang?: LanguageType): (path: MessageKeysType) => string;
901
- }
902
-
903
- export declare const locale: Locale;
904
-
905
- export declare const Mention: Node_2<MentionOptions<any, MentionNodeAttrs>, any>;
906
-
907
- export declare const Mermaid: Node_2<MermaidOptions, any>;
908
-
909
- declare interface MermaidOptions extends GeneralOptions<MermaidOptions> {
910
- /** Function for uploading files */
911
- upload?: (file: File) => Promise<string>;
912
- }
913
-
914
- declare type MessageKeysType = keyof typeof en;
915
-
916
- export declare const MoreMark: Extension<MoreMarkOptions, any>;
917
-
918
- export declare interface MoreMarkOptions extends GeneralOptions<MoreMarkOptions> {
919
- /**
920
- * // 下标
921
- *
922
- * @default true
923
- */
924
- subscript: Partial<SubscriptExtensionOptions> | false;
925
- /**
926
- * // 上标
927
- *
928
- * @default true
929
- */
930
- superscript: Partial<SuperscriptExtensionOptions> | false;
931
- }
932
-
933
- export declare const MultiColumn: Node_2<any, any>;
934
-
935
- declare interface NameValueOption<T = string> {
936
- name: string;
937
- value: T;
938
- }
939
-
940
- declare interface Options {
941
- onHasOneBeforeInsert?: () => void;
942
- }
943
-
944
- export declare const OrderedList: Node_2<OrderedListOptions, any>;
945
-
946
- export declare interface OrderedListOptions extends OrderedListOptions_2, GeneralOptions<OrderedListOptions> {
947
- }
948
-
949
- export declare const pt_BR: {
950
- 'editor.remove': string;
951
- 'editor.copy': string;
952
- 'editor.words': string;
953
- 'editor.characters': string;
954
- 'editor.default': string;
955
- 'editor.recent': string;
956
- 'editor.nofill': string;
957
- 'editor.format': string;
958
- 'editor.delete': string;
959
- 'editor.edit': string;
960
- 'editor.settings': string;
961
- 'editor.table_of_content': string;
962
- 'editor.draghandle.tooltip': string;
963
- 'editor.copyToClipboard': string;
964
- 'editor.slash': string;
965
- 'editor.slash.empty': string;
966
- 'editor.slash.format': string;
967
- 'editor.slash.insert': string;
968
- 'editor.slash.embed': string;
969
- 'editor.content': string;
970
- 'editor.fontFamily.tooltip': string;
971
- 'editor.fontFamily.default.tooltip': string;
972
- 'editor.moremark': string;
973
- 'editor.size.small.tooltip': string;
974
- 'editor.size.medium.tooltip': string;
975
- 'editor.size.large.tooltip': string;
976
- 'editor.bold.tooltip': string;
977
- 'editor.italic.tooltip': string;
978
- 'editor.underline.tooltip': string;
979
- 'editor.strike.tooltip': string;
980
- 'editor.color.tooltip': string;
981
- 'editor.color.more': string;
982
- 'editor.highlight.tooltip': string;
983
- 'editor.lineheight.tooltip': string;
984
- 'editor.heading.tooltip': string;
985
- 'editor.heading.h1.tooltip': string;
986
- 'editor.heading.h2.tooltip': string;
987
- 'editor.heading.h3.tooltip': string;
988
- 'editor.heading.h4.tooltip': string;
989
- 'editor.heading.h5.tooltip': string;
990
- 'editor.heading.h6.tooltip': string;
991
- 'editor.paragraph.tooltip': string;
992
- 'editor.textalign.tooltip': string;
993
- 'editor.textalign.left.tooltip': string;
994
- 'editor.textalign.center.tooltip': string;
995
- 'editor.textalign.right.tooltip': string;
996
- 'editor.textalign.justify.tooltip': string;
997
- 'editor.indent': string;
998
- 'editor.indent.indent': string;
999
- 'editor.indent.outdent': string;
1000
- 'editor.fontSize.tooltip': string;
1001
- 'editor.fontSize.default.tooltip': string;
1002
- 'editor.superscript.tooltip': string;
1003
- 'editor.subscript.tooltip': string;
1004
- 'editor.bulletlist.tooltip': string;
1005
- 'editor.orderedlist.tooltip': string;
1006
- 'editor.tasklist.tooltip': string;
1007
- 'editor.indent.tooltip': string;
1008
- 'editor.outdent.tooltip': string;
1009
- 'editor.columns.tooltip': string;
1010
- 'editor.link.tooltip': string;
1011
- 'editor.link.unlink.tooltip': string;
1012
- 'editor.link.open.tooltip': string;
1013
- 'editor.link.edit.tooltip': string;
1014
- 'editor.link.dialog.title': string;
1015
- 'editor.link.dialog.link': string;
1016
- 'editor.link.dialog.text': string;
1017
- 'editor.link.dialog.openInNewTab': string;
1018
- 'editor.link.dialog.link.placeholder': string;
1019
- 'editor.link.dialog.text.placeholder': string;
1020
- 'editor.link.dialog.button.apply': string;
1021
- 'editor.image.tooltip': string;
1022
- 'editor.image.dragger.tooltip': string;
1023
- 'editor.image.float.left.tooltip': string;
1024
- 'editor.image.float.none.tooltip': string;
1025
- 'editor.image.float.right.tooltip': string;
1026
- 'editor.image.dialog.title': string;
1027
- 'editor.image.dialog.tab.url': string;
1028
- 'editor.image.dialog.tab.upload': string;
1029
- 'editor.link.dialog.inline': string;
1030
- 'editor.image.dialog.tab.uploadCrop': string;
1031
- 'editor.image.dialog.uploading': string;
1032
- 'editor.image.dialog.form.link': string;
1033
- 'editor.image.dialog.placeholder': string;
1034
- 'editor.image.dialog.form.alt': string;
1035
- 'editor.image.dialog.form.aspectRatio': string;
1036
- 'editor.image.dialog.form.file': string;
1037
- 'editor.image.dialog.button.apply': string;
1038
- 'editor.video.tooltip': string;
1039
- 'editor.video.dialog.tab.upload': string;
1040
- 'editor.video.dialog.uploading': string;
1041
- 'editor.video.dialog.title': string;
1042
- 'editor.video.dialog.link': string;
1043
- 'editor.video.dialog.placeholder': string;
1044
- 'editor.video.dialog.button.apply': string;
1045
- 'editor.table.tooltip': string;
1046
- 'editor.table.menu.insert_table': string;
1047
- 'editor.table.menu.insert_table.with_header_row': string;
1048
- 'editor.table.menu.add_column_before': string;
1049
- 'editor.table.menu.add_column_after': string;
1050
- 'editor.table.menu.delete_column': string;
1051
- 'editor.table.menu.add_row_before': string;
1052
- 'editor.table.menu.add_row_after': string;
1053
- 'editor.table.menu.delete_row': string;
1054
- 'editor.table.menu.merge_or_split_cells': string;
1055
- 'editor.table.menu.delete_table': string;
1056
- 'editor.blockquote.tooltip': string;
1057
- 'editor.horizontalrule.tooltip': string;
1058
- 'editor.code.tooltip': string;
1059
- 'editor.codeblock.tooltip': string;
1060
- 'editor.clear.tooltip': string;
1061
- 'editor.undo.tooltip': string;
1062
- 'editor.redo.tooltip': string;
1063
- 'editor.fullscreen.tooltip.fullscreen': string;
1064
- 'editor.fullscreen.tooltip.exit': string;
1065
- 'editor.imageUpload.cancel': string;
1066
- 'editor.imageUpload.crop': string;
1067
- 'editor.imageUpload.fileTypeNotSupported': string;
1068
- 'editor.imageUpload.fileSizeTooBig': string;
1069
- 'editor.table.menu.insertColumnBefore': string;
1070
- 'editor.table.menu.insertColumnAfter': string;
1071
- 'editor.table.menu.deleteColumn': string;
1072
- 'editor.table.menu.insertRowAbove': string;
1073
- 'editor.table.menu.insertRowBelow': string;
1074
- 'editor.table.menu.deleteRow': string;
1075
- 'editor.table.menu.mergeCells': string;
1076
- 'editor.table.menu.splitCells': string;
1077
- 'editor.table.menu.deleteTable': string;
1078
- 'editor.table.menu.setCellsBgColor': string;
1079
- 'editor.emoji.tooltip': string;
1080
- 'editor.iframe.tooltip': string;
1081
- 'editor.searchAndReplace.tooltip': string;
1082
- 'editor.search.dialog.text': string;
1083
- 'editor.replace.dialog.text': string;
1084
- 'editor.replaceAll.dialog.text': string;
1085
- 'editor.previous.dialog.text': string;
1086
- 'editor.next.dialog.text': string;
1087
- no_result_found: string;
1088
- 'Smileys & People': string;
1089
- 'Animals & Nature': string;
1090
- 'Food & Drink': string;
1091
- Activity: string;
1092
- 'Travel & Places': string;
1093
- Object: string;
1094
- Symbol: string;
1095
- Flags: string;
1096
- 'Frequently used': string;
1097
- 'editor.formula.dialog.text': string;
1098
- 'editor.katex.tooltip': string;
1099
- 'editor.exportPdf.tooltip': string;
1100
- 'editor.exportWord.tooltip': string;
1101
- 'editor.importWord.tooltip': string;
1102
- 'editor.importWord.limitSize': string;
1103
- 'editor.importWord.converting': string;
1104
- 'editor.importWord.convertError': string;
1105
- 'editor.importWord.importError': string;
1106
- 'editor.textDirection.tooltip': string;
1107
- 'editor.textDirection.auto.tooltip': string;
1108
- 'editor.textDirection.ltr.tooltip': string;
1109
- 'editor.textDirection.rtl.tooltip': string;
1110
- 'editor.attachment.tooltip': string;
1111
- 'editor.attachment.uploading': string;
1112
- 'editor.attachment.please_upload': string;
1113
- 'editor.imageGif.tooltip': string;
1114
- 'editor.replace.caseSensitive': string;
1115
- 'editor.mermaid.tooltip': string;
1116
- 'editor.twitter.tooltip': string;
1117
- 'editor.tooltip.flipX': string;
1118
- 'editor.tooltip.flipY': string;
1119
- };
1120
-
1121
- declare interface Result {
1122
- from: number;
1123
- to: number;
1124
- }
1125
-
1126
125
  /**
1127
126
  * Interface for RichTextEditor component props
1128
127
  */
@@ -1171,123 +170,6 @@ declare interface RichTextEditorProps {
1171
170
  resetCSS?: boolean;
1172
171
  }
1173
172
 
1174
- export declare const SearchAndReplace: Extension<SearchOptions, SearchStorage>;
1175
-
1176
- declare interface SearchOptions extends GeneralOptions<SearchOptions> {
1177
- searchTerm: string;
1178
- replaceTerm: string;
1179
- searchResultClass: string;
1180
- searchResultCurrentClass: string;
1181
- caseSensitive: boolean;
1182
- disableRegex: boolean;
1183
- onChange?: () => void;
1184
- }
1185
-
1186
- declare interface SearchStorage {
1187
- results: Result[];
1188
- currentIndex: number;
1189
- }
1190
-
1191
- export declare interface SetImageAttrsOptions {
1192
- src?: string;
1193
- /** The alternative text for the image. */
1194
- alt?: string;
1195
- /** The caption of the image. */
1196
- caption?: string;
1197
- /** The width of the image. */
1198
- width?: number | string | null;
1199
- /** The alignment of the image. */
1200
- align?: 'left' | 'center' | 'right';
1201
- /** Whether the image is inline. */
1202
- inline?: boolean;
1203
- /** image FlipX */
1204
- flipX?: boolean;
1205
- /** image FlipY */
1206
- flipY?: boolean;
1207
- }
1208
-
1209
- export declare const SlashCommand: Extension<any, any>;
1210
-
1211
- export declare const Strike: Mark<StrikeOptions, any>;
1212
-
1213
- export declare interface StrikeOptions extends StrikeOptions_2, GeneralOptions<StrikeOptions> {
1214
- }
1215
-
1216
- export declare const SubAndSuperScript: Extension<SubAndSuperScriptOptions, any>;
1217
-
1218
- /**
1219
- * Represents the interface for subscript and superscript options, extending GeneralOptions.
1220
- */
1221
- export declare interface SubAndSuperScriptOptions extends GeneralOptions<SubAndSuperScriptOptions> {
1222
- /**
1223
- * subscript options or false, indicating whether subscript is enabled
1224
- *
1225
- * @default true
1226
- */
1227
- subscript: Partial<SubscriptExtensionOptions> | false;
1228
- /**
1229
- * superscript options or false, indicating whether superscript is enabled
1230
- *
1231
- * @default true
1232
- */
1233
- superscript: Partial<SuperscriptExtensionOptions> | false;
1234
- }
1235
-
1236
- export declare const Table: Node_2<TableOptions, any>;
1237
-
1238
- declare interface TableCellBackgroundOptions {
1239
- HTMLAttributes: Record<string, any>;
1240
- types?: any;
1241
- }
1242
-
1243
- export declare const TableOfContents: Node_2<Options, any>;
1244
-
1245
- export declare interface TableOptions extends GeneralOptions<TableOptions> {
1246
- HTMLAttributes: Record<string, any>;
1247
- resizable: boolean;
1248
- handleWidth: number;
1249
- cellMinWidth: number;
1250
- lastColumnResizable: boolean;
1251
- allowTableNodeSelection: boolean;
1252
- /** options for table rows */
1253
- tableRow: Partial<TableRowOptions>;
1254
- /** options for table headers */
1255
- tableHeader: Partial<TableHeaderOptions>;
1256
- /** options for table cells */
1257
- tableCell: Partial<TableCellOptions>;
1258
- /** options for table cell background */
1259
- tableCellBackground: Partial<TableCellBackgroundOptions>;
1260
- }
1261
-
1262
- export declare const TaskList: Node_2<TaskListOptions, any>;
1263
-
1264
- /**
1265
- * Represents the interface for task list options, extending TiptapTaskListOptions and GeneralOptions.
1266
- */
1267
- export declare interface TaskListOptions extends TaskListOptions_2, GeneralOptions<TaskListOptions> {
1268
- /** options for task items */
1269
- taskItem: Partial<TaskItemOptions>;
1270
- }
1271
-
1272
- export declare const TextAlign: Extension<TextAlignOptions, any>;
1273
-
1274
- /**
1275
- * Represents the interface for text align options, extending TiptapTextAlignOptions and GeneralOptions.
1276
- */
1277
- export declare interface TextAlignOptions extends TextAlignOptions_2, GeneralOptions<TextAlignOptions> {
1278
- /**
1279
- * List of available alignment options
1280
- *
1281
- * @default ['left', 'center', 'right', 'justify']
1282
- */
1283
- alignments: Alignments[];
1284
- }
1285
-
1286
- declare interface TextBubbleOptions extends GeneralOptions<TextBubbleOptions> {
1287
- }
1288
-
1289
- export declare const TextDirection: Extension<any, any>;
1290
-
1291
173
  /**
1292
174
  * Represents the ToolbarItemProps.
1293
175
  */
@@ -1311,48 +193,6 @@ declare interface ToolbarRenderProps {
1311
193
  disabled: boolean;
1312
194
  }
1313
195
 
1314
- /**
1315
- * Extension based on:
1316
- * - https://github.com/ueberdosis/tiptap/blob/v1/packages/tiptap-extensions/src/extensions/TrailingNode.js
1317
- * - https://github.com/remirror/remirror/blob/e0f1bec4a1e8073ce8f5500d62193e52321155b9/packages/prosemirror-trailing-node/src/trailing-node-plugin.ts
1318
- */
1319
- declare interface TrailingNodeOptions {
1320
- node: string;
1321
- notAfter: string[];
1322
- }
1323
-
1324
- /**
1325
- * This extension adds support for tweets.
1326
- */
1327
- export declare const Twitter: Node_2<TwitterOptions, any>;
1328
-
1329
- declare interface TwitterOptions {
1330
- /**
1331
- * Controls if the paste handler for tweets should be added.
1332
- * @default true
1333
- * @example false
1334
- */
1335
- addPasteHandler: boolean;
1336
- HTMLAttributes: Record<string, any>;
1337
- /**
1338
- * Controls if the twitter node should be inline or not.
1339
- * @default false
1340
- * @example true
1341
- */
1342
- inline: boolean;
1343
- /**
1344
- * The origin of the tweet.
1345
- * @default ''
1346
- * @example 'https://tiptap.dev'
1347
- */
1348
- origin: string;
1349
- }
1350
-
1351
- export declare const Underline: Mark<UnderlineOptions, any>;
1352
-
1353
- export declare interface UnderlineOptions extends UnderlineOptions_2, GeneralOptions<UnderlineOptions> {
1354
- }
1355
-
1356
196
  export { UseEditorOptions }
1357
197
 
1358
198
  export declare function useEditorState(): UseEditorStateReturn;
@@ -1365,384 +205,6 @@ export declare interface UseEditorStateReturn {
1365
205
  }>;
1366
206
  }
1367
207
 
1368
- export declare const vi: {
1369
- 'editor.remove': string;
1370
- 'editor.copy': string;
1371
- 'editor.words': string;
1372
- 'editor.characters': string;
1373
- 'editor.default': string;
1374
- 'editor.recent': string;
1375
- 'editor.nofill': string;
1376
- 'editor.format': string;
1377
- 'editor.delete': string;
1378
- 'editor.edit': string;
1379
- 'editor.settings': string;
1380
- 'editor.table_of_content': string;
1381
- 'editor.draghandle.tooltip': string;
1382
- 'editor.copyToClipboard': string;
1383
- 'editor.slash': string;
1384
- 'editor.slash.empty': string;
1385
- 'editor.slash.format': string;
1386
- 'editor.slash.insert': string;
1387
- 'editor.slash.embed': string;
1388
- 'editor.content': string;
1389
- 'editor.moremark': string;
1390
- 'editor.size.small.tooltip': string;
1391
- 'editor.fontFamily.tooltip': string;
1392
- 'editor.fontFamily.default.tooltip': string;
1393
- 'editor.size.medium.tooltip': string;
1394
- 'editor.size.large.tooltip': string;
1395
- 'editor.bold.tooltip': string;
1396
- 'editor.italic.tooltip': string;
1397
- 'editor.underline.tooltip': string;
1398
- 'editor.strike.tooltip': string;
1399
- 'editor.color.tooltip': string;
1400
- 'editor.color.more': string;
1401
- 'editor.highlight.tooltip': string;
1402
- 'editor.lineheight.tooltip': string;
1403
- 'editor.heading.tooltip': string;
1404
- 'editor.heading.h1.tooltip': string;
1405
- 'editor.heading.h2.tooltip': string;
1406
- 'editor.heading.h3.tooltip': string;
1407
- 'editor.heading.h4.tooltip': string;
1408
- 'editor.heading.h5.tooltip': string;
1409
- 'editor.heading.h6.tooltip': string;
1410
- 'editor.paragraph.tooltip': string;
1411
- 'editor.textalign.tooltip': string;
1412
- 'editor.textalign.left.tooltip': string;
1413
- 'editor.textalign.center.tooltip': string;
1414
- 'editor.textalign.right.tooltip': string;
1415
- 'editor.textalign.justify.tooltip': string;
1416
- 'editor.indent': string;
1417
- 'editor.indent.indent': string;
1418
- 'editor.indent.outdent': string;
1419
- 'editor.fontSize.tooltip': string;
1420
- 'editor.fontSize.default.tooltip': string;
1421
- 'editor.superscript.tooltip': string;
1422
- 'editor.subscript.tooltip': string;
1423
- 'editor.bulletlist.tooltip': string;
1424
- 'editor.orderedlist.tooltip': string;
1425
- 'editor.tasklist.tooltip': string;
1426
- 'editor.indent.tooltip': string;
1427
- 'editor.outdent.tooltip': string;
1428
- 'editor.columns.tooltip': string;
1429
- 'editor.link.tooltip': string;
1430
- 'editor.link.unlink.tooltip': string;
1431
- 'editor.link.open.tooltip': string;
1432
- 'editor.link.edit.tooltip': string;
1433
- 'editor.link.dialog.title': string;
1434
- 'editor.link.dialog.link': string;
1435
- 'editor.link.dialog.text': string;
1436
- 'editor.link.dialog.openInNewTab': string;
1437
- 'editor.link.dialog.link.placeholder': string;
1438
- 'editor.link.dialog.text.placeholder': string;
1439
- 'editor.link.dialog.button.apply': string;
1440
- 'editor.image.tooltip': string;
1441
- 'editor.image.dragger.tooltip': string;
1442
- 'editor.image.float.left.tooltip': string;
1443
- 'editor.image.float.none.tooltip': string;
1444
- 'editor.image.float.right.tooltip': string;
1445
- 'editor.image.dialog.title': string;
1446
- 'editor.image.dialog.tab.url': string;
1447
- 'editor.image.dialog.tab.upload': string;
1448
- 'editor.link.dialog.inline': string;
1449
- 'editor.image.dialog.tab.uploadCrop': string;
1450
- 'editor.image.dialog.uploading': string;
1451
- 'editor.image.dialog.form.link': string;
1452
- 'editor.image.dialog.placeholder': string;
1453
- 'editor.image.dialog.form.alt': string;
1454
- 'editor.image.dialog.form.aspectRatio': string;
1455
- 'editor.image.dialog.form.file': string;
1456
- 'editor.image.dialog.button.apply': string;
1457
- 'editor.video.tooltip': string;
1458
- 'editor.video.dialog.tab.upload': string;
1459
- 'editor.video.dialog.uploading': string;
1460
- 'editor.video.dialog.title': string;
1461
- 'editor.video.dialog.link': string;
1462
- 'editor.video.dialog.placeholder': string;
1463
- 'editor.video.dialog.button.apply': string;
1464
- 'editor.table.tooltip': string;
1465
- 'editor.table.menu.insert_table': string;
1466
- 'editor.table.menu.insert_table.with_header_row': string;
1467
- 'editor.table.menu.add_column_before': string;
1468
- 'editor.table.menu.add_column_after': string;
1469
- 'editor.table.menu.delete_column': string;
1470
- 'editor.table.menu.add_row_before': string;
1471
- 'editor.table.menu.add_row_after': string;
1472
- 'editor.table.menu.delete_row': string;
1473
- 'editor.table.menu.merge_or_split_cells': string;
1474
- 'editor.table.menu.delete_table': string;
1475
- 'editor.blockquote.tooltip': string;
1476
- 'editor.horizontalrule.tooltip': string;
1477
- 'editor.code.tooltip': string;
1478
- 'editor.codeblock.tooltip': string;
1479
- 'editor.clear.tooltip': string;
1480
- 'editor.undo.tooltip': string;
1481
- 'editor.redo.tooltip': string;
1482
- 'editor.fullscreen.tooltip.fullscreen': string;
1483
- 'editor.fullscreen.tooltip.exit': string;
1484
- 'editor.imageUpload.cancel': string;
1485
- 'editor.imageUpload.crop': string;
1486
- 'editor.imageUpload.fileTypeNotSupported': string;
1487
- 'editor.imageUpload.fileSizeTooBig': string;
1488
- 'editor.table.menu.insertColumnBefore': string;
1489
- 'editor.table.menu.insertColumnAfter': string;
1490
- 'editor.table.menu.deleteColumn': string;
1491
- 'editor.table.menu.insertRowAbove': string;
1492
- 'editor.table.menu.insertRowBelow': string;
1493
- 'editor.table.menu.deleteRow': string;
1494
- 'editor.table.menu.mergeCells': string;
1495
- 'editor.table.menu.splitCells': string;
1496
- 'editor.table.menu.deleteTable': string;
1497
- 'editor.table.menu.setCellsBgColor': string;
1498
- 'editor.emoji.tooltip': string;
1499
- 'editor.iframe.tooltip': string;
1500
- 'editor.searchAndReplace.tooltip': string;
1501
- 'editor.search.dialog.text': string;
1502
- 'editor.replace.dialog.text': string;
1503
- 'editor.replaceAll.dialog.text': string;
1504
- 'editor.previous.dialog.text': string;
1505
- 'editor.next.dialog.text': string;
1506
- no_result_found: string;
1507
- 'Smileys & People': string;
1508
- 'Animals & Nature': string;
1509
- 'Food & Drink': string;
1510
- Activity: string;
1511
- 'Travel & Places': string;
1512
- Object: string;
1513
- Symbol: string;
1514
- Flags: string;
1515
- 'Frequently used': string;
1516
- 'editor.formula.dialog.text': string;
1517
- 'editor.katex.tooltip': string;
1518
- 'editor.exportPdf.tooltip': string;
1519
- 'editor.exportWord.tooltip': string;
1520
- 'editor.importWord.tooltip': string;
1521
- 'editor.importWord.limitSize': string;
1522
- 'editor.importWord.converting': string;
1523
- 'editor.importWord.convertError': string;
1524
- 'editor.importWord.importError': string;
1525
- 'editor.textDirection.tooltip': string;
1526
- 'editor.textDirection.auto.tooltip': string;
1527
- 'editor.textDirection.ltr.tooltip': string;
1528
- 'editor.textDirection.rtl.tooltip': string;
1529
- 'editor.attachment.tooltip': string;
1530
- 'editor.attachment.uploading': string;
1531
- 'editor.attachment.please_upload': string;
1532
- 'editor.imageGif.tooltip': string;
1533
- 'editor.replace.caseSensitive': string;
1534
- 'editor.mermaid.tooltip': string;
1535
- 'editor.twitter.tooltip': string;
1536
- 'editor.tooltip.flipX': string;
1537
- 'editor.tooltip.flipY': string;
1538
- };
1539
-
1540
- export declare const Video: Node_2<VideoOptions, any>;
1541
-
1542
- /**
1543
- * Represents the interface for video options, extending GeneralOptions.
1544
- */
1545
- export declare interface VideoOptions extends GeneralOptions<VideoOptions> {
1546
- /**
1547
- * Indicates whether fullscreen play is allowed
1548
- *
1549
- * @default true
1550
- */
1551
- allowFullscreen: boolean;
1552
- /**
1553
- * Indicates whether to display the frameborder
1554
- *
1555
- * @default false
1556
- */
1557
- frameborder: boolean;
1558
- /**
1559
- * Width of the video, can be a number or string
1560
- *
1561
- * @default VIDEO_SIZE['size-medium']
1562
- */
1563
- width: number | string;
1564
- /** HTML attributes object for passing additional attributes */
1565
- HTMLAttributes: {
1566
- [key: string]: any;
1567
- };
1568
- /** Function for uploading files */
1569
- upload?: (file: File) => Promise<string>;
1570
- /** The source URL of the video */
1571
- resourceVideo: 'upload' | 'link' | 'both';
1572
- }
1573
-
1574
- export declare const zh_CN: {
1575
- 'editor.remove': string;
1576
- 'editor.copy': string;
1577
- 'editor.words': string;
1578
- 'editor.characters': string;
1579
- 'editor.default': string;
1580
- 'editor.recent': string;
1581
- 'editor.nofill': string;
1582
- 'editor.format': string;
1583
- 'editor.delete': string;
1584
- 'editor.edit': string;
1585
- 'editor.settings': string;
1586
- 'editor.table_of_content': string;
1587
- 'editor.draghandle.tooltip': string;
1588
- 'editor.copyToClipboard': string;
1589
- 'editor.slash': string;
1590
- 'editor.slash.empty': string;
1591
- 'editor.slash.format': string;
1592
- 'editor.slash.insert': string;
1593
- 'editor.slash.embed': string;
1594
- 'editor.content': string;
1595
- 'editor.fontFamily.tooltip': string;
1596
- 'editor.fontFamily.default.tooltip': string;
1597
- 'editor.moremark': string;
1598
- 'editor.size.small.tooltip': string;
1599
- 'editor.size.medium.tooltip': string;
1600
- 'editor.size.large.tooltip': string;
1601
- 'editor.bold.tooltip': string;
1602
- 'editor.italic.tooltip': string;
1603
- 'editor.underline.tooltip': string;
1604
- 'editor.strike.tooltip': string;
1605
- 'editor.color.tooltip': string;
1606
- 'editor.color.more': string;
1607
- 'editor.highlight.tooltip': string;
1608
- 'editor.lineheight.tooltip': string;
1609
- 'editor.heading.tooltip': string;
1610
- 'editor.heading.h1.tooltip': string;
1611
- 'editor.heading.h2.tooltip': string;
1612
- 'editor.heading.h3.tooltip': string;
1613
- 'editor.heading.h4.tooltip': string;
1614
- 'editor.heading.h5.tooltip': string;
1615
- 'editor.heading.h6.tooltip': string;
1616
- 'editor.paragraph.tooltip': string;
1617
- 'editor.textalign.tooltip': string;
1618
- 'editor.textalign.left.tooltip': string;
1619
- 'editor.textalign.center.tooltip': string;
1620
- 'editor.textalign.right.tooltip': string;
1621
- 'editor.textalign.justify.tooltip': string;
1622
- 'editor.indent': string;
1623
- 'editor.indent.indent': string;
1624
- 'editor.indent.outdent': string;
1625
- 'editor.fontSize.tooltip': string;
1626
- 'editor.fontSize.default.tooltip': string;
1627
- 'editor.superscript.tooltip': string;
1628
- 'editor.subscript.tooltip': string;
1629
- 'editor.bulletlist.tooltip': string;
1630
- 'editor.orderedlist.tooltip': string;
1631
- 'editor.tasklist.tooltip': string;
1632
- 'editor.indent.tooltip': string;
1633
- 'editor.outdent.tooltip': string;
1634
- 'editor.columns.tooltip': string;
1635
- 'editor.link.tooltip': string;
1636
- 'editor.link.unlink.tooltip': string;
1637
- 'editor.link.open.tooltip': string;
1638
- 'editor.link.edit.tooltip': string;
1639
- 'editor.link.dialog.title': string;
1640
- 'editor.link.dialog.link': string;
1641
- 'editor.link.dialog.text': string;
1642
- 'editor.link.dialog.openInNewTab': string;
1643
- 'editor.link.dialog.link.placeholder': string;
1644
- 'editor.link.dialog.text.placeholder': string;
1645
- 'editor.link.dialog.button.apply': string;
1646
- 'editor.image.tooltip': string;
1647
- 'editor.image.dragger.tooltip': string;
1648
- 'editor.image.float.left.tooltip': string;
1649
- 'editor.image.float.none.tooltip': string;
1650
- 'editor.image.float.right.tooltip': string;
1651
- 'editor.image.dialog.title': string;
1652
- 'editor.image.dialog.tab.url': string;
1653
- 'editor.image.dialog.tab.upload': string;
1654
- 'editor.link.dialog.inline': string;
1655
- 'editor.image.dialog.uploading': string;
1656
- 'editor.image.dialog.form.link': string;
1657
- 'editor.image.dialog.placeholder': string;
1658
- 'editor.image.dialog.form.alt': string;
1659
- 'editor.image.dialog.form.aspectRatio': string;
1660
- 'editor.image.dialog.form.file': string;
1661
- 'editor.image.dialog.button.apply': string;
1662
- 'editor.video.tooltip': string;
1663
- 'editor.video.dialog.tab.upload': string;
1664
- 'editor.image.dialog.tab.uploadCrop': string;
1665
- 'editor.video.dialog.uploading': string;
1666
- 'editor.video.dialog.title': string;
1667
- 'editor.video.dialog.link': string;
1668
- 'editor.video.dialog.placeholder': string;
1669
- 'editor.video.dialog.button.apply': string;
1670
- 'editor.table.tooltip': string;
1671
- 'editor.table.menu.insert_table': string;
1672
- 'editor.table.menu.insert_table.with_header_row': string;
1673
- 'editor.table.menu.add_column_before': string;
1674
- 'editor.table.menu.add_column_after': string;
1675
- 'editor.table.menu.delete_column': string;
1676
- 'editor.table.menu.add_row_before': string;
1677
- 'editor.table.menu.add_row_after': string;
1678
- 'editor.table.menu.delete_row': string;
1679
- 'editor.table.menu.merge_or_split_cells': string;
1680
- 'editor.table.menu.delete_table': string;
1681
- 'editor.blockquote.tooltip': string;
1682
- 'editor.horizontalrule.tooltip': string;
1683
- 'editor.code.tooltip': string;
1684
- 'editor.codeblock.tooltip': string;
1685
- 'editor.clear.tooltip': string;
1686
- 'editor.undo.tooltip': string;
1687
- 'editor.redo.tooltip': string;
1688
- 'editor.fullscreen.tooltip.fullscreen': string;
1689
- 'editor.fullscreen.tooltip.exit': string;
1690
- 'editor.imageUpload.cancel': string;
1691
- 'editor.imageUpload.crop': string;
1692
- 'editor.imageUpload.fileTypeNotSupported': string;
1693
- 'editor.imageUpload.fileSizeTooBig': string;
1694
- 'editor.table.menu.insertColumnBefore': string;
1695
- 'editor.table.menu.insertColumnAfter': string;
1696
- 'editor.table.menu.deleteColumn': string;
1697
- 'editor.table.menu.insertRowAbove': string;
1698
- 'editor.table.menu.insertRowBelow': string;
1699
- 'editor.table.menu.deleteRow': string;
1700
- 'editor.table.menu.mergeCells': string;
1701
- 'editor.table.menu.splitCells': string;
1702
- 'editor.table.menu.deleteTable': string;
1703
- 'editor.table.menu.setCellsBgColor': string;
1704
- 'editor.emoji.tooltip': string;
1705
- 'editor.iframe.tooltip': string;
1706
- 'editor.searchAndReplace.tooltip': string;
1707
- 'editor.search.dialog.text': string;
1708
- 'editor.replace.dialog.text': string;
1709
- 'editor.replaceAll.dialog.text': string;
1710
- 'editor.previous.dialog.text': string;
1711
- 'editor.next.dialog.text': string;
1712
- no_result_found: string;
1713
- 'Smileys & People': string;
1714
- 'Animals & Nature': string;
1715
- 'Food & Drink': string;
1716
- Activity: string;
1717
- 'Travel & Places': string;
1718
- Object: string;
1719
- Symbol: string;
1720
- Flags: string;
1721
- 'Frequently used': string;
1722
- 'editor.formula.dialog.text': string;
1723
- 'editor.katex.tooltip': string;
1724
- 'editor.exportPdf.tooltip': string;
1725
- 'editor.exportWord.tooltip': string;
1726
- 'editor.importWord.tooltip': string;
1727
- 'editor.importWord.limitSize': string;
1728
- 'editor.importWord.converting': string;
1729
- 'editor.importWord.convertError': string;
1730
- 'editor.importWord.importError': string;
1731
- 'editor.textDirection.tooltip': string;
1732
- 'editor.textDirection.auto.tooltip': string;
1733
- 'editor.textDirection.ltr.tooltip': string;
1734
- 'editor.textDirection.rtl.tooltip': string;
1735
- 'editor.attachment.tooltip': string;
1736
- 'editor.attachment.uploading': string;
1737
- 'editor.attachment.please_upload': string;
1738
- 'editor.imageGif.tooltip': string;
1739
- 'editor.replace.caseSensitive': string;
1740
- 'editor.mermaid.tooltip': string;
1741
- 'editor.twitter.tooltip': string;
1742
- 'editor.tooltip.flipX': string;
1743
- 'editor.tooltip.flipY': string;
1744
- };
1745
-
1746
208
  export { }
1747
209
 
1748
210
 
@@ -1780,6 +242,16 @@ declare module '@tiptap/core' {
1780
242
  }
1781
243
 
1782
244
 
245
+ declare module '@tiptap/core' {
246
+ interface Commands<ReturnType> {
247
+ lineHeight: {
248
+ setLineHeight: (lineHeight: string) => ReturnType;
249
+ unsetLineHeight: () => ReturnType;
250
+ };
251
+ }
252
+ }
253
+
254
+
1783
255
  declare module '@tiptap/core' {
1784
256
  interface Commands<ReturnType> {
1785
257
  indent: {
@@ -1798,9 +270,9 @@ declare module '@tiptap/core' {
1798
270
 
1799
271
  declare module '@tiptap/core' {
1800
272
  interface Commands<ReturnType> {
1801
- lineHeight: {
1802
- setLineHeight: (lineHeight: string) => ReturnType;
1803
- unsetLineHeight: () => ReturnType;
273
+ tableCellBackground: {
274
+ setTableCellBackground: (color: string) => ReturnType;
275
+ unsetTableCellBackground: () => ReturnType;
1804
276
  };
1805
277
  }
1806
278
  }
@@ -1828,9 +300,29 @@ declare module '@tiptap/core' {
1828
300
 
1829
301
  declare module '@tiptap/core' {
1830
302
  interface Commands<ReturnType> {
1831
- tableCellBackground: {
1832
- setTableCellBackground: (color: string) => ReturnType;
1833
- unsetTableCellBackground: () => ReturnType;
303
+ search: {
304
+ setSearchTerm: (searchTerm: string) => ReturnType;
305
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
306
+ replace: () => ReturnType;
307
+ replaceAll: () => ReturnType;
308
+ goToPrevSearchResult: () => void;
309
+ goToNextSearchResult: () => void;
310
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
311
+ };
312
+ }
313
+ }
314
+
315
+
316
+ declare module '@tiptap/core' {
317
+ interface Commands<ReturnType> {
318
+ iframe: {
319
+ /**
320
+ * Add an iframe
321
+ */
322
+ setIframe: (options: {
323
+ src: string;
324
+ service: string;
325
+ }) => ReturnType;
1834
326
  };
1835
327
  }
1836
328
  }
@@ -1882,29 +374,8 @@ declare module '@tiptap/core' {
1882
374
 
1883
375
  declare module '@tiptap/core' {
1884
376
  interface Commands<ReturnType> {
1885
- search: {
1886
- setSearchTerm: (searchTerm: string) => ReturnType;
1887
- setReplaceTerm: (replaceTerm: string) => ReturnType;
1888
- replace: () => ReturnType;
1889
- replaceAll: () => ReturnType;
1890
- goToPrevSearchResult: () => void;
1891
- goToNextSearchResult: () => void;
1892
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
1893
- };
1894
- }
1895
- }
1896
-
1897
-
1898
- declare module '@tiptap/core' {
1899
- interface Commands<ReturnType> {
1900
- iframe: {
1901
- /**
1902
- * Add an iframe
1903
- */
1904
- setIframe: (options: {
1905
- src: string;
1906
- service: string;
1907
- }) => ReturnType;
377
+ exportWord: {
378
+ exportToWord: () => ReturnType;
1908
379
  };
1909
380
  }
1910
381
  }
@@ -1912,8 +383,8 @@ declare module '@tiptap/core' {
1912
383
 
1913
384
  declare module '@tiptap/core' {
1914
385
  interface Commands<ReturnType> {
1915
- exportWord: {
1916
- exportToWord: () => ReturnType;
386
+ excalidraw: {
387
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
1917
388
  };
1918
389
  }
1919
390
  }
@@ -1931,17 +402,9 @@ declare module '@tiptap/core' {
1931
402
 
1932
403
  declare module '@tiptap/core' {
1933
404
  interface Commands<ReturnType> {
1934
- excalidraw: {
1935
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
1936
- };
1937
- }
1938
- }
1939
-
1940
-
1941
- declare module '@tiptap/core' {
1942
- interface Commands<ReturnType> {
1943
- attachment: {
1944
- setAttachment: (attrs?: unknown) => ReturnType;
405
+ mermaid: {
406
+ setMermaid: (options: any, replace?: any) => ReturnType;
407
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1945
408
  };
1946
409
  }
1947
410
  }
@@ -1969,9 +432,8 @@ declare module '@tiptap/core' {
1969
432
 
1970
433
  declare module '@tiptap/core' {
1971
434
  interface Commands<ReturnType> {
1972
- mermaid: {
1973
- setMermaid: (options: any, replace?: any) => ReturnType;
1974
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
435
+ attachment: {
436
+ setAttachment: (attrs?: unknown) => ReturnType;
1975
437
  };
1976
438
  }
1977
439
  }