reactjs-tiptap-editor-pro 0.2.33 → 0.2.35

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
@@ -291,22 +291,6 @@ declare module '@tiptap/core' {
291
291
  }
292
292
 
293
293
 
294
- declare module '@tiptap/core' {
295
- interface Commands<ReturnType> {
296
- indent: {
297
- /**
298
- * Set the indent attribute
299
- */
300
- indent: () => ReturnType;
301
- /**
302
- * Set the outdent attribute
303
- */
304
- outdent: () => ReturnType;
305
- };
306
- }
307
- }
308
-
309
-
310
294
  declare module '@tiptap/core' {
311
295
  interface Commands<ReturnType> {
312
296
  lineHeight: {
@@ -337,15 +321,6 @@ declare module '@tiptap/core' {
337
321
  }
338
322
 
339
323
 
340
- declare module '@tiptap/core' {
341
- interface Commands<ReturnType> {
342
- painter: {
343
- setPainter: (marks: Mark[]) => ReturnType;
344
- };
345
- }
346
- }
347
-
348
-
349
324
  declare module '@tiptap/core' {
350
325
  interface Commands<ReturnType> {
351
326
  columns: {
@@ -362,9 +337,8 @@ declare module '@tiptap/core' {
362
337
 
363
338
  declare module '@tiptap/core' {
364
339
  interface Commands<ReturnType> {
365
- tableCellBackground: {
366
- setTableCellBackground: (color: string) => ReturnType;
367
- unsetTableCellBackground: () => ReturnType;
340
+ painter: {
341
+ setPainter: (marks: Mark[]) => ReturnType;
368
342
  };
369
343
  }
370
344
  }
@@ -372,14 +346,25 @@ declare module '@tiptap/core' {
372
346
 
373
347
  declare module '@tiptap/core' {
374
348
  interface Commands<ReturnType> {
375
- iframe: {
349
+ indent: {
376
350
  /**
377
- * Add an iframe
351
+ * Set the indent attribute
378
352
  */
379
- setIframe: (options: {
380
- src: string;
381
- service: string;
382
- }) => ReturnType;
353
+ indent: () => ReturnType;
354
+ /**
355
+ * Set the outdent attribute
356
+ */
357
+ outdent: () => 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;
383
368
  };
384
369
  }
385
370
  }
@@ -402,29 +387,9 @@ declare module '@tiptap/core' {
402
387
 
403
388
  declare module '@tiptap/core' {
404
389
  interface Commands<ReturnType> {
405
- emoji: {
406
- setEmoji: (emoji: {
407
- name: string;
408
- emoji: string;
409
- }) => ReturnType;
410
- };
411
- }
412
- }
413
-
414
-
415
- declare module '@tiptap/core' {
416
- interface Commands<ReturnType> {
417
- katex: {
418
- setKatex: (arg?: IKatexAttrs) => ReturnType;
419
- };
420
- }
421
- }
422
-
423
-
424
- declare module '@tiptap/core' {
425
- interface Commands<ReturnType> {
426
- excalidraw: {
427
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
390
+ tableOfContents: {
391
+ setTableOfContents: () => ReturnType;
392
+ removeTableOfContents: () => ReturnType;
428
393
  };
429
394
  }
430
395
  }
@@ -432,9 +397,8 @@ declare module '@tiptap/core' {
432
397
 
433
398
  declare module '@tiptap/core' {
434
399
  interface Commands<ReturnType> {
435
- tableOfContents: {
436
- setTableOfContents: () => ReturnType;
437
- removeTableOfContents: () => ReturnType;
400
+ exportWord: {
401
+ exportToWord: () => ReturnType;
438
402
  };
439
403
  }
440
404
  }
@@ -442,8 +406,14 @@ declare module '@tiptap/core' {
442
406
 
443
407
  declare module '@tiptap/core' {
444
408
  interface Commands<ReturnType> {
445
- exportWord: {
446
- exportToWord: () => ReturnType;
409
+ iframe: {
410
+ /**
411
+ * Add an iframe
412
+ */
413
+ setIframe: (options: {
414
+ src: string;
415
+ service: string;
416
+ }) => ReturnType;
447
417
  };
448
418
  }
449
419
  }
@@ -471,8 +441,8 @@ declare module '@tiptap/core' {
471
441
 
472
442
  declare module '@tiptap/core' {
473
443
  interface Commands<ReturnType> {
474
- attachment: {
475
- setAttachment: (attrs?: unknown) => ReturnType;
444
+ katex: {
445
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
476
446
  };
477
447
  }
478
448
  }
@@ -488,6 +458,28 @@ declare module '@tiptap/core' {
488
458
  }
489
459
 
490
460
 
461
+ declare module '@tiptap/core' {
462
+ interface Commands<ReturnType> {
463
+ drawer: {
464
+ setDrawer: (options: any, replace?: any) => ReturnType;
465
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
466
+ };
467
+ }
468
+ }
469
+
470
+
471
+ declare module '@tiptap/core' {
472
+ interface Commands<ReturnType> {
473
+ emoji: {
474
+ setEmoji: (emoji: {
475
+ name: string;
476
+ emoji: string;
477
+ }) => ReturnType;
478
+ };
479
+ }
480
+ }
481
+
482
+
491
483
  declare module '@tiptap/core' {
492
484
  interface Commands<ReturnType> {
493
485
  twitter: {
@@ -505,9 +497,8 @@ declare module '@tiptap/core' {
505
497
 
506
498
  declare module '@tiptap/core' {
507
499
  interface Commands<ReturnType> {
508
- drawer: {
509
- setDrawer: (options: any, replace?: any) => ReturnType;
510
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
500
+ attachment: {
501
+ setAttachment: (attrs?: unknown) => ReturnType;
511
502
  };
512
503
  }
513
504
  }
package/lib/index.d.ts CHANGED
@@ -291,22 +291,6 @@ declare module '@tiptap/core' {
291
291
  }
292
292
 
293
293
 
294
- declare module '@tiptap/core' {
295
- interface Commands<ReturnType> {
296
- indent: {
297
- /**
298
- * Set the indent attribute
299
- */
300
- indent: () => ReturnType;
301
- /**
302
- * Set the outdent attribute
303
- */
304
- outdent: () => ReturnType;
305
- };
306
- }
307
- }
308
-
309
-
310
294
  declare module '@tiptap/core' {
311
295
  interface Commands<ReturnType> {
312
296
  lineHeight: {
@@ -337,15 +321,6 @@ declare module '@tiptap/core' {
337
321
  }
338
322
 
339
323
 
340
- declare module '@tiptap/core' {
341
- interface Commands<ReturnType> {
342
- painter: {
343
- setPainter: (marks: Mark[]) => ReturnType;
344
- };
345
- }
346
- }
347
-
348
-
349
324
  declare module '@tiptap/core' {
350
325
  interface Commands<ReturnType> {
351
326
  columns: {
@@ -362,9 +337,8 @@ declare module '@tiptap/core' {
362
337
 
363
338
  declare module '@tiptap/core' {
364
339
  interface Commands<ReturnType> {
365
- tableCellBackground: {
366
- setTableCellBackground: (color: string) => ReturnType;
367
- unsetTableCellBackground: () => ReturnType;
340
+ painter: {
341
+ setPainter: (marks: Mark[]) => ReturnType;
368
342
  };
369
343
  }
370
344
  }
@@ -372,14 +346,25 @@ declare module '@tiptap/core' {
372
346
 
373
347
  declare module '@tiptap/core' {
374
348
  interface Commands<ReturnType> {
375
- iframe: {
349
+ indent: {
376
350
  /**
377
- * Add an iframe
351
+ * Set the indent attribute
378
352
  */
379
- setIframe: (options: {
380
- src: string;
381
- service: string;
382
- }) => ReturnType;
353
+ indent: () => ReturnType;
354
+ /**
355
+ * Set the outdent attribute
356
+ */
357
+ outdent: () => 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;
383
368
  };
384
369
  }
385
370
  }
@@ -402,29 +387,9 @@ declare module '@tiptap/core' {
402
387
 
403
388
  declare module '@tiptap/core' {
404
389
  interface Commands<ReturnType> {
405
- emoji: {
406
- setEmoji: (emoji: {
407
- name: string;
408
- emoji: string;
409
- }) => ReturnType;
410
- };
411
- }
412
- }
413
-
414
-
415
- declare module '@tiptap/core' {
416
- interface Commands<ReturnType> {
417
- katex: {
418
- setKatex: (arg?: IKatexAttrs) => ReturnType;
419
- };
420
- }
421
- }
422
-
423
-
424
- declare module '@tiptap/core' {
425
- interface Commands<ReturnType> {
426
- excalidraw: {
427
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
390
+ tableOfContents: {
391
+ setTableOfContents: () => ReturnType;
392
+ removeTableOfContents: () => ReturnType;
428
393
  };
429
394
  }
430
395
  }
@@ -432,9 +397,8 @@ declare module '@tiptap/core' {
432
397
 
433
398
  declare module '@tiptap/core' {
434
399
  interface Commands<ReturnType> {
435
- tableOfContents: {
436
- setTableOfContents: () => ReturnType;
437
- removeTableOfContents: () => ReturnType;
400
+ exportWord: {
401
+ exportToWord: () => ReturnType;
438
402
  };
439
403
  }
440
404
  }
@@ -442,8 +406,14 @@ declare module '@tiptap/core' {
442
406
 
443
407
  declare module '@tiptap/core' {
444
408
  interface Commands<ReturnType> {
445
- exportWord: {
446
- exportToWord: () => ReturnType;
409
+ iframe: {
410
+ /**
411
+ * Add an iframe
412
+ */
413
+ setIframe: (options: {
414
+ src: string;
415
+ service: string;
416
+ }) => ReturnType;
447
417
  };
448
418
  }
449
419
  }
@@ -471,8 +441,8 @@ declare module '@tiptap/core' {
471
441
 
472
442
  declare module '@tiptap/core' {
473
443
  interface Commands<ReturnType> {
474
- attachment: {
475
- setAttachment: (attrs?: unknown) => ReturnType;
444
+ katex: {
445
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
476
446
  };
477
447
  }
478
448
  }
@@ -488,6 +458,28 @@ declare module '@tiptap/core' {
488
458
  }
489
459
 
490
460
 
461
+ declare module '@tiptap/core' {
462
+ interface Commands<ReturnType> {
463
+ drawer: {
464
+ setDrawer: (options: any, replace?: any) => ReturnType;
465
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
466
+ };
467
+ }
468
+ }
469
+
470
+
471
+ declare module '@tiptap/core' {
472
+ interface Commands<ReturnType> {
473
+ emoji: {
474
+ setEmoji: (emoji: {
475
+ name: string;
476
+ emoji: string;
477
+ }) => ReturnType;
478
+ };
479
+ }
480
+ }
481
+
482
+
491
483
  declare module '@tiptap/core' {
492
484
  interface Commands<ReturnType> {
493
485
  twitter: {
@@ -505,9 +497,8 @@ declare module '@tiptap/core' {
505
497
 
506
498
  declare module '@tiptap/core' {
507
499
  interface Commands<ReturnType> {
508
- drawer: {
509
- setDrawer: (options: any, replace?: any) => ReturnType;
510
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
500
+ attachment: {
501
+ setAttachment: (attrs?: unknown) => ReturnType;
511
502
  };
512
503
  }
513
504
  }