reactjs-tiptap-editor-pro 0.2.22 → 0.2.24
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-BnruDETn.js → RichTextEditor-Bxdp3pW3.js} +736 -714
- package/lib/RichTextEditor-zOI60NFQ.cjs +141 -0
- package/lib/extension-bundle.cjs +1 -1
- package/lib/extension-bundle.d.cts +79 -79
- package/lib/extension-bundle.d.ts +79 -79
- package/lib/extension-bundle.js +5 -5
- package/lib/{index-CYg22iLG.cjs → index-D-rys8BA.cjs} +1 -1
- package/lib/{index-8id9bPv5.js → index-PJxla8pp.js} +1 -1
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +79 -79
- package/lib/index.d.ts +79 -79
- package/lib/index.js +2 -2
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.d.cts +79 -79
- package/lib/locale-bundle.d.ts +79 -79
- package/lib/locale-bundle.js +1 -1
- package/lib/{tiptap-Ufn12SjW.cjs → tiptap-Bzsbnr3f.cjs} +1 -1
- package/lib/{tiptap-BV9BUpUC.js → tiptap-Kst3Ray3.js} +1 -1
- package/lib/vendor-LvbrNFNL.cjs +8114 -0
- package/lib/vendor-tDefVoN_.js +67574 -0
- package/package.json +2 -2
- package/lib/RichTextEditor-CRJ-dSCW.cjs +0 -141
- package/lib/vendor-CRmKyn1B.cjs +0 -264
- package/lib/vendor-DyAqAGVt.js +0 -37115
|
@@ -727,13 +727,19 @@ declare module '@tiptap/core' {
|
|
|
727
727
|
|
|
728
728
|
declare module '@tiptap/core' {
|
|
729
729
|
interface Commands<ReturnType> {
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
730
|
+
imageUpload: {
|
|
731
|
+
/**
|
|
732
|
+
* Add an image
|
|
733
|
+
*/
|
|
734
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
735
|
+
/**
|
|
736
|
+
* Update an image
|
|
737
|
+
*/
|
|
738
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
739
|
+
/**
|
|
740
|
+
* Set image alignment
|
|
741
|
+
*/
|
|
742
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
737
743
|
};
|
|
738
744
|
}
|
|
739
745
|
}
|
|
@@ -741,8 +747,14 @@ declare module '@tiptap/core' {
|
|
|
741
747
|
|
|
742
748
|
declare module '@tiptap/core' {
|
|
743
749
|
interface Commands<ReturnType> {
|
|
744
|
-
|
|
745
|
-
|
|
750
|
+
iframe: {
|
|
751
|
+
/**
|
|
752
|
+
* Add an iframe
|
|
753
|
+
*/
|
|
754
|
+
setIframe: (options: {
|
|
755
|
+
src: string;
|
|
756
|
+
service: string;
|
|
757
|
+
}) => ReturnType;
|
|
746
758
|
};
|
|
747
759
|
}
|
|
748
760
|
}
|
|
@@ -750,9 +762,14 @@ declare module '@tiptap/core' {
|
|
|
750
762
|
|
|
751
763
|
declare module '@tiptap/core' {
|
|
752
764
|
interface Commands<ReturnType> {
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
765
|
+
search: {
|
|
766
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
767
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
768
|
+
replace: () => ReturnType;
|
|
769
|
+
replaceAll: () => ReturnType;
|
|
770
|
+
goToPrevSearchResult: () => void;
|
|
771
|
+
goToNextSearchResult: () => void;
|
|
772
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
756
773
|
};
|
|
757
774
|
}
|
|
758
775
|
}
|
|
@@ -760,15 +777,8 @@ declare module '@tiptap/core' {
|
|
|
760
777
|
|
|
761
778
|
declare module '@tiptap/core' {
|
|
762
779
|
interface Commands<ReturnType> {
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
* Set the indent attribute
|
|
766
|
-
*/
|
|
767
|
-
indent: () => ReturnType;
|
|
768
|
-
/**
|
|
769
|
-
* Set the outdent attribute
|
|
770
|
-
*/
|
|
771
|
-
outdent: () => ReturnType;
|
|
780
|
+
painter: {
|
|
781
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
772
782
|
};
|
|
773
783
|
}
|
|
774
784
|
}
|
|
@@ -776,19 +786,9 @@ declare module '@tiptap/core' {
|
|
|
776
786
|
|
|
777
787
|
declare module '@tiptap/core' {
|
|
778
788
|
interface Commands<ReturnType> {
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
*/
|
|
783
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
784
|
-
/**
|
|
785
|
-
* Update an image
|
|
786
|
-
*/
|
|
787
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
788
|
-
/**
|
|
789
|
-
* Set image alignment
|
|
790
|
-
*/
|
|
791
|
-
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
789
|
+
tableCellBackground: {
|
|
790
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
791
|
+
unsetTableCellBackground: () => ReturnType;
|
|
792
792
|
};
|
|
793
793
|
}
|
|
794
794
|
}
|
|
@@ -796,9 +796,15 @@ declare module '@tiptap/core' {
|
|
|
796
796
|
|
|
797
797
|
declare module '@tiptap/core' {
|
|
798
798
|
interface Commands<ReturnType> {
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
799
|
+
indent: {
|
|
800
|
+
/**
|
|
801
|
+
* Set the indent attribute
|
|
802
|
+
*/
|
|
803
|
+
indent: () => ReturnType;
|
|
804
|
+
/**
|
|
805
|
+
* Set the outdent attribute
|
|
806
|
+
*/
|
|
807
|
+
outdent: () => ReturnType;
|
|
802
808
|
};
|
|
803
809
|
}
|
|
804
810
|
}
|
|
@@ -806,8 +812,11 @@ declare module '@tiptap/core' {
|
|
|
806
812
|
|
|
807
813
|
declare module '@tiptap/core' {
|
|
808
814
|
interface Commands<ReturnType> {
|
|
809
|
-
|
|
810
|
-
|
|
815
|
+
emoji: {
|
|
816
|
+
setEmoji: (emoji: {
|
|
817
|
+
name: string;
|
|
818
|
+
emoji: string;
|
|
819
|
+
}) => ReturnType;
|
|
811
820
|
};
|
|
812
821
|
}
|
|
813
822
|
}
|
|
@@ -815,9 +824,13 @@ declare module '@tiptap/core' {
|
|
|
815
824
|
|
|
816
825
|
declare module '@tiptap/core' {
|
|
817
826
|
interface Commands<ReturnType> {
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
827
|
+
columns: {
|
|
828
|
+
insertColumns: (attrs?: {
|
|
829
|
+
cols: number;
|
|
830
|
+
}) => ReturnType;
|
|
831
|
+
addColBefore: () => ReturnType;
|
|
832
|
+
addColAfter: () => ReturnType;
|
|
833
|
+
deleteCol: () => ReturnType;
|
|
821
834
|
};
|
|
822
835
|
}
|
|
823
836
|
}
|
|
@@ -825,8 +838,9 @@ declare module '@tiptap/core' {
|
|
|
825
838
|
|
|
826
839
|
declare module '@tiptap/core' {
|
|
827
840
|
interface Commands<ReturnType> {
|
|
828
|
-
|
|
829
|
-
|
|
841
|
+
lineHeight: {
|
|
842
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
843
|
+
unsetLineHeight: () => ReturnType;
|
|
830
844
|
};
|
|
831
845
|
}
|
|
832
846
|
}
|
|
@@ -834,11 +848,8 @@ declare module '@tiptap/core' {
|
|
|
834
848
|
|
|
835
849
|
declare module '@tiptap/core' {
|
|
836
850
|
interface Commands<ReturnType> {
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
name: string;
|
|
840
|
-
emoji: string;
|
|
841
|
-
}) => ReturnType;
|
|
851
|
+
katex: {
|
|
852
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
842
853
|
};
|
|
843
854
|
}
|
|
844
855
|
}
|
|
@@ -846,14 +857,14 @@ declare module '@tiptap/core' {
|
|
|
846
857
|
|
|
847
858
|
declare module '@tiptap/core' {
|
|
848
859
|
interface Commands<ReturnType> {
|
|
849
|
-
|
|
860
|
+
twitter: {
|
|
850
861
|
/**
|
|
851
|
-
*
|
|
862
|
+
* Insert a tweet
|
|
863
|
+
* @param options The tweet attributes
|
|
864
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
852
865
|
*/
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
service: string;
|
|
856
|
-
}) => ReturnType;
|
|
866
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
867
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
857
868
|
};
|
|
858
869
|
}
|
|
859
870
|
}
|
|
@@ -870,14 +881,9 @@ declare module '@tiptap/core' {
|
|
|
870
881
|
|
|
871
882
|
declare module '@tiptap/core' {
|
|
872
883
|
interface Commands<ReturnType> {
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
replace: () => ReturnType;
|
|
877
|
-
replaceAll: () => ReturnType;
|
|
878
|
-
goToPrevSearchResult: () => void;
|
|
879
|
-
goToNextSearchResult: () => void;
|
|
880
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
884
|
+
mermaid: {
|
|
885
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
886
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
881
887
|
};
|
|
882
888
|
}
|
|
883
889
|
}
|
|
@@ -905,9 +911,8 @@ declare module '@tiptap/core' {
|
|
|
905
911
|
|
|
906
912
|
declare module '@tiptap/core' {
|
|
907
913
|
interface Commands<ReturnType> {
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
914
|
+
attachment: {
|
|
915
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
911
916
|
};
|
|
912
917
|
}
|
|
913
918
|
}
|
|
@@ -915,8 +920,9 @@ declare module '@tiptap/core' {
|
|
|
915
920
|
|
|
916
921
|
declare module '@tiptap/core' {
|
|
917
922
|
interface Commands<ReturnType> {
|
|
918
|
-
|
|
919
|
-
|
|
923
|
+
tableOfContents: {
|
|
924
|
+
setTableOfContents: () => ReturnType;
|
|
925
|
+
removeTableOfContents: () => ReturnType;
|
|
920
926
|
};
|
|
921
927
|
}
|
|
922
928
|
}
|
|
@@ -924,14 +930,9 @@ declare module '@tiptap/core' {
|
|
|
924
930
|
|
|
925
931
|
declare module '@tiptap/core' {
|
|
926
932
|
interface Commands<ReturnType> {
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
* @param options The tweet attributes
|
|
931
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
932
|
-
*/
|
|
933
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
934
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
933
|
+
drawer: {
|
|
934
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
935
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
935
936
|
};
|
|
936
937
|
}
|
|
937
938
|
}
|
|
@@ -939,9 +940,8 @@ declare module '@tiptap/core' {
|
|
|
939
940
|
|
|
940
941
|
declare module '@tiptap/core' {
|
|
941
942
|
interface Commands<ReturnType> {
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
943
|
+
excalidraw: {
|
|
944
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
945
945
|
};
|
|
946
946
|
}
|
|
947
947
|
}
|
|
@@ -727,13 +727,19 @@ declare module '@tiptap/core' {
|
|
|
727
727
|
|
|
728
728
|
declare module '@tiptap/core' {
|
|
729
729
|
interface Commands<ReturnType> {
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
730
|
+
imageUpload: {
|
|
731
|
+
/**
|
|
732
|
+
* Add an image
|
|
733
|
+
*/
|
|
734
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
735
|
+
/**
|
|
736
|
+
* Update an image
|
|
737
|
+
*/
|
|
738
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
739
|
+
/**
|
|
740
|
+
* Set image alignment
|
|
741
|
+
*/
|
|
742
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
737
743
|
};
|
|
738
744
|
}
|
|
739
745
|
}
|
|
@@ -741,8 +747,14 @@ declare module '@tiptap/core' {
|
|
|
741
747
|
|
|
742
748
|
declare module '@tiptap/core' {
|
|
743
749
|
interface Commands<ReturnType> {
|
|
744
|
-
|
|
745
|
-
|
|
750
|
+
iframe: {
|
|
751
|
+
/**
|
|
752
|
+
* Add an iframe
|
|
753
|
+
*/
|
|
754
|
+
setIframe: (options: {
|
|
755
|
+
src: string;
|
|
756
|
+
service: string;
|
|
757
|
+
}) => ReturnType;
|
|
746
758
|
};
|
|
747
759
|
}
|
|
748
760
|
}
|
|
@@ -750,9 +762,14 @@ declare module '@tiptap/core' {
|
|
|
750
762
|
|
|
751
763
|
declare module '@tiptap/core' {
|
|
752
764
|
interface Commands<ReturnType> {
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
765
|
+
search: {
|
|
766
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
767
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
768
|
+
replace: () => ReturnType;
|
|
769
|
+
replaceAll: () => ReturnType;
|
|
770
|
+
goToPrevSearchResult: () => void;
|
|
771
|
+
goToNextSearchResult: () => void;
|
|
772
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
756
773
|
};
|
|
757
774
|
}
|
|
758
775
|
}
|
|
@@ -760,15 +777,8 @@ declare module '@tiptap/core' {
|
|
|
760
777
|
|
|
761
778
|
declare module '@tiptap/core' {
|
|
762
779
|
interface Commands<ReturnType> {
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
* Set the indent attribute
|
|
766
|
-
*/
|
|
767
|
-
indent: () => ReturnType;
|
|
768
|
-
/**
|
|
769
|
-
* Set the outdent attribute
|
|
770
|
-
*/
|
|
771
|
-
outdent: () => ReturnType;
|
|
780
|
+
painter: {
|
|
781
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
772
782
|
};
|
|
773
783
|
}
|
|
774
784
|
}
|
|
@@ -776,19 +786,9 @@ declare module '@tiptap/core' {
|
|
|
776
786
|
|
|
777
787
|
declare module '@tiptap/core' {
|
|
778
788
|
interface Commands<ReturnType> {
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
*/
|
|
783
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
784
|
-
/**
|
|
785
|
-
* Update an image
|
|
786
|
-
*/
|
|
787
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
788
|
-
/**
|
|
789
|
-
* Set image alignment
|
|
790
|
-
*/
|
|
791
|
-
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
789
|
+
tableCellBackground: {
|
|
790
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
791
|
+
unsetTableCellBackground: () => ReturnType;
|
|
792
792
|
};
|
|
793
793
|
}
|
|
794
794
|
}
|
|
@@ -796,9 +796,15 @@ declare module '@tiptap/core' {
|
|
|
796
796
|
|
|
797
797
|
declare module '@tiptap/core' {
|
|
798
798
|
interface Commands<ReturnType> {
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
799
|
+
indent: {
|
|
800
|
+
/**
|
|
801
|
+
* Set the indent attribute
|
|
802
|
+
*/
|
|
803
|
+
indent: () => ReturnType;
|
|
804
|
+
/**
|
|
805
|
+
* Set the outdent attribute
|
|
806
|
+
*/
|
|
807
|
+
outdent: () => ReturnType;
|
|
802
808
|
};
|
|
803
809
|
}
|
|
804
810
|
}
|
|
@@ -806,8 +812,11 @@ declare module '@tiptap/core' {
|
|
|
806
812
|
|
|
807
813
|
declare module '@tiptap/core' {
|
|
808
814
|
interface Commands<ReturnType> {
|
|
809
|
-
|
|
810
|
-
|
|
815
|
+
emoji: {
|
|
816
|
+
setEmoji: (emoji: {
|
|
817
|
+
name: string;
|
|
818
|
+
emoji: string;
|
|
819
|
+
}) => ReturnType;
|
|
811
820
|
};
|
|
812
821
|
}
|
|
813
822
|
}
|
|
@@ -815,9 +824,13 @@ declare module '@tiptap/core' {
|
|
|
815
824
|
|
|
816
825
|
declare module '@tiptap/core' {
|
|
817
826
|
interface Commands<ReturnType> {
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
827
|
+
columns: {
|
|
828
|
+
insertColumns: (attrs?: {
|
|
829
|
+
cols: number;
|
|
830
|
+
}) => ReturnType;
|
|
831
|
+
addColBefore: () => ReturnType;
|
|
832
|
+
addColAfter: () => ReturnType;
|
|
833
|
+
deleteCol: () => ReturnType;
|
|
821
834
|
};
|
|
822
835
|
}
|
|
823
836
|
}
|
|
@@ -825,8 +838,9 @@ declare module '@tiptap/core' {
|
|
|
825
838
|
|
|
826
839
|
declare module '@tiptap/core' {
|
|
827
840
|
interface Commands<ReturnType> {
|
|
828
|
-
|
|
829
|
-
|
|
841
|
+
lineHeight: {
|
|
842
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
843
|
+
unsetLineHeight: () => ReturnType;
|
|
830
844
|
};
|
|
831
845
|
}
|
|
832
846
|
}
|
|
@@ -834,11 +848,8 @@ declare module '@tiptap/core' {
|
|
|
834
848
|
|
|
835
849
|
declare module '@tiptap/core' {
|
|
836
850
|
interface Commands<ReturnType> {
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
name: string;
|
|
840
|
-
emoji: string;
|
|
841
|
-
}) => ReturnType;
|
|
851
|
+
katex: {
|
|
852
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
842
853
|
};
|
|
843
854
|
}
|
|
844
855
|
}
|
|
@@ -846,14 +857,14 @@ declare module '@tiptap/core' {
|
|
|
846
857
|
|
|
847
858
|
declare module '@tiptap/core' {
|
|
848
859
|
interface Commands<ReturnType> {
|
|
849
|
-
|
|
860
|
+
twitter: {
|
|
850
861
|
/**
|
|
851
|
-
*
|
|
862
|
+
* Insert a tweet
|
|
863
|
+
* @param options The tweet attributes
|
|
864
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
852
865
|
*/
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
service: string;
|
|
856
|
-
}) => ReturnType;
|
|
866
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
867
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
857
868
|
};
|
|
858
869
|
}
|
|
859
870
|
}
|
|
@@ -870,14 +881,9 @@ declare module '@tiptap/core' {
|
|
|
870
881
|
|
|
871
882
|
declare module '@tiptap/core' {
|
|
872
883
|
interface Commands<ReturnType> {
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
replace: () => ReturnType;
|
|
877
|
-
replaceAll: () => ReturnType;
|
|
878
|
-
goToPrevSearchResult: () => void;
|
|
879
|
-
goToNextSearchResult: () => void;
|
|
880
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
884
|
+
mermaid: {
|
|
885
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
886
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
881
887
|
};
|
|
882
888
|
}
|
|
883
889
|
}
|
|
@@ -905,9 +911,8 @@ declare module '@tiptap/core' {
|
|
|
905
911
|
|
|
906
912
|
declare module '@tiptap/core' {
|
|
907
913
|
interface Commands<ReturnType> {
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
914
|
+
attachment: {
|
|
915
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
911
916
|
};
|
|
912
917
|
}
|
|
913
918
|
}
|
|
@@ -915,8 +920,9 @@ declare module '@tiptap/core' {
|
|
|
915
920
|
|
|
916
921
|
declare module '@tiptap/core' {
|
|
917
922
|
interface Commands<ReturnType> {
|
|
918
|
-
|
|
919
|
-
|
|
923
|
+
tableOfContents: {
|
|
924
|
+
setTableOfContents: () => ReturnType;
|
|
925
|
+
removeTableOfContents: () => ReturnType;
|
|
920
926
|
};
|
|
921
927
|
}
|
|
922
928
|
}
|
|
@@ -924,14 +930,9 @@ declare module '@tiptap/core' {
|
|
|
924
930
|
|
|
925
931
|
declare module '@tiptap/core' {
|
|
926
932
|
interface Commands<ReturnType> {
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
* @param options The tweet attributes
|
|
931
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
932
|
-
*/
|
|
933
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
934
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
933
|
+
drawer: {
|
|
934
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
935
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
935
936
|
};
|
|
936
937
|
}
|
|
937
938
|
}
|
|
@@ -939,9 +940,8 @@ declare module '@tiptap/core' {
|
|
|
939
940
|
|
|
940
941
|
declare module '@tiptap/core' {
|
|
941
942
|
interface Commands<ReturnType> {
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
943
|
+
excalidraw: {
|
|
944
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
945
945
|
};
|
|
946
946
|
}
|
|
947
947
|
}
|
package/lib/extension-bundle.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { a as yt, I as kt, U as vt, S as Ct, C as Nt, f as ce, N as le, b as At, c as Tt, R as He, F as Lt, H as St, T as Et, E as N, d as Ht, e as Mt, g as zt, h as we, O as Rt, i as Pt, j as It, k as Bt, L as jt, l as Dt, m as pe, n as Ot, o as $t, D as Ft, P as Ut, p as qt, q as Kt, G as Vt, r as Wt, s as Gt, t as Zt, u as Jt, v as Qt, w as Yt, x as nt, y as it, z as at, A as Me, J as Xt, K as en, M as tn, Q as nn, V as an } from "./tiptap-
|
|
2
|
-
import { P as te, b as Z, $ as de, a0 as he, al as R, am as on, T as ot, A as rn, a4 as sn, an as cn, ao as ln } from "./vendor-
|
|
1
|
+
import { a as yt, I as kt, U as vt, S as Ct, C as Nt, f as ce, N as le, b as At, c as Tt, R as He, F as Lt, H as St, T as Et, E as N, d as Ht, e as Mt, g as zt, h as we, O as Rt, i as Pt, j as It, k as Bt, L as jt, l as Dt, m as pe, n as Ot, o as $t, D as Ft, P as Ut, p as qt, q as Kt, G as Vt, r as Wt, s as Gt, t as Zt, u as Jt, v as Qt, w as Yt, x as nt, y as it, z as at, A as Me, J as Xt, K as en, M as tn, Q as nn, V as an } from "./tiptap-Kst3Ray3.js";
|
|
2
|
+
import { P as te, b as Z, $ as de, a0 as he, al as R, am as on, T as ot, A as rn, a4 as sn, an as cn, ao as ln } from "./vendor-tDefVoN_.js";
|
|
3
3
|
import { jsxs as m, jsx as r, Fragment as ye } from "react/jsx-runtime";
|
|
4
4
|
import * as J from "react";
|
|
5
5
|
import dn, { useMemo as P, useState as v, useRef as G, useCallback as F, Fragment as ze, forwardRef as Re, useImperativeHandle as Pe, useEffect as M } from "react";
|
|
6
6
|
import { ChevronDown as Ie, Check as hn, ChevronUp as un, Copy as mn, CopyCheck as fn, SearchIcon as _n, LoaderIcon as gn, LucideTableProperties as bn, LucideSheet as xn, LucideImage as wn, LucideFile as pn, LucideVideo as yn, LucideAudioLines as kn } from "lucide-react";
|
|
7
|
-
import { i as Be, T as ke, a as ve, B as V, b as Ce, g as je, A as x, D as Q, c as Y, d as X, e as vn, f as S, u as De, h as Cn, I as z, j as ne, k as rt, l as Se, m as Nn, n as Oe, P as ie, o as ae, p as oe, q as $e, C as An, H as Tn, L as Ln, r as Sn, M as En, s as Hn, t as Ke, v as me, w as K, E as D, x as Mn, y as zn, V as Rn, z as Ve, F as Ne, G as We, S as Pn, J as In, K as Bn, N as j, O as jn, Q as Dn, U as On, W as $n, X as Fn, Y as st } from "./RichTextEditor-
|
|
8
|
-
import { a3 as Vo, $ as Wo, Z as Go, a0 as Zo, _ as Jo, a1 as Qo, a2 as Yo } from "./RichTextEditor-
|
|
9
|
-
import { M as Un, D as ct, u as B, f as qn, g as Kn, h as Ge, i as A, j as lt, k as Vn, T as fe, m as _e, n as ge } from "./index-
|
|
7
|
+
import { i as Be, T as ke, a as ve, B as V, b as Ce, g as je, A as x, D as Q, c as Y, d as X, e as vn, f as S, u as De, h as Cn, I as z, j as ne, k as rt, l as Se, m as Nn, n as Oe, P as ie, o as ae, p as oe, q as $e, C as An, H as Tn, L as Ln, r as Sn, M as En, s as Hn, t as Ke, v as me, w as K, E as D, x as Mn, y as zn, V as Rn, z as Ve, F as Ne, G as We, S as Pn, J as In, K as Bn, N as j, O as jn, Q as Dn, U as On, W as $n, X as Fn, Y as st } from "./RichTextEditor-Bxdp3pW3.js";
|
|
8
|
+
import { a3 as Vo, $ as Wo, Z as Go, a0 as Zo, _ as Jo, a1 as Qo, a2 as Yo } from "./RichTextEditor-Bxdp3pW3.js";
|
|
9
|
+
import { M as Un, D as ct, u as B, f as qn, g as Kn, h as Ge, i as A, j as lt, k as Vn, T as fe, m as _e, n as ge } from "./index-PJxla8pp.js";
|
|
10
10
|
import { bundledThemes as dt, bundledLanguages as ht, createHighlighter as Wn } from "shiki";
|
|
11
11
|
import * as C from "@radix-ui/react-select";
|
|
12
12
|
import { Slot as Gn } from "@radix-ui/react-slot";
|