reactjs-tiptap-editor 0.2.4 → 0.2.5

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.
package/lib/index.d.cts CHANGED
@@ -242,16 +242,6 @@ declare module '@tiptap/core' {
242
242
  }
243
243
 
244
244
 
245
- declare module '@tiptap/core' {
246
- interface Commands<ReturnType> {
247
- lineHeight: {
248
- setLineHeight: (lineHeight: string) => ReturnType;
249
- unsetLineHeight: () => ReturnType;
250
- };
251
- }
252
- }
253
-
254
-
255
245
  declare module '@tiptap/core' {
256
246
  interface Commands<ReturnType> {
257
247
  indent: {
@@ -268,6 +258,16 @@ declare module '@tiptap/core' {
268
258
  }
269
259
 
270
260
 
261
+ declare module '@tiptap/core' {
262
+ interface Commands<ReturnType> {
263
+ lineHeight: {
264
+ setLineHeight: (lineHeight: string) => ReturnType;
265
+ unsetLineHeight: () => ReturnType;
266
+ };
267
+ }
268
+ }
269
+
270
+
271
271
  declare module '@tiptap/core' {
272
272
  interface Commands<ReturnType> {
273
273
  imageUpload: {
@@ -297,16 +297,6 @@ declare module '@tiptap/core' {
297
297
  }
298
298
 
299
299
 
300
- declare module '@tiptap/core' {
301
- interface Commands<ReturnType> {
302
- tableCellBackground: {
303
- setTableCellBackground: (color: string) => ReturnType;
304
- unsetTableCellBackground: () => ReturnType;
305
- };
306
- }
307
- }
308
-
309
-
310
300
  declare module '@tiptap/core' {
311
301
  interface Commands<ReturnType> {
312
302
  columns: {
@@ -336,6 +326,16 @@ declare module '@tiptap/core' {
336
326
  }
337
327
 
338
328
 
329
+ declare module '@tiptap/core' {
330
+ interface Commands<ReturnType> {
331
+ tableCellBackground: {
332
+ setTableCellBackground: (color: string) => ReturnType;
333
+ unsetTableCellBackground: () => ReturnType;
334
+ };
335
+ }
336
+ }
337
+
338
+
339
339
  declare module '@tiptap/core' {
340
340
  interface Commands<ReturnType> {
341
341
  emoji: {
@@ -400,6 +400,15 @@ declare module '@tiptap/core' {
400
400
  }
401
401
 
402
402
 
403
+ declare module '@tiptap/core' {
404
+ interface Commands<ReturnType> {
405
+ attachment: {
406
+ setAttachment: (attrs?: unknown) => ReturnType;
407
+ };
408
+ }
409
+ }
410
+
411
+
403
412
  declare module '@tiptap/core' {
404
413
  interface Commands<ReturnType> {
405
414
  imageGifUpload: {
@@ -422,8 +431,14 @@ declare module '@tiptap/core' {
422
431
 
423
432
  declare module '@tiptap/core' {
424
433
  interface Commands<ReturnType> {
425
- attachment: {
426
- setAttachment: (attrs?: unknown) => ReturnType;
434
+ twitter: {
435
+ /**
436
+ * Insert a tweet
437
+ * @param options The tweet attributes
438
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
439
+ */
440
+ setTweet: (options: SetTweetOptions) => ReturnType;
441
+ updateTweet: (options: SetTweetOptions) => ReturnType;
427
442
  };
428
443
  }
429
444
  }
@@ -437,18 +452,3 @@ declare module '@tiptap/core' {
437
452
  };
438
453
  }
439
454
  }
440
-
441
-
442
- declare module '@tiptap/core' {
443
- interface Commands<ReturnType> {
444
- twitter: {
445
- /**
446
- * Insert a tweet
447
- * @param options The tweet attributes
448
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
449
- */
450
- setTweet: (options: SetTweetOptions) => ReturnType;
451
- updateTweet: (options: SetTweetOptions) => ReturnType;
452
- };
453
- }
454
- }
package/lib/index.d.ts CHANGED
@@ -242,16 +242,6 @@ declare module '@tiptap/core' {
242
242
  }
243
243
 
244
244
 
245
- declare module '@tiptap/core' {
246
- interface Commands<ReturnType> {
247
- lineHeight: {
248
- setLineHeight: (lineHeight: string) => ReturnType;
249
- unsetLineHeight: () => ReturnType;
250
- };
251
- }
252
- }
253
-
254
-
255
245
  declare module '@tiptap/core' {
256
246
  interface Commands<ReturnType> {
257
247
  indent: {
@@ -268,6 +258,16 @@ declare module '@tiptap/core' {
268
258
  }
269
259
 
270
260
 
261
+ declare module '@tiptap/core' {
262
+ interface Commands<ReturnType> {
263
+ lineHeight: {
264
+ setLineHeight: (lineHeight: string) => ReturnType;
265
+ unsetLineHeight: () => ReturnType;
266
+ };
267
+ }
268
+ }
269
+
270
+
271
271
  declare module '@tiptap/core' {
272
272
  interface Commands<ReturnType> {
273
273
  imageUpload: {
@@ -297,16 +297,6 @@ declare module '@tiptap/core' {
297
297
  }
298
298
 
299
299
 
300
- declare module '@tiptap/core' {
301
- interface Commands<ReturnType> {
302
- tableCellBackground: {
303
- setTableCellBackground: (color: string) => ReturnType;
304
- unsetTableCellBackground: () => ReturnType;
305
- };
306
- }
307
- }
308
-
309
-
310
300
  declare module '@tiptap/core' {
311
301
  interface Commands<ReturnType> {
312
302
  columns: {
@@ -336,6 +326,16 @@ declare module '@tiptap/core' {
336
326
  }
337
327
 
338
328
 
329
+ declare module '@tiptap/core' {
330
+ interface Commands<ReturnType> {
331
+ tableCellBackground: {
332
+ setTableCellBackground: (color: string) => ReturnType;
333
+ unsetTableCellBackground: () => ReturnType;
334
+ };
335
+ }
336
+ }
337
+
338
+
339
339
  declare module '@tiptap/core' {
340
340
  interface Commands<ReturnType> {
341
341
  emoji: {
@@ -400,6 +400,15 @@ declare module '@tiptap/core' {
400
400
  }
401
401
 
402
402
 
403
+ declare module '@tiptap/core' {
404
+ interface Commands<ReturnType> {
405
+ attachment: {
406
+ setAttachment: (attrs?: unknown) => ReturnType;
407
+ };
408
+ }
409
+ }
410
+
411
+
403
412
  declare module '@tiptap/core' {
404
413
  interface Commands<ReturnType> {
405
414
  imageGifUpload: {
@@ -422,8 +431,14 @@ declare module '@tiptap/core' {
422
431
 
423
432
  declare module '@tiptap/core' {
424
433
  interface Commands<ReturnType> {
425
- attachment: {
426
- setAttachment: (attrs?: unknown) => ReturnType;
434
+ twitter: {
435
+ /**
436
+ * Insert a tweet
437
+ * @param options The tweet attributes
438
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
439
+ */
440
+ setTweet: (options: SetTweetOptions) => ReturnType;
441
+ updateTweet: (options: SetTweetOptions) => ReturnType;
427
442
  };
428
443
  }
429
444
  }
@@ -437,18 +452,3 @@ declare module '@tiptap/core' {
437
452
  };
438
453
  }
439
454
  }
440
-
441
-
442
- declare module '@tiptap/core' {
443
- interface Commands<ReturnType> {
444
- twitter: {
445
- /**
446
- * Insert a tweet
447
- * @param options The tweet attributes
448
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
449
- */
450
- setTweet: (options: SetTweetOptions) => ReturnType;
451
- updateTweet: (options: SetTweetOptions) => ReturnType;
452
- };
453
- }
454
- }
@@ -918,16 +918,6 @@ declare module '@tiptap/core' {
918
918
  }
919
919
 
920
920
 
921
- declare module '@tiptap/core' {
922
- interface Commands<ReturnType> {
923
- lineHeight: {
924
- setLineHeight: (lineHeight: string) => ReturnType;
925
- unsetLineHeight: () => ReturnType;
926
- };
927
- }
928
- }
929
-
930
-
931
921
  declare module '@tiptap/core' {
932
922
  interface Commands<ReturnType> {
933
923
  indent: {
@@ -944,6 +934,16 @@ declare module '@tiptap/core' {
944
934
  }
945
935
 
946
936
 
937
+ declare module '@tiptap/core' {
938
+ interface Commands<ReturnType> {
939
+ lineHeight: {
940
+ setLineHeight: (lineHeight: string) => ReturnType;
941
+ unsetLineHeight: () => ReturnType;
942
+ };
943
+ }
944
+ }
945
+
946
+
947
947
  declare module '@tiptap/core' {
948
948
  interface Commands<ReturnType> {
949
949
  imageUpload: {
@@ -973,16 +973,6 @@ declare module '@tiptap/core' {
973
973
  }
974
974
 
975
975
 
976
- declare module '@tiptap/core' {
977
- interface Commands<ReturnType> {
978
- tableCellBackground: {
979
- setTableCellBackground: (color: string) => ReturnType;
980
- unsetTableCellBackground: () => ReturnType;
981
- };
982
- }
983
- }
984
-
985
-
986
976
  declare module '@tiptap/core' {
987
977
  interface Commands<ReturnType> {
988
978
  columns: {
@@ -1012,6 +1002,16 @@ declare module '@tiptap/core' {
1012
1002
  }
1013
1003
 
1014
1004
 
1005
+ declare module '@tiptap/core' {
1006
+ interface Commands<ReturnType> {
1007
+ tableCellBackground: {
1008
+ setTableCellBackground: (color: string) => ReturnType;
1009
+ unsetTableCellBackground: () => ReturnType;
1010
+ };
1011
+ }
1012
+ }
1013
+
1014
+
1015
1015
  declare module '@tiptap/core' {
1016
1016
  interface Commands<ReturnType> {
1017
1017
  emoji: {
@@ -1076,6 +1076,15 @@ declare module '@tiptap/core' {
1076
1076
  }
1077
1077
 
1078
1078
 
1079
+ declare module '@tiptap/core' {
1080
+ interface Commands<ReturnType> {
1081
+ attachment: {
1082
+ setAttachment: (attrs?: unknown) => ReturnType;
1083
+ };
1084
+ }
1085
+ }
1086
+
1087
+
1079
1088
  declare module '@tiptap/core' {
1080
1089
  interface Commands<ReturnType> {
1081
1090
  imageGifUpload: {
@@ -1098,8 +1107,14 @@ declare module '@tiptap/core' {
1098
1107
 
1099
1108
  declare module '@tiptap/core' {
1100
1109
  interface Commands<ReturnType> {
1101
- attachment: {
1102
- setAttachment: (attrs?: unknown) => 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;
1103
1118
  };
1104
1119
  }
1105
1120
  }
@@ -1113,18 +1128,3 @@ declare module '@tiptap/core' {
1113
1128
  };
1114
1129
  }
1115
1130
  }
1116
-
1117
-
1118
- declare module '@tiptap/core' {
1119
- interface Commands<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;
1128
- };
1129
- }
1130
- }
@@ -918,16 +918,6 @@ declare module '@tiptap/core' {
918
918
  }
919
919
 
920
920
 
921
- declare module '@tiptap/core' {
922
- interface Commands<ReturnType> {
923
- lineHeight: {
924
- setLineHeight: (lineHeight: string) => ReturnType;
925
- unsetLineHeight: () => ReturnType;
926
- };
927
- }
928
- }
929
-
930
-
931
921
  declare module '@tiptap/core' {
932
922
  interface Commands<ReturnType> {
933
923
  indent: {
@@ -944,6 +934,16 @@ declare module '@tiptap/core' {
944
934
  }
945
935
 
946
936
 
937
+ declare module '@tiptap/core' {
938
+ interface Commands<ReturnType> {
939
+ lineHeight: {
940
+ setLineHeight: (lineHeight: string) => ReturnType;
941
+ unsetLineHeight: () => ReturnType;
942
+ };
943
+ }
944
+ }
945
+
946
+
947
947
  declare module '@tiptap/core' {
948
948
  interface Commands<ReturnType> {
949
949
  imageUpload: {
@@ -973,16 +973,6 @@ declare module '@tiptap/core' {
973
973
  }
974
974
 
975
975
 
976
- declare module '@tiptap/core' {
977
- interface Commands<ReturnType> {
978
- tableCellBackground: {
979
- setTableCellBackground: (color: string) => ReturnType;
980
- unsetTableCellBackground: () => ReturnType;
981
- };
982
- }
983
- }
984
-
985
-
986
976
  declare module '@tiptap/core' {
987
977
  interface Commands<ReturnType> {
988
978
  columns: {
@@ -1012,6 +1002,16 @@ declare module '@tiptap/core' {
1012
1002
  }
1013
1003
 
1014
1004
 
1005
+ declare module '@tiptap/core' {
1006
+ interface Commands<ReturnType> {
1007
+ tableCellBackground: {
1008
+ setTableCellBackground: (color: string) => ReturnType;
1009
+ unsetTableCellBackground: () => ReturnType;
1010
+ };
1011
+ }
1012
+ }
1013
+
1014
+
1015
1015
  declare module '@tiptap/core' {
1016
1016
  interface Commands<ReturnType> {
1017
1017
  emoji: {
@@ -1076,6 +1076,15 @@ declare module '@tiptap/core' {
1076
1076
  }
1077
1077
 
1078
1078
 
1079
+ declare module '@tiptap/core' {
1080
+ interface Commands<ReturnType> {
1081
+ attachment: {
1082
+ setAttachment: (attrs?: unknown) => ReturnType;
1083
+ };
1084
+ }
1085
+ }
1086
+
1087
+
1079
1088
  declare module '@tiptap/core' {
1080
1089
  interface Commands<ReturnType> {
1081
1090
  imageGifUpload: {
@@ -1098,8 +1107,14 @@ declare module '@tiptap/core' {
1098
1107
 
1099
1108
  declare module '@tiptap/core' {
1100
1109
  interface Commands<ReturnType> {
1101
- attachment: {
1102
- setAttachment: (attrs?: unknown) => 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;
1103
1118
  };
1104
1119
  }
1105
1120
  }
@@ -1113,18 +1128,3 @@ declare module '@tiptap/core' {
1113
1128
  };
1114
1129
  }
1115
1130
  }
1116
-
1117
-
1118
- declare module '@tiptap/core' {
1119
- interface Commands<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;
1128
- };
1129
- }
1130
- }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "reactjs-tiptap-editor",
3
3
  "type": "module",
4
- "version": "0.2.4",
4
+ "version": "0.2.5",
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",
@@ -193,6 +193,10 @@
193
193
  "svg64": "^2.0.0",
194
194
  "tippy.js": "^6.3.7"
195
195
  },
196
+ "peerDependencies": {
197
+ "react": ">=17.0.2",
198
+ "react-dom": ">=17.0.2"
199
+ },
196
200
  "devDependencies": {
197
201
  "@eslint-react/eslint-plugin": "^1.30.2",
198
202
  "@hunghg255/eslint-config": "^0.0.16",