reactjs-tiptap-editor-pro 0.2.36 → 0.2.37
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 +80 -80
- package/lib/extension-bundle.d.ts +80 -80
- package/lib/index.cjs +3 -3
- package/lib/index.d.cts +83 -81
- package/lib/index.d.ts +83 -81
- package/lib/index.js +1 -0
- package/lib/locale-bundle.d.cts +80 -80
- package/lib/locale-bundle.d.ts +80 -80
- package/package.json +1 -1
|
@@ -707,27 +707,19 @@ declare module '@tiptap/core' {
|
|
|
707
707
|
|
|
708
708
|
declare module '@tiptap/core' {
|
|
709
709
|
interface Commands<ReturnType> {
|
|
710
|
-
|
|
710
|
+
imageUpload: {
|
|
711
711
|
/**
|
|
712
|
-
*
|
|
713
|
-
* CSS font-size
|
|
714
|
-
* (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
|
|
712
|
+
* Add an image
|
|
715
713
|
*/
|
|
716
|
-
|
|
714
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
717
715
|
/**
|
|
718
|
-
*
|
|
716
|
+
* Update an image
|
|
719
717
|
*/
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
declare module '@tiptap/core' {
|
|
727
|
-
interface Commands<ReturnType> {
|
|
728
|
-
lineHeight: {
|
|
729
|
-
setLineHeight: (lineHeight: string) => ReturnType;
|
|
730
|
-
unsetLineHeight: () => ReturnType;
|
|
718
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
719
|
+
/**
|
|
720
|
+
* Set image alignment
|
|
721
|
+
*/
|
|
722
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
731
723
|
};
|
|
732
724
|
}
|
|
733
725
|
}
|
|
@@ -750,29 +742,15 @@ declare module '@tiptap/core' {
|
|
|
750
742
|
|
|
751
743
|
declare module '@tiptap/core' {
|
|
752
744
|
interface Commands<ReturnType> {
|
|
753
|
-
|
|
754
|
-
setTableCellBackground: (color: string) => ReturnType;
|
|
755
|
-
unsetTableCellBackground: () => ReturnType;
|
|
756
|
-
};
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
declare module '@tiptap/core' {
|
|
762
|
-
interface Commands<ReturnType> {
|
|
763
|
-
imageUpload: {
|
|
764
|
-
/**
|
|
765
|
-
* Add an image
|
|
766
|
-
*/
|
|
767
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
745
|
+
indent: {
|
|
768
746
|
/**
|
|
769
|
-
*
|
|
747
|
+
* Set the indent attribute
|
|
770
748
|
*/
|
|
771
|
-
|
|
749
|
+
indent: () => ReturnType;
|
|
772
750
|
/**
|
|
773
|
-
* Set
|
|
751
|
+
* Set the outdent attribute
|
|
774
752
|
*/
|
|
775
|
-
|
|
753
|
+
outdent: () => ReturnType;
|
|
776
754
|
};
|
|
777
755
|
}
|
|
778
756
|
}
|
|
@@ -780,8 +758,9 @@ declare module '@tiptap/core' {
|
|
|
780
758
|
|
|
781
759
|
declare module '@tiptap/core' {
|
|
782
760
|
interface Commands<ReturnType> {
|
|
783
|
-
|
|
784
|
-
|
|
761
|
+
lineHeight: {
|
|
762
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
763
|
+
unsetLineHeight: () => ReturnType;
|
|
785
764
|
};
|
|
786
765
|
}
|
|
787
766
|
}
|
|
@@ -789,13 +768,11 @@ declare module '@tiptap/core' {
|
|
|
789
768
|
|
|
790
769
|
declare module '@tiptap/core' {
|
|
791
770
|
interface Commands<ReturnType> {
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
771
|
+
emoji: {
|
|
772
|
+
setEmoji: (emoji: {
|
|
773
|
+
name: string;
|
|
774
|
+
emoji: string;
|
|
795
775
|
}) => ReturnType;
|
|
796
|
-
addColBefore: () => ReturnType;
|
|
797
|
-
addColAfter: () => ReturnType;
|
|
798
|
-
deleteCol: () => ReturnType;
|
|
799
776
|
};
|
|
800
777
|
}
|
|
801
778
|
}
|
|
@@ -803,15 +780,17 @@ declare module '@tiptap/core' {
|
|
|
803
780
|
|
|
804
781
|
declare module '@tiptap/core' {
|
|
805
782
|
interface Commands<ReturnType> {
|
|
806
|
-
|
|
783
|
+
fontSize: {
|
|
807
784
|
/**
|
|
808
|
-
* Set the
|
|
785
|
+
* Set the text font size. ex: "12px", "2em", or "small". Must be a valid
|
|
786
|
+
* CSS font-size
|
|
787
|
+
* (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
|
|
809
788
|
*/
|
|
810
|
-
|
|
789
|
+
setFontSize: (fontSize: string) => ReturnType;
|
|
811
790
|
/**
|
|
812
|
-
*
|
|
791
|
+
* Unset the font size
|
|
813
792
|
*/
|
|
814
|
-
|
|
793
|
+
unsetFontSize: () => ReturnType;
|
|
815
794
|
};
|
|
816
795
|
}
|
|
817
796
|
}
|
|
@@ -819,8 +798,9 @@ declare module '@tiptap/core' {
|
|
|
819
798
|
|
|
820
799
|
declare module '@tiptap/core' {
|
|
821
800
|
interface Commands<ReturnType> {
|
|
822
|
-
|
|
823
|
-
|
|
801
|
+
tableCellBackground: {
|
|
802
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
803
|
+
unsetTableCellBackground: () => ReturnType;
|
|
824
804
|
};
|
|
825
805
|
}
|
|
826
806
|
}
|
|
@@ -828,11 +808,18 @@ declare module '@tiptap/core' {
|
|
|
828
808
|
|
|
829
809
|
declare module '@tiptap/core' {
|
|
830
810
|
interface Commands<ReturnType> {
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
811
|
+
tableOfContents: {
|
|
812
|
+
setTableOfContents: () => ReturnType;
|
|
813
|
+
removeTableOfContents: () => ReturnType;
|
|
814
|
+
};
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
declare module '@tiptap/core' {
|
|
820
|
+
interface Commands<ReturnType> {
|
|
821
|
+
exportWord: {
|
|
822
|
+
exportToWord: () => ReturnType;
|
|
836
823
|
};
|
|
837
824
|
}
|
|
838
825
|
}
|
|
@@ -864,19 +851,13 @@ declare module '@tiptap/core' {
|
|
|
864
851
|
|
|
865
852
|
declare module '@tiptap/core' {
|
|
866
853
|
interface Commands<ReturnType> {
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
declare module '@tiptap/core' {
|
|
876
|
-
interface Commands<ReturnType> {
|
|
877
|
-
mermaid: {
|
|
878
|
-
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
879
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
854
|
+
columns: {
|
|
855
|
+
insertColumns: (attrs?: {
|
|
856
|
+
cols: number;
|
|
857
|
+
}) => ReturnType;
|
|
858
|
+
addColBefore: () => ReturnType;
|
|
859
|
+
addColAfter: () => ReturnType;
|
|
860
|
+
deleteCol: () => ReturnType;
|
|
880
861
|
};
|
|
881
862
|
}
|
|
882
863
|
}
|
|
@@ -884,9 +865,8 @@ declare module '@tiptap/core' {
|
|
|
884
865
|
|
|
885
866
|
declare module '@tiptap/core' {
|
|
886
867
|
interface Commands<ReturnType> {
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
868
|
+
katex: {
|
|
869
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
890
870
|
};
|
|
891
871
|
}
|
|
892
872
|
}
|
|
@@ -894,14 +874,9 @@ declare module '@tiptap/core' {
|
|
|
894
874
|
|
|
895
875
|
declare module '@tiptap/core' {
|
|
896
876
|
interface Commands<ReturnType> {
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
* @param options The tweet attributes
|
|
901
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
902
|
-
*/
|
|
903
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
904
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
877
|
+
mermaid: {
|
|
878
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
879
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
905
880
|
};
|
|
906
881
|
}
|
|
907
882
|
}
|
|
@@ -934,3 +909,28 @@ declare module '@tiptap/core' {
|
|
|
934
909
|
};
|
|
935
910
|
}
|
|
936
911
|
}
|
|
912
|
+
|
|
913
|
+
|
|
914
|
+
declare module '@tiptap/core' {
|
|
915
|
+
interface Commands<ReturnType> {
|
|
916
|
+
twitter: {
|
|
917
|
+
/**
|
|
918
|
+
* Insert a tweet
|
|
919
|
+
* @param options The tweet attributes
|
|
920
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
921
|
+
*/
|
|
922
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
923
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
924
|
+
};
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
|
|
929
|
+
declare module '@tiptap/core' {
|
|
930
|
+
interface Commands<ReturnType> {
|
|
931
|
+
drawer: {
|
|
932
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
933
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
934
|
+
};
|
|
935
|
+
}
|
|
936
|
+
}
|
|
@@ -707,27 +707,19 @@ declare module '@tiptap/core' {
|
|
|
707
707
|
|
|
708
708
|
declare module '@tiptap/core' {
|
|
709
709
|
interface Commands<ReturnType> {
|
|
710
|
-
|
|
710
|
+
imageUpload: {
|
|
711
711
|
/**
|
|
712
|
-
*
|
|
713
|
-
* CSS font-size
|
|
714
|
-
* (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
|
|
712
|
+
* Add an image
|
|
715
713
|
*/
|
|
716
|
-
|
|
714
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
717
715
|
/**
|
|
718
|
-
*
|
|
716
|
+
* Update an image
|
|
719
717
|
*/
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
declare module '@tiptap/core' {
|
|
727
|
-
interface Commands<ReturnType> {
|
|
728
|
-
lineHeight: {
|
|
729
|
-
setLineHeight: (lineHeight: string) => ReturnType;
|
|
730
|
-
unsetLineHeight: () => ReturnType;
|
|
718
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
719
|
+
/**
|
|
720
|
+
* Set image alignment
|
|
721
|
+
*/
|
|
722
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
731
723
|
};
|
|
732
724
|
}
|
|
733
725
|
}
|
|
@@ -750,29 +742,15 @@ declare module '@tiptap/core' {
|
|
|
750
742
|
|
|
751
743
|
declare module '@tiptap/core' {
|
|
752
744
|
interface Commands<ReturnType> {
|
|
753
|
-
|
|
754
|
-
setTableCellBackground: (color: string) => ReturnType;
|
|
755
|
-
unsetTableCellBackground: () => ReturnType;
|
|
756
|
-
};
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
declare module '@tiptap/core' {
|
|
762
|
-
interface Commands<ReturnType> {
|
|
763
|
-
imageUpload: {
|
|
764
|
-
/**
|
|
765
|
-
* Add an image
|
|
766
|
-
*/
|
|
767
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
745
|
+
indent: {
|
|
768
746
|
/**
|
|
769
|
-
*
|
|
747
|
+
* Set the indent attribute
|
|
770
748
|
*/
|
|
771
|
-
|
|
749
|
+
indent: () => ReturnType;
|
|
772
750
|
/**
|
|
773
|
-
* Set
|
|
751
|
+
* Set the outdent attribute
|
|
774
752
|
*/
|
|
775
|
-
|
|
753
|
+
outdent: () => ReturnType;
|
|
776
754
|
};
|
|
777
755
|
}
|
|
778
756
|
}
|
|
@@ -780,8 +758,9 @@ declare module '@tiptap/core' {
|
|
|
780
758
|
|
|
781
759
|
declare module '@tiptap/core' {
|
|
782
760
|
interface Commands<ReturnType> {
|
|
783
|
-
|
|
784
|
-
|
|
761
|
+
lineHeight: {
|
|
762
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
763
|
+
unsetLineHeight: () => ReturnType;
|
|
785
764
|
};
|
|
786
765
|
}
|
|
787
766
|
}
|
|
@@ -789,13 +768,11 @@ declare module '@tiptap/core' {
|
|
|
789
768
|
|
|
790
769
|
declare module '@tiptap/core' {
|
|
791
770
|
interface Commands<ReturnType> {
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
771
|
+
emoji: {
|
|
772
|
+
setEmoji: (emoji: {
|
|
773
|
+
name: string;
|
|
774
|
+
emoji: string;
|
|
795
775
|
}) => ReturnType;
|
|
796
|
-
addColBefore: () => ReturnType;
|
|
797
|
-
addColAfter: () => ReturnType;
|
|
798
|
-
deleteCol: () => ReturnType;
|
|
799
776
|
};
|
|
800
777
|
}
|
|
801
778
|
}
|
|
@@ -803,15 +780,17 @@ declare module '@tiptap/core' {
|
|
|
803
780
|
|
|
804
781
|
declare module '@tiptap/core' {
|
|
805
782
|
interface Commands<ReturnType> {
|
|
806
|
-
|
|
783
|
+
fontSize: {
|
|
807
784
|
/**
|
|
808
|
-
* Set the
|
|
785
|
+
* Set the text font size. ex: "12px", "2em", or "small". Must be a valid
|
|
786
|
+
* CSS font-size
|
|
787
|
+
* (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
|
|
809
788
|
*/
|
|
810
|
-
|
|
789
|
+
setFontSize: (fontSize: string) => ReturnType;
|
|
811
790
|
/**
|
|
812
|
-
*
|
|
791
|
+
* Unset the font size
|
|
813
792
|
*/
|
|
814
|
-
|
|
793
|
+
unsetFontSize: () => ReturnType;
|
|
815
794
|
};
|
|
816
795
|
}
|
|
817
796
|
}
|
|
@@ -819,8 +798,9 @@ declare module '@tiptap/core' {
|
|
|
819
798
|
|
|
820
799
|
declare module '@tiptap/core' {
|
|
821
800
|
interface Commands<ReturnType> {
|
|
822
|
-
|
|
823
|
-
|
|
801
|
+
tableCellBackground: {
|
|
802
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
803
|
+
unsetTableCellBackground: () => ReturnType;
|
|
824
804
|
};
|
|
825
805
|
}
|
|
826
806
|
}
|
|
@@ -828,11 +808,18 @@ declare module '@tiptap/core' {
|
|
|
828
808
|
|
|
829
809
|
declare module '@tiptap/core' {
|
|
830
810
|
interface Commands<ReturnType> {
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
811
|
+
tableOfContents: {
|
|
812
|
+
setTableOfContents: () => ReturnType;
|
|
813
|
+
removeTableOfContents: () => ReturnType;
|
|
814
|
+
};
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
declare module '@tiptap/core' {
|
|
820
|
+
interface Commands<ReturnType> {
|
|
821
|
+
exportWord: {
|
|
822
|
+
exportToWord: () => ReturnType;
|
|
836
823
|
};
|
|
837
824
|
}
|
|
838
825
|
}
|
|
@@ -864,19 +851,13 @@ declare module '@tiptap/core' {
|
|
|
864
851
|
|
|
865
852
|
declare module '@tiptap/core' {
|
|
866
853
|
interface Commands<ReturnType> {
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
declare module '@tiptap/core' {
|
|
876
|
-
interface Commands<ReturnType> {
|
|
877
|
-
mermaid: {
|
|
878
|
-
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
879
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
854
|
+
columns: {
|
|
855
|
+
insertColumns: (attrs?: {
|
|
856
|
+
cols: number;
|
|
857
|
+
}) => ReturnType;
|
|
858
|
+
addColBefore: () => ReturnType;
|
|
859
|
+
addColAfter: () => ReturnType;
|
|
860
|
+
deleteCol: () => ReturnType;
|
|
880
861
|
};
|
|
881
862
|
}
|
|
882
863
|
}
|
|
@@ -884,9 +865,8 @@ declare module '@tiptap/core' {
|
|
|
884
865
|
|
|
885
866
|
declare module '@tiptap/core' {
|
|
886
867
|
interface Commands<ReturnType> {
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
868
|
+
katex: {
|
|
869
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
890
870
|
};
|
|
891
871
|
}
|
|
892
872
|
}
|
|
@@ -894,14 +874,9 @@ declare module '@tiptap/core' {
|
|
|
894
874
|
|
|
895
875
|
declare module '@tiptap/core' {
|
|
896
876
|
interface Commands<ReturnType> {
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
* @param options The tweet attributes
|
|
901
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
902
|
-
*/
|
|
903
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
904
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
877
|
+
mermaid: {
|
|
878
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
879
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
905
880
|
};
|
|
906
881
|
}
|
|
907
882
|
}
|
|
@@ -934,3 +909,28 @@ declare module '@tiptap/core' {
|
|
|
934
909
|
};
|
|
935
910
|
}
|
|
936
911
|
}
|
|
912
|
+
|
|
913
|
+
|
|
914
|
+
declare module '@tiptap/core' {
|
|
915
|
+
interface Commands<ReturnType> {
|
|
916
|
+
twitter: {
|
|
917
|
+
/**
|
|
918
|
+
* Insert a tweet
|
|
919
|
+
* @param options The tweet attributes
|
|
920
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
921
|
+
*/
|
|
922
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
923
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
924
|
+
};
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
|
|
929
|
+
declare module '@tiptap/core' {
|
|
930
|
+
interface Commands<ReturnType> {
|
|
931
|
+
drawer: {
|
|
932
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
933
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
934
|
+
};
|
|
935
|
+
}
|
|
936
|
+
}
|