@portabletext/editor 1.39.0 → 1.39.1

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 (43) hide show
  1. package/lib/_chunks-cjs/behavior.core.cjs +4 -1
  2. package/lib/_chunks-cjs/behavior.core.cjs.map +1 -1
  3. package/lib/_chunks-cjs/editor-provider.cjs +37 -52
  4. package/lib/_chunks-cjs/editor-provider.cjs.map +1 -1
  5. package/lib/_chunks-cjs/selector.get-text-before.cjs +0 -1
  6. package/lib/_chunks-cjs/selector.get-text-before.cjs.map +1 -1
  7. package/lib/_chunks-cjs/selector.is-at-the-start-of-block.cjs +0 -3
  8. package/lib/_chunks-cjs/selector.is-at-the-start-of-block.cjs.map +1 -1
  9. package/lib/_chunks-cjs/selector.is-overlapping-selection.cjs +0 -4
  10. package/lib/_chunks-cjs/selector.is-overlapping-selection.cjs.map +1 -1
  11. package/lib/_chunks-es/behavior.core.js +5 -2
  12. package/lib/_chunks-es/behavior.core.js.map +1 -1
  13. package/lib/_chunks-es/editor-provider.js +41 -56
  14. package/lib/_chunks-es/editor-provider.js.map +1 -1
  15. package/lib/_chunks-es/selector.get-text-before.js +1 -2
  16. package/lib/_chunks-es/selector.get-text-before.js.map +1 -1
  17. package/lib/_chunks-es/selector.is-at-the-start-of-block.js +1 -4
  18. package/lib/_chunks-es/selector.is-at-the-start-of-block.js.map +1 -1
  19. package/lib/_chunks-es/selector.is-overlapping-selection.js +1 -5
  20. package/lib/_chunks-es/selector.is-overlapping-selection.js.map +1 -1
  21. package/lib/behaviors/index.d.cts +1134 -801
  22. package/lib/behaviors/index.d.ts +1134 -801
  23. package/lib/index.cjs +0 -6
  24. package/lib/index.cjs.map +1 -1
  25. package/lib/index.d.cts +902 -627
  26. package/lib/index.d.ts +902 -627
  27. package/lib/index.js +0 -6
  28. package/lib/index.js.map +1 -1
  29. package/lib/plugins/index.cjs +0 -1
  30. package/lib/plugins/index.cjs.map +1 -1
  31. package/lib/plugins/index.d.cts +902 -627
  32. package/lib/plugins/index.d.ts +902 -627
  33. package/lib/plugins/index.js +1 -2
  34. package/lib/plugins/index.js.map +1 -1
  35. package/lib/selectors/index.d.cts +902 -627
  36. package/lib/selectors/index.d.ts +902 -627
  37. package/lib/utils/index.d.cts +902 -627
  38. package/lib/utils/index.d.ts +902 -627
  39. package/package.json +5 -5
  40. package/src/behaviors/behavior.default.ts +23 -4
  41. package/src/behaviors/behavior.types.ts +62 -26
  42. package/src/editor/editor-machine.ts +7 -1
  43. package/src/editor/plugins/create-with-event-listeners.ts +18 -3
@@ -52,7 +52,10 @@ import {
52
52
  BlockOffset as BlockOffset_2,
53
53
  PortableTextMemberSchemaTypes as PortableTextMemberSchemaTypes_2,
54
54
  } from '..'
55
- import {InsertPlacement as InsertPlacement_2} from '../behaviors/behavior.types'
55
+ import {
56
+ InputBehaviorEvent as InputBehaviorEvent_2,
57
+ InsertPlacement as InsertPlacement_2,
58
+ } from '../behaviors/behavior.types'
56
59
  import {MIMEType as MIMEType_2} from '../internal-utils/mime-type'
57
60
  import {PickFromUnion as PickFromUnion_2} from '../type-utils'
58
61
 
@@ -68,11 +71,13 @@ declare type Behavior<
68
71
  ? ClipboardBehaviorEvent
69
72
  : TBehaviorEventType extends 'drag.*'
70
73
  ? DragBehaviorEvent
