reactjs-tiptap-editor 0.0.55 → 0.0.56

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/index.d.cts CHANGED
@@ -28,7 +28,6 @@ import { Mark } from '@tiptap/core';
28
28
  import { MentionNodeAttrs } from '@tiptap/extension-mention';
29
29
  import { MentionOptions } from '@tiptap/extension-mention';
30
30
  import { Node as Node_2 } from '@tiptap/core';
31
- import { Node as Node_3 } from '@tiptap/react';
32
31
  import { OrderedListOptions as OrderedListOptions_2 } from '@tiptap/extension-ordered-list';
33
32
  import { ParagraphOptions } from '@tiptap/extension-paragraph';
34
33
  import { PlaceholderOptions } from '@tiptap/extension-placeholder';
@@ -456,6 +455,7 @@ export declare const en: {
456
455
  'editor.image.dialog.tab.upload': string;
457
456
  'editor.image.dialog.tab.uploadCrop': string;
458
457
  'editor.image.dialog.uploading': string;
458
+ 'editor.link.dialog.inline': string;
459
459
  'editor.image.dialog.form.link': string;
460
460
  'editor.image.dialog.placeholder': string;
461
461
  'editor.image.dialog.form.alt': string;
@@ -620,11 +620,17 @@ export declare interface HorizontalRuleOptions extends HorizontalRuleOptions_2,
620
620
 
621
621
  export declare const Iframe: Node_2<any, any>;
622
622
 
623
+ declare interface IImageOptions extends GeneralOptions<IImageOptions> {
624
+ /** Function for uploading files */
625
+ upload?: (file: File) => Promise<string>;
626
+ HTMLAttributes?: any;
627
+ }
628
+
623
629
  declare interface IKatexOptions {
624
630
  HTMLAttributes: Record<string, any>;
625
631
  }
626
632
 
627
- declare const Image_2: Node_2<ImageOptions, any>;
633
+ declare const Image_2: Node_2<IImageOptions, any>;
628
634
  export { Image_2 as Image }
629
635
 
630
636
  export declare const ImageGif: Node_2<ImageGifOptions, any>;
@@ -636,15 +642,6 @@ declare interface ImageGifOptions extends ImageOptions {
636
642
  GIPHY_API_KEY: string;
637
643
  }
638
644
 
639
- export declare const ImageUpload: Node_3<ImageUploadOptions, any>;
640
-
641
- export declare interface ImageUploadOptions {
642
- upload: (file: File) => Promise<string>;
643
- postUpload?: (url: string) => Promise<string>;
644
- acceptMimes: string[];
645
- maxSize: number;
646
- }
647
-
648
645
  export declare const ImportWord: Extension<ImportWordOptions, any>;
649
646
 
650
647
  declare interface ImportWordOptions extends GeneralOptions<ImportWordOptions> {
@@ -830,6 +827,7 @@ export declare const pt_BR: {
830
827
  'editor.image.dialog.title': string;
831
828
  'editor.image.dialog.tab.url': string;
832
829
  'editor.image.dialog.tab.upload': string;
830
+ 'editor.link.dialog.inline': string;
833
831
  'editor.image.dialog.tab.uploadCrop': string;
834
832
  'editor.image.dialog.uploading': string;
835
833
  'editor.image.dialog.form.link': string;
@@ -986,12 +984,13 @@ export declare interface SetImageAttrsOptions {
986
984
  src?: string;
987
985
  /** The alternative text for the image. */
988
986
  alt?: string;
989
- /** The title of the image. */
990
- title?: string;
987
+ /** The caption of the image. */
988
+ caption?: string;
991
989
  /** The width of the image. */
992
990
  width?: number | string | null;
993
991
  /** The alignment of the image. */
994
992
  align?: 'left' | 'center' | 'right';
993
+ inline?: boolean;
995
994
  }
996
995
 
997
996
  export declare const SlashCommand: Extension<any, any>;
@@ -1172,6 +1171,7 @@ export declare const vi: {
1172
1171
  'editor.image.dialog.title': string;
1173
1172
  'editor.image.dialog.tab.url': string;
1174
1173
  'editor.image.dialog.tab.upload': string;
1174
+ 'editor.link.dialog.inline': string;
1175
1175
  'editor.image.dialog.tab.uploadCrop': string;
1176
1176
  'editor.image.dialog.uploading': string;
1177
1177
  'editor.image.dialog.form.link': string;
@@ -1261,7 +1261,7 @@ export declare const Video: Node_2<VideoOptions, any>;
1261
1261
  /**
1262
1262
  * Represents the interface for video options, extending GeneralOptions.
1263
1263
  */
1264
- export declare interface VideoOptions {
1264
+ export declare interface VideoOptions extends GeneralOptions<VideoOptions> {
1265
1265
  /**
1266
1266
  * Indicates whether fullscreen play is allowed
1267
1267
  *
@@ -1284,15 +1284,10 @@ export declare interface VideoOptions {
1284
1284
  HTMLAttributes: {
1285
1285
  [key: string]: any;
1286
1286
  };
1287
+ /** Function for uploading files */
1287
1288
  upload?: (file: File) => Promise<string>;
1288
1289
  }
1289
1290
 
1290
- declare interface VideoOptions_2 {
1291
- upload?: (files: File[]) => void;
1292
- }
1293
-
1294
- export declare const VideoUpload: Node_2<VideoOptions_2, any>;
1295
-
1296
1291
  export declare const zh_CN: {
1297
1292
  'editor.remove': string;
1298
1293
  'editor.copy': string;
@@ -1374,6 +1369,7 @@ export declare const zh_CN: {
1374
1369
  'editor.image.dialog.title': string;
1375
1370
  'editor.image.dialog.tab.url': string;
1376
1371
  'editor.image.dialog.tab.upload': string;
1372
+ 'editor.link.dialog.inline': string;
1377
1373
  'editor.image.dialog.uploading': string;
1378
1374
  'editor.image.dialog.form.link': string;
1379
1375
  'editor.image.dialog.placeholder': string;
@@ -1495,22 +1491,6 @@ declare module '@tiptap/core' {
1495
1491
  }
1496
1492
 
1497
1493
 
1498
- declare module '@tiptap/core' {
1499
- interface Commands<ReturnType> {
1500
- indent: {
1501
- /**
1502
- * Set the indent attribute
1503
- */
1504
- indent: () => ReturnType;
1505
- /**
1506
- * Set the outdent attribute
1507
- */
1508
- outdent: () => ReturnType;
1509
- };
1510
- }
1511
- }
1512
-
1513
-
1514
1494
  declare module '@tiptap/core' {
1515
1495
  interface Commands<ReturnType> {
1516
1496
  lineHeight: {
@@ -1523,8 +1503,15 @@ declare module '@tiptap/core' {
1523
1503
 
1524
1504
  declare module '@tiptap/core' {
1525
1505
  interface Commands<ReturnType> {
1526
- imageUpload: {
1527
- setImageUpload: () => ReturnType;
1506
+ indent: {
1507
+ /**
1508
+ * Set the indent attribute
1509
+ */
1510
+ indent: () => ReturnType;
1511
+ /**
1512
+ * Set the outdent attribute
1513
+ */
1514
+ outdent: () => ReturnType;
1528
1515
  };
1529
1516
  }
1530
1517
  }
@@ -1532,19 +1519,8 @@ declare module '@tiptap/core' {
1532
1519
 
1533
1520
  declare module '@tiptap/core' {
1534
1521
  interface Commands<ReturnType> {
1535
- imageResize: {
1536
- /**
1537
- * Add an image
1538
- */
1539
- setImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1540
- /**
1541
- * Update an image
1542
- */
1543
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1544
- /**
1545
- * Set image alignment
1546
- */
1547
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
1522
+ painter: {
1523
+ setPainter: (marks: Mark[]) => ReturnType;
1548
1524
  };
1549
1525
  }
1550
1526
  }
@@ -1576,38 +1552,19 @@ declare module '@tiptap/core' {
1576
1552
 
1577
1553
  declare module '@tiptap/core' {
1578
1554
  interface Commands<ReturnType> {
1579
- painter: {
1580
- setPainter: (marks: Mark[]) => ReturnType;
1581
- };
1582
- }
1583
- }
1584
-
1585
-
1586
- declare module '@tiptap/core' {
1587
- interface Commands<ReturnType> {
1588
- videoUpload: {
1589
- setVideoUpload: () => ReturnType;
1590
- };
1591
- }
1592
- }
1593
-
1594
-
1595
- declare module '@tiptap/core' {
1596
- interface Commands<ReturnType> {
1597
- katex: {
1598
- setKatex: (arg?: IKatexAttrs) => ReturnType;
1599
- };
1600
- }
1601
- }
1602
-
1603
-
1604
- declare module '@tiptap/core' {
1605
- interface Commands<ReturnType> {
1606
- emoji: {
1607
- setEmoji: (emoji: {
1608
- name: string;
1609
- emoji: string;
1610
- }) => ReturnType;
1555
+ imageResize: {
1556
+ /**
1557
+ * Add an image
1558
+ */
1559
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1560
+ /**
1561
+ * Update an image
1562
+ */
1563
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1564
+ /**
1565
+ * Set image alignment
1566
+ */
1567
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
1611
1568
  };
1612
1569
  }
1613
1570
  }
@@ -1645,8 +1602,11 @@ declare module '@tiptap/core' {
1645
1602
 
1646
1603
  declare module '@tiptap/core' {
1647
1604
  interface Commands<ReturnType> {
1648
- exportWord: {
1649
- exportToWord: () => ReturnType;
1605
+ emoji: {
1606
+ setEmoji: (emoji: {
1607
+ name: string;
1608
+ emoji: string;
1609
+ }) => ReturnType;
1650
1610
  };
1651
1611
  }
1652
1612
  }
@@ -1654,8 +1614,9 @@ declare module '@tiptap/core' {
1654
1614
 
1655
1615
  declare module '@tiptap/core' {
1656
1616
  interface Commands<ReturnType> {
1657
- excalidraw: {
1658
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
1617
+ tableOfContents: {
1618
+ setTableOfContents: () => ReturnType;
1619
+ removeTableOfContents: () => ReturnType;
1659
1620
  };
1660
1621
  }
1661
1622
  }
@@ -1663,9 +1624,8 @@ declare module '@tiptap/core' {
1663
1624
 
1664
1625
  declare module '@tiptap/core' {
1665
1626
  interface Commands<ReturnType> {
1666
- tableOfContents: {
1667
- setTableOfContents: () => ReturnType;
1668
- removeTableOfContents: () => ReturnType;
1627
+ katex: {
1628
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
1669
1629
  };
1670
1630
  }
1671
1631
  }
@@ -1673,8 +1633,8 @@ declare module '@tiptap/core' {
1673
1633
 
1674
1634
  declare module '@tiptap/core' {
1675
1635
  interface Commands<ReturnType> {
1676
- attachment: {
1677
- setAttachment: (attrs?: unknown) => ReturnType;
1636
+ exportWord: {
1637
+ exportToWord: () => ReturnType;
1678
1638
  };
1679
1639
  }
1680
1640
  }
@@ -1700,6 +1660,15 @@ declare module '@tiptap/core' {
1700
1660
  }
1701
1661
 
1702
1662
 
1663
+ declare module '@tiptap/core' {
1664
+ interface Commands<ReturnType> {
1665
+ attachment: {
1666
+ setAttachment: (attrs?: unknown) => ReturnType;
1667
+ };
1668
+ }
1669
+ }
1670
+
1671
+
1703
1672
  declare module '@tiptap/core' {
1704
1673
  interface Commands<ReturnType> {
1705
1674
  mermaid: {
@@ -1710,8 +1679,12 @@ declare module '@tiptap/core' {
1710
1679
  }
1711
1680
 
1712
1681
 
1713
- declare namespace DropdownMenuShortcut {
1714
- var displayName: string;
1682
+ declare module '@tiptap/core' {
1683
+ interface Commands<ReturnType> {
1684
+ excalidraw: {
1685
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
1686
+ };
1687
+ }
1715
1688
  }
1716
1689
 
1717
1690
 
@@ -1723,3 +1696,8 @@ declare namespace DialogHeader {
1723
1696
  declare namespace DialogFooter {
1724
1697
  var displayName: string;
1725
1698
  }
1699
+
1700
+
1701
+ declare namespace DropdownMenuShortcut {
1702
+ var displayName: string;
1703
+ }
package/lib/index.d.ts CHANGED
@@ -28,7 +28,6 @@ import { Mark } from '@tiptap/core';
28
28
  import { MentionNodeAttrs } from '@tiptap/extension-mention';
29
29
  import { MentionOptions } from '@tiptap/extension-mention';
30
30
  import { Node as Node_2 } from '@tiptap/core';
31
- import { Node as Node_3 } from '@tiptap/react';
32
31
  import { OrderedListOptions as OrderedListOptions_2 } from '@tiptap/extension-ordered-list';
33
32
  import { ParagraphOptions } from '@tiptap/extension-paragraph';
34
33
  import { PlaceholderOptions } from '@tiptap/extension-placeholder';
@@ -456,6 +455,7 @@ export declare const en: {
456
455
  'editor.image.dialog.tab.upload': string;
457
456
  'editor.image.dialog.tab.uploadCrop': string;
458
457
  'editor.image.dialog.uploading': string;
458
+ 'editor.link.dialog.inline': string;
459
459
  'editor.image.dialog.form.link': string;
460
460
  'editor.image.dialog.placeholder': string;
461
461
  'editor.image.dialog.form.alt': string;
@@ -620,11 +620,17 @@ export declare interface HorizontalRuleOptions extends HorizontalRuleOptions_2,
620
620
 
621
621
  export declare const Iframe: Node_2<any, any>;
622
622
 
623
+ declare interface IImageOptions extends GeneralOptions<IImageOptions> {
624
+ /** Function for uploading files */
625
+ upload?: (file: File) => Promise<string>;
626
+ HTMLAttributes?: any;
627
+ }
628
+
623
629
  declare interface IKatexOptions {
624
630
  HTMLAttributes: Record<string, any>;
625
631
  }
626
632
 
627
- declare const Image_2: Node_2<ImageOptions, any>;
633
+ declare const Image_2: Node_2<IImageOptions, any>;
628
634
  export { Image_2 as Image }
629
635
 
630
636
  export declare const ImageGif: Node_2<ImageGifOptions, any>;
@@ -636,15 +642,6 @@ declare interface ImageGifOptions extends ImageOptions {
636
642
  GIPHY_API_KEY: string;
637
643
  }
638
644
 
639
- export declare const ImageUpload: Node_3<ImageUploadOptions, any>;
640
-
641
- export declare interface ImageUploadOptions {
642
- upload: (file: File) => Promise<string>;
643
- postUpload?: (url: string) => Promise<string>;
644
- acceptMimes: string[];
645
- maxSize: number;
646
- }
647
-
648
645
  export declare const ImportWord: Extension<ImportWordOptions, any>;
649
646
 
650
647
  declare interface ImportWordOptions extends GeneralOptions<ImportWordOptions> {
@@ -830,6 +827,7 @@ export declare const pt_BR: {
830
827
  'editor.image.dialog.title': string;
831
828
  'editor.image.dialog.tab.url': string;
832
829
  'editor.image.dialog.tab.upload': string;
830
+ 'editor.link.dialog.inline': string;
833
831
  'editor.image.dialog.tab.uploadCrop': string;
834
832
  'editor.image.dialog.uploading': string;
835
833
  'editor.image.dialog.form.link': string;
@@ -986,12 +984,13 @@ export declare interface SetImageAttrsOptions {
986
984
  src?: string;
987
985
  /** The alternative text for the image. */
988
986
  alt?: string;
989
- /** The title of the image. */
990
- title?: string;
987
+ /** The caption of the image. */
988
+ caption?: string;
991
989
  /** The width of the image. */
992
990
  width?: number | string | null;
993
991
  /** The alignment of the image. */
994
992
  align?: 'left' | 'center' | 'right';
993
+ inline?: boolean;
995
994
  }
996
995
 
997
996
  export declare const SlashCommand: Extension<any, any>;
@@ -1172,6 +1171,7 @@ export declare const vi: {
1172
1171
  'editor.image.dialog.title': string;
1173
1172
  'editor.image.dialog.tab.url': string;
1174
1173
  'editor.image.dialog.tab.upload': string;
1174
+ 'editor.link.dialog.inline': string;
1175
1175
  'editor.image.dialog.tab.uploadCrop': string;
1176
1176
  'editor.image.dialog.uploading': string;
1177
1177
  'editor.image.dialog.form.link': string;
@@ -1261,7 +1261,7 @@ export declare const Video: Node_2<VideoOptions, any>;
1261
1261
  /**
1262
1262
  * Represents the interface for video options, extending GeneralOptions.
1263
1263
  */
1264
- export declare interface VideoOptions {
1264
+ export declare interface VideoOptions extends GeneralOptions<VideoOptions> {
1265
1265
  /**
1266
1266
  * Indicates whether fullscreen play is allowed
1267
1267
  *
@@ -1284,15 +1284,10 @@ export declare interface VideoOptions {
1284
1284
  HTMLAttributes: {
1285
1285
  [key: string]: any;
1286
1286
  };
1287
+ /** Function for uploading files */
1287
1288
  upload?: (file: File) => Promise<string>;
1288
1289
  }
1289
1290
 
1290
- declare interface VideoOptions_2 {
1291
- upload?: (files: File[]) => void;
1292
- }
1293
-
1294
- export declare const VideoUpload: Node_2<VideoOptions_2, any>;
1295
-
1296
1291
  export declare const zh_CN: {
1297
1292
  'editor.remove': string;
1298
1293
  'editor.copy': string;
@@ -1374,6 +1369,7 @@ export declare const zh_CN: {
1374
1369
  'editor.image.dialog.title': string;
1375
1370
  'editor.image.dialog.tab.url': string;
1376
1371
  'editor.image.dialog.tab.upload': string;
1372
+ 'editor.link.dialog.inline': string;
1377
1373
  'editor.image.dialog.uploading': string;
1378
1374
  'editor.image.dialog.form.link': string;
1379
1375
  'editor.image.dialog.placeholder': string;
@@ -1495,22 +1491,6 @@ declare module '@tiptap/core' {
1495
1491
  }
1496
1492
 
1497
1493
 
1498
- declare module '@tiptap/core' {
1499
- interface Commands<ReturnType> {
1500
- indent: {
1501
- /**
1502
- * Set the indent attribute
1503
- */
1504
- indent: () => ReturnType;
1505
- /**
1506
- * Set the outdent attribute
1507
- */
1508
- outdent: () => ReturnType;
1509
- };
1510
- }
1511
- }
1512
-
1513
-
1514
1494
  declare module '@tiptap/core' {
1515
1495
  interface Commands<ReturnType> {
1516
1496
  lineHeight: {
@@ -1523,8 +1503,15 @@ declare module '@tiptap/core' {
1523
1503
 
1524
1504
  declare module '@tiptap/core' {
1525
1505
  interface Commands<ReturnType> {
1526
- imageUpload: {
1527
- setImageUpload: () => ReturnType;
1506
+ indent: {
1507
+ /**
1508
+ * Set the indent attribute
1509
+ */
1510
+ indent: () => ReturnType;
1511
+ /**
1512
+ * Set the outdent attribute
1513
+ */
1514
+ outdent: () => ReturnType;
1528
1515
  };
1529
1516
  }
1530
1517
  }
@@ -1532,19 +1519,8 @@ declare module '@tiptap/core' {
1532
1519
 
1533
1520
  declare module '@tiptap/core' {
1534
1521
  interface Commands<ReturnType> {
1535
- imageResize: {
1536
- /**
1537
- * Add an image
1538
- */
1539
- setImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1540
- /**
1541
- * Update an image
1542
- */
1543
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1544
- /**
1545
- * Set image alignment
1546
- */
1547
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
1522
+ painter: {
1523
+ setPainter: (marks: Mark[]) => ReturnType;
1548
1524
  };
1549
1525
  }
1550
1526
  }
@@ -1576,38 +1552,19 @@ declare module '@tiptap/core' {
1576
1552
 
1577
1553
  declare module '@tiptap/core' {
1578
1554
  interface Commands<ReturnType> {
1579
- painter: {
1580
- setPainter: (marks: Mark[]) => ReturnType;
1581
- };
1582
- }
1583
- }
1584
-
1585
-
1586
- declare module '@tiptap/core' {
1587
- interface Commands<ReturnType> {
1588
- videoUpload: {
1589
- setVideoUpload: () => ReturnType;
1590
- };
1591
- }
1592
- }
1593
-
1594
-
1595
- declare module '@tiptap/core' {
1596
- interface Commands<ReturnType> {
1597
- katex: {
1598
- setKatex: (arg?: IKatexAttrs) => ReturnType;
1599
- };
1600
- }
1601
- }
1602
-
1603
-
1604
- declare module '@tiptap/core' {
1605
- interface Commands<ReturnType> {
1606
- emoji: {
1607
- setEmoji: (emoji: {
1608
- name: string;
1609
- emoji: string;
1610
- }) => ReturnType;
1555
+ imageResize: {
1556
+ /**
1557
+ * Add an image
1558
+ */
1559
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1560
+ /**
1561
+ * Update an image
1562
+ */
1563
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1564
+ /**
1565
+ * Set image alignment
1566
+ */
1567
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
1611
1568
  };
1612
1569
  }
1613
1570
  }
@@ -1645,8 +1602,11 @@ declare module '@tiptap/core' {
1645
1602
 
1646
1603
  declare module '@tiptap/core' {
1647
1604
  interface Commands<ReturnType> {
1648
- exportWord: {
1649
- exportToWord: () => ReturnType;
1605
+ emoji: {
1606
+ setEmoji: (emoji: {
1607
+ name: string;
1608
+ emoji: string;
1609
+ }) => ReturnType;
1650
1610
  };
1651
1611
  }
1652
1612
  }
@@ -1654,8 +1614,9 @@ declare module '@tiptap/core' {
1654
1614
 
1655
1615
  declare module '@tiptap/core' {
1656
1616
  interface Commands<ReturnType> {
1657
- excalidraw: {
1658
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
1617
+ tableOfContents: {
1618
+ setTableOfContents: () => ReturnType;
1619
+ removeTableOfContents: () => ReturnType;
1659
1620
  };
1660
1621
  }
1661
1622
  }
@@ -1663,9 +1624,8 @@ declare module '@tiptap/core' {
1663
1624
 
1664
1625
  declare module '@tiptap/core' {
1665
1626
  interface Commands<ReturnType> {
1666
- tableOfContents: {
1667
- setTableOfContents: () => ReturnType;
1668
- removeTableOfContents: () => ReturnType;
1627
+ katex: {
1628
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
1669
1629
  };
1670
1630
  }
1671
1631
  }
@@ -1673,8 +1633,8 @@ declare module '@tiptap/core' {
1673
1633
 
1674
1634
  declare module '@tiptap/core' {
1675
1635
  interface Commands<ReturnType> {
1676
- attachment: {
1677
- setAttachment: (attrs?: unknown) => ReturnType;
1636
+ exportWord: {
1637
+ exportToWord: () => ReturnType;
1678
1638
  };
1679
1639
  }
1680
1640
  }
@@ -1700,6 +1660,15 @@ declare module '@tiptap/core' {
1700
1660
  }
1701
1661
 
1702
1662
 
1663
+ declare module '@tiptap/core' {
1664
+ interface Commands<ReturnType> {
1665
+ attachment: {
1666
+ setAttachment: (attrs?: unknown) => ReturnType;
1667
+ };
1668
+ }
1669
+ }
1670
+
1671
+
1703
1672
  declare module '@tiptap/core' {
1704
1673
  interface Commands<ReturnType> {
1705
1674
  mermaid: {
@@ -1710,8 +1679,12 @@ declare module '@tiptap/core' {
1710
1679
  }
1711
1680
 
1712
1681
 
1713
- declare namespace DropdownMenuShortcut {
1714
- var displayName: string;
1682
+ declare module '@tiptap/core' {
1683
+ interface Commands<ReturnType> {
1684
+ excalidraw: {
1685
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
1686
+ };
1687
+ }
1715
1688
  }
1716
1689
 
1717
1690
 
@@ -1723,3 +1696,8 @@ declare namespace DialogHeader {
1723
1696
  declare namespace DialogFooter {
1724
1697
  var displayName: string;
1725
1698
  }
1699
+
1700
+
1701
+ declare namespace DropdownMenuShortcut {
1702
+ var displayName: string;
1703
+ }