reactjs-tiptap-editor-pro 0.2.27 → 0.2.29

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.
@@ -920,9 +920,8 @@ declare module '@tiptap/core' {
920
920
 
921
921
  declare module '@tiptap/core' {
922
922
  interface Commands<ReturnType> {
923
- lineHeight: {
924
- setLineHeight: (lineHeight: string) => ReturnType;
925
- unsetLineHeight: () => ReturnType;
923
+ painter: {
924
+ setPainter: (marks: Mark[]) => ReturnType;
926
925
  };
927
926
  }
928
927
  }
@@ -930,8 +929,15 @@ declare module '@tiptap/core' {
930
929
 
931
930
  declare module '@tiptap/core' {
932
931
  interface Commands<ReturnType> {
933
- katex: {
934
- setKatex: (arg?: IKatexAttrs) => ReturnType;
932
+ indent: {
933
+ /**
934
+ * Set the indent attribute
935
+ */
936
+ indent: () => ReturnType;
937
+ /**
938
+ * Set the outdent attribute
939
+ */
940
+ outdent: () => ReturnType;
935
941
  };
936
942
  }
937
943
  }
@@ -939,14 +945,19 @@ declare module '@tiptap/core' {
939
945
 
940
946
  declare module '@tiptap/core' {
941
947
  interface Commands<ReturnType> {
942
- iframe: {
948
+ imageUpload: {
943
949
  /**
944
- * Add an iframe
950
+ * Add an image
945
951
  */
946
- setIframe: (options: {
947
- src: string;
948
- service: string;
949
- }) => ReturnType;
952
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
953
+ /**
954
+ * Update an image
955
+ */
956
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
957
+ /**
958
+ * Set image alignment
959
+ */
960
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
950
961
  };
951
962
  }
952
963
  }
@@ -954,11 +965,13 @@ declare module '@tiptap/core' {
954
965
 
955
966
  declare module '@tiptap/core' {
956
967
  interface Commands<ReturnType> {
957
- emoji: {
958
- setEmoji: (emoji: {
959
- name: string;
960
- emoji: string;
968
+ columns: {
969
+ insertColumns: (attrs?: {
970
+ cols: number;
961
971
  }) => ReturnType;
972
+ addColBefore: () => ReturnType;
973
+ addColAfter: () => ReturnType;
974
+ deleteCol: () => ReturnType;
962
975
  };
963
976
  }
964
977
  }
@@ -966,8 +979,9 @@ declare module '@tiptap/core' {
966
979
 
967
980
  declare module '@tiptap/core' {
968
981
  interface Commands<ReturnType> {
969
- painter: {
970
- setPainter: (marks: Mark[]) => ReturnType;
982
+ lineHeight: {
983
+ setLineHeight: (lineHeight: string) => ReturnType;
984
+ unsetLineHeight: () => ReturnType;
971
985
  };
972
986
  }
973
987
  }
@@ -975,8 +989,9 @@ declare module '@tiptap/core' {
975
989
 
976
990
  declare module '@tiptap/core' {
977
991
  interface Commands<ReturnType> {
978
- exportWord: {
979
- exportToWord: () => ReturnType;
992
+ tableCellBackground: {
993
+ setTableCellBackground: (color: string) => ReturnType;
994
+ unsetTableCellBackground: () => ReturnType;
980
995
  };
981
996
  }
982
997
  }
@@ -984,19 +999,14 @@ declare module '@tiptap/core' {
984
999
 
985
1000
  declare module '@tiptap/core' {
986
1001
  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;
1002
+ iframe: {
996
1003
  /**
997
- * Set image alignment
1004
+ * Add an iframe
998
1005
  */
999
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
1006
+ setIframe: (options: {
1007
+ src: string;
1008
+ service: string;
1009
+ }) => ReturnType;
1000
1010
  };
1001
1011
  }
1002
1012
  }
@@ -1019,9 +1029,9 @@ declare module '@tiptap/core' {
1019
1029
 
1020
1030
  declare module '@tiptap/core' {
1021
1031
  interface Commands<ReturnType> {
1022
- tableCellBackground: {
1023
- setTableCellBackground: (color: string) => ReturnType;
1024
- unsetTableCellBackground: () => ReturnType;
1032
+ tableOfContents: {
1033
+ setTableOfContents: () => ReturnType;
1034
+ removeTableOfContents: () => ReturnType;
1025
1035
  };
1026
1036
  }
1027
1037
  }
@@ -1029,15 +1039,11 @@ declare module '@tiptap/core' {
1029
1039
 
1030
1040
  declare module '@tiptap/core' {
1031
1041
  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;
1042
+ emoji: {
1043
+ setEmoji: (emoji: {
1044
+ name: string;
1045
+ emoji: string;
1046
+ }) => ReturnType;
1041
1047
  };
1042
1048
  }
1043
1049
  }
@@ -1045,13 +1051,8 @@ declare module '@tiptap/core' {
1045
1051
 
1046
1052
  declare module '@tiptap/core' {
1047
1053
  interface Commands<ReturnType> {
1048
- columns: {
1049
- insertColumns: (attrs?: {
1050
- cols: number;
1051
- }) => ReturnType;
1052
- addColBefore: () => ReturnType;
1053
- addColAfter: () => ReturnType;
1054
- deleteCol: () => ReturnType;
1054
+ exportWord: {
1055
+ exportToWord: () => ReturnType;
1055
1056
  };
1056
1057
  }
1057
1058
  }
@@ -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
  }
@@ -1078,19 +1078,9 @@ declare module '@tiptap/core' {
1078
1078
 
1079
1079
  declare module '@tiptap/core' {
1080
1080
  interface Commands<ReturnType> {
1081
- imageGifUpload: {
1082
- /**
1083
- * Add an image gif
1084
- */
1085
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1086
- /**
1087
- * Update an image gif
1088
- */
1089
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1090
- /**
1091
- * Set image alignment
1092
- */
1093
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1081
+ mermaid: {
1082
+ setMermaid: (options: any, replace?: any) => ReturnType;
1083
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1094
1084
  };
1095
1085
  }
1096
1086
  }
@@ -1098,14 +1088,8 @@ declare module '@tiptap/core' {
1098
1088
 
1099
1089
  declare module '@tiptap/core' {
1100
1090
  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;
1091
+ attachment: {
1092
+ setAttachment: (attrs?: unknown) => ReturnType;
1109
1093
  };
1110
1094
  }
1111
1095
  }
@@ -1123,9 +1107,14 @@ declare module '@tiptap/core' {
1123
1107
 
1124
1108
  declare module '@tiptap/core' {
1125
1109
  interface Commands<ReturnType> {
1126
- mermaid: {
1127
- setMermaid: (options: any, replace?: any) => ReturnType;
1128
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1110
+ twitter: {
1111
+ /**
1112
+ * Insert a tweet
1113
+ * @param options The tweet attributes
1114
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
1115
+ */
1116
+ setTweet: (options: SetTweetOptions) => ReturnType;
1117
+ updateTweet: (options: SetTweetOptions) => ReturnType;
1129
1118
  };
1130
1119
  }
1131
1120
  }
@@ -1133,8 +1122,19 @@ declare module '@tiptap/core' {
1133
1122
 
1134
1123
  declare module '@tiptap/core' {
1135
1124
  interface Commands<ReturnType> {
1136
- attachment: {
1137
- setAttachment: (attrs?: unknown) => ReturnType;
1125
+ imageGifUpload: {
1126
+ /**
1127
+ * Add an image gif
1128
+ */
1129
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1130
+ /**
1131
+ * Update an image gif
1132
+ */
1133
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1134
+ /**
1135
+ * Set image alignment
1136
+ */
1137
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
1138
1138
  };
1139
1139
  }
1140
1140
  }