@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
package/lib/index.d.ts CHANGED
@@ -70,7 +70,10 @@ import {
70
70
  BlockOffset as BlockOffset_2,
71
71
  PortableTextMemberSchemaTypes as PortableTextMemberSchemaTypes_2,
72
72
  } from '..'
73
- import {InsertPlacement as InsertPlacement_2} from '../behaviors/behavior.types'
73
+ import {
74
+ InputBehaviorEvent as InputBehaviorEvent_2,
75
+ InsertPlacement as InsertPlacement_2,
76
+ } from '../behaviors/behavior.types'
74
77
  import {MIMEType as MIMEType_2} from '../internal-utils/mime-type'
75
78
  import {PickFromUnion as PickFromUnion_2} from '../type-utils'
76
79
 
@@ -112,11 +115,13 @@ declare type Behavior<
112
115
  ? ClipboardBehaviorEvent
113
116
  : TBehaviorEventType extends 'drag.*'
114
117
  ? DragBehaviorEvent
115
- : TBehaviorEventType extends 'keyboard.*'
116
- ? KeyboardBehaviorEvent
117
- : TBehaviorEventType extends 'mouse.*'
118
- ? MouseBehaviorEvent
119
- : PickFromUnion<BehaviorEvent, 'type', TBehaviorEventType>,
118
+ : TBehaviorEventType extends 'input.*'
119
+ ? InputBehaviorEvent
120
+ : TBehaviorEventType extends 'keyboard.*'
121
+ ? KeyboardBehaviorEvent
122
+ : TBehaviorEventType extends 'mouse.*'
123
+ ? MouseBehaviorEvent
124
+ : PickFromUnion<BehaviorEvent, 'type', TBehaviorEventType>,
120
125
  > = {
121
126
  /**
122
127
  * The internal editor event that triggers this behavior.
@@ -184,6 +189,9 @@ declare type BehaviorEvent =
184
189
  | {
185
190
  type: 'drag.*'
186
191
  }
192
+ | {
193
+ type: 'input.*'
194
+ }
187
195
  | {
188
196
  type: 'keyboard.*'
189
197
  }
@@ -386,11 +394,13 @@ declare type CustomBehaviorEvent<
386
394
  declare type DataBehaviorEvent =
387
395
  | {
388
396
  type: 'deserialize'
389
- originEvent: PickFromUnion<
390
- NativeBehaviorEvent,
391
- 'type',
392
- 'drag.drop' | 'clipboard.paste'
393
- >
397
+ originEvent:
398
+ | PickFromUnion<
399
+ NativeBehaviorEvent,
400
+ 'type',
401
+ 'drag.drop' | 'clipboard.paste'
402
+ >
403
+ | InputBehaviorEvent
394
404
  }
395
405
  | {
396
406
  type: 'serialize'
@@ -954,22 +964,26 @@ declare const editorMachine: StateMachine<
954
964
  mimeType: `${string}/${string}`
955
965
  reason: string
956
966
  } & {
957
- originEvent: PickFromUnion_2<
958
- NativeBehaviorEvent,
959
- 'type',
960
- 'drag.drop' | 'clipboard.paste'
961
- >
967
+ originEvent:
968
+ | PickFromUnion_2<
969
+ NativeBehaviorEvent,
970
+ 'type',
971
+ 'drag.drop' | 'clipboard.paste'
972
+ >
973
+ | InputBehaviorEvent_2
962
974
  })
963
975
  | ({
964
976
  type: 'deserialization.success'
965
977
  data: Array<PortableTextBlock>
966
978
  mimeType: `${string}/${string}`
967
979
  } & {
968
- originEvent: PickFromUnion_2<
969
- NativeBehaviorEvent,
970
- 'type',
971
- 'drag.drop' | 'clipboard.paste'
972
- >
980
+ originEvent:
981
+ | PickFromUnion_2<
982
+ NativeBehaviorEvent,
983
+ 'type',
984
+ 'drag.drop' | 'clipboard.paste'
985
+ >
986
+ | InputBehaviorEvent_2
973
987
  })
974
988
  | {
975
989
  type: 'serialization.success'
@@ -1409,22 +1423,26 @@ declare const editorMachine: StateMachine<
1409
1423
  mimeType: `${string}/${string}`
1410
1424
  reason: string
1411
1425
  } & {
1412
- originEvent: PickFromUnion_2<
1413
- NativeBehaviorEvent,
1414
- 'type',
1415
- 'drag.drop' | 'clipboard.paste'
1416
- >
1426
+ originEvent:
1427
+ | PickFromUnion_2<
1428
+ NativeBehaviorEvent,
1429
+ 'type',
1430
+ 'drag.drop' | 'clipboard.paste'
1431
+ >
1432
+ | InputBehaviorEvent_2
1417
1433
  })
1418
1434
  | ({
1419
1435
  type: 'deserialization.success'
1420
1436
  data: Array<PortableTextBlock>
1421
1437
  mimeType: `${string}/${string}`
1422
1438
  } & {
1423
- originEvent: PickFromUnion_2<
1424
- NativeBehaviorEvent,
1425
- 'type',
1426
- 'drag.drop' | 'clipboard.paste'
1427
- >
1439
+ originEvent:
1440
+ | PickFromUnion_2<
1441
+ NativeBehaviorEvent,
1442
+ 'type',
1443
+ 'drag.drop' | 'clipboard.paste'
1444
+ >
1445
+ | InputBehaviorEvent_2
1428
1446
  })
1429
1447
  | {
1430
1448
  type: 'serialization.success'
@@ -1753,22 +1771,26 @@ declare const editorMachine: StateMachine<
1753
1771
  mimeType: `${string}/${string}`
1754
1772
  reason: string
1755
1773
  } & {
1756
- originEvent: PickFromUnion_2<
1757
- NativeBehaviorEvent,
1758
- 'type',
1759
- 'drag.drop' | 'clipboard.paste'
1760
- >
1774
+ originEvent:
1775
+ | PickFromUnion_2<
1776
+ NativeBehaviorEvent,
1777
+ 'type',
1778
+ 'drag.drop' | 'clipboard.paste'
1779
+ >
1780
+ | InputBehaviorEvent_2
1761
1781
  })
1762
1782
  | ({
1763
1783
  type: 'deserialization.success'
1764
1784
  data: Array<PortableTextBlock>
1765
1785
  mimeType: `${string}/${string}`
1766
1786
  } & {
1767
- originEvent: PickFromUnion_2<
1768
- NativeBehaviorEvent,
1769
- 'type',
1770
- 'drag.drop' | 'clipboard.paste'
1771
- >
1787
+ originEvent:
1788
+ | PickFromUnion_2<
1789
+ NativeBehaviorEvent,
1790
+ 'type',
1791
+ 'drag.drop' | 'clipboard.paste'
1792
+ >
1793
+ | InputBehaviorEvent_2
1772
1794
  })
1773
1795
  | {
1774
1796
  type: 'serialization.success'
@@ -2131,22 +2153,26 @@ declare const editorMachine: StateMachine<
2131
2153
  mimeType: `${string}/${string}`
2132
2154
  reason: string
2133
2155
  } & {
2134
- originEvent: PickFromUnion_2<
2135
- NativeBehaviorEvent,
2136
- 'type',
2137
- 'drag.drop' | 'clipboard.paste'
2138
- >
2156
+ originEvent:
2157
+ | PickFromUnion_2<
2158
+ NativeBehaviorEvent,
2159
+ 'type',
2160
+ 'drag.drop' | 'clipboard.paste'
2161
+ >
2162
+ | InputBehaviorEvent_2
2139
2163
  })
2140
2164
  | ({
2141
2165
  type: 'deserialization.success'
2142
2166
  data: Array<PortableTextBlock>
2143
2167
  mimeType: `${string}/${string}`
2144
2168
  } & {
2145
- originEvent: PickFromUnion_2<
2146
- NativeBehaviorEvent,
2147
- 'type',
2148
- 'drag.drop' | 'clipboard.paste'
2149
- >
2169
+ originEvent:
2170
+ | PickFromUnion_2<
2171
+ NativeBehaviorEvent,
2172
+ 'type',
2173
+ 'drag.drop' | 'clipboard.paste'
2174
+ >
2175
+ | InputBehaviorEvent_2
2150
2176
  })
2151
2177
  | {
2152
2178
  type: 'serialization.success'
@@ -2537,22 +2563,26 @@ declare const editorMachine: StateMachine<
2537
2563
  mimeType: `${string}/${string}`
2538
2564
  reason: string
2539
2565
  } & {
2540
- originEvent: PickFromUnion_2<
2541
- NativeBehaviorEvent,
2542
- 'type',
2543
- 'drag.drop' | 'clipboard.paste'
2544
- >
2566
+ originEvent:
2567
+ | PickFromUnion_2<
2568
+ NativeBehaviorEvent,
2569
+ 'type',
2570
+ 'drag.drop' | 'clipboard.paste'
2571
+ >
2572
+ | InputBehaviorEvent_2
2545
2573
  })
2546
2574
  | ({
2547
2575
  type: 'deserialization.success'
2548
2576
  data: Array<PortableTextBlock>
2549
2577
  mimeType: `${string}/${string}`
2550
2578
  } & {
2551
- originEvent: PickFromUnion_2<
2552
- NativeBehaviorEvent,
2553
- 'type',
2554
- 'drag.drop' | 'clipboard.paste'
2555
- >
2579
+ originEvent:
2580
+ | PickFromUnion_2<
2581
+ NativeBehaviorEvent,
2582
+ 'type',
2583
+ 'drag.drop' | 'clipboard.paste'
2584
+ >
2585
+ | InputBehaviorEvent_2
2556
2586
  })
2557
2587
  | {
2558
2588
  type: 'serialization.success'
@@ -2913,22 +2943,26 @@ declare const editorMachine: StateMachine<
2913
2943
  mimeType: `${string}/${string}`
2914
2944
  reason: string
2915
2945
  } & {
2916
- originEvent: PickFromUnion_2<
2917
- NativeBehaviorEvent,
2918
- 'type',
2919
- 'drag.drop' | 'clipboard.paste'
2920
- >
2946
+ originEvent:
2947
+ | PickFromUnion_2<
2948
+ NativeBehaviorEvent,
2949
+ 'type',
2950
+ 'drag.drop' | 'clipboard.paste'
2951
+ >
2952
+ | InputBehaviorEvent_2
2921
2953
  })
2922
2954
  | ({
2923
2955
  type: 'deserialization.success'
2924
2956
  data: Array<PortableTextBlock>
2925
2957
  mimeType: `${string}/${string}`
2926
2958
  } & {
2927
- originEvent: PickFromUnion_2<
2928
- NativeBehaviorEvent,
2929
- 'type',
2930
- 'drag.drop' | 'clipboard.paste'
2931
- >
2959
+ originEvent:
2960
+ | PickFromUnion_2<
2961
+ NativeBehaviorEvent,
2962
+ 'type',
2963
+ 'drag.drop' | 'clipboard.paste'
2964
+ >
2965
+ | InputBehaviorEvent_2
2932
2966
  })
2933
2967
  | {
2934
2968
  type: 'serialization.success'
@@ -3225,22 +3259,26 @@ declare const editorMachine: StateMachine<
3225
3259
  mimeType: `${string}/${string}`
3226
3260
  reason: string
3227
3261
  } & {
3228
- originEvent: PickFromUnion_2<
3229
- NativeBehaviorEvent,
3230
- 'type',
3231
- 'drag.drop' | 'clipboard.paste'
3232
- >
3262
+ originEvent:
3263
+ | PickFromUnion_2<
3264
+ NativeBehaviorEvent,
3265
+ 'type',
3266
+ 'drag.drop' | 'clipboard.paste'
3267
+ >
3268
+ | InputBehaviorEvent_2
3233
3269
  })
3234
3270
  | ({
3235
3271
  type: 'deserialization.success'
3236
3272
  data: Array<PortableTextBlock>
3237
3273
  mimeType: `${string}/${string}`
3238
3274
  } & {
3239
- originEvent: PickFromUnion_2<
3240
- NativeBehaviorEvent,
3241
- 'type',
3242
- 'drag.drop' | 'clipboard.paste'
3243
- >
3275
+ originEvent:
3276
+ | PickFromUnion_2<
3277
+ NativeBehaviorEvent,
3278
+ 'type',
3279
+ 'drag.drop' | 'clipboard.paste'
3280
+ >
3281
+ | InputBehaviorEvent_2
3244
3282
  })
3245
3283
  | {
3246
3284
  type: 'serialization.success'
@@ -3601,22 +3639,26 @@ declare const editorMachine: StateMachine<
3601
3639
  mimeType: `${string}/${string}`
3602
3640
  reason: string
3603
3641
  } & {
3604
- originEvent: PickFromUnion_2<
3605
- NativeBehaviorEvent,
3606
- 'type',
3607
- 'drag.drop' | 'clipboard.paste'
3608
- >
3642
+ originEvent:
3643
+ | PickFromUnion_2<
3644
+ NativeBehaviorEvent,
3645
+ 'type',
3646
+ 'drag.drop' | 'clipboard.paste'
3647
+ >
3648
+ | InputBehaviorEvent_2
3609
3649
  })
3610
3650
  | ({
3611
3651
  type: 'deserialization.success'
3612
3652
  data: Array<PortableTextBlock>
3613
3653
  mimeType: `${string}/${string}`
3614
3654
  } & {
3615
- originEvent: PickFromUnion_2<
3616
- NativeBehaviorEvent,
3617
- 'type',
3618
- 'drag.drop' | 'clipboard.paste'
3619
- >
3655
+ originEvent:
3656
+ | PickFromUnion_2<
3657
+ NativeBehaviorEvent,
3658
+ 'type',
3659
+ 'drag.drop' | 'clipboard.paste'
3660
+ >
3661
+ | InputBehaviorEvent_2
3620
3662
  })
3621
3663
  | {
3622
3664
  type: 'serialization.success'
@@ -3916,22 +3958,26 @@ declare const editorMachine: StateMachine<
3916
3958
  mimeType: `${string}/${string}`
3917
3959
  reason: string
3918
3960
  } & {
3919
- originEvent: PickFromUnion_2<
3920
- NativeBehaviorEvent,
3921
- 'type',
3922
- 'drag.drop' | 'clipboard.paste'
3923
- >
3961
+ originEvent:
3962
+ | PickFromUnion_2<
3963
+ NativeBehaviorEvent,
3964
+ 'type',
3965
+ 'drag.drop' | 'clipboard.paste'
3966
+ >
3967
+ | InputBehaviorEvent_2
3924
3968
  })
3925
3969
  | ({
3926
3970
  type: 'deserialization.success'
3927
3971
  data: Array<PortableTextBlock>
3928
3972
  mimeType: `${string}/${string}`
3929
3973
  } & {
3930
- originEvent: PickFromUnion_2<
3931
- NativeBehaviorEvent,
3932
- 'type',
3933
- 'drag.drop' | 'clipboard.paste'
3934
- >
3974
+ originEvent:
3975
+ | PickFromUnion_2<
3976
+ NativeBehaviorEvent,
3977
+ 'type',
3978
+ 'drag.drop' | 'clipboard.paste'
3979
+ >
3980
+ | InputBehaviorEvent_2
3935
3981
  })
3936
3982
  | {
3937
3983
  type: 'serialization.success'
@@ -4292,22 +4338,26 @@ declare const editorMachine: StateMachine<
4292
4338
  mimeType: `${string}/${string}`
4293
4339
  reason: string
4294
4340
  } & {
4295
- originEvent: PickFromUnion_2<
4296
- NativeBehaviorEvent,
4297
- 'type',
4298
- 'drag.drop' | 'clipboard.paste'
4299
- >
4341
+ originEvent:
4342
+ | PickFromUnion_2<
4343
+ NativeBehaviorEvent,
4344
+ 'type',
4345
+ 'drag.drop' | 'clipboard.paste'
4346
+ >
4347
+ | InputBehaviorEvent_2
4300
4348
  })
4301
4349
  | ({
4302
4350
  type: 'deserialization.success'
4303
4351
  data: Array<PortableTextBlock>
4304
4352
  mimeType: `${string}/${string}`
4305
4353
  } & {
4306
- originEvent: PickFromUnion_2<
4307
- NativeBehaviorEvent,
4308
- 'type',
4309
- 'drag.drop' | 'clipboard.paste'
4310
- >
4354
+ originEvent:
4355
+ | PickFromUnion_2<
4356
+ NativeBehaviorEvent,
4357
+ 'type',
4358
+ 'drag.drop' | 'clipboard.paste'
4359
+ >
4360
+ | InputBehaviorEvent_2
4311
4361
  })
4312
4362
  | {
4313
4363
  type: 'serialization.success'
@@ -4606,22 +4656,26 @@ declare const editorMachine: StateMachine<
4606
4656
  mimeType: `${string}/${string}`
4607
4657
  reason: string
4608
4658
  } & {
4609
- originEvent: PickFromUnion_2<
4610
- NativeBehaviorEvent,
4611
- 'type',
4612
- 'drag.drop' | 'clipboard.paste'
4613
- >
4659
+ originEvent:
4660
+ | PickFromUnion_2<
4661
+ NativeBehaviorEvent,
4662
+ 'type',
4663
+ 'drag.drop' | 'clipboard.paste'
4664
+ >
4665
+ | InputBehaviorEvent_2
4614
4666
  })
4615
4667
  | ({
4616
4668
  type: 'deserialization.success'
4617
4669
  data: Array<PortableTextBlock>
4618
4670
  mimeType: `${string}/${string}`
4619
4671
  } & {
4620
- originEvent: PickFromUnion_2<
4621
- NativeBehaviorEvent,
4622
- 'type',
4623
- 'drag.drop' | 'clipboard.paste'
4624
- >
4672
+ originEvent:
4673
+ | PickFromUnion_2<
4674
+ NativeBehaviorEvent,
4675
+ 'type',
4676
+ 'drag.drop' | 'clipboard.paste'
4677
+ >
4678
+ | InputBehaviorEvent_2
4625
4679
  })
4626
4680
  | {
4627
4681
  type: 'serialization.success'
@@ -4982,22 +5036,26 @@ declare const editorMachine: StateMachine<
4982
5036
  mimeType: `${string}/${string}`
4983
5037
  reason: string
4984
5038
  } & {
4985
- originEvent: PickFromUnion_2<
4986
- NativeBehaviorEvent,
4987
- 'type',
4988
- 'drag.drop' | 'clipboard.paste'
4989
- >
5039
+ originEvent:
5040
+ | PickFromUnion_2<
5041
+ NativeBehaviorEvent,
5042
+ 'type',
5043
+ 'drag.drop' | 'clipboard.paste'
5044
+ >
5045
+ | InputBehaviorEvent_2
4990
5046
  })
4991
5047
  | ({
4992
5048
  type: 'deserialization.success'
4993
5049
  data: Array<PortableTextBlock>
4994
5050
  mimeType: `${string}/${string}`
4995
5051
  } & {
4996
- originEvent: PickFromUnion_2<
4997
- NativeBehaviorEvent,
4998
- 'type',
4999
- 'drag.drop' | 'clipboard.paste'
5000
- >
5052
+ originEvent:
5053
+ | PickFromUnion_2<
5054
+ NativeBehaviorEvent,
5055
+ 'type',
5056
+ 'drag.drop' | 'clipboard.paste'
5057
+ >
5058
+ | InputBehaviorEvent_2
5001
5059
  })
5002
5060
  | {
5003
5061
  type: 'serialization.success'
@@ -5295,22 +5353,26 @@ declare const editorMachine: StateMachine<
5295
5353
  mimeType: `${string}/${string}`
5296
5354
  reason: string
5297
5355
  } & {
5298
- originEvent: PickFromUnion_2<
5299
- NativeBehaviorEvent,
5300
- 'type',
5301
- 'drag.drop' | 'clipboard.paste'
5302
- >
5356
+ originEvent:
5357
+ | PickFromUnion_2<
5358
+ NativeBehaviorEvent,
5359
+ 'type',
5360
+ 'drag.drop' | 'clipboard.paste'
5361
+ >
5362
+ | InputBehaviorEvent_2
5303
5363
  })
5304
5364
  | ({
5305
5365
  type: 'deserialization.success'
5306
5366
  data: Array<PortableTextBlock>
5307
5367
  mimeType: `${string}/${string}`
5308
5368
  } & {
5309
- originEvent: PickFromUnion_2<
5310
- NativeBehaviorEvent,
5311
- 'type',
5312
- 'drag.drop' | 'clipboard.paste'
5313
- >
5369
+ originEvent:
5370
+ | PickFromUnion_2<
5371
+ NativeBehaviorEvent,
5372
+ 'type',
5373
+ 'drag.drop' | 'clipboard.paste'
5374
+ >
5375
+ | InputBehaviorEvent_2
5314
5376
  })
5315
5377
  | {
5316
5378
  type: 'serialization.success'
@@ -5671,22 +5733,26 @@ declare const editorMachine: StateMachine<
5671
5733
  mimeType: `${string}/${string}`
5672
5734
  reason: string
5673
5735
  } & {
5674
- originEvent: PickFromUnion_2<
5675
- NativeBehaviorEvent,
5676
- 'type',
5677
- 'drag.drop' | 'clipboard.paste'
5678
- >
5736
+ originEvent:
5737
+ | PickFromUnion_2<
5738
+ NativeBehaviorEvent,
5739
+ 'type',
5740
+ 'drag.drop' | 'clipboard.paste'
5741
+ >
5742
+ | InputBehaviorEvent_2
5679
5743
  })
5680
5744
  | ({
5681
5745
  type: 'deserialization.success'
5682
5746
  data: Array<PortableTextBlock>
5683
5747
  mimeType: `${string}/${string}`
5684
5748
  } & {
5685
- originEvent: PickFromUnion_2<
5686
- NativeBehaviorEvent,
5687
- 'type',
5688
- 'drag.drop' | 'clipboard.paste'
5689
- >
5749
+ originEvent:
5750
+ | PickFromUnion_2<
5751
+ NativeBehaviorEvent,
5752
+ 'type',
5753
+ 'drag.drop' | 'clipboard.paste'
5754
+ >
5755
+ | InputBehaviorEvent_2
5690
5756
  })
5691
5757
  | {
5692
5758
  type: 'serialization.success'
@@ -5985,22 +6051,26 @@ declare const editorMachine: StateMachine<
5985
6051
  mimeType: `${string}/${string}`
5986
6052
  reason: string
5987
6053
  } & {
5988
- originEvent: PickFromUnion_2<
5989
- NativeBehaviorEvent,
5990
- 'type',
5991
- 'drag.drop' | 'clipboard.paste'
5992
- >
6054
+ originEvent:
6055
+ | PickFromUnion_2<
6056
+ NativeBehaviorEvent,
6057
+ 'type',
6058
+ 'drag.drop' | 'clipboard.paste'
6059
+ >
6060
+ | InputBehaviorEvent_2
5993
6061
  })
5994
6062
  | ({
5995
6063
  type: 'deserialization.success'
5996
6064
  data: Array<PortableTextBlock>
5997
6065
  mimeType: `${string}/${string}`
5998
6066
  } & {
5999
- originEvent: PickFromUnion_2<
6000
- NativeBehaviorEvent,
6001
- 'type',
6002
- 'drag.drop' | 'clipboard.paste'
6003
- >
6067
+ originEvent:
6068
+ | PickFromUnion_2<
6069
+ NativeBehaviorEvent,
6070
+ 'type',
6071
+ 'drag.drop' | 'clipboard.paste'
6072
+ >
6073
+ | InputBehaviorEvent_2
6004
6074
  })
6005
6075
  | {
6006
6076
  type: 'serialization.success'
@@ -6383,22 +6453,26 @@ declare const editorMachine: StateMachine<
6383
6453
  mimeType: `${string}/${string}`
6384
6454
  reason: string
6385
6455
  } & {
6386
- originEvent: PickFromUnion_2<
6387
- NativeBehaviorEvent,
6388
- 'type',
6389
- 'drag.drop' | 'clipboard.paste'
6390
- >
6456
+ originEvent:
6457
+ | PickFromUnion_2<
6458
+ NativeBehaviorEvent,
6459
+ 'type',
6460
+ 'drag.drop' | 'clipboard.paste'
6461
+ >
6462
+ | InputBehaviorEvent_2
6391
6463
  })
6392
6464
  | ({
6393
6465
  type: 'deserialization.success'
6394
6466
  data: Array<PortableTextBlock>
6395
6467
  mimeType: `${string}/${string}`
6396
6468
  } & {
6397
- originEvent: PickFromUnion_2<
6398
- NativeBehaviorEvent,
6399
- 'type',
6400
- 'drag.drop' | 'clipboard.paste'
6401
- >
6469
+ originEvent:
6470
+ | PickFromUnion_2<
6471
+ NativeBehaviorEvent,
6472
+ 'type',
6473
+ 'drag.drop' | 'clipboard.paste'
6474
+ >
6475
+ | InputBehaviorEvent_2
6402
6476
  })
6403
6477
  | {
6404
6478
  type: 'serialization.success'
@@ -6759,22 +6833,26 @@ declare const editorMachine: StateMachine<
6759
6833
  mimeType: `${string}/${string}`
6760
6834
  reason: string
6761
6835
  } & {
6762
- originEvent: PickFromUnion_2<
6763
- NativeBehaviorEvent,
6764
- 'type',
6765
- 'drag.drop' | 'clipboard.paste'
6766
- >
6836
+ originEvent:
6837
+ | PickFromUnion_2<
6838
+ NativeBehaviorEvent,
6839
+ 'type',
6840
+ 'drag.drop' | 'clipboard.paste'
6841
+ >
6842
+ | InputBehaviorEvent_2
6767
6843
  })
6768
6844
  | ({
6769
6845
  type: 'deserialization.success'
6770
6846
  data: Array<PortableTextBlock>
6771
6847
  mimeType: `${string}/${string}`
6772
6848
  } & {
6773
- originEvent: PickFromUnion_2<
6774
- NativeBehaviorEvent,
6775
- 'type',
6776
- 'drag.drop' | 'clipboard.paste'
6777
- >
6849
+ originEvent:
6850
+ | PickFromUnion_2<
6851
+ NativeBehaviorEvent,
6852
+ 'type',
6853
+ 'drag.drop' | 'clipboard.paste'
6854
+ >
6855
+ | InputBehaviorEvent_2
6778
6856
  })
6779
6857
  | {
6780
6858
  type: 'serialization.success'
@@ -7073,22 +7151,26 @@ declare const editorMachine: StateMachine<
7073
7151
  mimeType: `${string}/${string}`
7074
7152
  reason: string
7075
7153
  } & {
7076
- originEvent: PickFromUnion_2<
7077
- NativeBehaviorEvent,
7078
- 'type',
7079
- 'drag.drop' | 'clipboard.paste'
7080
- >
7154
+ originEvent:
7155
+ | PickFromUnion_2<
7156
+ NativeBehaviorEvent,
7157
+ 'type',
7158
+ 'drag.drop' | 'clipboard.paste'
7159
+ >
7160
+ | InputBehaviorEvent_2
7081
7161
  })
7082
7162
  | ({
7083
7163
  type: 'deserialization.success'
7084
7164
  data: Array<PortableTextBlock>
7085
7165
  mimeType: `${string}/${string}`
7086
7166
  } & {
7087
- originEvent: PickFromUnion_2<
7088
- NativeBehaviorEvent,
7089
- 'type',
7090
- 'drag.drop' | 'clipboard.paste'
7091
- >
7167
+ originEvent:
7168
+ | PickFromUnion_2<
7169
+ NativeBehaviorEvent,
7170
+ 'type',
7171
+ 'drag.drop' | 'clipboard.paste'
7172
+ >
7173
+ | InputBehaviorEvent_2
7092
7174
  })
7093
7175
  | {
7094
7176
  type: 'serialization.success'
@@ -7449,22 +7531,26 @@ declare const editorMachine: StateMachine<
7449
7531
  mimeType: `${string}/${string}`
7450
7532
  reason: string
7451
7533
  } & {
7452
- originEvent: PickFromUnion_2<
7453
- NativeBehaviorEvent,
7454
- 'type',
7455
- 'drag.drop' | 'clipboard.paste'
7456
- >
7534
+ originEvent:
7535
+ | PickFromUnion_2<
7536
+ NativeBehaviorEvent,
7537
+ 'type',
7538
+ 'drag.drop' | 'clipboard.paste'
7539
+ >
7540
+ | InputBehaviorEvent_2
7457
7541
  })
7458
7542
  | ({
7459
7543
  type: 'deserialization.success'
7460
7544
  data: Array<PortableTextBlock>
7461
7545
  mimeType: `${string}/${string}`
7462
7546
  } & {
7463
- originEvent: PickFromUnion_2<
7464
- NativeBehaviorEvent,
7465
- 'type',
7466
- 'drag.drop' | 'clipboard.paste'
7467
- >
7547
+ originEvent:
7548
+ | PickFromUnion_2<
7549
+ NativeBehaviorEvent,
7550
+ 'type',
7551
+ 'drag.drop' | 'clipboard.paste'
7552
+ >
7553
+ | InputBehaviorEvent_2
7468
7554
  })
7469
7555
  | {
7470
7556
  type: 'serialization.success'
@@ -7761,22 +7847,26 @@ declare const editorMachine: StateMachine<
7761
7847
  mimeType: `${string}/${string}`
7762
7848
  reason: string
7763
7849
  } & {
7764
- originEvent: PickFromUnion_2<
7765
- NativeBehaviorEvent,
7766
- 'type',
7767
- 'drag.drop' | 'clipboard.paste'
7768
- >
7850
+ originEvent:
7851
+ | PickFromUnion_2<
7852
+ NativeBehaviorEvent,
7853
+ 'type',
7854
+ 'drag.drop' | 'clipboard.paste'
7855
+ >
7856
+ | InputBehaviorEvent_2
7769
7857
  })
7770
7858
  | ({
7771
7859
  type: 'deserialization.success'
7772
7860
  data: Array<PortableTextBlock>
7773
7861
  mimeType: `${string}/${string}`
7774
7862
  } & {
7775
- originEvent: PickFromUnion_2<
7776
- NativeBehaviorEvent,
7777
- 'type',
7778
- 'drag.drop' | 'clipboard.paste'
7779
- >
7863
+ originEvent:
7864
+ | PickFromUnion_2<
7865
+ NativeBehaviorEvent,
7866
+ 'type',
7867
+ 'drag.drop' | 'clipboard.paste'
7868
+ >
7869
+ | InputBehaviorEvent_2
7780
7870
  })
7781
7871
  | {
7782
7872
  type: 'serialization.success'
@@ -8137,22 +8227,26 @@ declare const editorMachine: StateMachine<
8137
8227
  mimeType: `${string}/${string}`
8138
8228
  reason: string
8139
8229
  } & {
8140
- originEvent: PickFromUnion_2<
8141
- NativeBehaviorEvent,
8142
- 'type',
8143
- 'drag.drop' | 'clipboard.paste'
8144
- >
8230
+ originEvent:
8231
+ | PickFromUnion_2<
8232
+ NativeBehaviorEvent,
8233
+ 'type',
8234
+ 'drag.drop' | 'clipboard.paste'
8235
+ >
8236
+ | InputBehaviorEvent_2
8145
8237
  })
8146
8238
  | ({
8147
8239
  type: 'deserialization.success'
8148
8240
  data: Array<PortableTextBlock>
8149
8241
  mimeType: `${string}/${string}`
8150
8242
  } & {
8151
- originEvent: PickFromUnion_2<
8152
- NativeBehaviorEvent,
8153
- 'type',
8154
- 'drag.drop' | 'clipboard.paste'
8155
- >
8243
+ originEvent:
8244
+ | PickFromUnion_2<
8245
+ NativeBehaviorEvent,
8246
+ 'type',
8247
+ 'drag.drop' | 'clipboard.paste'
8248
+ >
8249
+ | InputBehaviorEvent_2
8156
8250
  })
8157
8251
  | {
8158
8252
  type: 'serialization.success'
@@ -8450,22 +8544,26 @@ declare const editorMachine: StateMachine<
8450
8544
  mimeType: `${string}/${string}`
8451
8545
  reason: string
8452
8546
  } & {
8453
- originEvent: PickFromUnion_2<
8454
- NativeBehaviorEvent,
8455
- 'type',
8456
- 'drag.drop' | 'clipboard.paste'
8457
- >
8547
+ originEvent:
8548
+ | PickFromUnion_2<
8549
+ NativeBehaviorEvent,
8550
+ 'type',
8551
+ 'drag.drop' | 'clipboard.paste'
8552
+ >
8553
+ | InputBehaviorEvent_2
8458
8554
  })
8459
8555
  | ({
8460
8556
  type: 'deserialization.success'
8461
8557
  data: Array<PortableTextBlock>
8462
8558
  mimeType: `${string}/${string}`
8463
8559
  } & {
8464
- originEvent: PickFromUnion_2<
8465
- NativeBehaviorEvent,
8466
- 'type',
8467
- 'drag.drop' | 'clipboard.paste'
8468
- >
8560
+ originEvent:
8561
+ | PickFromUnion_2<
8562
+ NativeBehaviorEvent,
8563
+ 'type',
8564
+ 'drag.drop' | 'clipboard.paste'
8565
+ >
8566
+ | InputBehaviorEvent_2
8469
8567
  })
8470
8568
  | {
8471
8569
  type: 'serialization.success'
@@ -8826,22 +8924,26 @@ declare const editorMachine: StateMachine<
8826
8924
  mimeType: `${string}/${string}`
8827
8925
  reason: string
8828
8926
  } & {
8829
- originEvent: PickFromUnion_2<
8830
- NativeBehaviorEvent,
8831
- 'type',
8832
- 'drag.drop' | 'clipboard.paste'
8833
- >
8927
+ originEvent:
8928
+ | PickFromUnion_2<
8929
+ NativeBehaviorEvent,
8930
+ 'type',
8931
+ 'drag.drop' | 'clipboard.paste'
8932
+ >
8933
+ | InputBehaviorEvent_2
8834
8934
  })
8835
8935
  | ({
8836
8936
  type: 'deserialization.success'
8837
8937
  data: Array<PortableTextBlock>
8838
8938
  mimeType: `${string}/${string}`
8839
8939
  } & {
8840
- originEvent: PickFromUnion_2<
8841
- NativeBehaviorEvent,
8842
- 'type',
8843
- 'drag.drop' | 'clipboard.paste'
8844
- >
8940
+ originEvent:
8941
+ | PickFromUnion_2<
8942
+ NativeBehaviorEvent,
8943
+ 'type',
8944
+ 'drag.drop' | 'clipboard.paste'
8945
+ >
8946
+ | InputBehaviorEvent_2
8845
8947
  })
8846
8948
  | {
8847
8949
  type: 'serialization.success'
@@ -9142,22 +9244,26 @@ declare const editorMachine: StateMachine<
9142
9244
  mimeType: `${string}/${string}`
9143
9245
  reason: string
9144
9246
  } & {
9145
- originEvent: PickFromUnion_2<
9146
- NativeBehaviorEvent,
9147
- 'type',
9148
- 'drag.drop' | 'clipboard.paste'
9149
- >
9247
+ originEvent:
9248
+ | PickFromUnion_2<
9249
+ NativeBehaviorEvent,
9250
+ 'type',
9251
+ 'drag.drop' | 'clipboard.paste'
9252
+ >
9253
+ | InputBehaviorEvent_2
9150
9254
  })
9151
9255
  | ({
9152
9256
  type: 'deserialization.success'
9153
9257
  data: Array<PortableTextBlock>
9154
9258
  mimeType: `${string}/${string}`
9155
9259
  } & {
9156
- originEvent: PickFromUnion_2<
9157
- NativeBehaviorEvent,
9158
- 'type',
9159
- 'drag.drop' | 'clipboard.paste'
9160
- >
9260
+ originEvent:
9261
+ | PickFromUnion_2<
9262
+ NativeBehaviorEvent,
9263
+ 'type',
9264
+ 'drag.drop' | 'clipboard.paste'
9265
+ >
9266
+ | InputBehaviorEvent_2
9161
9267
  })
9162
9268
  | {
9163
9269
  type: 'serialization.success'
@@ -9518,22 +9624,26 @@ declare const editorMachine: StateMachine<
9518
9624
  mimeType: `${string}/${string}`
9519
9625
  reason: string
9520
9626
  } & {
9521
- originEvent: PickFromUnion_2<
9522
- NativeBehaviorEvent,
9523
- 'type',
9524
- 'drag.drop' | 'clipboard.paste'
9525
- >
9627
+ originEvent:
9628
+ | PickFromUnion_2<
9629
+ NativeBehaviorEvent,
9630
+ 'type',
9631
+ 'drag.drop' | 'clipboard.paste'
9632
+ >
9633
+ | InputBehaviorEvent_2
9526
9634
  })
9527
9635
  | ({
9528
9636
  type: 'deserialization.success'
9529
9637
  data: Array<PortableTextBlock>
9530
9638
  mimeType: `${string}/${string}`
9531
9639
  } & {
9532
- originEvent: PickFromUnion_2<
9533
- NativeBehaviorEvent,
9534
- 'type',
9535
- 'drag.drop' | 'clipboard.paste'
9536
- >
9640
+ originEvent:
9641
+ | PickFromUnion_2<
9642
+ NativeBehaviorEvent,
9643
+ 'type',
9644
+ 'drag.drop' | 'clipboard.paste'
9645
+ >
9646
+ | InputBehaviorEvent_2
9537
9647
  })
9538
9648
  | {
9539
9649
  type: 'serialization.success'
@@ -9834,22 +9944,26 @@ declare const editorMachine: StateMachine<
9834
9944
  mimeType: `${string}/${string}`
9835
9945
  reason: string
9836
9946
  } & {
9837
- originEvent: PickFromUnion_2<
9838
- NativeBehaviorEvent,
9839
- 'type',
9840
- 'drag.drop' | 'clipboard.paste'
9841
- >
9947
+ originEvent:
9948
+ | PickFromUnion_2<
9949
+ NativeBehaviorEvent,
9950
+ 'type',
9951
+ 'drag.drop' | 'clipboard.paste'
9952
+ >
9953
+ | InputBehaviorEvent_2
9842
9954
  })
9843
9955
  | ({
9844
9956
  type: 'deserialization.success'
9845
9957
  data: Array<PortableTextBlock>
9846
9958
  mimeType: `${string}/${string}`
9847
9959
  } & {
9848
- originEvent: PickFromUnion_2<
9849
- NativeBehaviorEvent,
9850
- 'type',
9851
- 'drag.drop' | 'clipboard.paste'
9852
- >
9960
+ originEvent:
9961
+ | PickFromUnion_2<
9962
+ NativeBehaviorEvent,
9963
+ 'type',
9964
+ 'drag.drop' | 'clipboard.paste'
9965
+ >
9966
+ | InputBehaviorEvent_2
9853
9967
  })
9854
9968
  | {
9855
9969
  type: 'serialization.success'
@@ -10237,22 +10351,26 @@ declare const editorMachine: StateMachine<
10237
10351
  mimeType: `${string}/${string}`
10238
10352
  reason: string
10239
10353
  } & {
10240
- originEvent: PickFromUnion_2<
10241
- NativeBehaviorEvent,
10242
- 'type',
10243
- 'drag.drop' | 'clipboard.paste'
10244
- >
10354
+ originEvent:
10355
+ | PickFromUnion_2<
10356
+ NativeBehaviorEvent,
10357
+ 'type',
10358
+ 'drag.drop' | 'clipboard.paste'
10359
+ >
10360
+ | InputBehaviorEvent_2
10245
10361
  })
10246
10362
  | ({
10247
10363
  type: 'deserialization.success'
10248
10364
  data: Array<PortableTextBlock>
10249
10365
  mimeType: `${string}/${string}`
10250
10366
  } & {
10251
- originEvent: PickFromUnion_2<
10252
- NativeBehaviorEvent,
10253
- 'type',
10254
- 'drag.drop' | 'clipboard.paste'
10255
- >
10367
+ originEvent:
10368
+ | PickFromUnion_2<
10369
+ NativeBehaviorEvent,
10370
+ 'type',
10371
+ 'drag.drop' | 'clipboard.paste'
10372
+ >
10373
+ | InputBehaviorEvent_2
10256
10374
  })
10257
10375
  | {
10258
10376
  type: 'serialization.success'
@@ -10637,22 +10755,26 @@ declare const editorMachine: StateMachine<
10637
10755
  mimeType: `${string}/${string}`
10638
10756
  reason: string
10639
10757
  } & {
10640
- originEvent: PickFromUnion_2<
10641
- NativeBehaviorEvent,
10642
- 'type',
10643
- 'drag.drop' | 'clipboard.paste'
10644
- >
10758
+ originEvent:
10759
+ | PickFromUnion_2<
10760
+ NativeBehaviorEvent,
10761
+ 'type',
10762
+ 'drag.drop' | 'clipboard.paste'
10763
+ >
10764
+ | InputBehaviorEvent_2
10645
10765
  })
10646
10766
  | ({
10647
10767
  type: 'deserialization.success'
10648
10768
  data: Array<PortableTextBlock>
10649
10769
  mimeType: `${string}/${string}`
10650
10770
  } & {
10651
- originEvent: PickFromUnion_2<
10652
- NativeBehaviorEvent,
10653
- 'type',
10654
- 'drag.drop' | 'clipboard.paste'
10655
- >
10771
+ originEvent:
10772
+ | PickFromUnion_2<
10773
+ NativeBehaviorEvent,
10774
+ 'type',
10775
+ 'drag.drop' | 'clipboard.paste'
10776
+ >
10777
+ | InputBehaviorEvent_2
10656
10778
  })
10657
10779
  | {
10658
10780
  type: 'serialization.success'
@@ -11206,22 +11328,26 @@ declare const editorMachine: StateMachine<
11206
11328
  mimeType: `${string}/${string}`
11207
11329
  reason: string
11208
11330
  } & {
11209
- originEvent: PickFromUnion_2<
11210
- NativeBehaviorEvent,
11211
- 'type',
11212
- 'drag.drop' | 'clipboard.paste'
11213
- >
11331
+ originEvent:
11332
+ | PickFromUnion_2<
11333
+ NativeBehaviorEvent,
11334
+ 'type',
11335
+ 'drag.drop' | 'clipboard.paste'
11336
+ >
11337
+ | InputBehaviorEvent_2
11214
11338
  })
11215
11339
  | ({
11216
11340
  type: 'deserialization.success'
11217
11341
  data: Array<PortableTextBlock>
11218
11342
  mimeType: `${string}/${string}`
11219
11343
  } & {
11220
- originEvent: PickFromUnion_2<
11221
- NativeBehaviorEvent,
11222
- 'type',
11223
- 'drag.drop' | 'clipboard.paste'
11224
- >
11344
+ originEvent:
11345
+ | PickFromUnion_2<
11346
+ NativeBehaviorEvent,
11347
+ 'type',
11348
+ 'drag.drop' | 'clipboard.paste'
11349
+ >
11350
+ | InputBehaviorEvent_2
11225
11351
  })
11226
11352
  | {
11227
11353
  type: 'serialization.success'
@@ -11582,22 +11708,26 @@ declare const editorMachine: StateMachine<
11582
11708
  mimeType: `${string}/${string}`
11583
11709
  reason: string
11584
11710
  } & {
11585
- originEvent: PickFromUnion_2<
11586
- NativeBehaviorEvent,
11587
- 'type',
11588
- 'drag.drop' | 'clipboard.paste'
11589
- >
11711
+ originEvent:
11712
+ | PickFromUnion_2<
11713
+ NativeBehaviorEvent,
11714
+ 'type',
11715
+ 'drag.drop' | 'clipboard.paste'
11716
+ >
11717
+ | InputBehaviorEvent_2
11590
11718
  })
11591
11719
  | ({
11592
11720
  type: 'deserialization.success'
11593
11721
  data: Array<PortableTextBlock>
11594
11722
  mimeType: `${string}/${string}`
11595
11723
  } & {
11596
- originEvent: PickFromUnion_2<
11597
- NativeBehaviorEvent,
11598
- 'type',
11599
- 'drag.drop' | 'clipboard.paste'
11600
- >
11724
+ originEvent:
11725
+ | PickFromUnion_2<
11726
+ NativeBehaviorEvent,
11727
+ 'type',
11728
+ 'drag.drop' | 'clipboard.paste'
11729
+ >
11730
+ | InputBehaviorEvent_2
11601
11731
  })
11602
11732
  | {
11603
11733
  type: 'serialization.success'
@@ -11901,22 +12031,26 @@ declare const editorMachine: StateMachine<
11901
12031
  mimeType: `${string}/${string}`
11902
12032
  reason: string
11903
12033
  } & {
11904
- originEvent: PickFromUnion_2<
11905
- NativeBehaviorEvent,
11906
- 'type',
11907
- 'drag.drop' | 'clipboard.paste'
11908
- >
12034
+ originEvent:
12035
+ | PickFromUnion_2<
12036
+ NativeBehaviorEvent,
12037
+ 'type',
12038
+ 'drag.drop' | 'clipboard.paste'
12039
+ >
12040
+ | InputBehaviorEvent_2
11909
12041
  })
11910
12042
  | ({
11911
12043
  type: 'deserialization.success'
11912
12044
  data: Array<PortableTextBlock>
11913
12045
  mimeType: `${string}/${string}`
11914
12046
  } & {
11915
- originEvent: PickFromUnion_2<
11916
- NativeBehaviorEvent,
11917
- 'type',
11918
- 'drag.drop' | 'clipboard.paste'
11919
- >
12047
+ originEvent:
12048
+ | PickFromUnion_2<
12049
+ NativeBehaviorEvent,
12050
+ 'type',
12051
+ 'drag.drop' | 'clipboard.paste'
12052
+ >
12053
+ | InputBehaviorEvent_2
11920
12054
  })
11921
12055
  | {
11922
12056
  type: 'serialization.success'
@@ -12277,22 +12411,26 @@ declare const editorMachine: StateMachine<
12277
12411
  mimeType: `${string}/${string}`
12278
12412
  reason: string
12279
12413
  } & {
12280
- originEvent: PickFromUnion_2<
12281
- NativeBehaviorEvent,
12282
- 'type',
12283
- 'drag.drop' | 'clipboard.paste'
12284
- >
12414
+ originEvent:
12415
+ | PickFromUnion_2<
12416
+ NativeBehaviorEvent,
12417
+ 'type',
12418
+ 'drag.drop' | 'clipboard.paste'
12419
+ >
12420
+ | InputBehaviorEvent_2
12285
12421
  })
12286
12422
  | ({
12287
12423
  type: 'deserialization.success'
12288
12424
  data: Array<PortableTextBlock>
12289
12425
  mimeType: `${string}/${string}`
12290
12426
  } & {
12291
- originEvent: PickFromUnion_2<
12292
- NativeBehaviorEvent,
12293
- 'type',
12294
- 'drag.drop' | 'clipboard.paste'
12295
- >
12427
+ originEvent:
12428
+ | PickFromUnion_2<
12429
+ NativeBehaviorEvent,
12430
+ 'type',
12431
+ 'drag.drop' | 'clipboard.paste'
12432
+ >
12433
+ | InputBehaviorEvent_2
12296
12434
  })
12297
12435
  | {
12298
12436
  type: 'serialization.success'
@@ -12589,22 +12727,26 @@ declare const editorMachine: StateMachine<
12589
12727
  mimeType: `${string}/${string}`
12590
12728
  reason: string
12591
12729
  } & {
12592
- originEvent: PickFromUnion_2<
12593
- NativeBehaviorEvent,
12594
- 'type',
12595
- 'drag.drop' | 'clipboard.paste'
12596
- >
12730
+ originEvent:
12731
+ | PickFromUnion_2<
12732
+ NativeBehaviorEvent,
12733
+ 'type',
12734
+ 'drag.drop' | 'clipboard.paste'
12735
+ >
12736
+ | InputBehaviorEvent_2
12597
12737
  })
12598
12738
  | ({
12599
12739
  type: 'deserialization.success'
12600
12740
  data: Array<PortableTextBlock>
12601
12741
  mimeType: `${string}/${string}`
12602
12742
  } & {
12603
- originEvent: PickFromUnion_2<
12604
- NativeBehaviorEvent,
12605
- 'type',
12606
- 'drag.drop' | 'clipboard.paste'
12607
- >
12743
+ originEvent:
12744
+ | PickFromUnion_2<
12745
+ NativeBehaviorEvent,
12746
+ 'type',
12747
+ 'drag.drop' | 'clipboard.paste'
12748
+ >
12749
+ | InputBehaviorEvent_2
12608
12750
  })
12609
12751
  | {
12610
12752
  type: 'serialization.success'
@@ -12965,22 +13107,26 @@ declare const editorMachine: StateMachine<
12965
13107
  mimeType: `${string}/${string}`
12966
13108
  reason: string
12967
13109
  } & {
12968
- originEvent: PickFromUnion_2<
12969
- NativeBehaviorEvent,
12970
- 'type',
12971
- 'drag.drop' | 'clipboard.paste'
12972
- >
13110
+ originEvent:
13111
+ | PickFromUnion_2<
13112
+ NativeBehaviorEvent,
13113
+ 'type',
13114
+ 'drag.drop' | 'clipboard.paste'
13115
+ >
13116
+ | InputBehaviorEvent_2
12973
13117
  })
12974
13118
  | ({
12975
13119
  type: 'deserialization.success'
12976
13120
  data: Array<PortableTextBlock>
12977
13121
  mimeType: `${string}/${string}`
12978
13122
  } & {
12979
- originEvent: PickFromUnion_2<
12980
- NativeBehaviorEvent,
12981
- 'type',
12982
- 'drag.drop' | 'clipboard.paste'
12983
- >
13123
+ originEvent:
13124
+ | PickFromUnion_2<
13125
+ NativeBehaviorEvent,
13126
+ 'type',
13127
+ 'drag.drop' | 'clipboard.paste'
13128
+ >
13129
+ | InputBehaviorEvent_2
12984
13130
  })
12985
13131
  | {
12986
13132
  type: 'serialization.success'
@@ -13277,22 +13423,26 @@ declare const editorMachine: StateMachine<
13277
13423
  mimeType: `${string}/${string}`
13278
13424
  reason: string
13279
13425
  } & {
13280
- originEvent: PickFromUnion_2<
13281
- NativeBehaviorEvent,
13282
- 'type',
13283
- 'drag.drop' | 'clipboard.paste'
13284
- >
13426
+ originEvent:
13427
+ | PickFromUnion_2<
13428
+ NativeBehaviorEvent,
13429
+ 'type',
13430
+ 'drag.drop' | 'clipboard.paste'
13431
+ >
13432
+ | InputBehaviorEvent_2
13285
13433
  })
13286
13434
  | ({
13287
13435
  type: 'deserialization.success'
13288
13436
  data: Array<PortableTextBlock>
13289
13437
  mimeType: `${string}/${string}`
13290
13438
  } & {
13291
- originEvent: PickFromUnion_2<
13292
- NativeBehaviorEvent,
13293
- 'type',
13294
- 'drag.drop' | 'clipboard.paste'
13295
- >
13439
+ originEvent:
13440
+ | PickFromUnion_2<
13441
+ NativeBehaviorEvent,
13442
+ 'type',
13443
+ 'drag.drop' | 'clipboard.paste'
13444
+ >
13445
+ | InputBehaviorEvent_2
13296
13446
  })
13297
13447
  | {
13298
13448
  type: 'serialization.success'
@@ -13653,22 +13803,26 @@ declare const editorMachine: StateMachine<
13653
13803
  mimeType: `${string}/${string}`
13654
13804
  reason: string
13655
13805
  } & {
13656
- originEvent: PickFromUnion_2<
13657
- NativeBehaviorEvent,
13658
- 'type',
13659
- 'drag.drop' | 'clipboard.paste'
13660
- >
13806
+ originEvent:
13807
+ | PickFromUnion_2<
13808
+ NativeBehaviorEvent,
13809
+ 'type',
13810
+ 'drag.drop' | 'clipboard.paste'
13811
+ >
13812
+ | InputBehaviorEvent_2
13661
13813
  })
13662
13814
  | ({
13663
13815
  type: 'deserialization.success'
13664
13816
  data: Array<PortableTextBlock>
13665
13817
  mimeType: `${string}/${string}`
13666
13818
  } & {
13667
- originEvent: PickFromUnion_2<
13668
- NativeBehaviorEvent,
13669
- 'type',
13670
- 'drag.drop' | 'clipboard.paste'
13671
- >
13819
+ originEvent:
13820
+ | PickFromUnion_2<
13821
+ NativeBehaviorEvent,
13822
+ 'type',
13823
+ 'drag.drop' | 'clipboard.paste'
13824
+ >
13825
+ | InputBehaviorEvent_2
13672
13826
  })
13673
13827
  | {
13674
13828
  type: 'serialization.success'
@@ -13978,22 +14132,26 @@ declare const editorMachine: StateMachine<
13978
14132
  mimeType: `${string}/${string}`
13979
14133
  reason: string
13980
14134
  } & {
13981
- originEvent: PickFromUnion_2<
13982
- NativeBehaviorEvent,
13983
- 'type',
13984
- 'drag.drop' | 'clipboard.paste'
13985
- >
14135
+ originEvent:
14136
+ | PickFromUnion_2<
14137
+ NativeBehaviorEvent,
14138
+ 'type',
14139
+ 'drag.drop' | 'clipboard.paste'
14140
+ >
14141
+ | InputBehaviorEvent_2
13986
14142
  })
13987
14143
  | ({
13988
14144
  type: 'deserialization.success'
13989
14145
  data: Array<PortableTextBlock>
13990
14146
  mimeType: `${string}/${string}`
13991
14147
  } & {
13992
- originEvent: PickFromUnion_2<
13993
- NativeBehaviorEvent,
13994
- 'type',
13995
- 'drag.drop' | 'clipboard.paste'
13996
- >
14148
+ originEvent:
14149
+ | PickFromUnion_2<
14150
+ NativeBehaviorEvent,
14151
+ 'type',
14152
+ 'drag.drop' | 'clipboard.paste'
14153
+ >
14154
+ | InputBehaviorEvent_2
13997
14155
  })
13998
14156
  | {
13999
14157
  type: 'serialization.success'
@@ -14354,22 +14512,26 @@ declare const editorMachine: StateMachine<
14354
14512
  mimeType: `${string}/${string}`
14355
14513
  reason: string
14356
14514
  } & {
14357
- originEvent: PickFromUnion_2<
14358
- NativeBehaviorEvent,
14359
- 'type',
14360
- 'drag.drop' | 'clipboard.paste'
14361
- >
14515
+ originEvent:
14516
+ | PickFromUnion_2<
14517
+ NativeBehaviorEvent,
14518
+ 'type',
14519
+ 'drag.drop' | 'clipboard.paste'
14520
+ >
14521
+ | InputBehaviorEvent_2
14362
14522
  })
14363
14523
  | ({
14364
14524
  type: 'deserialization.success'
14365
14525
  data: Array<PortableTextBlock>
14366
14526
  mimeType: `${string}/${string}`
14367
14527
  } & {
14368
- originEvent: PickFromUnion_2<
14369
- NativeBehaviorEvent,
14370
- 'type',
14371
- 'drag.drop' | 'clipboard.paste'
14372
- >
14528
+ originEvent:
14529
+ | PickFromUnion_2<
14530
+ NativeBehaviorEvent,
14531
+ 'type',
14532
+ 'drag.drop' | 'clipboard.paste'
14533
+ >
14534
+ | InputBehaviorEvent_2
14373
14535
  })
14374
14536
  | {
14375
14537
  type: 'serialization.success'
@@ -14680,22 +14842,26 @@ declare const editorMachine: StateMachine<
14680
14842
  mimeType: `${string}/${string}`
14681
14843
  reason: string
14682
14844
  } & {
14683
- originEvent: PickFromUnion_2<
14684
- NativeBehaviorEvent,
14685
- 'type',
14686
- 'drag.drop' | 'clipboard.paste'
14687
- >
14845
+ originEvent:
14846
+ | PickFromUnion_2<
14847
+ NativeBehaviorEvent,
14848
+ 'type',
14849
+ 'drag.drop' | 'clipboard.paste'
14850
+ >
14851
+ | InputBehaviorEvent_2
14688
14852
  })
14689
14853
  | ({
14690
14854
  type: 'deserialization.success'
14691
14855
  data: Array<PortableTextBlock>
14692
14856
  mimeType: `${string}/${string}`
14693
14857
  } & {
14694
- originEvent: PickFromUnion_2<
14695
- NativeBehaviorEvent,
14696
- 'type',
14697
- 'drag.drop' | 'clipboard.paste'
14698
- >
14858
+ originEvent:
14859
+ | PickFromUnion_2<
14860
+ NativeBehaviorEvent,
14861
+ 'type',
14862
+ 'drag.drop' | 'clipboard.paste'
14863
+ >
14864
+ | InputBehaviorEvent_2
14699
14865
  })
14700
14866
  | {
14701
14867
  type: 'serialization.success'
@@ -15056,22 +15222,26 @@ declare const editorMachine: StateMachine<
15056
15222
  mimeType: `${string}/${string}`
15057
15223
  reason: string
15058
15224
  } & {
15059
- originEvent: PickFromUnion_2<
15060
- NativeBehaviorEvent,
15061
- 'type',
15062
- 'drag.drop' | 'clipboard.paste'
15063
- >
15225
+ originEvent:
15226
+ | PickFromUnion_2<
15227
+ NativeBehaviorEvent,
15228
+ 'type',
15229
+ 'drag.drop' | 'clipboard.paste'
15230
+ >
15231
+ | InputBehaviorEvent_2
15064
15232
  })
15065
15233
  | ({
15066
15234
  type: 'deserialization.success'
15067
15235
  data: Array<PortableTextBlock>
15068
15236
  mimeType: `${string}/${string}`
15069
15237
  } & {
15070
- originEvent: PickFromUnion_2<
15071
- NativeBehaviorEvent,
15072
- 'type',
15073
- 'drag.drop' | 'clipboard.paste'
15074
- >
15238
+ originEvent:
15239
+ | PickFromUnion_2<
15240
+ NativeBehaviorEvent,
15241
+ 'type',
15242
+ 'drag.drop' | 'clipboard.paste'
15243
+ >
15244
+ | InputBehaviorEvent_2
15075
15245
  })
15076
15246
  | {
15077
15247
  type: 'serialization.success'
@@ -15368,22 +15538,26 @@ declare const editorMachine: StateMachine<
15368
15538
  mimeType: `${string}/${string}`
15369
15539
  reason: string
15370
15540
  } & {
15371
- originEvent: PickFromUnion_2<
15372
- NativeBehaviorEvent,
15373
- 'type',
15374
- 'drag.drop' | 'clipboard.paste'
15375
- >
15541
+ originEvent:
15542
+ | PickFromUnion_2<
15543
+ NativeBehaviorEvent,
15544
+ 'type',
15545
+ 'drag.drop' | 'clipboard.paste'
15546
+ >
15547
+ | InputBehaviorEvent_2
15376
15548
  })
15377
15549
  | ({
15378
15550
  type: 'deserialization.success'
15379
15551
  data: Array<PortableTextBlock>
15380
15552
  mimeType: `${string}/${string}`
15381
15553
  } & {
15382
- originEvent: PickFromUnion_2<
15383
- NativeBehaviorEvent,
15384
- 'type',
15385
- 'drag.drop' | 'clipboard.paste'
15386
- >
15554
+ originEvent:
15555
+ | PickFromUnion_2<
15556
+ NativeBehaviorEvent,
15557
+ 'type',
15558
+ 'drag.drop' | 'clipboard.paste'
15559
+ >
15560
+ | InputBehaviorEvent_2
15387
15561
  })
15388
15562
  | {
15389
15563
  type: 'serialization.success'
@@ -15744,22 +15918,26 @@ declare const editorMachine: StateMachine<
15744
15918
  mimeType: `${string}/${string}`
15745
15919
  reason: string
15746
15920
  } & {
15747
- originEvent: PickFromUnion_2<
15748
- NativeBehaviorEvent,
15749
- 'type',
15750
- 'drag.drop' | 'clipboard.paste'
15751
- >
15921
+ originEvent:
15922
+ | PickFromUnion_2<
15923
+ NativeBehaviorEvent,
15924
+ 'type',
15925
+ 'drag.drop' | 'clipboard.paste'
15926
+ >
15927
+ | InputBehaviorEvent_2
15752
15928
  })
15753
15929
  | ({
15754
15930
  type: 'deserialization.success'
15755
15931
  data: Array<PortableTextBlock>
15756
15932
  mimeType: `${string}/${string}`
15757
15933
  } & {
15758
- originEvent: PickFromUnion_2<
15759
- NativeBehaviorEvent,
15760
- 'type',
15761
- 'drag.drop' | 'clipboard.paste'
15762
- >
15934
+ originEvent:
15935
+ | PickFromUnion_2<
15936
+ NativeBehaviorEvent,
15937
+ 'type',
15938
+ 'drag.drop' | 'clipboard.paste'
15939
+ >
15940
+ | InputBehaviorEvent_2
15763
15941
  })
15764
15942
  | {
15765
15943
  type: 'serialization.success'
@@ -16059,22 +16237,26 @@ declare const editorMachine: StateMachine<
16059
16237
  mimeType: `${string}/${string}`
16060
16238
  reason: string
16061
16239
  } & {
16062
- originEvent: PickFromUnion_2<
16063
- NativeBehaviorEvent,
16064
- 'type',
16065
- 'drag.drop' | 'clipboard.paste'
16066
- >
16240
+ originEvent:
16241
+ | PickFromUnion_2<
16242
+ NativeBehaviorEvent,
16243
+ 'type',
16244
+ 'drag.drop' | 'clipboard.paste'
16245
+ >
16246
+ | InputBehaviorEvent_2
16067
16247
  })
16068
16248
  | ({
16069
16249
  type: 'deserialization.success'
16070
16250
  data: Array<PortableTextBlock>
16071
16251
  mimeType: `${string}/${string}`
16072
16252
  } & {
16073
- originEvent: PickFromUnion_2<
16074
- NativeBehaviorEvent,
16075
- 'type',
16076
- 'drag.drop' | 'clipboard.paste'
16077
- >
16253
+ originEvent:
16254
+ | PickFromUnion_2<
16255
+ NativeBehaviorEvent,
16256
+ 'type',
16257
+ 'drag.drop' | 'clipboard.paste'
16258
+ >
16259
+ | InputBehaviorEvent_2
16078
16260
  })
16079
16261
  | {
16080
16262
  type: 'serialization.success'
@@ -16435,22 +16617,26 @@ declare const editorMachine: StateMachine<
16435
16617
  mimeType: `${string}/${string}`
16436
16618
  reason: string
16437
16619
  } & {
16438
- originEvent: PickFromUnion_2<
16439
- NativeBehaviorEvent,
16440
- 'type',
16441
- 'drag.drop' | 'clipboard.paste'
16442
- >
16620
+ originEvent:
16621
+ | PickFromUnion_2<
16622
+ NativeBehaviorEvent,
16623
+ 'type',
16624
+ 'drag.drop' | 'clipboard.paste'
16625
+ >
16626
+ | InputBehaviorEvent_2
16443
16627
  })
16444
16628
  | ({
16445
16629
  type: 'deserialization.success'
16446
16630
  data: Array<PortableTextBlock>
16447
16631
  mimeType: `${string}/${string}`
16448
16632
  } & {
16449
- originEvent: PickFromUnion_2<
16450
- NativeBehaviorEvent,
16451
- 'type',
16452
- 'drag.drop' | 'clipboard.paste'
16453
- >
16633
+ originEvent:
16634
+ | PickFromUnion_2<
16635
+ NativeBehaviorEvent,
16636
+ 'type',
16637
+ 'drag.drop' | 'clipboard.paste'
16638
+ >
16639
+ | InputBehaviorEvent_2
16454
16640
  })
16455
16641
  | {
16456
16642
  type: 'serialization.success'
@@ -16803,22 +16989,26 @@ declare const editorMachine: StateMachine<
16803
16989
  mimeType: `${string}/${string}`
16804
16990
  reason: string
16805
16991
  } & {
16806
- originEvent: PickFromUnion_2<
16807
- NativeBehaviorEvent,
16808
- 'type',
16809
- 'drag.drop' | 'clipboard.paste'
16810
- >
16992
+ originEvent:
16993
+ | PickFromUnion_2<
16994
+ NativeBehaviorEvent,
16995
+ 'type',
16996
+ 'drag.drop' | 'clipboard.paste'
16997
+ >
16998
+ | InputBehaviorEvent_2
16811
16999
  })
16812
17000
  | ({
16813
17001
  type: 'deserialization.success'
16814
17002
  data: Array<PortableTextBlock>
16815
17003
  mimeType: `${string}/${string}`
16816
17004
  } & {
16817
- originEvent: PickFromUnion_2<
16818
- NativeBehaviorEvent,
16819
- 'type',
16820
- 'drag.drop' | 'clipboard.paste'
16821
- >
17005
+ originEvent:
17006
+ | PickFromUnion_2<
17007
+ NativeBehaviorEvent,
17008
+ 'type',
17009
+ 'drag.drop' | 'clipboard.paste'
17010
+ >
17011
+ | InputBehaviorEvent_2
16822
17012
  })
16823
17013
  | {
16824
17014
  type: 'serialization.success'
@@ -17179,22 +17369,26 @@ declare const editorMachine: StateMachine<
17179
17369
  mimeType: `${string}/${string}`
17180
17370
  reason: string
17181
17371
  } & {
17182
- originEvent: PickFromUnion_2<
17183
- NativeBehaviorEvent,
17184
- 'type',
17185
- 'drag.drop' | 'clipboard.paste'
17186
- >
17372
+ originEvent:
17373
+ | PickFromUnion_2<
17374
+ NativeBehaviorEvent,
17375
+ 'type',
17376
+ 'drag.drop' | 'clipboard.paste'
17377
+ >
17378
+ | InputBehaviorEvent_2
17187
17379
  })
17188
17380
  | ({
17189
17381
  type: 'deserialization.success'
17190
17382
  data: Array<PortableTextBlock>
17191
17383
  mimeType: `${string}/${string}`
17192
17384
  } & {
17193
- originEvent: PickFromUnion_2<
17194
- NativeBehaviorEvent,
17195
- 'type',
17196
- 'drag.drop' | 'clipboard.paste'
17197
- >
17385
+ originEvent:
17386
+ | PickFromUnion_2<
17387
+ NativeBehaviorEvent,
17388
+ 'type',
17389
+ 'drag.drop' | 'clipboard.paste'
17390
+ >
17391
+ | InputBehaviorEvent_2
17198
17392
  })
17199
17393
  | {
17200
17394
  type: 'serialization.success'
@@ -17500,22 +17694,26 @@ declare const editorMachine: StateMachine<
17500
17694
  mimeType: `${string}/${string}`
17501
17695
  reason: string
17502
17696
  } & {
17503
- originEvent: PickFromUnion_2<
17504
- NativeBehaviorEvent,
17505
- 'type',
17506
- 'drag.drop' | 'clipboard.paste'
17507
- >
17697
+ originEvent:
17698
+ | PickFromUnion_2<
17699
+ NativeBehaviorEvent,
17700
+ 'type',
17701
+ 'drag.drop' | 'clipboard.paste'
17702
+ >
17703
+ | InputBehaviorEvent_2
17508
17704
  })
17509
17705
  | ({
17510
17706
  type: 'deserialization.success'
17511
17707
  data: Array<PortableTextBlock>
17512
17708
  mimeType: `${string}/${string}`
17513
17709
  } & {
17514
- originEvent: PickFromUnion_2<
17515
- NativeBehaviorEvent,
17516
- 'type',
17517
- 'drag.drop' | 'clipboard.paste'
17518
- >
17710
+ originEvent:
17711
+ | PickFromUnion_2<
17712
+ NativeBehaviorEvent,
17713
+ 'type',
17714
+ 'drag.drop' | 'clipboard.paste'
17715
+ >
17716
+ | InputBehaviorEvent_2
17519
17717
  })
17520
17718
  | {
17521
17719
  type: 'serialization.success'
@@ -17876,22 +18074,26 @@ declare const editorMachine: StateMachine<
17876
18074
  mimeType: `${string}/${string}`
17877
18075
  reason: string
17878
18076
  } & {
17879
- originEvent: PickFromUnion_2<
17880
- NativeBehaviorEvent,
17881
- 'type',
17882
- 'drag.drop' | 'clipboard.paste'
17883
- >
18077
+ originEvent:
18078
+ | PickFromUnion_2<
18079
+ NativeBehaviorEvent,
18080
+ 'type',
18081
+ 'drag.drop' | 'clipboard.paste'
18082
+ >
18083
+ | InputBehaviorEvent_2
17884
18084
  })
17885
18085
  | ({
17886
18086
  type: 'deserialization.success'
17887
18087
  data: Array<PortableTextBlock>
17888
18088
  mimeType: `${string}/${string}`
17889
18089
  } & {
17890
- originEvent: PickFromUnion_2<
17891
- NativeBehaviorEvent,
17892
- 'type',
17893
- 'drag.drop' | 'clipboard.paste'
17894
- >
18090
+ originEvent:
18091
+ | PickFromUnion_2<
18092
+ NativeBehaviorEvent,
18093
+ 'type',
18094
+ 'drag.drop' | 'clipboard.paste'
18095
+ >
18096
+ | InputBehaviorEvent_2
17895
18097
  })
17896
18098
  | {
17897
18099
  type: 'serialization.success'
@@ -18198,22 +18400,26 @@ declare const editorMachine: StateMachine<
18198
18400
  mimeType: `${string}/${string}`
18199
18401
  reason: string
18200
18402
  } & {
18201
- originEvent: PickFromUnion_2<
18202
- NativeBehaviorEvent,
18203
- 'type',
18204
- 'drag.drop' | 'clipboard.paste'
18205
- >
18403
+ originEvent:
18404
+ | PickFromUnion_2<
18405
+ NativeBehaviorEvent,
18406
+ 'type',
18407
+ 'drag.drop' | 'clipboard.paste'
18408
+ >
18409
+ | InputBehaviorEvent_2
18206
18410
  })
18207
18411
  | ({
18208
18412
  type: 'deserialization.success'
18209
18413
  data: Array<PortableTextBlock>
18210
18414
  mimeType: `${string}/${string}`
18211
18415
  } & {
18212
- originEvent: PickFromUnion_2<
18213
- NativeBehaviorEvent,
18214
- 'type',
18215
- 'drag.drop' | 'clipboard.paste'
18216
- >
18416
+ originEvent:
18417
+ | PickFromUnion_2<
18418
+ NativeBehaviorEvent,
18419
+ 'type',
18420
+ 'drag.drop' | 'clipboard.paste'
18421
+ >
18422
+ | InputBehaviorEvent_2
18217
18423
  })
18218
18424
  | {
18219
18425
  type: 'serialization.success'
@@ -18574,22 +18780,26 @@ declare const editorMachine: StateMachine<
18574
18780
  mimeType: `${string}/${string}`
18575
18781
  reason: string
18576
18782
  } & {
18577
- originEvent: PickFromUnion_2<
18578
- NativeBehaviorEvent,
18579
- 'type',
18580
- 'drag.drop' | 'clipboard.paste'
18581
- >
18783
+ originEvent:
18784
+ | PickFromUnion_2<
18785
+ NativeBehaviorEvent,
18786
+ 'type',
18787
+ 'drag.drop' | 'clipboard.paste'
18788
+ >
18789
+ | InputBehaviorEvent_2
18582
18790
  })
18583
18791
  | ({
18584
18792
  type: 'deserialization.success'
18585
18793
  data: Array<PortableTextBlock>
18586
18794
  mimeType: `${string}/${string}`
18587
18795
  } & {
18588
- originEvent: PickFromUnion_2<
18589
- NativeBehaviorEvent,
18590
- 'type',
18591
- 'drag.drop' | 'clipboard.paste'
18592
- >
18796
+ originEvent:
18797
+ | PickFromUnion_2<
18798
+ NativeBehaviorEvent,
18799
+ 'type',
18800
+ 'drag.drop' | 'clipboard.paste'
18801
+ >
18802
+ | InputBehaviorEvent_2
18593
18803
  })
18594
18804
  | {
18595
18805
  type: 'serialization.success'
@@ -18887,22 +19097,26 @@ declare const editorMachine: StateMachine<
18887
19097
  mimeType: `${string}/${string}`
18888
19098
  reason: string
18889
19099
  } & {
18890
- originEvent: PickFromUnion_2<
18891
- NativeBehaviorEvent,
18892
- 'type',
18893
- 'drag.drop' | 'clipboard.paste'
18894
- >
19100
+ originEvent:
19101
+ | PickFromUnion_2<
19102
+ NativeBehaviorEvent,
19103
+ 'type',
19104
+ 'drag.drop' | 'clipboard.paste'
19105
+ >
19106
+ | InputBehaviorEvent_2
18895
19107
  })
18896
19108
  | ({
18897
19109
  type: 'deserialization.success'
18898
19110
  data: Array<PortableTextBlock>
18899
19111
  mimeType: `${string}/${string}`
18900
19112
  } & {
18901
- originEvent: PickFromUnion_2<
18902
- NativeBehaviorEvent,
18903
- 'type',
18904
- 'drag.drop' | 'clipboard.paste'
18905
- >
19113
+ originEvent:
19114
+ | PickFromUnion_2<
19115
+ NativeBehaviorEvent,
19116
+ 'type',
19117
+ 'drag.drop' | 'clipboard.paste'
19118
+ >
19119
+ | InputBehaviorEvent_2
18906
19120
  })
18907
19121
  | {
18908
19122
  type: 'serialization.success'
@@ -19263,22 +19477,26 @@ declare const editorMachine: StateMachine<
19263
19477
  mimeType: `${string}/${string}`
19264
19478
  reason: string
19265
19479
  } & {
19266
- originEvent: PickFromUnion_2<
19267
- NativeBehaviorEvent,
19268
- 'type',
19269
- 'drag.drop' | 'clipboard.paste'
19270
- >
19480
+ originEvent:
19481
+ | PickFromUnion_2<
19482
+ NativeBehaviorEvent,
19483
+ 'type',
19484
+ 'drag.drop' | 'clipboard.paste'
19485
+ >
19486
+ | InputBehaviorEvent_2
19271
19487
  })
19272
19488
  | ({
19273
19489
  type: 'deserialization.success'
19274
19490
  data: Array<PortableTextBlock>
19275
19491
  mimeType: `${string}/${string}`
19276
19492
  } & {
19277
- originEvent: PickFromUnion_2<
19278
- NativeBehaviorEvent,
19279
- 'type',
19280
- 'drag.drop' | 'clipboard.paste'
19281
- >
19493
+ originEvent:
19494
+ | PickFromUnion_2<
19495
+ NativeBehaviorEvent,
19496
+ 'type',
19497
+ 'drag.drop' | 'clipboard.paste'
19498
+ >
19499
+ | InputBehaviorEvent_2
19282
19500
  })
19283
19501
  | {
19284
19502
  type: 'serialization.success'
@@ -19580,22 +19798,26 @@ declare const editorMachine: StateMachine<
19580
19798
  mimeType: `${string}/${string}`
19581
19799
  reason: string
19582
19800
  } & {
19583
- originEvent: PickFromUnion_2<
19584
- NativeBehaviorEvent,
19585
- 'type',
19586
- 'drag.drop' | 'clipboard.paste'
19587
- >
19801
+ originEvent:
19802
+ | PickFromUnion_2<
19803
+ NativeBehaviorEvent,
19804
+ 'type',
19805
+ 'drag.drop' | 'clipboard.paste'
19806
+ >
19807
+ | InputBehaviorEvent_2
19588
19808
  })
19589
19809
  | ({
19590
19810
  type: 'deserialization.success'
19591
19811
  data: Array<PortableTextBlock>
19592
19812
  mimeType: `${string}/${string}`
19593
19813
  } & {
19594
- originEvent: PickFromUnion_2<
19595
- NativeBehaviorEvent,
19596
- 'type',
19597
- 'drag.drop' | 'clipboard.paste'
19598
- >
19814
+ originEvent:
19815
+ | PickFromUnion_2<
19816
+ NativeBehaviorEvent,
19817
+ 'type',
19818
+ 'drag.drop' | 'clipboard.paste'
19819
+ >
19820
+ | InputBehaviorEvent_2
19599
19821
  })
19600
19822
  | {
19601
19823
  type: 'serialization.success'
@@ -19956,22 +20178,26 @@ declare const editorMachine: StateMachine<
19956
20178
  mimeType: `${string}/${string}`
19957
20179
  reason: string
19958
20180
  } & {
19959
- originEvent: PickFromUnion_2<
19960
- NativeBehaviorEvent,
19961
- 'type',
19962
- 'drag.drop' | 'clipboard.paste'
19963
- >
20181
+ originEvent:
20182
+ | PickFromUnion_2<
20183
+ NativeBehaviorEvent,
20184
+ 'type',
20185
+ 'drag.drop' | 'clipboard.paste'
20186
+ >
20187
+ | InputBehaviorEvent_2
19964
20188
  })
19965
20189
  | ({
19966
20190
  type: 'deserialization.success'
19967
20191
  data: Array<PortableTextBlock>
19968
20192
  mimeType: `${string}/${string}`
19969
20193
  } & {
19970
- originEvent: PickFromUnion_2<
19971
- NativeBehaviorEvent,
19972
- 'type',
19973
- 'drag.drop' | 'clipboard.paste'
19974
- >
20194
+ originEvent:
20195
+ | PickFromUnion_2<
20196
+ NativeBehaviorEvent,
20197
+ 'type',
20198
+ 'drag.drop' | 'clipboard.paste'
20199
+ >
20200
+ | InputBehaviorEvent_2
19975
20201
  })
19976
20202
  | {
19977
20203
  type: 'serialization.success'
@@ -20277,22 +20503,26 @@ declare const editorMachine: StateMachine<
20277
20503
  mimeType: `${string}/${string}`
20278
20504
  reason: string
20279
20505
  } & {
20280
- originEvent: PickFromUnion_2<
20281
- NativeBehaviorEvent,
20282
- 'type',
20283
- 'drag.drop' | 'clipboard.paste'
20284
- >
20506
+ originEvent:
20507
+ | PickFromUnion_2<
20508
+ NativeBehaviorEvent,
20509
+ 'type',
20510
+ 'drag.drop' | 'clipboard.paste'
20511
+ >
20512
+ | InputBehaviorEvent_2
20285
20513
  })
20286
20514
  | ({
20287
20515
  type: 'deserialization.success'
20288
20516
  data: Array<PortableTextBlock>
20289
20517
  mimeType: `${string}/${string}`
20290
20518
  } & {
20291
- originEvent: PickFromUnion_2<
20292
- NativeBehaviorEvent,
20293
- 'type',
20294
- 'drag.drop' | 'clipboard.paste'
20295
- >
20519
+ originEvent:
20520
+ | PickFromUnion_2<
20521
+ NativeBehaviorEvent,
20522
+ 'type',
20523
+ 'drag.drop' | 'clipboard.paste'
20524
+ >
20525
+ | InputBehaviorEvent_2
20296
20526
  })
20297
20527
  | {
20298
20528
  type: 'serialization.success'
@@ -20653,22 +20883,26 @@ declare const editorMachine: StateMachine<
20653
20883
  mimeType: `${string}/${string}`
20654
20884
  reason: string
20655
20885
  } & {
20656
- originEvent: PickFromUnion_2<
20657
- NativeBehaviorEvent,
20658
- 'type',
20659
- 'drag.drop' | 'clipboard.paste'
20660
- >
20886
+ originEvent:
20887
+ | PickFromUnion_2<
20888
+ NativeBehaviorEvent,
20889
+ 'type',
20890
+ 'drag.drop' | 'clipboard.paste'
20891
+ >
20892
+ | InputBehaviorEvent_2
20661
20893
  })
20662
20894
  | ({
20663
20895
  type: 'deserialization.success'
20664
20896
  data: Array<PortableTextBlock>
20665
20897
  mimeType: `${string}/${string}`
20666
20898
  } & {
20667
- originEvent: PickFromUnion_2<
20668
- NativeBehaviorEvent,
20669
- 'type',
20670
- 'drag.drop' | 'clipboard.paste'
20671
- >
20899
+ originEvent:
20900
+ | PickFromUnion_2<
20901
+ NativeBehaviorEvent,
20902
+ 'type',
20903
+ 'drag.drop' | 'clipboard.paste'
20904
+ >
20905
+ | InputBehaviorEvent_2
20672
20906
  })
20673
20907
  | {
20674
20908
  type: 'serialization.success'
@@ -20988,22 +21222,26 @@ declare const editorMachine: StateMachine<
20988
21222
  mimeType: `${string}/${string}`
20989
21223
  reason: string
20990
21224
  } & {
20991
- originEvent: PickFromUnion_2<
20992
- NativeBehaviorEvent,
20993
- 'type',
20994
- 'drag.drop' | 'clipboard.paste'
20995
- >
21225
+ originEvent:
21226
+ | PickFromUnion_2<
21227
+ NativeBehaviorEvent,
21228
+ 'type',
21229
+ 'drag.drop' | 'clipboard.paste'
21230
+ >
21231
+ | InputBehaviorEvent_2
20996
21232
  })
20997
21233
  | ({
20998
21234
  type: 'deserialization.success'
20999
21235
  data: Array<PortableTextBlock>
21000
21236
  mimeType: `${string}/${string}`
21001
21237
  } & {
21002
- originEvent: PickFromUnion_2<
21003
- NativeBehaviorEvent,
21004
- 'type',
21005
- 'drag.drop' | 'clipboard.paste'
21006
- >
21238
+ originEvent:
21239
+ | PickFromUnion_2<
21240
+ NativeBehaviorEvent,
21241
+ 'type',
21242
+ 'drag.drop' | 'clipboard.paste'
21243
+ >
21244
+ | InputBehaviorEvent_2
21007
21245
  })
21008
21246
  | {
21009
21247
  type: 'serialization.success'
@@ -21395,22 +21633,26 @@ declare const editorMachine: StateMachine<
21395
21633
  mimeType: `${string}/${string}`
21396
21634
  reason: string
21397
21635
  } & {
21398
- originEvent: PickFromUnion_2<
21399
- NativeBehaviorEvent,
21400
- 'type',
21401
- 'drag.drop' | 'clipboard.paste'
21402
- >
21636
+ originEvent:
21637
+ | PickFromUnion_2<
21638
+ NativeBehaviorEvent,
21639
+ 'type',
21640
+ 'drag.drop' | 'clipboard.paste'
21641
+ >
21642
+ | InputBehaviorEvent_2
21403
21643
  })
21404
21644
  | ({
21405
21645
  type: 'deserialization.success'
21406
21646
  data: Array<PortableTextBlock>
21407
21647
  mimeType: `${string}/${string}`
21408
21648
  } & {
21409
- originEvent: PickFromUnion_2<
21410
- NativeBehaviorEvent,
21411
- 'type',
21412
- 'drag.drop' | 'clipboard.paste'
21413
- >
21649
+ originEvent:
21650
+ | PickFromUnion_2<
21651
+ NativeBehaviorEvent,
21652
+ 'type',
21653
+ 'drag.drop' | 'clipboard.paste'
21654
+ >
21655
+ | InputBehaviorEvent_2
21414
21656
  })
21415
21657
  | {
21416
21658
  type: 'serialization.success'
@@ -21766,22 +22008,26 @@ declare const editorMachine: StateMachine<
21766
22008
  mimeType: `${string}/${string}`
21767
22009
  reason: string
21768
22010
  } & {
21769
- originEvent: PickFromUnion_2<
21770
- NativeBehaviorEvent,
21771
- 'type',
21772
- 'drag.drop' | 'clipboard.paste'
21773
- >
22011
+ originEvent:
22012
+ | PickFromUnion_2<
22013
+ NativeBehaviorEvent,
22014
+ 'type',
22015
+ 'drag.drop' | 'clipboard.paste'
22016
+ >
22017
+ | InputBehaviorEvent_2
21774
22018
  })
21775
22019
  | ({
21776
22020
  type: 'deserialization.success'
21777
22021
  data: Array<PortableTextBlock>
21778
22022
  mimeType: `${string}/${string}`
21779
22023
  } & {
21780
- originEvent: PickFromUnion_2<
21781
- NativeBehaviorEvent,
21782
- 'type',
21783
- 'drag.drop' | 'clipboard.paste'
21784
- >
22024
+ originEvent:
22025
+ | PickFromUnion_2<
22026
+ NativeBehaviorEvent,
22027
+ 'type',
22028
+ 'drag.drop' | 'clipboard.paste'
22029
+ >
22030
+ | InputBehaviorEvent_2
21785
22031
  })
21786
22032
  | {
21787
22033
  type: 'serialization.success'
@@ -22154,22 +22400,26 @@ declare const editorMachine: StateMachine<
22154
22400
  mimeType: `${string}/${string}`
22155
22401
  reason: string
22156
22402
  } & {
22157
- originEvent: PickFromUnion_2<
22158
- NativeBehaviorEvent,
22159
- 'type',
22160
- 'drag.drop' | 'clipboard.paste'
22161
- >
22403
+ originEvent:
22404
+ | PickFromUnion_2<
22405
+ NativeBehaviorEvent,
22406
+ 'type',
22407
+ 'drag.drop' | 'clipboard.paste'
22408
+ >
22409
+ | InputBehaviorEvent_2
22162
22410
  })
22163
22411
  | ({
22164
22412
  type: 'deserialization.success'
22165
22413
  data: Array<PortableTextBlock>
22166
22414
  mimeType: `${string}/${string}`
22167
22415
  } & {
22168
- originEvent: PickFromUnion_2<
22169
- NativeBehaviorEvent,
22170
- 'type',
22171
- 'drag.drop' | 'clipboard.paste'
22172
- >
22416
+ originEvent:
22417
+ | PickFromUnion_2<
22418
+ NativeBehaviorEvent,
22419
+ 'type',
22420
+ 'drag.drop' | 'clipboard.paste'
22421
+ >
22422
+ | InputBehaviorEvent_2
22173
22423
  })
22174
22424
  | {
22175
22425
  type: 'serialization.success'
@@ -22525,22 +22775,26 @@ declare const editorMachine: StateMachine<
22525
22775
  mimeType: `${string}/${string}`
22526
22776
  reason: string
22527
22777
  } & {
22528
- originEvent: PickFromUnion_2<
22529
- NativeBehaviorEvent,
22530
- 'type',
22531
- 'drag.drop' | 'clipboard.paste'
22532
- >
22778
+ originEvent:
22779
+ | PickFromUnion_2<
22780
+ NativeBehaviorEvent,
22781
+ 'type',
22782
+ 'drag.drop' | 'clipboard.paste'
22783
+ >
22784
+ | InputBehaviorEvent_2
22533
22785
  })
22534
22786
  | ({
22535
22787
  type: 'deserialization.success'
22536
22788
  data: Array<PortableTextBlock>
22537
22789
  mimeType: `${string}/${string}`
22538
22790
  } & {
22539
- originEvent: PickFromUnion_2<
22540
- NativeBehaviorEvent,
22541
- 'type',
22542
- 'drag.drop' | 'clipboard.paste'
22543
- >
22791
+ originEvent:
22792
+ | PickFromUnion_2<
22793
+ NativeBehaviorEvent,
22794
+ 'type',
22795
+ 'drag.drop' | 'clipboard.paste'
22796
+ >
22797
+ | InputBehaviorEvent_2
22544
22798
  })
22545
22799
  | {
22546
22800
  type: 'serialization.success'
@@ -22949,6 +23203,24 @@ export declare type HotkeyOptions = {
22949
23203
  >
22950
23204
  }
22951
23205
 
23206
+ /**
23207
+ * Used to represent native InputEvents that hold a DataTransfer object.
23208
+ *
23209
+ * These can either be one of:
23210
+ *
23211
+ * - insertFromPaste
23212
+ * - insertFromPasteAsQuotation
23213
+ * - insertFromDrop
23214
+ * - insertReplacementText
23215
+ * - insertFromYank
23216
+ */
23217
+ declare type InputBehaviorEvent = {
23218
+ type: 'input.*'
23219
+ originEvent: {
23220
+ dataTransfer: DataTransfer
23221
+ }
23222
+ }
23223
+
22952
23224
  declare type InsertPlacement = 'auto' | 'after' | 'before'
22953
23225
 
22954
23226
  declare type InternalPatchEvent = NamespaceEvent<PatchEvent, 'internal'> & {
@@ -23065,9 +23337,10 @@ declare type NamespaceEvent<
23065
23337
  */
23066
23338
  declare type NativeBehaviorEvent =
23067
23339
  | ClipboardBehaviorEvent
23340
+ | DragBehaviorEvent
23341
+ | InputBehaviorEvent
23068
23342
  | KeyboardBehaviorEvent
23069
23343
  | MouseBehaviorEvent
23070
- | DragBehaviorEvent
23071
23344
 
23072
23345
  /** @beta */
23073
23346
  export declare type OnBeforeInputFn = (event: InputEvent) => void
@@ -24100,11 +24373,13 @@ declare type SyntheticBehaviorEvent =
24100
24373
  'type',
24101
24374
  'deserialization.failure' | 'deserialization.success'
24102
24375
  > & {
24103
- originEvent: PickFromUnion<
24104
- NativeBehaviorEvent,
24105
- 'type',
24106
- 'drag.drop' | 'clipboard.paste'
24107
- >
24376
+ originEvent:
24377
+ | PickFromUnion<
24378
+ NativeBehaviorEvent,
24379
+ 'type',
24380
+ 'drag.drop' | 'clipboard.paste'
24381
+ >
24382
+ | InputBehaviorEvent
24108
24383
  })
24109
24384
  | {
24110
24385
  type: 'serialization.success'