reactjs-tiptap-editor-pro 0.2.36 → 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,27 +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;
916
- };
917
- }
918
- }
919
-
920
-
921
- declare module '@tiptap/core' {
922
- interface Commands<ReturnType> {
923
- lineHeight: {
924
- setLineHeight: (lineHeight: string) => ReturnType;
925
- unsetLineHeight: () => ReturnType;
913
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
914
+ /**
915
+ * Set image alignment
916
+ */
917
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
926
918
  };
927
919
  }
928
920
  }
@@ -945,29 +937,15 @@ declare module '@tiptap/core' {
945
937
 
946
938
  declare module '@tiptap/core' {
947
939
  interface Commands<ReturnType> {
948
- tableCellBackground: {
949
- setTableCellBackground: (color: string) => ReturnType;
950
- unsetTableCellBackground: () => ReturnType;
951
- };
952
- }
953
- }
954
-
955
-
956
- declare module '@tiptap/core' {
957
- interface Commands<ReturnType> {
958
- imageUpload: {
959
- /**
960
- * Add an image
961
- */
962
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
940
+ indent: {
963
941
  /**
964
- * Update an image
942
+ * Set the indent attribute
965
943
  */
966
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
944
+ indent: () => ReturnType;
967
945
  /**
968
- * Set image alignment
946
+ * Set the outdent attribute
969
947
  */
970
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
948
+ outdent: () => ReturnType;
971
949
  };
972
950
  }
973
951
  }
@@ -975,8 +953,9 @@ declare module '@tiptap/core' {
975
953
 
976
954
  declare module '@tiptap/core' {
977
955
  interface Commands<ReturnType> {
978
- katex: {
979
- setKatex: (arg?: IKatexAttrs) => ReturnType;
956
+ lineHeight: {
957
+ setLineHeight: (lineHeight: string) => ReturnType;
958
+ unsetLineHeight: () => ReturnType;
980
959
  };
981
960
  }
982
961
  }
@@ -984,13 +963,11 @@ declare module '@tiptap/core' {
984
963
 
985
964
  declare module '@tiptap/core' {
986
965
  interface Commands<ReturnType> {
987
- columns: {
988
- insertColumns: (attrs?: {
989
- cols: number;
966
+ emoji: {
967
+ setEmoji: (emoji: {
968
+ name: string;
969
+ emoji: string;
990
970
  }) => ReturnType;
991
- addColBefore: () => ReturnType;
992
- addColAfter: () => ReturnType;
993
- deleteCol: () => ReturnType;
994
971
  };
995
972
  }
996
973
  }
@@ -998,15 +975,17 @@ declare module '@tiptap/core' {
998
975
 
999
976
  declare module '@tiptap/core' {
1000
977
  interface Commands<ReturnType> {
1001
- indent: {
978
+ fontSize: {
1002
979
  /**
1003
- * 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).
1004
983
  */
1005
- indent: () => ReturnType;
984
+ setFontSize: (fontSize: string) => ReturnType;
1006
985
  /**
1007
- * Set the outdent attribute
986
+ * Unset the font size
1008
987
  */
1009
- outdent: () => ReturnType;
988
+ unsetFontSize: () => ReturnType;
1010
989
  };
1011
990
  }
1012
991
  }
@@ -1014,8 +993,9 @@ declare module '@tiptap/core' {
1014
993
 
1015
994
  declare module '@tiptap/core' {
1016
995
  interface Commands<ReturnType> {
1017
- exportWord: {
1018
- exportToWord: () => ReturnType;
996
+ tableCellBackground: {
997
+ setTableCellBackground: (color: string) => ReturnType;
998
+ unsetTableCellBackground: () => ReturnType;
1019
999
  };
1020
1000
  }
1021
1001
  }
@@ -1023,11 +1003,18 @@ declare module '@tiptap/core' {
1023
1003
 
1024
1004
  declare module '@tiptap/core' {
1025
1005
  interface Commands<ReturnType> {
1026
- emoji: {
1027
- setEmoji: (emoji: {
1028
- name: string;
1029
- emoji: string;
1030
- }) => ReturnType;
1006
+ tableOfContents: {
1007
+ setTableOfContents: () => ReturnType;
1008
+ removeTableOfContents: () => ReturnType;
1009
+ };
1010
+ }
1011
+ }
1012
+
1013
+
1014
+ declare module '@tiptap/core' {
1015
+ interface Commands<ReturnType> {
1016
+ exportWord: {
1017
+ exportToWord: () => ReturnType;
1031
1018
  };
1032
1019
  }
1033
1020
  }
@@ -1059,19 +1046,13 @@ declare module '@tiptap/core' {
1059
1046
 
1060
1047
  declare module '@tiptap/core' {
1061
1048
  interface Commands<ReturnType> {
1062
- tableOfContents: {
1063
- setTableOfContents: () => ReturnType;
1064
- removeTableOfContents: () => ReturnType;
1065
- };
1066
- }
1067
- }
1068
-
1069
-
1070
- declare module '@tiptap/core' {
1071
- interface Commands<ReturnType> {
1072
- mermaid: {
1073
- setMermaid: (options: any, replace?: any) => ReturnType;
1074
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1049
+ columns: {
1050
+ insertColumns: (attrs?: {
1051
+ cols: number;
1052
+ }) => ReturnType;
1053
+ addColBefore: () => ReturnType;
1054
+ addColAfter: () => ReturnType;
1055
+ deleteCol: () => ReturnType;
1075
1056
  };
1076
1057
  }
1077
1058
  }
@@ -1079,9 +1060,8 @@ declare module '@tiptap/core' {
1079
1060
 
1080
1061
  declare module '@tiptap/core' {
1081
1062
  interface Commands<ReturnType> {
1082
- drawer: {
1083
- setDrawer: (options: any, replace?: any) => ReturnType;
1084
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1063
+ katex: {
1064
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
1085
1065
  };
1086
1066
  }
1087
1067
  }
@@ -1089,14 +1069,9 @@ declare module '@tiptap/core' {
1089
1069
 
1090
1070
  declare module '@tiptap/core' {
1091
1071
  interface Commands<ReturnType> {
1092
- twitter: {
1093
- /**
1094
- * Insert a tweet
1095
- * @param options The tweet attributes
1096
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
1097
- */
1098
- setTweet: (options: SetTweetOptions) => ReturnType;
1099
- updateTweet: (options: SetTweetOptions) => ReturnType;
1072
+ mermaid: {
1073
+ setMermaid: (options: any, replace?: any) => ReturnType;
1074
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1100
1075
  };
1101
1076
  }
1102
1077
  }
@@ -1129,3 +1104,28 @@ declare module '@tiptap/core' {
1129
1104
  };
1130
1105
  }
1131
1106
  }
1107
+
1108
+
1109
+ declare module '@tiptap/core' {
1110
+ interface Commands<ReturnType> {
1111
+ twitter: {
1112
+ /**
1113
+ * Insert a tweet
1114
+ * @param options The tweet attributes
1115
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
1116
+ */
1117
+ setTweet: (options: SetTweetOptions) => ReturnType;
1118
+ updateTweet: (options: SetTweetOptions) => ReturnType;
1119
+ };
1120
+ }
1121
+ }
1122
+
1123
+
1124
+ declare module '@tiptap/core' {
1125
+ interface Commands<ReturnType> {
1126
+ drawer: {
1127
+ setDrawer: (options: any, replace?: any) => ReturnType;
1128
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1129
+ };
1130
+ }
1131
+ }
@@ -902,27 +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;
916
- };
917
- }
918
- }
919
-
920
-
921
- declare module '@tiptap/core' {
922
- interface Commands<ReturnType> {
923
- lineHeight: {
924
- setLineHeight: (lineHeight: string) => ReturnType;
925
- unsetLineHeight: () => ReturnType;
913
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
914
+ /**
915
+ * Set image alignment
916
+ */
917
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
926
918
  };
927
919
  }
928
920
  }
@@ -945,29 +937,15 @@ declare module '@tiptap/core' {
945
937
 
946
938
  declare module '@tiptap/core' {
947
939
  interface Commands<ReturnType> {
948
- tableCellBackground: {
949
- setTableCellBackground: (color: string) => ReturnType;
950
- unsetTableCellBackground: () => ReturnType;
951
- };
952
- }
953
- }
954
-
955
-
956
- declare module '@tiptap/core' {
957
- interface Commands<ReturnType> {
958
- imageUpload: {
959
- /**
960
- * Add an image
961
- */
962
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
940
+ indent: {
963
941
  /**
964
- * Update an image
942
+ * Set the indent attribute
965
943
  */
966
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
944
+ indent: () => ReturnType;
967
945
  /**
968
- * Set image alignment
946
+ * Set the outdent attribute
969
947
  */
970
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
948
+ outdent: () => ReturnType;
971
949
  };
972
950
  }
973
951
  }
@@ -975,8 +953,9 @@ declare module '@tiptap/core' {
975
953
 
976
954
  declare module '@tiptap/core' {
977
955
  interface Commands<ReturnType> {
978
- katex: {
979
- setKatex: (arg?: IKatexAttrs) => ReturnType;
956
+ lineHeight: {
957
+ setLineHeight: (lineHeight: string) => ReturnType;
958
+ unsetLineHeight: () => ReturnType;
980
959
  };
981
960
  }
982
961
  }
@@ -984,13 +963,11 @@ declare module '@tiptap/core' {
984
963
 
985
964
  declare module '@tiptap/core' {
986
965
  interface Commands<ReturnType> {
987
- columns: {
988
- insertColumns: (attrs?: {
989
- cols: number;
966
+ emoji: {
967
+ setEmoji: (emoji: {
968
+ name: string;
969
+ emoji: string;
990
970
  }) => ReturnType;
991
- addColBefore: () => ReturnType;
992
- addColAfter: () => ReturnType;
993
- deleteCol: () => ReturnType;
994
971
  };
995
972
  }
996
973
  }
@@ -998,15 +975,17 @@ declare module '@tiptap/core' {
998
975
 
999
976
  declare module '@tiptap/core' {
1000
977
  interface Commands<ReturnType> {
1001
- indent: {
978
+ fontSize: {
1002
979
  /**
1003
- * 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).
1004
983
  */
1005
- indent: () => ReturnType;
984
+ setFontSize: (fontSize: string) => ReturnType;
1006
985
  /**
1007
- * Set the outdent attribute
986
+ * Unset the font size
1008
987
  */
1009
- outdent: () => ReturnType;
988
+ unsetFontSize: () => ReturnType;
1010
989
  };
1011
990
  }
1012
991
  }
@@ -1014,8 +993,9 @@ declare module '@tiptap/core' {
1014
993
 
1015
994
  declare module '@tiptap/core' {
1016
995
  interface Commands<ReturnType> {
1017
- exportWord: {
1018
- exportToWord: () => ReturnType;
996
+ tableCellBackground: {
997
+ setTableCellBackground: (color: string) => ReturnType;
998
+ unsetTableCellBackground: () => ReturnType;
1019
999
  };
1020
1000
  }
1021
1001
  }
@@ -1023,11 +1003,18 @@ declare module '@tiptap/core' {
1023
1003
 
1024
1004
  declare module '@tiptap/core' {
1025
1005
  interface Commands<ReturnType> {
1026
- emoji: {
1027
- setEmoji: (emoji: {
1028
- name: string;
1029
- emoji: string;
1030
- }) => ReturnType;
1006
+ tableOfContents: {
1007
+ setTableOfContents: () => ReturnType;
1008
+ removeTableOfContents: () => ReturnType;
1009
+ };
1010
+ }
1011
+ }
1012
+
1013
+
1014
+ declare module '@tiptap/core' {
1015
+ interface Commands<ReturnType> {
1016
+ exportWord: {
1017
+ exportToWord: () => ReturnType;
1031
1018
  };
1032
1019
  }
1033
1020
  }
@@ -1059,19 +1046,13 @@ declare module '@tiptap/core' {
1059
1046
 
1060
1047
  declare module '@tiptap/core' {
1061
1048
  interface Commands<ReturnType> {
1062
- tableOfContents: {
1063
- setTableOfContents: () => ReturnType;
1064
- removeTableOfContents: () => ReturnType;
1065
- };
1066
- }
1067
- }
1068
-
1069
-
1070
- declare module '@tiptap/core' {
1071
- interface Commands<ReturnType> {
1072
- mermaid: {
1073
- setMermaid: (options: any, replace?: any) => ReturnType;
1074
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1049
+ columns: {
1050
+ insertColumns: (attrs?: {
1051
+ cols: number;
1052
+ }) => ReturnType;
1053
+ addColBefore: () => ReturnType;
1054
+ addColAfter: () => ReturnType;
1055
+ deleteCol: () => ReturnType;
1075
1056
  };
1076
1057
  }
1077
1058
  }
@@ -1079,9 +1060,8 @@ declare module '@tiptap/core' {
1079
1060
 
1080
1061
  declare module '@tiptap/core' {
1081
1062
  interface Commands<ReturnType> {
1082
- drawer: {
1083
- setDrawer: (options: any, replace?: any) => ReturnType;
1084
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1063
+ katex: {
1064
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
1085
1065
  };
1086
1066
  }
1087
1067
  }
@@ -1089,14 +1069,9 @@ declare module '@tiptap/core' {
1089
1069
 
1090
1070
  declare module '@tiptap/core' {
1091
1071
  interface Commands<ReturnType> {
1092
- twitter: {
1093
- /**
1094
- * Insert a tweet
1095
- * @param options The tweet attributes
1096
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
1097
- */
1098
- setTweet: (options: SetTweetOptions) => ReturnType;
1099
- updateTweet: (options: SetTweetOptions) => ReturnType;
1072
+ mermaid: {
1073
+ setMermaid: (options: any, replace?: any) => ReturnType;
1074
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1100
1075
  };
1101
1076
  }
1102
1077
  }
@@ -1129,3 +1104,28 @@ declare module '@tiptap/core' {
1129
1104
  };
1130
1105
  }
1131
1106
  }
1107
+
1108
+
1109
+ declare module '@tiptap/core' {
1110
+ interface Commands<ReturnType> {
1111
+ twitter: {
1112
+ /**
1113
+ * Insert a tweet
1114
+ * @param options The tweet attributes
1115
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
1116
+ */
1117
+ setTweet: (options: SetTweetOptions) => ReturnType;
1118
+ updateTweet: (options: SetTweetOptions) => ReturnType;
1119
+ };
1120
+ }
1121
+ }
1122
+
1123
+
1124
+ declare module '@tiptap/core' {
1125
+ interface Commands<ReturnType> {
1126
+ drawer: {
1127
+ setDrawer: (options: any, replace?: any) => ReturnType;
1128
+ setAlignImageDrawer: (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.36",
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",