reactjs-tiptap-editor 0.2.9 → 0.2.11

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.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react"),d=require("./RichTextEditor-BbpdLvup.cjs"),c=require("./tiptap-BjxGiEhB.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;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react"),d=require("./RichTextEditor-DJJ5SBya.cjs"),c=require("./tiptap-BjxGiEhB.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
@@ -251,15 +251,9 @@ declare module '@tiptap/core' {
251
251
 
252
252
  declare module '@tiptap/core' {
253
253
  interface Commands<ReturnType> {
254
- indent: {
255
- /**
256
- * Set the indent attribute
257
- */
258
- indent: () => ReturnType;
259
- /**
260
- * Set the outdent attribute
261
- */
262
- outdent: () => ReturnType;
254
+ tableCellBackground: {
255
+ setTableCellBackground: (color: string) => ReturnType;
256
+ unsetTableCellBackground: () => ReturnType;
263
257
  };
264
258
  }
265
259
  }
@@ -267,9 +261,8 @@ declare module '@tiptap/core' {
267
261
 
268
262
  declare module '@tiptap/core' {
269
263
  interface Commands<ReturnType> {
270
- lineHeight: {
271
- setLineHeight: (lineHeight: string) => ReturnType;
272
- unsetLineHeight: () => ReturnType;
264
+ painter: {
265
+ setPainter: (marks: Mark[]) => ReturnType;
273
266
  };
274
267
  }
275
268
  }
@@ -277,9 +270,13 @@ declare module '@tiptap/core' {
277
270
 
278
271
  declare module '@tiptap/core' {
279
272
  interface Commands<ReturnType> {
280
- tableCellBackground: {
281
- setTableCellBackground: (color: string) => ReturnType;
282
- unsetTableCellBackground: () => ReturnType;
273
+ columns: {
274
+ insertColumns: (attrs?: {
275
+ cols: number;
276
+ }) => ReturnType;
277
+ addColBefore: () => ReturnType;
278
+ addColAfter: () => ReturnType;
279
+ deleteCol: () => ReturnType;
283
280
  };
284
281
  }
285
282
  }
@@ -287,19 +284,15 @@ declare module '@tiptap/core' {
287
284
 
288
285
  declare module '@tiptap/core' {
289
286
  interface Commands<ReturnType> {
290
- imageUpload: {
291
- /**
292
- * Add an image
293
- */
294
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
287
+ indent: {
295
288
  /**
296
- * Update an image
289
+ * Set the indent attribute
297
290
  */
298
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
291
+ indent: () => ReturnType;
299
292
  /**
300
- * Set image alignment
293
+ * Set the outdent attribute
301
294
  */
302
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
295
+ outdent: () => ReturnType;
303
296
  };
304
297
  }
305
298
  }
@@ -307,8 +300,21 @@ declare module '@tiptap/core' {
307
300
 
308
301
  declare module '@tiptap/core' {
309
302
  interface Commands<ReturnType> {
310
- katex: {
311
- setKatex: (arg?: IKatexAttrs) => ReturnType;
303
+ lineHeight: {
304
+ setLineHeight: (lineHeight: string) => ReturnType;
305
+ unsetLineHeight: () => ReturnType;
306
+ };
307
+ }
308
+ }
309
+
310
+
311
+ declare module '@tiptap/core' {
312
+ interface Commands<ReturnType> {
313
+ emoji: {
314
+ setEmoji: (emoji: {
315
+ name: string;
316
+ emoji: string;
317
+ }) => ReturnType;
312
318
  };
313
319
  }
314
320
  }
@@ -331,8 +337,19 @@ declare module '@tiptap/core' {
331
337
 
332
338
  declare module '@tiptap/core' {
333
339
  interface Commands<ReturnType> {
334
- painter: {
335
- setPainter: (marks: Mark[]) => ReturnType;
340
+ imageUpload: {
341
+ /**
342
+ * Add an image
343
+ */
344
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
345
+ /**
346
+ * Update an image
347
+ */
348
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
349
+ /**
350
+ * Set image alignment
351
+ */
352
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
336
353
  };
337
354
  }
338
355
  }
@@ -355,25 +372,8 @@ declare module '@tiptap/core' {
355
372
 
356
373
  declare module '@tiptap/core' {
357
374
  interface Commands<ReturnType> {
358
- columns: {
359
- insertColumns: (attrs?: {
360
- cols: number;
361
- }) => ReturnType;
362
- addColBefore: () => ReturnType;
363
- addColAfter: () => ReturnType;
364
- deleteCol: () => ReturnType;
365
- };
366
- }
367
- }
368
-
369
-
370
- declare module '@tiptap/core' {
371
- interface Commands<ReturnType> {
372
- emoji: {
373
- setEmoji: (emoji: {
374
- name: string;
375
- emoji: string;
376
- }) => ReturnType;
375
+ katex: {
376
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
377
377
  };
378
378
  }
379
379
  }
@@ -409,9 +409,8 @@ declare module '@tiptap/core' {
409
409
 
410
410
  declare module '@tiptap/core' {
411
411
  interface Commands<ReturnType> {
412
- mermaid: {
413
- setMermaid: (options: any, replace?: any) => ReturnType;
414
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
412
+ attachment: {
413
+ setAttachment: (attrs?: unknown) => ReturnType;
415
414
  };
416
415
  }
417
416
  }
@@ -464,8 +463,9 @@ declare module '@tiptap/core' {
464
463
 
465
464
  declare module '@tiptap/core' {
466
465
  interface Commands<ReturnType> {
467
- attachment: {
468
- setAttachment: (attrs?: unknown) => ReturnType;
466
+ mermaid: {
467
+ setMermaid: (options: any, replace?: any) => ReturnType;
468
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
469
469
  };
470
470
  }
471
471
  }
package/lib/index.d.ts CHANGED
@@ -251,15 +251,9 @@ declare module '@tiptap/core' {
251
251
 
252
252
  declare module '@tiptap/core' {
253
253
  interface Commands<ReturnType> {
254
- indent: {
255
- /**
256
- * Set the indent attribute
257
- */
258
- indent: () => ReturnType;
259
- /**
260
- * Set the outdent attribute
261
- */
262
- outdent: () => ReturnType;
254
+ tableCellBackground: {
255
+ setTableCellBackground: (color: string) => ReturnType;
256
+ unsetTableCellBackground: () => ReturnType;
263
257
  };
264
258
  }
265
259
  }
@@ -267,9 +261,8 @@ declare module '@tiptap/core' {
267
261
 
268
262
  declare module '@tiptap/core' {
269
263
  interface Commands<ReturnType> {
270
- lineHeight: {
271
- setLineHeight: (lineHeight: string) => ReturnType;
272
- unsetLineHeight: () => ReturnType;
264
+ painter: {
265
+ setPainter: (marks: Mark[]) => ReturnType;
273
266
  };
274
267
  }
275
268
  }
@@ -277,9 +270,13 @@ declare module '@tiptap/core' {
277
270
 
278
271
  declare module '@tiptap/core' {
279
272
  interface Commands<ReturnType> {
280
- tableCellBackground: {
281
- setTableCellBackground: (color: string) => ReturnType;
282
- unsetTableCellBackground: () => ReturnType;
273
+ columns: {
274
+ insertColumns: (attrs?: {
275
+ cols: number;
276
+ }) => ReturnType;
277
+ addColBefore: () => ReturnType;
278
+ addColAfter: () => ReturnType;
279
+ deleteCol: () => ReturnType;
283
280
  };
284
281
  }
285
282
  }
@@ -287,19 +284,15 @@ declare module '@tiptap/core' {
287
284
 
288
285
  declare module '@tiptap/core' {
289
286
  interface Commands<ReturnType> {
290
- imageUpload: {
291
- /**
292
- * Add an image
293
- */
294
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
287
+ indent: {
295
288
  /**
296
- * Update an image
289
+ * Set the indent attribute
297
290
  */
298
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
291
+ indent: () => ReturnType;
299
292
  /**
300
- * Set image alignment
293
+ * Set the outdent attribute
301
294
  */
302
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
295
+ outdent: () => ReturnType;
303
296
  };
304
297
  }
305
298
  }
@@ -307,8 +300,21 @@ declare module '@tiptap/core' {
307
300
 
308
301
  declare module '@tiptap/core' {
309
302
  interface Commands<ReturnType> {
310
- katex: {
311
- setKatex: (arg?: IKatexAttrs) => ReturnType;
303
+ lineHeight: {
304
+ setLineHeight: (lineHeight: string) => ReturnType;
305
+ unsetLineHeight: () => ReturnType;
306
+ };
307
+ }
308
+ }
309
+
310
+
311
+ declare module '@tiptap/core' {
312
+ interface Commands<ReturnType> {
313
+ emoji: {
314
+ setEmoji: (emoji: {
315
+ name: string;
316
+ emoji: string;
317
+ }) => ReturnType;
312
318
  };
313
319
  }
314
320
  }
@@ -331,8 +337,19 @@ declare module '@tiptap/core' {
331
337
 
332
338
  declare module '@tiptap/core' {
333
339
  interface Commands<ReturnType> {
334
- painter: {
335
- setPainter: (marks: Mark[]) => ReturnType;
340
+ imageUpload: {
341
+ /**
342
+ * Add an image
343
+ */
344
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
345
+ /**
346
+ * Update an image
347
+ */
348
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
349
+ /**
350
+ * Set image alignment
351
+ */
352
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
336
353
  };
337
354
  }
338
355
  }
@@ -355,25 +372,8 @@ declare module '@tiptap/core' {
355
372
 
356
373
  declare module '@tiptap/core' {
357
374
  interface Commands<ReturnType> {
358
- columns: {
359
- insertColumns: (attrs?: {
360
- cols: number;
361
- }) => ReturnType;
362
- addColBefore: () => ReturnType;
363
- addColAfter: () => ReturnType;
364
- deleteCol: () => ReturnType;
365
- };
366
- }
367
- }
368
-
369
-
370
- declare module '@tiptap/core' {
371
- interface Commands<ReturnType> {
372
- emoji: {
373
- setEmoji: (emoji: {
374
- name: string;
375
- emoji: string;
376
- }) => ReturnType;
375
+ katex: {
376
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
377
377
  };
378
378
  }
379
379
  }
@@ -409,9 +409,8 @@ declare module '@tiptap/core' {
409
409
 
410
410
  declare module '@tiptap/core' {
411
411
  interface Commands<ReturnType> {
412
- mermaid: {
413
- setMermaid: (options: any, replace?: any) => ReturnType;
414
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
412
+ attachment: {
413
+ setAttachment: (attrs?: unknown) => ReturnType;
415
414
  };
416
415
  }
417
416
  }
@@ -464,8 +463,9 @@ declare module '@tiptap/core' {
464
463
 
465
464
  declare module '@tiptap/core' {
466
465
  interface Commands<ReturnType> {
467
- attachment: {
468
- setAttachment: (attrs?: unknown) => ReturnType;
466
+ mermaid: {
467
+ setMermaid: (options: any, replace?: any) => ReturnType;
468
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
469
469
  };
470
470
  }
471
471
  }
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { useRef as d, useState as o, useEffect as f } from "react";
2
- import { R as m } from "./RichTextEditor-DwHrESsL.js";
2
+ import { R as m } from "./RichTextEditor-CIenLXbH.js";
3
3
  import { B as x } from "./tiptap-DKUVyykT.js";
4
4
  function c() {
5
5
  var t;
@@ -920,15 +920,9 @@ declare module '@tiptap/core' {
920
920
 
921
921
  declare module '@tiptap/core' {
922
922
  interface Commands<ReturnType> {
923
- indent: {
924
- /**
925
- * Set the indent attribute
926
- */
927
- indent: () => ReturnType;
928
- /**
929
- * Set the outdent attribute
930
- */
931
- outdent: () => ReturnType;
923
+ tableCellBackground: {
924
+ setTableCellBackground: (color: string) => ReturnType;
925
+ unsetTableCellBackground: () => ReturnType;
932
926
  };
933
927
  }
934
928
  }
@@ -936,9 +930,8 @@ declare module '@tiptap/core' {
936
930
 
937
931
  declare module '@tiptap/core' {
938
932
  interface Commands<ReturnType> {
939
- lineHeight: {
940
- setLineHeight: (lineHeight: string) => ReturnType;
941
- unsetLineHeight: () => ReturnType;
933
+ painter: {
934
+ setPainter: (marks: Mark[]) => ReturnType;
942
935
  };
943
936
  }
944
937
  }
@@ -946,9 +939,13 @@ declare module '@tiptap/core' {
946
939
 
947
940
  declare module '@tiptap/core' {
948
941
  interface Commands<ReturnType> {
949
- tableCellBackground: {
950
- setTableCellBackground: (color: string) => ReturnType;
951
- unsetTableCellBackground: () => ReturnType;
942
+ columns: {
943
+ insertColumns: (attrs?: {
944
+ cols: number;
945
+ }) => ReturnType;
946
+ addColBefore: () => ReturnType;
947
+ addColAfter: () => ReturnType;
948
+ deleteCol: () => ReturnType;
952
949
  };
953
950
  }
954
951
  }
@@ -956,19 +953,15 @@ declare module '@tiptap/core' {
956
953
 
957
954
  declare module '@tiptap/core' {
958
955
  interface Commands<ReturnType> {
959
- imageUpload: {
960
- /**
961
- * Add an image
962
- */
963
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
956
+ indent: {
964
957
  /**
965
- * Update an image
958
+ * Set the indent attribute
966
959
  */
967
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
960
+ indent: () => ReturnType;
968
961
  /**
969
- * Set image alignment
962
+ * Set the outdent attribute
970
963
  */
971
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
964
+ outdent: () => ReturnType;
972
965
  };
973
966
  }
974
967
  }
@@ -976,8 +969,21 @@ declare module '@tiptap/core' {
976
969
 
977
970
  declare module '@tiptap/core' {
978
971
  interface Commands<ReturnType> {
979
- katex: {
980
- setKatex: (arg?: IKatexAttrs) => ReturnType;
972
+ lineHeight: {
973
+ setLineHeight: (lineHeight: string) => ReturnType;
974
+ unsetLineHeight: () => ReturnType;
975
+ };
976
+ }
977
+ }
978
+
979
+
980
+ declare module '@tiptap/core' {
981
+ interface Commands<ReturnType> {
982
+ emoji: {
983
+ setEmoji: (emoji: {
984
+ name: string;
985
+ emoji: string;
986
+ }) => ReturnType;
981
987
  };
982
988
  }
983
989
  }
@@ -1000,8 +1006,19 @@ declare module '@tiptap/core' {
1000
1006
 
1001
1007
  declare module '@tiptap/core' {
1002
1008
  interface Commands<ReturnType> {
1003
- painter: {
1004
- setPainter: (marks: Mark[]) => ReturnType;
1009
+ imageUpload: {
1010
+ /**
1011
+ * Add an image
1012
+ */
1013
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1014
+ /**
1015
+ * Update an image
1016
+ */
1017
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1018
+ /**
1019
+ * Set image alignment
1020
+ */
1021
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
1005
1022
  };
1006
1023
  }
1007
1024
  }
@@ -1024,25 +1041,8 @@ declare module '@tiptap/core' {
1024
1041
 
1025
1042
  declare module '@tiptap/core' {
1026
1043
  interface Commands<ReturnType> {
1027
- columns: {
1028
- insertColumns: (attrs?: {
1029
- cols: number;
1030
- }) => ReturnType;
1031
- addColBefore: () => ReturnType;
1032
- addColAfter: () => ReturnType;
1033
- deleteCol: () => ReturnType;
1034
- };
1035
- }
1036
- }
1037
-
1038
-
1039
- declare module '@tiptap/core' {
1040
- interface Commands<ReturnType> {
1041
- emoji: {
1042
- setEmoji: (emoji: {
1043
- name: string;
1044
- emoji: string;
1045
- }) => ReturnType;
1044
+ katex: {
1045
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
1046
1046
  };
1047
1047
  }
1048
1048
  }
@@ -1078,9 +1078,8 @@ declare module '@tiptap/core' {
1078
1078
 
1079
1079
  declare module '@tiptap/core' {
1080
1080
  interface Commands<ReturnType> {
1081
- mermaid: {
1082
- setMermaid: (options: any, replace?: any) => ReturnType;
1083
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1081
+ attachment: {
1082
+ setAttachment: (attrs?: unknown) => ReturnType;
1084
1083
  };
1085
1084
  }
1086
1085
  }
@@ -1133,8 +1132,9 @@ declare module '@tiptap/core' {
1133
1132
 
1134
1133
  declare module '@tiptap/core' {
1135
1134
  interface Commands<ReturnType> {
1136
- attachment: {
1137
- setAttachment: (attrs?: unknown) => ReturnType;
1135
+ mermaid: {
1136
+ setMermaid: (options: any, replace?: any) => ReturnType;
1137
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1138
1138
  };
1139
1139
  }
1140
1140
  }
@@ -920,15 +920,9 @@ declare module '@tiptap/core' {
920
920
 
921
921
  declare module '@tiptap/core' {
922
922
  interface Commands<ReturnType> {
923
- indent: {
924
- /**
925
- * Set the indent attribute
926
- */
927
- indent: () => ReturnType;
928
- /**
929
- * Set the outdent attribute
930
- */
931
- outdent: () => ReturnType;
923
+ tableCellBackground: {
924
+ setTableCellBackground: (color: string) => ReturnType;
925
+ unsetTableCellBackground: () => ReturnType;
932
926
  };
933
927
  }
934
928
  }
@@ -936,9 +930,8 @@ declare module '@tiptap/core' {
936
930
 
937
931
  declare module '@tiptap/core' {
938
932
  interface Commands<ReturnType> {
939
- lineHeight: {
940
- setLineHeight: (lineHeight: string) => ReturnType;
941
- unsetLineHeight: () => ReturnType;
933
+ painter: {
934
+ setPainter: (marks: Mark[]) => ReturnType;
942
935
  };
943
936
  }
944
937
  }
@@ -946,9 +939,13 @@ declare module '@tiptap/core' {
946
939
 
947
940
  declare module '@tiptap/core' {
948
941
  interface Commands<ReturnType> {
949
- tableCellBackground: {
950
- setTableCellBackground: (color: string) => ReturnType;
951
- unsetTableCellBackground: () => ReturnType;
942
+ columns: {
943
+ insertColumns: (attrs?: {
944
+ cols: number;
945
+ }) => ReturnType;
946
+ addColBefore: () => ReturnType;
947
+ addColAfter: () => ReturnType;
948
+ deleteCol: () => ReturnType;
952
949
  };
953
950
  }
954
951
  }
@@ -956,19 +953,15 @@ declare module '@tiptap/core' {
956
953
 
957
954
  declare module '@tiptap/core' {
958
955
  interface Commands<ReturnType> {
959
- imageUpload: {
960
- /**
961
- * Add an image
962
- */
963
- setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
956
+ indent: {
964
957
  /**
965
- * Update an image
958
+ * Set the indent attribute
966
959
  */
967
- updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
960
+ indent: () => ReturnType;
968
961
  /**
969
- * Set image alignment
962
+ * Set the outdent attribute
970
963
  */
971
- setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
964
+ outdent: () => ReturnType;
972
965
  };
973
966
  }
974
967
  }
@@ -976,8 +969,21 @@ declare module '@tiptap/core' {
976
969
 
977
970
  declare module '@tiptap/core' {
978
971
  interface Commands<ReturnType> {
979
- katex: {
980
- setKatex: (arg?: IKatexAttrs) => ReturnType;
972
+ lineHeight: {
973
+ setLineHeight: (lineHeight: string) => ReturnType;
974
+ unsetLineHeight: () => ReturnType;
975
+ };
976
+ }
977
+ }
978
+
979
+
980
+ declare module '@tiptap/core' {
981
+ interface Commands<ReturnType> {
982
+ emoji: {
983
+ setEmoji: (emoji: {
984
+ name: string;
985
+ emoji: string;
986
+ }) => ReturnType;
981
987
  };
982
988
  }
983
989
  }
@@ -1000,8 +1006,19 @@ declare module '@tiptap/core' {
1000
1006
 
1001
1007
  declare module '@tiptap/core' {
1002
1008
  interface Commands<ReturnType> {
1003
- painter: {
1004
- setPainter: (marks: Mark[]) => ReturnType;
1009
+ imageUpload: {
1010
+ /**
1011
+ * Add an image
1012
+ */
1013
+ setImageInline: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1014
+ /**
1015
+ * Update an image
1016
+ */
1017
+ updateImage: (options: Partial<SetImageAttrsOptions>) => ReturnType;
1018
+ /**
1019
+ * Set image alignment
1020
+ */
1021
+ setAlignImage: (align: 'left' | 'center' | 'right') => ReturnType;
1005
1022
  };
1006
1023
  }
1007
1024
  }
@@ -1024,25 +1041,8 @@ declare module '@tiptap/core' {
1024
1041
 
1025
1042
  declare module '@tiptap/core' {
1026
1043
  interface Commands<ReturnType> {
1027
- columns: {
1028
- insertColumns: (attrs?: {
1029
- cols: number;
1030
- }) => ReturnType;
1031
- addColBefore: () => ReturnType;
1032
- addColAfter: () => ReturnType;
1033
- deleteCol: () => ReturnType;
1034
- };
1035
- }
1036
- }
1037
-
1038
-
1039
- declare module '@tiptap/core' {
1040
- interface Commands<ReturnType> {
1041
- emoji: {
1042
- setEmoji: (emoji: {
1043
- name: string;
1044
- emoji: string;
1045
- }) => ReturnType;
1044
+ katex: {
1045
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
1046
1046
  };
1047
1047
  }
1048
1048
  }
@@ -1078,9 +1078,8 @@ declare module '@tiptap/core' {
1078
1078
 
1079
1079
  declare module '@tiptap/core' {
1080
1080
  interface Commands<ReturnType> {
1081
- mermaid: {
1082
- setMermaid: (options: any, replace?: any) => ReturnType;
1083
- setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1081
+ attachment: {
1082
+ setAttachment: (attrs?: unknown) => ReturnType;
1084
1083
  };
1085
1084
  }
1086
1085
  }
@@ -1133,8 +1132,9 @@ declare module '@tiptap/core' {
1133
1132
 
1134
1133
  declare module '@tiptap/core' {
1135
1134
  interface Commands<ReturnType> {
1136
- attachment: {
1137
- setAttachment: (attrs?: unknown) => ReturnType;
1135
+ mermaid: {
1136
+ setMermaid: (options: any, replace?: any) => ReturnType;
1137
+ setAlignImageMermaid: (align: 'left' | 'center' | 'right') => ReturnType;
1138
1138
  };
1139
1139
  }
1140
1140
  }