@prosekit/extensions 0.7.15 → 0.7.17

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.
Files changed (35) hide show
  1. package/dist/_tsup-dts-rollup.d.ts +266 -59
  2. package/dist/{chunk-GITDYNLT.js → chunk-4WHSS2ZE.js} +2 -2
  3. package/dist/prosekit-extensions-autocomplete.d.ts +3 -3
  4. package/dist/prosekit-extensions-autocomplete.js +16 -16
  5. package/dist/prosekit-extensions-blockquote.d.ts +8 -5
  6. package/dist/prosekit-extensions-blockquote.js +64 -10
  7. package/dist/prosekit-extensions-bold.d.ts +8 -8
  8. package/dist/prosekit-extensions-bold.js +32 -25
  9. package/dist/prosekit-extensions-code-block.d.ts +1 -0
  10. package/dist/prosekit-extensions-code-block.js +2 -1
  11. package/dist/prosekit-extensions-code.d.ts +8 -8
  12. package/dist/prosekit-extensions-code.js +30 -23
  13. package/dist/prosekit-extensions-drop-cursor.d.ts +3 -3
  14. package/dist/prosekit-extensions-drop-cursor.js +1 -1
  15. package/dist/prosekit-extensions-gap-cursor.d.ts +2 -3
  16. package/dist/prosekit-extensions-gap-cursor.js +1 -2
  17. package/dist/prosekit-extensions-heading.d.ts +7 -7
  18. package/dist/prosekit-extensions-heading.js +6 -6
  19. package/dist/prosekit-extensions-horizontal-rule.d.ts +8 -0
  20. package/dist/prosekit-extensions-horizontal-rule.js +72 -0
  21. package/dist/prosekit-extensions-image.d.ts +7 -7
  22. package/dist/prosekit-extensions-image.js +17 -14
  23. package/dist/prosekit-extensions-italic.d.ts +5 -5
  24. package/dist/prosekit-extensions-italic.js +32 -25
  25. package/dist/prosekit-extensions-link.js +1 -1
  26. package/dist/prosekit-extensions-list.d.ts +4 -4
  27. package/dist/prosekit-extensions-list.js +10 -7
  28. package/dist/prosekit-extensions-loro.d.ts +8 -8
  29. package/dist/prosekit-extensions-loro.js +11 -13
  30. package/dist/prosekit-extensions-mark-rule.d.ts +1 -1
  31. package/dist/prosekit-extensions-mark-rule.js +1 -1
  32. package/dist/prosekit-extensions-yjs.d.ts +6 -6
  33. package/dist/prosekit-extensions-yjs.js +8 -8
  34. package/package.json +14 -6
  35. /package/dist/{shiki-highlighter-chunk-C5VVQ2TD.js → shiki-highlighter-chunk.js} +0 -0
