@prosekit/extensions 0.7.16 → 0.7.18

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 (36) hide show
  1. package/dist/_tsup-dts-rollup.d.ts +233 -55
  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 +6 -6
  6. package/dist/prosekit-extensions-blockquote.js +6 -6
  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-placeholder.js +6 -3
  33. package/dist/prosekit-extensions-yjs.d.ts +6 -6
  34. package/dist/prosekit-extensions-yjs.js +8 -8
  35. package/package.json +18 -10
  36. /package/dist/{shiki-highlighter-chunk-C5VVQ2TD.js → shiki-highlighter-chunk.js} +0 -0
@@ -103,10 +103,12 @@ export { BlockquoteCommandsExtension as BlockquoteCommandsExtension_alias_1 }
103
103
  /**
104
104
  * @internal
105
105
  */
106
- export declare type BlockquoteExtension = Union<[
106
+ declare type BlockquoteExtension = Union<[
107
107
  BlockquoteSpecExtension,
108
108
  BlockquoteCommandsExtension
109
109
  ]>;
110
+ export { BlockquoteExtension }
111
+ export { BlockquoteExtension as BlockquoteExtension_alias_1 }
110
112
 
111
113
  declare type BlockquoteSpecExtension = Extension<{
112
114
  Nodes: {
@@ -119,25 +121,31 @@ export { BlockquoteSpecExtension as BlockquoteSpecExtension_alias_1 }
119
121
  /**
120
122
  * @internal
121
123
  */
122
- export declare type BoldCommandsExtension = Extension<{
124
+ declare type BoldCommandsExtension = Extension<{
123
125
  Commands: {
124
126
  toggleBold: [];
125
127
  };
126
128
  }>;
129
+ export { BoldCommandsExtension }
130
+ export { BoldCommandsExtension as BoldCommandsExtension_alias_1 }
127
131
 
128
132
  /**
129
133
  * @internal
130
134
  */
131
- export declare type BoldExtension = Union<[BoldSpecExtension, BoldCommandsExtension]>;
135
+ declare type BoldExtension = Union<[BoldSpecExtension, BoldCommandsExtension]>;
136
+ export { BoldExtension }
137
+ export { BoldExtension as BoldExtension_alias_1 }
132
138
 
133
139
  /**
134
140
  * @internal
135
141
  */
136
- export declare type BoldSpecExtension = Extension<{
142
+ declare type BoldSpecExtension = Extension<{
137
143
  Marks: {
138
144
  bold: Attrs;
139
145
  };
140
146
  }>;
147
+ export { BoldSpecExtension }
148
+ export { BoldSpecExtension as BoldSpecExtension_alias_1 }
141
149
 
142
150
  export { BundledLanguage as ShikiBundledLanguage }
143
151
  export { BundledLanguage as ShikiBundledLanguage_alias_1 }
@@ -249,25 +257,31 @@ export { CodeBlockSpecExtension as CodeBlockSpecExtension_alias_1 }
249
257
  /**
250
258
  * @internal
251
259
  */
252
- export declare type CodeCommandsExtension = Extension<{
260
+ declare type CodeCommandsExtension = Extension<{
253
261
  Commands: {
254
262
  toggleCode: [];
255
263
  };
256
264
  }>;
265
+ export { CodeCommandsExtension }
266
+ export { CodeCommandsExtension as CodeCommandsExtension_alias_1 }
257
267
 
258
268
  /**
259
269
  * @internal
260
270
  */
261
- export declare type CodeExtension = Union<[CodeSpecExtension, CodeCommandsExtension]>;
271
+ declare type CodeExtension = Union<[CodeSpecExtension, CodeCommandsExtension]>;
272
+ export { CodeExtension }
273
+ export { CodeExtension as CodeExtension_alias_1 }
262
274
 
263
275
  /**
264
276
  * @internal
265
277
  */
266
- export declare type CodeSpecExtension = Extension<{
278
+ declare type CodeSpecExtension = Extension<{
267
279
  Marks: {
268
280
  code: Attrs;
269
281
  };
270
282
  }>;
283
+ export { CodeSpecExtension }
284
+ export { CodeSpecExtension as CodeSpecExtension_alias_1 }
271
285
 
272
286
  /**
273
287
  * A JSON representation of a commit.
@@ -326,6 +340,7 @@ export declare function createOrGetHighlighter(options: HighlighterOptions): Hig
326
340
  export declare function createOrGetHighlighter_alias_1(options: HighlighterOptions): HighlighterResult;
327
341
 
328
342
  export { DedentListOptions }
343
+ export { DedentListOptions as DedentListOptions_alias_1 }
329
344
 
330
345
  export declare const default_alias: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
331
346
 
@@ -335,12 +350,16 @@ export declare function defaultCanMatch({ state }: {
335
350
  state: EditorState;
336
351
  }): boolean;
337
352
 
338
- export declare function defineAutocomplete(rule: AutocompleteRule): Extension;
353
+ declare function defineAutocomplete(rule: AutocompleteRule): Extension;
354
+ export { defineAutocomplete }
355
+ export { defineAutocomplete as defineAutocomplete_alias_1 }
339
356
 
340
357
  /**
341
358
  * @public
342
359
  */
343
- export declare function defineBlockquote(): BlockquoteExtension;
360
+ declare function defineBlockquote(): BlockquoteExtension;
361
+ export { defineBlockquote }
362
+ export { defineBlockquote as defineBlockquote_alias_1 }
344
363
 
345
364
  /**
346
365
  * @internal
@@ -371,32 +390,44 @@ export { defineBlockquoteSpec as defineBlockquoteSpec_alias_1 }
371
390
  /**
372
391
  * @public
373
392
  */
374
- export declare function defineBold(): BoldExtension;
393
+ declare function defineBold(): BoldExtension;
394
+ export { defineBold }
395
+ export { defineBold as defineBold_alias_1 }
375
396
 
376
397
  /**
377
398
  * @internal
378
399
  */
379
- export declare function defineBoldCommands(): BoldCommandsExtension;
400
+ declare function defineBoldCommands(): BoldCommandsExtension;
401
+ export { defineBoldCommands }
402
+ export { defineBoldCommands as defineBoldCommands_alias_1 }
380
403
 
381
404
  /**
382
405
  * @internal
383
406
  */
384
- export declare function defineBoldInputRule(): PlainExtension;
407
+ declare function defineBoldInputRule(): PlainExtension;
408
+ export { defineBoldInputRule }
409
+ export { defineBoldInputRule as defineBoldInputRule_alias_1 }
385
410
 
386
411
  /**
387
412
  * @internal
388
413
  */
389
- export declare function defineBoldKeymap(): PlainExtension;
414
+ declare function defineBoldKeymap(): PlainExtension;
415
+ export { defineBoldKeymap }
416
+ export { defineBoldKeymap as defineBoldKeymap_alias_1 }
390
417
 
391
418
  /**
392
419
  * @internal
393
420
  */
394
- export declare function defineBoldSpec(): BoldSpecExtension;
421
+ declare function defineBoldSpec(): BoldSpecExtension;
422
+ export { defineBoldSpec }
423
+ export { defineBoldSpec as defineBoldSpec_alias_1 }
395
424
 
396
425
  /**
397
426
  * @public
398
427
  */
399
- export declare function defineCode(): CodeExtension;
428
+ declare function defineCode(): CodeExtension;
429
+ export { defineCode }
430
+ export { defineCode as defineCode_alias_1 }
400
431
 
401
432
  /**
402
433
  * Adds `codeBlock` nodes to the editor. This includes the following extensions:
@@ -457,7 +488,9 @@ export { defineCodeBlockInputRule as defineCodeBlockInputRule_alias_1 }
457
488
  /**
458
489
  * Defines the keymap for code blocks.
459
490
  */
460
- export declare function defineCodeBlockKeymap(): PlainExtension;
491
+ declare function defineCodeBlockKeymap(): PlainExtension;
492
+ export { defineCodeBlockKeymap }
493
+ export { defineCodeBlockKeymap as defineCodeBlockKeymap_alias_1 }
461
494
 
462
495
  /**
463
496
  * Adds syntax highlighting to code blocks using the [Shiki](https://github.com/shikijs/shiki) package.
@@ -482,22 +515,30 @@ export { defineCodeBlockSpec as defineCodeBlockSpec_alias_1 }
482
515
  /**
483
516
  * @internal
484
517
  */
485
- export declare function defineCodeCommands(): CodeCommandsExtension;
518
+ declare function defineCodeCommands(): CodeCommandsExtension;
519
+ export { defineCodeCommands }
520
+ export { defineCodeCommands as defineCodeCommands_alias_1 }
486
521
 
487
522
  /**
488
523
  * @internal
489
524
  */
490
- export declare function defineCodeInputRule(): PlainExtension;
525
+ declare function defineCodeInputRule(): PlainExtension;
526
+ export { defineCodeInputRule }
527
+ export { defineCodeInputRule as defineCodeInputRule_alias_1 }
491
528
 
492
529
  /**
493
530
  * @internal
494
531
  */
495
- export declare function defineCodeKeymap(): PlainExtension;
532
+ declare function defineCodeKeymap(): PlainExtension;
533
+ export { defineCodeKeymap }
534
+ export { defineCodeKeymap as defineCodeKeymap_alias_1 }
496
535
 
497
536
  /**
498
537
  * @internal
499
538
  */
500
- export declare function defineCodeSpec(): CodeSpecExtension;
539
+ declare function defineCodeSpec(): CodeSpecExtension;
540
+ export { defineCodeSpec }
541
+ export { defineCodeSpec as defineCodeSpec_alias_1 }
501
542
 
502
543
  /**
503
544
  * Define an extension that can record the changes in the editor.
@@ -516,7 +557,9 @@ export declare function defineCommitViewer(commit: Commit): PlainExtension;
516
557
  *
517
558
  * @public
518
559
  */
519
- export declare function defineDropCursor(options?: DropCursorOptions): DropCursorExtension;
560
+ declare function defineDropCursor(options?: DropCursorOptions): DropCursorExtension;
561
+ export { defineDropCursor }
562
+ export { defineDropCursor as defineDropCursor_alias_1 }
520
563
 
521
564
  /**
522
565
  * Defines an enter rule. An enter rule applies when the text directly in front of
@@ -543,12 +586,16 @@ export declare function defineEnterRule({ regex, handler, stop, }: EnterRuleOpti
543
586
  *
544
587
  * @public
545
588
  */
546
- export declare function defineGapCursor(): GapCursorExtension;
589
+ declare function defineGapCursor(): GapCursorExtension;
590
+ export { defineGapCursor }
591
+ export { defineGapCursor as defineGapCursor_alias_1 }
547
592
 
548
593
  /**
549
594
  * @public
550
595
  */
551
- export declare function defineHeading(): HeadingExtension;
596
+ declare function defineHeading(): HeadingExtension;
597
+ export { defineHeading }
598
+ export { defineHeading as defineHeading_alias_1 }
552
599
 
553
600
  /**
554
601
  * @internal
@@ -584,17 +631,45 @@ export { defineHeadingSpec as defineHeadingSpec_alias_1 }
584
631
  /**
585
632
  * @public
586
633
  */
587
- 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 }
588
659
 
589
660
  /**
590
661
  * @internal
591
662
  */
592
- export declare function defineImageCommands(): ImageCommandsExtension;
663
+ declare function defineImageCommands(): ImageCommandsExtension;
664
+ export { defineImageCommands }
665
+ export { defineImageCommands as defineImageCommands_alias_1 }
593
666
 
594
667
  /**
595
668
  * @internal
596
669
  */
597
- export declare function defineImageSpec(): ImageSpecExtension;
670
+ declare function defineImageSpec(): ImageSpecExtension;
671
+ export { defineImageSpec }
672
+ export { defineImageSpec as defineImageSpec_alias_1 }
598
673
 
599
674
  /**
600
675
  * Defines an input rule extension.
@@ -608,27 +683,37 @@ export declare function defineInputRule(rule: InputRule): PlainExtension;
608
683
  /**
609
684
  * @public
610
685
  */
611
- export declare function defineItalic(): ItalicExtension;
686
+ declare function defineItalic(): ItalicExtension;
687
+ export { defineItalic }
688
+ export { defineItalic as defineItalic_alias_1 }
612
689
 
613
690
  /**
614
691
  * @internal
615
692
  */
616
- export declare function defineItalicCommands(): ItalicCommandsExtension;
693
+ declare function defineItalicCommands(): ItalicCommandsExtension;
694
+ export { defineItalicCommands }
695
+ export { defineItalicCommands as defineItalicCommands_alias_1 }
617
696
 
618
697
  /**
619
698
  * @internal
620
699
  */
621
- export declare function defineItalicInputRule(): PlainExtension;
700
+ declare function defineItalicInputRule(): PlainExtension;
701
+ export { defineItalicInputRule }
702
+ export { defineItalicInputRule as defineItalicInputRule_alias_1 }
622
703
 
623
704
  /**
624
705
  * @internal
625
706
  */
626
- export declare function defineItalicKeymap(): PlainExtension;
707
+ declare function defineItalicKeymap(): PlainExtension;
708
+ export { defineItalicKeymap }
709
+ export { defineItalicKeymap as defineItalicKeymap_alias_1 }
627
710
 
628
711
  /**
629
712
  * @internal
630
713
  */
631
- export declare function defineItalicSpec(): ItalicSpecExtension;
714
+ declare function defineItalicSpec(): ItalicSpecExtension;
715
+ export { defineItalicSpec }
716
+ export { defineItalicSpec as defineItalicSpec_alias_1 }
632
717
 
633
718
  /**
634
719
  * @public
@@ -666,7 +751,9 @@ export declare function defineLinkSpec(): LinkSpecExtension;
666
751
  /**
667
752
  * @public
668
753
  */
669
- export declare function defineList(): ListExtension;
754
+ declare function defineList(): ListExtension;
755
+ export { defineList }
756
+ export { defineList as defineList_alias_1 }
670
757
 
671
758
  /**
672
759
  * Defines list commands.
@@ -676,6 +763,7 @@ export declare function defineList(): ListExtension;
676
763
  declare function defineListCommands(): ListCommandsExtension;
677
764
  export { defineListCommands }
678
765
  export { defineListCommands as defineListCommands_alias_1 }
766
+ export { defineListCommands as defineListCommands_alias_2 }
679
767
 
680
768
  /**
681
769
  * @internal
@@ -683,6 +771,7 @@ export { defineListCommands as defineListCommands_alias_1 }
683
771
  declare function defineListInputRules(): Extension;
684
772
  export { defineListInputRules }
685
773
  export { defineListInputRules as defineListInputRules_alias_1 }
774
+ export { defineListInputRules as defineListInputRules_alias_2 }
686
775
 
687
776
  /**
688
777
  * Returns a extension that adds key bindings for list.
@@ -692,6 +781,7 @@ export { defineListInputRules as defineListInputRules_alias_1 }
692
781
  declare function defineListKeymap(): PlainExtension;
693
782
  export { defineListKeymap }
694
783
  export { defineListKeymap as defineListKeymap_alias_1 }
784
+ export { defineListKeymap as defineListKeymap_alias_2 }
695
785
 
696
786
  /**
697
787
  * @internal
@@ -699,6 +789,7 @@ export { defineListKeymap as defineListKeymap_alias_1 }
699
789
  declare function defineListPlugins(): PlainExtension;
700
790
  export { defineListPlugins }
701
791
  export { defineListPlugins as defineListPlugins_alias_1 }
792
+ export { defineListPlugins as defineListPlugins_alias_2 }
702
793
 
703
794
  /**
704
795
  * @internal
@@ -706,31 +797,39 @@ export { defineListPlugins as defineListPlugins_alias_1 }
706
797
  declare function defineListSpec(): ListSpecExtension;
707
798
  export { defineListSpec }
708
799
  export { defineListSpec as defineListSpec_alias_1 }
800
+ export { defineListSpec as defineListSpec_alias_2 }
709
801
 
710
802
  /**
711
803
  * @public
712
804
  */
713
- export declare function defineLoro(options: LoroOptions): LoroExtension;
805
+ declare function defineLoro(options: LoroOptions): LoroExtension;
806
+ export { defineLoro }
807
+ export { defineLoro as defineLoro_alias_1 }
714
808
 
715
809
  declare function defineLoroCommands(): LoroCommandsExtension;
716
810
  export { defineLoroCommands }
717
811
  export { defineLoroCommands as defineLoroCommands_alias_1 }
812
+ export { defineLoroCommands as defineLoroCommands_alias_2 }
718
813
 
719
814
  declare function defineLoroCursorPlugin(options: LoroCursorOptions): PlainExtension;
720
815
  export { defineLoroCursorPlugin }
721
816
  export { defineLoroCursorPlugin as defineLoroCursorPlugin_alias_1 }
817
+ export { defineLoroCursorPlugin as defineLoroCursorPlugin_alias_2 }
722
818
 
723
819
  declare function defineLoroKeymap(): PlainExtension;
724
820
  export { defineLoroKeymap }
725
821
  export { defineLoroKeymap as defineLoroKeymap_alias_1 }
822
+ export { defineLoroKeymap as defineLoroKeymap_alias_2 }
726
823
 
727
824
  declare function defineLoroSyncPlugin(options: LoroSyncPluginProps): PlainExtension;
728
825
  export { defineLoroSyncPlugin }
729
826
  export { defineLoroSyncPlugin as defineLoroSyncPlugin_alias_1 }
827
+ export { defineLoroSyncPlugin as defineLoroSyncPlugin_alias_2 }
730
828
 
731
829
  declare function defineLoroUndoPlugin(options: LoroUndoPluginProps): PlainExtension;
732
830
  export { defineLoroUndoPlugin }
733
831
  export { defineLoroUndoPlugin as defineLoroUndoPlugin_alias_1 }
832
+ export { defineLoroUndoPlugin as defineLoroUndoPlugin_alias_2 }
734
833
 
735
834
  /**
736
835
  * Defines an input rule for automatically adding inline marks when a given
@@ -900,7 +999,7 @@ export declare function defineTestExtension(): Union<readonly [DocExtension, Tex
900
999
  Nodes: {
901
1000
  paragraph: Attrs_2;
902
1001
  };
903
- }>, TableExtension]>;
1002
+ }>, TableExtension, HorizontalRuleExtension]>;
904
1003
 
905
1004
  /**
906
1005
  * Adds a `textAlign` attribute to the specified nodes. This will be rendered as
@@ -1029,7 +1128,9 @@ export declare function defineWrappingInputRule({ regex, type, attrs, join, }: {
1029
1128
  /**
1030
1129
  * @public
1031
1130
  */
1032
- export declare function defineYjs(options: YjsOptions): YjsExtension;
1131
+ declare function defineYjs(options: YjsOptions): YjsExtension;
1132
+ export { defineYjs }
1133
+ export { defineYjs as defineYjs_alias_1 }
1033
1134
 
1034
1135
  declare function defineYjsCommands(): YjsCommandsExtension;
1035
1136
  export { defineYjsCommands }
@@ -1054,9 +1155,11 @@ export { defineYjsUndoPlugin as defineYjsUndoPlugin_alias_1 }
1054
1155
  /**
1055
1156
  * @internal
1056
1157
  */
1057
- export declare type DropCursorExtension = PlainExtension;
1158
+ declare type DropCursorExtension = PlainExtension;
1159
+ export { DropCursorExtension }
1160
+ export { DropCursorExtension as DropCursorExtension_alias_1 }
1058
1161
 
1059
- export declare interface DropCursorOptions {
1162
+ declare interface DropCursorOptions {
1060
1163
  /**
1061
1164
  * The color of the cursor. Use `false` to apply no color and rely only on class.
1062
1165
  *
@@ -1074,6 +1177,8 @@ export declare interface DropCursorOptions {
1074
1177
  */
1075
1178
  class?: string;
1076
1179
  }
1180
+ export { DropCursorOptions }
1181
+ export { DropCursorOptions as DropCursorOptions_alias_1 }
1077
1182
 
1078
1183
  /**
1079
1184
  * @public
@@ -1152,7 +1257,9 @@ export { GapCursor }
1152
1257
  /**
1153
1258
  * @internal
1154
1259
  */
1155
- export declare type GapCursorExtension = PlainExtension;
1260
+ declare type GapCursorExtension = PlainExtension;
1261
+ export { GapCursorExtension }
1262
+ export { GapCursorExtension as GapCursorExtension_alias_1 }
1156
1263
 
1157
1264
  export declare function getCheckRanges(transactions: readonly Transaction[], oldState: EditorState, newState: EditorState): Array<[number, number]>;
1158
1265
 
@@ -1182,10 +1289,12 @@ export { HeadingCommandsExtension as HeadingCommandsExtension_alias_1 }
1182
1289
  /**
1183
1290
  * @internal
1184
1291
  */
1185
- export declare type HeadingExtension = Union<[
1292
+ declare type HeadingExtension = Union<[
1186
1293
  HeadingSpecExtension,
1187
1294
  HeadingCommandsExtension
1188
1295
  ]>;
1296
+ export { HeadingExtension }
1297
+ export { HeadingExtension as HeadingExtension_alias_1 }
1189
1298
 
1190
1299
  /**
1191
1300
  * @internal
@@ -1198,7 +1307,7 @@ declare type HeadingSpecExtension = Extension<{
1198
1307
  export { HeadingSpecExtension }
1199
1308
  export { HeadingSpecExtension as HeadingSpecExtension_alias_1 }
1200
1309
 
1201
- declare interface HighlighterOptions extends Omit<ShikiHighlighterOptions, 'themes' | 'langs'> {
1310
+ declare interface HighlighterOptions extends Omit<ShikiHighlighterOptions, 'langs' | 'themes'> {
1202
1311
  themes: BundledTheme[];
1203
1312
  langs: (BundledLanguage | SpecialLanguage)[];
1204
1313
  }
@@ -1222,40 +1331,79 @@ declare type HighlightParser = Parser;
1222
1331
  export { HighlightParser }
1223
1332
  export { HighlightParser as HighlightParser_alias_1 }
1224
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
+
1225
1357
  /**
1226
1358
  * @public
1227
1359
  */
1228
- export declare interface ImageAttrs {
1360
+ declare interface ImageAttrs {
1229
1361
  src?: string | null;
1230
1362
  }
1363
+ export { ImageAttrs }
1364
+ export { ImageAttrs as ImageAttrs_alias_1 }
1231
1365
 
1232
1366
  /**
1233
1367
  * @internal
1234
1368
  */
1235
- export declare type ImageCommandsExtension = Extension<{
1369
+ declare type ImageCommandsExtension = Extension<{
1236
1370
  Commands: {
1237
1371
  insertImage: [attrs?: ImageAttrs];
1238
1372
  };
1239
1373
  }>;
1374
+ export { ImageCommandsExtension }
1375
+ export { ImageCommandsExtension as ImageCommandsExtension_alias_1 }
1240
1376
 
1241
1377
  /**
1242
1378
  * @internal
1243
1379
  */
1244
- export declare type ImageExtension = Union<[ImageSpecExtension, ImageCommandsExtension]>;
1380
+ declare type ImageExtension = Union<[ImageSpecExtension, ImageCommandsExtension]>;
1381
+ export { ImageExtension }
1382
+ export { ImageExtension as ImageExtension_alias_1 }
1245
1383
 
1246
1384
  /**
1247
1385
  * @internal
1248
1386
  */
1249
- export declare type ImageSpecExtension = Extension<{
1387
+ declare type ImageSpecExtension = Extension<{
1250
1388
  Nodes: {
1251
1389
  image: ImageAttrs;
1252
1390
  };
1253
1391
  }>;
1392
+ export { ImageSpecExtension }
1393
+ export { ImageSpecExtension as ImageSpecExtension_alias_1 }
1254
1394
 
1255
1395
  export { IndentListOptions }
1396
+ export { IndentListOptions as IndentListOptions_alias_1 }
1256
1397
 
1257
1398
  export declare function inputText(input: string): Promise<void>;
1258
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
+
1259
1407
  /**
1260
1408
  * Insert a table node with the given number of rows and columns, and optionally
1261
1409
  * a header row.
@@ -1291,28 +1439,34 @@ export { isCellSelection as isCellSelection_alias_1 }
1291
1439
  /**
1292
1440
  * @internal
1293
1441
  */
1294
- export declare type ItalicCommandsExtension = Extension<{
1442
+ declare type ItalicCommandsExtension = Extension<{
1295
1443
  Commands: {
1296
1444
  toggleItalic: [];
1297
1445
  };
1298
1446
  }>;
1447
+ export { ItalicCommandsExtension }
1448
+ export { ItalicCommandsExtension as ItalicCommandsExtension_alias_1 }
1299
1449
 
1300
1450
  /**
1301
1451
  * @internal
1302
1452
  */
1303
- export declare type ItalicExtension = Union<[
1453
+ declare type ItalicExtension = Union<[
1304
1454
  ItalicSpecExtension,
1305
1455
  ItalicCommandsExtension
1306
1456
  ]>;
1457
+ export { ItalicExtension }
1458
+ export { ItalicExtension as ItalicExtension_alias_1 }
1307
1459
 
1308
1460
  /**
1309
1461
  * @internal
1310
1462
  */
1311
- export declare type ItalicSpecExtension = Extension<{
1463
+ declare type ItalicSpecExtension = Extension<{
1312
1464
  Marks: {
1313
1465
  italic: Attrs;
1314
1466
  };
1315
1467
  }>;
1468
+ export { ItalicSpecExtension }
1469
+ export { ItalicSpecExtension as ItalicSpecExtension_alias_1 }
1316
1470
 
1317
1471
  export declare const LINK_ENTER_RE: RegExp;
1318
1472
 
@@ -1378,6 +1532,7 @@ declare interface ListAttrs {
1378
1532
  }
1379
1533
  export { ListAttrs }
1380
1534
  export { ListAttrs as ListAttrs_alias_1 }
1535
+ export { ListAttrs as ListAttrs_alias_2 }
1381
1536
 
1382
1537
  /**
1383
1538
  * @internal
@@ -1397,13 +1552,17 @@ declare type ListCommandsExtension = Extension<{
1397
1552
  }>;
1398
1553
  export { ListCommandsExtension }
1399
1554
  export { ListCommandsExtension as ListCommandsExtension_alias_1 }
1555
+ export { ListCommandsExtension as ListCommandsExtension_alias_2 }
1400
1556
 
1401
1557
  export { ListDOMSerializer }
1558
+ export { ListDOMSerializer as ListDOMSerializer_alias_1 }
1402
1559
 
1403
1560
  /**
1404
1561
  * @internal
1405
1562
  */
1406
- export declare type ListExtension = Union<[ListSpecExtension, ListCommandsExtension]>;
1563
+ declare type ListExtension = Union<[ListSpecExtension, ListCommandsExtension]>;
1564
+ export { ListExtension }
1565
+ export { ListExtension as ListExtension_alias_1 }
1407
1566
 
1408
1567
  /**
1409
1568
  * @internal
@@ -1415,6 +1574,7 @@ declare type ListSpecExtension = Extension<{
1415
1574
  }>;
1416
1575
  export { ListSpecExtension }
1417
1576
  export { ListSpecExtension as ListSpecExtension_alias_1 }
1577
+ export { ListSpecExtension as ListSpecExtension_alias_2 }
1418
1578
 
1419
1579
  /**
1420
1580
  * @internal
@@ -1434,13 +1594,16 @@ declare interface LoroCursorOptions {
1434
1594
  }
1435
1595
  export { LoroCursorOptions }
1436
1596
  export { LoroCursorOptions as LoroCursorOptions_alias_1 }
1597
+ export { LoroCursorOptions as LoroCursorOptions_alias_2 }
1437
1598
 
1438
1599
  /**
1439
1600
  * @internal
1440
1601
  */
1441
- export declare type LoroExtension = Union<[LoroCommandsExtension, PlainExtension]>;
1602
+ declare type LoroExtension = Union<[LoroCommandsExtension, PlainExtension]>;
1603
+ export { LoroExtension }
1604
+ export { LoroExtension as LoroExtension_alias_1 }
1442
1605
 
1443
- export declare interface LoroOptions {
1606
+ declare interface LoroOptions {
1444
1607
  /**
1445
1608
  * The Loro instance handles the state of shared data.
1446
1609
  */
@@ -1462,10 +1625,14 @@ export declare interface LoroOptions {
1462
1625
  */
1463
1626
  cursor?: Omit<LoroCursorOptions, 'awareness'>;
1464
1627
  }
1628
+ export { LoroOptions }
1629
+ export { LoroOptions as LoroOptions_alias_1 }
1465
1630
 
1466
1631
  export { LoroSyncPluginProps }
1632
+ export { LoroSyncPluginProps as LoroSyncPluginProps_alias_1 }
1467
1633
 
1468
1634
  export { LoroUndoPluginProps }
1635
+ export { LoroUndoPluginProps as LoroUndoPluginProps_alias_1 }
1469
1636
 
1470
1637
  /**
1471
1638
  * Options for {@link defineMarkInputRule}.
@@ -1539,9 +1706,10 @@ export declare type ModClickPreventionExtension = PlainExtension;
1539
1706
 
1540
1707
  export declare interface PlaceholderOptions {
1541
1708
  /**
1542
- * The placeholder text to use.
1709
+ * The placeholder to use. It can be a static string or a function that
1710
+ * receives the current editor state and returns a string.
1543
1711
  */
1544
- placeholder: string;
1712
+ placeholder: string | ((state: EditorState) => string);
1545
1713
  /**
1546
1714
  * By default, the placeholder text will be shown whenever the current text
1547
1715
  * cursor is in an empty text node. If you only want to show the placeholder
@@ -1732,7 +1900,7 @@ export declare function setupTest(): {
1732
1900
  Nodes: {
1733
1901
  paragraph: Attrs_2;
1734
1902
  };
1735
- }>, TableExtension]>>;
1903
+ }>, TableExtension, HorizontalRuleExtension]>>;
1736
1904
  m: ToMarkAction<SimplifyDeeper< {
1737
1905
  bold: {
1738
1906
  readonly [x: string]: any;
@@ -1784,6 +1952,9 @@ export declare function setupTest(): {
1784
1952
  heading: NodeAction< {
1785
1953
  level: number;
1786
1954
  }>;
1955
+ horizontalRule: NodeAction< {
1956
+ readonly [x: string]: any;
1957
+ }>;
1787
1958
  image: NodeAction< {
1788
1959
  src?: (string | null) | undefined;
1789
1960
  }>;
@@ -2009,6 +2180,7 @@ export declare type TextBlockEnterRuleOptions = {
2009
2180
  };
2010
2181
 
2011
2182
  export { ToggleCollapsedOptions }
2183
+ export { ToggleCollapsedOptions as ToggleCollapsedOptions_alias_1 }
2012
2184
 
2013
2185
  /**
2014
2186
  * @internal
@@ -2042,6 +2214,7 @@ export declare type UnderlineSpecExtension = Extension<{
2042
2214
  export declare const undo: Command;
2043
2215
 
2044
2216
  export { UnwrapListOptions }
2217
+ export { UnwrapListOptions as UnwrapListOptions_alias_1 }
2045
2218
 
2046
2219
  /**
2047
2220
  * @internal
@@ -2049,6 +2222,7 @@ export { UnwrapListOptions }
2049
2222
  export declare type VirtualSelectionExtension = PlainExtension;
2050
2223
 
2051
2224
  export { WrapInListGetAttrs }
2225
+ export { WrapInListGetAttrs as WrapInListGetAttrs_alias_1 }
2052
2226
 
2053
2227
  /**
2054
2228
  * @internal
@@ -2076,9 +2250,11 @@ export { YjsCursorPluginOptions as YjsCursorPluginOptions_alias_1 }
2076
2250
  /**
2077
2251
  * @internal
2078
2252
  */
2079
- export declare type YjsExtension = Union<[YjsCommandsExtension, PlainExtension]>;
2253
+ declare type YjsExtension = Union<[YjsCommandsExtension, PlainExtension]>;
2254
+ export { YjsExtension }
2255
+ export { YjsExtension as YjsExtension_alias_1 }
2080
2256
 
2081
- export declare interface YjsOptions {
2257
+ declare interface YjsOptions {
2082
2258
  /**
2083
2259
  * The Yjs instance handles the state of shared data.
2084
2260
  */
@@ -2105,6 +2281,8 @@ export declare interface YjsOptions {
2105
2281
  */
2106
2282
  cursor?: YjsCursorPluginOptions;
2107
2283
  }
2284
+ export { YjsOptions }
2285
+ export { YjsOptions as YjsOptions_alias_1 }
2108
2286
 
2109
2287
  declare interface YjsSyncOptions extends YjsSyncPluginOptions {
2110
2288
  fragment: Y.XmlFragment;