reactjs-tiptap-editor 0.0.31 → 0.0.32

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
@@ -25,8 +25,8 @@ import { ItalicOptions as ItalicOptions_2 } from '@tiptap/extension-italic';
25
25
  import { LinkOptions as LinkOptions_2 } from '@tiptap/extension-link';
26
26
  import { ListItemOptions } from '@tiptap/extension-list-item';
27
27
  import { Mark } from '@tiptap/core';
28
- import { Node as Node_2 } from '@tiptap/core';
29
- import { Node as Node_3 } from '@tiptap/react';
28
+ import { Node as Node_2 } from '@tiptap/react';
29
+ import { Node as Node_3 } from '@tiptap/core';
30
30
  import { OrderedListOptions as OrderedListOptions_2 } from '@tiptap/extension-ordered-list';
31
31
  import { ParagraphOptions } from '@tiptap/extension-paragraph';
32
32
  import { PlaceholderOptions } from '@tiptap/extension-placeholder';
@@ -153,7 +153,7 @@ export declare interface BaseKitOptions {
153
153
  selection: any | false;
154
154
  }
155
155
 
156
- export declare const Blockquote: Node_2<BlockquoteOptions, any>;
156
+ export declare const Blockquote: Node_3<BlockquoteOptions, any>;
157
157
 
158
158
  export declare interface BlockquoteOptions extends BlockquoteOptions_2, GeneralOptions<BlockquoteOptions> {
159
159
  }
@@ -242,7 +242,7 @@ declare interface BubbleMenuRenderProps {
242
242
  bubbleMenu: BubbleMenuProps;
243
243
  }
244
244
 
245
- export declare const BulletList: Node_2<BulletListOptions, any>;
245
+ export declare const BulletList: Node_3<BulletListOptions, any>;
246
246
 
247
247
  export declare interface BulletListOptions extends BulletListOptions_2, GeneralOptions<BulletListOptions> {
248
248
  }
@@ -302,7 +302,7 @@ declare interface ButtonViewReturnComponentSlots {
302
302
  [x: string]: () => any;
303
303
  }
304
304
 
305
- export declare const Clear: Node_2<ClearOptions, any>;
305
+ export declare const Clear: Node_3<ClearOptions, any>;
306
306
 
307
307
  export declare interface ClearOptions extends GeneralOptions<ClearOptions> {
308
308
  }
@@ -332,7 +332,7 @@ export declare interface ColorOptions extends ColorOptions_2, GeneralOptions<Col
332
332
  defaultColor?: string;
333
333
  }
334
334
 
335
- export declare const Column: Node_2<any, any>;
335
+ export declare const Column: Node_3<any, any>;
336
336
 
337
337
  export declare const ColumnActionButton: Extension<any, any>;
338
338
 
@@ -341,7 +341,7 @@ editor: Editor_2 | null;
341
341
  }>>;
342
342
  export default _default;
343
343
 
344
- export declare const Emoji: Node_2<any, any>;
344
+ export declare const Emoji: Node_3<any, any>;
345
345
 
