reactjs-tiptap-editor 0.0.37 → 0.0.38

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 CHANGED
@@ -25,8 +25,8 @@ import { ItalicOptions as ItalicOptions_2 } from '@tiptap/extension-italic';
25
25
  import { LinkOptions as LinkOptions_2 } from '@tiptap/extension-link';
26
26
  import { ListItemOptions } from '@tiptap/extension-list-item';
27
27
  import { Mark } from '@tiptap/core';
28
- import { Node as Node_2 } from '@tiptap/react';
29
- import { Node as Node_3 } from '@tiptap/core';
28
+ import { Node as Node_2 } from '@tiptap/core';
29
+ import { Node as Node_3 } from '@tiptap/react';
30
30
  import { OrderedListOptions as OrderedListOptions_2 } from '@tiptap/extension-ordered-list';
31
31
  import { ParagraphOptions } from '@tiptap/extension-paragraph';
32
32
  import { PlaceholderOptions } from '@tiptap/extension-placeholder';
@@ -153,7 +153,7 @@ export declare interface BaseKitOptions {
153
153
  selection: any | false;
154
154
  }
155
155
 
156
- export declare const Blockquote: Node_3<BlockquoteOptions, any>;
156
+ export declare const Blockquote: Node_2<BlockquoteOptions, any>;
157
157
 
158
158
  export declare interface BlockquoteOptions extends BlockquoteOptions_2, GeneralOptions<BlockquoteOptions> {
159
159
  }
@@ -249,7 +249,7 @@ declare interface BubbleMenuRenderProps {
249
249
  bubbleMenu: BubbleMenuProps;
250
250
  }
251
251
 
252
- export declare const BulletList: Node_3<BulletListOptions, any>;
252
+ export declare const BulletList: Node_2<BulletListOptions, any>;
253
253
 
254
254
  export declare interface BulletListOptions extends BulletListOptions_2, GeneralOptions<BulletListOptions> {
255
255
  }
@@ -309,7 +309,7 @@ declare interface ButtonViewReturnComponentSlots {
309
309
  [x: string]: () => any;
310
310
  }
311
311
 
312
- export declare const Clear: Node_3<ClearOptions, any>;
312
+ export declare const Clear: Node_2<ClearOptions, any>;
313
313
 
314
314
  export declare interface ClearOptions extends GeneralOptions<ClearOptions> {
315
315
  }
@@ -339,7 +339,7 @@ export declare interface ColorOptions extends ColorOptions_2, GeneralOptions<Col
339
339
  defaultColor?: string;
340
340
  }
341
341
 
342
- export declare const Column: Node_3<any, any>;
342
+ export declare const Column: Node_2<any, any>;
343
343
 
344
344
  export declare const ColumnActionButton: Extension<any, any>;
345
345
 
@@ -348,7 +348,7 @@ editor: Editor_2 | null;
348
348
  }>>;
349
349
  export default _default;
350
350
 
351
- export declare const Emoji: Node_3<any, any>;
351
+ export declare const Emoji: Node_2<any, any>;
352
352
 