71
- : TBehaviorEventType extends 'keyboard.*'
72
- ? KeyboardBehaviorEvent
73
- : TBehaviorEventType extends 'mouse.*'
74
- ? MouseBehaviorEvent
75
- : PickFromUnion<BehaviorEvent, 'type', TBehaviorEventType>,
74
+ : TBehaviorEventType extends 'input.*'
75
+ ? InputBehaviorEvent
76
+ : TBehaviorEventType extends 'keyboard.*'
77
+ ? KeyboardBehaviorEvent
78
+ : TBehaviorEventType extends 'mouse.*'
79
+ ? MouseBehaviorEvent
80
+ : PickFromUnion<BehaviorEvent, 'type', TBehaviorEventType>,
76
81
  > = {
77
82
  /**
78
83
  * The internal editor event that triggers this behavior.
@@ -140,6 +145,9 @@ declare type BehaviorEvent =
140
145
  | {
141
146
  type: 'drag.*'
142
147
  }
148
+ | {
149
+ type: 'input.*'
150
+ }
143
151
  | {
144
152
  type: 'keyboard.*'
145
153
  }
@@ -243,11 +251,13 @@ declare type CustomBehaviorEvent<
243
251
  declare type DataBehaviorEvent =
244
252
  | {
245
253
  type: 'deserialize'
246
- originEvent: PickFromUnion<
247
- NativeBehaviorEvent,
248
- 'type',
249
- 'drag.drop' | 'clipboard.paste'
250
- >
254
+ originEvent:
255
+ | PickFromUnion<
256
+ NativeBehaviorEvent,
257
+ 'type',
258
+ 'drag.drop' | 'clipboard.paste'
259
+ >
260
+ | InputBehaviorEvent
251
261
  }
252
262
  | {
253
263
  type: 'serialize'
@@ -646,22 +656,26 @@ declare const editorMachine: StateMachine<
646
656
  mimeType: `${string}/${string}`
647
657
  reason: string
648
658
  } & {
649
- originEvent: PickFromUnion_2<
650
- NativeBehaviorEvent,
651
- 'type',
652
- 'drag.drop' | 'clipboard.paste'
653
- >
659
+ originEvent:
660
+ | PickFromUnion_2<
661
+ NativeBehaviorEvent,
662
+ 'type',
663
+ 'drag.drop' | 'clipboard.paste'
664
+ >
665
+ | InputBehaviorEvent_2
654
666
  })
655
667
  | ({
656
668
  type: 'deserialization.success'
657
669
  data: Array<PortableTextBlock>
658
670
  mimeType: `${string}/${string}`
659
671
  } & {
660
- originEvent: PickFromUnion_2<
661
- NativeBehaviorEvent,
662
- 'type',
663
- 'drag.drop' | 'clipboard.paste'
664
- >
672
+ originEvent:
673
+ | PickFromUnion_2<
674
+ NativeBehaviorEvent,
675
+ 'type',
676
+ 'drag.drop' | 'clipboard.paste'
677
+ >
678
+ | InputBehaviorEvent_2
665
679
  })
666
680
  | {
667
681
  type: 'serialization.success'
@@ -1101,22 +1115,26 @@ declare const editorMachine: StateMachine<
1101
1115
  mimeType: `${string}/${string}`
1102
1116
  reason: string
1103
1117
  } & {
1104
- originEvent: PickFromUnion_2<
1105
- NativeBehaviorEvent,
1106
- 'type',
1107
- 'drag.drop' | 'clipboard.paste'
1108
- >
1118
+ originEvent:
1119
+ | PickFromUnion_2<
1120
+ NativeBehaviorEvent,
1121
+ 'type',
1122
+ 'drag.drop' | 'clipboard.paste'
1123
+ >
1124
+ | InputBehaviorEvent_2
1109
1125
  })
1110
1126
  | ({
1111
1127
  type: 'deserialization.success'
1112
1128
  data: Array<PortableTextBlock>
1113
1129
  mimeType: `${string}/${string}`
1114
1130
  } & {
1115
- originEvent: PickFromUnion_2<
1116
- NativeBehaviorEvent,
1117
- 'type',
1118
- 'drag.drop' | 'clipboard.paste'
1119
- >
1131
+ originEvent:
1132
+ | PickFromUnion_2<
1133
+ NativeBehaviorEvent,
1134
+ 'type',
1135
+ 'drag.drop' | 'clipboard.paste'
1136
+ >
1137
+ | InputBehaviorEvent_2
1120
1138
  })
1121
1139
  | {
1122
1140
  type: 'serialization.success'
@@ -1445,22 +1463,26 @@ declare const editorMachine: StateMachine<
1445
1463
  mimeType: `${string}/${string}`
1446
1464
  reason: string
1447
1465
  } & {
1448
- originEvent: PickFromUnion_2<
1449
- NativeBehaviorEvent,
1450
- 'type',
1451
- 'drag.drop' | 'clipboard.paste'
1452
- >
1466
+ originEvent:
1467
+ | PickFromUnion_2<
1468
+ NativeBehaviorEvent,
1469
+ 'type',
1470
+ 'drag.drop' | 'clipboard.paste'
1471
+ >
1472
+ | InputBehaviorEvent_2
1453
1473
  })
1454
1474
  | ({
1455
1475
  type: 'deserialization.success'
1456
1476
  data: Array<PortableTextBlock>
1457
1477
  mimeType: `${string}/${string}`
1458
1478
  } & {
1459
- originEvent: PickFromUnion_2<
1460
- NativeBehaviorEvent,
1461
- 'type',
1462
- 'drag.drop' | 'clipboard.paste'
1463
- >
1479
+ originEvent:
1480
+ | PickFromUnion_2<
1481
+ NativeBehaviorEvent,
1482
+ 'type',
1483
+ 'drag.drop' | 'clipboard.paste'
1484
+ >
1485
+ | InputBehaviorEvent_2
1464
1486
  })
1465
1487
  | {
1466
1488
  type: 'serialization.success'
@@ -1823,22 +1845,26 @@ declare const editorMachine: StateMachine<
1823
1845
  mimeType: `${string}/${string}`
1824
1846
  reason: string
1825
1847
  } & {
1826
- originEvent: PickFromUnion_2<
1827
- NativeBehaviorEvent,
1828
- 'type',
1829
- 'drag.drop' | 'clipboard.paste'
1830
- >
1848
+ originEvent:
1849
+ | PickFromUnion_2<
1850
+ NativeBehaviorEvent,
1851
+ 'type',
1852
+ 'drag.drop' | 'clipboard.paste'
1853
+ >
1854
+ | InputBehaviorEvent_2
1831
1855
  })
1832
1856
  | ({
1833
1857
  type: 'deserialization.success'
1834
1858
  data: Array<PortableTextBlock>
1835
1859
  mimeType: `${string}/${string}`
1836
1860
  } & {
1837
- originEvent: PickFromUnion_2<
1838
- NativeBehaviorEvent,
1839
- 'type',
1840
- 'drag.drop' | 'clipboard.paste'
1841
- >
1861
+ originEvent:
1862
+ | PickFromUnion_2<
1863
+ NativeBehaviorEvent,
1864
+ 'type',
1865
+ 'drag.drop' | 'clipboard.paste'
1866
+ >
1867
+ | InputBehaviorEvent_2
1842
1868
  })
1843
1869
  | {
1844
1870
  type: 'serialization.success'
@@ -2229,22 +2255,26 @@ declare const editorMachine: StateMachine<
2229
2255
  mimeType: `${string}/${string}`
2230
2256
  reason: string
2231
2257
  } & {
2232
- originEvent: PickFromUnion_2<
2233
- NativeBehaviorEvent,
2234
- 'type',
2235
- 'drag.drop' | 'clipboard.paste'
2236
- >
2258
+ originEvent:
2259
+ | PickFromUnion_2<
2260
+ NativeBehaviorEvent,
2261
+ 'type',
2262
+ 'drag.drop' | 'clipboard.paste'
2263
+ >
2264
+ | InputBehaviorEvent_2
2237
2265
  })
2238
2266
  | ({
2239
2267
  type: 'deserialization.success'
2240
2268
  data: Array<PortableTextBlock>
2241
2269
  mimeType: `${string}/${string}`
2242
2270
  } & {
2243
- originEvent: PickFromUnion_2<
2244
- NativeBehaviorEvent,
2245
- 'type',
2246
- 'drag.drop' | 'clipboard.paste'
2247
- >
2271
+ originEvent:
2272
+ | PickFromUnion_2<
2273
+ NativeBehaviorEvent,
2274
+ 'type',
2275
+ 'drag.drop' | 'clipboard.paste'
2276
+ >
2277
+ | InputBehaviorEvent_2
2248
2278
  })
2249
2279
  | {
2250
2280
  type: 'serialization.success'
@@ -2605,22 +2635,26 @@ declare const editorMachine: StateMachine<
2605
2635
  mimeType: `${string}/${string}`
2606
2636
  reason: string
2607
2637
  } & {
2608
- originEvent: PickFromUnion_2<
2609
- NativeBehaviorEvent,
2610
- 'type',
2611
- 'drag.drop' | 'clipboard.paste'
2612
- >
2638
+ originEvent:
2639
+ | PickFromUnion_2<
2640
+ NativeBehaviorEvent,
2641
+ 'type',
2642
+ 'drag.drop' | 'clipboard.paste'
2643
+ >
2644
+ | InputBehaviorEvent_2
2613
2645
  })
2614
2646
  | ({
2615
2647
  type: 'deserialization.success'
2616
2648
  data: Array<PortableTextBlock>
2617
2649
  mimeType: `${string}/${string}`
2618
2650
  } & {
2619
- originEvent: PickFromUnion_2<
2620
- NativeBehaviorEvent,
2621
- 'type',
2622
- 'drag.drop' | 'clipboard.paste'
2623
- >
2651
+ originEvent:
2652
+ | PickFromUnion_2<
2653
+ NativeBehaviorEvent,
2654
+ 'type',
2655
+ 'drag.drop' | 'clipboard.paste'
2656
+ >
2657
+ | InputBehaviorEvent_2
2624
2658
  })
2625
2659
  | {
2626
2660
  type: 'serialization.success'
@@ -2917,22 +2951,26 @@ declare const editorMachine: StateMachine<
2917
2951
  mimeType: `${string}/${string}`
2918
2952
  reason: string
2919
2953
  } & {
2920
- originEvent: PickFromUnion_2<
2921
- NativeBehaviorEvent,
2922
- 'type',
2923
- 'drag.drop' | 'clipboard.paste'
2924
- >
2954
+ originEvent:
2955
+ | PickFromUnion_2<
2956
+ NativeBehaviorEvent,
2957
+ 'type',
2958
+ 'drag.drop' | 'clipboard.paste'
2959
+ >
2960
+ | InputBehaviorEvent_2
2925
2961
  })
2926
2962
  | ({
2927
2963
  type: 'deserialization.success'
2928
2964
  data: Array<PortableTextBlock>
2929
2965
  mimeType: `${string}/${string}`
2930
2966
  } & {
2931
- originEvent: PickFromUnion_2<
2932
- NativeBehaviorEvent,
2933
- 'type',
2934
- 'drag.drop' | 'clipboard.paste'
2935
- >
2967
+ originEvent:
2968
+ | PickFromUnion_2<
2969
+ NativeBehaviorEvent,
2970
+ 'type',
2971
+ 'drag.drop' | 'clipboard.paste'
2972
+ >
2973
+ | InputBehaviorEvent_2
2936
2974
  })
2937
2975
  | {
2938
2976
  type: 'serialization.success'
@@ -3293,22 +3331,26 @@ declare const editorMachine: StateMachine<
3293
3331
  mimeType: `${string}/${string}`
3294
3332
  reason: string
3295
3333
  } & {
3296
- originEvent: PickFromUnion_2<
3297
- NativeBehaviorEvent,
3298
- 'type',
3299
- 'drag.drop' | 'clipboard.paste'
3300
- >
3334
+ originEvent:
3335
+ | PickFromUnion_2<
3336
+ NativeBehaviorEvent,
3337
+ 'type',
3338
+ 'drag.drop' | 'clipboard.paste'
3339
+ >
3340
+ | InputBehaviorEvent_2
3301
3341
  })
3302
3342
  | ({
3303
3343
  type: 'deserialization.success'
3304
3344
  data: Array<PortableTextBlock>
3305
3345
  mimeType: `${string}/${string}`
3306
3346
  } & {
3307
- originEvent: PickFromUnion_2<
3308
- NativeBehaviorEvent,
3309
- 'type',
3310
- 'drag.drop' | 'clipboard.paste'
3311
- >
3347
+ originEvent:
3348
+ | PickFromUnion_2<
3349
+ NativeBehaviorEvent,
3350
+ 'type',
3351
+ 'drag.drop' | 'clipboard.paste'
3352
+ >
3353
+ | InputBehaviorEvent_2
3312
3354
  })
3313
3355
  | {
3314
3356
  type: 'serialization.success'
@@ -3608,22 +3650,26 @@ declare const editorMachine: StateMachine<
3608
3650
  mimeType: `${string}/${string}`
3609
3651
  reason: string
3610
3652
  } & {
3611
- originEvent: PickFromUnion_2<
3612
- NativeBehaviorEvent,
3613
- 'type',
3614
- 'drag.drop' | 'clipboard.paste'
3615
- >
3653
+ originEvent:
3654
+ | PickFromUnion_2<
3655
+ NativeBehaviorEvent,
3656
+ 'type',
3657
+ 'drag.drop' | 'clipboard.paste'
3658
+ >
3659
+ | InputBehaviorEvent_2
3616
3660
  })
3617
3661
  | ({
3618
3662
  type: 'deserialization.success'
3619
3663
  data: Array<PortableTextBlock>
3620
3664
  mimeType: `${string}/${string}`
3621
3665
  } & {
3622
- originEvent: PickFromUnion_2<
3623
- NativeBehaviorEvent,
3624
- 'type',
3625
- 'drag.drop' | 'clipboard.paste'
3626
- >
3666
+ originEvent:
3667
+ | PickFromUnion_2<
3668
+ NativeBehaviorEvent,
3669
+ 'type',
3670
+ 'drag.drop' | 'clipboard.paste'
3671
+ >
3672
+ | InputBehaviorEvent_2
3627
3673
  })
3628
3674
  | {
3629
3675
  type: 'serialization.success'
@@ -3984,22 +4030,26 @@ declare const editorMachine: StateMachine<
3984
4030
  mimeType: `${string}/${string}`
3985
4031
  reason: string
3986
4032
  } & {
3987
- originEvent: PickFromUnion_2<
3988
- NativeBehaviorEvent,
3989
- 'type',
3990
- 'drag.drop' | 'clipboard.paste'
3991
- >
4033
+ originEvent:
4034
+ | PickFromUnion_2<
4035
+ NativeBehaviorEvent,
4036
+ 'type',
4037
+ 'drag.drop' | 'clipboard.paste'
4038
+ >
4039
+ | InputBehaviorEvent_2
3992
4040
  })
3993
4041
  | ({
3994
4042
  type: 'deserialization.success'
3995
4043
  data: Array<PortableTextBlock>
3996
4044
  mimeType: `${string}/${string}`
3997
4045
  } & {
3998
- originEvent: PickFromUnion_2<
3999
- NativeBehaviorEvent,
4000
- 'type',
4001
- 'drag.drop' | 'clipboard.paste'
4002
- >
4046
+ originEvent:
4047
+ | PickFromUnion_2<
4048
+ NativeBehaviorEvent,
4049
+ 'type',
4050
+ 'drag.drop' | 'clipboard.paste'
4051
+ >
4052
+ | InputBehaviorEvent_2
4003
4053
  })
4004
4054
  | {
4005
4055
  type: 'serialization.success'
@@ -4298,22 +4348,26 @@ declare const editorMachine: StateMachine<
4298
4348
  mimeType: `${string}/${string}`
4299
4349
  reason: string
4300
4350
  } & {
4301
- originEvent: PickFromUnion_2<
4302
- NativeBehaviorEvent,
4303
- 'type',
4304
- 'drag.drop' | 'clipboard.paste'
4305
- >
4351
+ originEvent:
4352
+ | PickFromUnion_2<
4353
+ NativeBehaviorEvent,
4354
+ 'type',
4355
+ 'drag.drop' | 'clipboard.paste'
4356
+ >
4357
+ | InputBehaviorEvent_2
4306
4358
  })
4307
4359
  | ({
4308
4360
  type: 'deserialization.success'
4309
4361
  data: Array<PortableTextBlock>
4310
4362
  mimeType: `${string}/${string}`
4311
4363
  } & {
4312
- originEvent: PickFromUnion_2<
4313
- NativeBehaviorEvent,
4314
- 'type',
4315
- 'drag.drop' | 'clipboard.paste'
4316
- >
4364
+ originEvent:
4365
+ | PickFromUnion_2<
4366
+ NativeBehaviorEvent,
4367
+ 'type',
4368
+ 'drag.drop' | 'clipboard.paste'
4369
+ >
4370
+ | InputBehaviorEvent_2
4317
4371
  })
4318
4372
  | {
4319
4373
  type: 'serialization.success'
@@ -4674,22 +4728,26 @@ declare const editorMachine: StateMachine<
4674
4728
  mimeType: `${string}/${string}`
4675
4729
  reason: string
4676
4730
  } & {
4677
- originEvent: PickFromUnion_2<
4678
- NativeBehaviorEvent,
4679
- 'type',
4680
- 'drag.drop' | 'clipboard.paste'
4681
- >
4731
+ originEvent:
4732
+ | PickFromUnion_2<
4733
+ NativeBehaviorEvent,
4734
+ 'type',
4735
+ 'drag.drop' | 'clipboard.paste'
4736
+ >
4737
+ | InputBehaviorEvent_2
4682
4738
  })
4683
4739
  | ({
4684
4740
  type: 'deserialization.success'
4685
4741
  data: Array<PortableTextBlock>
4686
4742
  mimeType: `${string}/${string}`
4687
4743
  } & {
4688
- originEvent: PickFromUnion_2<
4689
- NativeBehaviorEvent,
4690
- 'type',
4691
- 'drag.drop' | 'clipboard.paste'
4692
- >
4744
+ originEvent:
4745
+ | PickFromUnion_2<
4746
+ NativeBehaviorEvent,
4747
+ 'type',
4748
+ 'drag.drop' | 'clipboard.paste'
4749
+ >
4750
+ | InputBehaviorEvent_2
4693
4751
  })
4694
4752
  | {
4695
4753
  type: 'serialization.success'
@@ -4987,22 +5045,26 @@ declare const editorMachine: StateMachine<
4987
5045
  mimeType: `${string}/${string}`
4988
5046
  reason: string
4989
5047
  } & {
4990
- originEvent: PickFromUnion_2<
4991
- NativeBehaviorEvent,
4992
- 'type',
4993
- 'drag.drop' | 'clipboard.paste'
4994
- >
5048
+ originEvent:
5049
+ | PickFromUnion_2<
5050
+ NativeBehaviorEvent,
5051
+ 'type',
5052
+ 'drag.drop' | 'clipboard.paste'
5053
+ >
5054
+ | InputBehaviorEvent_2
4995
5055
  })
4996
5056
  | ({
4997
5057
  type: 'deserialization.success'
4998
5058
  data: Array<PortableTextBlock>
4999
5059
  mimeType: `${string}/${string}`
5000
5060
  } & {
5001
- originEvent: PickFromUnion_2<
5002
- NativeBehaviorEvent,
5003
- 'type',
5004
- 'drag.drop' | 'clipboard.paste'
5005
- >
5061
+ originEvent:
5062
+ | PickFromUnion_2<
5063
+ NativeBehaviorEvent,
5064
+ 'type',
5065
+ 'drag.drop' | 'clipboard.paste'
5066
+ >
5067
+ | InputBehaviorEvent_2
5006
5068
  })
5007
5069
  | {
5008
5070
  type: 'serialization.success'
@@ -5363,22 +5425,26 @@ declare const editorMachine: StateMachine<
5363
5425
  mimeType: `${string}/${string}`
5364
5426
  reason: string
5365
5427
  } & {
5366
- originEvent: PickFromUnion_2<
5367
- NativeBehaviorEvent,
5368
- 'type',
5369
- 'drag.drop' | 'clipboard.paste'
5370
- >
5428
+ originEvent:
5429
+ | PickFromUnion_2<
5430
+ NativeBehaviorEvent,
5431
+ 'type',
5432
+ 'drag.drop' | 'clipboard.paste'
5433
+ >
5434
+ | InputBehaviorEvent_2
5371
5435
  })
5372
5436
  | ({
5373
5437
  type: 'deserialization.success'
5374
5438
  data: Array<PortableTextBlock>
5375
5439
  mimeType: `${string}/${string}`
5376
5440
  } & {
5377
- originEvent: PickFromUnion_2<
5378
- NativeBehaviorEvent,
5379
- 'type',
5380
- 'drag.drop' | 'clipboard.paste'
5381
- >
5441
+ originEvent:
5442
+ | PickFromUnion_2<
5443
+ NativeBehaviorEvent,
5444
+ 'type',
5445
+ 'drag.drop' | 'clipboard.paste'
5446
+ >
5447
+ | InputBehaviorEvent_2
5382
5448
  })
5383
5449
  | {
5384
5450
  type: 'serialization.success'
@@ -5677,22 +5743,26 @@ declare const editorMachine: StateMachine<
5677
5743
  mimeType: `${string}/${string}`
5678
5744
  reason: string
5679
5745
  } & {
5680
- originEvent: PickFromUnion_2<
5681
- NativeBehaviorEvent,
5682
- 'type',
5683
- 'drag.drop' | 'clipboard.paste'
5684
- >
5746
+ originEvent:
5747
+ | PickFromUnion_2<
5748
+ NativeBehaviorEvent,
5749
+ 'type',
5750
+ 'drag.drop' | 'clipboard.paste'
5751
+ >
5752
+ | InputBehaviorEvent_2
5685
5753
  })
5686
5754
  | ({
5687
5755
  type: 'deserialization.success'
5688
5756
  data: Array<PortableTextBlock>
5689
5757
  mimeType: `${string}/${string}`
5690
5758
  } & {
5691
- originEvent: PickFromUnion_2<
5692
- NativeBehaviorEvent,
5693
- 'type',
5694
- 'drag.drop' | 'clipboard.paste'
5695
- >
5759
+ originEvent:
5760
+ | PickFromUnion_2<
5761
+ NativeBehaviorEvent,
5762
+ 'type',
5763
+ 'drag.drop' | 'clipboard.paste'
5764
+ >
5765
+ | InputBehaviorEvent_2
5696
5766
  })
5697
5767
  | {
5698
5768
  type: 'serialization.success'
@@ -6075,22 +6145,26 @@ declare const editorMachine: StateMachine<
6075
6145
  mimeType: `${string}/${string}`
6076
6146
  reason: string
6077
6147
  } & {
6078
- originEvent: PickFromUnion_2<
6079
- NativeBehaviorEvent,
6080
- 'type',
6081
- 'drag.drop' | 'clipboard.paste'
6082
- >
6148
+ originEvent:
6149
+ | PickFromUnion_2<
6150
+ NativeBehaviorEvent,
6151
+ 'type',
6152
+ 'drag.drop' | 'clipboard.paste'
6153
+ >
6154
+ | InputBehaviorEvent_2
6083
6155
  })
6084
6156
  | ({
6085
6157
  type: 'deserialization.success'
6086
6158
  data: Array<PortableTextBlock>
6087
6159
  mimeType: `${string}/${string}`
6088
6160
  } & {
6089
- originEvent: PickFromUnion_2<
6090
- NativeBehaviorEvent,
6091
- 'type',
6092
- 'drag.drop' | 'clipboard.paste'
6093
- >
6161
+ originEvent:
6162
+ | PickFromUnion_2<
6163
+ NativeBehaviorEvent,
6164
+ 'type',
6165
+ 'drag.drop' | 'clipboard.paste'
6166
+ >
6167
+ | InputBehaviorEvent_2
6094
6168
  })
6095
6169
  | {
6096
6170
  type: 'serialization.success'
@@ -6451,22 +6525,26 @@ declare const editorMachine: StateMachine<
6451
6525
  mimeType: `${string}/${string}`
6452
6526
  reason: string
6453
6527
  } & {
6454
- originEvent: PickFromUnion_2<
6455
- NativeBehaviorEvent,
6456
- 'type',
6457
- 'drag.drop' | 'clipboard.paste'
6458
- >
6528
+ originEvent:
6529
+ | PickFromUnion_2<
6530
+ NativeBehaviorEvent,
6531
+ 'type',
6532
+ 'drag.drop' | 'clipboard.paste'
6533
+ >
6534
+ | InputBehaviorEvent_2
6459
6535
  })
6460
6536
  | ({
6461
6537
  type: 'deserialization.success'
6462
6538
  data: Array<PortableTextBlock>
6463
6539
  mimeType: `${string}/${string}`
6464
6540
  } & {
6465
- originEvent: PickFromUnion_2<
6466
- NativeBehaviorEvent,
6467
- 'type',
6468
- 'drag.drop' | 'clipboard.paste'
6469
- >
6541
+ originEvent:
6542
+ | PickFromUnion_2<
6543
+ NativeBehaviorEvent,
6544
+ 'type',
6545
+ 'drag.drop' | 'clipboard.paste'
6546
+ >
6547
+ | InputBehaviorEvent_2
6470
6548
  })
6471
6549
  | {
6472
6550
  type: 'serialization.success'
@@ -6765,22 +6843,26 @@ declare const editorMachine: StateMachine<
6765
6843
  mimeType: `${string}/${string}`
6766
6844
  reason: string
6767
6845
  } & {
6768
- originEvent: PickFromUnion_2<
6769
- NativeBehaviorEvent,
6770
- 'type',
6771
- 'drag.drop' | 'clipboard.paste'
6772
- >
6846
+ originEvent:
6847
+ | PickFromUnion_2<
6848
+ NativeBehaviorEvent,
6849
+ 'type',
6850
+ 'drag.drop' | 'clipboard.paste'
6851
+ >
6852
+ | InputBehaviorEvent_2
6773
6853
  })
6774
6854
  | ({
6775
6855
  type: 'deserialization.success'
6776
6856
  data: Array<PortableTextBlock>
6777
6857
  mimeType: `${string}/${string}`
6778
6858
  } & {
6779
- originEvent: PickFromUnion_2<
6780
- NativeBehaviorEvent,
6781
- 'type',
6782
- 'drag.drop' | 'clipboard.paste'
6783
- >
6859
+ originEvent:
6860
+ | PickFromUnion_2<
6861
+ NativeBehaviorEvent,
6862
+ 'type',
6863
+ 'drag.drop' | 'clipboard.paste'
6864
+ >
6865
+ | InputBehaviorEvent_2
6784
6866
  })
6785
6867
  | {
6786
6868
  type: 'serialization.success'
@@ -7141,22 +7223,26 @@ declare const editorMachine: StateMachine<
7141
7223
  mimeType: `${string}/${string}`
7142
7224
  reason: string
7143
7225
  } & {
7144
- originEvent: PickFromUnion_2<
7145
- NativeBehaviorEvent,
7146
- 'type',
7147
- 'drag.drop' | 'clipboard.paste'
7148
- >
7226
+ originEvent:
7227
+ | PickFromUnion_2<
7228
+ NativeBehaviorEvent,
7229
+ 'type',
7230
+ 'drag.drop' | 'clipboard.paste'
7231
+ >
7232
+ | InputBehaviorEvent_2
7149
7233
  })
7150
7234
  | ({
7151
7235
  type: 'deserialization.success'
7152
7236
  data: Array<PortableTextBlock>
7153
7237
  mimeType: `${string}/${string}`
7154
7238
  } & {
7155
- originEvent: PickFromUnion_2<
7156
- NativeBehaviorEvent,
7157
- 'type',
7158
- 'drag.drop' | 'clipboard.paste'
7159
- >
7239
+ originEvent:
7240
+ | PickFromUnion_2<
7241
+ NativeBehaviorEvent,
7242
+ 'type',
7243
+ 'drag.drop' | 'clipboard.paste'
7244
+ >
7245
+ | InputBehaviorEvent_2
7160
7246
  })
7161
7247
  | {
7162
7248
  type: 'serialization.success'
@@ -7453,22 +7539,26 @@ declare const editorMachine: StateMachine<
7453
7539
  mimeType: `${string}/${string}`
7454
7540
  reason: string
7455
7541
  } & {
7456
- originEvent: PickFromUnion_2<
7457
- NativeBehaviorEvent,
7458
- 'type',
7459
- 'drag.drop' | 'clipboard.paste'
7460
- >
7542
+ originEvent:
7543
+ | PickFromUnion_2<
7544
+ NativeBehaviorEvent,
7545
+ 'type',
7546
+ 'drag.drop' | 'clipboard.paste'
7547
+ >
7548
+ | InputBehaviorEvent_2
7461
7549
  })
7462
7550
  | ({
7463
7551
  type: 'deserialization.success'
7464
7552
  data: Array<PortableTextBlock>
7465
7553
  mimeType: `${string}/${string}`
7466
7554
  } & {
7467
- originEvent: PickFromUnion_2<
7468
- NativeBehaviorEvent,
7469
- 'type',
7470
- 'drag.drop' | 'clipboard.paste'
7471
- >
7555
+ originEvent:
7556
+ | PickFromUnion_2<
7557
+ NativeBehaviorEvent,
7558
+ 'type',
7559
+ 'drag.drop' | 'clipboard.paste'
7560
+ >
7561
+ | InputBehaviorEvent_2
7472
7562
  })
7473
7563
  | {
7474
7564
  type: 'serialization.success'
@@ -7829,22 +7919,26 @@ declare const editorMachine: StateMachine<
7829
7919
  mimeType: `${string}/${string}`
7830
7920
  reason: string
7831
7921
  } & {
7832
- originEvent: PickFromUnion_2<
7833
- NativeBehaviorEvent,
7834
- 'type',
7835
- 'drag.drop' | 'clipboard.paste'
7836
- >
7922
+ originEvent:
7923
+ | PickFromUnion_2<
7924
+ NativeBehaviorEvent,
7925
+ 'type',
7926
+ 'drag.drop' | 'clipboard.paste'
7927
+ >
7928
+ | InputBehaviorEvent_2
7837
7929
  })
7838
7930
  | ({
7839
7931
  type: 'deserialization.success'
7840
7932
  data: Array<PortableTextBlock>
7841
7933
  mimeType: `${string}/${string}`
7842
7934
  } & {
7843
- originEvent: PickFromUnion_2<
7844
- NativeBehaviorEvent,
7845
- 'type',
7846
- 'drag.drop' | 'clipboard.paste'
7847
- >
7935
+ originEvent:
7936
+ | PickFromUnion_2<
7937
+ NativeBehaviorEvent,
7938
+ 'type',
7939
+ 'drag.drop' | 'clipboard.paste'
7940
+ >
7941
+ | InputBehaviorEvent_2
7848
7942
  })
7849
7943
  | {
7850
7944
  type: 'serialization.success'
@@ -8142,22 +8236,26 @@ declare const editorMachine: StateMachine<
8142
8236
  mimeType: `${string}/${string}`
8143
8237
  reason: string
8144
8238
  } & {
8145
- originEvent: PickFromUnion_2<
8146
- NativeBehaviorEvent,
8147
- 'type',
8148
- 'drag.drop' | 'clipboard.paste'
8149
- >
8239
+ originEvent:
8240
+ | PickFromUnion_2<
8241
+ NativeBehaviorEvent,
8242
+ 'type',
8243
+ 'drag.drop' | 'clipboard.paste'
8244
+ >
8245
+ | InputBehaviorEvent_2
8150
8246
  })
8151
8247
  | ({
8152
8248
  type: 'deserialization.success'
8153
8249
  data: Array<PortableTextBlock>
8154
8250
  mimeType: `${string}/${string}`
8155
8251
  } & {
8156
- originEvent: PickFromUnion_2<
8157
- NativeBehaviorEvent,
8158
- 'type',
8159
- 'drag.drop' | 'clipboard.paste'
8160
- >
8252
+ originEvent:
8253
+ | PickFromUnion_2<
8254
+ NativeBehaviorEvent,
8255
+ 'type',
8256
+ 'drag.drop' | 'clipboard.paste'
8257
+ >
8258
+ | InputBehaviorEvent_2
8161
8259
  })
8162
8260
  | {
8163
8261
  type: 'serialization.success'
@@ -8518,22 +8616,26 @@ declare const editorMachine: StateMachine<
8518
8616
  mimeType: `${string}/${string}`
8519
8617
  reason: string
8520
8618
  } & {
8521
- originEvent: PickFromUnion_2<
8522
- NativeBehaviorEvent,
8523
- 'type',
8524
- 'drag.drop' | 'clipboard.paste'
8525
- >
8619
+ originEvent:
8620
+ | PickFromUnion_2<
8621
+ NativeBehaviorEvent,
8622
+ 'type',
8623
+ 'drag.drop' | 'clipboard.paste'
8624
+ >
8625
+ | InputBehaviorEvent_2
8526
8626
  })
8527
8627
  | ({
8528
8628
  type: 'deserialization.success'
8529
8629
  data: Array<PortableTextBlock>
8530
8630
  mimeType: `${string}/${string}`
8531
8631
  } & {
8532
- originEvent: PickFromUnion_2<
8533
- NativeBehaviorEvent,
8534
- 'type',
8535
- 'drag.drop' | 'clipboard.paste'
8536
- >
8632
+ originEvent:
8633
+ | PickFromUnion_2<
8634
+ NativeBehaviorEvent,
8635
+ 'type',
8636
+ 'drag.drop' | 'clipboard.paste'
8637
+ >
8638
+ | InputBehaviorEvent_2
8537
8639
  })
8538
8640
  | {
8539
8641
  type: 'serialization.success'
@@ -8834,22 +8936,26 @@ declare const editorMachine: StateMachine<
8834
8936
  mimeType: `${string}/${string}`
8835
8937
  reason: string
8836
8938
  } & {
8837
- originEvent: PickFromUnion_2<
8838
- NativeBehaviorEvent,
8839
- 'type',
8840
- 'drag.drop' | 'clipboard.paste'
8841
- >
8939
+ originEvent:
8940
+ | PickFromUnion_2<
8941
+ NativeBehaviorEvent,
8942
+ 'type',
8943
+ 'drag.drop' | 'clipboard.paste'
8944
+ >
8945
+ | InputBehaviorEvent_2
8842
8946
  })
8843
8947
  | ({
8844
8948
  type: 'deserialization.success'
8845
8949
  data: Array<PortableTextBlock>
8846
8950
  mimeType: `${string}/${string}`
8847
8951
  } & {
8848
- originEvent: PickFromUnion_2<
8849
- NativeBehaviorEvent,
8850
- 'type',
8851
- 'drag.drop' | 'clipboard.paste'
8852
- >
8952
+ originEvent:
8953
+ | PickFromUnion_2<
8954
+ NativeBehaviorEvent,
8955
+ 'type',
8956
+ 'drag.drop' | 'clipboard.paste'
8957
+ >
8958
+ | InputBehaviorEvent_2
8853
8959
  })
8854
8960
  | {
8855
8961
  type: 'serialization.success'
@@ -9210,22 +9316,26 @@ declare const editorMachine: StateMachine<
9210
9316
  mimeType: `${string}/${string}`
9211
9317
  reason: string
9212
9318
  } & {
9213
- originEvent: PickFromUnion_2<
9214
- NativeBehaviorEvent,
9215
- 'type',
9216
- 'drag.drop' | 'clipboard.paste'
9217
- >
9319
+ originEvent:
9320
+ | PickFromUnion_2<
9321
+ NativeBehaviorEvent,
9322
+ 'type',
9323
+ 'drag.drop' | 'clipboard.paste'
9324
+ >
9325
+ | InputBehaviorEvent_2
9218
9326
  })
9219
9327
  | ({
9220
9328
  type: 'deserialization.success'
9221
9329
  data: Array<PortableTextBlock>
9222
9330
  mimeType: `${string}/${string}`
9223
9331
  } & {
9224
- originEvent: PickFromUnion_2<
9225
- NativeBehaviorEvent,
9226
- 'type',
9227
- 'drag.drop' | 'clipboard.paste'
9228
- >
9332
+ originEvent:
9333
+ | PickFromUnion_2<
9334
+ NativeBehaviorEvent,
9335
+ 'type',
9336
+ 'drag.drop' | 'clipboard.paste'
9337
+ >
9338
+ | InputBehaviorEvent_2
9229
9339
  })
9230
9340
  | {
9231
9341
  type: 'serialization.success'
@@ -9526,22 +9636,26 @@ declare const editorMachine: StateMachine<
9526
9636
  mimeType: `${string}/${string}`
9527
9637
  reason: string
9528
9638
  } & {
9529
- originEvent: PickFromUnion_2<
9530
- NativeBehaviorEvent,
9531
- 'type',
9532
- 'drag.drop' | 'clipboard.paste'
9533
- >
9639
+ originEvent:
9640
+ | PickFromUnion_2<
9641
+ NativeBehaviorEvent,
9642
+ 'type',
9643
+ 'drag.drop' | 'clipboard.paste'
9644
+ >
9645
+ | InputBehaviorEvent_2
9534
9646
  })
9535
9647
  | ({
9536
9648
  type: 'deserialization.success'
9537
9649
  data: Array<PortableTextBlock>
9538
9650
  mimeType: `${string}/${string}`
9539
9651
  } & {
9540
- originEvent: PickFromUnion_2<
9541
- NativeBehaviorEvent,
9542
- 'type',
9543
- 'drag.drop' | 'clipboard.paste'
9544
- >
9652
+ originEvent:
9653
+ | PickFromUnion_2<
9654
+ NativeBehaviorEvent,
9655
+ 'type',
9656
+ 'drag.drop' | 'clipboard.paste'
9657
+ >
9658
+ | InputBehaviorEvent_2
9545
9659
  })
9546
9660
  | {
9547
9661
  type: 'serialization.success'
@@ -9929,22 +10043,26 @@ declare const editorMachine: StateMachine<
9929
10043
  mimeType: `${string}/${string}`
9930
10044
  reason: string
9931
10045
  } & {
9932
- originEvent: PickFromUnion_2<
9933
- NativeBehaviorEvent,
9934
- 'type',
9935
- 'drag.drop' | 'clipboard.paste'
9936
- >
10046
+ originEvent:
10047
+ | PickFromUnion_2<
10048
+ NativeBehaviorEvent,
10049
+ 'type',
10050
+ 'drag.drop' | 'clipboard.paste'
10051
+ >
10052
+ | InputBehaviorEvent_2
9937
10053
  })
9938
10054
  | ({
9939
10055
  type: 'deserialization.success'
9940
10056
  data: Array<PortableTextBlock>
9941
10057
  mimeType: `${string}/${string}`
9942
10058
  } & {
9943
- originEvent: PickFromUnion_2<
9944
- NativeBehaviorEvent,
9945
- 'type',
9946
- 'drag.drop' | 'clipboard.paste'
9947
- >
10059
+ originEvent:
10060
+ | PickFromUnion_2<
10061
+ NativeBehaviorEvent,
10062
+ 'type',
10063
+ 'drag.drop' | 'clipboard.paste'
10064
+ >
10065
+ | InputBehaviorEvent_2
9948
10066
  })
9949
10067
  | {
9950
10068
  type: 'serialization.success'
@@ -10329,22 +10447,26 @@ declare const editorMachine: StateMachine<
10329
10447
  mimeType: `${string}/${string}`
10330
10448
  reason: string
10331
10449
  } & {
10332
- originEvent: PickFromUnion_2<
10333
- NativeBehaviorEvent,
10334
- 'type',
10335
- 'drag.drop' | 'clipboard.paste'
10336
- >
10450
+ originEvent:
10451
+ | PickFromUnion_2<
10452
+ NativeBehaviorEvent,
10453
+ 'type',
10454
+ 'drag.drop' | 'clipboard.paste'
10455
+ >
10456
+ | InputBehaviorEvent_2
10337
10457
  })
10338
10458
  | ({
10339
10459
  type: 'deserialization.success'
10340
10460
  data: Array<PortableTextBlock>
10341
10461
  mimeType: `${string}/${string}`
10342
10462
  } & {
10343
- originEvent: PickFromUnion_2<
10344
- NativeBehaviorEvent,
10345
- 'type',
10346
- 'drag.drop' | 'clipboard.paste'
10347
- >
10463
+ originEvent:
10464
+ | PickFromUnion_2<
10465
+ NativeBehaviorEvent,
10466
+ 'type',
10467
+ 'drag.drop' | 'clipboard.paste'
10468
+ >
10469
+ | InputBehaviorEvent_2
10348
10470
  })
10349
10471
  | {
10350
10472
  type: 'serialization.success'
@@ -10898,22 +11020,26 @@ declare const editorMachine: StateMachine<
10898
11020
  mimeType: `${string}/${string}`
10899
11021
  reason: string
10900
11022
  } & {
10901
- originEvent: PickFromUnion_2<
10902
- NativeBehaviorEvent,
10903
- 'type',
10904
- 'drag.drop' | 'clipboard.paste'
10905
- >
11023
+ originEvent:
11024
+ | PickFromUnion_2<
11025
+ NativeBehaviorEvent,
11026
+ 'type',
11027
+ 'drag.drop' | 'clipboard.paste'
11028
+ >
11029
+ | InputBehaviorEvent_2
10906
11030
  })
10907
11031
  | ({
10908
11032
  type: 'deserialization.success'
10909
11033
  data: Array<PortableTextBlock>
10910
11034
  mimeType: `${string}/${string}`
10911
11035
  } & {
10912
- originEvent: PickFromUnion_2<
10913
- NativeBehaviorEvent,
10914
- 'type',
10915
- 'drag.drop' | 'clipboard.paste'
10916
- >
11036
+ originEvent:
11037
+ | PickFromUnion_2<
11038
+ NativeBehaviorEvent,
11039
+ 'type',
11040
+ 'drag.drop' | 'clipboard.paste'
11041
+ >
11042
+ | InputBehaviorEvent_2
10917
11043
  })
10918
11044
  | {
10919
11045
  type: 'serialization.success'
@@ -11274,22 +11400,26 @@ declare const editorMachine: StateMachine<
11274
11400
  mimeType: `${string}/${string}`
11275
11401
  reason: string
11276
11402
  } & {
11277
- originEvent: PickFromUnion_2<
11278
- NativeBehaviorEvent,
11279
- 'type',
11280
- 'drag.drop' | 'clipboard.paste'
11281
- >
11403
+ originEvent:
11404
+ | PickFromUnion_2<
11405
+ NativeBehaviorEvent,
11406
+ 'type',
11407
+ 'drag.drop' | 'clipboard.paste'
11408
+ >
11409
+ | InputBehaviorEvent_2
11282
11410
  })
11283
11411
  | ({
11284
11412
  type: 'deserialization.success'
11285
11413
  data: Array<PortableTextBlock>
11286
11414
  mimeType: `${string}/${string}`
11287
11415
  } & {
11288
- originEvent: PickFromUnion_2<
11289
- NativeBehaviorEvent,
11290
- 'type',
11291
- 'drag.drop' | 'clipboard.paste'
11292
- >
11416
+ originEvent:
11417
+ | PickFromUnion_2<
11418
+ NativeBehaviorEvent,
11419
+ 'type',
11420
+ 'drag.drop' | 'clipboard.paste'
11421
+ >
11422
+ | InputBehaviorEvent_2
11293
11423
  })
11294
11424
  | {
11295
11425
  type: 'serialization.success'
@@ -11593,22 +11723,26 @@ declare const editorMachine: StateMachine<
11593
11723
  mimeType: `${string}/${string}`
11594
11724
  reason: string
11595
11725
  } & {
11596
- originEvent: PickFromUnion_2<
11597
- NativeBehaviorEvent,
11598
- 'type',
11599
- 'drag.drop' | 'clipboard.paste'
11600
- >
11726
+ originEvent:
11727
+ | PickFromUnion_2<
11728
+ NativeBehaviorEvent,
11729
+ 'type',
11730
+ 'drag.drop' | 'clipboard.paste'
11731
+ >
11732
+ | InputBehaviorEvent_2
11601
11733
  })
11602
11734
  | ({
11603
11735
  type: 'deserialization.success'
11604
11736
  data: Array<PortableTextBlock>
11605
11737
  mimeType: `${string}/${string}`
11606
11738
  } & {
11607
- originEvent: PickFromUnion_2<
11608
- NativeBehaviorEvent,
11609
- 'type',
11610
- 'drag.drop' | 'clipboard.paste'
11611
- >
11739
+ originEvent:
11740
+ | PickFromUnion_2<
11741
+ NativeBehaviorEvent,
11742
+ 'type',
11743
+ 'drag.drop' | 'clipboard.paste'
11744
+ >
11745
+ | InputBehaviorEvent_2
11612
11746
  })
11613
11747
  | {
11614
11748
  type: 'serialization.success'
@@ -11969,22 +12103,26 @@ declare const editorMachine: StateMachine<
11969
12103
  mimeType: `${string}/${string}`
11970
12104
  reason: string
11971
12105
  } & {
11972
- originEvent: PickFromUnion_2<
11973
- NativeBehaviorEvent,
11974
- 'type',
11975
- 'drag.drop' | 'clipboard.paste'
11976
- >
12106
+ originEvent:
12107
+ | PickFromUnion_2<
12108
+ NativeBehaviorEvent,
12109
+ 'type',
12110
+ 'drag.drop' | 'clipboard.paste'
12111
+ >
12112
+ | InputBehaviorEvent_2
11977
12113
  })
11978
12114
  | ({
11979
12115
  type: 'deserialization.success'
11980
12116
  data: Array<PortableTextBlock>
11981
12117
  mimeType: `${string}/${string}`
11982
12118
  } & {
11983
- originEvent: PickFromUnion_2<
11984
- NativeBehaviorEvent,
11985
- 'type',
11986
- 'drag.drop' | 'clipboard.paste'
11987
- >
12119
+ originEvent:
12120
+ | PickFromUnion_2<
12121
+ NativeBehaviorEvent,
12122
+ 'type',
12123
+ 'drag.drop' | 'clipboard.paste'
12124
+ >
12125
+ | InputBehaviorEvent_2
11988
12126
  })
11989
12127
  | {
11990
12128
  type: 'serialization.success'
@@ -12281,22 +12419,26 @@ declare const editorMachine: StateMachine<
12281
12419
  mimeType: `${string}/${string}`
12282
12420
  reason: string
12283
12421
  } & {
12284
- originEvent: PickFromUnion_2<
12285
- NativeBehaviorEvent,
12286
- 'type',
12287
- 'drag.drop' | 'clipboard.paste'
12288
- >
12422
+ originEvent:
12423
+ | PickFromUnion_2<
12424
+ NativeBehaviorEvent,
12425
+ 'type',
12426
+ 'drag.drop' | 'clipboard.paste'
12427
+ >
12428
+ | InputBehaviorEvent_2
12289
12429
  })
12290
12430
  | ({
12291
12431
  type: 'deserialization.success'
12292
12432
  data: Array<PortableTextBlock>
12293
12433
  mimeType: `${string}/${string}`
12294
12434
  } & {
12295
- originEvent: PickFromUnion_2<
12296
- NativeBehaviorEvent,
12297
- 'type',
12298
- 'drag.drop' | 'clipboard.paste'
12299
- >
12435
+ originEvent:
12436
+ | PickFromUnion_2<
12437
+ NativeBehaviorEvent,
12438
+ 'type',
12439
+ 'drag.drop' | 'clipboard.paste'
12440
+ >
12441
+ | InputBehaviorEvent_2
12300
12442
  })
12301
12443
  | {
12302
12444
  type: 'serialization.success'
@@ -12657,22 +12799,26 @@ declare const editorMachine: StateMachine<
12657
12799
  mimeType: `${string}/${string}`
12658
12800
  reason: string
12659
12801
  } & {
12660
- originEvent: PickFromUnion_2<
12661
- NativeBehaviorEvent,
12662
- 'type',
12663
- 'drag.drop' | 'clipboard.paste'
12664
- >
12802
+ originEvent:
12803
+ | PickFromUnion_2<
12804
+ NativeBehaviorEvent,
12805
+ 'type',
12806
+ 'drag.drop' | 'clipboard.paste'
12807
+ >
12808
+ | InputBehaviorEvent_2
12665
12809
  })
12666
12810
  | ({
12667
12811
  type: 'deserialization.success'
12668
12812
  data: Array<PortableTextBlock>
12669
12813
  mimeType: `${string}/${string}`
12670
12814
  } & {
12671
- originEvent: PickFromUnion_2<
12672
- NativeBehaviorEvent,
12673
- 'type',
12674
- 'drag.drop' | 'clipboard.paste'
12675
- >
12815
+ originEvent:
12816
+ | PickFromUnion_2<
12817
+ NativeBehaviorEvent,
12818
+ 'type',
12819
+ 'drag.drop' | 'clipboard.paste'
12820
+ >
12821
+ | InputBehaviorEvent_2
12676
12822
  })
12677
12823
  | {
12678
12824
  type: 'serialization.success'
@@ -12969,22 +13115,26 @@ declare const editorMachine: StateMachine<
12969
13115
  mimeType: `${string}/${string}`
12970
13116
  reason: string
12971
13117
  } & {
12972
- originEvent: PickFromUnion_2<
12973
- NativeBehaviorEvent,
12974
- 'type',
12975
- 'drag.drop' | 'clipboard.paste'
12976
- >
13118
+ originEvent:
13119
+ | PickFromUnion_2<
13120
+ NativeBehaviorEvent,
13121
+ 'type',
13122
+ 'drag.drop' | 'clipboard.paste'
13123
+ >
13124
+ | InputBehaviorEvent_2
12977
13125
  })
12978
13126
  | ({
12979
13127
  type: 'deserialization.success'
12980
13128
  data: Array<PortableTextBlock>
12981
13129
  mimeType: `${string}/${string}`
12982
13130
  } & {
12983
- originEvent: PickFromUnion_2<
12984
- NativeBehaviorEvent,
12985
- 'type',
12986
- 'drag.drop' | 'clipboard.paste'
12987
- >
13131
+ originEvent:
13132
+ | PickFromUnion_2<
13133
+ NativeBehaviorEvent,
13134
+ 'type',
13135
+ 'drag.drop' | 'clipboard.paste'
13136
+ >
13137
+ | InputBehaviorEvent_2
12988
13138
  })
12989
13139
  | {
12990
13140
  type: 'serialization.success'
@@ -13345,22 +13495,26 @@ declare const editorMachine: StateMachine<
13345
13495
  mimeType: `${string}/${string}`
13346
13496
  reason: string
13347
13497
  } & {
13348
- originEvent: PickFromUnion_2<
13349
- NativeBehaviorEvent,
13350
- 'type',
13351
- 'drag.drop' | 'clipboard.paste'
13352
- >
13498
+ originEvent:
13499
+ | PickFromUnion_2<
13500
+ NativeBehaviorEvent,
13501
+ 'type',
13502
+ 'drag.drop' | 'clipboard.paste'
13503
+ >
13504
+ | InputBehaviorEvent_2
13353
13505
  })
13354
13506
  | ({
13355
13507
  type: 'deserialization.success'
13356
13508
  data: Array<PortableTextBlock>
13357
13509
  mimeType: `${string}/${string}`
13358
13510
  } & {
13359
- originEvent: PickFromUnion_2<
13360
- NativeBehaviorEvent,
13361
- 'type',
13362
- 'drag.drop' | 'clipboard.paste'
13363
- >
13511
+ originEvent:
13512
+ | PickFromUnion_2<
13513
+ NativeBehaviorEvent,
13514
+ 'type',
13515
+ 'drag.drop' | 'clipboard.paste'
13516
+ >
13517
+ | InputBehaviorEvent_2
13364
13518
  })
13365
13519
  | {
13366
13520
  type: 'serialization.success'
@@ -13670,22 +13824,26 @@ declare const editorMachine: StateMachine<
13670
13824
  mimeType: `${string}/${string}`
13671
13825
  reason: string
13672
13826
  } & {
13673
- originEvent: PickFromUnion_2<
13674
- NativeBehaviorEvent,
13675
- 'type',
13676
- 'drag.drop' | 'clipboard.paste'
13677
- >
13827
+ originEvent:
13828
+ | PickFromUnion_2<
13829
+ NativeBehaviorEvent,
13830
+ 'type',
13831
+ 'drag.drop' | 'clipboard.paste'
13832
+ >
13833
+ | InputBehaviorEvent_2
13678
13834
  })
13679
13835
  | ({
13680
13836
  type: 'deserialization.success'
13681
13837
  data: Array<PortableTextBlock>
13682
13838
  mimeType: `${string}/${string}`
13683
13839
  } & {
13684
- originEvent: PickFromUnion_2<
13685
- NativeBehaviorEvent,
13686
- 'type',
13687
- 'drag.drop' | 'clipboard.paste'
13688
- >
13840
+ originEvent:
13841
+ | PickFromUnion_2<
13842
+ NativeBehaviorEvent,
13843
+ 'type',
13844
+ 'drag.drop' | 'clipboard.paste'
13845
+ >
13846
+ | InputBehaviorEvent_2
13689
13847
  })
13690
13848
  | {
13691
13849
  type: 'serialization.success'
@@ -14046,22 +14204,26 @@ declare const editorMachine: StateMachine<
14046
14204
  mimeType: `${string}/${string}`
14047
14205
  reason: string
14048
14206
  } & {
14049
- originEvent: PickFromUnion_2<
14050
- NativeBehaviorEvent,
14051
- 'type',
14052
- 'drag.drop' | 'clipboard.paste'
14053
- >
14207
+ originEvent:
14208
+ | PickFromUnion_2<
14209
+ NativeBehaviorEvent,
14210
+ 'type',
14211
+ 'drag.drop' | 'clipboard.paste'
14212
+ >
14213
+ | InputBehaviorEvent_2
14054
14214
  })
14055
14215
  | ({
14056
14216
  type: 'deserialization.success'
14057
14217
  data: Array<PortableTextBlock>
14058
14218
  mimeType: `${string}/${string}`
14059
14219
  } & {
14060
- originEvent: PickFromUnion_2<
14061
- NativeBehaviorEvent,
14062
- 'type',
14063
- 'drag.drop' | 'clipboard.paste'
14064
- >
14220
+ originEvent:
14221
+ | PickFromUnion_2<
14222
+ NativeBehaviorEvent,
14223
+ 'type',
14224
+ 'drag.drop' | 'clipboard.paste'
14225
+ >
14226
+ | InputBehaviorEvent_2
14065
14227
  })
14066
14228
  | {
14067
14229
  type: 'serialization.success'
@@ -14372,22 +14534,26 @@ declare const editorMachine: StateMachine<
14372
14534
  mimeType: `${string}/${string}`
14373
14535
  reason: string
14374
14536
  } & {
14375
- originEvent: PickFromUnion_2<
14376
- NativeBehaviorEvent,
14377
- 'type',
14378
- 'drag.drop' | 'clipboard.paste'
14379
- >
14537
+ originEvent:
14538
+ | PickFromUnion_2<
14539
+ NativeBehaviorEvent,
14540
+ 'type',
14541
+ 'drag.drop' | 'clipboard.paste'
14542
+ >
14543
+ | InputBehaviorEvent_2
14380
14544
  })
14381
14545
  | ({
14382
14546
  type: 'deserialization.success'
14383
14547
  data: Array<PortableTextBlock>
14384
14548
  mimeType: `${string}/${string}`
14385
14549
  } & {
14386
- originEvent: PickFromUnion_2<
14387
- NativeBehaviorEvent,
14388
- 'type',
14389
- 'drag.drop' | 'clipboard.paste'
14390
- >
14550
+ originEvent:
14551
+ | PickFromUnion_2<
14552
+ NativeBehaviorEvent,
14553
+ 'type',
14554
+ 'drag.drop' | 'clipboard.paste'
14555
+ >
14556
+ | InputBehaviorEvent_2
14391
14557
  })
14392
14558
  | {
14393
14559
  type: 'serialization.success'
@@ -14748,22 +14914,26 @@ declare const editorMachine: StateMachine<
14748
14914
  mimeType: `${string}/${string}`
14749
14915
  reason: string
14750
14916
  } & {
14751
- originEvent: PickFromUnion_2<
14752
- NativeBehaviorEvent,
14753
- 'type',
14754
- 'drag.drop' | 'clipboard.paste'
14755
- >
14917
+ originEvent:
14918
+ | PickFromUnion_2<
14919
+ NativeBehaviorEvent,
14920
+ 'type',
14921
+ 'drag.drop' | 'clipboard.paste'
14922
+ >
14923
+ | InputBehaviorEvent_2
14756
14924
  })
14757
14925
  | ({
14758
14926
  type: 'deserialization.success'
14759
14927
  data: Array<PortableTextBlock>
14760
14928
  mimeType: `${string}/${string}`
14761
14929
  } & {
14762
- originEvent: PickFromUnion_2<
14763
- NativeBehaviorEvent,
14764
- 'type',
14765
- 'drag.drop' | 'clipboard.paste'
14766
- >
14930
+ originEvent:
14931
+ | PickFromUnion_2<
14932
+ NativeBehaviorEvent,
14933
+ 'type',
14934
+ 'drag.drop' | 'clipboard.paste'
14935
+ >
14936
+ | InputBehaviorEvent_2
14767
14937
  })
14768
14938
  | {
14769
14939
  type: 'serialization.success'
@@ -15060,22 +15230,26 @@ declare const editorMachine: StateMachine<
15060
15230
  mimeType: `${string}/${string}`
15061
15231
  reason: string
15062
15232
  } & {
15063
- originEvent: PickFromUnion_2<
15064
- NativeBehaviorEvent,
15065
- 'type',
15066
- 'drag.drop' | 'clipboard.paste'
15067
- >
15233
+ originEvent:
15234
+ | PickFromUnion_2<
15235
+ NativeBehaviorEvent,
15236
+ 'type',
15237
+ 'drag.drop' | 'clipboard.paste'
15238
+ >
15239
+ | InputBehaviorEvent_2
15068
15240
  })
15069
15241
  | ({
15070
15242
  type: 'deserialization.success'
15071
15243
  data: Array<PortableTextBlock>
15072
15244
  mimeType: `${string}/${string}`
15073
15245
  } & {
15074
- originEvent: PickFromUnion_2<
15075
- NativeBehaviorEvent,
15076
- 'type',
15077
- 'drag.drop' | 'clipboard.paste'
15078
- >
15246
+ originEvent:
15247
+ | PickFromUnion_2<
15248
+ NativeBehaviorEvent,
15249
+ 'type',
15250
+ 'drag.drop' | 'clipboard.paste'
15251
+ >
15252
+ | InputBehaviorEvent_2
15079
15253
  })
15080
15254
  | {
15081
15255
  type: 'serialization.success'
@@ -15436,22 +15610,26 @@ declare const editorMachine: StateMachine<
15436
15610
  mimeType: `${string}/${string}`
15437
15611
  reason: string
15438
15612
  } & {
15439
- originEvent: PickFromUnion_2<
15440
- NativeBehaviorEvent,
15441
- 'type',
15442
- 'drag.drop' | 'clipboard.paste'
15443
- >
15613
+ originEvent:
15614
+ | PickFromUnion_2<
15615
+ NativeBehaviorEvent,
15616
+ 'type',
15617
+ 'drag.drop' | 'clipboard.paste'
15618
+ >
15619
+ | InputBehaviorEvent_2
15444
15620
  })
15445
15621
  | ({
15446
15622
  type: 'deserialization.success'
15447
15623
  data: Array<PortableTextBlock>
15448
15624
  mimeType: `${string}/${string}`
15449
15625
  } & {
15450
- originEvent: PickFromUnion_2<
15451
- NativeBehaviorEvent,
15452
- 'type',
15453
- 'drag.drop' | 'clipboard.paste'
15454
- >
15626
+ originEvent:
15627
+ | PickFromUnion_2<
15628
+ NativeBehaviorEvent,
15629
+ 'type',
15630
+ 'drag.drop' | 'clipboard.paste'
15631
+ >
15632
+ | InputBehaviorEvent_2
15455
15633
  })
15456
15634
  | {
15457
15635
  type: 'serialization.success'
@@ -15751,22 +15929,26 @@ declare const editorMachine: StateMachine<
15751
15929
  mimeType: `${string}/${string}`
15752
15930
  reason: string
15753
15931
  } & {
15754
- originEvent: PickFromUnion_2<
15755
- NativeBehaviorEvent,
15756
- 'type',
15757
- 'drag.drop' | 'clipboard.paste'
15758
- >
15932
+ originEvent:
15933
+ | PickFromUnion_2<
15934
+ NativeBehaviorEvent,
15935
+ 'type',
15936
+ 'drag.drop' | 'clipboard.paste'
15937
+ >
15938
+ | InputBehaviorEvent_2
15759
15939
  })
15760
15940
  | ({
15761
15941
  type: 'deserialization.success'
15762
15942
  data: Array<PortableTextBlock>
15763
15943
  mimeType: `${string}/${string}`
15764
15944
  } & {
15765
- originEvent: PickFromUnion_2<
15766
- NativeBehaviorEvent,
15767
- 'type',
15768
- 'drag.drop' | 'clipboard.paste'
15769
- >
15945
+ originEvent:
15946
+ | PickFromUnion_2<
15947
+ NativeBehaviorEvent,
15948
+ 'type',
15949
+ 'drag.drop' | 'clipboard.paste'
15950
+ >
15951
+ | InputBehaviorEvent_2
15770
15952
  })
15771
15953
  | {
15772
15954
  type: 'serialization.success'
@@ -16127,22 +16309,26 @@ declare const editorMachine: StateMachine<
16127
16309
  mimeType: `${string}/${string}`
16128
16310
  reason: string
16129
16311
  } & {
16130
- originEvent: PickFromUnion_2<
16131
- NativeBehaviorEvent,
16132
- 'type',
16133
- 'drag.drop' | 'clipboard.paste'
16134
- >
16312
+ originEvent:
16313
+ | PickFromUnion_2<
16314
+ NativeBehaviorEvent,
16315
+ 'type',
16316
+ 'drag.drop' | 'clipboard.paste'
16317
+ >
16318
+ | InputBehaviorEvent_2
16135
16319
  })
16136
16320
  | ({
16137
16321
  type: 'deserialization.success'
16138
16322
  data: Array<PortableTextBlock>
16139
16323
  mimeType: `${string}/${string}`
16140
16324
  } & {
16141
- originEvent: PickFromUnion_2<
16142
- NativeBehaviorEvent,
16143
- 'type',
16144
- 'drag.drop' | 'clipboard.paste'
16145
- >
16325
+ originEvent:
16326
+ | PickFromUnion_2<
16327
+ NativeBehaviorEvent,
16328
+ 'type',
16329
+ 'drag.drop' | 'clipboard.paste'
16330
+ >
16331
+ | InputBehaviorEvent_2
16146
16332
  })
16147
16333
  | {
16148
16334
  type: 'serialization.success'
@@ -16495,22 +16681,26 @@ declare const editorMachine: StateMachine<
16495
16681
  mimeType: `${string}/${string}`
16496
16682
  reason: string
16497
16683
  } & {
16498
- originEvent: PickFromUnion_2<
16499
- NativeBehaviorEvent,
16500
- 'type',
16501
- 'drag.drop' | 'clipboard.paste'
16502
- >
16684
+ originEvent:
16685
+ | PickFromUnion_2<
16686
+ NativeBehaviorEvent,
16687
+ 'type',
16688
+ 'drag.drop' | 'clipboard.paste'
16689
+ >
16690
+ | InputBehaviorEvent_2
16503
16691
  })
16504
16692
  | ({
16505
16693
  type: 'deserialization.success'
16506
16694
  data: Array<PortableTextBlock>
16507
16695
  mimeType: `${string}/${string}`
16508
16696
  } & {
16509
- originEvent: PickFromUnion_2<
16510
- NativeBehaviorEvent,
16511
- 'type',
16512
- 'drag.drop' | 'clipboard.paste'
16513
- >
16697
+ originEvent:
16698
+ | PickFromUnion_2<
16699
+ NativeBehaviorEvent,
16700
+ 'type',
16701
+ 'drag.drop' | 'clipboard.paste'
16702
+ >
16703
+ | InputBehaviorEvent_2
16514
16704
  })
16515
16705
  | {
16516
16706
  type: 'serialization.success'
@@ -16871,22 +17061,26 @@ declare const editorMachine: StateMachine<
16871
17061
  mimeType: `${string}/${string}`
16872
17062
  reason: string
16873
17063
  } & {
16874
- originEvent: PickFromUnion_2<
16875
- NativeBehaviorEvent,
16876
- 'type',
16877
- 'drag.drop' | 'clipboard.paste'
16878
- >
17064
+ originEvent:
17065
+ | PickFromUnion_2<
17066
+ NativeBehaviorEvent,
17067
+ 'type',
17068
+ 'drag.drop' | 'clipboard.paste'
17069
+ >
17070
+ | InputBehaviorEvent_2
16879
17071
  })
16880
17072
  | ({
16881
17073
  type: 'deserialization.success'
16882
17074
  data: Array<PortableTextBlock>
16883
17075
  mimeType: `${string}/${string}`
16884
17076
  } & {
16885
- originEvent: PickFromUnion_2<
16886
- NativeBehaviorEvent,
16887
- 'type',
16888
- 'drag.drop' | 'clipboard.paste'
16889
- >
17077
+ originEvent:
17078
+ | PickFromUnion_2<
17079
+ NativeBehaviorEvent,
17080
+ 'type',
17081
+ 'drag.drop' | 'clipboard.paste'
17082
+ >
17083
+ | InputBehaviorEvent_2
16890
17084
  })
16891
17085
  | {
16892
17086
  type: 'serialization.success'
@@ -17192,22 +17386,26 @@ declare const editorMachine: StateMachine<
17192
17386
  mimeType: `${string}/${string}`
17193
17387
  reason: string
17194
17388
  } & {
17195
- originEvent: PickFromUnion_2<
17196
- NativeBehaviorEvent,
17197
- 'type',
17198
- 'drag.drop' | 'clipboard.paste'
17199
- >
17389
+ originEvent:
17390
+ | PickFromUnion_2<
17391
+ NativeBehaviorEvent,
17392
+ 'type',
17393
+ 'drag.drop' | 'clipboard.paste'
17394
+ >
17395
+ | InputBehaviorEvent_2
17200
17396
  })
17201
17397
  | ({
17202
17398
  type: 'deserialization.success'
17203
17399
  data: Array<PortableTextBlock>
17204
17400
  mimeType: `${string}/${string}`
17205
17401
  } & {
17206
- originEvent: PickFromUnion_2<
17207
- NativeBehaviorEvent,
17208
- 'type',
17209
- 'drag.drop' | 'clipboard.paste'
17210
- >
17402
+ originEvent:
17403
+ | PickFromUnion_2<
17404
+ NativeBehaviorEvent,
17405
+ 'type',
17406
+ 'drag.drop' | 'clipboard.paste'
17407
+ >
17408
+ | InputBehaviorEvent_2
17211
17409
  })
17212
17410
  | {
17213
17411
  type: 'serialization.success'
@@ -17568,22 +17766,26 @@ declare const editorMachine: StateMachine<
17568
17766
  mimeType: `${string}/${string}`
17569
17767
  reason: string
17570
17768
  } & {
17571
- originEvent: PickFromUnion_2<
17572
- NativeBehaviorEvent,
17573
- 'type',
17574
- 'drag.drop' | 'clipboard.paste'
17575
- >
17769
+ originEvent:
17770
+ | PickFromUnion_2<
17771
+ NativeBehaviorEvent,
17772
+ 'type',
17773
+ 'drag.drop' | 'clipboard.paste'
17774
+ >
17775
+ | InputBehaviorEvent_2
17576
17776
  })
17577
17777
  | ({
17578
17778
  type: 'deserialization.success'
17579
17779
  data: Array<PortableTextBlock>
17580
17780
  mimeType: `${string}/${string}`
17581
17781
  } & {
17582
- originEvent: PickFromUnion_2<
17583
- NativeBehaviorEvent,
17584
- 'type',
17585
- 'drag.drop' | 'clipboard.paste'
17586
- >
17782
+ originEvent:
17783
+ | PickFromUnion_2<
17784
+ NativeBehaviorEvent,
17785
+ 'type',
17786
+ 'drag.drop' | 'clipboard.paste'
17787
+ >
17788
+ | InputBehaviorEvent_2
17587
17789
  })
17588
17790
  | {
17589
17791
  type: 'serialization.success'
@@ -17890,22 +18092,26 @@ declare const editorMachine: StateMachine<
17890
18092
  mimeType: `${string}/${string}`
17891
18093
  reason: string
17892
18094
  } & {
17893
- originEvent: PickFromUnion_2<
17894
- NativeBehaviorEvent,
17895
- 'type',
17896
- 'drag.drop' | 'clipboard.paste'
17897
- >
18095
+ originEvent:
18096
+ | PickFromUnion_2<
18097
+ NativeBehaviorEvent,
18098
+ 'type',
18099
+ 'drag.drop' | 'clipboard.paste'
18100
+ >
18101
+ | InputBehaviorEvent_2
17898
18102
  })
17899
18103
  | ({
17900
18104
  type: 'deserialization.success'
17901
18105
  data: Array<PortableTextBlock>
17902
18106
  mimeType: `${string}/${string}`
17903
18107
  } & {
17904
- originEvent: PickFromUnion_2<
17905
- NativeBehaviorEvent,
17906
- 'type',
17907
- 'drag.drop' | 'clipboard.paste'
17908
- >
18108
+ originEvent:
18109
+ | PickFromUnion_2<
18110
+ NativeBehaviorEvent,
18111
+ 'type',
18112
+ 'drag.drop' | 'clipboard.paste'
18113
+ >
18114
+ | InputBehaviorEvent_2
17909
18115
  })
17910
18116
  | {
17911
18117
  type: 'serialization.success'
@@ -18266,22 +18472,26 @@ declare const editorMachine: StateMachine<
18266
18472
  mimeType: `${string}/${string}`
18267
18473
  reason: string
18268
18474
  } & {
18269
- originEvent: PickFromUnion_2<
18270
- NativeBehaviorEvent,
18271
- 'type',
18272
- 'drag.drop' | 'clipboard.paste'
18273
- >
18475
+ originEvent:
18476
+ | PickFromUnion_2<
18477
+ NativeBehaviorEvent,
18478
+ 'type',
18479
+ 'drag.drop' | 'clipboard.paste'
18480
+ >
18481
+ | InputBehaviorEvent_2
18274
18482
  })
18275
18483
  | ({
18276
18484
  type: 'deserialization.success'
18277
18485
  data: Array<PortableTextBlock>
18278
18486
  mimeType: `${string}/${string}`
18279
18487
  } & {
18280
- originEvent: PickFromUnion_2<
18281
- NativeBehaviorEvent,
18282
- 'type',
18283
- 'drag.drop' | 'clipboard.paste'
18284
- >
18488
+ originEvent:
18489
+ | PickFromUnion_2<
18490
+ NativeBehaviorEvent,
18491
+ 'type',
18492
+ 'drag.drop' | 'clipboard.paste'
18493
+ >
18494
+ | InputBehaviorEvent_2
18285
18495
  })
18286
18496
  | {
18287
18497
  type: 'serialization.success'
@@ -18579,22 +18789,26 @@ declare const editorMachine: StateMachine<
18579
18789
  mimeType: `${string}/${string}`
18580
18790
  reason: string
18581
18791
  } & {
18582
- originEvent: PickFromUnion_2<
18583
- NativeBehaviorEvent,
18584
- 'type',
18585
- 'drag.drop' | 'clipboard.paste'
18586
- >
18792
+ originEvent:
18793
+ | PickFromUnion_2<
18794
+ NativeBehaviorEvent,
18795
+ 'type',
18796
+ 'drag.drop' | 'clipboard.paste'
18797
+ >
18798
+ | InputBehaviorEvent_2
18587
18799
  })
18588
18800
  | ({
18589
18801
  type: 'deserialization.success'
18590
18802
  data: Array<PortableTextBlock>
18591
18803
  mimeType: `${string}/${string}`
18592
18804
  } & {
18593
- originEvent: PickFromUnion_2<
18594
- NativeBehaviorEvent,
18595
- 'type',
18596
- 'drag.drop' | 'clipboard.paste'
18597
- >
18805
+ originEvent:
18806
+ | PickFromUnion_2<
18807
+ NativeBehaviorEvent,
18808
+ 'type',
18809
+ 'drag.drop' | 'clipboard.paste'
18810
+ >
18811
+ | InputBehaviorEvent_2
18598
18812
  })
18599
18813
  | {
18600
18814
  type: 'serialization.success'
@@ -18955,22 +19169,26 @@ declare const editorMachine: StateMachine<
18955
19169
  mimeType: `${string}/${string}`
18956
19170
  reason: string
18957
19171
  } & {
18958
- originEvent: PickFromUnion_2<
18959
- NativeBehaviorEvent,
18960
- 'type',
18961
- 'drag.drop' | 'clipboard.paste'
18962
- >
19172
+ originEvent:
19173
+ | PickFromUnion_2<
19174
+ NativeBehaviorEvent,
19175
+ 'type',
19176
+ 'drag.drop' | 'clipboard.paste'
19177
+ >
19178
+ | InputBehaviorEvent_2
18963
19179
  })
18964
19180
  | ({
18965
19181
  type: 'deserialization.success'
18966
19182
  data: Array<PortableTextBlock>
18967
19183
  mimeType: `${string}/${string}`
18968
19184
  } & {
18969
- originEvent: PickFromUnion_2<
18970
- NativeBehaviorEvent,
18971
- 'type',
18972
- 'drag.drop' | 'clipboard.paste'
18973
- >
19185
+ originEvent:
19186
+ | PickFromUnion_2<
19187
+ NativeBehaviorEvent,
19188
+ 'type',
19189
+ 'drag.drop' | 'clipboard.paste'
19190
+ >
19191
+ | InputBehaviorEvent_2
18974
19192
  })
18975
19193
  | {
18976
19194
  type: 'serialization.success'
@@ -19272,22 +19490,26 @@ declare const editorMachine: StateMachine<
19272
19490
  mimeType: `${string}/${string}`
19273
19491
  reason: string
19274
19492
  } & {
19275
- originEvent: PickFromUnion_2<
19276
- NativeBehaviorEvent,
19277
- 'type',
19278
- 'drag.drop' | 'clipboard.paste'
19279
- >
19493
+ originEvent:
19494
+ | PickFromUnion_2<
19495
+ NativeBehaviorEvent,
19496
+ 'type',
19497
+ 'drag.drop' | 'clipboard.paste'
19498
+ >
19499
+ | InputBehaviorEvent_2
19280
19500
  })
19281
19501
  | ({
19282
19502
  type: 'deserialization.success'
19283
19503
  data: Array<PortableTextBlock>
19284
19504
  mimeType: `${string}/${string}`
19285
19505
  } & {
19286
- originEvent: PickFromUnion_2<
19287
- NativeBehaviorEvent,
19288
- 'type',
19289
- 'drag.drop' | 'clipboard.paste'
19290
- >
19506
+ originEvent:
19507
+ | PickFromUnion_2<
19508
+ NativeBehaviorEvent,
19509
+ 'type',
19510
+ 'drag.drop' | 'clipboard.paste'
19511
+ >
19512
+ | InputBehaviorEvent_2
19291
19513
  })
19292
19514
  | {
19293
19515
  type: 'serialization.success'
@@ -19648,22 +19870,26 @@ declare const editorMachine: StateMachine<
19648
19870
  mimeType: `${string}/${string}`
19649
19871
  reason: string
19650
19872
  } & {
19651
- originEvent: PickFromUnion_2<
19652
- NativeBehaviorEvent,
19653
- 'type',
19654
- 'drag.drop' | 'clipboard.paste'
19655
- >
19873
+ originEvent:
19874
+ | PickFromUnion_2<
19875
+ NativeBehaviorEvent,
19876
+ 'type',
19877
+ 'drag.drop' | 'clipboard.paste'
19878
+ >
19879
+ | InputBehaviorEvent_2
19656
19880
  })
19657
19881
  | ({
19658
19882
  type: 'deserialization.success'
19659
19883
  data: Array<PortableTextBlock>
19660
19884
  mimeType: `${string}/${string}`
19661
19885
  } & {
19662
- originEvent: PickFromUnion_2<
19663
- NativeBehaviorEvent,
19664
- 'type',
19665
- 'drag.drop' | 'clipboard.paste'
19666
- >
19886
+ originEvent:
19887
+ | PickFromUnion_2<
19888
+ NativeBehaviorEvent,
19889
+ 'type',
19890
+ 'drag.drop' | 'clipboard.paste'
19891
+ >
19892
+ | InputBehaviorEvent_2
19667
19893
  })
19668
19894
  | {
19669
19895
  type: 'serialization.success'
@@ -19969,22 +20195,26 @@ declare const editorMachine: StateMachine<
19969
20195
  mimeType: `${string}/${string}`
19970
20196
  reason: string
19971
20197
  } & {
19972
- originEvent: PickFromUnion_2<
19973
- NativeBehaviorEvent,
19974
- 'type',
19975
- 'drag.drop' | 'clipboard.paste'
19976
- >
20198
+ originEvent:
20199
+ | PickFromUnion_2<
20200
+ NativeBehaviorEvent,
20201
+ 'type',
20202
+ 'drag.drop' | 'clipboard.paste'
20203
+ >
20204
+ | InputBehaviorEvent_2
19977
20205
  })
19978
20206
  | ({
19979
20207
  type: 'deserialization.success'
19980
20208
  data: Array<PortableTextBlock>
19981
20209
  mimeType: `${string}/${string}`
19982
20210
  } & {
19983
- originEvent: PickFromUnion_2<
19984
- NativeBehaviorEvent,
19985
- 'type',
19986
- 'drag.drop' | 'clipboard.paste'
19987
- >
20211
+ originEvent:
20212
+ | PickFromUnion_2<
20213
+ NativeBehaviorEvent,
20214
+ 'type',
20215
+ 'drag.drop' | 'clipboard.paste'
20216
+ >
20217
+ | InputBehaviorEvent_2
19988
20218
  })
19989
20219
  | {
19990
20220
  type: 'serialization.success'
@@ -20345,22 +20575,26 @@ declare const editorMachine: StateMachine<
20345
20575
  mimeType: `${string}/${string}`
20346
20576
  reason: string
20347
20577
  } & {
20348
- originEvent: PickFromUnion_2<
20349
- NativeBehaviorEvent,
20350
- 'type',
20351
- 'drag.drop' | 'clipboard.paste'
20352
- >
20578
+ originEvent:
20579
+ | PickFromUnion_2<
20580
+ NativeBehaviorEvent,
20581
+ 'type',
20582
+ 'drag.drop' | 'clipboard.paste'
20583
+ >
20584
+ | InputBehaviorEvent_2
20353
20585
  })
20354
20586
  | ({
20355
20587
  type: 'deserialization.success'
20356
20588
  data: Array<PortableTextBlock>
20357
20589
  mimeType: `${string}/${string}`
20358
20590
  } & {
20359
- originEvent: PickFromUnion_2<
20360
- NativeBehaviorEvent,
20361
- 'type',
20362
- 'drag.drop' | 'clipboard.paste'
20363
- >
20591
+ originEvent:
20592
+ | PickFromUnion_2<
20593
+ NativeBehaviorEvent,
20594
+ 'type',
20595
+ 'drag.drop' | 'clipboard.paste'
20596
+ >
20597
+ | InputBehaviorEvent_2
20364
20598
  })
20365
20599
  | {
20366
20600
  type: 'serialization.success'
@@ -20680,22 +20914,26 @@ declare const editorMachine: StateMachine<
20680
20914
  mimeType: `${string}/${string}`
20681
20915
  reason: string
20682
20916
  } & {
20683
- originEvent: PickFromUnion_2<
20684
- NativeBehaviorEvent,
20685
- 'type',
20686
- 'drag.drop' | 'clipboard.paste'
20687
- >
20917
+ originEvent:
20918
+ | PickFromUnion_2<
20919
+ NativeBehaviorEvent,
20920
+ 'type',
20921
+ 'drag.drop' | 'clipboard.paste'
20922
+ >
20923
+ | InputBehaviorEvent_2
20688
20924
  })
20689
20925
  | ({
20690
20926
  type: 'deserialization.success'
20691
20927
  data: Array<PortableTextBlock>
20692
20928
  mimeType: `${string}/${string}`
20693
20929
  } & {
20694
- originEvent: PickFromUnion_2<
20695
- NativeBehaviorEvent,
20696
- 'type',
20697
- 'drag.drop' | 'clipboard.paste'
20698
- >
20930
+ originEvent:
20931
+ | PickFromUnion_2<
20932
+ NativeBehaviorEvent,
20933
+ 'type',
20934
+ 'drag.drop' | 'clipboard.paste'
20935
+ >
20936
+ | InputBehaviorEvent_2
20699
20937
  })
20700
20938
  | {
20701
20939
  type: 'serialization.success'
@@ -21087,22 +21325,26 @@ declare const editorMachine: StateMachine<
21087
21325
  mimeType: `${string}/${string}`
21088
21326
  reason: string
21089
21327
  } & {
21090
- originEvent: PickFromUnion_2<
21091
- NativeBehaviorEvent,
21092
- 'type',
21093
- 'drag.drop' | 'clipboard.paste'
21094
- >
21328
+ originEvent:
21329
+ | PickFromUnion_2<
21330
+ NativeBehaviorEvent,
21331
+ 'type',
21332
+ 'drag.drop' | 'clipboard.paste'
21333
+ >
21334
+ | InputBehaviorEvent_2
21095
21335
  })
21096
21336
  | ({
21097
21337
  type: 'deserialization.success'
21098
21338
  data: Array<PortableTextBlock>
21099
21339
  mimeType: `${string}/${string}`
21100
21340
  } & {
21101
- originEvent: PickFromUnion_2<
21102
- NativeBehaviorEvent,
21103
- 'type',
21104
- 'drag.drop' | 'clipboard.paste'
21105
- >
21341
+ originEvent:
21342
+ | PickFromUnion_2<
21343
+ NativeBehaviorEvent,
21344
+ 'type',
21345
+ 'drag.drop' | 'clipboard.paste'
21346
+ >
21347
+ | InputBehaviorEvent_2
21106
21348
  })
21107
21349
  | {
21108
21350
  type: 'serialization.success'
@@ -21458,22 +21700,26 @@ declare const editorMachine: StateMachine<
21458
21700
  mimeType: `${string}/${string}`
21459
21701
  reason: string
21460
21702
  } & {
21461
- originEvent: PickFromUnion_2<
21462
- NativeBehaviorEvent,
21463
- 'type',
21464
- 'drag.drop' | 'clipboard.paste'
21465
- >
21703
+ originEvent:
21704
+ | PickFromUnion_2<
21705
+ NativeBehaviorEvent,
21706
+ 'type',
21707
+ 'drag.drop' | 'clipboard.paste'
21708
+ >
21709
+ | InputBehaviorEvent_2
21466
21710
  })
21467
21711
  | ({
21468
21712
  type: 'deserialization.success'
21469
21713
  data: Array<PortableTextBlock>
21470
21714
  mimeType: `${string}/${string}`
21471
21715
  } & {
21472
- originEvent: PickFromUnion_2<
21473
- NativeBehaviorEvent,
21474
- 'type',
21475
- 'drag.drop' | 'clipboard.paste'
21476
- >
21716
+ originEvent:
21717
+ | PickFromUnion_2<
21718
+ NativeBehaviorEvent,
21719
+ 'type',
21720
+ 'drag.drop' | 'clipboard.paste'
21721
+ >
21722
+ | InputBehaviorEvent_2
21477
21723
  })
21478
21724
  | {
21479
21725
  type: 'serialization.success'
@@ -21846,22 +22092,26 @@ declare const editorMachine: StateMachine<
21846
22092
  mimeType: `${string}/${string}`
21847
22093
  reason: string
21848
22094
  } & {
21849
- originEvent: PickFromUnion_2<
21850
- NativeBehaviorEvent,
21851
- 'type',
21852
- 'drag.drop' | 'clipboard.paste'
21853
- >
22095
+ originEvent:
22096
+ | PickFromUnion_2<
22097
+ NativeBehaviorEvent,
22098
+ 'type',
22099
+ 'drag.drop' | 'clipboard.paste'
22100
+ >
22101
+ | InputBehaviorEvent_2
21854
22102
  })
21855
22103
  | ({
21856
22104
  type: 'deserialization.success'
21857
22105
  data: Array<PortableTextBlock>
21858
22106
  mimeType: `${string}/${string}`
21859
22107
  } & {
21860
- originEvent: PickFromUnion_2<
21861
- NativeBehaviorEvent,
21862
- 'type',
21863
- 'drag.drop' | 'clipboard.paste'
21864
- >
22108
+ originEvent:
22109
+ | PickFromUnion_2<
22110
+ NativeBehaviorEvent,
22111
+ 'type',
22112
+ 'drag.drop' | 'clipboard.paste'
22113
+ >
22114
+ | InputBehaviorEvent_2
21865
22115
  })
21866
22116
  | {
21867
22117
  type: 'serialization.success'
@@ -22217,22 +22467,26 @@ declare const editorMachine: StateMachine<
22217
22467
  mimeType: `${string}/${string}`
22218
22468
  reason: string
22219
22469
  } & {
22220
- originEvent: PickFromUnion_2<
22221
- NativeBehaviorEvent,
22222
- 'type',
22223
- 'drag.drop' | 'clipboard.paste'
22224
- >
22470
+ originEvent:
22471
+ | PickFromUnion_2<
22472
+ NativeBehaviorEvent,
22473
+ 'type',
22474
+ 'drag.drop' | 'clipboard.paste'
22475
+ >
22476
+ | InputBehaviorEvent_2
22225
22477
  })
22226
22478
  | ({
22227
22479
  type: 'deserialization.success'
22228
22480
  data: Array<PortableTextBlock>
22229
22481
  mimeType: `${string}/${string}`
22230
22482
  } & {
22231
- originEvent: PickFromUnion_2<
22232
- NativeBehaviorEvent,
22233
- 'type',
22234
- 'drag.drop' | 'clipboard.paste'
22235
- >
22483
+ originEvent:
22484
+ | PickFromUnion_2<
22485
+ NativeBehaviorEvent,
22486
+ 'type',
22487
+ 'drag.drop' | 'clipboard.paste'
22488
+ >
22489
+ | InputBehaviorEvent_2
22236
22490
  })
22237
22491
  | {
22238
22492
  type: 'serialization.success'
@@ -22854,6 +23108,24 @@ declare type HistoryItem = {
22854
23108
  timestamp: Date
22855
23109
  }
22856
23110
 
23111
+ /**
23112
+ * Used to represent native InputEvents that hold a DataTransfer object.
23113
+ *
23114
+ * These can either be one of:
23115
+ *
23116
+ * - insertFromPaste
23117
+ * - insertFromPasteAsQuotation
23118
+ * - insertFromDrop
23119
+ * - insertReplacementText
23120
+ * - insertFromYank
23121
+ */
23122
+ declare type InputBehaviorEvent = {
23123
+ type: 'input.*'
23124
+ originEvent: {
23125
+ dataTransfer: DataTransfer
23126
+ }
23127
+ }
23128
+
22857
23129
  declare type InsertPlacement = 'auto' | 'after' | 'before'
22858
23130
 
22859
23131
  declare type InternalPatchEvent = NamespaceEvent<PatchEvent, 'internal'> & {
@@ -23016,9 +23288,10 @@ declare type NamespaceEvent<
23016
23288
  */
23017
23289
  declare type NativeBehaviorEvent =
23018
23290
  | ClipboardBehaviorEvent
23291
+ | DragBehaviorEvent
23292
+ | InputBehaviorEvent
23019
23293
  | KeyboardBehaviorEvent
23020
23294
  | MouseBehaviorEvent
23021
- | DragBehaviorEvent
23022
23295
 
23023
23296
  /**
23024
23297
  * @public
@@ -23309,11 +23582,13 @@ declare type SyntheticBehaviorEvent =
23309
23582
  'type',
23310
23583
  'deserialization.failure' | 'deserialization.success'
23311
23584
  > & {
23312
- originEvent: PickFromUnion<
23313
- NativeBehaviorEvent,
23314
- 'type',
23315
- 'drag.drop' | 'clipboard.paste'
23316
- >
23585
+ originEvent:
23586
+ | PickFromUnion<
23587
+ NativeBehaviorEvent,
23588
+ 'type',
23589
+ 'drag.drop' | 'clipboard.paste'
23590
+ >
23591
+ | InputBehaviorEvent
23317
23592
  })
23318
23593
  | {
23319
23594
  type: 'serialization.success'