reactjs-tiptap-editor-pro 0.2.39 → 0.2.41

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
@@ -308,9 +308,15 @@ declare module '@tiptap/core' {
308
308
 
309
309
  declare module '@tiptap/core' {
310
310
  interface Commands<ReturnType> {
311
- tableCellBackground: {
312
- setTableCellBackground: (color: string) => ReturnType;
313
- unsetTableCellBackground: () => ReturnType;
311
+ indent: {
312
+ /**
313
+ * Set the indent attribute
314
+ */
315
+ indent: () => ReturnType;
316
+ /**
317
+ * Set the outdent attribute
318
+ */
319
+ outdent: () => ReturnType;
314
320
  };
315
321
  }
316
322
  }
@@ -342,14 +348,19 @@ declare module '@tiptap/core' {
342
348
 
343
349
  declare module '@tiptap/core' {
344
350
  interface Commands<ReturnType> {
345
- search: {
346
- setSearchTerm: (searchTerm: string) => ReturnType;
347
- setReplaceTerm: (replaceTerm: string) => ReturnType;
348
- replace: () => ReturnType;
349
- replaceAll: () => ReturnType;
350
- goToPrevSearchResult: () => void;
351
- goToNextSearchResult: () => void;
352
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
351
+ imageUpload: {
352
+ /**
353
+ * Add an image
354
+ */
355
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
356
+ /**
357
+ * Update an image
358
+ */
359
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
360
+ /**
361
+ * Set image alignment
362
+ */
363
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
353
364
  };
354
365
  }
355
366
  }
@@ -377,35 +388,6 @@ declare module '@tiptap/core' {
377
388
  }
378
389
 
379
390
 
380
- declare module '@tiptap/core' {
381
- interface Commands<ReturnType> {
382
- katex: {
383
- setKatex: (arg?: IKatexAttrs) => ReturnType;
384
- };
385
- }
386
- }
387
-
388
-
389
- declare module '@tiptap/core' {
390
- interface Commands<ReturnType> {
391
- imageUpload: {
392
- /**
393
- * Add an image
394
- */
395
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
396
- /**
397
- * Update an image
398
- */
399
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
400
- /**
401
- * Set image alignment
402
- */
403
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
404
- };
405
- }
406
- }
407
-
408
-
409
391
  declare module '@tiptap/core' {
410
392
  interface Commands<ReturnType> {
411
393
  columns: {
@@ -422,15 +404,9 @@ declare module '@tiptap/core' {
422
404
 
423
405
  declare module '@tiptap/core' {
424
406
  interface Commands<ReturnType> {
425
- indent: {
426
- /**
427
- * Set the indent attribute
428
- */
429
- indent: () => ReturnType;
430
- /**
431
- * Set the outdent attribute
432
- */
433
- outdent: () => ReturnType;
407
+ tableCellBackground: {
408
+ setTableCellBackground: (color: string) => ReturnType;
409
+ unsetTableCellBackground: () => ReturnType;
434
410
  };
435
411
  }
436
412
  }
@@ -438,19 +414,14 @@ declare module '@tiptap/core' {
438
414
 
439
415
  declare module '@tiptap/core' {
440
416
  interface Commands<ReturnType> {
441
- imageGifUpload: {
442
- /**
443
- * Add an image gif
444
- */
445
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
446
- /**
447
- * Update an image gif
448
- */
449
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
450
- /**
451
- * Set image alignment
452
- */
453
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
417
+ search: {
418
+ setSearchTerm: (searchTerm: string) => ReturnType;
419
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
420
+ replace: () => ReturnType;
421
+ replaceAll: () => ReturnType;
422
+ goToPrevSearchResult: () => void;
423
+ goToNextSearchResult: () => void;
424
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
454
425
  };
455
426
  }
456
427
  }
@@ -458,9 +429,17 @@ declare module '@tiptap/core' {
458
429
 
459
430
  declare module '@tiptap/core' {
460
431
  interface Commands<ReturnType> {
461
- drawer: {
462
- setDrawer: (options: any, replace?: any) => ReturnType;
463
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
432
+ katex: {
433
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
434
+ };
435
+ }
436
+ }
437
+
438
+
439
+ declare module '@tiptap/core' {
440
+ interface Commands<ReturnType> {
441
+ exportWord: {
442
+ exportToWord: () => ReturnType;
464
443
  };
465
444
  }
466
445
  }
@@ -502,9 +481,19 @@ declare module '@tiptap/core' {
502
481
 
503
482
  declare module '@tiptap/core' {
504
483
  interface Commands<ReturnType> {
505
- mermaid: {
506
- setMermaid: (options: any, replace?: any) => ReturnType;
507
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
484
+ imageGifUpload: {
485
+ /**
486
+ * Add an image gif
487
+ */
488
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
489
+ /**
490
+ * Update an image gif
491
+ */
492
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
493
+ /**
494
+ * Set image alignment
495
+ */
496
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
508
497
  };
509
498
  }
510
499
  }
@@ -512,8 +501,19 @@ declare module '@tiptap/core' {
512
501
 
513
502
  declare module '@tiptap/core' {
514
503
  interface Commands<ReturnType> {
515
- exportWord: {
516
- exportToWord: () => ReturnType;
504
+ drawer: {
505
+ setDrawer: (options: any, replace?: any) => ReturnType;
506
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
507
+ };
508
+ }
509
+ }
510
+
511
+
512
+ declare module '@tiptap/core' {
513
+ interface Commands<ReturnType> {
514
+ mermaid: {
515
+ setMermaid: (options: any, replace?: any) => ReturnType;
516
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
517
517
  };
518
518
  }
519
519
  }
package/lib/index.js CHANGED
@@ -4,7 +4,7 @@ var me = (e, t, n) => ur(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import * as ie from "react";
5
5
  import { useRef as ne, useState as I, useEffect as R, useMemo as F, Fragment as Ve, useCallback as O, memo as fr, forwardRef as hr, useId as mr, useImperativeHandle as gr, useLayoutEffect as pr } from "react";
6
6
  import { jsx as a, jsxs as p, Fragment as N } from "react/jsx-runtime";
7
- import { i as Ke, S as re, t as vr, a as Ce, b as oe, r as J, c as Z, f as yr, d as ae, e as wr, D as Xe, g as qe, A as C, h as Ye, j as Je, C as xr, k as Ze, B as Y, s as cn, l as dn, m as un, u as Te, n as vt, o as L, p as U, P as br, q as Cr, v as Tr, L as $e, I as ye, w as se, x as Ae, y as Ar, K as ge, T as fn, M as yt, z as wt, F as Sr, E as hn, G as mn, H as Pr, J as he, N as _r, O as Nr, Q as Er, R as gn, U as $r, V as Or, W as z, X as Rr, Y as Ir, Z as Dr, _ as Br, $ as Mr, a0 as kr, a1 as W, a2 as Lr, a3 as xt, a4 as bt, a5 as Ct, a6 as Tt, a7 as At, a8 as St, a9 as pn, aa as zr, ab as vn, ac as yn, ad as Fr, ae as jr, af as Hr, ag as Pt, ah as Ur, ai as Gr, aj as Wr, ak as Vr, al as Kr, am as _t, an as Nt, ao as Xr, ap as qr, aq as Yr, ar as Jr, as as Zr, at as Qr, au as ei } from "./ColorPicker-BGCCdXrc.js";
7
+ import { i as Ke, S as re, t as vr, a as Ce, b as oe, r as J, c as Z, f as yr, d as ae, e as wr, D as Xe, g as qe, A as C, h as Ye, j as Je, C as xr, k as Ze, B as Y, s as cn, l as dn, m as un, u as Te, n as vt, o as L, p as U, P as br, q as Cr, v as Tr, L as $e, I as ye, w as se, x as Ae, y as Ar, K as ge, T as fn, M as yt, z as wt, F as Sr, E as hn, G as mn, H as Pr, J as he, N as _r, O as Nr, Q as Er, R as gn, U as $r, V as Or, W as z, X as Rr, Y as Ir, Z as Dr, _ as Br, $ as Mr, a0 as kr, a1 as W, a2 as Lr, a3 as xt, a4 as bt, a5 as Ct, a6 as Tt, a7 as At, a8 as St, a9 as pn, aa as zr, ab as vn, ac as yn, ad as Fr, ae as jr, af as Hr, ag as Pt, ah as Ur, ai as Gr, aj as Wr, ak as Vr, al as Kr, am as _t, an as Nt, ao as Xr, ap as qr, aq as Yr, ar as Jr, as as Zr, at as Qr, au as ei } from "./ColorPicker-B3iXkFey.js";
8
8
  import { u as D, B as ti, l as B, I as we, V as Et, E as ni } from "./locale-bundle-CT7qZRHF.js";
9
9
  import * as j from "@radix-ui/react-toast";
10
10
  import { X as ri, HelpCircle as ii, Pencil as oi, Trash2 as ai } from "lucide-react";
@@ -920,9 +920,15 @@ declare module '@tiptap/core' {
920
920
 
921
921
  declare module '@tiptap/core' {
922
922
  interface Commands<ReturnType> {
923
- tableCellBackground: {
924
- setTableCellBackground: (color: string) => ReturnType;
925
- unsetTableCellBackground: () => ReturnType;
923
+ indent: {
924
+ /**
925
+ * Set the indent attribute
926
+ */
927
+ indent: () => ReturnType;
928
+ /**
929
+ * Set the outdent attribute
930
+ */
931
+ outdent: () => ReturnType;
926
932
  };
927
933
  }
928
934
  }
@@ -954,14 +960,19 @@ declare module '@tiptap/core' {
954
960
 
955
961
  declare module '@tiptap/core' {
956
962
  interface Commands<ReturnType> {
957
- search: {
958
- setSearchTerm: (searchTerm: string) => ReturnType;
959
- setReplaceTerm: (replaceTerm: string) => ReturnType;
960
- replace: () => ReturnType;
961
- replaceAll: () => ReturnType;
962
- goToPrevSearchResult: () => void;
963
- goToNextSearchResult: () => void;
964
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
963
+ imageUpload: {
964
+ /**
965
+ * Add an image
966
+ */
967
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
968
+ /**
969
+ * Update an image
970
+ */
971
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
972
+ /**
973
+ * Set image alignment
974
+ */
975
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
965
976
  };
966
977
  }
967
978
  }
@@ -989,35 +1000,6 @@ declare module '@tiptap/core' {
989
1000
  }
990
1001
 
991
1002
 
992
- declare module '@tiptap/core' {
993
- interface Commands<ReturnType> {
994
- katex: {
995
- setKatex: (arg?: IKatexAttrs) => ReturnType;
996
- };
997
- }
998
- }
999
-
1000
-
1001
- declare module '@tiptap/core' {
1002
- interface Commands<ReturnType> {
1003
- imageUpload: {
1004
- /**
1005
- * Add an image
1006
- */
1007
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1008
- /**
1009
- * Update an image
1010
- */
1011
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1012
- /**
1013
- * Set image alignment
1014
- */
1015
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
1016
- };
1017
- }
1018
- }
1019
-
1020
-
1021
1003
  declare module '@tiptap/core' {
1022
1004
  interface Commands<ReturnType> {
1023
1005
  columns: {
@@ -1034,15 +1016,9 @@ declare module '@tiptap/core' {
1034
1016
 
1035
1017
  declare module '@tiptap/core' {
1036
1018
  interface Commands<ReturnType> {
1037
- indent: {
1038
- /**
1039
- * Set the indent attribute
1040
- */
1041
- indent: () => ReturnType;
1042
- /**
1043
- * Set the outdent attribute
1044
- */
1045
- outdent: () => ReturnType;
1019
+ tableCellBackground: {
1020
+ setTableCellBackground: (color: string) => ReturnType;
1021
+ unsetTableCellBackground: () => ReturnType;
1046
1022
  };
1047
1023
  }
1048
1024
  }
@@ -1050,19 +1026,14 @@ declare module '@tiptap/core' {
1050
1026
 
1051
1027
  declare module '@tiptap/core' {
1052
1028
  interface Commands<ReturnType> {
1053
- imageGifUpload: {
1054
- /**
1055
- * Add an image gif
1056
- */
1057
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1058
- /**
1059
- * Update an image gif
1060
- */
1061
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1062
- /**
1063
- * Set image alignment
1064
- */
1065
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1029
+ search: {
1030
+ setSearchTerm: (searchTerm: string) => ReturnType;
1031
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
1032
+ replace: () => ReturnType;
1033
+ replaceAll: () => ReturnType;
1034
+ goToPrevSearchResult: () => void;
1035
+ goToNextSearchResult: () => void;
1036
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
1066
1037
  };
1067
1038
  }
1068
1039
  }
@@ -1070,9 +1041,17 @@ declare module '@tiptap/core' {
1070
1041
 
1071
1042
  declare module '@tiptap/core' {
1072
1043
  interface Commands<ReturnType> {
1073
- drawer: {
1074
- setDrawer: (options: any, replace?: any) => ReturnType;
1075
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1044
+ katex: {
1045
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
1046
+ };
1047
+ }
1048
+ }
1049
+
1050
+
1051
+ declare module '@tiptap/core' {
1052
+ interface Commands<ReturnType> {
1053
+ exportWord: {
1054
+ exportToWord: () => ReturnType;
1076
1055
  };
1077
1056
  }
1078
1057
  }
@@ -1114,9 +1093,19 @@ declare module '@tiptap/core' {
1114
1093
 
1115
1094
  declare module '@tiptap/core' {
1116
1095
  interface Commands<ReturnType> {
1117
- mermaid: {
1118
- setMermaid: (options: any, replace?: any) => ReturnType;
1119
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1096
+ imageGifUpload: {
1097
+ /**
1098
+ * Add an image gif
1099
+ */
1100
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1101
+ /**
1102
+ * Update an image gif
1103
+ */
1104
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1105
+ /**
1106
+ * Set image alignment
1107
+ */
1108
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1120
1109
  };
1121
1110
  }
1122
1111
  }
@@ -1124,8 +1113,19 @@ declare module '@tiptap/core' {
1124
1113
 
1125
1114
  declare module '@tiptap/core' {
1126
1115
  interface Commands<ReturnType> {
1127
- exportWord: {
1128
- exportToWord: () => ReturnType;
1116
+ drawer: {
1117
+ setDrawer: (options: any, replace?: any) => ReturnType;
1118
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1119
+ };
1120
+ }
1121
+ }
1122
+
1123
+
1124
+ declare module '@tiptap/core' {
1125
+ interface Commands<ReturnType> {
1126
+ mermaid: {
1127
+ setMermaid: (options: any, replace?: any) => ReturnType;
1128
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1129
1129
  };
1130
1130
  }
1131
1131
  }
@@ -920,9 +920,15 @@ declare module '@tiptap/core' {
920
920
 
921
921
  declare module '@tiptap/core' {
922
922
  interface Commands<ReturnType> {
923
- tableCellBackground: {
924
- setTableCellBackground: (color: string) => ReturnType;
925
- unsetTableCellBackground: () => ReturnType;
923
+ indent: {
924
+ /**
925
+ * Set the indent attribute
926
+ */
927
+ indent: () => ReturnType;
928
+ /**
929
+ * Set the outdent attribute
930
+ */
931
+ outdent: () => ReturnType;
926
932
  };
927
933
  }
928
934
  }
@@ -954,14 +960,19 @@ declare module '@tiptap/core' {
954
960
 
955
961
  declare module '@tiptap/core' {
956
962
  interface Commands<ReturnType> {
957
- search: {
958
- setSearchTerm: (searchTerm: string) => ReturnType;
959
- setReplaceTerm: (replaceTerm: string) => ReturnType;
960
- replace: () => ReturnType;
961
- replaceAll: () => ReturnType;
962
- goToPrevSearchResult: () => void;
963
- goToNextSearchResult: () => void;
964
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
963
+ imageUpload: {
964
+ /**
965
+ * Add an image
966
+ */
967
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
968
+ /**
969
+ * Update an image
970
+ */
971
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
972
+ /**
973
+ * Set image alignment
974
+ */
975
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
965
976
  };
966
977
  }
967
978
  }
@@ -989,35 +1000,6 @@ declare module '@tiptap/core' {
989
1000
  }
990
1001
 
991
1002
 
992
- declare module '@tiptap/core' {
993
- interface Commands<ReturnType> {
994
- katex: {
995
- setKatex: (arg?: IKatexAttrs) => ReturnType;
996
- };
997
- }
998
- }
999
-
1000
-
1001
- declare module '@tiptap/core' {
1002
- interface Commands<ReturnType> {
1003
- imageUpload: {
1004
- /**
1005
- * Add an image
1006
- */
1007
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1008
- /**
1009
- * Update an image
1010
- */
1011
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1012
- /**
1013
- * Set image alignment
1014
- */
1015
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
1016
- };
1017
- }
1018
- }
1019
-
1020
-
1021
1003
  declare module '@tiptap/core' {
1022
1004
  interface Commands<ReturnType> {
1023
1005
  columns: {
@@ -1034,15 +1016,9 @@ declare module '@tiptap/core' {
1034
1016
 
1035
1017
  declare module '@tiptap/core' {
1036
1018
  interface Commands<ReturnType> {
1037
- indent: {
1038
- /**
1039
- * Set the indent attribute
1040
- */
1041
- indent: () => ReturnType;
1042
- /**
1043
- * Set the outdent attribute
1044
- */
1045
- outdent: () => ReturnType;
1019
+ tableCellBackground: {
1020
+ setTableCellBackground: (color: string) => ReturnType;
1021
+ unsetTableCellBackground: () => ReturnType;
1046
1022
  };
1047
1023
  }
1048
1024
  }
@@ -1050,19 +1026,14 @@ declare module '@tiptap/core' {
1050
1026
 
1051
1027
  declare module '@tiptap/core' {
1052
1028
  interface Commands<ReturnType> {
1053
- imageGifUpload: {
1054
- /**
1055
- * Add an image gif
1056
- */
1057
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1058
- /**
1059
- * Update an image gif
1060
- */
1061
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1062
- /**
1063
- * Set image alignment
1064
- */
1065
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1029
+ search: {
1030
+ setSearchTerm: (searchTerm: string) => ReturnType;
1031
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
1032
+ replace: () => ReturnType;
1033
+ replaceAll: () => ReturnType;
1034
+ goToPrevSearchResult: () => void;
1035
+ goToNextSearchResult: () => void;
1036
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
1066
1037
  };
1067
1038
  }
1068
1039
  }
@@ -1070,9 +1041,17 @@ declare module '@tiptap/core' {
1070
1041
 
1071
1042
  declare module '@tiptap/core' {
1072
1043
  interface Commands<ReturnType> {
1073
- drawer: {
1074
- setDrawer: (options: any, replace?: any) => ReturnType;
1075
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1044
+ katex: {
1045
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
1046
+ };
1047
+ }
1048
+ }
1049
+
1050
+
1051
+ declare module '@tiptap/core' {
1052
+ interface Commands<ReturnType> {
1053
+ exportWord: {
1054
+ exportToWord: () => ReturnType;
1076
1055
  };
1077
1056
  }
1078
1057
  }
@@ -1114,9 +1093,19 @@ declare module '@tiptap/core' {
1114
1093
 
1115
1094
  declare module '@tiptap/core' {
1116
1095
  interface Commands<ReturnType> {
1117
- mermaid: {
1118
- setMermaid: (options: any, replace?: any) => ReturnType;
1119
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1096
+ imageGifUpload: {
1097
+ /**
1098
+ * Add an image gif
1099
+ */
1100
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1101
+ /**
1102
+ * Update an image gif
1103
+ */
1104
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1105
+ /**
1106
+ * Set image alignment
1107
+ */
1108
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1120
1109
  };
1121
1110
  }
1122
1111
  }
@@ -1124,8 +1113,19 @@ declare module '@tiptap/core' {
1124
1113
 
1125
1114
  declare module '@tiptap/core' {
1126
1115
  interface Commands<ReturnType> {
1127
- exportWord: {
1128
- exportToWord: () => ReturnType;
1116
+ drawer: {
1117
+ setDrawer: (options: any, replace?: any) => ReturnType;
1118
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1119
+ };
1120
+ }
1121
+ }
1122
+
1123
+
1124
+ declare module '@tiptap/core' {
1125
+ interface Commands<ReturnType> {
1126
+ mermaid: {
1127
+ setMermaid: (options: any, replace?: any) => ReturnType;
1128
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1129
1129
  };
1130
1130
  }
1131
1131
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "reactjs-tiptap-editor-pro",
3
3
  "type": "module",
4
- "version": "0.2.39",
4
+ "version": "0.2.41",
5
5
  "packageManager": "pnpm@8.15.9",
6
6
  "description": "A modern WYSIWYG rich text editor based on tiptap and shadcn ui for React",
7
7
  "license": "MIT",
@@ -93,6 +93,25 @@
93
93
  "engines": {
94
94
  "node": ">=18.0.0"
95
95
  },
96
+ "scripts": {
97
+ "build:lib": "vite build && pnpm modify-css",
98
+ "build:lib:dev": "vite build --mode development --watch",
99
+ "build:playground": "pnpm build:lib && pnpm --dir ./playground run build",
100
+ "docs:dev": "pnpm --parallel --filter docs... dev",
101
+ "docs:build": "pnpm --filter docs... build",
102
+ "docs:preview": "pnpm -C docs preview",
103
+ "playground": "pnpm --dir ./playground run dev",
104
+ "preview": "pnpm --dir ./playground run preview",
105
+ "lint": "eslint src --quiet",
106
+ "lint:fix": "eslint src --fix --quiet",
107
+ "type-check": "tsc",
108
+ "verify-commit": "verify-commit-msg",
109
+ "prepare": "git-scm-hooks",
110
+ "release": "bumpp -r",
111
+ "gen-changelog": "esno ./scripts/genExtensions.ts && esno ./scripts/changelog.ts",
112
+ "modify-css": "esno ./scripts/modifyCss.ts",
113
+ "gen-contributors": "contributorkit"
114
+ },
96
115
  "dependencies": {
97
116
  "@radix-ui/react-checkbox": "^1.1.4",
98
117
  "@radix-ui/react-dialog": "^1.1.6",
@@ -219,23 +238,5 @@
219
238
  "git-hooks": {
220
239
  "pre-commit": "npm run lint:fix",
221
240
  "commit-msg": "npm run verify-commit"
222
- },
223
- "scripts": {
224
- "build:lib": "vite build && pnpm modify-css",
225
- "build:lib:dev": "vite build --mode development --watch",
226
- "build:playground": "pnpm build:lib && pnpm --dir ./playground run build",
227
- "docs:dev": "pnpm --parallel --filter docs... dev",
228
- "docs:build": "pnpm --filter docs... build",
229
- "docs:preview": "pnpm -C docs preview",
230
- "playground": "pnpm --dir ./playground run dev",
231
- "preview": "pnpm --dir ./playground run preview",
232
- "lint": "eslint src --quiet",
233
- "lint:fix": "eslint src --fix --quiet",
234
- "type-check": "tsc",
235
- "verify-commit": "verify-commit-msg",
236
- "release": "bumpp -r",
237
- "gen-changelog": "esno ./scripts/genExtensions.ts && esno ./scripts/changelog.ts",
238
- "modify-css": "esno ./scripts/modifyCss.ts",
239
- "gen-contributors": "contributorkit"
240
241
  }
241
- }
242
+ }