reactjs-tiptap-editor-pro 0.2.23 → 0.2.24

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
@@ -289,42 +289,6 @@ declare module '@tiptap/core' {
289
289
  }
290
290
 
291
291
 
292
- declare module '@tiptap/core' {
293
- interface Commands<ReturnType> {
294
- lineHeight: {
295
- setLineHeight: (lineHeight: string) => ReturnType;
296
- unsetLineHeight: () => ReturnType;
297
- };
298
- }
299
- }
300
-
301
-
302
- declare module '@tiptap/core' {
303
- interface Commands<ReturnType> {
304
- indent: {
305
- /**
306
- * Set the indent attribute
307
- */
308
- indent: () => ReturnType;
309
- /**
310
- * Set the outdent attribute
311
- */
312
- outdent: () => ReturnType;
313
- };
314
- }
315
- }
316
-
317
-
318
- declare module '@tiptap/core' {
319
- interface Commands<ReturnType> {
320
- tableCellBackground: {
321
- setTableCellBackground: (color: string) => ReturnType;
322
- unsetTableCellBackground: () => ReturnType;
323
- };
324
- }
325
- }
326
-
327
-
328
292
  declare module '@tiptap/core' {
329
293
  interface Commands<ReturnType> {
330
294
  imageUpload: {
@@ -345,6 +309,21 @@ declare module '@tiptap/core' {
345
309
  }
346
310
 
347
311
 
312
+ declare module '@tiptap/core' {
313
+ interface Commands<ReturnType> {
314
+ iframe: {
315
+ /**
316
+ * Add an iframe
317
+ */
318
+ setIframe: (options: {
319
+ src: string;
320
+ service: string;
321
+ }) => ReturnType;
322
+ };
323
+ }
324
+ }
325
+
326
+
348
327
  declare module '@tiptap/core' {
349
328
  interface Commands<ReturnType> {
350
329
  search: {
@@ -362,13 +341,8 @@ declare module '@tiptap/core' {
362
341
 
363
342
  declare module '@tiptap/core' {
364
343
  interface Commands<ReturnType> {
365
- columns: {
366
- insertColumns: (attrs?: {
367
- cols: number;
368
- }) => ReturnType;
369
- addColBefore: () => ReturnType;
370
- addColAfter: () => ReturnType;
371
- deleteCol: () => ReturnType;
344
+ painter: {
345
+ setPainter: (marks: Mark[]) => ReturnType;
372
346
  };
373
347
  }
374
348
  }
@@ -376,9 +350,9 @@ declare module '@tiptap/core' {
376
350
 
377
351
  declare module '@tiptap/core' {
378
352
  interface Commands<ReturnType> {
379
- tableOfContents: {
380
- setTableOfContents: () => ReturnType;
381
- removeTableOfContents: () => ReturnType;
353
+ tableCellBackground: {
354
+ setTableCellBackground: (color: string) => ReturnType;
355
+ unsetTableCellBackground: () => ReturnType;
382
356
  };
383
357
  }
384
358
  }
@@ -386,8 +360,15 @@ declare module '@tiptap/core' {
386
360
 
387
361
  declare module '@tiptap/core' {
388
362
  interface Commands<ReturnType> {
389
- painter: {
390
- setPainter: (marks: Mark[]) => ReturnType;
363
+ indent: {
364
+ /**
365
+ * Set the indent attribute
366
+ */
367
+ indent: () => ReturnType;
368
+ /**
369
+ * Set the outdent attribute
370
+ */
371
+ outdent: () => ReturnType;
391
372
  };
392
373
  }
393
374
  }
@@ -395,8 +376,11 @@ declare module '@tiptap/core' {
395
376
 
396
377
  declare module '@tiptap/core' {
397
378
  interface Commands<ReturnType> {
398
- katex: {
399
- setKatex: (arg?: IKatexAttrs) => ReturnType;
379
+ emoji: {
380
+ setEmoji: (emoji: {
381
+ name: string;
382
+ emoji: string;
383
+ }) => ReturnType;
400
384
  };
401
385
  }
402
386
  }
@@ -404,14 +388,13 @@ declare module '@tiptap/core' {
404
388
 
405
389
  declare module '@tiptap/core' {
406
390
  interface Commands<ReturnType> {
407
- iframe: {
408
- /**
409
- * Add an iframe
410
- */
411
- setIframe: (options: {
412
- src: string;
413
- service: string;
391
+ columns: {
392
+ insertColumns: (attrs?: {
393
+ cols: number;
414
394
  }) => ReturnType;
395
+ addColBefore: () => ReturnType;
396
+ addColAfter: () => ReturnType;
397
+ deleteCol: () => ReturnType;
415
398
  };
416
399
  }
417
400
  }
@@ -419,8 +402,9 @@ declare module '@tiptap/core' {
419
402
 
420
403
  declare module '@tiptap/core' {
421
404
  interface Commands<ReturnType> {
422
- exportWord: {
423
- exportToWord: () => ReturnType;
405
+ lineHeight: {
406
+ setLineHeight: (lineHeight: string) => ReturnType;
407
+ unsetLineHeight: () => ReturnType;
424
408
  };
425
409
  }
426
410
  }
@@ -428,11 +412,8 @@ declare module '@tiptap/core' {
428
412
 
429
413
  declare module '@tiptap/core' {
430
414
  interface Commands<ReturnType> {
431
- emoji: {
432
- setEmoji: (emoji: {
433
- name: string;
434
- emoji: string;
435
- }) => ReturnType;
415
+ katex: {
416
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
436
417
  };
437
418
  }
438
419
  }
@@ -440,8 +421,23 @@ declare module '@tiptap/core' {
440
421
 
441
422
  declare module '@tiptap/core' {
442
423
  interface Commands<ReturnType> {
443
- excalidraw: {
444
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
424
+ twitter: {
425
+ /**
426
+ * Insert a tweet
427
+ * @param options The tweet attributes
428
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
429
+ */
430
+ setTweet: (options: SetTweetOptions) => ReturnType;
431
+ updateTweet: (options: SetTweetOptions) => ReturnType;
432
+ };
433
+ }
434
+ }
435
+
436
+
437
+ declare module '@tiptap/core' {
438
+ interface Commands<ReturnType> {
439
+ exportWord: {
440
+ exportToWord: () => ReturnType;
445
441
  };
446
442
  }
447
443
  }
@@ -479,9 +475,8 @@ declare module '@tiptap/core' {
479
475
 
480
476
  declare module '@tiptap/core' {
481
477
  interface Commands<ReturnType> {
482
- drawer: {
483
- setDrawer: (options: any, replace?: any) => ReturnType;
484
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
478
+ attachment: {
479
+ setAttachment: (attrs?: unknown) => ReturnType;
485
480
  };
486
481
  }
487
482
  }
@@ -489,14 +484,9 @@ declare module '@tiptap/core' {
489
484
 
490
485
  declare module '@tiptap/core' {
491
486
  interface Commands<ReturnType> {
492
- twitter: {
493
- /**
494
- * Insert a tweet
495
- * @param options The tweet attributes
496
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
497
- */
498
- setTweet: (options: SetTweetOptions) => ReturnType;
499
- updateTweet: (options: SetTweetOptions) => ReturnType;
487
+ tableOfContents: {
488
+ setTableOfContents: () => ReturnType;
489
+ removeTableOfContents: () => ReturnType;
500
490
  };
501
491
  }
502
492
  }
@@ -504,8 +494,18 @@ declare module '@tiptap/core' {
504
494
 
505
495
  declare module '@tiptap/core' {
506
496
  interface Commands<ReturnType> {
507
- attachment: {
508
- setAttachment: (attrs?: unknown) => ReturnType;
497
+ drawer: {
498
+ setDrawer: (options: any, replace?: any) => ReturnType;
499
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
500
+ };
501
+ }
502
+ }
503
+
504
+
505
+ declare module '@tiptap/core' {
506
+ interface Commands<ReturnType> {
507
+ excalidraw: {
508
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
509
509
  };
510
510
  }
511
511
  }
package/lib/index.d.ts CHANGED
@@ -289,42 +289,6 @@ declare module '@tiptap/core' {
289
289
  }
290
290
 
291
291
 
292
- declare module '@tiptap/core' {
293
- interface Commands<ReturnType> {
294
- lineHeight: {
295
- setLineHeight: (lineHeight: string) => ReturnType;
296
- unsetLineHeight: () => ReturnType;
297
- };
298
- }
299
- }
300
-
301
-
302
- declare module '@tiptap/core' {
303
- interface Commands<ReturnType> {
304
- indent: {
305
- /**
306
- * Set the indent attribute
307
- */
308
- indent: () => ReturnType;
309
- /**
310
- * Set the outdent attribute
311
- */
312
- outdent: () => ReturnType;
313
- };
314
- }
315
- }
316
-
317
-
318
- declare module '@tiptap/core' {
319
- interface Commands<ReturnType> {
320
- tableCellBackground: {
321
- setTableCellBackground: (color: string) => ReturnType;
322
- unsetTableCellBackground: () => ReturnType;
323
- };
324
- }
325
- }
326
-
327
-
328
292
  declare module '@tiptap/core' {
329
293
  interface Commands<ReturnType> {
330
294
  imageUpload: {
@@ -345,6 +309,21 @@ declare module '@tiptap/core' {
345
309
  }
346
310
 
347
311
 
312
+ declare module '@tiptap/core' {
313
+ interface Commands<ReturnType> {
314
+ iframe: {
315
+ /**
316
+ * Add an iframe
317
+ */
318
+ setIframe: (options: {
319
+ src: string;
320
+ service: string;
321
+ }) => ReturnType;
322
+ };
323
+ }
324
+ }
325
+
326
+
348
327
  declare module '@tiptap/core' {
349
328
  interface Commands<ReturnType> {
350
329
  search: {
@@ -362,13 +341,8 @@ declare module '@tiptap/core' {
362
341
 
363
342
  declare module '@tiptap/core' {
364
343
  interface Commands<ReturnType> {
365
- columns: {
366
- insertColumns: (attrs?: {
367
- cols: number;
368
- }) => ReturnType;
369
- addColBefore: () => ReturnType;
370
- addColAfter: () => ReturnType;
371
- deleteCol: () => ReturnType;
344
+ painter: {
345
+ setPainter: (marks: Mark[]) => ReturnType;
372
346
  };
373
347
  }
374
348
  }
@@ -376,9 +350,9 @@ declare module '@tiptap/core' {
376
350
 
377
351
  declare module '@tiptap/core' {
378
352
  interface Commands<ReturnType> {
379
- tableOfContents: {
380
- setTableOfContents: () => ReturnType;
381
- removeTableOfContents: () => ReturnType;
353
+ tableCellBackground: {
354
+ setTableCellBackground: (color: string) => ReturnType;
355
+ unsetTableCellBackground: () => ReturnType;
382
356
  };
383
357
  }
384
358
  }
@@ -386,8 +360,15 @@ declare module '@tiptap/core' {
386
360
 
387
361
  declare module '@tiptap/core' {
388
362
  interface Commands<ReturnType> {
389
- painter: {
390
- setPainter: (marks: Mark[]) => ReturnType;
363
+ indent: {
364
+ /**
365
+ * Set the indent attribute
366
+ */
367
+ indent: () => ReturnType;
368
+ /**
369
+ * Set the outdent attribute
370
+ */
371
+ outdent: () => ReturnType;
391
372
  };
392
373
  }
393
374
  }
@@ -395,8 +376,11 @@ declare module '@tiptap/core' {
395
376
 
396
377
  declare module '@tiptap/core' {
397
378
  interface Commands<ReturnType> {
398
- katex: {
399
- setKatex: (arg?: IKatexAttrs) => ReturnType;
379
+ emoji: {
380
+ setEmoji: (emoji: {
381
+ name: string;
382
+ emoji: string;
383
+ }) => ReturnType;
400
384
  };
401
385
  }
402
386
  }
@@ -404,14 +388,13 @@ declare module '@tiptap/core' {
404
388
 
405
389
  declare module '@tiptap/core' {
406
390
  interface Commands<ReturnType> {
407
- iframe: {
408
- /**
409
- * Add an iframe
410
- */
411
- setIframe: (options: {
412
- src: string;
413
- service: string;
391
+ columns: {
392
+ insertColumns: (attrs?: {
393
+ cols: number;
414
394
  }) => ReturnType;
395
+ addColBefore: () => ReturnType;
396
+ addColAfter: () => ReturnType;
397
+ deleteCol: () => ReturnType;
415
398
  };
416
399
  }
417
400
  }
@@ -419,8 +402,9 @@ declare module '@tiptap/core' {
419
402
 
420
403
  declare module '@tiptap/core' {
421
404
  interface Commands<ReturnType> {
422
- exportWord: {
423
- exportToWord: () => ReturnType;
405
+ lineHeight: {
406
+ setLineHeight: (lineHeight: string) => ReturnType;
407
+ unsetLineHeight: () => ReturnType;
424
408
  };
425
409
  }
426
410
  }
@@ -428,11 +412,8 @@ declare module '@tiptap/core' {
428
412
 
429
413
  declare module '@tiptap/core' {
430
414
  interface Commands<ReturnType> {
431
- emoji: {
432
- setEmoji: (emoji: {
433
- name: string;
434
- emoji: string;
435
- }) => ReturnType;
415
+ katex: {
416
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
436
417
  };
437
418
  }
438
419
  }
@@ -440,8 +421,23 @@ declare module '@tiptap/core' {
440
421
 
441
422
  declare module '@tiptap/core' {
442
423
  interface Commands<ReturnType> {
443
- excalidraw: {
444
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
424
+ twitter: {
425
+ /**
426
+ * Insert a tweet
427
+ * @param options The tweet attributes
428
+ * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
429
+ */
430
+ setTweet: (options: SetTweetOptions) => ReturnType;
431
+ updateTweet: (options: SetTweetOptions) => ReturnType;
432
+ };
433
+ }
434
+ }
435
+
436
+
437
+ declare module '@tiptap/core' {
438
+ interface Commands<ReturnType> {
439
+ exportWord: {
440
+ exportToWord: () => ReturnType;
445
441
  };
446
442
  }
447
443
  }
@@ -479,9 +475,8 @@ declare module '@tiptap/core' {
479
475
 
480
476
  declare module '@tiptap/core' {
481
477
  interface Commands<ReturnType> {
482
- drawer: {
483
- setDrawer: (options: any, replace?: any) => ReturnType;
484
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
478
+ attachment: {
479
+ setAttachment: (attrs?: unknown) => ReturnType;
485
480
  };
486
481
  }
487
482
  }
@@ -489,14 +484,9 @@ declare module '@tiptap/core' {
489
484
 
490
485
  declare module '@tiptap/core' {
491
486
  interface Commands<ReturnType> {
492
- twitter: {
493
- /**
494
- * Insert a tweet
495
- * @param options The tweet attributes
496
- * @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
497
- */
498
- setTweet: (options: SetTweetOptions) => ReturnType;
499
- updateTweet: (options: SetTweetOptions) => ReturnType;
487
+ tableOfContents: {
488
+ setTableOfContents: () => ReturnType;
489
+ removeTableOfContents: () => ReturnType;
500
490
  };
501
491
  }
502
492
  }
@@ -504,8 +494,18 @@ declare module '@tiptap/core' {
504
494
 
505
495
  declare module '@tiptap/core' {
506
496
  interface Commands<ReturnType> {
507
- attachment: {
508
- setAttachment: (attrs?: unknown) => ReturnType;
497
+ drawer: {
498
+ setDrawer: (options: any, replace?: any) => ReturnType;
499
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
500
+ };
501
+ }
502
+ }
503
+
504
+
505
+ declare module '@tiptap/core' {
506
+ interface Commands<ReturnType> {
507
+ excalidraw: {
508
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
509
509
  };
510
510
  }
511
511
  }
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { useRef as d, useState as o, useEffect as f } from "react";
2
- import { R as m } from "./RichTextEditor-Bgw6seGi.js";
2
+ import { R as m } from "./RichTextEditor-Bxdp3pW3.js";
3
3
  import { B as x } from "./tiptap-Kst3Ray3.js";
4
4
  function c() {
5
5
  var t;