reactjs-tiptap-editor-pro 0.2.40 → 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
@@ -324,34 +324,14 @@ declare module '@tiptap/core' {
324
324
 
325
325
  declare module '@tiptap/core' {
326
326
  interface Commands<ReturnType> {
327
- lineHeight: {
328
- setLineHeight: (lineHeight: string) => ReturnType;
329
- unsetLineHeight: () => ReturnType;
330
- };
331
- }
332
- }
333
-
334
-
335
- declare module '@tiptap/core' {
336
- interface Commands<ReturnType> {
337
- tableCellBackground: {
338
- setTableCellBackground: (color: string) => ReturnType;
339
- unsetTableCellBackground: () => ReturnType;
340
- };
341
- }
342
- }
343
-
344
-
345
- declare module '@tiptap/core' {
346
- interface Commands<ReturnType> {
347
- search: {
348
- setSearchTerm: (searchTerm: string) => ReturnType;
349
- setReplaceTerm: (replaceTerm: string) => ReturnType;
350
- replace: () => ReturnType;
351
- replaceAll: () => ReturnType;
352
- goToPrevSearchResult: () => void;
353
- goToNextSearchResult: () => void;
354
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
327
+ iframe: {
328
+ /**
329
+ * Add an iframe
330
+ */
331
+ setIframe: (options: {
332
+ src: string;
333
+ service: string;
334
+ }) => ReturnType;
355
335
  };
356
336
  }
357
337
  }
@@ -386,6 +366,16 @@ declare module '@tiptap/core' {
386
366
  }
387
367
 
388
368
 
369
+ declare module '@tiptap/core' {
370
+ interface Commands<ReturnType> {
371
+ lineHeight: {
372
+ setLineHeight: (lineHeight: string) => ReturnType;
373
+ unsetLineHeight: () => ReturnType;
374
+ };
375
+ }
376
+ }
377
+
378
+
389
379
  declare module '@tiptap/core' {
390
380
  interface Commands<ReturnType> {
391
381
  emoji: {
@@ -400,14 +390,13 @@ declare module '@tiptap/core' {
400
390
 
401
391
  declare module '@tiptap/core' {
402
392
  interface Commands<ReturnType> {
403
- iframe: {
404
- /**
405
- * Add an iframe
406
- */
407
- setIframe: (options: {
408
- src: string;
409
- service: string;
393
+ columns: {
394
+ insertColumns: (attrs?: {
395
+ cols: number;
410
396
  }) => ReturnType;
397
+ addColBefore: () => ReturnType;
398
+ addColAfter: () => ReturnType;
399
+ deleteCol: () => ReturnType;
411
400
  };
412
401
  }
413
402
  }
@@ -415,9 +404,9 @@ declare module '@tiptap/core' {
415
404
 
416
405
  declare module '@tiptap/core' {
417
406
  interface Commands<ReturnType> {
418
- tableOfContents: {
419
- setTableOfContents: () => ReturnType;
420
- removeTableOfContents: () => ReturnType;
407
+ tableCellBackground: {
408
+ setTableCellBackground: (color: string) => ReturnType;
409
+ unsetTableCellBackground: () => ReturnType;
421
410
  };
422
411
  }
423
412
  }
@@ -425,13 +414,14 @@ declare module '@tiptap/core' {
425
414
 
426
415
  declare module '@tiptap/core' {
427
416
  interface Commands<ReturnType> {
428
- columns: {
429
- insertColumns: (attrs?: {
430
- cols: number;
431
- }) => ReturnType;
432
- addColBefore: () => ReturnType;
433
- addColAfter: () => ReturnType;
434
- deleteCol: () => 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;
435
425
  };
436
426
  }
437
427
  }
@@ -457,19 +447,18 @@ declare module '@tiptap/core' {
457
447
 
458
448
  declare module '@tiptap/core' {
459
449
  interface Commands<ReturnType> {
460
- imageGifUpload: {
461
- /**
462
- * Add an image gif
463
- */
464
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
465
- /**
466
- * Update an image gif
467
- */
468
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
469
- /**
470
- * Set image alignment
471
- */
472
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
450
+ tableOfContents: {
451
+ setTableOfContents: () => ReturnType;
452
+ removeTableOfContents: () => ReturnType;
453
+ };
454
+ }
455
+ }
456
+
457
+
458
+ declare module '@tiptap/core' {
459
+ interface Commands<ReturnType> {
460
+ attachment: {
461
+ setAttachment: (attrs?: unknown) => ReturnType;
473
462
  };
474
463
  }
475
464
  }
@@ -492,9 +481,19 @@ declare module '@tiptap/core' {
492
481
 
493
482
  declare module '@tiptap/core' {
494
483
  interface Commands<ReturnType> {
495
- mermaid: {
496
- setMermaid: (options: any, replace?: any) => ReturnType;
497
- 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;
498
497
  };
499
498
  }
500
499
  }
@@ -502,8 +501,9 @@ declare module '@tiptap/core' {
502
501
 
503
502
  declare module '@tiptap/core' {
504
503
  interface Commands<ReturnType> {
505
- attachment: {
506
- setAttachment: (attrs?: unknown) => ReturnType;
504
+ drawer: {
505
+ setDrawer: (options: any, replace?: any) => ReturnType;
506
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
507
507
  };
508
508
  }
509
509
  }
@@ -511,9 +511,9 @@ declare module '@tiptap/core' {
511
511
 
512
512
  declare module '@tiptap/core' {
513
513
  interface Commands<ReturnType> {
514
- drawer: {
515
- setDrawer: (options: any, replace?: any) => ReturnType;
516
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => 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-DXWTenTy.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";
@@ -936,34 +936,14 @@ declare module '@tiptap/core' {
936
936
 
937
937
  declare module '@tiptap/core' {
938
938
  interface Commands<ReturnType> {
939
- lineHeight: {
940
- setLineHeight: (lineHeight: string) => ReturnType;
941
- unsetLineHeight: () => ReturnType;
942
- };
943
- }
944
- }
945
-
946
-
947
- declare module '@tiptap/core' {
948
- interface Commands<ReturnType> {
949
- tableCellBackground: {
950
- setTableCellBackground: (color: string) => ReturnType;
951
- unsetTableCellBackground: () => ReturnType;
952
- };
953
- }
954
- }
955
-
956
-
957
- declare module '@tiptap/core' {
958
- interface Commands<ReturnType> {
959
- search: {
960
- setSearchTerm: (searchTerm: string) => ReturnType;
961
- setReplaceTerm: (replaceTerm: string) => ReturnType;
962
- replace: () => ReturnType;
963
- replaceAll: () => ReturnType;
964
- goToPrevSearchResult: () => void;
965
- goToNextSearchResult: () => void;
966
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
939
+ iframe: {
940
+ /**
941
+ * Add an iframe
942
+ */
943
+ setIframe: (options: {
944
+ src: string;
945
+ service: string;
946
+ }) => ReturnType;
967
947
  };
968
948
  }
969
949
  }
@@ -998,6 +978,16 @@ declare module '@tiptap/core' {
998
978
  }
999
979
 
1000
980
 
981
+ declare module '@tiptap/core' {
982
+ interface Commands<ReturnType> {
983
+ lineHeight: {
984
+ setLineHeight: (lineHeight: string) => ReturnType;
985
+ unsetLineHeight: () => ReturnType;
986
+ };
987
+ }
988
+ }
989
+
990
+
1001
991
  declare module '@tiptap/core' {
1002
992
  interface Commands<ReturnType> {
1003
993
  emoji: {
@@ -1012,14 +1002,13 @@ declare module '@tiptap/core' {
1012
1002
 
1013
1003
  declare module '@tiptap/core' {
1014
1004
  interface Commands<ReturnType> {
1015
- iframe: {
1016
- /**
1017
- * Add an iframe
1018
- */
1019
- setIframe: (options: {
1020
- src: string;
1021
- service: string;
1005
+ columns: {
1006
+ insertColumns: (attrs?: {
1007
+ cols: number;
1022
1008
  }) => ReturnType;
1009
+ addColBefore: () => ReturnType;
1010
+ addColAfter: () => ReturnType;
1011
+ deleteCol: () => ReturnType;
1023
1012
  };
1024
1013
  }
1025
1014
  }
@@ -1027,9 +1016,9 @@ declare module '@tiptap/core' {
1027
1016
 
1028
1017
  declare module '@tiptap/core' {
1029
1018
  interface Commands<ReturnType> {
1030
- tableOfContents: {
1031
- setTableOfContents: () => ReturnType;
1032
- removeTableOfContents: () => ReturnType;
1019
+ tableCellBackground: {
1020
+ setTableCellBackground: (color: string) => ReturnType;
1021
+ unsetTableCellBackground: () => ReturnType;
1033
1022
  };
1034
1023
  }
1035
1024
  }
@@ -1037,13 +1026,14 @@ declare module '@tiptap/core' {
1037
1026
 
1038
1027
  declare module '@tiptap/core' {
1039
1028
  interface Commands<ReturnType> {
1040
- columns: {
1041
- insertColumns: (attrs?: {
1042
- cols: number;
1043
- }) => ReturnType;
1044
- addColBefore: () => ReturnType;
1045
- addColAfter: () => ReturnType;
1046
- deleteCol: () => 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;
1047
1037
  };
1048
1038
  }
1049
1039
  }
@@ -1069,19 +1059,18 @@ declare module '@tiptap/core' {
1069
1059
 
1070
1060
  declare module '@tiptap/core' {
1071
1061
  interface Commands<ReturnType> {
1072
- imageGifUpload: {
1073
- /**
1074
- * Add an image gif
1075
- */
1076
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1077
- /**
1078
- * Update an image gif
1079
- */
1080
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1081
- /**
1082
- * Set image alignment
1083
- */
1084
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1062
+ tableOfContents: {
1063
+ setTableOfContents: () => ReturnType;
1064
+ removeTableOfContents: () => ReturnType;
1065
+ };
1066
+ }
1067
+ }
1068
+
1069
+
1070
+ declare module '@tiptap/core' {
1071
+ interface Commands<ReturnType> {
1072
+ attachment: {
1073
+ setAttachment: (attrs?: unknown) => ReturnType;
1085
1074
  };
1086
1075
  }
1087
1076
  }
@@ -1104,9 +1093,19 @@ declare module '@tiptap/core' {
1104
1093
 
1105
1094
  declare module '@tiptap/core' {
1106
1095
  interface Commands<ReturnType> {
1107
- mermaid: {
1108
- setMermaid: (options: any, replace?: any) => ReturnType;
1109
- 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;
1110
1109
  };
1111
1110
  }
1112
1111
  }
@@ -1114,8 +1113,9 @@ declare module '@tiptap/core' {
1114
1113
 
1115
1114
  declare module '@tiptap/core' {
1116
1115
  interface Commands<ReturnType> {
1117
- attachment: {
1118
- setAttachment: (attrs?: unknown) => ReturnType;
1116
+ drawer: {
1117
+ setDrawer: (options: any, replace?: any) => ReturnType;
1118
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1119
1119
  };
1120
1120
  }
1121
1121
  }
@@ -1123,9 +1123,9 @@ declare module '@tiptap/core' {
1123
1123
 
1124
1124
  declare module '@tiptap/core' {
1125
1125
  interface Commands<ReturnType> {
1126
- drawer: {
1127
- setDrawer: (options: any, replace?: any) => ReturnType;
1128
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1126
+ mermaid: {
1127
+ setMermaid: (options: any, replace?: any) => ReturnType;
1128
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1129
1129
  };
1130
1130
  }
1131
1131
  }
@@ -936,34 +936,14 @@ declare module '@tiptap/core' {
936
936
 
937
937
  declare module '@tiptap/core' {
938
938
  interface Commands<ReturnType> {
939
- lineHeight: {
940
- setLineHeight: (lineHeight: string) => ReturnType;
941
- unsetLineHeight: () => ReturnType;
942
- };
943
- }
944
- }
945
-
946
-
947
- declare module '@tiptap/core' {
948
- interface Commands<ReturnType> {
949
- tableCellBackground: {
950
- setTableCellBackground: (color: string) => ReturnType;
951
- unsetTableCellBackground: () => ReturnType;
952
- };
953
- }
954
- }
955
-
956
-
957
- declare module '@tiptap/core' {
958
- interface Commands<ReturnType> {
959
- search: {
960
- setSearchTerm: (searchTerm: string) => ReturnType;
961
- setReplaceTerm: (replaceTerm: string) => ReturnType;
962
- replace: () => ReturnType;
963
- replaceAll: () => ReturnType;
964
- goToPrevSearchResult: () => void;
965
- goToNextSearchResult: () => void;
966
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
939
+ iframe: {
940
+ /**
941
+ * Add an iframe
942
+ */
943
+ setIframe: (options: {
944
+ src: string;
945
+ service: string;
946
+ }) => ReturnType;
967
947
  };
968
948
  }
969
949
  }
@@ -998,6 +978,16 @@ declare module '@tiptap/core' {
998
978
  }
999
979
 
1000
980
 
981
+ declare module '@tiptap/core' {
982
+ interface Commands<ReturnType> {
983
+ lineHeight: {
984
+ setLineHeight: (lineHeight: string) => ReturnType;
985
+ unsetLineHeight: () => ReturnType;
986
+ };
987
+ }
988
+ }
989
+
990
+
1001
991
  declare module '@tiptap/core' {
1002
992
  interface Commands<ReturnType> {
1003
993
  emoji: {
@@ -1012,14 +1002,13 @@ declare module '@tiptap/core' {
1012
1002
 
1013
1003
  declare module '@tiptap/core' {
1014
1004
  interface Commands<ReturnType> {
1015
- iframe: {
1016
- /**
1017
- * Add an iframe
1018
- */
1019
- setIframe: (options: {
1020
- src: string;
1021
- service: string;
1005
+ columns: {
1006
+ insertColumns: (attrs?: {
1007
+ cols: number;
1022
1008
  }) => ReturnType;
1009
+ addColBefore: () => ReturnType;
1010
+ addColAfter: () => ReturnType;
1011
+ deleteCol: () => ReturnType;
1023
1012
  };
1024
1013
  }
1025
1014
  }
@@ -1027,9 +1016,9 @@ declare module '@tiptap/core' {
1027
1016
 
1028
1017
  declare module '@tiptap/core' {
1029
1018
  interface Commands<ReturnType> {
1030
- tableOfContents: {
1031
- setTableOfContents: () => ReturnType;
1032
- removeTableOfContents: () => ReturnType;
1019
+ tableCellBackground: {
1020
+ setTableCellBackground: (color: string) => ReturnType;
1021
+ unsetTableCellBackground: () => ReturnType;
1033
1022
  };
1034
1023
  }
1035
1024
  }
@@ -1037,13 +1026,14 @@ declare module '@tiptap/core' {
1037
1026
 
1038
1027
  declare module '@tiptap/core' {
1039
1028
  interface Commands<ReturnType> {
1040
- columns: {
1041
- insertColumns: (attrs?: {
1042
- cols: number;
1043
- }) => ReturnType;
1044
- addColBefore: () => ReturnType;
1045
- addColAfter: () => ReturnType;
1046
- deleteCol: () => 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;
1047
1037
  };
1048
1038
  }
1049
1039
  }
@@ -1069,19 +1059,18 @@ declare module '@tiptap/core' {
1069
1059
 
1070
1060
  declare module '@tiptap/core' {
1071
1061
  interface Commands<ReturnType> {
1072
- imageGifUpload: {
1073
- /**
1074
- * Add an image gif
1075
- */
1076
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1077
- /**
1078
- * Update an image gif
1079
- */
1080
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1081
- /**
1082
- * Set image alignment
1083
- */
1084
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1062
+ tableOfContents: {
1063
+ setTableOfContents: () => ReturnType;
1064
+ removeTableOfContents: () => ReturnType;
1065
+ };
1066
+ }
1067
+ }
1068
+
1069
+
1070
+ declare module '@tiptap/core' {
1071
+ interface Commands<ReturnType> {
1072
+ attachment: {
1073
+ setAttachment: (attrs?: unknown) => ReturnType;
1085
1074
  };
1086
1075
  }
1087
1076
  }
@@ -1104,9 +1093,19 @@ declare module '@tiptap/core' {
1104
1093
 
1105
1094
  declare module '@tiptap/core' {
1106
1095
  interface Commands<ReturnType> {
1107
- mermaid: {
1108
- setMermaid: (options: any, replace?: any) => ReturnType;
1109
- 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;
1110
1109
  };
1111
1110
  }
1112
1111
  }
@@ -1114,8 +1113,9 @@ declare module '@tiptap/core' {
1114
1113
 
1115
1114
  declare module '@tiptap/core' {
1116
1115
  interface Commands<ReturnType> {
1117
- attachment: {
1118
- setAttachment: (attrs?: unknown) => ReturnType;
1116
+ drawer: {
1117
+ setDrawer: (options: any, replace?: any) => ReturnType;
1118
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1119
1119
  };
1120
1120
  }
1121
1121
  }
@@ -1123,9 +1123,9 @@ declare module '@tiptap/core' {
1123
1123
 
1124
1124
  declare module '@tiptap/core' {
1125
1125
  interface Commands<ReturnType> {
1126
- drawer: {
1127
- setDrawer: (options: any, replace?: any) => ReturnType;
1128
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => 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.40",
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
+ }