reactjs-tiptap-editor-pro 0.2.37 → 0.2.38

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,34 +902,17 @@ declare module '@tiptap/core' {
902
902
 
903
903
  declare module '@tiptap/core' {
904
904
  interface Commands<ReturnType> {
905
- imageUpload: {
906
- /**
907
- * Add an image
908
- */
909
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
910
- /**
911
- * Update an image
912
- */
913
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
905
+ fontSize: {
914
906
  /**
915
- * Set image alignment
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).
916
910
  */
917
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
918
- };
919
- }
920
- }
921
-
922
-
923
- declare module '@tiptap/core' {
924
- interface Commands<ReturnType> {
925
- iframe: {
911
+ setFontSize: (fontSize: string) => ReturnType;
926
912
  /**
927
- * Add an iframe
913
+ * Unset the font size
928
914
  */
929
- setIframe: (options: {
930
- src: string;
931
- service: string;
932
- }) => ReturnType;
915
+ unsetFontSize: () => ReturnType;
933
916
  };
934
917
  }
935
918
  }
@@ -951,6 +934,20 @@ declare module '@tiptap/core' {
951
934
  }
952
935
 
953
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
+
954
951
  declare module '@tiptap/core' {
955
952
  interface Commands<ReturnType> {
956
953
  lineHeight: {
@@ -963,11 +960,8 @@ declare module '@tiptap/core' {
963
960
 
964
961
  declare module '@tiptap/core' {
965
962
  interface Commands<ReturnType> {
966
- emoji: {
967
- setEmoji: (emoji: {
968
- name: string;
969
- emoji: string;
970
- }) => ReturnType;
963
+ painter: {
964
+ setPainter: (marks: Mark[]) => ReturnType;
971
965
  };
972
966
  }
973
967
  }
@@ -975,17 +969,34 @@ declare module '@tiptap/core' {
975
969
 
976
970
  declare module '@tiptap/core' {
977
971
  interface Commands<ReturnType> {
978
- fontSize: {
972
+ search: {
973
+ setSearchTerm: (searchTerm: string) => ReturnType;
974
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
975
+ replace: () => ReturnType;
976
+ replaceAll: () => ReturnType;
977
+ goToPrevSearchResult: () => void;
978
+ goToNextSearchResult: () => void;
979
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
980
+ };
981
+ }
982
+ }
983
+
984
+
985
+ declare module '@tiptap/core' {
986
+ interface Commands<ReturnType> {
987
+ imageUpload: {
979
988
  /**
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).
989
+ * Add an image
983
990
  */
984
- setFontSize: (fontSize: string) => ReturnType;
991
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
985
992
  /**
986
- * Unset the font size
993
+ * Update an image
987
994
  */
988
- unsetFontSize: () => ReturnType;
995
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
996
+ /**
997
+ * Set image alignment
998
+ */
999
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
989
1000
  };
990
1001
  }
991
1002
  }
@@ -993,9 +1004,14 @@ declare module '@tiptap/core' {
993
1004
 
994
1005
  declare module '@tiptap/core' {
995
1006
  interface Commands<ReturnType> {
996
- tableCellBackground: {
997
- setTableCellBackground: (color: string) => ReturnType;
998
- unsetTableCellBackground: () => ReturnType;
1007
+ iframe: {
1008
+ /**
1009
+ * Add an iframe
1010
+ */
1011
+ setIframe: (options: {
1012
+ src: string;
1013
+ service: string;
1014
+ }) => ReturnType;
999
1015
  };
1000
1016
  }
1001
1017
  }
@@ -1003,9 +1019,11 @@ declare module '@tiptap/core' {
1003
1019
 
1004
1020
  declare module '@tiptap/core' {
1005
1021
  interface Commands<ReturnType> {
1006
- tableOfContents: {
1007
- setTableOfContents: () => ReturnType;
1008
- removeTableOfContents: () => ReturnType;
1022
+ emoji: {
1023
+ setEmoji: (emoji: {
1024
+ name: string;
1025
+ emoji: string;
1026
+ }) => ReturnType;
1009
1027
  };
1010
1028
  }
1011
1029
  }
@@ -1013,8 +1031,9 @@ declare module '@tiptap/core' {
1013
1031
 
1014
1032
  declare module '@tiptap/core' {
1015
1033
  interface Commands<ReturnType> {
1016
- exportWord: {
1017
- exportToWord: () => ReturnType;
1034
+ tableCellBackground: {
1035
+ setTableCellBackground: (color: string) => ReturnType;
1036
+ unsetTableCellBackground: () => ReturnType;
1018
1037
  };
1019
1038
  }
1020
1039
  }
@@ -1022,8 +1041,8 @@ declare module '@tiptap/core' {
1022
1041
 
1023
1042
  declare module '@tiptap/core' {
1024
1043
  interface Commands<ReturnType> {
1025
- painter: {
1026
- setPainter: (marks: Mark[]) => ReturnType;
1044
+ katex: {
1045
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
1027
1046
  };
1028
1047
  }
1029
1048
  }
@@ -1031,14 +1050,9 @@ declare module '@tiptap/core' {
1031
1050
 
1032
1051
  declare module '@tiptap/core' {
1033
1052
  interface Commands<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;
1053
+ tableOfContents: {
1054
+ setTableOfContents: () => ReturnType;
1055
+ removeTableOfContents: () => ReturnType;
1042
1056
  };
1043
1057
  }
1044
1058
  }
@@ -1046,13 +1060,8 @@ declare module '@tiptap/core' {
1046
1060
 
1047
1061
  declare module '@tiptap/core' {
1048
1062
  interface Commands<ReturnType> {
1049
- columns: {
1050
- insertColumns: (attrs?: {
1051
- cols: number;
1052
- }) => ReturnType;
1053
- addColBefore: () => ReturnType;
1054
- addColAfter: () => ReturnType;
1055
- deleteCol: () => ReturnType;
1063
+ exportWord: {
1064
+ exportToWord: () => ReturnType;
1056
1065
  };
1057
1066
  }
1058
1067
  }
@@ -1060,8 +1069,23 @@ declare module '@tiptap/core' {
1060
1069
 
1061
1070
  declare module '@tiptap/core' {
1062
1071
  interface Commands<ReturnType> {
1063
- katex: {
1064
- setKatex: (arg?: IKatexAttrs) => ReturnType;
1072
+ attachment: {
1073
+ setAttachment: (attrs?: unknown) => ReturnType;
1074
+ };
1075
+ }
1076
+ }
1077
+
1078
+
1079
+ declare module '@tiptap/core' {
1080
+ interface Commands<ReturnType> {
1081
+ twitter: {
1082
+ /**
1083
+ * Insert a tweet
1084
+ * @param options The tweet attributes
1085
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
1086
+ */
1087
+ setTweet: (options: SetTweetOptions) => ReturnType;
1088
+ updateTweet: (options: SetTweetOptions) => ReturnType;
1065
1089
  };
1066
1090
  }
1067
1091
  }
@@ -1079,8 +1103,9 @@ declare module '@tiptap/core' {
1079
1103
 
1080
1104
  declare module '@tiptap/core' {
1081
1105
  interface Commands<ReturnType> {
1082
- attachment: {
1083
- setAttachment: (attrs?: unknown) => ReturnType;
1106
+ drawer: {
1107
+ setDrawer: (options: any, replace?: any) => ReturnType;
1108
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1084
1109
  };
1085
1110
  }
1086
1111
  }
@@ -1104,28 +1129,3 @@ declare module '@tiptap/core' {
1104
1129
  };
1105
1130
  }
1106
1131
  }
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.37",
4
+ "version": "0.2.38",
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",