@@ -90,42 +90,62 @@ declare class AutocompleteRule {
90
90
  export { AutocompleteRule }
91
91
  export { AutocompleteRule as AutocompleteRule_alias_1 }
92
92
 
93
- /**
94
- * @internal
95
- */
96
- export declare type BlockquoteExtension = Union<[BlockquoteSpecExtension]>;
93
+ declare type BlockquoteCommandsExtension = Extension<{
94
+ Commands: {
95
+ setBlockquote: [];
96
+ insertBlockquote: [];
97
+ toggleBlockquote: [];
98
+ };
99
+ }>;
100
+ export { BlockquoteCommandsExtension }
101
+ export { BlockquoteCommandsExtension as BlockquoteCommandsExtension_alias_1 }
97
102
 
98
103
  /**
99
104
  * @internal
100
105
  */
101
- export declare type BlockquoteSpecExtension = Extension<{
106
+ declare type BlockquoteExtension = Union<[
107
+ BlockquoteSpecExtension,
108
+ BlockquoteCommandsExtension
109
+ ]>;
110
+ export { BlockquoteExtension }
111
+ export { BlockquoteExtension as BlockquoteExtension_alias_1 }
112
+
113
+ declare type BlockquoteSpecExtension = Extension<{
102
114
  Nodes: {
103
115
  blockquote: Attrs;
104
116
  };
105
117
  }>;
118
+ export { BlockquoteSpecExtension }
119
+ export { BlockquoteSpecExtension as BlockquoteSpecExtension_alias_1 }
106
120
 
107
121
  /**
108
122
  * @internal
109
123
  */
110
- export declare type BoldCommandsExtension = Extension<{
124
+ declare type BoldCommandsExtension = Extension<{
111
125
  Commands: {
112
126
  toggleBold: [];
113
127
  };
114
128
  }>;
129
+ export { BoldCommandsExtension }
130
+ export { BoldCommandsExtension as BoldCommandsExtension_alias_1 }
115
131
 
116
132
  /**
117
133
  * @internal
118
134
  */
119
- export declare type BoldExtension = Union<[BoldSpecExtension, BoldCommandsExtension]>;
135
+ declare type BoldExtension = Union<[BoldSpecExtension, BoldCommandsExtension]>;
136
+ export { BoldExtension }
137
+ export { BoldExtension as BoldExtension_alias_1 }
120
138
 
121
139
  /**
122
140
  * @internal
123
141
  */
124
- export declare type BoldSpecExtension = Extension<{
142
+ declare type BoldSpecExtension = Extension<{
125
143
  Marks: {
126
144
  bold: Attrs;
127
145
  };
128
146
  }>;
147
+ export { BoldSpecExtension }
148
+ export { BoldSpecExtension as BoldSpecExtension_alias_1 }
129
149
 
130
150
  export { BundledLanguage as ShikiBundledLanguage }
131
151
  export { BundledLanguage as ShikiBundledLanguage_alias_1 }
@@ -237,25 +257,31 @@ export { CodeBlockSpecExtension as CodeBlockSpecExtension_alias_1 }
237
257
  /**
238
258
  * @internal
239
259
  */
240
- export declare type CodeCommandsExtension = Extension<{
260
+ declare type CodeCommandsExtension = Extension<{
241
261
  Commands: {
242
262
  toggleCode: [];
243
263
  };
244
264
  }>;
265
+ export { CodeCommandsExtension }
266
+ export { CodeCommandsExtension as CodeCommandsExtension_alias_1 }
245
267
 
246
268
  /**
247
269
  * @internal
248
270
  */
249
- export declare type CodeExtension = Union<[CodeSpecExtension, CodeCommandsExtension]>;
271
+ declare type CodeExtension = Union<[CodeSpecExtension, CodeCommandsExtension]>;
272
+ export { CodeExtension }
273
+ export { CodeExtension as CodeExtension_alias_1 }
250
274
 
251
275
  /**
252
276
  * @internal
253
277
  */
254
- export declare type CodeSpecExtension = Extension<{
278
+ declare type CodeSpecExtension = Extension<{
255
279
  Marks: {
256
280
  code: Attrs;
257
281
  };
258
282
  }>;
283
+ export { CodeSpecExtension }
284
+ export { CodeSpecExtension as CodeSpecExtension_alias_1 }
259
285
 
260
286
  /**
261
287
  * A JSON representation of a commit.
@@ -314,6 +340,7 @@ export declare function createOrGetHighlighter(options: HighlighterOptions): Hig
314
340
  export declare function createOrGetHighlighter_alias_1(options: HighlighterOptions): HighlighterResult;
315
341
 
316
342
  export { DedentListOptions }
343
+ export { DedentListOptions as DedentListOptions_alias_1 }
317
344
 
318
345
  export declare const default_alias: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
319
346
 
@@ -323,50 +350,84 @@ export declare function defaultCanMatch({ state }: {
323
350
  state: EditorState;
324
351
  }): boolean;
325
352
 
326
- export declare function defineAutocomplete(rule: AutocompleteRule): Extension;
353
+ declare function defineAutocomplete(rule: AutocompleteRule): Extension;
354
+ export { defineAutocomplete }
355
+ export { defineAutocomplete as defineAutocomplete_alias_1 }
327
356
 
328
357
  /**
329
358
  * @public
330
359
  */
331
- export declare function defineBlockquote(): BlockquoteExtension;
360
+ declare function defineBlockquote(): BlockquoteExtension;
361
+ export { defineBlockquote }
362
+ export { defineBlockquote as defineBlockquote_alias_1 }
363
+
364
+ /**
365
+ * @internal
366
+ */
367
+ declare function defineBlockquoteCommands(): BlockquoteCommandsExtension;
368
+ export { defineBlockquoteCommands }
369
+ export { defineBlockquoteCommands as defineBlockquoteCommands_alias_1 }
332
370
 
333
371
  /**
334
372
  * Wraps the text block in a blockquote when `>` is typed at the start of a new
335
373
  * line followed by a space.
336
374
  */
337
- export declare function defineBlockquoteInputRule(): PlainExtension;
375
+ declare function defineBlockquoteInputRule(): PlainExtension;
376
+ export { defineBlockquoteInputRule }
377
+ export { defineBlockquoteInputRule as defineBlockquoteInputRule_alias_1 }
378
+
379
+ /**
380
+ * @internal
381
+ */
382
+ declare function defineBlockquoteKeymap(): PlainExtension;
383
+ export { defineBlockquoteKeymap }
384
+ export { defineBlockquoteKeymap as defineBlockquoteKeymap_alias_1 }
338
385
 
339
- export declare function defineBlockquoteSpec(): BlockquoteSpecExtension;
386
+ declare function defineBlockquoteSpec(): BlockquoteSpecExtension;
387
+ export { defineBlockquoteSpec }
388
+ export { defineBlockquoteSpec as defineBlockquoteSpec_alias_1 }
340
389
 
341
390
  /**
342
391
  * @public
343
392
  */
344
- export declare function defineBold(): BoldExtension;
393
+ declare function defineBold(): BoldExtension;
394
+ export { defineBold }
395
+ export { defineBold as defineBold_alias_1 }
345
396
 
346
397
  /**
347
398
  * @internal
348
399
  */
349
- export declare function defineBoldCommands(): BoldCommandsExtension;
400
+ declare function defineBoldCommands(): BoldCommandsExtension;
401
+ export { defineBoldCommands }
402
+ export { defineBoldCommands as defineBoldCommands_alias_1 }
350
403
 
351
404
  /**
352
405
  * @internal
353
406
  */
354
- export declare function defineBoldInputRule(): PlainExtension;
407
+ declare function defineBoldInputRule(): PlainExtension;
408
+ export { defineBoldInputRule }
409
+ export { defineBoldInputRule as defineBoldInputRule_alias_1 }
355
410
 
356
411
  /**
357
412
  * @internal
358
413
  */
359
- export declare function defineBoldKeymap(): PlainExtension;
414
+ declare function defineBoldKeymap(): PlainExtension;
415
+ export { defineBoldKeymap }
416
+ export { defineBoldKeymap as defineBoldKeymap_alias_1 }
360
417
 
361
418
  /**
362
419
  * @internal
363
420
  */
364
- export declare function defineBoldSpec(): BoldSpecExtension;
421
+ declare function defineBoldSpec(): BoldSpecExtension;
422
+ export { defineBoldSpec }
423
+ export { defineBoldSpec as defineBoldSpec_alias_1 }
365
424
 
366
425
  /**
367
426
  * @public
368
427
  */
369
- export declare function defineCode(): CodeExtension;
428
+ declare function defineCode(): CodeExtension;
429
+ export { defineCode }
430
+ export { defineCode as defineCode_alias_1 }
370
431
 
371
432
  /**
372
433
  * Adds `codeBlock` nodes to the editor. This includes the following extensions:
@@ -427,7 +488,9 @@ export { defineCodeBlockInputRule as defineCodeBlockInputRule_alias_1 }
427
488
  /**
428
489
  * Defines the keymap for code blocks.
429
490
  */
430
- export declare function defineCodeBlockKeymap(): PlainExtension;
491
+ declare function defineCodeBlockKeymap(): PlainExtension;
492
+ export { defineCodeBlockKeymap }
493
+ export { defineCodeBlockKeymap as defineCodeBlockKeymap_alias_1 }
431
494
 
432
495
  /**
433
496
  * Adds syntax highlighting to code blocks using the [Shiki](https://github.com/shikijs/shiki) package.
@@ -452,22 +515,30 @@ export { defineCodeBlockSpec as defineCodeBlockSpec_alias_1 }
452
515
  /**
453
516
  * @internal
454
517
  */
455
- export declare function defineCodeCommands(): CodeCommandsExtension;
518
+ declare function defineCodeCommands(): CodeCommandsExtension;
519
+ export { defineCodeCommands }
520
+ export { defineCodeCommands as defineCodeCommands_alias_1 }
456
521
 
457
522
  /**
458
523
  * @internal
459
524
  */
460
- export declare function defineCodeInputRule(): PlainExtension;
525
+ declare function defineCodeInputRule(): PlainExtension;
526
+ export { defineCodeInputRule }
527
+ export { defineCodeInputRule as defineCodeInputRule_alias_1 }
461
528
 
462
529
  /**
463
530
  * @internal
464
531
  */
465
- export declare function defineCodeKeymap(): PlainExtension;
532
+ declare function defineCodeKeymap(): PlainExtension;
533
+ export { defineCodeKeymap }
534
+ export { defineCodeKeymap as defineCodeKeymap_alias_1 }
466
535
 
467
536
  /**
468
537
  * @internal
469
538
  */
470
- export declare function defineCodeSpec(): CodeSpecExtension;
539
+ declare function defineCodeSpec(): CodeSpecExtension;
540
+ export { defineCodeSpec }
541
+ export { defineCodeSpec as defineCodeSpec_alias_1 }
471
542
 
472
543
  /**
473
544
  * Define an extension that can record the changes in the editor.
@@ -486,7 +557,9 @@ export declare function defineCommitViewer(commit: Commit): PlainExtension;
486
557
  *
487
558
  * @public
488
559
  */
489
- export declare function defineDropCursor(options?: DropCursorOptions): DropCursorExtension;
560
+ declare function defineDropCursor(options?: DropCursorOptions): DropCursorExtension;
561
+ export { defineDropCursor }
562
+ export { defineDropCursor as defineDropCursor_alias_1 }
490
563
 
491
564
  /**
492
565
  * Defines an enter rule. An enter rule applies when the text directly in front of
@@ -513,12 +586,16 @@ export declare function defineEnterRule({ regex, handler, stop, }: EnterRuleOpti
513
586
  *
514
587
  * @public
515
588
  */
516
- export declare function defineGapCursor(): GapCursorExtension;
589
+ declare function defineGapCursor(): GapCursorExtension;
590
+ export { defineGapCursor }
591
+ export { defineGapCursor as defineGapCursor_alias_1 }
517
592
 
518
593
  /**
519
594
  * @public
520
595
  */
521
- export declare function defineHeading(): HeadingExtension;
596
+ declare function defineHeading(): HeadingExtension;
597
+ export { defineHeading }
598
+ export { defineHeading as defineHeading_alias_1 }
522
599
 
523
600
  /**
524
601
  * @internal
@@ -554,17 +631,45 @@ export { defineHeadingSpec as defineHeadingSpec_alias_1 }
554
631
  /**
555
632
  * @public
556
633
  */
557
- export declare function defineImage(): ImageExtension;
634
+ declare function defineHorizontalRule(): HorizontalRuleExtension;
635
+ export { defineHorizontalRule }
636
+ export { defineHorizontalRule as defineHorizontalRule_alias_1 }
637
+
638
+ declare function defineHorizontalRuleCommands(): HorizontalRuleCommandsExtension;
639
+ export { defineHorizontalRuleCommands }
640
+ export { defineHorizontalRuleCommands as defineHorizontalRuleCommands_alias_1 }
641
+
642
+ /**
643
+ * @public
644
+ */
645
+ declare function defineHorizontalRuleInputRule(): PlainExtension;
646
+ export { defineHorizontalRuleInputRule }
647
+ export { defineHorizontalRuleInputRule as defineHorizontalRuleInputRule_alias_1 }
648
+
649
+ declare function defineHorizontalRuleSpec(): HorizontalRuleSpecExtension;
650
+ export { defineHorizontalRuleSpec }
651
+ export { defineHorizontalRuleSpec as defineHorizontalRuleSpec_alias_1 }
652
+
653
+ /**
654
+ * @public
655
+ */
656
+ declare function defineImage(): ImageExtension;
657
+ export { defineImage }
658
+ export { defineImage as defineImage_alias_1 }
558
659
 
559
660
  /**
560
661
  * @internal
561
662
  */
562
- export declare function defineImageCommands(): ImageCommandsExtension;
663
+ declare function defineImageCommands(): ImageCommandsExtension;
664
+ export { defineImageCommands }
665
+ export { defineImageCommands as defineImageCommands_alias_1 }
563
666
 
564
667
  /**
565
668
  * @internal
566
669
  */
567
- export declare function defineImageSpec(): ImageSpecExtension;
670
+ declare function defineImageSpec(): ImageSpecExtension;
671
+ export { defineImageSpec }
672
+ export { defineImageSpec as defineImageSpec_alias_1 }
568
673
 
569
674
  /**
570
675
  * Defines an input rule extension.
@@ -578,27 +683,37 @@ export declare function defineInputRule(rule: InputRule): PlainExtension;
578
683
  /**
579
684
  * @public
580
685
  */
581
- export declare function defineItalic(): ItalicExtension;
686
+ declare function defineItalic(): ItalicExtension;
687
+ export { defineItalic }
688
+ export { defineItalic as defineItalic_alias_1 }
582
689
 
583
690
  /**
584
691
  * @internal
585
692
  */
586
- export declare function defineItalicCommands(): ItalicCommandsExtension;
693
+ declare function defineItalicCommands(): ItalicCommandsExtension;
694
+ export { defineItalicCommands }
695
+ export { defineItalicCommands as defineItalicCommands_alias_1 }
587
696
 
588
697
  /**
589
698
  * @internal
590
699
  */
591
- export declare function defineItalicInputRule(): PlainExtension;
700
+ declare function defineItalicInputRule(): PlainExtension;
701
+ export { defineItalicInputRule }
702
+ export { defineItalicInputRule as defineItalicInputRule_alias_1 }
592
703
 
593
704
  /**
594
705
  * @internal
595
706
  */
596
- export declare function defineItalicKeymap(): PlainExtension;
707
+ declare function defineItalicKeymap(): PlainExtension;
708
+ export { defineItalicKeymap }
709
+ export { defineItalicKeymap as defineItalicKeymap_alias_1 }
597
710
 
598
711
  /**
599
712
  * @internal
600
713
  */
601
- export declare function defineItalicSpec(): ItalicSpecExtension;
714
+ declare function defineItalicSpec(): ItalicSpecExtension;
715
+ export { defineItalicSpec }
716
+ export { defineItalicSpec as defineItalicSpec_alias_1 }
602
717
 
603
718
  /**
604
719
  * @public
@@ -636,7 +751,9 @@ export declare function defineLinkSpec(): LinkSpecExtension;
636
751
  /**
637
752
  * @public
638
753
  */
639
- export declare function defineList(): ListExtension;
754
+ declare function defineList(): ListExtension;
755
+ export { defineList }
756
+ export { defineList as defineList_alias_1 }
640
757
 
641
758
  /**
642
759
  * Defines list commands.
@@ -646,6 +763,7 @@ export declare function defineList(): ListExtension;
646
763
  declare function defineListCommands(): ListCommandsExtension;
647
764
  export { defineListCommands }
648
765
  export { defineListCommands as defineListCommands_alias_1 }
766
+ export { defineListCommands as defineListCommands_alias_2 }
649
767
 
650
768
  /**
651
769
  * @internal
@@ -653,6 +771,7 @@ export { defineListCommands as defineListCommands_alias_1 }
653
771
  declare function defineListInputRules(): Extension;
654
772
  export { defineListInputRules }
655
773
  export { defineListInputRules as defineListInputRules_alias_1 }
774
+ export { defineListInputRules as defineListInputRules_alias_2 }
656
775
 
657
776
  /**
658
777
  * Returns a extension that adds key bindings for list.
@@ -662,6 +781,7 @@ export { defineListInputRules as defineListInputRules_alias_1 }
662
781
  declare function defineListKeymap(): PlainExtension;
663
782
  export { defineListKeymap }
664
783
  export { defineListKeymap as defineListKeymap_alias_1 }
784
+ export { defineListKeymap as defineListKeymap_alias_2 }
665
785
 
666
786
  /**
667
787
  * @internal
@@ -669,6 +789,7 @@ export { defineListKeymap as defineListKeymap_alias_1 }
669
789
  declare function defineListPlugins(): PlainExtension;
670
790
  export { defineListPlugins }
671
791
  export { defineListPlugins as defineListPlugins_alias_1 }
792
+ export { defineListPlugins as defineListPlugins_alias_2 }
672
793
 
673
794
  /**
674
795
  * @internal
@@ -676,31 +797,39 @@ export { defineListPlugins as defineListPlugins_alias_1 }
676
797
  declare function defineListSpec(): ListSpecExtension;
677
798
  export { defineListSpec }
678
799
  export { defineListSpec as defineListSpec_alias_1 }
800
+ export { defineListSpec as defineListSpec_alias_2 }
679
801
 
680
802
  /**
681
803
  * @public
682
804
  */
683
- export declare function defineLoro(options: LoroOptions): LoroExtension;
805
+ declare function defineLoro(options: LoroOptions): LoroExtension;
806
+ export { defineLoro }
807
+ export { defineLoro as defineLoro_alias_1 }
684
808
 
685
809
  declare function defineLoroCommands(): LoroCommandsExtension;
686
810
  export { defineLoroCommands }
687
811
  export { defineLoroCommands as defineLoroCommands_alias_1 }
812
+ export { defineLoroCommands as defineLoroCommands_alias_2 }
688
813
 
689
814
  declare function defineLoroCursorPlugin(options: LoroCursorOptions): PlainExtension;
690
815
  export { defineLoroCursorPlugin }
691
816
  export { defineLoroCursorPlugin as defineLoroCursorPlugin_alias_1 }
817
+ export { defineLoroCursorPlugin as defineLoroCursorPlugin_alias_2 }
692
818
 
693
819
  declare function defineLoroKeymap(): PlainExtension;
694
820
  export { defineLoroKeymap }
695
821
  export { defineLoroKeymap as defineLoroKeymap_alias_1 }
822
+ export { defineLoroKeymap as defineLoroKeymap_alias_2 }
696
823
 
697
824
  declare function defineLoroSyncPlugin(options: LoroSyncPluginProps): PlainExtension;
698
825
  export { defineLoroSyncPlugin }
699
826
  export { defineLoroSyncPlugin as defineLoroSyncPlugin_alias_1 }
827
+ export { defineLoroSyncPlugin as defineLoroSyncPlugin_alias_2 }
700
828
 
701
829
  declare function defineLoroUndoPlugin(options: LoroUndoPluginProps): PlainExtension;
702
830
  export { defineLoroUndoPlugin }
703
831
  export { defineLoroUndoPlugin as defineLoroUndoPlugin_alias_1 }
832
+ export { defineLoroUndoPlugin as defineLoroUndoPlugin_alias_2 }
704
833
 
705
834
  /**
706
835
  * Defines an input rule for automatically adding inline marks when a given
@@ -870,7 +999,7 @@ export declare function defineTestExtension(): Union<readonly [DocExtension, Tex
870
999
  Nodes: {
871
1000
  paragraph: Attrs_2;
872
1001
  };
873
- }>, TableExtension]>;
1002
+ }>, TableExtension, HorizontalRuleExtension]>;
874
1003
 
875
1004
  /**
876
1005
  * Adds a `textAlign` attribute to the specified nodes. This will be rendered as
@@ -999,7 +1128,9 @@ export declare function defineWrappingInputRule({ regex, type, attrs, join, }: {
999
1128
  /**
1000
1129
  * @public
1001
1130
  */
1002
- export declare function defineYjs(options: YjsOptions): YjsExtension;
1131
+ declare function defineYjs(options: YjsOptions): YjsExtension;
1132
+ export { defineYjs }
1133
+ export { defineYjs as defineYjs_alias_1 }
1003
1134
 
1004
1135
  declare function defineYjsCommands(): YjsCommandsExtension;
1005
1136
  export { defineYjsCommands }
@@ -1024,9 +1155,11 @@ export { defineYjsUndoPlugin as defineYjsUndoPlugin_alias_1 }
1024
1155
  /**
1025
1156
  * @internal
1026
1157
  */
1027
- export declare type DropCursorExtension = PlainExtension;
1158
+ declare type DropCursorExtension = PlainExtension;
1159
+ export { DropCursorExtension }
1160
+ export { DropCursorExtension as DropCursorExtension_alias_1 }
1028
1161
 
1029
- export declare interface DropCursorOptions {
1162
+ declare interface DropCursorOptions {
1030
1163
  /**
1031
1164
  * The color of the cursor. Use `false` to apply no color and rely only on class.
1032
1165
  *
@@ -1044,6 +1177,8 @@ export declare interface DropCursorOptions {
1044
1177
  */
1045
1178
  class?: string;
1046
1179
  }
1180
+ export { DropCursorOptions }
1181
+ export { DropCursorOptions as DropCursorOptions_alias_1 }
1047
1182
 
1048
1183
  /**
1049
1184
  * @public
@@ -1122,7 +1257,9 @@ export { GapCursor }
1122
1257
  /**
1123
1258
  * @internal
1124
1259
  */
1125
- export declare type GapCursorExtension = PlainExtension;
1260
+ declare type GapCursorExtension = PlainExtension;
1261
+ export { GapCursorExtension }
1262
+ export { GapCursorExtension as GapCursorExtension_alias_1 }
1126
1263
 
1127
1264
  export declare function getCheckRanges(transactions: readonly Transaction[], oldState: EditorState, newState: EditorState): Array<[number, number]>;
1128
1265
 
@@ -1152,10 +1289,12 @@ export { HeadingCommandsExtension as HeadingCommandsExtension_alias_1 }
1152
1289
  /**
1153
1290
  * @internal
1154
1291
  */
1155
- export declare type HeadingExtension = Union<[
1292
+ declare type HeadingExtension = Union<[
1156
1293
  HeadingSpecExtension,
1157
1294
  HeadingCommandsExtension
1158
1295
  ]>;
1296
+ export { HeadingExtension }
1297
+ export { HeadingExtension as HeadingExtension_alias_1 }
1159
1298
 
1160
1299
  /**
1161
1300
  * @internal
@@ -1168,7 +1307,7 @@ declare type HeadingSpecExtension = Extension<{
1168
1307
  export { HeadingSpecExtension }
1169
1308
  export { HeadingSpecExtension as HeadingSpecExtension_alias_1 }
1170
1309
 
1171
- declare interface HighlighterOptions extends Omit<ShikiHighlighterOptions, 'themes' | 'langs'> {
1310
+ declare interface HighlighterOptions extends Omit<ShikiHighlighterOptions, 'langs' | 'themes'> {
1172
1311
  themes: BundledTheme[];
1173
1312
  langs: (BundledLanguage | SpecialLanguage)[];
1174
1313
  }
@@ -1192,40 +1331,79 @@ declare type HighlightParser = Parser;
1192
1331
  export { HighlightParser }
1193
1332
  export { HighlightParser as HighlightParser_alias_1 }
1194
1333
 
1334
+ declare type HorizontalRuleCommandsExtension = Extension<{
1335
+ Commands: {
1336
+ insertHorizontalRule: [];
1337
+ };
1338
+ }>;
1339
+ export { HorizontalRuleCommandsExtension }
1340
+ export { HorizontalRuleCommandsExtension as HorizontalRuleCommandsExtension_alias_1 }
1341
+
1342
+ declare type HorizontalRuleExtension = Union<[
1343
+ HorizontalRuleSpecExtension,
1344
+ HorizontalRuleCommandsExtension
1345
+ ]>;
1346
+ export { HorizontalRuleExtension }
1347
+ export { HorizontalRuleExtension as HorizontalRuleExtension_alias_1 }
1348
+
1349
+ declare type HorizontalRuleSpecExtension = Extension<{
1350
+ Nodes: {
1351
+ horizontalRule: Attrs;
1352
+ };
1353
+ }>;
1354
+ export { HorizontalRuleSpecExtension }
1355
+ export { HorizontalRuleSpecExtension as HorizontalRuleSpecExtension_alias_1 }
1356
+
1195
1357
  /**
1196
1358
  * @public
1197
1359
  */
1198
- export declare interface ImageAttrs {
1360
+ declare interface ImageAttrs {
1199
1361
  src?: string | null;
1200
1362
  }
1363
+ export { ImageAttrs }
1364
+ export { ImageAttrs as ImageAttrs_alias_1 }
1201
1365
 
1202
1366
  /**
1203
1367
  * @internal
1204
1368
  */
1205
- export declare type ImageCommandsExtension = Extension<{
1369
+ declare type ImageCommandsExtension = Extension<{
1206
1370
  Commands: {
1207
1371
  insertImage: [attrs?: ImageAttrs];
1208
1372
  };
1209
1373
  }>;
1374
+ export { ImageCommandsExtension }
1375
+ export { ImageCommandsExtension as ImageCommandsExtension_alias_1 }
1210
1376
 
1211
1377
  /**
1212
1378
  * @internal
1213
1379
  */
1214
- export declare type ImageExtension = Union<[ImageSpecExtension, ImageCommandsExtension]>;
1380
+ declare type ImageExtension = Union<[ImageSpecExtension, ImageCommandsExtension]>;
1381
+ export { ImageExtension }
1382
+ export { ImageExtension as ImageExtension_alias_1 }
1215
1383
 
1216
1384
  /**
1217
1385
  * @internal
1218
1386
  */
1219
- export declare type ImageSpecExtension = Extension<{
1387
+ declare type ImageSpecExtension = Extension<{
1220
1388
  Nodes: {
1221
1389
  image: ImageAttrs;
1222
1390
  };
1223
1391
  }>;
1392
+ export { ImageSpecExtension }
1393
+ export { ImageSpecExtension as ImageSpecExtension_alias_1 }
1224
1394
 
1225
1395
  export { IndentListOptions }
1396
+ export { IndentListOptions as IndentListOptions_alias_1 }
1226
1397
 
1227
1398
  export declare function inputText(input: string): Promise<void>;
1228
1399
 
1400
+ /**
1401
+ * Returns a command that inserts a horizontal rule at the current selection.
1402
+ */
1403
+ declare function insertHorizontalRule(): Command;
1404
+ export { insertHorizontalRule }
1405
+ export { insertHorizontalRule as insertHorizontalRule_alias_1 }
1406
+
1229
1407
  /**
1230
1408
  * Insert a table node with the given number of rows and columns, and optionally
1231
1409
  * a header row.
@@ -1261,28 +1439,34 @@ export { isCellSelection as isCellSelection_alias_1 }
1261
1439
  /**
1262
1440
  * @internal
1263
1441
  */
1264
- export declare type ItalicCommandsExtension = Extension<{
1442
+ declare type ItalicCommandsExtension = Extension<{
1265
1443
  Commands: {
1266
1444
  toggleItalic: [];
1267
1445
  };
1268
1446
  }>;
1447
+ export { ItalicCommandsExtension }
1448
+ export { ItalicCommandsExtension as ItalicCommandsExtension_alias_1 }
1269
1449
 
1270
1450
  /**
1271
1451
  * @internal
1272
1452
  */
1273
- export declare type ItalicExtension = Union<[
1453
+ declare type ItalicExtension = Union<[
1274
1454
  ItalicSpecExtension,
1275
1455
  ItalicCommandsExtension
1276
1456
  ]>;
1457
+ export { ItalicExtension }
1458
+ export { ItalicExtension as ItalicExtension_alias_1 }
1277
1459
 
1278
1460
  /**
1279
1461
  * @internal
1280
1462
  */
1281
- export declare type ItalicSpecExtension = Extension<{
1463
+ declare type ItalicSpecExtension = Extension<{
1282
1464
  Marks: {
1283
1465
  italic: Attrs;
1284
1466
  };
1285
1467
  }>;
1468
+ export { ItalicSpecExtension }
1469
+ export { ItalicSpecExtension as ItalicSpecExtension_alias_1 }
1286
1470
 
1287
1471
  export declare const LINK_ENTER_RE: RegExp;
1288
1472
 
@@ -1348,6 +1532,7 @@ declare interface ListAttrs {
1348
1532
  }
1349
1533
  export { ListAttrs }
1350
1534
  export { ListAttrs as ListAttrs_alias_1 }
1535
+ export { ListAttrs as ListAttrs_alias_2 }
1351
1536
 
1352
1537
  /**
1353
1538
  * @internal
@@ -1367,13 +1552,17 @@ declare type ListCommandsExtension = Extension<{
1367
1552
  }>;
1368
1553
  export { ListCommandsExtension }
1369
1554
  export { ListCommandsExtension as ListCommandsExtension_alias_1 }
1555
+ export { ListCommandsExtension as ListCommandsExtension_alias_2 }
1370
1556
 
1371
1557
  export { ListDOMSerializer }
1558
+ export { ListDOMSerializer as ListDOMSerializer_alias_1 }
1372
1559
 
1373
1560
  /**
1374
1561
  * @internal
1375
1562
  */
1376
- export declare type ListExtension = Union<[ListSpecExtension, ListCommandsExtension]>;
1563
+ declare type ListExtension = Union<[ListSpecExtension, ListCommandsExtension]>;
1564
+ export { ListExtension }
1565
+ export { ListExtension as ListExtension_alias_1 }
1377
1566
 
1378
1567
  /**
1379
1568
  * @internal
@@ -1385,6 +1574,7 @@ declare type ListSpecExtension = Extension<{
1385
1574
  }>;
1386
1575
  export { ListSpecExtension }
1387
1576
  export { ListSpecExtension as ListSpecExtension_alias_1 }
1577
+ export { ListSpecExtension as ListSpecExtension_alias_2 }
1388
1578
 
1389
1579
  /**
1390
1580
  * @internal
@@ -1404,13 +1594,16 @@ declare interface LoroCursorOptions {
1404
1594
  }
1405
1595
  export { LoroCursorOptions }
1406
1596
  export { LoroCursorOptions as LoroCursorOptions_alias_1 }
1597
+ export { LoroCursorOptions as LoroCursorOptions_alias_2 }
1407
1598
 
1408
1599
  /**
1409
1600
  * @internal
1410
1601
  */
1411
- export declare type LoroExtension = Union<[LoroCommandsExtension, PlainExtension]>;
1602
+ declare type LoroExtension = Union<[LoroCommandsExtension, PlainExtension]>;
1603
+ export { LoroExtension }
1604
+ export { LoroExtension as LoroExtension_alias_1 }
1412
1605
 
1413
- export declare interface LoroOptions {
1606
+ declare interface LoroOptions {
1414
1607
  /**
1415
1608
  * The Loro instance handles the state of shared data.
1416
1609
  */
@@ -1432,10 +1625,14 @@ export declare interface LoroOptions {
1432
1625
  */
1433
1626
  cursor?: Omit<LoroCursorOptions, 'awareness'>;
1434
1627
  }
1628
+ export { LoroOptions }
1629
+ export { LoroOptions as LoroOptions_alias_1 }
1435
1630
 
1436
1631
  export { LoroSyncPluginProps }
1632
+ export { LoroSyncPluginProps as LoroSyncPluginProps_alias_1 }
1437
1633
 
1438
1634
  export { LoroUndoPluginProps }
1635
+ export { LoroUndoPluginProps as LoroUndoPluginProps_alias_1 }
1439
1636
 
1440
1637
  /**
1441
1638
  * Options for {@link defineMarkInputRule}.
@@ -1702,7 +1899,7 @@ export declare function setupTest(): {
1702
1899
  Nodes: {
1703
1900
  paragraph: Attrs_2;
1704
1901
  };
1705
- }>, TableExtension]>>;
1902
+ }>, TableExtension, HorizontalRuleExtension]>>;
1706
1903
  m: ToMarkAction<SimplifyDeeper< {
1707
1904
  bold: {
1708
1905
  readonly [x: string]: any;
@@ -1754,6 +1951,9 @@ export declare function setupTest(): {
1754
1951
  heading: NodeAction< {
1755
1952
  level: number;
1756
1953
  }>;
1954
+ horizontalRule: NodeAction< {
1955
+ readonly [x: string]: any;
1956
+ }>;
1757
1957
  image: NodeAction< {
1758
1958
  src?: (string | null) | undefined;
1759
1959
  }>;
@@ -1979,6 +2179,7 @@ export declare type TextBlockEnterRuleOptions = {
1979
2179
  };
1980
2180
 
1981
2181
  export { ToggleCollapsedOptions }
2182
+ export { ToggleCollapsedOptions as ToggleCollapsedOptions_alias_1 }
1982
2183
 
1983
2184
  /**
1984
2185
  * @internal
@@ -2012,6 +2213,7 @@ export declare type UnderlineSpecExtension = Extension<{
2012
2213
  export declare const undo: Command;
2013
2214
 
2014
2215
  export { UnwrapListOptions }
2216
+ export { UnwrapListOptions as UnwrapListOptions_alias_1 }
2015
2217
 
2016
2218
  /**
2017
2219
  * @internal
@@ -2019,6 +2221,7 @@ export { UnwrapListOptions }
2019
2221
  export declare type VirtualSelectionExtension = PlainExtension;
2020
2222
 
2021
2223
  export { WrapInListGetAttrs }
2224
+ export { WrapInListGetAttrs as WrapInListGetAttrs_alias_1 }
2022
2225
 
2023
2226
  /**
2024
2227
  * @internal
@@ -2046,9 +2249,11 @@ export { YjsCursorPluginOptions as YjsCursorPluginOptions_alias_1 }
2046
2249
  /**
2047
2250
  * @internal
2048
2251
  */
2049
- export declare type YjsExtension = Union<[YjsCommandsExtension, PlainExtension]>;
2252
+ declare type YjsExtension = Union<[YjsCommandsExtension, PlainExtension]>;
2253
+ export { YjsExtension }
2254
+ export { YjsExtension as YjsExtension_alias_1 }
2050
2255
 
2051
- export declare interface YjsOptions {
2256
+ declare interface YjsOptions {
2052
2257
  /**
2053
2258
  * The Yjs instance handles the state of shared data.
2054
2259
  */
@@ -2075,6 +2280,8 @@ export declare interface YjsOptions {
2075
2280
  */
2076
2281
  cursor?: YjsCursorPluginOptions;
2077
2282
  }
2283
+ export { YjsOptions }
2284
+ export { YjsOptions as YjsOptions_alias_1 }
2078
2285
 
2079
2286
  declare interface YjsSyncOptions extends YjsSyncPluginOptions {
2080
2287
  fragment: Y.XmlFragment;