reactjs-tiptap-editor 0.2.20 → 0.2.21

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.
@@ -936,9 +936,24 @@ declare module '@tiptap/core' {
936
936
 
937
937
  declare module '@tiptap/core' {
938
938
  interface Commands<ReturnType> {
939
- tableCellBackground: {
940
- setTableCellBackground: (color: string) => ReturnType;
941
- unsetTableCellBackground: () => ReturnType;
939
+ iframe: {
940
+ /**
941
+ * Add an iframe
942
+ */
943
+ setIframe: (options: {
944
+ src: string;
945
+ service: string;
946
+ }) => ReturnType;
947
+ };
948
+ }
949
+ }
950
+
951
+
952
+ declare module '@tiptap/core' {
953
+ interface Commands<ReturnType> {
954
+ lineHeight: {
955
+ setLineHeight: (lineHeight: string) => ReturnType;
956
+ unsetLineHeight: () => ReturnType;
942
957
  };
943
958
  }
944
959
  }
@@ -966,8 +981,9 @@ declare module '@tiptap/core' {
966
981
 
967
982
  declare module '@tiptap/core' {
968
983
  interface Commands<ReturnType> {
969
- katex: {
970
- setKatex: (arg?: IKatexAttrs) => ReturnType;
984
+ tableCellBackground: {
985
+ setTableCellBackground: (color: string) => ReturnType;
986
+ unsetTableCellBackground: () => ReturnType;
971
987
  };
972
988
  }
973
989
  }
@@ -975,13 +991,8 @@ declare module '@tiptap/core' {
975
991
 
976
992
  declare module '@tiptap/core' {
977
993
  interface Commands<ReturnType> {
978
- columns: {
979
- insertColumns: (attrs?: {
980
- cols: number;
981
- }) => ReturnType;
982
- addColBefore: () => ReturnType;
983
- addColAfter: () => ReturnType;
984
- deleteCol: () => ReturnType;
994
+ painter: {
995
+ setPainter: (marks: Mark[]) => ReturnType;
985
996
  };
986
997
  }
987
998
  }
@@ -989,11 +1000,14 @@ declare module '@tiptap/core' {
989
1000
 
990
1001
  declare module '@tiptap/core' {
991
1002
  interface Commands<ReturnType> {
992
- emoji: {
993
- setEmoji: (emoji: {
994
- name: string;
995
- emoji: string;
996
- }) => ReturnType;
1003
+ search: {
1004
+ setSearchTerm: (searchTerm: string) => ReturnType;
1005
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
1006
+ replace: () => ReturnType;
1007
+ replaceAll: () => ReturnType;
1008
+ goToPrevSearchResult: () => void;
1009
+ goToNextSearchResult: () => void;
1010
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
997
1011
  };
998
1012
  }
999
1013
  }
@@ -1001,9 +1015,11 @@ declare module '@tiptap/core' {
1001
1015
 
1002
1016
  declare module '@tiptap/core' {
1003
1017
  interface Commands<ReturnType> {
1004
- lineHeight: {
1005
- setLineHeight: (lineHeight: string) => ReturnType;
1006
- unsetLineHeight: () => ReturnType;
1018
+ emoji: {
1019
+ setEmoji: (emoji: {
1020
+ name: string;
1021
+ emoji: string;
1022
+ }) => ReturnType;
1007
1023
  };
1008
1024
  }
1009
1025
  }
@@ -1011,14 +1027,13 @@ declare module '@tiptap/core' {
1011
1027
 
1012
1028
  declare module '@tiptap/core' {
1013
1029
  interface Commands<ReturnType> {
1014
- iframe: {
1015
- /**
1016
- * Add an iframe
1017
- */
1018
- setIframe: (options: {
1019
- src: string;
1020
- service: string;
1030
+ columns: {
1031
+ insertColumns: (attrs?: {
1032
+ cols: number;
1021
1033
  }) => ReturnType;
1034
+ addColBefore: () => ReturnType;
1035
+ addColAfter: () => ReturnType;
1036
+ deleteCol: () => ReturnType;
1022
1037
  };
1023
1038
  }
1024
1039
  }
@@ -1026,14 +1041,8 @@ declare module '@tiptap/core' {
1026
1041
 
1027
1042
  declare module '@tiptap/core' {
1028
1043
  interface Commands<ReturnType> {
1029
- search: {
1030
- setSearchTerm: (searchTerm: string) => ReturnType;
1031
- setReplaceTerm: (replaceTerm: string) => ReturnType;
1032
- replace: () => ReturnType;
1033
- replaceAll: () => ReturnType;
1034
- goToPrevSearchResult: () => void;
1035
- goToNextSearchResult: () => void;
1036
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
1044
+ katex: {
1045
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
1037
1046
  };
1038
1047
  }
1039
1048
  }
@@ -1041,8 +1050,8 @@ declare module '@tiptap/core' {
1041
1050
 
1042
1051
  declare module '@tiptap/core' {
1043
1052
  interface Commands<ReturnType> {
1044
- painter: {
1045
- setPainter: (marks: Mark[]) => ReturnType;
1053
+ exportWord: {
1054
+ exportToWord: () => ReturnType;
1046
1055
  };
1047
1056
  }
1048
1057
  }
@@ -1050,8 +1059,8 @@ declare module '@tiptap/core' {
1050
1059
 
1051
1060
  declare module '@tiptap/core' {
1052
1061
  interface Commands<ReturnType> {
1053
- exportWord: {
1054
- exportToWord: () => ReturnType;
1062
+ excalidraw: {
1063
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
1055
1064
  };
1056
1065
  }
1057
1066
  }
@@ -1067,15 +1076,6 @@ declare module '@tiptap/core' {
1067
1076
  }
1068
1077
 
1069
1078
 
1070
- declare module '@tiptap/core' {
1071
- interface Commands<ReturnType> {
1072
- excalidraw: {
1073
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
1074
- };
1075
- }
1076
- }
1077
-
1078
-
1079
1079
  declare module '@tiptap/core' {
1080
1080
  interface Commands<ReturnType> {
1081
1081
  attachment: {
@@ -1105,16 +1105,6 @@ declare module '@tiptap/core' {
1105
1105
  }
1106
1106
 
1107
1107
 
1108
- declare module '@tiptap/core' {
1109
- interface Commands<ReturnType> {
1110
- drawer: {
1111
- setDrawer: (options: any, replace?: any) => ReturnType;
1112
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1113
- };
1114
- }
1115
- }
1116
-
1117
-
1118
1108
  declare module '@tiptap/core' {
1119
1109
  interface Commands<ReturnType> {
1120
1110
  twitter: {
@@ -1130,6 +1120,16 @@ declare module '@tiptap/core' {
1130
1120
  }
1131
1121
 
1132
1122
 
1123
+ declare module '@tiptap/core' {
1124
+ interface Commands<ReturnType> {
1125
+ drawer: {
1126
+ setDrawer: (options: any, replace?: any) => ReturnType;
1127
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1128
+ };
1129
+ }
1130
+ }
1131
+
1132
+
1133
1133
  declare module '@tiptap/core' {
1134
1134
  interface Commands<ReturnType> {
1135
1135
  mermaid: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "reactjs-tiptap-editor",
3
3
  "type": "module",
4
- "version": "0.2.20",
4
+ "version": "0.2.21",
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",