346
346
  export declare const en: {
347
347
  'editor.remove': string;
@@ -495,7 +495,7 @@ export declare const en: {
495
495
  'editor.importWrod.tooltip': string;
496
496
  };
497
497
 
498
- export declare const Excalidraw: Node_2<any, any>;
498
+ export declare const Excalidraw: Node_3<any, any>;
499
499
 
500
500
  export declare const ExportPdf: Extension<any, any>;
501
501
 
@@ -553,7 +553,7 @@ declare interface GeneralOptions<T> {
553
553
  toolbar?: boolean;
554
554
  }
555
555
 
556
- export declare const Heading: Node_2<HeadingOptions, any>;
556
+ export declare const Heading: Node_3<HeadingOptions, any>;
557
557
 
558
558
  export declare interface HeadingOptions extends HeadingOptions_2, GeneralOptions<HeadingOptions> {
559
559
  }
@@ -570,21 +570,21 @@ export { History_2 as History }
570
570
  export declare interface HistoryOptions extends HistoryOptions_2, GeneralOptions<HistoryOptions> {
571
571
  }
572
572
 
573
- export declare const HorizontalRule: Node_2<HorizontalRuleOptions, any>;
573
+ export declare const HorizontalRule: Node_3<HorizontalRuleOptions, any>;
574
574
 
575
575
  export declare interface HorizontalRuleOptions extends HorizontalRuleOptions_2, GeneralOptions<HorizontalRuleOptions> {
576
576
  }
577
577
 
578
- export declare const Iframe: Node_2<any, any>;
578
+ export declare const Iframe: Node_3<any, any>;
579
579
 
580
580
  declare interface IKatexOptions {
581
581
  HTMLAttributes: Record<string, any>;
582
582
  }
583
583
 
584
- declare const Image_2: Node_2<ImageOptions, any>;
584
+ declare const Image_2: Node_3<ImageOptions, any>;
585
585
  export { Image_2 as Image }
586
586
 
587
- export declare const ImageUpload: Node_3<ImageUploadOptions, any>;
587
+ export declare const ImageUpload: Node_2<ImageUploadOptions, any>;
588
588
 
589
589
  export declare interface ImageUploadOptions {
590
590
  upload: (file: File) => Promise<string>;
@@ -616,7 +616,7 @@ export declare const Italic: Mark<ItalicOptions, any>;
616
616
  export declare interface ItalicOptions extends ItalicOptions_2, GeneralOptions<ItalicOptions> {
617
617
  }
618
618
 
619
- export declare const Katex: Node_2<IKatexOptions, any>;
619
+ export declare const Katex: Node_3<IKatexOptions, any>;
620
620
 
621
621
  declare type LanguageType = 'en' | 'vi' | 'zh_CN' | string;
622
622
 
@@ -671,7 +671,7 @@ export declare interface MoreMarkOptions extends GeneralOptions<MoreMarkOptions>
671
671
  superscript: Partial<SuperscriptExtensionOptions> | false;
672
672
  }
673
673
 
674
- export declare const MultiColumn: Node_2<any, any>;
674
+ export declare const MultiColumn: Node_3<any, any>;
675
675
 
676
676
  declare interface NameValueOption<T = string> {
677
677
  name: string;
@@ -682,7 +682,7 @@ declare interface Options {
682
682
  onHasOneBeforeInsert?: () => void;
683
683
  }
684
684
 
685
- export declare const OrderedList: Node_2<OrderedListOptions, any>;
685
+ export declare const OrderedList: Node_3<OrderedListOptions, any>;
686
686
 
687
687
  export declare interface OrderedListOptions extends OrderedListOptions_2, GeneralOptions<OrderedListOptions> {
688
688
  }
@@ -794,14 +794,14 @@ export declare interface SubAndSuperScriptOptions extends GeneralOptions<SubAndS
794
794
  superscript: Partial<SuperscriptExtensionOptions> | false;
795
795
  }
796
796
 
797
- export declare const Table: Node_2<TableOptions, any>;
797
+ export declare const Table: Node_3<TableOptions, any>;
798
798
 
799
799
  declare interface TableCellBackgroundOptions {
800
800
  HTMLAttributes: Record<string, any>;
801
801
  types?: any;
802
802
  }
803
803
 
804
- export declare const TableOfContents: Node_2<Options, any>;
804
+ export declare const TableOfContents: Node_3<Options, any>;
805
805
 
806
806
  export declare interface TableOptions extends GeneralOptions<TableOptions> {
807
807
  HTMLAttributes: Record<string, any>;
@@ -820,7 +820,7 @@ export declare interface TableOptions extends GeneralOptions<TableOptions> {
820
820
  tableCellBackground: Partial<TableCellBackgroundOptions>;
821
821
  }
822
822
 
823
- export declare const TaskList: Node_2<TaskListOptions, any>;
823
+ export declare const TaskList: Node_3<TaskListOptions, any>;
824
824
 
825
825
  /**
826
826
  * Represents the interface for task list options, extending TiptapTaskListOptions and GeneralOptions.
@@ -1014,7 +1014,7 @@ export declare const vi: {
1014
1014
  'editor.importWrod.tooltip': string;
1015
1015
  };
1016
1016
 
1017
- export declare const Video: Node_2<VideoOptions, any>;
1017
+ export declare const Video: Node_3<VideoOptions, any>;
1018
1018
 
1019
1019
  /**
1020
1020
  * Represents the interface for video options, extending GeneralOptions.
@@ -1049,7 +1049,7 @@ declare interface VideoOptions_2 {
1049
1049
  upload?: (files: File[]) => void;
1050
1050
  }
1051
1051
 
1052
- export declare const VideoUpload: Node_2<VideoOptions_2, any>;
1052
+ export declare const VideoUpload: Node_3<VideoOptions_2, any>;
1053
1053
 
1054
1054
  export declare const zh_CN: {
1055
1055
  'editor.remove': string;
@@ -1242,15 +1242,9 @@ declare module '@tiptap/core' {
1242
1242
 
1243
1243
  declare module '@tiptap/core' {
1244
1244
  interface Commands<ReturnType> {
1245
- indent: {
1246
- /**
1247
- * Set the indent attribute
1248
- */
1249
- indent: () => ReturnType;
1250
- /**
1251
- * Set the outdent attribute
1252
- */
1253
- outdent: () => ReturnType;
1245
+ tableCellBackground: {
1246
+ setTableCellBackground: (color: string) => ReturnType;
1247
+ unsetTableCellBackground: () => ReturnType;
1254
1248
  };
1255
1249
  }
1256
1250
  }
