reactjs-tiptap-editor-pro 0.2.23 → 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-Bgw6seGi.js → RichTextEditor-Bxdp3pW3.js} +315 -315
- package/lib/{RichTextEditor-D9Oz6Ru3.cjs → RichTextEditor-zOI60NFQ.cjs} +4 -4
- 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 +2 -2
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +79 -79
- package/lib/index.d.ts +79 -79
- package/lib/index.js +1 -1
- package/lib/locale-bundle.d.cts +79 -79
- package/lib/locale-bundle.d.ts +79 -79
- package/package.json +1 -1
|
@@ -725,42 +725,6 @@ declare module '@tiptap/core' {
|
|
|
725
725
|
}
|
|
726
726
|
|
|
727
727
|
|
|
728
|
-
declare module '@tiptap/core' {
|
|
729
|
-
interface Commands<ReturnType> {
|
|
730
|
-
lineHeight: {
|
|
731
|
-
setLineHeight: (lineHeight: string) => ReturnType;
|
|
732
|
-
unsetLineHeight: () => ReturnType;
|
|
733
|
-
};
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
declare module '@tiptap/core' {
|
|
739
|
-
interface Commands<ReturnType> {
|
|
740
|
-
indent: {
|
|
741
|
-
/**
|
|
742
|
-
* Set the indent attribute
|
|
743
|
-
*/
|
|
744
|
-
indent: () => ReturnType;
|
|
745
|
-
/**
|
|
746
|
-
* Set the outdent attribute
|
|
747
|
-
*/
|
|
748
|
-
outdent: () => ReturnType;
|
|
749
|
-
};
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
declare module '@tiptap/core' {
|
|
755
|
-
interface Commands<ReturnType> {
|
|
756
|
-
tableCellBackground: {
|
|
757
|
-
setTableCellBackground: (color: string) => ReturnType;
|
|
758
|
-
unsetTableCellBackground: () => ReturnType;
|
|
759
|
-
};
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
|
|
764
728
|
declare module '@tiptap/core' {
|
|
765
729
|
interface Commands<ReturnType> {
|
|
766
730
|
imageUpload: {
|
|
@@ -781,6 +745,21 @@ declare module '@tiptap/core' {
|
|
|
781
745
|
}
|
|
782
746
|
|
|
783
747
|
|
|
748
|
+
declare module '@tiptap/core' {
|
|
749
|
+
interface Commands<ReturnType> {
|
|
750
|
+
iframe: {
|
|
751
|
+
/**
|
|
752
|
+
* Add an iframe
|
|
753
|
+
*/
|
|
754
|
+
setIframe: (options: {
|
|
755
|
+
src: string;
|
|
756
|
+
service: string;
|
|
757
|
+
}) => ReturnType;
|
|
758
|
+
};
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
|
|
784
763
|
declare module '@tiptap/core' {
|
|
785
764
|
interface Commands<ReturnType> {
|
|
786
765
|
search: {
|
|
@@ -798,13 +777,8 @@ declare module '@tiptap/core' {
|
|
|
798
777
|
|
|
799
778
|
declare module '@tiptap/core' {
|
|
800
779
|
interface Commands<ReturnType> {
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
cols: number;
|
|
804
|
-
}) => ReturnType;
|
|
805
|
-
addColBefore: () => ReturnType;
|
|
806
|
-
addColAfter: () => ReturnType;
|
|
807
|
-
deleteCol: () => ReturnType;
|
|
780
|
+
painter: {
|
|
781
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
808
782
|
};
|
|
809
783
|
}
|
|
810
784
|
}
|
|
@@ -812,9 +786,9 @@ declare module '@tiptap/core' {
|
|
|
812
786
|
|
|
813
787
|
declare module '@tiptap/core' {
|
|
814
788
|
interface Commands<ReturnType> {
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
789
|
+
tableCellBackground: {
|
|
790
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
791
|
+
unsetTableCellBackground: () => ReturnType;
|
|
818
792
|
};
|
|
819
793
|
}
|
|
820
794
|
}
|
|
@@ -822,8 +796,15 @@ declare module '@tiptap/core' {
|
|
|
822
796
|
|
|
823
797
|
declare module '@tiptap/core' {
|
|
824
798
|
interface Commands<ReturnType> {
|
|
825
|
-
|
|
826
|
-
|
|
799
|
+
indent: {
|
|
800
|
+
/**
|
|
801
|
+
* Set the indent attribute
|
|
802
|
+
*/
|
|
803
|
+
indent: () => ReturnType;
|
|
804
|
+
/**
|
|
805
|
+
* Set the outdent attribute
|
|
806
|
+
*/
|
|
807
|
+
outdent: () => ReturnType;
|
|
827
808
|
};
|
|
828
809
|
}
|
|
829
810
|
}
|
|
@@ -831,8 +812,11 @@ declare module '@tiptap/core' {
|
|
|
831
812
|
|
|
832
813
|
declare module '@tiptap/core' {
|
|
833
814
|
interface Commands<ReturnType> {
|
|
834
|
-
|
|
835
|
-
|
|
815
|
+
emoji: {
|
|
816
|
+
setEmoji: (emoji: {
|
|
817
|
+
name: string;
|
|
818
|
+
emoji: string;
|
|
819
|
+
}) => ReturnType;
|
|
836
820
|
};
|
|
837
821
|
}
|
|
838
822
|
}
|
|
@@ -840,14 +824,13 @@ declare module '@tiptap/core' {
|
|
|
840
824
|
|
|
841
825
|
declare module '@tiptap/core' {
|
|
842
826
|
interface Commands<ReturnType> {
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
*/
|
|
847
|
-
setIframe: (options: {
|
|
848
|
-
src: string;
|
|
849
|
-
service: string;
|
|
827
|
+
columns: {
|
|
828
|
+
insertColumns: (attrs?: {
|
|
829
|
+
cols: number;
|
|
850
830
|
}) => ReturnType;
|
|
831
|
+
addColBefore: () => ReturnType;
|
|
832
|
+
addColAfter: () => ReturnType;
|
|
833
|
+
deleteCol: () => ReturnType;
|
|
851
834
|
};
|
|
852
835
|
}
|
|
853
836
|
}
|
|
@@ -855,8 +838,9 @@ declare module '@tiptap/core' {
|
|
|
855
838
|
|
|
856
839
|
declare module '@tiptap/core' {
|
|
857
840
|
interface Commands<ReturnType> {
|
|
858
|
-
|
|
859
|
-
|
|
841
|
+
lineHeight: {
|
|
842
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
843
|
+
unsetLineHeight: () => ReturnType;
|
|
860
844
|
};
|
|
861
845
|
}
|
|
862
846
|
}
|
|
@@ -864,11 +848,8 @@ declare module '@tiptap/core' {
|
|
|
864
848
|
|
|
865
849
|
declare module '@tiptap/core' {
|
|
866
850
|
interface Commands<ReturnType> {
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
name: string;
|
|
870
|
-
emoji: string;
|
|
871
|
-
}) => ReturnType;
|
|
851
|
+
katex: {
|
|
852
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
872
853
|
};
|
|
873
854
|
}
|
|
874
855
|
}
|
|
@@ -876,8 +857,23 @@ declare module '@tiptap/core' {
|
|
|
876
857
|
|
|
877
858
|
declare module '@tiptap/core' {
|
|
878
859
|
interface Commands<ReturnType> {
|
|
879
|
-
|
|
880
|
-
|
|
860
|
+
twitter: {
|
|
861
|
+
/**
|
|
862
|
+
* Insert a tweet
|
|
863
|
+
* @param options The tweet attributes
|
|
864
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
865
|
+
*/
|
|
866
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
867
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
868
|
+
};
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
declare module '@tiptap/core' {
|
|
874
|
+
interface Commands<ReturnType> {
|
|
875
|
+
exportWord: {
|
|
876
|
+
exportToWord: () => ReturnType;
|
|
881
877
|
};
|
|
882
878
|
}
|
|
883
879
|
}
|
|
@@ -915,9 +911,8 @@ declare module '@tiptap/core' {
|
|
|
915
911
|
|
|
916
912
|
declare module '@tiptap/core' {
|
|
917
913
|
interface Commands<ReturnType> {
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
914
|
+
attachment: {
|
|
915
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
921
916
|
};
|
|
922
917
|
}
|
|
923
918
|
}
|
|
@@ -925,14 +920,9 @@ declare module '@tiptap/core' {
|
|
|
925
920
|
|
|
926
921
|
declare module '@tiptap/core' {
|
|
927
922
|
interface Commands<ReturnType> {
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
* @param options The tweet attributes
|
|
932
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
933
|
-
*/
|
|
934
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
935
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
923
|
+
tableOfContents: {
|
|
924
|
+
setTableOfContents: () => ReturnType;
|
|
925
|
+
removeTableOfContents: () => ReturnType;
|
|
936
926
|
};
|
|
937
927
|
}
|
|
938
928
|
}
|
|
@@ -940,8 +930,18 @@ declare module '@tiptap/core' {
|
|
|
940
930
|
|
|
941
931
|
declare module '@tiptap/core' {
|
|
942
932
|
interface Commands<ReturnType> {
|
|
943
|
-
|
|
944
|
-
|
|
933
|
+
drawer: {
|
|
934
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
935
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
936
|
+
};
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
|
|
941
|
+
declare module '@tiptap/core' {
|
|
942
|
+
interface Commands<ReturnType> {
|
|
943
|
+
excalidraw: {
|
|
944
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
945
945
|
};
|
|
946
946
|
}
|
|
947
947
|
}
|
|
@@ -725,42 +725,6 @@ declare module '@tiptap/core' {
|
|
|
725
725
|
}
|
|
726
726
|
|
|
727
727
|
|
|
728
|
-
declare module '@tiptap/core' {
|
|
729
|
-
interface Commands<ReturnType> {
|
|
730
|
-
lineHeight: {
|
|
731
|
-
setLineHeight: (lineHeight: string) => ReturnType;
|
|
732
|
-
unsetLineHeight: () => ReturnType;
|
|
733
|
-
};
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
declare module '@tiptap/core' {
|
|
739
|
-
interface Commands<ReturnType> {
|
|
740
|
-
indent: {
|
|
741
|
-
/**
|
|
742
|
-
* Set the indent attribute
|
|
743
|
-
*/
|
|
744
|
-
indent: () => ReturnType;
|
|
745
|
-
/**
|
|
746
|
-
* Set the outdent attribute
|
|
747
|
-
*/
|
|
748
|
-
outdent: () => ReturnType;
|
|
749
|
-
};
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
declare module '@tiptap/core' {
|
|
755
|
-
interface Commands<ReturnType> {
|
|
756
|
-
tableCellBackground: {
|
|
757
|
-
setTableCellBackground: (color: string) => ReturnType;
|
|
758
|
-
unsetTableCellBackground: () => ReturnType;
|
|
759
|
-
};
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
|
|
764
728
|
declare module '@tiptap/core' {
|
|
765
729
|
interface Commands<ReturnType> {
|
|
766
730
|
imageUpload: {
|
|
@@ -781,6 +745,21 @@ declare module '@tiptap/core' {
|
|
|
781
745
|
}
|
|
782
746
|
|
|
783
747
|
|
|
748
|
+
declare module '@tiptap/core' {
|
|
749
|
+
interface Commands<ReturnType> {
|
|
750
|
+
iframe: {
|
|
751
|
+
/**
|
|
752
|
+
* Add an iframe
|
|
753
|
+
*/
|
|
754
|
+
setIframe: (options: {
|
|
755
|
+
src: string;
|
|
756
|
+
service: string;
|
|
757
|
+
}) => ReturnType;
|
|
758
|
+
};
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
|
|
784
763
|
declare module '@tiptap/core' {
|
|
785
764
|
interface Commands<ReturnType> {
|
|
786
765
|
search: {
|
|
@@ -798,13 +777,8 @@ declare module '@tiptap/core' {
|
|
|
798
777
|
|
|
799
778
|
declare module '@tiptap/core' {
|
|
800
779
|
interface Commands<ReturnType> {
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
cols: number;
|
|
804
|
-
}) => ReturnType;
|
|
805
|
-
addColBefore: () => ReturnType;
|
|
806
|
-
addColAfter: () => ReturnType;
|
|
807
|
-
deleteCol: () => ReturnType;
|
|
780
|
+
painter: {
|
|
781
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
808
782
|
};
|
|
809
783
|
}
|
|
810
784
|
}
|
|
@@ -812,9 +786,9 @@ declare module '@tiptap/core' {
|
|
|
812
786
|
|
|
813
787
|
declare module '@tiptap/core' {
|
|
814
788
|
interface Commands<ReturnType> {
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
789
|
+
tableCellBackground: {
|
|
790
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
791
|
+
unsetTableCellBackground: () => ReturnType;
|
|
818
792
|
};
|
|
819
793
|
}
|
|
820
794
|
}
|
|
@@ -822,8 +796,15 @@ declare module '@tiptap/core' {
|
|
|
822
796
|
|
|
823
797
|
declare module '@tiptap/core' {
|
|
824
798
|
interface Commands<ReturnType> {
|
|
825
|
-
|
|
826
|
-
|
|
799
|
+
indent: {
|
|
800
|
+
/**
|
|
801
|
+
* Set the indent attribute
|
|
802
|
+
*/
|
|
803
|
+
indent: () => ReturnType;
|
|
804
|
+
/**
|
|
805
|
+
* Set the outdent attribute
|
|
806
|
+
*/
|
|
807
|
+
outdent: () => ReturnType;
|
|
827
808
|
};
|
|
828
809
|
}
|
|
829
810
|
}
|
|
@@ -831,8 +812,11 @@ declare module '@tiptap/core' {
|
|
|
831
812
|
|
|
832
813
|
declare module '@tiptap/core' {
|
|
833
814
|
interface Commands<ReturnType> {
|
|
834
|
-
|
|
835
|
-
|
|
815
|
+
emoji: {
|
|
816
|
+
setEmoji: (emoji: {
|
|
817
|
+
name: string;
|
|
818
|
+
emoji: string;
|
|
819
|
+
}) => ReturnType;
|
|
836
820
|
};
|
|
837
821
|
}
|
|
838
822
|
}
|
|
@@ -840,14 +824,13 @@ declare module '@tiptap/core' {
|
|
|
840
824
|
|
|
841
825
|
declare module '@tiptap/core' {
|
|
842
826
|
interface Commands<ReturnType> {
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
*/
|
|
847
|
-
setIframe: (options: {
|
|
848
|
-
src: string;
|
|
849
|
-
service: string;
|
|
827
|
+
columns: {
|
|
828
|
+
insertColumns: (attrs?: {
|
|
829
|
+
cols: number;
|
|
850
830
|
}) => ReturnType;
|
|
831
|
+
addColBefore: () => ReturnType;
|
|
832
|
+
addColAfter: () => ReturnType;
|
|
833
|
+
deleteCol: () => ReturnType;
|
|
851
834
|
};
|
|
852
835
|
}
|
|
853
836
|
}
|
|
@@ -855,8 +838,9 @@ declare module '@tiptap/core' {
|
|
|
855
838
|
|
|
856
839
|
declare module '@tiptap/core' {
|
|
857
840
|
interface Commands<ReturnType> {
|
|
858
|
-
|
|
859
|
-
|
|
841
|
+
lineHeight: {
|
|
842
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
843
|
+
unsetLineHeight: () => ReturnType;
|
|
860
844
|
};
|
|
861
845
|
}
|
|
862
846
|
}
|
|
@@ -864,11 +848,8 @@ declare module '@tiptap/core' {
|
|
|
864
848
|
|
|
865
849
|
declare module '@tiptap/core' {
|
|
866
850
|
interface Commands<ReturnType> {
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
name: string;
|
|
870
|
-
emoji: string;
|
|
871
|
-
}) => ReturnType;
|
|
851
|
+
katex: {
|
|
852
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
872
853
|
};
|
|
873
854
|
}
|
|
874
855
|
}
|
|
@@ -876,8 +857,23 @@ declare module '@tiptap/core' {
|
|
|
876
857
|
|
|
877
858
|
declare module '@tiptap/core' {
|
|
878
859
|
interface Commands<ReturnType> {
|
|
879
|
-
|
|
880
|
-
|
|
860
|
+
twitter: {
|
|
861
|
+
/**
|
|
862
|
+
* Insert a tweet
|
|
863
|
+
* @param options The tweet attributes
|
|
864
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
865
|
+
*/
|
|
866
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
867
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
868
|
+
};
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
declare module '@tiptap/core' {
|
|
874
|
+
interface Commands<ReturnType> {
|
|
875
|
+
exportWord: {
|
|
876
|
+
exportToWord: () => ReturnType;
|
|
881
877
|
};
|
|
882
878
|
}
|
|
883
879
|
}
|
|
@@ -915,9 +911,8 @@ declare module '@tiptap/core' {
|
|
|
915
911
|
|
|
916
912
|
declare module '@tiptap/core' {
|
|
917
913
|
interface Commands<ReturnType> {
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
914
|
+
attachment: {
|
|
915
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
921
916
|
};
|
|
922
917
|
}
|
|
923
918
|
}
|
|
@@ -925,14 +920,9 @@ declare module '@tiptap/core' {
|
|
|
925
920
|
|
|
926
921
|
declare module '@tiptap/core' {
|
|
927
922
|
interface Commands<ReturnType> {
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
* @param options The tweet attributes
|
|
932
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
933
|
-
*/
|
|
934
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
935
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
923
|
+
tableOfContents: {
|
|
924
|
+
setTableOfContents: () => ReturnType;
|
|
925
|
+
removeTableOfContents: () => ReturnType;
|
|
936
926
|
};
|
|
937
927
|
}
|
|
938
928
|
}
|
|
@@ -940,8 +930,18 @@ declare module '@tiptap/core' {
|
|
|
940
930
|
|
|
941
931
|
declare module '@tiptap/core' {
|
|
942
932
|
interface Commands<ReturnType> {
|
|
943
|
-
|
|
944
|
-
|
|
933
|
+
drawer: {
|
|
934
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
935
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
936
|
+
};
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
|
|
941
|
+
declare module '@tiptap/core' {
|
|
942
|
+
interface Commands<ReturnType> {
|
|
943
|
+
excalidraw: {
|
|
944
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
945
945
|
};
|
|
946
946
|
}
|
|
947
947
|
}
|
package/lib/extension-bundle.js
CHANGED
|
@@ -4,8 +4,8 @@ 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-
|
|
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
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";
|
package/lib/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react"),d=require("./RichTextEditor-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react"),d=require("./RichTextEditor-zOI60NFQ.cjs"),c=require("./tiptap-Bzsbnr3f.cjs");function a(){var r;const e=t.useRef({editor:null}),[i,o]=t.useState(!1),[s,n]=t.useState(null);return t.useEffect(()=>{var u;(u=e.current)!=null&&u.editor&&(o(!0),n(e.current.editor))},[e,(r=e.current)==null?void 0:r.editor]),{isReady:i,editor:s,editorRef:e}}exports.default=d.RichTextEditor;exports.BubbleMenu=c.BubbleMenu;exports.useEditorState=a;
|