reactjs-tiptap-editor-pro 0.2.33 → 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-MEAh4MhG.js → ColorPicker-BGCCdXrc.js} +5665 -6323
- package/lib/ColorPicker-DGbrNkQ-.cjs +142 -0
- package/lib/extension-bundle.cjs +2 -2
- package/lib/extension-bundle.d.cts +60 -71
- package/lib/extension-bundle.d.ts +60 -71
- package/lib/extension-bundle.js +9 -10
- package/lib/index.cjs +3 -3
- package/lib/index.d.cts +60 -69
- package/lib/index.d.ts +60 -69
- package/lib/index.js +927 -1007
- package/lib/{locale-bundle-DxCAtRDI.js → locale-bundle-CT7qZRHF.js} +6 -7
- package/lib/locale-bundle-PAhriAQT.cjs +1 -0
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.d.cts +60 -69
- package/lib/locale-bundle.d.ts +60 -69
- package/lib/locale-bundle.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -2
- package/lib/ColorPicker-ZncOwjAP.cjs +0 -142
- package/lib/locale-bundle-DiqW5jwb.cjs +0 -1
package/lib/index.d.cts
CHANGED
|
@@ -293,15 +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
|
-
|
|
304
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
305
|
+
/**
|
|
306
|
+
* Set image alignment
|
|
307
|
+
*/
|
|
308
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
305
309
|
};
|
|
306
310
|
}
|
|
307
311
|
}
|
|
@@ -309,9 +313,13 @@ declare module '@tiptap/core' {
|
|
|
309
313
|
|
|
310
314
|
declare module '@tiptap/core' {
|
|
311
315
|
interface Commands<ReturnType> {
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
316
|
+
columns: {
|
|
317
|
+
insertColumns: (attrs?: {
|
|
318
|
+
cols: number;
|
|
319
|
+
}) => ReturnType;
|
|
320
|
+
addColBefore: () => ReturnType;
|
|
321
|
+
addColAfter: () => ReturnType;
|
|
322
|
+
deleteCol: () => ReturnType;
|
|
315
323
|
};
|
|
316
324
|
}
|
|
317
325
|
}
|
|
@@ -319,19 +327,9 @@ declare module '@tiptap/core' {
|
|
|
319
327
|
|
|
320
328
|
declare module '@tiptap/core' {
|
|
321
329
|
interface Commands<ReturnType> {
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
*/
|
|
326
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
327
|
-
/**
|
|
328
|
-
* Update an image
|
|
329
|
-
*/
|
|
330
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
331
|
-
/**
|
|
332
|
-
* Set image alignment
|
|
333
|
-
*/
|
|
334
|
-
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
330
|
+
lineHeight: {
|
|
331
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
332
|
+
unsetLineHeight: () => ReturnType;
|
|
335
333
|
};
|
|
336
334
|
}
|
|
337
335
|
}
|
|
@@ -339,8 +337,15 @@ declare module '@tiptap/core' {
|
|
|
339
337
|
|
|
340
338
|
declare module '@tiptap/core' {
|
|
341
339
|
interface Commands<ReturnType> {
|
|
342
|
-
|
|
343
|
-
|
|
340
|
+
indent: {
|
|
341
|
+
/**
|
|
342
|
+
* Set the indent attribute
|
|
343
|
+
*/
|
|
344
|
+
indent: () => ReturnType;
|
|
345
|
+
/**
|
|
346
|
+
* Set the outdent attribute
|
|
347
|
+
*/
|
|
348
|
+
outdent: () => ReturnType;
|
|
344
349
|
};
|
|
345
350
|
}
|
|
346
351
|
}
|
|
@@ -348,13 +353,9 @@ declare module '@tiptap/core' {
|
|
|
348
353
|
|
|
349
354
|
declare module '@tiptap/core' {
|
|
350
355
|
interface Commands<ReturnType> {
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
}) => ReturnType;
|
|
355
|
-
addColBefore: () => ReturnType;
|
|
356
|
-
addColAfter: () => ReturnType;
|
|
357
|
-
deleteCol: () => ReturnType;
|
|
356
|
+
tableCellBackground: {
|
|
357
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
358
|
+
unsetTableCellBackground: () => ReturnType;
|
|
358
359
|
};
|
|
359
360
|
}
|
|
360
361
|
}
|
|
@@ -362,9 +363,8 @@ declare module '@tiptap/core' {
|
|
|
362
363
|
|
|
363
364
|
declare module '@tiptap/core' {
|
|
364
365
|
interface Commands<ReturnType> {
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
unsetTableCellBackground: () => ReturnType;
|
|
366
|
+
painter: {
|
|
367
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
368
368
|
};
|
|
369
369
|
}
|
|
370
370
|
}
|
|
@@ -387,14 +387,8 @@ declare module '@tiptap/core' {
|
|
|
387
387
|
|
|
388
388
|
declare module '@tiptap/core' {
|
|
389
389
|
interface Commands<ReturnType> {
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
393
|
-
replace: () => ReturnType;
|
|
394
|
-
replaceAll: () => ReturnType;
|
|
395
|
-
goToPrevSearchResult: () => void;
|
|
396
|
-
goToNextSearchResult: () => void;
|
|
397
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
390
|
+
exportWord: {
|
|
391
|
+
exportToWord: () => ReturnType;
|
|
398
392
|
};
|
|
399
393
|
}
|
|
400
394
|
}
|
|
@@ -414,8 +408,14 @@ declare module '@tiptap/core' {
|
|
|
414
408
|
|
|
415
409
|
declare module '@tiptap/core' {
|
|
416
410
|
interface Commands<ReturnType> {
|
|
417
|
-
|
|
418
|
-
|
|
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;
|
|
419
419
|
};
|
|
420
420
|
}
|
|
421
421
|
}
|
|
@@ -423,8 +423,8 @@ declare module '@tiptap/core' {
|
|
|
423
423
|
|
|
424
424
|
declare module '@tiptap/core' {
|
|
425
425
|
interface Commands<ReturnType> {
|
|
426
|
-
|
|
427
|
-
|
|
426
|
+
katex: {
|
|
427
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
428
428
|
};
|
|
429
429
|
}
|
|
430
430
|
}
|
|
@@ -442,8 +442,18 @@ declare module '@tiptap/core' {
|
|
|
442
442
|
|
|
443
443
|
declare module '@tiptap/core' {
|
|
444
444
|
interface Commands<ReturnType> {
|
|
445
|
-
|
|
446
|
-
|
|
445
|
+
attachment: {
|
|
446
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
declare module '@tiptap/core' {
|
|
453
|
+
interface Commands<ReturnType> {
|
|
454
|
+
drawer: {
|
|
455
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
456
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
447
457
|
};
|
|
448
458
|
}
|
|
449
459
|
}
|
|
@@ -469,25 +479,6 @@ declare module '@tiptap/core' {
|
|
|
469
479
|
}
|
|
470
480
|
|
|
471
481
|
|
|
472
|
-
declare module '@tiptap/core' {
|
|
473
|
-
interface Commands<ReturnType> {
|
|
474
|
-
attachment: {
|
|
475
|
-
setAttachment: (attrs?: unknown) => ReturnType;
|
|
476
|
-
};
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
declare module '@tiptap/core' {
|
|
482
|
-
interface Commands<ReturnType> {
|
|
483
|
-
mermaid: {
|
|
484
|
-
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
485
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
486
|
-
};
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
|
|
491
482
|
declare module '@tiptap/core' {
|
|
492
483
|
interface Commands<ReturnType> {
|
|
493
484
|
twitter: {
|
|
@@ -505,9 +496,9 @@ declare module '@tiptap/core' {
|
|
|
505
496
|
|
|
506
497
|
declare module '@tiptap/core' {
|
|
507
498
|
interface Commands<ReturnType> {
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
499
|
+
mermaid: {
|
|
500
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
501
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
511
502
|
};
|
|
512
503
|
}
|
|
513
504
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -293,15 +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
|
-
|
|
304
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
305
|
+
/**
|
|
306
|
+
* Set image alignment
|
|
307
|
+
*/
|
|
308
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
305
309
|
};
|
|
306
310
|
}
|
|
307
311
|
}
|
|
@@ -309,9 +313,13 @@ declare module '@tiptap/core' {
|
|
|
309
313
|
|
|
310
314
|
declare module '@tiptap/core' {
|
|
311
315
|
interface Commands<ReturnType> {
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
316
|
+
columns: {
|
|
317
|
+
insertColumns: (attrs?: {
|
|
318
|
+
cols: number;
|
|
319
|
+
}) => ReturnType;
|
|
320
|
+
addColBefore: () => ReturnType;
|
|
321
|
+
addColAfter: () => ReturnType;
|
|
322
|
+
deleteCol: () => ReturnType;
|
|
315
323
|
};
|
|
316
324
|
}
|
|
317
325
|
}
|
|
@@ -319,19 +327,9 @@ declare module '@tiptap/core' {
|
|
|
319
327
|
|
|
320
328
|
declare module '@tiptap/core' {
|
|
321
329
|
interface Commands<ReturnType> {
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
*/
|
|
326
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
327
|
-
/**
|
|
328
|
-
* Update an image
|
|
329
|
-
*/
|
|
330
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
331
|
-
/**
|
|
332
|
-
* Set image alignment
|
|
333
|
-
*/
|
|
334
|
-
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
330
|
+
lineHeight: {
|
|
331
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
332
|
+
unsetLineHeight: () => ReturnType;
|
|
335
333
|
};
|
|
336
334
|
}
|
|
337
335
|
}
|
|
@@ -339,8 +337,15 @@ declare module '@tiptap/core' {
|
|
|
339
337
|
|
|
340
338
|
declare module '@tiptap/core' {
|
|
341
339
|
interface Commands<ReturnType> {
|
|
342
|
-
|
|
343
|
-
|
|
340
|
+
indent: {
|
|
341
|
+
/**
|
|
342
|
+
* Set the indent attribute
|
|
343
|
+
*/
|
|
344
|
+
indent: () => ReturnType;
|
|
345
|
+
/**
|
|
346
|
+
* Set the outdent attribute
|
|
347
|
+
*/
|
|
348
|
+
outdent: () => ReturnType;
|
|
344
349
|
};
|
|
345
350
|
}
|
|
346
351
|
}
|
|
@@ -348,13 +353,9 @@ declare module '@tiptap/core' {
|
|
|
348
353
|
|
|
349
354
|
declare module '@tiptap/core' {
|
|
350
355
|
interface Commands<ReturnType> {
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
}) => ReturnType;
|
|
355
|
-
addColBefore: () => ReturnType;
|
|
356
|
-
addColAfter: () => ReturnType;
|
|
357
|
-
deleteCol: () => ReturnType;
|
|
356
|
+
tableCellBackground: {
|
|
357
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
358
|
+
unsetTableCellBackground: () => ReturnType;
|
|
358
359
|
};
|
|
359
360
|
}
|
|
360
361
|
}
|
|
@@ -362,9 +363,8 @@ declare module '@tiptap/core' {
|
|
|
362
363
|
|
|
363
364
|
declare module '@tiptap/core' {
|
|
364
365
|
interface Commands<ReturnType> {
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
unsetTableCellBackground: () => ReturnType;
|
|
366
|
+
painter: {
|
|
367
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
368
368
|
};
|
|
369
369
|
}
|
|
370
370
|
}
|
|
@@ -387,14 +387,8 @@ declare module '@tiptap/core' {
|
|
|
387
387
|
|
|
388
388
|
declare module '@tiptap/core' {
|
|
389
389
|
interface Commands<ReturnType> {
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
393
|
-
replace: () => ReturnType;
|
|
394
|
-
replaceAll: () => ReturnType;
|
|
395
|
-
goToPrevSearchResult: () => void;
|
|
396
|
-
goToNextSearchResult: () => void;
|
|
397
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
390
|
+
exportWord: {
|
|
391
|
+
exportToWord: () => ReturnType;
|
|
398
392
|
};
|
|
399
393
|
}
|
|
400
394
|
}
|
|
@@ -414,8 +408,14 @@ declare module '@tiptap/core' {
|
|
|
414
408
|
|
|
415
409
|
declare module '@tiptap/core' {
|
|
416
410
|
interface Commands<ReturnType> {
|
|
417
|
-
|
|
418
|
-
|
|
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;
|
|
419
419
|
};
|
|
420
420
|
}
|
|
421
421
|
}
|
|
@@ -423,8 +423,8 @@ declare module '@tiptap/core' {
|
|
|
423
423
|
|
|
424
424
|
declare module '@tiptap/core' {
|
|
425
425
|
interface Commands<ReturnType> {
|
|
426
|
-
|
|
427
|
-
|
|
426
|
+
katex: {
|
|
427
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
428
428
|
};
|
|
429
429
|
}
|
|
430
430
|
}
|
|
@@ -442,8 +442,18 @@ declare module '@tiptap/core' {
|
|
|
442
442
|
|
|
443
443
|
declare module '@tiptap/core' {
|
|
444
444
|
interface Commands<ReturnType> {
|
|
445
|
-
|
|
446
|
-
|
|
445
|
+
attachment: {
|
|
446
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
declare module '@tiptap/core' {
|
|
453
|
+
interface Commands<ReturnType> {
|
|
454
|
+
drawer: {
|
|
455
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
456
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
447
457
|
};
|
|
448
458
|
}
|
|
449
459
|
}
|
|
@@ -469,25 +479,6 @@ declare module '@tiptap/core' {
|
|
|
469
479
|
}
|
|
470
480
|
|
|
471
481
|
|
|
472
|
-
declare module '@tiptap/core' {
|
|
473
|
-
interface Commands<ReturnType> {
|
|
474
|
-
attachment: {
|
|
475
|
-
setAttachment: (attrs?: unknown) => ReturnType;
|
|
476
|
-
};
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
declare module '@tiptap/core' {
|
|
482
|
-
interface Commands<ReturnType> {
|
|
483
|
-
mermaid: {
|
|
484
|
-
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
485
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
486
|
-
};
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
|
|
491
482
|
declare module '@tiptap/core' {
|
|
492
483
|
interface Commands<ReturnType> {
|
|
493
484
|
twitter: {
|
|
@@ -505,9 +496,9 @@ declare module '@tiptap/core' {
|
|
|
505
496
|
|
|
506
497
|
declare module '@tiptap/core' {
|
|
507
498
|
interface Commands<ReturnType> {
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
499
|
+
mermaid: {
|
|
500
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
501
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
511
502
|
};
|
|
512
503
|
}
|
|
513
504
|
}
|