reactjs-tiptap-editor 0.2.11 → 0.2.12

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,18 +920,9 @@ declare module '@tiptap/core' {
920
920
 
921
921
  declare module '@tiptap/core' {
922
922
  interface Commands<ReturnType> {
923
- tableCellBackground: {
924
- setTableCellBackground: (color: string) => ReturnType;
925
- unsetTableCellBackground: () => ReturnType;
926
- };
927
- }
928
- }
929
-
930
-
931
- declare module '@tiptap/core' {
932
- interface Commands<ReturnType> {
933
- painter: {
934
- setPainter: (marks: Mark[]) => ReturnType;
923
+ lineHeight: {
924
+ setLineHeight: (lineHeight: string) => ReturnType;
925
+ unsetLineHeight: () => ReturnType;
935
926
  };
936
927
  }
937
928
  }
@@ -939,13 +930,19 @@ declare module '@tiptap/core' {
939
930
 
940
931
  declare module '@tiptap/core' {
941
932
  interface Commands<ReturnType> {
942
- columns: {
943
- insertColumns: (attrs?: {
944
- cols: number;
945
- }) => ReturnType;
946
- addColBefore: () => ReturnType;
947
- addColAfter: () => ReturnType;
948
- deleteCol: () => 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;
949
946
  };
950
947
  }
951
948
  }
@@ -969,9 +966,11 @@ declare module '@tiptap/core' {
969
966
 
970
967
  declare module '@tiptap/core' {
971
968
  interface Commands<ReturnType> {
972
- lineHeight: {
973
- setLineHeight: (lineHeight: string) => ReturnType;
974
- unsetLineHeight: () => ReturnType;
969
+ emoji: {
970
+ setEmoji: (emoji: {
971
+ name: string;
972
+ emoji: string;
973
+ }) => ReturnType;
975
974
  };
976
975
  }
977
976
  }
@@ -979,11 +978,13 @@ declare module '@tiptap/core' {
979
978
 
980
979
  declare module '@tiptap/core' {
981
980
  interface Commands<ReturnType> {
982
- emoji: {
983
- setEmoji: (emoji: {
984
- name: string;
985
- emoji: string;
981
+ columns: {
982
+ insertColumns: (attrs?: {
983
+ cols: number;
986
984
  }) => ReturnType;
985
+ addColBefore: () => ReturnType;
986
+ addColAfter: () => ReturnType;
987
+ deleteCol: () => ReturnType;
987
988
  };
988
989
  }
989
990
  }
@@ -1006,19 +1007,17 @@ declare module '@tiptap/core' {
1006
1007
 
1007
1008
  declare module '@tiptap/core' {
1008
1009
  interface Commands<ReturnType> {
1009
- imageUpload: {
1010
- /**
1011
- * Add an image
1012
- */
1013
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1014
- /**
1015
- * Update an image
1016
- */
1017
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1018
- /**
1019
- * Set image alignment
1020
- */
1021
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
1010
+ painter: {
1011
+ setPainter: (marks: Mark[]) => ReturnType;
1012
+ };
1013
+ }
1014
+ }
1015
+
1016
+
1017
+ declare module '@tiptap/core' {
1018
+ interface Commands<ReturnType> {
1019
+ katex: {
1020
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
1022
1021
  };
1023
1022
  }
1024
1023
  }
@@ -1041,8 +1040,9 @@ declare module '@tiptap/core' {
1041
1040
 
1042
1041
  declare module '@tiptap/core' {
1043
1042
  interface Commands<ReturnType> {
1044
- katex: {
1045
- setKatex: (arg?: IKatexAttrs) => ReturnType;
1043
+ tableCellBackground: {
1044
+ setTableCellBackground: (color: string) => ReturnType;
1045
+ unsetTableCellBackground: () => ReturnType;
1046
1046
  };
1047
1047
  }
1048
1048
  }
@@ -1057,16 +1057,6 @@ declare module '@tiptap/core' {
1057
1057
  }
1058
1058
 
1059
1059
 
1060
- declare module '@tiptap/core' {
1061
- interface Commands<ReturnType> {
1062
- tableOfContents: {
1063
- setTableOfContents: () => ReturnType;
1064
- removeTableOfContents: () => ReturnType;
1065
- };
1066
- }
1067
- }
1068
-
1069
-
1070
1060
  declare module '@tiptap/core' {
1071
1061
  interface Commands<ReturnType> {
1072
1062
  excalidraw: {
@@ -1078,8 +1068,9 @@ declare module '@tiptap/core' {
1078
1068
 
1079
1069
  declare module '@tiptap/core' {
1080
1070
  interface Commands<ReturnType> {
1081
- attachment: {
1082
- setAttachment: (attrs?: unknown) => ReturnType;
1071
+ tableOfContents: {
1072
+ setTableOfContents: () => ReturnType;
1073
+ removeTableOfContents: () => ReturnType;
1083
1074
  };
1084
1075
  }
1085
1076
  }
@@ -1107,14 +1098,9 @@ declare module '@tiptap/core' {
1107
1098
 
1108
1099
  declare module '@tiptap/core' {
1109
1100
  interface Commands<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;
1101
+ drawer: {
1102
+ setDrawer: (options: any, replace?: any) => ReturnType;
1103
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1118
1104
  };
1119
1105
  }
1120
1106
  }
@@ -1122,9 +1108,9 @@ declare module '@tiptap/core' {
1122
1108
 
1123
1109
  declare module '@tiptap/core' {
1124
1110
  interface Commands<ReturnType> {
1125
- drawer: {
1126
- setDrawer: (options: any, replace?: any) => ReturnType;
1127
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1111
+ mermaid: {
1112
+ setMermaid: (options: any, replace?: any) => ReturnType;
1113
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1128
1114
  };
1129
1115
  }
1130
1116
  }
@@ -1132,9 +1118,23 @@ declare module '@tiptap/core' {
1132
1118
 
1133
1119
  declare module '@tiptap/core' {
1134
1120
  interface Commands<ReturnType> {
1135
- mermaid: {
1136
- setMermaid: (options: any, replace?: any) => ReturnType;
1137
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1121
+ attachment: {
1122
+ setAttachment: (attrs?: unknown) => ReturnType;
1123
+ };
1124
+ }
1125
+ }
1126
+
1127
+
1128
+ declare module '@tiptap/core' {
1129
+ interface Commands<ReturnType> {
1130
+ twitter: {
1131
+ /**
1132
+ * Insert a tweet
1133
+ * @param options The tweet attributes
1134
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
1135
+ */
1136
+ setTweet: (options: SetTweetOptions) => ReturnType;
1137
+ updateTweet: (options: SetTweetOptions) => ReturnType;
1138
1138
  };
1139
1139
  }
1140
1140
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "reactjs-tiptap-editor",
3
3
  "type": "module",
4
- "version": "0.2.11",
4
+ "version": "0.2.12",
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",