reactjs-tiptap-editor 0.1.15 → 0.1.16
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-CqUsKvdf.js → RichTextEditor-BkhQvEYE.js} +98 -99
- package/lib/RichTextEditor-Da_h65eW.cjs +138 -0
- package/lib/extension-bundle.cjs +1 -1
- package/lib/extension-bundle.d.cts +64 -79
- package/lib/extension-bundle.d.ts +64 -79
- package/lib/extension-bundle.js +7 -7
- package/lib/{index-CHZh3C0I.cjs → index-jhhV09no.cjs} +1 -1
- package/lib/{index-BQSRMhtZ.js → index-ss0v5xR4.js} +2 -2
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +64 -79
- package/lib/index.d.ts +64 -79
- package/lib/index.js +2 -2
- package/lib/locale-bundle.cjs +1 -1
- package/lib/locale-bundle.d.cts +64 -79
- package/lib/locale-bundle.d.ts +64 -79
- package/lib/locale-bundle.js +1 -1
- package/lib/style.css +1 -1
- package/lib/{tiptap-DkTOfBkj.cjs → tiptap-CTEGMe7x.cjs} +1 -1
- package/lib/{tiptap-CB5MO02_.js → tiptap-OmOggkHK.js} +1 -1
- package/lib/{vendor-DiKgVtSS.js → vendor-C9AD9FTJ.js} +16266 -14648
- package/lib/vendor-CEvER8Ns.cjs +370 -0
- package/package.json +10 -10
- package/lib/RichTextEditor-BFCJg7ap.cjs +0 -138
- package/lib/vendor-BH8HYOJ4.cjs +0 -354
package/lib/index.d.ts
CHANGED
|
@@ -244,9 +244,9 @@ declare module '@tiptap/core' {
|
|
|
244
244
|
|
|
245
245
|
declare module '@tiptap/core' {
|
|
246
246
|
interface Commands<ReturnType> {
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
247
|
+
tableCellBackground: {
|
|
248
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
249
|
+
unsetTableCellBackground: () => ReturnType;
|
|
250
250
|
};
|
|
251
251
|
}
|
|
252
252
|
}
|
|
@@ -254,15 +254,19 @@ declare module '@tiptap/core' {
|
|
|
254
254
|
|
|
255
255
|
declare module '@tiptap/core' {
|
|
256
256
|
interface Commands<ReturnType> {
|
|
257
|
-
|
|
257
|
+
imageUpload: {
|
|
258
258
|
/**
|
|
259
|
-
*
|
|
259
|
+
* Add an image
|
|
260
260
|
*/
|
|
261
|
-
|
|
261
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
262
262
|
/**
|
|
263
|
-
*
|
|
263
|
+
* Update an image
|
|
264
264
|
*/
|
|
265
|
-
|
|
265
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
266
|
+
/**
|
|
267
|
+
* Set image alignment
|
|
268
|
+
*/
|
|
269
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
266
270
|
};
|
|
267
271
|
}
|
|
268
272
|
}
|
|
@@ -270,9 +274,8 @@ declare module '@tiptap/core' {
|
|
|
270
274
|
|
|
271
275
|
declare module '@tiptap/core' {
|
|
272
276
|
interface Commands<ReturnType> {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
unsetTableCellBackground: () => ReturnType;
|
|
277
|
+
painter: {
|
|
278
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
276
279
|
};
|
|
277
280
|
}
|
|
278
281
|
}
|
|
@@ -280,19 +283,15 @@ declare module '@tiptap/core' {
|
|
|
280
283
|
|
|
281
284
|
declare module '@tiptap/core' {
|
|
282
285
|
interface Commands<ReturnType> {
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* Add an image
|
|
286
|
-
*/
|
|
287
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
286
|
+
indent: {
|
|
288
287
|
/**
|
|
289
|
-
*
|
|
288
|
+
* Set the indent attribute
|
|
290
289
|
*/
|
|
291
|
-
|
|
290
|
+
indent: () => ReturnType;
|
|
292
291
|
/**
|
|
293
|
-
* Set
|
|
292
|
+
* Set the outdent attribute
|
|
294
293
|
*/
|
|
295
|
-
|
|
294
|
+
outdent: () => ReturnType;
|
|
296
295
|
};
|
|
297
296
|
}
|
|
298
297
|
}
|
|
@@ -300,14 +299,11 @@ declare module '@tiptap/core' {
|
|
|
300
299
|
|
|
301
300
|
declare module '@tiptap/core' {
|
|
302
301
|
interface Commands<ReturnType> {
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
goToPrevSearchResult: () => void;
|
|
309
|
-
goToNextSearchResult: () => void;
|
|
310
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
302
|
+
emoji: {
|
|
303
|
+
setEmoji: (emoji: {
|
|
304
|
+
name: string;
|
|
305
|
+
emoji: string;
|
|
306
|
+
}) => ReturnType;
|
|
311
307
|
};
|
|
312
308
|
}
|
|
313
309
|
}
|
|
@@ -315,14 +311,9 @@ declare module '@tiptap/core' {
|
|
|
315
311
|
|
|
316
312
|
declare module '@tiptap/core' {
|
|
317
313
|
interface Commands<ReturnType> {
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
*/
|
|
322
|
-
setIframe: (options: {
|
|
323
|
-
src: string;
|
|
324
|
-
service: string;
|
|
325
|
-
}) => ReturnType;
|
|
314
|
+
tableOfContents: {
|
|
315
|
+
setTableOfContents: () => ReturnType;
|
|
316
|
+
removeTableOfContents: () => ReturnType;
|
|
326
317
|
};
|
|
327
318
|
}
|
|
328
319
|
}
|
|
@@ -330,13 +321,8 @@ declare module '@tiptap/core' {
|
|
|
330
321
|
|
|
331
322
|
declare module '@tiptap/core' {
|
|
332
323
|
interface Commands<ReturnType> {
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
cols: number;
|
|
336
|
-
}) => ReturnType;
|
|
337
|
-
addColBefore: () => ReturnType;
|
|
338
|
-
addColAfter: () => ReturnType;
|
|
339
|
-
deleteCol: () => ReturnType;
|
|
324
|
+
excalidraw: {
|
|
325
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
340
326
|
};
|
|
341
327
|
}
|
|
342
328
|
}
|
|
@@ -344,8 +330,14 @@ declare module '@tiptap/core' {
|
|
|
344
330
|
|
|
345
331
|
declare module '@tiptap/core' {
|
|
346
332
|
interface Commands<ReturnType> {
|
|
347
|
-
|
|
348
|
-
|
|
333
|
+
iframe: {
|
|
334
|
+
/**
|
|
335
|
+
* Add an iframe
|
|
336
|
+
*/
|
|
337
|
+
setIframe: (options: {
|
|
338
|
+
src: string;
|
|
339
|
+
service: string;
|
|
340
|
+
}) => ReturnType;
|
|
349
341
|
};
|
|
350
342
|
}
|
|
351
343
|
}
|
|
@@ -353,11 +345,9 @@ declare module '@tiptap/core' {
|
|
|
353
345
|
|
|
354
346
|
declare module '@tiptap/core' {
|
|
355
347
|
interface Commands<ReturnType> {
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
emoji: string;
|
|
360
|
-
}) => ReturnType;
|
|
348
|
+
lineHeight: {
|
|
349
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
350
|
+
unsetLineHeight: () => ReturnType;
|
|
361
351
|
};
|
|
362
352
|
}
|
|
363
353
|
}
|
|
@@ -383,8 +373,13 @@ declare module '@tiptap/core' {
|
|
|
383
373
|
|
|
384
374
|
declare module '@tiptap/core' {
|
|
385
375
|
interface Commands<ReturnType> {
|
|
386
|
-
|
|
387
|
-
|
|
376
|
+
columns: {
|
|
377
|
+
insertColumns: (attrs?: {
|
|
378
|
+
cols: number;
|
|
379
|
+
}) => ReturnType;
|
|
380
|
+
addColBefore: () => ReturnType;
|
|
381
|
+
addColAfter: () => ReturnType;
|
|
382
|
+
deleteCol: () => ReturnType;
|
|
388
383
|
};
|
|
389
384
|
}
|
|
390
385
|
}
|
|
@@ -392,9 +387,14 @@ declare module '@tiptap/core' {
|
|
|
392
387
|
|
|
393
388
|
declare module '@tiptap/core' {
|
|
394
389
|
interface Commands<ReturnType> {
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
390
|
+
search: {
|
|
391
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
392
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
393
|
+
replace: () => ReturnType;
|
|
394
|
+
replaceAll: () => ReturnType;
|
|
395
|
+
goToPrevSearchResult: () => void;
|
|
396
|
+
goToNextSearchResult: () => void;
|
|
397
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
398
398
|
};
|
|
399
399
|
}
|
|
400
400
|
}
|
|
@@ -402,9 +402,8 @@ declare module '@tiptap/core' {
|
|
|
402
402
|
|
|
403
403
|
declare module '@tiptap/core' {
|
|
404
404
|
interface Commands<ReturnType> {
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
405
|
+
attachment: {
|
|
406
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
408
407
|
};
|
|
409
408
|
}
|
|
410
409
|
}
|
|
@@ -430,15 +429,6 @@ declare module '@tiptap/core' {
|
|
|
430
429
|
}
|
|
431
430
|
|
|
432
431
|
|
|
433
|
-
declare module '@tiptap/core' {
|
|
434
|
-
interface Commands<ReturnType> {
|
|
435
|
-
attachment: {
|
|
436
|
-
setAttachment: (attrs?: unknown) => ReturnType;
|
|
437
|
-
};
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
|
|
442
432
|
declare module '@tiptap/core' {
|
|
443
433
|
interface Commands<ReturnType> {
|
|
444
434
|
twitter: {
|
|
@@ -454,16 +444,11 @@ declare module '@tiptap/core' {
|
|
|
454
444
|
}
|
|
455
445
|
|
|
456
446
|
|
|
457
|
-
declare
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
declare namespace DropdownMenuShortcut {
|
|
468
|
-
var displayName: string;
|
|
447
|
+
declare module '@tiptap/core' {
|
|
448
|
+
interface Commands<ReturnType> {
|
|
449
|
+
mermaid: {
|
|
450
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
451
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
452
|
+
};
|
|
453
|
+
}
|
|
469
454
|
}
|
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-BkhQvEYE.js";
|
|
3
|
+
import { B as x } from "./tiptap-OmOggkHK.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-jhhV09no.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
|
@@ -920,9 +920,9 @@ declare module '@tiptap/core' {
|
|
|
920
920
|
|
|
921
921
|
declare module '@tiptap/core' {
|
|
922
922
|
interface Commands<ReturnType> {
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
923
|
+
tableCellBackground: {
|
|
924
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
925
|
+
unsetTableCellBackground: () => ReturnType;
|
|
926
926
|
};
|
|
927
927
|
}
|
|
928
928
|
}
|
|
@@ -930,15 +930,19 @@ declare module '@tiptap/core' {
|
|
|
930
930
|
|
|
931
931
|
declare module '@tiptap/core' {
|
|
932
932
|
interface Commands<ReturnType> {
|
|
933
|
-
|
|
933
|
+
imageUpload: {
|
|
934
934
|
/**
|
|
935
|
-
*
|
|
935
|
+
* Add an image
|
|
936
936
|
*/
|
|
937
|
-
|
|
937
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
938
938
|
/**
|
|
939
|
-
*
|
|
939
|
+
* Update an image
|
|
940
940
|
*/
|
|
941
|
-
|
|
941
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
942
|
+
/**
|
|
943
|
+
* Set image alignment
|
|
944
|
+
*/
|
|
945
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
942
946
|
};
|
|
943
947
|
}
|
|
944
948
|
}
|
|
@@ -946,9 +950,8 @@ declare module '@tiptap/core' {
|
|
|
946
950
|
|
|
947
951
|
declare module '@tiptap/core' {
|
|
948
952
|
interface Commands<ReturnType> {
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
unsetTableCellBackground: () => ReturnType;
|
|
953
|
+
painter: {
|
|
954
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
952
955
|
};
|
|
953
956
|
}
|
|
954
957
|
}
|
|
@@ -956,19 +959,15 @@ declare module '@tiptap/core' {
|
|
|
956
959
|
|
|
957
960
|
declare module '@tiptap/core' {
|
|
958
961
|
interface Commands<ReturnType> {
|
|
959
|
-
|
|
960
|
-
/**
|
|
961
|
-
* Add an image
|
|
962
|
-
*/
|
|
963
|
-
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
962
|
+
indent: {
|
|
964
963
|
/**
|
|
965
|
-
*
|
|
964
|
+
* Set the indent attribute
|
|
966
965
|
*/
|
|
967
|
-
|
|
966
|
+
indent: () => ReturnType;
|
|
968
967
|
/**
|
|
969
|
-
* Set
|
|
968
|
+
* Set the outdent attribute
|
|
970
969
|
*/
|
|
971
|
-
|
|
970
|
+
outdent: () => ReturnType;
|
|
972
971
|
};
|
|
973
972
|
}
|
|
974
973
|
}
|
|
@@ -976,14 +975,11 @@ declare module '@tiptap/core' {
|
|
|
976
975
|
|
|
977
976
|
declare module '@tiptap/core' {
|
|
978
977
|
interface Commands<ReturnType> {
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
goToPrevSearchResult: () => void;
|
|
985
|
-
goToNextSearchResult: () => void;
|
|
986
|
-
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
978
|
+
emoji: {
|
|
979
|
+
setEmoji: (emoji: {
|
|
980
|
+
name: string;
|
|
981
|
+
emoji: string;
|
|
982
|
+
}) => ReturnType;
|
|
987
983
|
};
|
|
988
984
|
}
|
|
989
985
|
}
|
|
@@ -991,14 +987,9 @@ declare module '@tiptap/core' {
|
|
|
991
987
|
|
|
992
988
|
declare module '@tiptap/core' {
|
|
993
989
|
interface Commands<ReturnType> {
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
*/
|
|
998
|
-
setIframe: (options: {
|
|
999
|
-
src: string;
|
|
1000
|
-
service: string;
|
|
1001
|
-
}) => ReturnType;
|
|
990
|
+
tableOfContents: {
|
|
991
|
+
setTableOfContents: () => ReturnType;
|
|
992
|
+
removeTableOfContents: () => ReturnType;
|
|
1002
993
|
};
|
|
1003
994
|
}
|
|
1004
995
|
}
|
|
@@ -1006,13 +997,8 @@ declare module '@tiptap/core' {
|
|
|
1006
997
|
|
|
1007
998
|
declare module '@tiptap/core' {
|
|
1008
999
|
interface Commands<ReturnType> {
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
cols: number;
|
|
1012
|
-
}) => ReturnType;
|
|
1013
|
-
addColBefore: () => ReturnType;
|
|
1014
|
-
addColAfter: () => ReturnType;
|
|
1015
|
-
deleteCol: () => ReturnType;
|
|
1000
|
+
excalidraw: {
|
|
1001
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
1016
1002
|
};
|
|
1017
1003
|
}
|
|
1018
1004
|
}
|
|
@@ -1020,8 +1006,14 @@ declare module '@tiptap/core' {
|
|
|
1020
1006
|
|
|
1021
1007
|
declare module '@tiptap/core' {
|
|
1022
1008
|
interface Commands<ReturnType> {
|
|
1023
|
-
|
|
1024
|
-
|
|
1009
|
+
iframe: {
|
|
1010
|
+
/**
|
|
1011
|
+
* Add an iframe
|
|
1012
|
+
*/
|
|
1013
|
+
setIframe: (options: {
|
|
1014
|
+
src: string;
|
|
1015
|
+
service: string;
|
|
1016
|
+
}) => ReturnType;
|
|
1025
1017
|
};
|
|
1026
1018
|
}
|
|
1027
1019
|
}
|
|
@@ -1029,11 +1021,9 @@ declare module '@tiptap/core' {
|
|
|
1029
1021
|
|
|
1030
1022
|
declare module '@tiptap/core' {
|
|
1031
1023
|
interface Commands<ReturnType> {
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
emoji: string;
|
|
1036
|
-
}) => ReturnType;
|
|
1024
|
+
lineHeight: {
|
|
1025
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
1026
|
+
unsetLineHeight: () => ReturnType;
|
|
1037
1027
|
};
|
|
1038
1028
|
}
|
|
1039
1029
|
}
|
|
@@ -1059,8 +1049,13 @@ declare module '@tiptap/core' {
|
|
|
1059
1049
|
|
|
1060
1050
|
declare module '@tiptap/core' {
|
|
1061
1051
|
interface Commands<ReturnType> {
|
|
1062
|
-
|
|
1063
|
-
|
|
1052
|
+
columns: {
|
|
1053
|
+
insertColumns: (attrs?: {
|
|
1054
|
+
cols: number;
|
|
1055
|
+
}) => ReturnType;
|
|
1056
|
+
addColBefore: () => ReturnType;
|
|
1057
|
+
addColAfter: () => ReturnType;
|
|
1058
|
+
deleteCol: () => ReturnType;
|
|
1064
1059
|
};
|
|
1065
1060
|
}
|
|
1066
1061
|
}
|
|
@@ -1068,9 +1063,14 @@ declare module '@tiptap/core' {
|
|
|
1068
1063
|
|
|
1069
1064
|
declare module '@tiptap/core' {
|
|
1070
1065
|
interface Commands<ReturnType> {
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1066
|
+
search: {
|
|
1067
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
1068
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
1069
|
+
replace: () => ReturnType;
|
|
1070
|
+
replaceAll: () => ReturnType;
|
|
1071
|
+
goToPrevSearchResult: () => void;
|
|
1072
|
+
goToNextSearchResult: () => void;
|
|
1073
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
1074
1074
|
};
|
|
1075
1075
|
}
|
|
1076
1076
|
}
|
|
@@ -1078,9 +1078,8 @@ declare module '@tiptap/core' {
|
|
|
1078
1078
|
|
|
1079
1079
|
declare module '@tiptap/core' {
|
|
1080
1080
|
interface Commands<ReturnType> {
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1081
|
+
attachment: {
|
|
1082
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1084
1083
|
};
|
|
1085
1084
|
}
|
|
1086
1085
|
}
|
|
@@ -1106,15 +1105,6 @@ declare module '@tiptap/core' {
|
|
|
1106
1105
|
}
|
|
1107
1106
|
|
|
1108
1107
|
|
|
1109
|
-
declare module '@tiptap/core' {
|
|
1110
|
-
interface Commands<ReturnType> {
|
|
1111
|
-
attachment: {
|
|
1112
|
-
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1113
|
-
};
|
|
1114
|
-
}
|
|
1115
|
-
}
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
1108
|
declare module '@tiptap/core' {
|
|
1119
1109
|
interface Commands<ReturnType> {
|
|
1120
1110
|
twitter: {
|
|
@@ -1130,16 +1120,11 @@ declare module '@tiptap/core' {
|
|
|
1130
1120
|
}
|
|
1131
1121
|
|
|
1132
1122
|
|
|
1133
|
-
declare
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
declare namespace DropdownMenuShortcut {
|
|
1144
|
-
var displayName: string;
|
|
1123
|
+
declare module '@tiptap/core' {
|
|
1124
|
+
interface Commands<ReturnType> {
|
|
1125
|
+
mermaid: {
|
|
1126
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1127
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1128
|
+
};
|
|
1129
|
+
}
|
|
1145
1130
|
}
|