reactjs-tiptap-editor-pro 0.2.35 → 0.2.37

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.
@@ -902,17 +902,19 @@ declare module '@tiptap/core' {
902
902
 
903
903
  declare module '@tiptap/core' {
904
904
  interface Commands<ReturnType> {
905
- fontSize: {
905
+ imageUpload: {
906
906
  /**
907
- * Set the text font size. ex: "12px", "2em", or "small". Must be a valid
908
- * CSS font-size
909
- * (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
907
+ * Add an image
910
908
  */
911
- setFontSize: (fontSize: string) => ReturnType;
909
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
912
910
  /**
913
- * Unset the font size
911
+ * Update an image
914
912
  */
915
- unsetFontSize: () => ReturnType;
913
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
914
+ /**
915
+ * Set image alignment
916
+ */
917
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
916
918
  };
917
919
  }
918
920
  }
@@ -920,9 +922,14 @@ declare module '@tiptap/core' {
920
922
 
921
923
  declare module '@tiptap/core' {
922
924
  interface Commands<ReturnType> {
923
- lineHeight: {
924
- setLineHeight: (lineHeight: string) => ReturnType;
925
- unsetLineHeight: () => ReturnType;
925
+ iframe: {
926
+ /**
927
+ * Add an iframe
928
+ */
929
+ setIframe: (options: {
930
+ src: string;
931
+ service: string;
932
+ }) => ReturnType;
926
933
  };
927
934
  }
928
935
  }
@@ -930,19 +937,15 @@ declare module '@tiptap/core' {
930
937
 
931
938
  declare module '@tiptap/core' {
932
939
  interface Commands<ReturnType> {
933
- imageUpload: {
934
- /**
935
- * Add an image
936
- */
937
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
940
+ indent: {
938
941
  /**
939
- * Update an image
942
+ * Set the indent attribute
940
943
  */
941
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
944
+ indent: () => ReturnType;
942
945
  /**
943
- * Set image alignment
946
+ * Set the outdent attribute
944
947
  */
945
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
948
+ outdent: () => ReturnType;
946
949
  };
947
950
  }
948
951
  }
@@ -950,13 +953,9 @@ declare module '@tiptap/core' {
950
953
 
951
954
  declare module '@tiptap/core' {
952
955
  interface Commands<ReturnType> {
953
- columns: {
954
- insertColumns: (attrs?: {
955
- cols: number;
956
- }) => ReturnType;
957
- addColBefore: () => ReturnType;
958
- addColAfter: () => ReturnType;
959
- deleteCol: () => ReturnType;
956
+ lineHeight: {
957
+ setLineHeight: (lineHeight: string) => ReturnType;
958
+ unsetLineHeight: () => ReturnType;
960
959
  };
961
960
  }
962
961
  }
@@ -964,8 +963,11 @@ declare module '@tiptap/core' {
964
963
 
965
964
  declare module '@tiptap/core' {
966
965
  interface Commands<ReturnType> {
967
- painter: {
968
- setPainter: (marks: Mark[]) => ReturnType;
966
+ emoji: {
967
+ setEmoji: (emoji: {
968
+ name: string;
969
+ emoji: string;
970
+ }) => ReturnType;
969
971
  };
970
972
  }
971
973
  }
@@ -973,15 +975,17 @@ declare module '@tiptap/core' {
973
975
 
974
976
  declare module '@tiptap/core' {
975
977
  interface Commands<ReturnType> {
976
- indent: {
978
+ fontSize: {
977
979
  /**
978
- * Set the indent attribute
980
+ * Set the text font size. ex: "12px", "2em", or "small". Must be a valid
981
+ * CSS font-size
982
+ * (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
979
983
  */
980
- indent: () => ReturnType;
984
+ setFontSize: (fontSize: string) => ReturnType;
981
985
  /**
982
- * Set the outdent attribute
986
+ * Unset the font size
983
987
  */
984
- outdent: () => ReturnType;
988
+ unsetFontSize: () => ReturnType;
985
989
  };
986
990
  }
987
991
  }
@@ -999,14 +1003,9 @@ declare module '@tiptap/core' {
999
1003
 
1000
1004
  declare module '@tiptap/core' {
1001
1005
  interface Commands<ReturnType> {
1002
- search: {
1003
- setSearchTerm: (searchTerm: string) => ReturnType;
1004
- setReplaceTerm: (replaceTerm: string) => ReturnType;
1005
- replace: () => ReturnType;
1006
- replaceAll: () => ReturnType;
1007
- goToPrevSearchResult: () => void;
1008
- goToNextSearchResult: () => void;
1009
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
1006
+ tableOfContents: {
1007
+ setTableOfContents: () => ReturnType;
1008
+ removeTableOfContents: () => ReturnType;
1010
1009
  };
1011
1010
  }
1012
1011
  }
@@ -1014,9 +1013,8 @@ declare module '@tiptap/core' {
1014
1013
 
1015
1014
  declare module '@tiptap/core' {
1016
1015
  interface Commands<ReturnType> {
1017
- tableOfContents: {
1018
- setTableOfContents: () => ReturnType;
1019
- removeTableOfContents: () => ReturnType;
1016
+ exportWord: {
1017
+ exportToWord: () => ReturnType;
1020
1018
  };
1021
1019
  }
1022
1020
  }
@@ -1024,8 +1022,8 @@ declare module '@tiptap/core' {
1024
1022
 
1025
1023
  declare module '@tiptap/core' {
1026
1024
  interface Commands<ReturnType> {
1027
- exportWord: {
1028
- exportToWord: () => ReturnType;
1025
+ painter: {
1026
+ setPainter: (marks: Mark[]) => ReturnType;
1029
1027
  };
1030
1028
  }
1031
1029
  }
@@ -1033,14 +1031,14 @@ declare module '@tiptap/core' {
1033
1031
 
1034
1032
  declare module '@tiptap/core' {
1035
1033
  interface Commands<ReturnType> {
1036
- iframe: {
1037
- /**
1038
- * Add an iframe
1039
- */
1040
- setIframe: (options: {
1041
- src: string;
1042
- service: string;
1043
- }) => ReturnType;
1034
+ search: {
1035
+ setSearchTerm: (searchTerm: string) => ReturnType;
1036
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
1037
+ replace: () => ReturnType;
1038
+ replaceAll: () => ReturnType;
1039
+ goToPrevSearchResult: () => void;
1040
+ goToNextSearchResult: () => void;
1041
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
1044
1042
  };
1045
1043
  }
1046
1044
  }
@@ -1048,19 +1046,13 @@ declare module '@tiptap/core' {
1048
1046
 
1049
1047
  declare module '@tiptap/core' {
1050
1048
  interface Commands<ReturnType> {
1051
- imageGifUpload: {
1052
- /**
1053
- * Add an image gif
1054
- */
1055
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1056
- /**
1057
- * Update an image gif
1058
- */
1059
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1060
- /**
1061
- * Set image alignment
1062
- */
1063
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1049
+ columns: {
1050
+ insertColumns: (attrs?: {
1051
+ cols: number;
1052
+ }) => ReturnType;
1053
+ addColBefore: () => ReturnType;
1054
+ addColAfter: () => ReturnType;
1055
+ deleteCol: () => ReturnType;
1064
1056
  };
1065
1057
  }
1066
1058
  }
@@ -1087,9 +1079,8 @@ declare module '@tiptap/core' {
1087
1079
 
1088
1080
  declare module '@tiptap/core' {
1089
1081
  interface Commands<ReturnType> {
1090
- drawer: {
1091
- setDrawer: (options: any, replace?: any) => ReturnType;
1092
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1082
+ attachment: {
1083
+ setAttachment: (attrs?: unknown) => ReturnType;
1093
1084
  };
1094
1085
  }
1095
1086
  }
@@ -1097,11 +1088,19 @@ declare module '@tiptap/core' {
1097
1088
 
1098
1089
  declare module '@tiptap/core' {
1099
1090
  interface Commands<ReturnType> {
1100
- emoji: {
1101
- setEmoji: (emoji: {
1102
- name: string;
1103
- emoji: string;
1104
- }) => 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;
1105
1104
  };
1106
1105
  }
1107
1106
  }
@@ -1124,8 +1123,9 @@ declare module '@tiptap/core' {
1124
1123
 
1125
1124
  declare module '@tiptap/core' {
1126
1125
  interface Commands<ReturnType> {
1127
- attachment: {
1128
- setAttachment: (attrs?: unknown) => ReturnType;
1126
+ drawer: {
1127
+ setDrawer: (options: any, replace?: any) => ReturnType;
1128
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1129
1129
  };
1130
1130
  }
1131
1131
  }
@@ -902,17 +902,19 @@ declare module '@tiptap/core' {
902
902
 
903
903
  declare module '@tiptap/core' {
904
904
  interface Commands<ReturnType> {
905
- fontSize: {
905
+ imageUpload: {
906
906
  /**
907
- * Set the text font size. ex: "12px", "2em", or "small". Must be a valid
908
- * CSS font-size
909
- * (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
907
+ * Add an image
910
908
  */
911
- setFontSize: (fontSize: string) => ReturnType;
909
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
912
910
  /**
913
- * Unset the font size
911
+ * Update an image
914
912
  */
915
- unsetFontSize: () => ReturnType;
913
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
914
+ /**
915
+ * Set image alignment
916
+ */
917
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
916
918
  };
917
919
  }
918
920
  }
@@ -920,9 +922,14 @@ declare module '@tiptap/core' {
920
922
 
921
923
  declare module '@tiptap/core' {
922
924
  interface Commands<ReturnType> {
923
- lineHeight: {
924
- setLineHeight: (lineHeight: string) => ReturnType;
925
- unsetLineHeight: () => ReturnType;
925
+ iframe: {
926
+ /**
927
+ * Add an iframe
928
+ */
929
+ setIframe: (options: {
930
+ src: string;
931
+ service: string;
932
+ }) => ReturnType;
926
933
  };
927
934
  }
928
935
  }
@@ -930,19 +937,15 @@ declare module '@tiptap/core' {
930
937
 
931
938
  declare module '@tiptap/core' {
932
939
  interface Commands<ReturnType> {
933
- imageUpload: {
934
- /**
935
- * Add an image
936
- */
937
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
940
+ indent: {
938
941
  /**
939
- * Update an image
942
+ * Set the indent attribute
940
943
  */
941
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
944
+ indent: () => ReturnType;
942
945
  /**
943
- * Set image alignment
946
+ * Set the outdent attribute
944
947
  */
945
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
948
+ outdent: () => ReturnType;
946
949
  };
947
950
  }
948
951
  }
@@ -950,13 +953,9 @@ declare module '@tiptap/core' {
950
953
 
951
954
  declare module '@tiptap/core' {
952
955
  interface Commands<ReturnType> {
953
- columns: {
954
- insertColumns: (attrs?: {
955
- cols: number;
956
- }) => ReturnType;
957
- addColBefore: () => ReturnType;
958
- addColAfter: () => ReturnType;
959
- deleteCol: () => ReturnType;
956
+ lineHeight: {
957
+ setLineHeight: (lineHeight: string) => ReturnType;
958
+ unsetLineHeight: () => ReturnType;
960
959
  };
961
960
  }
962
961
  }
@@ -964,8 +963,11 @@ declare module '@tiptap/core' {
964
963
 
965
964
  declare module '@tiptap/core' {
966
965
  interface Commands<ReturnType> {
967
- painter: {
968
- setPainter: (marks: Mark[]) => ReturnType;
966
+ emoji: {
967
+ setEmoji: (emoji: {
968
+ name: string;
969
+ emoji: string;
970
+ }) => ReturnType;
969
971
  };
970
972
  }
971
973
  }
@@ -973,15 +975,17 @@ declare module '@tiptap/core' {
973
975
 
974
976
  declare module '@tiptap/core' {
975
977
  interface Commands<ReturnType> {
976
- indent: {
978
+ fontSize: {
977
979
  /**
978
- * Set the indent attribute
980
+ * Set the text font size. ex: "12px", "2em", or "small". Must be a valid
981
+ * CSS font-size
982
+ * (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
979
983
  */
980
- indent: () => ReturnType;
984
+ setFontSize: (fontSize: string) => ReturnType;
981
985
  /**
982
- * Set the outdent attribute
986
+ * Unset the font size
983
987
  */
984
- outdent: () => ReturnType;
988
+ unsetFontSize: () => ReturnType;
985
989
  };
986
990
  }
987
991
  }
@@ -999,14 +1003,9 @@ declare module '@tiptap/core' {
999
1003
 
1000
1004
  declare module '@tiptap/core' {
1001
1005
  interface Commands<ReturnType> {
1002
- search: {
1003
- setSearchTerm: (searchTerm: string) => ReturnType;
1004
- setReplaceTerm: (replaceTerm: string) => ReturnType;
1005
- replace: () => ReturnType;
1006
- replaceAll: () => ReturnType;
1007
- goToPrevSearchResult: () => void;
1008
- goToNextSearchResult: () => void;
1009
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
1006
+ tableOfContents: {
1007
+ setTableOfContents: () => ReturnType;
1008
+ removeTableOfContents: () => ReturnType;
1010
1009
  };
1011
1010
  }
1012
1011
  }
@@ -1014,9 +1013,8 @@ declare module '@tiptap/core' {
1014
1013
 
1015
1014
  declare module '@tiptap/core' {
1016
1015
  interface Commands<ReturnType> {
1017
- tableOfContents: {
1018
- setTableOfContents: () => ReturnType;
1019
- removeTableOfContents: () => ReturnType;
1016
+ exportWord: {
1017
+ exportToWord: () => ReturnType;
1020
1018
  };
1021
1019
  }
1022
1020
  }
@@ -1024,8 +1022,8 @@ declare module '@tiptap/core' {
1024
1022
 
1025
1023
  declare module '@tiptap/core' {
1026
1024
  interface Commands<ReturnType> {
1027
- exportWord: {
1028
- exportToWord: () => ReturnType;
1025
+ painter: {
1026
+ setPainter: (marks: Mark[]) => ReturnType;
1029
1027
  };
1030
1028
  }
1031
1029
  }
@@ -1033,14 +1031,14 @@ declare module '@tiptap/core' {
1033
1031
 
1034
1032
  declare module '@tiptap/core' {
1035
1033
  interface Commands<ReturnType> {
1036
- iframe: {
1037
- /**
1038
- * Add an iframe
1039
- */
1040
- setIframe: (options: {
1041
- src: string;
1042
- service: string;
1043
- }) => ReturnType;
1034
+ search: {
1035
+ setSearchTerm: (searchTerm: string) => ReturnType;
1036
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
1037
+ replace: () => ReturnType;
1038
+ replaceAll: () => ReturnType;
1039
+ goToPrevSearchResult: () => void;
1040
+ goToNextSearchResult: () => void;
1041
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
1044
1042
  };
1045
1043
  }
1046
1044
  }
@@ -1048,19 +1046,13 @@ declare module '@tiptap/core' {
1048
1046
 
1049
1047
  declare module '@tiptap/core' {
1050
1048
  interface Commands<ReturnType> {
1051
- imageGifUpload: {
1052
- /**
1053
- * Add an image gif
1054
- */
1055
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1056
- /**
1057
- * Update an image gif
1058
- */
1059
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1060
- /**
1061
- * Set image alignment
1062
- */
1063
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1049
+ columns: {
1050
+ insertColumns: (attrs?: {
1051
+ cols: number;
1052
+ }) => ReturnType;
1053
+ addColBefore: () => ReturnType;
1054
+ addColAfter: () => ReturnType;
1055
+ deleteCol: () => ReturnType;
1064
1056
  };
1065
1057
  }
1066
1058
  }
@@ -1087,9 +1079,8 @@ declare module '@tiptap/core' {
1087
1079
 
1088
1080
  declare module '@tiptap/core' {
1089
1081
  interface Commands<ReturnType> {
1090
- drawer: {
1091
- setDrawer: (options: any, replace?: any) => ReturnType;
1092
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1082
+ attachment: {
1083
+ setAttachment: (attrs?: unknown) => ReturnType;
1093
1084
  };
1094
1085
  }
1095
1086
  }
@@ -1097,11 +1088,19 @@ declare module '@tiptap/core' {
1097
1088
 
1098
1089
  declare module '@tiptap/core' {
1099
1090
  interface Commands<ReturnType> {
1100
- emoji: {
1101
- setEmoji: (emoji: {
1102
- name: string;
1103
- emoji: string;
1104
- }) => 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;
1105
1104
  };
1106
1105
  }
1107
1106
  }
@@ -1124,8 +1123,9 @@ declare module '@tiptap/core' {
1124
1123
 
1125
1124
  declare module '@tiptap/core' {
1126
1125
  interface Commands<ReturnType> {
1127
- attachment: {
1128
- setAttachment: (attrs?: unknown) => ReturnType;
1126
+ drawer: {
1127
+ setDrawer: (options: any, replace?: any) => ReturnType;
1128
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1129
1129
  };
1130
1130
  }
1131
1131
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "reactjs-tiptap-editor-pro",
3
3
  "type": "module",
4
- "version": "0.2.35",
4
+ "version": "0.2.37",
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",