reactjs-tiptap-editor-pro 0.2.32 → 0.2.34

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.ts CHANGED
@@ -293,25 +293,19 @@ declare module '@tiptap/core' {
293
293
 
294
294
  declare module '@tiptap/core' {
295
295
  interface Commands<ReturnType> {
296
- indent: {
296
+ imageUpload: {
297
297
  /**
298
- * Set the indent attribute
298
+ * Add an image
299
299
  */
300
- indent: () => ReturnType;
300
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
301
301
  /**
302
- * Set the outdent attribute
302
+ * Update an image
303
303
  */
304
- outdent: () => ReturnType;
305
- };
306
- }
307
- }
308
-
309
-
310
- declare module '@tiptap/core' {
311
- interface Commands<ReturnType> {
312
- tableCellBackground: {
313
- setTableCellBackground: (color: string) => ReturnType;
314
- unsetTableCellBackground: () => ReturnType;
304
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
305
+ /**
306
+ * Set image alignment
307
+ */
308
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
315
309
  };
316
310
  }
317
311
  }
@@ -319,11 +313,13 @@ declare module '@tiptap/core' {
319
313
 
320
314
  declare module '@tiptap/core' {
321
315
  interface Commands<ReturnType> {
322
- emoji: {
323
- setEmoji: (emoji: {
324
- name: string;
325
- emoji: string;
316
+ columns: {
317
+ insertColumns: (attrs?: {
318
+ cols: number;
326
319
  }) => ReturnType;
320
+ addColBefore: () => ReturnType;
321
+ addColAfter: () => ReturnType;
322
+ deleteCol: () => ReturnType;
327
323
  };
328
324
  }
329
325
  }
@@ -331,8 +327,9 @@ declare module '@tiptap/core' {
331
327
 
332
328
  declare module '@tiptap/core' {
333
329
  interface Commands<ReturnType> {
334
- painter: {
335
- setPainter: (marks: Mark[]) => ReturnType;
330
+ lineHeight: {
331
+ setLineHeight: (lineHeight: string) => ReturnType;
332
+ unsetLineHeight: () => ReturnType;
336
333
  };
337
334
  }
338
335
  }
@@ -340,19 +337,15 @@ declare module '@tiptap/core' {
340
337
 
341
338
  declare module '@tiptap/core' {
342
339
  interface Commands<ReturnType> {
343
- imageUpload: {
344
- /**
345
- * Add an image
346
- */
347
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
340
+ indent: {
348
341
  /**
349
- * Update an image
342
+ * Set the indent attribute
350
343
  */
351
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
344
+ indent: () => ReturnType;
352
345
  /**
353
- * Set image alignment
346
+ * Set the outdent attribute
354
347
  */
355
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
348
+ outdent: () => ReturnType;
356
349
  };
357
350
  }
358
351
  }
@@ -360,8 +353,9 @@ declare module '@tiptap/core' {
360
353
 
361
354
  declare module '@tiptap/core' {
362
355
  interface Commands<ReturnType> {
363
- katex: {
364
- setKatex: (arg?: IKatexAttrs) => ReturnType;
356
+ tableCellBackground: {
357
+ setTableCellBackground: (color: string) => ReturnType;
358
+ unsetTableCellBackground: () => ReturnType;
365
359
  };
366
360
  }
367
361
  }
@@ -369,14 +363,8 @@ declare module '@tiptap/core' {
369
363
 
370
364
  declare module '@tiptap/core' {
371
365
  interface Commands<ReturnType> {
372
- search: {
373
- setSearchTerm: (searchTerm: string) => ReturnType;
374
- setReplaceTerm: (replaceTerm: string) => ReturnType;
375
- replace: () => ReturnType;
376
- replaceAll: () => ReturnType;
377
- goToPrevSearchResult: () => void;
378
- goToNextSearchResult: () => void;
379
- setCaseSensitive: (caseSensitive: boolean) => ReturnType;
366
+ painter: {
367
+ setPainter: (marks: Mark[]) => ReturnType;
380
368
  };
381
369
  }
382
370
  }
@@ -399,13 +387,8 @@ declare module '@tiptap/core' {
399
387
 
400
388
  declare module '@tiptap/core' {
401
389
  interface Commands<ReturnType> {
402
- columns: {
403
- insertColumns: (attrs?: {
404
- cols: number;
405
- }) => ReturnType;
406
- addColBefore: () => ReturnType;
407
- addColAfter: () => ReturnType;
408
- deleteCol: () => ReturnType;
390
+ exportWord: {
391
+ exportToWord: () => ReturnType;
409
392
  };
410
393
  }
411
394
  }
@@ -413,9 +396,11 @@ declare module '@tiptap/core' {
413
396
 
414
397
  declare module '@tiptap/core' {
415
398
  interface Commands<ReturnType> {
416
- lineHeight: {
417
- setLineHeight: (lineHeight: string) => ReturnType;
418
- unsetLineHeight: () => ReturnType;
399
+ emoji: {
400
+ setEmoji: (emoji: {
401
+ name: string;
402
+ emoji: string;
403
+ }) => ReturnType;
419
404
  };
420
405
  }
421
406
  }
@@ -423,8 +408,14 @@ declare module '@tiptap/core' {
423
408
 
424
409
  declare module '@tiptap/core' {
425
410
  interface Commands<ReturnType> {
426
- exportWord: {
427
- exportToWord: () => ReturnType;
411
+ search: {
412
+ setSearchTerm: (searchTerm: string) => ReturnType;
413
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
414
+ replace: () => ReturnType;
415
+ replaceAll: () => ReturnType;
416
+ goToPrevSearchResult: () => void;
417
+ goToNextSearchResult: () => void;
418
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
428
419
  };
429
420
  }
430
421
  }
@@ -432,8 +423,8 @@ declare module '@tiptap/core' {
432
423
 
433
424
  declare module '@tiptap/core' {
434
425
  interface Commands<ReturnType> {
435
- excalidraw: {
436
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
426
+ katex: {
427
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
437
428
  };
438
429
  }
439
430
  }
@@ -449,26 +440,6 @@ declare module '@tiptap/core' {
449
440
  }
450
441
 
451
442
 
452
- declare module '@tiptap/core' {
453
- interface Commands<ReturnType> {
454
- imageGifUpload: {
455
- /**
456
- * Add an image gif
457
- */
458
- setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
459
- /**
460
- * Update an image gif
461
- */
462
- updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
463
- /**
464
- * Set image alignment
465
- */
466
- setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
467
- };
468
- }
469
- }
470
-
471
-
472
443
  declare module '@tiptap/core' {
473
444
  interface Commands<ReturnType> {
474
445
  attachment: {
@@ -480,9 +451,9 @@ declare module '@tiptap/core' {
480
451
 
481
452
  declare module '@tiptap/core' {
482
453
  interface Commands<ReturnType> {
483
- mermaid: {
484
- setMermaid: (options: any, replace?: any) => ReturnType;
485
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
454
+ drawer: {
455
+ setDrawer: (options: any, replace?: any) => ReturnType;
456
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
486
457
  };
487
458
  }
488
459
  }
@@ -490,9 +461,19 @@ declare module '@tiptap/core' {
490
461
 
491
462
  declare module '@tiptap/core' {
492
463
  interface Commands<ReturnType> {
493
- drawer: {
494
- setDrawer: (options: any, replace?: any) => ReturnType;
495
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
464
+ imageGifUpload: {
465
+ /**
466
+ * Add an image gif
467
+ */
468
+ setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
469
+ /**
470
+ * Update an image gif
471
+ */
472
+ updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
473
+ /**
474
+ * Set image alignment
475
+ */
476
+ setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
496
477
  };
497
478
  }
498
479
  }
@@ -511,3 +492,13 @@ declare module '@tiptap/core' {
511
492
  };
512
493
  }
513
494
  }
495
+
496
+
497
+ declare module '@tiptap/core' {
498
+ interface Commands<ReturnType> {
499
+ mermaid: {
500
+ setMermaid: (options: any, replace?: any) => ReturnType;
501
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
502
+ };
503
+ }
504
+ }