reactjs-tiptap-editor 0.0.31 → 0.0.33

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
  }
@@ -230,6 +230,13 @@ declare interface BubbleMenuProps {
230
230
  */
231
231
  hidden?: boolean;
232
232
  };
233
+ iframeConfig?: {
234
+ /**
235
+ * @description iframe menu hidden
236
+ * @default false
237
+ */
238
+ hidden?: boolean;
239
+ };
233
240
  render?: (props: BubbleMenuRenderProps, dom: React.ReactNode) => React.ReactNode;
234
241
  }
235
242
 
@@ -242,7 +249,7 @@ declare interface BubbleMenuRenderProps {
242
249
  bubbleMenu: BubbleMenuProps;
243
250
  }
244
251
 
245
- export declare const BulletList: Node_2<BulletListOptions, any>;
252
+ export declare const BulletList: Node_3<BulletListOptions, any>;
246
253
 
247
254
  export declare interface BulletListOptions extends BulletListOptions_2, GeneralOptions<BulletListOptions> {
248
255
  }
@@ -302,7 +309,7 @@ declare interface ButtonViewReturnComponentSlots {
302
309
  [x: string]: () => any;
303
310
  }
304
311
 
305
- export declare const Clear: Node_2<ClearOptions, any>;
312
+ export declare const Clear: Node_3<ClearOptions, any>;
306
313
 
307
314
  export declare interface ClearOptions extends GeneralOptions<ClearOptions> {
308
315
  }
@@ -332,7 +339,7 @@ export declare interface ColorOptions extends ColorOptions_2, GeneralOptions<Col
332
339
  defaultColor?: string;
333
340
  }
334
341
 
335
- export declare const Column: Node_2<any, any>;
342
+ export declare const Column: Node_3<any, any>;
336
343
 
337
344
  export declare const ColumnActionButton: Extension<any, any>;
338
345
 
@@ -341,7 +348,7 @@ editor: Editor_2 | null;
341
348
  }>>;
342
349
  export default _default;
343
350
 
344
- export declare const Emoji: Node_2<any, any>;
351
+ export declare const Emoji: Node_3<any, any>;
345
352
 
