reactjs-tiptap-editor-pro 0.2.26 → 0.2.27
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/RichTextEditor-B1Y3PPzy.js +8826 -0
- package/lib/RichTextEditor-CVJUZJ-8.cjs +141 -0
- package/lib/extension-bundle.cjs +3 -3
- package/lib/extension-bundle.d.cts +75 -75
- package/lib/extension-bundle.d.ts +75 -75
- package/lib/extension-bundle.js +1225 -1225
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +75 -75
- package/lib/index.d.ts +75 -75
- package/lib/index.js +1 -1
- package/lib/locale-bundle.d.cts +75 -75
- package/lib/locale-bundle.d.ts +75 -75
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/lib/RichTextEditor-DlFgd8H2.cjs +0 -141
- package/lib/RichTextEditor-iBDjgtlT.js +0 -8780
|
@@ -727,9 +727,9 @@ declare module '@tiptap/core' {
|
|
|
727
727
|
|
|
728
728
|
declare module '@tiptap/core' {
|
|
729
729
|
interface Commands<ReturnType> {
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
730
|
+
lineHeight: {
|
|
731
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
732
|
+
unsetLineHeight: () => ReturnType;
|
|
733
733
|
};
|
|
734
734
|
}
|
|
735
735
|
}
|
|
@@ -737,15 +737,8 @@ declare module '@tiptap/core' {
|
|
|
737
737
|
|
|
738
738
|
declare module '@tiptap/core' {
|
|
739
739
|
interface Commands<ReturnType> {
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
* Set the indent attribute
|
|
743
|
-
*/
|
|
744
|
-
indent: () => ReturnType;
|
|
745
|
-
/**
|
|
746
|
-
* Set the outdent attribute
|
|
747
|
-
*/
|
|
748
|
-
outdent: () => ReturnType;
|
|
740
|
+
katex: {
|
|
741
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
749
742
|
};
|
|
750
743
|
}
|
|
751
744
|
}
|
|
@@ -753,19 +746,14 @@ declare module '@tiptap/core' {
|
|
|
753
746
|
|
|
754
747
|
declare module '@tiptap/core' {
|
|
755
748
|
interface Commands<ReturnType> {
|
|
756
|
-
|
|
757
|
-
/**
|
|
758
|
-
* Add an image
|
|
759
|
-
*/
|
|
760
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
761
|
-
/**
|
|
762
|
-
* Update an image
|
|
763
|
-
*/
|
|
764
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
749
|
+
iframe: {
|
|
765
750
|
/**
|
|
766
|
-
*
|
|
751
|
+
* Add an iframe
|
|
767
752
|
*/
|
|
768
|
-
|
|
753
|
+
setIframe: (options: {
|
|
754
|
+
src: string;
|
|
755
|
+
service: string;
|
|
756
|
+
}) => ReturnType;
|
|
769
757
|
};
|
|
770
758
|
}
|
|
771
759
|
}
|
|
@@ -773,9 +761,11 @@ declare module '@tiptap/core' {
|
|
|
773
761
|
|
|
774
762
|
declare module '@tiptap/core' {
|
|
775
763
|
interface Commands<ReturnType> {
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
764
|
+
emoji: {
|
|
765
|
+
setEmoji: (emoji: {
|
|
766
|
+
name: string;
|
|
767
|
+
emoji: string;
|
|
768
|
+
}) => ReturnType;
|
|
779
769
|
};
|
|
780
770
|
}
|
|
781
771
|
}
|
|
@@ -783,14 +773,8 @@ declare module '@tiptap/core' {
|
|
|
783
773
|
|
|
784
774
|
declare module '@tiptap/core' {
|
|
785
775
|
interface Commands<ReturnType> {
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
789
|
-
replace: () => ReturnType;
|
|
790
|
-
replaceAll: () => ReturnType;
|
|
791
|
-
goToPrevSearchResult: () => void;
|
|
792
|
-
goToNextSearchResult: () => void;
|
|
793
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
776
|
+
painter: {
|
|
777
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
794
778
|
};
|
|
795
779
|
}
|
|
796
780
|
}
|
|
@@ -798,9 +782,8 @@ declare module '@tiptap/core' {
|
|
|
798
782
|
|
|
799
783
|
declare module '@tiptap/core' {
|
|
800
784
|
interface Commands<ReturnType> {
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
removeTableOfContents: () => ReturnType;
|
|
785
|
+
exportWord: {
|
|
786
|
+
exportToWord: () => ReturnType;
|
|
804
787
|
};
|
|
805
788
|
}
|
|
806
789
|
}
|
|
@@ -808,14 +791,19 @@ declare module '@tiptap/core' {
|
|
|
808
791
|
|
|
809
792
|
declare module '@tiptap/core' {
|
|
810
793
|
interface Commands<ReturnType> {
|
|
811
|
-
|
|
794
|
+
imageUpload: {
|
|
812
795
|
/**
|
|
813
|
-
* Add an
|
|
796
|
+
* Add an image
|
|
814
797
|
*/
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
798
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
799
|
+
/**
|
|
800
|
+
* Update an image
|
|
801
|
+
*/
|
|
802
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
803
|
+
/**
|
|
804
|
+
* Set image alignment
|
|
805
|
+
*/
|
|
806
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
819
807
|
};
|
|
820
808
|
}
|
|
821
809
|
}
|
|
@@ -823,13 +811,14 @@ declare module '@tiptap/core' {
|
|
|
823
811
|
|
|
824
812
|
declare module '@tiptap/core' {
|
|
825
813
|
interface Commands<ReturnType> {
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
814
|
+
search: {
|
|
815
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
816
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
817
|
+
replace: () => ReturnType;
|
|
818
|
+
replaceAll: () => ReturnType;
|
|
819
|
+
goToPrevSearchResult: () => void;
|
|
820
|
+
goToNextSearchResult: () => void;
|
|
821
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
833
822
|
};
|
|
834
823
|
}
|
|
835
824
|
}
|
|
@@ -837,8 +826,9 @@ declare module '@tiptap/core' {
|
|
|
837
826
|
|
|
838
827
|
declare module '@tiptap/core' {
|
|
839
828
|
interface Commands<ReturnType> {
|
|
840
|
-
|
|
841
|
-
|
|
829
|
+
tableCellBackground: {
|
|
830
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
831
|
+
unsetTableCellBackground: () => ReturnType;
|
|
842
832
|
};
|
|
843
833
|
}
|
|
844
834
|
}
|
|
@@ -846,8 +836,15 @@ declare module '@tiptap/core' {
|
|
|
846
836
|
|
|
847
837
|
declare module '@tiptap/core' {
|
|
848
838
|
interface Commands<ReturnType> {
|
|
849
|
-
|
|
850
|
-
|
|
839
|
+
indent: {
|
|
840
|
+
/**
|
|
841
|
+
* Set the indent attribute
|
|
842
|
+
*/
|
|
843
|
+
indent: () => ReturnType;
|
|
844
|
+
/**
|
|
845
|
+
* Set the outdent attribute
|
|
846
|
+
*/
|
|
847
|
+
outdent: () => ReturnType;
|
|
851
848
|
};
|
|
852
849
|
}
|
|
853
850
|
}
|
|
@@ -855,11 +852,13 @@ declare module '@tiptap/core' {
|
|
|
855
852
|
|
|
856
853
|
declare module '@tiptap/core' {
|
|
857
854
|
interface Commands<ReturnType> {
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
emoji: string;
|
|
855
|
+
columns: {
|
|
856
|
+
insertColumns: (attrs?: {
|
|
857
|
+
cols: number;
|
|
862
858
|
}) => ReturnType;
|
|
859
|
+
addColBefore: () => ReturnType;
|
|
860
|
+
addColAfter: () => ReturnType;
|
|
861
|
+
deleteCol: () => ReturnType;
|
|
863
862
|
};
|
|
864
863
|
}
|
|
865
864
|
}
|
|
@@ -876,8 +875,9 @@ declare module '@tiptap/core' {
|
|
|
876
875
|
|
|
877
876
|
declare module '@tiptap/core' {
|
|
878
877
|
interface Commands<ReturnType> {
|
|
879
|
-
|
|
880
|
-
|
|
878
|
+
tableOfContents: {
|
|
879
|
+
setTableOfContents: () => ReturnType;
|
|
880
|
+
removeTableOfContents: () => ReturnType;
|
|
881
881
|
};
|
|
882
882
|
}
|
|
883
883
|
}
|
|
@@ -885,8 +885,19 @@ declare module '@tiptap/core' {
|
|
|
885
885
|
|
|
886
886
|
declare module '@tiptap/core' {
|
|
887
887
|
interface Commands<ReturnType> {
|
|
888
|
-
|
|
889
|
-
|
|
888
|
+
imageGifUpload: {
|
|
889
|
+
/**
|
|
890
|
+
* Add an image gif
|
|
891
|
+
*/
|
|
892
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
893
|
+
/**
|
|
894
|
+
* Update an image gif
|
|
895
|
+
*/
|
|
896
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
897
|
+
/**
|
|
898
|
+
* Set image alignment
|
|
899
|
+
*/
|
|
900
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
890
901
|
};
|
|
891
902
|
}
|
|
892
903
|
}
|
|
@@ -929,19 +940,8 @@ declare module '@tiptap/core' {
|
|
|
929
940
|
|
|
930
941
|
declare module '@tiptap/core' {
|
|
931
942
|
interface Commands<ReturnType> {
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
* Add an image gif
|
|
935
|
-
*/
|
|
936
|
-
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
937
|
-
/**
|
|
938
|
-
* Update an image gif
|
|
939
|
-
*/
|
|
940
|
-
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
941
|
-
/**
|
|
942
|
-
* Set image alignment
|
|
943
|
-
*/
|
|
944
|
-
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
943
|
+
attachment: {
|
|
944
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
945
945
|
};
|
|
946
946
|
}
|
|
947
947
|
}
|
|
@@ -727,9 +727,9 @@ declare module '@tiptap/core' {
|
|
|
727
727
|
|
|
728
728
|
declare module '@tiptap/core' {
|
|
729
729
|
interface Commands<ReturnType> {
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
730
|
+
lineHeight: {
|
|
731
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
732
|
+
unsetLineHeight: () => ReturnType;
|
|
733
733
|
};
|
|
734
734
|
}
|
|
735
735
|
}
|
|
@@ -737,15 +737,8 @@ declare module '@tiptap/core' {
|
|
|
737
737
|
|
|
738
738
|
declare module '@tiptap/core' {
|
|
739
739
|
interface Commands<ReturnType> {
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
* Set the indent attribute
|
|
743
|
-
*/
|
|
744
|
-
indent: () => ReturnType;
|
|
745
|
-
/**
|
|
746
|
-
* Set the outdent attribute
|
|
747
|
-
*/
|
|
748
|
-
outdent: () => ReturnType;
|
|
740
|
+
katex: {
|
|
741
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
749
742
|
};
|
|
750
743
|
}
|
|
751
744
|
}
|
|
@@ -753,19 +746,14 @@ declare module '@tiptap/core' {
|
|
|
753
746
|
|
|
754
747
|
declare module '@tiptap/core' {
|
|
755
748
|
interface Commands<ReturnType> {
|
|
756
|
-
|
|
757
|
-
/**
|
|
758
|
-
* Add an image
|
|
759
|
-
*/
|
|
760
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
761
|
-
/**
|
|
762
|
-
* Update an image
|
|
763
|
-
*/
|
|
764
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
749
|
+
iframe: {
|
|
765
750
|
/**
|
|
766
|
-
*
|
|
751
|
+
* Add an iframe
|
|
767
752
|
*/
|
|
768
|
-
|
|
753
|
+
setIframe: (options: {
|
|
754
|
+
src: string;
|
|
755
|
+
service: string;
|
|
756
|
+
}) => ReturnType;
|
|
769
757
|
};
|
|
770
758
|
}
|
|
771
759
|
}
|
|
@@ -773,9 +761,11 @@ declare module '@tiptap/core' {
|
|
|
773
761
|
|
|
774
762
|
declare module '@tiptap/core' {
|
|
775
763
|
interface Commands<ReturnType> {
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
764
|
+
emoji: {
|
|
765
|
+
setEmoji: (emoji: {
|
|
766
|
+
name: string;
|
|
767
|
+
emoji: string;
|
|
768
|
+
}) => ReturnType;
|
|
779
769
|
};
|
|
780
770
|
}
|
|
781
771
|
}
|
|
@@ -783,14 +773,8 @@ declare module '@tiptap/core' {
|
|
|
783
773
|
|
|
784
774
|
declare module '@tiptap/core' {
|
|
785
775
|
interface Commands<ReturnType> {
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
789
|
-
replace: () => ReturnType;
|
|
790
|
-
replaceAll: () => ReturnType;
|
|
791
|
-
goToPrevSearchResult: () => void;
|
|
792
|
-
goToNextSearchResult: () => void;
|
|
793
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
776
|
+
painter: {
|
|
777
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
794
778
|
};
|
|
795
779
|
}
|
|
796
780
|
}
|
|
@@ -798,9 +782,8 @@ declare module '@tiptap/core' {
|
|
|
798
782
|
|
|
799
783
|
declare module '@tiptap/core' {
|
|
800
784
|
interface Commands<ReturnType> {
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
removeTableOfContents: () => ReturnType;
|
|
785
|
+
exportWord: {
|
|
786
|
+
exportToWord: () => ReturnType;
|
|
804
787
|
};
|
|
805
788
|
}
|
|
806
789
|
}
|
|
@@ -808,14 +791,19 @@ declare module '@tiptap/core' {
|
|
|
808
791
|
|
|
809
792
|
declare module '@tiptap/core' {
|
|
810
793
|
interface Commands<ReturnType> {
|
|
811
|
-
|
|
794
|
+
imageUpload: {
|
|
812
795
|
/**
|
|
813
|
-
* Add an
|
|
796
|
+
* Add an image
|
|
814
797
|
*/
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
798
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
799
|
+
/**
|
|
800
|
+
* Update an image
|
|
801
|
+
*/
|
|
802
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
803
|
+
/**
|
|
804
|
+
* Set image alignment
|
|
805
|
+
*/
|
|
806
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
819
807
|
};
|
|
820
808
|
}
|
|
821
809
|
}
|
|
@@ -823,13 +811,14 @@ declare module '@tiptap/core' {
|
|
|
823
811
|
|
|
824
812
|
declare module '@tiptap/core' {
|
|
825
813
|
interface Commands<ReturnType> {
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
814
|
+
search: {
|
|
815
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
816
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
817
|
+
replace: () => ReturnType;
|
|
818
|
+
replaceAll: () => ReturnType;
|
|
819
|
+
goToPrevSearchResult: () => void;
|
|
820
|
+
goToNextSearchResult: () => void;
|
|
821
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
833
822
|
};
|
|
834
823
|
}
|
|
835
824
|
}
|
|
@@ -837,8 +826,9 @@ declare module '@tiptap/core' {
|
|
|
837
826
|
|
|
838
827
|
declare module '@tiptap/core' {
|
|
839
828
|
interface Commands<ReturnType> {
|
|
840
|
-
|
|
841
|
-
|
|
829
|
+
tableCellBackground: {
|
|
830
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
831
|
+
unsetTableCellBackground: () => ReturnType;
|
|
842
832
|
};
|
|
843
833
|
}
|
|
844
834
|
}
|
|
@@ -846,8 +836,15 @@ declare module '@tiptap/core' {
|
|
|
846
836
|
|
|
847
837
|
declare module '@tiptap/core' {
|
|
848
838
|
interface Commands<ReturnType> {
|
|
849
|
-
|
|
850
|
-
|
|
839
|
+
indent: {
|
|
840
|
+
/**
|
|
841
|
+
* Set the indent attribute
|
|
842
|
+
*/
|
|
843
|
+
indent: () => ReturnType;
|
|
844
|
+
/**
|
|
845
|
+
* Set the outdent attribute
|
|
846
|
+
*/
|
|
847
|
+
outdent: () => ReturnType;
|
|
851
848
|
};
|
|
852
849
|
}
|
|
853
850
|
}
|
|
@@ -855,11 +852,13 @@ declare module '@tiptap/core' {
|
|
|
855
852
|
|
|
856
853
|
declare module '@tiptap/core' {
|
|
857
854
|
interface Commands<ReturnType> {
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
emoji: string;
|
|
855
|
+
columns: {
|
|
856
|
+
insertColumns: (attrs?: {
|
|
857
|
+
cols: number;
|
|
862
858
|
}) => ReturnType;
|
|
859
|
+
addColBefore: () => ReturnType;
|
|
860
|
+
addColAfter: () => ReturnType;
|
|
861
|
+
deleteCol: () => ReturnType;
|
|
863
862
|
};
|
|
864
863
|
}
|
|
865
864
|
}
|
|
@@ -876,8 +875,9 @@ declare module '@tiptap/core' {
|
|
|
876
875
|
|
|
877
876
|
declare module '@tiptap/core' {
|
|
878
877
|
interface Commands<ReturnType> {
|
|
879
|
-
|
|
880
|
-
|
|
878
|
+
tableOfContents: {
|
|
879
|
+
setTableOfContents: () => ReturnType;
|
|
880
|
+
removeTableOfContents: () => ReturnType;
|
|
881
881
|
};
|
|
882
882
|
}
|
|
883
883
|
}
|
|
@@ -885,8 +885,19 @@ declare module '@tiptap/core' {
|
|
|
885
885
|
|
|
886
886
|
declare module '@tiptap/core' {
|
|
887
887
|
interface Commands<ReturnType> {
|
|
888
|
-
|
|
889
|
-
|
|
888
|
+
imageGifUpload: {
|
|
889
|
+
/**
|
|
890
|
+
* Add an image gif
|
|
891
|
+
*/
|
|
892
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
893
|
+
/**
|
|
894
|
+
* Update an image gif
|
|
895
|
+
*/
|
|
896
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
897
|
+
/**
|
|
898
|
+
* Set image alignment
|
|
899
|
+
*/
|
|
900
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
890
901
|
};
|
|
891
902
|
}
|
|
892
903
|
}
|
|
@@ -929,19 +940,8 @@ declare module '@tiptap/core' {
|
|
|
929
940
|
|
|
930
941
|
declare module '@tiptap/core' {
|
|
931
942
|
interface Commands<ReturnType> {
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
* Add an image gif
|
|
935
|
-
*/
|
|
936
|
-
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
937
|
-
/**
|
|
938
|
-
* Update an image gif
|
|
939
|
-
*/
|
|
940
|
-
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
941
|
-
/**
|
|
942
|
-
* Set image alignment
|
|
943
|
-
*/
|
|
944
|
-
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
943
|
+
attachment: {
|
|
944
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
945
945
|
};
|
|
946
946
|
}
|
|
947
947
|
}
|