reactjs-tiptap-editor 0.2.17 → 0.2.18

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.
@@ -918,16 +918,6 @@ declare module '@tiptap/core' {
918
918
  }
919
919
 
920
920
 
921
- declare module '@tiptap/core' {
922
- interface Commands<ReturnType> {
923
- lineHeight: {
924
- setLineHeight: (lineHeight: string) => ReturnType;
925
- unsetLineHeight: () => ReturnType;
926
- };
927
- }
928
- }
929
-
930
-
931
921
  declare module '@tiptap/core' {
932
922
  interface Commands<ReturnType> {
933
923
  indent: {
@@ -946,19 +936,9 @@ declare module '@tiptap/core' {
946
936
 
947
937
  declare module '@tiptap/core' {
948
938
  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;
958
- /**
959
- * Set image alignment
960
- */
961
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
939
+ tableCellBackground: {
940
+ setTableCellBackground: (color: string) => ReturnType;
941
+ unsetTableCellBackground: () => ReturnType;
962
942
  };
963
943
  }
964
944
  }
@@ -975,13 +955,14 @@ declare module '@tiptap/core' {
975
955
 
976
956
  declare module '@tiptap/core' {
977
957
  interface Commands<ReturnType> {
978
- columns: {
979
- insertColumns: (attrs?: {
980
- cols: number;
958
+ iframe: {
959
+ /**
960
+ * Add an iframe
961
+ */
962
+ setIframe: (options: {
963
+ src: string;
964
+ service: string;
981
965
  }) => ReturnType;
982
- addColBefore: () => ReturnType;
983
- addColAfter: () => ReturnType;
984
- deleteCol: () => ReturnType;
985
966
  };
986
967
  }
987
968
  }
@@ -989,11 +970,8 @@ declare module '@tiptap/core' {
989
970
 
990
971
  declare module '@tiptap/core' {
991
972
  interface Commands<ReturnType> {
992
- emoji: {
993
- setEmoji: (emoji: {
994
- name: string;
995
- emoji: string;
996
- }) => ReturnType;
973
+ katex: {
974
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
997
975
  };
998
976
  }
999
977
  }
@@ -1001,9 +979,9 @@ declare module '@tiptap/core' {
1001
979
 
1002
980
  declare module '@tiptap/core' {
1003
981
  interface Commands<ReturnType> {
1004
- tableCellBackground: {
1005
- setTableCellBackground: (color: string) => ReturnType;
1006
- unsetTableCellBackground: () => ReturnType;
982
+ lineHeight: {
983
+ setLineHeight: (lineHeight: string) => ReturnType;
984
+ unsetLineHeight: () => ReturnType;
1007
985
  };
1008
986
  }
1009
987
  }
@@ -1011,8 +989,14 @@ declare module '@tiptap/core' {
1011
989
 
1012
990
  declare module '@tiptap/core' {
1013
991
  interface Commands<ReturnType> {
1014
- katex: {
1015
- setKatex: (arg?: IKatexAttrs) => ReturnType;
992
+ search: {
993
+ setSearchTerm: (searchTerm: string) => ReturnType;
994
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
995
+ replace: () => ReturnType;
996
+ replaceAll: () => ReturnType;
997
+ goToPrevSearchResult: () => void;
998
+ goToNextSearchResult: () => void;
999
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
1016
1000
  };
1017
1001
  }
1018
1002
  }
@@ -1020,14 +1004,13 @@ declare module '@tiptap/core' {
1020
1004
 
1021
1005
  declare module '@tiptap/core' {
1022
1006
  interface Commands<ReturnType> {
1023
- iframe: {
1024
- /**
1025
- * Add an iframe
1026
- */
1027
- setIframe: (options: {
1028
- src: string;
1029
- service: string;
1007
+ columns: {
1008
+ insertColumns: (attrs?: {
1009
+ cols: number;
1030
1010
  }) => ReturnType;
1011
+ addColBefore: () => ReturnType;
1012
+ addColAfter: () => ReturnType;
1013
+ deleteCol: () => ReturnType;
1031
1014
  };
1032
1015
  }
1033
1016
  }
@@ -1035,14 +1018,31 @@ declare module '@tiptap/core' {
1035
1018
 
1036
1019
  declare module '@tiptap/core' {
1037
1020
  interface Commands<ReturnType> {
1038
- search: {
1039
- setSearchTerm: (searchTerm: string) => ReturnType;
1040
- setReplaceTerm: (replaceTerm: string) => ReturnType;
1041
- replace: () => ReturnType;
1042
- replaceAll: () => ReturnType;
1043
- goToPrevSearchResult: () => void;
1044
- goToNextSearchResult: () => void;
1045
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
1021
+ emoji: {
1022
+ setEmoji: (emoji: {
1023
+ name: string;
1024
+ emoji: string;
1025
+ }) => ReturnType;
1026
+ };
1027
+ }
1028
+ }
1029
+
1030
+
1031
+ declare module '@tiptap/core' {
1032
+ interface Commands<ReturnType> {
1033
+ imageUpload: {
1034
+ /**
1035
+ * Add an image
1036
+ */
1037
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1038
+ /**
1039
+ * Update an image
1040
+ */
1041
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1042
+ /**
1043
+ * Set image alignment
1044
+ */
1045
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
1046
1046
  };
1047
1047
  }
1048
1048
  }
@@ -1078,8 +1078,29 @@ 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
+ drawer: {
1082
+ setDrawer: (options: any, replace?: any) => ReturnType;
1083
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1084
+ };
1085
+ }
1086
+ }
1087
+
1088
+
1089
+ declare module '@tiptap/core' {
1090
+ interface Commands<ReturnType> {
1091
+ imageGifUpload: {
1092
+ /**
1093
+ * Add an image gif
1094
+ */
1095
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1096
+ /**
1097
+ * Update an image gif
1098
+ */
1099
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1100
+ /**
1101
+ * Set image alignment
1102
+ */
1103
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1083
1104
  };
1084
1105
  }
1085
1106
  }
@@ -1097,9 +1118,8 @@ declare module '@tiptap/core' {
1097
1118
 
1098
1119
  declare module '@tiptap/core' {
1099
1120
  interface Commands<ReturnType> {
1100
- drawer: {
1101
- setDrawer: (options: any, replace?: any) => ReturnType;
1102
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1121
+ attachment: {
1122
+ setAttachment: (attrs?: unknown) => ReturnType;
1103
1123
  };
1104
1124
  }
1105
1125
  }
@@ -1118,23 +1138,3 @@ declare module '@tiptap/core' {
1118
1138
  };
1119
1139
  }
1120
1140
  }
1121
-
1122
-
1123
- declare module '@tiptap/core' {
1124
- 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;
1138
- };
1139
- }
1140
- }
@@ -918,16 +918,6 @@ declare module '@tiptap/core' {
918
918
  }
919
919
 
920
920
 
921
- declare module '@tiptap/core' {
922
- interface Commands<ReturnType> {
923
- lineHeight: {
924
- setLineHeight: (lineHeight: string) => ReturnType;
925
- unsetLineHeight: () => ReturnType;
926
- };
927
- }
928
- }
929
-
930
-
931
921
  declare module '@tiptap/core' {
932
922
  interface Commands<ReturnType> {
933
923
  indent: {
@@ -946,19 +936,9 @@ declare module '@tiptap/core' {
946
936
 
947
937
  declare module '@tiptap/core' {
948
938
  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;
958
- /**
959
- * Set image alignment
960
- */
961
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
939
+ tableCellBackground: {
940
+ setTableCellBackground: (color: string) => ReturnType;
941
+ unsetTableCellBackground: () => ReturnType;
962
942
  };
963
943
  }
964
944
  }
@@ -975,13 +955,14 @@ declare module '@tiptap/core' {
975
955
 
976
956
  declare module '@tiptap/core' {
977
957
  interface Commands<ReturnType> {
978
- columns: {
979
- insertColumns: (attrs?: {
980
- cols: number;
958
+ iframe: {
959
+ /**
960
+ * Add an iframe
961
+ */
962
+ setIframe: (options: {
963
+ src: string;
964
+ service: string;
981
965
  }) => ReturnType;
982
- addColBefore: () => ReturnType;
983
- addColAfter: () => ReturnType;
984
- deleteCol: () => ReturnType;
985
966
  };
986
967
  }
987
968
  }
@@ -989,11 +970,8 @@ declare module '@tiptap/core' {
989
970
 
990
971
  declare module '@tiptap/core' {
991
972
  interface Commands<ReturnType> {
992
- emoji: {
993
- setEmoji: (emoji: {
994
- name: string;
995
- emoji: string;
996
- }) => ReturnType;
973
+ katex: {
974
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
997
975
  };
998
976
  }
999
977
  }
@@ -1001,9 +979,9 @@ declare module '@tiptap/core' {
1001
979
 
1002
980
  declare module '@tiptap/core' {
1003
981
  interface Commands<ReturnType> {
1004
- tableCellBackground: {
1005
- setTableCellBackground: (color: string) => ReturnType;
1006
- unsetTableCellBackground: () => ReturnType;
982
+ lineHeight: {
983
+ setLineHeight: (lineHeight: string) => ReturnType;
984
+ unsetLineHeight: () => ReturnType;
1007
985
  };
1008
986
  }
1009
987
  }
@@ -1011,8 +989,14 @@ declare module '@tiptap/core' {
1011
989
 
1012
990
  declare module '@tiptap/core' {
1013
991
  interface Commands<ReturnType> {
1014
- katex: {
1015
- setKatex: (arg?: IKatexAttrs) => ReturnType;
992
+ search: {
993
+ setSearchTerm: (searchTerm: string) => ReturnType;
994
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
995
+ replace: () => ReturnType;
996
+ replaceAll: () => ReturnType;
997
+ goToPrevSearchResult: () => void;
998
+ goToNextSearchResult: () => void;
999
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
1016
1000
  };
1017
1001
  }
1018
1002
  }
@@ -1020,14 +1004,13 @@ declare module '@tiptap/core' {
1020
1004
 
1021
1005
  declare module '@tiptap/core' {
1022
1006
  interface Commands<ReturnType> {
1023
- iframe: {
1024
- /**
1025
- * Add an iframe
1026
- */
1027
- setIframe: (options: {
1028
- src: string;
1029
- service: string;
1007
+ columns: {
1008
+ insertColumns: (attrs?: {
1009
+ cols: number;
1030
1010
  }) => ReturnType;
1011
+ addColBefore: () => ReturnType;
1012
+ addColAfter: () => ReturnType;
1013
+ deleteCol: () => ReturnType;
1031
1014
  };
1032
1015
  }
1033
1016
  }
@@ -1035,14 +1018,31 @@ declare module '@tiptap/core' {
1035
1018
 
1036
1019
  declare module '@tiptap/core' {
1037
1020
  interface Commands<ReturnType> {
1038
- search: {
1039
- setSearchTerm: (searchTerm: string) => ReturnType;
1040
- setReplaceTerm: (replaceTerm: string) => ReturnType;
1041
- replace: () => ReturnType;
1042
- replaceAll: () => ReturnType;
1043
- goToPrevSearchResult: () => void;
1044
- goToNextSearchResult: () => void;
1045
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
1021
+ emoji: {
1022
+ setEmoji: (emoji: {
1023
+ name: string;
1024
+ emoji: string;
1025
+ }) => ReturnType;
1026
+ };
1027
+ }
1028
+ }
1029
+
1030
+
1031
+ declare module '@tiptap/core' {
1032
+ interface Commands<ReturnType> {
1033
+ imageUpload: {
1034
+ /**
1035
+ * Add an image
1036
+ */
1037
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1038
+ /**
1039
+ * Update an image
1040
+ */
1041
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1042
+ /**
1043
+ * Set image alignment
1044
+ */
1045
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
1046
1046
  };
1047
1047
  }
1048
1048
  }
@@ -1078,8 +1078,29 @@ 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
+ drawer: {
1082
+ setDrawer: (options: any, replace?: any) => ReturnType;
1083
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1084
+ };
1085
+ }
1086
+ }
1087
+
1088
+
1089
+ declare module '@tiptap/core' {
1090
+ interface Commands<ReturnType> {
1091
+ imageGifUpload: {
1092
+ /**
1093
+ * Add an image gif
1094
+ */
1095
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1096
+ /**
1097
+ * Update an image gif
1098
+ */
1099
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1100
+ /**
1101
+ * Set image alignment
1102
+ */
1103
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1083
1104
  };
1084
1105
  }
1085
1106
  }
@@ -1097,9 +1118,8 @@ declare module '@tiptap/core' {
1097
1118
 
1098
1119
  declare module '@tiptap/core' {
1099
1120
  interface Commands<ReturnType> {
1100
- drawer: {
1101
- setDrawer: (options: any, replace?: any) => ReturnType;
1102
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1121
+ attachment: {
1122
+ setAttachment: (attrs?: unknown) => ReturnType;
1103
1123
  };
1104
1124
  }
1105
1125
  }
@@ -1118,23 +1138,3 @@ declare module '@tiptap/core' {
1118
1138
  };
1119
1139
  }
1120
1140
  }
1121
-
1122
-
1123
- declare module '@tiptap/core' {
1124
- 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;
1138
- };
1139
- }
1140
- }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "reactjs-tiptap-editor",
3
3
  "type": "module",
4
- "version": "0.2.17",
4
+ "version": "0.2.18",
5
5
  "packageManager": "pnpm@8.15.9",
6
6
  "description": "A modern WYSIWYG rich text editor based on tiptap and shadcn ui for React",
7
7
  "license": "MIT",