@prosekit/extensions 0.0.0-next-20240724155246 → 0.0.0-next-20240724173606

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.
@@ -1,6 +1,7 @@
1
- import { AddMarkOptions } from '@prosekit/core';
2
- import { Attrs } from 'prosemirror-model';
3
- import { Attrs as Attrs_2 } from '@prosekit/pm/model';
1
+ import { Attrs } from '@prosekit/pm/model';
2
+ import { Attrs as Attrs_2 } from 'prosemirror-model';
3
+ import { BaseCommandsExtension } from '@prosekit/core';
4
+ import { BaseKeymapExtension } from '@prosekit/core';
4
5
  import { BundledLanguage } from 'shiki';
5
6
  import { BundledLanguageInfo } from 'shiki';
6
7
  import { bundledLanguagesInfo } from 'shiki';
@@ -10,6 +11,7 @@ import { bundledThemesInfo } from 'shiki';
10
11
  import { Command } from '@prosekit/pm/state';
11
12
  import { DedentListOptions } from 'prosemirror-flat-list';
12
13
  import { config as default_alias_1 } from '@prosekit/dev/config-vitest';
14
+ import { DocExtension } from '@prosekit/core';
13
15
  import { EditorState } from '@prosekit/pm/state';
14
16
  import { Extension } from '@prosekit/core';
15
17
  import { ExtensionTyping } from '@prosekit/core';
@@ -18,11 +20,11 @@ import { ExtractNodeActions } from '@prosekit/core';
18
20
  import { GapCursor } from 'prosemirror-gapcursor';
19
21
  import { getSingletonHighlighter } from 'shiki/bundle/full';
20
22
  import type { Highlighter } from 'shiki';
23
+ import { HistoryExtension } from '@prosekit/core';
21
24
  import { IndentListOptions } from 'prosemirror-flat-list';
22
25
  import { InputRule } from '@prosekit/pm/inputrules';
23
- import { InsertNodeOptions } from '@prosekit/core';
24
26
  import type { IsEqual } from 'type-fest';
25
- import { ListAttributes } from 'prosemirror-flat-list';
27
+ import type { ListAttributes } from 'prosemirror-flat-list';
26
28
  import { ListDOMSerializer } from 'prosemirror-flat-list';
27
29
  import { MarkType } from '@prosekit/pm/model';
28
30
  import { Node as Node_2 } from 'prosemirror-model';
@@ -33,25 +35,20 @@ import { NodeType } from '@prosekit/pm/model';
33
35
  import { Options } from 'tsup';
34
36
  import { Parser } from 'prosemirror-highlight';
35
37
  import { Plugin as Plugin_2 } from '@prosekit/pm/state';
38
+ import { PluginExtension } from '@prosekit/core';
36
39
  import { PluginKey } from '@prosekit/pm/state';
37
40
  import { ProseMirrorNode } from '@prosekit/pm/model';
38
- import { RemoveMarkOptions } from '@prosekit/core';
39
- import { RemoveNodeOptions } from '@prosekit/core';
40
- import { SetBlockTypeOptions } from '@prosekit/core';
41
- import { SetNodeAttrsOptions } from '@prosekit/core';
42
41
  import { SimplifyDeeper } from '@prosekit/core';
43
42
  import type { SpecialLanguage } from 'shiki';
44
43
  import { StepJSON } from '@prosekit/core';
45
44
  import { TestEditor } from '@prosekit/core/test';
45
+ import { TextExtension } from '@prosekit/core';
46
46
  import { ToggleCollapsedOptions } from 'prosemirror-flat-list';
47
47
  import { ToMarkAction } from '@prosekit/core';
48
48
  import { Transaction } from '@prosekit/pm/state';
49
- import { UnionExtension } from '@prosekit/core';
50
- import { UnsetBlockTypeOptions } from '@prosekit/core';
51
- import { UnsetMarkOptions } from '@prosekit/core';
49
+ import { Union } from '@prosekit/core';
52
50
  import { UnwrapListOptions } from 'prosemirror-flat-list';
53
51
  import { WrapInListGetAttrs } from 'prosemirror-flat-list';
54
- import { WrapOptions } from '@prosekit/core';
55
52
 
56
53
  export declare function applyMarkRules(rules: MarkRuleOptions[], transactions: readonly Transaction[], oldState: EditorState, newState: EditorState): Transaction | null;
57
54
 
