reactjs-tiptap-editor-pro 0.2.27 → 0.2.28

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