reactjs-tiptap-editor-pro 0.2.37 → 0.2.38
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.d.cts +90 -90
- package/lib/extension-bundle.d.ts +90 -90
- package/lib/index.cjs +3 -3
- package/lib/index.d.cts +90 -90
- package/lib/index.d.ts +90 -90
- package/lib/index.js +65 -64
- package/lib/locale-bundle.d.cts +90 -90
- package/lib/locale-bundle.d.ts +90 -90
- package/package.json +1 -1
package/lib/index.d.cts
CHANGED
|
@@ -290,34 +290,17 @@ declare module '@tiptap/core' {
|
|
|
290
290
|
|
|
291
291
|
declare module '@tiptap/core' {
|
|
292
292
|
interface Commands<ReturnType> {
|
|
293
|
-
|
|
294
|
-
/**
|
|
295
|
-
* Add an image
|
|
296
|
-
*/
|
|
297
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
298
|
-
/**
|
|
299
|
-
* Update an image
|
|
300
|
-
*/
|
|
301
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
293
|
+
fontSize: {
|
|
302
294
|
/**
|
|
303
|
-
* Set
|
|
295
|
+
* Set the text font size. ex: "12px", "2em", or "small". Must be a valid
|
|
296
|
+
* CSS font-size
|
|
297
|
+
* (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
|
|
304
298
|
*/
|
|
305
|
-
|
|
306
|
-
};
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
declare module '@tiptap/core' {
|
|
312
|
-
interface Commands<ReturnType> {
|
|
313
|
-
iframe: {
|
|
299
|
+
setFontSize: (fontSize: string) => ReturnType;
|
|
314
300
|
/**
|
|
315
|
-
*
|
|
301
|
+
* Unset the font size
|
|
316
302
|
*/
|
|
317
|
-
|
|
318
|
-
src: string;
|
|
319
|
-
service: string;
|
|
320
|
-
}) => ReturnType;
|
|
303
|
+
unsetFontSize: () => ReturnType;
|
|
321
304
|
};
|
|
322
305
|
}
|
|
323
306
|
}
|
|
@@ -339,6 +322,20 @@ declare module '@tiptap/core' {
|
|
|
339
322
|
}
|
|
340
323
|
|
|
341
324
|
|
|
325
|
+
declare module '@tiptap/core' {
|
|
326
|
+
interface Commands<ReturnType> {
|
|
327
|
+
columns: {
|
|
328
|
+
insertColumns: (attrs?: {
|
|
329
|
+
cols: number;
|
|
330
|
+
}) => ReturnType;
|
|
331
|
+
addColBefore: () => ReturnType;
|
|
332
|
+
addColAfter: () => ReturnType;
|
|
333
|
+
deleteCol: () => ReturnType;
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
|
|
342
339
|
declare module '@tiptap/core' {
|
|
343
340
|
interface Commands<ReturnType> {
|
|
344
341
|
lineHeight: {
|
|
@@ -351,11 +348,8 @@ declare module '@tiptap/core' {
|
|
|
351
348
|
|
|
352
349
|
declare module '@tiptap/core' {
|
|
353
350
|
interface Commands<ReturnType> {
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
name: string;
|
|
357
|
-
emoji: string;
|
|
358
|
-
}) => ReturnType;
|
|
351
|
+
painter: {
|
|
352
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
359
353
|
};
|
|
360
354
|
}
|
|
361
355
|
}
|
|
@@ -363,17 +357,34 @@ declare module '@tiptap/core' {
|
|
|
363
357
|
|
|
364
358
|
declare module '@tiptap/core' {
|
|
365
359
|
interface Commands<ReturnType> {
|
|
366
|
-
|
|
360
|
+
search: {
|
|
361
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
362
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
363
|
+
replace: () => ReturnType;
|
|
364
|
+
replaceAll: () => ReturnType;
|
|
365
|
+
goToPrevSearchResult: () => void;
|
|
366
|
+
goToNextSearchResult: () => void;
|
|
367
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
368
|
+
};
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
declare module '@tiptap/core' {
|
|
374
|
+
interface Commands<ReturnType> {
|
|
375
|
+
imageUpload: {
|
|
367
376
|
/**
|
|
368
|
-
*
|
|
369
|
-
* CSS font-size
|
|
370
|
-
* (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
|
|
377
|
+
* Add an image
|
|
371
378
|
*/
|
|
372
|
-
|
|
379
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
373
380
|
/**
|
|
374
|
-
*
|
|
381
|
+
* Update an image
|
|
375
382
|
*/
|
|
376
|
-
|
|
383
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
384
|
+
/**
|
|
385
|
+
* Set image alignment
|
|
386
|
+
*/
|
|
387
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
377
388
|
};
|
|
378
389
|
}
|
|
379
390
|
}
|
|
@@ -381,9 +392,14 @@ declare module '@tiptap/core' {
|
|
|
381
392
|
|
|
382
393
|
declare module '@tiptap/core' {
|
|
383
394
|
interface Commands<ReturnType> {
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
395
|
+
iframe: {
|
|
396
|
+
/**
|
|
397
|
+
* Add an iframe
|
|
398
|
+
*/
|
|
399
|
+
setIframe: (options: {
|
|
400
|
+
src: string;
|
|
401
|
+
service: string;
|
|
402
|
+
}) => ReturnType;
|
|
387
403
|
};
|
|
388
404
|
}
|
|
389
405
|
}
|
|
@@ -391,9 +407,11 @@ declare module '@tiptap/core' {
|
|
|
391
407
|
|
|
392
408
|
declare module '@tiptap/core' {
|
|
393
409
|
interface Commands<ReturnType> {
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
410
|
+
emoji: {
|
|
411
|
+
setEmoji: (emoji: {
|
|
412
|
+
name: string;
|
|
413
|
+
emoji: string;
|
|
414
|
+
}) => ReturnType;
|
|
397
415
|
};
|
|
398
416
|
}
|
|
399
417
|
}
|
|
@@ -401,8 +419,9 @@ declare module '@tiptap/core' {
|
|
|
401
419
|
|
|
402
420
|
declare module '@tiptap/core' {
|
|
403
421
|
interface Commands<ReturnType> {
|
|
404
|
-
|
|
405
|
-
|
|
422
|
+
tableCellBackground: {
|
|
423
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
424
|
+
unsetTableCellBackground: () => ReturnType;
|
|
406
425
|
};
|
|
407
426
|
}
|
|
408
427
|
}
|
|
@@ -410,8 +429,8 @@ declare module '@tiptap/core' {
|
|
|
410
429
|
|
|
411
430
|
declare module '@tiptap/core' {
|
|
412
431
|
interface Commands<ReturnType> {
|
|
413
|
-
|
|
414
|
-
|
|
432
|
+
katex: {
|
|
433
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
415
434
|
};
|
|
416
435
|
}
|
|
417
436
|
}
|
|
@@ -419,14 +438,9 @@ declare module '@tiptap/core' {
|
|
|
419
438
|
|
|
420
439
|
declare module '@tiptap/core' {
|
|
421
440
|
interface Commands<ReturnType> {
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
replace: () => ReturnType;
|
|
426
|
-
replaceAll: () => ReturnType;
|
|
427
|
-
goToPrevSearchResult: () => void;
|
|
428
|
-
goToNextSearchResult: () => void;
|
|
429
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
441
|
+
tableOfContents: {
|
|
442
|
+
setTableOfContents: () => ReturnType;
|
|
443
|
+
removeTableOfContents: () => ReturnType;
|
|
430
444
|
};
|
|
431
445
|
}
|
|
432
446
|
}
|
|
@@ -434,13 +448,8 @@ declare module '@tiptap/core' {
|
|
|
434
448
|
|
|
435
449
|
declare module '@tiptap/core' {
|
|
436
450
|
interface Commands<ReturnType> {
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
cols: number;
|
|
440
|
-
}) => ReturnType;
|
|
441
|
-
addColBefore: () => ReturnType;
|
|
442
|
-
addColAfter: () => ReturnType;
|
|
443
|
-
deleteCol: () => ReturnType;
|
|
451
|
+
exportWord: {
|
|
452
|
+
exportToWord: () => ReturnType;
|
|
444
453
|
};
|
|
445
454
|
}
|
|
446
455
|
}
|
|
@@ -448,8 +457,23 @@ declare module '@tiptap/core' {
|
|
|
448
457
|
|
|
449
458
|
declare module '@tiptap/core' {
|
|
450
459
|
interface Commands<ReturnType> {
|
|
451
|
-
|
|
452
|
-
|
|
460
|
+
attachment: {
|
|
461
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
462
|
+
};
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
declare module '@tiptap/core' {
|
|
468
|
+
interface Commands<ReturnType> {
|
|
469
|
+
twitter: {
|
|
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;
|
|
453
477
|
};
|
|
454
478
|
}
|
|
455
479
|
}
|
|
@@ -467,8 +491,9 @@ declare module '@tiptap/core' {
|
|
|
467
491
|
|
|
468
492
|
declare module '@tiptap/core' {
|
|
469
493
|
interface Commands<ReturnType> {
|
|
470
|
-
|
|
471
|
-
|
|
494
|
+
drawer: {
|
|
495
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
496
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
472
497
|
};
|
|
473
498
|
}
|
|
474
499
|
}
|
|
@@ -492,28 +517,3 @@ declare module '@tiptap/core' {
|
|
|
492
517
|
};
|
|
493
518
|
}
|
|
494
519
|
}
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
declare module '@tiptap/core' {
|
|
498
|
-
interface Commands<ReturnType> {
|
|
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
|
-
};
|
|
518
|
-
}
|
|
519
|
-
}
|
package/lib/index.d.ts
CHANGED
|
@@ -290,34 +290,17 @@ declare module '@tiptap/core' {
|
|
|
290
290
|
|
|
291
291
|
declare module '@tiptap/core' {
|
|
292
292
|
interface Commands<ReturnType> {
|
|
293
|
-
|
|
294
|
-
/**
|
|
295
|
-
* Add an image
|
|
296
|
-
*/
|
|
297
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
298
|
-
/**
|
|
299
|
-
* Update an image
|
|
300
|
-
*/
|
|
301
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
293
|
+
fontSize: {
|
|
302
294
|
/**
|
|
303
|
-
* Set
|
|
295
|
+
* Set the text font size. ex: "12px", "2em", or "small". Must be a valid
|
|
296
|
+
* CSS font-size
|
|
297
|
+
* (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
|
|
304
298
|
*/
|
|
305
|
-
|
|
306
|
-
};
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
declare module '@tiptap/core' {
|
|
312
|
-
interface Commands<ReturnType> {
|
|
313
|
-
iframe: {
|
|
299
|
+
setFontSize: (fontSize: string) => ReturnType;
|
|
314
300
|
/**
|
|
315
|
-
*
|
|
301
|
+
* Unset the font size
|
|
316
302
|
*/
|
|
317
|
-
|
|
318
|
-
src: string;
|
|
319
|
-
service: string;
|
|
320
|
-
}) => ReturnType;
|
|
303
|
+
unsetFontSize: () => ReturnType;
|
|
321
304
|
};
|
|
322
305
|
}
|
|
323
306
|
}
|
|
@@ -339,6 +322,20 @@ declare module '@tiptap/core' {
|
|
|
339
322
|
}
|
|
340
323
|
|
|
341
324
|
|
|
325
|
+
declare module '@tiptap/core' {
|
|
326
|
+
interface Commands<ReturnType> {
|
|
327
|
+
columns: {
|
|
328
|
+
insertColumns: (attrs?: {
|
|
329
|
+
cols: number;
|
|
330
|
+
}) => ReturnType;
|
|
331
|
+
addColBefore: () => ReturnType;
|
|
332
|
+
addColAfter: () => ReturnType;
|
|
333
|
+
deleteCol: () => ReturnType;
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
|
|
342
339
|
declare module '@tiptap/core' {
|
|
343
340
|
interface Commands<ReturnType> {
|
|
344
341
|
lineHeight: {
|
|
@@ -351,11 +348,8 @@ declare module '@tiptap/core' {
|
|
|
351
348
|
|
|
352
349
|
declare module '@tiptap/core' {
|
|
353
350
|
interface Commands<ReturnType> {
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
name: string;
|
|
357
|
-
emoji: string;
|
|
358
|
-
}) => ReturnType;
|
|
351
|
+
painter: {
|
|
352
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
359
353
|
};
|
|
360
354
|
}
|
|
361
355
|
}
|
|
@@ -363,17 +357,34 @@ declare module '@tiptap/core' {
|
|
|
363
357
|
|
|
364
358
|
declare module '@tiptap/core' {
|
|
365
359
|
interface Commands<ReturnType> {
|
|
366
|
-
|
|
360
|
+
search: {
|
|
361
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
362
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
363
|
+
replace: () => ReturnType;
|
|
364
|
+
replaceAll: () => ReturnType;
|
|
365
|
+
goToPrevSearchResult: () => void;
|
|
366
|
+
goToNextSearchResult: () => void;
|
|
367
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
368
|
+
};
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
declare module '@tiptap/core' {
|
|
374
|
+
interface Commands<ReturnType> {
|
|
375
|
+
imageUpload: {
|
|
367
376
|
/**
|
|
368
|
-
*
|
|
369
|
-
* CSS font-size
|
|
370
|
-
* (https://developer.mozilla.org/en-US/docs/Web/CSS/font-size).
|
|
377
|
+
* Add an image
|
|
371
378
|
*/
|
|
372
|
-
|
|
379
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
373
380
|
/**
|
|
374
|
-
*
|
|
381
|
+
* Update an image
|
|
375
382
|
*/
|
|
376
|
-
|
|
383
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
384
|
+
/**
|
|
385
|
+
* Set image alignment
|
|
386
|
+
*/
|
|
387
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
377
388
|
};
|
|
378
389
|
}
|
|
379
390
|
}
|
|
@@ -381,9 +392,14 @@ declare module '@tiptap/core' {
|
|
|
381
392
|
|
|
382
393
|
declare module '@tiptap/core' {
|
|
383
394
|
interface Commands<ReturnType> {
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
395
|
+
iframe: {
|
|
396
|
+
/**
|
|
397
|
+
* Add an iframe
|
|
398
|
+
*/
|
|
399
|
+
setIframe: (options: {
|
|
400
|
+
src: string;
|
|
401
|
+
service: string;
|
|
402
|
+
}) => ReturnType;
|
|
387
403
|
};
|
|
388
404
|
}
|
|
389
405
|
}
|
|
@@ -391,9 +407,11 @@ declare module '@tiptap/core' {
|
|
|
391
407
|
|
|
392
408
|
declare module '@tiptap/core' {
|
|
393
409
|
interface Commands<ReturnType> {
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
410
|
+
emoji: {
|
|
411
|
+
setEmoji: (emoji: {
|
|
412
|
+
name: string;
|
|
413
|
+
emoji: string;
|
|
414
|
+
}) => ReturnType;
|
|
397
415
|
};
|
|
398
416
|
}
|
|
399
417
|
}
|
|
@@ -401,8 +419,9 @@ declare module '@tiptap/core' {
|
|
|
401
419
|
|
|
402
420
|
declare module '@tiptap/core' {
|
|
403
421
|
interface Commands<ReturnType> {
|
|
404
|
-
|
|
405
|
-
|
|
422
|
+
tableCellBackground: {
|
|
423
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
424
|
+
unsetTableCellBackground: () => ReturnType;
|
|
406
425
|
};
|
|
407
426
|
}
|
|
408
427
|
}
|
|
@@ -410,8 +429,8 @@ declare module '@tiptap/core' {
|
|
|
410
429
|
|
|
411
430
|
declare module '@tiptap/core' {
|
|
412
431
|
interface Commands<ReturnType> {
|
|
413
|
-
|
|
414
|
-
|
|
432
|
+
katex: {
|
|
433
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
415
434
|
};
|
|
416
435
|
}
|
|
417
436
|
}
|
|
@@ -419,14 +438,9 @@ declare module '@tiptap/core' {
|
|
|
419
438
|
|
|
420
439
|
declare module '@tiptap/core' {
|
|
421
440
|
interface Commands<ReturnType> {
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
replace: () => ReturnType;
|
|
426
|
-
replaceAll: () => ReturnType;
|
|
427
|
-
goToPrevSearchResult: () => void;
|
|
428
|
-
goToNextSearchResult: () => void;
|
|
429
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
441
|
+
tableOfContents: {
|
|
442
|
+
setTableOfContents: () => ReturnType;
|
|
443
|
+
removeTableOfContents: () => ReturnType;
|
|
430
444
|
};
|
|
431
445
|
}
|
|
432
446
|
}
|
|
@@ -434,13 +448,8 @@ declare module '@tiptap/core' {
|
|
|
434
448
|
|
|
435
449
|
declare module '@tiptap/core' {
|
|
436
450
|
interface Commands<ReturnType> {
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
cols: number;
|
|
440
|
-
}) => ReturnType;
|
|
441
|
-
addColBefore: () => ReturnType;
|
|
442
|
-
addColAfter: () => ReturnType;
|
|
443
|
-
deleteCol: () => ReturnType;
|
|
451
|
+
exportWord: {
|
|
452
|
+
exportToWord: () => ReturnType;
|
|
444
453
|
};
|
|
445
454
|
}
|
|
446
455
|
}
|
|
@@ -448,8 +457,23 @@ declare module '@tiptap/core' {
|
|
|
448
457
|
|
|
449
458
|
declare module '@tiptap/core' {
|
|
450
459
|
interface Commands<ReturnType> {
|
|
451
|
-
|
|
452
|
-
|
|
460
|
+
attachment: {
|
|
461
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
462
|
+
};
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
declare module '@tiptap/core' {
|
|
468
|
+
interface Commands<ReturnType> {
|
|
469
|
+
twitter: {
|
|
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;
|
|
453
477
|
};
|
|
454
478
|
}
|
|
455
479
|
}
|
|
@@ -467,8 +491,9 @@ declare module '@tiptap/core' {
|
|
|
467
491
|
|
|
468
492
|
declare module '@tiptap/core' {
|
|
469
493
|
interface Commands<ReturnType> {
|
|
470
|
-
|
|
471
|
-
|
|
494
|
+
drawer: {
|
|
495
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
496
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
472
497
|
};
|
|
473
498
|
}
|
|
474
499
|
}
|
|
@@ -492,28 +517,3 @@ declare module '@tiptap/core' {
|
|
|
492
517
|
};
|
|
493
518
|
}
|
|
494
519
|
}
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
declare module '@tiptap/core' {
|
|
498
|
-
interface Commands<ReturnType> {
|
|
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
|
-
};
|
|
518
|
-
}
|
|
519
|
-
}
|