reactjs-tiptap-editor 0.4.0 → 0.4.1

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.
Files changed (118) hide show
  1. package/lib/Attachment.d.cts +46 -46
  2. package/lib/Attachment.d.ts +46 -46
  3. package/lib/BaseKit.d.cts +46 -46
  4. package/lib/BaseKit.d.ts +46 -46
  5. package/lib/Blockquote.d.cts +46 -46
  6. package/lib/Blockquote.d.ts +46 -46
  7. package/lib/Bold.d.cts +46 -46
  8. package/lib/Bold.d.ts +46 -46
  9. package/lib/BulletList.d.cts +46 -46
  10. package/lib/BulletList.d.ts +46 -46
  11. package/lib/Clear.d.cts +46 -46
  12. package/lib/Clear.d.ts +46 -46
  13. package/lib/Code.d.cts +46 -46
  14. package/lib/Code.d.ts +46 -46
  15. package/lib/CodeBlock.d.cts +46 -46
  16. package/lib/CodeBlock.d.ts +46 -46
  17. package/lib/CodeView.d.cts +46 -46
  18. package/lib/CodeView.d.ts +46 -46
  19. package/lib/Color.d.cts +46 -46
  20. package/lib/Color.d.ts +46 -46
  21. package/lib/Document.d.cts +46 -46
  22. package/lib/Document.d.ts +46 -46
  23. package/lib/Drawer.d.cts +46 -46
  24. package/lib/Drawer.d.ts +46 -46
  25. package/lib/Emoji.cjs +1 -1
  26. package/lib/Emoji.d.cts +46 -46
  27. package/lib/Emoji.d.ts +46 -46
  28. package/lib/Emoji.js +2 -2
  29. package/lib/Excalidraw.d.cts +46 -46
  30. package/lib/Excalidraw.d.ts +46 -46
  31. package/lib/ExportPdf.d.cts +46 -46
  32. package/lib/ExportPdf.d.ts +46 -46
  33. package/lib/ExportWord.d.cts +46 -46
  34. package/lib/ExportWord.d.ts +46 -46
  35. package/lib/FontFamily.d.cts +46 -46
  36. package/lib/FontFamily.d.ts +46 -46
  37. package/lib/FontSize.d.cts +46 -46
  38. package/lib/FontSize.d.ts +46 -46
  39. package/lib/FormatPainter.d.cts +46 -46
  40. package/lib/FormatPainter.d.ts +46 -46
  41. package/lib/Heading.d.cts +46 -46
  42. package/lib/Heading.d.ts +46 -46
  43. package/lib/Highlight.d.cts +46 -46
  44. package/lib/Highlight.d.ts +46 -46
  45. package/lib/History.d.cts +46 -46
  46. package/lib/History.d.ts +46 -46
  47. package/lib/HorizontalRule.d.cts +46 -46
  48. package/lib/HorizontalRule.d.ts +46 -46
  49. package/lib/Iframe.d.cts +46 -46
  50. package/lib/Iframe.d.ts +46 -46
  51. package/lib/Image.d.cts +46 -46
  52. package/lib/Image.d.ts +46 -46
  53. package/lib/ImageGif.d.cts +46 -46
  54. package/lib/ImageGif.d.ts +46 -46
  55. package/lib/ImportWord.d.cts +46 -46
  56. package/lib/ImportWord.d.ts +46 -46
  57. package/lib/Indent.d.cts +46 -46
  58. package/lib/Indent.d.ts +46 -46
  59. package/lib/Italic.d.cts +46 -46
  60. package/lib/Italic.d.ts +46 -46
  61. package/lib/Katex.d.cts +46 -46
  62. package/lib/Katex.d.ts +46 -46
  63. package/lib/LineHeight.d.cts +46 -46
  64. package/lib/LineHeight.d.ts +46 -46
  65. package/lib/Link.d.cts +46 -46
  66. package/lib/Link.d.ts +46 -46
  67. package/lib/ListItem.d.cts +46 -46
  68. package/lib/ListItem.d.ts +46 -46
  69. package/lib/Mention.d.cts +46 -46
  70. package/lib/Mention.d.ts +46 -46
  71. package/lib/Mermaid.d.cts +46 -46
  72. package/lib/Mermaid.d.ts +46 -46
  73. package/lib/MoreMark.d.cts +46 -46
  74. package/lib/MoreMark.d.ts +46 -46
  75. package/lib/MultiColumn.d.cts +46 -46
  76. package/lib/MultiColumn.d.ts +46 -46
  77. package/lib/OrderedList.d.cts +46 -46
  78. package/lib/OrderedList.d.ts +46 -46
  79. package/lib/SearchAndReplace.d.cts +46 -46
  80. package/lib/SearchAndReplace.d.ts +46 -46
  81. package/lib/Selection.d.cts +46 -46
  82. package/lib/Selection.d.ts +46 -46
  83. package/lib/SlashCommand.cjs +1 -1
  84. package/lib/SlashCommand.d.cts +46 -46
  85. package/lib/SlashCommand.d.ts +46 -46
  86. package/lib/SlashCommand.js +2 -2
  87. package/lib/Strike.d.cts +46 -46
  88. package/lib/Strike.d.ts +46 -46
  89. package/lib/SubAndSuperScript.d.cts +46 -46
  90. package/lib/SubAndSuperScript.d.ts +46 -46
  91. package/lib/Table.d.cts +46 -46
  92. package/lib/Table.d.ts +46 -46
  93. package/lib/TableOfContent.d.cts +46 -46
  94. package/lib/TableOfContent.d.ts +46 -46
  95. package/lib/TaskList.d.cts +46 -46
  96. package/lib/TaskList.d.ts +46 -46
  97. package/lib/TextAlign.d.cts +46 -46
  98. package/lib/TextAlign.d.ts +46 -46
  99. package/lib/TextBubble.d.cts +46 -46
  100. package/lib/TextBubble.d.ts +46 -46
  101. package/lib/TextDirection.d.cts +46 -46
  102. package/lib/TextDirection.d.ts +46 -46
  103. package/lib/TextUnderline.d.cts +46 -46
  104. package/lib/TextUnderline.d.ts +46 -46
  105. package/lib/TrailingNode.d.cts +46 -46
  106. package/lib/TrailingNode.d.ts +46 -46
  107. package/lib/Twitter.d.cts +46 -46
  108. package/lib/Twitter.d.ts +46 -46
  109. package/lib/Video.d.cts +46 -46
  110. package/lib/Video.d.ts +46 -46
  111. package/lib/bubble-extra.d.cts +46 -46
  112. package/lib/bubble-extra.d.ts +46 -46
  113. package/lib/index.d.cts +46 -46
  114. package/lib/index.d.ts +46 -46
  115. package/lib/locale-bundle.d.cts +46 -46
  116. package/lib/locale-bundle.d.ts +46 -46
  117. package/lib/style.css +1 -1
  118. package/package.json +1 -1