346
353
  export declare const en: {
347
354
  'editor.remove': string;
@@ -495,7 +502,7 @@ export declare const en: {
495
502
  'editor.importWrod.tooltip': string;
496
503
  };
497
504
 
498
- export declare const Excalidraw: Node_2<any, any>;
505
+ export declare const Excalidraw: Node_3<any, any>;
499
506
 
500
507
  export declare const ExportPdf: Extension<any, any>;
501
508
 
@@ -553,7 +560,7 @@ declare interface GeneralOptions<T> {
553
560
  toolbar?: boolean;
554
561
  }
555
562
 
556
- export declare const Heading: Node_2<HeadingOptions, any>;
563
+ export declare const Heading: Node_3<HeadingOptions, any>;
557
564
 
558
565
  export declare interface HeadingOptions extends HeadingOptions_2, GeneralOptions<HeadingOptions> {
559
566
  }
@@ -570,21 +577,21 @@ export { History_2 as History }
570
577
  export declare interface HistoryOptions extends HistoryOptions_2, GeneralOptions<HistoryOptions> {
571
578
  }
572
579
 
573
- export declare const HorizontalRule: Node_2<HorizontalRuleOptions, any>;
580
+ export declare const HorizontalRule: Node_3<HorizontalRuleOptions, any>;
574
581
 
575
582
  export declare interface HorizontalRuleOptions extends HorizontalRuleOptions_2, GeneralOptions<HorizontalRuleOptions> {
576
583
  }
577
584
 
578
- export declare const Iframe: Node_2<any, any>;
585
+ export declare const Iframe: Node_3<any, any>;
579
586
 
580
587
  declare interface IKatexOptions {
581
588
  HTMLAttributes: Record<string, any>;
582
589
  }
583
590
 
584
- declare const Image_2: Node_2<ImageOptions, any>;
591
+ declare const Image_2: Node_3<ImageOptions, any>;
585
592
  export { Image_2 as Image }
586
593
 
587
- export declare const ImageUpload: Node_3<ImageUploadOptions, any>;
594
+ export declare const ImageUpload: Node_2<ImageUploadOptions, any>;
588
595
 
589
596
  export declare interface ImageUploadOptions {
590
597
  upload: (file: File) => Promise<string>;
@@ -616,7 +623,7 @@ export declare const Italic: Mark<ItalicOptions, any>;
616
623
  export declare interface ItalicOptions extends ItalicOptions_2, GeneralOptions<ItalicOptions> {
617
624
  }
618
625
 
619
- export declare const Katex: Node_2<IKatexOptions, any>;
626
+ export declare const Katex: Node_3<IKatexOptions, any>;
620
627
 
621
628
  declare type LanguageType = 'en' | 'vi' | 'zh_CN' | string;
622
629
 
@@ -671,7 +678,7 @@ export declare interface MoreMarkOptions extends GeneralOptions<MoreMarkOptions>
671
678
  superscript: Partial<SuperscriptExtensionOptions> | false;
672
679
  }
673
680
 
674
- export declare const MultiColumn: Node_2<any, any>;
681
+ export declare const MultiColumn: Node_3<any, any>;
675
682
 
676
683
  declare interface NameValueOption<T = string> {
677
684
  name: string;
@@ -682,7 +689,7 @@ declare interface Options {
682
689
  onHasOneBeforeInsert?: () => void;
683
690
  }
684
691
 
685
- export declare const OrderedList: Node_2<OrderedListOptions, any>;
692
+ export declare const OrderedList: Node_3<OrderedListOptions, any>;
686
693
 
687
694
  export declare interface OrderedListOptions extends OrderedListOptions_2, GeneralOptions<OrderedListOptions> {
688
695
  }
@@ -794,14 +801,14 @@ export declare interface SubAndSuperScriptOptions extends GeneralOptions<SubAndS
794
801
  superscript: Partial<SuperscriptExtensionOptions> | false;
795
802
  }
796
803
 
797
- export declare const Table: Node_2<TableOptions, any>;
804
+ export declare const Table: Node_3<TableOptions, any>;
798
805
 
799
806
  declare interface TableCellBackgroundOptions {
800
807
  HTMLAttributes: Record<string, any>;
801
808
  types?: any;
802
809
  }
803
810
 
804
- export declare const TableOfContents: Node_2<Options, any>;
811
+ export declare const TableOfContents: Node_3<Options, any>;
805
812
 
806
813
  export declare interface TableOptions extends GeneralOptions<TableOptions> {
807
814
  HTMLAttributes: Record<string, any>;
@@ -820,7 +827,7 @@ export declare interface TableOptions extends GeneralOptions<TableOptions> {
820
827
  tableCellBackground: Partial<TableCellBackgroundOptions>;
821
828
  }
822
829
 
823
- export declare const TaskList: Node_2<TaskListOptions, any>;
830
+ export declare const TaskList: Node_3<TaskListOptions, any>;
824
831
 
825
832
  /**
826
833
  * Represents the interface for task list options, extending TiptapTaskListOptions and GeneralOptions.
@@ -1014,7 +1021,7 @@ export declare const vi: {
1014
1021
  'editor.importWrod.tooltip': string;
1015
1022
  };
1016
1023
 
1017
- export declare const Video: Node_2<VideoOptions, any>;
1024
+ export declare const Video: Node_3<VideoOptions, any>;
1018
1025
 
1019
1026
  /**
1020
1027
  * Represents the interface for video options, extending GeneralOptions.
@@ -1049,7 +1056,7 @@ declare interface VideoOptions_2 {
1049
1056
  upload?: (files: File[]) => void;
1050
1057
  }
1051
1058
 
1052
- export declare const VideoUpload: Node_2<VideoOptions_2, any>;
1059
+ export declare const VideoUpload: Node_3<VideoOptions_2, any>;
1053
1060
 
1054
1061
  export declare const zh_CN: {
1055
1062
  'editor.remove': string;
@@ -1266,6 +1273,15 @@ declare module '@tiptap/core' {
1266
1273
  }
1267
1274
 
1268
1275
 
1276
+ declare module '@tiptap/core' {
1277
+ interface Commands<ReturnType> {
1278
+ imageUpload: {
1279
+ setImageUpload: () => ReturnType;
1280
+ };
1281
+ }
1282
+ }
1283
+
1284
+
1269
1285
  declare module '@tiptap/core' {
1270
1286
  interface Commands<ReturnType> {
1271
1287
  imageResize: {
@@ -1284,8 +1300,22 @@ declare module '@tiptap/core' {
1284
1300
 
1285
1301
  declare module '@tiptap/core' {
1286
1302
  interface Commands<ReturnType> {
1287
- imageUpload: {
1288
- setImageUpload: () => ReturnType;
1303
+ columns: {
1304
+ insertColumns: (attrs?: {
1305
+ cols: number;
1306
+ }) => ReturnType;
1307
+ addColBefore: () => ReturnType;
1308
+ addColAfter: () => ReturnType;
1309
+ deleteCol: () => ReturnType;
1310
+ };
1311
+ }
1312
+ }
1313
+
1314
+
1315
+ declare module '@tiptap/core' {
1316
+ interface Commands<ReturnType> {
1317
+ painter: {
1318
+ setPainter: (marks: Mark[]) => ReturnType;
1289
1319
  };
1290
1320
  }
1291
1321
  }
@@ -1312,8 +1342,13 @@ declare module '@tiptap/core' {
1312
1342
 
1313
1343
  declare module '@tiptap/core' {
1314
1344
  interface Commands<ReturnType> {
1315
- painter: {
1316
- setPainter: (marks: Mark[]) => ReturnType;
1345
+ search: {
1346
+ setSearchTerm: (searchTerm: string) => ReturnType;
1347
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
1348
+ replace: () => ReturnType;
1349
+ replaceAll: () => ReturnType;
1350
+ goToPrevSearchResult: () => void;
1351
+ goToNextSearchResult: () => void;
1317
1352
  };
1318
1353
  }
1319
1354
  }
@@ -1336,27 +1371,8 @@ declare module '@tiptap/core' {
1336
1371
 
1337
1372
  declare module '@tiptap/core' {
1338
1373
  interface Commands<ReturnType> {
1339
- columns: {
1340
- insertColumns: (attrs?: {
1341
- cols: number;
1342
- }) => ReturnType;
1343
- addColBefore: () => ReturnType;
1344
- addColAfter: () => ReturnType;
1345
- deleteCol: () => ReturnType;
1346
- };
1347
- }
1348
- }
1349
-
1350
-
1351
- declare module '@tiptap/core' {
1352
- interface Commands<ReturnType> {
1353
- search: {
1354
- setSearchTerm: (searchTerm: string) => ReturnType;
1355
- setReplaceTerm: (replaceTerm: string) => ReturnType;
1356
- replace: () => ReturnType;
1357
- replaceAll: () => ReturnType;
1358
- goToPrevSearchResult: () => void;
1359
- goToNextSearchResult: () => void;
1374
+ katex: {
1375
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
1360
1376
  };
1361
1377
  }
1362
1378
  }
@@ -1374,15 +1390,6 @@ declare module '@tiptap/core' {
1374
1390
  }
1375
1391
 
1376
1392
 
1377
- declare module '@tiptap/core' {
1378
- interface Commands<ReturnType> {
1379
- katex: {
1380
- setKatex: (arg?: IKatexAttrs) => ReturnType;
1381
- };
1382
- }
1383
- }
1384
-
1385
-
1386
1393
  declare module '@tiptap/core' {
1387
1394
  interface Commands<ReturnType> {
1388
1395
  exportWord: {
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
  }
@@ -230,6 +230,13 @@ declare interface BubbleMenuProps {
230
230
  */
231
231
  hidden?: boolean;
232
232
  };
233
+ iframeConfig?: {
234
+ /**
235
+ * @description iframe menu hidden
236
+ * @default false
237
+ */
238
+ hidden?: boolean;
239
+ };
233
240
  render?: (props: BubbleMenuRenderProps, dom: React.ReactNode) => React.ReactNode;
234
241
  }
