reactjs-tiptap-editor-pro 0.2.35 → 0.2.36

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.
@@ -928,6 +928,31 @@ declare module '@tiptap/core' {
928
928
  }
929
929
 
930
930
 
931
+ declare module '@tiptap/core' {
932
+ interface Commands<ReturnType> {
933
+ iframe: {
934
+ /**
935
+ * Add an iframe
936
+ */
937
+ setIframe: (options: {
938
+ src: string;
939
+ service: string;
940
+ }) => ReturnType;
941
+ };
942
+ }
943
+ }
944
+
945
+
946
+ declare module '@tiptap/core' {
947
+ interface Commands<ReturnType> {
948
+ tableCellBackground: {
949
+ setTableCellBackground: (color: string) => ReturnType;
950
+ unsetTableCellBackground: () => ReturnType;
951
+ };
952
+ }
953
+ }
954
+
955
+
931
956
  declare module '@tiptap/core' {
932
957
  interface Commands<ReturnType> {
933
958
  imageUpload: {
@@ -950,13 +975,8 @@ declare module '@tiptap/core' {
950
975
 
951
976
  declare module '@tiptap/core' {
952
977
  interface Commands<ReturnType> {
953
- columns: {
954
- insertColumns: (attrs?: {
955
- cols: number;
956
- }) => ReturnType;
957
- addColBefore: () => ReturnType;
958
- addColAfter: () => ReturnType;
959
- deleteCol: () => ReturnType;
978
+ katex: {
979
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
960
980
  };
961
981
  }
962
982
  }
@@ -964,8 +984,13 @@ declare module '@tiptap/core' {
964
984
 
965
985
  declare module '@tiptap/core' {
966
986
  interface Commands<ReturnType> {
967
- painter: {
968
- setPainter: (marks: Mark[]) => ReturnType;
987
+ columns: {
988
+ insertColumns: (attrs?: {
989
+ cols: number;
990
+ }) => ReturnType;
991
+ addColBefore: () => ReturnType;
992
+ addColAfter: () => ReturnType;
993
+ deleteCol: () => ReturnType;
969
994
  };
970
995
  }
971
996
  }
@@ -989,34 +1014,8 @@ declare module '@tiptap/core' {
989
1014
 
990
1015
  declare module '@tiptap/core' {
991
1016
  interface Commands<ReturnType> {
992
- tableCellBackground: {
993
- setTableCellBackground: (color: string) => ReturnType;
994
- unsetTableCellBackground: () => ReturnType;
995
- };
996
- }
997
- }
998
-
999
-
1000
- declare module '@tiptap/core' {
1001
- 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;
1010
- };
1011
- }
1012
- }
1013
-
1014
-
1015
- declare module '@tiptap/core' {
1016
- interface Commands<ReturnType> {
1017
- tableOfContents: {
1018
- setTableOfContents: () => ReturnType;
1019
- removeTableOfContents: () => ReturnType;
1017
+ exportWord: {
1018
+ exportToWord: () => ReturnType;
1020
1019
  };
1021
1020
  }
1022
1021
  }
@@ -1024,8 +1023,11 @@ declare module '@tiptap/core' {
1024
1023
 
1025
1024
  declare module '@tiptap/core' {
1026
1025
  interface Commands<ReturnType> {
1027
- exportWord: {
1028
- exportToWord: () => ReturnType;
1026
+ emoji: {
1027
+ setEmoji: (emoji: {
1028
+ name: string;
1029
+ emoji: string;
1030
+ }) => ReturnType;
1029
1031
  };
1030
1032
  }
1031
1033
  }
@@ -1033,14 +1035,8 @@ declare module '@tiptap/core' {
1033
1035
 
1034
1036
  declare module '@tiptap/core' {
1035
1037
  interface Commands<ReturnType> {
1036
- iframe: {
1037
- /**
1038
- * Add an iframe
1039
- */
1040
- setIframe: (options: {
1041
- src: string;
1042
- service: string;
1043
- }) => ReturnType;
1038
+ painter: {
1039
+ setPainter: (marks: Mark[]) => ReturnType;
1044
1040
  };
1045
1041
  }
1046
1042
  }
@@ -1048,19 +1044,14 @@ declare module '@tiptap/core' {
1048
1044
 
1049
1045
  declare module '@tiptap/core' {
1050
1046
  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;
1047
+ search: {
1048
+ setSearchTerm: (searchTerm: string) => ReturnType;
1049
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
1050
+ replace: () => ReturnType;
1051
+ replaceAll: () => ReturnType;
1052
+ goToPrevSearchResult: () => void;
1053
+ goToNextSearchResult: () => void;
1054
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
1064
1055
  };
1065
1056
  }
1066
1057
  }
@@ -1068,8 +1059,9 @@ declare module '@tiptap/core' {
1068
1059
 
1069
1060
  declare module '@tiptap/core' {
1070
1061
  interface Commands<ReturnType> {
1071
- katex: {
1072
- setKatex: (arg?: IKatexAttrs) => ReturnType;
1062
+ tableOfContents: {
1063
+ setTableOfContents: () => ReturnType;
1064
+ removeTableOfContents: () => ReturnType;
1073
1065
  };
1074
1066
  }
1075
1067
  }
@@ -1095,18 +1087,6 @@ declare module '@tiptap/core' {
1095
1087
  }
1096
1088
 
1097
1089
 
1098
- declare module '@tiptap/core' {
1099
- interface Commands<ReturnType> {
1100
- emoji: {
1101
- setEmoji: (emoji: {
1102
- name: string;
1103
- emoji: string;
1104
- }) => ReturnType;
1105
- };
1106
- }
1107
- }
1108
-
1109
-
1110
1090
  declare module '@tiptap/core' {
1111
1091
  interface Commands<ReturnType> {
1112
1092
  twitter: {
@@ -1129,3 +1109,23 @@ declare module '@tiptap/core' {
1129
1109
  };
1130
1110
  }
1131
1111
  }
1112
+
1113
+
1114
+ declare module '@tiptap/core' {
1115
+ interface Commands<ReturnType> {
1116
+ imageGifUpload: {
1117
+ /**
1118
+ * Add an image gif
1119
+ */
1120
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1121
+ /**
1122
+ * Update an image gif
1123
+ */
1124
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1125
+ /**
1126
+ * Set image alignment
1127
+ */
1128
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1129
+ };
1130
+ }
1131
+ }
@@ -928,6 +928,31 @@ declare module '@tiptap/core' {
928
928
  }
929
929
 
930
930
 
931
+ declare module '@tiptap/core' {
932
+ interface Commands<ReturnType> {
933
+ iframe: {
934
+ /**
935
+ * Add an iframe
936
+ */
937
+ setIframe: (options: {
938
+ src: string;
939
+ service: string;
940
+ }) => ReturnType;
941
+ };
942
+ }
943
+ }
944
+
945
+
946
+ declare module '@tiptap/core' {
947
+ interface Commands<ReturnType> {
948
+ tableCellBackground: {
949
+ setTableCellBackground: (color: string) => ReturnType;
950
+ unsetTableCellBackground: () => ReturnType;
951
+ };
952
+ }
953
+ }
954
+
955
+
931
956
  declare module '@tiptap/core' {
932
957
  interface Commands<ReturnType> {
933
958
  imageUpload: {
@@ -950,13 +975,8 @@ declare module '@tiptap/core' {
950
975
 
951
976
  declare module '@tiptap/core' {
952
977
  interface Commands<ReturnType> {
953
- columns: {
954
- insertColumns: (attrs?: {
955
- cols: number;
956
- }) => ReturnType;
957
- addColBefore: () => ReturnType;
958
- addColAfter: () => ReturnType;
959
- deleteCol: () => ReturnType;
978
+ katex: {
979
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
960
980
  };
961
981
  }
962
982
  }
@@ -964,8 +984,13 @@ declare module '@tiptap/core' {
964
984
 
965
985
  declare module '@tiptap/core' {
966
986
  interface Commands<ReturnType> {
967
- painter: {
968
- setPainter: (marks: Mark[]) => ReturnType;
987
+ columns: {
988
+ insertColumns: (attrs?: {
989
+ cols: number;
990
+ }) => ReturnType;
991
+ addColBefore: () => ReturnType;
992
+ addColAfter: () => ReturnType;
993
+ deleteCol: () => ReturnType;
969
994
  };
970
995
  }
971
996
  }
@@ -989,34 +1014,8 @@ declare module '@tiptap/core' {
989
1014
 
990
1015
  declare module '@tiptap/core' {
991
1016
  interface Commands<ReturnType> {
992
- tableCellBackground: {
993
- setTableCellBackground: (color: string) => ReturnType;
994
- unsetTableCellBackground: () => ReturnType;
995
- };
996
- }
997
- }
998
-
999
-
1000
- declare module '@tiptap/core' {
1001
- 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;
1010
- };
1011
- }
1012
- }
1013
-
1014
-
1015
- declare module '@tiptap/core' {
1016
- interface Commands<ReturnType> {
1017
- tableOfContents: {
1018
- setTableOfContents: () => ReturnType;
1019
- removeTableOfContents: () => ReturnType;
1017
+ exportWord: {
1018
+ exportToWord: () => ReturnType;
1020
1019
  };
1021
1020
  }
1022
1021
  }
@@ -1024,8 +1023,11 @@ declare module '@tiptap/core' {
1024
1023
 
1025
1024
  declare module '@tiptap/core' {
1026
1025
  interface Commands<ReturnType> {
1027
- exportWord: {
1028
- exportToWord: () => ReturnType;
1026
+ emoji: {
1027
+ setEmoji: (emoji: {
1028
+ name: string;
1029
+ emoji: string;
1030
+ }) => ReturnType;
1029
1031
  };
1030
1032
  }
1031
1033
  }
@@ -1033,14 +1035,8 @@ declare module '@tiptap/core' {
1033
1035
 
1034
1036
  declare module '@tiptap/core' {
1035
1037
  interface Commands<ReturnType> {
1036
- iframe: {
1037
- /**
1038
- * Add an iframe
1039
- */
1040
- setIframe: (options: {
1041
- src: string;
1042
- service: string;
1043
- }) => ReturnType;
1038
+ painter: {
1039
+ setPainter: (marks: Mark[]) => ReturnType;
1044
1040
  };
1045
1041
  }
1046
1042
  }
@@ -1048,19 +1044,14 @@ declare module '@tiptap/core' {
1048
1044
 
1049
1045
  declare module '@tiptap/core' {
1050
1046
  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;
1047
+ search: {
1048
+ setSearchTerm: (searchTerm: string) => ReturnType;
1049
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
1050
+ replace: () => ReturnType;
1051
+ replaceAll: () => ReturnType;
1052
+ goToPrevSearchResult: () => void;
1053
+ goToNextSearchResult: () => void;
1054
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
1064
1055
  };
1065
1056
  }
1066
1057
  }
@@ -1068,8 +1059,9 @@ declare module '@tiptap/core' {
1068
1059
 
1069
1060
  declare module '@tiptap/core' {
1070
1061
  interface Commands<ReturnType> {
1071
- katex: {
1072
- setKatex: (arg?: IKatexAttrs) => ReturnType;
1062
+ tableOfContents: {
1063
+ setTableOfContents: () => ReturnType;
1064
+ removeTableOfContents: () => ReturnType;
1073
1065
  };
1074
1066
  }
1075
1067
  }
@@ -1095,18 +1087,6 @@ declare module '@tiptap/core' {
1095
1087
  }
1096
1088
 
1097
1089
 
1098
- declare module '@tiptap/core' {
1099
- interface Commands<ReturnType> {
1100
- emoji: {
1101
- setEmoji: (emoji: {
1102
- name: string;
1103
- emoji: string;
1104
- }) => ReturnType;
1105
- };
1106
- }
1107
- }
1108
-
1109
-
1110
1090
  declare module '@tiptap/core' {
1111
1091
  interface Commands<ReturnType> {
1112
1092
  twitter: {
@@ -1129,3 +1109,23 @@ declare module '@tiptap/core' {
1129
1109
  };
1130
1110
  }
1131
1111
  }
1112
+
1113
+
1114
+ declare module '@tiptap/core' {
1115
+ interface Commands<ReturnType> {
1116
+ imageGifUpload: {
1117
+ /**
1118
+ * Add an image gif
1119
+ */
1120
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1121
+ /**
1122
+ * Update an image gif
1123
+ */
1124
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1125
+ /**
1126
+ * Set image alignment
1127
+ */
1128
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1129
+ };
1130
+ }
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.36",
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",