reactjs-tiptap-editor-pro 0.2.26 → 0.2.28
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-BC85Dn21.js +8826 -0
- package/lib/RichTextEditor-Cxm0yJdr.cjs +141 -0
- package/lib/extension-bundle.cjs +3 -3
- package/lib/extension-bundle.d.cts +81 -81
- package/lib/extension-bundle.d.ts +81 -81
- package/lib/extension-bundle.js +1225 -1225
- package/lib/index.cjs +1 -1
- package/lib/index.d.cts +81 -81
- package/lib/index.d.ts +81 -81
- package/lib/index.js +1 -1
- package/lib/locale-bundle.d.cts +81 -81
- package/lib/locale-bundle.d.ts +81 -81
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/lib/RichTextEditor-DlFgd8H2.cjs +0 -141
- package/lib/RichTextEditor-iBDjgtlT.js +0 -8780
package/lib/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react"),d=require("./RichTextEditor-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react"),d=require("./RichTextEditor-Cxm0yJdr.cjs"),c=require("./tiptap-gBG-1T-V.cjs");function a(){var r;const e=t.useRef({editor:null}),[i,o]=t.useState(!1),[s,n]=t.useState(null);return t.useEffect(()=>{var u;(u=e.current)!=null&&u.editor&&(o(!0),n(e.current.editor))},[e,(r=e.current)==null?void 0:r.editor]),{isReady:i,editor:s,editorRef:e}}exports.default=d.RichTextEditor;exports.BubbleMenu=c.BubbleMenu;exports.useEditorState=a;
|
package/lib/index.d.cts
CHANGED
|
@@ -291,25 +291,9 @@ declare module '@tiptap/core' {
|
|
|
291
291
|
|
|
292
292
|
declare module '@tiptap/core' {
|
|
293
293
|
interface Commands<ReturnType> {
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
};
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
declare module '@tiptap/core' {
|
|
303
|
-
interface Commands<ReturnType> {
|
|
304
|
-
indent: {
|
|
305
|
-
/**
|
|
306
|
-
* Set the indent attribute
|
|
307
|
-
*/
|
|
308
|
-
indent: () => ReturnType;
|
|
309
|
-
/**
|
|
310
|
-
* Set the outdent attribute
|
|
311
|
-
*/
|
|
312
|
-
outdent: () => ReturnType;
|
|
294
|
+
lineHeight: {
|
|
295
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
296
|
+
unsetLineHeight: () => ReturnType;
|
|
313
297
|
};
|
|
314
298
|
}
|
|
315
299
|
}
|
|
@@ -337,9 +321,13 @@ declare module '@tiptap/core' {
|
|
|
337
321
|
|
|
338
322
|
declare module '@tiptap/core' {
|
|
339
323
|
interface Commands<ReturnType> {
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
324
|
+
columns: {
|
|
325
|
+
insertColumns: (attrs?: {
|
|
326
|
+
cols: number;
|
|
327
|
+
}) => ReturnType;
|
|
328
|
+
addColBefore: () => ReturnType;
|
|
329
|
+
addColAfter: () => ReturnType;
|
|
330
|
+
deleteCol: () => ReturnType;
|
|
343
331
|
};
|
|
344
332
|
}
|
|
345
333
|
}
|
|
@@ -347,14 +335,8 @@ declare module '@tiptap/core' {
|
|
|
347
335
|
|
|
348
336
|
declare module '@tiptap/core' {
|
|
349
337
|
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;
|
|
338
|
+
painter: {
|
|
339
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
358
340
|
};
|
|
359
341
|
}
|
|
360
342
|
}
|
|
@@ -362,9 +344,37 @@ declare module '@tiptap/core' {
|
|
|
362
344
|
|
|
363
345
|
declare module '@tiptap/core' {
|
|
364
346
|
interface Commands<ReturnType> {
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
347
|
+
emoji: {
|
|
348
|
+
setEmoji: (emoji: {
|
|
349
|
+
name: string;
|
|
350
|
+
emoji: string;
|
|
351
|
+
}) => ReturnType;
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
declare module '@tiptap/core' {
|
|
358
|
+
interface Commands<ReturnType> {
|
|
359
|
+
tableCellBackground: {
|
|
360
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
361
|
+
unsetTableCellBackground: () => ReturnType;
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
declare module '@tiptap/core' {
|
|
368
|
+
interface Commands<ReturnType> {
|
|
369
|
+
indent: {
|
|
370
|
+
/**
|
|
371
|
+
* Set the indent attribute
|
|
372
|
+
*/
|
|
373
|
+
indent: () => ReturnType;
|
|
374
|
+
/**
|
|
375
|
+
* Set the outdent attribute
|
|
376
|
+
*/
|
|
377
|
+
outdent: () => ReturnType;
|
|
368
378
|
};
|
|
369
379
|
}
|
|
370
380
|
}
|
|
@@ -387,13 +397,14 @@ declare module '@tiptap/core' {
|
|
|
387
397
|
|
|
388
398
|
declare module '@tiptap/core' {
|
|
389
399
|
interface Commands<ReturnType> {
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
400
|
+
search: {
|
|
401
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
402
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
403
|
+
replace: () => ReturnType;
|
|
404
|
+
replaceAll: () => ReturnType;
|
|
405
|
+
goToPrevSearchResult: () => void;
|
|
406
|
+
goToNextSearchResult: () => void;
|
|
407
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
397
408
|
};
|
|
398
409
|
}
|
|
399
410
|
}
|
|
@@ -410,8 +421,8 @@ declare module '@tiptap/core' {
|
|
|
410
421
|
|
|
411
422
|
declare module '@tiptap/core' {
|
|
412
423
|
interface Commands<ReturnType> {
|
|
413
|
-
|
|
414
|
-
|
|
424
|
+
excalidraw: {
|
|
425
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
415
426
|
};
|
|
416
427
|
}
|
|
417
428
|
}
|
|
@@ -419,11 +430,9 @@ declare module '@tiptap/core' {
|
|
|
419
430
|
|
|
420
431
|
declare module '@tiptap/core' {
|
|
421
432
|
interface Commands<ReturnType> {
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
emoji: string;
|
|
426
|
-
}) => ReturnType;
|
|
433
|
+
tableOfContents: {
|
|
434
|
+
setTableOfContents: () => ReturnType;
|
|
435
|
+
removeTableOfContents: () => ReturnType;
|
|
427
436
|
};
|
|
428
437
|
}
|
|
429
438
|
}
|
|
@@ -431,8 +440,8 @@ declare module '@tiptap/core' {
|
|
|
431
440
|
|
|
432
441
|
declare module '@tiptap/core' {
|
|
433
442
|
interface Commands<ReturnType> {
|
|
434
|
-
|
|
435
|
-
|
|
443
|
+
katex: {
|
|
444
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
436
445
|
};
|
|
437
446
|
}
|
|
438
447
|
}
|
|
@@ -440,8 +449,29 @@ declare module '@tiptap/core' {
|
|
|
440
449
|
|
|
441
450
|
declare module '@tiptap/core' {
|
|
442
451
|
interface Commands<ReturnType> {
|
|
443
|
-
|
|
444
|
-
|
|
452
|
+
imageGifUpload: {
|
|
453
|
+
/**
|
|
454
|
+
* Add an image gif
|
|
455
|
+
*/
|
|
456
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
457
|
+
/**
|
|
458
|
+
* Update an image gif
|
|
459
|
+
*/
|
|
460
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
461
|
+
/**
|
|
462
|
+
* Set image alignment
|
|
463
|
+
*/
|
|
464
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
465
|
+
};
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
declare module '@tiptap/core' {
|
|
471
|
+
interface Commands<ReturnType> {
|
|
472
|
+
mermaid: {
|
|
473
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
474
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
445
475
|
};
|
|
446
476
|
}
|
|
447
477
|
}
|
|
@@ -479,33 +509,3 @@ declare module '@tiptap/core' {
|
|
|
479
509
|
};
|
|
480
510
|
}
|
|
481
511
|
}
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
declare module '@tiptap/core' {
|
|
485
|
-
interface Commands<ReturnType> {
|
|
486
|
-
mermaid: {
|
|
487
|
-
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
488
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
489
|
-
};
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
declare module '@tiptap/core' {
|
|
495
|
-
interface Commands<ReturnType> {
|
|
496
|
-
imageGifUpload: {
|
|
497
|
-
/**
|
|
498
|
-
* Add an image gif
|
|
499
|
-
*/
|
|
500
|
-
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
501
|
-
/**
|
|
502
|
-
* Update an image gif
|
|
503
|
-
*/
|
|
504
|
-
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
505
|
-
/**
|
|
506
|
-
* Set image alignment
|
|
507
|
-
*/
|
|
508
|
-
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
509
|
-
};
|
|
510
|
-
}
|
|
511
|
-
}
|
package/lib/index.d.ts
CHANGED
|
@@ -291,25 +291,9 @@ declare module '@tiptap/core' {
|
|
|
291
291
|
|
|
292
292
|
declare module '@tiptap/core' {
|
|
293
293
|
interface Commands<ReturnType> {
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
};
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
declare module '@tiptap/core' {
|
|
303
|
-
interface Commands<ReturnType> {
|
|
304
|
-
indent: {
|
|
305
|
-
/**
|
|
306
|
-
* Set the indent attribute
|
|
307
|
-
*/
|
|
308
|
-
indent: () => ReturnType;
|
|
309
|
-
/**
|
|
310
|
-
* Set the outdent attribute
|
|
311
|
-
*/
|
|
312
|
-
outdent: () => ReturnType;
|
|
294
|
+
lineHeight: {
|
|
295
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
296
|
+
unsetLineHeight: () => ReturnType;
|
|
313
297
|
};
|
|
314
298
|
}
|
|
315
299
|
}
|
|
@@ -337,9 +321,13 @@ declare module '@tiptap/core' {
|
|
|
337
321
|
|
|
338
322
|
declare module '@tiptap/core' {
|
|
339
323
|
interface Commands<ReturnType> {
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
324
|
+
columns: {
|
|
325
|
+
insertColumns: (attrs?: {
|
|
326
|
+
cols: number;
|
|
327
|
+
}) => ReturnType;
|
|
328
|
+
addColBefore: () => ReturnType;
|
|
329
|
+
addColAfter: () => ReturnType;
|
|
330
|
+
deleteCol: () => ReturnType;
|
|
343
331
|
};
|
|
344
332
|
}
|
|
345
333
|
}
|
|
@@ -347,14 +335,8 @@ declare module '@tiptap/core' {
|
|
|
347
335
|
|
|
348
336
|
declare module '@tiptap/core' {
|
|
349
337
|
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;
|
|
338
|
+
painter: {
|
|
339
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
358
340
|
};
|
|
359
341
|
}
|
|
360
342
|
}
|
|
@@ -362,9 +344,37 @@ declare module '@tiptap/core' {
|
|
|
362
344
|
|
|
363
345
|
declare module '@tiptap/core' {
|
|
364
346
|
interface Commands<ReturnType> {
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
347
|
+
emoji: {
|
|
348
|
+
setEmoji: (emoji: {
|
|
349
|
+
name: string;
|
|
350
|
+
emoji: string;
|
|
351
|
+
}) => ReturnType;
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
declare module '@tiptap/core' {
|
|
358
|
+
interface Commands<ReturnType> {
|
|
359
|
+
tableCellBackground: {
|
|
360
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
361
|
+
unsetTableCellBackground: () => ReturnType;
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
declare module '@tiptap/core' {
|
|
368
|
+
interface Commands<ReturnType> {
|
|
369
|
+
indent: {
|
|
370
|
+
/**
|
|
371
|
+
* Set the indent attribute
|
|
372
|
+
*/
|
|
373
|
+
indent: () => ReturnType;
|
|
374
|
+
/**
|
|
375
|
+
* Set the outdent attribute
|
|
376
|
+
*/
|
|
377
|
+
outdent: () => ReturnType;
|
|
368
378
|
};
|
|
369
379
|
}
|
|
370
380
|
}
|
|
@@ -387,13 +397,14 @@ declare module '@tiptap/core' {
|
|
|
387
397
|
|
|
388
398
|
declare module '@tiptap/core' {
|
|
389
399
|
interface Commands<ReturnType> {
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
400
|
+
search: {
|
|
401
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
402
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
403
|
+
replace: () => ReturnType;
|
|
404
|
+
replaceAll: () => ReturnType;
|
|
405
|
+
goToPrevSearchResult: () => void;
|
|
406
|
+
goToNextSearchResult: () => void;
|
|
407
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
397
408
|
};
|
|
398
409
|
}
|
|
399
410
|
}
|
|
@@ -410,8 +421,8 @@ declare module '@tiptap/core' {
|
|
|
410
421
|
|
|
411
422
|
declare module '@tiptap/core' {
|
|
412
423
|
interface Commands<ReturnType> {
|
|
413
|
-
|
|
414
|
-
|
|
424
|
+
excalidraw: {
|
|
425
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
415
426
|
};
|
|
416
427
|
}
|
|
417
428
|
}
|
|
@@ -419,11 +430,9 @@ declare module '@tiptap/core' {
|
|
|
419
430
|
|
|
420
431
|
declare module '@tiptap/core' {
|
|
421
432
|
interface Commands<ReturnType> {
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
emoji: string;
|
|
426
|
-
}) => ReturnType;
|
|
433
|
+
tableOfContents: {
|
|
434
|
+
setTableOfContents: () => ReturnType;
|
|
435
|
+
removeTableOfContents: () => ReturnType;
|
|
427
436
|
};
|
|
428
437
|
}
|
|
429
438
|
}
|
|
@@ -431,8 +440,8 @@ declare module '@tiptap/core' {
|
|
|
431
440
|
|
|
432
441
|
declare module '@tiptap/core' {
|
|
433
442
|
interface Commands<ReturnType> {
|
|
434
|
-
|
|
435
|
-
|
|
443
|
+
katex: {
|
|
444
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
436
445
|
};
|
|
437
446
|
}
|
|
438
447
|
}
|
|
@@ -440,8 +449,29 @@ declare module '@tiptap/core' {
|
|
|
440
449
|
|
|
441
450
|
declare module '@tiptap/core' {
|
|
442
451
|
interface Commands<ReturnType> {
|
|
443
|
-
|
|
444
|
-
|
|
452
|
+
imageGifUpload: {
|
|
453
|
+
/**
|
|
454
|
+
* Add an image gif
|
|
455
|
+
*/
|
|
456
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
457
|
+
/**
|
|
458
|
+
* Update an image gif
|
|
459
|
+
*/
|
|
460
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
461
|
+
/**
|
|
462
|
+
* Set image alignment
|
|
463
|
+
*/
|
|
464
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
465
|
+
};
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
declare module '@tiptap/core' {
|
|
471
|
+
interface Commands<ReturnType> {
|
|
472
|
+
mermaid: {
|
|
473
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
474
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
445
475
|
};
|
|
446
476
|
}
|
|
447
477
|
}
|
|
@@ -479,33 +509,3 @@ declare module '@tiptap/core' {
|
|
|
479
509
|
};
|
|
480
510
|
}
|
|
481
511
|
}
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
declare module '@tiptap/core' {
|
|
485
|
-
interface Commands<ReturnType> {
|
|
486
|
-
mermaid: {
|
|
487
|
-
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
488
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
489
|
-
};
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
declare module '@tiptap/core' {
|
|
495
|
-
interface Commands<ReturnType> {
|
|
496
|
-
imageGifUpload: {
|
|
497
|
-
/**
|
|
498
|
-
* Add an image gif
|
|
499
|
-
*/
|
|
500
|
-
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
501
|
-
/**
|
|
502
|
-
* Update an image gif
|
|
503
|
-
*/
|
|
504
|
-
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
505
|
-
/**
|
|
506
|
-
* Set image alignment
|
|
507
|
-
*/
|
|
508
|
-
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
509
|
-
};
|
|
510
|
-
}
|
|
511
|
-
}
|
package/lib/index.js
CHANGED
package/lib/locale-bundle.d.cts
CHANGED
|
@@ -920,25 +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
|
-
indent: {
|
|
934
|
-
/**
|
|
935
|
-
* Set the indent attribute
|
|
936
|
-
*/
|
|
937
|
-
indent: () => ReturnType;
|
|
938
|
-
/**
|
|
939
|
-
* Set the outdent attribute
|
|
940
|
-
*/
|
|
941
|
-
outdent: () => ReturnType;
|
|
923
|
+
lineHeight: {
|
|
924
|
+
setLineHeight: (lineHeight: string) => ReturnType;
|
|
925
|
+
unsetLineHeight: () => ReturnType;
|
|
942
926
|
};
|
|
943
927
|
}
|
|
944
928
|
}
|
|
@@ -966,9 +950,13 @@ declare module '@tiptap/core' {
|
|
|
966
950
|
|
|
967
951
|
declare module '@tiptap/core' {
|
|
968
952
|
interface Commands<ReturnType> {
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
953
|
+
columns: {
|
|
954
|
+
insertColumns: (attrs?: {
|
|
955
|
+
cols: number;
|
|
956
|
+
}) => ReturnType;
|
|
957
|
+
addColBefore: () => ReturnType;
|
|
958
|
+
addColAfter: () => ReturnType;
|
|
959
|
+
deleteCol: () => ReturnType;
|
|
972
960
|
};
|
|
973
961
|
}
|
|
974
962
|
}
|
|
@@ -976,14 +964,8 @@ declare module '@tiptap/core' {
|
|
|
976
964
|
|
|
977
965
|
declare module '@tiptap/core' {
|
|
978
966
|
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;
|
|
967
|
+
painter: {
|
|
968
|
+
setPainter: (marks: Mark[]) => ReturnType;
|
|
987
969
|
};
|
|
988
970
|
}
|
|
989
971
|
}
|
|
@@ -991,9 +973,37 @@ declare module '@tiptap/core' {
|
|
|
991
973
|
|
|
992
974
|
declare module '@tiptap/core' {
|
|
993
975
|
interface Commands<ReturnType> {
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
976
|
+
emoji: {
|
|
977
|
+
setEmoji: (emoji: {
|
|
978
|
+
name: string;
|
|
979
|
+
emoji: string;
|
|
980
|
+
}) => ReturnType;
|
|
981
|
+
};
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
|
|
986
|
+
declare module '@tiptap/core' {
|
|
987
|
+
interface Commands<ReturnType> {
|
|
988
|
+
tableCellBackground: {
|
|
989
|
+
setTableCellBackground: (color: string) => ReturnType;
|
|
990
|
+
unsetTableCellBackground: () => ReturnType;
|
|
991
|
+
};
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
|
|
996
|
+
declare module '@tiptap/core' {
|
|
997
|
+
interface Commands<ReturnType> {
|
|
998
|
+
indent: {
|
|
999
|
+
/**
|
|
1000
|
+
* Set the indent attribute
|
|
1001
|
+
*/
|
|
1002
|
+
indent: () => ReturnType;
|
|
1003
|
+
/**
|
|
1004
|
+
* Set the outdent attribute
|
|
1005
|
+
*/
|
|
1006
|
+
outdent: () => ReturnType;
|
|
997
1007
|
};
|
|
998
1008
|
}
|
|
999
1009
|
}
|
|
@@ -1016,13 +1026,14 @@ declare module '@tiptap/core' {
|
|
|
1016
1026
|
|
|
1017
1027
|
declare module '@tiptap/core' {
|
|
1018
1028
|
interface Commands<ReturnType> {
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1029
|
+
search: {
|
|
1030
|
+
setSearchTerm: (searchTerm: string) => ReturnType;
|
|
1031
|
+
setReplaceTerm: (replaceTerm: string) => ReturnType;
|
|
1032
|
+
replace: () => ReturnType;
|
|
1033
|
+
replaceAll: () => ReturnType;
|
|
1034
|
+
goToPrevSearchResult: () => void;
|
|
1035
|
+
goToNextSearchResult: () => void;
|
|
1036
|
+
setCaseSensitive: (caseSensitive: boolean) => ReturnType;
|
|
1026
1037
|
};
|
|
1027
1038
|
}
|
|
1028
1039
|
}
|
|
@@ -1039,8 +1050,8 @@ declare module '@tiptap/core' {
|
|
|
1039
1050
|
|
|
1040
1051
|
declare module '@tiptap/core' {
|
|
1041
1052
|
interface Commands<ReturnType> {
|
|
1042
|
-
|
|
1043
|
-
|
|
1053
|
+
excalidraw: {
|
|
1054
|
+
setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
|
|
1044
1055
|
};
|
|
1045
1056
|
}
|
|
1046
1057
|
}
|
|
@@ -1048,11 +1059,9 @@ declare module '@tiptap/core' {
|
|
|
1048
1059
|
|
|
1049
1060
|
declare module '@tiptap/core' {
|
|
1050
1061
|
interface Commands<ReturnType> {
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
emoji: string;
|
|
1055
|
-
}) => ReturnType;
|
|
1062
|
+
tableOfContents: {
|
|
1063
|
+
setTableOfContents: () => ReturnType;
|
|
1064
|
+
removeTableOfContents: () => ReturnType;
|
|
1056
1065
|
};
|
|
1057
1066
|
}
|
|
1058
1067
|
}
|
|
@@ -1060,8 +1069,8 @@ declare module '@tiptap/core' {
|
|
|
1060
1069
|
|
|
1061
1070
|
declare module '@tiptap/core' {
|
|
1062
1071
|
interface Commands<ReturnType> {
|
|
1063
|
-
|
|
1064
|
-
|
|
1072
|
+
katex: {
|
|
1073
|
+
setKatex: (arg?: IKatexAttrs) => ReturnType;
|
|
1065
1074
|
};
|
|
1066
1075
|
}
|
|
1067
1076
|
}
|
|
@@ -1069,8 +1078,29 @@ declare module '@tiptap/core' {
|
|
|
1069
1078
|
|
|
1070
1079
|
declare module '@tiptap/core' {
|
|
1071
1080
|
interface Commands<ReturnType> {
|
|
1072
|
-
|
|
1073
|
-
|
|
1081
|
+
imageGifUpload: {
|
|
1082
|
+
/**
|
|
1083
|
+
* Add an image gif
|
|
1084
|
+
*/
|
|
1085
|
+
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1086
|
+
/**
|
|
1087
|
+
* Update an image gif
|
|
1088
|
+
*/
|
|
1089
|
+
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1090
|
+
/**
|
|
1091
|
+
* Set image alignment
|
|
1092
|
+
*/
|
|
1093
|
+
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1094
|
+
};
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
|
|
1099
|
+
declare module '@tiptap/core' {
|
|
1100
|
+
interface Commands<ReturnType> {
|
|
1101
|
+
mermaid: {
|
|
1102
|
+
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1103
|
+
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1074
1104
|
};
|
|
1075
1105
|
}
|
|
1076
1106
|
}
|
|
@@ -1108,33 +1138,3 @@ declare module '@tiptap/core' {
|
|
|
1108
1138
|
};
|
|
1109
1139
|
}
|
|
1110
1140
|
}
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
declare module '@tiptap/core' {
|
|
1114
|
-
interface Commands<ReturnType> {
|
|
1115
|
-
mermaid: {
|
|
1116
|
-
setMermaid: (options: any, replace?: any) => ReturnType;
|
|
1117
|
-
setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1118
|
-
};
|
|
1119
|
-
}
|
|
1120
|
-
}
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
declare module '@tiptap/core' {
|
|
1124
|
-
interface Commands<ReturnType> {
|
|
1125
|
-
imageGifUpload: {
|
|
1126
|
-
/**
|
|
1127
|
-
* Add an image gif
|
|
1128
|
-
*/
|
|
1129
|
-
setImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1130
|
-
/**
|
|
1131
|
-
* Update an image gif
|
|
1132
|
-
*/
|
|
1133
|
-
updateImageGif: (options: Partial<SetImageAttrsOptions>) => ReturnType;
|
|
1134
|
-
/**
|
|
1135
|
-
* Set image alignment
|
|
1136
|
-
*/
|
|
1137
|
-
setAlignImageGif: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
1138
|
-
};
|
|
1139
|
-
}
|
|
1140
|
-
}
|