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.
- package/lib/extension-bundle.d.cts +53 -53
- package/lib/extension-bundle.d.ts +53 -53
- package/lib/index.d.cts +53 -53
- package/lib/index.d.ts +53 -53
- package/lib/locale-bundle.d.cts +53 -53
- package/lib/locale-bundle.d.ts +53 -53
- package/package.json +1 -1
|
@@ -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
|
-
|
|
763
|
-
|
|
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
|
-
|
|
799
|
-
|
|
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
|
-
|
|
808
|
-
|
|
809
|
-
|
|
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
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
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
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
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
|
-
|
|
868
|
-
|
|
869
|
-
|
|
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
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
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
|
-
|
|
932
|
-
|
|
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
|
-
|
|
763
|
-
|
|
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
|
-
|
|
799
|
-
|
|
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
|
-
|
|
808
|
-
|
|
809
|
-
|
|
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
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
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
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
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
|
-
|
|
868
|
-
|
|
869
|
-
|
|
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
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
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
|
-
|
|
932
|
-
|
|
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
|
-
|
|
331
|
-
|
|
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
|
-
|
|
367
|
-
|
|
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
|
-
|
|
376
|
-
|
|
377
|
-
|
|
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
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
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
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
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
|
-
|
|
436
|
-
|
|
437
|
-
|
|
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
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
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
|
-
|
|
500
|
-
|
|
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
|
-
|
|
331
|
-
|
|
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
|
-
|
|
367
|
-
|
|
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
|
-
|
|
376
|
-
|
|
377
|
-
|
|
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
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
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
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
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
|
-
|
|
436
|
-
|
|
437
|
-
|
|
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
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
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
|
-
|
|
500
|
-
|
|
501
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
500
|
+
attachment: {
|
|
501
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
502
502
|
};
|
|
503
503
|
}
|
|
504
504
|
}
|
package/lib/locale-bundle.d.cts
CHANGED
|
@@ -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
|
-
|
|
958
|
-
|
|
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
|
-
|
|
994
|
-
|
|
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
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
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
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
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
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
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
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
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
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
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
|
-
|
|
1127
|
-
|
|
1128
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1127
|
+
attachment: {
|
|
1128
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1129
1129
|
};
|
|
1130
1130
|
}
|
|
1131
1131
|
}
|
package/lib/locale-bundle.d.ts
CHANGED
|
@@ -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
|
-
|
|
958
|
-
|
|
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
|
-
|
|
994
|
-
|
|
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
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
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
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
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
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
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
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
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
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
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
|
-
|
|
1127
|
-
|
|
1128
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1127
|
+
attachment: {
|
|
1128
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1129
1129
|
};
|
|
1130
1130
|
}
|
|
1131
1131
|
}
|
package/package.json
CHANGED