reactjs-tiptap-editor-pro 0.2.37 → 0.2.39
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 +1 -1
- package/lib/extension-bundle.d.cts +95 -95
- package/lib/extension-bundle.d.ts +95 -95
- package/lib/extension-bundle.js +7 -6
- package/lib/index.cjs +3 -3
- package/lib/index.d.cts +95 -95
- package/lib/index.d.ts +95 -95
- package/lib/index.js +65 -64
- package/lib/locale-bundle.d.cts +95 -95
- package/lib/locale-bundle.d.ts +95 -95
- package/package.json +1 -1
|
@@ -707,19 +707,17 @@ declare module '@tiptap/core' {
|
|
|
707
707
|
|
|
708
708
|
declare module '@tiptap/core' {
|
|
709
709
|
interface Commands<ReturnType> {
|
|
710
|
-
|
|
711
|
-
/**
|
|
712
|
-
* Add an image
|
|
713
|
-
*/
|
|
714
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
710
|
+
fontSize: {
|
|
715
711
|
/**
|
|
716
|
-
*
|
|
712
|
+
* Set the text font size. ex: "12px", "2em", or "small". Must be a valid
|
|
713
|
+
* CSS font-size
|
|
714
|
+
* (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
|
|
717
715
|
*/
|
|
718
|
-
|
|
716
|
+
setFontSize: (fontSize: string) => ReturnType;
|
|
719
717
|
/**
|
|
720
|
-
*
|
|
718
|
+
* Unset the font size
|
|
721
719
|
*/
|
|
722
|
-
|
|
720
|
+
unsetFontSize: () => ReturnType;
|
|
723
721
|
};
|
|
724
722
|
}
|
|
725
723
|
}
|
|
@@ -727,14 +725,9 @@ declare module '@tiptap/core' {
|
|
|
727
725
|
|
|
728
726
|
declare module '@tiptap/core' {
|
|
729
727
|
interface Commands<ReturnType> {
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
*/
|
|
734
|
-
setIframe: (options: {
|
|
735
|
-
src: string;
|
|
736
|
-
service: string;
|
|
737
|
-
}) => ReturnType;
|
|
728
|
+
tableCellBackground: {
|
|
729
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
730
|
+
unsetTableCellBackground: () => ReturnType;
|
|
738
731
|
};
|
|
739
732
|
}
|
|
740
733
|
}
|
|
@@ -742,15 +735,14 @@ declare module '@tiptap/core' {
|
|
|
742
735
|
|
|
743
736
|
declare module '@tiptap/core' {
|
|
744
737
|
interface Commands<ReturnType> {
|
|
745
|
-
|
|
746
|
-
/**
|
|
747
|
-
* Set the indent attribute
|
|
748
|
-
*/
|
|
749
|
-
indent: () => ReturnType;
|
|
738
|
+
iframe: {
|
|
750
739
|
/**
|
|
751
|
-
*
|
|
740
|
+
* Add an iframe
|
|
752
741
|
*/
|
|
753
|
-
|
|
742
|
+
setIframe: (options: {
|
|
743
|
+
src: string;
|
|
744
|
+
service: string;
|
|
745
|
+
}) => ReturnType;
|
|
754
746
|
};
|
|
755
747
|
}
|
|
756
748
|
}
|
|
@@ -758,9 +750,8 @@ declare module '@tiptap/core' {
|
|
|
758
750
|
|
|
759
751
|
declare module '@tiptap/core' {
|
|
760
752
|
interface Commands<ReturnType> {
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
unsetLineHeight: () => ReturnType;
|
|
753
|
+
painter: {
|
|
754
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
764
755
|
};
|
|
765
756
|
}
|
|
766
757
|
}
|
|
@@ -768,11 +759,14 @@ declare module '@tiptap/core' {
|
|
|
768
759
|
|
|
769
760
|
declare module '@tiptap/core' {
|
|
770
761
|
interface Commands<ReturnType> {
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
762
|
+
search: {
|
|
763
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
764
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
765
|
+
replace: () => ReturnType;
|
|
766
|
+
replaceAll: () => ReturnType;
|
|
767
|
+
goToPrevSearchResult: () => void;
|
|
768
|
+
goToNextSearchResult: () => void;
|
|
769
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
776
770
|
};
|
|
777
771
|
}
|
|
778
772
|
}
|
|
@@ -780,17 +774,9 @@ declare module '@tiptap/core' {
|
|
|
780
774
|
|
|
781
775
|
declare module '@tiptap/core' {
|
|
782
776
|
interface Commands<ReturnType> {
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
* CSS font-size
|
|
787
|
-
* (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
|
|
788
|
-
*/
|
|
789
|
-
setFontSize: (fontSize: string) => ReturnType;
|
|
790
|
-
/**
|
|
791
|
-
* Unset the font size
|
|
792
|
-
*/
|
|
793
|
-
unsetFontSize: () => ReturnType;
|
|
777
|
+
lineHeight: {
|
|
778
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
779
|
+
unsetLineHeight: () => ReturnType;
|
|
794
780
|
};
|
|
795
781
|
}
|
|
796
782
|
}
|
|
@@ -798,9 +784,11 @@ declare module '@tiptap/core' {
|
|
|
798
784
|
|
|
799
785
|
declare module '@tiptap/core' {
|
|
800
786
|
interface Commands<ReturnType> {
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
787
|
+
emoji: {
|
|
788
|
+
setEmoji: (emoji: {
|
|
789
|
+
name: string;
|
|
790
|
+
emoji: string;
|
|
791
|
+
}) => ReturnType;
|
|
804
792
|
};
|
|
805
793
|
}
|
|
806
794
|
}
|
|
@@ -808,9 +796,8 @@ declare module '@tiptap/core' {
|
|
|
808
796
|
|
|
809
797
|
declare module '@tiptap/core' {
|
|
810
798
|
interface Commands<ReturnType> {
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
removeTableOfContents: () => ReturnType;
|
|
799
|
+
katex: {
|
|
800
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
814
801
|
};
|
|
815
802
|
}
|
|
816
803
|
}
|
|
@@ -818,8 +805,19 @@ declare module '@tiptap/core' {
|
|
|
818
805
|
|
|
819
806
|
declare module '@tiptap/core' {
|
|
820
807
|
interface Commands<ReturnType> {
|
|
821
|
-
|
|
822
|
-
|
|
808
|
+
imageUpload: {
|
|
809
|
+
/**
|
|
810
|
+
* Add an image
|
|
811
|
+
*/
|
|
812
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
813
|
+
/**
|
|
814
|
+
* Update an image
|
|
815
|
+
*/
|
|
816
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
817
|
+
/**
|
|
818
|
+
* Set image alignment
|
|
819
|
+
*/
|
|
820
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
823
821
|
};
|
|
824
822
|
}
|
|
825
823
|
}
|
|
@@ -827,8 +825,13 @@ declare module '@tiptap/core' {
|
|
|
827
825
|
|
|
828
826
|
declare module '@tiptap/core' {
|
|
829
827
|
interface Commands<ReturnType> {
|
|
830
|
-
|
|
831
|
-
|
|
828
|
+
columns: {
|
|
829
|
+
insertColumns: (attrs?: {
|
|
830
|
+
cols: number;
|
|
831
|
+
}) => ReturnType;
|
|
832
|
+
addColBefore: () => ReturnType;
|
|
833
|
+
addColAfter: () => ReturnType;
|
|
834
|
+
deleteCol: () => ReturnType;
|
|
832
835
|
};
|
|
833
836
|
}
|
|
834
837
|
}
|
|
@@ -836,14 +839,15 @@ declare module '@tiptap/core' {
|
|
|
836
839
|
|
|
837
840
|
declare module '@tiptap/core' {
|
|
838
841
|
interface Commands<ReturnType> {
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
842
|
+
indent: {
|
|
843
|
+
/**
|
|
844
|
+
* Set the indent attribute
|
|
845
|
+
*/
|
|
846
|
+
indent: () => ReturnType;
|
|
847
|
+
/**
|
|
848
|
+
* Set the outdent attribute
|
|
849
|
+
*/
|
|
850
|
+
outdent: () => ReturnType;
|
|
847
851
|
};
|
|
848
852
|
}
|
|
849
853
|
}
|
|
@@ -851,13 +855,19 @@ declare module '@tiptap/core' {
|
|
|
851
855
|
|
|
852
856
|
declare module '@tiptap/core' {
|
|
853
857
|
interface Commands<ReturnType> {
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
858
|
+
imageGifUpload: {
|
|
859
|
+
/**
|
|
860
|
+
* Add an image gif
|
|
861
|
+
*/
|
|
862
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
863
|
+
/**
|
|
864
|
+
* Update an image gif
|
|
865
|
+
*/
|
|
866
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
867
|
+
/**
|
|
868
|
+
* Set image alignment
|
|
869
|
+
*/
|
|
870
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
861
871
|
};
|
|
862
872
|
}
|
|
863
873
|
}
|
|
@@ -865,8 +875,9 @@ declare module '@tiptap/core' {
|
|
|
865
875
|
|
|
866
876
|
declare module '@tiptap/core' {
|
|
867
877
|
interface Commands<ReturnType> {
|
|
868
|
-
|
|
869
|
-
|
|
878
|
+
drawer: {
|
|
879
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
880
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
870
881
|
};
|
|
871
882
|
}
|
|
872
883
|
}
|
|
@@ -874,9 +885,9 @@ declare module '@tiptap/core' {
|
|
|
874
885
|
|
|
875
886
|
declare module '@tiptap/core' {
|
|
876
887
|
interface Commands<ReturnType> {
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
888
|
+
tableOfContents: {
|
|
889
|
+
setTableOfContents: () => ReturnType;
|
|
890
|
+
removeTableOfContents: () => ReturnType;
|
|
880
891
|
};
|
|
881
892
|
}
|
|
882
893
|
}
|
|
@@ -893,19 +904,14 @@ declare module '@tiptap/core' {
|
|
|
893
904
|
|
|
894
905
|
declare module '@tiptap/core' {
|
|
895
906
|
interface Commands<ReturnType> {
|
|
896
|
-
|
|
897
|
-
/**
|
|
898
|
-
* Add an image gif
|
|
899
|
-
*/
|
|
900
|
-
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
901
|
-
/**
|
|
902
|
-
* Update an image gif
|
|
903
|
-
*/
|
|
904
|
-
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
907
|
+
twitter: {
|
|
905
908
|
/**
|
|
906
|
-
*
|
|
909
|
+
* Insert a tweet
|
|
910
|
+
* @param options The tweet attributes
|
|
911
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
907
912
|
*/
|
|
908
|
-
|
|
913
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
914
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
909
915
|
};
|
|
910
916
|
}
|
|
911
917
|
}
|
|
@@ -913,14 +919,9 @@ declare module '@tiptap/core' {
|
|
|
913
919
|
|
|
914
920
|
declare module '@tiptap/core' {
|
|
915
921
|
interface Commands<ReturnType> {
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
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;
|
|
922
|
+
mermaid: {
|
|
923
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
924
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
924
925
|
};
|
|
925
926
|
}
|
|
926
927
|
}
|
|
@@ -928,9 +929,8 @@ declare module '@tiptap/core' {
|
|
|
928
929
|
|
|
929
930
|
declare module '@tiptap/core' {
|
|
930
931
|
interface Commands<ReturnType> {
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
932
|
+
exportWord: {
|
|
933
|
+
exportToWord: () => ReturnType;
|
|
934
934
|
};
|
|
935
935
|
}
|
|
936
936
|
}
|
|
@@ -707,19 +707,17 @@ declare module '@tiptap/core' {
|
|
|
707
707
|
|
|
708
708
|
declare module '@tiptap/core' {
|
|
709
709
|
interface Commands<ReturnType> {
|
|
710
|
-
|
|
711
|
-
/**
|
|
712
|
-
* Add an image
|
|
713
|
-
*/
|
|
714
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
710
|
+
fontSize: {
|
|
715
711
|
/**
|
|
716
|
-
*
|
|
712
|
+
* Set the text font size. ex: "12px", "2em", or "small". Must be a valid
|
|
713
|
+
* CSS font-size
|
|
714
|
+
* (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
|
|
717
715
|
*/
|
|
718
|
-
|
|
716
|
+
setFontSize: (fontSize: string) => ReturnType;
|
|
719
717
|
/**
|
|
720
|
-
*
|
|
718
|
+
* Unset the font size
|
|
721
719
|
*/
|
|
722
|
-
|
|
720
|
+
unsetFontSize: () => ReturnType;
|
|
723
721
|
};
|
|
724
722
|
}
|
|
725
723
|
}
|
|
@@ -727,14 +725,9 @@ declare module '@tiptap/core' {
|
|
|
727
725
|
|
|
728
726
|
declare module '@tiptap/core' {
|
|
729
727
|
interface Commands<ReturnType> {
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
*/
|
|
734
|
-
setIframe: (options: {
|
|
735
|
-
src: string;
|
|
736
|
-
service: string;
|
|
737
|
-
}) => ReturnType;
|
|
728
|
+
tableCellBackground: {
|
|
729
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
730
|
+
unsetTableCellBackground: () => ReturnType;
|
|
738
731
|
};
|
|
739
732
|
}
|
|
740
733
|
}
|
|
@@ -742,15 +735,14 @@ declare module '@tiptap/core' {
|
|
|
742
735
|
|
|
743
736
|
declare module '@tiptap/core' {
|
|
744
737
|
interface Commands<ReturnType> {
|
|
745
|
-
|
|
746
|
-
/**
|
|
747
|
-
* Set the indent attribute
|
|
748
|
-
*/
|
|
749
|
-
indent: () => ReturnType;
|
|
738
|
+
iframe: {
|
|
750
739
|
/**
|
|
751
|
-
*
|
|
740
|
+
* Add an iframe
|
|
752
741
|
*/
|
|
753
|
-
|
|
742
|
+
setIframe: (options: {
|
|
743
|
+
src: string;
|
|
744
|
+
service: string;
|
|
745
|
+
}) => ReturnType;
|
|
754
746
|
};
|
|
755
747
|
}
|
|
756
748
|
}
|
|
@@ -758,9 +750,8 @@ declare module '@tiptap/core' {
|
|
|
758
750
|
|
|
759
751
|
declare module '@tiptap/core' {
|
|
760
752
|
interface Commands<ReturnType> {
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
unsetLineHeight: () => ReturnType;
|
|
753
|
+
painter: {
|
|
754
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
764
755
|
};
|
|
765
756
|
}
|
|
766
757
|
}
|
|
@@ -768,11 +759,14 @@ declare module '@tiptap/core' {
|
|
|
768
759
|
|
|
769
760
|
declare module '@tiptap/core' {
|
|
770
761
|
interface Commands<ReturnType> {
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
762
|
+
search: {
|
|
763
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
764
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
765
|
+
replace: () => ReturnType;
|
|
766
|
+
replaceAll: () => ReturnType;
|
|
767
|
+
goToPrevSearchResult: () => void;
|
|
768
|
+
goToNextSearchResult: () => void;
|
|
769
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
776
770
|
};
|
|
777
771
|
}
|
|
778
772
|
}
|
|
@@ -780,17 +774,9 @@ declare module '@tiptap/core' {
|
|
|
780
774
|
|
|
781
775
|
declare module '@tiptap/core' {
|
|
782
776
|
interface Commands<ReturnType> {
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
* CSS font-size
|
|
787
|
-
* (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
|
|
788
|
-
*/
|
|
789
|
-
setFontSize: (fontSize: string) => ReturnType;
|
|
790
|
-
/**
|
|
791
|
-
* Unset the font size
|
|
792
|
-
*/
|
|
793
|
-
unsetFontSize: () => ReturnType;
|
|
777
|
+
lineHeight: {
|
|
778
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
779
|
+
unsetLineHeight: () => ReturnType;
|
|
794
780
|
};
|
|
795
781
|
}
|
|
796
782
|
}
|
|
@@ -798,9 +784,11 @@ declare module '@tiptap/core' {
|
|
|
798
784
|
|
|
799
785
|
declare module '@tiptap/core' {
|
|
800
786
|
interface Commands<ReturnType> {
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
787
|
+
emoji: {
|
|
788
|
+
setEmoji: (emoji: {
|
|
789
|
+
name: string;
|
|
790
|
+
emoji: string;
|
|
791
|
+
}) => ReturnType;
|
|
804
792
|
};
|
|
805
793
|
}
|
|
806
794
|
}
|
|
@@ -808,9 +796,8 @@ declare module '@tiptap/core' {
|
|
|
808
796
|
|
|
809
797
|
declare module '@tiptap/core' {
|
|
810
798
|
interface Commands<ReturnType> {
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
removeTableOfContents: () => ReturnType;
|
|
799
|
+
katex: {
|
|
800
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
814
801
|
};
|
|
815
802
|
}
|
|
816
803
|
}
|
|
@@ -818,8 +805,19 @@ declare module '@tiptap/core' {
|
|
|
818
805
|
|
|
819
806
|
declare module '@tiptap/core' {
|
|
820
807
|
interface Commands<ReturnType> {
|
|
821
|
-
|
|
822
|
-
|
|
808
|
+
imageUpload: {
|
|
809
|
+
/**
|
|
810
|
+
* Add an image
|
|
811
|
+
*/
|
|
812
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
813
|
+
/**
|
|
814
|
+
* Update an image
|
|
815
|
+
*/
|
|
816
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
817
|
+
/**
|
|
818
|
+
* Set image alignment
|
|
819
|
+
*/
|
|
820
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
823
821
|
};
|
|
824
822
|
}
|
|
825
823
|
}
|
|
@@ -827,8 +825,13 @@ declare module '@tiptap/core' {
|
|
|
827
825
|
|
|
828
826
|
declare module '@tiptap/core' {
|
|
829
827
|
interface Commands<ReturnType> {
|
|
830
|
-
|
|
831
|
-
|
|
828
|
+
columns: {
|
|
829
|
+
insertColumns: (attrs?: {
|
|
830
|
+
cols: number;
|
|
831
|
+
}) => ReturnType;
|
|
832
|
+
addColBefore: () => ReturnType;
|
|
833
|
+
addColAfter: () => ReturnType;
|
|
834
|
+
deleteCol: () => ReturnType;
|
|
832
835
|
};
|
|
833
836
|
}
|
|
834
837
|
}
|
|
@@ -836,14 +839,15 @@ declare module '@tiptap/core' {
|
|
|
836
839
|
|
|
837
840
|
declare module '@tiptap/core' {
|
|
838
841
|
interface Commands<ReturnType> {
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
842
|
+
indent: {
|
|
843
|
+
/**
|
|
844
|
+
* Set the indent attribute
|
|
845
|
+
*/
|
|
846
|
+
indent: () => ReturnType;
|
|
847
|
+
/**
|
|
848
|
+
* Set the outdent attribute
|
|
849
|
+
*/
|
|
850
|
+
outdent: () => ReturnType;
|
|
847
851
|
};
|
|
848
852
|
}
|
|
849
853
|
}
|
|
@@ -851,13 +855,19 @@ declare module '@tiptap/core' {
|
|
|
851
855
|
|
|
852
856
|
declare module '@tiptap/core' {
|
|
853
857
|
interface Commands<ReturnType> {
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
858
|
+
imageGifUpload: {
|
|
859
|
+
/**
|
|
860
|
+
* Add an image gif
|
|
861
|
+
*/
|
|
862
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
863
|
+
/**
|
|
864
|
+
* Update an image gif
|
|
865
|
+
*/
|
|
866
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
867
|
+
/**
|
|
868
|
+
* Set image alignment
|
|
869
|
+
*/
|
|
870
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
861
871
|
};
|
|
862
872
|
}
|
|
863
873
|
}
|
|
@@ -865,8 +875,9 @@ declare module '@tiptap/core' {
|
|
|
865
875
|
|
|
866
876
|
declare module '@tiptap/core' {
|
|
867
877
|
interface Commands<ReturnType> {
|
|
868
|
-
|
|
869
|
-
|
|
878
|
+
drawer: {
|
|
879
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
880
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
870
881
|
};
|
|
871
882
|
}
|
|
872
883
|
}
|
|
@@ -874,9 +885,9 @@ declare module '@tiptap/core' {
|
|
|
874
885
|
|
|
875
886
|
declare module '@tiptap/core' {
|
|
876
887
|
interface Commands<ReturnType> {
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
888
|
+
tableOfContents: {
|
|
889
|
+
setTableOfContents: () => ReturnType;
|
|
890
|
+
removeTableOfContents: () => ReturnType;
|
|
880
891
|
};
|
|
881
892
|
}
|
|
882
893
|
}
|
|
@@ -893,19 +904,14 @@ declare module '@tiptap/core' {
|
|
|
893
904
|
|
|
894
905
|
declare module '@tiptap/core' {
|
|
895
906
|
interface Commands<ReturnType> {
|
|
896
|
-
|
|
897
|
-
/**
|
|
898
|
-
* Add an image gif
|
|
899
|
-
*/
|
|
900
|
-
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
901
|
-
/**
|
|
902
|
-
* Update an image gif
|
|
903
|
-
*/
|
|
904
|
-
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
907
|
+
twitter: {
|
|
905
908
|
/**
|
|
906
|
-
*
|
|
909
|
+
* Insert a tweet
|
|
910
|
+
* @param options The tweet attributes
|
|
911
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
907
912
|
*/
|
|
908
|
-
|
|
913
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
914
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
909
915
|
};
|
|
910
916
|
}
|
|
911
917
|
}
|
|
@@ -913,14 +919,9 @@ declare module '@tiptap/core' {
|
|
|
913
919
|
|
|
914
920
|
declare module '@tiptap/core' {
|
|
915
921
|
interface Commands<ReturnType> {
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
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;
|
|
922
|
+
mermaid: {
|
|
923
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
924
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
924
925
|
};
|
|
925
926
|
}
|
|
926
927
|
}
|
|
@@ -928,9 +929,8 @@ declare module '@tiptap/core' {
|
|
|
928
929
|
|
|
929
930
|
declare module '@tiptap/core' {
|
|
930
931
|
interface Commands<ReturnType> {
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
932
|
+
exportWord: {
|
|
933
|
+
exportToWord: () => ReturnType;
|
|
934
934
|
};
|
|
935
935
|
}
|
|
936
936
|
}
|
package/lib/extension-bundle.js
CHANGED
|
@@ -5188,14 +5188,15 @@ const hy = Ne.create({
|
|
|
5188
5188
|
editor: this.editor,
|
|
5189
5189
|
char: "/",
|
|
5190
5190
|
allowSpaces: !0,
|
|
5191
|
-
startOfLine: !
|
|
5191
|
+
startOfLine: !1,
|
|
5192
|
+
allowedPrefixes: null,
|
|
5192
5193
|
pluginKey: new Ve(mn),
|
|
5193
5194
|
allow: ({ state: e, range: t }) => {
|
|
5194
|
-
var
|
|
5195
|
-
const n = e.doc.resolve(t.from)
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5195
|
+
var a, o;
|
|
5196
|
+
const n = e.doc.resolve(t.from);
|
|
5197
|
+
return ((o = n.parent.textContent) == null ? void 0 : o.slice(
|
|
5198
|
+
Math.max(0, (a = n.parent.textContent) == null ? void 0 : a.indexOf("/"))
|
|
5199
|
+
)).endsWith("/");
|
|
5199
5200
|
},
|
|
5200
5201
|
command: ({ editor: e, range: t, props: n }) => {
|
|
5201
5202
|
const { view: i } = e;
|