235
242
 
@@ -242,7 +249,7 @@ declare interface BubbleMenuRenderProps {
242
249
  bubbleMenu: BubbleMenuProps;
243
250
  }
244
251
 
245
- export declare const BulletList: Node_2<BulletListOptions, any>;
252
+ export declare const BulletList: Node_3<BulletListOptions, any>;
246
253
 
247
254
  export declare interface BulletListOptions extends BulletListOptions_2, GeneralOptions<BulletListOptions> {
248
255
  }
@@ -302,7 +309,7 @@ declare interface ButtonViewReturnComponentSlots {
302
309
  [x: string]: () => any;
303
310
  }
304
311
 
305
- export declare const Clear: Node_2<ClearOptions, any>;
312
+ export declare const Clear: Node_3<ClearOptions, any>;
306
313
 
307
314
  export declare interface ClearOptions extends GeneralOptions<ClearOptions> {
308
315
  }
@@ -332,7 +339,7 @@ export declare interface ColorOptions extends ColorOptions_2, GeneralOptions<Col
332
339
  defaultColor?: string;
333
340
  }
334
341
 
335
- export declare const Column: Node_2<any, any>;
342
+ export declare const Column: Node_3<any, any>;
336
343
 
337
344
  export declare const ColumnActionButton: Extension<any, any>;
