reactjs-tiptap-editor 0.0.33 → 0.0.35

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
@@ -625,7 +625,7 @@ export declare interface ItalicOptions extends ItalicOptions_2, GeneralOptions<I
625
625
 
626
626
  export declare const Katex: Node_3<IKatexOptions, any>;
627
627
 
628
- declare type LanguageType = 'en' | 'vi' | 'zh_CN' | string;
628
+ declare type LanguageType = 'en' | 'vi' | 'zh_CN' | 'pt_BR' | (string & {});
629
629
 
630
630
  export declare const LineHeight: Extension<LineHeightOptions, any>;
631
631
 
@@ -694,6 +694,158 @@ export declare const OrderedList: Node_3<OrderedListOptions, any>;
694
694
  export declare interface OrderedListOptions extends OrderedListOptions_2, GeneralOptions<OrderedListOptions> {
695
695
  }
696
696
 
697
+ export declare const pt_BR: {
698
+ 'editor.remove': string;
699
+ 'editor.copy': string;
700
+ 'editor.words': string;
701
+ 'editor.characters': string;
702
+ 'editor.default': string;
703
+ 'editor.recent': string;
704
+ 'editor.nofill': string;
705
+ 'editor.format': string;
706
+ 'editor.delete': string;
707
+ 'editor.edit': string;
708
+ 'editor.settings': string;
709
+ 'editor.table_of_content': string;
710
+ 'editor.draghandle.tooltip': string;
711
+ 'editor.copyToClipboard': string;
712
+ 'editor.importWord.tooltip': string;
713
+ 'editor.slash': string;
714
+ 'editor.slash.empty': string;
715
+ 'editor.slash.format': string;
716
+ 'editor.slash.insert': string;
717
+ 'editor.slash.embed': string;
718
+ 'editor.content': string;
719
+ 'editor.fontFamily.tooltip': string;
720
+ 'editor.fontFamily.default.tooltip': string;
721
+ 'editor.moremark': string;
722
+ 'editor.size.small.tooltip': string;
723
+ 'editor.size.medium.tooltip': string;
724
+ 'editor.size.large.tooltip': string;
725
+ 'editor.bold.tooltip': string;
726
+ 'editor.italic.tooltip': string;
727
+ 'editor.underline.tooltip': string;
728
+ 'editor.strike.tooltip': string;
729
+ 'editor.color.tooltip': string;
730
+ 'editor.color.more': string;
731
+ 'editor.highlight.tooltip': string;
732
+ 'editor.lineheight.tooltip': string;
733
+ 'editor.heading.tooltip': string;
734
+ 'editor.heading.h1.tooltip': string;
735
+ 'editor.heading.h2.tooltip': string;
736
+ 'editor.heading.h3.tooltip': string;
737
+ 'editor.heading.h4.tooltip': string;
738
+ 'editor.heading.h5.tooltip': string;
739
+ 'editor.heading.h6.tooltip': string;
740
+ 'editor.paragraph.tooltip': string;
741
+ 'editor.textalign.tooltip': string;
742
+ 'editor.textalign.left.tooltip': string;
743
+ 'editor.textalign.center.tooltip': string;
744
+ 'editor.textalign.right.tooltip': string;
745
+ 'editor.textalign.justify.tooltip': string;
746
+ 'editor.indent': string;
747
+ 'editor.indent.indent': string;
748
+ 'editor.indent.outdent': string;
749
+ 'editor.fontSize.tooltip': string;
750
+ 'editor.fontSize.default.tooltip': string;
751
+ 'editor.superscript.tooltip': string;
752
+ 'editor.subscript.tooltip': string;
753
+ 'editor.bulletlist.tooltip': string;
754
+ 'editor.orderedlist.tooltip': string;
755
+ 'editor.tasklist.tooltip': string;
756
+ 'editor.indent.tooltip': string;
757
+ 'editor.outdent.tooltip': string;
758
+ 'editor.columns.tooltip': string;
759
+ 'editor.link.tooltip': string;
760
+ 'editor.link.unlink.tooltip': string;
761
+ 'editor.link.open.tooltip': string;
762
+ 'editor.link.edit.tooltip': string;
763
+ 'editor.link.dialog.title': string;
764
+ 'editor.link.dialog.link': string;
765
+ 'editor.link.dialog.text': string;
766
+ 'editor.link.dialog.openInNewTab': string;
767
+ 'editor.link.dialog.link.placeholder': string;
768
+ 'editor.link.dialog.text.placeholder': string;
769
+ 'editor.link.dialog.button.apply': string;
770
+ 'editor.image.tooltip': string;
771
+ 'editor.image.dragger.tooltip': string;
772
+ 'editor.image.float.left.tooltip': string;
773
+ 'editor.image.float.none.tooltip': string;
774
+ 'editor.image.float.right.tooltip': string;
775
+ 'editor.image.dialog.title': string;
776
+ 'editor.image.dialog.tab.url': string;
777
+ 'editor.image.dialog.tab.upload': string;
778
+ 'editor.image.dialog.uploading': string;
779
+ 'editor.image.dialog.form.link': string;
780
+ 'editor.image.dialog.placeholder': string;
781
+ 'editor.image.dialog.form.alt': string;
782
+ 'editor.image.dialog.form.aspectRatio': string;
783
+ 'editor.image.dialog.form.file': string;
784
+ 'editor.image.dialog.button.apply': string;
785
+ 'editor.video.tooltip': string;
786
+ 'editor.video.dialog.tab.upload': string;
787
+ 'editor.video.dialog.uploading': string;
788
+ 'editor.video.dialog.title': string;
789
+ 'editor.video.dialog.link': string;
790
+ 'editor.video.dialog.placeholder': string;
791
+ 'editor.video.dialog.button.apply': string;
792
+ 'editor.table.tooltip': string;
793
+ 'editor.table.menu.insert_table': string;
794
+ 'editor.table.menu.insert_table.with_header_row': string;
795
+ 'editor.table.menu.add_column_before': string;
796
+ 'editor.table.menu.add_column_after': string;
797
+ 'editor.table.menu.delete_column': string;
798
+ 'editor.table.menu.add_row_before': string;
799
+ 'editor.table.menu.add_row_after': string;
800
+ 'editor.table.menu.delete_row': string;
801
+ 'editor.table.menu.merge_or_split_cells': string;
802
+ 'editor.table.menu.delete_table': string;
803
+ 'editor.blockquote.tooltip': string;
804
+ 'editor.horizontalrule.tooltip': string;
805
+ 'editor.code.tooltip': string;
806
+ 'editor.codeblock.tooltip': string;
807
+ 'editor.clear.tooltip': string;
808
+ 'editor.undo.tooltip': string;
809
+ 'editor.redo.tooltip': string;
810
+ 'editor.fullscreen.tooltip.fullscreen': string;
811
+ 'editor.fullscreen.tooltip.exit': string;
812
+ 'editor.imageUpload.fileTypeNotSupported': string;
813
+ 'editor.imageUpload.fileSizeTooBig': string;
814
+ 'editor.table.menu.insertColumnBefore': string;
815
+ 'editor.table.menu.insertColumnAfter': string;
816
+ 'editor.table.menu.deleteColumn': string;
817
+ 'editor.table.menu.insertRowAbove': string;
818
+ 'editor.table.menu.insertRowBelow': string;
819
+ 'editor.table.menu.deleteRow': string;
820
+ 'editor.table.menu.mergeCells': string;
821
+ 'editor.table.menu.splitCells': string;
822
+ 'editor.table.menu.deleteTable': string;
823
+ 'editor.table.menu.setCellsBgColor': string;
824
+ 'editor.emoji.tooltip': string;
825
+ 'editor.iframe.tooltip': string;
826
+ 'editor.searchAndReplace.tooltip': string;
827
+ 'editor.search.dialog.text': string;
828
+ 'editor.replace.dialog.text': string;
829
+ 'editor.replaceAll.dialog.text': string;
830
+ 'editor.previous.dialog.text': string;
831
+ 'editor.next.dialog.text': string;
832
+ no_result_found: string;
833
+ 'Smileys & People': string;
834
+ 'Animals & Nature': string;
835
+ 'Food & Drink': string;
836
+ Activity: string;
837
+ 'Travel & Places': string;
838
+ Object: string;
839
+ Symbol: string;
840
+ Flags: string;
841
+ 'Frequently used': string;
842
+ 'editor.formula.dialog.text': string;
843
+ 'editor.katex.tooltip': string;
844
+ 'editor.exportPdf.tooltip': string;
845
+ 'editor.exportWord.tooltip': string;
846
+ 'editor.importWrod.tooltip': string;
847
+ };
848
+
697
849
  declare interface Result {
698
850
  from: number;
699
851
  to: number;
@@ -772,6 +924,8 @@ export declare interface SetImageAttrsOptions {
772
924
  title?: string;
773
925
  /** The width of the image. */
774
926
  width?: number | string | null;
927
+ /** The alignment of the image. */
928
+ align?: 'left' | 'center' | 'right';
775
929
  }
776
930
 
777
931
  export declare const SlashCommand: Extension<any, any>;
@@ -1263,25 +1417,6 @@ declare module '@tiptap/core' {
1263
1417
  }
1264
1418
 
1265
1419
 
1266
- declare module '@tiptap/core' {
1267
- interface Commands<ReturnType> {
1268
- lineHeight: {
1269
- setLineHeight: (lineHeight: string) => ReturnType;
1270
- unsetLineHeight: () => ReturnType;
1271
- };
1272
- }
1273
- }
1274
-
1275
-
1276
- declare module '@tiptap/core' {
1277
- interface Commands<ReturnType> {
1278
- imageUpload: {
1279
- setImageUpload: () => ReturnType;
1280
- };
1281
- }
1282
- }
1283
-
1284
-
1285
1420
  declare module '@tiptap/core' {
1286
1421
  interface Commands<ReturnType> {
1287
1422
  imageResize: {
@@ -1293,6 +1428,10 @@ declare module '@tiptap/core' {
1293
1428
  * Update an image
1294
1429
  */
1295
1430
  updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1431
+ /**
1432
+ * Set image alignment
1433
+ */
1434
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
1296
1435
  };
1297
1436
  }
1298
1437
  }
@@ -1300,13 +1439,8 @@ declare module '@tiptap/core' {
1300
1439
 
1301
1440
  declare module '@tiptap/core' {
1302
1441
  interface Commands<ReturnType> {
1303
- columns: {
1304
- insertColumns: (attrs?: {
1305
- cols: number;
1306
- }) => ReturnType;
1307
- addColBefore: () => ReturnType;
1308
- addColAfter: () => ReturnType;
1309
- deleteCol: () => ReturnType;
1442
+ imageUpload: {
1443
+ setImageUpload: () => ReturnType;
1310
1444
  };
1311
1445
  }
1312
1446
  }
@@ -1314,8 +1448,8 @@ declare module '@tiptap/core' {
1314
1448
 
1315
1449
  declare module '@tiptap/core' {
1316
1450
  interface Commands<ReturnType> {
1317
- painter: {
1318
- setPainter: (marks: Mark[]) => ReturnType;
1451
+ videoUpload: {
1452
+ setVideoUpload: () => ReturnType;
1319
1453
  };
1320
1454
  }
1321
1455
  }
@@ -1323,8 +1457,23 @@ declare module '@tiptap/core' {
1323
1457
 
1324
1458
  declare module '@tiptap/core' {
1325
1459
  interface Commands<ReturnType> {
1326
- videoUpload: {
1327
- setVideoUpload: () => ReturnType;
1460
+ lineHeight: {
1461
+ setLineHeight: (lineHeight: string) => ReturnType;
1462
+ unsetLineHeight: () => ReturnType;
1463
+ };
1464
+ }
1465
+ }
1466
+
1467
+
1468
+ declare module '@tiptap/core' {
1469
+ interface Commands<ReturnType> {
1470
+ columns: {
1471
+ insertColumns: (attrs?: {
1472
+ cols: number;
1473
+ }) => ReturnType;
1474
+ addColBefore: () => ReturnType;
1475
+ addColAfter: () => ReturnType;
1476
+ deleteCol: () => ReturnType;
1328
1477
  };
1329
1478
  }
1330
1479
  }
@@ -1354,6 +1503,15 @@ declare module '@tiptap/core' {
1354
1503
  }
1355
1504
 
1356
1505
 
1506
+ declare module '@tiptap/core' {
1507
+ interface Commands<ReturnType> {
1508
+ katex: {
1509
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
1510
+ };
1511
+ }
1512
+ }
1513
+
1514
+
1357
1515
  declare module '@tiptap/core' {
1358
1516
  interface Commands<ReturnType> {
1359
1517
  iframe: {
@@ -1371,8 +1529,11 @@ declare module '@tiptap/core' {
1371
1529
 
1372
1530
  declare module '@tiptap/core' {
1373
1531
  interface Commands<ReturnType> {
1374
- katex: {
1375
- setKatex: (arg?: IKatexAttrs) => ReturnType;
1532
+ emoji: {
1533
+ setEmoji: (emoji: {
1534
+ name: string;
1535
+ emoji: string;
1536
+ }) => ReturnType;
1376
1537
  };
1377
1538
  }
1378
1539
  }
@@ -1380,11 +1541,8 @@ declare module '@tiptap/core' {
1380
1541
 
1381
1542
  declare module '@tiptap/core' {
1382
1543
  interface Commands<ReturnType> {
1383
- emoji: {
1384
- setEmoji: (emoji: {
1385
- name: string;
1386
- emoji: string;
1387
- }) => ReturnType;
1544
+ painter: {
1545
+ setPainter: (marks: Mark[]) => ReturnType;
1388
1546
  };
1389
1547
  }
1390
1548
  }
package/lib/index.d.ts CHANGED
@@ -625,7 +625,7 @@ export declare interface ItalicOptions extends ItalicOptions_2, GeneralOptions<I
625
625
 
626
626
  export declare const Katex: Node_3<IKatexOptions, any>;
627
627
 
628
- declare type LanguageType = 'en' | 'vi' | 'zh_CN' | string;
628
+ declare type LanguageType = 'en' | 'vi' | 'zh_CN' | 'pt_BR' | (string & {});
629
629
 
630
630
  export declare const LineHeight: Extension<LineHeightOptions, any>;
631
631
 
@@ -694,6 +694,158 @@ export declare const OrderedList: Node_3<OrderedListOptions, any>;
694
694
  export declare interface OrderedListOptions extends OrderedListOptions_2, GeneralOptions<OrderedListOptions> {
695
695
  }
696
696
 
697
+ export declare const pt_BR: {
698
+ 'editor.remove': string;
699
+ 'editor.copy': string;
700
+ 'editor.words': string;
701
+ 'editor.characters': string;
702
+ 'editor.default': string;
703
+ 'editor.recent': string;
704
+ 'editor.nofill': string;
705
+ 'editor.format': string;
706
+ 'editor.delete': string;
707
+ 'editor.edit': string;
708
+ 'editor.settings': string;
709
+ 'editor.table_of_content': string;
710
+ 'editor.draghandle.tooltip': string;
711
+ 'editor.copyToClipboard': string;
712
+ 'editor.importWord.tooltip': string;
713
+ 'editor.slash': string;
714
+ 'editor.slash.empty': string;
715
+ 'editor.slash.format': string;
716
+ 'editor.slash.insert': string;
717
+ 'editor.slash.embed': string;
718
+ 'editor.content': string;
719
+ 'editor.fontFamily.tooltip': string;
720
+ 'editor.fontFamily.default.tooltip': string;
721
+ 'editor.moremark': string;
722
+ 'editor.size.small.tooltip': string;
723
+ 'editor.size.medium.tooltip': string;
724
+ 'editor.size.large.tooltip': string;
725
+ 'editor.bold.tooltip': string;
726
+ 'editor.italic.tooltip': string;
727
+ 'editor.underline.tooltip': string;
728
+ 'editor.strike.tooltip': string;
729
+ 'editor.color.tooltip': string;
730
+ 'editor.color.more': string;
731
+ 'editor.highlight.tooltip': string;
732
+ 'editor.lineheight.tooltip': string;
733
+ 'editor.heading.tooltip': string;
734
+ 'editor.heading.h1.tooltip': string;
735
+ 'editor.heading.h2.tooltip': string;
736
+ 'editor.heading.h3.tooltip': string;
737
+ 'editor.heading.h4.tooltip': string;
738
+ 'editor.heading.h5.tooltip': string;
739
+ 'editor.heading.h6.tooltip': string;
740
+ 'editor.paragraph.tooltip': string;
741
+ 'editor.textalign.tooltip': string;
742
+ 'editor.textalign.left.tooltip': string;
743
+ 'editor.textalign.center.tooltip': string;
744
+ 'editor.textalign.right.tooltip': string;
745
+ 'editor.textalign.justify.tooltip': string;
746
+ 'editor.indent': string;
747
+ 'editor.indent.indent': string;
748
+ 'editor.indent.outdent': string;
749
+ 'editor.fontSize.tooltip': string;
750
+ 'editor.fontSize.default.tooltip': string;
751
+ 'editor.superscript.tooltip': string;
752
+ 'editor.subscript.tooltip': string;
753
+ 'editor.bulletlist.tooltip': string;
754
+ 'editor.orderedlist.tooltip': string;
755
+ 'editor.tasklist.tooltip': string;
756
+ 'editor.indent.tooltip': string;
757
+ 'editor.outdent.tooltip': string;
758
+ 'editor.columns.tooltip': string;
759
+ 'editor.link.tooltip': string;
760
+ 'editor.link.unlink.tooltip': string;
761
+ 'editor.link.open.tooltip': string;
762
+ 'editor.link.edit.tooltip': string;
763
+ 'editor.link.dialog.title': string;
764
+ 'editor.link.dialog.link': string;
765
+ 'editor.link.dialog.text': string;
766
+ 'editor.link.dialog.openInNewTab': string;
767
+ 'editor.link.dialog.link.placeholder': string;
768
+ 'editor.link.dialog.text.placeholder': string;
769
+ 'editor.link.dialog.button.apply': string;
770
+ 'editor.image.tooltip': string;
771
+ 'editor.image.dragger.tooltip': string;
772
+ 'editor.image.float.left.tooltip': string;
773
+ 'editor.image.float.none.tooltip': string;
774
+ 'editor.image.float.right.tooltip': string;
775
+ 'editor.image.dialog.title': string;
776
+ 'editor.image.dialog.tab.url': string;
777
+ 'editor.image.dialog.tab.upload': string;
778
+ 'editor.image.dialog.uploading': string;
779
+ 'editor.image.dialog.form.link': string;
780
+ 'editor.image.dialog.placeholder': string;
781
+ 'editor.image.dialog.form.alt': string;
782
+ 'editor.image.dialog.form.aspectRatio': string;
783
+ 'editor.image.dialog.form.file': string;
784
+ 'editor.image.dialog.button.apply': string;
785
+ 'editor.video.tooltip': string;
786
+ 'editor.video.dialog.tab.upload': string;
787
+ 'editor.video.dialog.uploading': string;
788
+ 'editor.video.dialog.title': string;
789
+ 'editor.video.dialog.link': string;
790
+ 'editor.video.dialog.placeholder': string;
791
+ 'editor.video.dialog.button.apply': string;
792
+ 'editor.table.tooltip': string;
793
+ 'editor.table.menu.insert_table': string;
794
+ 'editor.table.menu.insert_table.with_header_row': string;
795
+ 'editor.table.menu.add_column_before': string;
796
+ 'editor.table.menu.add_column_after': string;
797
+ 'editor.table.menu.delete_column': string;
798
+ 'editor.table.menu.add_row_before': string;
799
+ 'editor.table.menu.add_row_after': string;
800
+ 'editor.table.menu.delete_row': string;
801
+ 'editor.table.menu.merge_or_split_cells': string;
802
+ 'editor.table.menu.delete_table': string;
803
+ 'editor.blockquote.tooltip': string;
804
+ 'editor.horizontalrule.tooltip': string;
805
+ 'editor.code.tooltip': string;
806
+ 'editor.codeblock.tooltip': string;
807
+ 'editor.clear.tooltip': string;
808
+ 'editor.undo.tooltip': string;
809
+ 'editor.redo.tooltip': string;
810
+ 'editor.fullscreen.tooltip.fullscreen': string;
811
+ 'editor.fullscreen.tooltip.exit': string;
812
+ 'editor.imageUpload.fileTypeNotSupported': string;
813
+ 'editor.imageUpload.fileSizeTooBig': string;
814
+ 'editor.table.menu.insertColumnBefore': string;
815
+ 'editor.table.menu.insertColumnAfter': string;
816
+ 'editor.table.menu.deleteColumn': string;
817
+ 'editor.table.menu.insertRowAbove': string;
818
+ 'editor.table.menu.insertRowBelow': string;
819
+ 'editor.table.menu.deleteRow': string;
820
+ 'editor.table.menu.mergeCells': string;
821
+ 'editor.table.menu.splitCells': string;
822
+ 'editor.table.menu.deleteTable': string;
823
+ 'editor.table.menu.setCellsBgColor': string;
824
+ 'editor.emoji.tooltip': string;
825
+ 'editor.iframe.tooltip': string;
826
+ 'editor.searchAndReplace.tooltip': string;
827
+ 'editor.search.dialog.text': string;
828
+ 'editor.replace.dialog.text': string;
829
+ 'editor.replaceAll.dialog.text': string;
830
+ 'editor.previous.dialog.text': string;
831
+ 'editor.next.dialog.text': string;
832
+ no_result_found: string;
833
+ 'Smileys & People': string;
834
+ 'Animals & Nature': string;
835
+ 'Food & Drink': string;
836
+ Activity: string;
837
+ 'Travel & Places': string;
838
+ Object: string;
839
+ Symbol: string;
840
+ Flags: string;
841
+ 'Frequently used': string;
842
+ 'editor.formula.dialog.text': string;
843
+ 'editor.katex.tooltip': string;
844
+ 'editor.exportPdf.tooltip': string;
845
+ 'editor.exportWord.tooltip': string;
846
+ 'editor.importWrod.tooltip': string;
847
+ };
848
+
697
849
  declare interface Result {
698
850
  from: number;
699
851
  to: number;
@@ -772,6 +924,8 @@ export declare interface SetImageAttrsOptions {
772
924
  title?: string;
773
925
  /** The width of the image. */
774
926
  width?: number | string | null;
927
+ /** The alignment of the image. */
928
+ align?: 'left' | 'center' | 'right';
775
929
  }
776
930
 
777
931
  export declare const SlashCommand: Extension<any, any>;
@@ -1263,25 +1417,6 @@ declare module '@tiptap/core' {
1263
1417
  }
1264
1418
 
1265
1419
 
1266
- declare module '@tiptap/core' {
1267
- interface Commands<ReturnType> {
1268
- lineHeight: {
1269
- setLineHeight: (lineHeight: string) => ReturnType;
1270
- unsetLineHeight: () => ReturnType;
1271
- };
1272
- }
1273
- }
1274
-
1275
-
1276
- declare module '@tiptap/core' {
1277
- interface Commands<ReturnType> {
1278
- imageUpload: {
1279
- setImageUpload: () => ReturnType;
1280
- };
1281
- }
1282
- }
1283
-
1284
-
1285
1420
  declare module '@tiptap/core' {
1286
1421
  interface Commands<ReturnType> {
1287
1422
  imageResize: {
@@ -1293,6 +1428,10 @@ declare module '@tiptap/core' {
1293
1428
  * Update an image
1294
1429
  */
1295
1430
  updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1431
+ /**
1432
+ * Set image alignment
1433
+ */
1434
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
1296
1435
  };
1297
1436
  }
1298
1437
  }
@@ -1300,13 +1439,8 @@ declare module '@tiptap/core' {
1300
1439
 
1301
1440
  declare module '@tiptap/core' {
1302
1441
  interface Commands<ReturnType> {
1303
- columns: {
1304
- insertColumns: (attrs?: {
1305
- cols: number;
1306
- }) => ReturnType;
1307
- addColBefore: () => ReturnType;
1308
- addColAfter: () => ReturnType;
1309
- deleteCol: () => ReturnType;
1442
+ imageUpload: {
1443
+ setImageUpload: () => ReturnType;
1310
1444
  };
1311
1445
  }
1312
1446
  }
@@ -1314,8 +1448,8 @@ declare module '@tiptap/core' {
1314
1448
 
1315
1449
  declare module '@tiptap/core' {
1316
1450
  interface Commands<ReturnType> {
1317
- painter: {
1318
- setPainter: (marks: Mark[]) => ReturnType;
1451
+ videoUpload: {
1452
+ setVideoUpload: () => ReturnType;
1319
1453
  };
1320
1454
  }
1321
1455
  }
@@ -1323,8 +1457,23 @@ declare module '@tiptap/core' {
1323
1457
 
1324
1458
  declare module '@tiptap/core' {
1325
1459
  interface Commands<ReturnType> {
1326
- videoUpload: {
1327
- setVideoUpload: () => ReturnType;
1460
+ lineHeight: {
1461
+ setLineHeight: (lineHeight: string) => ReturnType;
1462
+ unsetLineHeight: () => ReturnType;
1463
+ };
1464
+ }
1465
+ }
1466
+
1467
+
1468
+ declare module '@tiptap/core' {
1469
+ interface Commands<ReturnType> {
1470
+ columns: {
1471
+ insertColumns: (attrs?: {
1472
+ cols: number;
1473
+ }) => ReturnType;
1474
+ addColBefore: () => ReturnType;
1475
+ addColAfter: () => ReturnType;
1476
+ deleteCol: () => ReturnType;
1328
1477
  };
1329
1478
  }
1330
1479
  }
@@ -1354,6 +1503,15 @@ declare module '@tiptap/core' {
1354
1503
  }
1355
1504
 
1356
1505
 
1506
+ declare module '@tiptap/core' {
1507
+ interface Commands<ReturnType> {
1508
+ katex: {
1509
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
1510
+ };
1511
+ }
1512
+ }
1513
+
1514
+
1357
1515
  declare module '@tiptap/core' {
1358
1516
  interface Commands<ReturnType> {
1359
1517
  iframe: {
@@ -1371,8 +1529,11 @@ declare module '@tiptap/core' {
1371
1529
 
1372
1530
  declare module '@tiptap/core' {
1373
1531
  interface Commands<ReturnType> {
1374
- katex: {
1375
- setKatex: (arg?: IKatexAttrs) => ReturnType;
1532
+ emoji: {
1533
+ setEmoji: (emoji: {
1534
+ name: string;
1535
+ emoji: string;
1536
+ }) => ReturnType;
1376
1537
  };
1377
1538
  }
1378
1539
  }
@@ -1380,11 +1541,8 @@ declare module '@tiptap/core' {
1380
1541
 
1381
1542
  declare module '@tiptap/core' {
1382
1543
  interface Commands<ReturnType> {
1383
- emoji: {
1384
- setEmoji: (emoji: {
1385
- name: string;
1386
- emoji: string;
1387
- }) => ReturnType;
1544
+ painter: {
1545
+ setPainter: (marks: Mark[]) => ReturnType;
1388
1546
  };
1389
1547
  }
1390
1548
  }