reactjs-tiptap-editor 0.2.24 → 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.
@@ -729,26 +729,6 @@ declare module '@tiptap/core' {
729
729
  }
730
730
 
731
731
 
732
- declare module '@tiptap/core' {
733
- interface Commands<ReturnType> {
734
- imageUpload: {
735
- /**
736
- * Add an image
737
- */
738
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
739
- /**
740
- * Update an image
741
- */
742
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
743
- /**
744
- * Set image alignment
745
- */
746
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
747
- };
748
- }
749
- }
750
-
751
-
752
732
  declare module '@tiptap/core' {
753
733
  interface Commands<ReturnType> {
754
734
  indent: {
@@ -777,9 +757,19 @@ declare module '@tiptap/core' {
777
757
 
778
758
  declare module '@tiptap/core' {
779
759
  interface Commands<ReturnType> {
780
- tableCellBackground: {
781
- setTableCellBackground: (color: string) => ReturnType;
782
- unsetTableCellBackground: () => ReturnType;
760
+ imageUpload: {
761
+ /**
762
+ * Add an image
763
+ */
764
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
765
+ /**
766
+ * Update an image
767
+ */
768
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
769
+ /**
770
+ * Set image alignment
771
+ */
772
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
783
773
  };
784
774
  }
785
775
  }
@@ -825,11 +815,9 @@ declare module '@tiptap/core' {
825
815
 
826
816
  declare module '@tiptap/core' {
827
817
  interface Commands<ReturnType> {
828
- emoji: {
829
- setEmoji: (emoji: {
830
- name: string;
831
- emoji: string;
832
- }) => ReturnType;
818
+ tableCellBackground: {
819
+ setTableCellBackground: (color: string) => ReturnType;
820
+ unsetTableCellBackground: () => ReturnType;
833
821
  };
834
822
  }
835
823
  }
@@ -852,9 +840,8 @@ declare module '@tiptap/core' {
852
840
 
853
841
  declare module '@tiptap/core' {
854
842
  interface Commands<ReturnType> {
855
- tableOfContents: {
856
- setTableOfContents: () => ReturnType;
857
- removeTableOfContents: () => ReturnType;
843
+ katex: {
844
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
858
845
  };
859
846
  }
860
847
  }
@@ -862,8 +849,11 @@ declare module '@tiptap/core' {
862
849
 
863
850
  declare module '@tiptap/core' {
864
851
  interface Commands<ReturnType> {
865
- katex: {
866
- setKatex: (arg?: IKatexAttrs) => ReturnType;
852
+ emoji: {
853
+ setEmoji: (emoji: {
854
+ name: string;
855
+ emoji: string;
856
+ }) => ReturnType;
867
857
  };
868
858
  }
869
859
  }
@@ -880,19 +870,8 @@ declare module '@tiptap/core' {
880
870
 
881
871
  declare module '@tiptap/core' {
882
872
  interface Commands<ReturnType> {
883
- imageGifUpload: {
884
- /**
885
- * Add an image gif
886
- */
887
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
888
- /**
889
- * Update an image gif
890
- */
891
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
892
- /**
893
- * Set image alignment
894
- */
895
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
873
+ excalidraw: {
874
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
896
875
  };
897
876
  }
898
877
  }
@@ -900,9 +879,9 @@ declare module '@tiptap/core' {
900
879
 
901
880
  declare module '@tiptap/core' {
902
881
  interface Commands<ReturnType> {
903
- mermaid: {
904
- setMermaid: (options: any, replace?: any) => ReturnType;
905
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
882
+ tableOfContents: {
883
+ setTableOfContents: () => ReturnType;
884
+ removeTableOfContents: () => ReturnType;
906
885
  };
907
886
  }
908
887
  }
@@ -919,8 +898,19 @@ declare module '@tiptap/core' {
919
898
 
920
899
  declare module '@tiptap/core' {
921
900
  interface Commands<ReturnType> {
922
- excalidraw: {
923
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
901
+ imageGifUpload: {
902
+ /**
903
+ * Add an image gif
904
+ */
905
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
906
+ /**
907
+ * Update an image gif
908
+ */
909
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
910
+ /**
911
+ * Set image alignment
912
+ */
913
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
924
914
  };
925
915
  }
926
916
  }
@@ -928,9 +918,9 @@ declare module '@tiptap/core' {
928
918
 
929
919
  declare module '@tiptap/core' {
930
920
  interface Commands<ReturnType> {
931
- drawer: {
932
- setDrawer: (options: any, replace?: any) => ReturnType;
933
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
921
+ mermaid: {
922
+ setMermaid: (options: any, replace?: any) => ReturnType;
923
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
934
924
  };
935
925
  }
936
926
  }
@@ -949,3 +939,13 @@ declare module '@tiptap/core' {
949
939
  };
950
940
  }
951
941
  }
942
+
943
+
944
+ declare module '@tiptap/core' {
945
+ interface Commands<ReturnType> {
946
+ drawer: {
947
+ setDrawer: (options: any, replace?: any) => ReturnType;
948
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
949
+ };
950
+ }
951
+ }
@@ -729,26 +729,6 @@ declare module '@tiptap/core' {
729
729
  }
730
730
 
731
731
 
732
- declare module '@tiptap/core' {
733
- interface Commands<ReturnType> {
734
- imageUpload: {
735
- /**
736
- * Add an image
737
- */
738
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
739
- /**
740
- * Update an image
741
- */
742
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
743
- /**
744
- * Set image alignment
745
- */
746
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
747
- };
748
- }
749
- }
750
-
751
-
752
732
  declare module '@tiptap/core' {
753
733
  interface Commands<ReturnType> {
754
734
  indent: {
@@ -777,9 +757,19 @@ declare module '@tiptap/core' {
777
757
 
778
758
  declare module '@tiptap/core' {
779
759
  interface Commands<ReturnType> {
780
- tableCellBackground: {
781
- setTableCellBackground: (color: string) => ReturnType;
782
- unsetTableCellBackground: () => ReturnType;
760
+ imageUpload: {
761
+ /**
762
+ * Add an image
763
+ */
764
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
765
+ /**
766
+ * Update an image
767
+ */
768
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
769
+ /**
770
+ * Set image alignment
771
+ */
772
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
783
773
  };
784
774
  }
785
775
  }
@@ -825,11 +815,9 @@ declare module '@tiptap/core' {
825
815
 
826
816
  declare module '@tiptap/core' {
827
817
  interface Commands<ReturnType> {
828
- emoji: {
829
- setEmoji: (emoji: {
830
- name: string;
831
- emoji: string;
832
- }) => ReturnType;
818
+ tableCellBackground: {
819
+ setTableCellBackground: (color: string) => ReturnType;
820
+ unsetTableCellBackground: () => ReturnType;
833
821
  };
834
822
  }
835
823
  }
@@ -852,9 +840,8 @@ declare module '@tiptap/core' {
852
840
 
853
841
  declare module '@tiptap/core' {
854
842
  interface Commands<ReturnType> {
855
- tableOfContents: {
856
- setTableOfContents: () => ReturnType;
857
- removeTableOfContents: () => ReturnType;
843
+ katex: {
844
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
858
845
  };
859
846
  }
860
847
  }
@@ -862,8 +849,11 @@ declare module '@tiptap/core' {
862
849
 
863
850
  declare module '@tiptap/core' {
864
851
  interface Commands<ReturnType> {
865
- katex: {
866
- setKatex: (arg?: IKatexAttrs) => ReturnType;
852
+ emoji: {
853
+ setEmoji: (emoji: {
854
+ name: string;
855
+ emoji: string;
856
+ }) => ReturnType;
867
857
  };
868
858
  }
869
859
  }
@@ -880,19 +870,8 @@ declare module '@tiptap/core' {
880
870
 
881
871
  declare module '@tiptap/core' {
882
872
  interface Commands<ReturnType> {
883
- imageGifUpload: {
884
- /**
885
- * Add an image gif
886
- */
887
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
888
- /**
889
- * Update an image gif
890
- */
891
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
892
- /**
893
- * Set image alignment
894
- */
895
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
873
+ excalidraw: {
874
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
896
875
  };
897
876
  }
898
877
  }
@@ -900,9 +879,9 @@ declare module '@tiptap/core' {
900
879
 
901
880
  declare module '@tiptap/core' {
902
881
  interface Commands<ReturnType> {
903
- mermaid: {
904
- setMermaid: (options: any, replace?: any) => ReturnType;
905
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
882
+ tableOfContents: {
883
+ setTableOfContents: () => ReturnType;
884
+ removeTableOfContents: () => ReturnType;
906
885
  };
907
886
  }
908
887
  }
@@ -919,8 +898,19 @@ declare module '@tiptap/core' {
919
898
 
920
899
  declare module '@tiptap/core' {
921
900
  interface Commands<ReturnType> {
922
- excalidraw: {
923
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
901
+ imageGifUpload: {
902
+ /**
903
+ * Add an image gif
904
+ */
905
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
906
+ /**
907
+ * Update an image gif
908
+ */
909
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
910
+ /**
911
+ * Set image alignment
912
+ */
913
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
924
914
  };
925
915
  }
926
916
  }
@@ -928,9 +918,9 @@ declare module '@tiptap/core' {
928
918
 
929
919
  declare module '@tiptap/core' {
930
920
  interface Commands<ReturnType> {
931
- drawer: {
932
- setDrawer: (options: any, replace?: any) => ReturnType;
933
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
921
+ mermaid: {
922
+ setMermaid: (options: any, replace?: any) => ReturnType;
923
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
934
924
  };
935
925
  }
936
926
  }
@@ -949,3 +939,13 @@ declare module '@tiptap/core' {
949
939
  };
950
940
  }
951
941
  }
942
+
943
+
944
+ declare module '@tiptap/core' {
945
+ interface Commands<ReturnType> {
946
+ drawer: {
947
+ setDrawer: (options: any, replace?: any) => ReturnType;
948
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
949
+ };
950
+ }
951
+ }
@@ -1,8 +1,8 @@
1
- import { a as ft, I as _t, U as gt, S as bt, C as xt, N as ae, b as oe, t as qe, R as Le, m as re, F as wt, H as pt, T as yt, E as C, c as vt, d as kt, e as Ct, O as Nt, f as At, g as Tt, h as St, L as Lt, i as Et, j as Ht, k as zt, D as Mt, P as Rt, l as It, n as Pt, G as jt, o as Bt, p as Ot, q as Dt, r as $t, s as Ft, u as qt, v as nt, w as it, x as at, y as Ee, z as Ut, A as Kt, J as Vt, K as Wt, M as Gt } from "./tiptap-CXio79KB.js";
2
- import { u as I, D as Zt, f as Jt, g as Ue, h as N, i as ot, j as Yt, T as le, k as de, m as ue } from "./index-BlV5SJJW.js";
3
- import { i as He, T as xe, a as we, B as K, b as pe, g as ze, A as x, c as E, u as Me, j as Qt, k as A, l as Z, m as J, n as Y, o as Q, p as rt, q as Ne, r as Xt, s as Re, P as X, t as ee, v as te, w as Ie, x as en, H as tn, L as nn, C as an, M as on, y as rn, z as Ke, F as he, G as U, J as j, I as sn, N as cn, V as ln, O as Ve, Q as ve, S as We, U as dn, W as un, X as hn, Y as P, Z as mn, _ as fn, $ as _n, a0 as gn, a1 as bn, a2 as st } from "./RichTextEditor-C_dIT2FZ.js";
4
- import { D as Lo, E as Eo, d as Ho, e as zo, K as Mo, f as Ro, h as Io } from "./RichTextEditor-C_dIT2FZ.js";
5
- import { al as xn, am as wn, an as pn, ao as yn, ap as vn, aq as kn, ar as Cn, as as Nn, at as R, au as An, P as se, T as ct, b as ne, $ as ge, a0 as be, A as Tn, a4 as Sn, av as Ln, aw as En } from "./vendor-VlEklMUJ.js";
1
+ import { a as ft, I as _t, U as gt, S as bt, C as xt, N as ae, b as oe, t as qe, R as Le, m as re, F as wt, H as pt, T as yt, E as C, c as vt, d as kt, e as Ct, O as Nt, f as At, g as Tt, h as St, L as Lt, i as Et, j as Ht, k as zt, D as Mt, P as Rt, l as It, n as Pt, G as jt, o as Bt, p as Ot, q as Dt, r as $t, s as Ft, u as qt, v as nt, w as it, x as at, y as Ee, z as Ut, A as Kt, J as Vt, K as Wt, M as Gt } from "./tiptap-DOP8lVCQ.js";
2
+ import { u as I, D as Zt, f as Jt, g as Ue, h as N, i as ot, j as Yt, T as le, k as de, m as ue } from "./index-CO-iymkb.js";
3
+ import { i as He, T as xe, a as we, B as K, b as pe, g as ze, A as x, c as E, u as Me, j as Qt, k as A, l as Z, m as J, n as Y, o as Q, p as rt, q as Ne, r as Xt, s as Re, P as X, t as ee, v as te, w as Ie, x as en, H as tn, L as nn, C as an, M as on, y as rn, z as Ke, F as he, G as U, J as j, I as sn, N as cn, V as ln, O as Ve, Q as ve, S as We, U as dn, W as un, X as hn, Y as P, Z as mn, _ as fn, $ as _n, a0 as gn, a1 as bn, a2 as st } from "./RichTextEditor-DH6J2is9.js";
4
+ import { D as Lo, E as Eo, d as Ho, e as zo, K as Mo, f as Ro, h as Io } from "./RichTextEditor-DH6J2is9.js";
5
+ import { al as xn, am as wn, an as pn, ao as yn, ap as vn, aq as kn, ar as Cn, as as Nn, at as R, au as An, P as se, T as ct, b as ne, $ as ge, a0 as be, A as Tn, a4 as Sn, av as Ln, aw as En } from "./vendor-BbgkyoD-.js";
6
6
  import Pe from "tippy.js";
7
7
  import { Packer as Hn, WidthType as zn } from "docx";
8
8
  import { DocxSerializer as Mn, defaultNodes as F, defaultMarks as Rn } from "prosemirror-docx";
@@ -339,7 +339,7 @@ function Xn(e) {
339
339
  "div",
340
340
  {
341
341
  ref: n,
342
- className: R("richtext-node-container richtext-hover-shadow richtext-select-outline richtext-node-code-block", {
342
+ className: R("richtext-node-container richtext-hover-shadow richtext-select-outline richtext-node-code-block !richtext-my-[10px]", {
343
343
  [Ze.blockInfoEditable]: !t
344
344
  }),
345
345
  children: /* @__PURE__ */ m("div", { className: "richtext-code-block-toolbar", children: [
@@ -2,7 +2,7 @@ var p = Object.defineProperty;
2
2
  var s = (e, t, o) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
3
3
  var a = (e, t, o) => s(e, typeof t != "symbol" ? t + "" : t, o);
4
4
  import { useMemo as m, useEffect as g } from "react";
5
- import { aj as u, ak as c } from "./vendor-VlEklMUJ.js";
5
+ import { aj as u, ak as c } from "./vendor-BbgkyoD-.js";
6
6
  const h = "en", b = 200, E = b - 80, L = 20, S = 1e5, w = 16, B = 10, R = 10, I = 2, W = [
7
7
  "#000000",
8
8
  "#262626",
package/lib/index.d.cts CHANGED
@@ -298,26 +298,6 @@ declare module '@tiptap/core' {
298
298
  }
299
299
 
300
300
 
301
- declare module '@tiptap/core' {
302
- interface Commands<ReturnType> {
303
- imageUpload: {
304
- /**
305
- * Add an image
306
- */
307
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
308
- /**
309
- * Update an image
310
- */
311
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
312
- /**
313
- * Set image alignment
314
- */
315
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
316
- };
317
- }
318
- }
319
-
320
-
321
301
  declare module '@tiptap/core' {
322
302
  interface Commands<ReturnType> {
323
303
  indent: {
@@ -346,9 +326,19 @@ declare module '@tiptap/core' {
346
326
 
347
327
  declare module '@tiptap/core' {
348
328
  interface Commands<ReturnType> {
349
- tableCellBackground: {
350
- setTableCellBackground: (color: string) => ReturnType;
351
- unsetTableCellBackground: () => ReturnType;
329
+ imageUpload: {
330
+ /**
331
+ * Add an image
332
+ */
333
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
334
+ /**
335
+ * Update an image
336
+ */
337
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
338
+ /**
339
+ * Set image alignment
340
+ */
341
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
352
342
  };
353
343
  }
354
344
  }
@@ -394,11 +384,9 @@ declare module '@tiptap/core' {
394
384
 
395
385
  declare module '@tiptap/core' {
396
386
  interface Commands<ReturnType> {
397
- emoji: {
398
- setEmoji: (emoji: {
399
- name: string;
400
- emoji: string;
401
- }) => ReturnType;
387
+ tableCellBackground: {
388
+ setTableCellBackground: (color: string) => ReturnType;
389
+ unsetTableCellBackground: () => ReturnType;
402
390
  };
403
391
  }
404
392
  }
@@ -421,9 +409,8 @@ declare module '@tiptap/core' {
421
409
 
422
410
  declare module '@tiptap/core' {
423
411
  interface Commands<ReturnType> {
424
- tableOfContents: {
425
- setTableOfContents: () => ReturnType;
426
- removeTableOfContents: () => ReturnType;
412
+ katex: {
413
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
427
414
  };
428
415
  }
429
416
  }
@@ -431,8 +418,11 @@ declare module '@tiptap/core' {
431
418
 
432
419
  declare module '@tiptap/core' {
433
420
  interface Commands<ReturnType> {
434
- katex: {
435
- setKatex: (arg?: IKatexAttrs) => ReturnType;
421
+ emoji: {
422
+ setEmoji: (emoji: {
423
+ name: string;
424
+ emoji: string;
425
+ }) => ReturnType;
436
426
  };
437
427
  }
438
428
  }
@@ -449,19 +439,8 @@ declare module '@tiptap/core' {
449
439
 
450
440
  declare module '@tiptap/core' {
451
441
  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;
442
+ excalidraw: {
443
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
465
444
  };
466
445
  }
467
446
  }
@@ -469,9 +448,9 @@ declare module '@tiptap/core' {
469
448
 
470
449
  declare module '@tiptap/core' {
471
450
  interface Commands<ReturnType> {
472
- mermaid: {
473
- setMermaid: (options: any, replace?: any) => ReturnType;
474
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
451
+ tableOfContents: {
452
+ setTableOfContents: () => ReturnType;
453
+ removeTableOfContents: () => ReturnType;
475
454
  };
476
455
  }
477
456
  }
@@ -488,8 +467,19 @@ declare module '@tiptap/core' {
488
467
 
489
468
  declare module '@tiptap/core' {
490
469
  interface Commands<ReturnType> {
491
- excalidraw: {
492
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
470
+ imageGifUpload: {
471
+ /**
472
+ * Add an image gif
473
+ */
474
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
475
+ /**
476
+ * Update an image gif
477
+ */
478
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
479
+ /**
480
+ * Set image alignment
481
+ */
482
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
493
483
  };
494
484
  }
495
485
  }
@@ -497,9 +487,9 @@ declare module '@tiptap/core' {
497
487
 
498
488
  declare module '@tiptap/core' {
499
489
  interface Commands<ReturnType> {
500
- drawer: {
501
- setDrawer: (options: any, replace?: any) => ReturnType;
502
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
490
+ mermaid: {
491
+ setMermaid: (options: any, replace?: any) => ReturnType;
492
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
503
493
  };
504
494
  }
505
495
  }
@@ -518,3 +508,13 @@ declare module '@tiptap/core' {
518
508
  };
519
509
  }
520
510
  }
511
+
512
+
513
+ declare module '@tiptap/core' {
514
+ interface Commands<ReturnType> {
515
+ drawer: {
516
+ setDrawer: (options: any, replace?: any) => ReturnType;
517
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
518
+ };
519
+ }
520
+ }