@@ -1268,15 +1262,8 @@ declare module '@tiptap/core' {
1268
1262
 
1269
1263
  declare module '@tiptap/core' {
1270
1264
  interface Commands<ReturnType> {
1271
- imageResize: {
1272
- /**
1273
- * Add an image
1274
- */
1275
- setImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1276
- /**
1277
- * Update an image
1278
- */
1279
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1265
+ painter: {
1266
+ setPainter: (marks: Mark[]) => ReturnType;
1280
1267
  };
1281
1268
  }
1282
1269
  }
@@ -1293,18 +1280,15 @@ declare module '@tiptap/core' {
1293
1280
 
1294
1281
  declare module '@tiptap/core' {
1295
1282
  interface Commands<ReturnType> {
1296
- videoUpload: {
1297
- setVideoUpload: () => ReturnType;
1298
- };
1299
- }
1300
- }
1301
-
1302
-
1303
- declare module '@tiptap/core' {
1304
- interface Commands<ReturnType> {
1305
- tableCellBackground: {
1306
- setTableCellBackground: (color: string) => ReturnType;
1307
- unsetTableCellBackground: () => ReturnType;
1283
+ indent: {
1284
+ /**
1285
+ * Set the indent attribute
1286
+ */
1287
+ indent: () => ReturnType;
1288
+ /**
1289
+ * Set the outdent attribute
1290
+ */
1291
+ outdent: () => ReturnType;
1308
1292
  };
1309
1293
  }
1310
1294
  }
@@ -1312,8 +1296,13 @@ declare module '@tiptap/core' {
1312
1296
 
1313
1297
  declare module '@tiptap/core' {
1314
1298
  interface Commands<ReturnType> {
1315
- painter: {
1316
- setPainter: (marks: Mark[]) => ReturnType;
1299
+ columns: {
1300
+ insertColumns: (attrs?: {
1301
+ cols: number;
1302
+ }) => ReturnType;
1303
+ addColBefore: () => ReturnType;
1304
+ addColAfter: () => ReturnType;
1305
+ deleteCol: () => ReturnType;
1317
1306
  };
1318
1307
  }
1319
1308
  }
@@ -1321,14 +1310,15 @@ declare module '@tiptap/core' {
1321
1310
 
1322
1311
  declare module '@tiptap/core' {
1323
1312
  interface Commands<ReturnType> {
1324
- iframe: {
1313
+ imageResize: {
1325
1314
  /**
1326
- * Add an iframe
1315
+ * Add an image
1327
1316
  */
1328
- setIframe: (options: {
1329
- src: string;
1330
- service: string;
1331
- }) => ReturnType;
1317
+ setImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1318
+ /**
1319
+ * Update an image
1320
+ */
1321
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1332
1322
  };
1333
1323
  }
1334
1324
  }
@@ -1336,13 +1326,8 @@ declare module '@tiptap/core' {
1336
1326
 
1337
1327
  declare module '@tiptap/core' {
1338
1328
  interface Commands<ReturnType> {
1339
- columns: {
1340
- insertColumns: (attrs?: {
1341
- cols: number;
1342
- }) => ReturnType;
1343
- addColBefore: () => ReturnType;
1344
- addColAfter: () => ReturnType;
1345
- deleteCol: () => ReturnType;
1329
+ videoUpload: {
1330
+ setVideoUpload: () => ReturnType;
1346
1331
  };
1347
1332
  }
1348
1333
  }
@@ -1362,6 +1347,21 @@ declare module '@tiptap/core' {
1362
1347
  }
1363
1348
 
1364
1349
 
1350
+ declare module '@tiptap/core' {
1351
+ interface Commands<ReturnType> {
1352
+ iframe: {
1353
+ /**
1354
+ * Add an iframe
1355
+ */
1356
+ setIframe: (options: {
1357
+ src: string;
1358
+ service: string;
1359
+ }) => ReturnType;
1360
+ };
1361
+ }
1362
+ }
1363
+
1364
+
1365
1365
  declare module '@tiptap/core' {
1366
1366
  interface Commands<ReturnType> {
1367
1367
  emoji: {
@@ -1385,8 +1385,9 @@ declare module '@tiptap/core' {
1385
1385
 
1386
1386
  declare module '@tiptap/core' {
1387
1387
  interface Commands<ReturnType> {
1388
- exportWord: {
1389
- exportToWord: () => ReturnType;
1388
+ tableOfContents: {
1389
+ setTableOfContents: () => ReturnType;
1390
+ removeTableOfContents: () => ReturnType;
1390
1391
  };
1391
1392
  }
1392
1393
  }
@@ -1394,9 +1395,8 @@ declare module '@tiptap/core' {
1394
1395
 
1395
1396
  declare module '@tiptap/core' {
1396
1397
  interface Commands<ReturnType> {
1397
- tableOfContents: {
1398
- setTableOfContents: () => ReturnType;
1399
- removeTableOfContents: () => ReturnType;
1398
+ excalidraw: {
1399
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
1400
1400
  };
1401
1401
  }
1402
1402
  }
@@ -1404,8 +1404,8 @@ declare module '@tiptap/core' {
1404
1404
 
1405
1405
  declare module '@tiptap/core' {
1406
1406
  interface Commands<ReturnType> {
1407
- excalidraw: {
1408
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
1407
+ exportWord: {
1408
+ exportToWord: () => ReturnType;
1409
1409
  };
1410
1410
  }
1411
1411
  }
package/lib/index.d.ts CHANGED
@@ -25,8 +25,8 @@ import { ItalicOptions as ItalicOptions_2 } from '@tiptap/extension-italic';
25
25
  import { LinkOptions as LinkOptions_2 } from '@tiptap/extension-link';
26
26
  import { ListItemOptions } from '@tiptap/extension-list-item';
27
27
  import { Mark } from '@tiptap/core';
28
- import { Node as Node_2 } from '@tiptap/core';
29
- import { Node as Node_3 } from '@tiptap/react';
28
+ import { Node as Node_2 } from '@tiptap/react';
29
+ import { Node as Node_3 } from '@tiptap/core';
30
30
  import { OrderedListOptions as OrderedListOptions_2 } from '@tiptap/extension-ordered-list';
31
31
  import { ParagraphOptions } from '@tiptap/extension-paragraph';
32
32
  import { PlaceholderOptions } from '@tiptap/extension-placeholder';
@@ -153,7 +153,7 @@ export declare interface BaseKitOptions {
153
153
  selection: any | false;
154
154
  }
155
155
 
156
- export declare const Blockquote: Node_2<BlockquoteOptions, any>;
156
+ export declare const Blockquote: Node_3<BlockquoteOptions, any>;
157
157
 
158
158
  export declare interface BlockquoteOptions extends BlockquoteOptions_2, GeneralOptions<BlockquoteOptions> {
159
159
  }
@@ -242,7 +242,7 @@ declare interface BubbleMenuRenderProps {
242
242
  bubbleMenu: BubbleMenuProps;
243
243
  }
244
244
 
245
- export declare const BulletList: Node_2<BulletListOptions, any>;
245
+ export declare const BulletList: Node_3<BulletListOptions, any>;
246
246
 
247
247
  export declare interface BulletListOptions extends BulletListOptions_2, GeneralOptions<BulletListOptions> {
248
248
  }
@@ -302,7 +302,7 @@ declare interface ButtonViewReturnComponentSlots {
302
302
  [x: string]: () => any;
303
303
  }
304
304
 
305
- export declare const Clear: Node_2<ClearOptions, any>;
305
+ export declare const Clear: Node_3<ClearOptions, any>;
306
306
 
307
307
  export declare interface ClearOptions extends GeneralOptions<ClearOptions> {
308
308
  }
@@ -332,7 +332,7 @@ export declare interface ColorOptions extends ColorOptions_2, GeneralOptions<Col
332
332
  defaultColor?: string;
333
333
  }
334
334
 
335
- export declare const Column: Node_2<any, any>;
335
+ export declare const Column: Node_3<any, any>;
336
336
 
337
337
  export declare const ColumnActionButton: Extension<any, any>;
338
338
 
@@ -341,7 +341,7 @@ editor: Editor_2 | null;
341
341
  }>>;
342
342
  export default _default;
343
343
 
344
- export declare const Emoji: Node_2<any, any>;
344
+ export declare const Emoji: Node_3<any, any>;
345
345
 
346
346
  export declare const en: {
347
347
  'editor.remove': string;
@@ -495,7 +495,7 @@ export declare const en: {
495
495
  'editor.importWrod.tooltip': string;
496
496
  };
497
497
 
498
- export declare const Excalidraw: Node_2<any, any>;
498
+ export declare const Excalidraw: Node_3<any, any>;
499
499
 
500
500
  export declare const ExportPdf: Extension<any, any>;
501
501
 
@@ -553,7 +553,7 @@ declare interface GeneralOptions<T> {
553
553
  toolbar?: boolean;
554
554
  }
555
555
 
556
- export declare const Heading: Node_2<HeadingOptions, any>;
556
+ export declare const Heading: Node_3<HeadingOptions, any>;
557
557
 
558
558
  export declare interface HeadingOptions extends HeadingOptions_2, GeneralOptions<HeadingOptions> {
559
559
  }
@@ -570,21 +570,21 @@ export { History_2 as History }
570
570
  export declare interface HistoryOptions extends HistoryOptions_2, GeneralOptions<HistoryOptions> {
571
571
  }
572
572
 
573
- export declare const HorizontalRule: Node_2<HorizontalRuleOptions, any>;
573
+ export declare const HorizontalRule: Node_3<HorizontalRuleOptions, any>;
574
574
 
575
575
  export declare interface HorizontalRuleOptions extends HorizontalRuleOptions_2, GeneralOptions<HorizontalRuleOptions> {
576
576
  }
577
577
 
578
- export declare const Iframe: Node_2<any, any>;
578
+ export declare const Iframe: Node_3<any, any>;
579
579
 
580
580
  declare interface IKatexOptions {
581
581
  HTMLAttributes: Record<string, any>;
582
582
  }
583
583
 
584
- declare const Image_2: Node_2<ImageOptions, any>;
584
+ declare const Image_2: Node_3<ImageOptions, any>;
585
585
  export { Image_2 as Image }
586
586
 
587
- export declare const ImageUpload: Node_3<ImageUploadOptions, any>;
587
+ export declare const ImageUpload: Node_2<ImageUploadOptions, any>;
588
588
 
589
589
  export declare interface ImageUploadOptions {
590
590
  upload: (file: File) => Promise<string>;
@@ -616,7 +616,7 @@ export declare const Italic: Mark<ItalicOptions, any>;
616
616
  export declare interface ItalicOptions extends ItalicOptions_2, GeneralOptions<ItalicOptions> {
617
617
  }
618
618
 
619
- export declare const Katex: Node_2<IKatexOptions, any>;
619
+ export declare const Katex: Node_3<IKatexOptions, any>;
620
620
 
621
621
  declare type LanguageType = 'en' | 'vi' | 'zh_CN' | string;
622
622
 
@@ -671,7 +671,7 @@ export declare interface MoreMarkOptions extends GeneralOptions<MoreMarkOptions>
671
671
  superscript: Partial<SuperscriptExtensionOptions> | false;
672
672
  }
673
673
 
674
- export declare const MultiColumn: Node_2<any, any>;
674
+ export declare const MultiColumn: Node_3<any, any>;
675
675
 
676
676
  declare interface NameValueOption<T = string> {
677
677
  name: string;
@@ -682,7 +682,7 @@ declare interface Options {
682
682
  onHasOneBeforeInsert?: () => void;
683
683
  }
684
684
 
685
- export declare const OrderedList: Node_2<OrderedListOptions, any>;
685
+ export declare const OrderedList: Node_3<OrderedListOptions, any>;
686
686
 
687
687
  export declare interface OrderedListOptions extends OrderedListOptions_2, GeneralOptions<OrderedListOptions> {
688
688
  }
@@ -794,14 +794,14 @@ export declare interface SubAndSuperScriptOptions extends GeneralOptions<SubAndS
794
794
  superscript: Partial<SuperscriptExtensionOptions> | false;
795
795
  }
796
796
 
797
- export declare const Table: Node_2<TableOptions, any>;
797
+ export declare const Table: Node_3<TableOptions, any>;
798
798
 
799
799
  declare interface TableCellBackgroundOptions {
800
800
  HTMLAttributes: Record<string, any>;
801
801
  types?: any;
802
802
  }
803
803
 
804
- export declare const TableOfContents: Node_2<Options, any>;
804
+ export declare const TableOfContents: Node_3<Options, any>;
805
805
 
806
806
  export declare interface TableOptions extends GeneralOptions<TableOptions> {
807
807
  HTMLAttributes: Record<string, any>;
@@ -820,7 +820,7 @@ export declare interface TableOptions extends GeneralOptions<TableOptions> {
820
820
  tableCellBackground: Partial<TableCellBackgroundOptions>;
821
821
  }
822
822
 
823
- export declare const TaskList: Node_2<TaskListOptions, any>;
823
+ export declare const TaskList: Node_3<TaskListOptions, any>;
824
824
 
825
825
  /**
826
826
  * Represents the interface for task list options, extending TiptapTaskListOptions and GeneralOptions.
@@ -1014,7 +1014,7 @@ export declare const vi: {
1014
1014
  'editor.importWrod.tooltip': string;
1015
1015
  };
1016
1016
 
1017
- export declare const Video: Node_2<VideoOptions, any>;
1017
+ export declare const Video: Node_3<VideoOptions, any>;
1018
1018
 
1019
1019
  /**
1020
1020
  * Represents the interface for video options, extending GeneralOptions.
@@ -1049,7 +1049,7 @@ declare interface VideoOptions_2 {
1049
1049
  upload?: (files: File[]) => void;
1050
1050
  }
1051
1051
 
1052
- export declare const VideoUpload: Node_2<VideoOptions_2, any>;
1052
+ export declare const VideoUpload: Node_3<VideoOptions_2, any>;
1053
1053
 
1054
1054
  export declare const zh_CN: {
1055
1055
  'editor.remove': string;
@@ -1242,15 +1242,9 @@ declare module '@tiptap/core' {
1242
1242
 
1243
1243
  declare module '@tiptap/core' {
1244
1244
  interface Commands<ReturnType> {
1245
- indent: {
1246
- /**
1247
- * Set the indent attribute
1248
- */
1249
- indent: () => ReturnType;
1250
- /**
1251
- * Set the outdent attribute
1252
- */
1253
- outdent: () => ReturnType;
1245
+ tableCellBackground: {
1246
+ setTableCellBackground: (color: string) => ReturnType;
1247
+ unsetTableCellBackground: () => ReturnType;
1254
1248
  };
1255
1249
  }
1256
1250
  }
@@ -1268,15 +1262,8 @@ declare module '@tiptap/core' {
1268
1262
 
1269
1263
  declare module '@tiptap/core' {
1270
1264
  interface Commands<ReturnType> {
1271
- imageResize: {
1272
- /**
1273
- * Add an image
1274
- */
1275
- setImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1276
- /**
1277
- * Update an image
1278
- */
1279
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1265
+ painter: {
1266
+ setPainter: (marks: Mark[]) => ReturnType;
1280
1267
  };
1281
1268
  }
1282
1269
  }
@@ -1293,18 +1280,15 @@ declare module '@tiptap/core' {
1293
1280
 
1294
1281
  declare module '@tiptap/core' {
1295
1282
  interface Commands<ReturnType> {
1296
- videoUpload: {
1297
- setVideoUpload: () => ReturnType;
1298
- };
1299
- }
1300
- }
1301
-
1302
-
1303
- declare module '@tiptap/core' {
1304
- interface Commands<ReturnType> {
1305
- tableCellBackground: {
1306
- setTableCellBackground: (color: string) => ReturnType;
1307
- unsetTableCellBackground: () => ReturnType;
1283
+ indent: {
1284
+ /**
1285
+ * Set the indent attribute
1286
+ */
1287
+ indent: () => ReturnType;
1288
+ /**
1289
+ * Set the outdent attribute
1290
+ */
1291
+ outdent: () => ReturnType;
1308
1292
  };
1309
1293
  }
1310
1294
  }
@@ -1312,8 +1296,13 @@ declare module '@tiptap/core' {
1312
1296
 
1313
1297
  declare module '@tiptap/core' {
1314
1298
  interface Commands<ReturnType> {
1315
- painter: {
1316
- setPainter: (marks: Mark[]) => ReturnType;
1299
+ columns: {
1300
+ insertColumns: (attrs?: {
1301
+ cols: number;
1302
+ }) => ReturnType;
1303
+ addColBefore: () => ReturnType;
1304
+ addColAfter: () => ReturnType;
1305
+ deleteCol: () => ReturnType;
1317
1306
  };
1318
1307
  }
1319
1308
  }
@@ -1321,14 +1310,15 @@ declare module '@tiptap/core' {
1321
1310
 
1322
1311
  declare module '@tiptap/core' {
1323
1312
  interface Commands<ReturnType> {
1324
- iframe: {
1313
+ imageResize: {
1325
1314
  /**
1326
- * Add an iframe
1315
+ * Add an image
1327
1316
  */
1328
- setIframe: (options: {
1329
- src: string;
1330
- service: string;
1331
- }) => ReturnType;
1317
+ setImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1318
+ /**
1319
+ * Update an image
1320
+ */
1321
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1332
1322
  };
1333
1323
  }
1334
1324
  }
@@ -1336,13 +1326,8 @@ declare module '@tiptap/core' {
1336
1326
 
1337
1327
  declare module '@tiptap/core' {
1338
1328
  interface Commands<ReturnType> {
1339
- columns: {
1340
- insertColumns: (attrs?: {
1341
- cols: number;
1342
- }) => ReturnType;
1343
- addColBefore: () => ReturnType;
1344
- addColAfter: () => ReturnType;
1345
- deleteCol: () => ReturnType;
1329
+ videoUpload: {
1330
+ setVideoUpload: () => ReturnType;
1346
1331
  };
1347
1332
  }
1348
1333
  }
@@ -1362,6 +1347,21 @@ declare module '@tiptap/core' {
1362
1347
  }
1363
1348
 
1364
1349
 
1350
+ declare module '@tiptap/core' {
1351
+ interface Commands<ReturnType> {
1352
+ iframe: {
1353
+ /**
1354
+ * Add an iframe
1355
+ */
1356
+ setIframe: (options: {
1357
+ src: string;
1358
+ service: string;
1359
+ }) => ReturnType;
1360
+ };
1361
+ }
1362
+ }
1363
+
1364
+
1365
1365
  declare module '@tiptap/core' {
1366
1366
  interface Commands<ReturnType> {
1367
1367
  emoji: {
@@ -1385,8 +1385,9 @@ declare module '@tiptap/core' {
1385
1385
 
1386
1386
  declare module '@tiptap/core' {
1387
1387
  interface Commands<ReturnType> {
1388
- exportWord: {
1389
- exportToWord: () => ReturnType;
1388
+ tableOfContents: {
1389
+ setTableOfContents: () => ReturnType;
1390
+ removeTableOfContents: () => ReturnType;
1390
1391
  };
1391
1392
  }
1392
1393
  }
@@ -1394,9 +1395,8 @@ declare module '@tiptap/core' {
1394
1395
 
1395
1396
  declare module '@tiptap/core' {
1396
1397
  interface Commands<ReturnType> {
1397
- tableOfContents: {
1398
- setTableOfContents: () => ReturnType;
1399
- removeTableOfContents: () => ReturnType;
1398
+ excalidraw: {
1399
+ setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
1400
1400
  };
1401
1401
  }
1402
1402
  }
@@ -1404,8 +1404,8 @@ declare module '@tiptap/core' {
1404
1404
 
1405
1405
  declare module '@tiptap/core' {
1406
1406
  interface Commands<ReturnType> {
1407
- excalidraw: {
1408
- setExcalidraw: (attrs?: IExcalidrawAttrs) => ReturnType;
1407
+ exportWord: {
1408
+ exportToWord: () => ReturnType;
1409
1409
  };
1410
1410
  }
1411
1411
  }