353
353
  export declare const en: {
354
354
  'editor.remove': string;
@@ -500,9 +500,13 @@ export declare const en: {
500
500
  'editor.exportPdf.tooltip': string;
501
501
  'editor.exportWord.tooltip': string;
502
502
  'editor.importWrod.tooltip': string;
503
+ 'editor.textDirection.tooltip': string;
504
+ 'editor.textDirection.auto.tooltip': string;
505
+ 'editor.textDirection.ltr.tooltip': string;
506
+ 'editor.textDirection.rtl.tooltip': string;
503
507
  };
504
508
 
505
- export declare const Excalidraw: Node_3<any, any>;
509
+ export declare const Excalidraw: Node_2<any, any>;
506
510
 
507
511
  export declare const ExportPdf: Extension<any, any>;
508
512
 
@@ -560,7 +564,7 @@ declare interface GeneralOptions<T> {
560
564
  toolbar?: boolean;
561
565
  }
562
566
 
563
- export declare const Heading: Node_3<HeadingOptions, any>;
567
+ export declare const Heading: Node_2<HeadingOptions, any>;
564
568
 
565
569
  export declare interface HeadingOptions extends HeadingOptions_2, GeneralOptions<HeadingOptions> {
566
570
  }
@@ -577,21 +581,21 @@ export { History_2 as History }
577
581
  export declare interface HistoryOptions extends HistoryOptions_2, GeneralOptions<HistoryOptions> {
578
582
  }
579
583
 
580
- export declare const HorizontalRule: Node_3<HorizontalRuleOptions, any>;
584
+ export declare const HorizontalRule: Node_2<HorizontalRuleOptions, any>;
581
585
 
582
586
  export declare interface HorizontalRuleOptions extends HorizontalRuleOptions_2, GeneralOptions<HorizontalRuleOptions> {
583
587
  }
584
588
 
585
- export declare const Iframe: Node_3<any, any>;
589
+ export declare const Iframe: Node_2<any, any>;
586
590
 
587
591
  declare interface IKatexOptions {
588
592
  HTMLAttributes: Record<string, any>;
589
593
  }
590
594
 
591
- declare const Image_2: Node_3<ImageOptions, any>;
595
+ declare const Image_2: Node_2<ImageOptions, any>;
592
596
  export { Image_2 as Image }
593
597
 
594
- export declare const ImageUpload: Node_2<ImageUploadOptions, any>;
598
+ export declare const ImageUpload: Node_3<ImageUploadOptions, any>;
595
599
 
596
600
  export declare interface ImageUploadOptions {
597
601
  upload: (file: File) => Promise<string>;
@@ -623,7 +627,7 @@ export declare const Italic: Mark<ItalicOptions, any>;
623
627
  export declare interface ItalicOptions extends ItalicOptions_2, GeneralOptions<ItalicOptions> {
624
628
  }
625
629
 
626
- export declare const Katex: Node_3<IKatexOptions, any>;
630
+ export declare const Katex: Node_2<IKatexOptions, any>;
627
631
 
628
632
  declare type LanguageType = 'en' | 'vi' | 'zh_CN' | 'pt_BR' | (string & {});
629
633
 
@@ -678,7 +682,7 @@ export declare interface MoreMarkOptions extends GeneralOptions<MoreMarkOptions>
678
682
  superscript: Partial<SuperscriptExtensionOptions> | false;
679
683
  }
680
684
 
681
- export declare const MultiColumn: Node_3<any, any>;
685
+ export declare const MultiColumn: Node_2<any, any>;
682
686
 
683
687
  declare interface NameValueOption<T = string> {
684
688
  name: string;
@@ -689,7 +693,7 @@ declare interface Options {
689
693
  onHasOneBeforeInsert?: () => void;
690
694
  }
691
695
 
692
- export declare const OrderedList: Node_3<OrderedListOptions, any>;
696
+ export declare const OrderedList: Node_2<OrderedListOptions, any>;
693
697
 
694
698
  export declare interface OrderedListOptions extends OrderedListOptions_2, GeneralOptions<OrderedListOptions> {
695
699
  }
@@ -844,6 +848,10 @@ export declare const pt_BR: {
844
848
  'editor.exportPdf.tooltip': string;
845
849
  'editor.exportWord.tooltip': string;
846
850
  'editor.importWrod.tooltip': string;
851
+ 'editor.textDirection.tooltip': string;
852
+ 'editor.textDirection.auto.tooltip': string;
853
+ 'editor.textDirection.ltr.tooltip': string;
854
+ 'editor.textDirection.rtl.tooltip': string;
847
855
  };
848
856
 
849
857
  declare interface Result {
@@ -955,14 +963,14 @@ export declare interface SubAndSuperScriptOptions extends GeneralOptions<SubAndS
955
963
  superscript: Partial<SuperscriptExtensionOptions> | false;
956
964
  }
957
965
 
958
- export declare const Table: Node_3<TableOptions, any>;
966
+ export declare const Table: Node_2<TableOptions, any>;
959
967
 
960
968
  declare interface TableCellBackgroundOptions {
961
969
  HTMLAttributes: Record<string, any>;
962
970
  types?: any;
963
971
  }
964
972
 
965
- export declare const TableOfContents: Node_3<Options, any>;
973
+ export declare const TableOfContents: Node_2<Options, any>;
966
974
 
967
975
  export declare interface TableOptions extends GeneralOptions<TableOptions> {
968
976
  HTMLAttributes: Record<string, any>;
@@ -981,7 +989,7 @@ export declare interface TableOptions extends GeneralOptions<TableOptions> {
981
989
  tableCellBackground: Partial<TableCellBackgroundOptions>;
982
990
  }
983
991
 
984
- export declare const TaskList: Node_3<TaskListOptions, any>;
992
+ export declare const TaskList: Node_2<TaskListOptions, any>;
985
993
 
986
994
  /**
987
995
  * Represents the interface for task list options, extending TiptapTaskListOptions and GeneralOptions.
@@ -1008,6 +1016,8 @@ export declare interface TextAlignOptions extends TextAlignOptions_2, GeneralOpt
1008
1016
  declare interface TextBubbleOptions extends GeneralOptions<TextBubbleOptions> {
1009
1017
  }
1010
1018
 
1019
+ export declare const TextDirection: Extension<any, any>;
1020
+
1011
1021
  /**
1012
1022
  * Extension based on:
1013
1023
  * - https://github.com/ueberdosis/tiptap/blob/v1/packages/tiptap-extensions/src/extensions/TrailingNode.js
@@ -1173,9 +1183,13 @@ export declare const vi: {
1173
1183
  'editor.exportPdf.tooltip': string;
1174
1184
  'editor.exportWord.tooltip': string;
1175
1185
  'editor.importWrod.tooltip': string;
1186
+ 'editor.textDirection.tooltip': string;
1187
+ 'editor.textDirection.auto.tooltip': string;
1188
+ 'editor.textDirection.ltr.tooltip': string;
1189
+ 'editor.textDirection.rtl.tooltip': string;
1176
1190
  };
1177
1191
 
1178
- export declare const Video: Node_3<VideoOptions, any>;
1192
+ export declare const Video: Node_2<VideoOptions, any>;
1179
1193
 
1180
1194
  /**
1181
1195
  * Represents the interface for video options, extending GeneralOptions.
@@ -1210,7 +1224,7 @@ declare interface VideoOptions_2 {
1210
1224
  upload?: (files: File[]) => void;
1211
1225
  }
1212
1226
 
1213
- export declare const VideoUpload: Node_3<VideoOptions_2, any>;
1227
+ export declare const VideoUpload: Node_2<VideoOptions_2, any>;
1214
1228
 
1215
1229
  export declare const zh_CN: {
1216
1230
  'editor.remove': string;
@@ -1362,6 +1376,10 @@ export declare const zh_CN: {
1362
1376
  'editor.exportPdf.tooltip': string;
1363
1377
  'editor.exportWord.tooltip': string;
1364
1378
  'editor.importWrod.tooltip': string;
1379
+ 'editor.textDirection.tooltip': string;
1380
+ 'editor.textDirection.auto.tooltip': string;
1381
+ 'editor.textDirection.ltr.tooltip': string;
1382
+ 'editor.textDirection.rtl.tooltip': string;
1365
1383
  };
1366
1384
 
1367
1385
  export { }
@@ -1417,26 +1435,6 @@ declare module '@tiptap/core' {
1417
1435
  }
1418
1436
 
1419
1437
 
1420
- declare module '@tiptap/core' {
1421
- interface Commands<ReturnType> {
1422
- imageResize: {
1423
- /**
1424
- * Add an image
1425
- */
1426
- setImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1427
- /**
1428
- * Update an image
1429
- */
1430
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1431
- /**
1432
- * Set image alignment
1433
- */
1434
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
1435
- };
1436
- }
1437
- }
1438
-
1439
-
1440
1438
  declare module '@tiptap/core' {
1441
1439
  interface Commands<ReturnType> {
1442
1440
  imageUpload: {
@@ -1458,27 +1456,19 @@ declare module '@tiptap/core' {
1458
1456
 
1459
1457
  declare module '@tiptap/core' {
1460
1458
  interface Commands<ReturnType> {
1461
- videoUpload: {
1462
- setVideoUpload: () => ReturnType;
1463
- };
1464
- }
1465
- }
1466
-
1467
-
1468
- declare module '@tiptap/core' {
1469
- interface Commands<ReturnType> {
1470
- painter: {
1471
- setPainter: (marks: Mark[]) => ReturnType;
1472
- };
1473
- }
1474
- }
1475
-
1476
-
1477
- declare module '@tiptap/core' {
1478
- interface Commands<ReturnType> {
1479
- tableCellBackground: {
1480
- setTableCellBackground: (color: string) => ReturnType;
1481
- unsetTableCellBackground: () => ReturnType;
1459
+ imageResize: {
1460
+ /**
1461
+ * Add an image
1462
+ */
1463
+ setImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1464
+ /**
1465
+ * Update an image
1466
+ */
1467
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1468
+ /**
1469
+ * Set image alignment
1470
+ */
1471
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
1482
1472
  };
1483
1473
  }
1484
1474
  }
@@ -1499,6 +1489,20 @@ declare module '@tiptap/core' {
1499
1489
  }
1500
1490
 
1501
1491
 
1492
+ declare module '@tiptap/core' {
1493
+ interface Commands<ReturnType> {
1494
+ search: {
1495
+ setSearchTerm: (searchTerm: string) => ReturnType;
1496
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
1497
+ replace: () => ReturnType;
1498
+ replaceAll: () => ReturnType;
1499
+ goToPrevSearchResult: () => void;
1500
+ goToNextSearchResult: () => void;
1501
+ };
1502
+ }
1503
+ }
1504
+
1505
+
1502
1506
  declare module '@tiptap/core' {
1503
1507
  interface Commands<ReturnType> {
1504
1508
  columns: {
@@ -1515,13 +1519,9 @@ declare module '@tiptap/core' {
1515
1519
 
1516
1520
  declare module '@tiptap/core' {
1517
1521
  interface Commands<ReturnType> {
1518
- search: {
1519
- setSearchTerm: (searchTerm: string) => ReturnType;
1520
- setReplaceTerm: (replaceTerm: string) => ReturnType;
1521
- replace: () => ReturnType;
1522
- replaceAll: () => ReturnType;
1523
- goToPrevSearchResult: () => void;
1524
- goToNextSearchResult: () => void;
1522
+ tableCellBackground: {
1523
+ setTableCellBackground: (color: string) => ReturnType;
1524
+ unsetTableCellBackground: () => ReturnType;
1525
1525
  };
1526
1526
  }
1527
1527
  }
@@ -1529,8 +1529,17 @@ declare module '@tiptap/core' {
1529
1529
 
1530
1530
  declare module '@tiptap/core' {
1531
1531
  interface Commands<ReturnType> {
1532
- katex: {
1533
- setKatex: (arg?: IKatexAttrs) => ReturnType;
1532
+ videoUpload: {
1533
+ setVideoUpload: () => ReturnType;
1534
+ };
1535
+ }
1536
+ }
1537
+
1538
+
1539
+ declare module '@tiptap/core' {
1540
+ interface Commands<ReturnType> {
1541
+ painter: {
1542
+ setPainter: (marks: Mark[]) => ReturnType;
1534
1543
  };
1535
1544
  }
1536
1545
  }
@@ -1548,6 +1557,15 @@ declare module '@tiptap/core' {
1548
1557
  }
1549
1558
 
1550
1559
 
1560
+ declare module '@tiptap/core' {
1561
+ interface Commands<ReturnType> {
1562
+ katex: {
1563
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
1564
+ };
1565
+ }
1566
+ }
1567
+
1568
+
1551
1569
  declare module '@tiptap/core' {
1552
1570
  interface Commands<ReturnType> {
1553
1571
  exportWord: {
package/lib/index.d.ts CHANGED
@@ -25,8 +25,8 @@ import { ItalicOptions as ItalicOptions_2 } from '@tiptap/extension-italic';
25
25
  import { LinkOptions as LinkOptions_2 } from '@tiptap/extension-link';
26
26
  import { ListItemOptions } from '@tiptap/extension-list-item';
27
27
  import { Mark } from '@tiptap/core';
28
- import { Node as Node_2 } from '@tiptap/react';
29
- import { Node as Node_3 } from '@tiptap/core';
28
+ import { Node as Node_2 } from '@tiptap/core';
29
+ import { Node as Node_3 } from '@tiptap/react';
30
30
  import { OrderedListOptions as OrderedListOptions_2 } from '@tiptap/extension-ordered-list';
31
31
  import { ParagraphOptions } from '@tiptap/extension-paragraph';
32
32
  import { PlaceholderOptions } from '@tiptap/extension-placeholder';
@@ -153,7 +153,7 @@ export declare interface BaseKitOptions {
153
153
  selection: any | false;
154
154
  }
155
155
 
156
- export declare const Blockquote: Node_3<BlockquoteOptions, any>;
156
+ export declare const Blockquote: Node_2<BlockquoteOptions, any>;
157
157
 
158
158
  export declare interface BlockquoteOptions extends BlockquoteOptions_2, GeneralOptions<BlockquoteOptions> {
159
159
  }
@@ -249,7 +249,7 @@ declare interface BubbleMenuRenderProps {
249
249
  bubbleMenu: BubbleMenuProps;
250
250
  }
251
251
 
252
- export declare const BulletList: Node_3<BulletListOptions, any>;
252
+ export declare const BulletList: Node_2<BulletListOptions, any>;
253
253
 
254
254
  export declare interface BulletListOptions extends BulletListOptions_2, GeneralOptions<BulletListOptions> {
255
255
  }
@@ -309,7 +309,7 @@ declare interface ButtonViewReturnComponentSlots {
309
309
  [x: string]: () => any;
310
310
  }
311
311
 
312
- export declare const Clear: Node_3<ClearOptions, any>;
312
+ export declare const Clear: Node_2<ClearOptions, any>;
313
313
 
314
314
  export declare interface ClearOptions extends GeneralOptions<ClearOptions> {
315
315
  }
@@ -339,7 +339,7 @@ export declare interface ColorOptions extends ColorOptions_2, GeneralOptions<Col
339
339
  defaultColor?: string;
340
340
  }
341
341
 
342
- export declare const Column: Node_3<any, any>;
342
+ export declare const Column: Node_2<any, any>;
343
343
 
344
344
  export declare const ColumnActionButton: Extension<any, any>;
345
345
 
@@ -348,7 +348,7 @@ editor: Editor_2 | null;
348
348
  }>>;
349
349
  export default _default;
350
350
 
351
- export declare const Emoji: Node_3<any, any>;
351
+ export declare const Emoji: Node_2<any, any>;
352
352
 
353
353
  export declare const en: {
354
354
  'editor.remove': string;
@@ -500,9 +500,13 @@ export declare const en: {
500
500
  'editor.exportPdf.tooltip': string;
501
501
  'editor.exportWord.tooltip': string;
502
502
  'editor.importWrod.tooltip': string;
503
+ 'editor.textDirection.tooltip': string;
504
+ 'editor.textDirection.auto.tooltip': string;
505
+ 'editor.textDirection.ltr.tooltip': string;
506
+ 'editor.textDirection.rtl.tooltip': string;
503
507
  };
504
508
 
505
- export declare const Excalidraw: Node_3<any, any>;
509
+ export declare const Excalidraw: Node_2<any, any>;
506
510
 
507
511
  export declare const ExportPdf: Extension<any, any>;
508
512
 
@@ -560,7 +564,7 @@ declare interface GeneralOptions<T> {
560
564
  toolbar?: boolean;
561
565
  }
562
566
 
563
- export declare const Heading: Node_3<HeadingOptions, any>;
567
+ export declare const Heading: Node_2<HeadingOptions, any>;
564
568
 
565
569
  export declare interface HeadingOptions extends HeadingOptions_2, GeneralOptions<HeadingOptions> {
566
570
  }
@@ -577,21 +581,21 @@ export { History_2 as History }
577
581
  export declare interface HistoryOptions extends HistoryOptions_2, GeneralOptions<HistoryOptions> {
578
582
  }
579
583
 
580
- export declare const HorizontalRule: Node_3<HorizontalRuleOptions, any>;
584
+ export declare const HorizontalRule: Node_2<HorizontalRuleOptions, any>;
581
585
 
582
586
  export declare interface HorizontalRuleOptions extends HorizontalRuleOptions_2, GeneralOptions<HorizontalRuleOptions> {
583
587
  }
584
588
 
585
- export declare const Iframe: Node_3<any, any>;
589
+ export declare const Iframe: Node_2<any, any>;
586
590
 
587
591
  declare interface IKatexOptions {
588
592
  HTMLAttributes: Record<string, any>;
589
593
  }
590
594
 
591
- declare const Image_2: Node_3<ImageOptions, any>;
595
+ declare const Image_2: Node_2<ImageOptions, any>;
592
596
  export { Image_2 as Image }
593
597
 
594
- export declare const ImageUpload: Node_2<ImageUploadOptions, any>;
598
+ export declare const ImageUpload: Node_3<ImageUploadOptions, any>;
595
599
 
596
600
  export declare interface ImageUploadOptions {
597
601
  upload: (file: File) => Promise<string>;
@@ -623,7 +627,7 @@ export declare const Italic: Mark<ItalicOptions, any>;
623
627
  export declare interface ItalicOptions extends ItalicOptions_2, GeneralOptions<ItalicOptions> {
624
628
  }
625
629
 
626
- export declare const Katex: Node_3<IKatexOptions, any>;
630
+ export declare const Katex: Node_2<IKatexOptions, any>;
627
631
 
628
632
  declare type LanguageType = 'en' | 'vi' | 'zh_CN' | 'pt_BR' | (string & {});
629
633
 
@@ -678,7 +682,7 @@ export declare interface MoreMarkOptions extends GeneralOptions<MoreMarkOptions>
678
682
  superscript: Partial<SuperscriptExtensionOptions> | false;
679
683
  }
680
684
 
681
- export declare const MultiColumn: Node_3<any, any>;
685
+ export declare const MultiColumn: Node_2<any, any>;
682
686
 
683
687
  declare interface NameValueOption<T = string> {
684
688
  name: string;
@@ -689,7 +693,7 @@ declare interface Options {
689
693
  onHasOneBeforeInsert?: () => void;
690
694
  }
691
695
 
692
- export declare const OrderedList: Node_3<OrderedListOptions, any>;
696
+ export declare const OrderedList: Node_2<OrderedListOptions, any>;
693
697
 
694
698
  export declare interface OrderedListOptions extends OrderedListOptions_2, GeneralOptions<OrderedListOptions> {
695
699
  }
@@ -844,6 +848,10 @@ export declare const pt_BR: {
844
848
  'editor.exportPdf.tooltip': string;
845
849
  'editor.exportWord.tooltip': string;
846
850
  'editor.importWrod.tooltip': string;
851
+ 'editor.textDirection.tooltip': string;
852
+ 'editor.textDirection.auto.tooltip': string;
853
+ 'editor.textDirection.ltr.tooltip': string;
854
+ 'editor.textDirection.rtl.tooltip': string;
847
855
  };
848
856
 
849
857
  declare interface Result {
@@ -955,14 +963,14 @@ export declare interface SubAndSuperScriptOptions extends GeneralOptions<SubAndS
955
963
  superscript: Partial<SuperscriptExtensionOptions> | false;
956
964
  }
957
965
 
958
- export declare const Table: Node_3<TableOptions, any>;
966
+ export declare const Table: Node_2<TableOptions, any>;
959
967
 
960
968
  declare interface TableCellBackgroundOptions {
961
969
  HTMLAttributes: Record<string, any>;
962
970
  types?: any;
963
971
  }
964
972
 
965
- export declare const TableOfContents: Node_3<Options, any>;
973
+ export declare const TableOfContents: Node_2<Options, any>;
966
974
 
967
975
  export declare interface TableOptions extends GeneralOptions<TableOptions> {
968
976
  HTMLAttributes: Record<string, any>;
@@ -981,7 +989,7 @@ export declare interface TableOptions extends GeneralOptions<TableOptions> {
981
989
  tableCellBackground: Partial<TableCellBackgroundOptions>;
982
990
  }
983
991
 
984
- export declare const TaskList: Node_3<TaskListOptions, any>;
992
+ export declare const TaskList: Node_2<TaskListOptions, any>;
985
993
 
986
994
  /**
987
995
  * Represents the interface for task list options, extending TiptapTaskListOptions and GeneralOptions.
@@ -1008,6 +1016,8 @@ export declare interface TextAlignOptions extends TextAlignOptions_2, GeneralOpt
1008
1016
  declare interface TextBubbleOptions extends GeneralOptions<TextBubbleOptions> {
1009
1017
  }
1010
1018
 
1019
+ export declare const TextDirection: Extension<any, any>;
1020
+
1011
1021
  /**
1012
1022
  * Extension based on:
1013
1023
  * - https://github.com/ueberdosis/tiptap/blob/v1/packages/tiptap-extensions/src/extensions/TrailingNode.js
@@ -1173,9 +1183,13 @@ export declare const vi: {
1173
1183
  'editor.exportPdf.tooltip': string;
1174
1184
  'editor.exportWord.tooltip': string;
1175
1185
  'editor.importWrod.tooltip': string;
1186
+ 'editor.textDirection.tooltip': string;
1187
+ 'editor.textDirection.auto.tooltip': string;
1188
+ 'editor.textDirection.ltr.tooltip': string;
1189
+ 'editor.textDirection.rtl.tooltip': string;
1176
1190
  };
1177
1191
 
1178
- export declare const Video: Node_3<VideoOptions, any>;
1192
+ export declare const Video: Node_2<VideoOptions, any>;
1179
1193
 
1180
1194
  /**
1181
1195
  * Represents the interface for video options, extending GeneralOptions.
@@ -1210,7 +1224,7 @@ declare interface VideoOptions_2 {
1210
1224
  upload?: (files: File[]) => void;
1211
1225
  }
1212
1226
 
1213
- export declare const VideoUpload: Node_3<VideoOptions_2, any>;
1227
+ export declare const VideoUpload: Node_2<VideoOptions_2, any>;
1214
1228
 
1215
1229
  export declare const zh_CN: {
1216
1230
  'editor.remove': string;
@@ -1362,6 +1376,10 @@ export declare const zh_CN: {
1362
1376
  'editor.exportPdf.tooltip': string;
1363
1377
  'editor.exportWord.tooltip': string;
1364
1378
  'editor.importWrod.tooltip': string;
1379
+ 'editor.textDirection.tooltip': string;
1380
+ 'editor.textDirection.auto.tooltip': string;
1381
+ 'editor.textDirection.ltr.tooltip': string;
1382
+ 'editor.textDirection.rtl.tooltip': string;
1365
1383
  };
1366
1384
 
1367
1385
  export { }
@@ -1417,26 +1435,6 @@ declare module '@tiptap/core' {
1417
1435
  }
1418
1436
 
1419
1437
 
1420
- declare module '@tiptap/core' {
1421
- interface Commands<ReturnType> {
1422
- imageResize: {
1423
- /**
1424
- * Add an image
1425
- */
1426
- setImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1427
- /**
1428
- * Update an image
1429
- */
1430
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1431
- /**
1432
- * Set image alignment
1433
- */
1434
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
1435
- };
1436
- }
1437
- }
1438
-
1439
-
1440
1438
  declare module '@tiptap/core' {
1441
1439
  interface Commands<ReturnType> {
1442
1440
  imageUpload: {
@@ -1458,27 +1456,19 @@ declare module '@tiptap/core' {
1458
1456
 
1459
1457
  declare module '@tiptap/core' {
1460
1458
  interface Commands<ReturnType> {
1461
- videoUpload: {
1462
- setVideoUpload: () => ReturnType;
1463
- };
1464
- }
1465
- }
1466
-
1467
-
1468
- declare module '@tiptap/core' {
1469
- interface Commands<ReturnType> {
1470
- painter: {
1471
- setPainter: (marks: Mark[]) => ReturnType;
1472
- };
1473
- }
1474
- }
1475
-
1476
-
1477
- declare module '@tiptap/core' {
1478
- interface Commands<ReturnType> {
1479
- tableCellBackground: {
1480
- setTableCellBackground: (color: string) => ReturnType;
1481
- unsetTableCellBackground: () => ReturnType;
1459
+ imageResize: {
1460
+ /**
1461
+ * Add an image
1462
+ */
1463
+ setImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1464
+ /**
1465
+ * Update an image
1466
+ */
1467
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1468
+ /**
1469
+ * Set image alignment
1470
+ */
1471
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
1482
1472
  };
1483
1473
  }
1484
1474
  }
@@ -1499,6 +1489,20 @@ declare module '@tiptap/core' {
1499
1489
  }
1500
1490
 
1501
1491
 
1492
+ declare module '@tiptap/core' {
1493
+ interface Commands<ReturnType> {
1494
+ search: {
1495
+ setSearchTerm: (searchTerm: string) => ReturnType;
1496
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
1497
+ replace: () => ReturnType;
1498
+ replaceAll: () => ReturnType;
1499
+ goToPrevSearchResult: () => void;
1500
+ goToNextSearchResult: () => void;
1501
+ };
1502
+ }
1503
+ }
1504
+
1505
+
1502
1506
  declare module '@tiptap/core' {
1503
1507
  interface Commands<ReturnType> {
1504
1508
  columns: {
@@ -1515,13 +1519,9 @@ declare module '@tiptap/core' {
1515
1519
 
1516
1520
  declare module '@tiptap/core' {
1517
1521
  interface Commands<ReturnType> {
1518
- search: {
1519
- setSearchTerm: (searchTerm: string) => ReturnType;
1520
- setReplaceTerm: (replaceTerm: string) => ReturnType;
1521
- replace: () => ReturnType;
1522
- replaceAll: () => ReturnType;
1523
- goToPrevSearchResult: () => void;
1524
- goToNextSearchResult: () => void;
1522
+ tableCellBackground: {
1523
+ setTableCellBackground: (color: string) => ReturnType;
1524
+ unsetTableCellBackground: () => ReturnType;
1525
1525
  };
1526
1526
  }
1527
1527
  }
@@ -1529,8 +1529,17 @@ declare module '@tiptap/core' {
1529
1529
 
1530
1530
  declare module '@tiptap/core' {
1531
1531
  interface Commands<ReturnType> {
1532
- katex: {
1533
- setKatex: (arg?: IKatexAttrs) => ReturnType;
1532
+ videoUpload: {
1533
+ setVideoUpload: () => ReturnType;
1534
+ };
1535
+ }
1536
+ }
1537
+
1538
+
1539
+ declare module '@tiptap/core' {
1540
+ interface Commands<ReturnType> {
1541
+ painter: {
1542
+ setPainter: (marks: Mark[]) => ReturnType;
1534
1543
  };
1535
1544
  }
1536
1545
  }
@@ -1548,6 +1557,15 @@ declare module '@tiptap/core' {
1548
1557
  }
1549
1558
 
1550
1559
 
1560
+ declare module '@tiptap/core' {
1561
+ interface Commands<ReturnType> {
1562
+ katex: {
1563
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
1564
+ };
1565
+ }
1566
+ }
1567
+
1568
+
1551
1569
  declare module '@tiptap/core' {
1552
1570
  interface Commands<ReturnType> {
1553
1571
  exportWord: {