reactjs-tiptap-editor-pro 0.2.32 → 0.2.33

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
@@ -309,30 +309,9 @@ declare module '@tiptap/core' {
309
309
 
310
310
  declare module '@tiptap/core' {
311
311
  interface Commands<ReturnType> {
312
- tableCellBackground: {
313
- setTableCellBackground: (color: string) => ReturnType;
314
- unsetTableCellBackground: () => ReturnType;
315
- };
316
- }
317
- }
318
-
319
-
320
- declare module '@tiptap/core' {
321
- interface Commands<ReturnType> {
322
- emoji: {
323
- setEmoji: (emoji: {
324
- name: string;
325
- emoji: string;
326
- }) => ReturnType;
327
- };
328
- }
329
- }
330
-
331
-
332
- declare module '@tiptap/core' {
333
- interface Commands<ReturnType> {
334
- painter: {
335
- setPainter: (marks: Mark[]) => ReturnType;
312
+ lineHeight: {
313
+ setLineHeight: (lineHeight: string) => ReturnType;
314
+ unsetLineHeight: () => ReturnType;
336
315
  };
337
316
  }
338
317
  }
@@ -360,8 +339,8 @@ declare module '@tiptap/core' {
360
339
 
361
340
  declare module '@tiptap/core' {
362
341
  interface Commands<ReturnType> {
363
- katex: {
364
- setKatex: (arg?: IKatexAttrs) => ReturnType;
342
+ painter: {
343
+ setPainter: (marks: Mark[]) => ReturnType;
365
344
  };
366
345
  }
367
346
  }
@@ -369,14 +348,23 @@ declare module '@tiptap/core' {
369
348
 
370
349
  declare module '@tiptap/core' {
371
350
  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;
351
+ columns: {
352
+ insertColumns: (attrs?: {
353
+ cols: number;
354
+ }) => ReturnType;
355
+ addColBefore: () => ReturnType;
356
+ addColAfter: () => ReturnType;
357
+ deleteCol: () => ReturnType;
358
+ };
359
+ }
360
+ }
361
+
362
+
363
+ declare module '@tiptap/core' {
364
+ interface Commands<ReturnType> {
365
+ tableCellBackground: {
366
+ setTableCellBackground: (color: string) => ReturnType;
367
+ unsetTableCellBackground: () => ReturnType;
380
368
  };
381
369
  }
382
370
  }
@@ -399,13 +387,14 @@ 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
+ search: {
391
+ setSearchTerm: (searchTerm: string) => ReturnType;
392
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
393
+ replace: () => ReturnType;
394
+ replaceAll: () => ReturnType;
395
+ goToPrevSearchResult: () => void;
396
+ goToNextSearchResult: () => void;
397
+ setCaseSensitive: (caseSensitive: boolean) => ReturnType;
409
398
  };
410
399
  }
411
400
  }
@@ -413,9 +402,11 @@ declare module '@tiptap/core' {
413
402
 
414
403
  declare module '@tiptap/core' {
415
404
  interface Commands<ReturnType> {
416
- lineHeight: {
417
- setLineHeight: (lineHeight: string) => ReturnType;
418
- unsetLineHeight: () => ReturnType;
405
+ emoji: {
406
+ setEmoji: (emoji: {
407
+ name: string;
408
+ emoji: string;
409
+ }) => ReturnType;
419
410
  };
420
411
  }
421
412
  }
@@ -423,8 +414,8 @@ declare module '@tiptap/core' {
423
414
 
424
415
  declare module '@tiptap/core' {
425
416
  interface Commands<ReturnType> {
426
- exportWord: {
427
- exportToWord: () => ReturnType;
417
+ katex: {
418
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
428
419
  };
429
420
  }
430
421
  }
@@ -449,6 +440,15 @@ declare module '@tiptap/core' {
449
440
  }
450
441
 
451
442
 
443
+ declare module '@tiptap/core' {
444
+ interface Commands<ReturnType> {
445
+ exportWord: {
446
+ exportToWord: () => ReturnType;
447
+ };
448
+ }
449
+ }
450
+
451
+
452
452
  declare module '@tiptap/core' {
453
453
  interface Commands<ReturnType> {
454
454
  imageGifUpload: {
@@ -488,16 +488,6 @@ declare module '@tiptap/core' {
488
488
  }
489
489
 
490
490
 
491
- declare module '@tiptap/core' {
492
- interface Commands<ReturnType> {
493
- drawer: {
494
- setDrawer: (options: any, replace?: any) => ReturnType;
495
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
496
- };
497
- }
498
- }
499
-
500
-
501
491
  declare module '@tiptap/core' {
502
492
  interface Commands<ReturnType> {
503
493
  twitter: {
@@ -511,3 +501,13 @@ declare module '@tiptap/core' {
511
501
  };
512
502
  }
513
503
  }
504
+
505
+
506
+ declare module '@tiptap/core' {
507
+ interface Commands<ReturnType> {
508
+ drawer: {
509
+ setDrawer: (options: any, replace?: any) => ReturnType;
510
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
511
+ };
512
+ }
513
+ }