reactjs-tiptap-editor-pro 0.2.26 → 0.2.27

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.
@@ -920,9 +920,9 @@ declare module '@tiptap/core' {
920
920
 
921
921
  declare module '@tiptap/core' {
922
922
  interface Commands<ReturnType> {
923
- tableCellBackground: {
924
- setTableCellBackground: (color: string) => ReturnType;
925
- unsetTableCellBackground: () => ReturnType;
923
+ lineHeight: {
924
+ setLineHeight: (lineHeight: string) => ReturnType;
925
+ unsetLineHeight: () => ReturnType;
926
926
  };
927
927
  }
928
928
  }
@@ -930,15 +930,8 @@ declare module '@tiptap/core' {
930
930
 
931
931
  declare module '@tiptap/core' {
932
932
  interface Commands<ReturnType> {
933
- indent: {
934
- /**
935
- * Set the indent attribute
936
- */
937
- indent: () => ReturnType;
938
- /**
939
- * Set the outdent attribute
940
- */
941
- outdent: () => ReturnType;
933
+ katex: {
934
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
942
935
  };
943
936
  }
944
937
  }
@@ -946,19 +939,14 @@ declare module '@tiptap/core' {
946
939
 
947
940
  declare module '@tiptap/core' {
948
941
  interface Commands<ReturnType> {
949
- imageUpload: {
950
- /**
951
- * Add an image
952
- */
953
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
954
- /**
955
- * Update an image
956
- */
957
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
942
+ iframe: {
958
943
  /**
959
- * Set image alignment
944
+ * Add an iframe
960
945
  */
961
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
946
+ setIframe: (options: {
947
+ src: string;
948
+ service: string;
949
+ }) => ReturnType;
962
950
  };
963
951
  }
964
952
  }
@@ -966,9 +954,11 @@ declare module '@tiptap/core' {
966
954
 
967
955
  declare module '@tiptap/core' {
968
956
  interface Commands<ReturnType> {
969
- lineHeight: {
970
- setLineHeight: (lineHeight: string) => ReturnType;
971
- unsetLineHeight: () => ReturnType;
957
+ emoji: {
958
+ setEmoji: (emoji: {
959
+ name: string;
960
+ emoji: string;
961
+ }) => ReturnType;
972
962
  };
973
963
  }
974
964
  }
@@ -976,14 +966,8 @@ declare module '@tiptap/core' {
976
966
 
977
967
  declare module '@tiptap/core' {
978
968
  interface Commands<ReturnType> {
979
- search: {
980
- setSearchTerm: (searchTerm: string) => ReturnType;
981
- setReplaceTerm: (replaceTerm: string) => ReturnType;
982
- replace: () => ReturnType;
983
- replaceAll: () => ReturnType;
984
- goToPrevSearchResult: () => void;
985
- goToNextSearchResult: () => void;
986
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
969
+ painter: {
970
+ setPainter: (marks: Mark[]) => ReturnType;
987
971
  };
988
972
  }
989
973
  }
@@ -991,9 +975,8 @@ declare module '@tiptap/core' {
991
975
 
992
976
  declare module '@tiptap/core' {
993
977
  interface Commands<ReturnType> {
994
- tableOfContents: {
995
- setTableOfContents: () => ReturnType;
996
- removeTableOfContents: () => ReturnType;
978
+ exportWord: {
979
+ exportToWord: () => ReturnType;
997
980
  };
998
981
  }
999
982
  }
@@ -1001,14 +984,19 @@ declare module '@tiptap/core' {
1001
984
 
1002
985
  declare module '@tiptap/core' {
1003
986
  interface Commands<ReturnType> {
1004
- iframe: {
987
+ imageUpload: {
1005
988
  /**
1006
- * Add an iframe
989
+ * Add an image
1007
990
  */
1008
- setIframe: (options: {
1009
- src: string;
1010
- service: string;
1011
- }) => ReturnType;
991
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
992
+ /**
993
+ * Update an image
994
+ */
995
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
996
+ /**
997
+ * Set image alignment
998
+ */
999
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
1012
1000
  };
1013
1001
  }
1014
1002
  }
@@ -1016,13 +1004,14 @@ declare module '@tiptap/core' {
1016
1004
 
1017
1005
  declare module '@tiptap/core' {
1018
1006
  interface Commands<ReturnType> {
1019
- columns: {
1020
- insertColumns: (attrs?: {
1021
- cols: number;
1022
- }) => ReturnType;
1023
- addColBefore: () => ReturnType;
1024
- addColAfter: () => ReturnType;
1025
- deleteCol: () => ReturnType;
1007
+ search: {
1008
+ setSearchTerm: (searchTerm: string) => ReturnType;
1009
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
1010
+ replace: () => ReturnType;
1011
+ replaceAll: () => ReturnType;
1012
+ goToPrevSearchResult: () => void;
1013
+ goToNextSearchResult: () => void;
1014
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
1026
1015
  };
1027
1016
  }
1028
1017
  }
@@ -1030,8 +1019,9 @@ declare module '@tiptap/core' {
1030
1019
 
1031
1020
  declare module '@tiptap/core' {
1032
1021
  interface Commands<ReturnType> {
1033
- exportWord: {
1034
- exportToWord: () => ReturnType;
1022
+ tableCellBackground: {
1023
+ setTableCellBackground: (color: string) => ReturnType;
1024
+ unsetTableCellBackground: () => ReturnType;
1035
1025
  };
1036
1026
  }
1037
1027
  }
@@ -1039,8 +1029,15 @@ declare module '@tiptap/core' {
1039
1029
 
1040
1030
  declare module '@tiptap/core' {
1041
1031
  interface Commands<ReturnType> {
1042
- painter: {
1043
- setPainter: (marks: Mark[]) => ReturnType;
1032
+ indent: {
1033
+ /**
1034
+ * Set the indent attribute
1035
+ */
1036
+ indent: () => ReturnType;
1037
+ /**
1038
+ * Set the outdent attribute
1039
+ */
1040
+ outdent: () => ReturnType;
1044
1041
  };
1045
1042
  }
1046
1043
  }
@@ -1048,11 +1045,13 @@ declare module '@tiptap/core' {
1048
1045
 
1049
1046
  declare module '@tiptap/core' {
1050
1047
  interface Commands<ReturnType> {
1051
- emoji: {
1052
- setEmoji: (emoji: {
1053
- name: string;
1054
- emoji: string;
1048
+ columns: {
1049
+ insertColumns: (attrs?: {
1050
+ cols: number;
1055
1051
  }) => ReturnType;
1052
+ addColBefore: () => ReturnType;
1053
+ addColAfter: () => ReturnType;
1054
+ deleteCol: () => ReturnType;
1056
1055
  };
1057
1056
  }
1058
1057
  }
@@ -1069,8 +1068,9 @@ declare module '@tiptap/core' {
1069
1068
 
1070
1069
  declare module '@tiptap/core' {
1071
1070
  interface Commands<ReturnType> {
1072
- katex: {
1073
- setKatex: (arg?: IKatexAttrs) => ReturnType;
1071
+ tableOfContents: {
1072
+ setTableOfContents: () => ReturnType;
1073
+ removeTableOfContents: () => ReturnType;
1074
1074
  };
1075
1075
  }
1076
1076
  }
@@ -1078,8 +1078,19 @@ declare module '@tiptap/core' {
1078
1078
 
1079
1079
  declare module '@tiptap/core' {
1080
1080
  interface Commands<ReturnType> {
1081
- attachment: {
1082
- setAttachment: (attrs?: unknown) => ReturnType;
1081
+ imageGifUpload: {
1082
+ /**
1083
+ * Add an image gif
1084
+ */
1085
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1086
+ /**
1087
+ * Update an image gif
1088
+ */
1089
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1090
+ /**
1091
+ * Set image alignment
1092
+ */
1093
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1083
1094
  };
1084
1095
  }
1085
1096
  }
@@ -1122,19 +1133,8 @@ declare module '@tiptap/core' {
1122
1133
 
1123
1134
  declare module '@tiptap/core' {
1124
1135
  interface Commands<ReturnType> {
1125
- imageGifUpload: {
1126
- /**
1127
- * Add an image gif
1128
- */
1129
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1130
- /**
1131
- * Update an image gif
1132
- */
1133
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1134
- /**
1135
- * Set image alignment
1136
- */
1137
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1136
+ attachment: {
1137
+ setAttachment: (attrs?: unknown) => ReturnType;
1138
1138
  };
1139
1139
  }
1140
1140
  }
@@ -920,9 +920,9 @@ declare module '@tiptap/core' {
920
920
 
921
921
  declare module '@tiptap/core' {
922
922
  interface Commands<ReturnType> {
923
- tableCellBackground: {
924
- setTableCellBackground: (color: string) => ReturnType;
925
- unsetTableCellBackground: () => ReturnType;
923
+ lineHeight: {
924
+ setLineHeight: (lineHeight: string) => ReturnType;
925
+ unsetLineHeight: () => ReturnType;
926
926
  };
927
927
  }
928
928
  }
@@ -930,15 +930,8 @@ declare module '@tiptap/core' {
930
930
 
931
931
  declare module '@tiptap/core' {
932
932
  interface Commands<ReturnType> {
933
- indent: {
934
- /**
935
- * Set the indent attribute
936
- */
937
- indent: () => ReturnType;
938
- /**
939
- * Set the outdent attribute
940
- */
941
- outdent: () => ReturnType;
933
+ katex: {
934
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
942
935
  };
943
936
  }
944
937
  }
@@ -946,19 +939,14 @@ declare module '@tiptap/core' {
946
939
 
947
940
  declare module '@tiptap/core' {
948
941
  interface Commands<ReturnType> {
949
- imageUpload: {
950
- /**
951
- * Add an image
952
- */
953
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
954
- /**
955
- * Update an image
956
- */
957
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
942
+ iframe: {
958
943
  /**
959
- * Set image alignment
944
+ * Add an iframe
960
945
  */
961
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
946
+ setIframe: (options: {
947
+ src: string;
948
+ service: string;
949
+ }) => ReturnType;
962
950
  };
963
951
  }
964
952
  }
@@ -966,9 +954,11 @@ declare module '@tiptap/core' {
966
954
 
967
955
  declare module '@tiptap/core' {
968
956
  interface Commands<ReturnType> {
969
- lineHeight: {
970
- setLineHeight: (lineHeight: string) => ReturnType;
971
- unsetLineHeight: () => ReturnType;
957
+ emoji: {
958
+ setEmoji: (emoji: {
959
+ name: string;
960
+ emoji: string;
961
+ }) => ReturnType;
972
962
  };
973
963
  }
974
964
  }
@@ -976,14 +966,8 @@ declare module '@tiptap/core' {
976
966
 
977
967
  declare module '@tiptap/core' {
978
968
  interface Commands<ReturnType> {
979
- search: {
980
- setSearchTerm: (searchTerm: string) => ReturnType;
981
- setReplaceTerm: (replaceTerm: string) => ReturnType;
982
- replace: () => ReturnType;
983
- replaceAll: () => ReturnType;
984
- goToPrevSearchResult: () => void;
985
- goToNextSearchResult: () => void;
986
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
969
+ painter: {
970
+ setPainter: (marks: Mark[]) => ReturnType;
987
971
  };
988
972
  }
989
973
  }
@@ -991,9 +975,8 @@ declare module '@tiptap/core' {
991
975
 
992
976
  declare module '@tiptap/core' {
993
977
  interface Commands<ReturnType> {
994
- tableOfContents: {
995
- setTableOfContents: () => ReturnType;
996
- removeTableOfContents: () => ReturnType;
978
+ exportWord: {
979
+ exportToWord: () => ReturnType;
997
980
  };
998
981
  }
999
982
  }
@@ -1001,14 +984,19 @@ declare module '@tiptap/core' {
1001
984
 
1002
985
  declare module '@tiptap/core' {
1003
986
  interface Commands<ReturnType> {
1004
- iframe: {
987
+ imageUpload: {
1005
988
  /**
1006
- * Add an iframe
989
+ * Add an image
1007
990
  */
1008
- setIframe: (options: {
1009
- src: string;
1010
- service: string;
1011
- }) => ReturnType;
991
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
992
+ /**
993
+ * Update an image
994
+ */
995
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
996
+ /**
997
+ * Set image alignment
998
+ */
999
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
1012
1000
  };
1013
1001
  }
1014
1002
  }
@@ -1016,13 +1004,14 @@ declare module '@tiptap/core' {
1016
1004
 
1017
1005
  declare module '@tiptap/core' {
1018
1006
  interface Commands<ReturnType> {
1019
- columns: {
1020
- insertColumns: (attrs?: {
1021
- cols: number;
1022
- }) => ReturnType;
1023
- addColBefore: () => ReturnType;
1024
- addColAfter: () => ReturnType;
1025
- deleteCol: () => ReturnType;
1007
+ search: {
1008
+ setSearchTerm: (searchTerm: string) => ReturnType;
1009
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
1010
+ replace: () => ReturnType;
1011
+ replaceAll: () => ReturnType;
1012
+ goToPrevSearchResult: () => void;
1013
+ goToNextSearchResult: () => void;
1014
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
1026
1015
  };
1027
1016
  }
1028
1017
  }
@@ -1030,8 +1019,9 @@ declare module '@tiptap/core' {
1030
1019
 
1031
1020
  declare module '@tiptap/core' {
1032
1021
  interface Commands<ReturnType> {
1033
- exportWord: {
1034
- exportToWord: () => ReturnType;
1022
+ tableCellBackground: {
1023
+ setTableCellBackground: (color: string) => ReturnType;
1024
+ unsetTableCellBackground: () => ReturnType;
1035
1025
  };
1036
1026
  }
1037
1027
  }
@@ -1039,8 +1029,15 @@ declare module '@tiptap/core' {
1039
1029
 
1040
1030
  declare module '@tiptap/core' {
1041
1031
  interface Commands<ReturnType> {
1042
- painter: {
1043
- setPainter: (marks: Mark[]) => ReturnType;
1032
+ indent: {
1033
+ /**
1034
+ * Set the indent attribute
1035
+ */
1036
+ indent: () => ReturnType;
1037
+ /**
1038
+ * Set the outdent attribute
1039
+ */
1040
+ outdent: () => ReturnType;
1044
1041
  };
1045
1042
  }
1046
1043
  }
@@ -1048,11 +1045,13 @@ declare module '@tiptap/core' {
1048
1045
 
1049
1046
  declare module '@tiptap/core' {
1050
1047
  interface Commands<ReturnType> {
1051
- emoji: {
1052
- setEmoji: (emoji: {
1053
- name: string;
1054
- emoji: string;
1048
+ columns: {
1049
+ insertColumns: (attrs?: {
1050
+ cols: number;
1055
1051
  }) => ReturnType;
1052
+ addColBefore: () => ReturnType;
1053
+ addColAfter: () => ReturnType;
1054
+ deleteCol: () => ReturnType;
1056
1055
  };
1057
1056
  }
1058
1057
  }
@@ -1069,8 +1068,9 @@ declare module '@tiptap/core' {
1069
1068
 
1070
1069
  declare module '@tiptap/core' {
1071
1070
  interface Commands<ReturnType> {
1072
- katex: {
1073
- setKatex: (arg?: IKatexAttrs) => ReturnType;
1071
+ tableOfContents: {
1072
+ setTableOfContents: () => ReturnType;
1073
+ removeTableOfContents: () => ReturnType;
1074
1074
  };
1075
1075
  }
1076
1076
  }
@@ -1078,8 +1078,19 @@ declare module '@tiptap/core' {
1078
1078
 
1079
1079
  declare module '@tiptap/core' {
1080
1080
  interface Commands<ReturnType> {
1081
- attachment: {
1082
- setAttachment: (attrs?: unknown) => ReturnType;
1081
+ imageGifUpload: {
1082
+ /**
1083
+ * Add an image gif
1084
+ */
1085
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1086
+ /**
1087
+ * Update an image gif
1088
+ */
1089
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1090
+ /**
1091
+ * Set image alignment
1092
+ */
1093
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1083
1094
  };
1084
1095
  }
1085
1096
  }
@@ -1122,19 +1133,8 @@ declare module '@tiptap/core' {
1122
1133
 
1123
1134
  declare module '@tiptap/core' {
1124
1135
  interface Commands<ReturnType> {
1125
- imageGifUpload: {
1126
- /**
1127
- * Add an image gif
1128
- */
1129
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1130
- /**
1131
- * Update an image gif
1132
- */
1133
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1134
- /**
1135
- * Set image alignment
1136
- */
1137
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1136
+ attachment: {
1137
+ setAttachment: (attrs?: unknown) => ReturnType;
1138
1138
  };
1139
1139
  }
1140
1140
  }