@tiptap/extension-code-block-lowlight 3.0.0-next.5 → 3.0.0-next.6

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 (3) hide show
  1. package/dist/index.d.cts +2520 -1211
  2. package/dist/index.d.ts +2520 -1211
  3. package/package.json +4 -4
package/dist/index.d.cts CHANGED
@@ -1,1226 +1,2535 @@
1
+ import { Plugin, PluginKey, EditorState, Transaction } from '@tiptap/pm/state';
2
+ import { NodeType as NodeType$1, MarkType as MarkType$1, Node as Node$1, Fragment, ParseOptions, MarkSpec, Mark as Mark$1, DOMOutputSpec, NodeSpec, ResolvedPos, Slice, Schema } from '@tiptap/pm/model';
3
+ import { EditorView, EditorProps, NodeView, MarkView, NodeViewConstructor, MarkViewConstructor } from '@tiptap/pm/view';
1
4
  import * as _tiptap_core from '@tiptap/core';
5
+ import { Transform } from '@tiptap/pm/transform';
2
6
  import { CodeBlockOptions } from '@tiptap/extension-code-block';
3
7
 
4
- interface CodeBlockLowlightOptions extends CodeBlockOptions {
8
+ type StringKeyOf<T> = Extract<keyof T, string>;
9
+ type CallbackType<T extends Record<string, any>, EventName extends StringKeyOf<T>> = T[EventName] extends any[] ? T[EventName] : [T[EventName]];
10
+ type CallbackFunction<T extends Record<string, any>, EventName extends StringKeyOf<T>> = (...props: CallbackType<T, EventName>) => any;
11
+ declare class EventEmitter<T extends Record<string, any>> {
12
+ private callbacks;
13
+ on<EventName extends StringKeyOf<T>>(event: EventName, fn: CallbackFunction<T, EventName>): this;
14
+ emit<EventName extends StringKeyOf<T>>(event: EventName, ...args: CallbackType<T, EventName>): this;
15
+ off<EventName extends StringKeyOf<T>>(event: EventName, fn?: CallbackFunction<T, EventName>): this;
16
+ once<EventName extends StringKeyOf<T>>(event: EventName, fn: CallbackFunction<T, EventName>): this;
17
+ removeAllListeners(): void;
18
+ }
19
+
20
+ interface ExtensionConfig<Options = any, Storage = any> extends ExtendableConfig<Options, Storage, ExtensionConfig<Options, Storage>, null> {
21
+ }
22
+ /**
23
+ * The Extension class is the base class for all extensions.
24
+ * @see https://tiptap.dev/api/extensions#create-a-new-extension
25
+ */
26
+ declare class Extension<Options = any, Storage = any> extends Extendable<Options, Storage> {
27
+ type: string;
28
+ static create<O = any, S = any>(config?: Partial<ExtensionConfig<O, S>>): Extension<O, S>;
29
+ }
30
+
31
+ declare module '@tiptap/core' {
32
+ interface Commands<ReturnType> {
33
+ blur: {
34
+ /**
35
+ * Removes focus from the editor.
36
+ * @example editor.commands.blur()
37
+ */
38
+ blur: () => ReturnType;
39
+ };
40
+ }
41
+ }
42
+
43
+ declare module '@tiptap/core' {
44
+ interface Commands<ReturnType> {
45
+ clearContent: {
46
+ /**
47
+ * Clear the whole document.
48
+ * @example editor.commands.clearContent()
49
+ */
50
+ clearContent: (
51
+ /**
52
+ * Whether to emit an update event.
53
+ * @default true
54
+ */
55
+ emitUpdate?: boolean) => ReturnType;
56
+ };
57
+ }
58
+ }
59
+
60
+ declare module '@tiptap/core' {
61
+ interface Commands<ReturnType> {
62
+ clearNodes: {
63
+ /**
64
+ * Normalize nodes to a simple paragraph.
65
+ * @example editor.commands.clearNodes()
66
+ */
67
+ clearNodes: () => ReturnType;
68
+ };
69
+ }
70
+ }
71
+
72
+ declare module '@tiptap/core' {
73
+ interface Commands<ReturnType> {
74
+ command: {
75
+ /**
76
+ * Define a command inline.
77
+ * @param fn The command function.
78
+ * @example
79
+ * editor.commands.command(({ tr, state }) => {
80
+ * ...
81
+ * return true
82
+ * })
83
+ */
84
+ command: (fn: (props: Parameters<Command>[0]) => boolean) => ReturnType;
85
+ };
86
+ }
87
+ }
88
+
89
+ declare module '@tiptap/core' {
90
+ interface Commands<ReturnType> {
91
+ createParagraphNear: {
92
+ /**
93
+ * Create a paragraph nearby.
94
+ * @example editor.commands.createParagraphNear()
95
+ */
96
+ createParagraphNear: () => ReturnType;
97
+ };
98
+ }
99
+ }
100
+
101
+ declare module '@tiptap/core' {
102
+ interface Commands<ReturnType> {
103
+ cut: {
104
+ /**
105
+ * Cuts content from a range and inserts it at a given position.
106
+ * @param range The range to cut.
107
+ * @param range.from The start position of the range.
108
+ * @param range.to The end position of the range.
109
+ * @param targetPos The position to insert the content at.
110
+ * @example editor.commands.cut({ from: 1, to: 3 }, 5)
111
+ */
112
+ cut: ({ from, to }: {
113
+ from: number;
114
+ to: number;
115
+ }, targetPos: number) => ReturnType;
116
+ };
117
+ }
118
+ }
119
+
120
+ declare module '@tiptap/core' {
121
+ interface Commands<ReturnType> {
122
+ deleteCurrentNode: {
123
+ /**
124
+ * Delete the node that currently has the selection anchor.
125
+ * @example editor.commands.deleteCurrentNode()
126
+ */
127
+ deleteCurrentNode: () => ReturnType;
128
+ };
129
+ }
130
+ }
131
+
132
+ declare module '@tiptap/core' {
133
+ interface Commands<ReturnType> {
134
+ deleteNode: {
135
+ /**
136
+ * Delete a node with a given type or name.
137
+ * @param typeOrName The type or name of the node.
138
+ * @example editor.commands.deleteNode('paragraph')
139
+ */
140
+ deleteNode: (typeOrName: string | NodeType$1) => ReturnType;
141
+ };
142
+ }
143
+ }
144
+
145
+ declare module '@tiptap/core' {
146
+ interface Commands<ReturnType> {
147
+ deleteRange: {
148
+ /**
149
+ * Delete a given range.
150
+ * @param range The range to delete.
151
+ * @example editor.commands.deleteRange({ from: 1, to: 3 })
152
+ */
153
+ deleteRange: (range: Range) => ReturnType;
154
+ };
155
+ }
156
+ }
157
+
158
+ declare module '@tiptap/core' {
159
+ interface Commands<ReturnType> {
160
+ deleteSelection: {
161
+ /**
162
+ * Delete the selection, if there is one.
163
+ * @example editor.commands.deleteSelection()
164
+ */
165
+ deleteSelection: () => ReturnType;
166
+ };
167
+ }
168
+ }
169
+
170
+ declare module '@tiptap/core' {
171
+ interface Commands<ReturnType> {
172
+ enter: {
173
+ /**
174
+ * Trigger enter.
175
+ * @example editor.commands.enter()
176
+ */
177
+ enter: () => ReturnType;
178
+ };
179
+ }
180
+ }
181
+
182
+ declare module '@tiptap/core' {
183
+ interface Commands<ReturnType> {
184
+ exitCode: {
185
+ /**
186
+ * Exit from a code block.
187
+ * @example editor.commands.exitCode()
188
+ */
189
+ exitCode: () => ReturnType;
190
+ };
191
+ }
192
+ }
193
+
194
+ declare module '@tiptap/core' {
195
+ interface Commands<ReturnType> {
196
+ extendMarkRange: {
197
+ /**
198
+ * Extends the text selection to the current mark by type or name.
199
+ * @param typeOrName The type or name of the mark.
200
+ * @param attributes The attributes of the mark.
201
+ * @example editor.commands.extendMarkRange('bold')
202
+ * @example editor.commands.extendMarkRange('mention', { userId: "1" })
203
+ */
204
+ extendMarkRange: (
205
+ /**
206
+ * The type or name of the mark.
207
+ */
208
+ typeOrName: string | MarkType$1,
209
+ /**
210
+ * The attributes of the mark.
211
+ */
212
+ attributes?: Record<string, any>) => ReturnType;
213
+ };
214
+ }
215
+ }
216
+
217
+ declare module '@tiptap/core' {
218
+ interface Commands<ReturnType> {
219
+ first: {
220
+ /**
221
+ * Runs one command after the other and stops at the first which returns true.
222
+ * @param commands The commands to run.
223
+ * @example editor.commands.first([command1, command2])
224
+ */
225
+ first: (commands: Command[] | ((props: CommandProps) => Command[])) => ReturnType;
226
+ };
227
+ }
228
+ }
229
+
230
+ declare module '@tiptap/core' {
231
+ interface Commands<ReturnType> {
232
+ focus: {
233
+ /**
234
+ * Focus the editor at the given position.
235
+ * @param position The position to focus at.
236
+ * @param options.scrollIntoView Scroll the focused position into view after focusing
237
+ * @example editor.commands.focus()
238
+ * @example editor.commands.focus(32, { scrollIntoView: false })
239
+ */
240
+ focus: (
241
+ /**
242
+ * The position to focus at.
243
+ */
244
+ position?: FocusPosition,
245
+ /**
246
+ * Optional options
247
+ * @default { scrollIntoView: true }
248
+ */
249
+ options?: {
250
+ scrollIntoView?: boolean;
251
+ }) => ReturnType;
252
+ };
253
+ }
254
+ }
255
+
256
+ declare module '@tiptap/core' {
257
+ interface Commands<ReturnType> {
258
+ forEach: {
259
+ /**
260
+ * Loop through an array of items.
261
+ */
262
+ forEach: <T>(items: T[], fn: (item: T, props: CommandProps & {
263
+ index: number;
264
+ }) => boolean) => ReturnType;
265
+ };
266
+ }
267
+ }
268
+
269
+ declare module '@tiptap/core' {
270
+ interface Commands<ReturnType> {
271
+ insertContent: {
272
+ /**
273
+ * Insert a node or string of HTML at the current position.
274
+ * @example editor.commands.insertContent('<h1>Example</h1>')
275
+ * @example editor.commands.insertContent('<h1>Example</h1>', { updateSelection: false })
276
+ */
277
+ insertContent: (
278
+ /**
279
+ * The ProseMirror content to insert.
280
+ */
281
+ value: Content | Node$1 | Fragment,
282
+ /**
283
+ * Optional options
284
+ */
285
+ options?: {
286
+ /**
287
+ * Options for parsing the content.
288
+ */
289
+ parseOptions?: ParseOptions;
290
+ /**
291
+ * Whether to update the selection after inserting the content.
292
+ */
293
+ updateSelection?: boolean;
294
+ applyInputRules?: boolean;
295
+ applyPasteRules?: boolean;
296
+ }) => ReturnType;
297
+ };
298
+ }
299
+ }
300
+
301
+ declare module '@tiptap/core' {
302
+ interface Commands<ReturnType> {
303
+ insertContentAt: {
304
+ /**
305
+ * Insert a node or string of HTML at a specific position.
306
+ * @example editor.commands.insertContentAt(0, '<h1>Example</h1>')
307
+ */
308
+ insertContentAt: (
309
+ /**
310
+ * The position to insert the content at.
311
+ */
312
+ position: number | Range,
313
+ /**
314
+ * The ProseMirror content to insert.
315
+ */
316
+ value: Content | Node$1 | Fragment,
317
+ /**
318
+ * Optional options
319
+ */
320
+ options?: {
321
+ /**
322
+ * Options for parsing the content.
323
+ */
324
+ parseOptions?: ParseOptions;
325
+ /**
326
+ * Whether to update the selection after inserting the content.
327
+ */
328
+ updateSelection?: boolean;
329
+ /**
330
+ * Whether to apply input rules after inserting the content.
331
+ */
332
+ applyInputRules?: boolean;
333
+ /**
334
+ * Whether to apply paste rules after inserting the content.
335
+ */
336
+ applyPasteRules?: boolean;
337
+ /**
338
+ * Whether to throw an error if the content is invalid.
339
+ */
340
+ errorOnInvalidContent?: boolean;
341
+ }) => ReturnType;
342
+ };
343
+ }
344
+ }
345
+
346
+ declare module '@tiptap/core' {
347
+ interface Commands<ReturnType> {
348
+ joinUp: {
349
+ /**
350
+ * Join the selected block or, if there is a text selection, the closest ancestor block of the selection that can be joined, with the sibling above it.
351
+ * @example editor.commands.joinUp()
352
+ */
353
+ joinUp: () => ReturnType;
354
+ };
355
+ joinDown: {
356
+ /**
357
+ * Join the selected block, or the closest ancestor of the selection that can be joined, with the sibling after it.
358
+ * @example editor.commands.joinDown()
359
+ */
360
+ joinDown: () => ReturnType;
361
+ };
362
+ joinBackward: {
363
+ /**
364
+ * If the selection is empty and at the start of a textblock, try to reduce the distance between that block and the one before it—if there's a block directly before it that can be joined, join them.
365
+ * If not, try to move the selected block closer to the next one in the document structure by lifting it out of its
366
+ * parent or moving it into a parent of the previous block. Will use the view for accurate (bidi-aware) start-of-textblock detection if given.
367
+ * @example editor.commands.joinBackward()
368
+ */
369
+ joinBackward: () => ReturnType;
370
+ };
371
+ joinForward: {
372
+ /**
373
+ * If the selection is empty and the cursor is at the end of a textblock, try to reduce or remove the boundary between that block and the one after it,
374
+ * either by joining them or by moving the other block closer to this one in the tree structure.
375
+ * Will use the view for accurate start-of-textblock detection if given.
376
+ * @example editor.commands.joinForward()
377
+ */
378
+ joinForward: () => ReturnType;
379
+ };
380
+ }
381
+ }
382
+
383
+ declare module '@tiptap/core' {
384
+ interface Commands<ReturnType> {
385
+ joinItemBackward: {
386
+ /**
387
+ * Join two items backward.
388
+ * @example editor.commands.joinItemBackward()
389
+ */
390
+ joinItemBackward: () => ReturnType;
391
+ };
392
+ }
393
+ }
394
+
395
+ declare module '@tiptap/core' {
396
+ interface Commands<ReturnType> {
397
+ joinItemForward: {
398
+ /**
399
+ * Join two items Forwards.
400
+ * @example editor.commands.joinItemForward()
401
+ */
402
+ joinItemForward: () => ReturnType;
403
+ };
404
+ }
405
+ }
406
+
407
+ declare module '@tiptap/core' {
408
+ interface Commands<ReturnType> {
409
+ joinTextblockBackward: {
410
+ /**
411
+ * A more limited form of joinBackward that only tries to join the current textblock to the one before it, if the cursor is at the start of a textblock.
412
+ */
413
+ joinTextblockBackward: () => ReturnType;
414
+ };
415
+ }
416
+ }
417
+
418
+ declare module '@tiptap/core' {
419
+ interface Commands<ReturnType> {
420
+ joinTextblockForward: {
421
+ /**
422
+ * A more limited form of joinForward that only tries to join the current textblock to the one after it, if the cursor is at the end of a textblock.
423
+ */
424
+ joinTextblockForward: () => ReturnType;
425
+ };
426
+ }
427
+ }
428
+
429
+ declare module '@tiptap/core' {
430
+ interface Commands<ReturnType> {
431
+ keyboardShortcut: {
432
+ /**
433
+ * Trigger a keyboard shortcut.
434
+ * @param name The name of the keyboard shortcut.
435
+ * @example editor.commands.keyboardShortcut('Mod-b')
436
+ */
437
+ keyboardShortcut: (name: string) => ReturnType;
438
+ };
439
+ }
440
+ }
441
+
442
+ declare module '@tiptap/core' {
443
+ interface Commands<ReturnType> {
444
+ lift: {
445
+ /**
446
+ * Removes an existing wrap if possible lifting the node out of it
447
+ * @param typeOrName The type or name of the node.
448
+ * @param attributes The attributes of the node.
449
+ * @example editor.commands.lift('paragraph')
450
+ * @example editor.commands.lift('heading', { level: 1 })
451
+ */
452
+ lift: (typeOrName: string | NodeType$1, attributes?: Record<string, any>) => ReturnType;
453
+ };
454
+ }
455
+ }
456
+
457
+ declare module '@tiptap/core' {
458
+ interface Commands<ReturnType> {
459
+ liftEmptyBlock: {
460
+ /**
461
+ * If the cursor is in an empty textblock that can be lifted, lift the block.
462
+ * @example editor.commands.liftEmptyBlock()
463
+ */
464
+ liftEmptyBlock: () => ReturnType;
465
+ };
466
+ }
467
+ }
468
+
469
+ declare module '@tiptap/core' {
470
+ interface Commands<ReturnType> {
471
+ liftListItem: {
472
+ /**
473
+ * Create a command to lift the list item around the selection up into a wrapping list.
474
+ * @param typeOrName The type or name of the node.
475
+ * @example editor.commands.liftListItem('listItem')
476
+ */
477
+ liftListItem: (typeOrName: string | NodeType$1) => ReturnType;
478
+ };
479
+ }
480
+ }
481
+
482
+ declare module '@tiptap/core' {
483
+ interface Commands<ReturnType> {
484
+ newlineInCode: {
485
+ /**
486
+ * Add a newline character in code.
487
+ * @example editor.commands.newlineInCode()
488
+ */
489
+ newlineInCode: () => ReturnType;
490
+ };
491
+ }
492
+ }
493
+
494
+ declare module '@tiptap/core' {
495
+ interface Commands<ReturnType> {
496
+ resetAttributes: {
497
+ /**
498
+ * Resets some node attributes to the default value.
499
+ * @param typeOrName The type or name of the node.
500
+ * @param attributes The attributes of the node to reset.
501
+ * @example editor.commands.resetAttributes('heading', 'level')
502
+ */
503
+ resetAttributes: (typeOrName: string | NodeType$1 | MarkType$1, attributes: string | string[]) => ReturnType;
504
+ };
505
+ }
506
+ }
507
+
508
+ declare module '@tiptap/core' {
509
+ interface Commands<ReturnType> {
510
+ scrollIntoView: {
511
+ /**
512
+ * Scroll the selection into view.
513
+ * @example editor.commands.scrollIntoView()
514
+ */
515
+ scrollIntoView: () => ReturnType;
516
+ };
517
+ }
518
+ }
519
+
520
+ declare module '@tiptap/core' {
521
+ interface Commands<ReturnType> {
522
+ selectAll: {
523
+ /**
524
+ * Select the whole document.
525
+ * @example editor.commands.selectAll()
526
+ */
527
+ selectAll: () => ReturnType;
528
+ };
529
+ }
530
+ }
531
+
532
+ declare module '@tiptap/core' {
533
+ interface Commands<ReturnType> {
534
+ selectNodeBackward: {
535
+ /**
536
+ * Select a node backward.
537
+ * @example editor.commands.selectNodeBackward()
538
+ */
539
+ selectNodeBackward: () => ReturnType;
540
+ };
541
+ }
542
+ }
543
+
544
+ declare module '@tiptap/core' {
545
+ interface Commands<ReturnType> {
546
+ selectNodeForward: {
547
+ /**
548
+ * Select a node forward.
549
+ * @example editor.commands.selectNodeForward()
550
+ */
551
+ selectNodeForward: () => ReturnType;
552
+ };
553
+ }
554
+ }
555
+
556
+ declare module '@tiptap/core' {
557
+ interface Commands<ReturnType> {
558
+ selectParentNode: {
559
+ /**
560
+ * Select the parent node.
561
+ * @example editor.commands.selectParentNode()
562
+ */
563
+ selectParentNode: () => ReturnType;
564
+ };
565
+ }
566
+ }
567
+
568
+ declare module '@tiptap/core' {
569
+ interface Commands<ReturnType> {
570
+ selectTextblockEnd: {
571
+ /**
572
+ * Moves the cursor to the end of current text block.
573
+ * @example editor.commands.selectTextblockEnd()
574
+ */
575
+ selectTextblockEnd: () => ReturnType;
576
+ };
577
+ }
578
+ }
579
+
580
+ declare module '@tiptap/core' {
581
+ interface Commands<ReturnType> {
582
+ selectTextblockStart: {
583
+ /**
584
+ * Moves the cursor to the start of current text block.
585
+ * @example editor.commands.selectTextblockStart()
586
+ */
587
+ selectTextblockStart: () => ReturnType;
588
+ };
589
+ }
590
+ }
591
+
592
+ declare module '@tiptap/core' {
593
+ interface Commands<ReturnType> {
594
+ setContent: {
595
+ /**
596
+ * Replace the whole document with new content.
597
+ * @param content The new content.
598
+ * @param emitUpdate Whether to emit an update event.
599
+ * @param parseOptions Options for parsing the content.
600
+ * @example editor.commands.setContent('<p>Example text</p>')
601
+ */
602
+ setContent: (
603
+ /**
604
+ * The new content.
605
+ */
606
+ content: Content | Fragment | Node$1,
607
+ /**
608
+ * Options for `setContent`.
609
+ */
610
+ options?: {
611
+ /**
612
+ * Options for parsing the content.
613
+ * @default {}
614
+ */
615
+ parseOptions?: ParseOptions;
616
+ /**
617
+ * Whether to throw an error if the content is invalid.
618
+ */
619
+ errorOnInvalidContent?: boolean;
620
+ /**
621
+ * Whether to emit an update event.
622
+ * @default true
623
+ */
624
+ emitUpdate?: boolean;
625
+ }) => ReturnType;
626
+ };
627
+ }
628
+ }
629
+
630
+ declare module '@tiptap/core' {
631
+ interface Commands<ReturnType> {
632
+ setMark: {
633
+ /**
634
+ * Add a mark with new attributes.
635
+ * @param typeOrName The mark type or name.
636
+ * @example editor.commands.setMark('bold', { level: 1 })
637
+ */
638
+ setMark: (typeOrName: string | MarkType$1, attributes?: Record<string, any>) => ReturnType;
639
+ };
640
+ }
641
+ }
642
+
643
+ declare module '@tiptap/core' {
644
+ interface Commands<ReturnType> {
645
+ setMeta: {
646
+ /**
647
+ * Store a metadata property in the current transaction.
648
+ * @param key The key of the metadata property.
649
+ * @param value The value to store.
650
+ * @example editor.commands.setMeta('foo', 'bar')
651
+ */
652
+ setMeta: (key: string | Plugin | PluginKey, value: any) => ReturnType;
653
+ };
654
+ }
655
+ }
656
+
657
+ declare module '@tiptap/core' {
658
+ interface Commands<ReturnType> {
659
+ setNode: {
660
+ /**
661
+ * Replace a given range with a node.
662
+ * @param typeOrName The type or name of the node
663
+ * @param attributes The attributes of the node
664
+ * @example editor.commands.setNode('paragraph')
665
+ */
666
+ setNode: (typeOrName: string | NodeType$1, attributes?: Record<string, any>) => ReturnType;
667
+ };
668
+ }
669
+ }
670
+
671
+ declare module '@tiptap/core' {
672
+ interface Commands<ReturnType> {
673
+ setNodeSelection: {
674
+ /**
675
+ * Creates a NodeSelection.
676
+ * @param position - Position of the node.
677
+ * @example editor.commands.setNodeSelection(10)
678
+ */
679
+ setNodeSelection: (position: number) => ReturnType;
680
+ };
681
+ }
682
+ }
683
+
684
+ declare module '@tiptap/core' {
685
+ interface Commands<ReturnType> {
686
+ setTextSelection: {
687
+ /**
688
+ * Creates a TextSelection.
689
+ * @param position The position of the selection.
690
+ * @example editor.commands.setTextSelection(10)
691
+ */
692
+ setTextSelection: (position: number | Range) => ReturnType;
693
+ };
694
+ }
695
+ }
696
+
697
+ declare module '@tiptap/core' {
698
+ interface Commands<ReturnType> {
699
+ sinkListItem: {
700
+ /**
701
+ * Sink the list item down into an inner list.
702
+ * @param typeOrName The type or name of the node.
703
+ * @example editor.commands.sinkListItem('listItem')
704
+ */
705
+ sinkListItem: (typeOrName: string | NodeType$1) => ReturnType;
706
+ };
707
+ }
708
+ }
709
+
710
+ declare module '@tiptap/core' {
711
+ interface Commands<ReturnType> {
712
+ splitBlock: {
713
+ /**
714
+ * Forks a new node from an existing node.
715
+ * @param options.keepMarks Keep marks from the previous node.
716
+ * @example editor.commands.splitBlock()
717
+ * @example editor.commands.splitBlock({ keepMarks: true })
718
+ */
719
+ splitBlock: (options?: {
720
+ keepMarks?: boolean;
721
+ }) => ReturnType;
722
+ };
723
+ }
724
+ }
725
+
726
+ declare module '@tiptap/core' {
727
+ interface Commands<ReturnType> {
728
+ splitListItem: {
729
+ /**
730
+ * Splits one list item into two list items.
731
+ * @param typeOrName The type or name of the node.
732
+ * @param overrideAttrs The attributes to ensure on the new node.
733
+ * @example editor.commands.splitListItem('listItem')
734
+ */
735
+ splitListItem: (typeOrName: string | NodeType$1, overrideAttrs?: Record<string, any>) => ReturnType;
736
+ };
737
+ }
738
+ }
739
+
740
+ declare module '@tiptap/core' {
741
+ interface Commands<ReturnType> {
742
+ toggleList: {
743
+ /**
744
+ * Toggle between different list types.
745
+ * @param listTypeOrName The type or name of the list.
746
+ * @param itemTypeOrName The type or name of the list item.
747
+ * @param keepMarks Keep marks when toggling.
748
+ * @param attributes Attributes for the new list.
749
+ * @example editor.commands.toggleList('bulletList', 'listItem')
750
+ */
751
+ toggleList: (listTypeOrName: string | NodeType$1, itemTypeOrName: string | NodeType$1, keepMarks?: boolean, attributes?: Record<string, any>) => ReturnType;
752
+ };
753
+ }
754
+ }
755
+
756
+ declare module '@tiptap/core' {
757
+ interface Commands<ReturnType> {
758
+ toggleMark: {
759
+ /**
760
+ * Toggle a mark on and off.
761
+ * @param typeOrName The mark type or name.
762
+ * @param attributes The attributes of the mark.
763
+ * @param options.extendEmptyMarkRange Removes the mark even across the current selection. Defaults to `false`.
764
+ * @example editor.commands.toggleMark('bold')
765
+ */
766
+ toggleMark: (
767
+ /**
768
+ * The mark type or name.
769
+ */
770
+ typeOrName: string | MarkType$1,
771
+ /**
772
+ * The attributes of the mark.
773
+ */
774
+ attributes?: Record<string, any>, options?: {
775
+ /**
776
+ * Removes the mark even across the current selection. Defaults to `false`.
777
+ */
778
+ extendEmptyMarkRange?: boolean;
779
+ }) => ReturnType;
780
+ };
781
+ }
782
+ }
783
+
784
+ declare module '@tiptap/core' {
785
+ interface Commands<ReturnType> {
786
+ toggleNode: {
787
+ /**
788
+ * Toggle a node with another node.
789
+ * @param typeOrName The type or name of the node.
790
+ * @param toggleTypeOrName The type or name of the node to toggle.
791
+ * @param attributes The attributes of the node.
792
+ * @example editor.commands.toggleNode('heading', 'paragraph')
793
+ */
794
+ toggleNode: (typeOrName: string | NodeType$1, toggleTypeOrName: string | NodeType$1, attributes?: Record<string, any>) => ReturnType;
795
+ };
796
+ }
797
+ }
798
+
799
+ declare module '@tiptap/core' {
800
+ interface Commands<ReturnType> {
801
+ toggleWrap: {
802
+ /**
803
+ * Wraps nodes in another node, or removes an existing wrap.
804
+ * @param typeOrName The type or name of the node.
805
+ * @param attributes The attributes of the node.
806
+ * @example editor.commands.toggleWrap('blockquote')
807
+ */
808
+ toggleWrap: (typeOrName: string | NodeType$1, attributes?: Record<string, any>) => ReturnType;
809
+ };
810
+ }
811
+ }
812
+
813
+ declare module '@tiptap/core' {
814
+ interface Commands<ReturnType> {
815
+ undoInputRule: {
816
+ /**
817
+ * Undo an input rule.
818
+ * @example editor.commands.undoInputRule()
819
+ */
820
+ undoInputRule: () => ReturnType;
821
+ };
822
+ }
823
+ }
824
+
825
+ declare module '@tiptap/core' {
826
+ interface Commands<ReturnType> {
827
+ unsetAllMarks: {
828
+ /**
829
+ * Remove all marks in the current selection.
830
+ * @example editor.commands.unsetAllMarks()
831
+ */
832
+ unsetAllMarks: () => ReturnType;
833
+ };
834
+ }
835
+ }
836
+
837
+ declare module '@tiptap/core' {
838
+ interface Commands<ReturnType> {
839
+ unsetMark: {
840
+ /**
841
+ * Remove all marks in the current selection.
842
+ * @param typeOrName The mark type or name.
843
+ * @param options.extendEmptyMarkRange Removes the mark even across the current selection. Defaults to `false`.
844
+ * @example editor.commands.unsetMark('bold')
845
+ */
846
+ unsetMark: (
847
+ /**
848
+ * The mark type or name.
849
+ */
850
+ typeOrName: string | MarkType$1, options?: {
851
+ /**
852
+ * Removes the mark even across the current selection. Defaults to `false`.
853
+ */
854
+ extendEmptyMarkRange?: boolean;
855
+ }) => ReturnType;
856
+ };
857
+ }
858
+ }
859
+
860
+ declare module '@tiptap/core' {
861
+ interface Commands<ReturnType> {
862
+ updateAttributes: {
863
+ /**
864
+ * Update attributes of a node or mark.
865
+ * @param typeOrName The type or name of the node or mark.
866
+ * @param attributes The attributes of the node or mark.
867
+ * @example editor.commands.updateAttributes('mention', { userId: "2" })
868
+ */
869
+ updateAttributes: (
870
+ /**
871
+ * The type or name of the node or mark.
872
+ */
873
+ typeOrName: string | NodeType$1 | MarkType$1,
874
+ /**
875
+ * The attributes of the node or mark.
876
+ */
877
+ attributes: Record<string, any>) => ReturnType;
878
+ };
879
+ }
880
+ }
881
+
882
+ declare module '@tiptap/core' {
883
+ interface Commands<ReturnType> {
884
+ wrapIn: {
885
+ /**
886
+ * Wraps nodes in another node.
887
+ * @param typeOrName The type or name of the node.
888
+ * @param attributes The attributes of the node.
889
+ * @example editor.commands.wrapIn('blockquote')
890
+ */
891
+ wrapIn: (typeOrName: string | NodeType$1, attributes?: Record<string, any>) => ReturnType;
892
+ };
893
+ }
894
+ }
895
+
896
+ declare module '@tiptap/core' {
897
+ interface Commands<ReturnType> {
898
+ wrapInList: {
899
+ /**
900
+ * Wrap a node in a list.
901
+ * @param typeOrName The type or name of the node.
902
+ * @param attributes The attributes of the node.
903
+ * @example editor.commands.wrapInList('bulletList')
904
+ */
905
+ wrapInList: (typeOrName: string | NodeType$1, attributes?: Record<string, any>) => ReturnType;
906
+ };
907
+ }
908
+ }
909
+
910
+ type InputRuleMatch = {
911
+ index: number;
912
+ text: string;
913
+ replaceWith?: string;
914
+ match?: RegExpMatchArray;
915
+ data?: Record<string, any>;
916
+ };
917
+ type InputRuleFinder = RegExp | ((text: string) => InputRuleMatch | null);
918
+ declare class InputRule {
919
+ find: InputRuleFinder;
920
+ handler: (props: {
921
+ state: EditorState;
922
+ range: Range;
923
+ match: ExtendedRegExpMatchArray;
924
+ commands: SingleCommands;
925
+ chain: () => ChainedCommands;
926
+ can: () => CanCommands;
927
+ }) => void | null;
928
+ constructor(config: {
929
+ find: InputRuleFinder;
930
+ handler: (props: {
931
+ state: EditorState;
932
+ range: Range;
933
+ match: ExtendedRegExpMatchArray;
934
+ commands: SingleCommands;
935
+ chain: () => ChainedCommands;
936
+ can: () => CanCommands;
937
+ }) => void | null;
938
+ });
939
+ }
940
+
941
+ declare global {
942
+ namespace JSX {
943
+ type Element = [string, ...any[]];
944
+ interface IntrinsicElements {
945
+ [key: string]: any;
946
+ }
947
+ }
948
+ }
949
+
950
+ interface MarkConfig<Options = any, Storage = any> extends ExtendableConfig<Options, Storage, MarkConfig<Options, Storage>, MarkType$1> {
951
+ /**
952
+ * Mark View
953
+ */
954
+ addMarkView?: ((this: {
955
+ name: string;
956
+ options: Options;
957
+ storage: Storage;
958
+ editor: Editor;
959
+ type: MarkType$1;
960
+ parent: ParentConfig<MarkConfig<Options, Storage>>['addMarkView'];
961
+ }) => MarkViewRenderer) | null;
962
+ /**
963
+ * Keep mark after split node
964
+ */
965
+ keepOnSplit?: boolean | (() => boolean);
966
+ /**
967
+ * Inclusive
968
+ */
969
+ inclusive?: MarkSpec['inclusive'] | ((this: {
970
+ name: string;
971
+ options: Options;
972
+ storage: Storage;
973
+ parent: ParentConfig<MarkConfig<Options, Storage>>['inclusive'];
974
+ editor?: Editor;
975
+ }) => MarkSpec['inclusive']);
976
+ /**
977
+ * Excludes
978
+ */
979
+ excludes?: MarkSpec['excludes'] | ((this: {
980
+ name: string;
981
+ options: Options;
982
+ storage: Storage;
983
+ parent: ParentConfig<MarkConfig<Options, Storage>>['excludes'];
984
+ editor?: Editor;
985
+ }) => MarkSpec['excludes']);
986
+ /**
987
+ * Marks this Mark as exitable
988
+ */
989
+ exitable?: boolean | (() => boolean);
990
+ /**
991
+ * Group
992
+ */
993
+ group?: MarkSpec['group'] | ((this: {
994
+ name: string;
995
+ options: Options;
996
+ storage: Storage;
997
+ parent: ParentConfig<MarkConfig<Options, Storage>>['group'];
998
+ editor?: Editor;
999
+ }) => MarkSpec['group']);
1000
+ /**
1001
+ * Spanning
1002
+ */
1003
+ spanning?: MarkSpec['spanning'] | ((this: {
1004
+ name: string;
1005
+ options: Options;
1006
+ storage: Storage;
1007
+ parent: ParentConfig<MarkConfig<Options, Storage>>['spanning'];
1008
+ editor?: Editor;
1009
+ }) => MarkSpec['spanning']);
1010
+ /**
1011
+ * Code
1012
+ */
1013
+ code?: boolean | ((this: {
1014
+ name: string;
1015
+ options: Options;
1016
+ storage: Storage;
1017
+ parent: ParentConfig<MarkConfig<Options, Storage>>['code'];
1018
+ editor?: Editor;
1019
+ }) => boolean);
1020
+ /**
1021
+ * Parse HTML
1022
+ */
1023
+ parseHTML?: (this: {
1024
+ name: string;
1025
+ options: Options;
1026
+ storage: Storage;
1027
+ parent: ParentConfig<MarkConfig<Options, Storage>>['parseHTML'];
1028
+ editor?: Editor;
1029
+ }) => MarkSpec['parseDOM'];
1030
+ /**
1031
+ * Render HTML
1032
+ */
1033
+ renderHTML?: ((this: {
1034
+ name: string;
1035
+ options: Options;
1036
+ storage: Storage;
1037
+ parent: ParentConfig<MarkConfig<Options, Storage>>['renderHTML'];
1038
+ editor?: Editor;
1039
+ }, props: {
1040
+ mark: Mark$1;
1041
+ HTMLAttributes: Record<string, any>;
1042
+ }) => DOMOutputSpec) | null;
1043
+ /**
1044
+ * Attributes
1045
+ */
1046
+ addAttributes?: (this: {
1047
+ name: string;
1048
+ options: Options;
1049
+ storage: Storage;
1050
+ parent: ParentConfig<MarkConfig<Options, Storage>>['addAttributes'];
1051
+ editor?: Editor;
1052
+ }) => Attributes | {};
1053
+ }
1054
+ /**
1055
+ * The Mark class is used to create custom mark extensions.
1056
+ * @see https://tiptap.dev/api/extensions#create-a-new-extension
1057
+ */
1058
+ declare class Mark<Options = any, Storage = any> extends Extendable<Options, Storage> {
1059
+ type: string;
1060
+ static create<O = any, S = any>(config?: Partial<MarkConfig<O, S>>): Mark<O, S>;
1061
+ static handleExit({ editor, mark }: {
1062
+ editor: Editor;
1063
+ mark: Mark;
1064
+ }): boolean;
1065
+ }
1066
+
1067
+ interface NodeConfig<Options = any, Storage = any> extends ExtendableConfig<Options, Storage, NodeConfig<Options, Storage>, NodeType$1> {
1068
+ /**
1069
+ * Node View
1070
+ */
1071
+ addNodeView?: ((this: {
1072
+ name: string;
1073
+ options: Options;
1074
+ storage: Storage;
1075
+ editor: Editor;
1076
+ type: NodeType$1;
1077
+ parent: ParentConfig<NodeConfig<Options, Storage>>['addNodeView'];
1078
+ }) => NodeViewRenderer) | null;
1079
+ /**
1080
+ * Defines if this node should be a top level node (doc)
1081
+ * @default false
1082
+ * @example true
1083
+ */
1084
+ topNode?: boolean;
1085
+ /**
1086
+ * The content expression for this node, as described in the [schema
1087
+ * guide](/docs/guide/#schema.content_expressions). When not given,
1088
+ * the node does not allow any content.
1089
+ *
1090
+ * You can read more about it on the Prosemirror documentation here
1091
+ * @see https://prosemirror.net/docs/guide/#schema.content_expressions
1092
+ * @default undefined
1093
+ * @example content: 'block+'
1094
+ * @example content: 'headline paragraph block*'
1095
+ */
1096
+ content?: NodeSpec['content'] | ((this: {
1097
+ name: string;
1098
+ options: Options;
1099
+ storage: Storage;
1100
+ parent: ParentConfig<NodeConfig<Options, Storage>>['content'];
1101
+ editor?: Editor;
1102
+ }) => NodeSpec['content']);
1103
+ /**
1104
+ * The marks that are allowed inside of this node. May be a
1105
+ * space-separated string referring to mark names or groups, `"_"`
1106
+ * to explicitly allow all marks, or `""` to disallow marks. When
1107
+ * not given, nodes with inline content default to allowing all
1108
+ * marks, other nodes default to not allowing marks.
1109
+ *
1110
+ * @example marks: 'strong em'
1111
+ */
1112
+ marks?: NodeSpec['marks'] | ((this: {
1113
+ name: string;
1114
+ options: Options;
1115
+ storage: Storage;
1116
+ parent: ParentConfig<NodeConfig<Options, Storage>>['marks'];
1117
+ editor?: Editor;
1118
+ }) => NodeSpec['marks']);
1119
+ /**
1120
+ * The group or space-separated groups to which this node belongs,
1121
+ * which can be referred to in the content expressions for the
1122
+ * schema.
1123
+ *
1124
+ * By default Tiptap uses the groups 'block' and 'inline' for nodes. You
1125
+ * can also use custom groups if you want to group specific nodes together
1126
+ * and handle them in your schema.
1127
+ * @example group: 'block'
1128
+ * @example group: 'inline'
1129
+ * @example group: 'customBlock' // this uses a custom group
1130
+ */
1131
+ group?: NodeSpec['group'] | ((this: {
1132
+ name: string;
1133
+ options: Options;
1134
+ storage: Storage;
1135
+ parent: ParentConfig<NodeConfig<Options, Storage>>['group'];
1136
+ editor?: Editor;
1137
+ }) => NodeSpec['group']);
1138
+ /**
1139
+ * Should be set to true for inline nodes. (Implied for text nodes.)
1140
+ */
1141
+ inline?: NodeSpec['inline'] | ((this: {
1142
+ name: string;
1143
+ options: Options;
1144
+ storage: Storage;
1145
+ parent: ParentConfig<NodeConfig<Options, Storage>>['inline'];
1146
+ editor?: Editor;
1147
+ }) => NodeSpec['inline']);
1148
+ /**
1149
+ * Can be set to true to indicate that, though this isn't a [leaf
1150
+ * node](https://prosemirror.net/docs/ref/#model.NodeType.isLeaf), it doesn't have directly editable
1151
+ * content and should be treated as a single unit in the view.
1152
+ *
1153
+ * @example atom: true
1154
+ */
1155
+ atom?: NodeSpec['atom'] | ((this: {
1156
+ name: string;
1157
+ options: Options;
1158
+ storage: Storage;
1159
+ parent: ParentConfig<NodeConfig<Options, Storage>>['atom'];
1160
+ editor?: Editor;
1161
+ }) => NodeSpec['atom']);
1162
+ /**
1163
+ * Controls whether nodes of this type can be selected as a [node
1164
+ * selection](https://prosemirror.net/docs/ref/#state.NodeSelection). Defaults to true for non-text
1165
+ * nodes.
1166
+ *
1167
+ * @default true
1168
+ * @example selectable: false
1169
+ */
1170
+ selectable?: NodeSpec['selectable'] | ((this: {
1171
+ name: string;
1172
+ options: Options;
1173
+ storage: Storage;
1174
+ parent: ParentConfig<NodeConfig<Options, Storage>>['selectable'];
1175
+ editor?: Editor;
1176
+ }) => NodeSpec['selectable']);
1177
+ /**
1178
+ * Determines whether nodes of this type can be dragged without
1179
+ * being selected. Defaults to false.
1180
+ *
1181
+ * @default: false
1182
+ * @example: draggable: true
1183
+ */
1184
+ draggable?: NodeSpec['draggable'] | ((this: {
1185
+ name: string;
1186
+ options: Options;
1187
+ storage: Storage;
1188
+ parent: ParentConfig<NodeConfig<Options, Storage>>['draggable'];
1189
+ editor?: Editor;
1190
+ }) => NodeSpec['draggable']);
1191
+ /**
1192
+ * Can be used to indicate that this node contains code, which
1193
+ * causes some commands to behave differently.
1194
+ */
1195
+ code?: NodeSpec['code'] | ((this: {
1196
+ name: string;
1197
+ options: Options;
1198
+ storage: Storage;
1199
+ parent: ParentConfig<NodeConfig<Options, Storage>>['code'];
1200
+ editor?: Editor;
1201
+ }) => NodeSpec['code']);
1202
+ /**
1203
+ * Controls way whitespace in this a node is parsed. The default is
1204
+ * `"normal"`, which causes the [DOM parser](https://prosemirror.net/docs/ref/#model.DOMParser) to
1205
+ * collapse whitespace in normal mode, and normalize it (replacing
1206
+ * newlines and such with spaces) otherwise. `"pre"` causes the
1207
+ * parser to preserve spaces inside the node. When this option isn't
1208
+ * given, but [`code`](https://prosemirror.net/docs/ref/#model.NodeSpec.code) is true, `whitespace`
1209
+ * will default to `"pre"`. Note that this option doesn't influence
1210
+ * the way the node is rendered—that should be handled by `toDOM`
1211
+ * and/or styling.
1212
+ */
1213
+ whitespace?: NodeSpec['whitespace'] | ((this: {
1214
+ name: string;
1215
+ options: Options;
1216
+ storage: Storage;
1217
+ parent: ParentConfig<NodeConfig<Options, Storage>>['whitespace'];
1218
+ editor?: Editor;
1219
+ }) => NodeSpec['whitespace']);
1220
+ /**
1221
+ * Allows a **single** node to be set as linebreak equivalent (e.g. hardBreak).
1222
+ * When converting between block types that have whitespace set to "pre"
1223
+ * and don't support the linebreak node (e.g. codeBlock) and other block types
1224
+ * that do support the linebreak node (e.g. paragraphs) - this node will be used
1225
+ * as the linebreak instead of stripping the newline.
1226
+ *
1227
+ * See [linebreakReplacement](https://prosemirror.net/docs/ref/#model.NodeSpec.linebreakReplacement).
1228
+ */
1229
+ linebreakReplacement?: NodeSpec['linebreakReplacement'] | ((this: {
1230
+ name: string;
1231
+ options: Options;
1232
+ storage: Storage;
1233
+ parent: ParentConfig<NodeConfig<Options, Storage>>['linebreakReplacement'];
1234
+ editor?: Editor;
1235
+ }) => NodeSpec['linebreakReplacement']);
1236
+ /**
1237
+ * When enabled, enables both
1238
+ * [`definingAsContext`](https://prosemirror.net/docs/ref/#model.NodeSpec.definingAsContext) and
1239
+ * [`definingForContent`](https://prosemirror.net/docs/ref/#model.NodeSpec.definingForContent).
1240
+ *
1241
+ * @default false
1242
+ * @example isolating: true
1243
+ */
1244
+ defining?: NodeSpec['defining'] | ((this: {
1245
+ name: string;
1246
+ options: Options;
1247
+ storage: Storage;
1248
+ parent: ParentConfig<NodeConfig<Options, Storage>>['defining'];
1249
+ editor?: Editor;
1250
+ }) => NodeSpec['defining']);
1251
+ /**
1252
+ * When enabled (default is false), the sides of nodes of this type
1253
+ * count as boundaries that regular editing operations, like
1254
+ * backspacing or lifting, won't cross. An example of a node that
1255
+ * should probably have this enabled is a table cell.
1256
+ */
1257
+ isolating?: NodeSpec['isolating'] | ((this: {
1258
+ name: string;
1259
+ options: Options;
1260
+ storage: Storage;
1261
+ parent: ParentConfig<NodeConfig<Options, Storage>>['isolating'];
1262
+ editor?: Editor;
1263
+ }) => NodeSpec['isolating']);
1264
+ /**
1265
+ * Associates DOM parser information with this node, which can be
1266
+ * used by [`DOMParser.fromSchema`](https://prosemirror.net/docs/ref/#model.DOMParser^fromSchema) to
1267
+ * automatically derive a parser. The `node` field in the rules is
1268
+ * implied (the name of this node will be filled in automatically).
1269
+ * If you supply your own parser, you do not need to also specify
1270
+ * parsing rules in your schema.
1271
+ *
1272
+ * @example parseHTML: [{ tag: 'div', attrs: { 'data-id': 'my-block' } }]
1273
+ */
1274
+ parseHTML?: (this: {
1275
+ name: string;
1276
+ options: Options;
1277
+ storage: Storage;
1278
+ parent: ParentConfig<NodeConfig<Options, Storage>>['parseHTML'];
1279
+ editor?: Editor;
1280
+ }) => NodeSpec['parseDOM'];
1281
+ /**
1282
+ * A description of a DOM structure. Can be either a string, which is
1283
+ * interpreted as a text node, a DOM node, which is interpreted as
1284
+ * itself, a `{dom, contentDOM}` object, or an array.
1285
+ *
1286
+ * An array describes a DOM element. The first value in the array
1287
+ * should be a string—the name of the DOM element, optionally prefixed
1288
+ * by a namespace URL and a space. If the second element is plain
1289
+ * object, it is interpreted as a set of attributes for the element.
1290
+ * Any elements after that (including the 2nd if it's not an attribute
1291
+ * object) are interpreted as children of the DOM elements, and must
1292
+ * either be valid `DOMOutputSpec` values, or the number zero.
1293
+ *
1294
+ * The number zero (pronounced “hole”) is used to indicate the place
1295
+ * where a node's child nodes should be inserted. If it occurs in an
1296
+ * output spec, it should be the only child element in its parent
1297
+ * node.
1298
+ *
1299
+ * @example toDOM: ['div[data-id="my-block"]', { class: 'my-block' }, 0]
1300
+ */
1301
+ renderHTML?: ((this: {
1302
+ name: string;
1303
+ options: Options;
1304
+ storage: Storage;
1305
+ parent: ParentConfig<NodeConfig<Options, Storage>>['renderHTML'];
1306
+ editor?: Editor;
1307
+ }, props: {
1308
+ node: Node$1;
1309
+ HTMLAttributes: Record<string, any>;
1310
+ }) => DOMOutputSpec) | null;
1311
+ /**
1312
+ * renders the node as text
1313
+ * @example renderText: () => 'foo
1314
+ */
1315
+ renderText?: ((this: {
1316
+ name: string;
1317
+ options: Options;
1318
+ storage: Storage;
1319
+ parent: ParentConfig<NodeConfig<Options, Storage>>['renderText'];
1320
+ editor?: Editor;
1321
+ }, props: {
1322
+ node: Node$1;
1323
+ pos: number;
1324
+ parent: Node$1;
1325
+ index: number;
1326
+ }) => string) | null;
1327
+ /**
1328
+ * Add attributes to the node
1329
+ * @example addAttributes: () => ({ class: 'foo' })
1330
+ */
1331
+ addAttributes?: (this: {
1332
+ name: string;
1333
+ options: Options;
1334
+ storage: Storage;
1335
+ parent: ParentConfig<NodeConfig<Options, Storage>>['addAttributes'];
1336
+ editor?: Editor;
1337
+ }) => Attributes | {};
1338
+ }
1339
+ /**
1340
+ * The Node class is used to create custom node extensions.
1341
+ * @see https://tiptap.dev/api/extensions#create-a-new-extension
1342
+ */
1343
+ declare class Node<Options = any, Storage = any> extends Extendable<Options, Storage> {
1344
+ type: string;
1345
+ static create<O = any, S = any>(config?: Partial<NodeConfig<O, S>>): Node<O, S>;
1346
+ }
1347
+
1348
+ declare class NodePos {
1349
+ private resolvedPos;
1350
+ private isBlock;
1351
+ private editor;
1352
+ private get name();
1353
+ constructor(pos: ResolvedPos, editor: Editor, isBlock?: boolean, node?: Node$1 | null);
1354
+ private currentNode;
1355
+ get node(): Node$1;
1356
+ get element(): HTMLElement;
1357
+ actualDepth: number | null;
1358
+ get depth(): number;
1359
+ get pos(): number;
1360
+ get content(): Fragment;
1361
+ set content(content: Content);
1362
+ get attributes(): {
1363
+ [key: string]: any;
1364
+ };
1365
+ get textContent(): string;
1366
+ get size(): number;
1367
+ get from(): number;
1368
+ get range(): Range;
1369
+ get to(): number;
1370
+ get parent(): NodePos | null;
1371
+ get before(): NodePos | null;
1372
+ get after(): NodePos | null;
1373
+ get children(): NodePos[];
1374
+ get firstChild(): NodePos | null;
1375
+ get lastChild(): NodePos | null;
1376
+ closest(selector: string, attributes?: {
1377
+ [key: string]: any;
1378
+ }): NodePos | null;
1379
+ querySelector(selector: string, attributes?: {
1380
+ [key: string]: any;
1381
+ }): NodePos | null;
1382
+ querySelectorAll(selector: string, attributes?: {
1383
+ [key: string]: any;
1384
+ }, firstItemOnly?: boolean): NodePos[];
1385
+ setAttribute(attributes: {
1386
+ [key: string]: any;
1387
+ }): void;
1388
+ }
1389
+
1390
+ type PasteRuleMatch = {
1391
+ index: number;
1392
+ text: string;
1393
+ replaceWith?: string;
1394
+ match?: RegExpMatchArray;
1395
+ data?: Record<string, any>;
1396
+ };
1397
+ type PasteRuleFinder = RegExp | ((text: string, event?: ClipboardEvent | null) => PasteRuleMatch[] | null | undefined);
1398
+ /**
1399
+ * Paste rules are used to react to pasted content.
1400
+ * @see https://tiptap.dev/docs/editor/extensions/custom-extensions/extend-existing#paste-rules
1401
+ */
1402
+ declare class PasteRule {
1403
+ find: PasteRuleFinder;
1404
+ handler: (props: {
1405
+ state: EditorState;
1406
+ range: Range;
1407
+ match: ExtendedRegExpMatchArray;
1408
+ commands: SingleCommands;
1409
+ chain: () => ChainedCommands;
1410
+ can: () => CanCommands;
1411
+ pasteEvent: ClipboardEvent | null;
1412
+ dropEvent: DragEvent | null;
1413
+ }) => void | null;
1414
+ constructor(config: {
1415
+ find: PasteRuleFinder;
1416
+ handler: (props: {
1417
+ can: () => CanCommands;
1418
+ chain: () => ChainedCommands;
1419
+ commands: SingleCommands;
1420
+ dropEvent: DragEvent | null;
1421
+ match: ExtendedRegExpMatchArray;
1422
+ pasteEvent: ClipboardEvent | null;
1423
+ range: Range;
1424
+ state: EditorState;
1425
+ }) => void | null;
1426
+ });
1427
+ }
1428
+
1429
+ interface Commands<ReturnType = any> {
1430
+ }
1431
+ interface Storage {
1432
+ }
1433
+
1434
+ type AnyExtension = Extension | Node | Mark;
1435
+ type Extensions = AnyExtension[];
1436
+ type ParentConfig<T> = Partial<{
1437
+ [P in keyof T]: Required<T>[P] extends (...args: any) => any ? (...args: Parameters<Required<T>[P]>) => ReturnType<Required<T>[P]> : T[P];
1438
+ }>;
1439
+ interface EditorEvents {
1440
+ beforeCreate: {
1441
+ /**
1442
+ * The editor instance
1443
+ */
1444
+ editor: Editor;
1445
+ };
1446
+ create: {
1447
+ /**
1448
+ * The editor instance
1449
+ */
1450
+ editor: Editor;
1451
+ };
1452
+ contentError: {
1453
+ /**
1454
+ * The editor instance
1455
+ */
1456
+ editor: Editor;
1457
+ /**
1458
+ * The error that occurred while parsing the content
1459
+ */
1460
+ error: Error;
1461
+ /**
1462
+ * If called, will re-initialize the editor with the collaboration extension removed.
1463
+ * This will prevent syncing back deletions of content not present in the current schema.
1464
+ */
1465
+ disableCollaboration: () => void;
1466
+ };
1467
+ update: {
1468
+ /**
1469
+ * The editor instance
1470
+ */
1471
+ editor: Editor;
1472
+ /**
1473
+ * The transaction that caused the update
1474
+ */
1475
+ transaction: Transaction;
1476
+ /**
1477
+ * Appended transactions that were added to the initial transaction by plugins
1478
+ */
1479
+ appendedTransactions: Transaction[];
1480
+ };
1481
+ selectionUpdate: {
1482
+ /**
1483
+ * The editor instance
1484
+ */
1485
+ editor: Editor;
1486
+ /**
1487
+ * The transaction that caused the selection update
1488
+ */
1489
+ transaction: Transaction;
1490
+ };
1491
+ beforeTransaction: {
1492
+ /**
1493
+ * The editor instance
1494
+ */
1495
+ editor: Editor;
1496
+ /**
1497
+ * The transaction that will be applied
1498
+ */
1499
+ transaction: Transaction;
1500
+ /**
1501
+ * The next state of the editor after the transaction is applied
1502
+ */
1503
+ nextState: EditorState;
1504
+ };
1505
+ transaction: {
1506
+ /**
1507
+ * The editor instance
1508
+ */
1509
+ editor: Editor;
1510
+ /**
1511
+ * The initial transaction
1512
+ */
1513
+ transaction: Transaction;
1514
+ /**
1515
+ * Appended transactions that were added to the initial transaction by plugins
1516
+ */
1517
+ appendedTransactions: Transaction[];
1518
+ };
1519
+ focus: {
1520
+ /**
1521
+ * The editor instance
1522
+ */
1523
+ editor: Editor;
1524
+ /**
1525
+ * The focus event
1526
+ */
1527
+ event: FocusEvent;
1528
+ /**
1529
+ * The transaction that caused the focus
1530
+ */
1531
+ transaction: Transaction;
1532
+ };
1533
+ blur: {
1534
+ /**
1535
+ * The editor instance
1536
+ */
1537
+ editor: Editor;
1538
+ /**
1539
+ * The focus event
1540
+ */
1541
+ event: FocusEvent;
1542
+ /**
1543
+ * The transaction that caused the blur
1544
+ */
1545
+ transaction: Transaction;
1546
+ };
1547
+ destroy: void;
1548
+ paste: {
1549
+ /**
1550
+ * The editor instance
1551
+ */
1552
+ editor: Editor;
1553
+ /**
1554
+ * The clipboard event
1555
+ */
1556
+ event: ClipboardEvent;
1557
+ /**
1558
+ * The slice that was pasted
1559
+ */
1560
+ slice: Slice;
1561
+ };
1562
+ drop: {
1563
+ /**
1564
+ * The editor instance
1565
+ */
1566
+ editor: Editor;
1567
+ /**
1568
+ * The drag event
1569
+ */
1570
+ event: DragEvent;
1571
+ /**
1572
+ * The slice that was dropped
1573
+ */
1574
+ slice: Slice;
1575
+ /**
1576
+ * Whether the content was moved (true) or copied (false)
1577
+ */
1578
+ moved: boolean;
1579
+ };
1580
+ delete: {
1581
+ /**
1582
+ * The editor instance
1583
+ */
1584
+ editor: Editor;
1585
+ /**
1586
+ * The range of the deleted content (before the deletion)
1587
+ */
1588
+ deletedRange: Range;
1589
+ /**
1590
+ * The new range of positions of where the deleted content was in the new document (after the deletion)
1591
+ */
1592
+ newRange: Range;
1593
+ /**
1594
+ * The transaction that caused the deletion
1595
+ */
1596
+ transaction: Transaction;
1597
+ /**
1598
+ * The combined transform (including all appended transactions) that caused the deletion
1599
+ */
1600
+ combinedTransform: Transform;
1601
+ /**
1602
+ * Whether the deletion was partial (only a part of this content was deleted)
1603
+ */
1604
+ partial: boolean;
1605
+ /**
1606
+ * This is the start position of the mark in the document (before the deletion)
1607
+ */
1608
+ from: number;
1609
+ /**
1610
+ * This is the end position of the mark in the document (before the deletion)
1611
+ */
1612
+ to: number;
1613
+ } & ({
1614
+ /**
1615
+ * The content that was deleted
1616
+ */
1617
+ type: 'node';
1618
+ /**
1619
+ * The node which the deletion occurred in
1620
+ * @note This can be a parent node of the deleted content
1621
+ */
1622
+ node: Node$1;
1623
+ /**
1624
+ * The new start position of the node in the document (after the deletion)
1625
+ */
1626
+ newFrom: number;
1627
+ /**
1628
+ * The new end position of the node in the document (after the deletion)
1629
+ */
1630
+ newTo: number;
1631
+ } | {
1632
+ /**
1633
+ * The content that was deleted
1634
+ */
1635
+ type: 'mark';
1636
+ /**
1637
+ * The mark that was deleted
1638
+ */
1639
+ mark: Mark$1;
1640
+ });
1641
+ }
1642
+ type EnableRules = (AnyExtension | string)[] | boolean;
1643
+ interface EditorOptions {
1644
+ /**
1645
+ * The element or selector to bind the editor to
1646
+ * If `null` is passed, the editor will not be mounted automatically
1647
+ * If a function is passed, it will be called with the editor's root element
1648
+ */
1649
+ element: Element | null;
1650
+ /**
1651
+ * The content of the editor (HTML, JSON, or a JSON array)
1652
+ */
1653
+ content: Content;
1654
+ /**
1655
+ * The extensions to use
1656
+ */
1657
+ extensions: Extensions;
1658
+ /**
1659
+ * Whether to inject base CSS styles
1660
+ */
1661
+ injectCSS: boolean;
1662
+ /**
1663
+ * A nonce to use for CSP while injecting styles
1664
+ */
1665
+ injectNonce: string | undefined;
1666
+ /**
1667
+ * The editor's initial focus position
1668
+ */
1669
+ autofocus: FocusPosition;
1670
+ /**
1671
+ * Whether the editor is editable
1672
+ */
1673
+ editable: boolean;
1674
+ /**
1675
+ * The editor's props
1676
+ */
1677
+ editorProps: EditorProps;
1678
+ /**
1679
+ * The editor's content parser options
1680
+ */
1681
+ parseOptions: ParseOptions;
1682
+ /**
1683
+ * The editor's core extension options
1684
+ */
1685
+ coreExtensionOptions?: {
1686
+ clipboardTextSerializer?: {
1687
+ blockSeparator?: string;
1688
+ };
1689
+ delete?: {
1690
+ /**
1691
+ * Whether the `delete` extension should be called asynchronously to avoid blocking the editor while processing deletions
1692
+ * @default true deletion events are called asynchronously
1693
+ */
1694
+ async?: boolean;
1695
+ /**
1696
+ * Allows filtering the transactions that are processed by the `delete` extension.
1697
+ * If the function returns `true`, the transaction will be ignored.
1698
+ */
1699
+ filterTransaction?: (transaction: Transaction) => boolean;
1700
+ };
1701
+ };
1702
+ /**
1703
+ * Whether to enable input rules behavior
1704
+ */
1705
+ enableInputRules: EnableRules;
1706
+ /**
1707
+ * Whether to enable paste rules behavior
1708
+ */
1709
+ enablePasteRules: EnableRules;
5
1710
  /**
6
- * The lowlight instance.
1711
+ * Determines whether core extensions are enabled.
1712
+ *
1713
+ * If set to `false`, all core extensions will be disabled.
1714
+ * To disable specific core extensions, provide an object where the keys are the extension names and the values are `false`.
1715
+ * Extensions not listed in the object will remain enabled.
1716
+ *
1717
+ * @example
1718
+ * // Disable all core extensions
1719
+ * enabledCoreExtensions: false
1720
+ *
1721
+ * @example
1722
+ * // Disable only the keymap core extension
1723
+ * enabledCoreExtensions: { keymap: false }
1724
+ *
1725
+ * @default true
7
1726
  */
8
- lowlight: any;
1727
+ enableCoreExtensions?: boolean | Partial<Record<'editable' | 'clipboardTextSerializer' | 'commands' | 'focusEvents' | 'keymap' | 'tabindex' | 'drop' | 'paste' | 'delete', false>>;
1728
+ /**
1729
+ * If `true`, the editor will check the content for errors on initialization.
1730
+ * Emitting the `contentError` event if the content is invalid.
1731
+ * Which can be used to show a warning or error message to the user.
1732
+ * @default false
1733
+ */
1734
+ enableContentCheck: boolean;
1735
+ /**
1736
+ * Called before the editor is constructed.
1737
+ */
1738
+ onBeforeCreate: (props: EditorEvents['beforeCreate']) => void;
1739
+ /**
1740
+ * Called after the editor is constructed.
1741
+ */
1742
+ onCreate: (props: EditorEvents['create']) => void;
1743
+ /**
1744
+ * Called when the editor encounters an error while parsing the content.
1745
+ * Only enabled if `enableContentCheck` is `true`.
1746
+ */
1747
+ onContentError: (props: EditorEvents['contentError']) => void;
1748
+ /**
1749
+ * Called when the editor's content is updated.
1750
+ */
1751
+ onUpdate: (props: EditorEvents['update']) => void;
1752
+ /**
1753
+ * Called when the editor's selection is updated.
1754
+ */
1755
+ onSelectionUpdate: (props: EditorEvents['selectionUpdate']) => void;
1756
+ /**
1757
+ * Called after a transaction is applied to the editor.
1758
+ */
1759
+ onTransaction: (props: EditorEvents['transaction']) => void;
1760
+ /**
1761
+ * Called on focus events.
1762
+ */
1763
+ onFocus: (props: EditorEvents['focus']) => void;
1764
+ /**
1765
+ * Called on blur events.
1766
+ */
1767
+ onBlur: (props: EditorEvents['blur']) => void;
1768
+ /**
1769
+ * Called when the editor is destroyed.
1770
+ */
1771
+ onDestroy: (props: EditorEvents['destroy']) => void;
1772
+ /**
1773
+ * Called when content is pasted into the editor.
1774
+ */
1775
+ onPaste: (e: ClipboardEvent, slice: Slice) => void;
1776
+ /**
1777
+ * Called when content is dropped into the editor.
1778
+ */
1779
+ onDrop: (e: DragEvent, slice: Slice, moved: boolean) => void;
1780
+ /**
1781
+ * Called when content is deleted from the editor.
1782
+ */
1783
+ onDelete: (props: EditorEvents['delete']) => void;
9
1784
  }
10
1785
  /**
11
- * This extension allows you to highlight code blocks with lowlight.
12
- * @see https://tiptap.dev/api/nodes/code-block-lowlight
1786
+ * The editor's content as HTML
13
1787
  */
14
- declare const CodeBlockLowlight: {
15
- type: string;
16
- parent: {
1788
+ type HTMLContent = string;
1789
+ /**
1790
+ * Loosely describes a JSON representation of a Prosemirror document or node
1791
+ */
1792
+ type JSONContent = {
1793
+ type?: string;
1794
+ attrs?: Record<string, any>;
1795
+ content?: JSONContent[];
1796
+ marks?: {
17
1797
  type: string;
18
- parent: /*elided*/ any | null;
19
- child: /*elided*/ any | null;
1798
+ attrs?: Record<string, any>;
1799
+ [key: string]: any;
1800
+ }[];
1801
+ text?: string;
1802
+ [key: string]: any;
1803
+ };
1804
+ /**
1805
+ * A mark type is either a JSON representation of a mark or a Prosemirror mark instance
1806
+ */
1807
+ type MarkType<Type extends string | {
1808
+ name: string;
1809
+ } = any, TAttributes extends undefined | Record<string, any> = any> = {
1810
+ type: Type;
1811
+ attrs: TAttributes;
1812
+ };
1813
+ /**
1814
+ * A node type is either a JSON representation of a node or a Prosemirror node instance
1815
+ */
1816
+ type NodeType<Type extends string | {
1817
+ name: string;
1818
+ } = any, TAttributes extends undefined | Record<string, any> = any, NodeMarkType extends MarkType = any, TContent extends (NodeType | TextType)[] = any> = {
1819
+ type: Type;
1820
+ attrs: TAttributes;
1821
+ content?: TContent;
1822
+ marks?: NodeMarkType[];
1823
+ };
1824
+ /**
1825
+ * A node type is either a JSON representation of a doc node or a Prosemirror doc node instance
1826
+ */
1827
+ type DocumentType<TDocAttributes extends Record<string, any> | undefined = Record<string, any>, TContentType extends NodeType[] = NodeType[]> = Omit<NodeType<'doc', TDocAttributes, never, TContentType>, 'marks' | 'content'> & {
1828
+ content: TContentType;
1829
+ };
1830
+ /**
1831
+ * A node type is either a JSON representation of a text node or a Prosemirror text node instance
1832
+ */
1833
+ type TextType<TMarkType extends MarkType = MarkType> = {
1834
+ type: 'text';
1835
+ text: string;
1836
+ marks: TMarkType[];
1837
+ };
1838
+ type Content = HTMLContent | JSONContent | JSONContent[] | null;
1839
+ type CommandProps = {
1840
+ editor: Editor;
1841
+ tr: Transaction;
1842
+ commands: SingleCommands;
1843
+ can: () => CanCommands;
1844
+ chain: () => ChainedCommands;
1845
+ state: EditorState;
1846
+ view: EditorView;
1847
+ dispatch: ((args?: any) => any) | undefined;
1848
+ };
1849
+ type Command = (props: CommandProps) => boolean;
1850
+ type KeyboardShortcutCommand = (props: {
1851
+ editor: Editor;
1852
+ }) => boolean;
1853
+ type Attribute = {
1854
+ default?: any;
1855
+ validate?: string | ((value: any) => void);
1856
+ rendered?: boolean;
1857
+ renderHTML?: ((attributes: Record<string, any>) => Record<string, any> | null) | null;
1858
+ parseHTML?: ((element: HTMLElement) => any | null) | null;
1859
+ keepOnSplit?: boolean;
1860
+ isRequired?: boolean;
1861
+ };
1862
+ type Attributes = {
1863
+ [key: string]: Attribute;
1864
+ };
1865
+ type GlobalAttributes = {
1866
+ /**
1867
+ * The node & mark types this attribute should be applied to.
1868
+ */
1869
+ types: string[];
1870
+ /**
1871
+ * The attributes to add to the node or mark types.
1872
+ */
1873
+ attributes: Record<string, Attribute | undefined>;
1874
+ }[];
1875
+ type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
1876
+ type ValuesOf<T> = T[keyof T];
1877
+ type KeysWithTypeOf<T, Type> = {
1878
+ [P in keyof T]: T[P] extends Type ? P : never;
1879
+ }[keyof T];
1880
+ interface NodeViewRendererProps {
1881
+ /**
1882
+ * The node that is being rendered.
1883
+ */
1884
+ node: Parameters<NodeViewConstructor>[0];
1885
+ /**
1886
+ * The editor's view.
1887
+ */
1888
+ view: Parameters<NodeViewConstructor>[1];
1889
+ /**
1890
+ * A function that can be called to get the node's current position in the document.
1891
+ */
1892
+ getPos: Parameters<NodeViewConstructor>[2];
1893
+ /**
1894
+ * is an array of node or inline decorations that are active around the node.
1895
+ * They are automatically drawn in the normal way, and you will usually just want to ignore this, but they can also be used as a way to provide context information to the node view without adding it to the document itself.
1896
+ */
1897
+ decorations: Parameters<NodeViewConstructor>[3];
1898
+ /**
1899
+ * holds the decorations for the node's content. You can safely ignore this if your view has no content or a contentDOM property, since the editor will draw the decorations on the content.
1900
+ * But if you, for example, want to create a nested editor with the content, it may make sense to provide it with the inner decorations.
1901
+ */
1902
+ innerDecorations: Parameters<NodeViewConstructor>[4];
1903
+ /**
1904
+ * The editor instance.
1905
+ */
1906
+ editor: Editor;
1907
+ /**
1908
+ * The extension that is responsible for the node.
1909
+ */
1910
+ extension: Node;
1911
+ /**
1912
+ * The HTML attributes that should be added to the node's DOM element.
1913
+ */
1914
+ HTMLAttributes: Record<string, any>;
1915
+ }
1916
+ type NodeViewRenderer = (props: NodeViewRendererProps) => NodeView;
1917
+ interface MarkViewRendererProps {
1918
+ /**
1919
+ * The node that is being rendered.
1920
+ */
1921
+ mark: Parameters<MarkViewConstructor>[0];
1922
+ /**
1923
+ * The editor's view.
1924
+ */
1925
+ view: Parameters<MarkViewConstructor>[1];
1926
+ /**
1927
+ * indicates whether the mark's content is inline
1928
+ */
1929
+ inline: Parameters<MarkViewConstructor>[2];
1930
+ /**
1931
+ * The editor instance.
1932
+ */
1933
+ editor: Editor;
1934
+ /**
1935
+ * The extension that is responsible for the mark.
1936
+ */
1937
+ extension: Mark;
1938
+ /**
1939
+ * The HTML attributes that should be added to the mark's DOM element.
1940
+ */
1941
+ HTMLAttributes: Record<string, any>;
1942
+ }
1943
+ type MarkViewRenderer = (props: MarkViewRendererProps) => MarkView;
1944
+ type UnionCommands<T = Command> = UnionToIntersection<ValuesOf<Pick<Commands<T>, KeysWithTypeOf<Commands<T>, object>>>>;
1945
+ type RawCommands = {
1946
+ [Item in keyof UnionCommands]: UnionCommands<Command>[Item];
1947
+ };
1948
+ type SingleCommands = {
1949
+ [Item in keyof UnionCommands]: UnionCommands<boolean>[Item];
1950
+ };
1951
+ type ChainedCommands = {
1952
+ [Item in keyof UnionCommands]: UnionCommands<ChainedCommands>[Item];
1953
+ } & {
1954
+ run: () => boolean;
1955
+ };
1956
+ type CanCommands = SingleCommands & {
1957
+ chain: () => ChainedCommands;
1958
+ };
1959
+ type FocusPosition = 'start' | 'end' | 'all' | number | boolean | null;
1960
+ type Range = {
1961
+ from: number;
1962
+ to: number;
1963
+ };
1964
+ type TextSerializer = (props: {
1965
+ node: Node$1;
1966
+ pos: number;
1967
+ parent: Node$1;
1968
+ index: number;
1969
+ range: Range;
1970
+ }) => string;
1971
+ type ExtendedRegExpMatchArray = RegExpMatchArray & {
1972
+ data?: Record<string, any>;
1973
+ };
1974
+
1975
+ /**
1976
+ * Create a flattened array of extensions by traversing the `addExtensions` field.
1977
+ * @param extensions An array of Tiptap extensions
1978
+ * @returns A flattened array of Tiptap extensions
1979
+ */
1980
+ declare function flattenExtensions(extensions: Extensions): Extensions;
1981
+
1982
+ /**
1983
+ * Returns a flattened and sorted extension list while
1984
+ * also checking for duplicated extensions and warns the user.
1985
+ * @param extensions An array of Tiptap extensions
1986
+ * @returns An flattened and sorted array of Tiptap extensions
1987
+ */
1988
+ declare function resolveExtensions(extensions: Extensions): Extensions;
1989
+
1990
+ /**
1991
+ * Sort extensions by priority.
1992
+ * @param extensions An array of Tiptap extensions
1993
+ * @returns A sorted array of Tiptap extensions by priority
1994
+ */
1995
+ declare function sortExtensions(extensions: Extensions): Extensions;
1996
+
1997
+ declare class ExtensionManager {
1998
+ editor: Editor;
1999
+ schema: Schema;
2000
+ extensions: Extensions;
2001
+ splittableMarks: string[];
2002
+ constructor(extensions: Extensions, editor: Editor);
2003
+ static resolve: typeof resolveExtensions;
2004
+ static sort: typeof sortExtensions;
2005
+ static flatten: typeof flattenExtensions;
2006
+ /**
2007
+ * Get all commands from the extensions.
2008
+ * @returns An object with all commands where the key is the command name and the value is the command function
2009
+ */
2010
+ get commands(): RawCommands;
2011
+ /**
2012
+ * Get all registered Prosemirror plugins from the extensions.
2013
+ * @returns An array of Prosemirror plugins
2014
+ */
2015
+ get plugins(): Plugin[];
2016
+ /**
2017
+ * Get all attributes from the extensions.
2018
+ * @returns An array of attributes
2019
+ */
2020
+ get attributes(): _tiptap_core.ExtensionAttribute[];
2021
+ /**
2022
+ * Get all node views from the extensions.
2023
+ * @returns An object with all node views where the key is the node name and the value is the node view function
2024
+ */
2025
+ get nodeViews(): Record<string, NodeViewConstructor>;
2026
+ get markViews(): Record<string, MarkViewConstructor>;
2027
+ /**
2028
+ * Go through all extensions, create extension storages & setup marks
2029
+ * & bind editor event listener.
2030
+ */
2031
+ private setupExtensions;
2032
+ }
2033
+
2034
+ declare class Editor extends EventEmitter<EditorEvents> {
2035
+ private commandManager;
2036
+ extensionManager: ExtensionManager;
2037
+ private css;
2038
+ schema: Schema;
2039
+ private editorView;
2040
+ isFocused: boolean;
2041
+ private editorState;
2042
+ /**
2043
+ * The editor is considered initialized after the `create` event has been emitted.
2044
+ */
2045
+ isInitialized: boolean;
2046
+ extensionStorage: Storage;
2047
+ /**
2048
+ * A unique ID for this editor instance.
2049
+ */
2050
+ instanceId: string;
2051
+ options: EditorOptions;
2052
+ constructor(options?: Partial<EditorOptions>);
2053
+ mount(el: NonNullable<EditorOptions['element']> & {}): void;
2054
+ /**
2055
+ * Returns the editor storage.
2056
+ */
2057
+ get storage(): Storage;
2058
+ /**
2059
+ * An object of all registered commands.
2060
+ */
2061
+ get commands(): SingleCommands;
2062
+ /**
2063
+ * Create a command chain to call multiple commands at once.
2064
+ */
2065
+ chain(): ChainedCommands;
2066
+ /**
2067
+ * Check if a command or a command chain can be executed. Without executing it.
2068
+ */
2069
+ can(): CanCommands;
2070
+ /**
2071
+ * Inject CSS styles.
2072
+ */
2073
+ private injectCSS;
2074
+ /**
2075
+ * Update editor options.
2076
+ *
2077
+ * @param options A list of options
2078
+ */
2079
+ setOptions(options?: Partial<EditorOptions>): void;
2080
+ /**
2081
+ * Update editable state of the editor.
2082
+ */
2083
+ setEditable(editable: boolean, emitUpdate?: boolean): void;
2084
+ /**
2085
+ * Returns whether the editor is editable.
2086
+ */
2087
+ get isEditable(): boolean;
2088
+ /**
2089
+ * Returns the editor state.
2090
+ */
2091
+ get view(): EditorView;
2092
+ /**
2093
+ * Returns the editor state.
2094
+ */
2095
+ get state(): EditorState;
2096
+ /**
2097
+ * Register a ProseMirror plugin.
2098
+ *
2099
+ * @param plugin A ProseMirror plugin
2100
+ * @param handlePlugins Control how to merge the plugin into the existing plugins.
2101
+ * @returns The new editor state
2102
+ */
2103
+ registerPlugin(plugin: Plugin, handlePlugins?: (newPlugin: Plugin, plugins: Plugin[]) => Plugin[]): EditorState;
2104
+ /**
2105
+ * Unregister a ProseMirror plugin.
2106
+ *
2107
+ * @param nameOrPluginKeyToRemove The plugins name
2108
+ * @returns The new editor state or undefined if the editor is destroyed
2109
+ */
2110
+ unregisterPlugin(nameOrPluginKeyToRemove: string | PluginKey | (string | PluginKey)[]): EditorState | undefined;
2111
+ /**
2112
+ * Creates an extension manager.
2113
+ */
2114
+ private createExtensionManager;
2115
+ /**
2116
+ * Creates an command manager.
2117
+ */
2118
+ private createCommandManager;
2119
+ /**
2120
+ * Creates a ProseMirror schema.
2121
+ */
2122
+ private createSchema;
2123
+ /**
2124
+ * Creates the initial document.
2125
+ */
2126
+ private createDoc;
2127
+ /**
2128
+ * Creates a ProseMirror view.
2129
+ */
2130
+ private createView;
2131
+ /**
2132
+ * Creates all node views.
2133
+ */
2134
+ createNodeViews(): void;
2135
+ /**
2136
+ * Prepend class name to element.
2137
+ */
2138
+ prependClass(): void;
2139
+ isCapturingTransaction: boolean;
2140
+ private capturedTransaction;
2141
+ captureTransaction(fn: () => void): Transaction | null;
2142
+ /**
2143
+ * The callback over which to send transactions (state updates) produced by the view.
2144
+ *
2145
+ * @param transaction An editor state transaction
2146
+ */
2147
+ private dispatchTransaction;
2148
+ /**
2149
+ * Get attributes of the currently selected node or mark.
2150
+ */
2151
+ getAttributes(nameOrType: string | NodeType$1 | MarkType$1): Record<string, any>;
2152
+ /**
2153
+ * Returns if the currently selected node or mark is active.
2154
+ *
2155
+ * @param name Name of the node or mark
2156
+ * @param attributes Attributes of the node or mark
2157
+ */
2158
+ isActive(name: string, attributes?: {}): boolean;
2159
+ isActive(attributes: {}): boolean;
2160
+ /**
2161
+ * Get the document as JSON.
2162
+ */
2163
+ getJSON(): DocumentType<Record<string, any> | undefined, NodeType<string, undefined | Record<string, any>, any, (NodeType | TextType)[]>[]>;
2164
+ /**
2165
+ * Get the document as HTML.
2166
+ */
2167
+ getHTML(): string;
2168
+ /**
2169
+ * Get the document as text.
2170
+ */
2171
+ getText(options?: {
2172
+ blockSeparator?: string;
2173
+ textSerializers?: Record<string, TextSerializer>;
2174
+ }): string;
2175
+ /**
2176
+ * Check if there is no content.
2177
+ */
2178
+ get isEmpty(): boolean;
2179
+ /**
2180
+ * Destroy the editor.
2181
+ */
2182
+ destroy(): void;
2183
+ /**
2184
+ * Check if the editor is already destroyed.
2185
+ */
2186
+ get isDestroyed(): boolean;
2187
+ $node(selector: string, attributes?: {
2188
+ [key: string]: any;
2189
+ }): NodePos | null;
2190
+ $nodes(selector: string, attributes?: {
2191
+ [key: string]: any;
2192
+ }): NodePos[] | null;
2193
+ $pos(pos: number): NodePos;
2194
+ get $doc(): NodePos;
2195
+ }
2196
+
2197
+ interface ExtendableConfig<Options = any, Storage = any, Config extends ExtensionConfig<Options, Storage> | NodeConfig<Options, Storage> | MarkConfig<Options, Storage> | ExtendableConfig<Options, Storage> = ExtendableConfig<Options, Storage, any, any>, PMType = any> {
2198
+ /**
2199
+ * The extension name - this must be unique.
2200
+ * It will be used to identify the extension.
2201
+ *
2202
+ * @example 'myExtension'
2203
+ */
2204
+ name: string;
2205
+ /**
2206
+ * The priority of your extension. The higher, the earlier it will be called
2207
+ * and will take precedence over other extensions with a lower priority.
2208
+ * @default 100
2209
+ * @example 101
2210
+ */
2211
+ priority?: number;
2212
+ /**
2213
+ * This method will add options to this extension
2214
+ * @see https://tiptap.dev/docs/editor/guide/custom-extensions#settings
2215
+ * @example
2216
+ * addOptions() {
2217
+ * return {
2218
+ * myOption: 'foo',
2219
+ * myOtherOption: 10,
2220
+ * }
2221
+ */
2222
+ addOptions?: (this: {
20
2223
  name: string;
21
- config: _tiptap_core.ExtensionConfig<any, any> | _tiptap_core.NodeConfig<any, any> | _tiptap_core.MarkConfig<any, any>;
22
- readonly options: any;
23
- readonly storage: Readonly<any>;
24
- configure(options?: Partial<any> | undefined): /*elided*/ any;
25
- extend<ExtendedOptions = any, ExtendedStorage = any>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions, ExtendedStorage> | _tiptap_core.NodeConfig<ExtendedOptions, ExtendedStorage> | _tiptap_core.MarkConfig<ExtendedOptions, ExtendedStorage>> | undefined): {
26
- type: string;
27
- parent: /*elided*/ any | null;
28
- child: /*elided*/ any | null;
29
- name: string;
30
- config: _tiptap_core.ExtensionConfig<ExtendedOptions, ExtendedStorage> | _tiptap_core.NodeConfig<ExtendedOptions, ExtendedStorage> | _tiptap_core.MarkConfig<ExtendedOptions, ExtendedStorage>;
31
- readonly options: ExtendedOptions;
32
- readonly storage: Readonly<ExtendedStorage>;
33
- configure(options?: Partial<ExtendedOptions> | undefined): /*elided*/ any;
34
- extend<ExtendedOptions_1 = ExtendedOptions, ExtendedStorage_1 = ExtendedStorage>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_1, ExtendedStorage_1> | _tiptap_core.NodeConfig<ExtendedOptions_1, ExtendedStorage_1> | _tiptap_core.MarkConfig<ExtendedOptions_1, ExtendedStorage_1>> | undefined): {
35
- type: string;
36
- parent: /*elided*/ any | null;
37
- child: /*elided*/ any | null;
38
- name: string;
39
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_1, ExtendedStorage_1> | _tiptap_core.NodeConfig<ExtendedOptions_1, ExtendedStorage_1> | _tiptap_core.MarkConfig<ExtendedOptions_1, ExtendedStorage_1>;
40
- readonly options: ExtendedOptions_1;
41
- readonly storage: Readonly<ExtendedStorage_1>;
42
- configure(options?: Partial<ExtendedOptions_1> | undefined): /*elided*/ any;
43
- extend<ExtendedOptions_2 = ExtendedOptions_1, ExtendedStorage_2 = ExtendedStorage_1>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_2, ExtendedStorage_2> | _tiptap_core.NodeConfig<ExtendedOptions_2, ExtendedStorage_2> | _tiptap_core.MarkConfig<ExtendedOptions_2, ExtendedStorage_2>> | undefined): {
44
- type: string;
45
- parent: /*elided*/ any | null;
46
- child: /*elided*/ any | null;
47
- name: string;
48
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_2, ExtendedStorage_2> | _tiptap_core.NodeConfig<ExtendedOptions_2, ExtendedStorage_2> | _tiptap_core.MarkConfig<ExtendedOptions_2, ExtendedStorage_2>;
49
- readonly options: ExtendedOptions_2;
50
- readonly storage: Readonly<ExtendedStorage_2>;
51
- configure(options?: Partial<ExtendedOptions_2> | undefined): /*elided*/ any;
52
- extend<ExtendedOptions_3 = ExtendedOptions_2, ExtendedStorage_3 = ExtendedStorage_2>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.NodeConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.MarkConfig<ExtendedOptions_3, ExtendedStorage_3>> | undefined): {
53
- type: string;
54
- parent: /*elided*/ any | null;
55
- child: /*elided*/ any | null;
56
- name: string;
57
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.NodeConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.MarkConfig<ExtendedOptions_3, ExtendedStorage_3>;
58
- readonly options: ExtendedOptions_3;
59
- readonly storage: Readonly<ExtendedStorage_3>;
60
- configure(options?: Partial<ExtendedOptions_3> | undefined): /*elided*/ any;
61
- extend<ExtendedOptions_4 = ExtendedOptions_3, ExtendedStorage_4 = ExtendedStorage_3>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.NodeConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.MarkConfig<ExtendedOptions_4, ExtendedStorage_4>> | undefined): {
62
- type: string;
63
- parent: /*elided*/ any | null;
64
- child: /*elided*/ any | null;
65
- name: string;
66
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.NodeConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.MarkConfig<ExtendedOptions_4, ExtendedStorage_4>;
67
- readonly options: ExtendedOptions_4;
68
- readonly storage: Readonly<ExtendedStorage_4>;
69
- configure(options?: Partial<ExtendedOptions_4> | undefined): /*elided*/ any;
70
- extend<ExtendedOptions_5 = ExtendedOptions_4, ExtendedStorage_5 = ExtendedStorage_4>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.NodeConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.MarkConfig<ExtendedOptions_5, ExtendedStorage_5>> | undefined): {
71
- type: string;
72
- parent: /*elided*/ any | null;
73
- child: /*elided*/ any | null;
74
- name: string;
75
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.NodeConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.MarkConfig<ExtendedOptions_5, ExtendedStorage_5>;
76
- readonly options: ExtendedOptions_5;
77
- readonly storage: Readonly<ExtendedStorage_5>;
78
- configure(options?: Partial<ExtendedOptions_5> | undefined): /*elided*/ any;
79
- extend<ExtendedOptions_6 = ExtendedOptions_5, ExtendedStorage_6 = ExtendedStorage_5>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.NodeConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.MarkConfig<ExtendedOptions_6, ExtendedStorage_6>> | undefined): {
80
- type: string;
81
- parent: /*elided*/ any | null;
82
- child: /*elided*/ any | null;
83
- name: string;
84
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.NodeConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.MarkConfig<ExtendedOptions_6, ExtendedStorage_6>;
85
- readonly options: ExtendedOptions_6;
86
- readonly storage: Readonly<ExtendedStorage_6>;
87
- configure(options?: Partial<ExtendedOptions_6> | undefined): /*elided*/ any;
88
- extend<ExtendedOptions_7 = ExtendedOptions_6, ExtendedStorage_7 = ExtendedStorage_6>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.NodeConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.MarkConfig<ExtendedOptions_7, ExtendedStorage_7>> | undefined): {
89
- type: string;
90
- parent: /*elided*/ any | null;
91
- child: /*elided*/ any | null;
92
- name: string;
93
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.NodeConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.MarkConfig<ExtendedOptions_7, ExtendedStorage_7>;
94
- readonly options: ExtendedOptions_7;
95
- readonly storage: Readonly<ExtendedStorage_7>;
96
- configure(options?: Partial<ExtendedOptions_7> | undefined): /*elided*/ any;
97
- extend<ExtendedOptions_8 = ExtendedOptions_7, ExtendedStorage_8 = ExtendedStorage_7>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>> | undefined): {
98
- type: string;
99
- parent: /*elided*/ any | null;
100
- child: /*elided*/ any | null;
101
- name: string;
102
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>;
103
- readonly options: ExtendedOptions_8;
104
- readonly storage: Readonly<ExtendedStorage_8>;
105
- configure(options?: Partial<ExtendedOptions_8> | undefined): /*elided*/ any;
106
- extend<ExtendedOptions_9 = ExtendedOptions_8, ExtendedStorage_9 = ExtendedStorage_8>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.NodeConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.MarkConfig<ExtendedOptions_9, ExtendedStorage_9>> | undefined): /*elided*/ any;
107
- };
108
- };
109
- };
110
- };
111
- };
112
- };
113
- };
114
- };
115
- };
116
- } | null;
117
- child: {
118
- type: string;
119
- parent: /*elided*/ any | null;
120
- child: /*elided*/ any | null;
2224
+ parent: ParentConfig<Config>['addOptions'];
2225
+ }) => Options;
2226
+ /**
2227
+ * The default storage this extension can save data to.
2228
+ * @see https://tiptap.dev/docs/editor/guide/custom-extensions#storage
2229
+ * @example
2230
+ * defaultStorage: {
2231
+ * prefetchedUsers: [],
2232
+ * loading: false,
2233
+ * }
2234
+ */
2235
+ addStorage?: (this: {
121
2236
  name: string;
122
- config: _tiptap_core.ExtensionConfig<any, any> | _tiptap_core.NodeConfig<any, any> | _tiptap_core.MarkConfig<any, any>;
123
- readonly options: any;
124
- readonly storage: Readonly<any>;
125
- configure(options?: Partial<any> | undefined): /*elided*/ any;
126
- extend<ExtendedOptions = any, ExtendedStorage = any>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions, ExtendedStorage> | _tiptap_core.NodeConfig<ExtendedOptions, ExtendedStorage> | _tiptap_core.MarkConfig<ExtendedOptions, ExtendedStorage>> | undefined): {
127
- type: string;
128
- parent: /*elided*/ any | null;
129
- child: /*elided*/ any | null;
130
- name: string;
131
- config: _tiptap_core.ExtensionConfig<ExtendedOptions, ExtendedStorage> | _tiptap_core.NodeConfig<ExtendedOptions, ExtendedStorage> | _tiptap_core.MarkConfig<ExtendedOptions, ExtendedStorage>;
132
- readonly options: ExtendedOptions;
133
- readonly storage: Readonly<ExtendedStorage>;
134
- configure(options?: Partial<ExtendedOptions> | undefined): /*elided*/ any;
135
- extend<ExtendedOptions_1 = ExtendedOptions, ExtendedStorage_1 = ExtendedStorage>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_1, ExtendedStorage_1> | _tiptap_core.NodeConfig<ExtendedOptions_1, ExtendedStorage_1> | _tiptap_core.MarkConfig<ExtendedOptions_1, ExtendedStorage_1>> | undefined): {
136
- type: string;
137
- parent: /*elided*/ any | null;
138
- child: /*elided*/ any | null;
139
- name: string;
140
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_1, ExtendedStorage_1> | _tiptap_core.NodeConfig<ExtendedOptions_1, ExtendedStorage_1> | _tiptap_core.MarkConfig<ExtendedOptions_1, ExtendedStorage_1>;
141
- readonly options: ExtendedOptions_1;
142
- readonly storage: Readonly<ExtendedStorage_1>;
143
- configure(options?: Partial<ExtendedOptions_1> | undefined): /*elided*/ any;
144
- extend<ExtendedOptions_2 = ExtendedOptions_1, ExtendedStorage_2 = ExtendedStorage_1>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_2, ExtendedStorage_2> | _tiptap_core.NodeConfig<ExtendedOptions_2, ExtendedStorage_2> | _tiptap_core.MarkConfig<ExtendedOptions_2, ExtendedStorage_2>> | undefined): {
145
- type: string;
146
- parent: /*elided*/ any | null;
147
- child: /*elided*/ any | null;
148
- name: string;
149
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_2, ExtendedStorage_2> | _tiptap_core.NodeConfig<ExtendedOptions_2, ExtendedStorage_2> | _tiptap_core.MarkConfig<ExtendedOptions_2, ExtendedStorage_2>;
150
- readonly options: ExtendedOptions_2;
151
- readonly storage: Readonly<ExtendedStorage_2>;
152
- configure(options?: Partial<ExtendedOptions_2> | undefined): /*elided*/ any;
153
- extend<ExtendedOptions_3 = ExtendedOptions_2, ExtendedStorage_3 = ExtendedStorage_2>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.NodeConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.MarkConfig<ExtendedOptions_3, ExtendedStorage_3>> | undefined): {
154
- type: string;
155
- parent: /*elided*/ any | null;
156
- child: /*elided*/ any | null;
157
- name: string;
158
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.NodeConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.MarkConfig<ExtendedOptions_3, ExtendedStorage_3>;
159
- readonly options: ExtendedOptions_3;
160
- readonly storage: Readonly<ExtendedStorage_3>;
161
- configure(options?: Partial<ExtendedOptions_3> | undefined): /*elided*/ any;
162
- extend<ExtendedOptions_4 = ExtendedOptions_3, ExtendedStorage_4 = ExtendedStorage_3>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.NodeConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.MarkConfig<ExtendedOptions_4, ExtendedStorage_4>> | undefined): {
163
- type: string;
164
- parent: /*elided*/ any | null;
165
- child: /*elided*/ any | null;
166
- name: string;
167
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.NodeConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.MarkConfig<ExtendedOptions_4, ExtendedStorage_4>;
168
- readonly options: ExtendedOptions_4;
169
- readonly storage: Readonly<ExtendedStorage_4>;
170
- configure(options?: Partial<ExtendedOptions_4> | undefined): /*elided*/ any;
171
- extend<ExtendedOptions_5 = ExtendedOptions_4, ExtendedStorage_5 = ExtendedStorage_4>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.NodeConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.MarkConfig<ExtendedOptions_5, ExtendedStorage_5>> | undefined): {
172
- type: string;
173
- parent: /*elided*/ any | null;
174
- child: /*elided*/ any | null;
175
- name: string;
176
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.NodeConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.MarkConfig<ExtendedOptions_5, ExtendedStorage_5>;
177
- readonly options: ExtendedOptions_5;
178
- readonly storage: Readonly<ExtendedStorage_5>;
179
- configure(options?: Partial<ExtendedOptions_5> | undefined): /*elided*/ any;
180
- extend<ExtendedOptions_6 = ExtendedOptions_5, ExtendedStorage_6 = ExtendedStorage_5>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.NodeConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.MarkConfig<ExtendedOptions_6, ExtendedStorage_6>> | undefined): {
181
- type: string;
182
- parent: /*elided*/ any | null;
183
- child: /*elided*/ any | null;
184
- name: string;
185
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.NodeConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.MarkConfig<ExtendedOptions_6, ExtendedStorage_6>;
186
- readonly options: ExtendedOptions_6;
187
- readonly storage: Readonly<ExtendedStorage_6>;
188
- configure(options?: Partial<ExtendedOptions_6> | undefined): /*elided*/ any;
189
- extend<ExtendedOptions_7 = ExtendedOptions_6, ExtendedStorage_7 = ExtendedStorage_6>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.NodeConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.MarkConfig<ExtendedOptions_7, ExtendedStorage_7>> | undefined): {
190
- type: string;
191
- parent: /*elided*/ any | null;
192
- child: /*elided*/ any | null;
193
- name: string;
194
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.NodeConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.MarkConfig<ExtendedOptions_7, ExtendedStorage_7>;
195
- readonly options: ExtendedOptions_7;
196
- readonly storage: Readonly<ExtendedStorage_7>;
197
- configure(options?: Partial<ExtendedOptions_7> | undefined): /*elided*/ any;
198
- extend<ExtendedOptions_8 = ExtendedOptions_7, ExtendedStorage_8 = ExtendedStorage_7>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>> | undefined): {
199
- type: string;
200
- parent: /*elided*/ any | null;
201
- child: /*elided*/ any | null;
202
- name: string;
203
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>;
204
- readonly options: ExtendedOptions_8;
205
- readonly storage: Readonly<ExtendedStorage_8>;
206
- configure(options?: Partial<ExtendedOptions_8> | undefined): /*elided*/ any;
207
- extend<ExtendedOptions_9 = ExtendedOptions_8, ExtendedStorage_9 = ExtendedStorage_8>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.NodeConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.MarkConfig<ExtendedOptions_9, ExtendedStorage_9>> | undefined): /*elided*/ any;
208
- };
209
- };
210
- };
211
- };
212
- };
213
- };
214
- };
215
- };
216
- };
217
- } | null;
218
- name: string;
219
- config: _tiptap_core.ExtensionConfig<CodeBlockLowlightOptions, any> | _tiptap_core.NodeConfig<CodeBlockLowlightOptions, any> | _tiptap_core.MarkConfig<CodeBlockLowlightOptions, any>;
220
- readonly options: CodeBlockLowlightOptions;
221
- readonly storage: Readonly<any>;
222
- configure(options?: Partial<CodeBlockLowlightOptions> | undefined): /*elided*/ any;
223
- extend<ExtendedOptions = CodeBlockLowlightOptions, ExtendedStorage = any>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions, ExtendedStorage> | _tiptap_core.NodeConfig<ExtendedOptions, ExtendedStorage> | _tiptap_core.MarkConfig<ExtendedOptions, ExtendedStorage>> | undefined): {
224
- type: string;
225
- parent: {
226
- type: string;
227
- parent: /*elided*/ any | null;
228
- child: /*elided*/ any | null;
229
- name: string;
230
- config: _tiptap_core.ExtensionConfig<any, any> | _tiptap_core.NodeConfig<any, any> | _tiptap_core.MarkConfig<any, any>;
231
- readonly options: any;
232
- readonly storage: Readonly<any>;
233
- configure(options?: Partial<any> | undefined): /*elided*/ any;
234
- extend<ExtendedOptions_1 = any, ExtendedStorage_1 = any>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_1, ExtendedStorage_1> | _tiptap_core.NodeConfig<ExtendedOptions_1, ExtendedStorage_1> | _tiptap_core.MarkConfig<ExtendedOptions_1, ExtendedStorage_1>> | undefined): {
235
- type: string;
236
- parent: /*elided*/ any | null;
237
- child: /*elided*/ any | null;
238
- name: string;
239
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_1, ExtendedStorage_1> | _tiptap_core.NodeConfig<ExtendedOptions_1, ExtendedStorage_1> | _tiptap_core.MarkConfig<ExtendedOptions_1, ExtendedStorage_1>;
240
- readonly options: ExtendedOptions_1;
241
- readonly storage: Readonly<ExtendedStorage_1>;
242
- configure(options?: Partial<ExtendedOptions_1> | undefined): /*elided*/ any;
243
- extend<ExtendedOptions_2 = ExtendedOptions_1, ExtendedStorage_2 = ExtendedStorage_1>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_2, ExtendedStorage_2> | _tiptap_core.NodeConfig<ExtendedOptions_2, ExtendedStorage_2> | _tiptap_core.MarkConfig<ExtendedOptions_2, ExtendedStorage_2>> | undefined): {
244
- type: string;
245
- parent: /*elided*/ any | null;
246
- child: /*elided*/ any | null;
247
- name: string;
248
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_2, ExtendedStorage_2> | _tiptap_core.NodeConfig<ExtendedOptions_2, ExtendedStorage_2> | _tiptap_core.MarkConfig<ExtendedOptions_2, ExtendedStorage_2>;
249
- readonly options: ExtendedOptions_2;
250
- readonly storage: Readonly<ExtendedStorage_2>;
251
- configure(options?: Partial<ExtendedOptions_2> | undefined): /*elided*/ any;
252
- extend<ExtendedOptions_3 = ExtendedOptions_2, ExtendedStorage_3 = ExtendedStorage_2>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.NodeConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.MarkConfig<ExtendedOptions_3, ExtendedStorage_3>> | undefined): {
253
- type: string;
254
- parent: /*elided*/ any | null;
255
- child: /*elided*/ any | null;
256
- name: string;
257
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.NodeConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.MarkConfig<ExtendedOptions_3, ExtendedStorage_3>;
258
- readonly options: ExtendedOptions_3;
259
- readonly storage: Readonly<ExtendedStorage_3>;
260
- configure(options?: Partial<ExtendedOptions_3> | undefined): /*elided*/ any;
261
- extend<ExtendedOptions_4 = ExtendedOptions_3, ExtendedStorage_4 = ExtendedStorage_3>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.NodeConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.MarkConfig<ExtendedOptions_4, ExtendedStorage_4>> | undefined): {
262
- type: string;
263
- parent: /*elided*/ any | null;
264
- child: /*elided*/ any | null;
265
- name: string;
266
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.NodeConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.MarkConfig<ExtendedOptions_4, ExtendedStorage_4>;
267
- readonly options: ExtendedOptions_4;
268
- readonly storage: Readonly<ExtendedStorage_4>;
269
- configure(options?: Partial<ExtendedOptions_4> | undefined): /*elided*/ any;
270
- extend<ExtendedOptions_5 = ExtendedOptions_4, ExtendedStorage_5 = ExtendedStorage_4>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.NodeConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.MarkConfig<ExtendedOptions_5, ExtendedStorage_5>> | undefined): {
271
- type: string;
272
- parent: /*elided*/ any | null;
273
- child: /*elided*/ any | null;
274
- name: string;
275
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.NodeConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.MarkConfig<ExtendedOptions_5, ExtendedStorage_5>;
276
- readonly options: ExtendedOptions_5;
277
- readonly storage: Readonly<ExtendedStorage_5>;
278
- configure(options?: Partial<ExtendedOptions_5> | undefined): /*elided*/ any;
279
- extend<ExtendedOptions_6 = ExtendedOptions_5, ExtendedStorage_6 = ExtendedStorage_5>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.NodeConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.MarkConfig<ExtendedOptions_6, ExtendedStorage_6>> | undefined): {
280
- type: string;
281
- parent: /*elided*/ any | null;
282
- child: /*elided*/ any | null;
283
- name: string;
284
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.NodeConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.MarkConfig<ExtendedOptions_6, ExtendedStorage_6>;
285
- readonly options: ExtendedOptions_6;
286
- readonly storage: Readonly<ExtendedStorage_6>;
287
- configure(options?: Partial<ExtendedOptions_6> | undefined): /*elided*/ any;
288
- extend<ExtendedOptions_7 = ExtendedOptions_6, ExtendedStorage_7 = ExtendedStorage_6>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.NodeConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.MarkConfig<ExtendedOptions_7, ExtendedStorage_7>> | undefined): {
289
- type: string;
290
- parent: /*elided*/ any | null;
291
- child: /*elided*/ any | null;
292
- name: string;
293
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.NodeConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.MarkConfig<ExtendedOptions_7, ExtendedStorage_7>;
294
- readonly options: ExtendedOptions_7;
295
- readonly storage: Readonly<ExtendedStorage_7>;
296
- configure(options?: Partial<ExtendedOptions_7> | undefined): /*elided*/ any;
297
- extend<ExtendedOptions_8 = ExtendedOptions_7, ExtendedStorage_8 = ExtendedStorage_7>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>> | undefined): {
298
- type: string;
299
- parent: /*elided*/ any | null;
300
- child: /*elided*/ any | null;
301
- name: string;
302
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>;
303
- readonly options: ExtendedOptions_8;
304
- readonly storage: Readonly<ExtendedStorage_8>;
305
- configure(options?: Partial<ExtendedOptions_8> | undefined): /*elided*/ any;
306
- extend<ExtendedOptions_9 = ExtendedOptions_8, ExtendedStorage_9 = ExtendedStorage_8>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.NodeConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.MarkConfig<ExtendedOptions_9, ExtendedStorage_9>> | undefined): /*elided*/ any;
307
- };
308
- };
309
- };
310
- };
311
- };
312
- };
313
- };
314
- };
315
- } | null;
316
- child: {
317
- type: string;
318
- parent: /*elided*/ any | null;
319
- child: /*elided*/ any | null;
320
- name: string;
321
- config: _tiptap_core.ExtensionConfig<any, any> | _tiptap_core.NodeConfig<any, any> | _tiptap_core.MarkConfig<any, any>;
322
- readonly options: any;
323
- readonly storage: Readonly<any>;
324
- configure(options?: Partial<any> | undefined): /*elided*/ any;
325
- extend<ExtendedOptions_1 = any, ExtendedStorage_1 = any>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_1, ExtendedStorage_1> | _tiptap_core.NodeConfig<ExtendedOptions_1, ExtendedStorage_1> | _tiptap_core.MarkConfig<ExtendedOptions_1, ExtendedStorage_1>> | undefined): {
326
- type: string;
327
- parent: /*elided*/ any | null;
328
- child: /*elided*/ any | null;
329
- name: string;
330
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_1, ExtendedStorage_1> | _tiptap_core.NodeConfig<ExtendedOptions_1, ExtendedStorage_1> | _tiptap_core.MarkConfig<ExtendedOptions_1, ExtendedStorage_1>;
331
- readonly options: ExtendedOptions_1;
332
- readonly storage: Readonly<ExtendedStorage_1>;
333
- configure(options?: Partial<ExtendedOptions_1> | undefined): /*elided*/ any;
334
- extend<ExtendedOptions_2 = ExtendedOptions_1, ExtendedStorage_2 = ExtendedStorage_1>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_2, ExtendedStorage_2> | _tiptap_core.NodeConfig<ExtendedOptions_2, ExtendedStorage_2> | _tiptap_core.MarkConfig<ExtendedOptions_2, ExtendedStorage_2>> | undefined): {
335
- type: string;
336
- parent: /*elided*/ any | null;
337
- child: /*elided*/ any | null;
338
- name: string;
339
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_2, ExtendedStorage_2> | _tiptap_core.NodeConfig<ExtendedOptions_2, ExtendedStorage_2> | _tiptap_core.MarkConfig<ExtendedOptions_2, ExtendedStorage_2>;
340
- readonly options: ExtendedOptions_2;
341
- readonly storage: Readonly<ExtendedStorage_2>;
342
- configure(options?: Partial<ExtendedOptions_2> | undefined): /*elided*/ any;
343
- extend<ExtendedOptions_3 = ExtendedOptions_2, ExtendedStorage_3 = ExtendedStorage_2>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.NodeConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.MarkConfig<ExtendedOptions_3, ExtendedStorage_3>> | undefined): {
344
- type: string;
345
- parent: /*elided*/ any | null;
346
- child: /*elided*/ any | null;
347
- name: string;
348
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.NodeConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.MarkConfig<ExtendedOptions_3, ExtendedStorage_3>;
349
- readonly options: ExtendedOptions_3;
350
- readonly storage: Readonly<ExtendedStorage_3>;
351
- configure(options?: Partial<ExtendedOptions_3> | undefined): /*elided*/ any;
352
- extend<ExtendedOptions_4 = ExtendedOptions_3, ExtendedStorage_4 = ExtendedStorage_3>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.NodeConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.MarkConfig<ExtendedOptions_4, ExtendedStorage_4>> | undefined): {
353
- type: string;
354
- parent: /*elided*/ any | null;
355
- child: /*elided*/ any | null;
356
- name: string;
357
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.NodeConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.MarkConfig<ExtendedOptions_4, ExtendedStorage_4>;
358
- readonly options: ExtendedOptions_4;
359
- readonly storage: Readonly<ExtendedStorage_4>;
360
- configure(options?: Partial<ExtendedOptions_4> | undefined): /*elided*/ any;
361
- extend<ExtendedOptions_5 = ExtendedOptions_4, ExtendedStorage_5 = ExtendedStorage_4>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.NodeConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.MarkConfig<ExtendedOptions_5, ExtendedStorage_5>> | undefined): {
362
- type: string;
363
- parent: /*elided*/ any | null;
364
- child: /*elided*/ any | null;
365
- name: string;
366
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.NodeConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.MarkConfig<ExtendedOptions_5, ExtendedStorage_5>;
367
- readonly options: ExtendedOptions_5;
368
- readonly storage: Readonly<ExtendedStorage_5>;
369
- configure(options?: Partial<ExtendedOptions_5> | undefined): /*elided*/ any;
370
- extend<ExtendedOptions_6 = ExtendedOptions_5, ExtendedStorage_6 = ExtendedStorage_5>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.NodeConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.MarkConfig<ExtendedOptions_6, ExtendedStorage_6>> | undefined): {
371
- type: string;
372
- parent: /*elided*/ any | null;
373
- child: /*elided*/ any | null;
374
- name: string;
375
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.NodeConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.MarkConfig<ExtendedOptions_6, ExtendedStorage_6>;
376
- readonly options: ExtendedOptions_6;
377
- readonly storage: Readonly<ExtendedStorage_6>;
378
- configure(options?: Partial<ExtendedOptions_6> | undefined): /*elided*/ any;
379
- extend<ExtendedOptions_7 = ExtendedOptions_6, ExtendedStorage_7 = ExtendedStorage_6>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.NodeConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.MarkConfig<ExtendedOptions_7, ExtendedStorage_7>> | undefined): {
380
- type: string;
381
- parent: /*elided*/ any | null;
382
- child: /*elided*/ any | null;
383
- name: string;
384
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.NodeConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.MarkConfig<ExtendedOptions_7, ExtendedStorage_7>;
385
- readonly options: ExtendedOptions_7;
386
- readonly storage: Readonly<ExtendedStorage_7>;
387
- configure(options?: Partial<ExtendedOptions_7> | undefined): /*elided*/ any;
388
- extend<ExtendedOptions_8 = ExtendedOptions_7, ExtendedStorage_8 = ExtendedStorage_7>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>> | undefined): {
389
- type: string;
390
- parent: /*elided*/ any | null;
391
- child: /*elided*/ any | null;
392
- name: string;
393
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>;
394
- readonly options: ExtendedOptions_8;
395
- readonly storage: Readonly<ExtendedStorage_8>;
396
- configure(options?: Partial<ExtendedOptions_8> | undefined): /*elided*/ any;
397
- extend<ExtendedOptions_9 = ExtendedOptions_8, ExtendedStorage_9 = ExtendedStorage_8>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.NodeConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.MarkConfig<ExtendedOptions_9, ExtendedStorage_9>> | undefined): /*elided*/ any;
398
- };
399
- };
400
- };
401
- };
402
- };
403
- };
404
- };
405
- };
406
- } | null;
2237
+ options: Options;
2238
+ parent: ParentConfig<Config>['addStorage'];
2239
+ }) => Storage;
2240
+ /**
2241
+ * This function adds globalAttributes to specific nodes.
2242
+ * @see https://tiptap.dev/docs/editor/guide/custom-extensions#global-attributes
2243
+ * @example
2244
+ * addGlobalAttributes() {
2245
+ * return [
2246
+ * {
2247
+ // Extend the following extensions
2248
+ * types: [
2249
+ * 'heading',
2250
+ * 'paragraph',
2251
+ * ],
2252
+ * // with those attributes
2253
+ * attributes: {
2254
+ * textAlign: {
2255
+ * default: 'left',
2256
+ * renderHTML: attributes => ({
2257
+ * style: `text-align: ${attributes.textAlign}`,
2258
+ * }),
2259
+ * parseHTML: element => element.style.textAlign || 'left',
2260
+ * },
2261
+ * },
2262
+ * },
2263
+ * ]
2264
+ * }
2265
+ */
2266
+ addGlobalAttributes?: (this: {
407
2267
  name: string;
408
- config: _tiptap_core.ExtensionConfig<ExtendedOptions, ExtendedStorage> | _tiptap_core.NodeConfig<ExtendedOptions, ExtendedStorage> | _tiptap_core.MarkConfig<ExtendedOptions, ExtendedStorage>;
409
- readonly options: ExtendedOptions;
410
- readonly storage: Readonly<ExtendedStorage>;
411
- configure(options?: Partial<ExtendedOptions> | undefined): /*elided*/ any;
412
- extend<ExtendedOptions_1 = ExtendedOptions, ExtendedStorage_1 = ExtendedStorage>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_1, ExtendedStorage_1> | _tiptap_core.NodeConfig<ExtendedOptions_1, ExtendedStorage_1> | _tiptap_core.MarkConfig<ExtendedOptions_1, ExtendedStorage_1>> | undefined): {
413
- type: string;
414
- parent: {
415
- type: string;
416
- parent: /*elided*/ any | null;
417
- child: /*elided*/ any | null;
418
- name: string;
419
- config: _tiptap_core.ExtensionConfig<any, any> | _tiptap_core.NodeConfig<any, any> | _tiptap_core.MarkConfig<any, any>;
420
- readonly options: any;
421
- readonly storage: Readonly<any>;
422
- configure(options?: Partial<any> | undefined): /*elided*/ any;
423
- extend<ExtendedOptions_2 = any, ExtendedStorage_2 = any>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_2, ExtendedStorage_2> | _tiptap_core.NodeConfig<ExtendedOptions_2, ExtendedStorage_2> | _tiptap_core.MarkConfig<ExtendedOptions_2, ExtendedStorage_2>> | undefined): {
424
- type: string;
425
- parent: /*elided*/ any | null;
426
- child: /*elided*/ any | null;
427
- name: string;
428
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_2, ExtendedStorage_2> | _tiptap_core.NodeConfig<ExtendedOptions_2, ExtendedStorage_2> | _tiptap_core.MarkConfig<ExtendedOptions_2, ExtendedStorage_2>;
429
- readonly options: ExtendedOptions_2;
430
- readonly storage: Readonly<ExtendedStorage_2>;
431
- configure(options?: Partial<ExtendedOptions_2> | undefined): /*elided*/ any;
432
- extend<ExtendedOptions_3 = ExtendedOptions_2, ExtendedStorage_3 = ExtendedStorage_2>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.NodeConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.MarkConfig<ExtendedOptions_3, ExtendedStorage_3>> | undefined): {
433
- type: string;
434
- parent: /*elided*/ any | null;
435
- child: /*elided*/ any | null;
436
- name: string;
437
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.NodeConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.MarkConfig<ExtendedOptions_3, ExtendedStorage_3>;
438
- readonly options: ExtendedOptions_3;
439
- readonly storage: Readonly<ExtendedStorage_3>;
440
- configure(options?: Partial<ExtendedOptions_3> | undefined): /*elided*/ any;
441
- extend<ExtendedOptions_4 = ExtendedOptions_3, ExtendedStorage_4 = ExtendedStorage_3>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.NodeConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.MarkConfig<ExtendedOptions_4, ExtendedStorage_4>> | undefined): {
442
- type: string;
443
- parent: /*elided*/ any | null;
444
- child: /*elided*/ any | null;
445
- name: string;
446
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.NodeConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.MarkConfig<ExtendedOptions_4, ExtendedStorage_4>;
447
- readonly options: ExtendedOptions_4;
448
- readonly storage: Readonly<ExtendedStorage_4>;
449
- configure(options?: Partial<ExtendedOptions_4> | undefined): /*elided*/ any;
450
- extend<ExtendedOptions_5 = ExtendedOptions_4, ExtendedStorage_5 = ExtendedStorage_4>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.NodeConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.MarkConfig<ExtendedOptions_5, ExtendedStorage_5>> | undefined): {
451
- type: string;
452
- parent: /*elided*/ any | null;
453
- child: /*elided*/ any | null;
454
- name: string;
455
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.NodeConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.MarkConfig<ExtendedOptions_5, ExtendedStorage_5>;
456
- readonly options: ExtendedOptions_5;
457
- readonly storage: Readonly<ExtendedStorage_5>;
458
- configure(options?: Partial<ExtendedOptions_5> | undefined): /*elided*/ any;
459
- extend<ExtendedOptions_6 = ExtendedOptions_5, ExtendedStorage_6 = ExtendedStorage_5>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.NodeConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.MarkConfig<ExtendedOptions_6, ExtendedStorage_6>> | undefined): {
460
- type: string;
461
- parent: /*elided*/ any | null;
462
- child: /*elided*/ any | null;
463
- name: string;
464
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.NodeConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.MarkConfig<ExtendedOptions_6, ExtendedStorage_6>;
465
- readonly options: ExtendedOptions_6;
466
- readonly storage: Readonly<ExtendedStorage_6>;
467
- configure(options?: Partial<ExtendedOptions_6> | undefined): /*elided*/ any;
468
- extend<ExtendedOptions_7 = ExtendedOptions_6, ExtendedStorage_7 = ExtendedStorage_6>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.NodeConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.MarkConfig<ExtendedOptions_7, ExtendedStorage_7>> | undefined): {
469
- type: string;
470
- parent: /*elided*/ any | null;
471
- child: /*elided*/ any | null;
472
- name: string;
473
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.NodeConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.MarkConfig<ExtendedOptions_7, ExtendedStorage_7>;
474
- readonly options: ExtendedOptions_7;
475
- readonly storage: Readonly<ExtendedStorage_7>;
476
- configure(options?: Partial<ExtendedOptions_7> | undefined): /*elided*/ any;
477
- extend<ExtendedOptions_8 = ExtendedOptions_7, ExtendedStorage_8 = ExtendedStorage_7>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>> | undefined): {
478
- type: string;
479
- parent: /*elided*/ any | null;
480
- child: /*elided*/ any | null;
481
- name: string;
482
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>;
483
- readonly options: ExtendedOptions_8;
484
- readonly storage: Readonly<ExtendedStorage_8>;
485
- configure(options?: Partial<ExtendedOptions_8> | undefined): /*elided*/ any;
486
- extend<ExtendedOptions_9 = ExtendedOptions_8, ExtendedStorage_9 = ExtendedStorage_8>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.NodeConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.MarkConfig<ExtendedOptions_9, ExtendedStorage_9>> | undefined): /*elided*/ any;
487
- };
488
- };
489
- };
490
- };
491
- };
492
- };
493
- };
494
- } | null;
495
- child: {
496
- type: string;
497
- parent: /*elided*/ any | null;
498
- child: /*elided*/ any | null;
499
- name: string;
500
- config: _tiptap_core.ExtensionConfig<any, any> | _tiptap_core.NodeConfig<any, any> | _tiptap_core.MarkConfig<any, any>;
501
- readonly options: any;
502
- readonly storage: Readonly<any>;
503
- configure(options?: Partial<any> | undefined): /*elided*/ any;
504
- extend<ExtendedOptions_2 = any, ExtendedStorage_2 = any>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_2, ExtendedStorage_2> | _tiptap_core.NodeConfig<ExtendedOptions_2, ExtendedStorage_2> | _tiptap_core.MarkConfig<ExtendedOptions_2, ExtendedStorage_2>> | undefined): {
505
- type: string;
506
- parent: /*elided*/ any | null;
507
- child: /*elided*/ any | null;
508
- name: string;
509
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_2, ExtendedStorage_2> | _tiptap_core.NodeConfig<ExtendedOptions_2, ExtendedStorage_2> | _tiptap_core.MarkConfig<ExtendedOptions_2, ExtendedStorage_2>;
510
- readonly options: ExtendedOptions_2;
511
- readonly storage: Readonly<ExtendedStorage_2>;
512
- configure(options?: Partial<ExtendedOptions_2> | undefined): /*elided*/ any;
513
- extend<ExtendedOptions_3 = ExtendedOptions_2, ExtendedStorage_3 = ExtendedStorage_2>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.NodeConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.MarkConfig<ExtendedOptions_3, ExtendedStorage_3>> | undefined): {
514
- type: string;
515
- parent: /*elided*/ any | null;
516
- child: /*elided*/ any | null;
517
- name: string;
518
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.NodeConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.MarkConfig<ExtendedOptions_3, ExtendedStorage_3>;
519
- readonly options: ExtendedOptions_3;
520
- readonly storage: Readonly<ExtendedStorage_3>;
521
- configure(options?: Partial<ExtendedOptions_3> | undefined): /*elided*/ any;
522
- extend<ExtendedOptions_4 = ExtendedOptions_3, ExtendedStorage_4 = ExtendedStorage_3>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.NodeConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.MarkConfig<ExtendedOptions_4, ExtendedStorage_4>> | undefined): {
523
- type: string;
524
- parent: /*elided*/ any | null;
525
- child: /*elided*/ any | null;
526
- name: string;
527
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.NodeConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.MarkConfig<ExtendedOptions_4, ExtendedStorage_4>;
528
- readonly options: ExtendedOptions_4;
529
- readonly storage: Readonly<ExtendedStorage_4>;
530
- configure(options?: Partial<ExtendedOptions_4> | undefined): /*elided*/ any;
531
- extend<ExtendedOptions_5 = ExtendedOptions_4, ExtendedStorage_5 = ExtendedStorage_4>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.NodeConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.MarkConfig<ExtendedOptions_5, ExtendedStorage_5>> | undefined): {
532
- type: string;
533
- parent: /*elided*/ any | null;
534
- child: /*elided*/ any | null;
535
- name: string;
536
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.NodeConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.MarkConfig<ExtendedOptions_5, ExtendedStorage_5>;
537
- readonly options: ExtendedOptions_5;
538
- readonly storage: Readonly<ExtendedStorage_5>;
539
- configure(options?: Partial<ExtendedOptions_5> | undefined): /*elided*/ any;
540
- extend<ExtendedOptions_6 = ExtendedOptions_5, ExtendedStorage_6 = ExtendedStorage_5>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.NodeConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.MarkConfig<ExtendedOptions_6, ExtendedStorage_6>> | undefined): {
541
- type: string;
542
- parent: /*elided*/ any | null;
543
- child: /*elided*/ any | null;
544
- name: string;
545
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.NodeConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.MarkConfig<ExtendedOptions_6, ExtendedStorage_6>;
546
- readonly options: ExtendedOptions_6;
547
- readonly storage: Readonly<ExtendedStorage_6>;
548
- configure(options?: Partial<ExtendedOptions_6> | undefined): /*elided*/ any;
549
- extend<ExtendedOptions_7 = ExtendedOptions_6, ExtendedStorage_7 = ExtendedStorage_6>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.NodeConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.MarkConfig<ExtendedOptions_7, ExtendedStorage_7>> | undefined): {
550
- type: string;
551
- parent: /*elided*/ any | null;
552
- child: /*elided*/ any | null;
553
- name: string;
554
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.NodeConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.MarkConfig<ExtendedOptions_7, ExtendedStorage_7>;
555
- readonly options: ExtendedOptions_7;
556
- readonly storage: Readonly<ExtendedStorage_7>;
557
- configure(options?: Partial<ExtendedOptions_7> | undefined): /*elided*/ any;
558
- extend<ExtendedOptions_8 = ExtendedOptions_7, ExtendedStorage_8 = ExtendedStorage_7>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>> | undefined): {
559
- type: string;
560
- parent: /*elided*/ any | null;
561
- child: /*elided*/ any | null;
562
- name: string;
563
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>;
564
- readonly options: ExtendedOptions_8;
565
- readonly storage: Readonly<ExtendedStorage_8>;
566
- configure(options?: Partial<ExtendedOptions_8> | undefined): /*elided*/ any;
567
- extend<ExtendedOptions_9 = ExtendedOptions_8, ExtendedStorage_9 = ExtendedStorage_8>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.NodeConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.MarkConfig<ExtendedOptions_9, ExtendedStorage_9>> | undefined): /*elided*/ any;
568
- };
569
- };
570
- };
571
- };
572
- };
573
- };
574
- };
575
- } | null;
576
- name: string;
577
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_1, ExtendedStorage_1> | _tiptap_core.NodeConfig<ExtendedOptions_1, ExtendedStorage_1> | _tiptap_core.MarkConfig<ExtendedOptions_1, ExtendedStorage_1>;
578
- readonly options: ExtendedOptions_1;
579
- readonly storage: Readonly<ExtendedStorage_1>;
580
- configure(options?: Partial<ExtendedOptions_1> | undefined): /*elided*/ any;
581
- extend<ExtendedOptions_2 = ExtendedOptions_1, ExtendedStorage_2 = ExtendedStorage_1>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_2, ExtendedStorage_2> | _tiptap_core.NodeConfig<ExtendedOptions_2, ExtendedStorage_2> | _tiptap_core.MarkConfig<ExtendedOptions_2, ExtendedStorage_2>> | undefined): {
582
- type: string;
583
- parent: {
584
- type: string;
585
- parent: /*elided*/ any | null;
586
- child: /*elided*/ any | null;
587
- name: string;
588
- config: _tiptap_core.ExtensionConfig<any, any> | _tiptap_core.NodeConfig<any, any> | _tiptap_core.MarkConfig<any, any>;
589
- readonly options: any;
590
- readonly storage: Readonly<any>;
591
- configure(options?: Partial<any> | undefined): /*elided*/ any;
592
- extend<ExtendedOptions_3 = any, ExtendedStorage_3 = any>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.NodeConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.MarkConfig<ExtendedOptions_3, ExtendedStorage_3>> | undefined): {
593
- type: string;
594
- parent: /*elided*/ any | null;
595
- child: /*elided*/ any | null;
596
- name: string;
597
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.NodeConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.MarkConfig<ExtendedOptions_3, ExtendedStorage_3>;
598
- readonly options: ExtendedOptions_3;
599
- readonly storage: Readonly<ExtendedStorage_3>;
600
- configure(options?: Partial<ExtendedOptions_3> | undefined): /*elided*/ any;
601
- extend<ExtendedOptions_4 = ExtendedOptions_3, ExtendedStorage_4 = ExtendedStorage_3>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.NodeConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.MarkConfig<ExtendedOptions_4, ExtendedStorage_4>> | undefined): {
602
- type: string;
603
- parent: /*elided*/ any | null;
604
- child: /*elided*/ any | null;
605
- name: string;
606
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.NodeConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.MarkConfig<ExtendedOptions_4, ExtendedStorage_4>;
607
- readonly options: ExtendedOptions_4;
608
- readonly storage: Readonly<ExtendedStorage_4>;
609
- configure(options?: Partial<ExtendedOptions_4> | undefined): /*elided*/ any;
610
- extend<ExtendedOptions_5 = ExtendedOptions_4, ExtendedStorage_5 = ExtendedStorage_4>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.NodeConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.MarkConfig<ExtendedOptions_5, ExtendedStorage_5>> | undefined): {
611
- type: string;
612
- parent: /*elided*/ any | null;
613
- child: /*elided*/ any | null;
614
- name: string;
615
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.NodeConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.MarkConfig<ExtendedOptions_5, ExtendedStorage_5>;
616
- readonly options: ExtendedOptions_5;
617
- readonly storage: Readonly<ExtendedStorage_5>;
618
- configure(options?: Partial<ExtendedOptions_5> | undefined): /*elided*/ any;
619
- extend<ExtendedOptions_6 = ExtendedOptions_5, ExtendedStorage_6 = ExtendedStorage_5>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.NodeConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.MarkConfig<ExtendedOptions_6, ExtendedStorage_6>> | undefined): {
620
- type: string;
621
- parent: /*elided*/ any | null;
622
- child: /*elided*/ any | null;
623
- name: string;
624
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.NodeConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.MarkConfig<ExtendedOptions_6, ExtendedStorage_6>;
625
- readonly options: ExtendedOptions_6;
626
- readonly storage: Readonly<ExtendedStorage_6>;
627
- configure(options?: Partial<ExtendedOptions_6> | undefined): /*elided*/ any;
628
- extend<ExtendedOptions_7 = ExtendedOptions_6, ExtendedStorage_7 = ExtendedStorage_6>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.NodeConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.MarkConfig<ExtendedOptions_7, ExtendedStorage_7>> | undefined): {
629
- type: string;
630
- parent: /*elided*/ any | null;
631
- child: /*elided*/ any | null;
632
- name: string;
633
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.NodeConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.MarkConfig<ExtendedOptions_7, ExtendedStorage_7>;
634
- readonly options: ExtendedOptions_7;
635
- readonly storage: Readonly<ExtendedStorage_7>;
636
- configure(options?: Partial<ExtendedOptions_7> | undefined): /*elided*/ any;
637
- extend<ExtendedOptions_8 = ExtendedOptions_7, ExtendedStorage_8 = ExtendedStorage_7>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>> | undefined): {
638
- type: string;
639
- parent: /*elided*/ any | null;
640
- child: /*elided*/ any | null;
641
- name: string;
642
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>;
643
- readonly options: ExtendedOptions_8;
644
- readonly storage: Readonly<ExtendedStorage_8>;
645
- configure(options?: Partial<ExtendedOptions_8> | undefined): /*elided*/ any;
646
- extend<ExtendedOptions_9 = ExtendedOptions_8, ExtendedStorage_9 = ExtendedStorage_8>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.NodeConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.MarkConfig<ExtendedOptions_9, ExtendedStorage_9>> | undefined): /*elided*/ any;
647
- };
648
- };
649
- };
650
- };
651
- };
652
- };
653
- } | null;
654
- child: {
655
- type: string;
656
- parent: /*elided*/ any | null;
657
- child: /*elided*/ any | null;
658
- name: string;
659
- config: _tiptap_core.ExtensionConfig<any, any> | _tiptap_core.NodeConfig<any, any> | _tiptap_core.MarkConfig<any, any>;
660
- readonly options: any;
661
- readonly storage: Readonly<any>;
662
- configure(options?: Partial<any> | undefined): /*elided*/ any;
663
- extend<ExtendedOptions_3 = any, ExtendedStorage_3 = any>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.NodeConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.MarkConfig<ExtendedOptions_3, ExtendedStorage_3>> | undefined): {
664
- type: string;
665
- parent: /*elided*/ any | null;
666
- child: /*elided*/ any | null;
667
- name: string;
668
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.NodeConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.MarkConfig<ExtendedOptions_3, ExtendedStorage_3>;
669
- readonly options: ExtendedOptions_3;
670
- readonly storage: Readonly<ExtendedStorage_3>;
671
- configure(options?: Partial<ExtendedOptions_3> | undefined): /*elided*/ any;
672
- extend<ExtendedOptions_4 = ExtendedOptions_3, ExtendedStorage_4 = ExtendedStorage_3>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.NodeConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.MarkConfig<ExtendedOptions_4, ExtendedStorage_4>> | undefined): {
673
- type: string;
674
- parent: /*elided*/ any | null;
675
- child: /*elided*/ any | null;
676
- name: string;
677
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.NodeConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.MarkConfig<ExtendedOptions_4, ExtendedStorage_4>;
678
- readonly options: ExtendedOptions_4;
679
- readonly storage: Readonly<ExtendedStorage_4>;
680
- configure(options?: Partial<ExtendedOptions_4> | undefined): /*elided*/ any;
681
- extend<ExtendedOptions_5 = ExtendedOptions_4, ExtendedStorage_5 = ExtendedStorage_4>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.NodeConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.MarkConfig<ExtendedOptions_5, ExtendedStorage_5>> | undefined): {
682
- type: string;
683
- parent: /*elided*/ any | null;
684
- child: /*elided*/ any | null;
685
- name: string;
686
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.NodeConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.MarkConfig<ExtendedOptions_5, ExtendedStorage_5>;
687
- readonly options: ExtendedOptions_5;
688
- readonly storage: Readonly<ExtendedStorage_5>;
689
- configure(options?: Partial<ExtendedOptions_5> | undefined): /*elided*/ any;
690
- extend<ExtendedOptions_6 = ExtendedOptions_5, ExtendedStorage_6 = ExtendedStorage_5>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.NodeConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.MarkConfig<ExtendedOptions_6, ExtendedStorage_6>> | undefined): {
691
- type: string;
692
- parent: /*elided*/ any | null;
693
- child: /*elided*/ any | null;
694
- name: string;
695
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.NodeConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.MarkConfig<ExtendedOptions_6, ExtendedStorage_6>;
696
- readonly options: ExtendedOptions_6;
697
- readonly storage: Readonly<ExtendedStorage_6>;
698
- configure(options?: Partial<ExtendedOptions_6> | undefined): /*elided*/ any;
699
- extend<ExtendedOptions_7 = ExtendedOptions_6, ExtendedStorage_7 = ExtendedStorage_6>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.NodeConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.MarkConfig<ExtendedOptions_7, ExtendedStorage_7>> | undefined): {
700
- type: string;
701
- parent: /*elided*/ any | null;
702
- child: /*elided*/ any | null;
703
- name: string;
704
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.NodeConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.MarkConfig<ExtendedOptions_7, ExtendedStorage_7>;
705
- readonly options: ExtendedOptions_7;
706
- readonly storage: Readonly<ExtendedStorage_7>;
707
- configure(options?: Partial<ExtendedOptions_7> | undefined): /*elided*/ any;
708
- extend<ExtendedOptions_8 = ExtendedOptions_7, ExtendedStorage_8 = ExtendedStorage_7>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>> | undefined): {
709
- type: string;
710
- parent: /*elided*/ any | null;
711
- child: /*elided*/ any | null;
712
- name: string;
713
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>;
714
- readonly options: ExtendedOptions_8;
715
- readonly storage: Readonly<ExtendedStorage_8>;
716
- configure(options?: Partial<ExtendedOptions_8> | undefined): /*elided*/ any;
717
- extend<ExtendedOptions_9 = ExtendedOptions_8, ExtendedStorage_9 = ExtendedStorage_8>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.NodeConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.MarkConfig<ExtendedOptions_9, ExtendedStorage_9>> | undefined): /*elided*/ any;
718
- };
719
- };
720
- };
721
- };
722
- };
723
- };
724
- } | null;
725
- name: string;
726
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_2, ExtendedStorage_2> | _tiptap_core.NodeConfig<ExtendedOptions_2, ExtendedStorage_2> | _tiptap_core.MarkConfig<ExtendedOptions_2, ExtendedStorage_2>;
727
- readonly options: ExtendedOptions_2;
728
- readonly storage: Readonly<ExtendedStorage_2>;
729
- configure(options?: Partial<ExtendedOptions_2> | undefined): /*elided*/ any;
730
- extend<ExtendedOptions_3 = ExtendedOptions_2, ExtendedStorage_3 = ExtendedStorage_2>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.NodeConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.MarkConfig<ExtendedOptions_3, ExtendedStorage_3>> | undefined): {
731
- type: string;
732
- parent: {
733
- type: string;
734
- parent: /*elided*/ any | null;
735
- child: /*elided*/ any | null;
736
- name: string;
737
- config: _tiptap_core.ExtensionConfig<any, any> | _tiptap_core.NodeConfig<any, any> | _tiptap_core.MarkConfig<any, any>;
738
- readonly options: any;
739
- readonly storage: Readonly<any>;
740
- configure(options?: Partial<any> | undefined): /*elided*/ any;
741
- extend<ExtendedOptions_4 = any, ExtendedStorage_4 = any>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.NodeConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.MarkConfig<ExtendedOptions_4, ExtendedStorage_4>> | undefined): {
742
- type: string;
743
- parent: /*elided*/ any | null;
744
- child: /*elided*/ any | null;
745
- name: string;
746
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.NodeConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.MarkConfig<ExtendedOptions_4, ExtendedStorage_4>;
747
- readonly options: ExtendedOptions_4;
748
- readonly storage: Readonly<ExtendedStorage_4>;
749
- configure(options?: Partial<ExtendedOptions_4> | undefined): /*elided*/ any;
750
- extend<ExtendedOptions_5 = ExtendedOptions_4, ExtendedStorage_5 = ExtendedStorage_4>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.NodeConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.MarkConfig<ExtendedOptions_5, ExtendedStorage_5>> | undefined): {
751
- type: string;
752
- parent: /*elided*/ any | null;
753
- child: /*elided*/ any | null;
754
- name: string;
755
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.NodeConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.MarkConfig<ExtendedOptions_5, ExtendedStorage_5>;
756
- readonly options: ExtendedOptions_5;
757
- readonly storage: Readonly<ExtendedStorage_5>;
758
- configure(options?: Partial<ExtendedOptions_5> | undefined): /*elided*/ any;
759
- extend<ExtendedOptions_6 = ExtendedOptions_5, ExtendedStorage_6 = ExtendedStorage_5>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.NodeConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.MarkConfig<ExtendedOptions_6, ExtendedStorage_6>> | undefined): {
760
- type: string;
761
- parent: /*elided*/ any | null;
762
- child: /*elided*/ any | null;
763
- name: string;
764
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.NodeConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.MarkConfig<ExtendedOptions_6, ExtendedStorage_6>;
765
- readonly options: ExtendedOptions_6;
766
- readonly storage: Readonly<ExtendedStorage_6>;
767
- configure(options?: Partial<ExtendedOptions_6> | undefined): /*elided*/ any;
768
- extend<ExtendedOptions_7 = ExtendedOptions_6, ExtendedStorage_7 = ExtendedStorage_6>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.NodeConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.MarkConfig<ExtendedOptions_7, ExtendedStorage_7>> | undefined): {
769
- type: string;
770
- parent: /*elided*/ any | null;
771
- child: /*elided*/ any | null;
772
- name: string;
773
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.NodeConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.MarkConfig<ExtendedOptions_7, ExtendedStorage_7>;
774
- readonly options: ExtendedOptions_7;
775
- readonly storage: Readonly<ExtendedStorage_7>;
776
- configure(options?: Partial<ExtendedOptions_7> | undefined): /*elided*/ any;
777
- extend<ExtendedOptions_8 = ExtendedOptions_7, ExtendedStorage_8 = ExtendedStorage_7>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>> | undefined): {
778
- type: string;
779
- parent: /*elided*/ any | null;
780
- child: /*elided*/ any | null;
781
- name: string;
782
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>;
783
- readonly options: ExtendedOptions_8;
784
- readonly storage: Readonly<ExtendedStorage_8>;
785
- configure(options?: Partial<ExtendedOptions_8> | undefined): /*elided*/ any;
786
- extend<ExtendedOptions_9 = ExtendedOptions_8, ExtendedStorage_9 = ExtendedStorage_8>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.NodeConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.MarkConfig<ExtendedOptions_9, ExtendedStorage_9>> | undefined): /*elided*/ any;
787
- };
788
- };
789
- };
790
- };
791
- };
792
- } | null;
793
- child: {
794
- type: string;
795
- parent: /*elided*/ any | null;
796
- child: /*elided*/ any | null;
797
- name: string;
798
- config: _tiptap_core.ExtensionConfig<any, any> | _tiptap_core.NodeConfig<any, any> | _tiptap_core.MarkConfig<any, any>;
799
- readonly options: any;
800
- readonly storage: Readonly<any>;
801
- configure(options?: Partial<any> | undefined): /*elided*/ any;
802
- extend<ExtendedOptions_4 = any, ExtendedStorage_4 = any>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.NodeConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.MarkConfig<ExtendedOptions_4, ExtendedStorage_4>> | undefined): {
803
- type: string;
804
- parent: /*elided*/ any | null;
805
- child: /*elided*/ any | null;
806
- name: string;
807
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.NodeConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.MarkConfig<ExtendedOptions_4, ExtendedStorage_4>;
808
- readonly options: ExtendedOptions_4;
809
- readonly storage: Readonly<ExtendedStorage_4>;
810
- configure(options?: Partial<ExtendedOptions_4> | undefined): /*elided*/ any;
811
- extend<ExtendedOptions_5 = ExtendedOptions_4, ExtendedStorage_5 = ExtendedStorage_4>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.NodeConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.MarkConfig<ExtendedOptions_5, ExtendedStorage_5>> | undefined): {
812
- type: string;
813
- parent: /*elided*/ any | null;
814
- child: /*elided*/ any | null;
815
- name: string;
816
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.NodeConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.MarkConfig<ExtendedOptions_5, ExtendedStorage_5>;
817
- readonly options: ExtendedOptions_5;
818
- readonly storage: Readonly<ExtendedStorage_5>;
819
- configure(options?: Partial<ExtendedOptions_5> | undefined): /*elided*/ any;
820
- extend<ExtendedOptions_6 = ExtendedOptions_5, ExtendedStorage_6 = ExtendedStorage_5>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.NodeConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.MarkConfig<ExtendedOptions_6, ExtendedStorage_6>> | undefined): {
821
- type: string;
822
- parent: /*elided*/ any | null;
823
- child: /*elided*/ any | null;
824
- name: string;
825
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.NodeConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.MarkConfig<ExtendedOptions_6, ExtendedStorage_6>;
826
- readonly options: ExtendedOptions_6;
827
- readonly storage: Readonly<ExtendedStorage_6>;
828
- configure(options?: Partial<ExtendedOptions_6> | undefined): /*elided*/ any;
829
- extend<ExtendedOptions_7 = ExtendedOptions_6, ExtendedStorage_7 = ExtendedStorage_6>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.NodeConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.MarkConfig<ExtendedOptions_7, ExtendedStorage_7>> | undefined): {
830
- type: string;
831
- parent: /*elided*/ any | null;
832
- child: /*elided*/ any | null;
833
- name: string;
834
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.NodeConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.MarkConfig<ExtendedOptions_7, ExtendedStorage_7>;
835
- readonly options: ExtendedOptions_7;
836
- readonly storage: Readonly<ExtendedStorage_7>;
837
- configure(options?: Partial<ExtendedOptions_7> | undefined): /*elided*/ any;
838
- extend<ExtendedOptions_8 = ExtendedOptions_7, ExtendedStorage_8 = ExtendedStorage_7>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>> | undefined): {
839
- type: string;
840
- parent: /*elided*/ any | null;
841
- child: /*elided*/ any | null;
842
- name: string;
843
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>;
844
- readonly options: ExtendedOptions_8;
845
- readonly storage: Readonly<ExtendedStorage_8>;
846
- configure(options?: Partial<ExtendedOptions_8> | undefined): /*elided*/ any;
847
- extend<ExtendedOptions_9 = ExtendedOptions_8, ExtendedStorage_9 = ExtendedStorage_8>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.NodeConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.MarkConfig<ExtendedOptions_9, ExtendedStorage_9>> | undefined): /*elided*/ any;
848
- };
849
- };
850
- };
851
- };
852
- };
853
- } | null;
854
- name: string;
855
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.NodeConfig<ExtendedOptions_3, ExtendedStorage_3> | _tiptap_core.MarkConfig<ExtendedOptions_3, ExtendedStorage_3>;
856
- readonly options: ExtendedOptions_3;
857
- readonly storage: Readonly<ExtendedStorage_3>;
858
- configure(options?: Partial<ExtendedOptions_3> | undefined): /*elided*/ any;
859
- extend<ExtendedOptions_4 = ExtendedOptions_3, ExtendedStorage_4 = ExtendedStorage_3>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.NodeConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.MarkConfig<ExtendedOptions_4, ExtendedStorage_4>> | undefined): {
860
- type: string;
861
- parent: {
862
- type: string;
863
- parent: /*elided*/ any | null;
864
- child: /*elided*/ any | null;
865
- name: string;
866
- config: _tiptap_core.ExtensionConfig<any, any> | _tiptap_core.NodeConfig<any, any> | _tiptap_core.MarkConfig<any, any>;
867
- readonly options: any;
868
- readonly storage: Readonly<any>;
869
- configure(options?: Partial<any> | undefined): /*elided*/ any;
870
- extend<ExtendedOptions_5 = any, ExtendedStorage_5 = any>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.NodeConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.MarkConfig<ExtendedOptions_5, ExtendedStorage_5>> | undefined): {
871
- type: string;
872
- parent: /*elided*/ any | null;
873
- child: /*elided*/ any | null;
874
- name: string;
875
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.NodeConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.MarkConfig<ExtendedOptions_5, ExtendedStorage_5>;
876
- readonly options: ExtendedOptions_5;
877
- readonly storage: Readonly<ExtendedStorage_5>;
878
- configure(options?: Partial<ExtendedOptions_5> | undefined): /*elided*/ any;
879
- extend<ExtendedOptions_6 = ExtendedOptions_5, ExtendedStorage_6 = ExtendedStorage_5>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.NodeConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.MarkConfig<ExtendedOptions_6, ExtendedStorage_6>> | undefined): {
880
- type: string;
881
- parent: /*elided*/ any | null;
882
- child: /*elided*/ any | null;
883
- name: string;
884
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.NodeConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.MarkConfig<ExtendedOptions_6, ExtendedStorage_6>;
885
- readonly options: ExtendedOptions_6;
886
- readonly storage: Readonly<ExtendedStorage_6>;
887
- configure(options?: Partial<ExtendedOptions_6> | undefined): /*elided*/ any;
888
- extend<ExtendedOptions_7 = ExtendedOptions_6, ExtendedStorage_7 = ExtendedStorage_6>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.NodeConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.MarkConfig<ExtendedOptions_7, ExtendedStorage_7>> | undefined): {
889
- type: string;
890
- parent: /*elided*/ any | null;
891
- child: /*elided*/ any | null;
892
- name: string;
893
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.NodeConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.MarkConfig<ExtendedOptions_7, ExtendedStorage_7>;
894
- readonly options: ExtendedOptions_7;
895
- readonly storage: Readonly<ExtendedStorage_7>;
896
- configure(options?: Partial<ExtendedOptions_7> | undefined): /*elided*/ any;
897
- extend<ExtendedOptions_8 = ExtendedOptions_7, ExtendedStorage_8 = ExtendedStorage_7>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>> | undefined): {
898
- type: string;
899
- parent: /*elided*/ any | null;
900
- child: /*elided*/ any | null;
901
- name: string;
902
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>;
903
- readonly options: ExtendedOptions_8;
904
- readonly storage: Readonly<ExtendedStorage_8>;
905
- configure(options?: Partial<ExtendedOptions_8> | undefined): /*elided*/ any;
906
- extend<ExtendedOptions_9 = ExtendedOptions_8, ExtendedStorage_9 = ExtendedStorage_8>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.NodeConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.MarkConfig<ExtendedOptions_9, ExtendedStorage_9>> | undefined): /*elided*/ any;
907
- };
908
- };
909
- };
910
- };
911
- } | null;
912
- child: {
913
- type: string;
914
- parent: /*elided*/ any | null;
915
- child: /*elided*/ any | null;
916
- name: string;
917
- config: _tiptap_core.ExtensionConfig<any, any> | _tiptap_core.NodeConfig<any, any> | _tiptap_core.MarkConfig<any, any>;
918
- readonly options: any;
919
- readonly storage: Readonly<any>;
920
- configure(options?: Partial<any> | undefined): /*elided*/ any;
921
- extend<ExtendedOptions_5 = any, ExtendedStorage_5 = any>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.NodeConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.MarkConfig<ExtendedOptions_5, ExtendedStorage_5>> | undefined): {
922
- type: string;
923
- parent: /*elided*/ any | null;
924
- child: /*elided*/ any | null;
925
- name: string;
926
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.NodeConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.MarkConfig<ExtendedOptions_5, ExtendedStorage_5>;
927
- readonly options: ExtendedOptions_5;
928
- readonly storage: Readonly<ExtendedStorage_5>;
929
- configure(options?: Partial<ExtendedOptions_5> | undefined): /*elided*/ any;
930
- extend<ExtendedOptions_6 = ExtendedOptions_5, ExtendedStorage_6 = ExtendedStorage_5>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.NodeConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.MarkConfig<ExtendedOptions_6, ExtendedStorage_6>> | undefined): {
931
- type: string;
932
- parent: /*elided*/ any | null;
933
- child: /*elided*/ any | null;
934
- name: string;
935
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.NodeConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.MarkConfig<ExtendedOptions_6, ExtendedStorage_6>;
936
- readonly options: ExtendedOptions_6;
937
- readonly storage: Readonly<ExtendedStorage_6>;
938
- configure(options?: Partial<ExtendedOptions_6> | undefined): /*elided*/ any;
939
- extend<ExtendedOptions_7 = ExtendedOptions_6, ExtendedStorage_7 = ExtendedStorage_6>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.NodeConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.MarkConfig<ExtendedOptions_7, ExtendedStorage_7>> | undefined): {
940
- type: string;
941
- parent: /*elided*/ any | null;
942
- child: /*elided*/ any | null;
943
- name: string;
944
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.NodeConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.MarkConfig<ExtendedOptions_7, ExtendedStorage_7>;
945
- readonly options: ExtendedOptions_7;
946
- readonly storage: Readonly<ExtendedStorage_7>;
947
- configure(options?: Partial<ExtendedOptions_7> | undefined): /*elided*/ any;
948
- extend<ExtendedOptions_8 = ExtendedOptions_7, ExtendedStorage_8 = ExtendedStorage_7>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>> | undefined): {
949
- type: string;
950
- parent: /*elided*/ any | null;
951
- child: /*elided*/ any | null;
952
- name: string;
953
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>;
954
- readonly options: ExtendedOptions_8;
955
- readonly storage: Readonly<ExtendedStorage_8>;
956
- configure(options?: Partial<ExtendedOptions_8> | undefined): /*elided*/ any;
957
- extend<ExtendedOptions_9 = ExtendedOptions_8, ExtendedStorage_9 = ExtendedStorage_8>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.NodeConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.MarkConfig<ExtendedOptions_9, ExtendedStorage_9>> | undefined): /*elided*/ any;
958
- };
959
- };
960
- };
961
- };
962
- } | null;
963
- name: string;
964
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.NodeConfig<ExtendedOptions_4, ExtendedStorage_4> | _tiptap_core.MarkConfig<ExtendedOptions_4, ExtendedStorage_4>;
965
- readonly options: ExtendedOptions_4;
966
- readonly storage: Readonly<ExtendedStorage_4>;
967
- configure(options?: Partial<ExtendedOptions_4> | undefined): /*elided*/ any;
968
- extend<ExtendedOptions_5 = ExtendedOptions_4, ExtendedStorage_5 = ExtendedStorage_4>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.NodeConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.MarkConfig<ExtendedOptions_5, ExtendedStorage_5>> | undefined): {
969
- type: string;
970
- parent: {
971
- type: string;
972
- parent: /*elided*/ any | null;
973
- child: /*elided*/ any | null;
974
- name: string;
975
- config: _tiptap_core.ExtensionConfig<any, any> | _tiptap_core.NodeConfig<any, any> | _tiptap_core.MarkConfig<any, any>;
976
- readonly options: any;
977
- readonly storage: Readonly<any>;
978
- configure(options?: Partial<any> | undefined): /*elided*/ any;
979
- extend<ExtendedOptions_6 = any, ExtendedStorage_6 = any>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.NodeConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.MarkConfig<ExtendedOptions_6, ExtendedStorage_6>> | undefined): {
980
- type: string;
981
- parent: /*elided*/ any | null;
982
- child: /*elided*/ any | null;
983
- name: string;
984
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.NodeConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.MarkConfig<ExtendedOptions_6, ExtendedStorage_6>;
985
- readonly options: ExtendedOptions_6;
986
- readonly storage: Readonly<ExtendedStorage_6>;
987
- configure(options?: Partial<ExtendedOptions_6> | undefined): /*elided*/ any;
988
- extend<ExtendedOptions_7 = ExtendedOptions_6, ExtendedStorage_7 = ExtendedStorage_6>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.NodeConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.MarkConfig<ExtendedOptions_7, ExtendedStorage_7>> | undefined): {
989
- type: string;
990
- parent: /*elided*/ any | null;
991
- child: /*elided*/ any | null;
992
- name: string;
993
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.NodeConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.MarkConfig<ExtendedOptions_7, ExtendedStorage_7>;
994
- readonly options: ExtendedOptions_7;
995
- readonly storage: Readonly<ExtendedStorage_7>;
996
- configure(options?: Partial<ExtendedOptions_7> | undefined): /*elided*/ any;
997
- extend<ExtendedOptions_8 = ExtendedOptions_7, ExtendedStorage_8 = ExtendedStorage_7>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>> | undefined): {
998
- type: string;
999
- parent: /*elided*/ any | null;
1000
- child: /*elided*/ any | null;
1001
- name: string;
1002
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>;
1003
- readonly options: ExtendedOptions_8;
1004
- readonly storage: Readonly<ExtendedStorage_8>;
1005
- configure(options?: Partial<ExtendedOptions_8> | undefined): /*elided*/ any;
1006
- extend<ExtendedOptions_9 = ExtendedOptions_8, ExtendedStorage_9 = ExtendedStorage_8>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.NodeConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.MarkConfig<ExtendedOptions_9, ExtendedStorage_9>> | undefined): /*elided*/ any;
1007
- };
1008
- };
1009
- };
1010
- } | null;
1011
- child: {
1012
- type: string;
1013
- parent: /*elided*/ any | null;
1014
- child: /*elided*/ any | null;
1015
- name: string;
1016
- config: _tiptap_core.ExtensionConfig<any, any> | _tiptap_core.NodeConfig<any, any> | _tiptap_core.MarkConfig<any, any>;
1017
- readonly options: any;
1018
- readonly storage: Readonly<any>;
1019
- configure(options?: Partial<any> | undefined): /*elided*/ any;
1020
- extend<ExtendedOptions_6 = any, ExtendedStorage_6 = any>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.NodeConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.MarkConfig<ExtendedOptions_6, ExtendedStorage_6>> | undefined): {
1021
- type: string;
1022
- parent: /*elided*/ any | null;
1023
- child: /*elided*/ any | null;
1024
- name: string;
1025
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.NodeConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.MarkConfig<ExtendedOptions_6, ExtendedStorage_6>;
1026
- readonly options: ExtendedOptions_6;
1027
- readonly storage: Readonly<ExtendedStorage_6>;
1028
- configure(options?: Partial<ExtendedOptions_6> | undefined): /*elided*/ any;
1029
- extend<ExtendedOptions_7 = ExtendedOptions_6, ExtendedStorage_7 = ExtendedStorage_6>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.NodeConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.MarkConfig<ExtendedOptions_7, ExtendedStorage_7>> | undefined): {
1030
- type: string;
1031
- parent: /*elided*/ any | null;
1032
- child: /*elided*/ any | null;
1033
- name: string;
1034
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.NodeConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.MarkConfig<ExtendedOptions_7, ExtendedStorage_7>;
1035
- readonly options: ExtendedOptions_7;
1036
- readonly storage: Readonly<ExtendedStorage_7>;
1037
- configure(options?: Partial<ExtendedOptions_7> | undefined): /*elided*/ any;
1038
- extend<ExtendedOptions_8 = ExtendedOptions_7, ExtendedStorage_8 = ExtendedStorage_7>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>> | undefined): {
1039
- type: string;
1040
- parent: /*elided*/ any | null;
1041
- child: /*elided*/ any | null;
1042
- name: string;
1043
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>;
1044
- readonly options: ExtendedOptions_8;
1045
- readonly storage: Readonly<ExtendedStorage_8>;
1046
- configure(options?: Partial<ExtendedOptions_8> | undefined): /*elided*/ any;
1047
- extend<ExtendedOptions_9 = ExtendedOptions_8, ExtendedStorage_9 = ExtendedStorage_8>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.NodeConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.MarkConfig<ExtendedOptions_9, ExtendedStorage_9>> | undefined): /*elided*/ any;
1048
- };
1049
- };
1050
- };
1051
- } | null;
1052
- name: string;
1053
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.NodeConfig<ExtendedOptions_5, ExtendedStorage_5> | _tiptap_core.MarkConfig<ExtendedOptions_5, ExtendedStorage_5>;
1054
- readonly options: ExtendedOptions_5;
1055
- readonly storage: Readonly<ExtendedStorage_5>;
1056
- configure(options?: Partial<ExtendedOptions_5> | undefined): /*elided*/ any;
1057
- extend<ExtendedOptions_6 = ExtendedOptions_5, ExtendedStorage_6 = ExtendedStorage_5>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.NodeConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.MarkConfig<ExtendedOptions_6, ExtendedStorage_6>> | undefined): {
1058
- type: string;
1059
- parent: {
1060
- type: string;
1061
- parent: /*elided*/ any | null;
1062
- child: /*elided*/ any | null;
1063
- name: string;
1064
- config: _tiptap_core.ExtensionConfig<any, any> | _tiptap_core.NodeConfig<any, any> | _tiptap_core.MarkConfig<any, any>;
1065
- readonly options: any;
1066
- readonly storage: Readonly<any>;
1067
- configure(options?: Partial<any> | undefined): /*elided*/ any;
1068
- extend<ExtendedOptions_7 = any, ExtendedStorage_7 = any>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.NodeConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.MarkConfig<ExtendedOptions_7, ExtendedStorage_7>> | undefined): {
1069
- type: string;
1070
- parent: /*elided*/ any | null;
1071
- child: /*elided*/ any | null;
1072
- name: string;
1073
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.NodeConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.MarkConfig<ExtendedOptions_7, ExtendedStorage_7>;
1074
- readonly options: ExtendedOptions_7;
1075
- readonly storage: Readonly<ExtendedStorage_7>;
1076
- configure(options?: Partial<ExtendedOptions_7> | undefined): /*elided*/ any;
1077
- extend<ExtendedOptions_8 = ExtendedOptions_7, ExtendedStorage_8 = ExtendedStorage_7>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>> | undefined): {
1078
- type: string;
1079
- parent: /*elided*/ any | null;
1080
- child: /*elided*/ any | null;
1081
- name: string;
1082
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>;
1083
- readonly options: ExtendedOptions_8;
1084
- readonly storage: Readonly<ExtendedStorage_8>;
1085
- configure(options?: Partial<ExtendedOptions_8> | undefined): /*elided*/ any;
1086
- extend<ExtendedOptions_9 = ExtendedOptions_8, ExtendedStorage_9 = ExtendedStorage_8>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.NodeConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.MarkConfig<ExtendedOptions_9, ExtendedStorage_9>> | undefined): /*elided*/ any;
1087
- };
1088
- };
1089
- } | null;
1090
- child: {
1091
- type: string;
1092
- parent: /*elided*/ any | null;
1093
- child: /*elided*/ any | null;
1094
- name: string;
1095
- config: _tiptap_core.ExtensionConfig<any, any> | _tiptap_core.NodeConfig<any, any> | _tiptap_core.MarkConfig<any, any>;
1096
- readonly options: any;
1097
- readonly storage: Readonly<any>;
1098
- configure(options?: Partial<any> | undefined): /*elided*/ any;
1099
- extend<ExtendedOptions_7 = any, ExtendedStorage_7 = any>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.NodeConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.MarkConfig<ExtendedOptions_7, ExtendedStorage_7>> | undefined): {
1100
- type: string;
1101
- parent: /*elided*/ any | null;
1102
- child: /*elided*/ any | null;
1103
- name: string;
1104
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.NodeConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.MarkConfig<ExtendedOptions_7, ExtendedStorage_7>;
1105
- readonly options: ExtendedOptions_7;
1106
- readonly storage: Readonly<ExtendedStorage_7>;
1107
- configure(options?: Partial<ExtendedOptions_7> | undefined): /*elided*/ any;
1108
- extend<ExtendedOptions_8 = ExtendedOptions_7, ExtendedStorage_8 = ExtendedStorage_7>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>> | undefined): {
1109
- type: string;
1110
- parent: /*elided*/ any | null;
1111
- child: /*elided*/ any | null;
1112
- name: string;
1113
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>;
1114
- readonly options: ExtendedOptions_8;
1115
- readonly storage: Readonly<ExtendedStorage_8>;
1116
- configure(options?: Partial<ExtendedOptions_8> | undefined): /*elided*/ any;
1117
- extend<ExtendedOptions_9 = ExtendedOptions_8, ExtendedStorage_9 = ExtendedStorage_8>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.NodeConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.MarkConfig<ExtendedOptions_9, ExtendedStorage_9>> | undefined): /*elided*/ any;
1118
- };
1119
- };
1120
- } | null;
1121
- name: string;
1122
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.NodeConfig<ExtendedOptions_6, ExtendedStorage_6> | _tiptap_core.MarkConfig<ExtendedOptions_6, ExtendedStorage_6>;
1123
- readonly options: ExtendedOptions_6;
1124
- readonly storage: Readonly<ExtendedStorage_6>;
1125
- configure(options?: Partial<ExtendedOptions_6> | undefined): /*elided*/ any;
1126
- extend<ExtendedOptions_7 = ExtendedOptions_6, ExtendedStorage_7 = ExtendedStorage_6>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.NodeConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.MarkConfig<ExtendedOptions_7, ExtendedStorage_7>> | undefined): {
1127
- type: string;
1128
- parent: {
1129
- type: string;
1130
- parent: /*elided*/ any | null;
1131
- child: /*elided*/ any | null;
1132
- name: string;
1133
- config: _tiptap_core.ExtensionConfig<any, any> | _tiptap_core.NodeConfig<any, any> | _tiptap_core.MarkConfig<any, any>;
1134
- readonly options: any;
1135
- readonly storage: Readonly<any>;
1136
- configure(options?: Partial<any> | undefined): /*elided*/ any;
1137
- extend<ExtendedOptions_8 = any, ExtendedStorage_8 = any>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>> | undefined): {
1138
- type: string;
1139
- parent: /*elided*/ any | null;
1140
- child: /*elided*/ any | null;
1141
- name: string;
1142
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>;
1143
- readonly options: ExtendedOptions_8;
1144
- readonly storage: Readonly<ExtendedStorage_8>;
1145
- configure(options?: Partial<ExtendedOptions_8> | undefined): /*elided*/ any;
1146
- extend<ExtendedOptions_9 = ExtendedOptions_8, ExtendedStorage_9 = ExtendedStorage_8>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.NodeConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.MarkConfig<ExtendedOptions_9, ExtendedStorage_9>> | undefined): /*elided*/ any;
1147
- };
1148
- } | null;
1149
- child: {
1150
- type: string;
1151
- parent: /*elided*/ any | null;
1152
- child: /*elided*/ any | null;
1153
- name: string;
1154
- config: _tiptap_core.ExtensionConfig<any, any> | _tiptap_core.NodeConfig<any, any> | _tiptap_core.MarkConfig<any, any>;
1155
- readonly options: any;
1156
- readonly storage: Readonly<any>;
1157
- configure(options?: Partial<any> | undefined): /*elided*/ any;
1158
- extend<ExtendedOptions_8 = any, ExtendedStorage_8 = any>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>> | undefined): {
1159
- type: string;
1160
- parent: /*elided*/ any | null;
1161
- child: /*elided*/ any | null;
1162
- name: string;
1163
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>;
1164
- readonly options: ExtendedOptions_8;
1165
- readonly storage: Readonly<ExtendedStorage_8>;
1166
- configure(options?: Partial<ExtendedOptions_8> | undefined): /*elided*/ any;
1167
- extend<ExtendedOptions_9 = ExtendedOptions_8, ExtendedStorage_9 = ExtendedStorage_8>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.NodeConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.MarkConfig<ExtendedOptions_9, ExtendedStorage_9>> | undefined): /*elided*/ any;
1168
- };
1169
- } | null;
1170
- name: string;
1171
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.NodeConfig<ExtendedOptions_7, ExtendedStorage_7> | _tiptap_core.MarkConfig<ExtendedOptions_7, ExtendedStorage_7>;
1172
- readonly options: ExtendedOptions_7;
1173
- readonly storage: Readonly<ExtendedStorage_7>;
1174
- configure(options?: Partial<ExtendedOptions_7> | undefined): /*elided*/ any;
1175
- extend<ExtendedOptions_8 = ExtendedOptions_7, ExtendedStorage_8 = ExtendedStorage_7>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>> | undefined): {
1176
- type: string;
1177
- parent: {
1178
- type: string;
1179
- parent: /*elided*/ any | null;
1180
- child: /*elided*/ any | null;
1181
- name: string;
1182
- config: _tiptap_core.ExtensionConfig<any, any> | _tiptap_core.NodeConfig<any, any> | _tiptap_core.MarkConfig<any, any>;
1183
- readonly options: any;
1184
- readonly storage: Readonly<any>;
1185
- configure(options?: Partial<any> | undefined): /*elided*/ any;
1186
- extend<ExtendedOptions_9 = any, ExtendedStorage_9 = any>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.NodeConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.MarkConfig<ExtendedOptions_9, ExtendedStorage_9>> | undefined): /*elided*/ any;
1187
- } | null;
1188
- child: {
1189
- type: string;
1190
- parent: /*elided*/ any | null;
1191
- child: /*elided*/ any | null;
1192
- name: string;
1193
- config: _tiptap_core.ExtensionConfig<any, any> | _tiptap_core.NodeConfig<any, any> | _tiptap_core.MarkConfig<any, any>;
1194
- readonly options: any;
1195
- readonly storage: Readonly<any>;
1196
- configure(options?: Partial<any> | undefined): /*elided*/ any;
1197
- extend<ExtendedOptions_9 = any, ExtendedStorage_9 = any>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.NodeConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.MarkConfig<ExtendedOptions_9, ExtendedStorage_9>> | undefined): /*elided*/ any;
1198
- } | null;
1199
- name: string;
1200
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.NodeConfig<ExtendedOptions_8, ExtendedStorage_8> | _tiptap_core.MarkConfig<ExtendedOptions_8, ExtendedStorage_8>;
1201
- readonly options: ExtendedOptions_8;
1202
- readonly storage: Readonly<ExtendedStorage_8>;
1203
- configure(options?: Partial<ExtendedOptions_8> | undefined): /*elided*/ any;
1204
- extend<ExtendedOptions_9 = ExtendedOptions_8, ExtendedStorage_9 = ExtendedStorage_8>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.NodeConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.MarkConfig<ExtendedOptions_9, ExtendedStorage_9>> | undefined): {
1205
- type: string;
1206
- parent: /*elided*/ any | null;
1207
- child: /*elided*/ any | null;
1208
- name: string;
1209
- config: _tiptap_core.ExtensionConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.NodeConfig<ExtendedOptions_9, ExtendedStorage_9> | _tiptap_core.MarkConfig<ExtendedOptions_9, ExtendedStorage_9>;
1210
- readonly options: ExtendedOptions_9;
1211
- readonly storage: Readonly<ExtendedStorage_9>;
1212
- configure(options?: Partial<ExtendedOptions_9> | undefined): /*elided*/ any;
1213
- extend<ExtendedOptions_10 = ExtendedOptions_9, ExtendedStorage_10 = ExtendedStorage_9>(extendedConfig?: Partial<_tiptap_core.ExtensionConfig<ExtendedOptions_10, ExtendedStorage_10> | _tiptap_core.NodeConfig<ExtendedOptions_10, ExtendedStorage_10> | _tiptap_core.MarkConfig<ExtendedOptions_10, ExtendedStorage_10>> | undefined): /*elided*/ any;
1214
- };
1215
- };
1216
- };
1217
- };
1218
- };
1219
- };
1220
- };
1221
- };
1222
- };
2268
+ options: Options;
2269
+ storage: Storage;
2270
+ extensions: (Node | Mark)[];
2271
+ parent: ParentConfig<Config>['addGlobalAttributes'];
2272
+ }) => GlobalAttributes;
2273
+ /**
2274
+ * This function adds commands to the editor
2275
+ * @see https://tiptap.dev/docs/editor/guide/custom-extensions#commands
2276
+ * @example
2277
+ * addCommands() {
2278
+ * return {
2279
+ * myCommand: () => ({ chain }) => chain().setMark('type', 'foo').run(),
2280
+ * }
2281
+ * }
2282
+ */
2283
+ addCommands?: (this: {
2284
+ name: string;
2285
+ options: Options;
2286
+ storage: Storage;
2287
+ editor: Editor;
2288
+ type: PMType;
2289
+ parent: ParentConfig<Config>['addCommands'];
2290
+ }) => Partial<RawCommands>;
2291
+ /**
2292
+ * This function registers keyboard shortcuts.
2293
+ * @see https://tiptap.dev/docs/editor/guide/custom-extensions#keyboard-shortcuts
2294
+ * @example
2295
+ * addKeyboardShortcuts() {
2296
+ * return {
2297
+ * 'Mod-l': () => this.editor.commands.toggleBulletList(),
2298
+ * }
2299
+ * },
2300
+ */
2301
+ addKeyboardShortcuts?: (this: {
2302
+ name: string;
2303
+ options: Options;
2304
+ storage: Storage;
2305
+ editor: Editor;
2306
+ type: PMType;
2307
+ parent: ParentConfig<Config>['addKeyboardShortcuts'];
2308
+ }) => {
2309
+ [key: string]: KeyboardShortcutCommand;
1223
2310
  };
