reactjs-tiptap-editor-pro 0.2.23 → 0.2.24

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.
@@ -918,42 +918,6 @@ declare module '@tiptap/core' {
918
918
  }
919
919
 
920
920
 
921
- declare module '@tiptap/core' {
922
- interface Commands<ReturnType> {
923
- lineHeight: {
924
- setLineHeight: (lineHeight: string) => ReturnType;
925
- unsetLineHeight: () => ReturnType;
926
- };
927
- }
928
- }
929
-
930
-
931
- declare module '@tiptap/core' {
932
- interface Commands<ReturnType> {
933
- indent: {
934
- /**
935
- * Set the indent attribute
936
- */
937
- indent: () => ReturnType;
938
- /**
939
- * Set the outdent attribute
940
- */
941
- outdent: () => ReturnType;
942
- };
943
- }
944
- }
945
-
946
-
947
- declare module '@tiptap/core' {
948
- interface Commands<ReturnType> {
949
- tableCellBackground: {
950
- setTableCellBackground: (color: string) => ReturnType;
951
- unsetTableCellBackground: () => ReturnType;
952
- };
953
- }
954
- }
955
-
956
-
957
921
  declare module '@tiptap/core' {
958
922
  interface Commands<ReturnType> {
959
923
  imageUpload: {
@@ -974,6 +938,21 @@ declare module '@tiptap/core' {
974
938
  }
975
939
 
976
940
 
941
+ declare module '@tiptap/core' {
942
+ interface Commands<ReturnType> {
943
+ iframe: {
944
+ /**
945
+ * Add an iframe
946
+ */
947
+ setIframe: (options: {
948
+ src: string;
949
+ service: string;
950
+ }) => ReturnType;
951
+ };
952
+ }
953
+ }
954
+
955
+
977
956
  declare module '@tiptap/core' {
978
957
  interface Commands<ReturnType> {
979
958
  search: {
@@ -991,13 +970,8 @@ declare module '@tiptap/core' {
991
970
 
992
971
  declare module '@tiptap/core' {
993
972
  interface Commands<ReturnType> {
994
- columns: {
995
- insertColumns: (attrs?: {
996
- cols: number;
997
- }) => ReturnType;
998
- addColBefore: () => ReturnType;
999
- addColAfter: () => ReturnType;
1000
- deleteCol: () => ReturnType;
973
+ painter: {
974
+ setPainter: (marks: Mark[]) => ReturnType;
1001
975
  };
1002
976
  }
1003
977
  }
@@ -1005,9 +979,9 @@ declare module '@tiptap/core' {
1005
979
 
1006
980
  declare module '@tiptap/core' {
1007
981
  interface Commands<ReturnType> {
1008
- tableOfContents: {
1009
- setTableOfContents: () => ReturnType;
1010
- removeTableOfContents: () => ReturnType;
982
+ tableCellBackground: {
983
+ setTableCellBackground: (color: string) => ReturnType;
984
+ unsetTableCellBackground: () => ReturnType;
1011
985
  };
1012
986
  }
1013
987
  }
@@ -1015,8 +989,15 @@ declare module '@tiptap/core' {
1015
989
 
1016
990
  declare module '@tiptap/core' {
1017
991
  interface Commands<ReturnType> {
1018
- painter: {
1019
- setPainter: (marks: Mark[]) => ReturnType;
992
+ indent: {
993
+ /**
994
+ * Set the indent attribute
995
+ */
996
+ indent: () => ReturnType;
997
+ /**
998
+ * Set the outdent attribute
999
+ */
1000
+ outdent: () => ReturnType;
1020
1001
  };
1021
1002
  }
1022
1003
  }
@@ -1024,8 +1005,11 @@ declare module '@tiptap/core' {
1024
1005
 
1025
1006
  declare module '@tiptap/core' {
1026
1007
  interface Commands<ReturnType> {
1027
- katex: {
1028
- setKatex: (arg?: IKatexAttrs) => ReturnType;
1008
+ emoji: {
1009
+ setEmoji: (emoji: {
1010
+ name: string;
1011
+ emoji: string;
1012
+ }) => ReturnType;
1029
1013
  };
1030
1014
  }
1031
1015
  }
@@ -1033,14 +1017,13 @@ declare module '@tiptap/core' {
1033
1017
 
1034
1018
  declare module '@tiptap/core' {
1035
1019
  interface Commands<ReturnType> {
1036
- iframe: {
1037
- /**
1038
- * Add an iframe
1039
- */
1040
- setIframe: (options: {
1041
- src: string;
1042
- service: string;
1020
+ columns: {
1021
+ insertColumns: (attrs?: {
1022
+ cols: number;
1043
1023
  }) => ReturnType;
1024
+ addColBefore: () => ReturnType;
1025
+ addColAfter: () => ReturnType;
1026
+ deleteCol: () => ReturnType;
1044
1027
  };
1045
1028
  }
1046
1029
  }
@@ -1048,8 +1031,9 @@ declare module '@tiptap/core' {
1048
1031
 
1049
1032
  declare module '@tiptap/core' {
1050
1033
  interface Commands<ReturnType> {
1051
- exportWord: {
1052
- exportToWord: () => ReturnType;
1034
+ lineHeight: {
1035
+ setLineHeight: (lineHeight: string) => ReturnType;
1036
+ unsetLineHeight: () => ReturnType;
1053
1037
  };
1054
1038
  }
1055
1039
  }
@@ -1057,11 +1041,8 @@ declare module '@tiptap/core' {
1057
1041
 
1058
1042
  declare module '@tiptap/core' {
1059
1043
  interface Commands<ReturnType> {
1060
- emoji: {
1061
- setEmoji: (emoji: {
1062
- name: string;
1063
- emoji: string;
1064
- }) => ReturnType;
1044
+ katex: {
1045
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
1065
1046
  };
1066
1047
  }
1067
1048
  }
@@ -1069,8 +1050,23 @@ declare module '@tiptap/core' {
1069
1050
 
1070
1051
  declare module '@tiptap/core' {
1071
1052
  interface Commands<ReturnType> {
1072
- excalidraw: {
1073
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
1053
+ twitter: {
1054
+ /**
1055
+ * Insert a tweet
1056
+ * @param options The tweet attributes
1057
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
1058
+ */
1059
+ setTweet: (options: SetTweetOptions) => ReturnType;
1060
+ updateTweet: (options: SetTweetOptions) => ReturnType;
1061
+ };
1062
+ }
1063
+ }
1064
+
1065
+
1066
+ declare module '@tiptap/core' {
1067
+ interface Commands<ReturnType> {
1068
+ exportWord: {
1069
+ exportToWord: () => ReturnType;
1074
1070
  };
1075
1071
  }
1076
1072
  }
@@ -1108,9 +1104,8 @@ declare module '@tiptap/core' {
1108
1104
 
1109
1105
  declare module '@tiptap/core' {
1110
1106
  interface Commands<ReturnType> {
1111
- drawer: {
1112
- setDrawer: (options: any, replace?: any) => ReturnType;
1113
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1107
+ attachment: {
1108
+ setAttachment: (attrs?: unknown) => ReturnType;
1114
1109
  };
1115
1110
  }
1116
1111
  }
@@ -1118,14 +1113,9 @@ declare module '@tiptap/core' {
1118
1113
 
1119
1114
  declare module '@tiptap/core' {
1120
1115
  interface Commands<ReturnType> {
1121
- twitter: {
1122
- /**
1123
- * Insert a tweet
1124
- * @param options The tweet attributes
1125
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
1126
- */
1127
- setTweet: (options: SetTweetOptions) => ReturnType;
1128
- updateTweet: (options: SetTweetOptions) => ReturnType;
1116
+ tableOfContents: {
1117
+ setTableOfContents: () => ReturnType;
1118
+ removeTableOfContents: () => ReturnType;
1129
1119
  };
1130
1120
  }
1131
1121
  }
@@ -1133,8 +1123,18 @@ declare module '@tiptap/core' {
1133
1123
 
1134
1124
  declare module '@tiptap/core' {
1135
1125
  interface Commands<ReturnType> {
1136
- attachment: {
1137
- setAttachment: (attrs?: unknown) => ReturnType;
1126
+ drawer: {
1127
+ setDrawer: (options: any, replace?: any) => ReturnType;
1128
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1129
+ };
1130
+ }
1131
+ }
1132
+
1133
+
1134
+ declare module '@tiptap/core' {
1135
+ interface Commands<ReturnType> {
1136
+ excalidraw: {
1137
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
1138
1138
  };
1139
1139
  }
1140
1140
  }
@@ -918,42 +918,6 @@ declare module '@tiptap/core' {
918
918
  }
919
919
 
920
920
 
921
- declare module '@tiptap/core' {
922
- interface Commands<ReturnType> {
923
- lineHeight: {
924
- setLineHeight: (lineHeight: string) => ReturnType;
925
- unsetLineHeight: () => ReturnType;
926
- };
927
- }
928
- }
929
-
930
-
931
- declare module '@tiptap/core' {
932
- interface Commands<ReturnType> {
933
- indent: {
934
- /**
935
- * Set the indent attribute
936
- */
937
- indent: () => ReturnType;
938
- /**
939
- * Set the outdent attribute
940
- */
941
- outdent: () => ReturnType;
942
- };
943
- }
944
- }
945
-
946
-
947
- declare module '@tiptap/core' {
948
- interface Commands<ReturnType> {
949
- tableCellBackground: {
950
- setTableCellBackground: (color: string) => ReturnType;
951
- unsetTableCellBackground: () => ReturnType;
952
- };
953
- }
954
- }
955
-
956
-
957
921
  declare module '@tiptap/core' {
958
922
  interface Commands<ReturnType> {
959
923
  imageUpload: {
@@ -974,6 +938,21 @@ declare module '@tiptap/core' {
974
938
  }
975
939
 
976
940
 
941
+ declare module '@tiptap/core' {
942
+ interface Commands<ReturnType> {
943
+ iframe: {
944
+ /**
945
+ * Add an iframe
946
+ */
947
+ setIframe: (options: {
948
+ src: string;
949
+ service: string;
950
+ }) => ReturnType;
951
+ };
952
+ }
953
+ }
954
+
955
+
977
956
  declare module '@tiptap/core' {
978
957
  interface Commands<ReturnType> {
979
958
  search: {
@@ -991,13 +970,8 @@ declare module '@tiptap/core' {
991
970
 
992
971
  declare module '@tiptap/core' {
993
972
  interface Commands<ReturnType> {
994
- columns: {
995
- insertColumns: (attrs?: {
996
- cols: number;
997
- }) => ReturnType;
998
- addColBefore: () => ReturnType;
999
- addColAfter: () => ReturnType;
1000
- deleteCol: () => ReturnType;
973
+ painter: {
974
+ setPainter: (marks: Mark[]) => ReturnType;
1001
975
  };
1002
976
  }
1003
977
  }
@@ -1005,9 +979,9 @@ declare module '@tiptap/core' {
1005
979
 
1006
980
  declare module '@tiptap/core' {
1007
981
  interface Commands<ReturnType> {
1008
- tableOfContents: {
1009
- setTableOfContents: () => ReturnType;
1010
- removeTableOfContents: () => ReturnType;
982
+ tableCellBackground: {
983
+ setTableCellBackground: (color: string) => ReturnType;
984
+ unsetTableCellBackground: () => ReturnType;
1011
985
  };
1012
986
  }
1013
987
  }
@@ -1015,8 +989,15 @@ declare module '@tiptap/core' {
1015
989
 
1016
990
  declare module '@tiptap/core' {
1017
991
  interface Commands<ReturnType> {
1018
- painter: {
1019
- setPainter: (marks: Mark[]) => ReturnType;
992
+ indent: {
993
+ /**
994
+ * Set the indent attribute
995
+ */
996
+ indent: () => ReturnType;
997
+ /**
998
+ * Set the outdent attribute
999
+ */
1000
+ outdent: () => ReturnType;
1020
1001
  };
1021
1002
  }
1022
1003
  }
@@ -1024,8 +1005,11 @@ declare module '@tiptap/core' {
1024
1005
 
1025
1006
  declare module '@tiptap/core' {
1026
1007
  interface Commands<ReturnType> {
1027
- katex: {
1028
- setKatex: (arg?: IKatexAttrs) => ReturnType;
1008
+ emoji: {
1009
+ setEmoji: (emoji: {
1010
+ name: string;
1011
+ emoji: string;
1012
+ }) => ReturnType;
1029
1013
  };
1030
1014
  }
1031
1015
  }
@@ -1033,14 +1017,13 @@ declare module '@tiptap/core' {
1033
1017
 
1034
1018
  declare module '@tiptap/core' {
1035
1019
  interface Commands<ReturnType> {
1036
- iframe: {
1037
- /**
1038
- * Add an iframe
1039
- */
1040
- setIframe: (options: {
1041
- src: string;
1042
- service: string;
1020
+ columns: {
1021
+ insertColumns: (attrs?: {
1022
+ cols: number;
1043
1023
  }) => ReturnType;
1024
+ addColBefore: () => ReturnType;
1025
+ addColAfter: () => ReturnType;
1026
+ deleteCol: () => ReturnType;
1044
1027
  };
1045
1028
  }
1046
1029
  }
@@ -1048,8 +1031,9 @@ declare module '@tiptap/core' {
1048
1031
 
1049
1032
  declare module '@tiptap/core' {
1050
1033
  interface Commands<ReturnType> {
1051
- exportWord: {
1052
- exportToWord: () => ReturnType;
1034
+ lineHeight: {
1035
+ setLineHeight: (lineHeight: string) => ReturnType;
1036
+ unsetLineHeight: () => ReturnType;
1053
1037
  };
1054
1038
  }
1055
1039
  }
@@ -1057,11 +1041,8 @@ declare module '@tiptap/core' {
1057
1041
 
1058
1042
  declare module '@tiptap/core' {
1059
1043
  interface Commands<ReturnType> {
1060
- emoji: {
1061
- setEmoji: (emoji: {
1062
- name: string;
1063
- emoji: string;
1064
- }) => ReturnType;
1044
+ katex: {
1045
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
1065
1046
  };
1066
1047
  }
1067
1048
  }
@@ -1069,8 +1050,23 @@ declare module '@tiptap/core' {
1069
1050
 
1070
1051
  declare module '@tiptap/core' {
1071
1052
  interface Commands<ReturnType> {
1072
- excalidraw: {
1073
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
1053
+ twitter: {
1054
+ /**
1055
+ * Insert a tweet
1056
+ * @param options The tweet attributes
1057
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
1058
+ */
1059
+ setTweet: (options: SetTweetOptions) => ReturnType;
1060
+ updateTweet: (options: SetTweetOptions) => ReturnType;
1061
+ };
1062
+ }
1063
+ }
1064
+
1065
+
1066
+ declare module '@tiptap/core' {
1067
+ interface Commands<ReturnType> {
1068
+ exportWord: {
1069
+ exportToWord: () => ReturnType;
1074
1070
  };
1075
1071
  }
1076
1072
  }
@@ -1108,9 +1104,8 @@ declare module '@tiptap/core' {
1108
1104
 
1109
1105
  declare module '@tiptap/core' {
1110
1106
  interface Commands<ReturnType> {
1111
- drawer: {
1112
- setDrawer: (options: any, replace?: any) => ReturnType;
1113
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1107
+ attachment: {
1108
+ setAttachment: (attrs?: unknown) => ReturnType;
1114
1109
  };
1115
1110
  }
1116
1111
  }
@@ -1118,14 +1113,9 @@ declare module '@tiptap/core' {
1118
1113
 
1119
1114
  declare module '@tiptap/core' {
1120
1115
  interface Commands<ReturnType> {
1121
- twitter: {
1122
- /**
1123
- * Insert a tweet
1124
- * @param options The tweet attributes
1125
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
1126
- */
1127
- setTweet: (options: SetTweetOptions) => ReturnType;
1128
- updateTweet: (options: SetTweetOptions) => ReturnType;
1116
+ tableOfContents: {
1117
+ setTableOfContents: () => ReturnType;
1118
+ removeTableOfContents: () => ReturnType;
1129
1119
  };
1130
1120
  }
1131
1121
  }
@@ -1133,8 +1123,18 @@ declare module '@tiptap/core' {
1133
1123
 
1134
1124
  declare module '@tiptap/core' {
1135
1125
  interface Commands<ReturnType> {
1136
- attachment: {
1137
- setAttachment: (attrs?: unknown) => ReturnType;
1126
+ drawer: {
1127
+ setDrawer: (options: any, replace?: any) => ReturnType;
1128
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1129
+ };
1130
+ }
1131
+ }
1132
+
1133
+
1134
+ declare module '@tiptap/core' {
1135
+ interface Commands<ReturnType> {
1136
+ excalidraw: {
1137
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
1138
1138
  };
1139
1139
  }
1140
1140
  }
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.23",
4
+ "version": "0.2.24",
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",