reactjs-tiptap-editor 0.1.15 → 0.1.16
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-CqUsKvdf.js → RichTextEditor-BkhQvEYE.js} +98 -99
- package/lib/RichTextEditor-Da_h65eW.cjs +138 -0
- package/lib/extension-bundle.cjs +1 -1
- package/lib/extension-bundle.d.cts +64 -79
- package/lib/extension-bundle.d.ts +64 -79
- package/lib/extension-bundle.js +7 -7
- package/lib/{index-CHZh3C0I.cjs → index-jhhV09no.cjs} +1 -1
- package/lib/{index-BQSRMhtZ.js → index-ss0v5xR4.js} +2 -2
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +64 -79
- package/lib/index.d.ts +64 -79
- package/lib/index.js +2 -2
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.d.cts +64 -79
- package/lib/locale-bundle.d.ts +64 -79
- package/lib/locale-bundle.js +1 -1
- package/lib/style.css +1 -1
- package/lib/{tiptap-DkTOfBkj.cjs → tiptap-CTEGMe7x.cjs} +1 -1
- package/lib/{tiptap-CB5MO02_.js → tiptap-OmOggkHK.js} +1 -1
- package/lib/{vendor-DiKgVtSS.js → vendor-C9AD9FTJ.js} +16266 -14648
- package/lib/vendor-CEvER8Ns.cjs +370 -0
- package/package.json +10 -10
- package/lib/RichTextEditor-BFCJg7ap.cjs +0 -138
- package/lib/vendor-BH8HYOJ4.cjs +0 -354
|
@@ -694,9 +694,9 @@ declare module '@tiptap/core' {
|
|
|
694
694
|
|
|
695
695
|
declare module '@tiptap/core' {
|
|
696
696
|
interface Commands<ReturnType> {
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
697
|
+
tableCellBackground: {
|
|
698
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
699
|
+
unsetTableCellBackground: () => ReturnType;
|
|
700
700
|
};
|
|
701
701
|
}
|
|
702
702
|
}
|
|
@@ -704,15 +704,19 @@ declare module '@tiptap/core' {
|
|
|
704
704
|
|
|
705
705
|
declare module '@tiptap/core' {
|
|
706
706
|
interface Commands<ReturnType> {
|
|
707
|
-
|
|
707
|
+
imageUpload: {
|
|
708
708
|
/**
|
|
709
|
-
*
|
|
709
|
+
* Add an image
|
|
710
710
|
*/
|
|
711
|
-
|
|
711
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
712
712
|
/**
|
|
713
|
-
*
|
|
713
|
+
* Update an image
|
|
714
714
|
*/
|
|
715
|
-
|
|
715
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
716
|
+
/**
|
|
717
|
+
* Set image alignment
|
|
718
|
+
*/
|
|
719
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
716
720
|
};
|
|
717
721
|
}
|
|
718
722
|
}
|
|
@@ -720,9 +724,8 @@ declare module '@tiptap/core' {
|
|
|
720
724
|
|
|
721
725
|
declare module '@tiptap/core' {
|
|
722
726
|
interface Commands<ReturnType> {
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
unsetTableCellBackground: () => ReturnType;
|
|
727
|
+
painter: {
|
|
728
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
726
729
|
};
|
|
727
730
|
}
|
|
728
731
|
}
|
|
@@ -730,19 +733,15 @@ declare module '@tiptap/core' {
|
|
|
730
733
|
|
|
731
734
|
declare module '@tiptap/core' {
|
|
732
735
|
interface Commands<ReturnType> {
|
|
733
|
-
|
|
734
|
-
/**
|
|
735
|
-
* Add an image
|
|
736
|
-
*/
|
|
737
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
736
|
+
indent: {
|
|
738
737
|
/**
|
|
739
|
-
*
|
|
738
|
+
* Set the indent attribute
|
|
740
739
|
*/
|
|
741
|
-
|
|
740
|
+
indent: () => ReturnType;
|
|
742
741
|
/**
|
|
743
|
-
* Set
|
|
742
|
+
* Set the outdent attribute
|
|
744
743
|
*/
|
|
745
|
-
|
|
744
|
+
outdent: () => ReturnType;
|
|
746
745
|
};
|
|
747
746
|
}
|
|
748
747
|
}
|
|
@@ -750,14 +749,11 @@ declare module '@tiptap/core' {
|
|
|
750
749
|
|
|
751
750
|
declare module '@tiptap/core' {
|
|
752
751
|
interface Commands<ReturnType> {
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
goToPrevSearchResult: () => void;
|
|
759
|
-
goToNextSearchResult: () => void;
|
|
760
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
752
|
+
emoji: {
|
|
753
|
+
setEmoji: (emoji: {
|
|
754
|
+
name: string;
|
|
755
|
+
emoji: string;
|
|
756
|
+
}) => ReturnType;
|
|
761
757
|
};
|
|
762
758
|
}
|
|
763
759
|
}
|
|
@@ -765,14 +761,9 @@ declare module '@tiptap/core' {
|
|
|
765
761
|
|
|
766
762
|
declare module '@tiptap/core' {
|
|
767
763
|
interface Commands<ReturnType> {
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
*/
|
|
772
|
-
setIframe: (options: {
|
|
773
|
-
src: string;
|
|
774
|
-
service: string;
|
|
775
|
-
}) => ReturnType;
|
|
764
|
+
tableOfContents: {
|
|
765
|
+
setTableOfContents: () => ReturnType;
|
|
766
|
+
removeTableOfContents: () => ReturnType;
|
|
776
767
|
};
|
|
777
768
|
}
|
|
778
769
|
}
|
|
@@ -780,13 +771,8 @@ declare module '@tiptap/core' {
|
|
|
780
771
|
|
|
781
772
|
declare module '@tiptap/core' {
|
|
782
773
|
interface Commands<ReturnType> {
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
cols: number;
|
|
786
|
-
}) => ReturnType;
|
|
787
|
-
addColBefore: () => ReturnType;
|
|
788
|
-
addColAfter: () => ReturnType;
|
|
789
|
-
deleteCol: () => ReturnType;
|
|
774
|
+
excalidraw: {
|
|
775
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
790
776
|
};
|
|
791
777
|
}
|
|
792
778
|
}
|
|
@@ -794,8 +780,14 @@ declare module '@tiptap/core' {
|
|
|
794
780
|
|
|
795
781
|
declare module '@tiptap/core' {
|
|
796
782
|
interface Commands<ReturnType> {
|
|
797
|
-
|
|
798
|
-
|
|
783
|
+
iframe: {
|
|
784
|
+
/**
|
|
785
|
+
* Add an iframe
|
|
786
|
+
*/
|
|
787
|
+
setIframe: (options: {
|
|
788
|
+
src: string;
|
|
789
|
+
service: string;
|
|
790
|
+
}) => ReturnType;
|
|
799
791
|
};
|
|
800
792
|
}
|
|
801
793
|
}
|
|
@@ -803,11 +795,9 @@ declare module '@tiptap/core' {
|
|
|
803
795
|
|
|
804
796
|
declare module '@tiptap/core' {
|
|
805
797
|
interface Commands<ReturnType> {
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
emoji: string;
|
|
810
|
-
}) => ReturnType;
|
|
798
|
+
lineHeight: {
|
|
799
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
800
|
+
unsetLineHeight: () => ReturnType;
|
|
811
801
|
};
|
|
812
802
|
}
|
|
813
803
|
}
|
|
@@ -833,8 +823,13 @@ declare module '@tiptap/core' {
|
|
|
833
823
|
|
|
834
824
|
declare module '@tiptap/core' {
|
|
835
825
|
interface Commands<ReturnType> {
|
|
836
|
-
|
|
837
|
-
|
|
826
|
+
columns: {
|
|
827
|
+
insertColumns: (attrs?: {
|
|
828
|
+
cols: number;
|
|
829
|
+
}) => ReturnType;
|
|
830
|
+
addColBefore: () => ReturnType;
|
|
831
|
+
addColAfter: () => ReturnType;
|
|
832
|
+
deleteCol: () => ReturnType;
|
|
838
833
|
};
|
|
839
834
|
}
|
|
840
835
|
}
|
|
@@ -842,9 +837,14 @@ declare module '@tiptap/core' {
|
|
|
842
837
|
|
|
843
838
|
declare module '@tiptap/core' {
|
|
844
839
|
interface Commands<ReturnType> {
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
840
|
+
search: {
|
|
841
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
842
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
843
|
+
replace: () => ReturnType;
|
|
844
|
+
replaceAll: () => ReturnType;
|
|
845
|
+
goToPrevSearchResult: () => void;
|
|
846
|
+
goToNextSearchResult: () => void;
|
|
847
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
848
848
|
};
|
|
849
849
|
}
|
|
850
850
|
}
|
|
@@ -852,9 +852,8 @@ declare module '@tiptap/core' {
|
|
|
852
852
|
|
|
853
853
|
declare module '@tiptap/core' {
|
|
854
854
|
interface Commands<ReturnType> {
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
855
|
+
attachment: {
|
|
856
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
858
857
|
};
|
|
859
858
|
}
|
|
860
859
|
}
|
|
@@ -880,15 +879,6 @@ declare module '@tiptap/core' {
|
|
|
880
879
|
}
|
|
881
880
|
|
|
882
881
|
|
|
883
|
-
declare module '@tiptap/core' {
|
|
884
|
-
interface Commands<ReturnType> {
|
|
885
|
-
attachment: {
|
|
886
|
-
setAttachment: (attrs?: unknown) => ReturnType;
|
|
887
|
-
};
|
|
888
|
-
}
|
|
889
|
-
}
|
|
890
|
-
|
|
891
|
-
|
|
892
882
|
declare module '@tiptap/core' {
|
|
893
883
|
interface Commands<ReturnType> {
|
|
894
884
|
twitter: {
|
|
@@ -904,16 +894,11 @@ declare module '@tiptap/core' {
|
|
|
904
894
|
}
|
|
905
895
|
|
|
906
896
|
|
|
907
|
-
declare
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
}
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
declare namespace DropdownMenuShortcut {
|
|
918
|
-
var displayName: string;
|
|
897
|
+
declare module '@tiptap/core' {
|
|
898
|
+
interface Commands<ReturnType> {
|
|
899
|
+
mermaid: {
|
|
900
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
901
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
902
|
+
};
|
|
903
|
+
}
|
|
919
904
|
}
|
|
@@ -694,9 +694,9 @@ declare module '@tiptap/core' {
|
|
|
694
694
|
|
|
695
695
|
declare module '@tiptap/core' {
|
|
696
696
|
interface Commands<ReturnType> {
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
697
|
+
tableCellBackground: {
|
|
698
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
699
|
+
unsetTableCellBackground: () => ReturnType;
|
|
700
700
|
};
|
|
701
701
|
}
|
|
702
702
|
}
|
|
@@ -704,15 +704,19 @@ declare module '@tiptap/core' {
|
|
|
704
704
|
|
|
705
705
|
declare module '@tiptap/core' {
|
|
706
706
|
interface Commands<ReturnType> {
|
|
707
|
-
|
|
707
|
+
imageUpload: {
|
|
708
708
|
/**
|
|
709
|
-
*
|
|
709
|
+
* Add an image
|
|
710
710
|
*/
|
|
711
|
-
|
|
711
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
712
712
|
/**
|
|
713
|
-
*
|
|
713
|
+
* Update an image
|
|
714
714
|
*/
|
|
715
|
-
|
|
715
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
716
|
+
/**
|
|
717
|
+
* Set image alignment
|
|
718
|
+
*/
|
|
719
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
716
720
|
};
|
|
717
721
|
}
|
|
718
722
|
}
|
|
@@ -720,9 +724,8 @@ declare module '@tiptap/core' {
|
|
|
720
724
|
|
|
721
725
|
declare module '@tiptap/core' {
|
|
722
726
|
interface Commands<ReturnType> {
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
unsetTableCellBackground: () => ReturnType;
|
|
727
|
+
painter: {
|
|
728
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
726
729
|
};
|
|
727
730
|
}
|
|
728
731
|
}
|
|
@@ -730,19 +733,15 @@ declare module '@tiptap/core' {
|
|
|
730
733
|
|
|
731
734
|
declare module '@tiptap/core' {
|
|
732
735
|
interface Commands<ReturnType> {
|
|
733
|
-
|
|
734
|
-
/**
|
|
735
|
-
* Add an image
|
|
736
|
-
*/
|
|
737
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
736
|
+
indent: {
|
|
738
737
|
/**
|
|
739
|
-
*
|
|
738
|
+
* Set the indent attribute
|
|
740
739
|
*/
|
|
741
|
-
|
|
740
|
+
indent: () => ReturnType;
|
|
742
741
|
/**
|
|
743
|
-
* Set
|
|
742
|
+
* Set the outdent attribute
|
|
744
743
|
*/
|
|
745
|
-
|
|
744
|
+
outdent: () => ReturnType;
|
|
746
745
|
};
|
|
747
746
|
}
|
|
748
747
|
}
|
|
@@ -750,14 +749,11 @@ declare module '@tiptap/core' {
|
|
|
750
749
|
|
|
751
750
|
declare module '@tiptap/core' {
|
|
752
751
|
interface Commands<ReturnType> {
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
goToPrevSearchResult: () => void;
|
|
759
|
-
goToNextSearchResult: () => void;
|
|
760
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
752
|
+
emoji: {
|
|
753
|
+
setEmoji: (emoji: {
|
|
754
|
+
name: string;
|
|
755
|
+
emoji: string;
|
|
756
|
+
}) => ReturnType;
|
|
761
757
|
};
|
|
762
758
|
}
|
|
763
759
|
}
|
|
@@ -765,14 +761,9 @@ declare module '@tiptap/core' {
|
|
|
765
761
|
|
|
766
762
|
declare module '@tiptap/core' {
|
|
767
763
|
interface Commands<ReturnType> {
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
*/
|
|
772
|
-
setIframe: (options: {
|
|
773
|
-
src: string;
|
|
774
|
-
service: string;
|
|
775
|
-
}) => ReturnType;
|
|
764
|
+
tableOfContents: {
|
|
765
|
+
setTableOfContents: () => ReturnType;
|
|
766
|
+
removeTableOfContents: () => ReturnType;
|
|
776
767
|
};
|
|
777
768
|
}
|
|
778
769
|
}
|
|
@@ -780,13 +771,8 @@ declare module '@tiptap/core' {
|
|
|
780
771
|
|
|
781
772
|
declare module '@tiptap/core' {
|
|
782
773
|
interface Commands<ReturnType> {
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
cols: number;
|
|
786
|
-
}) => ReturnType;
|
|
787
|
-
addColBefore: () => ReturnType;
|
|
788
|
-
addColAfter: () => ReturnType;
|
|
789
|
-
deleteCol: () => ReturnType;
|
|
774
|
+
excalidraw: {
|
|
775
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
790
776
|
};
|
|
791
777
|
}
|
|
792
778
|
}
|
|
@@ -794,8 +780,14 @@ declare module '@tiptap/core' {
|
|
|
794
780
|
|
|
795
781
|
declare module '@tiptap/core' {
|
|
796
782
|
interface Commands<ReturnType> {
|
|
797
|
-
|
|
798
|
-
|
|
783
|
+
iframe: {
|
|
784
|
+
/**
|
|
785
|
+
* Add an iframe
|
|
786
|
+
*/
|
|
787
|
+
setIframe: (options: {
|
|
788
|
+
src: string;
|
|
789
|
+
service: string;
|
|
790
|
+
}) => ReturnType;
|
|
799
791
|
};
|
|
800
792
|
}
|
|
801
793
|
}
|
|
@@ -803,11 +795,9 @@ declare module '@tiptap/core' {
|
|
|
803
795
|
|
|
804
796
|
declare module '@tiptap/core' {
|
|
805
797
|
interface Commands<ReturnType> {
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
emoji: string;
|
|
810
|
-
}) => ReturnType;
|
|
798
|
+
lineHeight: {
|
|
799
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
800
|
+
unsetLineHeight: () => ReturnType;
|
|
811
801
|
};
|
|
812
802
|
}
|
|
813
803
|
}
|
|
@@ -833,8 +823,13 @@ declare module '@tiptap/core' {
|
|
|
833
823
|
|
|
834
824
|
declare module '@tiptap/core' {
|
|
835
825
|
interface Commands<ReturnType> {
|
|
836
|
-
|
|
837
|
-
|
|
826
|
+
columns: {
|
|
827
|
+
insertColumns: (attrs?: {
|
|
828
|
+
cols: number;
|
|
829
|
+
}) => ReturnType;
|
|
830
|
+
addColBefore: () => ReturnType;
|
|
831
|
+
addColAfter: () => ReturnType;
|
|
832
|
+
deleteCol: () => ReturnType;
|
|
838
833
|
};
|
|
839
834
|
}
|
|
840
835
|
}
|
|
@@ -842,9 +837,14 @@ declare module '@tiptap/core' {
|
|
|
842
837
|
|
|
843
838
|
declare module '@tiptap/core' {
|
|
844
839
|
interface Commands<ReturnType> {
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
840
|
+
search: {
|
|
841
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
842
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
843
|
+
replace: () => ReturnType;
|
|
844
|
+
replaceAll: () => ReturnType;
|
|
845
|
+
goToPrevSearchResult: () => void;
|
|
846
|
+
goToNextSearchResult: () => void;
|
|
847
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
848
848
|
};
|
|
849
849
|
}
|
|
850
850
|
}
|
|
@@ -852,9 +852,8 @@ declare module '@tiptap/core' {
|
|
|
852
852
|
|
|
853
853
|
declare module '@tiptap/core' {
|
|
854
854
|
interface Commands<ReturnType> {
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
855
|
+
attachment: {
|
|
856
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
858
857
|
};
|
|
859
858
|
}
|
|
860
859
|
}
|
|
@@ -880,15 +879,6 @@ declare module '@tiptap/core' {
|
|
|
880
879
|
}
|
|
881
880
|
|
|
882
881
|
|
|
883
|
-
declare module '@tiptap/core' {
|
|
884
|
-
interface Commands<ReturnType> {
|
|
885
|
-
attachment: {
|
|
886
|
-
setAttachment: (attrs?: unknown) => ReturnType;
|
|
887
|
-
};
|
|
888
|
-
}
|
|
889
|
-
}
|
|
890
|
-
|
|
891
|
-
|
|
892
882
|
declare module '@tiptap/core' {
|
|
893
883
|
interface Commands<ReturnType> {
|
|
894
884
|
twitter: {
|
|
@@ -904,16 +894,11 @@ declare module '@tiptap/core' {
|
|
|
904
894
|
}
|
|
905
895
|
|
|
906
896
|
|
|
907
|
-
declare
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
}
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
declare namespace DropdownMenuShortcut {
|
|
918
|
-
var displayName: string;
|
|
897
|
+
declare module '@tiptap/core' {
|
|
898
|
+
interface Commands<ReturnType> {
|
|
899
|
+
mermaid: {
|
|
900
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
901
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
902
|
+
};
|
|
903
|
+
}
|
|
919
904
|
}
|
package/lib/extension-bundle.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var rn = Object.defineProperty;
|
|
2
2
|
var sn = (e, t, n) => t in e ? rn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var G = (e, t, n) => sn(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { g as cn, h as ln, U as dn, S as un, C as hn, j as Ne, a as he, k as mn, l as fn, R as $e, F as gn, H as _n, T as bn, o as H, p as xn, q as pn, r as wn, N as Le, O as yn, s as vn, t as kn, v as Cn, L as Tn, w as An, m as Se, x as Nn, y as Ln, z as Sn, P as Mn, A as In, G as Hn, J as En, K as zn, M as Rn, Q as On, V as Dn, W as Pn, X as Bn, Y as zt, Z as Rt, _ as Ot, $ as et, I as $n, a0 as Fn, a1 as jn, a2 as Un, a3 as Vn, a4 as qn } from "./tiptap-
|
|
5
|
-
import { P as Q, b as ee, $ as me, a0 as ge, aq as U, at as Kn, T as Dt, A as Wn, ar as Pt, ao as Bt, aw as pt, ax as wt, ay as Gn, a4 as Xn, au as Yn,
|
|
4
|
+
import { g as cn, h as ln, U as dn, S as un, C as hn, j as Ne, a as he, k as mn, l as fn, R as $e, F as gn, H as _n, T as bn, o as H, p as xn, q as pn, r as wn, N as Le, O as yn, s as vn, t as kn, v as Cn, L as Tn, w as An, m as Se, x as Nn, y as Ln, z as Sn, P as Mn, A as In, G as Hn, J as En, K as zn, M as Rn, Q as On, V as Dn, W as Pn, X as Bn, Y as zt, Z as Rt, _ as Ot, $ as et, I as $n, a0 as Fn, a1 as jn, a2 as Un, a3 as Vn, a4 as qn } from "./tiptap-OmOggkHK.js";
|
|
5
|
+
import { P as Q, b as ee, $ as me, a0 as ge, aq as U, at as Kn, T as Dt, A as Wn, ar as Pt, ao as Bt, aw as pt, ax as wt, ay as Gn, a4 as Xn, au as Yn, aD as Zn, aE as Jn } from "./vendor-C9AD9FTJ.js";
|
|
6
6
|
import { jsxs as m, jsx as r, Fragment as _e } from "react/jsx-runtime";
|
|
7
7
|
import * as V from "react";
|
|
8
8
|
import De, { useMemo as z, useState as v, useRef as Y, useCallback as D, Fragment as tt, forwardRef as nt, useImperativeHandle as it, useEffect as R } from "react";
|
|
9
9
|
import { ChevronDown as at, Check as $t, ChevronUp as Qn, Copy as ei, CopyCheck as ti, Clock3 as ni, Laugh as ii, LucideTableProperties as ai, LucideSheet as oi, LucideImage as ri, LucideFile as si, LucideVideo as ci, LucideAudioLines as li } from "lucide-react";
|
|
10
|
-
import { i as ot, T as Fe, a as je, B as P, b as Ue, g as rt, A as y, D as oe, c as re, d as se, e as di, f as B, u as st, h as ui, I as O, j as we, k as Ft, l as Ye, m as hi, n as ct, P as ye, o as ve, p as ke, q as lt, C as mi, H as fi, L as gi, r as _i, M as bi, s as xi, t as yt, v as Me, w as dt, x as ut, y as ht, z as mt, E as pi, F as wi, G as yi, J as Pe, K as Be, N as vi, S as ki, O as Ci, Q as Ti, U as Z, V as Ai, W as Ni, X as Li, Y as Si, Z as Mi, _ as jt } from "./RichTextEditor-
|
|
11
|
-
import { a1 as ms, $ as fs, a2 as gs, a0 as _s, a3 as bs, a4 as xs } from "./RichTextEditor-
|
|
12
|
-
import { M as Ii, D as Ut, u as $, j as Hi, k as Ei, n as vt, h as E, o as Vt, p as zi, I as kt, g as Ri, f as Ct, V as Oi, T as Ie, q as He, r as Ee } from "./index-
|
|
10
|
+
import { i as ot, T as Fe, a as je, B as P, b as Ue, g as rt, A as y, D as oe, c as re, d as se, e as di, f as B, u as st, h as ui, I as O, j as we, k as Ft, l as Ye, m as hi, n as ct, P as ye, o as ve, p as ke, q as lt, C as mi, H as fi, L as gi, r as _i, M as bi, s as xi, t as yt, v as Me, w as dt, x as ut, y as ht, z as mt, E as pi, F as wi, G as yi, J as Pe, K as Be, N as vi, S as ki, O as Ci, Q as Ti, U as Z, V as Ai, W as Ni, X as Li, Y as Si, Z as Mi, _ as jt } from "./RichTextEditor-BkhQvEYE.js";
|
|
11
|
+
import { a1 as ms, $ as fs, a2 as gs, a0 as _s, a3 as bs, a4 as xs } from "./RichTextEditor-BkhQvEYE.js";
|
|
12
|
+
import { M as Ii, D as Ut, u as $, j as Hi, k as Ei, n as vt, h as E, o as Vt, p as zi, I as kt, g as Ri, f as Ct, V as Oi, T as Ie, q as He, r as Ee } from "./index-ss0v5xR4.js";
|
|
13
13
|
import * as ce from "@radix-ui/react-tabs";
|
|
14
14
|
import { bundledThemes as qt, bundledLanguages as Kt, createHighlighter as Di } from "shiki";
|
|
15
15
|
import * as M from "@radix-ui/react-select";
|
|
@@ -116,7 +116,7 @@ const _t = De.forwardRef(
|
|
|
116
116
|
isActive: () => t.isActive("strike") || !1,
|
|
117
117
|
disabled: !t.can().toggleStrike(),
|
|
118
118
|
icon: "Strikethrough",
|
|
119
|
-
shortcutKeys: ["shift", "mod", "
|
|
119
|
+
shortcutKeys: ["shift", "mod", "S"],
|
|
120
120
|
tooltip: n("editor.strike.tooltip")
|
|
121
121
|
}
|
|
122
122
|
})
|
|
@@ -2491,7 +2491,7 @@ function Oa(e) {
|
|
|
2491
2491
|
l.upload ? p = await l.upload(b) : p = URL.createObjectURL(b), e.editor.chain().focus().setImageInline({ src: p, inline: s }).run(), ue.setOpen(!1), c(!1);
|
|
2492
2492
|
}
|
|
2493
2493
|
function d(h) {
|
|
2494
|
-
h.preventDefault(), h.stopPropagation(), e.editor.chain().focus().setImageInline({ src: i, inline: s }).run(), ue.setOpen(!1), c(!1);
|
|
2494
|
+
h.preventDefault(), h.stopPropagation(), e.editor.chain().focus().setImageInline({ src: i, inline: s }).run(), ue.setOpen(!1), c(!1), a("");
|
|
2495
2495
|
}
|
|
2496
2496
|
function f(h) {
|
|
2497
2497
|
var g;
|