reactjs-tiptap-editor 0.2.6 → 0.2.7
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-Duvymqks.cjs +138 -0
- package/lib/RichTextEditor-GO6yxkq9.js +6972 -0
- package/lib/extension-bundle.cjs +1 -1
- package/lib/extension-bundle.d.cts +78 -78
- package/lib/extension-bundle.d.ts +78 -78
- package/lib/extension-bundle.js +2 -2
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +78 -78
- package/lib/index.d.ts +78 -78
- package/lib/index.js +1 -1
- package/lib/locale-bundle.d.cts +78 -78
- package/lib/locale-bundle.d.ts +78 -78
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/lib/RichTextEditor-B0-C2gAI.cjs +0 -138
- package/lib/RichTextEditor-DJXV8lHe.js +0 -6100
|
@@ -699,19 +699,15 @@ declare module '@tiptap/core' {
|
|
|
699
699
|
|
|
700
700
|
declare module '@tiptap/core' {
|
|
701
701
|
interface Commands<ReturnType> {
|
|
702
|
-
|
|
703
|
-
/**
|
|
704
|
-
* Add an image
|
|
705
|
-
*/
|
|
706
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
702
|
+
indent: {
|
|
707
703
|
/**
|
|
708
|
-
*
|
|
704
|
+
* Set the indent attribute
|
|
709
705
|
*/
|
|
710
|
-
|
|
706
|
+
indent: () => ReturnType;
|
|
711
707
|
/**
|
|
712
|
-
* Set
|
|
708
|
+
* Set the outdent attribute
|
|
713
709
|
*/
|
|
714
|
-
|
|
710
|
+
outdent: () => ReturnType;
|
|
715
711
|
};
|
|
716
712
|
}
|
|
717
713
|
}
|
|
@@ -729,24 +725,13 @@ declare module '@tiptap/core' {
|
|
|
729
725
|
|
|
730
726
|
declare module '@tiptap/core' {
|
|
731
727
|
interface Commands<ReturnType> {
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
*/
|
|
740
|
-
outdent: () => ReturnType;
|
|
741
|
-
};
|
|
742
|
-
}
|
|
743
|
-
}
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
declare module '@tiptap/core' {
|
|
747
|
-
interface Commands<ReturnType> {
|
|
748
|
-
katex: {
|
|
749
|
-
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
728
|
+
columns: {
|
|
729
|
+
insertColumns: (attrs?: {
|
|
730
|
+
cols: number;
|
|
731
|
+
}) => ReturnType;
|
|
732
|
+
addColBefore: () => ReturnType;
|
|
733
|
+
addColAfter: () => ReturnType;
|
|
734
|
+
deleteCol: () => ReturnType;
|
|
750
735
|
};
|
|
751
736
|
}
|
|
752
737
|
}
|
|
@@ -754,10 +739,13 @@ declare module '@tiptap/core' {
|
|
|
754
739
|
|
|
755
740
|
declare module '@tiptap/core' {
|
|
756
741
|
interface Commands<ReturnType> {
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
742
|
+
iframe: {
|
|
743
|
+
/**
|
|
744
|
+
* Add an iframe
|
|
745
|
+
*/
|
|
746
|
+
setIframe: (options: {
|
|
747
|
+
src: string;
|
|
748
|
+
service: string;
|
|
761
749
|
}) => ReturnType;
|
|
762
750
|
};
|
|
763
751
|
}
|
|
@@ -781,8 +769,9 @@ declare module '@tiptap/core' {
|
|
|
781
769
|
|
|
782
770
|
declare module '@tiptap/core' {
|
|
783
771
|
interface Commands<ReturnType> {
|
|
784
|
-
|
|
785
|
-
|
|
772
|
+
tableCellBackground: {
|
|
773
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
774
|
+
unsetTableCellBackground: () => ReturnType;
|
|
786
775
|
};
|
|
787
776
|
}
|
|
788
777
|
}
|
|
@@ -790,14 +779,31 @@ declare module '@tiptap/core' {
|
|
|
790
779
|
|
|
791
780
|
declare module '@tiptap/core' {
|
|
792
781
|
interface Commands<ReturnType> {
|
|
793
|
-
|
|
782
|
+
emoji: {
|
|
783
|
+
setEmoji: (emoji: {
|
|
784
|
+
name: string;
|
|
785
|
+
emoji: string;
|
|
786
|
+
}) => ReturnType;
|
|
787
|
+
};
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
|
|
792
|
+
declare module '@tiptap/core' {
|
|
793
|
+
interface Commands<ReturnType> {
|
|
794
|
+
imageUpload: {
|
|
794
795
|
/**
|
|
795
|
-
* Add an
|
|
796
|
+
* Add an image
|
|
796
797
|
*/
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
798
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
799
|
+
/**
|
|
800
|
+
* Update an image
|
|
801
|
+
*/
|
|
802
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
803
|
+
/**
|
|
804
|
+
* Set image alignment
|
|
805
|
+
*/
|
|
806
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
801
807
|
};
|
|
802
808
|
}
|
|
803
809
|
}
|
|
@@ -805,9 +811,8 @@ declare module '@tiptap/core' {
|
|
|
805
811
|
|
|
806
812
|
declare module '@tiptap/core' {
|
|
807
813
|
interface Commands<ReturnType> {
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
unsetTableCellBackground: () => ReturnType;
|
|
814
|
+
painter: {
|
|
815
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
811
816
|
};
|
|
812
817
|
}
|
|
813
818
|
}
|
|
@@ -815,13 +820,8 @@ declare module '@tiptap/core' {
|
|
|
815
820
|
|
|
816
821
|
declare module '@tiptap/core' {
|
|
817
822
|
interface Commands<ReturnType> {
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
cols: number;
|
|
821
|
-
}) => ReturnType;
|
|
822
|
-
addColBefore: () => ReturnType;
|
|
823
|
-
addColAfter: () => ReturnType;
|
|
824
|
-
deleteCol: () => ReturnType;
|
|
823
|
+
katex: {
|
|
824
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
825
825
|
};
|
|
826
826
|
}
|
|
827
827
|
}
|
|
@@ -857,9 +857,19 @@ declare module '@tiptap/core' {
|
|
|
857
857
|
|
|
858
858
|
declare module '@tiptap/core' {
|
|
859
859
|
interface Commands<ReturnType> {
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
860
|
+
imageGifUpload: {
|
|
861
|
+
/**
|
|
862
|
+
* Add an image gif
|
|
863
|
+
*/
|
|
864
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
865
|
+
/**
|
|
866
|
+
* Update an image gif
|
|
867
|
+
*/
|
|
868
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
869
|
+
/**
|
|
870
|
+
* Set image alignment
|
|
871
|
+
*/
|
|
872
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
863
873
|
};
|
|
864
874
|
}
|
|
865
875
|
}
|
|
@@ -867,14 +877,9 @@ declare module '@tiptap/core' {
|
|
|
867
877
|
|
|
868
878
|
declare module '@tiptap/core' {
|
|
869
879
|
interface Commands<ReturnType> {
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
* @param options The tweet attributes
|
|
874
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
875
|
-
*/
|
|
876
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
877
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
880
|
+
mermaid: {
|
|
881
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
882
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
878
883
|
};
|
|
879
884
|
}
|
|
880
885
|
}
|
|
@@ -882,9 +887,8 @@ declare module '@tiptap/core' {
|
|
|
882
887
|
|
|
883
888
|
declare module '@tiptap/core' {
|
|
884
889
|
interface Commands<ReturnType> {
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
890
|
+
attachment: {
|
|
891
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
888
892
|
};
|
|
889
893
|
}
|
|
890
894
|
}
|
|
@@ -892,8 +896,14 @@ declare module '@tiptap/core' {
|
|
|
892
896
|
|
|
893
897
|
declare module '@tiptap/core' {
|
|
894
898
|
interface Commands<ReturnType> {
|
|
895
|
-
|
|
896
|
-
|
|
899
|
+
twitter: {
|
|
900
|
+
/**
|
|
901
|
+
* Insert a tweet
|
|
902
|
+
* @param options The tweet attributes
|
|
903
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
904
|
+
*/
|
|
905
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
906
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
897
907
|
};
|
|
898
908
|
}
|
|
899
909
|
}
|
|
@@ -901,19 +911,9 @@ declare module '@tiptap/core' {
|
|
|
901
911
|
|
|
902
912
|
declare module '@tiptap/core' {
|
|
903
913
|
interface Commands<ReturnType> {
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
*/
|
|
908
|
-
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
909
|
-
/**
|
|
910
|
-
* Update an image gif
|
|
911
|
-
*/
|
|
912
|
-
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
913
|
-
/**
|
|
914
|
-
* Set image alignment
|
|
915
|
-
*/
|
|
916
|
-
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
914
|
+
drawer: {
|
|
915
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
916
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
917
917
|
};
|
|
918
918
|
}
|
|
919
919
|
}
|
|
@@ -699,19 +699,15 @@ declare module '@tiptap/core' {
|
|
|
699
699
|
|
|
700
700
|
declare module '@tiptap/core' {
|
|
701
701
|
interface Commands<ReturnType> {
|
|
702
|
-
|
|
703
|
-
/**
|
|
704
|
-
* Add an image
|
|
705
|
-
*/
|
|
706
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
702
|
+
indent: {
|
|
707
703
|
/**
|
|
708
|
-
*
|
|
704
|
+
* Set the indent attribute
|
|
709
705
|
*/
|
|
710
|
-
|
|
706
|
+
indent: () => ReturnType;
|
|
711
707
|
/**
|
|
712
|
-
* Set
|
|
708
|
+
* Set the outdent attribute
|
|
713
709
|
*/
|
|
714
|
-
|
|
710
|
+
outdent: () => ReturnType;
|
|
715
711
|
};
|
|
716
712
|
}
|
|
717
713
|
}
|
|
@@ -729,24 +725,13 @@ declare module '@tiptap/core' {
|
|
|
729
725
|
|
|
730
726
|
declare module '@tiptap/core' {
|
|
731
727
|
interface Commands<ReturnType> {
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
*/
|
|
740
|
-
outdent: () => ReturnType;
|
|
741
|
-
};
|
|
742
|
-
}
|
|
743
|
-
}
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
declare module '@tiptap/core' {
|
|
747
|
-
interface Commands<ReturnType> {
|
|
748
|
-
katex: {
|
|
749
|
-
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
728
|
+
columns: {
|
|
729
|
+
insertColumns: (attrs?: {
|
|
730
|
+
cols: number;
|
|
731
|
+
}) => ReturnType;
|
|
732
|
+
addColBefore: () => ReturnType;
|
|
733
|
+
addColAfter: () => ReturnType;
|
|
734
|
+
deleteCol: () => ReturnType;
|
|
750
735
|
};
|
|
751
736
|
}
|
|
752
737
|
}
|
|
@@ -754,10 +739,13 @@ declare module '@tiptap/core' {
|
|
|
754
739
|
|
|
755
740
|
declare module '@tiptap/core' {
|
|
756
741
|
interface Commands<ReturnType> {
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
742
|
+
iframe: {
|
|
743
|
+
/**
|
|
744
|
+
* Add an iframe
|
|
745
|
+
*/
|
|
746
|
+
setIframe: (options: {
|
|
747
|
+
src: string;
|
|
748
|
+
service: string;
|
|
761
749
|
}) => ReturnType;
|
|
762
750
|
};
|
|
763
751
|
}
|
|
@@ -781,8 +769,9 @@ declare module '@tiptap/core' {
|
|
|
781
769
|
|
|
782
770
|
declare module '@tiptap/core' {
|
|
783
771
|
interface Commands<ReturnType> {
|
|
784
|
-
|
|
785
|
-
|
|
772
|
+
tableCellBackground: {
|
|
773
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
774
|
+
unsetTableCellBackground: () => ReturnType;
|
|
786
775
|
};
|
|
787
776
|
}
|
|
788
777
|
}
|
|
@@ -790,14 +779,31 @@ declare module '@tiptap/core' {
|
|
|
790
779
|
|
|
791
780
|
declare module '@tiptap/core' {
|
|
792
781
|
interface Commands<ReturnType> {
|
|
793
|
-
|
|
782
|
+
emoji: {
|
|
783
|
+
setEmoji: (emoji: {
|
|
784
|
+
name: string;
|
|
785
|
+
emoji: string;
|
|
786
|
+
}) => ReturnType;
|
|
787
|
+
};
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
|
|
792
|
+
declare module '@tiptap/core' {
|
|
793
|
+
interface Commands<ReturnType> {
|
|
794
|
+
imageUpload: {
|
|
794
795
|
/**
|
|
795
|
-
* Add an
|
|
796
|
+
* Add an image
|
|
796
797
|
*/
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
798
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
799
|
+
/**
|
|
800
|
+
* Update an image
|
|
801
|
+
*/
|
|
802
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
803
|
+
/**
|
|
804
|
+
* Set image alignment
|
|
805
|
+
*/
|
|
806
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
801
807
|
};
|
|
802
808
|
}
|
|
803
809
|
}
|
|
@@ -805,9 +811,8 @@ declare module '@tiptap/core' {
|
|
|
805
811
|
|
|
806
812
|
declare module '@tiptap/core' {
|
|
807
813
|
interface Commands<ReturnType> {
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
unsetTableCellBackground: () => ReturnType;
|
|
814
|
+
painter: {
|
|
815
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
811
816
|
};
|
|
812
817
|
}
|
|
813
818
|
}
|
|
@@ -815,13 +820,8 @@ declare module '@tiptap/core' {
|
|
|
815
820
|
|
|
816
821
|
declare module '@tiptap/core' {
|
|
817
822
|
interface Commands<ReturnType> {
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
cols: number;
|
|
821
|
-
}) => ReturnType;
|
|
822
|
-
addColBefore: () => ReturnType;
|
|
823
|
-
addColAfter: () => ReturnType;
|
|
824
|
-
deleteCol: () => ReturnType;
|
|
823
|
+
katex: {
|
|
824
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
825
825
|
};
|
|
826
826
|
}
|
|
827
827
|
}
|
|
@@ -857,9 +857,19 @@ declare module '@tiptap/core' {
|
|
|
857
857
|
|
|
858
858
|
declare module '@tiptap/core' {
|
|
859
859
|
interface Commands<ReturnType> {
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
860
|
+
imageGifUpload: {
|
|
861
|
+
/**
|
|
862
|
+
* Add an image gif
|
|
863
|
+
*/
|
|
864
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
865
|
+
/**
|
|
866
|
+
* Update an image gif
|
|
867
|
+
*/
|
|
868
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
869
|
+
/**
|
|
870
|
+
* Set image alignment
|
|
871
|
+
*/
|
|
872
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
863
873
|
};
|
|
864
874
|
}
|
|
865
875
|
}
|
|
@@ -867,14 +877,9 @@ declare module '@tiptap/core' {
|
|
|
867
877
|
|
|
868
878
|
declare module '@tiptap/core' {
|
|
869
879
|
interface Commands<ReturnType> {
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
* @param options The tweet attributes
|
|
874
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
875
|
-
*/
|
|
876
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
877
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
880
|
+
mermaid: {
|
|
881
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
882
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
878
883
|
};
|
|
879
884
|
}
|
|
880
885
|
}
|
|
@@ -882,9 +887,8 @@ declare module '@tiptap/core' {
|
|
|
882
887
|
|
|
883
888
|
declare module '@tiptap/core' {
|
|
884
889
|
interface Commands<ReturnType> {
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
890
|
+
attachment: {
|
|
891
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
888
892
|
};
|
|
889
893
|
}
|
|
890
894
|
}
|
|
@@ -892,8 +896,14 @@ declare module '@tiptap/core' {
|
|
|
892
896
|
|
|
893
897
|
declare module '@tiptap/core' {
|
|
894
898
|
interface Commands<ReturnType> {
|
|
895
|
-
|
|
896
|
-
|
|
899
|
+
twitter: {
|
|
900
|
+
/**
|
|
901
|
+
* Insert a tweet
|
|
902
|
+
* @param options The tweet attributes
|
|
903
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
904
|
+
*/
|
|
905
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
906
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
897
907
|
};
|
|
898
908
|
}
|
|
899
909
|
}
|
|
@@ -901,19 +911,9 @@ declare module '@tiptap/core' {
|
|
|
901
911
|
|
|
902
912
|
declare module '@tiptap/core' {
|
|
903
913
|
interface Commands<ReturnType> {
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
*/
|
|
908
|
-
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
909
|
-
/**
|
|
910
|
-
* Update an image gif
|
|
911
|
-
*/
|
|
912
|
-
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
913
|
-
/**
|
|
914
|
-
* Set image alignment
|
|
915
|
-
*/
|
|
916
|
-
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
914
|
+
drawer: {
|
|
915
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
916
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
917
917
|
};
|
|
918
918
|
}
|
|
919
919
|
}
|
package/lib/extension-bundle.js
CHANGED
|
@@ -4,8 +4,8 @@ import { jsxs as m, jsx as o, Fragment as oe } from "react/jsx-runtime";
|
|
|
4
4
|
import * as V from "react";
|
|
5
5
|
import Pe, { useMemo as R, useState as k, useRef as X, useCallback as j, Fragment as Je, forwardRef as Qe, useImperativeHandle as et, useEffect as P } from "react";
|
|
6
6
|
import { ChevronDown as tt, Check as Rt, ChevronUp as Kn, Copy as Wn, CopyCheck as Gn, SearchIcon as Xn, LoaderIcon as Yn, LucideTableProperties as Zn, LucideSheet as Jn, LucideImage as Qn, LucideFile as ei, LucideVideo as ti, LucideAudioLines as ni } from "lucide-react";
|
|
7
|
-
import { i as nt, T as Be, a as $e, B as O, b as Fe, g as it, A as y, D as re, c as se, d as ce, e as ii, f as E, u as at, h as ai, I as D, j as be, k as Pt, l as We, m as oi, n as ot, P as xe, o as pe, p as we, q as rt, C as ri, H as si, L as ci, r as li, M as di, s as ui, t as xt, v as Se, w as st, x as ct, y as lt, z as dt, E as hi, F as mi, G as fi, J as De, K as Oe, N as gi, S as _i, O as bi, Q as xi, U as Y, V as pi, W as wi, X as yi, Y as vi, Z as ki, _ as Dt } from "./RichTextEditor-
|
|
8
|
-
import { a5 as Wr, a1 as Gr, $ as Xr, a2 as Yr, a0 as Zr, a3 as Jr, a4 as Qr } from "./RichTextEditor-
|
|
7
|
+
import { i as nt, T as Be, a as $e, B as O, b as Fe, g as it, A as y, D as re, c as se, d as ce, e as ii, f as E, u as at, h as ai, I as D, j as be, k as Pt, l as We, m as oi, n as ot, P as xe, o as pe, p as we, q as rt, C as ri, H as si, L as ci, r as li, M as di, s as ui, t as xt, v as Se, w as st, x as ct, y as lt, z as dt, E as hi, F as mi, G as fi, J as De, K as Oe, N as gi, S as _i, O as bi, Q as xi, U as Y, V as pi, W as wi, X as yi, Y as vi, Z as ki, _ as Dt } from "./RichTextEditor-GO6yxkq9.js";
|
|
8
|
+
import { a5 as Wr, a1 as Gr, $ as Xr, a2 as Yr, a0 as Zr, a3 as Jr, a4 as Qr } from "./RichTextEditor-GO6yxkq9.js";
|
|
9
9
|
import { M as Ci, D as Ot, u as B, f as Ni, g as Ti, h as pt, i as z, j as jt, k as Ai, I as wt, m as Li, n as yt, V as Si, T as Me, o as Ie, p as Ee } from "./index-BngAFVnd.js";
|
|
10
10
|
import * as le from "@radix-ui/react-tabs";
|
|
11
11
|
import { bundledThemes as Bt, bundledLanguages as $t, createHighlighter as Mi } from "shiki";
|
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-Duvymqks.cjs"),c=require("./tiptap-tmVDGH_r.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;
|