package/lib/index.d.cts CHANGED
@@ -280,8 +280,9 @@ declare module '@tiptap/core' {
280
280
 
281
281
  declare module '@tiptap/core' {
282
282
  interface Commands<ReturnType> {
283
- excalidraw: {
284
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
283
+ drawer: {
284
+ setDrawer: (options: any, replace?: any) => ReturnType;
285
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
285
286
  };
286
287
  }
287
288
  }
@@ -289,9 +290,8 @@ declare module '@tiptap/core' {
289
290
 
290
291
  declare module '@tiptap/core' {
291
292
  interface Commands<ReturnType> {
292
- drawer: {
293
- setDrawer: (options: any, replace?: any) => ReturnType;
294
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
293
+ excalidraw: {
294
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
295
295
  };
296
296
  }
297
297
  }
@@ -315,15 +315,6 @@ declare module '@tiptap/core' {
315
315
  }
316
316
 
317
317
 
318
- declare module '@tiptap/core' {
319
- interface Commands<ReturnType> {
320
- painter: {
321
- setPainter: (marks: Mark[]) => ReturnType;
322
- };
323
- }
324
- }
325
-
326
-
327
318
  declare module '@tiptap/core' {
328
319
  interface Commands<ReturnType> {
329
320
  fontSize: {
@@ -342,6 +333,15 @@ declare module '@tiptap/core' {
342
333
  }
343
334
 
344
335
 
336
+ declare module '@tiptap/core' {
337
+ interface Commands<ReturnType> {
338
+ painter: {
339
+ setPainter: (marks: Mark[]) => ReturnType;
340
+ };
341
+ }
342
+ }
343
+
344
+
345
345
  declare module '@tiptap/core' {
346
346
  interface Commands<ReturnType> {
347
347
  iframe: {
@@ -377,6 +377,22 @@ declare module '@tiptap/core' {
377
377
  }
378
378
 
379
379
 
380
+ declare module '@tiptap/core' {
381
+ interface Commands<ReturnType> {
382
+ indent: {
383
+ /**
384
+ * Set the indent attribute
385
+ */
386
+ indent: () => ReturnType;
387
+ /**
388
+ * Set the outdent attribute
389
+ */
390
+ outdent: () => ReturnType;
391
+ };
392
+ }
393
+ }
394
+
395
+
380
396
  declare module '@tiptap/core' {
381
397
  interface Commands<ReturnType> {
382
398
  imageGifUpload: {
@@ -408,15 +424,9 @@ declare module '@tiptap/core' {
408
424
 
409
425
  declare module '@tiptap/core' {
410
426
  interface Commands<ReturnType> {
411
- indent: {
412
- /**
413
- * Set the indent attribute
414
- */
415
- indent: () => ReturnType;
416
- /**
417
- * Set the outdent attribute
418
- */
419
- outdent: () => ReturnType;
427
+ lineHeight: {
428
+ setLineHeight: (lineHeight: string) => ReturnType;
429
+ unsetLineHeight: () => ReturnType;
420
430
  };
421
431
  }
422
432
  }
@@ -424,9 +434,9 @@ declare module '@tiptap/core' {
424
434
 
425
435
  declare module '@tiptap/core' {
426
436
  interface Commands<ReturnType> {
427
- lineHeight: {
428
- setLineHeight: (lineHeight: string) => ReturnType;
429
- unsetLineHeight: () => ReturnType;
437
+ mermaid: {
438
+ setMermaid: (options: any, replace?: any) => ReturnType;
439
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
430
440
  };
431
441
  }
432
442
  }
@@ -446,26 +456,6 @@ declare module '@tiptap/core' {
446
456
  }
447
457
 
448
458
 
449
- declare module '@tiptap/core' {
450
- interface Commands<ReturnType> {
451
- mermaid: {
452
- setMermaid: (options: any, replace?: any) => ReturnType;
453
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
454
- };
455
- }
456
- }
457
-
458
-
459
- declare module '@tiptap/core' {
460
- interface Commands<ReturnType> {
461
- tableOfContents: {
462
- setTableOfContents: () => ReturnType;
463
- removeTableOfContents: () => ReturnType;
464
- };
465
- }
466
- }
467
-
468
-
469
459
  declare module '@tiptap/core' {
470
460
  interface Commands<ReturnType> {
471
461
  search: {
@@ -489,6 +479,16 @@ declare module '@tiptap/core' {
489
479
  }
490
480
 
491
481
 
482
+ declare module '@tiptap/core' {
483
+ interface Commands<ReturnType> {
484
+ tableOfContents: {
485
+ setTableOfContents: () => ReturnType;
486
+ removeTableOfContents: () => ReturnType;
487
+ };
488
+ }
489
+ }
490
+
491
+
492
492
  declare module '@tiptap/core' {
493
493
  interface Commands<ReturnType> {
494
494
  twitter: {
package/lib/index.d.ts CHANGED
@@ -280,8 +280,9 @@ declare module '@tiptap/core' {
280
280
 
281
281
  declare module '@tiptap/core' {
282
282
  interface Commands<ReturnType> {
283
- excalidraw: {
284
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
283
+ drawer: {
284
+ setDrawer: (options: any, replace?: any) => ReturnType;
285
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
285
286
  };
286
287
  }
287
288
  }
@@ -289,9 +290,8 @@ declare module '@tiptap/core' {
289
290
 
290
291
  declare module '@tiptap/core' {
291
292
  interface Commands<ReturnType> {
292
- drawer: {
293
- setDrawer: (options: any, replace?: any) => ReturnType;
294
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
293
+ excalidraw: {
294
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
295
295
  };
296
296
  }
297
297
  }
@@ -315,15 +315,6 @@ declare module '@tiptap/core' {
315
315
  }
316
316
 
317
317
 
318
- declare module '@tiptap/core' {
319
- interface Commands<ReturnType> {
320
- painter: {
321
- setPainter: (marks: Mark[]) => ReturnType;
322
- };
323
- }
324
- }
325
-
326
-
327
318
  declare module '@tiptap/core' {
328
319
  interface Commands<ReturnType> {
329
320
  fontSize: {
@@ -342,6 +333,15 @@ declare module '@tiptap/core' {
342
333
  }
343
334
 
344
335
 
336
+ declare module '@tiptap/core' {
337
+ interface Commands<ReturnType> {
338
+ painter: {
339
+ setPainter: (marks: Mark[]) => ReturnType;
340
+ };
341
+ }
342
+ }
343
+
344
+
345
345
  declare module '@tiptap/core' {
346
346
  interface Commands<ReturnType> {
347
347
  iframe: {
@@ -377,6 +377,22 @@ declare module '@tiptap/core' {
377
377
  }
378
378
 
379
379
 
380
+ declare module '@tiptap/core' {
381
+ interface Commands<ReturnType> {
382
+ indent: {
383
+ /**
384
+ * Set the indent attribute
385
+ */
386
+ indent: () => ReturnType;
387
+ /**
388
+ * Set the outdent attribute
389
+ */
390
+ outdent: () => ReturnType;
391
+ };
392
+ }
393
+ }
394
+
395
+
380
396
  declare module '@tiptap/core' {
381
397
  interface Commands<ReturnType> {
382
398
  imageGifUpload: {
@@ -408,15 +424,9 @@ declare module '@tiptap/core' {
408
424
 
409
425
  declare module '@tiptap/core' {
410
426
  interface Commands<ReturnType> {
411
- indent: {
412
- /**
413
- * Set the indent attribute
414
- */
415
- indent: () => ReturnType;
416
- /**
417
- * Set the outdent attribute
418
- */
419
- outdent: () => ReturnType;
427
+ lineHeight: {
428
+ setLineHeight: (lineHeight: string) => ReturnType;
429
+ unsetLineHeight: () => ReturnType;
420
430
  };
421
431
  }
422
432
  }
@@ -424,9 +434,9 @@ declare module '@tiptap/core' {
424
434
 
425
435
  declare module '@tiptap/core' {
426
436
  interface Commands<ReturnType> {
427
- lineHeight: {
428
- setLineHeight: (lineHeight: string) => ReturnType;
429
- unsetLineHeight: () => ReturnType;
437
+ mermaid: {
438
+ setMermaid: (options: any, replace?: any) => ReturnType;
439
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
430
440
  };
431
441
  }
432
442
  }
@@ -446,26 +456,6 @@ declare module '@tiptap/core' {
446
456
  }
447
457
 
448
458
 
449
- declare module '@tiptap/core' {
450
- interface Commands<ReturnType> {
451
- mermaid: {
452
- setMermaid: (options: any, replace?: any) => ReturnType;
453
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
454
- };
455
- }
456
- }
457
-
458
-
459
- declare module '@tiptap/core' {
460
- interface Commands<ReturnType> {
461
- tableOfContents: {
462
- setTableOfContents: () => ReturnType;
463
- removeTableOfContents: () => ReturnType;
464
- };
465
- }
466
- }
467
-
468
-
469
459
  declare module '@tiptap/core' {
470
460
  interface Commands<ReturnType> {
471
461
  search: {
@@ -489,6 +479,16 @@ declare module '@tiptap/core' {
489
479
  }
490
480
 
491
481
 
482
+ declare module '@tiptap/core' {
483
+ interface Commands<ReturnType> {
484
+ tableOfContents: {
485
+ setTableOfContents: () => ReturnType;
486
+ removeTableOfContents: () => ReturnType;
487
+ };
488
+ }
489
+ }
490
+
491
+
492
492
  declare module '@tiptap/core' {
493
493
  interface Commands<ReturnType> {
494
494
  twitter: {
@@ -1124,8 +1124,9 @@ declare module '@tiptap/core' {
1124
1124
 
1125
1125
  declare module '@tiptap/core' {
1126
1126
  interface Commands<ReturnType> {
1127
- excalidraw: {
1128
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
1127
+ drawer: {
1128
+ setDrawer: (options: any, replace?: any) => ReturnType;
1129
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1129
1130
  };
1130
1131
  }
1131
1132
  }
@@ -1133,9 +1134,8 @@ declare module '@tiptap/core' {
1133
1134
 
1134
1135
  declare module '@tiptap/core' {
1135
1136
  interface Commands<ReturnType> {
1136
- drawer: {
1137
- setDrawer: (options: any, replace?: any) => ReturnType;
1138
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1137
+ excalidraw: {
1138
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
1139
1139
  };
1140
1140
  }
1141
1141
  }
@@ -1159,15 +1159,6 @@ declare module '@tiptap/core' {
1159
1159
  }
1160
1160
 
1161
1161
 
1162
- declare module '@tiptap/core' {
1163
- interface Commands<ReturnType> {
1164
- painter: {
1165
- setPainter: (marks: Mark[]) => ReturnType;
1166
- };
1167
- }
1168
- }
1169
-
1170
-
1171
1162
  declare module '@tiptap/core' {
1172
1163
  interface Commands<ReturnType> {
1173
1164
  fontSize: {
@@ -1186,6 +1177,15 @@ declare module '@tiptap/core' {
1186
1177
  }
1187
1178
 
1188
1179
 
1180
+ declare module '@tiptap/core' {
1181
+ interface Commands<ReturnType> {
1182
+ painter: {
1183
+ setPainter: (marks: Mark[]) => ReturnType;
1184
+ };
1185
+ }
1186
+ }
1187
+
1188
+
1189
1189
  declare module '@tiptap/core' {
1190
1190
  interface Commands<ReturnType> {
1191
1191
  iframe: {
@@ -1221,6 +1221,22 @@ declare module '@tiptap/core' {
1221
1221
  }
1222
1222
 
1223
1223
 
1224
+ declare module '@tiptap/core' {
1225
+ interface Commands<ReturnType> {
1226
+ indent: {
1227
+ /**
1228
+ * Set the indent attribute
1229
+ */
1230
+ indent: () => ReturnType;
1231
+ /**
1232
+ * Set the outdent attribute
1233
+ */
1234
+ outdent: () => ReturnType;
1235
+ };
1236
+ }
1237
+ }
1238
+
1239
+
1224
1240
  declare module '@tiptap/core' {
1225
1241
  interface Commands<ReturnType> {
1226
1242
  imageGifUpload: {
@@ -1252,15 +1268,9 @@ declare module '@tiptap/core' {
1252
1268
 
1253
1269
  declare module '@tiptap/core' {
1254
1270
  interface Commands<ReturnType> {
1255
- indent: {
1256
- /**
1257
- * Set the indent attribute
1258
- */
1259
- indent: () => ReturnType;
1260
- /**
1261
- * Set the outdent attribute
1262
- */
1263
- outdent: () => ReturnType;
1271
+ lineHeight: {
1272
+ setLineHeight: (lineHeight: string) => ReturnType;
1273
+ unsetLineHeight: () => ReturnType;
1264
1274
  };
1265
1275
  }
1266
1276
  }
@@ -1268,9 +1278,9 @@ declare module '@tiptap/core' {
1268
1278
 
1269
1279
  declare module '@tiptap/core' {
1270
1280
  interface Commands<ReturnType> {
1271
- lineHeight: {
1272
- setLineHeight: (lineHeight: string) => ReturnType;
1273
- unsetLineHeight: () => ReturnType;
1281
+ mermaid: {
1282
+ setMermaid: (options: any, replace?: any) => ReturnType;
1283
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1274
1284
  };
1275
1285
  }
1276
1286
  }
@@ -1290,26 +1300,6 @@ declare module '@tiptap/core' {
1290
1300
  }
1291
1301
 
1292
1302
 
1293
- declare module '@tiptap/core' {
1294
- interface Commands<ReturnType> {
1295
- mermaid: {
1296
- setMermaid: (options: any, replace?: any) => ReturnType;
1297
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1298
- };
1299
- }
1300
- }
1301
-
1302
-
1303
- declare module '@tiptap/core' {
1304
- interface Commands<ReturnType> {
1305
- tableOfContents: {
1306
- setTableOfContents: () => ReturnType;
1307
- removeTableOfContents: () => ReturnType;
1308
- };
1309
- }
1310
- }
1311
-
1312
-
1313
1303
  declare module '@tiptap/core' {
1314
1304
  interface Commands<ReturnType> {
1315
1305
  search: {
@@ -1333,6 +1323,16 @@ declare module '@tiptap/core' {
1333
1323
  }
1334
1324
 
1335
1325
 
1326
+ declare module '@tiptap/core' {
1327
+ interface Commands<ReturnType> {
1328
+ tableOfContents: {
1329
+ setTableOfContents: () => ReturnType;
1330
+ removeTableOfContents: () => ReturnType;
1331
+ };
1332
+ }
1333
+ }
1334
+
1335
+
1336
1336
  declare module '@tiptap/core' {
1337
1337
  interface Commands<ReturnType> {
1338
1338
  twitter: {
@@ -1124,8 +1124,9 @@ declare module '@tiptap/core' {
1124
1124
 
1125
1125
  declare module '@tiptap/core' {
1126
1126
  interface Commands<ReturnType> {
1127
- excalidraw: {
1128
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
1127
+ drawer: {
1128
+ setDrawer: (options: any, replace?: any) => ReturnType;
1129
+ setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1129
1130
  };
1130
1131
  }
1131
1132
  }
@@ -1133,9 +1134,8 @@ declare module '@tiptap/core' {
1133
1134
 
1134
1135
  declare module '@tiptap/core' {
1135
1136
  interface Commands<ReturnType> {
1136
- drawer: {
1137
- setDrawer: (options: any, replace?: any) => ReturnType;
1138
- setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
1137
+ excalidraw: {
1138
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
1139
1139
  };
1140
1140
  }
1141
1141
  }
@@ -1159,15 +1159,6 @@ declare module '@tiptap/core' {
1159
1159
  }
1160
1160
 
1161
1161
 
1162
- declare module '@tiptap/core' {
1163
- interface Commands<ReturnType> {
1164
- painter: {
1165
- setPainter: (marks: Mark[]) => ReturnType;
1166
- };
1167
- }
1168
- }
1169
-
1170
-
1171
1162
  declare module '@tiptap/core' {
1172
1163
  interface Commands<ReturnType> {
1173
1164
  fontSize: {
@@ -1186,6 +1177,15 @@ declare module '@tiptap/core' {
1186
1177
  }
1187
1178
 
1188
1179
 
1180
+ declare module '@tiptap/core' {
1181
+ interface Commands<ReturnType> {
1182
+ painter: {
1183
+ setPainter: (marks: Mark[]) => ReturnType;
1184
+ };
1185
+ }
1186
+ }
1187
+
1188
+
1189
1189
  declare module '@tiptap/core' {
1190
1190
  interface Commands<ReturnType> {
1191
1191
  iframe: {
@@ -1221,6 +1221,22 @@ declare module '@tiptap/core' {
1221
1221
  }
1222
1222
 
1223
1223
 
1224
+ declare module '@tiptap/core' {
1225
+ interface Commands<ReturnType> {
1226
+ indent: {
1227
+ /**
1228
+ * Set the indent attribute
1229
+ */
1230
+ indent: () => ReturnType;
1231
+ /**
1232
+ * Set the outdent attribute
1233
+ */
1234
+ outdent: () => ReturnType;
1235
+ };
1236
+ }
1237
+ }
1238
+
1239
+
1224
1240
  declare module '@tiptap/core' {
1225
1241
  interface Commands<ReturnType> {
1226
1242
  imageGifUpload: {
@@ -1252,15 +1268,9 @@ declare module '@tiptap/core' {
1252
1268
 
1253
1269
  declare module '@tiptap/core' {
1254
1270
  interface Commands<ReturnType> {
1255
- indent: {
1256
- /**
1257
- * Set the indent attribute
1258
- */
1259
- indent: () => ReturnType;
1260
- /**
1261
- * Set the outdent attribute
1262
- */
1263
- outdent: () => ReturnType;
1271
+ lineHeight: {
1272
+ setLineHeight: (lineHeight: string) => ReturnType;
1273
+ unsetLineHeight: () => ReturnType;
1264
1274
  };
1265
1275
  }
1266
1276
  }
@@ -1268,9 +1278,9 @@ declare module '@tiptap/core' {
1268
1278
 
1269
1279
  declare module '@tiptap/core' {
1270
1280
  interface Commands<ReturnType> {
1271
- lineHeight: {
1272
- setLineHeight: (lineHeight: string) => ReturnType;
1273
- unsetLineHeight: () => ReturnType;
1281
+ mermaid: {
1282
+ setMermaid: (options: any, replace?: any) => ReturnType;
1283
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1274
1284
  };
1275
1285
  }
1276
1286
  }
@@ -1290,26 +1300,6 @@ declare module '@tiptap/core' {
1290
1300
  }
1291
1301
 
1292
1302
 
1293
- declare module '@tiptap/core' {
1294
- interface Commands<ReturnType> {
1295
- mermaid: {
1296
- setMermaid: (options: any, replace?: any) => ReturnType;
1297
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1298
- };
1299
- }
1300
- }
1301
-
1302
-
1303
- declare module '@tiptap/core' {
1304
- interface Commands<ReturnType> {
1305
- tableOfContents: {
1306
- setTableOfContents: () => ReturnType;
1307
- removeTableOfContents: () => ReturnType;
1308
- };
1309
- }
1310
- }
1311
-
1312
-
1313
1303
  declare module '@tiptap/core' {
1314
1304
  interface Commands<ReturnType> {
1315
1305
  search: {
@@ -1333,6 +1323,16 @@ declare module '@tiptap/core' {
1333
1323
  }
1334
1324
 
1335
1325
 
1326
+ declare module '@tiptap/core' {
1327
+ interface Commands<ReturnType> {
1328
+ tableOfContents: {
1329
+ setTableOfContents: () => ReturnType;
1330
+ removeTableOfContents: () => ReturnType;
1331
+ };
1332
+ }
1333
+ }
1334
+
1335
+
1336
1336
  declare module '@tiptap/core' {
1337
1337
  interface Commands<ReturnType> {
1338
1338
  twitter: {