reactjs-tiptap-editor-pro 0.2.34 → 0.2.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.
@@ -723,6 +723,16 @@ declare module '@tiptap/core' {
723
723
  }
724
724
 
725
725
 
726
+ declare module '@tiptap/core' {
727
+ interface Commands<ReturnType> {
728
+ lineHeight: {
729
+ setLineHeight: (lineHeight: string) => ReturnType;
730
+ unsetLineHeight: () => ReturnType;
731
+ };
732
+ }
733
+ }
734
+
735
+
726
736
  declare module '@tiptap/core' {
727
737
  interface Commands<ReturnType> {
728
738
  imageUpload: {
@@ -759,9 +769,8 @@ declare module '@tiptap/core' {
759
769
 
760
770
  declare module '@tiptap/core' {
761
771
  interface Commands<ReturnType> {
762
- lineHeight: {
763
- setLineHeight: (lineHeight: string) => ReturnType;
764
- unsetLineHeight: () => ReturnType;
772
+ painter: {
773
+ setPainter: (marks: Mark[]) => ReturnType;
765
774
  };
766
775
  }
767
776
  }
@@ -795,8 +804,14 @@ declare module '@tiptap/core' {
795
804
 
796
805
  declare module '@tiptap/core' {
797
806
  interface Commands<ReturnType> {
798
- painter: {
799
- setPainter: (marks: Mark[]) => ReturnType;
807
+ search: {
808
+ setSearchTerm: (searchTerm: string) => ReturnType;
809
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
810
+ replace: () => ReturnType;
811
+ replaceAll: () => ReturnType;
812
+ goToPrevSearchResult: () => void;
813
+ goToNextSearchResult: () => void;
814
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
800
815
  };
801
816
  }
802
817
  }
@@ -804,14 +819,9 @@ declare module '@tiptap/core' {
804
819
 
805
820
  declare module '@tiptap/core' {
806
821
  interface Commands<ReturnType> {
807
- iframe: {
808
- /**
809
- * Add an iframe
810
- */
811
- setIframe: (options: {
812
- src: string;
813
- service: string;
814
- }) => ReturnType;
822
+ tableOfContents: {
823
+ setTableOfContents: () => ReturnType;
824
+ removeTableOfContents: () => ReturnType;
815
825
  };
816
826
  }
817
827
  }
@@ -828,10 +838,13 @@ declare module '@tiptap/core' {
828
838
 
829
839
  declare module '@tiptap/core' {
830
840
  interface Commands<ReturnType> {
831
- emoji: {
832
- setEmoji: (emoji: {
833
- name: string;
834
- emoji: string;
841
+ iframe: {
842
+ /**
843
+ * Add an iframe
844
+ */
845
+ setIframe: (options: {
846
+ src: string;
847
+ service: string;
835
848
  }) => ReturnType;
836
849
  };
837
850
  }
@@ -840,14 +853,19 @@ declare module '@tiptap/core' {
840
853
 
841
854
  declare module '@tiptap/core' {
842
855
  interface Commands<ReturnType> {
843
- search: {
844
- setSearchTerm: (searchTerm: string) => ReturnType;
845
- setReplaceTerm: (replaceTerm: string) => ReturnType;
846
- replace: () => ReturnType;
847
- replaceAll: () => ReturnType;
848
- goToPrevSearchResult: () => void;
849
- goToNextSearchResult: () => void;
850
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
856
+ imageGifUpload: {
857
+ /**
858
+ * Add an image gif
859
+ */
860
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
861
+ /**
862
+ * Update an image gif
863
+ */
864
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
865
+ /**
866
+ * Set image alignment
867
+ */
868
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
851
869
  };
852
870
  }
853
871
  }
@@ -864,18 +882,9 @@ declare module '@tiptap/core' {
864
882
 
865
883
  declare module '@tiptap/core' {
866
884
  interface Commands<ReturnType> {
867
- tableOfContents: {
868
- setTableOfContents: () => ReturnType;
869
- removeTableOfContents: () => ReturnType;
870
- };
871
- }
872
- }
873
-
874
-
875
- declare module '@tiptap/core' {
876
- interface Commands<ReturnType> {
877
- attachment: {
878
- setAttachment: (attrs?: unknown) => ReturnType;
885
+ mermaid: {
886
+ setMermaid: (options: any, replace?: any) => ReturnType;
887
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
879
888
  };
880
889
  }
881
890
  }
@@ -893,19 +902,11 @@ declare module '@tiptap/core' {
893
902
 
894
903
  declare module '@tiptap/core' {
895
904
  interface Commands<ReturnType> {
896
- imageGifUpload: {
897
- /**
898
- * Add an image gif
899
- */
900
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
901
- /**
902
- * Update an image gif
903
- */
904
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
905
- /**
906
- * Set image alignment
907
- */
908
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
905
+ emoji: {
906
+ setEmoji: (emoji: {
907
+ name: string;
908
+ emoji: string;
909
+ }) => ReturnType;
909
910
  };
910
911
  }
911
912
  }
@@ -928,9 +929,8 @@ declare module '@tiptap/core' {
928
929
 
929
930
  declare module '@tiptap/core' {
930
931
  interface Commands<ReturnType> {
931
- mermaid: {
932
- setMermaid: (options: any, replace?: any) => ReturnType;
933
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
932
+ attachment: {
933
+ setAttachment: (attrs?: unknown) => ReturnType;
934
934
  };
935
935
  }
936
936
  }
@@ -723,6 +723,16 @@ declare module '@tiptap/core' {
723
723
  }
724
724
 
725
725
 
726
+ declare module '@tiptap/core' {
727
+ interface Commands<ReturnType> {
728
+ lineHeight: {
729
+ setLineHeight: (lineHeight: string) => ReturnType;
730
+ unsetLineHeight: () => ReturnType;
731
+ };
732
+ }
733
+ }
734
+
735
+
726
736
  declare module '@tiptap/core' {
727
737
  interface Commands<ReturnType> {
728
738
  imageUpload: {
@@ -759,9 +769,8 @@ declare module '@tiptap/core' {
759
769
 
760
770
  declare module '@tiptap/core' {
761
771
  interface Commands<ReturnType> {
762
- lineHeight: {
763
- setLineHeight: (lineHeight: string) => ReturnType;
764
- unsetLineHeight: () => ReturnType;
772
+ painter: {
773
+ setPainter: (marks: Mark[]) => ReturnType;
765
774
  };
766
775
  }
767
776
  }
@@ -795,8 +804,14 @@ declare module '@tiptap/core' {
795
804
 
796
805
  declare module '@tiptap/core' {
797
806
  interface Commands<ReturnType> {
798
- painter: {
799
- setPainter: (marks: Mark[]) => ReturnType;
807
+ search: {
808
+ setSearchTerm: (searchTerm: string) => ReturnType;
809
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
810
+ replace: () => ReturnType;
811
+ replaceAll: () => ReturnType;
812
+ goToPrevSearchResult: () => void;
813
+ goToNextSearchResult: () => void;
814
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
800
815
  };
801
816
  }
802
817
  }
@@ -804,14 +819,9 @@ declare module '@tiptap/core' {
804
819
 
805
820
  declare module '@tiptap/core' {
806
821
  interface Commands<ReturnType> {
807
- iframe: {
808
- /**
809
- * Add an iframe
810
- */
811
- setIframe: (options: {
812
- src: string;
813
- service: string;
814
- }) => ReturnType;
822
+ tableOfContents: {
823
+ setTableOfContents: () => ReturnType;
824
+ removeTableOfContents: () => ReturnType;
815
825
  };
816
826
  }
817
827
  }
@@ -828,10 +838,13 @@ declare module '@tiptap/core' {
828
838
 
829
839
  declare module '@tiptap/core' {
830
840
  interface Commands<ReturnType> {
831
- emoji: {
832
- setEmoji: (emoji: {
833
- name: string;
834
- emoji: string;
841
+ iframe: {
842
+ /**
843
+ * Add an iframe
844
+ */
845
+ setIframe: (options: {
846
+ src: string;
847
+ service: string;
835
848
  }) => ReturnType;
836
849
  };
837
850
  }
@@ -840,14 +853,19 @@ declare module '@tiptap/core' {
840
853
 
841
854
  declare module '@tiptap/core' {
842
855
  interface Commands<ReturnType> {
843
- search: {
844
- setSearchTerm: (searchTerm: string) => ReturnType;
845
- setReplaceTerm: (replaceTerm: string) => ReturnType;
846
- replace: () => ReturnType;
847
- replaceAll: () => ReturnType;
848
- goToPrevSearchResult: () => void;
849
- goToNextSearchResult: () => void;
850
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
856
+ imageGifUpload: {
857
+ /**
858
+ * Add an image gif
859
+ */
860
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
861
+ /**
862
+ * Update an image gif
863
+ */
864
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
865
+ /**
866
+ * Set image alignment
867
+ */
868
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
851
869
  };
852
870
  }
853
871
  }
@@ -864,18 +882,9 @@ declare module '@tiptap/core' {
864
882
 
865
883
  declare module '@tiptap/core' {
866
884
  interface Commands<ReturnType> {
867
- tableOfContents: {
868
- setTableOfContents: () => ReturnType;
869
- removeTableOfContents: () => ReturnType;
870
- };
871
- }
872
- }
873
-
874
-
875
- declare module '@tiptap/core' {
876
- interface Commands<ReturnType> {
877
- attachment: {
878
- setAttachment: (attrs?: unknown) => ReturnType;
885
+ mermaid: {
886
+ setMermaid: (options: any, replace?: any) => ReturnType;
887
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
879
888
  };
880
889
  }
881
890
  }
@@ -893,19 +902,11 @@ declare module '@tiptap/core' {
893
902
 
894
903
  declare module '@tiptap/core' {
895
904
  interface Commands<ReturnType> {
896
- imageGifUpload: {
897
- /**
898
- * Add an image gif
899
- */
900
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
901
- /**
902
- * Update an image gif
903
- */
904
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
905
- /**
906
- * Set image alignment
907
- */
908
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
905
+ emoji: {
906
+ setEmoji: (emoji: {
907
+ name: string;
908
+ emoji: string;
909
+ }) => ReturnType;
909
910
  };
910
911
  }
911
912
  }
@@ -928,9 +929,8 @@ declare module '@tiptap/core' {
928
929
 
929
930
  declare module '@tiptap/core' {
930
931
  interface Commands<ReturnType> {
931
- mermaid: {
932
- setMermaid: (options: any, replace?: any) => ReturnType;
933
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
932
+ attachment: {
933
+ setAttachment: (attrs?: unknown) => ReturnType;
934
934
  };
935
935
  }
936
936
  }
package/lib/index.d.cts CHANGED
@@ -291,6 +291,16 @@ declare module '@tiptap/core' {
291
291
  }
292
292
 
293
293
 
294
+ declare module '@tiptap/core' {
295
+ interface Commands<ReturnType> {
296
+ lineHeight: {
297
+ setLineHeight: (lineHeight: string) => ReturnType;
298
+ unsetLineHeight: () => ReturnType;
299
+ };
300
+ }
301
+ }
302
+
303
+
294
304
  declare module '@tiptap/core' {
295
305
  interface Commands<ReturnType> {
296
306
  imageUpload: {
@@ -327,9 +337,8 @@ declare module '@tiptap/core' {
327
337
 
328
338
  declare module '@tiptap/core' {
329
339
  interface Commands<ReturnType> {
330
- lineHeight: {
331
- setLineHeight: (lineHeight: string) => ReturnType;
332
- unsetLineHeight: () => ReturnType;
340
+ painter: {
341
+ setPainter: (marks: Mark[]) => ReturnType;
333
342
  };
334
343
  }
335
344
  }
@@ -363,8 +372,14 @@ declare module '@tiptap/core' {
363
372
 
364
373
  declare module '@tiptap/core' {
365
374
  interface Commands<ReturnType> {
366
- painter: {
367
- setPainter: (marks: Mark[]) => ReturnType;
375
+ search: {
376
+ setSearchTerm: (searchTerm: string) => ReturnType;
377
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
378
+ replace: () => ReturnType;
379
+ replaceAll: () => ReturnType;
380
+ goToPrevSearchResult: () => void;
381
+ goToNextSearchResult: () => void;
382
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
368
383
  };
369
384
  }
370
385
  }
@@ -372,14 +387,9 @@ declare module '@tiptap/core' {
372
387
 
373
388
  declare module '@tiptap/core' {
374
389
  interface Commands<ReturnType> {
375
- iframe: {
376
- /**
377
- * Add an iframe
378
- */
379
- setIframe: (options: {
380
- src: string;
381
- service: string;
382
- }) => ReturnType;
390
+ tableOfContents: {
391
+ setTableOfContents: () => ReturnType;
392
+ removeTableOfContents: () => ReturnType;
383
393
  };
384
394
  }
385
395
  }
@@ -396,10 +406,13 @@ declare module '@tiptap/core' {
396
406
 
397
407
  declare module '@tiptap/core' {
398
408
  interface Commands<ReturnType> {
399
- emoji: {
400
- setEmoji: (emoji: {
401
- name: string;
402
- emoji: string;
409
+ iframe: {
410
+ /**
411
+ * Add an iframe
412
+ */
413
+ setIframe: (options: {
414
+ src: string;
415
+ service: string;
403
416
  }) => ReturnType;
404
417
  };
405
418
  }
@@ -408,14 +421,19 @@ declare module '@tiptap/core' {
408
421
 
409
422
  declare module '@tiptap/core' {
410
423
  interface Commands<ReturnType> {
411
- search: {
412
- setSearchTerm: (searchTerm: string) => ReturnType;
413
- setReplaceTerm: (replaceTerm: string) => ReturnType;
414
- replace: () => ReturnType;
415
- replaceAll: () => ReturnType;
416
- goToPrevSearchResult: () => void;
417
- goToNextSearchResult: () => void;
418
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
424
+ imageGifUpload: {
425
+ /**
426
+ * Add an image gif
427
+ */
428
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
429
+ /**
430
+ * Update an image gif
431
+ */
432
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
433
+ /**
434
+ * Set image alignment
435
+ */
436
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
419
437
  };
420
438
  }
421
439
  }
@@ -432,18 +450,9 @@ declare module '@tiptap/core' {
432
450
 
433
451
  declare module '@tiptap/core' {
434
452
  interface Commands<ReturnType> {
435
- tableOfContents: {
436
- setTableOfContents: () => ReturnType;
437
- removeTableOfContents: () => ReturnType;
438
- };
439
- }
440
- }
441
-
442
-
443
- declare module '@tiptap/core' {
444
- interface Commands<ReturnType> {
445
- attachment: {
446
- setAttachment: (attrs?: unknown) => ReturnType;
453
+ mermaid: {
454
+ setMermaid: (options: any, replace?: any) => ReturnType;
455
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
447
456
  };
448
457
  }
449
458
  }
@@ -461,19 +470,11 @@ declare module '@tiptap/core' {
461
470
 
462
471
  declare module '@tiptap/core' {
463
472
  interface Commands<ReturnType> {
464
- imageGifUpload: {
465
- /**
466
- * Add an image gif
467
- */
468
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
469
- /**
470
- * Update an image gif
471
- */
472
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
473
- /**
474
- * Set image alignment
475
- */
476
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
473
+ emoji: {
474
+ setEmoji: (emoji: {
475
+ name: string;
476
+ emoji: string;
477
+ }) => ReturnType;
477
478
  };
478
479
  }
479
480
  }
@@ -496,9 +497,8 @@ declare module '@tiptap/core' {
496
497
 
497
498
  declare module '@tiptap/core' {
498
499
  interface Commands<ReturnType> {
499
- mermaid: {
500
- setMermaid: (options: any, replace?: any) => ReturnType;
501
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
500
+ attachment: {
501
+ setAttachment: (attrs?: unknown) => ReturnType;
502
502
  };
503
503
  }
504
504
  }
package/lib/index.d.ts CHANGED
@@ -291,6 +291,16 @@ declare module '@tiptap/core' {
291
291
  }
292
292
 
293
293
 
294
+ declare module '@tiptap/core' {
295
+ interface Commands<ReturnType> {
296
+ lineHeight: {
297
+ setLineHeight: (lineHeight: string) => ReturnType;
298
+ unsetLineHeight: () => ReturnType;
299
+ };
300
+ }
301
+ }
302
+
303
+
294
304
  declare module '@tiptap/core' {
295
305
  interface Commands<ReturnType> {
296
306
  imageUpload: {
@@ -327,9 +337,8 @@ declare module '@tiptap/core' {
327
337
 
328
338
  declare module '@tiptap/core' {
329
339
  interface Commands<ReturnType> {
330
- lineHeight: {
331
- setLineHeight: (lineHeight: string) => ReturnType;
332
- unsetLineHeight: () => ReturnType;
340
+ painter: {
341
+ setPainter: (marks: Mark[]) => ReturnType;
333
342
  };
334
343
  }
335
344
  }
@@ -363,8 +372,14 @@ declare module '@tiptap/core' {
363
372
 
364
373
  declare module '@tiptap/core' {
365
374
  interface Commands<ReturnType> {
366
- painter: {
367
- setPainter: (marks: Mark[]) => ReturnType;
375
+ search: {
376
+ setSearchTerm: (searchTerm: string) => ReturnType;
377
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
378
+ replace: () => ReturnType;
379
+ replaceAll: () => ReturnType;
380
+ goToPrevSearchResult: () => void;
381
+ goToNextSearchResult: () => void;
382
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
368
383
  };
369
384
  }
370
385
  }
@@ -372,14 +387,9 @@ declare module '@tiptap/core' {
372
387
 
373
388
  declare module '@tiptap/core' {
374
389
  interface Commands<ReturnType> {
375
- iframe: {
376
- /**
377
- * Add an iframe
378
- */
379
- setIframe: (options: {
380
- src: string;
381
- service: string;
382
- }) => ReturnType;
390
+ tableOfContents: {
391
+ setTableOfContents: () => ReturnType;
392
+ removeTableOfContents: () => ReturnType;
383
393
  };
384
394
  }
385
395
  }
@@ -396,10 +406,13 @@ declare module '@tiptap/core' {
396
406
 
397
407
  declare module '@tiptap/core' {
398
408
  interface Commands<ReturnType> {
399
- emoji: {
400
- setEmoji: (emoji: {
401
- name: string;
402
- emoji: string;
409
+ iframe: {
410
+ /**
411
+ * Add an iframe
412
+ */
413
+ setIframe: (options: {
414
+ src: string;
415
+ service: string;
403
416
  }) => ReturnType;
404
417
  };
405
418
  }
@@ -408,14 +421,19 @@ declare module '@tiptap/core' {
408
421
 
409
422
  declare module '@tiptap/core' {
410
423
  interface Commands<ReturnType> {
411
- search: {
412
- setSearchTerm: (searchTerm: string) => ReturnType;
413
- setReplaceTerm: (replaceTerm: string) => ReturnType;
414
- replace: () => ReturnType;
415
- replaceAll: () => ReturnType;
416
- goToPrevSearchResult: () => void;
417
- goToNextSearchResult: () => void;
418
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
424
+ imageGifUpload: {
425
+ /**
426
+ * Add an image gif
427
+ */
428
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
429
+ /**
430
+ * Update an image gif
431
+ */
432
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
433
+ /**
434
+ * Set image alignment
435
+ */
436
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
419
437
  };
420
438
  }
421
439
  }
@@ -432,18 +450,9 @@ declare module '@tiptap/core' {
432
450
 
433
451
  declare module '@tiptap/core' {
434
452
  interface Commands<ReturnType> {
435
- tableOfContents: {
436
- setTableOfContents: () => ReturnType;
437
- removeTableOfContents: () => ReturnType;
438
- };
439
- }
440
- }
441
-
442
-
443
- declare module '@tiptap/core' {
444
- interface Commands<ReturnType> {
445
- attachment: {
446
- setAttachment: (attrs?: unknown) => ReturnType;
453
+ mermaid: {
454
+ setMermaid: (options: any, replace?: any) => ReturnType;
455
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
447
456
  };
448
457
  }
449
458
  }
@@ -461,19 +470,11 @@ declare module '@tiptap/core' {
461
470
 
462
471
  declare module '@tiptap/core' {
463
472
  interface Commands<ReturnType> {
464
- imageGifUpload: {
465
- /**
466
- * Add an image gif
467
- */
468
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
469
- /**
470
- * Update an image gif
471
- */
472
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
473
- /**
474
- * Set image alignment
475
- */
476
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
473
+ emoji: {
474
+ setEmoji: (emoji: {
475
+ name: string;
476
+ emoji: string;
477
+ }) => ReturnType;
477
478
  };
478
479
  }
479
480
  }
@@ -496,9 +497,8 @@ declare module '@tiptap/core' {
496
497
 
497
498
  declare module '@tiptap/core' {
498
499
  interface Commands<ReturnType> {
499
- mermaid: {
500
- setMermaid: (options: any, replace?: any) => ReturnType;
501
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
500
+ attachment: {
501
+ setAttachment: (attrs?: unknown) => ReturnType;
502
502
  };
503
503
  }
504
504
  }
@@ -918,6 +918,16 @@ declare module '@tiptap/core' {
918
918
  }
919
919
 
920
920
 
921
+ declare module '@tiptap/core' {
922
+ interface Commands<ReturnType> {
923
+ lineHeight: {
924
+ setLineHeight: (lineHeight: string) => ReturnType;
925
+ unsetLineHeight: () => ReturnType;
926
+ };
927
+ }
928
+ }
929
+
930
+
921
931
  declare module '@tiptap/core' {
922
932
  interface Commands<ReturnType> {
923
933
  imageUpload: {
@@ -954,9 +964,8 @@ declare module '@tiptap/core' {
954
964
 
955
965
  declare module '@tiptap/core' {
956
966
  interface Commands<ReturnType> {
957
- lineHeight: {
958
- setLineHeight: (lineHeight: string) => ReturnType;
959
- unsetLineHeight: () => ReturnType;
967
+ painter: {
968
+ setPainter: (marks: Mark[]) => ReturnType;
960
969
  };
961
970
  }
962
971
  }
@@ -990,8 +999,14 @@ declare module '@tiptap/core' {
990
999
 
991
1000
  declare module '@tiptap/core' {
992
1001
  interface Commands<ReturnType> {
993
- painter: {
994
- setPainter: (marks: Mark[]) => ReturnType;
1002
+ search: {
1003
+ setSearchTerm: (searchTerm: string) => ReturnType;
1004
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
1005
+ replace: () => ReturnType;
1006
+ replaceAll: () => ReturnType;
1007
+ goToPrevSearchResult: () => void;
1008
+ goToNextSearchResult: () => void;
1009
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
995
1010
  };
996
1011
  }
997
1012
  }
@@ -999,14 +1014,9 @@ declare module '@tiptap/core' {
999
1014
 
1000
1015
  declare module '@tiptap/core' {
1001
1016
  interface Commands<ReturnType> {
1002
- iframe: {
1003
- /**
1004
- * Add an iframe
1005
- */
1006
- setIframe: (options: {
1007
- src: string;
1008
- service: string;
1009
- }) => ReturnType;
1017
+ tableOfContents: {
1018
+ setTableOfContents: () => ReturnType;
1019
+ removeTableOfContents: () => ReturnType;
1010
1020
  };
1011
1021
  }
1012
1022
  }
@@ -1023,10 +1033,13 @@ declare module '@tiptap/core' {
1023
1033
 
1024
1034
  declare module '@tiptap/core' {
1025
1035
  interface Commands<ReturnType> {
1026
- emoji: {
1027
- setEmoji: (emoji: {
1028
- name: string;
1029
- emoji: string;
1036
+ iframe: {
1037
+ /**
1038
+ * Add an iframe
1039
+ */
1040
+ setIframe: (options: {
1041
+ src: string;
1042
+ service: string;
1030
1043
  }) => ReturnType;
1031
1044
  };
1032
1045
  }
@@ -1035,14 +1048,19 @@ declare module '@tiptap/core' {
1035
1048
 
1036
1049
  declare module '@tiptap/core' {
1037
1050
  interface Commands<ReturnType> {
1038
- search: {
1039
- setSearchTerm: (searchTerm: string) => ReturnType;
1040
- setReplaceTerm: (replaceTerm: string) => ReturnType;
1041
- replace: () => ReturnType;
1042
- replaceAll: () => ReturnType;
1043
- goToPrevSearchResult: () => void;
1044
- goToNextSearchResult: () => void;
1045
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
1051
+ imageGifUpload: {
1052
+ /**
1053
+ * Add an image gif
1054
+ */
1055
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1056
+ /**
1057
+ * Update an image gif
1058
+ */
1059
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1060
+ /**
1061
+ * Set image alignment
1062
+ */
1063
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1046
1064
  };
1047
1065
  }
1048
1066
  }
@@ -1059,18 +1077,9 @@ declare module '@tiptap/core' {
1059
1077
 
1060
1078
  declare module '@tiptap/core' {
1061
1079
  interface Commands<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;
1080
+ mermaid: {
1081
+ setMermaid: (options: any, replace?: any) => ReturnType;
1082
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1074
1083
  };
1075
1084
  }
1076
1085
  }
@@ -1088,19 +1097,11 @@ declare module '@tiptap/core' {
1088
1097
 
1089
1098
  declare module '@tiptap/core' {
1090
1099
  interface Commands<ReturnType> {
1091
- imageGifUpload: {
1092
- /**
1093
- * Add an image gif
1094
- */
1095
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1096
- /**
1097
- * Update an image gif
1098
- */
1099
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1100
- /**
1101
- * Set image alignment
1102
- */
1103
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1100
+ emoji: {
1101
+ setEmoji: (emoji: {
1102
+ name: string;
1103
+ emoji: string;
1104
+ }) => ReturnType;
1104
1105
  };
1105
1106
  }
1106
1107
  }
@@ -1123,9 +1124,8 @@ declare module '@tiptap/core' {
1123
1124
 
1124
1125
  declare module '@tiptap/core' {
1125
1126
  interface Commands<ReturnType> {
1126
- mermaid: {
1127
- setMermaid: (options: any, replace?: any) => ReturnType;
1128
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1127
+ attachment: {
1128
+ setAttachment: (attrs?: unknown) => ReturnType;
1129
1129
  };
1130
1130
  }
1131
1131
  }
@@ -918,6 +918,16 @@ declare module '@tiptap/core' {
918
918
  }
919
919
 
920
920
 
921
+ declare module '@tiptap/core' {
922
+ interface Commands<ReturnType> {
923
+ lineHeight: {
924
+ setLineHeight: (lineHeight: string) => ReturnType;
925
+ unsetLineHeight: () => ReturnType;
926
+ };
927
+ }
928
+ }
929
+
930
+
921
931
  declare module '@tiptap/core' {
922
932
  interface Commands<ReturnType> {
923
933
  imageUpload: {
@@ -954,9 +964,8 @@ declare module '@tiptap/core' {
954
964
 
955
965
  declare module '@tiptap/core' {
956
966
  interface Commands<ReturnType> {
957
- lineHeight: {
958
- setLineHeight: (lineHeight: string) => ReturnType;
959
- unsetLineHeight: () => ReturnType;
967
+ painter: {
968
+ setPainter: (marks: Mark[]) => ReturnType;
960
969
  };
961
970
  }
962
971
  }
@@ -990,8 +999,14 @@ declare module '@tiptap/core' {
990
999
 
991
1000
  declare module '@tiptap/core' {
992
1001
  interface Commands<ReturnType> {
993
- painter: {
994
- setPainter: (marks: Mark[]) => ReturnType;
1002
+ search: {
1003
+ setSearchTerm: (searchTerm: string) => ReturnType;
1004
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
1005
+ replace: () => ReturnType;
1006
+ replaceAll: () => ReturnType;
1007
+ goToPrevSearchResult: () => void;
1008
+ goToNextSearchResult: () => void;
1009
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
995
1010
  };
996
1011
  }
997
1012
  }
@@ -999,14 +1014,9 @@ declare module '@tiptap/core' {
999
1014
 
1000
1015
  declare module '@tiptap/core' {
1001
1016
  interface Commands<ReturnType> {
1002
- iframe: {
1003
- /**
1004
- * Add an iframe
1005
- */
1006
- setIframe: (options: {
1007
- src: string;
1008
- service: string;
1009
- }) => ReturnType;
1017
+ tableOfContents: {
1018
+ setTableOfContents: () => ReturnType;
1019
+ removeTableOfContents: () => ReturnType;
1010
1020
  };
1011
1021
  }
1012
1022
  }
@@ -1023,10 +1033,13 @@ declare module '@tiptap/core' {
1023
1033
 
1024
1034
  declare module '@tiptap/core' {
1025
1035
  interface Commands<ReturnType> {
1026
- emoji: {
1027
- setEmoji: (emoji: {
1028
- name: string;
1029
- emoji: string;
1036
+ iframe: {
1037
+ /**
1038
+ * Add an iframe
1039
+ */
1040
+ setIframe: (options: {
1041
+ src: string;
1042
+ service: string;
1030
1043
  }) => ReturnType;
1031
1044
  };
1032
1045
  }
@@ -1035,14 +1048,19 @@ declare module '@tiptap/core' {
1035
1048
 
1036
1049
  declare module '@tiptap/core' {
1037
1050
  interface Commands<ReturnType> {
1038
- search: {
1039
- setSearchTerm: (searchTerm: string) => ReturnType;
1040
- setReplaceTerm: (replaceTerm: string) => ReturnType;
1041
- replace: () => ReturnType;
1042
- replaceAll: () => ReturnType;
1043
- goToPrevSearchResult: () => void;
1044
- goToNextSearchResult: () => void;
1045
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
1051
+ imageGifUpload: {
1052
+ /**
1053
+ * Add an image gif
1054
+ */
1055
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1056
+ /**
1057
+ * Update an image gif
1058
+ */
1059
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1060
+ /**
1061
+ * Set image alignment
1062
+ */
1063
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1046
1064
  };
1047
1065
  }
1048
1066
  }
@@ -1059,18 +1077,9 @@ declare module '@tiptap/core' {
1059
1077
 
1060
1078
  declare module '@tiptap/core' {
1061
1079
  interface Commands<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;
1080
+ mermaid: {
1081
+ setMermaid: (options: any, replace?: any) => ReturnType;
1082
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1074
1083
  };
1075
1084
  }
1076
1085
  }
@@ -1088,19 +1097,11 @@ declare module '@tiptap/core' {
1088
1097
 
1089
1098
  declare module '@tiptap/core' {
1090
1099
  interface Commands<ReturnType> {
1091
- imageGifUpload: {
1092
- /**
1093
- * Add an image gif
1094
- */
1095
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1096
- /**
1097
- * Update an image gif
1098
- */
1099
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1100
- /**
1101
- * Set image alignment
1102
- */
1103
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1100
+ emoji: {
1101
+ setEmoji: (emoji: {
1102
+ name: string;
1103
+ emoji: string;
1104
+ }) => ReturnType;
1104
1105
  };
1105
1106
  }
1106
1107
  }
@@ -1123,9 +1124,8 @@ declare module '@tiptap/core' {
1123
1124
 
1124
1125
  declare module '@tiptap/core' {
1125
1126
  interface Commands<ReturnType> {
1126
- mermaid: {
1127
- setMermaid: (options: any, replace?: any) => ReturnType;
1128
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1127
+ attachment: {
1128
+ setAttachment: (attrs?: unknown) => 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.34",
4
+ "version": "0.2.35",
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",