reactjs-tiptap-editor-pro 0.2.24 → 0.2.26
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-DlFgd8H2.cjs +141 -0
- package/lib/{RichTextEditor-Bxdp3pW3.js → RichTextEditor-iBDjgtlT.js} +3328 -2840
- package/lib/extension-bundle.cjs +3 -3
- package/lib/extension-bundle.d.cts +74 -74
- package/lib/extension-bundle.d.ts +74 -74
- package/lib/extension-bundle.js +713 -889
- package/lib/{index-D-rys8BA.cjs → index-DV-nXpU1.cjs} +1 -1
- package/lib/{index-PJxla8pp.js → index-M6H3FoBi.js} +5 -5
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +74 -74
- package/lib/index.d.ts +74 -74
- package/lib/index.js +2 -2
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.d.cts +74 -74
- package/lib/locale-bundle.d.ts +74 -74
- package/lib/locale-bundle.js +1 -1
- package/lib/style.css +1 -0
- package/lib/{tiptap-Kst3Ray3.js → tiptap-DkWHMWDt.js} +57 -93
- package/lib/{tiptap-Bzsbnr3f.cjs → tiptap-gBG-1T-V.cjs} +11 -11
- package/lib/{vendor-LvbrNFNL.cjs → vendor-BJ0Yf78E.cjs} +4 -4
- package/lib/{vendor-tDefVoN_.js → vendor-Cpa6z-M0.js} +8 -7
- package/package.json +1 -1
- package/lib/RichTextEditor-zOI60NFQ.cjs +0 -141
- package/lib/reactjs-tiptap-editor-pro.css +0 -1
|
@@ -725,6 +725,32 @@ declare module '@tiptap/core' {
|
|
|
725
725
|
}
|
|
726
726
|
|
|
727
727
|
|
|
728
|
+
declare module '@tiptap/core' {
|
|
729
|
+
interface Commands<ReturnType> {
|
|
730
|
+
tableCellBackground: {
|
|
731
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
732
|
+
unsetTableCellBackground: () => 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
|
+
|
|
728
754
|
declare module '@tiptap/core' {
|
|
729
755
|
interface Commands<ReturnType> {
|
|
730
756
|
imageUpload: {
|
|
@@ -747,14 +773,9 @@ declare module '@tiptap/core' {
|
|
|
747
773
|
|
|
748
774
|
declare module '@tiptap/core' {
|
|
749
775
|
interface Commands<ReturnType> {
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
*/
|
|
754
|
-
setIframe: (options: {
|
|
755
|
-
src: string;
|
|
756
|
-
service: string;
|
|
757
|
-
}) => ReturnType;
|
|
776
|
+
lineHeight: {
|
|
777
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
778
|
+
unsetLineHeight: () => ReturnType;
|
|
758
779
|
};
|
|
759
780
|
}
|
|
760
781
|
}
|
|
@@ -777,8 +798,9 @@ declare module '@tiptap/core' {
|
|
|
777
798
|
|
|
778
799
|
declare module '@tiptap/core' {
|
|
779
800
|
interface Commands<ReturnType> {
|
|
780
|
-
|
|
781
|
-
|
|
801
|
+
tableOfContents: {
|
|
802
|
+
setTableOfContents: () => ReturnType;
|
|
803
|
+
removeTableOfContents: () => ReturnType;
|
|
782
804
|
};
|
|
783
805
|
}
|
|
784
806
|
}
|
|
@@ -786,9 +808,14 @@ declare module '@tiptap/core' {
|
|
|
786
808
|
|
|
787
809
|
declare module '@tiptap/core' {
|
|
788
810
|
interface Commands<ReturnType> {
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
811
|
+
iframe: {
|
|
812
|
+
/**
|
|
813
|
+
* Add an iframe
|
|
814
|
+
*/
|
|
815
|
+
setIframe: (options: {
|
|
816
|
+
src: string;
|
|
817
|
+
service: string;
|
|
818
|
+
}) => ReturnType;
|
|
792
819
|
};
|
|
793
820
|
}
|
|
794
821
|
}
|
|
@@ -796,15 +823,31 @@ declare module '@tiptap/core' {
|
|
|
796
823
|
|
|
797
824
|
declare module '@tiptap/core' {
|
|
798
825
|
interface Commands<ReturnType> {
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
826
|
+
columns: {
|
|
827
|
+
insertColumns: (attrs?: {
|
|
828
|
+
cols: number;
|
|
829
|
+
}) => ReturnType;
|
|
830
|
+
addColBefore: () => ReturnType;
|
|
831
|
+
addColAfter: () => ReturnType;
|
|
832
|
+
deleteCol: () => ReturnType;
|
|
833
|
+
};
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
|
|
838
|
+
declare module '@tiptap/core' {
|
|
839
|
+
interface Commands<ReturnType> {
|
|
840
|
+
exportWord: {
|
|
841
|
+
exportToWord: () => ReturnType;
|
|
842
|
+
};
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
|
|
847
|
+
declare module '@tiptap/core' {
|
|
848
|
+
interface Commands<ReturnType> {
|
|
849
|
+
painter: {
|
|
850
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
808
851
|
};
|
|
809
852
|
}
|
|
810
853
|
}
|
|
@@ -824,13 +867,8 @@ declare module '@tiptap/core' {
|
|
|
824
867
|
|
|
825
868
|
declare module '@tiptap/core' {
|
|
826
869
|
interface Commands<ReturnType> {
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
cols: number;
|
|
830
|
-
}) => ReturnType;
|
|
831
|
-
addColBefore: () => ReturnType;
|
|
832
|
-
addColAfter: () => ReturnType;
|
|
833
|
-
deleteCol: () => ReturnType;
|
|
870
|
+
excalidraw: {
|
|
871
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
834
872
|
};
|
|
835
873
|
}
|
|
836
874
|
}
|
|
@@ -838,9 +876,8 @@ declare module '@tiptap/core' {
|
|
|
838
876
|
|
|
839
877
|
declare module '@tiptap/core' {
|
|
840
878
|
interface Commands<ReturnType> {
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
unsetLineHeight: () => ReturnType;
|
|
879
|
+
katex: {
|
|
880
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
844
881
|
};
|
|
845
882
|
}
|
|
846
883
|
}
|
|
@@ -848,8 +885,8 @@ declare module '@tiptap/core' {
|
|
|
848
885
|
|
|
849
886
|
declare module '@tiptap/core' {
|
|
850
887
|
interface Commands<ReturnType> {
|
|
851
|
-
|
|
852
|
-
|
|
888
|
+
attachment: {
|
|
889
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
853
890
|
};
|
|
854
891
|
}
|
|
855
892
|
}
|
|
@@ -872,8 +909,9 @@ declare module '@tiptap/core' {
|
|
|
872
909
|
|
|
873
910
|
declare module '@tiptap/core' {
|
|
874
911
|
interface Commands<ReturnType> {
|
|
875
|
-
|
|
876
|
-
|
|
912
|
+
drawer: {
|
|
913
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
914
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
877
915
|
};
|
|
878
916
|
}
|
|
879
917
|
}
|
|
@@ -907,41 +945,3 @@ declare module '@tiptap/core' {
|
|
|
907
945
|
};
|
|
908
946
|
}
|
|
909
947
|
}
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
declare module '@tiptap/core' {
|
|
913
|
-
interface Commands<ReturnType> {
|
|
914
|
-
attachment: {
|
|
915
|
-
setAttachment: (attrs?: unknown) => ReturnType;
|
|
916
|
-
};
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
declare module '@tiptap/core' {
|
|
922
|
-
interface Commands<ReturnType> {
|
|
923
|
-
tableOfContents: {
|
|
924
|
-
setTableOfContents: () => ReturnType;
|
|
925
|
-
removeTableOfContents: () => ReturnType;
|
|
926
|
-
};
|
|
927
|
-
}
|
|
928
|
-
}
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
declare module '@tiptap/core' {
|
|
932
|
-
interface Commands<ReturnType> {
|
|
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
|
-
};
|
|
946
|
-
}
|
|
947
|
-
}
|
|
@@ -725,6 +725,32 @@ declare module '@tiptap/core' {
|
|
|
725
725
|
}
|
|
726
726
|
|
|
727
727
|
|
|
728
|
+
declare module '@tiptap/core' {
|
|
729
|
+
interface Commands<ReturnType> {
|
|
730
|
+
tableCellBackground: {
|
|
731
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
732
|
+
unsetTableCellBackground: () => 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
|
+
|
|
728
754
|
declare module '@tiptap/core' {
|
|
729
755
|
interface Commands<ReturnType> {
|
|
730
756
|
imageUpload: {
|
|
@@ -747,14 +773,9 @@ declare module '@tiptap/core' {
|
|
|
747
773
|
|
|
748
774
|
declare module '@tiptap/core' {
|
|
749
775
|
interface Commands<ReturnType> {
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
*/
|
|
754
|
-
setIframe: (options: {
|
|
755
|
-
src: string;
|
|
756
|
-
service: string;
|
|
757
|
-
}) => ReturnType;
|
|
776
|
+
lineHeight: {
|
|
777
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
778
|
+
unsetLineHeight: () => ReturnType;
|
|
758
779
|
};
|
|
759
780
|
}
|
|
760
781
|
}
|
|
@@ -777,8 +798,9 @@ declare module '@tiptap/core' {
|
|
|
777
798
|
|
|
778
799
|
declare module '@tiptap/core' {
|
|
779
800
|
interface Commands<ReturnType> {
|
|
780
|
-
|
|
781
|
-
|
|
801
|
+
tableOfContents: {
|
|
802
|
+
setTableOfContents: () => ReturnType;
|
|
803
|
+
removeTableOfContents: () => ReturnType;
|
|
782
804
|
};
|
|
783
805
|
}
|
|
784
806
|
}
|
|
@@ -786,9 +808,14 @@ declare module '@tiptap/core' {
|
|
|
786
808
|
|
|
787
809
|
declare module '@tiptap/core' {
|
|
788
810
|
interface Commands<ReturnType> {
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
811
|
+
iframe: {
|
|
812
|
+
/**
|
|
813
|
+
* Add an iframe
|
|
814
|
+
*/
|
|
815
|
+
setIframe: (options: {
|
|
816
|
+
src: string;
|
|
817
|
+
service: string;
|
|
818
|
+
}) => ReturnType;
|
|
792
819
|
};
|
|
793
820
|
}
|
|
794
821
|
}
|
|
@@ -796,15 +823,31 @@ declare module '@tiptap/core' {
|
|
|
796
823
|
|
|
797
824
|
declare module '@tiptap/core' {
|
|
798
825
|
interface Commands<ReturnType> {
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
826
|
+
columns: {
|
|
827
|
+
insertColumns: (attrs?: {
|
|
828
|
+
cols: number;
|
|
829
|
+
}) => ReturnType;
|
|
830
|
+
addColBefore: () => ReturnType;
|
|
831
|
+
addColAfter: () => ReturnType;
|
|
832
|
+
deleteCol: () => ReturnType;
|
|
833
|
+
};
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
|
|
838
|
+
declare module '@tiptap/core' {
|
|
839
|
+
interface Commands<ReturnType> {
|
|
840
|
+
exportWord: {
|
|
841
|
+
exportToWord: () => ReturnType;
|
|
842
|
+
};
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
|
|
847
|
+
declare module '@tiptap/core' {
|
|
848
|
+
interface Commands<ReturnType> {
|
|
849
|
+
painter: {
|
|
850
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
808
851
|
};
|
|
809
852
|
}
|
|
810
853
|
}
|
|
@@ -824,13 +867,8 @@ declare module '@tiptap/core' {
|
|
|
824
867
|
|
|
825
868
|
declare module '@tiptap/core' {
|
|
826
869
|
interface Commands<ReturnType> {
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
cols: number;
|
|
830
|
-
}) => ReturnType;
|
|
831
|
-
addColBefore: () => ReturnType;
|
|
832
|
-
addColAfter: () => ReturnType;
|
|
833
|
-
deleteCol: () => ReturnType;
|
|
870
|
+
excalidraw: {
|
|
871
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
834
872
|
};
|
|
835
873
|
}
|
|
836
874
|
}
|
|
@@ -838,9 +876,8 @@ declare module '@tiptap/core' {
|
|
|
838
876
|
|
|
839
877
|
declare module '@tiptap/core' {
|
|
840
878
|
interface Commands<ReturnType> {
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
unsetLineHeight: () => ReturnType;
|
|
879
|
+
katex: {
|
|
880
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
844
881
|
};
|
|
845
882
|
}
|
|
846
883
|
}
|
|
@@ -848,8 +885,8 @@ declare module '@tiptap/core' {
|
|
|
848
885
|
|
|
849
886
|
declare module '@tiptap/core' {
|
|
850
887
|
interface Commands<ReturnType> {
|
|
851
|
-
|
|
852
|
-
|
|
888
|
+
attachment: {
|
|
889
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
853
890
|
};
|
|
854
891
|
}
|
|
855
892
|
}
|
|
@@ -872,8 +909,9 @@ declare module '@tiptap/core' {
|
|
|
872
909
|
|
|
873
910
|
declare module '@tiptap/core' {
|
|
874
911
|
interface Commands<ReturnType> {
|
|
875
|
-
|
|
876
|
-
|
|
912
|
+
drawer: {
|
|
913
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
914
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
877
915
|
};
|
|
878
916
|
}
|
|
879
917
|
}
|
|
@@ -907,41 +945,3 @@ declare module '@tiptap/core' {
|
|
|
907
945
|
};
|
|
908
946
|
}
|
|
909
947
|
}
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
declare module '@tiptap/core' {
|
|
913
|
-
interface Commands<ReturnType> {
|
|
914
|
-
attachment: {
|
|
915
|
-
setAttachment: (attrs?: unknown) => ReturnType;
|
|
916
|
-
};
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
declare module '@tiptap/core' {
|
|
922
|
-
interface Commands<ReturnType> {
|
|
923
|
-
tableOfContents: {
|
|
924
|
-
setTableOfContents: () => ReturnType;
|
|
925
|
-
removeTableOfContents: () => ReturnType;
|
|
926
|
-
};
|
|
927
|
-
}
|
|
928
|
-
}
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
declare module '@tiptap/core' {
|
|
932
|
-
interface Commands<ReturnType> {
|
|
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
|
-
};
|
|
946
|
-
}
|
|
947
|
-
}
|