reactjs-tiptap-editor-pro 0.2.38 → 0.2.40

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.
@@ -934,20 +934,6 @@ declare module '@tiptap/core' {
934
934
  }
935
935
 
936
936
 
937
- declare module '@tiptap/core' {
938
- interface Commands<ReturnType> {
939
- columns: {
940
- insertColumns: (attrs?: {
941
- cols: number;
942
- }) => ReturnType;
943
- addColBefore: () => ReturnType;
944
- addColAfter: () => ReturnType;
945
- deleteCol: () => ReturnType;
946
- };
947
- }
948
- }
949
-
950
-
951
937
  declare module '@tiptap/core' {
952
938
  interface Commands<ReturnType> {
953
939
  lineHeight: {
@@ -960,8 +946,9 @@ declare module '@tiptap/core' {
960
946
 
961
947
  declare module '@tiptap/core' {
962
948
  interface Commands<ReturnType> {
963
- painter: {
964
- setPainter: (marks: Mark[]) => ReturnType;
949
+ tableCellBackground: {
950
+ setTableCellBackground: (color: string) => ReturnType;
951
+ unsetTableCellBackground: () => ReturnType;
965
952
  };
966
953
  }
967
954
  }
@@ -982,6 +969,15 @@ declare module '@tiptap/core' {
982
969
  }
983
970
 
984
971
 
972
+ declare module '@tiptap/core' {
973
+ interface Commands<ReturnType> {
974
+ painter: {
975
+ setPainter: (marks: Mark[]) => ReturnType;
976
+ };
977
+ }
978
+ }
979
+
980
+
985
981
  declare module '@tiptap/core' {
986
982
  interface Commands<ReturnType> {
987
983
  imageUpload: {
@@ -1002,6 +998,18 @@ declare module '@tiptap/core' {
1002
998
  }
1003
999
 
1004
1000
 
1001
+ declare module '@tiptap/core' {
1002
+ interface Commands<ReturnType> {
1003
+ emoji: {
1004
+ setEmoji: (emoji: {
1005
+ name: string;
1006
+ emoji: string;
1007
+ }) => ReturnType;
1008
+ };
1009
+ }
1010
+ }
1011
+
1012
+
1005
1013
  declare module '@tiptap/core' {
1006
1014
  interface Commands<ReturnType> {
1007
1015
  iframe: {
@@ -1019,11 +1027,9 @@ declare module '@tiptap/core' {
1019
1027
 
1020
1028
  declare module '@tiptap/core' {
1021
1029
  interface Commands<ReturnType> {
1022
- emoji: {
1023
- setEmoji: (emoji: {
1024
- name: string;
1025
- emoji: string;
1026
- }) => ReturnType;
1030
+ tableOfContents: {
1031
+ setTableOfContents: () => ReturnType;
1032
+ removeTableOfContents: () => ReturnType;
1027
1033
  };
1028
1034
  }
1029
1035
  }
@@ -1031,9 +1037,13 @@ declare module '@tiptap/core' {
1031
1037
 
1032
1038
  declare module '@tiptap/core' {
1033
1039
  interface Commands<ReturnType> {
1034
- tableCellBackground: {
1035
- setTableCellBackground: (color: string) => ReturnType;
1036
- unsetTableCellBackground: () => ReturnType;
1040
+ columns: {
1041
+ insertColumns: (attrs?: {
1042
+ cols: number;
1043
+ }) => ReturnType;
1044
+ addColBefore: () => ReturnType;
1045
+ addColAfter: () => ReturnType;
1046
+ deleteCol: () => ReturnType;
1037
1047
  };
1038
1048
  }
1039
1049
  }
@@ -1048,16 +1058,6 @@ declare module '@tiptap/core' {
1048
1058
  }
1049
1059
 
1050
1060
 
1051
- declare module '@tiptap/core' {
1052
- interface Commands<ReturnType> {
1053
- tableOfContents: {
1054
- setTableOfContents: () => ReturnType;
1055
- removeTableOfContents: () => ReturnType;
1056
- };
1057
- }
1058
- }
1059
-
1060
-
1061
1061
  declare module '@tiptap/core' {
1062
1062
  interface Commands<ReturnType> {
1063
1063
  exportWord: {
@@ -1069,8 +1069,19 @@ declare module '@tiptap/core' {
1069
1069
 
1070
1070
  declare module '@tiptap/core' {
1071
1071
  interface Commands<ReturnType> {
1072
- attachment: {
1073
- setAttachment: (attrs?: unknown) => ReturnType;
1072
+ imageGifUpload: {
1073
+ /**
1074
+ * Add an image gif
1075
+ */
1076
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1077
+ /**
1078
+ * Update an image gif
1079
+ */
1080
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1081
+ /**
1082
+ * Set image alignment
1083
+ */
1084
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1074
1085
  };
1075
1086
  }
1076
1087
  }
@@ -1103,9 +1114,8 @@ declare module '@tiptap/core' {
1103
1114
 
1104
1115
  declare module '@tiptap/core' {
1105
1116
  interface Commands<ReturnType> {
1106
- drawer: {
1107
- setDrawer: (options: any, replace?: any) => ReturnType;
1108
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1117
+ attachment: {
1118
+ setAttachment: (attrs?: unknown) => ReturnType;
1109
1119
  };
1110
1120
  }
1111
1121
  }
@@ -1113,19 +1123,9 @@ declare module '@tiptap/core' {
1113
1123
 
1114
1124
  declare module '@tiptap/core' {
1115
1125
  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;
1126
+ drawer: {
1127
+ setDrawer: (options: any, replace?: any) => ReturnType;
1128
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1129
1129
  };
1130
1130
  }
1131
1131
  }
@@ -934,20 +934,6 @@ declare module '@tiptap/core' {
934
934
  }
935
935
 
936
936
 
937
- declare module '@tiptap/core' {
938
- interface Commands<ReturnType> {
939
- columns: {
940
- insertColumns: (attrs?: {
941
- cols: number;
942
- }) => ReturnType;
943
- addColBefore: () => ReturnType;
944
- addColAfter: () => ReturnType;
945
- deleteCol: () => ReturnType;
946
- };
947
- }
948
- }
949
-
950
-
951
937
  declare module '@tiptap/core' {
952
938
  interface Commands<ReturnType> {
953
939
  lineHeight: {
@@ -960,8 +946,9 @@ declare module '@tiptap/core' {
960
946
 
961
947
  declare module '@tiptap/core' {
962
948
  interface Commands<ReturnType> {
963
- painter: {
964
- setPainter: (marks: Mark[]) => ReturnType;
949
+ tableCellBackground: {
950
+ setTableCellBackground: (color: string) => ReturnType;
951
+ unsetTableCellBackground: () => ReturnType;
965
952
  };
966
953
  }
967
954
  }
@@ -982,6 +969,15 @@ declare module '@tiptap/core' {
982
969
  }
983
970
 
984
971
 
972
+ declare module '@tiptap/core' {
973
+ interface Commands<ReturnType> {
974
+ painter: {
975
+ setPainter: (marks: Mark[]) => ReturnType;
976
+ };
977
+ }
978
+ }
979
+
980
+
985
981
  declare module '@tiptap/core' {
986
982
  interface Commands<ReturnType> {
987
983
  imageUpload: {
@@ -1002,6 +998,18 @@ declare module '@tiptap/core' {
1002
998
  }
1003
999
 
1004
1000
 
1001
+ declare module '@tiptap/core' {
1002
+ interface Commands<ReturnType> {
1003
+ emoji: {
1004
+ setEmoji: (emoji: {
1005
+ name: string;
1006
+ emoji: string;
1007
+ }) => ReturnType;
1008
+ };
1009
+ }
1010
+ }
1011
+
1012
+
1005
1013
  declare module '@tiptap/core' {
1006
1014
  interface Commands<ReturnType> {
1007
1015
  iframe: {
@@ -1019,11 +1027,9 @@ declare module '@tiptap/core' {
1019
1027
 
1020
1028
  declare module '@tiptap/core' {
1021
1029
  interface Commands<ReturnType> {
1022
- emoji: {
1023
- setEmoji: (emoji: {
1024
- name: string;
1025
- emoji: string;
1026
- }) => ReturnType;
1030
+ tableOfContents: {
1031
+ setTableOfContents: () => ReturnType;
1032
+ removeTableOfContents: () => ReturnType;
1027
1033
  };
1028
1034
  }
1029
1035
  }
@@ -1031,9 +1037,13 @@ declare module '@tiptap/core' {
1031
1037
 
1032
1038
  declare module '@tiptap/core' {
1033
1039
  interface Commands<ReturnType> {
1034
- tableCellBackground: {
1035
- setTableCellBackground: (color: string) => ReturnType;
1036
- unsetTableCellBackground: () => ReturnType;
1040
+ columns: {
1041
+ insertColumns: (attrs?: {
1042
+ cols: number;
1043
+ }) => ReturnType;
1044
+ addColBefore: () => ReturnType;
1045
+ addColAfter: () => ReturnType;
1046
+ deleteCol: () => ReturnType;
1037
1047
  };
1038
1048
  }
1039
1049
  }
@@ -1048,16 +1058,6 @@ declare module '@tiptap/core' {
1048
1058
  }
1049
1059
 
1050
1060
 
1051
- declare module '@tiptap/core' {
1052
- interface Commands<ReturnType> {
1053
- tableOfContents: {
1054
- setTableOfContents: () => ReturnType;
1055
- removeTableOfContents: () => ReturnType;
1056
- };
1057
- }
1058
- }
1059
-
1060
-
1061
1061
  declare module '@tiptap/core' {
1062
1062
  interface Commands<ReturnType> {
1063
1063
  exportWord: {
@@ -1069,8 +1069,19 @@ declare module '@tiptap/core' {
1069
1069
 
1070
1070
  declare module '@tiptap/core' {
1071
1071
  interface Commands<ReturnType> {
1072
- attachment: {
1073
- setAttachment: (attrs?: unknown) => ReturnType;
1072
+ imageGifUpload: {
1073
+ /**
1074
+ * Add an image gif
1075
+ */
1076
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1077
+ /**
1078
+ * Update an image gif
1079
+ */
1080
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1081
+ /**
1082
+ * Set image alignment
1083
+ */
1084
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1074
1085
  };
1075
1086
  }
1076
1087
  }
@@ -1103,9 +1114,8 @@ declare module '@tiptap/core' {
1103
1114
 
1104
1115
  declare module '@tiptap/core' {
1105
1116
  interface Commands<ReturnType> {
1106
- drawer: {
1107
- setDrawer: (options: any, replace?: any) => ReturnType;
1108
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1117
+ attachment: {
1118
+ setAttachment: (attrs?: unknown) => ReturnType;
1109
1119
  };
1110
1120
  }
1111
1121
  }
@@ -1113,19 +1123,9 @@ declare module '@tiptap/core' {
1113
1123
 
1114
1124
  declare module '@tiptap/core' {
1115
1125
  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;
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.38",
4
+ "version": "0.2.40",
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",