reactjs-tiptap-editor 0.2.10 → 0.2.11
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 +79 -79
- package/lib/extension-bundle.d.ts +79 -79
- package/lib/index.d.cts +79 -79
- package/lib/index.d.ts +79 -79
- package/lib/locale-bundle.d.cts +79 -79
- package/lib/locale-bundle.d.ts +79 -79
- package/package.json +1 -2
|
@@ -700,25 +700,9 @@ declare module '@tiptap/core' {
|
|
|
700
700
|
|
|
701
701
|
declare module '@tiptap/core' {
|
|
702
702
|
interface Commands<ReturnType> {
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
};
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
declare module '@tiptap/core' {
|
|
712
|
-
interface Commands<ReturnType> {
|
|
713
|
-
indent: {
|
|
714
|
-
/**
|
|
715
|
-
* Set the indent attribute
|
|
716
|
-
*/
|
|
717
|
-
indent: () => ReturnType;
|
|
718
|
-
/**
|
|
719
|
-
* Set the outdent attribute
|
|
720
|
-
*/
|
|
721
|
-
outdent: () => ReturnType;
|
|
703
|
+
tableCellBackground: {
|
|
704
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
705
|
+
unsetTableCellBackground: () => ReturnType;
|
|
722
706
|
};
|
|
723
707
|
}
|
|
724
708
|
}
|
|
@@ -726,19 +710,8 @@ declare module '@tiptap/core' {
|
|
|
726
710
|
|
|
727
711
|
declare module '@tiptap/core' {
|
|
728
712
|
interface Commands<ReturnType> {
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
* Add an image
|
|
732
|
-
*/
|
|
733
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
734
|
-
/**
|
|
735
|
-
* Update an image
|
|
736
|
-
*/
|
|
737
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
738
|
-
/**
|
|
739
|
-
* Set image alignment
|
|
740
|
-
*/
|
|
741
|
-
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
713
|
+
painter: {
|
|
714
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
742
715
|
};
|
|
743
716
|
}
|
|
744
717
|
}
|
|
@@ -760,24 +733,15 @@ declare module '@tiptap/core' {
|
|
|
760
733
|
|
|
761
734
|
declare module '@tiptap/core' {
|
|
762
735
|
interface Commands<ReturnType> {
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
interface Commands<ReturnType> {
|
|
773
|
-
search: {
|
|
774
|
-
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
775
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
776
|
-
replace: () => ReturnType;
|
|
777
|
-
replaceAll: () => ReturnType;
|
|
778
|
-
goToPrevSearchResult: () => void;
|
|
779
|
-
goToNextSearchResult: () => void;
|
|
780
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
736
|
+
indent: {
|
|
737
|
+
/**
|
|
738
|
+
* Set the indent attribute
|
|
739
|
+
*/
|
|
740
|
+
indent: () => ReturnType;
|
|
741
|
+
/**
|
|
742
|
+
* Set the outdent attribute
|
|
743
|
+
*/
|
|
744
|
+
outdent: () => ReturnType;
|
|
781
745
|
};
|
|
782
746
|
}
|
|
783
747
|
}
|
|
@@ -785,8 +749,9 @@ declare module '@tiptap/core' {
|
|
|
785
749
|
|
|
786
750
|
declare module '@tiptap/core' {
|
|
787
751
|
interface Commands<ReturnType> {
|
|
788
|
-
|
|
789
|
-
|
|
752
|
+
lineHeight: {
|
|
753
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
754
|
+
unsetLineHeight: () => ReturnType;
|
|
790
755
|
};
|
|
791
756
|
}
|
|
792
757
|
}
|
|
@@ -794,8 +759,11 @@ declare module '@tiptap/core' {
|
|
|
794
759
|
|
|
795
760
|
declare module '@tiptap/core' {
|
|
796
761
|
interface Commands<ReturnType> {
|
|
797
|
-
|
|
798
|
-
|
|
762
|
+
emoji: {
|
|
763
|
+
setEmoji: (emoji: {
|
|
764
|
+
name: string;
|
|
765
|
+
emoji: string;
|
|
766
|
+
}) => ReturnType;
|
|
799
767
|
};
|
|
800
768
|
}
|
|
801
769
|
}
|
|
@@ -818,8 +786,19 @@ declare module '@tiptap/core' {
|
|
|
818
786
|
|
|
819
787
|
declare module '@tiptap/core' {
|
|
820
788
|
interface Commands<ReturnType> {
|
|
821
|
-
|
|
822
|
-
|
|
789
|
+
imageUpload: {
|
|
790
|
+
/**
|
|
791
|
+
* Add an image
|
|
792
|
+
*/
|
|
793
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
794
|
+
/**
|
|
795
|
+
* Update an image
|
|
796
|
+
*/
|
|
797
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
798
|
+
/**
|
|
799
|
+
* Set image alignment
|
|
800
|
+
*/
|
|
801
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
823
802
|
};
|
|
824
803
|
}
|
|
825
804
|
}
|
|
@@ -827,9 +806,14 @@ declare module '@tiptap/core' {
|
|
|
827
806
|
|
|
828
807
|
declare module '@tiptap/core' {
|
|
829
808
|
interface Commands<ReturnType> {
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
809
|
+
search: {
|
|
810
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
811
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
812
|
+
replace: () => ReturnType;
|
|
813
|
+
replaceAll: () => ReturnType;
|
|
814
|
+
goToPrevSearchResult: () => void;
|
|
815
|
+
goToNextSearchResult: () => void;
|
|
816
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
833
817
|
};
|
|
834
818
|
}
|
|
835
819
|
}
|
|
@@ -837,11 +821,8 @@ declare module '@tiptap/core' {
|
|
|
837
821
|
|
|
838
822
|
declare module '@tiptap/core' {
|
|
839
823
|
interface Commands<ReturnType> {
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
name: string;
|
|
843
|
-
emoji: string;
|
|
844
|
-
}) => ReturnType;
|
|
824
|
+
katex: {
|
|
825
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
845
826
|
};
|
|
846
827
|
}
|
|
847
828
|
}
|
|
@@ -849,8 +830,8 @@ declare module '@tiptap/core' {
|
|
|
849
830
|
|
|
850
831
|
declare module '@tiptap/core' {
|
|
851
832
|
interface Commands<ReturnType> {
|
|
852
|
-
|
|
853
|
-
|
|
833
|
+
exportWord: {
|
|
834
|
+
exportToWord: () => ReturnType;
|
|
854
835
|
};
|
|
855
836
|
}
|
|
856
837
|
}
|
|
@@ -858,9 +839,9 @@ declare module '@tiptap/core' {
|
|
|
858
839
|
|
|
859
840
|
declare module '@tiptap/core' {
|
|
860
841
|
interface Commands<ReturnType> {
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
842
|
+
tableOfContents: {
|
|
843
|
+
setTableOfContents: () => ReturnType;
|
|
844
|
+
removeTableOfContents: () => ReturnType;
|
|
864
845
|
};
|
|
865
846
|
}
|
|
866
847
|
}
|
|
@@ -868,8 +849,8 @@ declare module '@tiptap/core' {
|
|
|
868
849
|
|
|
869
850
|
declare module '@tiptap/core' {
|
|
870
851
|
interface Commands<ReturnType> {
|
|
871
|
-
|
|
872
|
-
|
|
852
|
+
excalidraw: {
|
|
853
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
873
854
|
};
|
|
874
855
|
}
|
|
875
856
|
}
|
|
@@ -877,14 +858,8 @@ declare module '@tiptap/core' {
|
|
|
877
858
|
|
|
878
859
|
declare module '@tiptap/core' {
|
|
879
860
|
interface Commands<ReturnType> {
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
* Insert a tweet
|
|
883
|
-
* @param options The tweet attributes
|
|
884
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
885
|
-
*/
|
|
886
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
887
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
861
|
+
attachment: {
|
|
862
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
888
863
|
};
|
|
889
864
|
}
|
|
890
865
|
}
|
|
@@ -910,6 +885,31 @@ declare module '@tiptap/core' {
|
|
|
910
885
|
}
|
|
911
886
|
|
|
912
887
|
|
|
888
|
+
declare module '@tiptap/core' {
|
|
889
|
+
interface Commands<ReturnType> {
|
|
890
|
+
twitter: {
|
|
891
|
+
/**
|
|
892
|
+
* Insert a tweet
|
|
893
|
+
* @param options The tweet attributes
|
|
894
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
895
|
+
*/
|
|
896
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
897
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
898
|
+
};
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
|
|
903
|
+
declare module '@tiptap/core' {
|
|
904
|
+
interface Commands<ReturnType> {
|
|
905
|
+
drawer: {
|
|
906
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
907
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
908
|
+
};
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
|
|
913
913
|
declare module '@tiptap/core' {
|
|
914
914
|
interface Commands<ReturnType> {
|
|
915
915
|
mermaid: {
|
|
@@ -700,25 +700,9 @@ declare module '@tiptap/core' {
|
|
|
700
700
|
|
|
701
701
|
declare module '@tiptap/core' {
|
|
702
702
|
interface Commands<ReturnType> {
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
};
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
declare module '@tiptap/core' {
|
|
712
|
-
interface Commands<ReturnType> {
|
|
713
|
-
indent: {
|
|
714
|
-
/**
|
|
715
|
-
* Set the indent attribute
|
|
716
|
-
*/
|
|
717
|
-
indent: () => ReturnType;
|
|
718
|
-
/**
|
|
719
|
-
* Set the outdent attribute
|
|
720
|
-
*/
|
|
721
|
-
outdent: () => ReturnType;
|
|
703
|
+
tableCellBackground: {
|
|
704
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
705
|
+
unsetTableCellBackground: () => ReturnType;
|
|
722
706
|
};
|
|
723
707
|
}
|
|
724
708
|
}
|
|
@@ -726,19 +710,8 @@ declare module '@tiptap/core' {
|
|
|
726
710
|
|
|
727
711
|
declare module '@tiptap/core' {
|
|
728
712
|
interface Commands<ReturnType> {
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
* Add an image
|
|
732
|
-
*/
|
|
733
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
734
|
-
/**
|
|
735
|
-
* Update an image
|
|
736
|
-
*/
|
|
737
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
738
|
-
/**
|
|
739
|
-
* Set image alignment
|
|
740
|
-
*/
|
|
741
|
-
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
713
|
+
painter: {
|
|
714
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
742
715
|
};
|
|
743
716
|
}
|
|
744
717
|
}
|
|
@@ -760,24 +733,15 @@ declare module '@tiptap/core' {
|
|
|
760
733
|
|
|
761
734
|
declare module '@tiptap/core' {
|
|
762
735
|
interface Commands<ReturnType> {
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
interface Commands<ReturnType> {
|
|
773
|
-
search: {
|
|
774
|
-
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
775
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
776
|
-
replace: () => ReturnType;
|
|
777
|
-
replaceAll: () => ReturnType;
|
|
778
|
-
goToPrevSearchResult: () => void;
|
|
779
|
-
goToNextSearchResult: () => void;
|
|
780
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
736
|
+
indent: {
|
|
737
|
+
/**
|
|
738
|
+
* Set the indent attribute
|
|
739
|
+
*/
|
|
740
|
+
indent: () => ReturnType;
|
|
741
|
+
/**
|
|
742
|
+
* Set the outdent attribute
|
|
743
|
+
*/
|
|
744
|
+
outdent: () => ReturnType;
|
|
781
745
|
};
|
|
782
746
|
}
|
|
783
747
|
}
|
|
@@ -785,8 +749,9 @@ declare module '@tiptap/core' {
|
|
|
785
749
|
|
|
786
750
|
declare module '@tiptap/core' {
|
|
787
751
|
interface Commands<ReturnType> {
|
|
788
|
-
|
|
789
|
-
|
|
752
|
+
lineHeight: {
|
|
753
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
754
|
+
unsetLineHeight: () => ReturnType;
|
|
790
755
|
};
|
|
791
756
|
}
|
|
792
757
|
}
|
|
@@ -794,8 +759,11 @@ declare module '@tiptap/core' {
|
|
|
794
759
|
|
|
795
760
|
declare module '@tiptap/core' {
|
|
796
761
|
interface Commands<ReturnType> {
|
|
797
|
-
|
|
798
|
-
|
|
762
|
+
emoji: {
|
|
763
|
+
setEmoji: (emoji: {
|
|
764
|
+
name: string;
|
|
765
|
+
emoji: string;
|
|
766
|
+
}) => ReturnType;
|
|
799
767
|
};
|
|
800
768
|
}
|
|
801
769
|
}
|
|
@@ -818,8 +786,19 @@ declare module '@tiptap/core' {
|
|
|
818
786
|
|
|
819
787
|
declare module '@tiptap/core' {
|
|
820
788
|
interface Commands<ReturnType> {
|
|
821
|
-
|
|
822
|
-
|
|
789
|
+
imageUpload: {
|
|
790
|
+
/**
|
|
791
|
+
* Add an image
|
|
792
|
+
*/
|
|
793
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
794
|
+
/**
|
|
795
|
+
* Update an image
|
|
796
|
+
*/
|
|
797
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
798
|
+
/**
|
|
799
|
+
* Set image alignment
|
|
800
|
+
*/
|
|
801
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
823
802
|
};
|
|
824
803
|
}
|
|
825
804
|
}
|
|
@@ -827,9 +806,14 @@ declare module '@tiptap/core' {
|
|
|
827
806
|
|
|
828
807
|
declare module '@tiptap/core' {
|
|
829
808
|
interface Commands<ReturnType> {
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
809
|
+
search: {
|
|
810
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
811
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
812
|
+
replace: () => ReturnType;
|
|
813
|
+
replaceAll: () => ReturnType;
|
|
814
|
+
goToPrevSearchResult: () => void;
|
|
815
|
+
goToNextSearchResult: () => void;
|
|
816
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
833
817
|
};
|
|
834
818
|
}
|
|
835
819
|
}
|
|
@@ -837,11 +821,8 @@ declare module '@tiptap/core' {
|
|
|
837
821
|
|
|
838
822
|
declare module '@tiptap/core' {
|
|
839
823
|
interface Commands<ReturnType> {
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
name: string;
|
|
843
|
-
emoji: string;
|
|
844
|
-
}) => ReturnType;
|
|
824
|
+
katex: {
|
|
825
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
845
826
|
};
|
|
846
827
|
}
|
|
847
828
|
}
|
|
@@ -849,8 +830,8 @@ declare module '@tiptap/core' {
|
|
|
849
830
|
|
|
850
831
|
declare module '@tiptap/core' {
|
|
851
832
|
interface Commands<ReturnType> {
|
|
852
|
-
|
|
853
|
-
|
|
833
|
+
exportWord: {
|
|
834
|
+
exportToWord: () => ReturnType;
|
|
854
835
|
};
|
|
855
836
|
}
|
|
856
837
|
}
|
|
@@ -858,9 +839,9 @@ declare module '@tiptap/core' {
|
|
|
858
839
|
|
|
859
840
|
declare module '@tiptap/core' {
|
|
860
841
|
interface Commands<ReturnType> {
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
842
|
+
tableOfContents: {
|
|
843
|
+
setTableOfContents: () => ReturnType;
|
|
844
|
+
removeTableOfContents: () => ReturnType;
|
|
864
845
|
};
|
|
865
846
|
}
|
|
866
847
|
}
|
|
@@ -868,8 +849,8 @@ declare module '@tiptap/core' {
|
|
|
868
849
|
|
|
869
850
|
declare module '@tiptap/core' {
|
|
870
851
|
interface Commands<ReturnType> {
|
|
871
|
-
|
|
872
|
-
|
|
852
|
+
excalidraw: {
|
|
853
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
873
854
|
};
|
|
874
855
|
}
|
|
875
856
|
}
|
|
@@ -877,14 +858,8 @@ declare module '@tiptap/core' {
|
|
|
877
858
|
|
|
878
859
|
declare module '@tiptap/core' {
|
|
879
860
|
interface Commands<ReturnType> {
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
* Insert a tweet
|
|
883
|
-
* @param options The tweet attributes
|
|
884
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
885
|
-
*/
|
|
886
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
887
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
861
|
+
attachment: {
|
|
862
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
888
863
|
};
|
|
889
864
|
}
|
|
890
865
|
}
|
|
@@ -910,6 +885,31 @@ declare module '@tiptap/core' {
|
|
|
910
885
|
}
|
|
911
886
|
|
|
912
887
|
|
|
888
|
+
declare module '@tiptap/core' {
|
|
889
|
+
interface Commands<ReturnType> {
|
|
890
|
+
twitter: {
|
|
891
|
+
/**
|
|
892
|
+
* Insert a tweet
|
|
893
|
+
* @param options The tweet attributes
|
|
894
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
895
|
+
*/
|
|
896
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
897
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
898
|
+
};
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
|
|
903
|
+
declare module '@tiptap/core' {
|
|
904
|
+
interface Commands<ReturnType> {
|
|
905
|
+
drawer: {
|
|
906
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
907
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
908
|
+
};
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
|
|
913
913
|
declare module '@tiptap/core' {
|
|
914
914
|
interface Commands<ReturnType> {
|
|
915
915
|
mermaid: {
|