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/ColorPicker-BGCCdXrc.js +27523 -0
- package/lib/ColorPicker-DGbrNkQ-.cjs +142 -0
- package/lib/extension-bundle.cjs +103 -3
- package/lib/extension-bundle.d.cts +71 -82
- package/lib/extension-bundle.d.ts +71 -82
- package/lib/extension-bundle.js +20642 -2477
- package/lib/index.cjs +140 -1
- package/lib/index.d.cts +71 -80
- package/lib/index.d.ts +71 -80
- package/lib/index.js +3617 -13
- package/lib/{index-M6H3FoBi.js → locale-bundle-CT7qZRHF.js} +444 -105
- package/lib/locale-bundle-PAhriAQT.cjs +1 -0
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.d.cts +71 -80
- package/lib/locale-bundle.d.ts +71 -80
- package/lib/locale-bundle.js +6 -6
- package/lib/lucide-react-BFZtMawV.js +30462 -0
- package/lib/lucide-react-CMPhLW1m.cjs +7851 -0
- package/lib/style.css +1 -1
- package/package.json +1 -2
- package/lib/RichTextEditor-BwbqJLnA.cjs +0 -141
- package/lib/RichTextEditor-iGJ6-rbq.js +0 -8833
- package/lib/index-DV-nXpU1.cjs +0 -1
- package/lib/tiptap-DkWHMWDt.js +0 -6061
- package/lib/tiptap-gBG-1T-V.cjs +0 -116
- package/lib/vendor-BJ0Yf78E.cjs +0 -8114
- package/lib/vendor-Cpa6z-M0.js +0 -67575
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
|
-
|
|
296
|
+
imageUpload: {
|
|
297
297
|
/**
|
|
298
|
-
*
|
|
298
|
+
* Add an image
|
|
299
299
|
*/
|
|
300
|
-
|
|
300
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
301
301
|
/**
|
|
302
|
-
*
|
|
302
|
+
* Update an image
|
|
303
303
|
*/
|
|
304
|
-
|
|
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
|
-
|
|
323
|
-
|
|
324
|
-
|
|
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
|
-
|
|
335
|
-
|
|
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
|
-
|
|
344
|
-
/**
|
|
345
|
-
* Add an image
|
|
346
|
-
*/
|
|
347
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
340
|
+
indent: {
|
|
348
341
|
/**
|
|
349
|
-
*
|
|
342
|
+
* Set the indent attribute
|
|
350
343
|
*/
|
|
351
|
-
|
|
344
|
+
indent: () => ReturnType;
|
|
352
345
|
/**
|
|
353
|
-
* Set
|
|
346
|
+
* Set the outdent attribute
|
|
354
347
|
*/
|
|
355
|
-
|
|
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
|
-
|
|
364
|
-
|
|
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
|
-
|
|
373
|
-
|
|
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
|
-
|
|
403
|
-
|
|
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
|
-
|
|
417
|
-
|
|
418
|
-
|
|
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
|
-
|
|
427
|
-
|
|
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
|
-
|
|
436
|
-
|
|
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
|
-
|
|
484
|
-
|
|
485
|
-
|
|
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
|
-
|
|
494
|
-
|
|
495
|
-
|
|
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
|
+
}
|