@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
@@ -51,7 +51,10 @@ import {
51
51
  BlockOffset as BlockOffset_2,
52
52
  PortableTextMemberSchemaTypes as PortableTextMemberSchemaTypes_2,
53
53
  } from '..'
54
- import {InsertPlacement as InsertPlacement_2} from '../behaviors/behavior.types'
54
+ import {
55
+ InputBehaviorEvent as InputBehaviorEvent_2,
56
+ InsertPlacement as InsertPlacement_2,
57
+ } from '../behaviors/behavior.types'
55
58
  import {MIMEType as MIMEType_2} from '../internal-utils/mime-type'
56
59
  import {PickFromUnion as PickFromUnion_2} from '../type-utils'
57
60
 
@@ -67,11 +70,13 @@ declare type Behavior<
67
70
  ? ClipboardBehaviorEvent
68
71
  : TBehaviorEventType extends 'drag.*'
69
72
  ? DragBehaviorEvent
70
- : TBehaviorEventType extends 'keyboard.*'
71
- ? KeyboardBehaviorEvent
72
- : TBehaviorEventType extends 'mouse.*'
73
- ? MouseBehaviorEvent
74
- : PickFromUnion<BehaviorEvent, 'type', TBehaviorEventType>,
73
+ : TBehaviorEventType extends 'input.*'
74
+ ? InputBehaviorEvent
75
+ : TBehaviorEventType extends 'keyboard.*'
76
+ ? KeyboardBehaviorEvent
77
+ : TBehaviorEventType extends 'mouse.*'
78
+ ? MouseBehaviorEvent
79
+ : PickFromUnion<BehaviorEvent, 'type', TBehaviorEventType>,
75
80
  > = {
76
81
  /**
77
82
  * The internal editor event that triggers this behavior.
@@ -139,6 +144,9 @@ declare type BehaviorEvent =
139
144
  | {
140
145
  type: 'drag.*'
141
146
  }
147
+ | {
148
+ type: 'input.*'
149
+ }
142
150
  | {
143
151
  type: 'keyboard.*'
144
152
  }
@@ -249,11 +257,13 @@ declare type CustomBehaviorEvent<
249
257
  declare type DataBehaviorEvent =
250
258
  | {
251
259
  type: 'deserialize'
252
- originEvent: PickFromUnion<
253
- NativeBehaviorEvent,
254
- 'type',
255
- 'drag.drop' | 'clipboard.paste'
256
- >
260
+ originEvent:
261
+ | PickFromUnion<
262
+ NativeBehaviorEvent,
263
+ 'type',
264
+ 'drag.drop' | 'clipboard.paste'
265
+ >
266
+ | InputBehaviorEvent
257
267
  }
258
268
  | {
259
269
  type: 'serialize'
@@ -738,22 +748,26 @@ declare const editorMachine: StateMachine<
738
748
  mimeType: `${string}/${string}`
739
749
  reason: string
740
750
  } & {
741
- originEvent: PickFromUnion_2<
742
- NativeBehaviorEvent,
743
- 'type',
744
- 'drag.drop' | 'clipboard.paste'
745
- >
751
+ originEvent:
752
+ | PickFromUnion_2<
753
+ NativeBehaviorEvent,
754
+ 'type',
755
+ 'drag.drop' | 'clipboard.paste'
756
+ >
757
+ | InputBehaviorEvent_2
746
758
  })
747
759
  | ({
748
760
  type: 'deserialization.success'
749
761
  data: Array<PortableTextBlock>
750
762
  mimeType: `${string}/${string}`
751
763
  } & {
752
- originEvent: PickFromUnion_2<
753
- NativeBehaviorEvent,
754
- 'type',
755
- 'drag.drop' | 'clipboard.paste'
756
- >
764
+ originEvent:
765
+ | PickFromUnion_2<
766
+ NativeBehaviorEvent,
767
+ 'type',
768
+ 'drag.drop' | 'clipboard.paste'
769
+ >
770
+ | InputBehaviorEvent_2
757
771
  })
758
772
  | {
759
773
  type: 'serialization.success'
@@ -1193,22 +1207,26 @@ declare const editorMachine: StateMachine<
1193
1207
  mimeType: `${string}/${string}`
1194
1208
  reason: string
1195
1209
  } & {
1196
- originEvent: PickFromUnion_2<
1197
- NativeBehaviorEvent,
1198
- 'type',
1199
- 'drag.drop' | 'clipboard.paste'
1200
- >
1210
+ originEvent:
1211
+ | PickFromUnion_2<
1212
+ NativeBehaviorEvent,
1213
+ 'type',
1214
+ 'drag.drop' | 'clipboard.paste'
1215
+ >
1216
+ | InputBehaviorEvent_2
1201
1217
  })
1202
1218
  | ({
1203
1219
  type: 'deserialization.success'
1204
1220
  data: Array<PortableTextBlock>
1205
1221
  mimeType: `${string}/${string}`
1206
1222
  } & {
1207
- originEvent: PickFromUnion_2<
1208
- NativeBehaviorEvent,
1209
- 'type',
1210
- 'drag.drop' | 'clipboard.paste'
1211
- >
1223
+ originEvent:
1224
+ | PickFromUnion_2<
1225
+ NativeBehaviorEvent,
1226
+ 'type',
1227
+ 'drag.drop' | 'clipboard.paste'
1228
+ >
1229
+ | InputBehaviorEvent_2
1212
1230
  })
1213
1231
  | {
1214
1232
  type: 'serialization.success'
@@ -1537,22 +1555,26 @@ declare const editorMachine: StateMachine<
1537
1555
  mimeType: `${string}/${string}`
1538
1556
  reason: string
1539
1557
  } & {
1540
- originEvent: PickFromUnion_2<
1541
- NativeBehaviorEvent,
1542
- 'type',
1543
- 'drag.drop' | 'clipboard.paste'
1544
- >
1558
+ originEvent:
1559
+ | PickFromUnion_2<
1560
+ NativeBehaviorEvent,
1561
+ 'type',
1562
+ 'drag.drop' | 'clipboard.paste'
1563
+ >
1564
+ | InputBehaviorEvent_2
1545
1565
  })
1546
1566
  | ({
1547
1567
  type: 'deserialization.success'
1548
1568
  data: Array<PortableTextBlock>
1549
1569
  mimeType: `${string}/${string}`
1550
1570
  } & {
1551
- originEvent: PickFromUnion_2<
1552
- NativeBehaviorEvent,
1553
- 'type',
1554
- 'drag.drop' | 'clipboard.paste'
1555
- >
1571
+ originEvent:
1572
+ | PickFromUnion_2<
1573
+ NativeBehaviorEvent,
1574
+ 'type',
1575
+ 'drag.drop' | 'clipboard.paste'
1576
+ >
1577
+ | InputBehaviorEvent_2
1556
1578
  })
1557
1579
  | {
1558
1580
  type: 'serialization.success'
@@ -1915,22 +1937,26 @@ declare const editorMachine: StateMachine<
1915
1937
  mimeType: `${string}/${string}`
1916
1938
  reason: string
1917
1939
  } & {
1918
- originEvent: PickFromUnion_2<
1919
- NativeBehaviorEvent,
1920
- 'type',
1921
- 'drag.drop' | 'clipboard.paste'
1922
- >
1940
+ originEvent:
1941
+ | PickFromUnion_2<
1942
+ NativeBehaviorEvent,
1943
+ 'type',
1944
+ 'drag.drop' | 'clipboard.paste'
1945
+ >
1946
+ | InputBehaviorEvent_2
1923
1947
  })
1924
1948
  | ({
1925
1949
  type: 'deserialization.success'
1926
1950
  data: Array<PortableTextBlock>
1927
1951
  mimeType: `${string}/${string}`
1928
1952
  } & {
1929
- originEvent: PickFromUnion_2<
1930
- NativeBehaviorEvent,
1931
- 'type',
1932
- 'drag.drop' | 'clipboard.paste'
1933
- >
1953
+ originEvent:
1954
+ | PickFromUnion_2<
1955
+ NativeBehaviorEvent,
1956
+ 'type',
1957
+ 'drag.drop' | 'clipboard.paste'
1958
+ >
1959
+ | InputBehaviorEvent_2
1934
1960
  })
1935
1961
  | {
1936
1962
  type: 'serialization.success'
@@ -2321,22 +2347,26 @@ declare const editorMachine: StateMachine<
2321
2347
  mimeType: `${string}/${string}`
2322
2348
  reason: string
2323
2349
  } & {
2324
- originEvent: PickFromUnion_2<
2325
- NativeBehaviorEvent,
2326
- 'type',
2327
- 'drag.drop' | 'clipboard.paste'
2328
- >
2350
+ originEvent:
2351
+ | PickFromUnion_2<
2352
+ NativeBehaviorEvent,
2353
+ 'type',
2354
+ 'drag.drop' | 'clipboard.paste'
2355
+ >
2356
+ | InputBehaviorEvent_2
2329
2357
  })
2330
2358
  | ({
2331
2359
  type: 'deserialization.success'
2332
2360
  data: Array<PortableTextBlock>
2333
2361
  mimeType: `${string}/${string}`
2334
2362
  } & {
2335
- originEvent: PickFromUnion_2<
2336
- NativeBehaviorEvent,
2337
- 'type',
2338
- 'drag.drop' | 'clipboard.paste'
2339
- >
2363
+ originEvent:
2364
+ | PickFromUnion_2<
2365
+ NativeBehaviorEvent,
2366
+ 'type',
2367
+ 'drag.drop' | 'clipboard.paste'
2368
+ >
2369
+ | InputBehaviorEvent_2
2340
2370
  })
2341
2371
  | {
2342
2372
  type: 'serialization.success'
@@ -2697,22 +2727,26 @@ declare const editorMachine: StateMachine<
2697
2727
  mimeType: `${string}/${string}`
2698
2728
  reason: string
2699
2729
  } & {
2700
- originEvent: PickFromUnion_2<
2701
- NativeBehaviorEvent,
2702
- 'type',
2703
- 'drag.drop' | 'clipboard.paste'
2704
- >
2730
+ originEvent:
2731
+ | PickFromUnion_2<
2732
+ NativeBehaviorEvent,
2733
+ 'type',
2734
+ 'drag.drop' | 'clipboard.paste'
2735
+ >
2736
+ | InputBehaviorEvent_2
2705
2737
  })
2706
2738
  | ({
2707
2739
  type: 'deserialization.success'
2708
2740
  data: Array<PortableTextBlock>
2709
2741
  mimeType: `${string}/${string}`
2710
2742
  } & {
2711
- originEvent: PickFromUnion_2<
2712
- NativeBehaviorEvent,
2713
- 'type',
2714
- 'drag.drop' | 'clipboard.paste'
2715
- >
2743
+ originEvent:
2744
+ | PickFromUnion_2<
2745
+ NativeBehaviorEvent,
2746
+ 'type',
2747
+ 'drag.drop' | 'clipboard.paste'
2748
+ >
2749
+ | InputBehaviorEvent_2
2716
2750
  })
2717
2751
  | {
2718
2752
  type: 'serialization.success'
@@ -3009,22 +3043,26 @@ declare const editorMachine: StateMachine<
3009
3043
  mimeType: `${string}/${string}`
3010
3044
  reason: string
3011
3045
  } & {
3012
- originEvent: PickFromUnion_2<
3013
- NativeBehaviorEvent,
3014
- 'type',
3015
- 'drag.drop' | 'clipboard.paste'
3016
- >
3046
+ originEvent:
3047
+ | PickFromUnion_2<
3048
+ NativeBehaviorEvent,
3049
+ 'type',
3050
+ 'drag.drop' | 'clipboard.paste'
3051
+ >
3052
+ | InputBehaviorEvent_2
3017
3053
  })
3018
3054
  | ({
3019
3055
  type: 'deserialization.success'
3020
3056
  data: Array<PortableTextBlock>
3021
3057
  mimeType: `${string}/${string}`
3022
3058
  } & {
3023
- originEvent: PickFromUnion_2<
3024
- NativeBehaviorEvent,
3025
- 'type',
3026
- 'drag.drop' | 'clipboard.paste'
3027
- >
3059
+ originEvent:
3060
+ | PickFromUnion_2<
3061
+ NativeBehaviorEvent,
3062
+ 'type',
3063
+ 'drag.drop' | 'clipboard.paste'
3064
+ >
3065
+ | InputBehaviorEvent_2
3028
3066
  })
3029
3067
  | {
3030
3068
  type: 'serialization.success'
@@ -3385,22 +3423,26 @@ declare const editorMachine: StateMachine<
3385
3423
  mimeType: `${string}/${string}`
3386
3424
  reason: string
3387
3425
  } & {
3388
- originEvent: PickFromUnion_2<
3389
- NativeBehaviorEvent,
3390
- 'type',
3391
- 'drag.drop' | 'clipboard.paste'
3392
- >
3426
+ originEvent:
3427
+ | PickFromUnion_2<
3428
+ NativeBehaviorEvent,
3429
+ 'type',
3430
+ 'drag.drop' | 'clipboard.paste'
3431
+ >
3432
+ | InputBehaviorEvent_2
3393
3433
  })
3394
3434
  | ({
3395
3435
  type: 'deserialization.success'
3396
3436
  data: Array<PortableTextBlock>
3397
3437
  mimeType: `${string}/${string}`
3398
3438
  } & {
3399
- originEvent: PickFromUnion_2<
3400
- NativeBehaviorEvent,
3401
- 'type',
3402
- 'drag.drop' | 'clipboard.paste'
3403
- >
3439
+ originEvent:
3440
+ | PickFromUnion_2<
3441
+ NativeBehaviorEvent,
3442
+ 'type',
3443
+ 'drag.drop' | 'clipboard.paste'
3444
+ >
3445
+ | InputBehaviorEvent_2
3404
3446
  })
3405
3447
  | {
3406
3448
  type: 'serialization.success'
@@ -3700,22 +3742,26 @@ declare const editorMachine: StateMachine<
3700
3742
  mimeType: `${string}/${string}`
3701
3743
  reason: string
3702
3744
  } & {
3703
- originEvent: PickFromUnion_2<
3704
- NativeBehaviorEvent,
3705
- 'type',
3706
- 'drag.drop' | 'clipboard.paste'
3707
- >
3745
+ originEvent:
3746
+ | PickFromUnion_2<
3747
+ NativeBehaviorEvent,
3748
+ 'type',
3749
+ 'drag.drop' | 'clipboard.paste'
3750
+ >
3751
+ | InputBehaviorEvent_2
3708
3752
  })
3709
3753
  | ({
3710
3754
  type: 'deserialization.success'
3711
3755
  data: Array<PortableTextBlock>
3712
3756
  mimeType: `${string}/${string}`
3713
3757
  } & {
3714
- originEvent: PickFromUnion_2<
3715
- NativeBehaviorEvent,
3716
- 'type',
3717
- 'drag.drop' | 'clipboard.paste'
3718
- >
3758
+ originEvent:
3759
+ | PickFromUnion_2<
3760
+ NativeBehaviorEvent,
3761
+ 'type',
3762
+ 'drag.drop' | 'clipboard.paste'
3763
+ >
3764
+ | InputBehaviorEvent_2
3719
3765
  })
3720
3766
  | {
3721
3767
  type: 'serialization.success'
@@ -4076,22 +4122,26 @@ declare const editorMachine: StateMachine<
4076
4122
  mimeType: `${string}/${string}`
4077
4123
  reason: string
4078
4124
  } & {
4079
- originEvent: PickFromUnion_2<
4080
- NativeBehaviorEvent,
4081
- 'type',
4082
- 'drag.drop' | 'clipboard.paste'
4083
- >
4125
+ originEvent:
4126
+ | PickFromUnion_2<
4127
+ NativeBehaviorEvent,
4128
+ 'type',
4129
+ 'drag.drop' | 'clipboard.paste'
4130
+ >
4131
+ | InputBehaviorEvent_2
4084
4132
  })
4085
4133
  | ({
4086
4134
  type: 'deserialization.success'
4087
4135
  data: Array<PortableTextBlock>
4088
4136
  mimeType: `${string}/${string}`
4089
4137
  } & {
4090
- originEvent: PickFromUnion_2<
4091
- NativeBehaviorEvent,
4092
- 'type',
4093
- 'drag.drop' | 'clipboard.paste'
4094
- >
4138
+ originEvent:
4139
+ | PickFromUnion_2<
4140
+ NativeBehaviorEvent,
4141
+ 'type',
4142
+ 'drag.drop' | 'clipboard.paste'
4143
+ >
4144
+ | InputBehaviorEvent_2
4095
4145
  })
4096
4146
  | {
4097
4147
  type: 'serialization.success'
@@ -4390,22 +4440,26 @@ declare const editorMachine: StateMachine<
4390
4440
  mimeType: `${string}/${string}`
4391
4441
  reason: string
4392
4442
  } & {
4393
- originEvent: PickFromUnion_2<
4394
- NativeBehaviorEvent,
4395
- 'type',
4396
- 'drag.drop' | 'clipboard.paste'
4397
- >
4443
+ originEvent:
4444
+ | PickFromUnion_2<
4445
+ NativeBehaviorEvent,
4446
+ 'type',
4447
+ 'drag.drop' | 'clipboard.paste'
4448
+ >
4449
+ | InputBehaviorEvent_2
4398
4450
  })
4399
4451
  | ({
4400
4452
  type: 'deserialization.success'
4401
4453
  data: Array<PortableTextBlock>
4402
4454
  mimeType: `${string}/${string}`
4403
4455
  } & {
4404
- originEvent: PickFromUnion_2<
4405
- NativeBehaviorEvent,
4406
- 'type',
4407
- 'drag.drop' | 'clipboard.paste'
4408
- >
4456
+ originEvent:
4457
+ | PickFromUnion_2<
4458
+ NativeBehaviorEvent,
4459
+ 'type',
4460
+ 'drag.drop' | 'clipboard.paste'
4461
+ >
4462
+ | InputBehaviorEvent_2
4409
4463
  })
4410
4464
  | {
4411
4465
  type: 'serialization.success'
@@ -4766,22 +4820,26 @@ declare const editorMachine: StateMachine<
4766
4820
  mimeType: `${string}/${string}`
4767
4821
  reason: string
4768
4822
  } & {
4769
- originEvent: PickFromUnion_2<
4770
- NativeBehaviorEvent,
4771
- 'type',
4772
- 'drag.drop' | 'clipboard.paste'
4773
- >
4823
+ originEvent:
4824
+ | PickFromUnion_2<
4825
+ NativeBehaviorEvent,
4826
+ 'type',
4827
+ 'drag.drop' | 'clipboard.paste'
4828
+ >
4829
+ | InputBehaviorEvent_2
4774
4830
  })
4775
4831
  | ({
4776
4832
  type: 'deserialization.success'
4777
4833
  data: Array<PortableTextBlock>
4778
4834
  mimeType: `${string}/${string}`
4779
4835
  } & {
4780
- originEvent: PickFromUnion_2<
4781
- NativeBehaviorEvent,
4782
- 'type',
4783
- 'drag.drop' | 'clipboard.paste'
4784
- >
4836
+ originEvent:
4837
+ | PickFromUnion_2<
4838
+ NativeBehaviorEvent,
4839
+ 'type',
4840
+ 'drag.drop' | 'clipboard.paste'
4841
+ >
4842
+ | InputBehaviorEvent_2
4785
4843
  })
4786
4844
  | {
4787
4845
  type: 'serialization.success'
@@ -5079,22 +5137,26 @@ declare const editorMachine: StateMachine<
5079
5137
  mimeType: `${string}/${string}`
5080
5138
  reason: string
5081
5139
  } & {
5082
- originEvent: PickFromUnion_2<
5083
- NativeBehaviorEvent,
5084
- 'type',
5085
- 'drag.drop' | 'clipboard.paste'
5086
- >
5140
+ originEvent:
5141
+ | PickFromUnion_2<
5142
+ NativeBehaviorEvent,
5143
+ 'type',
5144
+ 'drag.drop' | 'clipboard.paste'
5145
+ >
5146
+ | InputBehaviorEvent_2
5087
5147
  })
5088
5148
  | ({
5089
5149
  type: 'deserialization.success'
5090
5150
  data: Array<PortableTextBlock>
5091
5151
  mimeType: `${string}/${string}`
5092
5152
  } & {
5093
- originEvent: PickFromUnion_2<
5094
- NativeBehaviorEvent,
5095
- 'type',
5096
- 'drag.drop' | 'clipboard.paste'
5097
- >
5153
+ originEvent:
5154
+ | PickFromUnion_2<
5155
+ NativeBehaviorEvent,
5156
+ 'type',
5157
+ 'drag.drop' | 'clipboard.paste'
5158
+ >
5159
+ | InputBehaviorEvent_2
5098
5160
  })
5099
5161
  | {
5100
5162
  type: 'serialization.success'
@@ -5455,22 +5517,26 @@ declare const editorMachine: StateMachine<
5455
5517
  mimeType: `${string}/${string}`
5456
5518
  reason: string
5457
5519
  } & {
5458
- originEvent: PickFromUnion_2<
5459
- NativeBehaviorEvent,
5460
- 'type',
5461
- 'drag.drop' | 'clipboard.paste'
5462
- >
5520
+ originEvent:
5521
+ | PickFromUnion_2<
5522
+ NativeBehaviorEvent,
5523
+ 'type',
5524
+ 'drag.drop' | 'clipboard.paste'
5525
+ >
5526
+ | InputBehaviorEvent_2
5463
5527
  })
5464
5528
  | ({
5465
5529
  type: 'deserialization.success'
5466
5530
  data: Array<PortableTextBlock>
5467
5531
  mimeType: `${string}/${string}`
5468
5532
  } & {
5469
- originEvent: PickFromUnion_2<
5470
- NativeBehaviorEvent,
5471
- 'type',
5472
- 'drag.drop' | 'clipboard.paste'
5473
- >
5533
+ originEvent:
5534
+ | PickFromUnion_2<
5535
+ NativeBehaviorEvent,
5536
+ 'type',
5537
+ 'drag.drop' | 'clipboard.paste'
5538
+ >
5539
+ | InputBehaviorEvent_2
5474
5540
  })
5475
5541
  | {
5476
5542
  type: 'serialization.success'
@@ -5769,22 +5835,26 @@ declare const editorMachine: StateMachine<
5769
5835
  mimeType: `${string}/${string}`
5770
5836
  reason: string
5771
5837
  } & {
5772
- originEvent: PickFromUnion_2<
5773
- NativeBehaviorEvent,
5774
- 'type',
5775
- 'drag.drop' | 'clipboard.paste'
5776
- >
5838
+ originEvent:
5839
+ | PickFromUnion_2<
5840
+ NativeBehaviorEvent,
5841
+ 'type',
5842
+ 'drag.drop' | 'clipboard.paste'
5843
+ >
5844
+ | InputBehaviorEvent_2
5777
5845
  })
5778
5846
  | ({
5779
5847
  type: 'deserialization.success'
5780
5848
  data: Array<PortableTextBlock>
5781
5849
  mimeType: `${string}/${string}`
5782
5850
  } & {
5783
- originEvent: PickFromUnion_2<
5784
- NativeBehaviorEvent,
5785
- 'type',
5786
- 'drag.drop' | 'clipboard.paste'
5787
- >
5851
+ originEvent:
5852
+ | PickFromUnion_2<
5853
+ NativeBehaviorEvent,
5854
+ 'type',
5855
+ 'drag.drop' | 'clipboard.paste'
5856
+ >
5857
+ | InputBehaviorEvent_2
5788
5858
  })
5789
5859
  | {
5790
5860
  type: 'serialization.success'
@@ -6167,22 +6237,26 @@ declare const editorMachine: StateMachine<
6167
6237
  mimeType: `${string}/${string}`
6168
6238
  reason: string
6169
6239
  } & {
6170
- originEvent: PickFromUnion_2<
6171
- NativeBehaviorEvent,
6172
- 'type',
6173
- 'drag.drop' | 'clipboard.paste'
6174
- >
6240
+ originEvent:
6241
+ | PickFromUnion_2<
6242
+ NativeBehaviorEvent,
6243
+ 'type',
6244
+ 'drag.drop' | 'clipboard.paste'
6245
+ >
6246
+ | InputBehaviorEvent_2
6175
6247
  })
6176
6248
  | ({
6177
6249
  type: 'deserialization.success'
6178
6250
  data: Array<PortableTextBlock>
6179
6251
  mimeType: `${string}/${string}`
6180
6252
  } & {
6181
- originEvent: PickFromUnion_2<
6182
- NativeBehaviorEvent,
6183
- 'type',
6184
- 'drag.drop' | 'clipboard.paste'
6185
- >
6253
+ originEvent:
6254
+ | PickFromUnion_2<
6255
+ NativeBehaviorEvent,
6256
+ 'type',
6257
+ 'drag.drop' | 'clipboard.paste'
6258
+ >
6259
+ | InputBehaviorEvent_2
6186
6260
  })
6187
6261
  | {
6188
6262
  type: 'serialization.success'
@@ -6543,22 +6617,26 @@ declare const editorMachine: StateMachine<
6543
6617
  mimeType: `${string}/${string}`
6544
6618
  reason: string
6545
6619
  } & {
6546
- originEvent: PickFromUnion_2<
6547
- NativeBehaviorEvent,
6548
- 'type',
6549
- 'drag.drop' | 'clipboard.paste'
6550
- >
6620
+ originEvent:
6621
+ | PickFromUnion_2<
6622
+ NativeBehaviorEvent,
6623
+ 'type',
6624
+ 'drag.drop' | 'clipboard.paste'
6625
+ >
6626
+ | InputBehaviorEvent_2
6551
6627
  })
6552
6628
  | ({
6553
6629
  type: 'deserialization.success'
6554
6630
  data: Array<PortableTextBlock>
6555
6631
  mimeType: `${string}/${string}`
6556
6632
  } & {
6557
- originEvent: PickFromUnion_2<
6558
- NativeBehaviorEvent,
6559
- 'type',
6560
- 'drag.drop' | 'clipboard.paste'
6561
- >
6633
+ originEvent:
6634
+ | PickFromUnion_2<
6635
+ NativeBehaviorEvent,
6636
+ 'type',
6637
+ 'drag.drop' | 'clipboard.paste'
6638
+ >
6639
+ | InputBehaviorEvent_2
6562
6640
  })
6563
6641
  | {
6564
6642
  type: 'serialization.success'
@@ -6857,22 +6935,26 @@ declare const editorMachine: StateMachine<
6857
6935
  mimeType: `${string}/${string}`
6858
6936
  reason: string
6859
6937
  } & {
6860
- originEvent: PickFromUnion_2<
6861
- NativeBehaviorEvent,
6862
- 'type',
6863
- 'drag.drop' | 'clipboard.paste'
6864
- >
6938
+ originEvent:
6939
+ | PickFromUnion_2<
6940
+ NativeBehaviorEvent,
6941
+ 'type',
6942
+ 'drag.drop' | 'clipboard.paste'
6943
+ >
6944
+ | InputBehaviorEvent_2
6865
6945
  })
6866
6946
  | ({
6867
6947
  type: 'deserialization.success'
6868
6948
  data: Array<PortableTextBlock>
6869
6949
  mimeType: `${string}/${string}`
6870
6950
  } & {
6871
- originEvent: PickFromUnion_2<
6872
- NativeBehaviorEvent,
6873
- 'type',
6874
- 'drag.drop' | 'clipboard.paste'
6875
- >
6951
+ originEvent:
6952
+ | PickFromUnion_2<
6953
+ NativeBehaviorEvent,
6954
+ 'type',
6955
+ 'drag.drop' | 'clipboard.paste'
6956
+ >
6957
+ | InputBehaviorEvent_2
6876
6958
  })
6877
6959
  | {
6878
6960
  type: 'serialization.success'
@@ -7233,22 +7315,26 @@ declare const editorMachine: StateMachine<
7233
7315
  mimeType: `${string}/${string}`
7234
7316
  reason: string
7235
7317
  } & {
7236
- originEvent: PickFromUnion_2<
7237
- NativeBehaviorEvent,
7238
- 'type',
7239
- 'drag.drop' | 'clipboard.paste'
7240
- >
7318
+ originEvent:
7319
+ | PickFromUnion_2<
7320
+ NativeBehaviorEvent,
7321
+ 'type',
7322
+ 'drag.drop' | 'clipboard.paste'
7323
+ >
7324
+ | InputBehaviorEvent_2
7241
7325
  })
7242
7326
  | ({
7243
7327
  type: 'deserialization.success'
7244
7328
  data: Array<PortableTextBlock>
7245
7329
  mimeType: `${string}/${string}`
7246
7330
  } & {
7247
- originEvent: PickFromUnion_2<
7248
- NativeBehaviorEvent,
7249
- 'type',
7250
- 'drag.drop' | 'clipboard.paste'
7251
- >
7331
+ originEvent:
7332
+ | PickFromUnion_2<
7333
+ NativeBehaviorEvent,
7334
+ 'type',
7335
+ 'drag.drop' | 'clipboard.paste'
7336
+ >
7337
+ | InputBehaviorEvent_2
7252
7338
  })
7253
7339
  | {
7254
7340
  type: 'serialization.success'
@@ -7545,22 +7631,26 @@ declare const editorMachine: StateMachine<
7545
7631
  mimeType: `${string}/${string}`
7546
7632
  reason: string
7547
7633
  } & {
7548
- originEvent: PickFromUnion_2<
7549
- NativeBehaviorEvent,
7550
- 'type',
7551
- 'drag.drop' | 'clipboard.paste'
7552
- >
7634
+ originEvent:
7635
+ | PickFromUnion_2<
7636
+ NativeBehaviorEvent,
7637
+ 'type',
7638
+ 'drag.drop' | 'clipboard.paste'
7639
+ >
7640
+ | InputBehaviorEvent_2
7553
7641
  })
7554
7642
  | ({
7555
7643
  type: 'deserialization.success'
7556
7644
  data: Array<PortableTextBlock>
7557
7645
  mimeType: `${string}/${string}`
7558
7646
  } & {
7559
- originEvent: PickFromUnion_2<
7560
- NativeBehaviorEvent,
7561
- 'type',
7562
- 'drag.drop' | 'clipboard.paste'
7563
- >
7647
+ originEvent:
7648
+ | PickFromUnion_2<
7649
+ NativeBehaviorEvent,
7650
+ 'type',
7651
+ 'drag.drop' | 'clipboard.paste'
7652
+ >
7653
+ | InputBehaviorEvent_2
7564
7654
  })
7565
7655
  | {
7566
7656
  type: 'serialization.success'
@@ -7921,22 +8011,26 @@ declare const editorMachine: StateMachine<
7921
8011
  mimeType: `${string}/${string}`
7922
8012
  reason: string
7923
8013
  } & {
7924
- originEvent: PickFromUnion_2<
7925
- NativeBehaviorEvent,
7926
- 'type',
7927
- 'drag.drop' | 'clipboard.paste'
7928
- >
8014
+ originEvent:
8015
+ | PickFromUnion_2<
8016
+ NativeBehaviorEvent,
8017
+ 'type',
8018
+ 'drag.drop' | 'clipboard.paste'
8019
+ >
8020
+ | InputBehaviorEvent_2
7929
8021
  })
7930
8022
  | ({
7931
8023
  type: 'deserialization.success'
7932
8024
  data: Array<PortableTextBlock>
7933
8025
  mimeType: `${string}/${string}`
7934
8026
  } & {
7935
- originEvent: PickFromUnion_2<
7936
- NativeBehaviorEvent,
7937
- 'type',
7938
- 'drag.drop' | 'clipboard.paste'
7939
- >
8027
+ originEvent:
8028
+ | PickFromUnion_2<
8029
+ NativeBehaviorEvent,
8030
+ 'type',
8031
+ 'drag.drop' | 'clipboard.paste'
8032
+ >
8033
+ | InputBehaviorEvent_2
7940
8034
  })
7941
8035
  | {
7942
8036
  type: 'serialization.success'
@@ -8234,22 +8328,26 @@ declare const editorMachine: StateMachine<
8234
8328
  mimeType: `${string}/${string}`
8235
8329
  reason: string
8236
8330
  } & {
8237
- originEvent: PickFromUnion_2<
8238
- NativeBehaviorEvent,
8239
- 'type',
8240
- 'drag.drop' | 'clipboard.paste'
8241
- >
8331
+ originEvent:
8332
+ | PickFromUnion_2<
8333
+ NativeBehaviorEvent,
8334
+ 'type',
8335
+ 'drag.drop' | 'clipboard.paste'
8336
+ >
8337
+ | InputBehaviorEvent_2
8242
8338
  })
8243
8339
  | ({
8244
8340
  type: 'deserialization.success'
8245
8341
  data: Array<PortableTextBlock>
8246
8342
  mimeType: `${string}/${string}`
8247
8343
  } & {
8248
- originEvent: PickFromUnion_2<
8249
- NativeBehaviorEvent,
8250
- 'type',
8251
- 'drag.drop' | 'clipboard.paste'
8252
- >
8344
+ originEvent:
8345
+ | PickFromUnion_2<
8346
+ NativeBehaviorEvent,
8347
+ 'type',
8348
+ 'drag.drop' | 'clipboard.paste'
8349
+ >
8350
+ | InputBehaviorEvent_2
8253
8351
  })
8254
8352
  | {
8255
8353
  type: 'serialization.success'
@@ -8610,22 +8708,26 @@ declare const editorMachine: StateMachine<
8610
8708
  mimeType: `${string}/${string}`
8611
8709
  reason: string
8612
8710
  } & {
8613
- originEvent: PickFromUnion_2<
8614
- NativeBehaviorEvent,
8615
- 'type',
8616
- 'drag.drop' | 'clipboard.paste'
8617
- >
8711
+ originEvent:
8712
+ | PickFromUnion_2<
8713
+ NativeBehaviorEvent,
8714
+ 'type',
8715
+ 'drag.drop' | 'clipboard.paste'
8716
+ >
8717
+ | InputBehaviorEvent_2
8618
8718
  })
8619
8719
  | ({
8620
8720
  type: 'deserialization.success'
8621
8721
  data: Array<PortableTextBlock>
8622
8722
  mimeType: `${string}/${string}`
8623
8723
  } & {
8624
- originEvent: PickFromUnion_2<
8625
- NativeBehaviorEvent,
8626
- 'type',
8627
- 'drag.drop' | 'clipboard.paste'
8628
- >
8724
+ originEvent:
8725
+ | PickFromUnion_2<
8726
+ NativeBehaviorEvent,
8727
+ 'type',
8728
+ 'drag.drop' | 'clipboard.paste'
8729
+ >
8730
+ | InputBehaviorEvent_2
8629
8731
  })
8630
8732
  | {
8631
8733
  type: 'serialization.success'
@@ -8926,22 +9028,26 @@ declare const editorMachine: StateMachine<
8926
9028
  mimeType: `${string}/${string}`
8927
9029
  reason: string
8928
9030
  } & {
8929
- originEvent: PickFromUnion_2<
8930
- NativeBehaviorEvent,
8931
- 'type',
8932
- 'drag.drop' | 'clipboard.paste'
8933
- >
9031
+ originEvent:
9032
+ | PickFromUnion_2<
9033
+ NativeBehaviorEvent,
9034
+ 'type',
9035
+ 'drag.drop' | 'clipboard.paste'
9036
+ >
9037
+ | InputBehaviorEvent_2
8934
9038
  })
8935
9039
  | ({
8936
9040
  type: 'deserialization.success'
8937
9041
  data: Array<PortableTextBlock>
8938
9042
  mimeType: `${string}/${string}`
8939
9043
  } & {
8940
- originEvent: PickFromUnion_2<
8941
- NativeBehaviorEvent,
8942
- 'type',
8943
- 'drag.drop' | 'clipboard.paste'
8944
- >
9044
+ originEvent:
9045
+ | PickFromUnion_2<
9046
+ NativeBehaviorEvent,
9047
+ 'type',
9048
+ 'drag.drop' | 'clipboard.paste'
9049
+ >
9050
+ | InputBehaviorEvent_2
8945
9051
  })
8946
9052
  | {
8947
9053
  type: 'serialization.success'
@@ -9302,22 +9408,26 @@ declare const editorMachine: StateMachine<
9302
9408
  mimeType: `${string}/${string}`
9303
9409
  reason: string
9304
9410
  } & {
9305
- originEvent: PickFromUnion_2<
9306
- NativeBehaviorEvent,
9307
- 'type',
9308
- 'drag.drop' | 'clipboard.paste'
9309
- >
9411
+ originEvent:
9412
+ | PickFromUnion_2<
9413
+ NativeBehaviorEvent,
9414
+ 'type',
9415
+ 'drag.drop' | 'clipboard.paste'
9416
+ >
9417
+ | InputBehaviorEvent_2
9310
9418
  })
9311
9419
  | ({
9312
9420
  type: 'deserialization.success'
9313
9421
  data: Array<PortableTextBlock>
9314
9422
  mimeType: `${string}/${string}`
9315
9423
  } & {
9316
- originEvent: PickFromUnion_2<
9317
- NativeBehaviorEvent,
9318
- 'type',
9319
- 'drag.drop' | 'clipboard.paste'
9320
- >
9424
+ originEvent:
9425
+ | PickFromUnion_2<
9426
+ NativeBehaviorEvent,
9427
+ 'type',
9428
+ 'drag.drop' | 'clipboard.paste'
9429
+ >
9430
+ | InputBehaviorEvent_2
9321
9431
  })
9322
9432
  | {
9323
9433
  type: 'serialization.success'
@@ -9618,22 +9728,26 @@ declare const editorMachine: StateMachine<
9618
9728
  mimeType: `${string}/${string}`
9619
9729
  reason: string
9620
9730
  } & {
9621
- originEvent: PickFromUnion_2<
9622
- NativeBehaviorEvent,
9623
- 'type',
9624
- 'drag.drop' | 'clipboard.paste'
9625
- >
9731
+ originEvent:
9732
+ | PickFromUnion_2<
9733
+ NativeBehaviorEvent,
9734
+ 'type',
9735
+ 'drag.drop' | 'clipboard.paste'
9736
+ >
9737
+ | InputBehaviorEvent_2
9626
9738
  })
9627
9739
  | ({
9628
9740
  type: 'deserialization.success'
9629
9741
  data: Array<PortableTextBlock>
9630
9742
  mimeType: `${string}/${string}`
9631
9743
  } & {
9632
- originEvent: PickFromUnion_2<
9633
- NativeBehaviorEvent,
9634
- 'type',
9635
- 'drag.drop' | 'clipboard.paste'
9636
- >
9744
+ originEvent:
9745
+ | PickFromUnion_2<
9746
+ NativeBehaviorEvent,
9747
+ 'type',
9748
+ 'drag.drop' | 'clipboard.paste'
9749
+ >
9750
+ | InputBehaviorEvent_2
9637
9751
  })
9638
9752
  | {
9639
9753
  type: 'serialization.success'
@@ -10021,22 +10135,26 @@ declare const editorMachine: StateMachine<
10021
10135
  mimeType: `${string}/${string}`
10022
10136
  reason: string
10023
10137
  } & {
10024
- originEvent: PickFromUnion_2<
10025
- NativeBehaviorEvent,
10026
- 'type',
10027
- 'drag.drop' | 'clipboard.paste'
10028
- >
10138
+ originEvent:
10139
+ | PickFromUnion_2<
10140
+ NativeBehaviorEvent,
10141
+ 'type',
10142
+ 'drag.drop' | 'clipboard.paste'
10143
+ >
10144
+ | InputBehaviorEvent_2
10029
10145
  })
10030
10146
  | ({
10031
10147
  type: 'deserialization.success'
10032
10148
  data: Array<PortableTextBlock>
10033
10149
  mimeType: `${string}/${string}`
10034
10150
  } & {
10035
- originEvent: PickFromUnion_2<
10036
- NativeBehaviorEvent,
10037
- 'type',
10038
- 'drag.drop' | 'clipboard.paste'
10039
- >
10151
+ originEvent:
10152
+ | PickFromUnion_2<
10153
+ NativeBehaviorEvent,
10154
+ 'type',
10155
+ 'drag.drop' | 'clipboard.paste'
10156
+ >
10157
+ | InputBehaviorEvent_2
10040
10158
  })
10041
10159
  | {
10042
10160
  type: 'serialization.success'
@@ -10421,22 +10539,26 @@ declare const editorMachine: StateMachine<
10421
10539
  mimeType: `${string}/${string}`
10422
10540
  reason: string
10423
10541
  } & {
10424
- originEvent: PickFromUnion_2<
10425
- NativeBehaviorEvent,
10426
- 'type',
10427
- 'drag.drop' | 'clipboard.paste'
10428
- >
10542
+ originEvent:
10543
+ | PickFromUnion_2<
10544
+ NativeBehaviorEvent,
10545
+ 'type',
10546
+ 'drag.drop' | 'clipboard.paste'
10547
+ >
10548
+ | InputBehaviorEvent_2
10429
10549
  })
10430
10550
  | ({
10431
10551
  type: 'deserialization.success'
10432
10552
  data: Array<PortableTextBlock>
10433
10553
  mimeType: `${string}/${string}`
10434
10554
  } & {
10435
- originEvent: PickFromUnion_2<
10436
- NativeBehaviorEvent,
10437
- 'type',
10438
- 'drag.drop' | 'clipboard.paste'
10439
- >
10555
+ originEvent:
10556
+ | PickFromUnion_2<
10557
+ NativeBehaviorEvent,
10558
+ 'type',
10559
+ 'drag.drop' | 'clipboard.paste'
10560
+ >
10561
+ | InputBehaviorEvent_2
10440
10562
  })
10441
10563
  | {
10442
10564
  type: 'serialization.success'
@@ -10990,22 +11112,26 @@ declare const editorMachine: StateMachine<
10990
11112
  mimeType: `${string}/${string}`
10991
11113
  reason: string
10992
11114
  } & {
10993
- originEvent: PickFromUnion_2<
10994
- NativeBehaviorEvent,
10995
- 'type',
10996
- 'drag.drop' | 'clipboard.paste'
10997
- >
11115
+ originEvent:
11116
+ | PickFromUnion_2<
11117
+ NativeBehaviorEvent,
11118
+ 'type',
11119
+ 'drag.drop' | 'clipboard.paste'
11120
+ >
11121
+ | InputBehaviorEvent_2
10998
11122
  })
10999
11123
  | ({
11000
11124
  type: 'deserialization.success'
11001
11125
  data: Array<PortableTextBlock>
11002
11126
  mimeType: `${string}/${string}`
11003
11127
  } & {
11004
- originEvent: PickFromUnion_2<
11005
- NativeBehaviorEvent,
11006
- 'type',
11007
- 'drag.drop' | 'clipboard.paste'
11008
- >
11128
+ originEvent:
11129
+ | PickFromUnion_2<
11130
+ NativeBehaviorEvent,
11131
+ 'type',
11132
+ 'drag.drop' | 'clipboard.paste'
11133
+ >
11134
+ | InputBehaviorEvent_2
11009
11135
  })
11010
11136
  | {
11011
11137
  type: 'serialization.success'
@@ -11366,22 +11492,26 @@ declare const editorMachine: StateMachine<
11366
11492
  mimeType: `${string}/${string}`
11367
11493
  reason: string
11368
11494
  } & {
11369
- originEvent: PickFromUnion_2<
11370
- NativeBehaviorEvent,
11371
- 'type',
11372
- 'drag.drop' | 'clipboard.paste'
11373
- >
11495
+ originEvent:
11496
+ | PickFromUnion_2<
11497
+ NativeBehaviorEvent,
11498
+ 'type',
11499
+ 'drag.drop' | 'clipboard.paste'
11500
+ >
11501
+ | InputBehaviorEvent_2
11374
11502
  })
11375
11503
  | ({
11376
11504
  type: 'deserialization.success'
11377
11505
  data: Array<PortableTextBlock>
11378
11506
  mimeType: `${string}/${string}`
11379
11507
  } & {
11380
- originEvent: PickFromUnion_2<
11381
- NativeBehaviorEvent,
11382
- 'type',
11383
- 'drag.drop' | 'clipboard.paste'
11384
- >
11508
+ originEvent:
11509
+ | PickFromUnion_2<
11510
+ NativeBehaviorEvent,
11511
+ 'type',
11512
+ 'drag.drop' | 'clipboard.paste'
11513
+ >
11514
+ | InputBehaviorEvent_2
11385
11515
  })
11386
11516
  | {
11387
11517
  type: 'serialization.success'
@@ -11685,22 +11815,26 @@ declare const editorMachine: StateMachine<
11685
11815
  mimeType: `${string}/${string}`
11686
11816
  reason: string
11687
11817
  } & {
11688
- originEvent: PickFromUnion_2<
11689
- NativeBehaviorEvent,
11690
- 'type',
11691
- 'drag.drop' | 'clipboard.paste'
11692
- >
11818
+ originEvent:
11819
+ | PickFromUnion_2<
11820
+ NativeBehaviorEvent,
11821
+ 'type',
11822
+ 'drag.drop' | 'clipboard.paste'
11823
+ >
11824
+ | InputBehaviorEvent_2
11693
11825
  })
11694
11826
  | ({
11695
11827
  type: 'deserialization.success'
11696
11828
  data: Array<PortableTextBlock>
11697
11829
  mimeType: `${string}/${string}`
11698
11830
  } & {
11699
- originEvent: PickFromUnion_2<
11700
- NativeBehaviorEvent,
11701
- 'type',
11702
- 'drag.drop' | 'clipboard.paste'
11703
- >
11831
+ originEvent:
11832
+ | PickFromUnion_2<
11833
+ NativeBehaviorEvent,
11834
+ 'type',
11835
+ 'drag.drop' | 'clipboard.paste'
11836
+ >
11837
+ | InputBehaviorEvent_2
11704
11838
  })
11705
11839
  | {
11706
11840
  type: 'serialization.success'
@@ -12061,22 +12195,26 @@ declare const editorMachine: StateMachine<
12061
12195
  mimeType: `${string}/${string}`
12062
12196
  reason: string
12063
12197
  } & {
12064
- originEvent: PickFromUnion_2<
12065
- NativeBehaviorEvent,
12066
- 'type',
12067
- 'drag.drop' | 'clipboard.paste'
12068
- >
12198
+ originEvent:
12199
+ | PickFromUnion_2<
12200
+ NativeBehaviorEvent,
12201
+ 'type',
12202
+ 'drag.drop' | 'clipboard.paste'
12203
+ >
12204
+ | InputBehaviorEvent_2
12069
12205
  })
12070
12206
  | ({
12071
12207
  type: 'deserialization.success'
12072
12208
  data: Array<PortableTextBlock>
12073
12209
  mimeType: `${string}/${string}`
12074
12210
  } & {
12075
- originEvent: PickFromUnion_2<
12076
- NativeBehaviorEvent,
12077
- 'type',
12078
- 'drag.drop' | 'clipboard.paste'
12079
- >
12211
+ originEvent:
12212
+ | PickFromUnion_2<
12213
+ NativeBehaviorEvent,
12214
+ 'type',
12215
+ 'drag.drop' | 'clipboard.paste'
12216
+ >
12217
+ | InputBehaviorEvent_2
12080
12218
  })
12081
12219
  | {
12082
12220
  type: 'serialization.success'
@@ -12373,22 +12511,26 @@ declare const editorMachine: StateMachine<
12373
12511
  mimeType: `${string}/${string}`
12374
12512
  reason: string
12375
12513
  } & {
12376
- originEvent: PickFromUnion_2<
12377
- NativeBehaviorEvent,
12378
- 'type',
12379
- 'drag.drop' | 'clipboard.paste'
12380
- >
12514
+ originEvent:
12515
+ | PickFromUnion_2<
12516
+ NativeBehaviorEvent,
12517
+ 'type',
12518
+ 'drag.drop' | 'clipboard.paste'
12519
+ >
12520
+ | InputBehaviorEvent_2
12381
12521
  })
12382
12522
  | ({
12383
12523
  type: 'deserialization.success'
12384
12524
  data: Array<PortableTextBlock>
12385
12525
  mimeType: `${string}/${string}`
12386
12526
  } & {
12387
- originEvent: PickFromUnion_2<
12388
- NativeBehaviorEvent,
12389
- 'type',
12390
- 'drag.drop' | 'clipboard.paste'
12391
- >
12527
+ originEvent:
12528
+ | PickFromUnion_2<
12529
+ NativeBehaviorEvent,
12530
+ 'type',
12531
+ 'drag.drop' | 'clipboard.paste'
12532
+ >
12533
+ | InputBehaviorEvent_2
12392
12534
  })
12393
12535
  | {
12394
12536
  type: 'serialization.success'
@@ -12749,22 +12891,26 @@ declare const editorMachine: StateMachine<
12749
12891
  mimeType: `${string}/${string}`
12750
12892
  reason: string
12751
12893
  } & {
12752
- originEvent: PickFromUnion_2<
12753
- NativeBehaviorEvent,
12754
- 'type',
12755
- 'drag.drop' | 'clipboard.paste'
12756
- >
12894
+ originEvent:
12895
+ | PickFromUnion_2<
12896
+ NativeBehaviorEvent,
12897
+ 'type',
12898
+ 'drag.drop' | 'clipboard.paste'
12899
+ >
12900
+ | InputBehaviorEvent_2
12757
12901
  })
12758
12902
  | ({
12759
12903
  type: 'deserialization.success'
12760
12904
  data: Array<PortableTextBlock>
12761
12905
  mimeType: `${string}/${string}`
12762
12906
  } & {
12763
- originEvent: PickFromUnion_2<
12764
- NativeBehaviorEvent,
12765
- 'type',
12766
- 'drag.drop' | 'clipboard.paste'
12767
- >
12907
+ originEvent:
12908
+ | PickFromUnion_2<
12909
+ NativeBehaviorEvent,
12910
+ 'type',
12911
+ 'drag.drop' | 'clipboard.paste'
12912
+ >
12913
+ | InputBehaviorEvent_2
12768
12914
  })
12769
12915
  | {
12770
12916
  type: 'serialization.success'
@@ -13061,22 +13207,26 @@ declare const editorMachine: StateMachine<
13061
13207
  mimeType: `${string}/${string}`
13062
13208
  reason: string
13063
13209
  } & {
13064
- originEvent: PickFromUnion_2<
13065
- NativeBehaviorEvent,
13066
- 'type',
13067
- 'drag.drop' | 'clipboard.paste'
13068
- >
13210
+ originEvent:
13211
+ | PickFromUnion_2<
13212
+ NativeBehaviorEvent,
13213
+ 'type',
13214
+ 'drag.drop' | 'clipboard.paste'
13215
+ >
13216
+ | InputBehaviorEvent_2
13069
13217
  })
13070
13218
  | ({
13071
13219
  type: 'deserialization.success'
13072
13220
  data: Array<PortableTextBlock>
13073
13221
  mimeType: `${string}/${string}`
13074
13222
  } & {
13075
- originEvent: PickFromUnion_2<
13076
- NativeBehaviorEvent,
13077
- 'type',
13078
- 'drag.drop' | 'clipboard.paste'
13079
- >
13223
+ originEvent:
13224
+ | PickFromUnion_2<
13225
+ NativeBehaviorEvent,
13226
+ 'type',
13227
+ 'drag.drop' | 'clipboard.paste'
13228
+ >
13229
+ | InputBehaviorEvent_2
13080
13230
  })
13081
13231
  | {
13082
13232
  type: 'serialization.success'
@@ -13437,22 +13587,26 @@ declare const editorMachine: StateMachine<
13437
13587
  mimeType: `${string}/${string}`
13438
13588
  reason: string
13439
13589
  } & {
13440
- originEvent: PickFromUnion_2<
13441
- NativeBehaviorEvent,
13442
- 'type',
13443
- 'drag.drop' | 'clipboard.paste'
13444
- >
13590
+ originEvent:
13591
+ | PickFromUnion_2<
13592
+ NativeBehaviorEvent,
13593
+ 'type',
13594
+ 'drag.drop' | 'clipboard.paste'
13595
+ >
13596
+ | InputBehaviorEvent_2
13445
13597
  })
13446
13598
  | ({
13447
13599
  type: 'deserialization.success'
13448
13600
  data: Array<PortableTextBlock>
13449
13601
  mimeType: `${string}/${string}`
13450
13602
  } & {
13451
- originEvent: PickFromUnion_2<
13452
- NativeBehaviorEvent,
13453
- 'type',
13454
- 'drag.drop' | 'clipboard.paste'
13455
- >
13603
+ originEvent:
13604
+ | PickFromUnion_2<
13605
+ NativeBehaviorEvent,
13606
+ 'type',
13607
+ 'drag.drop' | 'clipboard.paste'
13608
+ >
13609
+ | InputBehaviorEvent_2
13456
13610
  })
13457
13611
  | {
13458
13612
  type: 'serialization.success'
@@ -13762,22 +13916,26 @@ declare const editorMachine: StateMachine<
13762
13916
  mimeType: `${string}/${string}`
13763
13917
  reason: string
13764
13918
  } & {
13765
- originEvent: PickFromUnion_2<
13766
- NativeBehaviorEvent,
13767
- 'type',
13768
- 'drag.drop' | 'clipboard.paste'
13769
- >
13919
+ originEvent:
13920
+ | PickFromUnion_2<
13921
+ NativeBehaviorEvent,
13922
+ 'type',
13923
+ 'drag.drop' | 'clipboard.paste'
13924
+ >
13925
+ | InputBehaviorEvent_2
13770
13926
  })
13771
13927
  | ({
13772
13928
  type: 'deserialization.success'
13773
13929
  data: Array<PortableTextBlock>
13774
13930
  mimeType: `${string}/${string}`
13775
13931
  } & {
13776
- originEvent: PickFromUnion_2<
13777
- NativeBehaviorEvent,
13778
- 'type',
13779
- 'drag.drop' | 'clipboard.paste'
13780
- >
13932
+ originEvent:
13933
+ | PickFromUnion_2<
13934
+ NativeBehaviorEvent,
13935
+ 'type',
13936
+ 'drag.drop' | 'clipboard.paste'
13937
+ >
13938
+ | InputBehaviorEvent_2
13781
13939
  })
13782
13940
  | {
13783
13941
  type: 'serialization.success'
@@ -14138,22 +14296,26 @@ declare const editorMachine: StateMachine<
14138
14296
  mimeType: `${string}/${string}`
14139
14297
  reason: string
14140
14298
  } & {
14141
- originEvent: PickFromUnion_2<
14142
- NativeBehaviorEvent,
14143
- 'type',
14144
- 'drag.drop' | 'clipboard.paste'
14145
- >
14299
+ originEvent:
14300
+ | PickFromUnion_2<
14301
+ NativeBehaviorEvent,
14302
+ 'type',
14303
+ 'drag.drop' | 'clipboard.paste'
14304
+ >
14305
+ | InputBehaviorEvent_2
14146
14306
  })
14147
14307
  | ({
14148
14308
  type: 'deserialization.success'
14149
14309
  data: Array<PortableTextBlock>
14150
14310
  mimeType: `${string}/${string}`
14151
14311
  } & {
14152
- originEvent: PickFromUnion_2<
14153
- NativeBehaviorEvent,
14154
- 'type',
14155
- 'drag.drop' | 'clipboard.paste'
14156
- >
14312
+ originEvent:
14313
+ | PickFromUnion_2<
14314
+ NativeBehaviorEvent,
14315
+ 'type',
14316
+ 'drag.drop' | 'clipboard.paste'
14317
+ >
14318
+ | InputBehaviorEvent_2
14157
14319
  })
14158
14320
  | {
14159
14321
  type: 'serialization.success'
@@ -14464,22 +14626,26 @@ declare const editorMachine: StateMachine<
14464
14626
  mimeType: `${string}/${string}`
14465
14627
  reason: string
14466
14628
  } & {
14467
- originEvent: PickFromUnion_2<
14468
- NativeBehaviorEvent,
14469
- 'type',
14470
- 'drag.drop' | 'clipboard.paste'
14471
- >
14629
+ originEvent:
14630
+ | PickFromUnion_2<
14631
+ NativeBehaviorEvent,
14632
+ 'type',
14633
+ 'drag.drop' | 'clipboard.paste'
14634
+ >
14635
+ | InputBehaviorEvent_2
14472
14636
  })
14473
14637
  | ({
14474
14638
  type: 'deserialization.success'
14475
14639
  data: Array<PortableTextBlock>
14476
14640
  mimeType: `${string}/${string}`
14477
14641
  } & {
14478
- originEvent: PickFromUnion_2<
14479
- NativeBehaviorEvent,
14480
- 'type',
14481
- 'drag.drop' | 'clipboard.paste'
14482
- >
14642
+ originEvent:
14643
+ | PickFromUnion_2<
14644
+ NativeBehaviorEvent,
14645
+ 'type',
14646
+ 'drag.drop' | 'clipboard.paste'
14647
+ >
14648
+ | InputBehaviorEvent_2
14483
14649
  })
14484
14650
  | {
14485
14651
  type: 'serialization.success'
@@ -14840,22 +15006,26 @@ declare const editorMachine: StateMachine<
14840
15006
  mimeType: `${string}/${string}`
14841
15007
  reason: string
14842
15008
  } & {
14843
- originEvent: PickFromUnion_2<
14844
- NativeBehaviorEvent,
14845
- 'type',
14846
- 'drag.drop' | 'clipboard.paste'
14847
- >
15009
+ originEvent:
15010
+ | PickFromUnion_2<
15011
+ NativeBehaviorEvent,
15012
+ 'type',
15013
+ 'drag.drop' | 'clipboard.paste'
15014
+ >
15015
+ | InputBehaviorEvent_2
14848
15016
  })
14849
15017
  | ({
14850
15018
  type: 'deserialization.success'
14851
15019
  data: Array<PortableTextBlock>
14852
15020
  mimeType: `${string}/${string}`
14853
15021
  } & {
14854
- originEvent: PickFromUnion_2<
14855
- NativeBehaviorEvent,
14856
- 'type',
14857
- 'drag.drop' | 'clipboard.paste'
14858
- >
15022
+ originEvent:
15023
+ | PickFromUnion_2<
15024
+ NativeBehaviorEvent,
15025
+ 'type',
15026
+ 'drag.drop' | 'clipboard.paste'
15027
+ >
15028
+ | InputBehaviorEvent_2
14859
15029
  })
14860
15030
  | {
14861
15031
  type: 'serialization.success'
@@ -15152,22 +15322,26 @@ declare const editorMachine: StateMachine<
15152
15322
  mimeType: `${string}/${string}`
15153
15323
  reason: string
15154
15324
  } & {
15155
- originEvent: PickFromUnion_2<
15156
- NativeBehaviorEvent,
15157
- 'type',
15158
- 'drag.drop' | 'clipboard.paste'
15159
- >
15325
+ originEvent:
15326
+ | PickFromUnion_2<
15327
+ NativeBehaviorEvent,
15328
+ 'type',
15329
+ 'drag.drop' | 'clipboard.paste'
15330
+ >
15331
+ | InputBehaviorEvent_2
15160
15332
  })
15161
15333
  | ({
15162
15334
  type: 'deserialization.success'
15163
15335
  data: Array<PortableTextBlock>
15164
15336
  mimeType: `${string}/${string}`
15165
15337
  } & {
15166
- originEvent: PickFromUnion_2<
15167
- NativeBehaviorEvent,
15168
- 'type',
15169
- 'drag.drop' | 'clipboard.paste'
15170
- >
15338
+ originEvent:
15339
+ | PickFromUnion_2<
15340
+ NativeBehaviorEvent,
15341
+ 'type',
15342
+ 'drag.drop' | 'clipboard.paste'
15343
+ >
15344
+ | InputBehaviorEvent_2
15171
15345
  })
15172
15346
  | {
15173
15347
  type: 'serialization.success'
@@ -15528,22 +15702,26 @@ declare const editorMachine: StateMachine<
15528
15702
  mimeType: `${string}/${string}`
15529
15703
  reason: string
15530
15704
  } & {
15531
- originEvent: PickFromUnion_2<
15532
- NativeBehaviorEvent,
15533
- 'type',
15534
- 'drag.drop' | 'clipboard.paste'
15535
- >
15705
+ originEvent:
15706
+ | PickFromUnion_2<
15707
+ NativeBehaviorEvent,
15708
+ 'type',
15709
+ 'drag.drop' | 'clipboard.paste'
15710
+ >
15711
+ | InputBehaviorEvent_2
15536
15712
  })
15537
15713
  | ({
15538
15714
  type: 'deserialization.success'
15539
15715
  data: Array<PortableTextBlock>
15540
15716
  mimeType: `${string}/${string}`
15541
15717
  } & {
15542
- originEvent: PickFromUnion_2<
15543
- NativeBehaviorEvent,
15544
- 'type',
15545
- 'drag.drop' | 'clipboard.paste'
15546
- >
15718
+ originEvent:
15719
+ | PickFromUnion_2<
15720
+ NativeBehaviorEvent,
15721
+ 'type',
15722
+ 'drag.drop' | 'clipboard.paste'
15723
+ >
15724
+ | InputBehaviorEvent_2
15547
15725
  })
15548
15726
  | {
15549
15727
  type: 'serialization.success'
@@ -15843,22 +16021,26 @@ declare const editorMachine: StateMachine<
15843
16021
  mimeType: `${string}/${string}`
15844
16022
  reason: string
15845
16023
  } & {
15846
- originEvent: PickFromUnion_2<
15847
- NativeBehaviorEvent,
15848
- 'type',
15849
- 'drag.drop' | 'clipboard.paste'
15850
- >
16024
+ originEvent:
16025
+ | PickFromUnion_2<
16026
+ NativeBehaviorEvent,
16027
+ 'type',
16028
+ 'drag.drop' | 'clipboard.paste'
16029
+ >
16030
+ | InputBehaviorEvent_2
15851
16031
  })
15852
16032
  | ({
15853
16033
  type: 'deserialization.success'
15854
16034
  data: Array<PortableTextBlock>
15855
16035
  mimeType: `${string}/${string}`
15856
16036
  } & {
15857
- originEvent: PickFromUnion_2<
15858
- NativeBehaviorEvent,
15859
- 'type',
15860
- 'drag.drop' | 'clipboard.paste'
15861
- >
16037
+ originEvent:
16038
+ | PickFromUnion_2<
16039
+ NativeBehaviorEvent,
16040
+ 'type',
16041
+ 'drag.drop' | 'clipboard.paste'
16042
+ >
16043
+ | InputBehaviorEvent_2
15862
16044
  })
15863
16045
  | {
15864
16046
  type: 'serialization.success'
@@ -16219,22 +16401,26 @@ declare const editorMachine: StateMachine<
16219
16401
  mimeType: `${string}/${string}`
16220
16402
  reason: string
16221
16403
  } & {
16222
- originEvent: PickFromUnion_2<
16223
- NativeBehaviorEvent,
16224
- 'type',
16225
- 'drag.drop' | 'clipboard.paste'
16226
- >
16404
+ originEvent:
16405
+ | PickFromUnion_2<
16406
+ NativeBehaviorEvent,
16407
+ 'type',
16408
+ 'drag.drop' | 'clipboard.paste'
16409
+ >
16410
+ | InputBehaviorEvent_2
16227
16411
  })
16228
16412
  | ({
16229
16413
  type: 'deserialization.success'
16230
16414
  data: Array<PortableTextBlock>
16231
16415
  mimeType: `${string}/${string}`
16232
16416
  } & {
16233
- originEvent: PickFromUnion_2<
16234
- NativeBehaviorEvent,
16235
- 'type',
16236
- 'drag.drop' | 'clipboard.paste'
16237
- >
16417
+ originEvent:
16418
+ | PickFromUnion_2<
16419
+ NativeBehaviorEvent,
16420
+ 'type',
16421
+ 'drag.drop' | 'clipboard.paste'
16422
+ >
16423
+ | InputBehaviorEvent_2
16238
16424
  })
16239
16425
  | {
16240
16426
  type: 'serialization.success'
@@ -16587,22 +16773,26 @@ declare const editorMachine: StateMachine<
16587
16773
  mimeType: `${string}/${string}`
16588
16774
  reason: string
16589
16775
  } & {
16590
- originEvent: PickFromUnion_2<
16591
- NativeBehaviorEvent,
16592
- 'type',
16593
- 'drag.drop' | 'clipboard.paste'
16594
- >
16776
+ originEvent:
16777
+ | PickFromUnion_2<
16778
+ NativeBehaviorEvent,
16779
+ 'type',
16780
+ 'drag.drop' | 'clipboard.paste'
16781
+ >
16782
+ | InputBehaviorEvent_2
16595
16783
  })
16596
16784
  | ({
16597
16785
  type: 'deserialization.success'
16598
16786
  data: Array<PortableTextBlock>
16599
16787
  mimeType: `${string}/${string}`
16600
16788
  } & {
16601
- originEvent: PickFromUnion_2<
16602
- NativeBehaviorEvent,
16603
- 'type',
16604
- 'drag.drop' | 'clipboard.paste'
16605
- >
16789
+ originEvent:
16790
+ | PickFromUnion_2<
16791
+ NativeBehaviorEvent,
16792
+ 'type',
16793
+ 'drag.drop' | 'clipboard.paste'
16794
+ >
16795
+ | InputBehaviorEvent_2
16606
16796
  })
16607
16797
  | {
16608
16798
  type: 'serialization.success'
@@ -16963,22 +17153,26 @@ declare const editorMachine: StateMachine<
16963
17153
  mimeType: `${string}/${string}`
16964
17154
  reason: string
16965
17155
  } & {
16966
- originEvent: PickFromUnion_2<
16967
- NativeBehaviorEvent,
16968
- 'type',
16969
- 'drag.drop' | 'clipboard.paste'
16970
- >
17156
+ originEvent:
17157
+ | PickFromUnion_2<
17158
+ NativeBehaviorEvent,
17159
+ 'type',
17160
+ 'drag.drop' | 'clipboard.paste'
17161
+ >
17162
+ | InputBehaviorEvent_2
16971
17163
  })
16972
17164
  | ({
16973
17165
  type: 'deserialization.success'
16974
17166
  data: Array<PortableTextBlock>
16975
17167
  mimeType: `${string}/${string}`
16976
17168
  } & {
16977
- originEvent: PickFromUnion_2<
16978
- NativeBehaviorEvent,
16979
- 'type',
16980
- 'drag.drop' | 'clipboard.paste'
16981
- >
17169
+ originEvent:
17170
+ | PickFromUnion_2<
17171
+ NativeBehaviorEvent,
17172
+ 'type',
17173
+ 'drag.drop' | 'clipboard.paste'
17174
+ >
17175
+ | InputBehaviorEvent_2
16982
17176
  })
16983
17177
  | {
16984
17178
  type: 'serialization.success'
@@ -17284,22 +17478,26 @@ declare const editorMachine: StateMachine<
17284
17478
  mimeType: `${string}/${string}`
17285
17479
  reason: string
17286
17480
  } & {
17287
- originEvent: PickFromUnion_2<
17288
- NativeBehaviorEvent,
17289
- 'type',
17290
- 'drag.drop' | 'clipboard.paste'
17291
- >
17481
+ originEvent:
17482
+ | PickFromUnion_2<
17483
+ NativeBehaviorEvent,
17484
+ 'type',
17485
+ 'drag.drop' | 'clipboard.paste'
17486
+ >
17487
+ | InputBehaviorEvent_2
17292
17488
  })
17293
17489
  | ({
17294
17490
  type: 'deserialization.success'
17295
17491
  data: Array<PortableTextBlock>
17296
17492
  mimeType: `${string}/${string}`
17297
17493
  } & {
17298
- originEvent: PickFromUnion_2<
17299
- NativeBehaviorEvent,
17300
- 'type',
17301
- 'drag.drop' | 'clipboard.paste'
17302
- >
17494
+ originEvent:
17495
+ | PickFromUnion_2<
17496
+ NativeBehaviorEvent,
17497
+ 'type',
17498
+ 'drag.drop' | 'clipboard.paste'
17499
+ >
17500
+ | InputBehaviorEvent_2
17303
17501
  })
17304
17502
  | {
17305
17503
  type: 'serialization.success'
@@ -17660,22 +17858,26 @@ declare const editorMachine: StateMachine<
17660
17858
  mimeType: `${string}/${string}`
17661
17859
  reason: string
17662
17860
  } & {
17663
- originEvent: PickFromUnion_2<
17664
- NativeBehaviorEvent,
17665
- 'type',
17666
- 'drag.drop' | 'clipboard.paste'
17667
- >
17861
+ originEvent:
17862
+ | PickFromUnion_2<
17863
+ NativeBehaviorEvent,
17864
+ 'type',
17865
+ 'drag.drop' | 'clipboard.paste'
17866
+ >
17867
+ | InputBehaviorEvent_2
17668
17868
  })
17669
17869
  | ({
17670
17870
  type: 'deserialization.success'
17671
17871
  data: Array<PortableTextBlock>
17672
17872
  mimeType: `${string}/${string}`
17673
17873
  } & {
17674
- originEvent: PickFromUnion_2<
17675
- NativeBehaviorEvent,
17676
- 'type',
17677
- 'drag.drop' | 'clipboard.paste'
17678
- >
17874
+ originEvent:
17875
+ | PickFromUnion_2<
17876
+ NativeBehaviorEvent,
17877
+ 'type',
17878
+ 'drag.drop' | 'clipboard.paste'
17879
+ >
17880
+ | InputBehaviorEvent_2
17679
17881
  })
17680
17882
  | {
17681
17883
  type: 'serialization.success'
@@ -17982,22 +18184,26 @@ declare const editorMachine: StateMachine<
17982
18184
  mimeType: `${string}/${string}`
17983
18185
  reason: string
17984
18186
  } & {
17985
- originEvent: PickFromUnion_2<
17986
- NativeBehaviorEvent,
17987
- 'type',
17988
- 'drag.drop' | 'clipboard.paste'
17989
- >
18187
+ originEvent:
18188
+ | PickFromUnion_2<
18189
+ NativeBehaviorEvent,
18190
+ 'type',
18191
+ 'drag.drop' | 'clipboard.paste'
18192
+ >
18193
+ | InputBehaviorEvent_2
17990
18194
  })
17991
18195
  | ({
17992
18196
  type: 'deserialization.success'
17993
18197
  data: Array<PortableTextBlock>
17994
18198
  mimeType: `${string}/${string}`
17995
18199
  } & {
17996
- originEvent: PickFromUnion_2<
17997
- NativeBehaviorEvent,
17998
- 'type',
17999
- 'drag.drop' | 'clipboard.paste'
18000
- >
18200
+ originEvent:
18201
+ | PickFromUnion_2<
18202
+ NativeBehaviorEvent,
18203
+ 'type',
18204
+ 'drag.drop' | 'clipboard.paste'
18205
+ >
18206
+ | InputBehaviorEvent_2
18001
18207
  })
18002
18208
  | {
18003
18209
  type: 'serialization.success'
@@ -18358,22 +18564,26 @@ declare const editorMachine: StateMachine<
18358
18564
  mimeType: `${string}/${string}`
18359
18565
  reason: string
18360
18566
  } & {
18361
- originEvent: PickFromUnion_2<
18362
- NativeBehaviorEvent,
18363
- 'type',
18364
- 'drag.drop' | 'clipboard.paste'
18365
- >
18567
+ originEvent:
18568
+ | PickFromUnion_2<
18569
+ NativeBehaviorEvent,
18570
+ 'type',
18571
+ 'drag.drop' | 'clipboard.paste'
18572
+ >
18573
+ | InputBehaviorEvent_2
18366
18574
  })
18367
18575
  | ({
18368
18576
  type: 'deserialization.success'
18369
18577
  data: Array<PortableTextBlock>
18370
18578
  mimeType: `${string}/${string}`
18371
18579
  } & {
18372
- originEvent: PickFromUnion_2<
18373
- NativeBehaviorEvent,
18374
- 'type',
18375
- 'drag.drop' | 'clipboard.paste'
18376
- >
18580
+ originEvent:
18581
+ | PickFromUnion_2<
18582
+ NativeBehaviorEvent,
18583
+ 'type',
18584
+ 'drag.drop' | 'clipboard.paste'
18585
+ >
18586
+ | InputBehaviorEvent_2
18377
18587
  })
18378
18588
  | {
18379
18589
  type: 'serialization.success'
@@ -18671,22 +18881,26 @@ declare const editorMachine: StateMachine<
18671
18881
  mimeType: `${string}/${string}`
18672
18882
  reason: string
18673
18883
  } & {
18674
- originEvent: PickFromUnion_2<
18675
- NativeBehaviorEvent,
18676
- 'type',
18677
- 'drag.drop' | 'clipboard.paste'
18678
- >
18884
+ originEvent:
18885
+ | PickFromUnion_2<
18886
+ NativeBehaviorEvent,
18887
+ 'type',
18888
+ 'drag.drop' | 'clipboard.paste'
18889
+ >
18890
+ | InputBehaviorEvent_2
18679
18891
  })
18680
18892
  | ({
18681
18893
  type: 'deserialization.success'
18682
18894
  data: Array<PortableTextBlock>
18683
18895
  mimeType: `${string}/${string}`
18684
18896
  } & {
18685
- originEvent: PickFromUnion_2<
18686
- NativeBehaviorEvent,
18687
- 'type',
18688
- 'drag.drop' | 'clipboard.paste'
18689
- >
18897
+ originEvent:
18898
+ | PickFromUnion_2<
18899
+ NativeBehaviorEvent,
18900
+ 'type',
18901
+ 'drag.drop' | 'clipboard.paste'
18902
+ >
18903
+ | InputBehaviorEvent_2
18690
18904
  })
18691
18905
  | {
18692
18906
  type: 'serialization.success'
@@ -19047,22 +19261,26 @@ declare const editorMachine: StateMachine<
19047
19261
  mimeType: `${string}/${string}`
19048
19262
  reason: string
19049
19263
  } & {
19050
- originEvent: PickFromUnion_2<
19051
- NativeBehaviorEvent,
19052
- 'type',
19053
- 'drag.drop' | 'clipboard.paste'
19054
- >
19264
+ originEvent:
19265
+ | PickFromUnion_2<
19266
+ NativeBehaviorEvent,
19267
+ 'type',
19268
+ 'drag.drop' | 'clipboard.paste'
19269
+ >
19270
+ | InputBehaviorEvent_2
19055
19271
  })
19056
19272
  | ({
19057
19273
  type: 'deserialization.success'
19058
19274
  data: Array<PortableTextBlock>
19059
19275
  mimeType: `${string}/${string}`
19060
19276
  } & {
19061
- originEvent: PickFromUnion_2<
19062
- NativeBehaviorEvent,
19063
- 'type',
19064
- 'drag.drop' | 'clipboard.paste'
19065
- >
19277
+ originEvent:
19278
+ | PickFromUnion_2<
19279
+ NativeBehaviorEvent,
19280
+ 'type',
19281
+ 'drag.drop' | 'clipboard.paste'
19282
+ >
19283
+ | InputBehaviorEvent_2
19066
19284
  })
19067
19285
  | {
19068
19286
  type: 'serialization.success'
@@ -19364,22 +19582,26 @@ declare const editorMachine: StateMachine<
19364
19582
  mimeType: `${string}/${string}`
19365
19583
  reason: string
19366
19584
  } & {
19367
- originEvent: PickFromUnion_2<
19368
- NativeBehaviorEvent,
19369
- 'type',
19370
- 'drag.drop' | 'clipboard.paste'
19371
- >
19585
+ originEvent:
19586
+ | PickFromUnion_2<
19587
+ NativeBehaviorEvent,
19588
+ 'type',
19589
+ 'drag.drop' | 'clipboard.paste'
19590
+ >
19591
+ | InputBehaviorEvent_2
19372
19592
  })
19373
19593
  | ({
19374
19594
  type: 'deserialization.success'
19375
19595
  data: Array<PortableTextBlock>
19376
19596
  mimeType: `${string}/${string}`
19377
19597
  } & {
19378
- originEvent: PickFromUnion_2<
19379
- NativeBehaviorEvent,
19380
- 'type',
19381
- 'drag.drop' | 'clipboard.paste'
19382
- >
19598
+ originEvent:
19599
+ | PickFromUnion_2<
19600
+ NativeBehaviorEvent,
19601
+ 'type',
19602
+ 'drag.drop' | 'clipboard.paste'
19603
+ >
19604
+ | InputBehaviorEvent_2
19383
19605
  })
19384
19606
  | {
19385
19607
  type: 'serialization.success'
@@ -19740,22 +19962,26 @@ declare const editorMachine: StateMachine<
19740
19962
  mimeType: `${string}/${string}`
19741
19963
  reason: string
19742
19964
  } & {
19743
- originEvent: PickFromUnion_2<
19744
- NativeBehaviorEvent,
19745
- 'type',
19746
- 'drag.drop' | 'clipboard.paste'
19747
- >
19965
+ originEvent:
19966
+ | PickFromUnion_2<
19967
+ NativeBehaviorEvent,
19968
+ 'type',
19969
+ 'drag.drop' | 'clipboard.paste'
19970
+ >
19971
+ | InputBehaviorEvent_2
19748
19972
  })
19749
19973
  | ({
19750
19974
  type: 'deserialization.success'
19751
19975
  data: Array<PortableTextBlock>
19752
19976
  mimeType: `${string}/${string}`
19753
19977
  } & {
19754
- originEvent: PickFromUnion_2<
19755
- NativeBehaviorEvent,
19756
- 'type',
19757
- 'drag.drop' | 'clipboard.paste'
19758
- >
19978
+ originEvent:
19979
+ | PickFromUnion_2<
19980
+ NativeBehaviorEvent,
19981
+ 'type',
19982
+ 'drag.drop' | 'clipboard.paste'
19983
+ >
19984
+ | InputBehaviorEvent_2
19759
19985
  })
19760
19986
  | {
19761
19987
  type: 'serialization.success'
@@ -20061,22 +20287,26 @@ declare const editorMachine: StateMachine<
20061
20287
  mimeType: `${string}/${string}`
20062
20288
  reason: string
20063
20289
  } & {
20064
- originEvent: PickFromUnion_2<
20065
- NativeBehaviorEvent,
20066
- 'type',
20067
- 'drag.drop' | 'clipboard.paste'
20068
- >
20290
+ originEvent:
20291
+ | PickFromUnion_2<
20292
+ NativeBehaviorEvent,
20293
+ 'type',
20294
+ 'drag.drop' | 'clipboard.paste'
20295
+ >
20296
+ | InputBehaviorEvent_2
20069
20297
  })
20070
20298
  | ({
20071
20299
  type: 'deserialization.success'
20072
20300
  data: Array<PortableTextBlock>
20073
20301
  mimeType: `${string}/${string}`
20074
20302
  } & {
20075
- originEvent: PickFromUnion_2<
20076
- NativeBehaviorEvent,
20077
- 'type',
20078
- 'drag.drop' | 'clipboard.paste'
20079
- >
20303
+ originEvent:
20304
+ | PickFromUnion_2<
20305
+ NativeBehaviorEvent,
20306
+ 'type',
20307
+ 'drag.drop' | 'clipboard.paste'
20308
+ >
20309
+ | InputBehaviorEvent_2
20080
20310
  })
20081
20311
  | {
20082
20312
  type: 'serialization.success'
@@ -20437,22 +20667,26 @@ declare const editorMachine: StateMachine<
20437
20667
  mimeType: `${string}/${string}`
20438
20668
  reason: string
20439
20669
  } & {
20440
- originEvent: PickFromUnion_2<
20441
- NativeBehaviorEvent,
20442
- 'type',
20443
- 'drag.drop' | 'clipboard.paste'
20444
- >
20670
+ originEvent:
20671
+ | PickFromUnion_2<
20672
+ NativeBehaviorEvent,
20673
+ 'type',
20674
+ 'drag.drop' | 'clipboard.paste'
20675
+ >
20676
+ | InputBehaviorEvent_2
20445
20677
  })
20446
20678
  | ({
20447
20679
  type: 'deserialization.success'
20448
20680
  data: Array<PortableTextBlock>
20449
20681
  mimeType: `${string}/${string}`
20450
20682
  } & {
20451
- originEvent: PickFromUnion_2<
20452
- NativeBehaviorEvent,
20453
- 'type',
20454
- 'drag.drop' | 'clipboard.paste'
20455
- >
20683
+ originEvent:
20684
+ | PickFromUnion_2<
20685
+ NativeBehaviorEvent,
20686
+ 'type',
20687
+ 'drag.drop' | 'clipboard.paste'
20688
+ >
20689
+ | InputBehaviorEvent_2
20456
20690
  })
20457
20691
  | {
20458
20692
  type: 'serialization.success'
@@ -20772,22 +21006,26 @@ declare const editorMachine: StateMachine<
20772
21006
  mimeType: `${string}/${string}`
20773
21007
  reason: string
20774
21008
  } & {
20775
- originEvent: PickFromUnion_2<
20776
- NativeBehaviorEvent,
20777
- 'type',
20778
- 'drag.drop' | 'clipboard.paste'
20779
- >
21009
+ originEvent:
21010
+ | PickFromUnion_2<
21011
+ NativeBehaviorEvent,
21012
+ 'type',
21013
+ 'drag.drop' | 'clipboard.paste'
21014
+ >
21015
+ | InputBehaviorEvent_2
20780
21016
  })
20781
21017
  | ({
20782
21018
  type: 'deserialization.success'
20783
21019
  data: Array<PortableTextBlock>
20784
21020
  mimeType: `${string}/${string}`
20785
21021
  } & {
20786
- originEvent: PickFromUnion_2<
20787
- NativeBehaviorEvent,
20788
- 'type',
20789
- 'drag.drop' | 'clipboard.paste'
20790
- >
21022
+ originEvent:
21023
+ | PickFromUnion_2<
21024
+ NativeBehaviorEvent,
21025
+ 'type',
21026
+ 'drag.drop' | 'clipboard.paste'
21027
+ >
21028
+ | InputBehaviorEvent_2
20791
21029
  })
20792
21030
  | {
20793
21031
  type: 'serialization.success'
@@ -21179,22 +21417,26 @@ declare const editorMachine: StateMachine<
21179
21417
  mimeType: `${string}/${string}`
21180
21418
  reason: string
21181
21419
  } & {
21182
- originEvent: PickFromUnion_2<
21183
- NativeBehaviorEvent,
21184
- 'type',
21185
- 'drag.drop' | 'clipboard.paste'
21186
- >
21420
+ originEvent:
21421
+ | PickFromUnion_2<
21422
+ NativeBehaviorEvent,
21423
+ 'type',
21424
+ 'drag.drop' | 'clipboard.paste'
21425
+ >
21426
+ | InputBehaviorEvent_2
21187
21427
  })
21188
21428
  | ({
21189
21429
  type: 'deserialization.success'
21190
21430
  data: Array<PortableTextBlock>
21191
21431
  mimeType: `${string}/${string}`
21192
21432
  } & {
21193
- originEvent: PickFromUnion_2<
21194
- NativeBehaviorEvent,
21195
- 'type',
21196
- 'drag.drop' | 'clipboard.paste'
21197
- >
21433
+ originEvent:
21434
+ | PickFromUnion_2<
21435
+ NativeBehaviorEvent,
21436
+ 'type',
21437
+ 'drag.drop' | 'clipboard.paste'
21438
+ >
21439
+ | InputBehaviorEvent_2
21198
21440
  })
21199
21441
  | {
21200
21442
  type: 'serialization.success'
@@ -21550,22 +21792,26 @@ declare const editorMachine: StateMachine<
21550
21792
  mimeType: `${string}/${string}`
21551
21793
  reason: string
21552
21794
  } & {
21553
- originEvent: PickFromUnion_2<
21554
- NativeBehaviorEvent,
21555
- 'type',
21556
- 'drag.drop' | 'clipboard.paste'
21557
- >
21795
+ originEvent:
21796
+ | PickFromUnion_2<
21797
+ NativeBehaviorEvent,
21798
+ 'type',
21799
+ 'drag.drop' | 'clipboard.paste'
21800
+ >
21801
+ | InputBehaviorEvent_2
21558
21802
  })
21559
21803
  | ({
21560
21804
  type: 'deserialization.success'
21561
21805
  data: Array<PortableTextBlock>
21562
21806
  mimeType: `${string}/${string}`
21563
21807
  } & {
21564
- originEvent: PickFromUnion_2<
21565
- NativeBehaviorEvent,
21566
- 'type',
21567
- 'drag.drop' | 'clipboard.paste'
21568
- >
21808
+ originEvent:
21809
+ | PickFromUnion_2<
21810
+ NativeBehaviorEvent,
21811
+ 'type',
21812
+ 'drag.drop' | 'clipboard.paste'
21813
+ >
21814
+ | InputBehaviorEvent_2
21569
21815
  })
21570
21816
  | {
21571
21817
  type: 'serialization.success'
@@ -21938,22 +22184,26 @@ declare const editorMachine: StateMachine<
21938
22184
  mimeType: `${string}/${string}`
21939
22185
  reason: string
21940
22186
  } & {
21941
- originEvent: PickFromUnion_2<
21942
- NativeBehaviorEvent,
21943
- 'type',
21944
- 'drag.drop' | 'clipboard.paste'
21945
- >
22187
+ originEvent:
22188
+ | PickFromUnion_2<
22189
+ NativeBehaviorEvent,
22190
+ 'type',
22191
+ 'drag.drop' | 'clipboard.paste'
22192
+ >
22193
+ | InputBehaviorEvent_2
21946
22194
  })
21947
22195
  | ({
21948
22196
  type: 'deserialization.success'
21949
22197
  data: Array<PortableTextBlock>
21950
22198
  mimeType: `${string}/${string}`
21951
22199
  } & {
21952
- originEvent: PickFromUnion_2<
21953
- NativeBehaviorEvent,
21954
- 'type',
21955
- 'drag.drop' | 'clipboard.paste'
21956
- >
22200
+ originEvent:
22201
+ | PickFromUnion_2<
22202
+ NativeBehaviorEvent,
22203
+ 'type',
22204
+ 'drag.drop' | 'clipboard.paste'
22205
+ >
22206
+ | InputBehaviorEvent_2
21957
22207
  })
21958
22208
  | {
21959
22209
  type: 'serialization.success'
@@ -22309,22 +22559,26 @@ declare const editorMachine: StateMachine<
22309
22559
  mimeType: `${string}/${string}`
22310
22560
  reason: string
22311
22561
  } & {
22312
- originEvent: PickFromUnion_2<
22313
- NativeBehaviorEvent,
22314
- 'type',
22315
- 'drag.drop' | 'clipboard.paste'
22316
- >
22562
+ originEvent:
22563
+ | PickFromUnion_2<
22564
+ NativeBehaviorEvent,
22565
+ 'type',
22566
+ 'drag.drop' | 'clipboard.paste'
22567
+ >
22568
+ | InputBehaviorEvent_2
22317
22569
  })
22318
22570
  | ({
22319
22571
  type: 'deserialization.success'
22320
22572
  data: Array<PortableTextBlock>
22321
22573
  mimeType: `${string}/${string}`
22322
22574
  } & {
22323
- originEvent: PickFromUnion_2<
22324
- NativeBehaviorEvent,
22325
- 'type',
22326
- 'drag.drop' | 'clipboard.paste'
22327
- >
22575
+ originEvent:
22576
+ | PickFromUnion_2<
22577
+ NativeBehaviorEvent,
22578
+ 'type',
22579
+ 'drag.drop' | 'clipboard.paste'
22580
+ >
22581
+ | InputBehaviorEvent_2
22328
22582
  })
22329
22583
  | {
22330
22584
  type: 'serialization.success'
@@ -22726,6 +22980,24 @@ declare type HistoryItem = {
22726
22980
  timestamp: Date
22727
22981
  }
22728
22982
 
22983
+ /**
22984
+ * Used to represent native InputEvents that hold a DataTransfer object.
22985
+ *
22986
+ * These can either be one of:
22987
+ *
22988
+ * - insertFromPaste
22989
+ * - insertFromPasteAsQuotation
22990
+ * - insertFromDrop
22991
+ * - insertReplacementText
22992
+ * - insertFromYank
22993
+ */
22994
+ declare type InputBehaviorEvent = {
22995
+ type: 'input.*'
22996
+ originEvent: {
22997
+ dataTransfer: DataTransfer
22998
+ }
22999
+ }
23000
+
22729
23001
  declare type InsertPlacement = 'auto' | 'after' | 'before'
22730
23002
 
22731
23003
  declare type InternalPatchEvent = NamespaceEvent<PatchEvent, 'internal'> & {
@@ -22898,9 +23170,10 @@ declare type NamespaceEvent<
22898
23170
  */
22899
23171
  declare type NativeBehaviorEvent =
22900
23172
  | ClipboardBehaviorEvent
23173
+ | DragBehaviorEvent
23174
+ | InputBehaviorEvent
22901
23175
  | KeyboardBehaviorEvent
22902
23176
  | MouseBehaviorEvent
22903
- | DragBehaviorEvent
22904
23177
 
22905
23178
  /**
22906
23179
  * @beta
@@ -23206,11 +23479,13 @@ declare type SyntheticBehaviorEvent =
23206
23479
  'type',
23207
23480
  'deserialization.failure' | 'deserialization.success'
23208
23481
  > & {
23209
- originEvent: PickFromUnion<
23210
- NativeBehaviorEvent,
23211
- 'type',
23212
- 'drag.drop' | 'clipboard.paste'
23213
- >
23482
+ originEvent:
23483
+ | PickFromUnion<
23484
+ NativeBehaviorEvent,
23485
+ 'type',
23486
+ 'drag.drop' | 'clipboard.paste'
23487
+ >
23488
+ | InputBehaviorEvent
23214
23489
  })
23215
23490
  | {
23216
23491
  type: 'serialization.success'