reactjs-tiptap-editor-pro 0.2.42 → 0.2.43

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.
@@ -950,9 +950,9 @@ declare module '@tiptap/core' {
950
950
 
951
951
  declare module '@tiptap/core' {
952
952
  interface Commands<ReturnType> {
953
- tableOfContents: {
954
- setTableOfContents: () => ReturnType;
955
- removeTableOfContents: () => ReturnType;
953
+ tableCellBackground: {
954
+ setTableCellBackground: (color: string) => ReturnType;
955
+ unsetTableCellBackground: () => ReturnType;
956
956
  };
957
957
  }
958
958
  }
@@ -960,15 +960,11 @@ declare module '@tiptap/core' {
960
960
 
961
961
  declare module '@tiptap/core' {
962
962
  interface Commands<ReturnType> {
963
- indent: {
964
- /**
965
- * Set the indent attribute
966
- */
967
- indent: () => ReturnType;
968
- /**
969
- * Set the outdent attribute
970
- */
971
- outdent: () => ReturnType;
963
+ emoji: {
964
+ setEmoji: (emoji: {
965
+ name: string;
966
+ emoji: string;
967
+ }) => ReturnType;
972
968
  };
973
969
  }
974
970
  }
@@ -976,8 +972,8 @@ declare module '@tiptap/core' {
976
972
 
977
973
  declare module '@tiptap/core' {
978
974
  interface Commands<ReturnType> {
979
- exportWord: {
980
- exportToWord: () => ReturnType;
975
+ katex: {
976
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
981
977
  };
982
978
  }
983
979
  }
@@ -999,17 +995,14 @@ declare module '@tiptap/core' {
999
995
 
1000
996
  declare module '@tiptap/core' {
1001
997
  interface Commands<ReturnType> {
1002
- katex: {
1003
- setKatex: (arg?: IKatexAttrs) => ReturnType;
1004
- };
1005
- }
1006
- }
1007
-
1008
-
1009
- declare module '@tiptap/core' {
1010
- interface Commands<ReturnType> {
1011
- painter: {
1012
- setPainter: (marks: Mark[]) => ReturnType;
998
+ search: {
999
+ setSearchTerm: (searchTerm: string) => ReturnType;
1000
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
1001
+ replace: () => ReturnType;
1002
+ replaceAll: () => ReturnType;
1003
+ goToPrevSearchResult: () => void;
1004
+ goToNextSearchResult: () => void;
1005
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
1013
1006
  };
1014
1007
  }
1015
1008
  }
@@ -1017,11 +1010,15 @@ declare module '@tiptap/core' {
1017
1010
 
1018
1011
  declare module '@tiptap/core' {
1019
1012
  interface Commands<ReturnType> {
1020
- emoji: {
1021
- setEmoji: (emoji: {
1022
- name: string;
1023
- emoji: string;
1024
- }) => ReturnType;
1013
+ indent: {
1014
+ /**
1015
+ * Set the indent attribute
1016
+ */
1017
+ indent: () => ReturnType;
1018
+ /**
1019
+ * Set the outdent attribute
1020
+ */
1021
+ outdent: () => ReturnType;
1025
1022
  };
1026
1023
  }
1027
1024
  }
@@ -1029,14 +1026,8 @@ declare module '@tiptap/core' {
1029
1026
 
1030
1027
  declare module '@tiptap/core' {
1031
1028
  interface Commands<ReturnType> {
1032
- search: {
1033
- setSearchTerm: (searchTerm: string) => ReturnType;
1034
- setReplaceTerm: (replaceTerm: string) => ReturnType;
1035
- replace: () => ReturnType;
1036
- replaceAll: () => ReturnType;
1037
- goToPrevSearchResult: () => void;
1038
- goToNextSearchResult: () => void;
1039
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
1029
+ painter: {
1030
+ setPainter: (marks: Mark[]) => ReturnType;
1040
1031
  };
1041
1032
  }
1042
1033
  }
@@ -1059,18 +1050,9 @@ declare module '@tiptap/core' {
1059
1050
 
1060
1051
  declare module '@tiptap/core' {
1061
1052
  interface Commands<ReturnType> {
1062
- tableCellBackground: {
1063
- setTableCellBackground: (color: string) => ReturnType;
1064
- unsetTableCellBackground: () => ReturnType;
1065
- };
1066
- }
1067
- }
1068
-
1069
-
1070
- declare module '@tiptap/core' {
1071
- interface Commands<ReturnType> {
1072
- attachment: {
1073
- setAttachment: (attrs?: unknown) => ReturnType;
1053
+ drawer: {
1054
+ setDrawer: (options: any, replace?: any) => ReturnType;
1055
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1074
1056
  };
1075
1057
  }
1076
1058
  }
@@ -1096,16 +1078,6 @@ declare module '@tiptap/core' {
1096
1078
  }
1097
1079
 
1098
1080
 
1099
- declare module '@tiptap/core' {
1100
- interface Commands<ReturnType> {
1101
- mermaid: {
1102
- setMermaid: (options: any, replace?: any) => ReturnType;
1103
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1104
- };
1105
- }
1106
- }
1107
-
1108
-
1109
1081
  declare module '@tiptap/core' {
1110
1082
  interface Commands<ReturnType> {
1111
1083
  twitter: {
@@ -1123,9 +1095,37 @@ declare module '@tiptap/core' {
1123
1095
 
1124
1096
  declare module '@tiptap/core' {
1125
1097
  interface Commands<ReturnType> {
1126
- drawer: {
1127
- setDrawer: (options: any, replace?: any) => ReturnType;
1128
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1098
+ exportWord: {
1099
+ exportToWord: () => ReturnType;
1100
+ };
1101
+ }
1102
+ }
1103
+
1104
+
1105
+ declare module '@tiptap/core' {
1106
+ interface Commands<ReturnType> {
1107
+ attachment: {
1108
+ setAttachment: (attrs?: unknown) => ReturnType;
1109
+ };
1110
+ }
1111
+ }
1112
+
1113
+
1114
+ declare module '@tiptap/core' {
1115
+ interface Commands<ReturnType> {
1116
+ tableOfContents: {
1117
+ setTableOfContents: () => ReturnType;
1118
+ removeTableOfContents: () => ReturnType;
1119
+ };
1120
+ }
1121
+ }
1122
+
1123
+
1124
+ declare module '@tiptap/core' {
1125
+ interface Commands<ReturnType> {
1126
+ mermaid: {
1127
+ setMermaid: (options: any, replace?: any) => ReturnType;
1128
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1129
1129
  };
1130
1130
  }
1131
1131
  }
@@ -950,9 +950,9 @@ declare module '@tiptap/core' {
950
950
 
951
951
  declare module '@tiptap/core' {
952
952
  interface Commands<ReturnType> {
953
- tableOfContents: {
954
- setTableOfContents: () => ReturnType;
955
- removeTableOfContents: () => ReturnType;
953
+ tableCellBackground: {
954
+ setTableCellBackground: (color: string) => ReturnType;
955
+ unsetTableCellBackground: () => ReturnType;
956
956
  };
957
957
  }
958
958
  }
@@ -960,15 +960,11 @@ declare module '@tiptap/core' {
960
960
 
961
961
  declare module '@tiptap/core' {
962
962
  interface Commands<ReturnType> {
963
- indent: {
964
- /**
965
- * Set the indent attribute
966
- */
967
- indent: () => ReturnType;
968
- /**
969
- * Set the outdent attribute
970
- */
971
- outdent: () => ReturnType;
963
+ emoji: {
964
+ setEmoji: (emoji: {
965
+ name: string;
966
+ emoji: string;
967
+ }) => ReturnType;
972
968
  };
973
969
  }
974
970
  }
@@ -976,8 +972,8 @@ declare module '@tiptap/core' {
976
972
 
977
973
  declare module '@tiptap/core' {
978
974
  interface Commands<ReturnType> {
979
- exportWord: {
980
- exportToWord: () => ReturnType;
975
+ katex: {
976
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
981
977
  };
982
978
  }
983
979
  }
@@ -999,17 +995,14 @@ declare module '@tiptap/core' {
999
995
 
1000
996
  declare module '@tiptap/core' {
1001
997
  interface Commands<ReturnType> {
1002
- katex: {
1003
- setKatex: (arg?: IKatexAttrs) => ReturnType;
1004
- };
1005
- }
1006
- }
1007
-
1008
-
1009
- declare module '@tiptap/core' {
1010
- interface Commands<ReturnType> {
1011
- painter: {
1012
- setPainter: (marks: Mark[]) => ReturnType;
998
+ search: {
999
+ setSearchTerm: (searchTerm: string) => ReturnType;
1000
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
1001
+ replace: () => ReturnType;
1002
+ replaceAll: () => ReturnType;
1003
+ goToPrevSearchResult: () => void;
1004
+ goToNextSearchResult: () => void;
1005
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
1013
1006
  };
1014
1007
  }
1015
1008
  }
@@ -1017,11 +1010,15 @@ declare module '@tiptap/core' {
1017
1010
 
1018
1011
  declare module '@tiptap/core' {
1019
1012
  interface Commands<ReturnType> {
1020
- emoji: {
1021
- setEmoji: (emoji: {
1022
- name: string;
1023
- emoji: string;
1024
- }) => ReturnType;
1013
+ indent: {
1014
+ /**
1015
+ * Set the indent attribute
1016
+ */
1017
+ indent: () => ReturnType;
1018
+ /**
1019
+ * Set the outdent attribute
1020
+ */
1021
+ outdent: () => ReturnType;
1025
1022
  };
1026
1023
  }
1027
1024
  }
@@ -1029,14 +1026,8 @@ declare module '@tiptap/core' {
1029
1026
 
1030
1027
  declare module '@tiptap/core' {
1031
1028
  interface Commands<ReturnType> {
1032
- search: {
1033
- setSearchTerm: (searchTerm: string) => ReturnType;
1034
- setReplaceTerm: (replaceTerm: string) => ReturnType;
1035
- replace: () => ReturnType;
1036
- replaceAll: () => ReturnType;
1037
- goToPrevSearchResult: () => void;
1038
- goToNextSearchResult: () => void;
1039
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
1029
+ painter: {
1030
+ setPainter: (marks: Mark[]) => ReturnType;
1040
1031
  };
1041
1032
  }
1042
1033
  }
@@ -1059,18 +1050,9 @@ declare module '@tiptap/core' {
1059
1050
 
1060
1051
  declare module '@tiptap/core' {
1061
1052
  interface Commands<ReturnType> {
1062
- tableCellBackground: {
1063
- setTableCellBackground: (color: string) => ReturnType;
1064
- unsetTableCellBackground: () => ReturnType;
1065
- };
1066
- }
1067
- }
1068
-
1069
-
1070
- declare module '@tiptap/core' {
1071
- interface Commands<ReturnType> {
1072
- attachment: {
1073
- setAttachment: (attrs?: unknown) => ReturnType;
1053
+ drawer: {
1054
+ setDrawer: (options: any, replace?: any) => ReturnType;
1055
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1074
1056
  };
1075
1057
  }
1076
1058
  }
@@ -1096,16 +1078,6 @@ declare module '@tiptap/core' {
1096
1078
  }
1097
1079
 
1098
1080
 
1099
- declare module '@tiptap/core' {
1100
- interface Commands<ReturnType> {
1101
- mermaid: {
1102
- setMermaid: (options: any, replace?: any) => ReturnType;
1103
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1104
- };
1105
- }
1106
- }
1107
-
1108
-
1109
1081
  declare module '@tiptap/core' {
1110
1082
  interface Commands<ReturnType> {
1111
1083
  twitter: {
@@ -1123,9 +1095,37 @@ declare module '@tiptap/core' {
1123
1095
 
1124
1096
  declare module '@tiptap/core' {
1125
1097
  interface Commands<ReturnType> {
1126
- drawer: {
1127
- setDrawer: (options: any, replace?: any) => ReturnType;
1128
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1098
+ exportWord: {
1099
+ exportToWord: () => ReturnType;
1100
+ };
1101
+ }
1102
+ }
1103
+
1104
+
1105
+ declare module '@tiptap/core' {
1106
+ interface Commands<ReturnType> {
1107
+ attachment: {
1108
+ setAttachment: (attrs?: unknown) => ReturnType;
1109
+ };
1110
+ }
1111
+ }
1112
+
1113
+
1114
+ declare module '@tiptap/core' {
1115
+ interface Commands<ReturnType> {
1116
+ tableOfContents: {
1117
+ setTableOfContents: () => ReturnType;
1118
+ removeTableOfContents: () => ReturnType;
1119
+ };
1120
+ }
1121
+ }
1122
+
1123
+
1124
+ declare module '@tiptap/core' {
1125
+ interface Commands<ReturnType> {
1126
+ mermaid: {
1127
+ setMermaid: (options: any, replace?: any) => ReturnType;
1128
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1129
1129
  };
1130
1130
  }
1131
1131
  }
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.42",
4
+ "version": "0.2.43",
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",
@@ -93,6 +93,25 @@
93
93
  "engines": {
94
94
  "node": ">=18.0.0"
95
95
  },
96
+ "scripts": {
97
+ "build:lib": "vite build && pnpm modify-css",
98
+ "build:lib:dev": "vite build --mode development --watch",
99
+ "build:playground": "pnpm build:lib && pnpm --dir ./playground run build",
100
+ "docs:dev": "pnpm --parallel --filter docs... dev",
101
+ "docs:build": "pnpm --filter docs... build",
102
+ "docs:preview": "pnpm -C docs preview",
103
+ "playground": "pnpm --dir ./playground run dev",
104
+ "preview": "pnpm --dir ./playground run preview",
105
+ "lint": "eslint src --quiet",
106
+ "lint:fix": "eslint src --fix --quiet",
107
+ "type-check": "tsc",
108
+ "verify-commit": "verify-commit-msg",
109
+ "prepare": "git-scm-hooks",
110
+ "release": "bumpp -r",
111
+ "gen-changelog": "esno ./scripts/genExtensions.ts && esno ./scripts/changelog.ts",
112
+ "modify-css": "esno ./scripts/modifyCss.ts",
113
+ "gen-contributors": "contributorkit"
114
+ },
96
115
  "dependencies": {
97
116
  "@radix-ui/react-checkbox": "^1.1.4",
98
117
  "@radix-ui/react-dialog": "^1.1.6",
@@ -219,23 +238,5 @@
219
238
  "git-hooks": {
220
239
  "pre-commit": "npm run lint:fix",
221
240
  "commit-msg": "npm run verify-commit"
222
- },
223
- "scripts": {
224
- "build:lib": "vite build && pnpm modify-css",
225
- "build:lib:dev": "vite build --mode development --watch",
226
- "build:playground": "pnpm build:lib && pnpm --dir ./playground run build",
227
- "docs:dev": "pnpm --parallel --filter docs... dev",
228
- "docs:build": "pnpm --filter docs... build",
229
- "docs:preview": "pnpm -C docs preview",
230
- "playground": "pnpm --dir ./playground run dev",
231
- "preview": "pnpm --dir ./playground run preview",
232
- "lint": "eslint src --quiet",
233
- "lint:fix": "eslint src --fix --quiet",
234
- "type-check": "tsc",
235
- "verify-commit": "verify-commit-msg",
236
- "release": "bumpp -r",
237
- "gen-changelog": "esno ./scripts/genExtensions.ts && esno ./scripts/changelog.ts",
238
- "modify-css": "esno ./scripts/modifyCss.ts",
239
- "gen-contributors": "contributorkit"
240
241
  }
241
- }
242
+ }