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/{RichTextEditor-Bgw6seGi.js → RichTextEditor-Bxdp3pW3.js} +315 -315
- package/lib/{RichTextEditor-D9Oz6Ru3.cjs → RichTextEditor-zOI60NFQ.cjs} +4 -4
- package/lib/extension-bundle.cjs +1 -1
- package/lib/extension-bundle.d.cts +79 -79
- package/lib/extension-bundle.d.ts +79 -79
- package/lib/extension-bundle.js +2 -2
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +79 -79
- package/lib/index.d.ts +79 -79
- package/lib/index.js +1 -1
- package/lib/locale-bundle.d.cts +79 -79
- package/lib/locale-bundle.d.ts +79 -79
- package/package.json +1 -1
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
|
-
|
|
366
|
-
|
|
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
|
-
|
|
380
|
-
|
|
381
|
-
|
|
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
|
-
|
|
390
|
-
|
|
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
|
-
|
|
399
|
-
|
|
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
|
-
|
|
408
|
-
|
|
409
|
-
|
|
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
|
-
|
|
423
|
-
|
|
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
|
-
|
|
432
|
-
|
|
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
|
-
|
|
444
|
-
|
|
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
|
-
|
|
483
|
-
|
|
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
|
-
|
|
493
|
-
|
|
494
|
-
|
|
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
|
-
|
|
508
|
-
|
|
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
|
-
|
|
366
|
-
|
|
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
|
-
|
|
380
|
-
|
|
381
|
-
|
|
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
|
-
|
|
390
|
-
|
|
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
|
-
|
|
399
|
-
|
|
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
|
-
|
|
408
|
-
|
|
409
|
-
|
|
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
|
-
|
|
423
|
-
|
|
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
|
-
|
|
432
|
-
|
|
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
|
-
|
|
444
|
-
|
|
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
|
-
|
|
483
|
-
|
|
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
|
-
|
|
493
|
-
|
|
494
|
-
|
|
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
|
-
|
|
508
|
-
|
|
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