reactjs-tiptap-editor-pro 0.2.25 → 0.2.26

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
@@ -291,9 +291,9 @@ declare module '@tiptap/core' {
291
291
 
292
292
  declare module '@tiptap/core' {
293
293
  interface Commands<ReturnType> {
294
- lineHeight: {
295
- setLineHeight: (lineHeight: string) => ReturnType;
296
- unsetLineHeight: () => ReturnType;
294
+ tableCellBackground: {
295
+ setTableCellBackground: (color: string) => ReturnType;
296
+ unsetTableCellBackground: () => ReturnType;
297
297
  };
298
298
  }
299
299
  }
@@ -337,9 +337,9 @@ declare module '@tiptap/core' {
337
337
 
338
338
  declare module '@tiptap/core' {
339
339
  interface Commands<ReturnType> {
340
- tableCellBackground: {
341
- setTableCellBackground: (color: string) => ReturnType;
342
- unsetTableCellBackground: () => ReturnType;
340
+ lineHeight: {
341
+ setLineHeight: (lineHeight: string) => ReturnType;
342
+ unsetLineHeight: () => ReturnType;
343
343
  };
344
344
  }
345
345
  }
@@ -362,13 +362,9 @@ declare module '@tiptap/core' {
362
362
 
363
363
  declare module '@tiptap/core' {
364
364
  interface Commands<ReturnType> {
365
- columns: {
366
- insertColumns: (attrs?: {
367
- cols: number;
368
- }) => ReturnType;
369
- addColBefore: () => ReturnType;
370
- addColAfter: () => ReturnType;
371
- deleteCol: () => ReturnType;
365
+ tableOfContents: {
366
+ setTableOfContents: () => ReturnType;
367
+ removeTableOfContents: () => ReturnType;
372
368
  };
373
369
  }
374
370
  }
@@ -376,8 +372,14 @@ declare module '@tiptap/core' {
376
372
 
377
373
  declare module '@tiptap/core' {
378
374
  interface Commands<ReturnType> {
379
- painter: {
380
- setPainter: (marks: Mark[]) => ReturnType;
375
+ iframe: {
376
+ /**
377
+ * Add an iframe
378
+ */
379
+ setIframe: (options: {
380
+ src: string;
381
+ service: string;
382
+ }) => ReturnType;
381
383
  };
382
384
  }
383
385
  }
@@ -385,8 +387,13 @@ declare module '@tiptap/core' {
385
387
 
386
388
  declare module '@tiptap/core' {
387
389
  interface Commands<ReturnType> {
388
- katex: {
389
- setKatex: (arg?: IKatexAttrs) => ReturnType;
390
+ columns: {
391
+ insertColumns: (attrs?: {
392
+ cols: number;
393
+ }) => ReturnType;
394
+ addColBefore: () => ReturnType;
395
+ addColAfter: () => ReturnType;
396
+ deleteCol: () => ReturnType;
390
397
  };
391
398
  }
392
399
  }
@@ -394,11 +401,8 @@ declare module '@tiptap/core' {
394
401
 
395
402
  declare module '@tiptap/core' {
396
403
  interface Commands<ReturnType> {
397
- emoji: {
398
- setEmoji: (emoji: {
399
- name: string;
400
- emoji: string;
401
- }) => ReturnType;
404
+ exportWord: {
405
+ exportToWord: () => ReturnType;
402
406
  };
403
407
  }
404
408
  }
@@ -406,14 +410,8 @@ declare module '@tiptap/core' {
406
410
 
407
411
  declare module '@tiptap/core' {
408
412
  interface Commands<ReturnType> {
409
- iframe: {
410
- /**
411
- * Add an iframe
412
- */
413
- setIframe: (options: {
414
- src: string;
415
- service: string;
416
- }) => ReturnType;
413
+ painter: {
414
+ setPainter: (marks: Mark[]) => ReturnType;
417
415
  };
418
416
  }
419
417
  }
@@ -421,8 +419,11 @@ declare module '@tiptap/core' {
421
419
 
422
420
  declare module '@tiptap/core' {
423
421
  interface Commands<ReturnType> {
424
- exportWord: {
425
- exportToWord: () => ReturnType;
422
+ emoji: {
423
+ setEmoji: (emoji: {
424
+ name: string;
425
+ emoji: string;
426
+ }) => ReturnType;
426
427
  };
427
428
  }
428
429
  }
@@ -430,9 +431,8 @@ declare module '@tiptap/core' {
430
431
 
431
432
  declare module '@tiptap/core' {
432
433
  interface Commands<ReturnType> {
433
- tableOfContents: {
434
- setTableOfContents: () => ReturnType;
435
- removeTableOfContents: () => ReturnType;
434
+ excalidraw: {
435
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
436
436
  };
437
437
  }
438
438
  }
@@ -440,8 +440,8 @@ declare module '@tiptap/core' {
440
440
 
441
441
  declare module '@tiptap/core' {
442
442
  interface Commands<ReturnType> {
443
- excalidraw: {
444
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
443
+ katex: {
444
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
445
445
  };
446
446
  }
447
447
  }
@@ -449,19 +449,8 @@ declare module '@tiptap/core' {
449
449
 
450
450
  declare module '@tiptap/core' {
451
451
  interface Commands<ReturnType> {
452
- imageGifUpload: {
453
- /**
454
- * Add an image gif
455
- */
456
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
457
- /**
458
- * Update an image gif
459
- */
460
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
461
- /**
462
- * Set image alignment
463
- */
464
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
452
+ attachment: {
453
+ setAttachment: (attrs?: unknown) => ReturnType;
465
454
  };
466
455
  }
467
456
  }
@@ -469,9 +458,14 @@ declare module '@tiptap/core' {
469
458
 
470
459
  declare module '@tiptap/core' {
471
460
  interface Commands<ReturnType> {
472
- mermaid: {
473
- setMermaid: (options: any, replace?: any) => ReturnType;
474
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
461
+ twitter: {
462
+ /**
463
+ * Insert a tweet
464
+ * @param options The tweet attributes
465
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
466
+ */
467
+ setTweet: (options: SetTweetOptions) => ReturnType;
468
+ updateTweet: (options: SetTweetOptions) => ReturnType;
475
469
  };
476
470
  }
477
471
  }
@@ -489,8 +483,9 @@ declare module '@tiptap/core' {
489
483
 
490
484
  declare module '@tiptap/core' {
491
485
  interface Commands<ReturnType> {
492
- attachment: {
493
- setAttachment: (attrs?: unknown) => ReturnType;
486
+ mermaid: {
487
+ setMermaid: (options: any, replace?: any) => ReturnType;
488
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
494
489
  };
495
490
  }
496
491
  }
@@ -498,14 +493,19 @@ declare module '@tiptap/core' {
498
493
 
499
494
  declare module '@tiptap/core' {
500
495
  interface Commands<ReturnType> {
501
- twitter: {
496
+ imageGifUpload: {
502
497
  /**
503
- * Insert a tweet
504
- * @param options The tweet attributes
505
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
498
+ * Add an image gif
506
499
  */
507
- setTweet: (options: SetTweetOptions) => ReturnType;
508
- updateTweet: (options: SetTweetOptions) => ReturnType;
500
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
501
+ /**
502
+ * Update an image gif
503
+ */
504
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
505
+ /**
506
+ * Set image alignment
507
+ */
508
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
509
509
  };
510
510
  }
511
511
  }
package/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { useRef as d, useState as o, useEffect as f } from "react";
2
- import { R as m } from "./RichTextEditor-Bxdp3pW3.js";
3
- import { B as x } from "./tiptap-Kst3Ray3.js";
2
+ import { R as m } from "./RichTextEditor-iBDjgtlT.js";
3
+ import { B as x } from "./tiptap-DkWHMWDt.js";
4
4
  function c() {
5
5
  var t;
6
6
  const e = d({ editor: null }), [u, s] = o(!1), [i, n] = o(null);
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-D-rys8BA.cjs");exports.en=e.locale$1;exports.hu_HU=e.locale$2;exports.locale=e.locale;exports.pt_BR=e.locale$5;exports.vi=e.locale$3;exports.zh_CN=e.locale$4;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DV-nXpU1.cjs");exports.en=e.locale$1;exports.hu_HU=e.locale$2;exports.locale=e.locale;exports.pt_BR=e.locale$5;exports.vi=e.locale$3;exports.zh_CN=e.locale$4;
@@ -920,9 +920,9 @@ declare module '@tiptap/core' {
920
920
 
921
921
  declare module '@tiptap/core' {
922
922
  interface Commands<ReturnType> {
923
- lineHeight: {
924
- setLineHeight: (lineHeight: string) => ReturnType;
925
- unsetLineHeight: () => ReturnType;
923
+ tableCellBackground: {
924
+ setTableCellBackground: (color: string) => ReturnType;
925
+ unsetTableCellBackground: () => ReturnType;
926
926
  };
927
927
  }
928
928
  }
@@ -966,9 +966,9 @@ declare module '@tiptap/core' {
966
966
 
967
967
  declare module '@tiptap/core' {
968
968
  interface Commands<ReturnType> {
969
- tableCellBackground: {
970
- setTableCellBackground: (color: string) => ReturnType;
971
- unsetTableCellBackground: () => ReturnType;
969
+ lineHeight: {
970
+ setLineHeight: (lineHeight: string) => ReturnType;
971
+ unsetLineHeight: () => ReturnType;
972
972
  };
973
973
  }
974
974
  }
@@ -991,13 +991,9 @@ declare module '@tiptap/core' {
991
991
 
992
992
  declare module '@tiptap/core' {
993
993
  interface Commands<ReturnType> {
994
- columns: {
995
- insertColumns: (attrs?: {
996
- cols: number;
997
- }) => ReturnType;
998
- addColBefore: () => ReturnType;
999
- addColAfter: () => ReturnType;
1000
- deleteCol: () => ReturnType;
994
+ tableOfContents: {
995
+ setTableOfContents: () => ReturnType;
996
+ removeTableOfContents: () => ReturnType;
1001
997
  };
1002
998
  }
1003
999
  }
@@ -1005,8 +1001,14 @@ declare module '@tiptap/core' {
1005
1001
 
1006
1002
  declare module '@tiptap/core' {
1007
1003
  interface Commands<ReturnType> {
1008
- painter: {
1009
- setPainter: (marks: Mark[]) => ReturnType;
1004
+ iframe: {
1005
+ /**
1006
+ * Add an iframe
1007
+ */
1008
+ setIframe: (options: {
1009
+ src: string;
1010
+ service: string;
1011
+ }) => ReturnType;
1010
1012
  };
1011
1013
  }
1012
1014
  }
@@ -1014,8 +1016,13 @@ declare module '@tiptap/core' {
1014
1016
 
1015
1017
  declare module '@tiptap/core' {
1016
1018
  interface Commands<ReturnType> {
1017
- katex: {
1018
- setKatex: (arg?: IKatexAttrs) => ReturnType;
1019
+ columns: {
1020
+ insertColumns: (attrs?: {
1021
+ cols: number;
1022
+ }) => ReturnType;
1023
+ addColBefore: () => ReturnType;
1024
+ addColAfter: () => ReturnType;
1025
+ deleteCol: () => ReturnType;
1019
1026
  };
1020
1027
  }
1021
1028
  }
@@ -1023,11 +1030,8 @@ declare module '@tiptap/core' {
1023
1030
 
1024
1031
  declare module '@tiptap/core' {
1025
1032
  interface Commands<ReturnType> {
1026
- emoji: {
1027
- setEmoji: (emoji: {
1028
- name: string;
1029
- emoji: string;
1030
- }) => ReturnType;
1033
+ exportWord: {
1034
+ exportToWord: () => ReturnType;
1031
1035
  };
1032
1036
  }
1033
1037
  }
@@ -1035,14 +1039,8 @@ declare module '@tiptap/core' {
1035
1039
 
1036
1040
  declare module '@tiptap/core' {
1037
1041
  interface Commands<ReturnType> {
1038
- iframe: {
1039
- /**
1040
- * Add an iframe
1041
- */
1042
- setIframe: (options: {
1043
- src: string;
1044
- service: string;
1045
- }) => ReturnType;
1042
+ painter: {
1043
+ setPainter: (marks: Mark[]) => ReturnType;
1046
1044
  };
1047
1045
  }
1048
1046
  }
@@ -1050,8 +1048,11 @@ declare module '@tiptap/core' {
1050
1048
 
1051
1049
  declare module '@tiptap/core' {
1052
1050
  interface Commands<ReturnType> {
1053
- exportWord: {
1054
- exportToWord: () => ReturnType;
1051
+ emoji: {
1052
+ setEmoji: (emoji: {
1053
+ name: string;
1054
+ emoji: string;
1055
+ }) => ReturnType;
1055
1056
  };
1056
1057
  }
1057
1058
  }
@@ -1059,9 +1060,8 @@ declare module '@tiptap/core' {
1059
1060
 
1060
1061
  declare module '@tiptap/core' {
1061
1062
  interface Commands<ReturnType> {
1062
- tableOfContents: {
1063
- setTableOfContents: () => ReturnType;
1064
- removeTableOfContents: () => ReturnType;
1063
+ excalidraw: {
1064
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
1065
1065
  };
1066
1066
  }
1067
1067
  }
@@ -1069,8 +1069,8 @@ declare module '@tiptap/core' {
1069
1069
 
1070
1070
  declare module '@tiptap/core' {
1071
1071
  interface Commands<ReturnType> {
1072
- excalidraw: {
1073
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
1072
+ katex: {
1073
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
1074
1074
  };
1075
1075
  }
1076
1076
  }
@@ -1078,19 +1078,8 @@ declare module '@tiptap/core' {
1078
1078
 
1079
1079
  declare module '@tiptap/core' {
1080
1080
  interface Commands<ReturnType> {
1081
- imageGifUpload: {
1082
- /**
1083
- * Add an image gif
1084
- */
1085
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1086
- /**
1087
- * Update an image gif
1088
- */
1089
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1090
- /**
1091
- * Set image alignment
1092
- */
1093
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1081
+ attachment: {
1082
+ setAttachment: (attrs?: unknown) => ReturnType;
1094
1083
  };
1095
1084
  }
1096
1085
  }
@@ -1098,9 +1087,14 @@ declare module '@tiptap/core' {
1098
1087
 
1099
1088
  declare module '@tiptap/core' {
1100
1089
  interface Commands<ReturnType> {
1101
- mermaid: {
1102
- setMermaid: (options: any, replace?: any) => ReturnType;
1103
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1090
+ twitter: {
1091
+ /**
1092
+ * Insert a tweet
1093
+ * @param options The tweet attributes
1094
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
1095
+ */
1096
+ setTweet: (options: SetTweetOptions) => ReturnType;
1097
+ updateTweet: (options: SetTweetOptions) => ReturnType;
1104
1098
  };
1105
1099
  }
1106
1100
  }
@@ -1118,8 +1112,9 @@ declare module '@tiptap/core' {
1118
1112
 
1119
1113
  declare module '@tiptap/core' {
1120
1114
  interface Commands<ReturnType> {
1121
- attachment: {
1122
- setAttachment: (attrs?: unknown) => ReturnType;
1115
+ mermaid: {
1116
+ setMermaid: (options: any, replace?: any) => ReturnType;
1117
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1123
1118
  };
1124
1119
  }
1125
1120
  }
@@ -1127,14 +1122,19 @@ declare module '@tiptap/core' {
1127
1122
 
1128
1123
  declare module '@tiptap/core' {
1129
1124
  interface Commands<ReturnType> {
1130
- twitter: {
1125
+ imageGifUpload: {
1131
1126
  /**
1132
- * Insert a tweet
1133
- * @param options The tweet attributes
1134
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
1127
+ * Add an image gif
1135
1128
  */
1136
- setTweet: (options: SetTweetOptions) => ReturnType;
1137
- updateTweet: (options: SetTweetOptions) => ReturnType;
1129
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1130
+ /**
1131
+ * Update an image gif
1132
+ */
1133
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1134
+ /**
1135
+ * Set image alignment
1136
+ */
1137
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1138
1138
  };
1139
1139
  }
1140
1140
  }
@@ -920,9 +920,9 @@ declare module '@tiptap/core' {
920
920
 
921
921
  declare module '@tiptap/core' {
922
922
  interface Commands<ReturnType> {
923
- lineHeight: {
924
- setLineHeight: (lineHeight: string) => ReturnType;
925
- unsetLineHeight: () => ReturnType;
923
+ tableCellBackground: {
924
+ setTableCellBackground: (color: string) => ReturnType;
925
+ unsetTableCellBackground: () => ReturnType;
926
926
  };
927
927
  }
928
928
  }
@@ -966,9 +966,9 @@ declare module '@tiptap/core' {
966
966
 
967
967
  declare module '@tiptap/core' {
968
968
  interface Commands<ReturnType> {
969
- tableCellBackground: {
970
- setTableCellBackground: (color: string) => ReturnType;
971
- unsetTableCellBackground: () => ReturnType;
969
+ lineHeight: {
970
+ setLineHeight: (lineHeight: string) => ReturnType;
971
+ unsetLineHeight: () => ReturnType;
972
972
  };
973
973
  }
974
974
  }
@@ -991,13 +991,9 @@ declare module '@tiptap/core' {
991
991
 
992
992
  declare module '@tiptap/core' {
993
993
  interface Commands<ReturnType> {
994
- columns: {
995
- insertColumns: (attrs?: {
996
- cols: number;
997
- }) => ReturnType;
998
- addColBefore: () => ReturnType;
999
- addColAfter: () => ReturnType;
1000
- deleteCol: () => ReturnType;
994
+ tableOfContents: {
995
+ setTableOfContents: () => ReturnType;
996
+ removeTableOfContents: () => ReturnType;
1001
997
  };
1002
998
  }
1003
999
  }
@@ -1005,8 +1001,14 @@ declare module '@tiptap/core' {
1005
1001
 
1006
1002
  declare module '@tiptap/core' {
1007
1003
  interface Commands<ReturnType> {
1008
- painter: {
1009
- setPainter: (marks: Mark[]) => ReturnType;
1004
+ iframe: {
1005
+ /**
1006
+ * Add an iframe
1007
+ */
1008
+ setIframe: (options: {
1009
+ src: string;
1010
+ service: string;
1011
+ }) => ReturnType;
1010
1012
  };
1011
1013
  }
1012
1014
  }
@@ -1014,8 +1016,13 @@ declare module '@tiptap/core' {
1014
1016
 
1015
1017
  declare module '@tiptap/core' {
1016
1018
  interface Commands<ReturnType> {
1017
- katex: {
1018
- setKatex: (arg?: IKatexAttrs) => ReturnType;
1019
+ columns: {
1020
+ insertColumns: (attrs?: {
1021
+ cols: number;
1022
+ }) => ReturnType;
1023
+ addColBefore: () => ReturnType;
1024
+ addColAfter: () => ReturnType;
1025
+ deleteCol: () => ReturnType;
1019
1026
  };
1020
1027
  }
1021
1028
  }
@@ -1023,11 +1030,8 @@ declare module '@tiptap/core' {
1023
1030
 
1024
1031
  declare module '@tiptap/core' {
1025
1032
  interface Commands<ReturnType> {
1026
- emoji: {
1027
- setEmoji: (emoji: {
1028
- name: string;
1029
- emoji: string;
1030
- }) => ReturnType;
1033
+ exportWord: {
1034
+ exportToWord: () => ReturnType;
1031
1035
  };
1032
1036
  }
1033
1037
  }
@@ -1035,14 +1039,8 @@ declare module '@tiptap/core' {
1035
1039
 
1036
1040
  declare module '@tiptap/core' {
1037
1041
  interface Commands<ReturnType> {
1038
- iframe: {
1039
- /**
1040
- * Add an iframe
1041
- */
1042
- setIframe: (options: {
1043
- src: string;
1044
- service: string;
1045
- }) => ReturnType;
1042
+ painter: {
1043
+ setPainter: (marks: Mark[]) => ReturnType;
1046
1044
  };
1047
1045
  }
1048
1046
  }
@@ -1050,8 +1048,11 @@ declare module '@tiptap/core' {
1050
1048
 
1051
1049
  declare module '@tiptap/core' {
1052
1050
  interface Commands<ReturnType> {
1053
- exportWord: {
1054
- exportToWord: () => ReturnType;
1051
+ emoji: {
1052
+ setEmoji: (emoji: {
1053
+ name: string;
1054
+ emoji: string;
1055
+ }) => ReturnType;
1055
1056
  };
1056
1057
  }
1057
1058
  }
@@ -1059,9 +1060,8 @@ declare module '@tiptap/core' {
1059
1060
 
1060
1061
  declare module '@tiptap/core' {
1061
1062
  interface Commands<ReturnType> {
1062
- tableOfContents: {
1063
- setTableOfContents: () => ReturnType;
1064
- removeTableOfContents: () => ReturnType;
1063
+ excalidraw: {
1064
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
1065
1065
  };
1066
1066
  }
1067
1067
  }
@@ -1069,8 +1069,8 @@ declare module '@tiptap/core' {
1069
1069
 
1070
1070
  declare module '@tiptap/core' {
1071
1071
  interface Commands<ReturnType> {
1072
- excalidraw: {
1073
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
1072
+ katex: {
1073
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
1074
1074
  };
1075
1075
  }
1076
1076
  }
@@ -1078,19 +1078,8 @@ declare module '@tiptap/core' {
1078
1078
 
1079
1079
  declare module '@tiptap/core' {
1080
1080
  interface Commands<ReturnType> {
1081
- imageGifUpload: {
1082
- /**
1083
- * Add an image gif
1084
- */
1085
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1086
- /**
1087
- * Update an image gif
1088
- */
1089
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1090
- /**
1091
- * Set image alignment
1092
- */
1093
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1081
+ attachment: {
1082
+ setAttachment: (attrs?: unknown) => ReturnType;
1094
1083
  };
1095
1084
  }
1096
1085
  }
@@ -1098,9 +1087,14 @@ declare module '@tiptap/core' {
1098
1087
 
1099
1088
  declare module '@tiptap/core' {
1100
1089
  interface Commands<ReturnType> {
1101
- mermaid: {
1102
- setMermaid: (options: any, replace?: any) => ReturnType;
1103
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1090
+ twitter: {
1091
+ /**
1092
+ * Insert a tweet
1093
+ * @param options The tweet attributes
1094
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
1095
+ */
1096
+ setTweet: (options: SetTweetOptions) => ReturnType;
1097
+ updateTweet: (options: SetTweetOptions) => ReturnType;
1104
1098
  };
1105
1099
  }
1106
1100
  }
@@ -1118,8 +1112,9 @@ declare module '@tiptap/core' {
1118
1112
 
1119
1113
  declare module '@tiptap/core' {
1120
1114
  interface Commands<ReturnType> {
1121
- attachment: {
1122
- setAttachment: (attrs?: unknown) => ReturnType;
1115
+ mermaid: {
1116
+ setMermaid: (options: any, replace?: any) => ReturnType;
1117
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1123
1118
  };
1124
1119
  }
1125
1120
  }
@@ -1127,14 +1122,19 @@ declare module '@tiptap/core' {
1127
1122
 
1128
1123
  declare module '@tiptap/core' {
1129
1124
  interface Commands<ReturnType> {
1130
- twitter: {
1125
+ imageGifUpload: {
1131
1126
  /**
1132
- * Insert a tweet
1133
- * @param options The tweet attributes
1134
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
1127
+ * Add an image gif
1135
1128
  */
1136
- setTweet: (options: SetTweetOptions) => ReturnType;
1137
- updateTweet: (options: SetTweetOptions) => ReturnType;
1129
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1130
+ /**
1131
+ * Update an image gif
1132
+ */
1133
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1134
+ /**
1135
+ * Set image alignment
1136
+ */
1137
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1138
1138
  };
1139
1139
  }
1140
1140
  }
@@ -1,4 +1,4 @@
1
- import { a as e, b as l, l as o, e as _, c, d as h } from "./index-PJxla8pp.js";
1
+ import { a as e, b as l, l as o, e as _, c, d as h } from "./index-M6H3FoBi.js";
2
2
  export {
3
3
  e as en,
4
4
  l as hu_HU,