reactjs-tiptap-editor-pro 0.2.25 → 0.2.27
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-B1Y3PPzy.js +8826 -0
- package/lib/RichTextEditor-CVJUZJ-8.cjs +141 -0
- package/lib/extension-bundle.cjs +3 -3
- package/lib/extension-bundle.d.cts +73 -73
- package/lib/extension-bundle.d.ts +73 -73
- package/lib/extension-bundle.js +1389 -1565
- package/lib/{index-D-rys8BA.cjs → index-DV-nXpU1.cjs} +1 -1
- package/lib/{index-PJxla8pp.js → index-M6H3FoBi.js} +5 -5
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +73 -73
- package/lib/index.d.ts +73 -73
- package/lib/index.js +2 -2
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.d.cts +73 -73
- package/lib/locale-bundle.d.ts +73 -73
- package/lib/locale-bundle.js +1 -1
- package/lib/style.css +1 -1
- package/lib/{tiptap-Kst3Ray3.js → tiptap-DkWHMWDt.js} +57 -93
- package/lib/{tiptap-Bzsbnr3f.cjs → tiptap-gBG-1T-V.cjs} +11 -11
- package/lib/{vendor-LvbrNFNL.cjs → vendor-BJ0Yf78E.cjs} +4 -4
- package/lib/{vendor-tDefVoN_.js → vendor-Cpa6z-M0.js} +8 -7
- package/package.json +1 -1
- package/lib/RichTextEditor-Bxdp3pW3.js +0 -8292
- package/lib/RichTextEditor-zOI60NFQ.cjs +0 -141
package/lib/index.d.ts
CHANGED
|
@@ -301,15 +301,8 @@ declare module '@tiptap/core' {
|
|
|
301
301
|
|
|
302
302
|
declare module '@tiptap/core' {
|
|
303
303
|
interface Commands<ReturnType> {
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
* Set the indent attribute
|
|
307
|
-
*/
|
|
308
|
-
indent: () => ReturnType;
|
|
309
|
-
/**
|
|
310
|
-
* Set the outdent attribute
|
|
311
|
-
*/
|
|
312
|
-
outdent: () => ReturnType;
|
|
304
|
+
katex: {
|
|
305
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
313
306
|
};
|
|
314
307
|
}
|
|
315
308
|
}
|
|
@@ -317,19 +310,14 @@ declare module '@tiptap/core' {
|
|
|
317
310
|
|
|
318
311
|
declare module '@tiptap/core' {
|
|
319
312
|
interface Commands<ReturnType> {
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* Add an image
|
|
323
|
-
*/
|
|
324
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
325
|
-
/**
|
|
326
|
-
* Update an image
|
|
327
|
-
*/
|
|
328
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
313
|
+
iframe: {
|
|
329
314
|
/**
|
|
330
|
-
*
|
|
315
|
+
* Add an iframe
|
|
331
316
|
*/
|
|
332
|
-
|
|
317
|
+
setIframe: (options: {
|
|
318
|
+
src: string;
|
|
319
|
+
service: string;
|
|
320
|
+
}) => ReturnType;
|
|
333
321
|
};
|
|
334
322
|
}
|
|
335
323
|
}
|
|
@@ -337,9 +325,11 @@ declare module '@tiptap/core' {
|
|
|
337
325
|
|
|
338
326
|
declare module '@tiptap/core' {
|
|
339
327
|
interface Commands<ReturnType> {
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
328
|
+
emoji: {
|
|
329
|
+
setEmoji: (emoji: {
|
|
330
|
+
name: string;
|
|
331
|
+
emoji: string;
|
|
332
|
+
}) => ReturnType;
|
|
343
333
|
};
|
|
344
334
|
}
|
|
345
335
|
}
|
|
@@ -347,14 +337,8 @@ declare module '@tiptap/core' {
|
|
|
347
337
|
|
|
348
338
|
declare module '@tiptap/core' {
|
|
349
339
|
interface Commands<ReturnType> {
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
353
|
-
replace: () => ReturnType;
|
|
354
|
-
replaceAll: () => ReturnType;
|
|
355
|
-
goToPrevSearchResult: () => void;
|
|
356
|
-
goToNextSearchResult: () => void;
|
|
357
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
340
|
+
painter: {
|
|
341
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
358
342
|
};
|
|
359
343
|
}
|
|
360
344
|
}
|
|
@@ -362,13 +346,8 @@ declare module '@tiptap/core' {
|
|
|
362
346
|
|
|
363
347
|
declare module '@tiptap/core' {
|
|
364
348
|
interface Commands<ReturnType> {
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
cols: number;
|
|
368
|
-
}) => ReturnType;
|
|
369
|
-
addColBefore: () => ReturnType;
|
|
370
|
-
addColAfter: () => ReturnType;
|
|
371
|
-
deleteCol: () => ReturnType;
|
|
349
|
+
exportWord: {
|
|
350
|
+
exportToWord: () => ReturnType;
|
|
372
351
|
};
|
|
373
352
|
}
|
|
374
353
|
}
|
|
@@ -376,8 +355,19 @@ declare module '@tiptap/core' {
|
|
|
376
355
|
|
|
377
356
|
declare module '@tiptap/core' {
|
|
378
357
|
interface Commands<ReturnType> {
|
|
379
|
-
|
|
380
|
-
|
|
358
|
+
imageUpload: {
|
|
359
|
+
/**
|
|
360
|
+
* Add an image
|
|
361
|
+
*/
|
|
362
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
363
|
+
/**
|
|
364
|
+
* Update an image
|
|
365
|
+
*/
|
|
366
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
367
|
+
/**
|
|
368
|
+
* Set image alignment
|
|
369
|
+
*/
|
|
370
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
381
371
|
};
|
|
382
372
|
}
|
|
383
373
|
}
|
|
@@ -385,8 +375,14 @@ declare module '@tiptap/core' {
|
|
|
385
375
|
|
|
386
376
|
declare module '@tiptap/core' {
|
|
387
377
|
interface Commands<ReturnType> {
|
|
388
|
-
|
|
389
|
-
|
|
378
|
+
search: {
|
|
379
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
380
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
381
|
+
replace: () => ReturnType;
|
|
382
|
+
replaceAll: () => ReturnType;
|
|
383
|
+
goToPrevSearchResult: () => void;
|
|
384
|
+
goToNextSearchResult: () => void;
|
|
385
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
390
386
|
};
|
|
391
387
|
}
|
|
392
388
|
}
|
|
@@ -394,11 +390,9 @@ declare module '@tiptap/core' {
|
|
|
394
390
|
|
|
395
391
|
declare module '@tiptap/core' {
|
|
396
392
|
interface Commands<ReturnType> {
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
emoji: string;
|
|
401
|
-
}) => ReturnType;
|
|
393
|
+
tableCellBackground: {
|
|
394
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
395
|
+
unsetTableCellBackground: () => ReturnType;
|
|
402
396
|
};
|
|
403
397
|
}
|
|
404
398
|
}
|
|
@@ -406,14 +400,15 @@ declare module '@tiptap/core' {
|
|
|
406
400
|
|
|
407
401
|
declare module '@tiptap/core' {
|
|
408
402
|
interface Commands<ReturnType> {
|
|
409
|
-
|
|
403
|
+
indent: {
|
|
410
404
|
/**
|
|
411
|
-
*
|
|
405
|
+
* Set the indent attribute
|
|
412
406
|
*/
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
407
|
+
indent: () => ReturnType;
|
|
408
|
+
/**
|
|
409
|
+
* Set the outdent attribute
|
|
410
|
+
*/
|
|
411
|
+
outdent: () => ReturnType;
|
|
417
412
|
};
|
|
418
413
|
}
|
|
419
414
|
}
|
|
@@ -421,8 +416,13 @@ declare module '@tiptap/core' {
|
|
|
421
416
|
|
|
422
417
|
declare module '@tiptap/core' {
|
|
423
418
|
interface Commands<ReturnType> {
|
|
424
|
-
|
|
425
|
-
|
|
419
|
+
columns: {
|
|
420
|
+
insertColumns: (attrs?: {
|
|
421
|
+
cols: number;
|
|
422
|
+
}) => ReturnType;
|
|
423
|
+
addColBefore: () => ReturnType;
|
|
424
|
+
addColAfter: () => ReturnType;
|
|
425
|
+
deleteCol: () => ReturnType;
|
|
426
426
|
};
|
|
427
427
|
}
|
|
428
428
|
}
|
|
@@ -430,9 +430,8 @@ declare module '@tiptap/core' {
|
|
|
430
430
|
|
|
431
431
|
declare module '@tiptap/core' {
|
|
432
432
|
interface Commands<ReturnType> {
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
removeTableOfContents: () => ReturnType;
|
|
433
|
+
excalidraw: {
|
|
434
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
436
435
|
};
|
|
437
436
|
}
|
|
438
437
|
}
|
|
@@ -440,8 +439,9 @@ declare module '@tiptap/core' {
|
|
|
440
439
|
|
|
441
440
|
declare module '@tiptap/core' {
|
|
442
441
|
interface Commands<ReturnType> {
|
|
443
|
-
|
|
444
|
-
|
|
442
|
+
tableOfContents: {
|
|
443
|
+
setTableOfContents: () => ReturnType;
|
|
444
|
+
removeTableOfContents: () => ReturnType;
|
|
445
445
|
};
|
|
446
446
|
}
|
|
447
447
|
}
|
|
@@ -469,9 +469,14 @@ declare module '@tiptap/core' {
|
|
|
469
469
|
|
|
470
470
|
declare module '@tiptap/core' {
|
|
471
471
|
interface Commands<ReturnType> {
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
472
|
+
twitter: {
|
|
473
|
+
/**
|
|
474
|
+
* Insert a tweet
|
|
475
|
+
* @param options The tweet attributes
|
|
476
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
477
|
+
*/
|
|
478
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
479
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
475
480
|
};
|
|
476
481
|
}
|
|
477
482
|
}
|
|
@@ -489,8 +494,9 @@ declare module '@tiptap/core' {
|
|
|
489
494
|
|
|
490
495
|
declare module '@tiptap/core' {
|
|
491
496
|
interface Commands<ReturnType> {
|
|
492
|
-
|
|
493
|
-
|
|
497
|
+
mermaid: {
|
|
498
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
499
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
494
500
|
};
|
|
495
501
|
}
|
|
496
502
|
}
|
|
@@ -498,14 +504,8 @@ declare module '@tiptap/core' {
|
|
|
498
504
|
|
|
499
505
|
declare module '@tiptap/core' {
|
|
500
506
|
interface Commands<ReturnType> {
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
* Insert a tweet
|
|
504
|
-
* @param options The tweet attributes
|
|
505
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
506
|
-
*/
|
|
507
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
508
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
507
|
+
attachment: {
|
|
508
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
509
509
|
};
|
|
510
510
|
}
|
|
511
511
|
}
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useRef as d, useState as o, useEffect as f } from "react";
|
|
2
|
-
import { R as m } from "./RichTextEditor-
|
|
3
|
-
import { B as x } from "./tiptap-
|
|
2
|
+
import { R as m } from "./RichTextEditor-B1Y3PPzy.js";
|
|
3
|
+
import { B as x } from "./tiptap-DkWHMWDt.js";
|
|
4
4
|
function c() {
|
|
5
5
|
var t;
|
|
6
6
|
const e = d({ editor: null }), [u, s] = o(!1), [i, n] = o(null);
|
package/lib/locale-bundle.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DV-nXpU1.cjs");exports.en=e.locale$1;exports.hu_HU=e.locale$2;exports.locale=e.locale;exports.pt_BR=e.locale$5;exports.vi=e.locale$3;exports.zh_CN=e.locale$4;
|
package/lib/locale-bundle.d.cts
CHANGED
|
@@ -930,15 +930,8 @@ declare module '@tiptap/core' {
|
|
|
930
930
|
|
|
931
931
|
declare module '@tiptap/core' {
|
|
932
932
|
interface Commands<ReturnType> {
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
* Set the indent attribute
|
|
936
|
-
*/
|
|
937
|
-
indent: () => ReturnType;
|
|
938
|
-
/**
|
|
939
|
-
* Set the outdent attribute
|
|
940
|
-
*/
|
|
941
|
-
outdent: () => ReturnType;
|
|
933
|
+
katex: {
|
|
934
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
942
935
|
};
|
|
943
936
|
}
|
|
944
937
|
}
|
|
@@ -946,19 +939,14 @@ declare module '@tiptap/core' {
|
|
|
946
939
|
|
|
947
940
|
declare module '@tiptap/core' {
|
|
948
941
|
interface Commands<ReturnType> {
|
|
949
|
-
|
|
950
|
-
/**
|
|
951
|
-
* Add an image
|
|
952
|
-
*/
|
|
953
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
954
|
-
/**
|
|
955
|
-
* Update an image
|
|
956
|
-
*/
|
|
957
|
-
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
942
|
+
iframe: {
|
|
958
943
|
/**
|
|
959
|
-
*
|
|
944
|
+
* Add an iframe
|
|
960
945
|
*/
|
|
961
|
-
|
|
946
|
+
setIframe: (options: {
|
|
947
|
+
src: string;
|
|
948
|
+
service: string;
|
|
949
|
+
}) => ReturnType;
|
|
962
950
|
};
|
|
963
951
|
}
|
|
964
952
|
}
|
|
@@ -966,9 +954,11 @@ declare module '@tiptap/core' {
|
|
|
966
954
|
|
|
967
955
|
declare module '@tiptap/core' {
|
|
968
956
|
interface Commands<ReturnType> {
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
957
|
+
emoji: {
|
|
958
|
+
setEmoji: (emoji: {
|
|
959
|
+
name: string;
|
|
960
|
+
emoji: string;
|
|
961
|
+
}) => ReturnType;
|
|
972
962
|
};
|
|
973
963
|
}
|
|
974
964
|
}
|
|
@@ -976,14 +966,8 @@ declare module '@tiptap/core' {
|
|
|
976
966
|
|
|
977
967
|
declare module '@tiptap/core' {
|
|
978
968
|
interface Commands<ReturnType> {
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
982
|
-
replace: () => ReturnType;
|
|
983
|
-
replaceAll: () => ReturnType;
|
|
984
|
-
goToPrevSearchResult: () => void;
|
|
985
|
-
goToNextSearchResult: () => void;
|
|
986
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
969
|
+
painter: {
|
|
970
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
987
971
|
};
|
|
988
972
|
}
|
|
989
973
|
}
|
|
@@ -991,13 +975,8 @@ declare module '@tiptap/core' {
|
|
|
991
975
|
|
|
992
976
|
declare module '@tiptap/core' {
|
|
993
977
|
interface Commands<ReturnType> {
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
cols: number;
|
|
997
|
-
}) => ReturnType;
|
|
998
|
-
addColBefore: () => ReturnType;
|
|
999
|
-
addColAfter: () => ReturnType;
|
|
1000
|
-
deleteCol: () => ReturnType;
|
|
978
|
+
exportWord: {
|
|
979
|
+
exportToWord: () => ReturnType;
|
|
1001
980
|
};
|
|
1002
981
|
}
|
|
1003
982
|
}
|
|
@@ -1005,8 +984,19 @@ declare module '@tiptap/core' {
|
|
|
1005
984
|
|
|
1006
985
|
declare module '@tiptap/core' {
|
|
1007
986
|
interface Commands<ReturnType> {
|
|
1008
|
-
|
|
1009
|
-
|
|
987
|
+
imageUpload: {
|
|
988
|
+
/**
|
|
989
|
+
* Add an image
|
|
990
|
+
*/
|
|
991
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
992
|
+
/**
|
|
993
|
+
* Update an image
|
|
994
|
+
*/
|
|
995
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
996
|
+
/**
|
|
997
|
+
* Set image alignment
|
|
998
|
+
*/
|
|
999
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1010
1000
|
};
|
|
1011
1001
|
}
|
|
1012
1002
|
}
|
|
@@ -1014,8 +1004,14 @@ declare module '@tiptap/core' {
|
|
|
1014
1004
|
|
|
1015
1005
|
declare module '@tiptap/core' {
|
|
1016
1006
|
interface Commands<ReturnType> {
|
|
1017
|
-
|
|
1018
|
-
|
|
1007
|
+
search: {
|
|
1008
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
1009
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
1010
|
+
replace: () => ReturnType;
|
|
1011
|
+
replaceAll: () => ReturnType;
|
|
1012
|
+
goToPrevSearchResult: () => void;
|
|
1013
|
+
goToNextSearchResult: () => void;
|
|
1014
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
1019
1015
|
};
|
|
1020
1016
|
}
|
|
1021
1017
|
}
|
|
@@ -1023,11 +1019,9 @@ declare module '@tiptap/core' {
|
|
|
1023
1019
|
|
|
1024
1020
|
declare module '@tiptap/core' {
|
|
1025
1021
|
interface Commands<ReturnType> {
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
emoji: string;
|
|
1030
|
-
}) => ReturnType;
|
|
1022
|
+
tableCellBackground: {
|
|
1023
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
1024
|
+
unsetTableCellBackground: () => ReturnType;
|
|
1031
1025
|
};
|
|
1032
1026
|
}
|
|
1033
1027
|
}
|
|
@@ -1035,14 +1029,15 @@ declare module '@tiptap/core' {
|
|
|
1035
1029
|
|
|
1036
1030
|
declare module '@tiptap/core' {
|
|
1037
1031
|
interface Commands<ReturnType> {
|
|
1038
|
-
|
|
1032
|
+
indent: {
|
|
1039
1033
|
/**
|
|
1040
|
-
*
|
|
1034
|
+
* Set the indent attribute
|
|
1041
1035
|
*/
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1036
|
+
indent: () => ReturnType;
|
|
1037
|
+
/**
|
|
1038
|
+
* Set the outdent attribute
|
|
1039
|
+
*/
|
|
1040
|
+
outdent: () => ReturnType;
|
|
1046
1041
|
};
|
|
1047
1042
|
}
|
|
1048
1043
|
}
|
|
@@ -1050,8 +1045,13 @@ declare module '@tiptap/core' {
|
|
|
1050
1045
|
|
|
1051
1046
|
declare module '@tiptap/core' {
|
|
1052
1047
|
interface Commands<ReturnType> {
|
|
1053
|
-
|
|
1054
|
-
|
|
1048
|
+
columns: {
|
|
1049
|
+
insertColumns: (attrs?: {
|
|
1050
|
+
cols: number;
|
|
1051
|
+
}) => ReturnType;
|
|
1052
|
+
addColBefore: () => ReturnType;
|
|
1053
|
+
addColAfter: () => ReturnType;
|
|
1054
|
+
deleteCol: () => ReturnType;
|
|
1055
1055
|
};
|
|
1056
1056
|
}
|
|
1057
1057
|
}
|
|
@@ -1059,9 +1059,8 @@ declare module '@tiptap/core' {
|
|
|
1059
1059
|
|
|
1060
1060
|
declare module '@tiptap/core' {
|
|
1061
1061
|
interface Commands<ReturnType> {
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
removeTableOfContents: () => ReturnType;
|
|
1062
|
+
excalidraw: {
|
|
1063
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
1065
1064
|
};
|
|
1066
1065
|
}
|
|
1067
1066
|
}
|
|
@@ -1069,8 +1068,9 @@ declare module '@tiptap/core' {
|
|
|
1069
1068
|
|
|
1070
1069
|
declare module '@tiptap/core' {
|
|
1071
1070
|
interface Commands<ReturnType> {
|
|
1072
|
-
|
|
1073
|
-
|
|
1071
|
+
tableOfContents: {
|
|
1072
|
+
setTableOfContents: () => ReturnType;
|
|
1073
|
+
removeTableOfContents: () => ReturnType;
|
|
1074
1074
|
};
|
|
1075
1075
|
}
|
|
1076
1076
|
}
|
|
@@ -1098,9 +1098,14 @@ declare module '@tiptap/core' {
|
|
|
1098
1098
|
|
|
1099
1099
|
declare module '@tiptap/core' {
|
|
1100
1100
|
interface Commands<ReturnType> {
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1101
|
+
twitter: {
|
|
1102
|
+
/**
|
|
1103
|
+
* Insert a tweet
|
|
1104
|
+
* @param options The tweet attributes
|
|
1105
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
1106
|
+
*/
|
|
1107
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
1108
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
1104
1109
|
};
|
|
1105
1110
|
}
|
|
1106
1111
|
}
|
|
@@ -1118,8 +1123,9 @@ declare module '@tiptap/core' {
|
|
|
1118
1123
|
|
|
1119
1124
|
declare module '@tiptap/core' {
|
|
1120
1125
|
interface Commands<ReturnType> {
|
|
1121
|
-
|
|
1122
|
-
|
|
1126
|
+
mermaid: {
|
|
1127
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1128
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1123
1129
|
};
|
|
1124
1130
|
}
|
|
1125
1131
|
}
|
|
@@ -1127,14 +1133,8 @@ declare module '@tiptap/core' {
|
|
|
1127
1133
|
|
|
1128
1134
|
declare module '@tiptap/core' {
|
|
1129
1135
|
interface Commands<ReturnType> {
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
* Insert a tweet
|
|
1133
|
-
* @param options The tweet attributes
|
|
1134
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
1135
|
-
*/
|
|
1136
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
1137
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
1136
|
+
attachment: {
|
|
1137
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1138
1138
|
};
|
|
1139
1139
|
}
|
|
1140
1140
|
}
|