338
345
 
@@ -341,7 +348,7 @@ editor: Editor_2 | null;
341
348
  }>>;
342
349
  export default _default;
343
350
 
344
- export declare const Emoji: Node_2<any, any>;
351
+ export declare const Emoji: Node_3<any, any>;
345
352
 
346
353
  export declare const en: {
347
354
  'editor.remove': string;
@@ -495,7 +502,7 @@ export declare const en: {
495
502
  'editor.importWrod.tooltip': string;
496
503
  };
497
504
 
498
- export declare const Excalidraw: Node_2<any, any>;
505
+ export declare const Excalidraw: Node_3<any, any>;
499
506
 
500
507
  export declare const ExportPdf: Extension<any, any>;
501
508
 
@@ -553,7 +560,7 @@ declare interface GeneralOptions<T> {
553
560
  toolbar?: boolean;
554
561
  }
555
562
 
556
- export declare const Heading: Node_2<HeadingOptions, any>;
563
+ export declare const Heading: Node_3<HeadingOptions, any>;
557
564
 
558
565
  export declare interface HeadingOptions extends HeadingOptions_2, GeneralOptions<HeadingOptions> {
559
566
  }
@@ -570,21 +577,21 @@ export { History_2 as History }
570
577
  export declare interface HistoryOptions extends HistoryOptions_2, GeneralOptions<HistoryOptions> {
571
578
  }
572
579
 
573
- export declare const HorizontalRule: Node_2<HorizontalRuleOptions, any>;
580
+ export declare const HorizontalRule: Node_3<HorizontalRuleOptions, any>;
574
581
 
575
582
  export declare interface HorizontalRuleOptions extends HorizontalRuleOptions_2, GeneralOptions<HorizontalRuleOptions> {
576
583
  }
577
584
 
578
- export declare const Iframe: Node_2<any, any>;
585
+ export declare const Iframe: Node_3<any, any>;
579
586
 
580
587
  declare interface IKatexOptions {
581
588
  HTMLAttributes: Record<string, any>;
582
589
  }
583
590
 
584
- declare const Image_2: Node_2<ImageOptions, any>;
591
+ declare const Image_2: Node_3<ImageOptions, any>;
585
592
  export { Image_2 as Image }
586
593
 
587
- export declare const ImageUpload: Node_3<ImageUploadOptions, any>;
594
+ export declare const ImageUpload: Node_2<ImageUploadOptions, any>;
588
595
 
589
596
  export declare interface ImageUploadOptions {
590
597
  upload: (file: File) => Promise<string>;
@@ -616,7 +623,7 @@ export declare const Italic: Mark<ItalicOptions, any>;
616
623
  export declare interface ItalicOptions extends ItalicOptions_2, GeneralOptions<ItalicOptions> {
617
624
  }
618
625
 
619
- export declare const Katex: Node_2<IKatexOptions, any>;
626
+ export declare const Katex: Node_3<IKatexOptions, any>;
620
627
 
621
628
  declare type LanguageType = 'en' | 'vi' | 'zh_CN' | string;
622
629
 
@@ -671,7 +678,7 @@ export declare interface MoreMarkOptions extends GeneralOptions<MoreMarkOptions>
671
678
  superscript: Partial<SuperscriptExtensionOptions> | false;
672
679
  }
673
680
 
674
- export declare const MultiColumn: Node_2<any, any>;
681
+ export declare const MultiColumn: Node_3<any, any>;
675
682
 
676
683
  declare interface NameValueOption<T = string> {
677
684
  name: string;
@@ -682,7 +689,7 @@ declare interface Options {
682
689
  onHasOneBeforeInsert?: () => void;
683
690
  }
684
691
 
685
- export declare const OrderedList: Node_2<OrderedListOptions, any>;
692
+ export declare const OrderedList: Node_3<OrderedListOptions, any>;
686
693
 
687
694
  export declare interface OrderedListOptions extends OrderedListOptions_2, GeneralOptions<OrderedListOptions> {
688
695
  }
@@ -794,14 +801,14 @@ export declare interface SubAndSuperScriptOptions extends GeneralOptions<SubAndS
794
801
  superscript: Partial<SuperscriptExtensionOptions> | false;
795
802
  }
796
803
 
797
- export declare const Table: Node_2<TableOptions, any>;
804
+ export declare const Table: Node_3<TableOptions, any>;
798
805
 
799
806
  declare interface TableCellBackgroundOptions {
800
807
  HTMLAttributes: Record<string, any>;
801
808
  types?: any;
802
809
  }
803
810
 
804
- export declare const TableOfContents: Node_2<Options, any>;
811
+ export declare const TableOfContents: Node_3<Options, any>;
805
812
 
806
813
  export declare interface TableOptions extends GeneralOptions<TableOptions> {
807
814
  HTMLAttributes: Record<string, any>;
@@ -820,7 +827,7 @@ export declare interface TableOptions extends GeneralOptions<TableOptions> {
820
827
  tableCellBackground: Partial<TableCellBackgroundOptions>;
821
828
  }
822
829
 
823
- export declare const TaskList: Node_2<TaskListOptions, any>;
830
+ export declare const TaskList: Node_3<TaskListOptions, any>;
824
831
 
825
832
  /**
826
833
  * Represents the interface for task list options, extending TiptapTaskListOptions and GeneralOptions.
@@ -1014,7 +1021,7 @@ export declare const vi: {
1014
1021
  'editor.importWrod.tooltip': string;
1015
1022
  };
1016
1023
 
1017
- export declare const Video: Node_2<VideoOptions, any>;
1024
+ export declare const Video: Node_3<VideoOptions, any>;
1018
1025
 
1019
1026
  /**
1020
1027
  * Represents the interface for video options, extending GeneralOptions.
@@ -1049,7 +1056,7 @@ declare interface VideoOptions_2 {
1049
1056
  upload?: (files: File[]) => void;
1050
1057
  }
1051
1058
 
1052
- export declare const VideoUpload: Node_2<VideoOptions_2, any>;
1059
+ export declare const VideoUpload: Node_3<VideoOptions_2, any>;
1053
1060
 
1054
1061
  export declare const zh_CN: {
1055
1062
  'editor.remove': string;
@@ -1266,6 +1273,15 @@ declare module '@tiptap/core' {
1266
1273
  }
1267
1274
 
1268
1275
 
1276
+ declare module '@tiptap/core' {
1277
+ interface Commands<ReturnType> {
1278
+ imageUpload: {
1279
+ setImageUpload: () => ReturnType;
1280
+ };
1281
+ }
1282
+ }
1283
+
1284
+
1269
1285
  declare module '@tiptap/core' {
1270
1286
  interface Commands<ReturnType> {
1271
1287
  imageResize: {
@@ -1284,8 +1300,22 @@ declare module '@tiptap/core' {
1284
1300
 
1285
1301
  declare module '@tiptap/core' {
1286
1302
  interface Commands<ReturnType> {
1287
- imageUpload: {
1288
- setImageUpload: () => ReturnType;
1303
+ columns: {
1304
+ insertColumns: (attrs?: {
1305
+ cols: number;
1306
+ }) => ReturnType;
1307
+ addColBefore: () => ReturnType;
1308
+ addColAfter: () => ReturnType;
1309
+ deleteCol: () => ReturnType;
1310
+ };
1311
+ }
1312
+ }
1313
+
1314
+
1315
+ declare module '@tiptap/core' {
1316
+ interface Commands<ReturnType> {
1317
+ painter: {
1318
+ setPainter: (marks: Mark[]) => ReturnType;
1289
1319
  };
1290
1320
  }
1291
1321
  }
@@ -1312,8 +1342,13 @@ declare module '@tiptap/core' {
1312
1342
 
1313
1343
  declare module '@tiptap/core' {
1314
1344
  interface Commands<ReturnType> {
1315
- painter: {
1316
- setPainter: (marks: Mark[]) => ReturnType;
1345
+ search: {
1346
+ setSearchTerm: (searchTerm: string) => ReturnType;
1347
+ setReplaceTerm: (replaceTerm: string) => ReturnType;
1348
+ replace: () => ReturnType;
1349
+ replaceAll: () => ReturnType;
1350
+ goToPrevSearchResult: () => void;
1351
+ goToNextSearchResult: () => void;
1317
1352
  };
1318
1353
  }
1319
1354
  }
@@ -1336,27 +1371,8 @@ declare module '@tiptap/core' {
1336
1371
 
1337
1372
  declare module '@tiptap/core' {
1338
1373
  interface Commands<ReturnType> {
1339
- columns: {
1340
- insertColumns: (attrs?: {
1341
- cols: number;
1342
- }) => ReturnType;
1343
- addColBefore: () => ReturnType;
1344
- addColAfter: () => ReturnType;
1345
- deleteCol: () => ReturnType;
1346
- };
1347
- }
1348
- }
1349
-
1350
-
1351
- declare module '@tiptap/core' {
1352
- interface Commands<ReturnType> {
1353
- search: {
1354
- setSearchTerm: (searchTerm: string) => ReturnType;
1355
- setReplaceTerm: (replaceTerm: string) => ReturnType;
1356
- replace: () => ReturnType;
1357
- replaceAll: () => ReturnType;
1358
- goToPrevSearchResult: () => void;
1359
- goToNextSearchResult: () => void;
1374
+ katex: {
1375
+ setKatex: (arg?: IKatexAttrs) => ReturnType;
1360
1376
  };
1361
1377
  }
1362
1378
  }
@@ -1374,15 +1390,6 @@ declare module '@tiptap/core' {
1374
1390
  }
1375
1391
 
1376
1392
 
1377
- declare module '@tiptap/core' {
1378
- interface Commands<ReturnType> {
1379
- katex: {
1380
- setKatex: (arg?: IKatexAttrs) => ReturnType;
1381
- };
1382
- }
1383
- }
1384
-
1385
-
1386
1393
  declare module '@tiptap/core' {
1387
1394
  interface Commands<ReturnType> {
1388
1395
  exportWord: {
@@ -2,8 +2,8 @@ var p = Object.defineProperty;
2
2
  var s = (e, t, o) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o;
3
3
  var n = (e, t, o) => s(e, typeof t != "symbol" ? t + "" : t, o);
4
4
  import { useMemo as g, useEffect as m } from "react";
5
- import { proxy as u, useSnapshot as c } from "valtio";
6
- import { m as h } from "./utils-DR1fgdST.js";
5
+ import { proxy as u, useSnapshot as h } from "valtio";
6
+ import { m as c } from "./utils-SgPkqbOY.js";
7
7
  const b = {
8
8
  "editor.remove": "Remove",
9
9
  "editor.copy": "Copy",
@@ -535,12 +535,14 @@ const b = {
535
535
  "html",
536
536
  "css",
537
537
  "js",
538
- "ts"
538
+ "ts",
539
+ "bash"
539
540
  ], P = {
540
541
  html: "HTML",
541
542
  css: "CSS",
542
543
  js: "JavaScript",
543
- ts: "TypeScript"
544
+ ts: "TypeScript",
545
+ bash: "Bash"
544
546
  }, O = [
545
547
  "10px",
546
548
  "11px",
@@ -580,7 +582,7 @@ const j = ["100%", "115%", "150%", "200%", "250%", "300%"], X = "1", q = [
580
582
  class D {
581
583
  constructor() {
582
584
  n(this, "emitter");
583
- this.emitter = h();
585
+ this.emitter = c();
584
586
  }
585
587
  // Getter and setter for current language
586
588
  get lang() {
@@ -639,7 +641,7 @@ const l = new D(), r = u({
639
641
  lang: i.lang
640
642
  });
641
643
  function K() {
642
- const e = c(r), t = g(() => l.buildLocalesHandler(e.lang), [e.lang]);
644
+ const e = h(r), t = g(() => l.buildLocalesHandler(e.lang), [e.lang]);
643
645
  return m(() => {
644
646
  const o = l.registerWatchLang((d) => {
645
647
  r.lang = d;