reactjs-tiptap-editor-pro 0.2.41 → 0.2.42
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/extension-bundle.cjs +16 -16
- package/lib/extension-bundle.d.cts +75 -75
- package/lib/extension-bundle.d.ts +75 -75
- package/lib/extension-bundle.js +517 -531
- package/lib/index.d.cts +75 -75
- package/lib/index.d.ts +75 -75
- package/lib/locale-bundle.d.cts +75 -75
- package/lib/locale-bundle.d.ts +75 -75
- package/package.json +20 -21
package/lib/index.d.cts
CHANGED
|
@@ -308,39 +308,9 @@ declare module '@tiptap/core' {
|
|
|
308
308
|
|
|
309
309
|
declare module '@tiptap/core' {
|
|
310
310
|
interface Commands<ReturnType> {
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
*/
|
|
315
|
-
indent: () => ReturnType;
|
|
316
|
-
/**
|
|
317
|
-
* Set the outdent attribute
|
|
318
|
-
*/
|
|
319
|
-
outdent: () => ReturnType;
|
|
320
|
-
};
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
declare module '@tiptap/core' {
|
|
326
|
-
interface Commands<ReturnType> {
|
|
327
|
-
iframe: {
|
|
328
|
-
/**
|
|
329
|
-
* Add an iframe
|
|
330
|
-
*/
|
|
331
|
-
setIframe: (options: {
|
|
332
|
-
src: string;
|
|
333
|
-
service: string;
|
|
334
|
-
}) => ReturnType;
|
|
335
|
-
};
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
declare module '@tiptap/core' {
|
|
341
|
-
interface Commands<ReturnType> {
|
|
342
|
-
painter: {
|
|
343
|
-
setPainter: (marks: Mark[]) => ReturnType;
|
|
311
|
+
lineHeight: {
|
|
312
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
313
|
+
unsetLineHeight: () => ReturnType;
|
|
344
314
|
};
|
|
345
315
|
}
|
|
346
316
|
}
|
|
@@ -368,9 +338,9 @@ declare module '@tiptap/core' {
|
|
|
368
338
|
|
|
369
339
|
declare module '@tiptap/core' {
|
|
370
340
|
interface Commands<ReturnType> {
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
341
|
+
tableOfContents: {
|
|
342
|
+
setTableOfContents: () => ReturnType;
|
|
343
|
+
removeTableOfContents: () => ReturnType;
|
|
374
344
|
};
|
|
375
345
|
}
|
|
376
346
|
}
|
|
@@ -378,11 +348,24 @@ declare module '@tiptap/core' {
|
|
|
378
348
|
|
|
379
349
|
declare module '@tiptap/core' {
|
|
380
350
|
interface Commands<ReturnType> {
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
351
|
+
indent: {
|
|
352
|
+
/**
|
|
353
|
+
* Set the indent attribute
|
|
354
|
+
*/
|
|
355
|
+
indent: () => ReturnType;
|
|
356
|
+
/**
|
|
357
|
+
* Set the outdent attribute
|
|
358
|
+
*/
|
|
359
|
+
outdent: () => ReturnType;
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
declare module '@tiptap/core' {
|
|
366
|
+
interface Commands<ReturnType> {
|
|
367
|
+
exportWord: {
|
|
368
|
+
exportToWord: () => ReturnType;
|
|
386
369
|
};
|
|
387
370
|
}
|
|
388
371
|
}
|
|
@@ -404,9 +387,8 @@ declare module '@tiptap/core' {
|
|
|
404
387
|
|
|
405
388
|
declare module '@tiptap/core' {
|
|
406
389
|
interface Commands<ReturnType> {
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
unsetTableCellBackground: () => ReturnType;
|
|
390
|
+
katex: {
|
|
391
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
410
392
|
};
|
|
411
393
|
}
|
|
412
394
|
}
|
|
@@ -414,14 +396,8 @@ declare module '@tiptap/core' {
|
|
|
414
396
|
|
|
415
397
|
declare module '@tiptap/core' {
|
|
416
398
|
interface Commands<ReturnType> {
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
420
|
-
replace: () => ReturnType;
|
|
421
|
-
replaceAll: () => ReturnType;
|
|
422
|
-
goToPrevSearchResult: () => void;
|
|
423
|
-
goToNextSearchResult: () => void;
|
|
424
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
399
|
+
painter: {
|
|
400
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
425
401
|
};
|
|
426
402
|
}
|
|
427
403
|
}
|
|
@@ -429,8 +405,11 @@ declare module '@tiptap/core' {
|
|
|
429
405
|
|
|
430
406
|
declare module '@tiptap/core' {
|
|
431
407
|
interface Commands<ReturnType> {
|
|
432
|
-
|
|
433
|
-
|
|
408
|
+
emoji: {
|
|
409
|
+
setEmoji: (emoji: {
|
|
410
|
+
name: string;
|
|
411
|
+
emoji: string;
|
|
412
|
+
}) => ReturnType;
|
|
434
413
|
};
|
|
435
414
|
}
|
|
436
415
|
}
|
|
@@ -438,8 +417,14 @@ declare module '@tiptap/core' {
|
|
|
438
417
|
|
|
439
418
|
declare module '@tiptap/core' {
|
|
440
419
|
interface Commands<ReturnType> {
|
|
441
|
-
|
|
442
|
-
|
|
420
|
+
search: {
|
|
421
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
422
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
423
|
+
replace: () => ReturnType;
|
|
424
|
+
replaceAll: () => ReturnType;
|
|
425
|
+
goToPrevSearchResult: () => void;
|
|
426
|
+
goToNextSearchResult: () => void;
|
|
427
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
443
428
|
};
|
|
444
429
|
}
|
|
445
430
|
}
|
|
@@ -447,9 +432,14 @@ declare module '@tiptap/core' {
|
|
|
447
432
|
|
|
448
433
|
declare module '@tiptap/core' {
|
|
449
434
|
interface Commands<ReturnType> {
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
435
|
+
iframe: {
|
|
436
|
+
/**
|
|
437
|
+
* Add an iframe
|
|
438
|
+
*/
|
|
439
|
+
setIframe: (options: {
|
|
440
|
+
src: string;
|
|
441
|
+
service: string;
|
|
442
|
+
}) => ReturnType;
|
|
453
443
|
};
|
|
454
444
|
}
|
|
455
445
|
}
|
|
@@ -457,8 +447,9 @@ declare module '@tiptap/core' {
|
|
|
457
447
|
|
|
458
448
|
declare module '@tiptap/core' {
|
|
459
449
|
interface Commands<ReturnType> {
|
|
460
|
-
|
|
461
|
-
|
|
450
|
+
tableCellBackground: {
|
|
451
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
452
|
+
unsetTableCellBackground: () => ReturnType;
|
|
462
453
|
};
|
|
463
454
|
}
|
|
464
455
|
}
|
|
@@ -466,14 +457,8 @@ declare module '@tiptap/core' {
|
|
|
466
457
|
|
|
467
458
|
declare module '@tiptap/core' {
|
|
468
459
|
interface Commands<ReturnType> {
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
* Insert a tweet
|
|
472
|
-
* @param options The tweet attributes
|
|
473
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
474
|
-
*/
|
|
475
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
476
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
460
|
+
attachment: {
|
|
461
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
477
462
|
};
|
|
478
463
|
}
|
|
479
464
|
}
|
|
@@ -501,9 +486,9 @@ declare module '@tiptap/core' {
|
|
|
501
486
|
|
|
502
487
|
declare module '@tiptap/core' {
|
|
503
488
|
interface Commands<ReturnType> {
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
489
|
+
mermaid: {
|
|
490
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
491
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
507
492
|
};
|
|
508
493
|
}
|
|
509
494
|
}
|
|
@@ -511,9 +496,24 @@ declare module '@tiptap/core' {
|
|
|
511
496
|
|
|
512
497
|
declare module '@tiptap/core' {
|
|
513
498
|
interface Commands<ReturnType> {
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
499
|
+
twitter: {
|
|
500
|
+
/**
|
|
501
|
+
* Insert a tweet
|
|
502
|
+
* @param options The tweet attributes
|
|
503
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
504
|
+
*/
|
|
505
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
506
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
507
|
+
};
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
declare module '@tiptap/core' {
|
|
513
|
+
interface Commands<ReturnType> {
|
|
514
|
+
drawer: {
|
|
515
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
516
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
517
517
|
};
|
|
518
518
|
}
|
|
519
519
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -308,39 +308,9 @@ declare module '@tiptap/core' {
|
|
|
308
308
|
|
|
309
309
|
declare module '@tiptap/core' {
|
|
310
310
|
interface Commands<ReturnType> {
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
*/
|
|
315
|
-
indent: () => ReturnType;
|
|
316
|
-
/**
|
|
317
|
-
* Set the outdent attribute
|
|
318
|
-
*/
|
|
319
|
-
outdent: () => ReturnType;
|
|
320
|
-
};
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
declare module '@tiptap/core' {
|
|
326
|
-
interface Commands<ReturnType> {
|
|
327
|
-
iframe: {
|
|
328
|
-
/**
|
|
329
|
-
* Add an iframe
|
|
330
|
-
*/
|
|
331
|
-
setIframe: (options: {
|
|
332
|
-
src: string;
|
|
333
|
-
service: string;
|
|
334
|
-
}) => ReturnType;
|
|
335
|
-
};
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
declare module '@tiptap/core' {
|
|
341
|
-
interface Commands<ReturnType> {
|
|
342
|
-
painter: {
|
|
343
|
-
setPainter: (marks: Mark[]) => ReturnType;
|
|
311
|
+
lineHeight: {
|
|
312
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
313
|
+
unsetLineHeight: () => ReturnType;
|
|
344
314
|
};
|
|
345
315
|
}
|
|
346
316
|
}
|
|
@@ -368,9 +338,9 @@ declare module '@tiptap/core' {
|
|
|
368
338
|
|
|
369
339
|
declare module '@tiptap/core' {
|
|
370
340
|
interface Commands<ReturnType> {
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
341
|
+
tableOfContents: {
|
|
342
|
+
setTableOfContents: () => ReturnType;
|
|
343
|
+
removeTableOfContents: () => ReturnType;
|
|
374
344
|
};
|
|
375
345
|
}
|
|
376
346
|
}
|
|
@@ -378,11 +348,24 @@ declare module '@tiptap/core' {
|
|
|
378
348
|
|
|
379
349
|
declare module '@tiptap/core' {
|
|
380
350
|
interface Commands<ReturnType> {
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
351
|
+
indent: {
|
|
352
|
+
/**
|
|
353
|
+
* Set the indent attribute
|
|
354
|
+
*/
|
|
355
|
+
indent: () => ReturnType;
|
|
356
|
+
/**
|
|
357
|
+
* Set the outdent attribute
|
|
358
|
+
*/
|
|
359
|
+
outdent: () => ReturnType;
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
declare module '@tiptap/core' {
|
|
366
|
+
interface Commands<ReturnType> {
|
|
367
|
+
exportWord: {
|
|
368
|
+
exportToWord: () => ReturnType;
|
|
386
369
|
};
|
|
387
370
|
}
|
|
388
371
|
}
|
|
@@ -404,9 +387,8 @@ declare module '@tiptap/core' {
|
|
|
404
387
|
|
|
405
388
|
declare module '@tiptap/core' {
|
|
406
389
|
interface Commands<ReturnType> {
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
unsetTableCellBackground: () => ReturnType;
|
|
390
|
+
katex: {
|
|
391
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
410
392
|
};
|
|
411
393
|
}
|
|
412
394
|
}
|
|
@@ -414,14 +396,8 @@ declare module '@tiptap/core' {
|
|
|
414
396
|
|
|
415
397
|
declare module '@tiptap/core' {
|
|
416
398
|
interface Commands<ReturnType> {
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
420
|
-
replace: () => ReturnType;
|
|
421
|
-
replaceAll: () => ReturnType;
|
|
422
|
-
goToPrevSearchResult: () => void;
|
|
423
|
-
goToNextSearchResult: () => void;
|
|
424
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
399
|
+
painter: {
|
|
400
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
425
401
|
};
|
|
426
402
|
}
|
|
427
403
|
}
|
|
@@ -429,8 +405,11 @@ declare module '@tiptap/core' {
|
|
|
429
405
|
|
|
430
406
|
declare module '@tiptap/core' {
|
|
431
407
|
interface Commands<ReturnType> {
|
|
432
|
-
|
|
433
|
-
|
|
408
|
+
emoji: {
|
|
409
|
+
setEmoji: (emoji: {
|
|
410
|
+
name: string;
|
|
411
|
+
emoji: string;
|
|
412
|
+
}) => ReturnType;
|
|
434
413
|
};
|
|
435
414
|
}
|
|
436
415
|
}
|
|
@@ -438,8 +417,14 @@ declare module '@tiptap/core' {
|
|
|
438
417
|
|
|
439
418
|
declare module '@tiptap/core' {
|
|
440
419
|
interface Commands<ReturnType> {
|
|
441
|
-
|
|
442
|
-
|
|
420
|
+
search: {
|
|
421
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
422
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
423
|
+
replace: () => ReturnType;
|
|
424
|
+
replaceAll: () => ReturnType;
|
|
425
|
+
goToPrevSearchResult: () => void;
|
|
426
|
+
goToNextSearchResult: () => void;
|
|
427
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
443
428
|
};
|
|
444
429
|
}
|
|
445
430
|
}
|
|
@@ -447,9 +432,14 @@ declare module '@tiptap/core' {
|
|
|
447
432
|
|
|
448
433
|
declare module '@tiptap/core' {
|
|
449
434
|
interface Commands<ReturnType> {
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
435
|
+
iframe: {
|
|
436
|
+
/**
|
|
437
|
+
* Add an iframe
|
|
438
|
+
*/
|
|
439
|
+
setIframe: (options: {
|
|
440
|
+
src: string;
|
|
441
|
+
service: string;
|
|
442
|
+
}) => ReturnType;
|
|
453
443
|
};
|
|
454
444
|
}
|
|
455
445
|
}
|
|
@@ -457,8 +447,9 @@ declare module '@tiptap/core' {
|
|
|
457
447
|
|
|
458
448
|
declare module '@tiptap/core' {
|
|
459
449
|
interface Commands<ReturnType> {
|
|
460
|
-
|
|
461
|
-
|
|
450
|
+
tableCellBackground: {
|
|
451
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
452
|
+
unsetTableCellBackground: () => ReturnType;
|
|
462
453
|
};
|
|
463
454
|
}
|
|
464
455
|
}
|
|
@@ -466,14 +457,8 @@ declare module '@tiptap/core' {
|
|
|
466
457
|
|
|
467
458
|
declare module '@tiptap/core' {
|
|
468
459
|
interface Commands<ReturnType> {
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
* Insert a tweet
|
|
472
|
-
* @param options The tweet attributes
|
|
473
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
474
|
-
*/
|
|
475
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
476
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
460
|
+
attachment: {
|
|
461
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
477
462
|
};
|
|
478
463
|
}
|
|
479
464
|
}
|
|
@@ -501,9 +486,9 @@ declare module '@tiptap/core' {
|
|
|
501
486
|
|
|
502
487
|
declare module '@tiptap/core' {
|
|
503
488
|
interface Commands<ReturnType> {
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
489
|
+
mermaid: {
|
|
490
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
491
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
507
492
|
};
|
|
508
493
|
}
|
|
509
494
|
}
|
|
@@ -511,9 +496,24 @@ declare module '@tiptap/core' {
|
|
|
511
496
|
|
|
512
497
|
declare module '@tiptap/core' {
|
|
513
498
|
interface Commands<ReturnType> {
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
499
|
+
twitter: {
|
|
500
|
+
/**
|
|
501
|
+
* Insert a tweet
|
|
502
|
+
* @param options The tweet attributes
|
|
503
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
504
|
+
*/
|
|
505
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
506
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
507
|
+
};
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
|
|
512
|
+
declare module '@tiptap/core' {
|
|
513
|
+
interface Commands<ReturnType> {
|
|
514
|
+
drawer: {
|
|
515
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
516
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
517
517
|
};
|
|
518
518
|
}
|
|
519
519
|
}
|
package/lib/locale-bundle.d.cts
CHANGED
|
@@ -920,39 +920,9 @@ declare module '@tiptap/core' {
|
|
|
920
920
|
|
|
921
921
|
declare module '@tiptap/core' {
|
|
922
922
|
interface Commands<ReturnType> {
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
*/
|
|
927
|
-
indent: () => ReturnType;
|
|
928
|
-
/**
|
|
929
|
-
* Set the outdent attribute
|
|
930
|
-
*/
|
|
931
|
-
outdent: () => ReturnType;
|
|
932
|
-
};
|
|
933
|
-
}
|
|
934
|
-
}
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
declare module '@tiptap/core' {
|
|
938
|
-
interface Commands<ReturnType> {
|
|
939
|
-
iframe: {
|
|
940
|
-
/**
|
|
941
|
-
* Add an iframe
|
|
942
|
-
*/
|
|
943
|
-
setIframe: (options: {
|
|
944
|
-
src: string;
|
|
945
|
-
service: string;
|
|
946
|
-
}) => ReturnType;
|
|
947
|
-
};
|
|
948
|
-
}
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
declare module '@tiptap/core' {
|
|
953
|
-
interface Commands<ReturnType> {
|
|
954
|
-
painter: {
|
|
955
|
-
setPainter: (marks: Mark[]) => ReturnType;
|
|
923
|
+
lineHeight: {
|
|
924
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
925
|
+
unsetLineHeight: () => ReturnType;
|
|
956
926
|
};
|
|
957
927
|
}
|
|
958
928
|
}
|
|
@@ -980,9 +950,9 @@ declare module '@tiptap/core' {
|
|
|
980
950
|
|
|
981
951
|
declare module '@tiptap/core' {
|
|
982
952
|
interface Commands<ReturnType> {
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
953
|
+
tableOfContents: {
|
|
954
|
+
setTableOfContents: () => ReturnType;
|
|
955
|
+
removeTableOfContents: () => ReturnType;
|
|
986
956
|
};
|
|
987
957
|
}
|
|
988
958
|
}
|
|
@@ -990,11 +960,24 @@ declare module '@tiptap/core' {
|
|
|
990
960
|
|
|
991
961
|
declare module '@tiptap/core' {
|
|
992
962
|
interface Commands<ReturnType> {
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
963
|
+
indent: {
|
|
964
|
+
/**
|
|
965
|
+
* Set the indent attribute
|
|
966
|
+
*/
|
|
967
|
+
indent: () => ReturnType;
|
|
968
|
+
/**
|
|
969
|
+
* Set the outdent attribute
|
|
970
|
+
*/
|
|
971
|
+
outdent: () => ReturnType;
|
|
972
|
+
};
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
|
|
977
|
+
declare module '@tiptap/core' {
|
|
978
|
+
interface Commands<ReturnType> {
|
|
979
|
+
exportWord: {
|
|
980
|
+
exportToWord: () => ReturnType;
|
|
998
981
|
};
|
|
999
982
|
}
|
|
1000
983
|
}
|
|
@@ -1016,9 +999,8 @@ declare module '@tiptap/core' {
|
|
|
1016
999
|
|
|
1017
1000
|
declare module '@tiptap/core' {
|
|
1018
1001
|
interface Commands<ReturnType> {
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
unsetTableCellBackground: () => ReturnType;
|
|
1002
|
+
katex: {
|
|
1003
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1022
1004
|
};
|
|
1023
1005
|
}
|
|
1024
1006
|
}
|
|
@@ -1026,14 +1008,8 @@ declare module '@tiptap/core' {
|
|
|
1026
1008
|
|
|
1027
1009
|
declare module '@tiptap/core' {
|
|
1028
1010
|
interface Commands<ReturnType> {
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
1032
|
-
replace: () => ReturnType;
|
|
1033
|
-
replaceAll: () => ReturnType;
|
|
1034
|
-
goToPrevSearchResult: () => void;
|
|
1035
|
-
goToNextSearchResult: () => void;
|
|
1036
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
1011
|
+
painter: {
|
|
1012
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1037
1013
|
};
|
|
1038
1014
|
}
|
|
1039
1015
|
}
|
|
@@ -1041,8 +1017,11 @@ declare module '@tiptap/core' {
|
|
|
1041
1017
|
|
|
1042
1018
|
declare module '@tiptap/core' {
|
|
1043
1019
|
interface Commands<ReturnType> {
|
|
1044
|
-
|
|
1045
|
-
|
|
1020
|
+
emoji: {
|
|
1021
|
+
setEmoji: (emoji: {
|
|
1022
|
+
name: string;
|
|
1023
|
+
emoji: string;
|
|
1024
|
+
}) => ReturnType;
|
|
1046
1025
|
};
|
|
1047
1026
|
}
|
|
1048
1027
|
}
|
|
@@ -1050,8 +1029,14 @@ declare module '@tiptap/core' {
|
|
|
1050
1029
|
|
|
1051
1030
|
declare module '@tiptap/core' {
|
|
1052
1031
|
interface Commands<ReturnType> {
|
|
1053
|
-
|
|
1054
|
-
|
|
1032
|
+
search: {
|
|
1033
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
1034
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
1035
|
+
replace: () => ReturnType;
|
|
1036
|
+
replaceAll: () => ReturnType;
|
|
1037
|
+
goToPrevSearchResult: () => void;
|
|
1038
|
+
goToNextSearchResult: () => void;
|
|
1039
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
1055
1040
|
};
|
|
1056
1041
|
}
|
|
1057
1042
|
}
|
|
@@ -1059,9 +1044,14 @@ declare module '@tiptap/core' {
|
|
|
1059
1044
|
|
|
1060
1045
|
declare module '@tiptap/core' {
|
|
1061
1046
|
interface Commands<ReturnType> {
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1047
|
+
iframe: {
|
|
1048
|
+
/**
|
|
1049
|
+
* Add an iframe
|
|
1050
|
+
*/
|
|
1051
|
+
setIframe: (options: {
|
|
1052
|
+
src: string;
|
|
1053
|
+
service: string;
|
|
1054
|
+
}) => ReturnType;
|
|
1065
1055
|
};
|
|
1066
1056
|
}
|
|
1067
1057
|
}
|
|
@@ -1069,8 +1059,9 @@ declare module '@tiptap/core' {
|
|
|
1069
1059
|
|
|
1070
1060
|
declare module '@tiptap/core' {
|
|
1071
1061
|
interface Commands<ReturnType> {
|
|
1072
|
-
|
|
1073
|
-
|
|
1062
|
+
tableCellBackground: {
|
|
1063
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
1064
|
+
unsetTableCellBackground: () => ReturnType;
|
|
1074
1065
|
};
|
|
1075
1066
|
}
|
|
1076
1067
|
}
|
|
@@ -1078,14 +1069,8 @@ declare module '@tiptap/core' {
|
|
|
1078
1069
|
|
|
1079
1070
|
declare module '@tiptap/core' {
|
|
1080
1071
|
interface Commands<ReturnType> {
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
* Insert a tweet
|
|
1084
|
-
* @param options The tweet attributes
|
|
1085
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
1086
|
-
*/
|
|
1087
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
1088
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
1072
|
+
attachment: {
|
|
1073
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1089
1074
|
};
|
|
1090
1075
|
}
|
|
1091
1076
|
}
|
|
@@ -1113,9 +1098,9 @@ declare module '@tiptap/core' {
|
|
|
1113
1098
|
|
|
1114
1099
|
declare module '@tiptap/core' {
|
|
1115
1100
|
interface Commands<ReturnType> {
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1101
|
+
mermaid: {
|
|
1102
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1103
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1119
1104
|
};
|
|
1120
1105
|
}
|
|
1121
1106
|
}
|
|
@@ -1123,9 +1108,24 @@ declare module '@tiptap/core' {
|
|
|
1123
1108
|
|
|
1124
1109
|
declare module '@tiptap/core' {
|
|
1125
1110
|
interface Commands<ReturnType> {
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1111
|
+
twitter: {
|
|
1112
|
+
/**
|
|
1113
|
+
* Insert a tweet
|
|
1114
|
+
* @param options The tweet attributes
|
|
1115
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
1116
|
+
*/
|
|
1117
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
1118
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
1119
|
+
};
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
|
|
1124
|
+
declare module '@tiptap/core' {
|
|
1125
|
+
interface Commands<ReturnType> {
|
|
1126
|
+
drawer: {
|
|
1127
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
1128
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1129
1129
|
};
|
|
1130
1130
|
}
|
|
1131
1131
|
}
|