@@ -79,6 +76,43 @@ declare class AutocompleteRule {
79
76
  export { AutocompleteRule }
80
77
  export { AutocompleteRule as AutocompleteRule_alias_1 }
81
78
 
79
+ /**
80
+ * @internal
81
+ */
82
+ export declare type BlockquoteExtension = Union<[BlockquoteSpecExtension]>;
83
+
84
+ /**
85
+ * @internal
86
+ */
87
+ export declare type BlockquoteSpecExtension = Extension<{
88
+ Nodes: {
89
+ blockquote: Attrs;
90
+ };
91
+ }>;
92
+
93
+ /**
94
+ * @internal
95
+ */
96
+ export declare type BoldCommandsExtension = Extension<{
97
+ Commands: {
98
+ toggleBold: [];
99
+ };
100
+ }>;
101
+
102
+ /**
103
+ * @internal
104
+ */
105
+ export declare type BoldExtension = Union<[BoldSpecExtension, BoldCommandsExtension]>;
106
+
107
+ /**
108
+ * @internal
109
+ */
110
+ export declare type BoldSpecExtension = Extension<{
111
+ Marks: {
112
+ bold: Attrs;
113
+ };
114
+ }>;
115
+
82
116
  export { BundledLanguage as ShikiBundledLanguage }
83
117
  export { BundledLanguage as ShikiBundledLanguage_alias_1 }
84
118
 
@@ -97,6 +131,9 @@ export { BundledThemeInfo as ShikiBundledThemeInfo_alias_1 }
97
131
  export { bundledThemesInfo as shikiBundledThemesInfo }
98
132
  export { bundledThemesInfo as shikiBundledThemesInfo_alias_1 }
99
133
 
134
+ /**
135
+ * @public
136
+ */
100
137
  export declare interface CellAttrs {
101
138
  colspan: number;
102
139
  rowspan: number;
@@ -109,11 +146,35 @@ export declare interface CellAttrs {
109
146
  * @public
110
147
  */
111
148
  declare interface CodeBlockAttrs {
112
- language?: string;
149
+ language: string;
113
150
  }
114
151
  export { CodeBlockAttrs }
115
152
  export { CodeBlockAttrs as CodeBlockAttrs_alias_1 }
116
153
 
154
+ /**
155
+ * @internal
156
+ */
157
+ declare type CodeBlockCommandsExtension = Extension<{
158
+ Commands: {
159
+ setCodeBlock: [attrs?: CodeBlockAttrs];
160
+ insertCodeBlock: [attrs?: CodeBlockAttrs];
161
+ toggleCodeBlock: [attrs?: CodeBlockAttrs];
162
+ setCodeBlockAttrs: [attrs: CodeBlockAttrs];
163
+ };
164
+ }>;
165
+ export { CodeBlockCommandsExtension }
166
+ export { CodeBlockCommandsExtension as CodeBlockCommandsExtension_alias_1 }
167
+
168
+ /**
169
+ * @internal
170
+ */
171
+ declare type CodeBlockExtension = Union<[
172
+ CodeBlockSpecExtension,
173
+ CodeBlockCommandsExtension
174
+ ]>;
175
+ export { CodeBlockExtension }
176
+ export { CodeBlockExtension as CodeBlockExtension_alias_1 }
177
+
117
178
  /**
118
179
  * @public
119
180
  */
@@ -139,6 +200,40 @@ export declare interface CodeBlockShikiOptions {
139
200
  langAlias?: Record<string, BundledLanguage>;
140
201
  }
141
202
 
203
+ /**
204
+ * @internal
205
+ */
206
+ declare type CodeBlockSpecExtension = Extension<{
207
+ Nodes: {
208
+ codeBlock: CodeBlockAttrs;
209
+ };
210
+ }>;
211
+ export { CodeBlockSpecExtension }
212
+ export { CodeBlockSpecExtension as CodeBlockSpecExtension_alias_1 }
213
+
214
+ /**
215
+ * @internal
216
+ */
217
+ export declare type CodeCommandsExtension = Extension<{
218
+ Commands: {
219
+ toggleCode: [];
220
+ };
221
+ }>;
222
+
223
+ /**
224
+ * @internal
225
+ */
226
+ export declare type CodeExtension = Union<[CodeSpecExtension, CodeCommandsExtension]>;
227
+
228
+ /**
229
+ * @internal
230
+ */
231
+ export declare type CodeSpecExtension = Extension<{
232
+ Marks: {
233
+ code: Attrs;
234
+ };
235
+ }>;
236
+
142
237
  /**
143
238
  * A JSON representation of a commit.
144
239
  */
@@ -206,13 +301,7 @@ export declare function defineAutocomplete(rule: AutocompleteRule): Extension;
206
301
  /**
207
302
  * @public
208
303
  */
209
- export declare function defineBlockquote(): UnionExtension<readonly [Extension< {
210
- Nodes: {
211
- blockquote: Attrs;
212
- };
213
- Marks: never;
214
- Commands: never;
215
- }>, Extension<ExtensionTyping<any, any, any>>]>;
304
+ export declare function defineBlockquote(): BlockquoteExtension;
216
305
 
217
306
  /**
218
307
  * Wraps the text block in a blockquote when `>` is typed at the start of a new
@@ -220,67 +309,41 @@ Commands: never;
220
309
  */
221
310
  export declare function defineBlockquoteInputRule(): Extension<ExtensionTyping<any, any, any>>;
222
311
 
223
- export declare function defineBlockquoteSpec(): Extension< {
224
- Nodes: {
225
- blockquote: Attrs;
226
- };
227
- Marks: never;
228
- Commands: never;
312
+ export declare function defineBlockquoteSpec(): Extension<{
313
+ Nodes: {
314
+ blockquote: Attrs;
315
+ };
229
316
  }>;
230
317
 
231
318
  /**
232
319
  * @public
233
320
  */
234
- export declare function defineBold(): UnionExtension<readonly [Extension< {
235
- Marks: {
236
- bold: Attrs;
237
- };
238
- Nodes: never;
239
- Commands: never;
240
- }>, Extension< {
241
- Commands: {
242
- toggleBold: [];
243
- };
244
- Nodes: never;
245
- Marks: never;
246
- }>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>]>;
321
+ export declare function defineBold(): BoldExtension;
247
322
 
248
- export declare function defineBoldCommands(): Extension< {
249
- Commands: {
250
- toggleBold: [];
251
- };
252
- Nodes: never;
253
- Marks: never;
254
- }>;
323
+ /**
324
+ * @internal
325
+ */
326
+ export declare function defineBoldCommands(): BoldCommandsExtension;
255
327
 
328
+ /**
329
+ * @internal
330
+ */
256
331
  export declare function defineBoldInputRule(): Extension<ExtensionTyping<any, any, any>>;
257
332
 
333
+ /**
334
+ * @internal
335
+ */
258
336
  export declare function defineBoldKeymap(): Extension<ExtensionTyping<any, any, any>>;
259
337
 
260
- export declare function defineBoldSpec(): Extension< {
261
- Marks: {
262
- bold: Attrs;
263
- };
264
- Nodes: never;
265
- Commands: never;
266
- }>;
338
+ /**
339
+ * @internal
340
+ */
341
+ export declare function defineBoldSpec(): BoldSpecExtension;
267
342
 
268
343
  /**
269
344
  * @public
270
345
  */
271
- export declare function defineCode(): UnionExtension<readonly [Extension< {
272
- Marks: {
273
- code: Attrs;
274
- };
275
- Nodes: never;
276
- Commands: never;
277
- }>, Extension< {
278
- Commands: {
279
- toggleCode: [];
280
- };
281
- Nodes: never;
282
- Marks: never;
283
- }>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>]>;
346
+ export declare function defineCode(): CodeExtension;
284
347
 
285
348
  /**
286
349
  * Adds `codeBlock` nodes to the editor. This includes the following extensions:
@@ -293,24 +356,7 @@ Marks: never;
293
356
  *
294
357
  * @public
295
358
  */
296
- declare function defineCodeBlock(): UnionExtension<readonly [Extension< {
297
- Nodes: {
298
- codeBlock: {
299
- language: string;
300
- };
301
- };
302
- Marks: never;
303
- Commands: never;
304
- }>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>, Extension< {
305
- Commands: {
306
- setCodeBlock: [attrs?: CodeBlockAttrs | undefined];
307
- insertCodeBlock: [attrs?: CodeBlockAttrs | undefined];
308
- toggleCodeBlock: [attrs?: CodeBlockAttrs | undefined];
309
- setCodeBlockAttrs: [attrs: CodeBlockAttrs];
310
- };
311
- Nodes: never;
312
- Marks: never;
313
- }>]>;
359
+ declare function defineCodeBlock(): CodeBlockExtension;
314
360
  export { defineCodeBlock }
315
361
  export { defineCodeBlock as defineCodeBlock_alias_1 }
316
362
 
@@ -319,16 +365,7 @@ export { defineCodeBlock as defineCodeBlock_alias_1 }
319
365
  *
320
366
  * @public
321
367
  */
322
- declare function defineCodeBlockCommands(): Extension< {
323
- Commands: {
324
- setCodeBlock: [attrs?: CodeBlockAttrs | undefined];
325
- insertCodeBlock: [attrs?: CodeBlockAttrs | undefined];
326
- toggleCodeBlock: [attrs?: CodeBlockAttrs | undefined];
327
- setCodeBlockAttrs: [attrs: CodeBlockAttrs];
328
- };
329
- Nodes: never;
330
- Marks: never;
331
- }>;
368
+ declare function defineCodeBlockCommands(): CodeBlockCommandsExtension;
332
369
  export { defineCodeBlockCommands }
333
370
  export { defineCodeBlockCommands as defineCodeBlockCommands_alias_1 }
334
371
 
@@ -383,50 +420,39 @@ export { defineCodeBlockShiki as defineCodeBlockShiki_alias_1 }
383
420
  *
384
421
  * @public
385
422
  */
386
- declare function defineCodeBlockSpec(): Extension< {
387
- Nodes: {
388
- codeBlock: {
389
- language: string;
390
- };
391
- };
392
- Marks: never;
393
- Commands: never;
394
- }>;
423
+ declare function defineCodeBlockSpec(): CodeBlockSpecExtension;
395
424
  export { defineCodeBlockSpec }
396
425
  export { defineCodeBlockSpec as defineCodeBlockSpec_alias_1 }
397
426
 
398
- export declare function defineCodeCommands(): Extension< {
399
- Commands: {
400
- toggleCode: [];
401
- };
402
- Nodes: never;
403
- Marks: never;
404
- }>;
427
+ /**
428
+ * @internal
429
+ */
430
+ export declare function defineCodeCommands(): CodeCommandsExtension;
405
431
 
432
+ /**
433
+ * @internal
434
+ */
406
435
  export declare function defineCodeInputRule(): Extension<ExtensionTyping<any, any, any>>;
407
436
 
437
+ /**
438
+ * @internal
439
+ */
408
440
  export declare function defineCodeKeymap(): Extension<ExtensionTyping<any, any, any>>;
409
441
 
410
442
  /**
411
- * @public
443
+ * @internal
412
444
  */
413
- export declare function defineCodeSpec(): Extension< {
414
- Marks: {
415
- code: Attrs;
416
- };
417
- Nodes: never;
418
- Commands: never;
419
- }>;
445
+ export declare function defineCodeSpec(): CodeSpecExtension;
420
446
 
421
447
  /**
422
448
  * Define an extension that can record the changes in the editor.
423
449
  */
424
- export declare function defineCommitRecorder(commitRecorder: CommitRecorder): Extension<ExtensionTyping<any, any, any>>;
450
+ export declare function defineCommitRecorder(commitRecorder: CommitRecorder): PluginExtension;
425
451
 
426
452
  /**
427
453
  * Define an extension to display the changes from the given commit in the editor.
428
454
  */
429
- export declare function defineCommitViewer(commit: Commit): UnionExtension<readonly [Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>]>;
455
+ export declare function defineCommitViewer(commit: Commit): Union<readonly [Extension<ExtensionTyping<any, any, any>>, PluginExtension]>;
430
456
 
431
457
  /**
432
458
  * Show up a decoration at the drop position when something is dragged over the editor.
@@ -435,7 +461,7 @@ export declare function defineCommitViewer(commit: Commit): UnionExtension<reado
435
461
  *
436
462
  * @public
437
463
  */
438
- export declare function defineDropCursor(options?: DropCursorOptions): Extension<ExtensionTyping<any, any, any>>;
464
+ export declare function defineDropCursor(options?: DropCursorOptions): DropCursorExtension;
439
465
 
440
466
  /**
441
467
  * Defines an enter rule. An enter rule applies when the text directly in front of
@@ -460,101 +486,58 @@ export declare function defineEnterRule({ regex, handler, stop, }: EnterRuleOpti
460
486
  *
461
487
  * @public
462
488
  */
463
- export declare function defineGapCursor(): Extension<ExtensionTyping<any, any, any>>;
489
+ export declare function defineGapCursor(): PluginExtension;
464
490
 
465
491
  /**
466
492
  * @public
467
493
  */
468
- export declare function defineHeading(): UnionExtension<readonly [Extension< {
469
- Nodes: {
470
- heading: {
471
- level: number;
472
- };
473
- };
474
- Marks: never;
475
- Commands: never;
476
- }>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>, Extension< {
477
- Commands: {
478
- setHeading: [attrs?: HeadingAttrs | undefined];
479
- insertHeading: [attrs?: HeadingAttrs | undefined];
480
- toggleHeading: [attrs?: HeadingAttrs | undefined];
481
- };
482
- Nodes: never;
483
- Marks: never;
484
- }>]>;
494
+ export declare function defineHeading(): HeadingExtension;
485
495
 
486
- declare function defineHeadingCommands(): Extension< {
487
- Commands: {
488
- setHeading: [attrs?: HeadingAttrs | undefined];
489
- insertHeading: [attrs?: HeadingAttrs | undefined];
490
- toggleHeading: [attrs?: HeadingAttrs | undefined];
491
- };
492
- Nodes: never;
493
- Marks: never;
494
- }>;
496
+ /**
497
+ * @internal
498
+ */
499
+ declare function defineHeadingCommands(): HeadingCommandsExtension;
495
500
  export { defineHeadingCommands }
496
501
  export { defineHeadingCommands as defineHeadingCommands_alias_1 }
497
502
 
498
503
  /**
499
504
  * Converts the text block to a heading when `#` is typed at the start of a new
500
505
  * line followed by a space.
506
+ *
507
+ * @internal
501
508
  */
502
509
  declare function defineHeadingInputRule(): Extension<ExtensionTyping<any, any, any>>;
503
510
  export { defineHeadingInputRule }
504
511
  export { defineHeadingInputRule as defineHeadingInputRule_alias_1 }
505
512
 
513
+ /**
514
+ * @internal
515
+ */
506
516
  declare function defineHeadingKeymap(): Extension<ExtensionTyping<any, any, any>>;
507
517
  export { defineHeadingKeymap }
508
518
  export { defineHeadingKeymap as defineHeadingKeymap_alias_1 }
509
519
 
510
- declare function defineHeadingSpec(): Extension< {
511
- Nodes: {
512
- heading: {
513
- level: number;
514
- };
515
- };
516
- Marks: never;
517
- Commands: never;
518
- }>;
520
+ /**
521
+ * @internal
522
+ */
523
+ declare function defineHeadingSpec(): HeadingSpecExtension;
519
524
  export { defineHeadingSpec }
520
525
  export { defineHeadingSpec as defineHeadingSpec_alias_1 }
521
526
 
522
527
  /**
523
528
  * @public
524
529
  */
525
- export declare function defineImage(): UnionExtension<readonly [Extension< {
526
- Nodes: {
527
- image: {
528
- src: null;
529
- };
530
- };
531
- Marks: never;
532
- Commands: never;
533
- }>, Extension< {
534
- Commands: {
535
- insertImage: [attrs?: ImageAttrs | undefined];
536
- };
537
- Nodes: never;
538
- Marks: never;
539
- }>]>;
530
+ export declare function defineImage(): ImageExtension;
540
531
 
541
- export declare function defineImageCommands(): Extension< {
542
- Commands: {
543
- insertImage: [attrs?: ImageAttrs | undefined];
544
- };
545
- Nodes: never;
546
- Marks: never;
547
- }>;
532
+ /**
533
+ * @internal
534
+ */
535
+ export declare function defineImageCommands(): ImageCommandsExtension;
548
536
 
549
- export declare function defineImageSpec(): Extension< {
550
- Nodes: {
551
- image: {
552
- src: null;
553
- };
554
- };
555
- Marks: never;
556
- Commands: never;
557
- }>;
537
+ /**
538
+ * @internal
539
+ */
540
+ export declare function defineImageSpec(): ImageSpecExtension;
558
541
 
559
542
  /**
560
543
  * Defines an input rule extension.
@@ -568,139 +551,72 @@ export declare function defineInputRule(rule: InputRule): Extension;
568
551
  /**
569
552
  * @public
570
553
  */
571
- export declare function defineItalic(): UnionExtension<readonly [Extension< {
572
- Marks: {
573
- italic: Attrs;
574
- };
575
- Nodes: never;
576
- Commands: never;
577
- }>, Extension< {
578
- Commands: {
579
- toggleItalic: [];
580
- };
581
- Nodes: never;
582
- Marks: never;
583
- }>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>]>;
554
+ export declare function defineItalic(): ItalicExtension;
584
555
 
585
- export declare function defineItalicCommands(): Extension< {
586
- Commands: {
587
- toggleItalic: [];
588
- };
589
- Nodes: never;
590
- Marks: never;
591
- }>;
556
+ /**
557
+ * @internal
558
+ */
559
+ export declare function defineItalicCommands(): ItalicCommandsExtension;
592
560
 
561
+ /**
562
+ * @internal
563
+ */
593
564
  export declare function defineItalicInputRule(): Extension<ExtensionTyping<any, any, any>>;
594
565
 
566
+ /**
567
+ * @internal
568
+ */
595
569
  export declare function defineItalicKeymap(): Extension<ExtensionTyping<any, any, any>>;
596
570
 
597
- export declare function defineItalicSpec(): Extension< {
598
- Marks: {
599
- italic: Attrs;
600
- };
601
- Nodes: never;
602
- Commands: never;
603
- }>;
571
+ /**
572
+ * @internal
573
+ */
574
+ export declare function defineItalicSpec(): ItalicSpecExtension;
604
575
 
605
576
  /**
606
577
  * @public
607
578
  */
608
- export declare function defineLink(): UnionExtension<readonly [Extension< {
609
- Marks: {
610
- link: LinkAttrs;
611
- };
612
- Nodes: never;
613
- Commands: never;
614
- }>, Extension< {
615
- Commands: {
616
- addLink: [attrs: LinkAttrs];
617
- removeLink: [];
618
- toggleLink: [attrs: LinkAttrs];
619
- expandLink: [];
620
- };
621
- Nodes: never;
622
- Marks: never;
623
- }>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>]>;
579
+ export declare function defineLink(): LinkExtension;
624
580
 
625
- export declare function defineLinkCommands(): Extension< {
626
- Commands: {
627
- addLink: [attrs: LinkAttrs];
628
- removeLink: [];
629
- toggleLink: [attrs: LinkAttrs];
630
- expandLink: [];
631
- };
632
- Nodes: never;
633
- Marks: never;
634
- }>;
581
+ export declare function defineLinkCommands(): LinkCommandsExtension;
635
582
 
636
583
  /**
637
584
  * Apply link marks after typing Enter.
585
+ *
586
+ * @internal
638
587
  */
639
588
  export declare function defineLinkEnterRule(): Extension<ExtensionTyping<any, any, any>>;
640
589
 
641
590
  /**
642
591
  * Apply link marks after pressing Space.
592
+ *
593
+ * @internal
643
594
  */
644
595
  export declare function defineLinkInputRule(): Extension<ExtensionTyping<any, any, any>>;
645
596
 
646
597
  /**
647
598
  * Apply and remove link marks to the text during typing.
599
+ *
600
+ * @internal
648
601
  */
649
602
  export declare function defineLinkMarkRule(): Extension<ExtensionTyping<any, any, any>>;
650
603
 
651
- export declare function defineLinkSpec(): Extension< {
652
- Marks: {
653
- link: LinkAttrs;
654
- };
655
- Nodes: never;
656
- Commands: never;
657
- }>;
604
+ /**
605
+ * @internal
606
+ */
607
+ export declare function defineLinkSpec(): LinkSpecExtension;
658
608
 
659
609
  /**
660
610
  * @public
661
611
  */
662
- export declare function defineList(): UnionExtension<readonly [Extension< {
663
- Nodes: {
664
- list: ListAttrs;
665
- };
666
- Marks: never;
667
- Commands: never;
668
- }>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>, Extension< {
669
- Commands: {
670
- dedentList: [options?: DedentListOptions | undefined];
671
- indentList: [options?: IndentListOptions | undefined];
672
- moveList: [direction: "up" | "down"];
673
- splitList: [];
674
- toggleCollapsed: [(ToggleCollapsedOptions | undefined)?];
675
- toggleList: [attrs: ListAttributes];
676
- unwrapList: [options?: UnwrapListOptions | undefined];
677
- wrapInList: [getAttrs: WrapInListGetAttrs<ListAttributes>];
678
- insertList: [attrs?: ListAttributes | undefined];
679
- };
680
- Nodes: never;
681
- Marks: never;
682
- }>]>;
612
+ export declare function defineList(): ListExtension;
683
613
 
684
614
  /**
685
615
  * Defines list commands.
686
616
  *
687
617
  * @internal
688
618
  */
689
- declare function defineListCommands(): Extension< {
690
- Commands: {
691
- dedentList: [options?: DedentListOptions | undefined];
692
- indentList: [options?: IndentListOptions | undefined];
693
- moveList: [direction: "up" | "down"];
694
- splitList: [];
695
- toggleCollapsed: [(ToggleCollapsedOptions | undefined)?];
696
- toggleList: [attrs: ListAttributes];
697
- unwrapList: [options?: UnwrapListOptions | undefined];
698
- wrapInList: [getAttrs: WrapInListGetAttrs<ListAttributes>];
699
- insertList: [attrs?: ListAttributes | undefined];
700
- };
701
- Nodes: never;
702
- Marks: never;
703
- }>;
619
+ declare function defineListCommands(): ListCommandsExtension;
704
620
  export { defineListCommands }
705
621
  export { defineListCommands as defineListCommands_alias_1 }
706
622
 
@@ -723,20 +639,14 @@ export { defineListKeymap as defineListKeymap_alias_1 }
723
639
  /**
724
640
  * @internal
725
641
  */
726
- declare function defineListPlugins(): Extension<ExtensionTyping<any, any, any>>;
642
+ declare function defineListPlugins(): PluginExtension;
727
643
  export { defineListPlugins }
728
644
  export { defineListPlugins as defineListPlugins_alias_1 }
729
645
 
730
646
  /**
731
647
  * @internal
732
648
  */
733
- declare function defineListSpec(): Extension< {
734
- Nodes: {
735
- list: ListAttrs;
736
- };
737
- Marks: never;
738
- Commands: never;
739
- }>;
649
+ declare function defineListSpec(): ListSpecExtension;
740
650
  export { defineListSpec }
741
651
  export { defineListSpec as defineListSpec_alias_1 }
742
652
 
@@ -759,26 +669,20 @@ export { defineMarkRule as defineMarkRule_alias_1 }
759
669
  /**
760
670
  * @public
761
671
  */
762
- export declare function defineMention(): UnionExtension<readonly [Extension< {
672
+ export declare function defineMention(): Union<readonly [Extension< {
763
673
  Nodes: {
764
674
  mention: MentionAttrs;
765
675
  };
766
- Marks: never;
767
- Commands: never;
768
676
  }>, Extension< {
769
677
  Commands: {
770
678
  insertMention: [attrs: MentionAttrs];
771
679
  };
772
- Nodes: never;
773
- Marks: never;
774
680
  }>]>;
775
681
 
776
682
  export declare function defineMentionCommands(): Extension< {
777
683
  Commands: {
778
684
  insertMention: [attrs: MentionAttrs];
779
685
  };
780
- Nodes: never;
781
- Marks: never;
782
686
  }>;
783
687
 
784
688
  /**
@@ -788,8 +692,6 @@ export declare function defineMentionSpec(): Extension< {
788
692
  Nodes: {
789
693
  mention: MentionAttrs;
790
694
  };
791
- Marks: never;
792
- Commands: never;
793
695
  }>;
794
696
 
795
697
  /**
@@ -798,18 +700,18 @@ Commands: never;
798
700
  *
799
701
  * @public
800
702
  */
801
- export declare function defineModClickPrevention(): Extension;
703
+ export declare function defineModClickPrevention(): ModClickPreventionExtension;
802
704
 
803
705
  /**
804
706
  * Add a placeholder text to the editor when the current block or document is
805
707
  * empty.
806
708
  */
807
- export declare function definePlaceholder(options: PlaceholderOptions): Extension<ExtensionTyping<any, any, any>>;
709
+ export declare function definePlaceholder(options: PlaceholderOptions): PluginExtension;
808
710
 
809
711
  /**
810
712
  * Make the editor read-only.
811
713
  */
812
- export declare function defineReadonly(): Extension<ExtensionTyping<any, any, any>>;
714
+ export declare function defineReadonly(): PluginExtension;
813
715
 
814
716
  /**
815
717
  * Defines commands for search and replace.
@@ -827,8 +729,6 @@ replaceNextNoWrap: [];
827
729
  replaceCurrent: [];
828
730
  replaceAll: [];
829
731
  };
830
- Nodes: never;
831
- Marks: never;
832
732
  }>;
833
733
 
834
734
  /**
@@ -836,98 +736,46 @@ Marks: never;
836
736
  *
837
737
  * @public
838
738
  */
839
- export declare function defineSearchQuery(options: SearchQueryOptions): Extension<ExtensionTyping<any, any, any>>;
739
+ export declare function defineSearchQuery(options: SearchQueryOptions): PluginExtension;
840
740
 
841
741
  /**
842
742
  * @public
843
743
  */
844
- export declare function defineStrike(): UnionExtension<readonly [Extension< {
845
- Marks: {
846
- strike: Attrs;
847
- };
848
- Nodes: never;
849
- Commands: never;
850
- }>, Extension< {
851
- Commands: {
852
- toggleStrike: [];
853
- };
854
- Nodes: never;
855
- Marks: never;
856
- }>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>]>;
744
+ export declare function defineStrike(): StrikeExtension;
857
745
 
858
- export declare function defineStrikeCommands(): Extension< {
859
- Commands: {
860
- toggleStrike: [];
861
- };
862
- Nodes: never;
863
- Marks: never;
864
- }>;
746
+ /**
747
+ * @internal
748
+ */
749
+ export declare function defineStrikeCommands(): StrikeCommandsExtension;
865
750
 
751
+ /**
752
+ * @internal
753
+ */
866
754
  export declare function defineStrikeInputRule(): Extension<ExtensionTyping<any, any, any>>;
867
755
 
756
+ /**
757
+ * @internal
758
+ */
868
759
  export declare function defineStrikeKeymap(): Extension<ExtensionTyping<any, any, any>>;
869
760
 
870
- export declare function defineStrikeSpec(): Extension< {
871
- Marks: {
872
- strike: Attrs;
873
- };
874
- Nodes: never;
875
- Commands: never;
761
+ /**
762
+ * @internal
763
+ */
764
+ export declare function defineStrikeSpec(): Extension<{
765
+ Marks: {
766
+ strike: Attrs;
767
+ };
876
768
  }>;
877
769
 
878
770
  /**
879
771
  * @public
880
772
  */
881
- export declare function defineTable(): UnionExtension<readonly [Extension< {
882
- Nodes: {
883
- table: Attrs;
884
- };
885
- Marks: never;
886
- Commands: never;
887
- }>, Extension< {
888
- Nodes: {
889
- tableRow: Attrs;
890
- };
891
- Marks: never;
892
- Commands: never;
893
- }>, Extension< {
894
- Nodes: {
895
- tableCell: {
896
- [x: string]: any;
897
- };
898
- };
899
- Marks: never;
900
- Commands: never;
901
- }>, Extension< {
902
- Nodes: {
903
- tableHeaderCell: {
904
- [x: string]: any;
905
- };
906
- };
907
- Marks: never;
908
- Commands: never;
909
- }>, Extension<ExtensionTyping<any, any, any>>, Extension< {
910
- Commands: {
911
- insertTable: [{
912
- row: number;
913
- col: number;
914
- header: boolean;
915
- }];
916
- exitTable: [];
917
- };
918
- Nodes: never;
919
- Marks: never;
920
- }>]>;
773
+ export declare function defineTable(): TableExtension;
921
774
 
922
- declare function defineTableCellSpec(): Extension< {
923
- Nodes: {
924
- tableCell: {
925
- [x: string]: any;
926
- };
927
- };
928
- Marks: never;
929
- Commands: never;
930
- }>;
775
+ /**
776
+ * @internal
777
+ */
778
+ declare function defineTableCellSpec(): TableCellSpecExtension;
931
779
  export { defineTableCellSpec }
932
780
  export { defineTableCellSpec as defineTableCellSpec_alias_1 }
933
781
 
@@ -936,279 +784,43 @@ export { defineTableCellSpec as defineTableCellSpec_alias_1 }
936
784
  *
937
785
  * @public
938
786
  */
939
- declare function defineTableCommands(): Extension< {
940
- Commands: {
941
- insertTable: [{
942
- row: number;
943
- col: number;
944
- header: boolean;
945
- }];
946
- exitTable: [];
947
- };
948
- Nodes: never;
949
- Marks: never;
950
- }>;
787
+ declare function defineTableCommands(): TableCommandsExtension;
951
788
  export { defineTableCommands }
952
789
  export { defineTableCommands as defineTableCommands_alias_1 }
953
790
 
954
- declare function defineTableHeaderCellSpec(): Extension< {
955
- Nodes: {
956
- tableHeaderCell: {
957
- [x: string]: any;
958
- };
959
- };
960
- Marks: never;
961
- Commands: never;
962
- }>;
791
+ declare function defineTableHeaderCellSpec(): TableHeaderCellSpecExtension;
963
792
  export { defineTableHeaderCellSpec }
964
793
  export { defineTableHeaderCellSpec as defineTableHeaderCellSpec_alias_1 }
965
794
 
966
795
  /**
967
796
  * @public
968
797
  */
969
- declare function defineTablePlugins(): Extension<ExtensionTyping<any, any, any>>;
798
+ declare function defineTablePlugins(): PluginExtension;
970
799
  export { defineTablePlugins }
971
800
  export { defineTablePlugins as defineTablePlugins_alias_1 }
972
801
 
973
- declare function defineTableRowSpec(): Extension< {
974
- Nodes: {
975
- tableRow: Attrs_2;
976
- };
977
- Marks: never;
978
- Commands: never;
979
- }>;
802
+ /**
803
+ * @internal
804
+ */
805
+ declare function defineTableRowSpec(): TableRowSpecExtension;
980
806
  export { defineTableRowSpec }
981
807
  export { defineTableRowSpec as defineTableRowSpec_alias_1 }
982
808
 
983
- declare function defineTableSpec(): Extension< {
984
- Nodes: {
985
- table: Attrs_2;
986
- };
987
- Marks: never;
988
- Commands: never;
989
- }>;
809
+ /**
810
+ * @internal
811
+ */
812
+ declare function defineTableSpec(): TableSpecExtension;
990
813
  export { defineTableSpec }
991
814
  export { defineTableSpec as defineTableSpec_alias_1 }
992
815
 
993
816
  /**
994
817
  * @internal
995
818
  */
996
- export declare function defineTestExtension(): UnionExtension<readonly [Extension<{
997
- Nodes: {
998
- doc: Attrs;
999
- };
1000
- Marks: never;
1001
- Commands: never;
1002
- }>, Extension<{
819
+ export declare function defineTestExtension(): Union<readonly [DocExtension, TextExtension, HeadingExtension, HistoryExtension, ListExtension, BlockquoteExtension, BaseKeymapExtension, BaseCommandsExtension, ItalicExtension, BoldExtension, UnderlineExtension, StrikeExtension, CodeExtension, LinkExtension, ImageExtension, Extension<{
1003
820
  Nodes: {
1004
- text: Attrs;
1005
- };
1006
- Marks: never;
1007
- Commands: never;
1008
- }>, UnionExtension<readonly [Extension<{
1009
- Nodes: {
1010
- heading: {
1011
- level: number;
1012
- };
1013
- };
1014
- Marks: never;
1015
- Commands: never;
1016
- }>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>, Extension<{
1017
- Commands: {
1018
- setHeading: [attrs?: HeadingAttrs | undefined];
1019
- insertHeading: [attrs?: HeadingAttrs | undefined];
1020
- toggleHeading: [attrs?: HeadingAttrs | undefined];
1021
- };
1022
- Nodes: never;
1023
- Marks: never;
1024
- }>]>, UnionExtension<readonly [Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>, Extension<{
1025
- Commands: {
1026
- readonly undo: [];
1027
- readonly redo: [];
1028
- };
1029
- Nodes: never;
1030
- Marks: never;
1031
- }>]>, UnionExtension<readonly [Extension<{
1032
- Nodes: {
1033
- list: ListAttrs;
1034
- };
1035
- Marks: never;
1036
- Commands: never;
1037
- }>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>, Extension<{
1038
- Commands: {
1039
- dedentList: [options?: DedentListOptions | undefined];
1040
- indentList: [options?: IndentListOptions | undefined];
1041
- moveList: [direction: "up" | "down"];
1042
- splitList: [];
1043
- toggleCollapsed: [(ToggleCollapsedOptions | undefined)?];
1044
- toggleList: [attrs: ListAttributes];
1045
- unwrapList: [options?: UnwrapListOptions | undefined];
1046
- wrapInList: [getAttrs: WrapInListGetAttrs<ListAttributes>];
1047
- insertList: [attrs?: ListAttributes | undefined];
1048
- };
1049
- Nodes: never;
1050
- Marks: never;
1051
- }>]>, UnionExtension<readonly [Extension<{
1052
- Nodes: {
1053
- blockquote: Attrs;
1054
- };
1055
- Marks: never;
1056
- Commands: never;
1057
- }>, Extension<ExtensionTyping<any, any, any>>]>, Extension<ExtensionTyping<any, any, any>>, Extension<{
1058
- Commands: {
1059
- insertText: [{
1060
- text: string;
1061
- from?: number;
1062
- to?: number;
1063
- }];
1064
- insertNode: [options: InsertNodeOptions];
1065
- removeNode: [options: RemoveNodeOptions];
1066
- wrap: [WrapOptions];
1067
- setBlockType: [options: SetBlockTypeOptions];
1068
- setNodeAttrs: [options: SetNodeAttrsOptions];
1069
- selectAll: [];
1070
- addMark: [options: AddMarkOptions];
1071
- removeMark: [options: RemoveMarkOptions];
1072
- unsetBlockType: [options?: UnsetBlockTypeOptions | undefined];
1073
- unsetMark: [options?: UnsetMarkOptions | undefined];
1074
- };
1075
- Nodes: never;
1076
- Marks: never;
1077
- }>, UnionExtension<readonly [Extension<{
1078
- Marks: {
1079
- italic: Attrs;
1080
- };
1081
- Nodes: never;
1082
- Commands: never;
1083
- }>, Extension<{
1084
- Commands: {
1085
- toggleItalic: [];
821
+ paragraph: Attrs_2;
1086
822
  };
1087
- Nodes: never;
1088
- Marks: never;
1089
- }>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>]>, UnionExtension<readonly [Extension<{
1090
- Marks: {
1091
- bold: Attrs;
1092
- };
1093
- Nodes: never;
1094
- Commands: never;
1095
- }>, Extension<{
1096
- Commands: {
1097
- toggleBold: [];
1098
- };
1099
- Nodes: never;
1100
- Marks: never;
1101
- }>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>]>, UnionExtension<readonly [Extension<{
1102
- Marks: {
1103
- underline: Attrs;
1104
- };
1105
- Nodes: never;
1106
- Commands: never;
1107
- }>, Extension<{
1108
- Commands: {
1109
- toggleUnderline: [];
1110
- };
1111
- Nodes: never;
1112
- Marks: never;
1113
- }>, Extension<ExtensionTyping<any, any, any>>]>, UnionExtension<readonly [Extension<{
1114
- Marks: {
1115
- strike: Attrs;
1116
- };
1117
- Nodes: never;
1118
- Commands: never;
1119
- }>, Extension<{
1120
- Commands: {
1121
- toggleStrike: [];
1122
- };
1123
- Nodes: never;
1124
- Marks: never;
1125
- }>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>]>, UnionExtension<readonly [Extension<{
1126
- Marks: {
1127
- code: Attrs;
1128
- };
1129
- Nodes: never;
1130
- Commands: never;
1131
- }>, Extension<{
1132
- Commands: {
1133
- toggleCode: [];
1134
- };
1135
- Nodes: never;
1136
- Marks: never;
1137
- }>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>]>, UnionExtension<readonly [Extension<{
1138
- Marks: {
1139
- link: LinkAttrs;
1140
- };
1141
- Nodes: never;
1142
- Commands: never;
1143
- }>, Extension<{
1144
- Commands: {
1145
- addLink: [attrs: LinkAttrs];
1146
- removeLink: [];
1147
- toggleLink: [attrs: LinkAttrs];
1148
- expandLink: [];
1149
- };
1150
- Nodes: never;
1151
- Marks: never;
1152
- }>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>]>, UnionExtension<readonly [Extension<{
1153
- Nodes: {
1154
- image: {
1155
- src: null;
1156
- };
1157
- };
1158
- Marks: never;
1159
- Commands: never;
1160
- }>, Extension<{
1161
- Commands: {
1162
- insertImage: [attrs?: ImageAttrs | undefined];
1163
- };
1164
- Nodes: never;
1165
- Marks: never;
1166
- }>]>, Extension<{
1167
- Nodes: {
1168
- paragraph: Attrs;
1169
- };
1170
- Marks: never;
1171
- Commands: never;
1172
- }>, UnionExtension<readonly [Extension<{
1173
- Nodes: {
1174
- table: Attrs;
1175
- };
1176
- Marks: never;
1177
- Commands: never;
1178
- }>, Extension<{
1179
- Nodes: {
1180
- tableRow: Attrs;
1181
- };
1182
- Marks: never;
1183
- Commands: never;
1184
- }>, Extension<{
1185
- Nodes: {
1186
- tableCell: {
1187
- [x: string]: any;
1188
- };
1189
- };
1190
- Marks: never;
1191
- Commands: never;
1192
- }>, Extension<{
1193
- Nodes: {
1194
- tableHeaderCell: {
1195
- [x: string]: any;
1196
- };
1197
- };
1198
- Marks: never;
1199
- Commands: never;
1200
- }>, Extension<ExtensionTyping<any, any, any>>, Extension<{
1201
- Commands: {
1202
- insertTable: [{
1203
- row: number;
1204
- col: number;
1205
- header: boolean;
1206
- }];
1207
- exitTable: [];
1208
- };
1209
- Nodes: never;
1210
- Marks: never;
1211
- }>]>]>;
823
+ }>, TableExtension]>;
1212
824
 
1213
825
  /**
1214
826
  * Adds a `textAlign` attribute to the specified nodes. This will be rendered as
@@ -1222,7 +834,6 @@ export declare function defineTextAlign<NodeName extends string = string>(option
1222
834
  textAlign: string | null;
1223
835
  };
1224
836
  };
1225
- Marks: never;
1226
837
  Commands: TextAlignCommandTyping;
1227
838
  }>;
1228
839
 
@@ -1230,8 +841,6 @@ export declare function defineTextAlign<NodeName extends string = string>(option
1230
841
  * @internal
1231
842
  */
1232
843
  export declare function defineTextAlignCommands(types: string[]): Extension<{
1233
- Nodes: never;
1234
- Marks: never;
1235
844
  Commands: TextAlignCommandTyping;
1236
845
  }>;
1237
846
 
@@ -1271,43 +880,28 @@ export declare function defineTextBlockInputRule({ regex, type, attrs, }: {
1271
880
  /**
1272
881
  * Attributes to set on the node.
1273
882
  */
1274
- attrs?: Attrs_2 | null | ((match: RegExpMatchArray) => Attrs_2 | null);
883
+ attrs?: Attrs | null | ((match: RegExpMatchArray) => Attrs | null);
1275
884
  }): Extension;
1276
885
 
1277
886
  /**
1278
887
  * @public
1279
888
  */
1280
- export declare function defineUnderline(): UnionExtension<readonly [Extension< {
1281
- Marks: {
1282
- underline: Attrs;
1283
- };
1284
- Nodes: never;
1285
- Commands: never;
1286
- }>, Extension< {
1287
- Commands: {
1288
- toggleUnderline: [];
1289
- };
1290
- Nodes: never;
1291
- Marks: never;
1292
- }>, Extension<ExtensionTyping<any, any, any>>]>;
889
+ export declare function defineUnderline(): UnderlineExtension;
1293
890
 
1294
- export declare function defineUnderlineCommands(): Extension< {
1295
- Commands: {
1296
- toggleUnderline: [];
1297
- };
1298
- Nodes: never;
1299
- Marks: never;
1300
- }>;
891
+ /**
892
+ * @internal
893
+ */
894
+ export declare function defineUnderlineCommands(): UnderlineCommandsExtension;
1301
895
 
896
+ /**
897
+ * @internal
898
+ */
1302
899
  export declare function defineUnderlineKeymap(): Extension<ExtensionTyping<any, any, any>>;
1303
900
 
1304
- export declare function defineUnderlineSpec(): Extension< {
1305
- Marks: {
1306
- underline: Attrs;
1307
- };
1308
- Nodes: never;
1309
- Commands: never;
1310
- }>;
901
+ /**
902
+ * @internal
903
+ */
904
+ export declare function defineUnderlineSpec(): UnderlineSpecExtension;
1311
905
 
1312
906
  /**
1313
907
  * Shows a virtual selection when the editor is not focused. When the editor is
@@ -1319,7 +913,7 @@ Commands: never;
1319
913
  *
1320
914
  * @public
1321
915
  */
1322
- export declare function defineVirtualSelection(): Extension;
916
+ export declare function defineVirtualSelection(): VirtualSelectionExtension;
1323
917
 
1324
918
  /**
1325
919
  * Defines an input rule for automatically wrapping a textblock when a given
@@ -1343,7 +937,7 @@ export declare function defineWrappingInputRule({ regex, type, attrs, join, }: {
1343
937
  /**
1344
938
  * Attributes to set on the node.
1345
939
  */
1346
- attrs?: Attrs_2 | null | ((match: RegExpMatchArray) => Attrs_2 | null);
940
+ attrs?: Attrs | null | ((match: RegExpMatchArray) => Attrs | null);
1347
941
  /**
1348
942
  * By default, if there's a node with the same type above the newly wrapped
1349
943
  * node, the rule will try to
@@ -1355,6 +949,11 @@ export declare function defineWrappingInputRule({ regex, type, attrs, join, }: {
1355
949
  join?: (match: RegExpMatchArray, node: ProseMirrorNode) => boolean;
1356
950
  }): Extension;
1357
951
 
952
+ /**
953
+ * @internal
954
+ */
955
+ export declare type DropCursorExtension = PluginExtension;
956
+
1358
957
  export declare interface DropCursorOptions {
1359
958
  /**
1360
959
  * The color of the cursor. Use `false` to apply no color and rely only on class.
@@ -1442,6 +1041,38 @@ declare interface HeadingAttrs {
1442
1041
  export { HeadingAttrs }
1443
1042
  export { HeadingAttrs as HeadingAttrs_alias_1 }
1444
1043
 
1044
+ /**
1045
+ * @internal
1046
+ */
1047
+ declare type HeadingCommandsExtension = Extension<{
1048
+ Commands: {
1049
+ setHeading: [attrs?: HeadingAttrs | undefined];
1050
+ insertHeading: [attrs?: HeadingAttrs | undefined];
1051
+ toggleHeading: [attrs?: HeadingAttrs | undefined];
1052
+ };
1053
+ }>;
1054
+ export { HeadingCommandsExtension }
1055
+ export { HeadingCommandsExtension as HeadingCommandsExtension_alias_1 }
1056
+
1057
+ /**
1058
+ * @internal
1059
+ */
1060
+ export declare type HeadingExtension = Union<[
1061
+ HeadingSpecExtension,
1062
+ HeadingCommandsExtension
1063
+ ]>;
1064
+
1065
+ /**
1066
+ * @internal
1067
+ */
1068
+ declare type HeadingSpecExtension = Extension<{
1069
+ Nodes: {
1070
+ heading: HeadingAttrs;
1071
+ };
1072
+ }>;
1073
+ export { HeadingSpecExtension }
1074
+ export { HeadingSpecExtension as HeadingSpecExtension_alias_1 }
1075
+
1445
1076
  export declare type HighlighterOptions = {
1446
1077
  themes: BundledTheme[];
1447
1078
  langs: (BundledLanguage | SpecialLanguage)[];
@@ -1465,10 +1096,36 @@ declare type HighlightParser = Parser;
1465
1096
  export { HighlightParser }
1466
1097
  export { HighlightParser as HighlightParser_alias_1 }
1467
1098
 
1099
+ /**
1100
+ * @public
1101
+ */
1468
1102
  export declare interface ImageAttrs {
1469
1103
  src?: string | null;
1470
1104
  }
1471
1105
 
1106
+ /**
1107
+ * @internal
1108
+ */
1109
+ export declare type ImageCommandsExtension = Extension<{
1110
+ Commands: {
1111
+ insertImage: [attrs?: ImageAttrs];
1112
+ };
1113
+ }>;
1114
+
1115
+ /**
1116
+ * @internal
1117
+ */
1118
+ export declare type ImageExtension = Union<[ImageSpecExtension, ImageCommandsExtension]>;
1119
+
1120
+ /**
1121
+ * @internal
1122
+ */
1123
+ export declare type ImageSpecExtension = Extension<{
1124
+ Nodes: {
1125
+ image: ImageAttrs;
1126
+ };
1127
+ }>;
1128
+
1472
1129
  export { IndentListOptions }
1473
1130
 
1474
1131
  /**
@@ -1477,11 +1134,42 @@ export { IndentListOptions }
1477
1134
  *
1478
1135
  * @public
1479
1136
  */
1480
- export declare function insertTable({ row, col, header, }: {
1137
+ export declare function insertTable({ row, col, header }: InsertTableOptions): Command;
1138
+
1139
+ /**
1140
+ * @public
1141
+ */
1142
+ export declare interface InsertTableOptions {
1481
1143
  row: number;
1482
1144
  col: number;
1483
1145
  header: boolean;
1484
- }): Command;
1146
+ }
1147
+
1148
+ /**
1149
+ * @internal
1150
+ */
1151
+ export declare type ItalicCommandsExtension = Extension<{
1152
+ Commands: {
1153
+ toggleItalic: [];
1154
+ };
1155
+ }>;
1156
+
1157
+ /**
1158
+ * @internal
1159
+ */
1160
+ export declare type ItalicExtension = Union<[
1161
+ ItalicSpecExtension,
1162
+ ItalicCommandsExtension
1163
+ ]>;
1164
+
1165
+ /**
1166
+ * @internal
1167
+ */
1168
+ export declare type ItalicSpecExtension = Extension<{
1169
+ Marks: {
1170
+ italic: Attrs;
1171
+ };
1172
+ }>;
1485
1173
 
1486
1174
  export declare const LINK_ENTER_RE: RegExp;
1487
1175
 
@@ -1496,6 +1184,32 @@ export declare interface LinkAttrs {
1496
1184
  href: string;
1497
1185
  }
1498
1186
 
1187
+ /**
1188
+ * @internal
1189
+ */
1190
+ export declare type LinkCommandsExtension = Extension<{
1191
+ Commands: {
1192
+ addLink: [LinkAttrs];
1193
+ removeLink: [];
1194
+ toggleLink: [LinkAttrs];
1195
+ expandLink: [];
1196
+ };
1197
+ }>;
1198
+
1199
+ /**
1200
+ * @internal
1201
+ */
1202
+ export declare type LinkExtension = Union<[LinkSpecExtension, LinkCommandsExtension]>;
1203
+
1204
+ /**
1205
+ * @internal
1206
+ */
1207
+ export declare type LinkSpecExtension = Extension<{
1208
+ Marks: {
1209
+ link: LinkAttrs;
1210
+ };
1211
+ }>;
1212
+
1499
1213
  /**
1500
1214
  * The attributes of a list node.
1501
1215
  *
@@ -1522,8 +1236,43 @@ declare interface ListAttrs {
1522
1236
  export { ListAttrs }
1523
1237
  export { ListAttrs as ListAttrs_alias_1 }
1524
1238
 
1239
+ /**
1240
+ * @internal
1241
+ */
1242
+ declare type ListCommandsExtension = Extension<{
1243
+ Commands: {
1244
+ dedentList: [options?: DedentListOptions];
1245
+ indentList: [options?: IndentListOptions];
1246
+ moveList: [direction: 'up' | 'down'];
1247
+ splitList: [];
1248
+ toggleCollapsed: [options?: ToggleCollapsedOptions];
1249
+ unwrapList: [options?: UnwrapListOptions];
1250
+ toggleList: [attrs?: ListAttributes];
1251
+ wrapInList: [attrs?: ListAttributes];
1252
+ insertList: [attrs?: ListAttributes];
1253
+ };
1254
+ }>;
1255
+ export { ListCommandsExtension }
1256
+ export { ListCommandsExtension as ListCommandsExtension_alias_1 }
1257
+
1525
1258
  export { ListDOMSerializer }
1526
1259
 
1260
+ /**
1261
+ * @internal
1262
+ */
1263
+ export declare type ListExtension = Union<[ListSpecExtension, ListCommandsExtension]>;
1264
+
1265
+ /**
1266
+ * @internal
1267
+ */
1268
+ declare type ListSpecExtension = Extension<{
1269
+ Nodes: {
1270
+ list: ListAttrs;
1271
+ };
1272
+ }>;
1273
+ export { ListSpecExtension }
1274
+ export { ListSpecExtension as ListSpecExtension_alias_1 }
1275
+
1527
1276
  /**
1528
1277
  * Options for {@link defineMarkInputRule}.
1529
1278
  *
@@ -1543,7 +1292,7 @@ export declare interface MarkInputRuleOptions {
1543
1292
  /**
1544
1293
  * Attributes to set on the mark.
1545
1294
  */
1546
- attrs?: Attrs_2 | null | ((match: RegExpMatchArray) => Attrs_2 | null);
1295
+ attrs?: Attrs | null | ((match: RegExpMatchArray) => Attrs | null);
1547
1296
  }
1548
1297
 
1549
1298
  /**
@@ -1567,7 +1316,7 @@ declare interface MarkRuleOptions {
1567
1316
  *
1568
1317
  * @default null
1569
1318
  */
1570
- attrs?: Attrs_2 | null | ((match: RegExpMatchArray) => Attrs_2 | null);
1319
+ attrs?: Attrs | null | ((match: RegExpMatchArray) => Attrs | null);
1571
1320
  }
1572
1321
  export { MarkRuleOptions }
1573
1322
  export { MarkRuleOptions as MarkRuleOptions_alias_1 }
@@ -1589,6 +1338,11 @@ export declare interface MentionAttrs {
1589
1338
  kind: string;
1590
1339
  }
1591
1340
 
1341
+ /**
1342
+ * @internal
1343
+ */
1344
+ export declare type ModClickPreventionExtension = PluginExtension;
1345
+
1592
1346
  export declare interface PlaceholderOptions {
1593
1347
  /**
1594
1348
  * The placeholder text to use.
@@ -1687,239 +1441,28 @@ export declare function setTrMeta(tr: Transaction, meta: PredictionPluginState):
1687
1441
  * @internal
1688
1442
  */
1689
1443
  export declare function setupTest(): {
1690
- editor: TestEditor<UnionExtension<readonly [Extension<{
1691
- Nodes: {
1692
- doc: Attrs;
1693
- };
1694
- Marks: never;
1695
- Commands: never;
1696
- }>, Extension<{
1697
- Nodes: {
1698
- text: Attrs;
1699
- };
1700
- Marks: never;
1701
- Commands: never;
1702
- }>, UnionExtension<readonly [Extension<{
1703
- Nodes: {
1704
- heading: {
1705
- level: number;
1706
- };
1707
- };
1708
- Marks: never;
1709
- Commands: never;
1710
- }>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>, Extension<{
1711
- Commands: {
1712
- setHeading: [attrs?: HeadingAttrs | undefined];
1713
- insertHeading: [attrs?: HeadingAttrs | undefined];
1714
- toggleHeading: [attrs?: HeadingAttrs | undefined];
1715
- };
1716
- Nodes: never;
1717
- Marks: never;
1718
- }>]>, UnionExtension<readonly [Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>, Extension<{
1719
- Commands: {
1720
- readonly undo: [];
1721
- readonly redo: [];
1722
- };
1723
- Nodes: never;
1724
- Marks: never;
1725
- }>]>, UnionExtension<readonly [Extension<{
1726
- Nodes: {
1727
- list: ListAttrs;
1728
- };
1729
- Marks: never;
1730
- Commands: never;
1731
- }>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>, Extension<{
1732
- Commands: {
1733
- dedentList: [options?: DedentListOptions | undefined];
1734
- indentList: [options?: IndentListOptions | undefined];
1735
- moveList: [direction: "up" | "down"];
1736
- splitList: [];
1737
- toggleCollapsed: [(ToggleCollapsedOptions | undefined)?];
1738
- toggleList: [attrs: ListAttributes];
1739
- unwrapList: [options?: UnwrapListOptions | undefined];
1740
- wrapInList: [getAttrs: WrapInListGetAttrs<ListAttributes>];
1741
- insertList: [attrs?: ListAttributes | undefined];
1742
- };
1743
- Nodes: never;
1744
- Marks: never;
1745
- }>]>, UnionExtension<readonly [Extension<{
1444
+ editor: TestEditor<Union<readonly [DocExtension, TextExtension, HeadingExtension, HistoryExtension, ListExtension, BlockquoteExtension, BaseKeymapExtension, BaseCommandsExtension, ItalicExtension, BoldExtension, UnderlineExtension, StrikeExtension, CodeExtension, LinkExtension, ImageExtension, Extension<{
1746
1445
  Nodes: {
1747
- blockquote: Attrs;
1748
- };
1749
- Marks: never;
1750
- Commands: never;
1751
- }>, Extension<ExtensionTyping<any, any, any>>]>, Extension<ExtensionTyping<any, any, any>>, Extension<{
1752
- Commands: {
1753
- insertText: [{
1754
- text: string;
1755
- from?: number;
1756
- to?: number;
1757
- }];
1758
- insertNode: [options: InsertNodeOptions];
1759
- removeNode: [options: RemoveNodeOptions];
1760
- wrap: [WrapOptions];
1761
- setBlockType: [options: SetBlockTypeOptions];
1762
- setNodeAttrs: [options: SetNodeAttrsOptions];
1763
- selectAll: [];
1764
- addMark: [options: AddMarkOptions];
1765
- removeMark: [options: RemoveMarkOptions];
1766
- unsetBlockType: [options?: UnsetBlockTypeOptions | undefined];
1767
- unsetMark: [options?: UnsetMarkOptions | undefined];
1446
+ paragraph: Attrs_2;
1768
1447
  };
1769
- Nodes: never;
1770
- Marks: never;
1771
- }>, UnionExtension<readonly [Extension<{
1772
- Marks: {
1773
- italic: Attrs;
1774
- };
1775
- Nodes: never;
1776
- Commands: never;
1777
- }>, Extension<{
1778
- Commands: {
1779
- toggleItalic: [];
1780
- };
1781
- Nodes: never;
1782
- Marks: never;
1783
- }>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>]>, UnionExtension<readonly [Extension<{
1784
- Marks: {
1785
- bold: Attrs;
1786
- };
1787
- Nodes: never;
1788
- Commands: never;
1789
- }>, Extension<{
1790
- Commands: {
1791
- toggleBold: [];
1792
- };
1793
- Nodes: never;
1794
- Marks: never;
1795
- }>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>]>, UnionExtension<readonly [Extension<{
1796
- Marks: {
1797
- underline: Attrs;
1798
- };
1799
- Nodes: never;
1800
- Commands: never;
1801
- }>, Extension<{
1802
- Commands: {
1803
- toggleUnderline: [];
1804
- };
1805
- Nodes: never;
1806
- Marks: never;
1807
- }>, Extension<ExtensionTyping<any, any, any>>]>, UnionExtension<readonly [Extension<{
1808
- Marks: {
1809
- strike: Attrs;
1810
- };
1811
- Nodes: never;
1812
- Commands: never;
1813
- }>, Extension<{
1814
- Commands: {
1815
- toggleStrike: [];
1816
- };
1817
- Nodes: never;
1818
- Marks: never;
1819
- }>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>]>, UnionExtension<readonly [Extension<{
1820
- Marks: {
1821
- code: Attrs;
1822
- };
1823
- Nodes: never;
1824
- Commands: never;
1825
- }>, Extension<{
1826
- Commands: {
1827
- toggleCode: [];
1828
- };
1829
- Nodes: never;
1830
- Marks: never;
1831
- }>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>]>, UnionExtension<readonly [Extension<{
1832
- Marks: {
1833
- link: LinkAttrs;
1834
- };
1835
- Nodes: never;
1836
- Commands: never;
1837
- }>, Extension<{
1838
- Commands: {
1839
- addLink: [attrs: LinkAttrs];
1840
- removeLink: [];
1841
- toggleLink: [attrs: LinkAttrs];
1842
- expandLink: [];
1843
- };
1844
- Nodes: never;
1845
- Marks: never;
1846
- }>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>]>, UnionExtension<readonly [Extension<{
1847
- Nodes: {
1848
- image: {
1849
- src: null;
1850
- };
1851
- };
1852
- Marks: never;
1853
- Commands: never;
1854
- }>, Extension<{
1855
- Commands: {
1856
- insertImage: [attrs?: ImageAttrs | undefined];
1857
- };
1858
- Nodes: never;
1859
- Marks: never;
1860
- }>]>, Extension<{
1861
- Nodes: {
1862
- paragraph: Attrs;
1863
- };
1864
- Marks: never;
1865
- Commands: never;
1866
- }>, UnionExtension<readonly [Extension<{
1867
- Nodes: {
1868
- table: Attrs;
1869
- };
1870
- Marks: never;
1871
- Commands: never;
1872
- }>, Extension<{
1873
- Nodes: {
1874
- tableRow: Attrs;
1875
- };
1876
- Marks: never;
1877
- Commands: never;
1878
- }>, Extension<{
1879
- Nodes: {
1880
- tableCell: {
1881
- [x: string]: any;
1882
- };
1883
- };
1884
- Marks: never;
1885
- Commands: never;
1886
- }>, Extension<{
1887
- Nodes: {
1888
- tableHeaderCell: {
1889
- [x: string]: any;
1890
- };
1891
- };
1892
- Marks: never;
1893
- Commands: never;
1894
- }>, Extension<ExtensionTyping<any, any, any>>, Extension<{
1895
- Commands: {
1896
- insertTable: [{
1897
- row: number;
1898
- col: number;
1899
- header: boolean;
1900
- }];
1901
- exitTable: [];
1902
- };
1903
- Nodes: never;
1904
- Marks: never;
1905
- }>]>]>>;
1448
+ }>, TableExtension]>>;
1906
1449
  m: ToMarkAction<SimplifyDeeper< {
1907
- underline: {
1450
+ bold: {
1908
1451
  readonly [x: string]: any;
1909
1452
  };
1910
- strike: {
1453
+ code: {
1911
1454
  readonly [x: string]: any;
1912
1455
  };
1913
- link: {
1914
- href: string;
1915
- };
1916
1456
  italic: {
1917
1457
  readonly [x: string]: any;
1918
1458
  };
1919
- code: {
1459
+ link: {
1460
+ href: string;
1461
+ };
1462
+ strike: {
1920
1463
  readonly [x: string]: any;
1921
1464
  };
1922
- bold: {
1465
+ underline: {
1923
1466
  readonly [x: string]: any;
1924
1467
  };
1925
1468
  }>>;
@@ -1939,41 +1482,45 @@ export declare function setupTest(): {
1939
1482
  unchecked: (...children: NodeChild[]) => Node_2;
1940
1483
  collapsed: (...children: NodeChild[]) => Node_2;
1941
1484
  expanded: (...children: NodeChild[]) => Node_2;
1942
- paragraph: NodeAction< {
1485
+ doc: NodeAction< {
1943
1486
  readonly [x: string]: any;
1944
1487
  }>;
1945
- tableHeaderCell: NodeAction< {
1946
- [x: string]: any;
1947
- }>;
1948
- tableCell: NodeAction< {
1949
- [x: string]: any;
1488
+ paragraph: NodeAction< {
1489
+ readonly [x: string]: any;
1950
1490
  }>;
1951
- tableRow: NodeAction< {
1491
+ text: NodeAction< {
1952
1492
  readonly [x: string]: any;
1953
1493
  }>;
1954
- table: NodeAction< {
1494
+ blockquote: NodeAction< {
1955
1495
  readonly [x: string]: any;
1956
1496
  }>;
1497
+ heading: NodeAction< {
1498
+ level: number;
1499
+ }>;
1500
+ image: NodeAction< {
1501
+ src?: string | null;
1502
+ }>;
1957
1503
  list: NodeAction< {
1958
1504
  kind?: "bullet" | "ordered" | "task" | "toggle";
1959
1505
  order?: number | null;
1960
1506
  checked?: boolean;
1961
1507
  collapsed?: boolean;
1962
1508
  }>;
1963
- image: NodeAction< {
1964
- src: null;
1965
- }>;
1966
- heading: NodeAction< {
1967
- level: number;
1968
- }>;
1969
- blockquote: NodeAction< {
1509
+ table: NodeAction< {
1970
1510
  readonly [x: string]: any;
1971
1511
  }>;
1972
- text: NodeAction< {
1512
+ tableRow: NodeAction< {
1973
1513
  readonly [x: string]: any;
1974
1514
  }>;
1975
- doc: NodeAction< {
1976
- readonly [x: string]: any;
1515
+ tableCell: NodeAction< {
1516
+ colspan: number;
1517
+ rowspan: number;
1518
+ colwidth: number[] | null;
1519
+ }>;
1520
+ tableHeaderCell: NodeAction< {
1521
+ colspan: number;
1522
+ rowspan: number;
1523
+ colwidth: number[] | null;
1977
1524
  }>;
1978
1525
  };
1979
1526
  };
@@ -1987,6 +1534,99 @@ export declare function setupTestFromExtension<E extends Extension>(extension: E
1987
1534
  m: ExtractMarkActions<E>;
1988
1535
  };
1989
1536
 
1537
+ /**
1538
+ * @internal
1539
+ */
1540
+ export declare type StrikeCommandsExtension = Extension<{
1541
+ Commands: {
1542
+ toggleStrike: [];
1543
+ };
1544
+ }>;
1545
+
1546
+ /**
1547
+ * @internal
1548
+ */
1549
+ export declare type StrikeExtension = Union<[
1550
+ StrikeSpecExtension,
1551
+ StrikeCommandsExtension
1552
+ ]>;
1553
+
1554
+ /**
1555
+ * @internal
1556
+ */
1557
+ export declare type StrikeSpecExtension = Extension<{
1558
+ Marks: {
1559
+ strike: Attrs;
1560
+ };
1561
+ }>;
1562
+
1563
+ /**
1564
+ * @internal
1565
+ */
1566
+ declare type TableCellSpecExtension = Extension<{
1567
+ Nodes: {
1568
+ tableCell: CellAttrs;
1569
+ };
1570
+ }>;
1571
+ export { TableCellSpecExtension }
1572
+ export { TableCellSpecExtension as TableCellSpecExtension_alias_1 }
1573
+
1574
+ /**
1575
+ * @internal
1576
+ */
1577
+ declare type TableCommandsExtension = Extension<{
1578
+ Commands: {
1579
+ insertTable: [InsertTableOptions];
1580
+ exitTable: [];
1581
+ };
1582
+ }>;
1583
+ export { TableCommandsExtension }
1584
+ export { TableCommandsExtension as TableCommandsExtension_alias_1 }
1585
+
1586
+ /**
1587
+ * @internal
1588
+ */
1589
+ export declare type TableExtension = Union<[
1590
+ TableSpecExtension,
1591
+ TableRowSpecExtension,
1592
+ TableCellSpecExtension,
1593
+ TableHeaderCellSpecExtension,
1594
+ TableCommandsExtension
1595
+ ]>;
1596
+
1597
+ /**
1598
+ * @internal
1599
+ */
1600
+ declare type TableHeaderCellSpecExtension = Extension<{
1601
+ Nodes: {
1602
+ tableHeaderCell: CellAttrs;
1603
+ };
1604
+ }>;
1605
+ export { TableHeaderCellSpecExtension }
1606
+ export { TableHeaderCellSpecExtension as TableHeaderCellSpecExtension_alias_1 }
1607
+
1608
+ /**
1609
+ * @internal
1610
+ */
1611
+ declare type TableRowSpecExtension = Extension<{
1612
+ Nodes: {
1613
+ tableRow: Attrs;
1614
+ };
1615
+ }>;
1616
+ export { TableRowSpecExtension }
1617
+ export { TableRowSpecExtension as TableRowSpecExtension_alias_1 }
1618
+
1619
+ /**
1620
+ * @internal
1621
+ */
1622
+ declare type TableSpecExtension = Extension<{
1623
+ Nodes: {
1624
+ table: Attrs;
1625
+ };
1626
+ }>;
1627
+ export { TableSpecExtension }
1628
+ export { TableSpecExtension as TableSpecExtension_alias_1 }
1629
+
1990
1630
  /**
1991
1631
  * @internal
1992
1632
  */
@@ -2029,7 +1669,7 @@ export declare type TextBlockEnterRuleOptions = {
2029
1669
  * Attributes to set on the node. If a function is provided, it will be called
2030
1670
  * with the matched result from the regular expression.
2031
1671
  */
2032
- attrs?: Attrs_2 | null | ((match: RegExpMatchArray) => Attrs_2 | null);
1672
+ attrs?: Attrs | null | ((match: RegExpMatchArray) => Attrs | null);
2033
1673
  /**
2034
1674
  * Whether to stop further handlers from being called if this rule is triggered.
2035
1675
  *
@@ -2040,8 +1680,39 @@ export declare type TextBlockEnterRuleOptions = {
2040
1680
 
2041
1681
  export { ToggleCollapsedOptions }
2042
1682
 
1683
+ /**
1684
+ * @internal
1685
+ */
1686
+ export declare type UnderlineCommandsExtension = Extension<{
1687
+ Commands: {
1688
+ toggleUnderline: [];
1689
+ };
1690
+ }>;
1691
+
1692
+ /**
1693
+ * @internal
1694
+ */
1695
+ export declare type UnderlineExtension = Union<[
1696
+ UnderlineSpecExtension,
1697
+ UnderlineCommandsExtension
1698
+ ]>;
1699
+
1700
+ /**
1701
+ * @internal
1702
+ */
1703
+ export declare type UnderlineSpecExtension = Extension<{
1704
+ Marks: {
1705
+ underline: Attrs;
1706
+ };
1707
+ }>;
1708
+
2043
1709
  export { UnwrapListOptions }
2044
1710
 
1711
+ /**
1712
+ * @internal
1713
+ */
1714
+ export declare type VirtualSelectionExtension = PluginExtension;
1715
+
2045
1716
  export { WrapInListGetAttrs }
2046
1717
 
2047
1718
  export { }