@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
@@ -53,7 +53,10 @@ import {
53
53
  BlockOffset as BlockOffset_2,
54
54
  PortableTextMemberSchemaTypes as PortableTextMemberSchemaTypes_2,
55
55
  } from '..'
56
- import {InsertPlacement as InsertPlacement_2} from '../behaviors/behavior.types'
56
+ import {
57
+ InputBehaviorEvent as InputBehaviorEvent_2,
58
+ InsertPlacement as InsertPlacement_2,
59
+ } from '../behaviors/behavior.types'
57
60
  import {MIMEType as MIMEType_2} from '../internal-utils/mime-type'
58
61
  import {PickFromUnion as PickFromUnion_2} from '../type-utils'
59
62
 
@@ -69,11 +72,13 @@ declare type Behavior<
69
72
  ? ClipboardBehaviorEvent
70
73
  : TBehaviorEventType extends 'drag.*'
71
74
  ? DragBehaviorEvent
72
- : TBehaviorEventType extends 'keyboard.*'
73
- ? KeyboardBehaviorEvent
74
- : TBehaviorEventType extends 'mouse.*'
75
- ? MouseBehaviorEvent
76
- : PickFromUnion<BehaviorEvent, 'type', TBehaviorEventType>,
75
+ : TBehaviorEventType extends 'input.*'
76
+ ? InputBehaviorEvent
77
+ : TBehaviorEventType extends 'keyboard.*'
78
+ ? KeyboardBehaviorEvent
79
+ : TBehaviorEventType extends 'mouse.*'
80
+ ? MouseBehaviorEvent
81
+ : PickFromUnion<BehaviorEvent, 'type', TBehaviorEventType>,
77
82
  > = {
78
83
  /**
79
84
  * The internal editor event that triggers this behavior.
@@ -141,6 +146,9 @@ declare type BehaviorEvent =
141
146
  | {
142
147
  type: 'drag.*'
143
148
  }
149
+ | {
150
+ type: 'input.*'
151
+ }
144
152
  | {
145
153
  type: 'keyboard.*'
146
154
  }
@@ -289,11 +297,13 @@ declare type CustomBehaviorEvent<
289
297
  declare type DataBehaviorEvent =
290
298
  | {
291
299
  type: 'deserialize'
292
- originEvent: PickFromUnion<
293
- NativeBehaviorEvent,
294
- 'type',
295
- 'drag.drop' | 'clipboard.paste'
296
- >
300
+ originEvent:
301
+ | PickFromUnion<
302
+ NativeBehaviorEvent,
303
+ 'type',
304
+ 'drag.drop' | 'clipboard.paste'
305
+ >
306
+ | InputBehaviorEvent
297
307
  }
298
308
  | {
299
309
  type: 'serialize'
@@ -692,22 +702,26 @@ declare const editorMachine: StateMachine<
692
702
  mimeType: `${string}/${string}`
693
703
  reason: string
694
704
  } & {
695
- originEvent: PickFromUnion_2<
696
- NativeBehaviorEvent,
697
- 'type',
698
- 'drag.drop' | 'clipboard.paste'
699
- >
705
+ originEvent:
706
+ | PickFromUnion_2<
707
+ NativeBehaviorEvent,
708
+ 'type',
709
+ 'drag.drop' | 'clipboard.paste'
710
+ >
711
+ | InputBehaviorEvent_2
700
712
  })
701
713
  | ({
702
714
  type: 'deserialization.success'
703
715
  data: Array<PortableTextBlock>
704
716
  mimeType: `${string}/${string}`
705
717
  } & {
706
- originEvent: PickFromUnion_2<
707
- NativeBehaviorEvent,
708
- 'type',
709
- 'drag.drop' | 'clipboard.paste'
710
- >
718
+ originEvent:
719
+ | PickFromUnion_2<
720
+ NativeBehaviorEvent,
721
+ 'type',
722
+ 'drag.drop' | 'clipboard.paste'
723
+ >
724
+ | InputBehaviorEvent_2
711
725
  })
712
726
  | {
713
727
  type: 'serialization.success'
@@ -1147,22 +1161,26 @@ declare const editorMachine: StateMachine<
1147
1161
  mimeType: `${string}/${string}`
1148
1162
  reason: string
1149
1163
  } & {
1150
- originEvent: PickFromUnion_2<
1151
- NativeBehaviorEvent,
1152
- 'type',
1153
- 'drag.drop' | 'clipboard.paste'
1154
- >
1164
+ originEvent:
1165
+ | PickFromUnion_2<
1166
+ NativeBehaviorEvent,
1167
+ 'type',
1168
+ 'drag.drop' | 'clipboard.paste'
1169
+ >
1170
+ | InputBehaviorEvent_2
1155
1171
  })
1156
1172
  | ({
1157
1173
  type: 'deserialization.success'
1158
1174
  data: Array<PortableTextBlock>
1159
1175
  mimeType: `${string}/${string}`
1160
1176
  } & {
1161
- originEvent: PickFromUnion_2<
1162
- NativeBehaviorEvent,
1163
- 'type',
1164
- 'drag.drop' | 'clipboard.paste'
1165
- >
1177
+ originEvent:
1178
+ | PickFromUnion_2<
1179
+ NativeBehaviorEvent,
1180
+ 'type',
1181
+ 'drag.drop' | 'clipboard.paste'
1182
+ >
1183
+ | InputBehaviorEvent_2
1166
1184
  })
1167
1185
  | {
1168
1186
  type: 'serialization.success'
@@ -1491,22 +1509,26 @@ declare const editorMachine: StateMachine<
1491
1509
  mimeType: `${string}/${string}`
1492
1510
  reason: string
1493
1511
  } & {
1494
- originEvent: PickFromUnion_2<
1495
- NativeBehaviorEvent,
1496
- 'type',
1497
- 'drag.drop' | 'clipboard.paste'
1498
- >
1512
+ originEvent:
1513
+ | PickFromUnion_2<
1514
+ NativeBehaviorEvent,
1515
+ 'type',
1516
+ 'drag.drop' | 'clipboard.paste'
1517
+ >
1518
+ | InputBehaviorEvent_2
1499
1519
  })
1500
1520
  | ({
1501
1521
  type: 'deserialization.success'
1502
1522
  data: Array<PortableTextBlock>
1503
1523
  mimeType: `${string}/${string}`
1504
1524
  } & {
1505
- originEvent: PickFromUnion_2<
1506
- NativeBehaviorEvent,
1507
- 'type',
1508
- 'drag.drop' | 'clipboard.paste'
1509
- >
1525
+ originEvent:
1526
+ | PickFromUnion_2<
1527
+ NativeBehaviorEvent,
1528
+ 'type',
1529
+ 'drag.drop' | 'clipboard.paste'
1530
+ >
1531
+ | InputBehaviorEvent_2
1510
1532
  })
1511
1533
  | {
1512
1534
  type: 'serialization.success'
@@ -1869,22 +1891,26 @@ declare const editorMachine: StateMachine<
1869
1891
  mimeType: `${string}/${string}`
1870
1892
  reason: string
1871
1893
  } & {
1872
- originEvent: PickFromUnion_2<
1873
- NativeBehaviorEvent,
1874
- 'type',
1875
- 'drag.drop' | 'clipboard.paste'
1876
- >
1894
+ originEvent:
1895
+ | PickFromUnion_2<
1896
+ NativeBehaviorEvent,
1897
+ 'type',
1898
+ 'drag.drop' | 'clipboard.paste'
1899
+ >
1900
+ | InputBehaviorEvent_2
1877
1901
  })
1878
1902
  | ({
1879
1903
  type: 'deserialization.success'
1880
1904
  data: Array<PortableTextBlock>
1881
1905
  mimeType: `${string}/${string}`
1882
1906
  } & {
1883
- originEvent: PickFromUnion_2<
1884
- NativeBehaviorEvent,
1885
- 'type',
1886
- 'drag.drop' | 'clipboard.paste'
1887
- >
1907
+ originEvent:
1908
+ | PickFromUnion_2<
1909
+ NativeBehaviorEvent,
1910
+ 'type',
1911
+ 'drag.drop' | 'clipboard.paste'
1912
+ >
1913
+ | InputBehaviorEvent_2
1888
1914
  })
1889
1915
  | {
1890
1916
  type: 'serialization.success'
@@ -2275,22 +2301,26 @@ declare const editorMachine: StateMachine<
2275
2301
  mimeType: `${string}/${string}`
2276
2302
  reason: string
2277
2303
  } & {
2278
- originEvent: PickFromUnion_2<
2279
- NativeBehaviorEvent,
2280
- 'type',
2281
- 'drag.drop' | 'clipboard.paste'
2282
- >
2304
+ originEvent:
2305
+ | PickFromUnion_2<
2306
+ NativeBehaviorEvent,
2307
+ 'type',
2308
+ 'drag.drop' | 'clipboard.paste'
2309
+ >
2310
+ | InputBehaviorEvent_2
2283
2311
  })
2284
2312
  | ({
2285
2313
  type: 'deserialization.success'
2286
2314
  data: Array<PortableTextBlock>
2287
2315
  mimeType: `${string}/${string}`
2288
2316
  } & {
2289
- originEvent: PickFromUnion_2<
2290
- NativeBehaviorEvent,
2291
- 'type',
2292
- 'drag.drop' | 'clipboard.paste'
2293
- >
2317
+ originEvent:
2318
+ | PickFromUnion_2<
2319
+ NativeBehaviorEvent,
2320
+ 'type',
2321
+ 'drag.drop' | 'clipboard.paste'
2322
+ >
2323
+ | InputBehaviorEvent_2
2294
2324
  })
2295
2325
  | {
2296
2326
  type: 'serialization.success'
@@ -2651,22 +2681,26 @@ declare const editorMachine: StateMachine<
2651
2681
  mimeType: `${string}/${string}`
2652
2682
  reason: string
2653
2683
  } & {
2654
- originEvent: PickFromUnion_2<
2655
- NativeBehaviorEvent,
2656
- 'type',
2657
- 'drag.drop' | 'clipboard.paste'
2658
- >
2684
+ originEvent:
2685
+ | PickFromUnion_2<
2686
+ NativeBehaviorEvent,
2687
+ 'type',
2688
+ 'drag.drop' | 'clipboard.paste'
2689
+ >
2690
+ | InputBehaviorEvent_2
2659
2691
  })
2660
2692
  | ({
2661
2693
  type: 'deserialization.success'
2662
2694
  data: Array<PortableTextBlock>
2663
2695
  mimeType: `${string}/${string}`
2664
2696
  } & {
2665
- originEvent: PickFromUnion_2<
2666
- NativeBehaviorEvent,
2667
- 'type',
2668
- 'drag.drop' | 'clipboard.paste'
2669
- >
2697
+ originEvent:
2698
+ | PickFromUnion_2<
2699
+ NativeBehaviorEvent,
2700
+ 'type',
2701
+ 'drag.drop' | 'clipboard.paste'
2702
+ >
2703
+ | InputBehaviorEvent_2
2670
2704
  })
2671
2705
  | {
2672
2706
  type: 'serialization.success'
@@ -2963,22 +2997,26 @@ declare const editorMachine: StateMachine<
2963
2997
  mimeType: `${string}/${string}`
2964
2998
  reason: string
2965
2999
  } & {
2966
- originEvent: PickFromUnion_2<
2967
- NativeBehaviorEvent,
2968
- 'type',
2969
- 'drag.drop' | 'clipboard.paste'
2970
- >
3000
+ originEvent:
3001
+ | PickFromUnion_2<
3002
+ NativeBehaviorEvent,
3003
+ 'type',
3004
+ 'drag.drop' | 'clipboard.paste'
3005
+ >
3006
+ | InputBehaviorEvent_2
2971
3007
  })
2972
3008
  | ({
2973
3009
  type: 'deserialization.success'
2974
3010
  data: Array<PortableTextBlock>
2975
3011
  mimeType: `${string}/${string}`
2976
3012
  } & {
2977
- originEvent: PickFromUnion_2<
2978
- NativeBehaviorEvent,
2979
- 'type',
2980
- 'drag.drop' | 'clipboard.paste'
2981
- >
3013
+ originEvent:
3014
+ | PickFromUnion_2<
3015
+ NativeBehaviorEvent,
3016
+ 'type',
3017
+ 'drag.drop' | 'clipboard.paste'
3018
+ >
3019
+ | InputBehaviorEvent_2
2982
3020
  })
2983
3021
  | {
2984
3022
  type: 'serialization.success'
@@ -3339,22 +3377,26 @@ declare const editorMachine: StateMachine<
3339
3377
  mimeType: `${string}/${string}`
3340
3378
  reason: string
3341
3379
  } & {
3342
- originEvent: PickFromUnion_2<
3343
- NativeBehaviorEvent,
3344
- 'type',
3345
- 'drag.drop' | 'clipboard.paste'
3346
- >
3380
+ originEvent:
3381
+ | PickFromUnion_2<
3382
+ NativeBehaviorEvent,
3383
+ 'type',
3384
+ 'drag.drop' | 'clipboard.paste'
3385
+ >
3386
+ | InputBehaviorEvent_2
3347
3387
  })
3348
3388
  | ({
3349
3389
  type: 'deserialization.success'
3350
3390
  data: Array<PortableTextBlock>
3351
3391
  mimeType: `${string}/${string}`
3352
3392
  } & {
3353
- originEvent: PickFromUnion_2<
3354
- NativeBehaviorEvent,
3355
- 'type',
3356
- 'drag.drop' | 'clipboard.paste'
3357
- >
3393
+ originEvent:
3394
+ | PickFromUnion_2<
3395
+ NativeBehaviorEvent,
3396
+ 'type',
3397
+ 'drag.drop' | 'clipboard.paste'
3398
+ >
3399
+ | InputBehaviorEvent_2
3358
3400
  })
3359
3401
  | {
3360
3402
  type: 'serialization.success'
@@ -3654,22 +3696,26 @@ declare const editorMachine: StateMachine<
3654
3696
  mimeType: `${string}/${string}`
3655
3697
  reason: string
3656
3698
  } & {
3657
- originEvent: PickFromUnion_2<
3658
- NativeBehaviorEvent,
3659
- 'type',
3660
- 'drag.drop' | 'clipboard.paste'
3661
- >
3699
+ originEvent:
3700
+ | PickFromUnion_2<
3701
+ NativeBehaviorEvent,
3702
+ 'type',
3703
+ 'drag.drop' | 'clipboard.paste'
3704
+ >
3705
+ | InputBehaviorEvent_2
3662
3706
  })
3663
3707
  | ({
3664
3708
  type: 'deserialization.success'
3665
3709
  data: Array<PortableTextBlock>
3666
3710
  mimeType: `${string}/${string}`
3667
3711
  } & {
3668
- originEvent: PickFromUnion_2<
3669
- NativeBehaviorEvent,
3670
- 'type',
3671
- 'drag.drop' | 'clipboard.paste'
3672
- >
3712
+ originEvent:
3713
+ | PickFromUnion_2<
3714
+ NativeBehaviorEvent,
3715
+ 'type',
3716
+ 'drag.drop' | 'clipboard.paste'
3717
+ >
3718
+ | InputBehaviorEvent_2
3673
3719
  })
3674
3720
  | {
3675
3721
  type: 'serialization.success'
@@ -4030,22 +4076,26 @@ declare const editorMachine: StateMachine<
4030
4076
  mimeType: `${string}/${string}`
4031
4077
  reason: string
4032
4078
  } & {
4033
- originEvent: PickFromUnion_2<
4034
- NativeBehaviorEvent,
4035
- 'type',
4036
- 'drag.drop' | 'clipboard.paste'
4037
- >
4079
+ originEvent:
4080
+ | PickFromUnion_2<
4081
+ NativeBehaviorEvent,
4082
+ 'type',
4083
+ 'drag.drop' | 'clipboard.paste'
4084
+ >
4085
+ | InputBehaviorEvent_2
4038
4086
  })
4039
4087
  | ({
4040
4088
  type: 'deserialization.success'
4041
4089
  data: Array<PortableTextBlock>
4042
4090
  mimeType: `${string}/${string}`
4043
4091
  } & {
4044
- originEvent: PickFromUnion_2<
4045
- NativeBehaviorEvent,
4046
- 'type',
4047
- 'drag.drop' | 'clipboard.paste'
4048
- >
4092
+ originEvent:
4093
+ | PickFromUnion_2<
4094
+ NativeBehaviorEvent,
4095
+ 'type',
4096
+ 'drag.drop' | 'clipboard.paste'
4097
+ >
4098
+ | InputBehaviorEvent_2
4049
4099
  })
4050
4100
  | {
4051
4101
  type: 'serialization.success'
@@ -4344,22 +4394,26 @@ declare const editorMachine: StateMachine<
4344
4394
  mimeType: `${string}/${string}`
4345
4395
  reason: string
4346
4396
  } & {
4347
- originEvent: PickFromUnion_2<
4348
- NativeBehaviorEvent,
4349
- 'type',
4350
- 'drag.drop' | 'clipboard.paste'
4351
- >
4397
+ originEvent:
4398
+ | PickFromUnion_2<
4399
+ NativeBehaviorEvent,
4400
+ 'type',
4401
+ 'drag.drop' | 'clipboard.paste'
4402
+ >
4403
+ | InputBehaviorEvent_2
4352
4404
  })
4353
4405
  | ({
4354
4406
  type: 'deserialization.success'
4355
4407
  data: Array<PortableTextBlock>
4356
4408
  mimeType: `${string}/${string}`
4357
4409
  } & {
4358
- originEvent: PickFromUnion_2<
4359
- NativeBehaviorEvent,
4360
- 'type',
4361
- 'drag.drop' | 'clipboard.paste'
4362
- >
4410
+ originEvent:
4411
+ | PickFromUnion_2<
4412
+ NativeBehaviorEvent,
4413
+ 'type',
4414
+ 'drag.drop' | 'clipboard.paste'
4415
+ >
4416
+ | InputBehaviorEvent_2
4363
4417
  })
4364
4418
  | {
4365
4419
  type: 'serialization.success'
@@ -4720,22 +4774,26 @@ declare const editorMachine: StateMachine<
4720
4774
  mimeType: `${string}/${string}`
4721
4775
  reason: string
4722
4776
  } & {
4723
- originEvent: PickFromUnion_2<
4724
- NativeBehaviorEvent,
4725
- 'type',
4726
- 'drag.drop' | 'clipboard.paste'
4727
- >
4777
+ originEvent:
4778
+ | PickFromUnion_2<
4779
+ NativeBehaviorEvent,
4780
+ 'type',
4781
+ 'drag.drop' | 'clipboard.paste'
4782
+ >
4783
+ | InputBehaviorEvent_2
4728
4784
  })
4729
4785
  | ({
4730
4786
  type: 'deserialization.success'
4731
4787
  data: Array<PortableTextBlock>
4732
4788
  mimeType: `${string}/${string}`
4733
4789
  } & {
4734
- originEvent: PickFromUnion_2<
4735
- NativeBehaviorEvent,
4736
- 'type',
4737
- 'drag.drop' | 'clipboard.paste'
4738
- >
4790
+ originEvent:
4791
+ | PickFromUnion_2<
4792
+ NativeBehaviorEvent,
4793
+ 'type',
4794
+ 'drag.drop' | 'clipboard.paste'
4795
+ >
4796
+ | InputBehaviorEvent_2
4739
4797
  })
4740
4798
  | {
4741
4799
  type: 'serialization.success'
@@ -5033,22 +5091,26 @@ declare const editorMachine: StateMachine<
5033
5091
  mimeType: `${string}/${string}`
5034
5092
  reason: string
5035
5093
  } & {
5036
- originEvent: PickFromUnion_2<
5037
- NativeBehaviorEvent,
5038
- 'type',
5039
- 'drag.drop' | 'clipboard.paste'
5040
- >
5094
+ originEvent:
5095
+ | PickFromUnion_2<
5096
+ NativeBehaviorEvent,
5097
+ 'type',
5098
+ 'drag.drop' | 'clipboard.paste'
5099
+ >
5100
+ | InputBehaviorEvent_2
5041
5101
  })
5042
5102
  | ({
5043
5103
  type: 'deserialization.success'
5044
5104
  data: Array<PortableTextBlock>
5045
5105
  mimeType: `${string}/${string}`
5046
5106
  } & {
5047
- originEvent: PickFromUnion_2<
5048
- NativeBehaviorEvent,
5049
- 'type',
5050
- 'drag.drop' | 'clipboard.paste'
5051
- >
5107
+ originEvent:
5108
+ | PickFromUnion_2<
5109
+ NativeBehaviorEvent,
5110
+ 'type',
5111
+ 'drag.drop' | 'clipboard.paste'
5112
+ >
5113
+ | InputBehaviorEvent_2
5052
5114
  })
5053
5115
  | {
5054
5116
  type: 'serialization.success'
@@ -5409,22 +5471,26 @@ declare const editorMachine: StateMachine<
5409
5471
  mimeType: `${string}/${string}`
5410
5472
  reason: string
5411
5473
  } & {
5412
- originEvent: PickFromUnion_2<
5413
- NativeBehaviorEvent,
5414
- 'type',
5415
- 'drag.drop' | 'clipboard.paste'
5416
- >
5474
+ originEvent:
5475
+ | PickFromUnion_2<
5476
+ NativeBehaviorEvent,
5477
+ 'type',
5478
+ 'drag.drop' | 'clipboard.paste'
5479
+ >
5480
+ | InputBehaviorEvent_2
5417
5481
  })
5418
5482
  | ({
5419
5483
  type: 'deserialization.success'
5420
5484
  data: Array<PortableTextBlock>
5421
5485
  mimeType: `${string}/${string}`
5422
5486
  } & {
5423
- originEvent: PickFromUnion_2<
5424
- NativeBehaviorEvent,
5425
- 'type',
5426
- 'drag.drop' | 'clipboard.paste'
5427
- >
5487
+ originEvent:
5488
+ | PickFromUnion_2<
5489
+ NativeBehaviorEvent,
5490
+ 'type',
5491
+ 'drag.drop' | 'clipboard.paste'
5492
+ >
5493
+ | InputBehaviorEvent_2
5428
5494
  })
5429
5495
  | {
5430
5496
  type: 'serialization.success'
@@ -5723,22 +5789,26 @@ declare const editorMachine: StateMachine<
5723
5789
  mimeType: `${string}/${string}`
5724
5790
  reason: string
5725
5791
  } & {
5726
- originEvent: PickFromUnion_2<
5727
- NativeBehaviorEvent,
5728
- 'type',
5729
- 'drag.drop' | 'clipboard.paste'
5730
- >
5792
+ originEvent:
5793
+ | PickFromUnion_2<
5794
+ NativeBehaviorEvent,
5795
+ 'type',
5796
+ 'drag.drop' | 'clipboard.paste'
5797
+ >
5798
+ | InputBehaviorEvent_2
5731
5799
  })
5732
5800
  | ({
5733
5801
  type: 'deserialization.success'
5734
5802
  data: Array<PortableTextBlock>
5735
5803
  mimeType: `${string}/${string}`
5736
5804
  } & {
5737
- originEvent: PickFromUnion_2<
5738
- NativeBehaviorEvent,
5739
- 'type',
5740
- 'drag.drop' | 'clipboard.paste'
5741
- >
5805
+ originEvent:
5806
+ | PickFromUnion_2<
5807
+ NativeBehaviorEvent,
5808
+ 'type',
5809
+ 'drag.drop' | 'clipboard.paste'
5810
+ >
5811
+ | InputBehaviorEvent_2
5742
5812
  })
5743
5813
  | {
5744
5814
  type: 'serialization.success'
@@ -6121,22 +6191,26 @@ declare const editorMachine: StateMachine<
6121
6191
  mimeType: `${string}/${string}`
6122
6192
  reason: string
6123
6193
  } & {
6124
- originEvent: PickFromUnion_2<
6125
- NativeBehaviorEvent,
6126
- 'type',
6127
- 'drag.drop' | 'clipboard.paste'
6128
- >
6194
+ originEvent:
6195
+ | PickFromUnion_2<
6196
+ NativeBehaviorEvent,
6197
+ 'type',
6198
+ 'drag.drop' | 'clipboard.paste'
6199
+ >
6200
+ | InputBehaviorEvent_2
6129
6201
  })
6130
6202
  | ({
6131
6203
  type: 'deserialization.success'
6132
6204
  data: Array<PortableTextBlock>
6133
6205
  mimeType: `${string}/${string}`
6134
6206
  } & {
6135
- originEvent: PickFromUnion_2<
6136
- NativeBehaviorEvent,
6137
- 'type',
6138
- 'drag.drop' | 'clipboard.paste'
6139
- >
6207
+ originEvent:
6208
+ | PickFromUnion_2<
6209
+ NativeBehaviorEvent,
6210
+ 'type',
6211
+ 'drag.drop' | 'clipboard.paste'
6212
+ >
6213
+ | InputBehaviorEvent_2
6140
6214
  })
6141
6215
  | {
6142
6216
  type: 'serialization.success'
@@ -6497,22 +6571,26 @@ declare const editorMachine: StateMachine<
6497
6571
  mimeType: `${string}/${string}`
6498
6572
  reason: string
6499
6573
  } & {
6500
- originEvent: PickFromUnion_2<
6501
- NativeBehaviorEvent,
6502
- 'type',
6503
- 'drag.drop' | 'clipboard.paste'
6504
- >
6574
+ originEvent:
6575
+ | PickFromUnion_2<
6576
+ NativeBehaviorEvent,
6577
+ 'type',
6578
+ 'drag.drop' | 'clipboard.paste'
6579
+ >
6580
+ | InputBehaviorEvent_2
6505
6581
  })
6506
6582
  | ({
6507
6583
  type: 'deserialization.success'
6508
6584
  data: Array<PortableTextBlock>
6509
6585
  mimeType: `${string}/${string}`
6510
6586
  } & {
6511
- originEvent: PickFromUnion_2<
6512
- NativeBehaviorEvent,
6513
- 'type',
6514
- 'drag.drop' | 'clipboard.paste'
6515
- >
6587
+ originEvent:
6588
+ | PickFromUnion_2<
6589
+ NativeBehaviorEvent,
6590
+ 'type',
6591
+ 'drag.drop' | 'clipboard.paste'
6592
+ >
6593
+ | InputBehaviorEvent_2
6516
6594
  })
6517
6595
  | {
6518
6596
  type: 'serialization.success'
@@ -6811,22 +6889,26 @@ declare const editorMachine: StateMachine<
6811
6889
  mimeType: `${string}/${string}`
6812
6890
  reason: string
6813
6891
  } & {
6814
- originEvent: PickFromUnion_2<
6815
- NativeBehaviorEvent,
6816
- 'type',
6817
- 'drag.drop' | 'clipboard.paste'
6818
- >
6892
+ originEvent:
6893
+ | PickFromUnion_2<
6894
+ NativeBehaviorEvent,
6895
+ 'type',
6896
+ 'drag.drop' | 'clipboard.paste'
6897
+ >
6898
+ | InputBehaviorEvent_2
6819
6899
  })
6820
6900
  | ({
6821
6901
  type: 'deserialization.success'
6822
6902
  data: Array<PortableTextBlock>
6823
6903
  mimeType: `${string}/${string}`
6824
6904
  } & {
6825
- originEvent: PickFromUnion_2<
6826
- NativeBehaviorEvent,
6827
- 'type',
6828
- 'drag.drop' | 'clipboard.paste'
6829
- >
6905
+ originEvent:
6906
+ | PickFromUnion_2<
6907
+ NativeBehaviorEvent,
6908
+ 'type',
6909
+ 'drag.drop' | 'clipboard.paste'
6910
+ >
6911
+ | InputBehaviorEvent_2
6830
6912
  })
6831
6913
  | {
6832
6914
  type: 'serialization.success'
@@ -7187,22 +7269,26 @@ declare const editorMachine: StateMachine<
7187
7269
  mimeType: `${string}/${string}`
7188
7270
  reason: string
7189
7271
  } & {
7190
- originEvent: PickFromUnion_2<
7191
- NativeBehaviorEvent,
7192
- 'type',
7193
- 'drag.drop' | 'clipboard.paste'
7194
- >
7272
+ originEvent:
7273
+ | PickFromUnion_2<
7274
+ NativeBehaviorEvent,
7275
+ 'type',
7276
+ 'drag.drop' | 'clipboard.paste'
7277
+ >
7278
+ | InputBehaviorEvent_2
7195
7279
  })
7196
7280
  | ({
7197
7281
  type: 'deserialization.success'
7198
7282
  data: Array<PortableTextBlock>
7199
7283
  mimeType: `${string}/${string}`
7200
7284
  } & {
7201
- originEvent: PickFromUnion_2<
7202
- NativeBehaviorEvent,
7203
- 'type',
7204
- 'drag.drop' | 'clipboard.paste'
7205
- >
7285
+ originEvent:
7286
+ | PickFromUnion_2<
7287
+ NativeBehaviorEvent,
7288
+ 'type',
7289
+ 'drag.drop' | 'clipboard.paste'
7290
+ >
7291
+ | InputBehaviorEvent_2
7206
7292
  })
7207
7293
  | {
7208
7294
  type: 'serialization.success'
@@ -7499,22 +7585,26 @@ declare const editorMachine: StateMachine<
7499
7585
  mimeType: `${string}/${string}`
7500
7586
  reason: string
7501
7587
  } & {
7502
- originEvent: PickFromUnion_2<
7503
- NativeBehaviorEvent,
7504
- 'type',
7505
- 'drag.drop' | 'clipboard.paste'
7506
- >
7588
+ originEvent:
7589
+ | PickFromUnion_2<
7590
+ NativeBehaviorEvent,
7591
+ 'type',
7592
+ 'drag.drop' | 'clipboard.paste'
7593
+ >
7594
+ | InputBehaviorEvent_2
7507
7595
  })
7508
7596
  | ({
7509
7597
  type: 'deserialization.success'
7510
7598
  data: Array<PortableTextBlock>
7511
7599
  mimeType: `${string}/${string}`
7512
7600
  } & {
7513
- originEvent: PickFromUnion_2<
7514
- NativeBehaviorEvent,
7515
- 'type',
7516
- 'drag.drop' | 'clipboard.paste'
7517
- >
7601
+ originEvent:
7602
+ | PickFromUnion_2<
7603
+ NativeBehaviorEvent,
7604
+ 'type',
7605
+ 'drag.drop' | 'clipboard.paste'
7606
+ >
7607
+ | InputBehaviorEvent_2
7518
7608
  })
7519
7609
  | {
7520
7610
  type: 'serialization.success'
@@ -7875,22 +7965,26 @@ declare const editorMachine: StateMachine<
7875
7965
  mimeType: `${string}/${string}`
7876
7966
  reason: string
7877
7967
  } & {
7878
- originEvent: PickFromUnion_2<
7879
- NativeBehaviorEvent,
7880
- 'type',
7881
- 'drag.drop' | 'clipboard.paste'
7882
- >
7968
+ originEvent:
7969
+ | PickFromUnion_2<
7970
+ NativeBehaviorEvent,
7971
+ 'type',
7972
+ 'drag.drop' | 'clipboard.paste'
7973
+ >
7974
+ | InputBehaviorEvent_2
7883
7975
  })
7884
7976
  | ({
7885
7977
  type: 'deserialization.success'
7886
7978
  data: Array<PortableTextBlock>
7887
7979
  mimeType: `${string}/${string}`
7888
7980
  } & {
7889
- originEvent: PickFromUnion_2<
7890
- NativeBehaviorEvent,
7891
- 'type',
7892
- 'drag.drop' | 'clipboard.paste'
7893
- >
7981
+ originEvent:
7982
+ | PickFromUnion_2<
7983
+ NativeBehaviorEvent,
7984
+ 'type',
7985
+ 'drag.drop' | 'clipboard.paste'
7986
+ >
7987
+ | InputBehaviorEvent_2
7894
7988
  })
7895
7989
  | {
7896
7990
  type: 'serialization.success'
@@ -8188,22 +8282,26 @@ declare const editorMachine: StateMachine<
8188
8282
  mimeType: `${string}/${string}`
8189
8283
  reason: string
8190
8284
  } & {
8191
- originEvent: PickFromUnion_2<
8192
- NativeBehaviorEvent,
8193
- 'type',
8194
- 'drag.drop' | 'clipboard.paste'
8195
- >
8285
+ originEvent:
8286
+ | PickFromUnion_2<
8287
+ NativeBehaviorEvent,
8288
+ 'type',
8289
+ 'drag.drop' | 'clipboard.paste'
8290
+ >
8291
+ | InputBehaviorEvent_2
8196
8292
  })
8197
8293
  | ({
8198
8294
  type: 'deserialization.success'
8199
8295
  data: Array<PortableTextBlock>
8200
8296
  mimeType: `${string}/${string}`
8201
8297
  } & {
8202
- originEvent: PickFromUnion_2<
8203
- NativeBehaviorEvent,
8204
- 'type',
8205
- 'drag.drop' | 'clipboard.paste'
8206
- >
8298
+ originEvent:
8299
+ | PickFromUnion_2<
8300
+ NativeBehaviorEvent,
8301
+ 'type',
8302
+ 'drag.drop' | 'clipboard.paste'
8303
+ >
8304
+ | InputBehaviorEvent_2
8207
8305
  })
8208
8306
  | {
8209
8307
  type: 'serialization.success'
@@ -8564,22 +8662,26 @@ declare const editorMachine: StateMachine<
8564
8662
  mimeType: `${string}/${string}`
8565
8663
  reason: string
8566
8664
  } & {
8567
- originEvent: PickFromUnion_2<
8568
- NativeBehaviorEvent,
8569
- 'type',
8570
- 'drag.drop' | 'clipboard.paste'
8571
- >
8665
+ originEvent:
8666
+ | PickFromUnion_2<
8667
+ NativeBehaviorEvent,
8668
+ 'type',
8669
+ 'drag.drop' | 'clipboard.paste'
8670
+ >
8671
+ | InputBehaviorEvent_2
8572
8672
  })
8573
8673
  | ({
8574
8674
  type: 'deserialization.success'
8575
8675
  data: Array<PortableTextBlock>
8576
8676
  mimeType: `${string}/${string}`
8577
8677
  } & {
8578
- originEvent: PickFromUnion_2<
8579
- NativeBehaviorEvent,
8580
- 'type',
8581
- 'drag.drop' | 'clipboard.paste'
8582
- >
8678
+ originEvent:
8679
+ | PickFromUnion_2<
8680
+ NativeBehaviorEvent,
8681
+ 'type',
8682
+ 'drag.drop' | 'clipboard.paste'
8683
+ >
8684
+ | InputBehaviorEvent_2
8583
8685
  })
8584
8686
  | {
8585
8687
  type: 'serialization.success'
@@ -8880,22 +8982,26 @@ declare const editorMachine: StateMachine<
8880
8982
  mimeType: `${string}/${string}`
8881
8983
  reason: string
8882
8984
  } & {
8883
- originEvent: PickFromUnion_2<
8884
- NativeBehaviorEvent,
8885
- 'type',
8886
- 'drag.drop' | 'clipboard.paste'
8887
- >
8985
+ originEvent:
8986
+ | PickFromUnion_2<
8987
+ NativeBehaviorEvent,
8988
+ 'type',
8989
+ 'drag.drop' | 'clipboard.paste'
8990
+ >
8991
+ | InputBehaviorEvent_2
8888
8992
  })
8889
8993
  | ({
8890
8994
  type: 'deserialization.success'
8891
8995
  data: Array<PortableTextBlock>
8892
8996
  mimeType: `${string}/${string}`
8893
8997
  } & {
8894
- originEvent: PickFromUnion_2<
8895
- NativeBehaviorEvent,
8896
- 'type',
8897
- 'drag.drop' | 'clipboard.paste'
8898
- >
8998
+ originEvent:
8999
+ | PickFromUnion_2<
9000
+ NativeBehaviorEvent,
9001
+ 'type',
9002
+ 'drag.drop' | 'clipboard.paste'
9003
+ >
9004
+ | InputBehaviorEvent_2
8899
9005
  })
8900
9006
  | {
8901
9007
  type: 'serialization.success'
@@ -9256,22 +9362,26 @@ declare const editorMachine: StateMachine<
9256
9362
  mimeType: `${string}/${string}`
9257
9363
  reason: string
9258
9364
  } & {
9259
- originEvent: PickFromUnion_2<
9260
- NativeBehaviorEvent,
9261
- 'type',
9262
- 'drag.drop' | 'clipboard.paste'
9263
- >
9365
+ originEvent:
9366
+ | PickFromUnion_2<
9367
+ NativeBehaviorEvent,
9368
+ 'type',
9369
+ 'drag.drop' | 'clipboard.paste'
9370
+ >
9371
+ | InputBehaviorEvent_2
9264
9372
  })
9265
9373
  | ({
9266
9374
  type: 'deserialization.success'
9267
9375
  data: Array<PortableTextBlock>
9268
9376
  mimeType: `${string}/${string}`
9269
9377
  } & {
9270
- originEvent: PickFromUnion_2<
9271
- NativeBehaviorEvent,
9272
- 'type',
9273
- 'drag.drop' | 'clipboard.paste'
9274
- >
9378
+ originEvent:
9379
+ | PickFromUnion_2<
9380
+ NativeBehaviorEvent,
9381
+ 'type',
9382
+ 'drag.drop' | 'clipboard.paste'
9383
+ >
9384
+ | InputBehaviorEvent_2
9275
9385
  })
9276
9386
  | {
9277
9387
  type: 'serialization.success'
@@ -9572,22 +9682,26 @@ declare const editorMachine: StateMachine<
9572
9682
  mimeType: `${string}/${string}`
9573
9683
  reason: string
9574
9684
  } & {
9575
- originEvent: PickFromUnion_2<
9576
- NativeBehaviorEvent,
9577
- 'type',
9578
- 'drag.drop' | 'clipboard.paste'
9579
- >
9685
+ originEvent:
9686
+ | PickFromUnion_2<
9687
+ NativeBehaviorEvent,
9688
+ 'type',
9689
+ 'drag.drop' | 'clipboard.paste'
9690
+ >
9691
+ | InputBehaviorEvent_2
9580
9692
  })
9581
9693
  | ({
9582
9694
  type: 'deserialization.success'
9583
9695
  data: Array<PortableTextBlock>
9584
9696
  mimeType: `${string}/${string}`
9585
9697
  } & {
9586
- originEvent: PickFromUnion_2<
9587
- NativeBehaviorEvent,
9588
- 'type',
9589
- 'drag.drop' | 'clipboard.paste'
9590
- >
9698
+ originEvent:
9699
+ | PickFromUnion_2<
9700
+ NativeBehaviorEvent,
9701
+ 'type',
9702
+ 'drag.drop' | 'clipboard.paste'
9703
+ >
9704
+ | InputBehaviorEvent_2
9591
9705
  })
9592
9706
  | {
9593
9707
  type: 'serialization.success'
@@ -9975,22 +10089,26 @@ declare const editorMachine: StateMachine<
9975
10089
  mimeType: `${string}/${string}`
9976
10090
  reason: string
9977
10091
  } & {
9978
- originEvent: PickFromUnion_2<
9979
- NativeBehaviorEvent,
9980
- 'type',
9981
- 'drag.drop' | 'clipboard.paste'
9982
- >
10092
+ originEvent:
10093
+ | PickFromUnion_2<
10094
+ NativeBehaviorEvent,
10095
+ 'type',
10096
+ 'drag.drop' | 'clipboard.paste'
10097
+ >
10098
+ | InputBehaviorEvent_2
9983
10099
  })
9984
10100
  | ({
9985
10101
  type: 'deserialization.success'
9986
10102
  data: Array<PortableTextBlock>
9987
10103
  mimeType: `${string}/${string}`
9988
10104
  } & {
9989
- originEvent: PickFromUnion_2<
9990
- NativeBehaviorEvent,
9991
- 'type',
9992
- 'drag.drop' | 'clipboard.paste'
9993
- >
10105
+ originEvent:
10106
+ | PickFromUnion_2<
10107
+ NativeBehaviorEvent,
10108
+ 'type',
10109
+ 'drag.drop' | 'clipboard.paste'
10110
+ >
10111
+ | InputBehaviorEvent_2
9994
10112
  })
9995
10113
  | {
9996
10114
  type: 'serialization.success'
@@ -10375,22 +10493,26 @@ declare const editorMachine: StateMachine<
10375
10493
  mimeType: `${string}/${string}`
10376
10494
  reason: string
10377
10495
  } & {
10378
- originEvent: PickFromUnion_2<
10379
- NativeBehaviorEvent,
10380
- 'type',
10381
- 'drag.drop' | 'clipboard.paste'
10382
- >
10496
+ originEvent:
10497
+ | PickFromUnion_2<
10498
+ NativeBehaviorEvent,
10499
+ 'type',
10500
+ 'drag.drop' | 'clipboard.paste'
10501
+ >
10502
+ | InputBehaviorEvent_2
10383
10503
  })
10384
10504
  | ({
10385
10505
  type: 'deserialization.success'
10386
10506
  data: Array<PortableTextBlock>
10387
10507
  mimeType: `${string}/${string}`
10388
10508
  } & {
10389
- originEvent: PickFromUnion_2<
10390
- NativeBehaviorEvent,
10391
- 'type',
10392
- 'drag.drop' | 'clipboard.paste'
10393
- >
10509
+ originEvent:
10510
+ | PickFromUnion_2<
10511
+ NativeBehaviorEvent,
10512
+ 'type',
10513
+ 'drag.drop' | 'clipboard.paste'
10514
+ >
10515
+ | InputBehaviorEvent_2
10394
10516
  })
10395
10517
  | {
10396
10518
  type: 'serialization.success'
@@ -10944,22 +11066,26 @@ declare const editorMachine: StateMachine<
10944
11066
  mimeType: `${string}/${string}`
10945
11067
  reason: string
10946
11068
  } & {
10947
- originEvent: PickFromUnion_2<
10948
- NativeBehaviorEvent,
10949
- 'type',
10950
- 'drag.drop' | 'clipboard.paste'
10951
- >
11069
+ originEvent:
11070
+ | PickFromUnion_2<
11071
+ NativeBehaviorEvent,
11072
+ 'type',
11073
+ 'drag.drop' | 'clipboard.paste'
11074
+ >
11075
+ | InputBehaviorEvent_2
10952
11076
  })
10953
11077
  | ({
10954
11078
  type: 'deserialization.success'
10955
11079
  data: Array<PortableTextBlock>
10956
11080
  mimeType: `${string}/${string}`
10957
11081
  } & {
10958
- originEvent: PickFromUnion_2<
10959
- NativeBehaviorEvent,
10960
- 'type',
10961
- 'drag.drop' | 'clipboard.paste'
10962
- >
11082
+ originEvent:
11083
+ | PickFromUnion_2<
11084
+ NativeBehaviorEvent,
11085
+ 'type',
11086
+ 'drag.drop' | 'clipboard.paste'
11087
+ >
11088
+ | InputBehaviorEvent_2
10963
11089
  })
10964
11090
  | {
10965
11091
  type: 'serialization.success'
@@ -11320,22 +11446,26 @@ declare const editorMachine: StateMachine<
11320
11446
  mimeType: `${string}/${string}`
11321
11447
  reason: string
11322
11448
  } & {
11323
- originEvent: PickFromUnion_2<
11324
- NativeBehaviorEvent,
11325
- 'type',
11326
- 'drag.drop' | 'clipboard.paste'
11327
- >
11449
+ originEvent:
11450
+ | PickFromUnion_2<
11451
+ NativeBehaviorEvent,
11452
+ 'type',
11453
+ 'drag.drop' | 'clipboard.paste'
11454
+ >
11455
+ | InputBehaviorEvent_2
11328
11456
  })
11329
11457
  | ({
11330
11458
  type: 'deserialization.success'
11331
11459
  data: Array<PortableTextBlock>
11332
11460
  mimeType: `${string}/${string}`
11333
11461
  } & {
11334
- originEvent: PickFromUnion_2<
11335
- NativeBehaviorEvent,
11336
- 'type',
11337
- 'drag.drop' | 'clipboard.paste'
11338
- >
11462
+ originEvent:
11463
+ | PickFromUnion_2<
11464
+ NativeBehaviorEvent,
11465
+ 'type',
11466
+ 'drag.drop' | 'clipboard.paste'
11467
+ >
11468
+ | InputBehaviorEvent_2
11339
11469
  })
11340
11470
  | {
11341
11471
  type: 'serialization.success'
@@ -11639,22 +11769,26 @@ declare const editorMachine: StateMachine<
11639
11769
  mimeType: `${string}/${string}`
11640
11770
  reason: string
11641
11771
  } & {
11642
- originEvent: PickFromUnion_2<
11643
- NativeBehaviorEvent,
11644
- 'type',
11645
- 'drag.drop' | 'clipboard.paste'
11646
- >
11772
+ originEvent:
11773
+ | PickFromUnion_2<
11774
+ NativeBehaviorEvent,
11775
+ 'type',
11776
+ 'drag.drop' | 'clipboard.paste'
11777
+ >
11778
+ | InputBehaviorEvent_2
11647
11779
  })
11648
11780
  | ({
11649
11781
  type: 'deserialization.success'
11650
11782
  data: Array<PortableTextBlock>
11651
11783
  mimeType: `${string}/${string}`
11652
11784
  } & {
11653
- originEvent: PickFromUnion_2<
11654
- NativeBehaviorEvent,
11655
- 'type',
11656
- 'drag.drop' | 'clipboard.paste'
11657
- >
11785
+ originEvent:
11786
+ | PickFromUnion_2<
11787
+ NativeBehaviorEvent,
11788
+ 'type',
11789
+ 'drag.drop' | 'clipboard.paste'
11790
+ >
11791
+ | InputBehaviorEvent_2
11658
11792
  })
11659
11793
  | {
11660
11794
  type: 'serialization.success'
@@ -12015,22 +12149,26 @@ declare const editorMachine: StateMachine<
12015
12149
  mimeType: `${string}/${string}`
12016
12150
  reason: string
12017
12151
  } & {
12018
- originEvent: PickFromUnion_2<
12019
- NativeBehaviorEvent,
12020
- 'type',
12021
- 'drag.drop' | 'clipboard.paste'
12022
- >
12152
+ originEvent:
12153
+ | PickFromUnion_2<
12154
+ NativeBehaviorEvent,
12155
+ 'type',
12156
+ 'drag.drop' | 'clipboard.paste'
12157
+ >
12158
+ | InputBehaviorEvent_2
12023
12159
  })
12024
12160
  | ({
12025
12161
  type: 'deserialization.success'
12026
12162
  data: Array<PortableTextBlock>
12027
12163
  mimeType: `${string}/${string}`
12028
12164
  } & {
12029
- originEvent: PickFromUnion_2<
12030
- NativeBehaviorEvent,
12031
- 'type',
12032
- 'drag.drop' | 'clipboard.paste'
12033
- >
12165
+ originEvent:
12166
+ | PickFromUnion_2<
12167
+ NativeBehaviorEvent,
12168
+ 'type',
12169
+ 'drag.drop' | 'clipboard.paste'
12170
+ >
12171
+ | InputBehaviorEvent_2
12034
12172
  })
12035
12173
  | {
12036
12174
  type: 'serialization.success'
@@ -12327,22 +12465,26 @@ declare const editorMachine: StateMachine<
12327
12465
  mimeType: `${string}/${string}`
12328
12466
  reason: string
12329
12467
  } & {
12330
- originEvent: PickFromUnion_2<
12331
- NativeBehaviorEvent,
12332
- 'type',
12333
- 'drag.drop' | 'clipboard.paste'
12334
- >
12468
+ originEvent:
12469
+ | PickFromUnion_2<
12470
+ NativeBehaviorEvent,
12471
+ 'type',
12472
+ 'drag.drop' | 'clipboard.paste'
12473
+ >
12474
+ | InputBehaviorEvent_2
12335
12475
  })
12336
12476
  | ({
12337
12477
  type: 'deserialization.success'
12338
12478
  data: Array<PortableTextBlock>
12339
12479
  mimeType: `${string}/${string}`
12340
12480
  } & {
12341
- originEvent: PickFromUnion_2<
12342
- NativeBehaviorEvent,
12343
- 'type',
12344
- 'drag.drop' | 'clipboard.paste'
12345
- >
12481
+ originEvent:
12482
+ | PickFromUnion_2<
12483
+ NativeBehaviorEvent,
12484
+ 'type',
12485
+ 'drag.drop' | 'clipboard.paste'
12486
+ >
12487
+ | InputBehaviorEvent_2
12346
12488
  })
12347
12489
  | {
12348
12490
  type: 'serialization.success'
@@ -12703,22 +12845,26 @@ declare const editorMachine: StateMachine<
12703
12845
  mimeType: `${string}/${string}`
12704
12846
  reason: string
12705
12847
  } & {
12706
- originEvent: PickFromUnion_2<
12707
- NativeBehaviorEvent,
12708
- 'type',
12709
- 'drag.drop' | 'clipboard.paste'
12710
- >
12848
+ originEvent:
12849
+ | PickFromUnion_2<
12850
+ NativeBehaviorEvent,
12851
+ 'type',
12852
+ 'drag.drop' | 'clipboard.paste'
12853
+ >
12854
+ | InputBehaviorEvent_2
12711
12855
  })
12712
12856
  | ({
12713
12857
  type: 'deserialization.success'
12714
12858
  data: Array<PortableTextBlock>
12715
12859
  mimeType: `${string}/${string}`
12716
12860
  } & {
12717
- originEvent: PickFromUnion_2<
12718
- NativeBehaviorEvent,
12719
- 'type',
12720
- 'drag.drop' | 'clipboard.paste'
12721
- >
12861
+ originEvent:
12862
+ | PickFromUnion_2<
12863
+ NativeBehaviorEvent,
12864
+ 'type',
12865
+ 'drag.drop' | 'clipboard.paste'
12866
+ >
12867
+ | InputBehaviorEvent_2
12722
12868
  })
12723
12869
  | {
12724
12870
  type: 'serialization.success'
@@ -13015,22 +13161,26 @@ declare const editorMachine: StateMachine<
13015
13161
  mimeType: `${string}/${string}`
13016
13162
  reason: string
13017
13163
  } & {
13018
- originEvent: PickFromUnion_2<
13019
- NativeBehaviorEvent,
13020
- 'type',
13021
- 'drag.drop' | 'clipboard.paste'
13022
- >
13164
+ originEvent:
13165
+ | PickFromUnion_2<
13166
+ NativeBehaviorEvent,
13167
+ 'type',
13168
+ 'drag.drop' | 'clipboard.paste'
13169
+ >
13170
+ | InputBehaviorEvent_2
13023
13171
  })
13024
13172
  | ({
13025
13173
  type: 'deserialization.success'
13026
13174
  data: Array<PortableTextBlock>
13027
13175
  mimeType: `${string}/${string}`
13028
13176
  } & {
13029
- originEvent: PickFromUnion_2<
13030
- NativeBehaviorEvent,
13031
- 'type',
13032
- 'drag.drop' | 'clipboard.paste'
13033
- >
13177
+ originEvent:
13178
+ | PickFromUnion_2<
13179
+ NativeBehaviorEvent,
13180
+ 'type',
13181
+ 'drag.drop' | 'clipboard.paste'
13182
+ >
13183
+ | InputBehaviorEvent_2
13034
13184
  })
13035
13185
  | {
13036
13186
  type: 'serialization.success'
@@ -13391,22 +13541,26 @@ declare const editorMachine: StateMachine<
13391
13541
  mimeType: `${string}/${string}`
13392
13542
  reason: string
13393
13543
  } & {
13394
- originEvent: PickFromUnion_2<
13395
- NativeBehaviorEvent,
13396
- 'type',
13397
- 'drag.drop' | 'clipboard.paste'
13398
- >
13544
+ originEvent:
13545
+ | PickFromUnion_2<
13546
+ NativeBehaviorEvent,
13547
+ 'type',
13548
+ 'drag.drop' | 'clipboard.paste'
13549
+ >
13550
+ | InputBehaviorEvent_2
13399
13551
  })
13400
13552
  | ({
13401
13553
  type: 'deserialization.success'
13402
13554
  data: Array<PortableTextBlock>
13403
13555
  mimeType: `${string}/${string}`
13404
13556
  } & {
13405
- originEvent: PickFromUnion_2<
13406
- NativeBehaviorEvent,
13407
- 'type',
13408
- 'drag.drop' | 'clipboard.paste'
13409
- >
13557
+ originEvent:
13558
+ | PickFromUnion_2<
13559
+ NativeBehaviorEvent,
13560
+ 'type',
13561
+ 'drag.drop' | 'clipboard.paste'
13562
+ >
13563
+ | InputBehaviorEvent_2
13410
13564
  })
13411
13565
  | {
13412
13566
  type: 'serialization.success'
@@ -13716,22 +13870,26 @@ declare const editorMachine: StateMachine<
13716
13870
  mimeType: `${string}/${string}`
13717
13871
  reason: string
13718
13872
  } & {
13719
- originEvent: PickFromUnion_2<
13720
- NativeBehaviorEvent,
13721
- 'type',
13722
- 'drag.drop' | 'clipboard.paste'
13723
- >
13873
+ originEvent:
13874
+ | PickFromUnion_2<
13875
+ NativeBehaviorEvent,
13876
+ 'type',
13877
+ 'drag.drop' | 'clipboard.paste'
13878
+ >
13879
+ | InputBehaviorEvent_2
13724
13880
  })
13725
13881
  | ({
13726
13882
  type: 'deserialization.success'
13727
13883
  data: Array<PortableTextBlock>
13728
13884
  mimeType: `${string}/${string}`
13729
13885
  } & {
13730
- originEvent: PickFromUnion_2<
13731
- NativeBehaviorEvent,
13732
- 'type',
13733
- 'drag.drop' | 'clipboard.paste'
13734
- >
13886
+ originEvent:
13887
+ | PickFromUnion_2<
13888
+ NativeBehaviorEvent,
13889
+ 'type',
13890
+ 'drag.drop' | 'clipboard.paste'
13891
+ >
13892
+ | InputBehaviorEvent_2
13735
13893
  })
13736
13894
  | {
13737
13895
  type: 'serialization.success'
@@ -14092,22 +14250,26 @@ declare const editorMachine: StateMachine<
14092
14250
  mimeType: `${string}/${string}`
14093
14251
  reason: string
14094
14252
  } & {
14095
- originEvent: PickFromUnion_2<
14096
- NativeBehaviorEvent,
14097
- 'type',
14098
- 'drag.drop' | 'clipboard.paste'
14099
- >
14253
+ originEvent:
14254
+ | PickFromUnion_2<
14255
+ NativeBehaviorEvent,
14256
+ 'type',
14257
+ 'drag.drop' | 'clipboard.paste'
14258
+ >
14259
+ | InputBehaviorEvent_2
14100
14260
  })
14101
14261
  | ({
14102
14262
  type: 'deserialization.success'
14103
14263
  data: Array<PortableTextBlock>
14104
14264
  mimeType: `${string}/${string}`
14105
14265
  } & {
14106
- originEvent: PickFromUnion_2<
14107
- NativeBehaviorEvent,
14108
- 'type',
14109
- 'drag.drop' | 'clipboard.paste'
14110
- >
14266
+ originEvent:
14267
+ | PickFromUnion_2<
14268
+ NativeBehaviorEvent,
14269
+ 'type',
14270
+ 'drag.drop' | 'clipboard.paste'
14271
+ >
14272
+ | InputBehaviorEvent_2
14111
14273
  })
14112
14274
  | {
14113
14275
  type: 'serialization.success'
@@ -14418,22 +14580,26 @@ declare const editorMachine: StateMachine<
14418
14580
  mimeType: `${string}/${string}`
14419
14581
  reason: string
14420
14582
  } & {
14421
- originEvent: PickFromUnion_2<
14422
- NativeBehaviorEvent,
14423
- 'type',
14424
- 'drag.drop' | 'clipboard.paste'
14425
- >
14583
+ originEvent:
14584
+ | PickFromUnion_2<
14585
+ NativeBehaviorEvent,
14586
+ 'type',
14587
+ 'drag.drop' | 'clipboard.paste'
14588
+ >
14589
+ | InputBehaviorEvent_2
14426
14590
  })
14427
14591
  | ({
14428
14592
  type: 'deserialization.success'
14429
14593
  data: Array<PortableTextBlock>
14430
14594
  mimeType: `${string}/${string}`
14431
14595
  } & {
14432
- originEvent: PickFromUnion_2<
14433
- NativeBehaviorEvent,
14434
- 'type',
14435
- 'drag.drop' | 'clipboard.paste'
14436
- >
14596
+ originEvent:
14597
+ | PickFromUnion_2<
14598
+ NativeBehaviorEvent,
14599
+ 'type',
14600
+ 'drag.drop' | 'clipboard.paste'
14601
+ >
14602
+ | InputBehaviorEvent_2
14437
14603
  })
14438
14604
  | {
14439
14605
  type: 'serialization.success'
@@ -14794,22 +14960,26 @@ declare const editorMachine: StateMachine<
14794
14960
  mimeType: `${string}/${string}`
14795
14961
  reason: string
14796
14962
  } & {
14797
- originEvent: PickFromUnion_2<
14798
- NativeBehaviorEvent,
14799
- 'type',
14800
- 'drag.drop' | 'clipboard.paste'
14801
- >
14963
+ originEvent:
14964
+ | PickFromUnion_2<
14965
+ NativeBehaviorEvent,
14966
+ 'type',
14967
+ 'drag.drop' | 'clipboard.paste'
14968
+ >
14969
+ | InputBehaviorEvent_2
14802
14970
  })
14803
14971
  | ({
14804
14972
  type: 'deserialization.success'
14805
14973
  data: Array<PortableTextBlock>
14806
14974
  mimeType: `${string}/${string}`
14807
14975
  } & {
14808
- originEvent: PickFromUnion_2<
14809
- NativeBehaviorEvent,
14810
- 'type',
14811
- 'drag.drop' | 'clipboard.paste'
14812
- >
14976
+ originEvent:
14977
+ | PickFromUnion_2<
14978
+ NativeBehaviorEvent,
14979
+ 'type',
14980
+ 'drag.drop' | 'clipboard.paste'
14981
+ >
14982
+ | InputBehaviorEvent_2
14813
14983
  })
14814
14984
  | {
14815
14985
  type: 'serialization.success'
@@ -15106,22 +15276,26 @@ declare const editorMachine: StateMachine<
15106
15276
  mimeType: `${string}/${string}`
15107
15277
  reason: string
15108
15278
  } & {
15109
- originEvent: PickFromUnion_2<
15110
- NativeBehaviorEvent,
15111
- 'type',
15112
- 'drag.drop' | 'clipboard.paste'
15113
- >
15279
+ originEvent:
15280
+ | PickFromUnion_2<
15281
+ NativeBehaviorEvent,
15282
+ 'type',
15283
+ 'drag.drop' | 'clipboard.paste'
15284
+ >
15285
+ | InputBehaviorEvent_2
15114
15286
  })
15115
15287
  | ({
15116
15288
  type: 'deserialization.success'
15117
15289
  data: Array<PortableTextBlock>
15118
15290
  mimeType: `${string}/${string}`
15119
15291
  } & {
15120
- originEvent: PickFromUnion_2<
15121
- NativeBehaviorEvent,
15122
- 'type',
15123
- 'drag.drop' | 'clipboard.paste'
15124
- >
15292
+ originEvent:
15293
+ | PickFromUnion_2<
15294
+ NativeBehaviorEvent,
15295
+ 'type',
15296
+ 'drag.drop' | 'clipboard.paste'
15297
+ >
15298
+ | InputBehaviorEvent_2
15125
15299
  })
15126
15300
  | {
15127
15301
  type: 'serialization.success'
@@ -15482,22 +15656,26 @@ declare const editorMachine: StateMachine<
15482
15656
  mimeType: `${string}/${string}`
15483
15657
  reason: string
15484
15658
  } & {
15485
- originEvent: PickFromUnion_2<
15486
- NativeBehaviorEvent,
15487
- 'type',
15488
- 'drag.drop' | 'clipboard.paste'
15489
- >
15659
+ originEvent:
15660
+ | PickFromUnion_2<
15661
+ NativeBehaviorEvent,
15662
+ 'type',
15663
+ 'drag.drop' | 'clipboard.paste'
15664
+ >
15665
+ | InputBehaviorEvent_2
15490
15666
  })
15491
15667
  | ({
15492
15668
  type: 'deserialization.success'
15493
15669
  data: Array<PortableTextBlock>
15494
15670
  mimeType: `${string}/${string}`
15495
15671
  } & {
15496
- originEvent: PickFromUnion_2<
15497
- NativeBehaviorEvent,
15498
- 'type',
15499
- 'drag.drop' | 'clipboard.paste'
15500
- >
15672
+ originEvent:
15673
+ | PickFromUnion_2<
15674
+ NativeBehaviorEvent,
15675
+ 'type',
15676
+ 'drag.drop' | 'clipboard.paste'
15677
+ >
15678
+ | InputBehaviorEvent_2
15501
15679
  })
15502
15680
  | {
15503
15681
  type: 'serialization.success'
@@ -15797,22 +15975,26 @@ declare const editorMachine: StateMachine<
15797
15975
  mimeType: `${string}/${string}`
15798
15976
  reason: string
15799
15977
  } & {
15800
- originEvent: PickFromUnion_2<
15801
- NativeBehaviorEvent,
15802
- 'type',
15803
- 'drag.drop' | 'clipboard.paste'
15804
- >
15978
+ originEvent:
15979
+ | PickFromUnion_2<
15980
+ NativeBehaviorEvent,
15981
+ 'type',
15982
+ 'drag.drop' | 'clipboard.paste'
15983
+ >
15984
+ | InputBehaviorEvent_2
15805
15985
  })
15806
15986
  | ({
15807
15987
  type: 'deserialization.success'
15808
15988
  data: Array<PortableTextBlock>
15809
15989
  mimeType: `${string}/${string}`
15810
15990
  } & {
15811
- originEvent: PickFromUnion_2<
15812
- NativeBehaviorEvent,
15813
- 'type',
15814
- 'drag.drop' | 'clipboard.paste'
15815
- >
15991
+ originEvent:
15992
+ | PickFromUnion_2<
15993
+ NativeBehaviorEvent,
15994
+ 'type',
15995
+ 'drag.drop' | 'clipboard.paste'
15996
+ >
15997
+ | InputBehaviorEvent_2
15816
15998
  })
15817
15999
  | {
15818
16000
  type: 'serialization.success'
@@ -16173,22 +16355,26 @@ declare const editorMachine: StateMachine<
16173
16355
  mimeType: `${string}/${string}`
16174
16356
  reason: string
16175
16357
  } & {
16176
- originEvent: PickFromUnion_2<
16177
- NativeBehaviorEvent,
16178
- 'type',
16179
- 'drag.drop' | 'clipboard.paste'
16180
- >
16358
+ originEvent:
16359
+ | PickFromUnion_2<
16360
+ NativeBehaviorEvent,
16361
+ 'type',
16362
+ 'drag.drop' | 'clipboard.paste'
16363
+ >
16364
+ | InputBehaviorEvent_2
16181
16365
  })
16182
16366
  | ({
16183
16367
  type: 'deserialization.success'
16184
16368
  data: Array<PortableTextBlock>
16185
16369
  mimeType: `${string}/${string}`
16186
16370
  } & {
16187
- originEvent: PickFromUnion_2<
16188
- NativeBehaviorEvent,
16189
- 'type',
16190
- 'drag.drop' | 'clipboard.paste'
16191
- >
16371
+ originEvent:
16372
+ | PickFromUnion_2<
16373
+ NativeBehaviorEvent,
16374
+ 'type',
16375
+ 'drag.drop' | 'clipboard.paste'
16376
+ >
16377
+ | InputBehaviorEvent_2
16192
16378
  })
16193
16379
  | {
16194
16380
  type: 'serialization.success'
@@ -16541,22 +16727,26 @@ declare const editorMachine: StateMachine<
16541
16727
  mimeType: `${string}/${string}`
16542
16728
  reason: string
16543
16729
  } & {
16544
- originEvent: PickFromUnion_2<
16545
- NativeBehaviorEvent,
16546
- 'type',
16547
- 'drag.drop' | 'clipboard.paste'
16548
- >
16730
+ originEvent:
16731
+ | PickFromUnion_2<
16732
+ NativeBehaviorEvent,
16733
+ 'type',
16734
+ 'drag.drop' | 'clipboard.paste'
16735
+ >
16736
+ | InputBehaviorEvent_2
16549
16737
  })
16550
16738
  | ({
16551
16739
  type: 'deserialization.success'
16552
16740
  data: Array<PortableTextBlock>
16553
16741
  mimeType: `${string}/${string}`
16554
16742
  } & {
16555
- originEvent: PickFromUnion_2<
16556
- NativeBehaviorEvent,
16557
- 'type',
16558
- 'drag.drop' | 'clipboard.paste'
16559
- >
16743
+ originEvent:
16744
+ | PickFromUnion_2<
16745
+ NativeBehaviorEvent,
16746
+ 'type',
16747
+ 'drag.drop' | 'clipboard.paste'
16748
+ >
16749
+ | InputBehaviorEvent_2
16560
16750
  })
16561
16751
  | {
16562
16752
  type: 'serialization.success'
@@ -16917,22 +17107,26 @@ declare const editorMachine: StateMachine<
16917
17107
  mimeType: `${string}/${string}`
16918
17108
  reason: string
16919
17109
  } & {
16920
- originEvent: PickFromUnion_2<
16921
- NativeBehaviorEvent,
16922
- 'type',
16923
- 'drag.drop' | 'clipboard.paste'
16924
- >
17110
+ originEvent:
17111
+ | PickFromUnion_2<
17112
+ NativeBehaviorEvent,
17113
+ 'type',
17114
+ 'drag.drop' | 'clipboard.paste'
17115
+ >
17116
+ | InputBehaviorEvent_2
16925
17117
  })
16926
17118
  | ({
16927
17119
  type: 'deserialization.success'
16928
17120
  data: Array<PortableTextBlock>
16929
17121
  mimeType: `${string}/${string}`
16930
17122
  } & {
16931
- originEvent: PickFromUnion_2<
16932
- NativeBehaviorEvent,
16933
- 'type',
16934
- 'drag.drop' | 'clipboard.paste'
16935
- >
17123
+ originEvent:
17124
+ | PickFromUnion_2<
17125
+ NativeBehaviorEvent,
17126
+ 'type',
17127
+ 'drag.drop' | 'clipboard.paste'
17128
+ >
17129
+ | InputBehaviorEvent_2
16936
17130
  })
16937
17131
  | {
16938
17132
  type: 'serialization.success'
@@ -17238,22 +17432,26 @@ declare const editorMachine: StateMachine<
17238
17432
  mimeType: `${string}/${string}`
17239
17433
  reason: string
17240
17434
  } & {
17241
- originEvent: PickFromUnion_2<
17242
- NativeBehaviorEvent,
17243
- 'type',
17244
- 'drag.drop' | 'clipboard.paste'
17245
- >
17435
+ originEvent:
17436
+ | PickFromUnion_2<
17437
+ NativeBehaviorEvent,
17438
+ 'type',
17439
+ 'drag.drop' | 'clipboard.paste'
17440
+ >
17441
+ | InputBehaviorEvent_2
17246
17442
  })
17247
17443
  | ({
17248
17444
  type: 'deserialization.success'
17249
17445
  data: Array<PortableTextBlock>
17250
17446
  mimeType: `${string}/${string}`
17251
17447
  } & {
17252
- originEvent: PickFromUnion_2<
17253
- NativeBehaviorEvent,
17254
- 'type',
17255
- 'drag.drop' | 'clipboard.paste'
17256
- >
17448
+ originEvent:
17449
+ | PickFromUnion_2<
17450
+ NativeBehaviorEvent,
17451
+ 'type',
17452
+ 'drag.drop' | 'clipboard.paste'
17453
+ >
17454
+ | InputBehaviorEvent_2
17257
17455
  })
17258
17456
  | {
17259
17457
  type: 'serialization.success'
@@ -17614,22 +17812,26 @@ declare const editorMachine: StateMachine<
17614
17812
  mimeType: `${string}/${string}`
17615
17813
  reason: string
17616
17814
  } & {
17617
- originEvent: PickFromUnion_2<
17618
- NativeBehaviorEvent,
17619
- 'type',
17620
- 'drag.drop' | 'clipboard.paste'
17621
- >
17815
+ originEvent:
17816
+ | PickFromUnion_2<
17817
+ NativeBehaviorEvent,
17818
+ 'type',
17819
+ 'drag.drop' | 'clipboard.paste'
17820
+ >
17821
+ | InputBehaviorEvent_2
17622
17822
  })
17623
17823
  | ({
17624
17824
  type: 'deserialization.success'
17625
17825
  data: Array<PortableTextBlock>
17626
17826
  mimeType: `${string}/${string}`
17627
17827
  } & {
17628
- originEvent: PickFromUnion_2<
17629
- NativeBehaviorEvent,
17630
- 'type',
17631
- 'drag.drop' | 'clipboard.paste'
17632
- >
17828
+ originEvent:
17829
+ | PickFromUnion_2<
17830
+ NativeBehaviorEvent,
17831
+ 'type',
17832
+ 'drag.drop' | 'clipboard.paste'
17833
+ >
17834
+ | InputBehaviorEvent_2
17633
17835
  })
17634
17836
  | {
17635
17837
  type: 'serialization.success'
@@ -17936,22 +18138,26 @@ declare const editorMachine: StateMachine<
17936
18138
  mimeType: `${string}/${string}`
17937
18139
  reason: string
17938
18140
  } & {
17939
- originEvent: PickFromUnion_2<
17940
- NativeBehaviorEvent,
17941
- 'type',
17942
- 'drag.drop' | 'clipboard.paste'
17943
- >
18141
+ originEvent:
18142
+ | PickFromUnion_2<
18143
+ NativeBehaviorEvent,
18144
+ 'type',
18145
+ 'drag.drop' | 'clipboard.paste'
18146
+ >
18147
+ | InputBehaviorEvent_2
17944
18148
  })
17945
18149
  | ({
17946
18150
  type: 'deserialization.success'
17947
18151
  data: Array<PortableTextBlock>
17948
18152
  mimeType: `${string}/${string}`
17949
18153
  } & {
17950
- originEvent: PickFromUnion_2<
17951
- NativeBehaviorEvent,
17952
- 'type',
17953
- 'drag.drop' | 'clipboard.paste'
17954
- >
18154
+ originEvent:
18155
+ | PickFromUnion_2<
18156
+ NativeBehaviorEvent,
18157
+ 'type',
18158
+ 'drag.drop' | 'clipboard.paste'
18159
+ >
18160
+ | InputBehaviorEvent_2
17955
18161
  })
17956
18162
  | {
17957
18163
  type: 'serialization.success'
@@ -18312,22 +18518,26 @@ declare const editorMachine: StateMachine<
18312
18518
  mimeType: `${string}/${string}`
18313
18519
  reason: string
18314
18520
  } & {
18315
- originEvent: PickFromUnion_2<
18316
- NativeBehaviorEvent,
18317
- 'type',
18318
- 'drag.drop' | 'clipboard.paste'
18319
- >
18521
+ originEvent:
18522
+ | PickFromUnion_2<
18523
+ NativeBehaviorEvent,
18524
+ 'type',
18525
+ 'drag.drop' | 'clipboard.paste'
18526
+ >
18527
+ | InputBehaviorEvent_2
18320
18528
  })
18321
18529
  | ({
18322
18530
  type: 'deserialization.success'
18323
18531
  data: Array<PortableTextBlock>
18324
18532
  mimeType: `${string}/${string}`
18325
18533
  } & {
18326
- originEvent: PickFromUnion_2<
18327
- NativeBehaviorEvent,
18328
- 'type',
18329
- 'drag.drop' | 'clipboard.paste'
18330
- >
18534
+ originEvent:
18535
+ | PickFromUnion_2<
18536
+ NativeBehaviorEvent,
18537
+ 'type',
18538
+ 'drag.drop' | 'clipboard.paste'
18539
+ >
18540
+ | InputBehaviorEvent_2
18331
18541
  })
18332
18542
  | {
18333
18543
  type: 'serialization.success'
@@ -18625,22 +18835,26 @@ declare const editorMachine: StateMachine<
18625
18835
  mimeType: `${string}/${string}`
18626
18836
  reason: string
18627
18837
  } & {
18628
- originEvent: PickFromUnion_2<
18629
- NativeBehaviorEvent,
18630
- 'type',
18631
- 'drag.drop' | 'clipboard.paste'
18632
- >
18838
+ originEvent:
18839
+ | PickFromUnion_2<
18840
+ NativeBehaviorEvent,
18841
+ 'type',
18842
+ 'drag.drop' | 'clipboard.paste'
18843
+ >
18844
+ | InputBehaviorEvent_2
18633
18845
  })
18634
18846
  | ({
18635
18847
  type: 'deserialization.success'
18636
18848
  data: Array<PortableTextBlock>
18637
18849
  mimeType: `${string}/${string}`
18638
18850
  } & {
18639
- originEvent: PickFromUnion_2<
18640
- NativeBehaviorEvent,
18641
- 'type',
18642
- 'drag.drop' | 'clipboard.paste'
18643
- >
18851
+ originEvent:
18852
+ | PickFromUnion_2<
18853
+ NativeBehaviorEvent,
18854
+ 'type',
18855
+ 'drag.drop' | 'clipboard.paste'
18856
+ >
18857
+ | InputBehaviorEvent_2
18644
18858
  })
18645
18859
  | {
18646
18860
  type: 'serialization.success'
@@ -19001,22 +19215,26 @@ declare const editorMachine: StateMachine<
19001
19215
  mimeType: `${string}/${string}`
19002
19216
  reason: string
19003
19217
  } & {
19004
- originEvent: PickFromUnion_2<
19005
- NativeBehaviorEvent,
19006
- 'type',
19007
- 'drag.drop' | 'clipboard.paste'
19008
- >
19218
+ originEvent:
19219
+ | PickFromUnion_2<
19220
+ NativeBehaviorEvent,
19221
+ 'type',
19222
+ 'drag.drop' | 'clipboard.paste'
19223
+ >
19224
+ | InputBehaviorEvent_2
19009
19225
  })
19010
19226
  | ({
19011
19227
  type: 'deserialization.success'
19012
19228
  data: Array<PortableTextBlock>
19013
19229
  mimeType: `${string}/${string}`
19014
19230
  } & {
19015
- originEvent: PickFromUnion_2<
19016
- NativeBehaviorEvent,
19017
- 'type',
19018
- 'drag.drop' | 'clipboard.paste'
19019
- >
19231
+ originEvent:
19232
+ | PickFromUnion_2<
19233
+ NativeBehaviorEvent,
19234
+ 'type',
19235
+ 'drag.drop' | 'clipboard.paste'
19236
+ >
19237
+ | InputBehaviorEvent_2
19020
19238
  })
19021
19239
  | {
19022
19240
  type: 'serialization.success'
@@ -19318,22 +19536,26 @@ declare const editorMachine: StateMachine<
19318
19536
  mimeType: `${string}/${string}`
19319
19537
  reason: string
19320
19538
  } & {
19321
- originEvent: PickFromUnion_2<
19322
- NativeBehaviorEvent,
19323
- 'type',
19324
- 'drag.drop' | 'clipboard.paste'
19325
- >
19539
+ originEvent:
19540
+ | PickFromUnion_2<
19541
+ NativeBehaviorEvent,
19542
+ 'type',
19543
+ 'drag.drop' | 'clipboard.paste'
19544
+ >
19545
+ | InputBehaviorEvent_2
19326
19546
  })
19327
19547
  | ({
19328
19548
  type: 'deserialization.success'
19329
19549
  data: Array<PortableTextBlock>
19330
19550
  mimeType: `${string}/${string}`
19331
19551
  } & {
19332
- originEvent: PickFromUnion_2<
19333
- NativeBehaviorEvent,
19334
- 'type',
19335
- 'drag.drop' | 'clipboard.paste'
19336
- >
19552
+ originEvent:
19553
+ | PickFromUnion_2<
19554
+ NativeBehaviorEvent,
19555
+ 'type',
19556
+ 'drag.drop' | 'clipboard.paste'
19557
+ >
19558
+ | InputBehaviorEvent_2
19337
19559
  })
19338
19560
  | {
19339
19561
  type: 'serialization.success'
@@ -19694,22 +19916,26 @@ declare const editorMachine: StateMachine<
19694
19916
  mimeType: `${string}/${string}`
19695
19917
  reason: string
19696
19918
  } & {
19697
- originEvent: PickFromUnion_2<
19698
- NativeBehaviorEvent,
19699
- 'type',
19700
- 'drag.drop' | 'clipboard.paste'
19701
- >
19919
+ originEvent:
19920
+ | PickFromUnion_2<
19921
+ NativeBehaviorEvent,
19922
+ 'type',
19923
+ 'drag.drop' | 'clipboard.paste'
19924
+ >
19925
+ | InputBehaviorEvent_2
19702
19926
  })
19703
19927
  | ({
19704
19928
  type: 'deserialization.success'
19705
19929
  data: Array<PortableTextBlock>
19706
19930
  mimeType: `${string}/${string}`
19707
19931
  } & {
19708
- originEvent: PickFromUnion_2<
19709
- NativeBehaviorEvent,
19710
- 'type',
19711
- 'drag.drop' | 'clipboard.paste'
19712
- >
19932
+ originEvent:
19933
+ | PickFromUnion_2<
19934
+ NativeBehaviorEvent,
19935
+ 'type',
19936
+ 'drag.drop' | 'clipboard.paste'
19937
+ >
19938
+ | InputBehaviorEvent_2
19713
19939
  })
19714
19940
  | {
19715
19941
  type: 'serialization.success'
@@ -20015,22 +20241,26 @@ declare const editorMachine: StateMachine<
20015
20241
  mimeType: `${string}/${string}`
20016
20242
  reason: string
20017
20243
  } & {
20018
- originEvent: PickFromUnion_2<
20019
- NativeBehaviorEvent,
20020
- 'type',
20021
- 'drag.drop' | 'clipboard.paste'
20022
- >
20244
+ originEvent:
20245
+ | PickFromUnion_2<
20246
+ NativeBehaviorEvent,
20247
+ 'type',
20248
+ 'drag.drop' | 'clipboard.paste'
20249
+ >
20250
+ | InputBehaviorEvent_2
20023
20251
  })
20024
20252
  | ({
20025
20253
  type: 'deserialization.success'
20026
20254
  data: Array<PortableTextBlock>
20027
20255
  mimeType: `${string}/${string}`
20028
20256
  } & {
20029
- originEvent: PickFromUnion_2<
20030
- NativeBehaviorEvent,
20031
- 'type',
20032
- 'drag.drop' | 'clipboard.paste'
20033
- >
20257
+ originEvent:
20258
+ | PickFromUnion_2<
20259
+ NativeBehaviorEvent,
20260
+ 'type',
20261
+ 'drag.drop' | 'clipboard.paste'
20262
+ >
20263
+ | InputBehaviorEvent_2
20034
20264
  })
20035
20265
  | {
20036
20266
  type: 'serialization.success'
@@ -20391,22 +20621,26 @@ declare const editorMachine: StateMachine<
20391
20621
  mimeType: `${string}/${string}`
20392
20622
  reason: string
20393
20623
  } & {
20394
- originEvent: PickFromUnion_2<
20395
- NativeBehaviorEvent,
20396
- 'type',
20397
- 'drag.drop' | 'clipboard.paste'
20398
- >
20624
+ originEvent:
20625
+ | PickFromUnion_2<
20626
+ NativeBehaviorEvent,
20627
+ 'type',
20628
+ 'drag.drop' | 'clipboard.paste'
20629
+ >
20630
+ | InputBehaviorEvent_2
20399
20631
  })
20400
20632
  | ({
20401
20633
  type: 'deserialization.success'
20402
20634
  data: Array<PortableTextBlock>
20403
20635
  mimeType: `${string}/${string}`
20404
20636
  } & {
20405
- originEvent: PickFromUnion_2<
20406
- NativeBehaviorEvent,
20407
- 'type',
20408
- 'drag.drop' | 'clipboard.paste'
20409
- >
20637
+ originEvent:
20638
+ | PickFromUnion_2<
20639
+ NativeBehaviorEvent,
20640
+ 'type',
20641
+ 'drag.drop' | 'clipboard.paste'
20642
+ >
20643
+ | InputBehaviorEvent_2
20410
20644
  })
20411
20645
  | {
20412
20646
  type: 'serialization.success'
@@ -20726,22 +20960,26 @@ declare const editorMachine: StateMachine<
20726
20960
  mimeType: `${string}/${string}`
20727
20961
  reason: string
20728
20962
  } & {
20729
- originEvent: PickFromUnion_2<
20730
- NativeBehaviorEvent,
20731
- 'type',
20732
- 'drag.drop' | 'clipboard.paste'
20733
- >
20963
+ originEvent:
20964
+ | PickFromUnion_2<
20965
+ NativeBehaviorEvent,
20966
+ 'type',
20967
+ 'drag.drop' | 'clipboard.paste'
20968
+ >
20969
+ | InputBehaviorEvent_2
20734
20970
  })
20735
20971
  | ({
20736
20972
  type: 'deserialization.success'
20737
20973
  data: Array<PortableTextBlock>
20738
20974
  mimeType: `${string}/${string}`
20739
20975
  } & {
20740
- originEvent: PickFromUnion_2<
20741
- NativeBehaviorEvent,
20742
- 'type',
20743
- 'drag.drop' | 'clipboard.paste'
20744
- >
20976
+ originEvent:
20977
+ | PickFromUnion_2<
20978
+ NativeBehaviorEvent,
20979
+ 'type',
20980
+ 'drag.drop' | 'clipboard.paste'
20981
+ >
20982
+ | InputBehaviorEvent_2
20745
20983
  })
20746
20984
  | {
20747
20985
  type: 'serialization.success'
@@ -21133,22 +21371,26 @@ declare const editorMachine: StateMachine<
21133
21371
  mimeType: `${string}/${string}`
21134
21372
  reason: string
21135
21373
  } & {
21136
- originEvent: PickFromUnion_2<
21137
- NativeBehaviorEvent,
21138
- 'type',
21139
- 'drag.drop' | 'clipboard.paste'
21140
- >
21374
+ originEvent:
21375
+ | PickFromUnion_2<
21376
+ NativeBehaviorEvent,
21377
+ 'type',
21378
+ 'drag.drop' | 'clipboard.paste'
21379
+ >
21380
+ | InputBehaviorEvent_2
21141
21381
  })
21142
21382
  | ({
21143
21383
  type: 'deserialization.success'
21144
21384
  data: Array<PortableTextBlock>
21145
21385
  mimeType: `${string}/${string}`
21146
21386
  } & {
21147
- originEvent: PickFromUnion_2<
21148
- NativeBehaviorEvent,
21149
- 'type',
21150
- 'drag.drop' | 'clipboard.paste'
21151
- >
21387
+ originEvent:
21388
+ | PickFromUnion_2<
21389
+ NativeBehaviorEvent,
21390
+ 'type',
21391
+ 'drag.drop' | 'clipboard.paste'
21392
+ >
21393
+ | InputBehaviorEvent_2
21152
21394
  })
21153
21395
  | {
21154
21396
  type: 'serialization.success'
@@ -21504,22 +21746,26 @@ declare const editorMachine: StateMachine<
21504
21746
  mimeType: `${string}/${string}`
21505
21747
  reason: string
21506
21748
  } & {
21507
- originEvent: PickFromUnion_2<
21508
- NativeBehaviorEvent,
21509
- 'type',
21510
- 'drag.drop' | 'clipboard.paste'
21511
- >
21749
+ originEvent:
21750
+ | PickFromUnion_2<
21751
+ NativeBehaviorEvent,
21752
+ 'type',
21753
+ 'drag.drop' | 'clipboard.paste'
21754
+ >
21755
+ | InputBehaviorEvent_2
21512
21756
  })
21513
21757
  | ({
21514
21758
  type: 'deserialization.success'
21515
21759
  data: Array<PortableTextBlock>
21516
21760
  mimeType: `${string}/${string}`
21517
21761
  } & {
21518
- originEvent: PickFromUnion_2<
21519
- NativeBehaviorEvent,
21520
- 'type',
21521
- 'drag.drop' | 'clipboard.paste'
21522
- >
21762
+ originEvent:
21763
+ | PickFromUnion_2<
21764
+ NativeBehaviorEvent,
21765
+ 'type',
21766
+ 'drag.drop' | 'clipboard.paste'
21767
+ >
21768
+ | InputBehaviorEvent_2
21523
21769
  })
21524
21770
  | {
21525
21771
  type: 'serialization.success'
@@ -21892,22 +22138,26 @@ declare const editorMachine: StateMachine<
21892
22138
  mimeType: `${string}/${string}`
21893
22139
  reason: string
21894
22140
  } & {
21895
- originEvent: PickFromUnion_2<
21896
- NativeBehaviorEvent,
21897
- 'type',
21898
- 'drag.drop' | 'clipboard.paste'
21899
- >
22141
+ originEvent:
22142
+ | PickFromUnion_2<
22143
+ NativeBehaviorEvent,
22144
+ 'type',
22145
+ 'drag.drop' | 'clipboard.paste'
22146
+ >
22147
+ | InputBehaviorEvent_2
21900
22148
  })
21901
22149
  | ({
21902
22150
  type: 'deserialization.success'
21903
22151
  data: Array<PortableTextBlock>
21904
22152
  mimeType: `${string}/${string}`
21905
22153
  } & {
21906
- originEvent: PickFromUnion_2<
21907
- NativeBehaviorEvent,
21908
- 'type',
21909
- 'drag.drop' | 'clipboard.paste'
21910
- >
22154
+ originEvent:
22155
+ | PickFromUnion_2<
22156
+ NativeBehaviorEvent,
22157
+ 'type',
22158
+ 'drag.drop' | 'clipboard.paste'
22159
+ >
22160
+ | InputBehaviorEvent_2
21911
22161
  })
21912
22162
  | {
21913
22163
  type: 'serialization.success'
@@ -22263,22 +22513,26 @@ declare const editorMachine: StateMachine<
22263
22513
  mimeType: `${string}/${string}`
22264
22514
  reason: string
22265
22515
  } & {
22266
- originEvent: PickFromUnion_2<
22267
- NativeBehaviorEvent,
22268
- 'type',
22269
- 'drag.drop' | 'clipboard.paste'
22270
- >
22516
+ originEvent:
22517
+ | PickFromUnion_2<
22518
+ NativeBehaviorEvent,
22519
+ 'type',
22520
+ 'drag.drop' | 'clipboard.paste'
22521
+ >
22522
+ | InputBehaviorEvent_2
22271
22523
  })
22272
22524
  | ({
22273
22525
  type: 'deserialization.success'
22274
22526
  data: Array<PortableTextBlock>
22275
22527
  mimeType: `${string}/${string}`
22276
22528
  } & {
22277
- originEvent: PickFromUnion_2<
22278
- NativeBehaviorEvent,
22279
- 'type',
22280
- 'drag.drop' | 'clipboard.paste'
22281
- >
22529
+ originEvent:
22530
+ | PickFromUnion_2<
22531
+ NativeBehaviorEvent,
22532
+ 'type',
22533
+ 'drag.drop' | 'clipboard.paste'
22534
+ >
22535
+ | InputBehaviorEvent_2
22282
22536
  })
22283
22537
  | {
22284
22538
  type: 'serialization.success'
@@ -22609,6 +22863,24 @@ declare type HistoryItem = {
22609
22863
  timestamp: Date
22610
22864
  }
22611
22865
 
22866
+ /**
22867
+ * Used to represent native InputEvents that hold a DataTransfer object.
22868
+ *
22869
+ * These can either be one of:
22870
+ *
22871
+ * - insertFromPaste
22872
+ * - insertFromPasteAsQuotation
22873
+ * - insertFromDrop
22874
+ * - insertReplacementText
22875
+ * - insertFromYank
22876
+ */
22877
+ declare type InputBehaviorEvent = {
22878
+ type: 'input.*'
22879
+ originEvent: {
22880
+ dataTransfer: DataTransfer
22881
+ }
22882
+ }
22883
+
22612
22884
  declare type InsertPlacement = 'auto' | 'after' | 'before'
22613
22885
 
22614
22886
  declare type InternalPatchEvent = NamespaceEvent<PatchEvent, 'internal'> & {
@@ -22742,9 +23014,10 @@ declare type NamespaceEvent<
22742
23014
  */
22743
23015
  declare type NativeBehaviorEvent =
22744
23016
  | ClipboardBehaviorEvent
23017
+ | DragBehaviorEvent
23018
+ | InputBehaviorEvent
22745
23019
  | KeyboardBehaviorEvent
22746
23020
  | MouseBehaviorEvent
22747
- | DragBehaviorEvent
22748
23021
 
22749
23022
  /**
22750
23023
  * @public
@@ -23082,11 +23355,13 @@ declare type SyntheticBehaviorEvent =
23082
23355
  'type',
23083
23356
  'deserialization.failure' | 'deserialization.success'
23084
23357
  > & {
23085
- originEvent: PickFromUnion<
23086
- NativeBehaviorEvent,
23087
- 'type',
23088
- 'drag.drop' | 'clipboard.paste'
23089
- >
23358
+ originEvent:
23359
+ | PickFromUnion<
23360
+ NativeBehaviorEvent,
23361
+ 'type',
23362
+ 'drag.drop' | 'clipboard.paste'
23363
+ >
23364
+ | InputBehaviorEvent
23090
23365
  })
23091
23366
  | {
23092
23367
  type: 'serialization.success'