@portabletext/editor 1.35.3 → 1.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_chunks-cjs/behavior.core.cjs.map +1 -1
- package/lib/_chunks-cjs/editor-provider.cjs +211 -74
- package/lib/_chunks-cjs/editor-provider.cjs.map +1 -1
- package/lib/_chunks-es/behavior.core.js.map +1 -1
- package/lib/_chunks-es/editor-provider.js +212 -75
- package/lib/_chunks-es/editor-provider.js.map +1 -1
- package/lib/behaviors/index.d.cts +150 -354
- package/lib/behaviors/index.d.ts +150 -354
- package/lib/index.d.cts +145 -77
- package/lib/index.d.ts +145 -77
- package/lib/plugins/index.cjs +19 -19
- package/lib/plugins/index.cjs.map +1 -1
- package/lib/plugins/index.d.cts +134 -77
- package/lib/plugins/index.d.ts +134 -77
- package/lib/plugins/index.js +21 -21
- package/lib/plugins/index.js.map +1 -1
- package/lib/selectors/index.d.cts +123 -77
- package/lib/selectors/index.d.ts +123 -77
- package/lib/utils/index.d.cts +123 -77
- package/lib/utils/index.d.ts +123 -77
- package/package.json +6 -6
- package/src/behavior-actions/behavior.actions.ts +2 -2
- package/src/behaviors/behavior.types.ts +10 -7
- package/src/editor/PortableTextEditor.tsx +22 -0
- package/src/editor/__tests__/self-solving.test.tsx +33 -1
- package/src/editor/components/Synchronizer.tsx +17 -3
- package/src/editor/editor-machine.ts +31 -15
- package/src/editor/mutation-machine.ts +160 -46
- package/src/editor/plugins/create-with-event-listeners.ts +1 -0
- package/src/editor/plugins/createWithPatches.ts +10 -3
- package/src/editor/with-applying-behavior-actions.ts +8 -6
- package/src/plugins/index.ts +2 -1
- package/src/plugins/plugin.decorator-shortcut.ts +3 -0
- package/src/utils/util.slice-blocks.test.ts +64 -0
|
@@ -44,7 +44,6 @@ import {
|
|
|
44
44
|
Values,
|
|
45
45
|
} from 'xstate'
|
|
46
46
|
import {GuardArgs} from 'xstate/guards'
|
|
47
|
-
import {PickFromUnion as PickFromUnion_2} from '.'
|
|
48
47
|
import {
|
|
49
48
|
BlockOffset as BlockOffset_2,
|
|
50
49
|
PortableTextMemberSchemaTypes as PortableTextMemberSchemaTypes_2,
|
|
@@ -61,11 +60,9 @@ import {
|
|
|
61
60
|
export declare type Behavior<
|
|
62
61
|
TBehaviorEventType extends BehaviorEvent['type'] = BehaviorEvent['type'],
|
|
63
62
|
TGuardResponse = true,
|
|
64
|
-
TBehaviorEvent extends BehaviorEvent =
|
|
65
|
-
BehaviorEvent
|
|
66
|
-
'type',
|
|
67
|
-
TBehaviorEventType
|
|
68
|
-
>,
|
|
63
|
+
TBehaviorEvent extends BehaviorEvent = TBehaviorEventType extends '*'
|
|
64
|
+
? BehaviorEvent
|
|
65
|
+
: PickFromUnion<BehaviorEvent, 'type', TBehaviorEventType>,
|
|
69
66
|
> = {
|
|
70
67
|
/**
|
|
71
68
|
* The internal editor event that triggers this behavior.
|
|
@@ -123,6 +120,9 @@ export declare type BehaviorEvent =
|
|
|
123
120
|
| SyntheticBehaviorEvent
|
|
124
121
|
| NativeBehaviorEvent
|
|
125
122
|
| CustomBehaviorEvent
|
|
123
|
+
| {
|
|
124
|
+
type: '*'
|
|
125
|
+
}
|
|
126
126
|
|
|
127
127
|
/**
|
|
128
128
|
* @beta
|
|
@@ -244,62 +244,10 @@ export declare const coreBehaviors: Behavior_2<
|
|
|
244
244
|
| 'style.toggle'
|
|
245
245
|
| 'key.down'
|
|
246
246
|
| 'key.up'
|
|
247
|
-
| 'paste'
|
|
247
|
+
| 'paste'
|
|
248
|
+
| '*',
|
|
248
249
|
true,
|
|
249
|
-
|
|
250
|
-
BehaviorEvent_2,
|
|
251
|
-
'type',
|
|
252
|
-
| 'focus'
|
|
253
|
-
| 'delete'
|
|
254
|
-
| 'select'
|
|
255
|
-
| 'serialize'
|
|
256
|
-
| 'deserialize'
|
|
257
|
-
| 'serialization.failure'
|
|
258
|
-
| 'serialization.success'
|
|
259
|
-
| 'deserialization.failure'
|
|
260
|
-
| 'deserialization.success'
|
|
261
|
-
| 'copy'
|
|
262
|
-
| `custom.${string}`
|
|
263
|
-
| 'annotation.add'
|
|
264
|
-
| 'annotation.remove'
|
|
265
|
-
| 'annotation.toggle'
|
|
266
|
-
| 'block.set'
|
|
267
|
-
| 'block.unset'
|
|
268
|
-
| 'blur'
|
|
269
|
-
| 'data transfer.set'
|
|
270
|
-
| 'decorator.add'
|
|
271
|
-
| 'decorator.remove'
|
|
272
|
-
| 'decorator.toggle'
|
|
273
|
-
| 'delete.backward'
|
|
274
|
-
| 'delete.block'
|
|
275
|
-
| 'delete.forward'
|
|
276
|
-
| 'delete.text'
|
|
277
|
-
| 'history.redo'
|
|
278
|
-
| 'history.undo'
|
|
279
|
-
| 'insert.blocks'
|
|
280
|
-
| 'insert.block object'
|
|
281
|
-
| 'insert.inline object'
|
|
282
|
-
| 'insert.break'
|
|
283
|
-
| 'insert.soft break'
|
|
284
|
-
| 'insert.block'
|
|
285
|
-
| 'insert.span'
|
|
286
|
-
| 'insert.text'
|
|
287
|
-
| 'insert.text block'
|
|
288
|
-
| 'list item.add'
|
|
289
|
-
| 'list item.remove'
|
|
290
|
-
| 'list item.toggle'
|
|
291
|
-
| 'move.block'
|
|
292
|
-
| 'move.block down'
|
|
293
|
-
| 'move.block up'
|
|
294
|
-
| 'select.previous block'
|
|
295
|
-
| 'select.next block'
|
|
296
|
-
| 'style.add'
|
|
297
|
-
| 'style.remove'
|
|
298
|
-
| 'style.toggle'
|
|
299
|
-
| 'key.down'
|
|
300
|
-
| 'key.up'
|
|
301
|
-
| 'paste'
|
|
302
|
-
>
|
|
250
|
+
BehaviorEvent_2
|
|
303
251
|
>[]
|
|
304
252
|
|
|
305
253
|
/**
|
|
@@ -357,62 +305,10 @@ export declare function createCodeEditorBehaviors(
|
|
|
357
305
|
| 'style.toggle'
|
|
358
306
|
| 'key.down'
|
|
359
307
|
| 'key.up'
|
|
360
|
-
| 'paste'
|
|
308
|
+
| 'paste'
|
|
309
|
+
| '*',
|
|
361
310
|
true,
|
|
362
|
-
|
|
363
|
-
BehaviorEvent_2,
|
|
364
|
-
'type',
|
|
365
|
-
| 'focus'
|
|
366
|
-
| 'delete'
|
|
367
|
-
| 'select'
|
|
368
|
-
| 'serialize'
|
|
369
|
-
| 'deserialize'
|
|
370
|
-
| 'serialization.failure'
|
|
371
|
-
| 'serialization.success'
|
|
372
|
-
| 'deserialization.failure'
|
|
373
|
-
| 'deserialization.success'
|
|
374
|
-
| 'copy'
|
|
375
|
-
| `custom.${string}`
|
|
376
|
-
| 'annotation.add'
|
|
377
|
-
| 'annotation.remove'
|
|
378
|
-
| 'annotation.toggle'
|
|
379
|
-
| 'block.set'
|
|
380
|
-
| 'block.unset'
|
|
381
|
-
| 'blur'
|
|
382
|
-
| 'data transfer.set'
|
|
383
|
-
| 'decorator.add'
|
|
384
|
-
| 'decorator.remove'
|
|
385
|
-
| 'decorator.toggle'
|
|
386
|
-
| 'delete.backward'
|
|
387
|
-
| 'delete.block'
|
|
388
|
-
| 'delete.forward'
|
|
389
|
-
| 'delete.text'
|
|
390
|
-
| 'history.redo'
|
|
391
|
-
| 'history.undo'
|
|
392
|
-
| 'insert.blocks'
|
|
393
|
-
| 'insert.block object'
|
|
394
|
-
| 'insert.inline object'
|
|
395
|
-
| 'insert.break'
|
|
396
|
-
| 'insert.soft break'
|
|
397
|
-
| 'insert.block'
|
|
398
|
-
| 'insert.span'
|
|
399
|
-
| 'insert.text'
|
|
400
|
-
| 'insert.text block'
|
|
401
|
-
| 'list item.add'
|
|
402
|
-
| 'list item.remove'
|
|
403
|
-
| 'list item.toggle'
|
|
404
|
-
| 'move.block'
|
|
405
|
-
| 'move.block down'
|
|
406
|
-
| 'move.block up'
|
|
407
|
-
| 'select.previous block'
|
|
408
|
-
| 'select.next block'
|
|
409
|
-
| 'style.add'
|
|
410
|
-
| 'style.remove'
|
|
411
|
-
| 'style.toggle'
|
|
412
|
-
| 'key.down'
|
|
413
|
-
| 'key.up'
|
|
414
|
-
| 'paste'
|
|
415
|
-
>
|
|
311
|
+
BehaviorEvent_2
|
|
416
312
|
>[]
|
|
417
313
|
|
|
418
314
|
/**
|
|
@@ -470,62 +366,10 @@ export declare function createEmojiPickerBehaviors<TEmojiMatch>(
|
|
|
470
366
|
| 'style.toggle'
|
|
471
367
|
| 'key.down'
|
|
472
368
|
| 'key.up'
|
|
473
|
-
| 'paste'
|
|
369
|
+
| 'paste'
|
|
370
|
+
| '*',
|
|
474
371
|
true,
|
|
475
|
-
|
|
476
|
-
BehaviorEvent_2,
|
|
477
|
-
'type',
|
|
478
|
-
| 'focus'
|
|
479
|
-
| 'delete'
|
|
480
|
-
| 'select'
|
|
481
|
-
| 'serialize'
|
|
482
|
-
| 'deserialize'
|
|
483
|
-
| 'serialization.failure'
|
|
484
|
-
| 'serialization.success'
|
|
485
|
-
| 'deserialization.failure'
|
|
486
|
-
| 'deserialization.success'
|
|
487
|
-
| 'copy'
|
|
488
|
-
| `custom.${string}`
|
|
489
|
-
| 'annotation.add'
|
|
490
|
-
| 'annotation.remove'
|
|
491
|
-
| 'annotation.toggle'
|
|
492
|
-
| 'block.set'
|
|
493
|
-
| 'block.unset'
|
|
494
|
-
| 'blur'
|
|
495
|
-
| 'data transfer.set'
|
|
496
|
-
| 'decorator.add'
|
|
497
|
-
| 'decorator.remove'
|
|
498
|
-
| 'decorator.toggle'
|
|
499
|
-
| 'delete.backward'
|
|
500
|
-
| 'delete.block'
|
|
501
|
-
| 'delete.forward'
|
|
502
|
-
| 'delete.text'
|
|
503
|
-
| 'history.redo'
|
|
504
|
-
| 'history.undo'
|
|
505
|
-
| 'insert.blocks'
|
|
506
|
-
| 'insert.block object'
|
|
507
|
-
| 'insert.inline object'
|
|
508
|
-
| 'insert.break'
|
|
509
|
-
| 'insert.soft break'
|
|
510
|
-
| 'insert.block'
|
|
511
|
-
| 'insert.span'
|
|
512
|
-
| 'insert.text'
|
|
513
|
-
| 'insert.text block'
|
|
514
|
-
| 'list item.add'
|
|
515
|
-
| 'list item.remove'
|
|
516
|
-
| 'list item.toggle'
|
|
517
|
-
| 'move.block'
|
|
518
|
-
| 'move.block down'
|
|
519
|
-
| 'move.block up'
|
|
520
|
-
| 'select.previous block'
|
|
521
|
-
| 'select.next block'
|
|
522
|
-
| 'style.add'
|
|
523
|
-
| 'style.remove'
|
|
524
|
-
| 'style.toggle'
|
|
525
|
-
| 'key.down'
|
|
526
|
-
| 'key.up'
|
|
527
|
-
| 'paste'
|
|
528
|
-
>
|
|
372
|
+
BehaviorEvent_2
|
|
529
373
|
>[]
|
|
530
374
|
|
|
531
375
|
/**
|
|
@@ -583,62 +427,10 @@ export declare function createLinkBehaviors(
|
|
|
583
427
|
| 'style.toggle'
|
|
584
428
|
| 'key.down'
|
|
585
429
|
| 'key.up'
|
|
586
|
-
| 'paste'
|
|
430
|
+
| 'paste'
|
|
431
|
+
| '*',
|
|
587
432
|
true,
|
|
588
|
-
|
|
589
|
-
BehaviorEvent_2,
|
|
590
|
-
'type',
|
|
591
|
-
| 'focus'
|
|
592
|
-
| 'delete'
|
|
593
|
-
| 'select'
|
|
594
|
-
| 'serialize'
|
|
595
|
-
| 'deserialize'
|
|
596
|
-
| 'serialization.failure'
|
|
597
|
-
| 'serialization.success'
|
|
598
|
-
| 'deserialization.failure'
|
|
599
|
-
| 'deserialization.success'
|
|
600
|
-
| 'copy'
|
|
601
|
-
| `custom.${string}`
|
|
602
|
-
| 'annotation.add'
|
|
603
|
-
| 'annotation.remove'
|
|
604
|
-
| 'annotation.toggle'
|
|
605
|
-
| 'block.set'
|
|
606
|
-
| 'block.unset'
|
|
607
|
-
| 'blur'
|
|
608
|
-
| 'data transfer.set'
|
|
609
|
-
| 'decorator.add'
|
|
610
|
-
| 'decorator.remove'
|
|
611
|
-
| 'decorator.toggle'
|
|
612
|
-
| 'delete.backward'
|
|
613
|
-
| 'delete.block'
|
|
614
|
-
| 'delete.forward'
|
|
615
|
-
| 'delete.text'
|
|
616
|
-
| 'history.redo'
|
|
617
|
-
| 'history.undo'
|
|
618
|
-
| 'insert.blocks'
|
|
619
|
-
| 'insert.block object'
|
|
620
|
-
| 'insert.inline object'
|
|
621
|
-
| 'insert.break'
|
|
622
|
-
| 'insert.soft break'
|
|
623
|
-
| 'insert.block'
|
|
624
|
-
| 'insert.span'
|
|
625
|
-
| 'insert.text'
|
|
626
|
-
| 'insert.text block'
|
|
627
|
-
| 'list item.add'
|
|
628
|
-
| 'list item.remove'
|
|
629
|
-
| 'list item.toggle'
|
|
630
|
-
| 'move.block'
|
|
631
|
-
| 'move.block down'
|
|
632
|
-
| 'move.block up'
|
|
633
|
-
| 'select.previous block'
|
|
634
|
-
| 'select.next block'
|
|
635
|
-
| 'style.add'
|
|
636
|
-
| 'style.remove'
|
|
637
|
-
| 'style.toggle'
|
|
638
|
-
| 'key.down'
|
|
639
|
-
| 'key.up'
|
|
640
|
-
| 'paste'
|
|
641
|
-
>
|
|
433
|
+
BehaviorEvent_2
|
|
642
434
|
>[]
|
|
643
435
|
|
|
644
436
|
/**
|
|
@@ -738,62 +530,10 @@ export declare function createMarkdownBehaviors(
|
|
|
738
530
|
| 'style.toggle'
|
|
739
531
|
| 'key.down'
|
|
740
532
|
| 'key.up'
|
|
741
|
-
| 'paste'
|
|
533
|
+
| 'paste'
|
|
534
|
+
| '*',
|
|
742
535
|
true,
|
|
743
|
-
|
|
744
|
-
BehaviorEvent_2,
|
|
745
|
-
'type',
|
|
746
|
-
| 'focus'
|
|
747
|
-
| 'delete'
|
|
748
|
-
| 'select'
|
|
749
|
-
| 'serialize'
|
|
750
|
-
| 'deserialize'
|
|
751
|
-
| 'serialization.failure'
|
|
752
|
-
| 'serialization.success'
|
|
753
|
-
| 'deserialization.failure'
|
|
754
|
-
| 'deserialization.success'
|
|
755
|
-
| 'copy'
|
|
756
|
-
| `custom.${string}`
|
|
757
|
-
| 'annotation.add'
|
|
758
|
-
| 'annotation.remove'
|
|
759
|
-
| 'annotation.toggle'
|
|
760
|
-
| 'block.set'
|
|
761
|
-
| 'block.unset'
|
|
762
|
-
| 'blur'
|
|
763
|
-
| 'data transfer.set'
|
|
764
|
-
| 'decorator.add'
|
|
765
|
-
| 'decorator.remove'
|
|
766
|
-
| 'decorator.toggle'
|
|
767
|
-
| 'delete.backward'
|
|
768
|
-
| 'delete.block'
|
|
769
|
-
| 'delete.forward'
|
|
770
|
-
| 'delete.text'
|
|
771
|
-
| 'history.redo'
|
|
772
|
-
| 'history.undo'
|
|
773
|
-
| 'insert.blocks'
|
|
774
|
-
| 'insert.block object'
|
|
775
|
-
| 'insert.inline object'
|
|
776
|
-
| 'insert.break'
|
|
777
|
-
| 'insert.soft break'
|
|
778
|
-
| 'insert.block'
|
|
779
|
-
| 'insert.span'
|
|
780
|
-
| 'insert.text'
|
|
781
|
-
| 'insert.text block'
|
|
782
|
-
| 'list item.add'
|
|
783
|
-
| 'list item.remove'
|
|
784
|
-
| 'list item.toggle'
|
|
785
|
-
| 'move.block'
|
|
786
|
-
| 'move.block down'
|
|
787
|
-
| 'move.block up'
|
|
788
|
-
| 'select.previous block'
|
|
789
|
-
| 'select.next block'
|
|
790
|
-
| 'style.add'
|
|
791
|
-
| 'style.remove'
|
|
792
|
-
| 'style.toggle'
|
|
793
|
-
| 'key.down'
|
|
794
|
-
| 'key.up'
|
|
795
|
-
| 'paste'
|
|
796
|
-
>
|
|
536
|
+
BehaviorEvent_2
|
|
797
537
|
>[]
|
|
798
538
|
|
|
799
539
|
/**
|
|
@@ -836,7 +576,9 @@ export declare function defineBehavior<
|
|
|
836
576
|
TGuardResponse,
|
|
837
577
|
TBehaviorEventType extends `custom.${infer TType}`
|
|
838
578
|
? CustomBehaviorEvent<TPayload, TType>
|
|
839
|
-
:
|
|
579
|
+
: TBehaviorEventType extends '*'
|
|
580
|
+
? OmitFromUnion<BehaviorEvent, 'type', '*'>
|
|
581
|
+
: PickFromUnion<BehaviorEvent, 'type', TBehaviorEventType>
|
|
840
582
|
>,
|
|
841
583
|
): Behavior
|
|
842
584
|
|
|
@@ -966,7 +708,7 @@ declare const editorMachine: StateMachine<
|
|
|
966
708
|
behaviors: Set<Behavior>
|
|
967
709
|
converters: Set<Converter>
|
|
968
710
|
keyGenerator: () => string
|
|
969
|
-
pendingEvents: Array<
|
|
711
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
970
712
|
schema: EditorSchema
|
|
971
713
|
initialReadOnly: boolean
|
|
972
714
|
maxBlocks: number | undefined
|
|
@@ -1196,7 +938,7 @@ declare const editorMachine: StateMachine<
|
|
|
1196
938
|
} & {
|
|
1197
939
|
dataTransfer: DataTransfer
|
|
1198
940
|
})
|
|
1199
|
-
|
|
|
941
|
+
| InternalPatchEvent
|
|
1200
942
|
| MutationEvent
|
|
1201
943
|
| {
|
|
1202
944
|
type: 'normalizing'
|
|
@@ -1631,6 +1373,7 @@ declare const editorMachine: StateMachine<
|
|
|
1631
1373
|
dataTransfer: DataTransfer
|
|
1632
1374
|
})
|
|
1633
1375
|
| PatchEvent
|
|
1376
|
+
| InternalPatchEvent
|
|
1634
1377
|
| MutationEvent
|
|
1635
1378
|
| PatchesEvent
|
|
1636
1379
|
| {
|
|
@@ -1723,7 +1466,7 @@ declare const editorMachine: StateMachine<
|
|
|
1723
1466
|
behaviors: Set<Behavior>
|
|
1724
1467
|
converters: Set<Converter>
|
|
1725
1468
|
keyGenerator: () => string
|
|
1726
|
-
pendingEvents: Array<
|
|
1469
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1727
1470
|
schema: EditorSchema
|
|
1728
1471
|
initialReadOnly: boolean
|
|
1729
1472
|
maxBlocks: number | undefined
|
|
@@ -1953,7 +1696,7 @@ declare const editorMachine: StateMachine<
|
|
|
1953
1696
|
} & {
|
|
1954
1697
|
dataTransfer: DataTransfer
|
|
1955
1698
|
})
|
|
1956
|
-
|
|
|
1699
|
+
| InternalPatchEvent
|
|
1957
1700
|
| MutationEvent
|
|
1958
1701
|
| {
|
|
1959
1702
|
type: 'normalizing'
|
|
@@ -2310,7 +2053,7 @@ declare const editorMachine: StateMachine<
|
|
|
2310
2053
|
} & {
|
|
2311
2054
|
dataTransfer: DataTransfer
|
|
2312
2055
|
})
|
|
2313
|
-
|
|
|
2056
|
+
| InternalPatchEvent
|
|
2314
2057
|
| MutationEvent
|
|
2315
2058
|
| {
|
|
2316
2059
|
type: 'normalizing'
|
|
@@ -2457,7 +2200,7 @@ declare const editorMachine: StateMachine<
|
|
|
2457
2200
|
behaviors: Set<Behavior>
|
|
2458
2201
|
converters: Set<Converter>
|
|
2459
2202
|
keyGenerator: () => string
|
|
2460
|
-
pendingEvents: Array<
|
|
2203
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2461
2204
|
schema: EditorSchema
|
|
2462
2205
|
initialReadOnly: boolean
|
|
2463
2206
|
maxBlocks: number | undefined
|
|
@@ -2691,7 +2434,7 @@ declare const editorMachine: StateMachine<
|
|
|
2691
2434
|
} & {
|
|
2692
2435
|
dataTransfer: DataTransfer
|
|
2693
2436
|
})
|
|
2694
|
-
|
|
|
2437
|
+
| InternalPatchEvent
|
|
2695
2438
|
| MutationEvent
|
|
2696
2439
|
| {
|
|
2697
2440
|
type: 'normalizing'
|
|
@@ -3047,6 +2790,7 @@ declare const editorMachine: StateMachine<
|
|
|
3047
2790
|
dataTransfer: DataTransfer
|
|
3048
2791
|
})
|
|
3049
2792
|
| PatchEvent
|
|
2793
|
+
| InternalPatchEvent
|
|
3050
2794
|
| MutationEvent
|
|
3051
2795
|
| PatchesEvent
|
|
3052
2796
|
| {
|
|
@@ -3104,7 +2848,7 @@ declare const editorMachine: StateMachine<
|
|
|
3104
2848
|
behaviors: Set<Behavior>
|
|
3105
2849
|
converters: Set<Converter>
|
|
3106
2850
|
keyGenerator: () => string
|
|
3107
|
-
pendingEvents: Array<
|
|
2851
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3108
2852
|
schema: EditorSchema
|
|
3109
2853
|
initialReadOnly: boolean
|
|
3110
2854
|
maxBlocks: number | undefined
|
|
@@ -3337,7 +3081,7 @@ declare const editorMachine: StateMachine<
|
|
|
3337
3081
|
} & {
|
|
3338
3082
|
dataTransfer: DataTransfer
|
|
3339
3083
|
})
|
|
3340
|
-
|
|
|
3084
|
+
| InternalPatchEvent
|
|
3341
3085
|
| MutationEvent
|
|
3342
3086
|
| {
|
|
3343
3087
|
type: 'normalizing'
|
|
@@ -3693,6 +3437,7 @@ declare const editorMachine: StateMachine<
|
|
|
3693
3437
|
dataTransfer: DataTransfer
|
|
3694
3438
|
})
|
|
3695
3439
|
| PatchEvent
|
|
3440
|
+
| InternalPatchEvent
|
|
3696
3441
|
| MutationEvent
|
|
3697
3442
|
| PatchesEvent
|
|
3698
3443
|
| {
|
|
@@ -3750,7 +3495,7 @@ declare const editorMachine: StateMachine<
|
|
|
3750
3495
|
behaviors: Set<Behavior>
|
|
3751
3496
|
converters: Set<Converter>
|
|
3752
3497
|
keyGenerator: () => string
|
|
3753
|
-
pendingEvents: Array<
|
|
3498
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3754
3499
|
schema: EditorSchema
|
|
3755
3500
|
initialReadOnly: boolean
|
|
3756
3501
|
maxBlocks: number | undefined
|
|
@@ -3986,7 +3731,7 @@ declare const editorMachine: StateMachine<
|
|
|
3986
3731
|
} & {
|
|
3987
3732
|
dataTransfer: DataTransfer
|
|
3988
3733
|
})
|
|
3989
|
-
|
|
|
3734
|
+
| InternalPatchEvent
|
|
3990
3735
|
| MutationEvent
|
|
3991
3736
|
| {
|
|
3992
3737
|
type: 'normalizing'
|
|
@@ -4342,6 +4087,7 @@ declare const editorMachine: StateMachine<
|
|
|
4342
4087
|
dataTransfer: DataTransfer
|
|
4343
4088
|
})
|
|
4344
4089
|
| PatchEvent
|
|
4090
|
+
| InternalPatchEvent
|
|
4345
4091
|
| MutationEvent
|
|
4346
4092
|
| PatchesEvent
|
|
4347
4093
|
| {
|
|
@@ -4399,7 +4145,7 @@ declare const editorMachine: StateMachine<
|
|
|
4399
4145
|
behaviors: Set<Behavior>
|
|
4400
4146
|
converters: Set<Converter>
|
|
4401
4147
|
keyGenerator: () => string
|
|
4402
|
-
pendingEvents: Array<
|
|
4148
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4403
4149
|
schema: EditorSchema
|
|
4404
4150
|
initialReadOnly: boolean
|
|
4405
4151
|
maxBlocks: number | undefined
|
|
@@ -4634,7 +4380,7 @@ declare const editorMachine: StateMachine<
|
|
|
4634
4380
|
} & {
|
|
4635
4381
|
dataTransfer: DataTransfer
|
|
4636
4382
|
})
|
|
4637
|
-
|
|
|
4383
|
+
| InternalPatchEvent
|
|
4638
4384
|
| MutationEvent
|
|
4639
4385
|
| {
|
|
4640
4386
|
type: 'normalizing'
|
|
@@ -4990,6 +4736,7 @@ declare const editorMachine: StateMachine<
|
|
|
4990
4736
|
dataTransfer: DataTransfer
|
|
4991
4737
|
})
|
|
4992
4738
|
| PatchEvent
|
|
4739
|
+
| InternalPatchEvent
|
|
4993
4740
|
| MutationEvent
|
|
4994
4741
|
| PatchesEvent
|
|
4995
4742
|
| {
|
|
@@ -5047,7 +4794,7 @@ declare const editorMachine: StateMachine<
|
|
|
5047
4794
|
behaviors: Set<Behavior>
|
|
5048
4795
|
converters: Set<Converter>
|
|
5049
4796
|
keyGenerator: () => string
|
|
5050
|
-
pendingEvents: Array<
|
|
4797
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
5051
4798
|
schema: EditorSchema
|
|
5052
4799
|
initialReadOnly: boolean
|
|
5053
4800
|
maxBlocks: number | undefined
|
|
@@ -5281,7 +5028,7 @@ declare const editorMachine: StateMachine<
|
|
|
5281
5028
|
} & {
|
|
5282
5029
|
dataTransfer: DataTransfer
|
|
5283
5030
|
})
|
|
5284
|
-
|
|
|
5031
|
+
| InternalPatchEvent
|
|
5285
5032
|
| MutationEvent
|
|
5286
5033
|
| {
|
|
5287
5034
|
type: 'normalizing'
|
|
@@ -5637,6 +5384,7 @@ declare const editorMachine: StateMachine<
|
|
|
5637
5384
|
dataTransfer: DataTransfer
|
|
5638
5385
|
})
|
|
5639
5386
|
| PatchEvent
|
|
5387
|
+
| InternalPatchEvent
|
|
5640
5388
|
| MutationEvent
|
|
5641
5389
|
| PatchesEvent
|
|
5642
5390
|
| {
|
|
@@ -5695,7 +5443,7 @@ declare const editorMachine: StateMachine<
|
|
|
5695
5443
|
behaviors: Set<Behavior>
|
|
5696
5444
|
converters: Set<Converter>
|
|
5697
5445
|
keyGenerator: () => string
|
|
5698
|
-
pendingEvents: Array<
|
|
5446
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
5699
5447
|
schema: EditorSchema
|
|
5700
5448
|
initialReadOnly: boolean
|
|
5701
5449
|
maxBlocks: number | undefined
|
|
@@ -5929,7 +5677,7 @@ declare const editorMachine: StateMachine<
|
|
|
5929
5677
|
} & {
|
|
5930
5678
|
dataTransfer: DataTransfer
|
|
5931
5679
|
})
|
|
5932
|
-
|
|
|
5680
|
+
| InternalPatchEvent
|
|
5933
5681
|
| MutationEvent
|
|
5934
5682
|
| {
|
|
5935
5683
|
type: 'normalizing'
|
|
@@ -6068,7 +5816,7 @@ declare const editorMachine: StateMachine<
|
|
|
6068
5816
|
behaviors: Set<Behavior>
|
|
6069
5817
|
converters: Set<Converter>
|
|
6070
5818
|
keyGenerator: () => string
|
|
6071
|
-
pendingEvents: Array<
|
|
5819
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
6072
5820
|
schema: EditorSchema
|
|
6073
5821
|
initialReadOnly: boolean
|
|
6074
5822
|
maxBlocks: number | undefined
|
|
@@ -6302,7 +6050,7 @@ declare const editorMachine: StateMachine<
|
|
|
6302
6050
|
} & {
|
|
6303
6051
|
dataTransfer: DataTransfer
|
|
6304
6052
|
})
|
|
6305
|
-
|
|
|
6053
|
+
| InternalPatchEvent
|
|
6306
6054
|
| MutationEvent
|
|
6307
6055
|
| {
|
|
6308
6056
|
type: 'normalizing'
|
|
@@ -6658,6 +6406,7 @@ declare const editorMachine: StateMachine<
|
|
|
6658
6406
|
dataTransfer: DataTransfer
|
|
6659
6407
|
})
|
|
6660
6408
|
| PatchEvent
|
|
6409
|
+
| InternalPatchEvent
|
|
6661
6410
|
| MutationEvent
|
|
6662
6411
|
| PatchesEvent
|
|
6663
6412
|
| {
|
|
@@ -6716,7 +6465,7 @@ declare const editorMachine: StateMachine<
|
|
|
6716
6465
|
behaviors: Set<Behavior>
|
|
6717
6466
|
converters: Set<Converter>
|
|
6718
6467
|
keyGenerator: () => string
|
|
6719
|
-
pendingEvents: Array<
|
|
6468
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
6720
6469
|
schema: EditorSchema
|
|
6721
6470
|
initialReadOnly: boolean
|
|
6722
6471
|
maxBlocks: number | undefined
|
|
@@ -6950,7 +6699,7 @@ declare const editorMachine: StateMachine<
|
|
|
6950
6699
|
} & {
|
|
6951
6700
|
dataTransfer: DataTransfer
|
|
6952
6701
|
})
|
|
6953
|
-
|
|
|
6702
|
+
| InternalPatchEvent
|
|
6954
6703
|
| MutationEvent
|
|
6955
6704
|
| {
|
|
6956
6705
|
type: 'normalizing'
|
|
@@ -7306,6 +7055,7 @@ declare const editorMachine: StateMachine<
|
|
|
7306
7055
|
dataTransfer: DataTransfer
|
|
7307
7056
|
})
|
|
7308
7057
|
| PatchEvent
|
|
7058
|
+
| InternalPatchEvent
|
|
7309
7059
|
| MutationEvent
|
|
7310
7060
|
| PatchesEvent
|
|
7311
7061
|
| {
|
|
@@ -7363,7 +7113,7 @@ declare const editorMachine: StateMachine<
|
|
|
7363
7113
|
behaviors: Set<Behavior>
|
|
7364
7114
|
converters: Set<Converter>
|
|
7365
7115
|
keyGenerator: () => string
|
|
7366
|
-
pendingEvents: Array<
|
|
7116
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
7367
7117
|
schema: EditorSchema
|
|
7368
7118
|
initialReadOnly: boolean
|
|
7369
7119
|
maxBlocks: number | undefined
|
|
@@ -7596,7 +7346,7 @@ declare const editorMachine: StateMachine<
|
|
|
7596
7346
|
} & {
|
|
7597
7347
|
dataTransfer: DataTransfer
|
|
7598
7348
|
})
|
|
7599
|
-
|
|
|
7349
|
+
| InternalPatchEvent
|
|
7600
7350
|
| MutationEvent
|
|
7601
7351
|
| {
|
|
7602
7352
|
type: 'normalizing'
|
|
@@ -7952,6 +7702,7 @@ declare const editorMachine: StateMachine<
|
|
|
7952
7702
|
dataTransfer: DataTransfer
|
|
7953
7703
|
})
|
|
7954
7704
|
| PatchEvent
|
|
7705
|
+
| InternalPatchEvent
|
|
7955
7706
|
| MutationEvent
|
|
7956
7707
|
| PatchesEvent
|
|
7957
7708
|
| {
|
|
@@ -8009,7 +7760,7 @@ declare const editorMachine: StateMachine<
|
|
|
8009
7760
|
behaviors: Set<Behavior>
|
|
8010
7761
|
converters: Set<Converter>
|
|
8011
7762
|
keyGenerator: () => string
|
|
8012
|
-
pendingEvents: Array<
|
|
7763
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
8013
7764
|
schema: EditorSchema
|
|
8014
7765
|
initialReadOnly: boolean
|
|
8015
7766
|
maxBlocks: number | undefined
|
|
@@ -8243,7 +7994,7 @@ declare const editorMachine: StateMachine<
|
|
|
8243
7994
|
} & {
|
|
8244
7995
|
dataTransfer: DataTransfer
|
|
8245
7996
|
})
|
|
8246
|
-
|
|
|
7997
|
+
| InternalPatchEvent
|
|
8247
7998
|
| MutationEvent
|
|
8248
7999
|
| {
|
|
8249
8000
|
type: 'normalizing'
|
|
@@ -8599,6 +8350,7 @@ declare const editorMachine: StateMachine<
|
|
|
8599
8350
|
dataTransfer: DataTransfer
|
|
8600
8351
|
})
|
|
8601
8352
|
| PatchEvent
|
|
8353
|
+
| InternalPatchEvent
|
|
8602
8354
|
| MutationEvent
|
|
8603
8355
|
| PatchesEvent
|
|
8604
8356
|
| {
|
|
@@ -8662,7 +8414,7 @@ declare const editorMachine: StateMachine<
|
|
|
8662
8414
|
behaviors: Set<Behavior>
|
|
8663
8415
|
converters: Set<Converter>
|
|
8664
8416
|
keyGenerator: () => string
|
|
8665
|
-
pendingEvents: Array<
|
|
8417
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
8666
8418
|
schema: EditorSchema
|
|
8667
8419
|
initialReadOnly: boolean
|
|
8668
8420
|
maxBlocks: number | undefined
|
|
@@ -8893,7 +8645,7 @@ declare const editorMachine: StateMachine<
|
|
|
8893
8645
|
} & {
|
|
8894
8646
|
dataTransfer: DataTransfer
|
|
8895
8647
|
})
|
|
8896
|
-
|
|
|
8648
|
+
| InternalPatchEvent
|
|
8897
8649
|
| MutationEvent
|
|
8898
8650
|
| {
|
|
8899
8651
|
type: 'normalizing'
|
|
@@ -9249,6 +9001,7 @@ declare const editorMachine: StateMachine<
|
|
|
9249
9001
|
dataTransfer: DataTransfer
|
|
9250
9002
|
})
|
|
9251
9003
|
| PatchEvent
|
|
9004
|
+
| InternalPatchEvent
|
|
9252
9005
|
| MutationEvent
|
|
9253
9006
|
| PatchesEvent
|
|
9254
9007
|
| {
|
|
@@ -9309,7 +9062,7 @@ declare const editorMachine: StateMachine<
|
|
|
9309
9062
|
behaviors: Set<Behavior>
|
|
9310
9063
|
converters: Set<Converter>
|
|
9311
9064
|
keyGenerator: () => string
|
|
9312
|
-
pendingEvents: Array<
|
|
9065
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
9313
9066
|
schema: EditorSchema
|
|
9314
9067
|
initialReadOnly: boolean
|
|
9315
9068
|
maxBlocks: number | undefined
|
|
@@ -9543,7 +9296,7 @@ declare const editorMachine: StateMachine<
|
|
|
9543
9296
|
} & {
|
|
9544
9297
|
dataTransfer: DataTransfer
|
|
9545
9298
|
})
|
|
9546
|
-
|
|
|
9299
|
+
| InternalPatchEvent
|
|
9547
9300
|
| MutationEvent
|
|
9548
9301
|
| {
|
|
9549
9302
|
type: 'normalizing'
|
|
@@ -9687,7 +9440,7 @@ declare const editorMachine: StateMachine<
|
|
|
9687
9440
|
behaviors: Set<Behavior>
|
|
9688
9441
|
converters: Set<Converter>
|
|
9689
9442
|
keyGenerator: () => string
|
|
9690
|
-
pendingEvents: Array<
|
|
9443
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
9691
9444
|
schema: EditorSchema
|
|
9692
9445
|
initialReadOnly: boolean
|
|
9693
9446
|
maxBlocks: number | undefined
|
|
@@ -9921,7 +9674,7 @@ declare const editorMachine: StateMachine<
|
|
|
9921
9674
|
} & {
|
|
9922
9675
|
dataTransfer: DataTransfer
|
|
9923
9676
|
})
|
|
9924
|
-
|
|
|
9677
|
+
| InternalPatchEvent
|
|
9925
9678
|
| MutationEvent
|
|
9926
9679
|
| {
|
|
9927
9680
|
type: 'normalizing'
|
|
@@ -10062,7 +9815,7 @@ declare const editorMachine: StateMachine<
|
|
|
10062
9815
|
behaviors: Set<Behavior>
|
|
10063
9816
|
converters: Set<Converter>
|
|
10064
9817
|
keyGenerator: () => string
|
|
10065
|
-
pendingEvents: Array<
|
|
9818
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
10066
9819
|
schema: EditorSchema
|
|
10067
9820
|
initialReadOnly: boolean
|
|
10068
9821
|
maxBlocks: number | undefined
|
|
@@ -10296,7 +10049,7 @@ declare const editorMachine: StateMachine<
|
|
|
10296
10049
|
} & {
|
|
10297
10050
|
dataTransfer: DataTransfer
|
|
10298
10051
|
})
|
|
10299
|
-
|
|
|
10052
|
+
| InternalPatchEvent
|
|
10300
10053
|
| MutationEvent
|
|
10301
10054
|
| {
|
|
10302
10055
|
type: 'normalizing'
|
|
@@ -10449,7 +10202,7 @@ declare const editorMachine: StateMachine<
|
|
|
10449
10202
|
behaviors: Set<Behavior>
|
|
10450
10203
|
converters: Set<Converter>
|
|
10451
10204
|
keyGenerator: () => string
|
|
10452
|
-
pendingEvents: Array<
|
|
10205
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
10453
10206
|
schema: EditorSchema
|
|
10454
10207
|
initialReadOnly: boolean
|
|
10455
10208
|
maxBlocks: number | undefined
|
|
@@ -10481,7 +10234,9 @@ declare const editorMachine: StateMachine<
|
|
|
10481
10234
|
behaviors: Set<Behavior>
|
|
10482
10235
|
converters: Set<Converter>
|
|
10483
10236
|
keyGenerator: () => string
|
|
10484
|
-
pendingEvents: Array<
|
|
10237
|
+
pendingEvents: Array<
|
|
10238
|
+
InternalPatchEvent | MutationEvent
|
|
10239
|
+
>
|
|
10485
10240
|
schema: EditorSchema
|
|
10486
10241
|
initialReadOnly: boolean
|
|
10487
10242
|
maxBlocks: number | undefined
|
|
@@ -10509,7 +10264,7 @@ declare const editorMachine: StateMachine<
|
|
|
10509
10264
|
behaviors: Set<Behavior>
|
|
10510
10265
|
converters: Set<Converter>
|
|
10511
10266
|
keyGenerator: () => string
|
|
10512
|
-
pendingEvents: Array<
|
|
10267
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
10513
10268
|
schema: EditorSchema
|
|
10514
10269
|
initialReadOnly: boolean
|
|
10515
10270
|
maxBlocks: number | undefined
|
|
@@ -10538,7 +10293,7 @@ declare const editorMachine: StateMachine<
|
|
|
10538
10293
|
behaviors: Set<Behavior>
|
|
10539
10294
|
converters: Set<Converter>
|
|
10540
10295
|
keyGenerator: () => string
|
|
10541
|
-
pendingEvents: Array<
|
|
10296
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
10542
10297
|
schema: EditorSchema
|
|
10543
10298
|
initialReadOnly: boolean
|
|
10544
10299
|
maxBlocks: number | undefined
|
|
@@ -10565,7 +10320,7 @@ declare const editorMachine: StateMachine<
|
|
|
10565
10320
|
behaviors: Set<Behavior>
|
|
10566
10321
|
converters: Set<Converter>
|
|
10567
10322
|
keyGenerator: () => string
|
|
10568
|
-
pendingEvents: Array<
|
|
10323
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
10569
10324
|
schema: EditorSchema
|
|
10570
10325
|
initialReadOnly: boolean
|
|
10571
10326
|
maxBlocks: number | undefined
|
|
@@ -10819,7 +10574,7 @@ declare const editorMachine: StateMachine<
|
|
|
10819
10574
|
} & {
|
|
10820
10575
|
dataTransfer: DataTransfer
|
|
10821
10576
|
})
|
|
10822
|
-
|
|
|
10577
|
+
| InternalPatchEvent
|
|
10823
10578
|
| MutationEvent
|
|
10824
10579
|
| {
|
|
10825
10580
|
type: 'normalizing'
|
|
@@ -11177,6 +10932,7 @@ declare const editorMachine: StateMachine<
|
|
|
11177
10932
|
dataTransfer: DataTransfer
|
|
11178
10933
|
})
|
|
11179
10934
|
| PatchEvent
|
|
10935
|
+
| InternalPatchEvent
|
|
11180
10936
|
| MutationEvent
|
|
11181
10937
|
| PatchesEvent
|
|
11182
10938
|
| {
|
|
@@ -11234,7 +10990,7 @@ declare const editorMachine: StateMachine<
|
|
|
11234
10990
|
behaviors: Set<Behavior>
|
|
11235
10991
|
converters: Set<Converter>
|
|
11236
10992
|
keyGenerator: () => string
|
|
11237
|
-
pendingEvents: Array<
|
|
10993
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
11238
10994
|
schema: EditorSchema
|
|
11239
10995
|
initialReadOnly: boolean
|
|
11240
10996
|
maxBlocks: number | undefined
|
|
@@ -11474,7 +11230,7 @@ declare const editorMachine: StateMachine<
|
|
|
11474
11230
|
} & {
|
|
11475
11231
|
dataTransfer: DataTransfer
|
|
11476
11232
|
})
|
|
11477
|
-
|
|
|
11233
|
+
| InternalPatchEvent
|
|
11478
11234
|
| MutationEvent
|
|
11479
11235
|
| {
|
|
11480
11236
|
type: 'normalizing'
|
|
@@ -11832,6 +11588,7 @@ declare const editorMachine: StateMachine<
|
|
|
11832
11588
|
dataTransfer: DataTransfer
|
|
11833
11589
|
})
|
|
11834
11590
|
| PatchEvent
|
|
11591
|
+
| InternalPatchEvent
|
|
11835
11592
|
| MutationEvent
|
|
11836
11593
|
| PatchesEvent
|
|
11837
11594
|
| {
|
|
@@ -11889,7 +11646,7 @@ declare const editorMachine: StateMachine<
|
|
|
11889
11646
|
behaviors: Set<Behavior>
|
|
11890
11647
|
converters: Set<Converter>
|
|
11891
11648
|
keyGenerator: () => string
|
|
11892
|
-
pendingEvents: Array<
|
|
11649
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
11893
11650
|
schema: EditorSchema
|
|
11894
11651
|
initialReadOnly: boolean
|
|
11895
11652
|
maxBlocks: number | undefined
|
|
@@ -12122,7 +11879,7 @@ declare const editorMachine: StateMachine<
|
|
|
12122
11879
|
} & {
|
|
12123
11880
|
dataTransfer: DataTransfer
|
|
12124
11881
|
})
|
|
12125
|
-
|
|
|
11882
|
+
| InternalPatchEvent
|
|
12126
11883
|
| MutationEvent
|
|
12127
11884
|
| {
|
|
12128
11885
|
type: 'normalizing'
|
|
@@ -12480,6 +12237,7 @@ declare const editorMachine: StateMachine<
|
|
|
12480
12237
|
dataTransfer: DataTransfer
|
|
12481
12238
|
})
|
|
12482
12239
|
| PatchEvent
|
|
12240
|
+
| InternalPatchEvent
|
|
12483
12241
|
| MutationEvent
|
|
12484
12242
|
| PatchesEvent
|
|
12485
12243
|
| {
|
|
@@ -12537,7 +12295,7 @@ declare const editorMachine: StateMachine<
|
|
|
12537
12295
|
behaviors: Set<Behavior>
|
|
12538
12296
|
converters: Set<Converter>
|
|
12539
12297
|
keyGenerator: () => string
|
|
12540
|
-
pendingEvents: Array<
|
|
12298
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
12541
12299
|
schema: EditorSchema
|
|
12542
12300
|
initialReadOnly: boolean
|
|
12543
12301
|
maxBlocks: number | undefined
|
|
@@ -12770,7 +12528,7 @@ declare const editorMachine: StateMachine<
|
|
|
12770
12528
|
} & {
|
|
12771
12529
|
dataTransfer: DataTransfer
|
|
12772
12530
|
})
|
|
12773
|
-
|
|
|
12531
|
+
| InternalPatchEvent
|
|
12774
12532
|
| MutationEvent
|
|
12775
12533
|
| {
|
|
12776
12534
|
type: 'normalizing'
|
|
@@ -13128,6 +12886,7 @@ declare const editorMachine: StateMachine<
|
|
|
13128
12886
|
dataTransfer: DataTransfer
|
|
13129
12887
|
})
|
|
13130
12888
|
| PatchEvent
|
|
12889
|
+
| InternalPatchEvent
|
|
13131
12890
|
| MutationEvent
|
|
13132
12891
|
| PatchesEvent
|
|
13133
12892
|
| {
|
|
@@ -13185,7 +12944,7 @@ declare const editorMachine: StateMachine<
|
|
|
13185
12944
|
behaviors: Set<Behavior>
|
|
13186
12945
|
converters: Set<Converter>
|
|
13187
12946
|
keyGenerator: () => string
|
|
13188
|
-
pendingEvents: Array<
|
|
12947
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
13189
12948
|
schema: EditorSchema
|
|
13190
12949
|
initialReadOnly: boolean
|
|
13191
12950
|
maxBlocks: number | undefined
|
|
@@ -13431,7 +13190,7 @@ declare const editorMachine: StateMachine<
|
|
|
13431
13190
|
} & {
|
|
13432
13191
|
dataTransfer: DataTransfer
|
|
13433
13192
|
})
|
|
13434
|
-
|
|
|
13193
|
+
| InternalPatchEvent
|
|
13435
13194
|
| MutationEvent
|
|
13436
13195
|
| {
|
|
13437
13196
|
type: 'normalizing'
|
|
@@ -13789,6 +13548,7 @@ declare const editorMachine: StateMachine<
|
|
|
13789
13548
|
dataTransfer: DataTransfer
|
|
13790
13549
|
})
|
|
13791
13550
|
| PatchEvent
|
|
13551
|
+
| InternalPatchEvent
|
|
13792
13552
|
| MutationEvent
|
|
13793
13553
|
| PatchesEvent
|
|
13794
13554
|
| {
|
|
@@ -13846,7 +13606,7 @@ declare const editorMachine: StateMachine<
|
|
|
13846
13606
|
behaviors: Set<Behavior>
|
|
13847
13607
|
converters: Set<Converter>
|
|
13848
13608
|
keyGenerator: () => string
|
|
13849
|
-
pendingEvents: Array<
|
|
13609
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
13850
13610
|
schema: EditorSchema
|
|
13851
13611
|
initialReadOnly: boolean
|
|
13852
13612
|
maxBlocks: number | undefined
|
|
@@ -14093,7 +13853,7 @@ declare const editorMachine: StateMachine<
|
|
|
14093
13853
|
} & {
|
|
14094
13854
|
dataTransfer: DataTransfer
|
|
14095
13855
|
})
|
|
14096
|
-
|
|
|
13856
|
+
| InternalPatchEvent
|
|
14097
13857
|
| MutationEvent
|
|
14098
13858
|
| {
|
|
14099
13859
|
type: 'normalizing'
|
|
@@ -14451,6 +14211,7 @@ declare const editorMachine: StateMachine<
|
|
|
14451
14211
|
dataTransfer: DataTransfer
|
|
14452
14212
|
})
|
|
14453
14213
|
| PatchEvent
|
|
14214
|
+
| InternalPatchEvent
|
|
14454
14215
|
| MutationEvent
|
|
14455
14216
|
| PatchesEvent
|
|
14456
14217
|
| {
|
|
@@ -14508,7 +14269,7 @@ declare const editorMachine: StateMachine<
|
|
|
14508
14269
|
behaviors: Set<Behavior>
|
|
14509
14270
|
converters: Set<Converter>
|
|
14510
14271
|
keyGenerator: () => string
|
|
14511
|
-
pendingEvents: Array<
|
|
14272
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
14512
14273
|
schema: EditorSchema
|
|
14513
14274
|
initialReadOnly: boolean
|
|
14514
14275
|
maxBlocks: number | undefined
|
|
@@ -14741,7 +14502,7 @@ declare const editorMachine: StateMachine<
|
|
|
14741
14502
|
} & {
|
|
14742
14503
|
dataTransfer: DataTransfer
|
|
14743
14504
|
})
|
|
14744
|
-
|
|
|
14505
|
+
| InternalPatchEvent
|
|
14745
14506
|
| MutationEvent
|
|
14746
14507
|
| {
|
|
14747
14508
|
type: 'normalizing'
|
|
@@ -15099,6 +14860,7 @@ declare const editorMachine: StateMachine<
|
|
|
15099
14860
|
dataTransfer: DataTransfer
|
|
15100
14861
|
})
|
|
15101
14862
|
| PatchEvent
|
|
14863
|
+
| InternalPatchEvent
|
|
15102
14864
|
| MutationEvent
|
|
15103
14865
|
| PatchesEvent
|
|
15104
14866
|
| {
|
|
@@ -15156,7 +14918,7 @@ declare const editorMachine: StateMachine<
|
|
|
15156
14918
|
behaviors: Set<Behavior>
|
|
15157
14919
|
converters: Set<Converter>
|
|
15158
14920
|
keyGenerator: () => string
|
|
15159
|
-
pendingEvents: Array<
|
|
14921
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
15160
14922
|
schema: EditorSchema
|
|
15161
14923
|
initialReadOnly: boolean
|
|
15162
14924
|
maxBlocks: number | undefined
|
|
@@ -15392,7 +15154,7 @@ declare const editorMachine: StateMachine<
|
|
|
15392
15154
|
} & {
|
|
15393
15155
|
dataTransfer: DataTransfer
|
|
15394
15156
|
})
|
|
15395
|
-
|
|
|
15157
|
+
| InternalPatchEvent
|
|
15396
15158
|
| MutationEvent
|
|
15397
15159
|
| {
|
|
15398
15160
|
type: 'normalizing'
|
|
@@ -15750,6 +15512,7 @@ declare const editorMachine: StateMachine<
|
|
|
15750
15512
|
dataTransfer: DataTransfer
|
|
15751
15513
|
})
|
|
15752
15514
|
| PatchEvent
|
|
15515
|
+
| InternalPatchEvent
|
|
15753
15516
|
| MutationEvent
|
|
15754
15517
|
| PatchesEvent
|
|
15755
15518
|
| {
|
|
@@ -15807,7 +15570,7 @@ declare const editorMachine: StateMachine<
|
|
|
15807
15570
|
behaviors: Set<Behavior>
|
|
15808
15571
|
converters: Set<Converter>
|
|
15809
15572
|
keyGenerator: () => string
|
|
15810
|
-
pendingEvents: Array<
|
|
15573
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
15811
15574
|
schema: EditorSchema
|
|
15812
15575
|
initialReadOnly: boolean
|
|
15813
15576
|
maxBlocks: number | undefined
|
|
@@ -16094,7 +15857,7 @@ declare const editorMachine: StateMachine<
|
|
|
16094
15857
|
} & {
|
|
16095
15858
|
dataTransfer: DataTransfer
|
|
16096
15859
|
})
|
|
16097
|
-
|
|
|
15860
|
+
| InternalPatchEvent
|
|
16098
15861
|
| MutationEvent
|
|
16099
15862
|
| {
|
|
16100
15863
|
type: 'normalizing'
|
|
@@ -16452,6 +16215,7 @@ declare const editorMachine: StateMachine<
|
|
|
16452
16215
|
dataTransfer: DataTransfer
|
|
16453
16216
|
})
|
|
16454
16217
|
| PatchEvent
|
|
16218
|
+
| InternalPatchEvent
|
|
16455
16219
|
| MutationEvent
|
|
16456
16220
|
| PatchesEvent
|
|
16457
16221
|
| {
|
|
@@ -16509,7 +16273,7 @@ declare const editorMachine: StateMachine<
|
|
|
16509
16273
|
behaviors: Set<Behavior>
|
|
16510
16274
|
converters: Set<Converter>
|
|
16511
16275
|
keyGenerator: () => string
|
|
16512
|
-
pendingEvents: Array<
|
|
16276
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
16513
16277
|
schema: EditorSchema
|
|
16514
16278
|
initialReadOnly: boolean
|
|
16515
16279
|
maxBlocks: number | undefined
|
|
@@ -16751,7 +16515,7 @@ declare const editorMachine: StateMachine<
|
|
|
16751
16515
|
} & {
|
|
16752
16516
|
dataTransfer: DataTransfer
|
|
16753
16517
|
})
|
|
16754
|
-
|
|
|
16518
|
+
| InternalPatchEvent
|
|
16755
16519
|
| MutationEvent
|
|
16756
16520
|
| {
|
|
16757
16521
|
type: 'normalizing'
|
|
@@ -17109,6 +16873,7 @@ declare const editorMachine: StateMachine<
|
|
|
17109
16873
|
dataTransfer: DataTransfer
|
|
17110
16874
|
})
|
|
17111
16875
|
| PatchEvent
|
|
16876
|
+
| InternalPatchEvent
|
|
17112
16877
|
| MutationEvent
|
|
17113
16878
|
| PatchesEvent
|
|
17114
16879
|
| {
|
|
@@ -17166,7 +16931,7 @@ declare const editorMachine: StateMachine<
|
|
|
17166
16931
|
behaviors: Set<Behavior>
|
|
17167
16932
|
converters: Set<Converter>
|
|
17168
16933
|
keyGenerator: () => string
|
|
17169
|
-
pendingEvents: Array<
|
|
16934
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
17170
16935
|
schema: EditorSchema
|
|
17171
16936
|
initialReadOnly: boolean
|
|
17172
16937
|
maxBlocks: number | undefined
|
|
@@ -17409,7 +17174,7 @@ declare const editorMachine: StateMachine<
|
|
|
17409
17174
|
} & {
|
|
17410
17175
|
dataTransfer: DataTransfer
|
|
17411
17176
|
})
|
|
17412
|
-
|
|
|
17177
|
+
| InternalPatchEvent
|
|
17413
17178
|
| MutationEvent
|
|
17414
17179
|
| {
|
|
17415
17180
|
type: 'normalizing'
|
|
@@ -17767,6 +17532,7 @@ declare const editorMachine: StateMachine<
|
|
|
17767
17532
|
dataTransfer: DataTransfer
|
|
17768
17533
|
})
|
|
17769
17534
|
| PatchEvent
|
|
17535
|
+
| InternalPatchEvent
|
|
17770
17536
|
| MutationEvent
|
|
17771
17537
|
| PatchesEvent
|
|
17772
17538
|
| {
|
|
@@ -17824,7 +17590,7 @@ declare const editorMachine: StateMachine<
|
|
|
17824
17590
|
behaviors: Set<Behavior>
|
|
17825
17591
|
converters: Set<Converter>
|
|
17826
17592
|
keyGenerator: () => string
|
|
17827
|
-
pendingEvents: Array<
|
|
17593
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
17828
17594
|
schema: EditorSchema
|
|
17829
17595
|
initialReadOnly: boolean
|
|
17830
17596
|
maxBlocks: number | undefined
|
|
@@ -18058,7 +17824,7 @@ declare const editorMachine: StateMachine<
|
|
|
18058
17824
|
} & {
|
|
18059
17825
|
dataTransfer: DataTransfer
|
|
18060
17826
|
})
|
|
18061
|
-
|
|
|
17827
|
+
| InternalPatchEvent
|
|
18062
17828
|
| MutationEvent
|
|
18063
17829
|
| {
|
|
18064
17830
|
type: 'normalizing'
|
|
@@ -18416,6 +18182,7 @@ declare const editorMachine: StateMachine<
|
|
|
18416
18182
|
dataTransfer: DataTransfer
|
|
18417
18183
|
})
|
|
18418
18184
|
| PatchEvent
|
|
18185
|
+
| InternalPatchEvent
|
|
18419
18186
|
| MutationEvent
|
|
18420
18187
|
| PatchesEvent
|
|
18421
18188
|
| {
|
|
@@ -18473,7 +18240,7 @@ declare const editorMachine: StateMachine<
|
|
|
18473
18240
|
behaviors: Set<Behavior>
|
|
18474
18241
|
converters: Set<Converter>
|
|
18475
18242
|
keyGenerator: () => string
|
|
18476
|
-
pendingEvents: Array<
|
|
18243
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
18477
18244
|
schema: EditorSchema
|
|
18478
18245
|
initialReadOnly: boolean
|
|
18479
18246
|
maxBlocks: number | undefined
|
|
@@ -18709,7 +18476,7 @@ declare const editorMachine: StateMachine<
|
|
|
18709
18476
|
} & {
|
|
18710
18477
|
dataTransfer: DataTransfer
|
|
18711
18478
|
})
|
|
18712
|
-
|
|
|
18479
|
+
| InternalPatchEvent
|
|
18713
18480
|
| MutationEvent
|
|
18714
18481
|
| {
|
|
18715
18482
|
type: 'normalizing'
|
|
@@ -19067,6 +18834,7 @@ declare const editorMachine: StateMachine<
|
|
|
19067
18834
|
dataTransfer: DataTransfer
|
|
19068
18835
|
})
|
|
19069
18836
|
| PatchEvent
|
|
18837
|
+
| InternalPatchEvent
|
|
19070
18838
|
| MutationEvent
|
|
19071
18839
|
| PatchesEvent
|
|
19072
18840
|
| {
|
|
@@ -19124,7 +18892,7 @@ declare const editorMachine: StateMachine<
|
|
|
19124
18892
|
behaviors: Set<Behavior>
|
|
19125
18893
|
converters: Set<Converter>
|
|
19126
18894
|
keyGenerator: () => string
|
|
19127
|
-
pendingEvents: Array<
|
|
18895
|
+
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
19128
18896
|
schema: EditorSchema
|
|
19129
18897
|
initialReadOnly: boolean
|
|
19130
18898
|
maxBlocks: number | undefined
|
|
@@ -19366,7 +19134,7 @@ declare const editorMachine: StateMachine<
|
|
|
19366
19134
|
} & {
|
|
19367
19135
|
dataTransfer: DataTransfer
|
|
19368
19136
|
})
|
|
19369
|
-
|
|
|
19137
|
+
| InternalPatchEvent
|
|
19370
19138
|
| MutationEvent
|
|
19371
19139
|
| {
|
|
19372
19140
|
type: 'normalizing'
|
|
@@ -19724,6 +19492,7 @@ declare const editorMachine: StateMachine<
|
|
|
19724
19492
|
dataTransfer: DataTransfer
|
|
19725
19493
|
})
|
|
19726
19494
|
| PatchEvent
|
|
19495
|
+
| InternalPatchEvent
|
|
19727
19496
|
| MutationEvent
|
|
19728
19497
|
| PatchesEvent
|
|
19729
19498
|
| {
|
|
@@ -19819,7 +19588,7 @@ declare const editorMachine: StateMachine<
|
|
|
19819
19588
|
readonly 'setting up': {
|
|
19820
19589
|
readonly exit: readonly ['emit ready']
|
|
19821
19590
|
readonly on: {
|
|
19822
|
-
readonly 'patch': {
|
|
19591
|
+
readonly 'internal.patch': {
|
|
19823
19592
|
readonly actions: 'defer event'
|
|
19824
19593
|
}
|
|
19825
19594
|
readonly 'mutation': {
|
|
@@ -19835,14 +19604,14 @@ declare const editorMachine: StateMachine<
|
|
|
19835
19604
|
readonly states: {
|
|
19836
19605
|
readonly idle: {
|
|
19837
19606
|
readonly on: {
|
|
19838
|
-
readonly normalizing: {
|
|
19607
|
+
readonly 'normalizing': {
|
|
19839
19608
|
readonly target: 'normalizing'
|
|
19840
19609
|
}
|
|
19841
|
-
readonly patch: {
|
|
19610
|
+
readonly 'internal.patch': {
|
|
19842
19611
|
readonly actions: 'defer event'
|
|
19843
19612
|
readonly target: '#editor.setup.dirty'
|
|
19844
19613
|
}
|
|
19845
|
-
readonly mutation: {
|
|
19614
|
+
readonly 'mutation': {
|
|
19846
19615
|
readonly actions: 'defer event'
|
|
19847
19616
|
readonly target: '#editor.setup.dirty'
|
|
19848
19617
|
}
|
|
@@ -19853,7 +19622,7 @@ declare const editorMachine: StateMachine<
|
|
|
19853
19622
|
readonly 'done normalizing': {
|
|
19854
19623
|
readonly target: 'idle'
|
|
19855
19624
|
}
|
|
19856
|
-
readonly 'patch': {
|
|
19625
|
+
readonly 'internal.patch': {
|
|
19857
19626
|
readonly actions: 'defer event'
|
|
19858
19627
|
}
|
|
19859
19628
|
readonly 'mutation': {
|
|
@@ -19869,10 +19638,10 @@ declare const editorMachine: StateMachine<
|
|
|
19869
19638
|
'clear pending events',
|
|
19870
19639
|
]
|
|
19871
19640
|
readonly on: {
|
|
19872
|
-
readonly patch: {
|
|
19641
|
+
readonly 'internal.patch': {
|
|
19873
19642
|
readonly actions: 'emit patch event'
|
|
19874
19643
|
}
|
|
19875
|
-
readonly mutation: {
|
|
19644
|
+
readonly 'mutation': {
|
|
19876
19645
|
readonly actions: 'emit mutation event'
|
|
19877
19646
|
}
|
|
19878
19647
|
}
|
|
@@ -19945,6 +19714,11 @@ declare type HistoryItem = {
|
|
|
19945
19714
|
timestamp: Date
|
|
19946
19715
|
}
|
|
19947
19716
|
|
|
19717
|
+
declare type InternalPatchEvent = NamespaceEvent<PatchEvent, 'internal'> & {
|
|
19718
|
+
actionId?: string
|
|
19719
|
+
value: Array<PortableTextBlock>
|
|
19720
|
+
}
|
|
19721
|
+
|
|
19948
19722
|
/**
|
|
19949
19723
|
* The editor has invalid data in the value that can be resolved by the user
|
|
19950
19724
|
* @beta */
|
|
@@ -20019,6 +19793,19 @@ declare type MutationEvent = {
|
|
|
20019
19793
|
value: Array<PortableTextBlock> | undefined
|
|
20020
19794
|
}
|
|
20021
19795
|
|
|
19796
|
+
declare type NamespaceEvent<
|
|
19797
|
+
TEvent,
|
|
19798
|
+
TNamespace extends string,
|
|
19799
|
+
> = TEvent extends {
|
|
19800
|
+
type: infer TEventType
|
|
19801
|
+
}
|
|
19802
|
+
? {
|
|
19803
|
+
[K in keyof TEvent]: K extends 'type'
|
|
19804
|
+
? `${TNamespace}.${TEventType & string}`
|
|
19805
|
+
: TEvent[K]
|
|
19806
|
+
}
|
|
19807
|
+
: never
|
|
19808
|
+
|
|
20022
19809
|
/**
|
|
20023
19810
|
* @beta
|
|
20024
19811
|
*/
|
|
@@ -20055,6 +19842,15 @@ export declare type NativeBehaviorEvent =
|
|
|
20055
19842
|
dataTransfer: DataTransfer
|
|
20056
19843
|
}
|
|
20057
19844
|
|
|
19845
|
+
/**
|
|
19846
|
+
* @internal
|
|
19847
|
+
*/
|
|
19848
|
+
declare type OmitFromUnion<
|
|
19849
|
+
TUnion,
|
|
19850
|
+
TTagKey extends keyof TUnion,
|
|
19851
|
+
TOmittedTags extends TUnion[TTagKey],
|
|
19852
|
+
> = TUnion extends Record<TTagKey, TOmittedTags> ? never : TUnion
|
|
19853
|
+
|
|
20058
19854
|
/**
|
|
20059
19855
|
* @public
|
|
20060
19856
|
*/
|