1224
- };
2311
+ /**
2312
+ * This function adds input rules to the editor.
2313
+ * @see https://tiptap.dev/docs/editor/guide/custom-extensions#input-rules
2314
+ * @example
2315
+ * addInputRules() {
2316
+ * return [
2317
+ * markInputRule({
2318
+ * find: inputRegex,
2319
+ * type: this.type,
2320
+ * }),
2321
+ * ]
2322
+ * },
2323
+ */
2324
+ addInputRules?: (this: {
2325
+ name: string;
2326
+ options: Options;
2327
+ storage: Storage;
2328
+ editor: Editor;
2329
+ type: PMType;
2330
+ parent: ParentConfig<Config>['addInputRules'];
2331
+ }) => InputRule[];
2332
+ /**
2333
+ * This function adds paste rules to the editor.
2334
+ * @see https://tiptap.dev/docs/editor/guide/custom-extensions#paste-rules
2335
+ * @example
2336
+ * addPasteRules() {
2337
+ * return [
2338
+ * markPasteRule({
2339
+ * find: pasteRegex,
2340
+ * type: this.type,
2341
+ * }),
2342
+ * ]
2343
+ * },
2344
+ */
2345
+ addPasteRules?: (this: {
2346
+ name: string;
2347
+ options: Options;
2348
+ storage: Storage;
2349
+ editor: Editor;
2350
+ type: PMType;
2351
+ parent: ParentConfig<Config>['addPasteRules'];
2352
+ }) => PasteRule[];
2353
+ /**
2354
+ * This function adds Prosemirror plugins to the editor
2355
+ * @see https://tiptap.dev/docs/editor/guide/custom-extensions#prosemirror-plugins
2356
+ * @example
2357
+ * addProseMirrorPlugins() {
2358
+ * return [
2359
+ * customPlugin(),
2360
+ * ]
2361
+ * }
2362
+ */
2363
+ addProseMirrorPlugins?: (this: {
2364
+ name: string;
2365
+ options: Options;
2366
+ storage: Storage;
2367
+ editor: Editor;
2368
+ type: PMType;
2369
+ parent: ParentConfig<Config>['addProseMirrorPlugins'];
2370
+ }) => Plugin[];
2371
+ /**
2372
+ * This function adds additional extensions to the editor. This is useful for
2373
+ * building extension kits.
2374
+ * @example
2375
+ * addExtensions() {
2376
+ * return [
2377
+ * BulletList,
2378
+ * OrderedList,
2379
+ * ListItem
2380
+ * ]
2381
+ * }
2382
+ */
2383
+ addExtensions?: (this: {
2384
+ name: string;
2385
+ options: Options;
2386
+ storage: Storage;
2387
+ parent: ParentConfig<Config>['addExtensions'];
2388
+ }) => Extensions;
2389
+ /**
2390
+ * This function extends the schema of the node.
2391
+ * @example
2392
+ * extendNodeSchema() {
2393
+ * return {
2394
+ * group: 'inline',
2395
+ * selectable: false,
2396
+ * }
2397
+ * }
2398
+ */
2399
+ extendNodeSchema?: ((this: {
2400
+ name: string;
2401
+ options: Options;
2402
+ storage: Storage;
2403
+ parent: ParentConfig<Config>['extendNodeSchema'];
2404
+ }, extension: Node) => Record<string, any>) | null;
2405
+ /**
2406
+ * This function extends the schema of the mark.
2407
+ * @example
2408
+ * extendMarkSchema() {
2409
+ * return {
2410
+ * group: 'inline',
2411
+ * selectable: false,
2412
+ * }
2413
+ * }
2414
+ */
2415
+ extendMarkSchema?: ((this: {
2416
+ name: string;
2417
+ options: Options;
2418
+ storage: Storage;
2419
+ parent: ParentConfig<Config>['extendMarkSchema'];
2420
+ }, extension: Mark) => Record<string, any>) | null;
2421
+ /**
2422
+ * The editor is not ready yet.
2423
+ */
2424
+ onBeforeCreate?: ((this: {
2425
+ name: string;
2426
+ options: Options;
2427
+ storage: Storage;
2428
+ editor: Editor;
2429
+ type: PMType;
2430
+ parent: ParentConfig<Config>['onBeforeCreate'];
2431
+ }, event: EditorEvents['beforeCreate']) => void) | null;
2432
+ /**
2433
+ * The editor is ready.
2434
+ */
2435
+ onCreate?: ((this: {
2436
+ name: string;
2437
+ options: Options;
2438
+ storage: Storage;
2439
+ editor: Editor;
2440
+ type: PMType;
2441
+ parent: ParentConfig<Config>['onCreate'];
2442
+ }, event: EditorEvents['create']) => void) | null;
2443
+ /**
2444
+ * The content has changed.
2445
+ */
2446
+ onUpdate?: ((this: {
2447
+ name: string;
2448
+ options: Options;
2449
+ storage: Storage;
2450
+ editor: Editor;
2451
+ type: PMType;
2452
+ parent: ParentConfig<Config>['onUpdate'];
2453
+ }, event: EditorEvents['update']) => void) | null;
2454
+ /**
2455
+ * The selection has changed.
2456
+ */
2457
+ onSelectionUpdate?: ((this: {
2458
+ name: string;
2459
+ options: Options;
2460
+ storage: Storage;
2461
+ editor: Editor;
2462
+ type: PMType;
2463
+ parent: ParentConfig<Config>['onSelectionUpdate'];
2464
+ }, event: EditorEvents['selectionUpdate']) => void) | null;
2465
+ /**
2466
+ * The editor state has changed.
2467
+ */
2468
+ onTransaction?: ((this: {
2469
+ name: string;
2470
+ options: Options;
2471
+ storage: Storage;
2472
+ editor: Editor;
2473
+ type: PMType;
2474
+ parent: ParentConfig<Config>['onTransaction'];
2475
+ }, event: EditorEvents['transaction']) => void) | null;
2476
+ /**
2477
+ * The editor is focused.
2478
+ */
2479
+ onFocus?: ((this: {
2480
+ name: string;
2481
+ options: Options;
2482
+ storage: Storage;
2483
+ editor: Editor;
2484
+ type: PMType;
2485
+ parent: ParentConfig<Config>['onFocus'];
2486
+ }, event: EditorEvents['focus']) => void) | null;
2487
+ /**
2488
+ * The editor isn’t focused anymore.
2489
+ */
2490
+ onBlur?: ((this: {
2491
+ name: string;
2492
+ options: Options;
2493
+ storage: Storage;
2494
+ editor: Editor;
2495
+ type: PMType;
2496
+ parent: ParentConfig<Config>['onBlur'];
2497
+ }, event: EditorEvents['blur']) => void) | null;
2498
+ /**
2499
+ * The editor is destroyed.
2500
+ */
2501
+ onDestroy?: ((this: {
2502
+ name: string;
2503
+ options: Options;
2504
+ storage: Storage;
2505
+ editor: Editor;
2506
+ type: PMType;
2507
+ parent: ParentConfig<Config>['onDestroy'];
2508
+ }, event: EditorEvents['destroy']) => void) | null;
2509
+ }
2510
+ declare class Extendable<Options = any, Storage = any, Config = ExtensionConfig<Options, Storage> | NodeConfig<Options, Storage> | MarkConfig<Options, Storage>> {
2511
+ type: string;
2512
+ parent: Extendable | null;
2513
+ child: Extendable | null;
2514
+ name: string;
2515
+ config: Config;
2516
+ constructor(config?: Partial<Config>);
2517
+ get options(): Options;
2518
+ get storage(): Readonly<Storage>;
2519
+ configure(options?: Partial<Options>): Extendable<Options, Storage, ExtensionConfig<Options, Storage> | NodeConfig<Options, Storage> | MarkConfig<Options, Storage>>;
2520
+ extend<ExtendedOptions = Options, ExtendedStorage = Storage>(extendedConfig?: Partial<ExtensionConfig<ExtendedOptions, ExtendedStorage> | NodeConfig<ExtendedOptions, ExtendedStorage> | MarkConfig<ExtendedOptions, ExtendedStorage>>): Extendable<ExtendedOptions, ExtendedStorage>;
2521
+ }
2522
+
2523
+ interface CodeBlockLowlightOptions extends CodeBlockOptions {
2524
+ /**
2525
+ * The lowlight instance.
2526
+ */
2527
+ lowlight: any;
2528
+ }
2529
+ /**
2530
+ * This extension allows you to highlight code blocks with lowlight.
2531
+ * @see https://tiptap.dev/api/nodes/code-block-lowlight
2532
+ */
2533
+ declare const CodeBlockLowlight: Extendable<CodeBlockLowlightOptions, any, _tiptap_core.ExtensionConfig<CodeBlockLowlightOptions, any> | _tiptap_core.NodeConfig<CodeBlockLowlightOptions, any> | _tiptap_core.MarkConfig<CodeBlockLowlightOptions, any>>;
1225
2534
 
1226
2535
  export { CodeBlockLowlight, type CodeBlockLowlightOptions, CodeBlockLowlight as default };