reactjs-tiptap-editor 0.2.11 → 0.2.12
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 +3 -3
- package/lib/extension-bundle.d.cts +67 -67
- package/lib/extension-bundle.d.ts +67 -67
- package/lib/extension-bundle.js +696 -693
- package/lib/index.d.cts +67 -67
- package/lib/index.d.ts +67 -67
- package/lib/locale-bundle.d.cts +67 -67
- package/lib/locale-bundle.d.ts +67 -67
- package/package.json +1 -1
package/lib/index.d.cts
CHANGED
|
@@ -251,18 +251,9 @@ declare module '@tiptap/core' {
|
|
|
251
251
|
|
|
252
252
|
declare module '@tiptap/core' {
|
|
253
253
|
interface Commands<ReturnType> {
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
};
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
declare module '@tiptap/core' {
|
|
263
|
-
interface Commands<ReturnType> {
|
|
264
|
-
painter: {
|
|
265
|
-
setPainter: (marks: Mark[]) => ReturnType;
|
|
254
|
+
lineHeight: {
|
|
255
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
256
|
+
unsetLineHeight: () => ReturnType;
|
|
266
257
|
};
|
|
267
258
|
}
|
|
268
259
|
}
|
|
@@ -270,13 +261,19 @@ declare module '@tiptap/core' {
|
|
|
270
261
|
|
|
271
262
|
declare module '@tiptap/core' {
|
|
272
263
|
interface Commands<ReturnType> {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
264
|
+
imageUpload: {
|
|
265
|
+
/**
|
|
266
|
+
* Add an image
|
|
267
|
+
*/
|
|
268
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
269
|
+
/**
|
|
270
|
+
* Update an image
|
|
271
|
+
*/
|
|
272
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
273
|
+
/**
|
|
274
|
+
* Set image alignment
|
|
275
|
+
*/
|
|
276
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
280
277
|
};
|
|
281
278
|
}
|
|
282
279
|
}
|
|
@@ -300,9 +297,11 @@ declare module '@tiptap/core' {
|
|
|
300
297
|
|
|
301
298
|
declare module '@tiptap/core' {
|
|
302
299
|
interface Commands<ReturnType> {
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
300
|
+
emoji: {
|
|
301
|
+
setEmoji: (emoji: {
|
|
302
|
+
name: string;
|
|
303
|
+
emoji: string;
|
|
304
|
+
}) => ReturnType;
|
|
306
305
|
};
|
|
307
306
|
}
|
|
308
307
|
}
|
|
@@ -310,11 +309,13 @@ declare module '@tiptap/core' {
|
|
|
310
309
|
|
|
311
310
|
declare module '@tiptap/core' {
|
|
312
311
|
interface Commands<ReturnType> {
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
emoji: string;
|
|
312
|
+
columns: {
|
|
313
|
+
insertColumns: (attrs?: {
|
|
314
|
+
cols: number;
|
|
317
315
|
}) => ReturnType;
|
|
316
|
+
addColBefore: () => ReturnType;
|
|
317
|
+
addColAfter: () => ReturnType;
|
|
318
|
+
deleteCol: () => ReturnType;
|
|
318
319
|
};
|
|
319
320
|
}
|
|
320
321
|
}
|
|
@@ -337,19 +338,17 @@ declare module '@tiptap/core' {
|
|
|
337
338
|
|
|
338
339
|
declare module '@tiptap/core' {
|
|
339
340
|
interface Commands<ReturnType> {
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
*/
|
|
352
|
-
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
341
|
+
painter: {
|
|
342
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
declare module '@tiptap/core' {
|
|
349
|
+
interface Commands<ReturnType> {
|
|
350
|
+
katex: {
|
|
351
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
353
352
|
};
|
|
354
353
|
}
|
|
355
354
|
}
|
|
@@ -372,8 +371,9 @@ declare module '@tiptap/core' {
|
|
|
372
371
|
|
|
373
372
|
declare module '@tiptap/core' {
|
|
374
373
|
interface Commands<ReturnType> {
|
|
375
|
-
|
|
376
|
-
|
|
374
|
+
tableCellBackground: {
|
|
375
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
376
|
+
unsetTableCellBackground: () => ReturnType;
|
|
377
377
|
};
|
|
378
378
|
}
|
|
379
379
|
}
|
|
@@ -388,16 +388,6 @@ declare module '@tiptap/core' {
|
|
|
388
388
|
}
|
|
389
389
|
|
|
390
390
|
|
|
391
|
-
declare module '@tiptap/core' {
|
|
392
|
-
interface Commands<ReturnType> {
|
|
393
|
-
tableOfContents: {
|
|
394
|
-
setTableOfContents: () => ReturnType;
|
|
395
|
-
removeTableOfContents: () => ReturnType;
|
|
396
|
-
};
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
|
|
401
391
|
declare module '@tiptap/core' {
|
|
402
392
|
interface Commands<ReturnType> {
|
|
403
393
|
excalidraw: {
|
|
@@ -409,8 +399,9 @@ declare module '@tiptap/core' {
|
|
|
409
399
|
|
|
410
400
|
declare module '@tiptap/core' {
|
|
411
401
|
interface Commands<ReturnType> {
|
|
412
|
-
|
|
413
|
-
|
|
402
|
+
tableOfContents: {
|
|
403
|
+
setTableOfContents: () => ReturnType;
|
|
404
|
+
removeTableOfContents: () => ReturnType;
|
|
414
405
|
};
|
|
415
406
|
}
|
|
416
407
|
}
|
|
@@ -438,14 +429,9 @@ declare module '@tiptap/core' {
|
|
|
438
429
|
|
|
439
430
|
declare module '@tiptap/core' {
|
|
440
431
|
interface Commands<ReturnType> {
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
* @param options The tweet attributes
|
|
445
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
446
|
-
*/
|
|
447
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
448
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
432
|
+
drawer: {
|
|
433
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
434
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
449
435
|
};
|
|
450
436
|
}
|
|
451
437
|
}
|
|
@@ -453,9 +439,9 @@ declare module '@tiptap/core' {
|
|
|
453
439
|
|
|
454
440
|
declare module '@tiptap/core' {
|
|
455
441
|
interface Commands<ReturnType> {
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
442
|
+
mermaid: {
|
|
443
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
444
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
459
445
|
};
|
|
460
446
|
}
|
|
461
447
|
}
|
|
@@ -463,9 +449,23 @@ declare module '@tiptap/core' {
|
|
|
463
449
|
|
|
464
450
|
declare module '@tiptap/core' {
|
|
465
451
|
interface Commands<ReturnType> {
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
452
|
+
attachment: {
|
|
453
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
declare module '@tiptap/core' {
|
|
460
|
+
interface Commands<ReturnType> {
|
|
461
|
+
twitter: {
|
|
462
|
+
/**
|
|
463
|
+
* Insert a tweet
|
|
464
|
+
* @param options The tweet attributes
|
|
465
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
466
|
+
*/
|
|
467
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
468
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
469
469
|
};
|
|
470
470
|
}
|
|
471
471
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -251,18 +251,9 @@ declare module '@tiptap/core' {
|
|
|
251
251
|
|
|
252
252
|
declare module '@tiptap/core' {
|
|
253
253
|
interface Commands<ReturnType> {
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
};
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
declare module '@tiptap/core' {
|
|
263
|
-
interface Commands<ReturnType> {
|
|
264
|
-
painter: {
|
|
265
|
-
setPainter: (marks: Mark[]) => ReturnType;
|
|
254
|
+
lineHeight: {
|
|
255
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
256
|
+
unsetLineHeight: () => ReturnType;
|
|
266
257
|
};
|
|
267
258
|
}
|
|
268
259
|
}
|
|
@@ -270,13 +261,19 @@ declare module '@tiptap/core' {
|
|
|
270
261
|
|
|
271
262
|
declare module '@tiptap/core' {
|
|
272
263
|
interface Commands<ReturnType> {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
264
|
+
imageUpload: {
|
|
265
|
+
/**
|
|
266
|
+
* Add an image
|
|
267
|
+
*/
|
|
268
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
269
|
+
/**
|
|
270
|
+
* Update an image
|
|
271
|
+
*/
|
|
272
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
273
|
+
/**
|
|
274
|
+
* Set image alignment
|
|
275
|
+
*/
|
|
276
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
280
277
|
};
|
|
281
278
|
}
|
|
282
279
|
}
|
|
@@ -300,9 +297,11 @@ declare module '@tiptap/core' {
|
|
|
300
297
|
|
|
301
298
|
declare module '@tiptap/core' {
|
|
302
299
|
interface Commands<ReturnType> {
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
300
|
+
emoji: {
|
|
301
|
+
setEmoji: (emoji: {
|
|
302
|
+
name: string;
|
|
303
|
+
emoji: string;
|
|
304
|
+
}) => ReturnType;
|
|
306
305
|
};
|
|
307
306
|
}
|
|
308
307
|
}
|
|
@@ -310,11 +309,13 @@ declare module '@tiptap/core' {
|
|
|
310
309
|
|
|
311
310
|
declare module '@tiptap/core' {
|
|
312
311
|
interface Commands<ReturnType> {
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
emoji: string;
|
|
312
|
+
columns: {
|
|
313
|
+
insertColumns: (attrs?: {
|
|
314
|
+
cols: number;
|
|
317
315
|
}) => ReturnType;
|
|
316
|
+
addColBefore: () => ReturnType;
|
|
317
|
+
addColAfter: () => ReturnType;
|
|
318
|
+
deleteCol: () => ReturnType;
|
|
318
319
|
};
|
|
319
320
|
}
|
|
320
321
|
}
|
|
@@ -337,19 +338,17 @@ declare module '@tiptap/core' {
|
|
|
337
338
|
|
|
338
339
|
declare module '@tiptap/core' {
|
|
339
340
|
interface Commands<ReturnType> {
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
*/
|
|
352
|
-
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
341
|
+
painter: {
|
|
342
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
declare module '@tiptap/core' {
|
|
349
|
+
interface Commands<ReturnType> {
|
|
350
|
+
katex: {
|
|
351
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
353
352
|
};
|
|
354
353
|
}
|
|
355
354
|
}
|
|
@@ -372,8 +371,9 @@ declare module '@tiptap/core' {
|
|
|
372
371
|
|
|
373
372
|
declare module '@tiptap/core' {
|
|
374
373
|
interface Commands<ReturnType> {
|
|
375
|
-
|
|
376
|
-
|
|
374
|
+
tableCellBackground: {
|
|
375
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
376
|
+
unsetTableCellBackground: () => ReturnType;
|
|
377
377
|
};
|
|
378
378
|
}
|
|
379
379
|
}
|
|
@@ -388,16 +388,6 @@ declare module '@tiptap/core' {
|
|
|
388
388
|
}
|
|
389
389
|
|
|
390
390
|
|
|
391
|
-
declare module '@tiptap/core' {
|
|
392
|
-
interface Commands<ReturnType> {
|
|
393
|
-
tableOfContents: {
|
|
394
|
-
setTableOfContents: () => ReturnType;
|
|
395
|
-
removeTableOfContents: () => ReturnType;
|
|
396
|
-
};
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
|
|
401
391
|
declare module '@tiptap/core' {
|
|
402
392
|
interface Commands<ReturnType> {
|
|
403
393
|
excalidraw: {
|
|
@@ -409,8 +399,9 @@ declare module '@tiptap/core' {
|
|
|
409
399
|
|
|
410
400
|
declare module '@tiptap/core' {
|
|
411
401
|
interface Commands<ReturnType> {
|
|
412
|
-
|
|
413
|
-
|
|
402
|
+
tableOfContents: {
|
|
403
|
+
setTableOfContents: () => ReturnType;
|
|
404
|
+
removeTableOfContents: () => ReturnType;
|
|
414
405
|
};
|
|
415
406
|
}
|
|
416
407
|
}
|
|
@@ -438,14 +429,9 @@ declare module '@tiptap/core' {
|
|
|
438
429
|
|
|
439
430
|
declare module '@tiptap/core' {
|
|
440
431
|
interface Commands<ReturnType> {
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
* @param options The tweet attributes
|
|
445
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
446
|
-
*/
|
|
447
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
448
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
432
|
+
drawer: {
|
|
433
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
434
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
449
435
|
};
|
|
450
436
|
}
|
|
451
437
|
}
|
|
@@ -453,9 +439,9 @@ declare module '@tiptap/core' {
|
|
|
453
439
|
|
|
454
440
|
declare module '@tiptap/core' {
|
|
455
441
|
interface Commands<ReturnType> {
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
442
|
+
mermaid: {
|
|
443
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
444
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
459
445
|
};
|
|
460
446
|
}
|
|
461
447
|
}
|
|
@@ -463,9 +449,23 @@ declare module '@tiptap/core' {
|
|
|
463
449
|
|
|
464
450
|
declare module '@tiptap/core' {
|
|
465
451
|
interface Commands<ReturnType> {
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
452
|
+
attachment: {
|
|
453
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
declare module '@tiptap/core' {
|
|
460
|
+
interface Commands<ReturnType> {
|
|
461
|
+
twitter: {
|
|
462
|
+
/**
|
|
463
|
+
* Insert a tweet
|
|
464
|
+
* @param options The tweet attributes
|
|
465
|
+
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
466
|
+
*/
|
|
467
|
+
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
468
|
+
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
469
469
|
};
|
|
470
470
|
}
|
|
471
471
|
}
|
package/lib/locale-bundle.d.cts
CHANGED
|
@@ -920,18 +920,9 @@ declare module '@tiptap/core' {
|
|
|
920
920
|
|
|
921
921
|
declare module '@tiptap/core' {
|
|
922
922
|
interface Commands<ReturnType> {
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
};
|
|
927
|
-
}
|
|
928
|
-
}
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
declare module '@tiptap/core' {
|
|
932
|
-
interface Commands<ReturnType> {
|
|
933
|
-
painter: {
|
|
934
|
-
setPainter: (marks: Mark[]) => ReturnType;
|
|
923
|
+
lineHeight: {
|
|
924
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
925
|
+
unsetLineHeight: () => ReturnType;
|
|
935
926
|
};
|
|
936
927
|
}
|
|
937
928
|
}
|
|
@@ -939,13 +930,19 @@ declare module '@tiptap/core' {
|
|
|
939
930
|
|
|
940
931
|
declare module '@tiptap/core' {
|
|
941
932
|
interface Commands<ReturnType> {
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
933
|
+
imageUpload: {
|
|
934
|
+
/**
|
|
935
|
+
* Add an image
|
|
936
|
+
*/
|
|
937
|
+
setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
938
|
+
/**
|
|
939
|
+
* Update an image
|
|
940
|
+
*/
|
|
941
|
+
updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
942
|
+
/**
|
|
943
|
+
* Set image alignment
|
|
944
|
+
*/
|
|
945
|
+
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
949
946
|
};
|
|
950
947
|
}
|
|
951
948
|
}
|
|
@@ -969,9 +966,11 @@ declare module '@tiptap/core' {
|
|
|
969
966
|
|
|
970
967
|
declare module '@tiptap/core' {
|
|
971
968
|
interface Commands<ReturnType> {
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
969
|
+
emoji: {
|
|
970
|
+
setEmoji: (emoji: {
|
|
971
|
+
name: string;
|
|
972
|
+
emoji: string;
|
|
973
|
+
}) => ReturnType;
|
|
975
974
|
};
|
|
976
975
|
}
|
|
977
976
|
}
|
|
@@ -979,11 +978,13 @@ declare module '@tiptap/core' {
|
|
|
979
978
|
|
|
980
979
|
declare module '@tiptap/core' {
|
|
981
980
|
interface Commands<ReturnType> {
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
emoji: string;
|
|
981
|
+
columns: {
|
|
982
|
+
insertColumns: (attrs?: {
|
|
983
|
+
cols: number;
|
|
986
984
|
}) => ReturnType;
|
|
985
|
+
addColBefore: () => ReturnType;
|
|
986
|
+
addColAfter: () => ReturnType;
|
|
987
|
+
deleteCol: () => ReturnType;
|
|
987
988
|
};
|
|
988
989
|
}
|
|
989
990
|
}
|
|
@@ -1006,19 +1007,17 @@ declare module '@tiptap/core' {
|
|
|
1006
1007
|
|
|
1007
1008
|
declare module '@tiptap/core' {
|
|
1008
1009
|
interface Commands<ReturnType> {
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
*/
|
|
1021
|
-
setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1010
|
+
painter: {
|
|
1011
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
1012
|
+
};
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
|
|
1017
|
+
declare module '@tiptap/core' {
|
|
1018
|
+
interface Commands<ReturnType> {
|
|
1019
|
+
katex: {
|
|
1020
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1022
1021
|
};
|
|
1023
1022
|
}
|
|
1024
1023
|
}
|
|
@@ -1041,8 +1040,9 @@ declare module '@tiptap/core' {
|
|
|
1041
1040
|
|
|
1042
1041
|
declare module '@tiptap/core' {
|
|
1043
1042
|
interface Commands<ReturnType> {
|
|
1044
|
-
|
|
1045
|
-
|
|
1043
|
+
tableCellBackground: {
|
|
1044
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
1045
|
+
unsetTableCellBackground: () => ReturnType;
|
|
1046
1046
|
};
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
@@ -1057,16 +1057,6 @@ declare module '@tiptap/core' {
|
|
|
1057
1057
|
}
|
|
1058
1058
|
|
|
1059
1059
|
|
|
1060
|
-
declare module '@tiptap/core' {
|
|
1061
|
-
interface Commands<ReturnType> {
|
|
1062
|
-
tableOfContents: {
|
|
1063
|
-
setTableOfContents: () => ReturnType;
|
|
1064
|
-
removeTableOfContents: () => ReturnType;
|
|
1065
|
-
};
|
|
1066
|
-
}
|
|
1067
|
-
}
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
1060
|
declare module '@tiptap/core' {
|
|
1071
1061
|
interface Commands<ReturnType> {
|
|
1072
1062
|
excalidraw: {
|
|
@@ -1078,8 +1068,9 @@ declare module '@tiptap/core' {
|
|
|
1078
1068
|
|
|
1079
1069
|
declare module '@tiptap/core' {
|
|
1080
1070
|
interface Commands<ReturnType> {
|
|
1081
|
-
|
|
1082
|
-
|
|
1071
|
+
tableOfContents: {
|
|
1072
|
+
setTableOfContents: () => ReturnType;
|
|
1073
|
+
removeTableOfContents: () => ReturnType;
|
|
1083
1074
|
};
|
|
1084
1075
|
}
|
|
1085
1076
|
}
|
|
@@ -1107,14 +1098,9 @@ declare module '@tiptap/core' {
|
|
|
1107
1098
|
|
|
1108
1099
|
declare module '@tiptap/core' {
|
|
1109
1100
|
interface Commands<ReturnType> {
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
* @param options The tweet attributes
|
|
1114
|
-
* @example editor.commands.setTweet({ src: 'https://x.com/seanpk/status/1800145949580517852' })
|
|
1115
|
-
*/
|
|
1116
|
-
setTweet: (options: SetTweetOptions) => ReturnType;
|
|
1117
|
-
updateTweet: (options: SetTweetOptions) => ReturnType;
|
|
1101
|
+
drawer: {
|
|
1102
|
+
setDrawer: (options: any, replace?: any) => ReturnType;
|
|
1103
|
+
setAlignImageDrawer: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1118
1104
|
};
|
|
1119
1105
|
}
|
|
1120
1106
|
}
|
|
@@ -1122,9 +1108,9 @@ declare module '@tiptap/core' {
|
|
|
1122
1108
|
|
|
1123
1109
|
declare module '@tiptap/core' {
|
|
1124
1110
|
interface Commands<ReturnType> {
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1111
|
+
mermaid: {
|
|
1112
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1113
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1128
1114
|
};
|
|
1129
1115
|
}
|
|
1130
1116
|
}
|
|
@@ -1132,9 +1118,23 @@ declare module '@tiptap/core' {
|
|
|
1132
1118
|
|
|
1133
1119
|
declare module '@tiptap/core' {
|
|
1134
1120
|
interface Commands<ReturnType> {
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1121
|
+
attachment: {
|
|
1122
|
+
setAttachment: (attrs?: unknown) => ReturnType;
|
|
1123
|
+
};
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
|
|
1128
|
+
declare module '@tiptap/core' {
|
|
1129
|
+
interface Commands<ReturnType> {
|
|
1130
|
+
twitter: {
|
|
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;
|
|
1138
1138
|
};
|
|
1139
1139
|
}
|
|
1140
1140
|
}
|