reactjs-tiptap-editor 0.2.2 → 0.2.3
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 +77 -77
- package/lib/extension-bundle.d.ts +77 -77
- package/lib/index.d.cts +77 -77
- package/lib/index.d.ts +77 -77
- package/lib/locale-bundle.d.cts +77 -77
- package/lib/locale-bundle.d.ts +77 -77
- package/package.json +1 -5
|
@@ -690,22 +690,6 @@ declare module '@tiptap/core' {
|
|
|
690
690
|
}
|
|
691
691
|
|
|
692
692
|
|
|
693
|
-
declare module '@tiptap/core' {
|
|
694
|
-
interface Commands<ReturnType> {
|
|
695
|
-
indent: {
|
|
696
|
-
/**
|
|
697
|
-
* Set the indent attribute
|
|
698
|
-
*/
|
|
699
|
-
indent: () => ReturnType;
|
|
700
|
-
/**
|
|
701
|
-
* Set the outdent attribute
|
|
702
|
-
*/
|
|
703
|
-
outdent: () => ReturnType;
|
|
704
|
-
};
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
|
|
709
693
|
declare module '@tiptap/core' {
|
|
710
694
|
interface Commands<ReturnType> {
|
|
711
695
|
imageUpload: {
|
|
@@ -728,8 +712,9 @@ declare module '@tiptap/core' {
|
|
|
728
712
|
|
|
729
713
|
declare module '@tiptap/core' {
|
|
730
714
|
interface Commands<ReturnType> {
|
|
731
|
-
|
|
732
|
-
|
|
715
|
+
lineHeight: {
|
|
716
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
717
|
+
unsetLineHeight: () => ReturnType;
|
|
733
718
|
};
|
|
734
719
|
}
|
|
735
720
|
}
|
|
@@ -737,9 +722,15 @@ declare module '@tiptap/core' {
|
|
|
737
722
|
|
|
738
723
|
declare module '@tiptap/core' {
|
|
739
724
|
interface Commands<ReturnType> {
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
725
|
+
indent: {
|
|
726
|
+
/**
|
|
727
|
+
* Set the indent attribute
|
|
728
|
+
*/
|
|
729
|
+
indent: () => ReturnType;
|
|
730
|
+
/**
|
|
731
|
+
* Set the outdent attribute
|
|
732
|
+
*/
|
|
733
|
+
outdent: () => ReturnType;
|
|
743
734
|
};
|
|
744
735
|
}
|
|
745
736
|
}
|
|
@@ -747,14 +738,9 @@ declare module '@tiptap/core' {
|
|
|
747
738
|
|
|
748
739
|
declare module '@tiptap/core' {
|
|
749
740
|
interface Commands<ReturnType> {
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
*/
|
|
754
|
-
setIframe: (options: {
|
|
755
|
-
src: string;
|
|
756
|
-
service: string;
|
|
757
|
-
}) => ReturnType;
|
|
741
|
+
tableCellBackground: {
|
|
742
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
743
|
+
unsetTableCellBackground: () => ReturnType;
|
|
758
744
|
};
|
|
759
745
|
}
|
|
760
746
|
}
|
|
@@ -762,13 +748,14 @@ declare module '@tiptap/core' {
|
|
|
762
748
|
|
|
763
749
|
declare module '@tiptap/core' {
|
|
764
750
|
interface Commands<ReturnType> {
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
751
|
+
twitter: {
|
|
752
|
+
/**
|
|
753
|
+
* Insert a tweet
|
|
754
|
+
* @param options The tweet attributes
|
|
755
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
756
|
+
*/
|
|
757
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
758
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
772
759
|
};
|
|
773
760
|
}
|
|
774
761
|
}
|
|
@@ -776,11 +763,8 @@ declare module '@tiptap/core' {
|
|
|
776
763
|
|
|
777
764
|
declare module '@tiptap/core' {
|
|
778
765
|
interface Commands<ReturnType> {
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
name: string;
|
|
782
|
-
emoji: string;
|
|
783
|
-
}) => ReturnType;
|
|
766
|
+
excalidraw: {
|
|
767
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
784
768
|
};
|
|
785
769
|
}
|
|
786
770
|
}
|
|
@@ -788,9 +772,13 @@ declare module '@tiptap/core' {
|
|
|
788
772
|
|
|
789
773
|
declare module '@tiptap/core' {
|
|
790
774
|
interface Commands<ReturnType> {
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
775
|
+
columns: {
|
|
776
|
+
insertColumns: (attrs?: {
|
|
777
|
+
cols: number;
|
|
778
|
+
}) => ReturnType;
|
|
779
|
+
addColBefore: () => ReturnType;
|
|
780
|
+
addColAfter: () => ReturnType;
|
|
781
|
+
deleteCol: () => ReturnType;
|
|
794
782
|
};
|
|
795
783
|
}
|
|
796
784
|
}
|
|
@@ -798,8 +786,8 @@ declare module '@tiptap/core' {
|
|
|
798
786
|
|
|
799
787
|
declare module '@tiptap/core' {
|
|
800
788
|
interface Commands<ReturnType> {
|
|
801
|
-
|
|
802
|
-
|
|
789
|
+
attachment: {
|
|
790
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
803
791
|
};
|
|
804
792
|
}
|
|
805
793
|
}
|
|
@@ -822,8 +810,8 @@ declare module '@tiptap/core' {
|
|
|
822
810
|
|
|
823
811
|
declare module '@tiptap/core' {
|
|
824
812
|
interface Commands<ReturnType> {
|
|
825
|
-
|
|
826
|
-
|
|
813
|
+
katex: {
|
|
814
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
827
815
|
};
|
|
828
816
|
}
|
|
829
817
|
}
|
|
@@ -831,9 +819,9 @@ declare module '@tiptap/core' {
|
|
|
831
819
|
|
|
832
820
|
declare module '@tiptap/core' {
|
|
833
821
|
interface Commands<ReturnType> {
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
822
|
+
mermaid: {
|
|
823
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
824
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
837
825
|
};
|
|
838
826
|
}
|
|
839
827
|
}
|
|
@@ -841,8 +829,19 @@ declare module '@tiptap/core' {
|
|
|
841
829
|
|
|
842
830
|
declare module '@tiptap/core' {
|
|
843
831
|
interface Commands<ReturnType> {
|
|
844
|
-
|
|
845
|
-
|
|
832
|
+
imageGifUpload: {
|
|
833
|
+
/**
|
|
834
|
+
* Add an image gif
|
|
835
|
+
*/
|
|
836
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
837
|
+
/**
|
|
838
|
+
* Update an image gif
|
|
839
|
+
*/
|
|
840
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
841
|
+
/**
|
|
842
|
+
* Set image alignment
|
|
843
|
+
*/
|
|
844
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
846
845
|
};
|
|
847
846
|
}
|
|
848
847
|
}
|
|
@@ -850,8 +849,8 @@ declare module '@tiptap/core' {
|
|
|
850
849
|
|
|
851
850
|
declare module '@tiptap/core' {
|
|
852
851
|
interface Commands<ReturnType> {
|
|
853
|
-
|
|
854
|
-
|
|
852
|
+
exportWord: {
|
|
853
|
+
exportToWord: () => ReturnType;
|
|
855
854
|
};
|
|
856
855
|
}
|
|
857
856
|
}
|
|
@@ -859,9 +858,11 @@ declare module '@tiptap/core' {
|
|
|
859
858
|
|
|
860
859
|
declare module '@tiptap/core' {
|
|
861
860
|
interface Commands<ReturnType> {
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
861
|
+
emoji: {
|
|
862
|
+
setEmoji: (emoji: {
|
|
863
|
+
name: string;
|
|
864
|
+
emoji: string;
|
|
865
|
+
}) => ReturnType;
|
|
865
866
|
};
|
|
866
867
|
}
|
|
867
868
|
}
|
|
@@ -869,14 +870,8 @@ declare module '@tiptap/core' {
|
|
|
869
870
|
|
|
870
871
|
declare module '@tiptap/core' {
|
|
871
872
|
interface Commands<ReturnType> {
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
* Insert a tweet
|
|
875
|
-
* @param options The tweet attributes
|
|
876
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
877
|
-
*/
|
|
878
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
879
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
873
|
+
painter: {
|
|
874
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
880
875
|
};
|
|
881
876
|
}
|
|
882
877
|
}
|
|
@@ -884,19 +879,24 @@ declare module '@tiptap/core' {
|
|
|
884
879
|
|
|
885
880
|
declare module '@tiptap/core' {
|
|
886
881
|
interface Commands<ReturnType> {
|
|
887
|
-
|
|
888
|
-
/**
|
|
889
|
-
* Add an image gif
|
|
890
|
-
*/
|
|
891
|
-
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
892
|
-
/**
|
|
893
|
-
* Update an image gif
|
|
894
|
-
*/
|
|
895
|
-
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
882
|
+
iframe: {
|
|
896
883
|
/**
|
|
897
|
-
*
|
|
884
|
+
* Add an iframe
|
|
898
885
|
*/
|
|
899
|
-
|
|
886
|
+
setIframe: (options: {
|
|
887
|
+
src: string;
|
|
888
|
+
service: string;
|
|
889
|
+
}) => ReturnType;
|
|
890
|
+
};
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
|
|
895
|
+
declare module '@tiptap/core' {
|
|
896
|
+
interface Commands<ReturnType> {
|
|
897
|
+
tableOfContents: {
|
|
898
|
+
setTableOfContents: () => ReturnType;
|
|
899
|
+
removeTableOfContents: () => ReturnType;
|
|
900
900
|
};
|
|
901
901
|
}
|
|
902
902
|
}
|
|
@@ -690,22 +690,6 @@ declare module '@tiptap/core' {
|
|
|
690
690
|
}
|
|
691
691
|
|
|
692
692
|
|
|
693
|
-
declare module '@tiptap/core' {
|
|
694
|
-
interface Commands<ReturnType> {
|
|
695
|
-
indent: {
|
|
696
|
-
/**
|
|
697
|
-
* Set the indent attribute
|
|
698
|
-
*/
|
|
699
|
-
indent: () => ReturnType;
|
|
700
|
-
/**
|
|
701
|
-
* Set the outdent attribute
|
|
702
|
-
*/
|
|
703
|
-
outdent: () => ReturnType;
|
|
704
|
-
};
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
|
|
709
693
|
declare module '@tiptap/core' {
|
|
710
694
|
interface Commands<ReturnType> {
|
|
711
695
|
imageUpload: {
|
|
@@ -728,8 +712,9 @@ declare module '@tiptap/core' {
|
|
|
728
712
|
|
|
729
713
|
declare module '@tiptap/core' {
|
|
730
714
|
interface Commands<ReturnType> {
|
|
731
|
-
|
|
732
|
-
|
|
715
|
+
lineHeight: {
|
|
716
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
717
|
+
unsetLineHeight: () => ReturnType;
|
|
733
718
|
};
|
|
734
719
|
}
|
|
735
720
|
}
|
|
@@ -737,9 +722,15 @@ declare module '@tiptap/core' {
|
|
|
737
722
|
|
|
738
723
|
declare module '@tiptap/core' {
|
|
739
724
|
interface Commands<ReturnType> {
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
725
|
+
indent: {
|
|
726
|
+
/**
|
|
727
|
+
* Set the indent attribute
|
|
728
|
+
*/
|
|
729
|
+
indent: () => ReturnType;
|
|
730
|
+
/**
|
|
731
|
+
* Set the outdent attribute
|
|
732
|
+
*/
|
|
733
|
+
outdent: () => ReturnType;
|
|
743
734
|
};
|
|
744
735
|
}
|
|
745
736
|
}
|
|
@@ -747,14 +738,9 @@ declare module '@tiptap/core' {
|
|
|
747
738
|
|
|
748
739
|
declare module '@tiptap/core' {
|
|
749
740
|
interface Commands<ReturnType> {
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
*/
|
|
754
|
-
setIframe: (options: {
|
|
755
|
-
src: string;
|
|
756
|
-
service: string;
|
|
757
|
-
}) => ReturnType;
|
|
741
|
+
tableCellBackground: {
|
|
742
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
743
|
+
unsetTableCellBackground: () => ReturnType;
|
|
758
744
|
};
|
|
759
745
|
}
|
|
760
746
|
}
|
|
@@ -762,13 +748,14 @@ declare module '@tiptap/core' {
|
|
|
762
748
|
|
|
763
749
|
declare module '@tiptap/core' {
|
|
764
750
|
interface Commands<ReturnType> {
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
751
|
+
twitter: {
|
|
752
|
+
/**
|
|
753
|
+
* Insert a tweet
|
|
754
|
+
* @param options The tweet attributes
|
|
755
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
756
|
+
*/
|
|
757
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
758
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
772
759
|
};
|
|
773
760
|
}
|
|
774
761
|
}
|
|
@@ -776,11 +763,8 @@ declare module '@tiptap/core' {
|
|
|
776
763
|
|
|
777
764
|
declare module '@tiptap/core' {
|
|
778
765
|
interface Commands<ReturnType> {
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
name: string;
|
|
782
|
-
emoji: string;
|
|
783
|
-
}) => ReturnType;
|
|
766
|
+
excalidraw: {
|
|
767
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
784
768
|
};
|
|
785
769
|
}
|
|
786
770
|
}
|
|
@@ -788,9 +772,13 @@ declare module '@tiptap/core' {
|
|
|
788
772
|
|
|
789
773
|
declare module '@tiptap/core' {
|
|
790
774
|
interface Commands<ReturnType> {
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
775
|
+
columns: {
|
|
776
|
+
insertColumns: (attrs?: {
|
|
777
|
+
cols: number;
|
|
778
|
+
}) => ReturnType;
|
|
779
|
+
addColBefore: () => ReturnType;
|
|
780
|
+
addColAfter: () => ReturnType;
|
|
781
|
+
deleteCol: () => ReturnType;
|
|
794
782
|
};
|
|
795
783
|
}
|
|
796
784
|
}
|
|
@@ -798,8 +786,8 @@ declare module '@tiptap/core' {
|
|
|
798
786
|
|
|
799
787
|
declare module '@tiptap/core' {
|
|
800
788
|
interface Commands<ReturnType> {
|
|
801
|
-
|
|
802
|
-
|
|
789
|
+
attachment: {
|
|
790
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
803
791
|
};
|
|
804
792
|
}
|
|
805
793
|
}
|
|
@@ -822,8 +810,8 @@ declare module '@tiptap/core' {
|
|
|
822
810
|
|
|
823
811
|
declare module '@tiptap/core' {
|
|
824
812
|
interface Commands<ReturnType> {
|
|
825
|
-
|
|
826
|
-
|
|
813
|
+
katex: {
|
|
814
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
827
815
|
};
|
|
828
816
|
}
|
|
829
817
|
}
|
|
@@ -831,9 +819,9 @@ declare module '@tiptap/core' {
|
|
|
831
819
|
|
|
832
820
|
declare module '@tiptap/core' {
|
|
833
821
|
interface Commands<ReturnType> {
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
822
|
+
mermaid: {
|
|
823
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
824
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
837
825
|
};
|
|
838
826
|
}
|
|
839
827
|
}
|
|
@@ -841,8 +829,19 @@ declare module '@tiptap/core' {
|
|
|
841
829
|
|
|
842
830
|
declare module '@tiptap/core' {
|
|
843
831
|
interface Commands<ReturnType> {
|
|
844
|
-
|
|
845
|
-
|
|
832
|
+
imageGifUpload: {
|
|
833
|
+
/**
|
|
834
|
+
* Add an image gif
|
|
835
|
+
*/
|
|
836
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
837
|
+
/**
|
|
838
|
+
* Update an image gif
|
|
839
|
+
*/
|
|
840
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
841
|
+
/**
|
|
842
|
+
* Set image alignment
|
|
843
|
+
*/
|
|
844
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
846
845
|
};
|
|
847
846
|
}
|
|
848
847
|
}
|
|
@@ -850,8 +849,8 @@ declare module '@tiptap/core' {
|
|
|
850
849
|
|
|
851
850
|
declare module '@tiptap/core' {
|
|
852
851
|
interface Commands<ReturnType> {
|
|
853
|
-
|
|
854
|
-
|
|
852
|
+
exportWord: {
|
|
853
|
+
exportToWord: () => ReturnType;
|
|
855
854
|
};
|
|
856
855
|
}
|
|
857
856
|
}
|
|
@@ -859,9 +858,11 @@ declare module '@tiptap/core' {
|
|
|
859
858
|
|
|
860
859
|
declare module '@tiptap/core' {
|
|
861
860
|
interface Commands<ReturnType> {
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
861
|
+
emoji: {
|
|
862
|
+
setEmoji: (emoji: {
|
|
863
|
+
name: string;
|
|
864
|
+
emoji: string;
|
|
865
|
+
}) => ReturnType;
|
|
865
866
|
};
|
|
866
867
|
}
|
|
867
868
|
}
|
|
@@ -869,14 +870,8 @@ declare module '@tiptap/core' {
|
|
|
869
870
|
|
|
870
871
|
declare module '@tiptap/core' {
|
|
871
872
|
interface Commands<ReturnType> {
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
* Insert a tweet
|
|
875
|
-
* @param options The tweet attributes
|
|
876
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
877
|
-
*/
|
|
878
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
879
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
873
|
+
painter: {
|
|
874
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
880
875
|
};
|
|
881
876
|
}
|
|
882
877
|
}
|
|
@@ -884,19 +879,24 @@ declare module '@tiptap/core' {
|
|
|
884
879
|
|
|
885
880
|
declare module '@tiptap/core' {
|
|
886
881
|
interface Commands<ReturnType> {
|
|
887
|
-
|
|
888
|
-
/**
|
|
889
|
-
* Add an image gif
|
|
890
|
-
*/
|
|
891
|
-
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
892
|
-
/**
|
|
893
|
-
* Update an image gif
|
|
894
|
-
*/
|
|
895
|
-
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
882
|
+
iframe: {
|
|
896
883
|
/**
|
|
897
|
-
*
|
|
884
|
+
* Add an iframe
|
|
898
885
|
*/
|
|
899
|
-
|
|
886
|
+
setIframe: (options: {
|
|
887
|
+
src: string;
|
|
888
|
+
service: string;
|
|
889
|
+
}) => ReturnType;
|
|
890
|
+
};
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
|
|
895
|
+
declare module '@tiptap/core' {
|
|
896
|
+
interface Commands<ReturnType> {
|
|
897
|
+
tableOfContents: {
|
|
898
|
+
setTableOfContents: () => ReturnType;
|
|
899
|
+
removeTableOfContents: () => ReturnType;
|
|
900
900
|
};
|
|
901
901
|
}
|
|
902
902
|
}
|