reactjs-tiptap-editor-pro 0.2.41 → 0.2.42
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.cjs +16 -16
- package/lib/extension-bundle.d.cts +75 -75
- package/lib/extension-bundle.d.ts +75 -75
- package/lib/extension-bundle.js +517 -531
- package/lib/index.d.cts +75 -75
- package/lib/index.d.ts +75 -75
- package/lib/locale-bundle.d.cts +75 -75
- package/lib/locale-bundle.d.ts +75 -75
- package/package.json +20 -21
|
@@ -725,39 +725,9 @@ declare module '@tiptap/core' {
|
|
|
725
725
|
|
|
726
726
|
declare module '@tiptap/core' {
|
|
727
727
|
interface Commands<ReturnType> {
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
*/
|
|
732
|
-
indent: () => ReturnType;
|
|
733
|
-
/**
|
|
734
|
-
* Set the outdent attribute
|
|
735
|
-
*/
|
|
736
|
-
outdent: () => ReturnType;
|
|
737
|
-
};
|
|
738
|
-
}
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
declare module '@tiptap/core' {
|
|
743
|
-
interface Commands<ReturnType> {
|
|
744
|
-
iframe: {
|
|
745
|
-
/**
|
|
746
|
-
* Add an iframe
|
|
747
|
-
*/
|
|
748
|
-
setIframe: (options: {
|
|
749
|
-
src: string;
|
|
750
|
-
service: string;
|
|
751
|
-
}) => ReturnType;
|
|
752
|
-
};
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
declare module '@tiptap/core' {
|
|
758
|
-
interface Commands<ReturnType> {
|
|
759
|
-
painter: {
|
|
760
|
-
setPainter: (marks: Mark[]) => ReturnType;
|
|
728
|
+
lineHeight: {
|
|
729
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
730
|
+
unsetLineHeight: () => ReturnType;
|
|
761
731
|
};
|
|
762
732
|
}
|
|
763
733
|
}
|
|
@@ -785,9 +755,9 @@ declare module '@tiptap/core' {
|
|
|
785
755
|
|
|
786
756
|
declare module '@tiptap/core' {
|
|
787
757
|
interface Commands<ReturnType> {
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
758
|
+
tableOfContents: {
|
|
759
|
+
setTableOfContents: () => ReturnType;
|
|
760
|
+
removeTableOfContents: () => ReturnType;
|
|
791
761
|
};
|
|
792
762
|
}
|
|
793
763
|
}
|
|
@@ -795,11 +765,24 @@ declare module '@tiptap/core' {
|
|
|
795
765
|
|
|
796
766
|
declare module '@tiptap/core' {
|
|
797
767
|
interface Commands<ReturnType> {
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
768
|
+
indent: {
|
|
769
|
+
/**
|
|
770
|
+
* Set the indent attribute
|
|
771
|
+
*/
|
|
772
|
+
indent: () => ReturnType;
|
|
773
|
+
/**
|
|
774
|
+
* Set the outdent attribute
|
|
775
|
+
*/
|
|
776
|
+
outdent: () => ReturnType;
|
|
777
|
+
};
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
|
|
782
|
+
declare module '@tiptap/core' {
|
|
783
|
+
interface Commands<ReturnType> {
|
|
784
|
+
exportWord: {
|
|
785
|
+
exportToWord: () => ReturnType;
|
|
803
786
|
};
|
|
804
787
|
}
|
|
805
788
|
}
|
|
@@ -821,9 +804,8 @@ declare module '@tiptap/core' {
|
|
|
821
804
|
|
|
822
805
|
declare module '@tiptap/core' {
|
|
823
806
|
interface Commands<ReturnType> {
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
unsetTableCellBackground: () => ReturnType;
|
|
807
|
+
katex: {
|
|
808
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
827
809
|
};
|
|
828
810
|
}
|
|
829
811
|
}
|
|
@@ -831,14 +813,8 @@ declare module '@tiptap/core' {
|
|
|
831
813
|
|
|
832
814
|
declare module '@tiptap/core' {
|
|
833
815
|
interface Commands<ReturnType> {
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
837
|
-
replace: () => ReturnType;
|
|
838
|
-
replaceAll: () => ReturnType;
|
|
839
|
-
goToPrevSearchResult: () => void;
|
|
840
|
-
goToNextSearchResult: () => void;
|
|
841
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
816
|
+
painter: {
|
|
817
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
842
818
|
};
|
|
843
819
|
}
|
|
844
820
|
}
|
|
@@ -846,8 +822,11 @@ declare module '@tiptap/core' {
|
|
|
846
822
|
|
|
847
823
|
declare module '@tiptap/core' {
|
|
848
824
|
interface Commands<ReturnType> {
|
|
849
|
-
|
|
850
|
-
|
|
825
|
+
emoji: {
|
|
826
|
+
setEmoji: (emoji: {
|
|
827
|
+
name: string;
|
|
828
|
+
emoji: string;
|
|
829
|
+
}) => ReturnType;
|
|
851
830
|
};
|
|
852
831
|
}
|
|
853
832
|
}
|
|
@@ -855,8 +834,14 @@ declare module '@tiptap/core' {
|
|
|
855
834
|
|
|
856
835
|
declare module '@tiptap/core' {
|
|
857
836
|
interface Commands<ReturnType> {
|
|
858
|
-
|
|
859
|
-
|
|
837
|
+
search: {
|
|
838
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
839
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
840
|
+
replace: () => ReturnType;
|
|
841
|
+
replaceAll: () => ReturnType;
|
|
842
|
+
goToPrevSearchResult: () => void;
|
|
843
|
+
goToNextSearchResult: () => void;
|
|
844
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
860
845
|
};
|
|
861
846
|
}
|
|
862
847
|
}
|
|
@@ -864,9 +849,14 @@ declare module '@tiptap/core' {
|
|
|
864
849
|
|
|
865
850
|
declare module '@tiptap/core' {
|
|
866
851
|
interface Commands<ReturnType> {
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
852
|
+
iframe: {
|
|
853
|
+
/**
|
|
854
|
+
* Add an iframe
|
|
855
|
+
*/
|
|
856
|
+
setIframe: (options: {
|
|
857
|
+
src: string;
|
|
858
|
+
service: string;
|
|
859
|
+
}) => ReturnType;
|
|
870
860
|
};
|
|
871
861
|
}
|
|
872
862
|
}
|
|
@@ -874,8 +864,9 @@ declare module '@tiptap/core' {
|
|
|
874
864
|
|
|
875
865
|
declare module '@tiptap/core' {
|
|
876
866
|
interface Commands<ReturnType> {
|
|
877
|
-
|
|
878
|
-
|
|
867
|
+
tableCellBackground: {
|
|
868
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
869
|
+
unsetTableCellBackground: () => ReturnType;
|
|
879
870
|
};
|
|
880
871
|
}
|
|
881
872
|
}
|
|
@@ -883,14 +874,8 @@ declare module '@tiptap/core' {
|
|
|
883
874
|
|
|
884
875
|
declare module '@tiptap/core' {
|
|
885
876
|
interface Commands<ReturnType> {
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
* Insert a tweet
|
|
889
|
-
* @param options The tweet attributes
|
|
890
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
891
|
-
*/
|
|
892
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
893
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
877
|
+
attachment: {
|
|
878
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
894
879
|
};
|
|
895
880
|
}
|
|
896
881
|
}
|
|
@@ -918,9 +903,9 @@ declare module '@tiptap/core' {
|
|
|
918
903
|
|
|
919
904
|
declare module '@tiptap/core' {
|
|
920
905
|
interface Commands<ReturnType> {
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
906
|
+
mermaid: {
|
|
907
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
908
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
924
909
|
};
|
|
925
910
|
}
|
|
926
911
|
}
|
|
@@ -928,9 +913,24 @@ declare module '@tiptap/core' {
|
|
|
928
913
|
|
|
929
914
|
declare module '@tiptap/core' {
|
|
930
915
|
interface Commands<ReturnType> {
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
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
934
|
};
|
|
935
935
|
}
|
|
936
936
|
}
|
|
@@ -725,39 +725,9 @@ declare module '@tiptap/core' {
|
|
|
725
725
|
|
|
726
726
|
declare module '@tiptap/core' {
|
|
727
727
|
interface Commands<ReturnType> {
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
*/
|
|
732
|
-
indent: () => ReturnType;
|
|
733
|
-
/**
|
|
734
|
-
* Set the outdent attribute
|
|
735
|
-
*/
|
|
736
|
-
outdent: () => ReturnType;
|
|
737
|
-
};
|
|
738
|
-
}
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
declare module '@tiptap/core' {
|
|
743
|
-
interface Commands<ReturnType> {
|
|
744
|
-
iframe: {
|
|
745
|
-
/**
|
|
746
|
-
* Add an iframe
|
|
747
|
-
*/
|
|
748
|
-
setIframe: (options: {
|
|
749
|
-
src: string;
|
|
750
|
-
service: string;
|
|
751
|
-
}) => ReturnType;
|
|
752
|
-
};
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
declare module '@tiptap/core' {
|
|
758
|
-
interface Commands<ReturnType> {
|
|
759
|
-
painter: {
|
|
760
|
-
setPainter: (marks: Mark[]) => ReturnType;
|
|
728
|
+
lineHeight: {
|
|
729
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
730
|
+
unsetLineHeight: () => ReturnType;
|
|
761
731
|
};
|
|
762
732
|
}
|
|
763
733
|
}
|
|
@@ -785,9 +755,9 @@ declare module '@tiptap/core' {
|
|
|
785
755
|
|
|
786
756
|
declare module '@tiptap/core' {
|
|
787
757
|
interface Commands<ReturnType> {
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
758
|
+
tableOfContents: {
|
|
759
|
+
setTableOfContents: () => ReturnType;
|
|
760
|
+
removeTableOfContents: () => ReturnType;
|
|
791
761
|
};
|
|
792
762
|
}
|
|
793
763
|
}
|
|
@@ -795,11 +765,24 @@ declare module '@tiptap/core' {
|
|
|
795
765
|
|
|
796
766
|
declare module '@tiptap/core' {
|
|
797
767
|
interface Commands<ReturnType> {
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
768
|
+
indent: {
|
|
769
|
+
/**
|
|
770
|
+
* Set the indent attribute
|
|
771
|
+
*/
|
|
772
|
+
indent: () => ReturnType;
|
|
773
|
+
/**
|
|
774
|
+
* Set the outdent attribute
|
|
775
|
+
*/
|
|
776
|
+
outdent: () => ReturnType;
|
|
777
|
+
};
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
|
|
782
|
+
declare module '@tiptap/core' {
|
|
783
|
+
interface Commands<ReturnType> {
|
|
784
|
+
exportWord: {
|
|
785
|
+
exportToWord: () => ReturnType;
|
|
803
786
|
};
|
|
804
787
|
}
|
|
805
788
|
}
|
|
@@ -821,9 +804,8 @@ declare module '@tiptap/core' {
|
|
|
821
804
|
|
|
822
805
|
declare module '@tiptap/core' {
|
|
823
806
|
interface Commands<ReturnType> {
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
unsetTableCellBackground: () => ReturnType;
|
|
807
|
+
katex: {
|
|
808
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
827
809
|
};
|
|
828
810
|
}
|
|
829
811
|
}
|
|
@@ -831,14 +813,8 @@ declare module '@tiptap/core' {
|
|
|
831
813
|
|
|
832
814
|
declare module '@tiptap/core' {
|
|
833
815
|
interface Commands<ReturnType> {
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
837
|
-
replace: () => ReturnType;
|
|
838
|
-
replaceAll: () => ReturnType;
|
|
839
|
-
goToPrevSearchResult: () => void;
|
|
840
|
-
goToNextSearchResult: () => void;
|
|
841
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
816
|
+
painter: {
|
|
817
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
842
818
|
};
|
|
843
819
|
}
|
|
844
820
|
}
|
|
@@ -846,8 +822,11 @@ declare module '@tiptap/core' {
|
|
|
846
822
|
|
|
847
823
|
declare module '@tiptap/core' {
|
|
848
824
|
interface Commands<ReturnType> {
|
|
849
|
-
|
|
850
|
-
|
|
825
|
+
emoji: {
|
|
826
|
+
setEmoji: (emoji: {
|
|
827
|
+
name: string;
|
|
828
|
+
emoji: string;
|
|
829
|
+
}) => ReturnType;
|
|
851
830
|
};
|
|
852
831
|
}
|
|
853
832
|
}
|
|
@@ -855,8 +834,14 @@ declare module '@tiptap/core' {
|
|
|
855
834
|
|
|
856
835
|
declare module '@tiptap/core' {
|
|
857
836
|
interface Commands<ReturnType> {
|
|
858
|
-
|
|
859
|
-
|
|
837
|
+
search: {
|
|
838
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
839
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
840
|
+
replace: () => ReturnType;
|
|
841
|
+
replaceAll: () => ReturnType;
|
|
842
|
+
goToPrevSearchResult: () => void;
|
|
843
|
+
goToNextSearchResult: () => void;
|
|
844
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
860
845
|
};
|
|
861
846
|
}
|
|
862
847
|
}
|
|
@@ -864,9 +849,14 @@ declare module '@tiptap/core' {
|
|
|
864
849
|
|
|
865
850
|
declare module '@tiptap/core' {
|
|
866
851
|
interface Commands<ReturnType> {
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
852
|
+
iframe: {
|
|
853
|
+
/**
|
|
854
|
+
* Add an iframe
|
|
855
|
+
*/
|
|
856
|
+
setIframe: (options: {
|
|
857
|
+
src: string;
|
|
858
|
+
service: string;
|
|
859
|
+
}) => ReturnType;
|
|
870
860
|
};
|
|
871
861
|
}
|
|
872
862
|
}
|
|
@@ -874,8 +864,9 @@ declare module '@tiptap/core' {
|
|
|
874
864
|
|
|
875
865
|
declare module '@tiptap/core' {
|
|
876
866
|
interface Commands<ReturnType> {
|
|
877
|
-
|
|
878
|
-
|
|
867
|
+
tableCellBackground: {
|
|
868
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
869
|
+
unsetTableCellBackground: () => ReturnType;
|
|
879
870
|
};
|
|
880
871
|
}
|
|
881
872
|
}
|
|
@@ -883,14 +874,8 @@ declare module '@tiptap/core' {
|
|
|
883
874
|
|
|
884
875
|
declare module '@tiptap/core' {
|
|
885
876
|
interface Commands<ReturnType> {
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
* Insert a tweet
|
|
889
|
-
* @param options The tweet attributes
|
|
890
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
891
|
-
*/
|
|
892
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
893
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
877
|
+
attachment: {
|
|
878
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
894
879
|
};
|
|
895
880
|
}
|
|
896
881
|
}
|
|
@@ -918,9 +903,9 @@ declare module '@tiptap/core' {
|
|
|
918
903
|
|
|
919
904
|
declare module '@tiptap/core' {
|
|
920
905
|
interface Commands<ReturnType> {
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
906
|
+
mermaid: {
|
|
907
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
908
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
924
909
|
};
|
|
925
910
|
}
|
|
926
911
|
}
|
|
@@ -928,9 +913,24 @@ declare module '@tiptap/core' {
|
|
|
928
913
|
|
|
929
914
|
declare module '@tiptap/core' {
|
|
930
915
|
interface Commands<ReturnType> {
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
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
934
|
};
|
|
935
935
|
}
|
|
936
936
|
}
|