@portabletext/editor 1.38.1 → 1.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/lib/_chunks-cjs/behavior.core.cjs +24 -16
  2. package/lib/_chunks-cjs/behavior.core.cjs.map +1 -1
  3. package/lib/_chunks-cjs/behavior.markdown.cjs +2 -2
  4. package/lib/_chunks-cjs/behavior.markdown.cjs.map +1 -1
  5. package/lib/_chunks-cjs/editor-provider.cjs +19 -24
  6. package/lib/_chunks-cjs/editor-provider.cjs.map +1 -1
  7. package/lib/_chunks-es/behavior.core.js +24 -16
  8. package/lib/_chunks-es/behavior.core.js.map +1 -1
  9. package/lib/_chunks-es/behavior.markdown.js +2 -2
  10. package/lib/_chunks-es/behavior.markdown.js.map +1 -1
  11. package/lib/_chunks-es/editor-provider.js +20 -25
  12. package/lib/_chunks-es/editor-provider.js.map +1 -1
  13. package/lib/behaviors/index.cjs +12 -12
  14. package/lib/behaviors/index.cjs.map +1 -1
  15. package/lib/behaviors/index.d.cts +1505 -2318
  16. package/lib/behaviors/index.d.ts +1505 -2318
  17. package/lib/behaviors/index.js +12 -12
  18. package/lib/behaviors/index.js.map +1 -1
  19. package/lib/index.cjs +41 -19
  20. package/lib/index.cjs.map +1 -1
  21. package/lib/index.d.cts +1084 -2011
  22. package/lib/index.d.ts +1084 -2011
  23. package/lib/index.js +41 -19
  24. package/lib/index.js.map +1 -1
  25. package/lib/plugins/index.d.cts +1084 -2011
  26. package/lib/plugins/index.d.ts +1084 -2011
  27. package/lib/selectors/index.d.cts +1084 -2011
  28. package/lib/selectors/index.d.ts +1084 -2011
  29. package/lib/utils/index.d.cts +1084 -2011
  30. package/lib/utils/index.d.ts +1084 -2011
  31. package/package.json +1 -1
  32. package/src/behavior-actions/behavior.action.serialization.success.ts +4 -1
  33. package/src/behaviors/behavior.code-editor.ts +4 -4
  34. package/src/behaviors/behavior.core.block-objects.ts +4 -4
  35. package/src/behaviors/behavior.core.decorators.ts +8 -8
  36. package/src/behaviors/behavior.core.lists.ts +4 -4
  37. package/src/behaviors/behavior.default.raise-soft-break.ts +3 -3
  38. package/src/behaviors/behavior.default.ts +10 -16
  39. package/src/behaviors/behavior.emoji-picker.ts +6 -6
  40. package/src/behaviors/behavior.links.ts +4 -4
  41. package/src/behaviors/behavior.markdown.ts +2 -2
  42. package/src/behaviors/behavior.types.ts +124 -77
  43. package/src/converters/converter.text-html.serialize.test.ts +4 -4
  44. package/src/converters/converter.text-plain.test.ts +6 -6
  45. package/src/converters/converter.types.ts +3 -3
  46. package/src/editor/Editable.tsx +41 -19
  47. package/src/editor/editor-machine.ts +26 -6
@@ -64,9 +64,15 @@ declare type Behavior<
64
64
  TGuardResponse = true,
65
65
  TBehaviorEvent extends BehaviorEvent = TBehaviorEventType extends '*'
66
66
  ? BehaviorEvent
67
- : TBehaviorEventType extends 'drag.*'
68
- ? DragBehaviorEvent
69
- : PickFromUnion<BehaviorEvent, 'type', TBehaviorEventType>,
67
+ : TBehaviorEventType extends 'clipboard.*'
68
+ ? ClipboardBehaviorEvent
69
+ : TBehaviorEventType extends 'drag.*'
70
+ ? DragBehaviorEvent
71
+ : TBehaviorEventType extends 'keyboard.*'
72
+ ? KeyboardBehaviorEvent
73
+ : TBehaviorEventType extends 'mouse.*'
74
+ ? MouseBehaviorEvent
75
+ : PickFromUnion<BehaviorEvent, 'type', TBehaviorEventType>,
70
76
  > = {
71
77
  /**
72
78
  * The internal editor event that triggers this behavior.
@@ -128,9 +134,18 @@ declare type BehaviorEvent =
128
134
  | {
129
135
  type: '*'
130
136
  }
137
+ | {
138
+ type: 'clipboard.*'
139
+ }
131
140
  | {
132
141
  type: 'drag.*'
133
142
  }
143
+ | {
144
+ type: 'keyboard.*'
145
+ }
146
+ | {
147
+ type: 'mouse.*'
148
+ }
134
149
 
135
150
  /**
136
151
  * @beta
@@ -153,6 +168,29 @@ declare type BlockOffset = {
153
168
  offset: number
154
169
  }
155
170
 
171
+ declare type ClipboardBehaviorEvent =
172
+ | {
173
+ type: 'clipboard.copy'
174
+ originEvent: {
175
+ dataTransfer: DataTransfer
176
+ }
177
+ position: EventPosition
178
+ }
179
+ | {
180
+ type: 'clipboard.cut'
181
+ originEvent: {
182
+ dataTransfer: DataTransfer
183
+ }
184
+ position: EventPosition
185
+ }
186
+ | {
187
+ type: 'clipboard.paste'
188
+ originEvent: {
189
+ dataTransfer: DataTransfer
190
+ }
191
+ position: EventPosition
192
+ }
193
+
156
194
  declare type Converter<TMIMEType extends MIMEType = MIMEType> = {
157
195
  mimeType: TMIMEType
158
196
  serialize: Serializer<TMIMEType>
@@ -162,19 +200,19 @@ declare type Converter<TMIMEType extends MIMEType = MIMEType> = {
162
200
  declare type ConverterEvent<TMIMEType extends MIMEType = MIMEType> =
163
201
  | {
164
202
  type: 'serialize'
165
- originEvent: 'copy' | 'cut' | 'drag.dragstart'
203
+ originEvent: 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
166
204
  }
167
205
  | {
168
206
  type: 'serialization.failure'
169
207
  mimeType: TMIMEType
170
- originEvent: 'copy' | 'cut' | 'drag.dragstart'
208
+ originEvent: 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
171
209
  reason: string
172
210
  }
173
211
  | {
174
212
  type: 'serialization.success'
175
213
  data: string
176
214
  mimeType: TMIMEType
177
- originEvent: 'copy' | 'cut' | 'drag.dragstart'
215
+ originEvent: 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
178
216
  }
179
217
  | {
180
218
  type: 'deserialize'
@@ -205,22 +243,18 @@ declare type CustomBehaviorEvent<
205
243
  declare type DataBehaviorEvent =
206
244
  | {
207
245
  type: 'deserialize'
208
- dataTransfer: DataTransfer
209
- originEvent: Omit<
210
- PickFromUnion<NativeBehaviorEvent, 'type', 'drag.drop' | 'paste'>,
211
- 'dataTransfer'
246
+ originEvent: PickFromUnion<
247
+ NativeBehaviorEvent,
248
+ 'type',
249
+ 'drag.drop' | 'clipboard.paste'
212
250
  >
213
251
  }
214
252
  | {
215
253
  type: 'serialize'
216
- dataTransfer: DataTransfer
217
- originEvent: Omit<
218
- PickFromUnion<
219
- NativeBehaviorEvent,
220
- 'type',
221
- 'copy' | 'cut' | 'drag.dragstart'
222
- >,
223
- 'dataTransfer'
254
+ originEvent: PickFromUnion<
255
+ NativeBehaviorEvent,
256
+ 'type',
257
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
224
258
  >
225
259
  }
226
260
 
@@ -239,35 +273,49 @@ declare type Deserializer<TMIMEType extends MIMEType> = ({
239
273
  declare type DragBehaviorEvent =
240
274
  | {
241
275
  type: 'drag.dragstart'
242
- dataTransfer: DataTransfer
276
+ originEvent: {
277
+ dataTransfer: DataTransfer
278
+ }
243
279
  position: EventPosition
244
280
  }
245
281
  | {
246
282
  type: 'drag.drag'
247
- dataTransfer: DataTransfer
283
+ originEvent: {
284
+ dataTransfer: DataTransfer
285
+ }
248
286
  }
249
287
  | {
250
288
  type: 'drag.dragend'
251
- dataTransfer: DataTransfer
289
+ originEvent: {
290
+ dataTransfer: DataTransfer
291
+ }
252
292
  }
253
293
  | {
254
294
  type: 'drag.dragenter'
255
- dataTransfer: DataTransfer
295
+ originEvent: {
296
+ dataTransfer: DataTransfer
297
+ }
256
298
  position: EventPosition
257
299
  }
258
300
  | {
259
301
  type: 'drag.dragover'
260
- dataTransfer: DataTransfer
302
+ originEvent: {
303
+ dataTransfer: DataTransfer
304
+ }
261
305
  position: EventPosition
262
306
  }
263
307
  | {
264
308
  type: 'drag.drop'
265
- dataTransfer: DataTransfer
309
+ originEvent: {
310
+ dataTransfer: DataTransfer
311
+ }
266
312
  position: EventPosition
267
313
  }
268
314
  | {
269
315
  type: 'drag.dragleave'
270
- dataTransfer: DataTransfer
316
+ originEvent: {
317
+ dataTransfer: DataTransfer
318
+ }
271
319
  }
272
320
 
273
321
  /** @beta */
@@ -598,10 +646,10 @@ declare const editorMachine: StateMachine<
598
646
  mimeType: `${string}/${string}`
599
647
  reason: string
600
648
  } & {
601
- dataTransfer: DataTransfer
602
- originEvent: Omit<
603
- PickFromUnion_2<NativeBehaviorEvent, 'type', 'drag.drop' | 'paste'>,
604
- 'dataTransfer'
649
+ originEvent: PickFromUnion_2<
650
+ NativeBehaviorEvent,
651
+ 'type',
652
+ 'drag.drop' | 'clipboard.paste'
605
653
  >
606
654
  })
607
655
  | ({
@@ -609,38 +657,30 @@ declare const editorMachine: StateMachine<
609
657
  data: Array<PortableTextBlock>
610
658
  mimeType: `${string}/${string}`
611
659
  } & {
612
- dataTransfer: DataTransfer
613
- originEvent: Omit<
614
- PickFromUnion_2<NativeBehaviorEvent, 'type', 'drag.drop' | 'paste'>,
615
- 'dataTransfer'
660
+ originEvent: PickFromUnion_2<
661
+ NativeBehaviorEvent,
662
+ 'type',
663
+ 'drag.drop' | 'clipboard.paste'
616
664
  >
617
665
  })
618
666
  | {
619
667
  type: 'serialization.success'
620
668
  mimeType: MIMEType_2
621
669
  data: string
622
- dataTransfer: DataTransfer
623
- originEvent: Omit<
624
- PickFromUnion_2<
625
- NativeBehaviorEvent,
626
- 'type',
627
- 'copy' | 'cut' | 'drag.dragstart'
628
- >,
629
- 'dataTransfer'
670
+ originEvent: PickFromUnion_2<
671
+ NativeBehaviorEvent,
672
+ 'type',
673
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
630
674
  >
631
675
  }
632
676
  | {
633
677
  type: 'serialization.failure'
634
678
  mimeType: MIMEType_2
635
679
  reason: string
636
- dataTransfer: DataTransfer
637
- originEvent: Omit<
638
- PickFromUnion_2<
639
- NativeBehaviorEvent,
640
- 'type',
641
- 'copy' | 'cut' | 'drag.dragstart'
642
- >,
643
- 'dataTransfer'
680
+ originEvent: PickFromUnion_2<
681
+ NativeBehaviorEvent,
682
+ 'type',
683
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
644
684
  >
645
685
  }
646
686
  | InternalPatchEvent
@@ -1061,10 +1101,10 @@ declare const editorMachine: StateMachine<
1061
1101
  mimeType: `${string}/${string}`
1062
1102
  reason: string
1063
1103
  } & {
1064
- dataTransfer: DataTransfer
1065
- originEvent: Omit<
1066
- PickFromUnion_2<NativeBehaviorEvent, 'type', 'drag.drop' | 'paste'>,
1067
- 'dataTransfer'
1104
+ originEvent: PickFromUnion_2<
1105
+ NativeBehaviorEvent,
1106
+ 'type',
1107
+ 'drag.drop' | 'clipboard.paste'
1068
1108
  >
1069
1109
  })
1070
1110
  | ({
@@ -1072,38 +1112,30 @@ declare const editorMachine: StateMachine<
1072
1112
  data: Array<PortableTextBlock>
1073
1113
  mimeType: `${string}/${string}`
1074
1114
  } & {
1075
- dataTransfer: DataTransfer
1076
- originEvent: Omit<
1077
- PickFromUnion_2<NativeBehaviorEvent, 'type', 'drag.drop' | 'paste'>,
1078
- 'dataTransfer'
1115
+ originEvent: PickFromUnion_2<
1116
+ NativeBehaviorEvent,
1117
+ 'type',
1118
+ 'drag.drop' | 'clipboard.paste'
1079
1119
  >
1080
1120
  })
1081
1121
  | {
1082
1122
  type: 'serialization.success'
1083
1123
  mimeType: MIMEType_2
1084
1124
  data: string
1085
- dataTransfer: DataTransfer
1086
- originEvent: Omit<
1087
- PickFromUnion_2<
1088
- NativeBehaviorEvent,
1089
- 'type',
1090
- 'copy' | 'cut' | 'drag.dragstart'
1091
- >,
1092
- 'dataTransfer'
1125
+ originEvent: PickFromUnion_2<
1126
+ NativeBehaviorEvent,
1127
+ 'type',
1128
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
1093
1129
  >
1094
1130
  }
1095
1131
  | {
1096
1132
  type: 'serialization.failure'
1097
1133
  mimeType: MIMEType_2
1098
1134
  reason: string
1099
- dataTransfer: DataTransfer
1100
- originEvent: Omit<
1101
- PickFromUnion_2<
1102
- NativeBehaviorEvent,
1103
- 'type',
1104
- 'copy' | 'cut' | 'drag.dragstart'
1105
- >,
1106
- 'dataTransfer'
1135
+ originEvent: PickFromUnion_2<
1136
+ NativeBehaviorEvent,
1137
+ 'type',
1138
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
1107
1139
  >
1108
1140
  }
1109
1141
  | PatchEvent
@@ -1413,14 +1445,10 @@ declare const editorMachine: StateMachine<
1413
1445
  mimeType: `${string}/${string}`
1414
1446
  reason: string
1415
1447
  } & {
1416
- dataTransfer: DataTransfer
1417
- originEvent: Omit<
1418
- PickFromUnion_2<
1419
- NativeBehaviorEvent,
1420
- 'type',
1421
- 'drag.drop' | 'paste'
1422
- >,
1423
- 'dataTransfer'
1448
+ originEvent: PickFromUnion_2<
1449
+ NativeBehaviorEvent,
1450
+ 'type',
1451
+ 'drag.drop' | 'clipboard.paste'
1424
1452
  >
1425
1453
  })
1426
1454
  | ({
@@ -1428,42 +1456,30 @@ declare const editorMachine: StateMachine<
1428
1456
  data: Array<PortableTextBlock>
1429
1457
  mimeType: `${string}/${string}`
1430
1458
  } & {
1431
- dataTransfer: DataTransfer
1432
- originEvent: Omit<
1433
- PickFromUnion_2<
1434
- NativeBehaviorEvent,
1435
- 'type',
1436
- 'drag.drop' | 'paste'
1437
- >,
1438
- 'dataTransfer'
1459
+ originEvent: PickFromUnion_2<
1460
+ NativeBehaviorEvent,
1461
+ 'type',
1462
+ 'drag.drop' | 'clipboard.paste'
1439
1463
  >
1440
1464
  })
1441
1465
  | {
1442
1466
  type: 'serialization.success'
1443
1467
  mimeType: MIMEType_2
1444
1468
  data: string
1445
- dataTransfer: DataTransfer
1446
- originEvent: Omit<
1447
- PickFromUnion_2<
1448
- NativeBehaviorEvent,
1449
- 'type',
1450
- 'copy' | 'cut' | 'drag.dragstart'
1451
- >,
1452
- 'dataTransfer'
1469
+ originEvent: PickFromUnion_2<
1470
+ NativeBehaviorEvent,
1471
+ 'type',
1472
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
1453
1473
  >
1454
1474
  }
1455
1475
  | {
1456
1476
  type: 'serialization.failure'
1457
1477
  mimeType: MIMEType_2
1458
1478
  reason: string
1459
- dataTransfer: DataTransfer
1460
- originEvent: Omit<
1461
- PickFromUnion_2<
1462
- NativeBehaviorEvent,
1463
- 'type',
1464
- 'copy' | 'cut' | 'drag.dragstart'
1465
- >,
1466
- 'dataTransfer'
1479
+ originEvent: PickFromUnion_2<
1480
+ NativeBehaviorEvent,
1481
+ 'type',
1482
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
1467
1483
  >
1468
1484
  }
1469
1485
  | InternalPatchEvent
@@ -1807,14 +1823,10 @@ declare const editorMachine: StateMachine<
1807
1823
  mimeType: `${string}/${string}`
1808
1824
  reason: string
1809
1825
  } & {
1810
- dataTransfer: DataTransfer
1811
- originEvent: Omit<
1812
- PickFromUnion_2<
1813
- NativeBehaviorEvent,
1814
- 'type',
1815
- 'drag.drop' | 'paste'
1816
- >,
1817
- 'dataTransfer'
1826
+ originEvent: PickFromUnion_2<
1827
+ NativeBehaviorEvent,
1828
+ 'type',
1829
+ 'drag.drop' | 'clipboard.paste'
1818
1830
  >
1819
1831
  })
1820
1832
  | ({
@@ -1822,42 +1834,30 @@ declare const editorMachine: StateMachine<
1822
1834
  data: Array<PortableTextBlock>
1823
1835
  mimeType: `${string}/${string}`
1824
1836
  } & {
1825
- dataTransfer: DataTransfer
1826
- originEvent: Omit<
1827
- PickFromUnion_2<
1828
- NativeBehaviorEvent,
1829
- 'type',
1830
- 'drag.drop' | 'paste'
1831
- >,
1832
- 'dataTransfer'
1837
+ originEvent: PickFromUnion_2<
1838
+ NativeBehaviorEvent,
1839
+ 'type',
1840
+ 'drag.drop' | 'clipboard.paste'
1833
1841
  >
1834
1842
  })
1835
1843
  | {
1836
1844
  type: 'serialization.success'
1837
1845
  mimeType: MIMEType_2
1838
1846
  data: string
1839
- dataTransfer: DataTransfer
1840
- originEvent: Omit<
1841
- PickFromUnion_2<
1842
- NativeBehaviorEvent,
1843
- 'type',
1844
- 'copy' | 'cut' | 'drag.dragstart'
1845
- >,
1846
- 'dataTransfer'
1847
+ originEvent: PickFromUnion_2<
1848
+ NativeBehaviorEvent,
1849
+ 'type',
1850
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
1847
1851
  >
1848
1852
  }
1849
1853
  | {
1850
1854
  type: 'serialization.failure'
1851
1855
  mimeType: MIMEType_2
1852
1856
  reason: string
1853
- dataTransfer: DataTransfer
1854
- originEvent: Omit<
1855
- PickFromUnion_2<
1856
- NativeBehaviorEvent,
1857
- 'type',
1858
- 'copy' | 'cut' | 'drag.dragstart'
1859
- >,
1860
- 'dataTransfer'
1857
+ originEvent: PickFromUnion_2<
1858
+ NativeBehaviorEvent,
1859
+ 'type',
1860
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
1861
1861
  >
1862
1862
  }
1863
1863
  | InternalPatchEvent
@@ -2229,14 +2229,10 @@ declare const editorMachine: StateMachine<
2229
2229
  mimeType: `${string}/${string}`
2230
2230
  reason: string
2231
2231
  } & {
2232
- dataTransfer: DataTransfer
2233
- originEvent: Omit<
2234
- PickFromUnion_2<
2235
- NativeBehaviorEvent,
2236
- 'type',
2237
- 'drag.drop' | 'paste'
2238
- >,
2239
- 'dataTransfer'
2232
+ originEvent: PickFromUnion_2<
2233
+ NativeBehaviorEvent,
2234
+ 'type',
2235
+ 'drag.drop' | 'clipboard.paste'
2240
2236
  >
2241
2237
  })
2242
2238
  | ({
@@ -2244,42 +2240,30 @@ declare const editorMachine: StateMachine<
2244
2240
  data: Array<PortableTextBlock>
2245
2241
  mimeType: `${string}/${string}`
2246
2242
  } & {
2247
- dataTransfer: DataTransfer
2248
- originEvent: Omit<
2249
- PickFromUnion_2<
2250
- NativeBehaviorEvent,
2251
- 'type',
2252
- 'drag.drop' | 'paste'
2253
- >,
2254
- 'dataTransfer'
2243
+ originEvent: PickFromUnion_2<
2244
+ NativeBehaviorEvent,
2245
+ 'type',
2246
+ 'drag.drop' | 'clipboard.paste'
2255
2247
  >
2256
2248
  })
2257
2249
  | {
2258
2250
  type: 'serialization.success'
2259
2251
  mimeType: MIMEType_2
2260
2252
  data: string
2261
- dataTransfer: DataTransfer
2262
- originEvent: Omit<
2263
- PickFromUnion_2<
2264
- NativeBehaviorEvent,
2265
- 'type',
2266
- 'copy' | 'cut' | 'drag.dragstart'
2267
- >,
2268
- 'dataTransfer'
2253
+ originEvent: PickFromUnion_2<
2254
+ NativeBehaviorEvent,
2255
+ 'type',
2256
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
2269
2257
  >
2270
2258
  }
2271
2259
  | {
2272
2260
  type: 'serialization.failure'
2273
2261
  mimeType: MIMEType_2
2274
2262
  reason: string
2275
- dataTransfer: DataTransfer
2276
- originEvent: Omit<
2277
- PickFromUnion_2<
2278
- NativeBehaviorEvent,
2279
- 'type',
2280
- 'copy' | 'cut' | 'drag.dragstart'
2281
- >,
2282
- 'dataTransfer'
2263
+ originEvent: PickFromUnion_2<
2264
+ NativeBehaviorEvent,
2265
+ 'type',
2266
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
2283
2267
  >
2284
2268
  }
2285
2269
  | InternalPatchEvent
@@ -2621,14 +2605,10 @@ declare const editorMachine: StateMachine<
2621
2605
  mimeType: `${string}/${string}`
2622
2606
  reason: string
2623
2607
  } & {
2624
- dataTransfer: DataTransfer
2625
- originEvent: Omit<
2626
- PickFromUnion_2<
2627
- NativeBehaviorEvent,
2628
- 'type',
2629
- 'drag.drop' | 'paste'
2630
- >,
2631
- 'dataTransfer'
2608
+ originEvent: PickFromUnion_2<
2609
+ NativeBehaviorEvent,
2610
+ 'type',
2611
+ 'drag.drop' | 'clipboard.paste'
2632
2612
  >
2633
2613
  })
2634
2614
  | ({
@@ -2636,42 +2616,30 @@ declare const editorMachine: StateMachine<
2636
2616
  data: Array<PortableTextBlock>
2637
2617
  mimeType: `${string}/${string}`
2638
2618
  } & {
2639
- dataTransfer: DataTransfer
2640
- originEvent: Omit<
2641
- PickFromUnion_2<
2642
- NativeBehaviorEvent,
2643
- 'type',
2644
- 'drag.drop' | 'paste'
2645
- >,
2646
- 'dataTransfer'
2619
+ originEvent: PickFromUnion_2<
2620
+ NativeBehaviorEvent,
2621
+ 'type',
2622
+ 'drag.drop' | 'clipboard.paste'
2647
2623
  >
2648
2624
  })
2649
2625
  | {
2650
2626
  type: 'serialization.success'
2651
2627
  mimeType: MIMEType_2
2652
2628
  data: string
2653
- dataTransfer: DataTransfer
2654
- originEvent: Omit<
2655
- PickFromUnion_2<
2656
- NativeBehaviorEvent,
2657
- 'type',
2658
- 'copy' | 'cut' | 'drag.dragstart'
2659
- >,
2660
- 'dataTransfer'
2629
+ originEvent: PickFromUnion_2<
2630
+ NativeBehaviorEvent,
2631
+ 'type',
2632
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
2661
2633
  >
2662
2634
  }
2663
2635
  | {
2664
2636
  type: 'serialization.failure'
2665
2637
  mimeType: MIMEType_2
2666
2638
  reason: string
2667
- dataTransfer: DataTransfer
2668
- originEvent: Omit<
2669
- PickFromUnion_2<
2670
- NativeBehaviorEvent,
2671
- 'type',
2672
- 'copy' | 'cut' | 'drag.dragstart'
2673
- >,
2674
- 'dataTransfer'
2639
+ originEvent: PickFromUnion_2<
2640
+ NativeBehaviorEvent,
2641
+ 'type',
2642
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
2675
2643
  >
2676
2644
  }
2677
2645
  | PatchEvent
@@ -2949,14 +2917,10 @@ declare const editorMachine: StateMachine<
2949
2917
  mimeType: `${string}/${string}`
2950
2918
  reason: string
2951
2919
  } & {
2952
- dataTransfer: DataTransfer
2953
- originEvent: Omit<
2954
- PickFromUnion_2<
2955
- NativeBehaviorEvent,
2956
- 'type',
2957
- 'drag.drop' | 'paste'
2958
- >,
2959
- 'dataTransfer'
2920
+ originEvent: PickFromUnion_2<
2921
+ NativeBehaviorEvent,
2922
+ 'type',
2923
+ 'drag.drop' | 'clipboard.paste'
2960
2924
  >
2961
2925
  })
2962
2926
  | ({
@@ -2964,42 +2928,30 @@ declare const editorMachine: StateMachine<
2964
2928
  data: Array<PortableTextBlock>
2965
2929
  mimeType: `${string}/${string}`
2966
2930
  } & {
2967
- dataTransfer: DataTransfer
2968
- originEvent: Omit<
2969
- PickFromUnion_2<
2970
- NativeBehaviorEvent,
2971
- 'type',
2972
- 'drag.drop' | 'paste'
2973
- >,
2974
- 'dataTransfer'
2931
+ originEvent: PickFromUnion_2<
2932
+ NativeBehaviorEvent,
2933
+ 'type',
2934
+ 'drag.drop' | 'clipboard.paste'
2975
2935
  >
2976
2936
  })
2977
2937
  | {
2978
2938
  type: 'serialization.success'
2979
2939
  mimeType: MIMEType_2
2980
2940
  data: string
2981
- dataTransfer: DataTransfer
2982
- originEvent: Omit<
2983
- PickFromUnion_2<
2984
- NativeBehaviorEvent,
2985
- 'type',
2986
- 'copy' | 'cut' | 'drag.dragstart'
2987
- >,
2988
- 'dataTransfer'
2941
+ originEvent: PickFromUnion_2<
2942
+ NativeBehaviorEvent,
2943
+ 'type',
2944
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
2989
2945
  >
2990
2946
  }
2991
2947
  | {
2992
2948
  type: 'serialization.failure'
2993
2949
  mimeType: MIMEType_2
2994
2950
  reason: string
2995
- dataTransfer: DataTransfer
2996
- originEvent: Omit<
2997
- PickFromUnion_2<
2998
- NativeBehaviorEvent,
2999
- 'type',
3000
- 'copy' | 'cut' | 'drag.dragstart'
3001
- >,
3002
- 'dataTransfer'
2951
+ originEvent: PickFromUnion_2<
2952
+ NativeBehaviorEvent,
2953
+ 'type',
2954
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
3003
2955
  >
3004
2956
  }
3005
2957
  | InternalPatchEvent
@@ -3341,14 +3293,10 @@ declare const editorMachine: StateMachine<
3341
3293
  mimeType: `${string}/${string}`
3342
3294
  reason: string
3343
3295
  } & {
3344
- dataTransfer: DataTransfer
3345
- originEvent: Omit<
3346
- PickFromUnion_2<
3347
- NativeBehaviorEvent,
3348
- 'type',
3349
- 'drag.drop' | 'paste'
3350
- >,
3351
- 'dataTransfer'
3296
+ originEvent: PickFromUnion_2<
3297
+ NativeBehaviorEvent,
3298
+ 'type',
3299
+ 'drag.drop' | 'clipboard.paste'
3352
3300
  >
3353
3301
  })
3354
3302
  | ({
@@ -3356,42 +3304,30 @@ declare const editorMachine: StateMachine<
3356
3304
  data: Array<PortableTextBlock>
3357
3305
  mimeType: `${string}/${string}`
3358
3306
  } & {
3359
- dataTransfer: DataTransfer
3360
- originEvent: Omit<
3361
- PickFromUnion_2<
3362
- NativeBehaviorEvent,
3363
- 'type',
3364
- 'drag.drop' | 'paste'
3365
- >,
3366
- 'dataTransfer'
3307
+ originEvent: PickFromUnion_2<
3308
+ NativeBehaviorEvent,
3309
+ 'type',
3310
+ 'drag.drop' | 'clipboard.paste'
3367
3311
  >
3368
3312
  })
3369
3313
  | {
3370
3314
  type: 'serialization.success'
3371
3315
  mimeType: MIMEType_2
3372
3316
  data: string
3373
- dataTransfer: DataTransfer
3374
- originEvent: Omit<
3375
- PickFromUnion_2<
3376
- NativeBehaviorEvent,
3377
- 'type',
3378
- 'copy' | 'cut' | 'drag.dragstart'
3379
- >,
3380
- 'dataTransfer'
3317
+ originEvent: PickFromUnion_2<
3318
+ NativeBehaviorEvent,
3319
+ 'type',
3320
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
3381
3321
  >
3382
3322
  }
3383
3323
  | {
3384
3324
  type: 'serialization.failure'
3385
3325
  mimeType: MIMEType_2
3386
3326
  reason: string
3387
- dataTransfer: DataTransfer
3388
- originEvent: Omit<
3389
- PickFromUnion_2<
3390
- NativeBehaviorEvent,
3391
- 'type',
3392
- 'copy' | 'cut' | 'drag.dragstart'
3393
- >,
3394
- 'dataTransfer'
3327
+ originEvent: PickFromUnion_2<
3328
+ NativeBehaviorEvent,
3329
+ 'type',
3330
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
3395
3331
  >
3396
3332
  }
3397
3333
  | PatchEvent
@@ -3672,14 +3608,10 @@ declare const editorMachine: StateMachine<
3672
3608
  mimeType: `${string}/${string}`
3673
3609
  reason: string
3674
3610
  } & {
3675
- dataTransfer: DataTransfer
3676
- originEvent: Omit<
3677
- PickFromUnion_2<
3678
- NativeBehaviorEvent,
3679
- 'type',
3680
- 'drag.drop' | 'paste'
3681
- >,
3682
- 'dataTransfer'
3611
+ originEvent: PickFromUnion_2<
3612
+ NativeBehaviorEvent,
3613
+ 'type',
3614
+ 'drag.drop' | 'clipboard.paste'
3683
3615
  >
3684
3616
  })
3685
3617
  | ({
@@ -3687,42 +3619,30 @@ declare const editorMachine: StateMachine<
3687
3619
  data: Array<PortableTextBlock>
3688
3620
  mimeType: `${string}/${string}`
3689
3621
  } & {
3690
- dataTransfer: DataTransfer
3691
- originEvent: Omit<
3692
- PickFromUnion_2<
3693
- NativeBehaviorEvent,
3694
- 'type',
3695
- 'drag.drop' | 'paste'
3696
- >,
3697
- 'dataTransfer'
3622
+ originEvent: PickFromUnion_2<
3623
+ NativeBehaviorEvent,
3624
+ 'type',
3625
+ 'drag.drop' | 'clipboard.paste'
3698
3626
  >
3699
3627
  })
3700
3628
  | {
3701
3629
  type: 'serialization.success'
3702
3630
  mimeType: MIMEType_2
3703
3631
  data: string
3704
- dataTransfer: DataTransfer
3705
- originEvent: Omit<
3706
- PickFromUnion_2<
3707
- NativeBehaviorEvent,
3708
- 'type',
3709
- 'copy' | 'cut' | 'drag.dragstart'
3710
- >,
3711
- 'dataTransfer'
3632
+ originEvent: PickFromUnion_2<
3633
+ NativeBehaviorEvent,
3634
+ 'type',
3635
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
3712
3636
  >
3713
3637
  }
3714
3638
  | {
3715
3639
  type: 'serialization.failure'
3716
3640
  mimeType: MIMEType_2
3717
3641
  reason: string
3718
- dataTransfer: DataTransfer
3719
- originEvent: Omit<
3720
- PickFromUnion_2<
3721
- NativeBehaviorEvent,
3722
- 'type',
3723
- 'copy' | 'cut' | 'drag.dragstart'
3724
- >,
3725
- 'dataTransfer'
3642
+ originEvent: PickFromUnion_2<
3643
+ NativeBehaviorEvent,
3644
+ 'type',
3645
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
3726
3646
  >
3727
3647
  }
3728
3648
  | InternalPatchEvent
@@ -4064,14 +3984,10 @@ declare const editorMachine: StateMachine<
4064
3984
  mimeType: `${string}/${string}`
4065
3985
  reason: string
4066
3986
  } & {
4067
- dataTransfer: DataTransfer
4068
- originEvent: Omit<
4069
- PickFromUnion_2<
4070
- NativeBehaviorEvent,
4071
- 'type',
4072
- 'drag.drop' | 'paste'
4073
- >,
4074
- 'dataTransfer'
3987
+ originEvent: PickFromUnion_2<
3988
+ NativeBehaviorEvent,
3989
+ 'type',
3990
+ 'drag.drop' | 'clipboard.paste'
4075
3991
  >
4076
3992
  })
4077
3993
  | ({
@@ -4079,42 +3995,30 @@ declare const editorMachine: StateMachine<
4079
3995
  data: Array<PortableTextBlock>
4080
3996
  mimeType: `${string}/${string}`
4081
3997
  } & {
4082
- dataTransfer: DataTransfer
4083
- originEvent: Omit<
4084
- PickFromUnion_2<
4085
- NativeBehaviorEvent,
4086
- 'type',
4087
- 'drag.drop' | 'paste'
4088
- >,
4089
- 'dataTransfer'
3998
+ originEvent: PickFromUnion_2<
3999
+ NativeBehaviorEvent,
4000
+ 'type',
4001
+ 'drag.drop' | 'clipboard.paste'
4090
4002
  >
4091
4003
  })
4092
4004
  | {
4093
4005
  type: 'serialization.success'
4094
4006
  mimeType: MIMEType_2
4095
4007
  data: string
4096
- dataTransfer: DataTransfer
4097
- originEvent: Omit<
4098
- PickFromUnion_2<
4099
- NativeBehaviorEvent,
4100
- 'type',
4101
- 'copy' | 'cut' | 'drag.dragstart'
4102
- >,
4103
- 'dataTransfer'
4008
+ originEvent: PickFromUnion_2<
4009
+ NativeBehaviorEvent,
4010
+ 'type',
4011
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
4104
4012
  >
4105
4013
  }
4106
4014
  | {
4107
4015
  type: 'serialization.failure'
4108
4016
  mimeType: MIMEType_2
4109
4017
  reason: string
4110
- dataTransfer: DataTransfer
4111
- originEvent: Omit<
4112
- PickFromUnion_2<
4113
- NativeBehaviorEvent,
4114
- 'type',
4115
- 'copy' | 'cut' | 'drag.dragstart'
4116
- >,
4117
- 'dataTransfer'
4018
+ originEvent: PickFromUnion_2<
4019
+ NativeBehaviorEvent,
4020
+ 'type',
4021
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
4118
4022
  >
4119
4023
  }
4120
4024
  | PatchEvent
@@ -4394,14 +4298,10 @@ declare const editorMachine: StateMachine<
4394
4298
  mimeType: `${string}/${string}`
4395
4299
  reason: string
4396
4300
  } & {
4397
- dataTransfer: DataTransfer
4398
- originEvent: Omit<
4399
- PickFromUnion_2<
4400
- NativeBehaviorEvent,
4401
- 'type',
4402
- 'drag.drop' | 'paste'
4403
- >,
4404
- 'dataTransfer'
4301
+ originEvent: PickFromUnion_2<
4302
+ NativeBehaviorEvent,
4303
+ 'type',
4304
+ 'drag.drop' | 'clipboard.paste'
4405
4305
  >
4406
4306
  })
4407
4307
  | ({
@@ -4409,42 +4309,30 @@ declare const editorMachine: StateMachine<
4409
4309
  data: Array<PortableTextBlock>
4410
4310
  mimeType: `${string}/${string}`
4411
4311
  } & {
4412
- dataTransfer: DataTransfer
4413
- originEvent: Omit<
4414
- PickFromUnion_2<
4415
- NativeBehaviorEvent,
4416
- 'type',
4417
- 'drag.drop' | 'paste'
4418
- >,
4419
- 'dataTransfer'
4312
+ originEvent: PickFromUnion_2<
4313
+ NativeBehaviorEvent,
4314
+ 'type',
4315
+ 'drag.drop' | 'clipboard.paste'
4420
4316
  >
4421
4317
  })
4422
4318
  | {
4423
4319
  type: 'serialization.success'
4424
4320
  mimeType: MIMEType_2
4425
4321
  data: string
4426
- dataTransfer: DataTransfer
4427
- originEvent: Omit<
4428
- PickFromUnion_2<
4429
- NativeBehaviorEvent,
4430
- 'type',
4431
- 'copy' | 'cut' | 'drag.dragstart'
4432
- >,
4433
- 'dataTransfer'
4322
+ originEvent: PickFromUnion_2<
4323
+ NativeBehaviorEvent,
4324
+ 'type',
4325
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
4434
4326
  >
4435
4327
  }
4436
4328
  | {
4437
4329
  type: 'serialization.failure'
4438
4330
  mimeType: MIMEType_2
4439
4331
  reason: string
4440
- dataTransfer: DataTransfer
4441
- originEvent: Omit<
4442
- PickFromUnion_2<
4443
- NativeBehaviorEvent,
4444
- 'type',
4445
- 'copy' | 'cut' | 'drag.dragstart'
4446
- >,
4447
- 'dataTransfer'
4332
+ originEvent: PickFromUnion_2<
4333
+ NativeBehaviorEvent,
4334
+ 'type',
4335
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
4448
4336
  >
4449
4337
  }
4450
4338
  | InternalPatchEvent
@@ -4786,14 +4674,10 @@ declare const editorMachine: StateMachine<
4786
4674
  mimeType: `${string}/${string}`
4787
4675
  reason: string
4788
4676
  } & {
4789
- dataTransfer: DataTransfer
4790
- originEvent: Omit<
4791
- PickFromUnion_2<
4792
- NativeBehaviorEvent,
4793
- 'type',
4794
- 'drag.drop' | 'paste'
4795
- >,
4796
- 'dataTransfer'
4677
+ originEvent: PickFromUnion_2<
4678
+ NativeBehaviorEvent,
4679
+ 'type',
4680
+ 'drag.drop' | 'clipboard.paste'
4797
4681
  >
4798
4682
  })
4799
4683
  | ({
@@ -4801,42 +4685,30 @@ declare const editorMachine: StateMachine<
4801
4685
  data: Array<PortableTextBlock>
4802
4686
  mimeType: `${string}/${string}`
4803
4687
  } & {
4804
- dataTransfer: DataTransfer
4805
- originEvent: Omit<
4806
- PickFromUnion_2<
4807
- NativeBehaviorEvent,
4808
- 'type',
4809
- 'drag.drop' | 'paste'
4810
- >,
4811
- 'dataTransfer'
4688
+ originEvent: PickFromUnion_2<
4689
+ NativeBehaviorEvent,
4690
+ 'type',
4691
+ 'drag.drop' | 'clipboard.paste'
4812
4692
  >
4813
4693
  })
4814
4694
  | {
4815
4695
  type: 'serialization.success'
4816
4696
  mimeType: MIMEType_2
4817
4697
  data: string
4818
- dataTransfer: DataTransfer
4819
- originEvent: Omit<
4820
- PickFromUnion_2<
4821
- NativeBehaviorEvent,
4822
- 'type',
4823
- 'copy' | 'cut' | 'drag.dragstart'
4824
- >,
4825
- 'dataTransfer'
4698
+ originEvent: PickFromUnion_2<
4699
+ NativeBehaviorEvent,
4700
+ 'type',
4701
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
4826
4702
  >
4827
4703
  }
4828
4704
  | {
4829
4705
  type: 'serialization.failure'
4830
4706
  mimeType: MIMEType_2
4831
4707
  reason: string
4832
- dataTransfer: DataTransfer
4833
- originEvent: Omit<
4834
- PickFromUnion_2<
4835
- NativeBehaviorEvent,
4836
- 'type',
4837
- 'copy' | 'cut' | 'drag.dragstart'
4838
- >,
4839
- 'dataTransfer'
4708
+ originEvent: PickFromUnion_2<
4709
+ NativeBehaviorEvent,
4710
+ 'type',
4711
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
4840
4712
  >
4841
4713
  }
4842
4714
  | PatchEvent
@@ -5115,14 +4987,10 @@ declare const editorMachine: StateMachine<
5115
4987
  mimeType: `${string}/${string}`
5116
4988
  reason: string
5117
4989
  } & {
5118
- dataTransfer: DataTransfer
5119
- originEvent: Omit<
5120
- PickFromUnion_2<
5121
- NativeBehaviorEvent,
5122
- 'type',
5123
- 'drag.drop' | 'paste'
5124
- >,
5125
- 'dataTransfer'
4990
+ originEvent: PickFromUnion_2<
4991
+ NativeBehaviorEvent,
4992
+ 'type',
4993
+ 'drag.drop' | 'clipboard.paste'
5126
4994
  >
5127
4995
  })
5128
4996
  | ({
@@ -5130,42 +4998,30 @@ declare const editorMachine: StateMachine<
5130
4998
  data: Array<PortableTextBlock>
5131
4999
  mimeType: `${string}/${string}`
5132
5000
  } & {
5133
- dataTransfer: DataTransfer
5134
- originEvent: Omit<
5135
- PickFromUnion_2<
5136
- NativeBehaviorEvent,
5137
- 'type',
5138
- 'drag.drop' | 'paste'
5139
- >,
5140
- 'dataTransfer'
5001
+ originEvent: PickFromUnion_2<
5002
+ NativeBehaviorEvent,
5003
+ 'type',
5004
+ 'drag.drop' | 'clipboard.paste'
5141
5005
  >
5142
5006
  })
5143
5007
  | {
5144
5008
  type: 'serialization.success'
5145
5009
  mimeType: MIMEType_2
5146
5010
  data: string
5147
- dataTransfer: DataTransfer
5148
- originEvent: Omit<
5149
- PickFromUnion_2<
5150
- NativeBehaviorEvent,
5151
- 'type',
5152
- 'copy' | 'cut' | 'drag.dragstart'
5153
- >,
5154
- 'dataTransfer'
5011
+ originEvent: PickFromUnion_2<
5012
+ NativeBehaviorEvent,
5013
+ 'type',
5014
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
5155
5015
  >
5156
5016
  }
5157
5017
  | {
5158
5018
  type: 'serialization.failure'
5159
5019
  mimeType: MIMEType_2
5160
5020
  reason: string
5161
- dataTransfer: DataTransfer
5162
- originEvent: Omit<
5163
- PickFromUnion_2<
5164
- NativeBehaviorEvent,
5165
- 'type',
5166
- 'copy' | 'cut' | 'drag.dragstart'
5167
- >,
5168
- 'dataTransfer'
5021
+ originEvent: PickFromUnion_2<
5022
+ NativeBehaviorEvent,
5023
+ 'type',
5024
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
5169
5025
  >
5170
5026
  }
5171
5027
  | InternalPatchEvent
@@ -5507,14 +5363,10 @@ declare const editorMachine: StateMachine<
5507
5363
  mimeType: `${string}/${string}`
5508
5364
  reason: string
5509
5365
  } & {
5510
- dataTransfer: DataTransfer
5511
- originEvent: Omit<
5512
- PickFromUnion_2<
5513
- NativeBehaviorEvent,
5514
- 'type',
5515
- 'drag.drop' | 'paste'
5516
- >,
5517
- 'dataTransfer'
5366
+ originEvent: PickFromUnion_2<
5367
+ NativeBehaviorEvent,
5368
+ 'type',
5369
+ 'drag.drop' | 'clipboard.paste'
5518
5370
  >
5519
5371
  })
5520
5372
  | ({
@@ -5522,42 +5374,30 @@ declare const editorMachine: StateMachine<
5522
5374
  data: Array<PortableTextBlock>
5523
5375
  mimeType: `${string}/${string}`
5524
5376
  } & {
5525
- dataTransfer: DataTransfer
5526
- originEvent: Omit<
5527
- PickFromUnion_2<
5528
- NativeBehaviorEvent,
5529
- 'type',
5530
- 'drag.drop' | 'paste'
5531
- >,
5532
- 'dataTransfer'
5377
+ originEvent: PickFromUnion_2<
5378
+ NativeBehaviorEvent,
5379
+ 'type',
5380
+ 'drag.drop' | 'clipboard.paste'
5533
5381
  >
5534
5382
  })
5535
5383
  | {
5536
5384
  type: 'serialization.success'
5537
5385
  mimeType: MIMEType_2
5538
5386
  data: string
5539
- dataTransfer: DataTransfer
5540
- originEvent: Omit<
5541
- PickFromUnion_2<
5542
- NativeBehaviorEvent,
5543
- 'type',
5544
- 'copy' | 'cut' | 'drag.dragstart'
5545
- >,
5546
- 'dataTransfer'
5387
+ originEvent: PickFromUnion_2<
5388
+ NativeBehaviorEvent,
5389
+ 'type',
5390
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
5547
5391
  >
5548
5392
  }
5549
5393
  | {
5550
5394
  type: 'serialization.failure'
5551
5395
  mimeType: MIMEType_2
5552
5396
  reason: string
5553
- dataTransfer: DataTransfer
5554
- originEvent: Omit<
5555
- PickFromUnion_2<
5556
- NativeBehaviorEvent,
5557
- 'type',
5558
- 'copy' | 'cut' | 'drag.dragstart'
5559
- >,
5560
- 'dataTransfer'
5397
+ originEvent: PickFromUnion_2<
5398
+ NativeBehaviorEvent,
5399
+ 'type',
5400
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
5561
5401
  >
5562
5402
  }
5563
5403
  | PatchEvent
@@ -5837,14 +5677,10 @@ declare const editorMachine: StateMachine<
5837
5677
  mimeType: `${string}/${string}`
5838
5678
  reason: string
5839
5679
  } & {
5840
- dataTransfer: DataTransfer
5841
- originEvent: Omit<
5842
- PickFromUnion_2<
5843
- NativeBehaviorEvent,
5844
- 'type',
5845
- 'drag.drop' | 'paste'
5846
- >,
5847
- 'dataTransfer'
5680
+ originEvent: PickFromUnion_2<
5681
+ NativeBehaviorEvent,
5682
+ 'type',
5683
+ 'drag.drop' | 'clipboard.paste'
5848
5684
  >
5849
5685
  })
5850
5686
  | ({
@@ -5852,42 +5688,30 @@ declare const editorMachine: StateMachine<
5852
5688
  data: Array<PortableTextBlock>
5853
5689
  mimeType: `${string}/${string}`
5854
5690
  } & {
5855
- dataTransfer: DataTransfer
5856
- originEvent: Omit<
5857
- PickFromUnion_2<
5858
- NativeBehaviorEvent,
5859
- 'type',
5860
- 'drag.drop' | 'paste'
5861
- >,
5862
- 'dataTransfer'
5691
+ originEvent: PickFromUnion_2<
5692
+ NativeBehaviorEvent,
5693
+ 'type',
5694
+ 'drag.drop' | 'clipboard.paste'
5863
5695
  >
5864
5696
  })
5865
5697
  | {
5866
5698
  type: 'serialization.success'
5867
5699
  mimeType: MIMEType_2
5868
5700
  data: string
5869
- dataTransfer: DataTransfer
5870
- originEvent: Omit<
5871
- PickFromUnion_2<
5872
- NativeBehaviorEvent,
5873
- 'type',
5874
- 'copy' | 'cut' | 'drag.dragstart'
5875
- >,
5876
- 'dataTransfer'
5701
+ originEvent: PickFromUnion_2<
5702
+ NativeBehaviorEvent,
5703
+ 'type',
5704
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
5877
5705
  >
5878
5706
  }
5879
5707
  | {
5880
5708
  type: 'serialization.failure'
5881
5709
  mimeType: MIMEType_2
5882
5710
  reason: string
5883
- dataTransfer: DataTransfer
5884
- originEvent: Omit<
5885
- PickFromUnion_2<
5886
- NativeBehaviorEvent,
5887
- 'type',
5888
- 'copy' | 'cut' | 'drag.dragstart'
5889
- >,
5890
- 'dataTransfer'
5711
+ originEvent: PickFromUnion_2<
5712
+ NativeBehaviorEvent,
5713
+ 'type',
5714
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
5891
5715
  >
5892
5716
  }
5893
5717
  | InternalPatchEvent
@@ -6251,14 +6075,10 @@ declare const editorMachine: StateMachine<
6251
6075
  mimeType: `${string}/${string}`
6252
6076
  reason: string
6253
6077
  } & {
6254
- dataTransfer: DataTransfer
6255
- originEvent: Omit<
6256
- PickFromUnion_2<
6257
- NativeBehaviorEvent,
6258
- 'type',
6259
- 'drag.drop' | 'paste'
6260
- >,
6261
- 'dataTransfer'
6078
+ originEvent: PickFromUnion_2<
6079
+ NativeBehaviorEvent,
6080
+ 'type',
6081
+ 'drag.drop' | 'clipboard.paste'
6262
6082
  >
6263
6083
  })
6264
6084
  | ({
@@ -6266,42 +6086,30 @@ declare const editorMachine: StateMachine<
6266
6086
  data: Array<PortableTextBlock>
6267
6087
  mimeType: `${string}/${string}`
6268
6088
  } & {
6269
- dataTransfer: DataTransfer
6270
- originEvent: Omit<
6271
- PickFromUnion_2<
6272
- NativeBehaviorEvent,
6273
- 'type',
6274
- 'drag.drop' | 'paste'
6275
- >,
6276
- 'dataTransfer'
6089
+ originEvent: PickFromUnion_2<
6090
+ NativeBehaviorEvent,
6091
+ 'type',
6092
+ 'drag.drop' | 'clipboard.paste'
6277
6093
  >
6278
6094
  })
6279
6095
  | {
6280
6096
  type: 'serialization.success'
6281
6097
  mimeType: MIMEType_2
6282
6098
  data: string
6283
- dataTransfer: DataTransfer
6284
- originEvent: Omit<
6285
- PickFromUnion_2<
6286
- NativeBehaviorEvent,
6287
- 'type',
6288
- 'copy' | 'cut' | 'drag.dragstart'
6289
- >,
6290
- 'dataTransfer'
6099
+ originEvent: PickFromUnion_2<
6100
+ NativeBehaviorEvent,
6101
+ 'type',
6102
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
6291
6103
  >
6292
6104
  }
6293
6105
  | {
6294
6106
  type: 'serialization.failure'
6295
6107
  mimeType: MIMEType_2
6296
6108
  reason: string
6297
- dataTransfer: DataTransfer
6298
- originEvent: Omit<
6299
- PickFromUnion_2<
6300
- NativeBehaviorEvent,
6301
- 'type',
6302
- 'copy' | 'cut' | 'drag.dragstart'
6303
- >,
6304
- 'dataTransfer'
6109
+ originEvent: PickFromUnion_2<
6110
+ NativeBehaviorEvent,
6111
+ 'type',
6112
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
6305
6113
  >
6306
6114
  }
6307
6115
  | InternalPatchEvent
@@ -6643,14 +6451,10 @@ declare const editorMachine: StateMachine<
6643
6451
  mimeType: `${string}/${string}`
6644
6452
  reason: string
6645
6453
  } & {
6646
- dataTransfer: DataTransfer
6647
- originEvent: Omit<
6648
- PickFromUnion_2<
6649
- NativeBehaviorEvent,
6650
- 'type',
6651
- 'drag.drop' | 'paste'
6652
- >,
6653
- 'dataTransfer'
6454
+ originEvent: PickFromUnion_2<
6455
+ NativeBehaviorEvent,
6456
+ 'type',
6457
+ 'drag.drop' | 'clipboard.paste'
6654
6458
  >
6655
6459
  })
6656
6460
  | ({
@@ -6658,42 +6462,30 @@ declare const editorMachine: StateMachine<
6658
6462
  data: Array<PortableTextBlock>
6659
6463
  mimeType: `${string}/${string}`
6660
6464
  } & {
6661
- dataTransfer: DataTransfer
6662
- originEvent: Omit<
6663
- PickFromUnion_2<
6664
- NativeBehaviorEvent,
6665
- 'type',
6666
- 'drag.drop' | 'paste'
6667
- >,
6668
- 'dataTransfer'
6465
+ originEvent: PickFromUnion_2<
6466
+ NativeBehaviorEvent,
6467
+ 'type',
6468
+ 'drag.drop' | 'clipboard.paste'
6669
6469
  >
6670
6470
  })
6671
6471
  | {
6672
6472
  type: 'serialization.success'
6673
6473
  mimeType: MIMEType_2
6674
6474
  data: string
6675
- dataTransfer: DataTransfer
6676
- originEvent: Omit<
6677
- PickFromUnion_2<
6678
- NativeBehaviorEvent,
6679
- 'type',
6680
- 'copy' | 'cut' | 'drag.dragstart'
6681
- >,
6682
- 'dataTransfer'
6475
+ originEvent: PickFromUnion_2<
6476
+ NativeBehaviorEvent,
6477
+ 'type',
6478
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
6683
6479
  >
6684
6480
  }
6685
6481
  | {
6686
6482
  type: 'serialization.failure'
6687
6483
  mimeType: MIMEType_2
6688
6484
  reason: string
6689
- dataTransfer: DataTransfer
6690
- originEvent: Omit<
6691
- PickFromUnion_2<
6692
- NativeBehaviorEvent,
6693
- 'type',
6694
- 'copy' | 'cut' | 'drag.dragstart'
6695
- >,
6696
- 'dataTransfer'
6485
+ originEvent: PickFromUnion_2<
6486
+ NativeBehaviorEvent,
6487
+ 'type',
6488
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
6697
6489
  >
6698
6490
  }
6699
6491
  | PatchEvent
@@ -6973,14 +6765,10 @@ declare const editorMachine: StateMachine<
6973
6765
  mimeType: `${string}/${string}`
6974
6766
  reason: string
6975
6767
  } & {
6976
- dataTransfer: DataTransfer
6977
- originEvent: Omit<
6978
- PickFromUnion_2<
6979
- NativeBehaviorEvent,
6980
- 'type',
6981
- 'drag.drop' | 'paste'
6982
- >,
6983
- 'dataTransfer'
6768
+ originEvent: PickFromUnion_2<
6769
+ NativeBehaviorEvent,
6770
+ 'type',
6771
+ 'drag.drop' | 'clipboard.paste'
6984
6772
  >
6985
6773
  })
6986
6774
  | ({
@@ -6988,42 +6776,30 @@ declare const editorMachine: StateMachine<
6988
6776
  data: Array<PortableTextBlock>
6989
6777
  mimeType: `${string}/${string}`
6990
6778
  } & {
6991
- dataTransfer: DataTransfer
6992
- originEvent: Omit<
6993
- PickFromUnion_2<
6994
- NativeBehaviorEvent,
6995
- 'type',
6996
- 'drag.drop' | 'paste'
6997
- >,
6998
- 'dataTransfer'
6779
+ originEvent: PickFromUnion_2<
6780
+ NativeBehaviorEvent,
6781
+ 'type',
6782
+ 'drag.drop' | 'clipboard.paste'
6999
6783
  >
7000
6784
  })
7001
6785
  | {
7002
6786
  type: 'serialization.success'
7003
6787
  mimeType: MIMEType_2
7004
6788
  data: string
7005
- dataTransfer: DataTransfer
7006
- originEvent: Omit<
7007
- PickFromUnion_2<
7008
- NativeBehaviorEvent,
7009
- 'type',
7010
- 'copy' | 'cut' | 'drag.dragstart'
7011
- >,
7012
- 'dataTransfer'
6789
+ originEvent: PickFromUnion_2<
6790
+ NativeBehaviorEvent,
6791
+ 'type',
6792
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
7013
6793
  >
7014
6794
  }
7015
6795
  | {
7016
6796
  type: 'serialization.failure'
7017
6797
  mimeType: MIMEType_2
7018
6798
  reason: string
7019
- dataTransfer: DataTransfer
7020
- originEvent: Omit<
7021
- PickFromUnion_2<
7022
- NativeBehaviorEvent,
7023
- 'type',
7024
- 'copy' | 'cut' | 'drag.dragstart'
7025
- >,
7026
- 'dataTransfer'
6799
+ originEvent: PickFromUnion_2<
6800
+ NativeBehaviorEvent,
6801
+ 'type',
6802
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
7027
6803
  >
7028
6804
  }
7029
6805
  | InternalPatchEvent
@@ -7365,14 +7141,10 @@ declare const editorMachine: StateMachine<
7365
7141
  mimeType: `${string}/${string}`
7366
7142
  reason: string
7367
7143
  } & {
7368
- dataTransfer: DataTransfer
7369
- originEvent: Omit<
7370
- PickFromUnion_2<
7371
- NativeBehaviorEvent,
7372
- 'type',
7373
- 'drag.drop' | 'paste'
7374
- >,
7375
- 'dataTransfer'
7144
+ originEvent: PickFromUnion_2<
7145
+ NativeBehaviorEvent,
7146
+ 'type',
7147
+ 'drag.drop' | 'clipboard.paste'
7376
7148
  >
7377
7149
  })
7378
7150
  | ({
@@ -7380,42 +7152,30 @@ declare const editorMachine: StateMachine<
7380
7152
  data: Array<PortableTextBlock>
7381
7153
  mimeType: `${string}/${string}`
7382
7154
  } & {
7383
- dataTransfer: DataTransfer
7384
- originEvent: Omit<
7385
- PickFromUnion_2<
7386
- NativeBehaviorEvent,
7387
- 'type',
7388
- 'drag.drop' | 'paste'
7389
- >,
7390
- 'dataTransfer'
7155
+ originEvent: PickFromUnion_2<
7156
+ NativeBehaviorEvent,
7157
+ 'type',
7158
+ 'drag.drop' | 'clipboard.paste'
7391
7159
  >
7392
7160
  })
7393
7161
  | {
7394
7162
  type: 'serialization.success'
7395
7163
  mimeType: MIMEType_2
7396
7164
  data: string
7397
- dataTransfer: DataTransfer
7398
- originEvent: Omit<
7399
- PickFromUnion_2<
7400
- NativeBehaviorEvent,
7401
- 'type',
7402
- 'copy' | 'cut' | 'drag.dragstart'
7403
- >,
7404
- 'dataTransfer'
7165
+ originEvent: PickFromUnion_2<
7166
+ NativeBehaviorEvent,
7167
+ 'type',
7168
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
7405
7169
  >
7406
7170
  }
7407
7171
  | {
7408
7172
  type: 'serialization.failure'
7409
7173
  mimeType: MIMEType_2
7410
7174
  reason: string
7411
- dataTransfer: DataTransfer
7412
- originEvent: Omit<
7413
- PickFromUnion_2<
7414
- NativeBehaviorEvent,
7415
- 'type',
7416
- 'copy' | 'cut' | 'drag.dragstart'
7417
- >,
7418
- 'dataTransfer'
7175
+ originEvent: PickFromUnion_2<
7176
+ NativeBehaviorEvent,
7177
+ 'type',
7178
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
7419
7179
  >
7420
7180
  }
7421
7181
  | PatchEvent
@@ -7693,14 +7453,10 @@ declare const editorMachine: StateMachine<
7693
7453
  mimeType: `${string}/${string}`
7694
7454
  reason: string
7695
7455
  } & {
7696
- dataTransfer: DataTransfer
7697
- originEvent: Omit<
7698
- PickFromUnion_2<
7699
- NativeBehaviorEvent,
7700
- 'type',
7701
- 'drag.drop' | 'paste'
7702
- >,
7703
- 'dataTransfer'
7456
+ originEvent: PickFromUnion_2<
7457
+ NativeBehaviorEvent,
7458
+ 'type',
7459
+ 'drag.drop' | 'clipboard.paste'
7704
7460
  >
7705
7461
  })
7706
7462
  | ({
@@ -7708,42 +7464,30 @@ declare const editorMachine: StateMachine<
7708
7464
  data: Array<PortableTextBlock>
7709
7465
  mimeType: `${string}/${string}`
7710
7466
  } & {
7711
- dataTransfer: DataTransfer
7712
- originEvent: Omit<
7713
- PickFromUnion_2<
7714
- NativeBehaviorEvent,
7715
- 'type',
7716
- 'drag.drop' | 'paste'
7717
- >,
7718
- 'dataTransfer'
7467
+ originEvent: PickFromUnion_2<
7468
+ NativeBehaviorEvent,
7469
+ 'type',
7470
+ 'drag.drop' | 'clipboard.paste'
7719
7471
  >
7720
7472
  })
7721
7473
  | {
7722
7474
  type: 'serialization.success'
7723
7475
  mimeType: MIMEType_2
7724
7476
  data: string
7725
- dataTransfer: DataTransfer
7726
- originEvent: Omit<
7727
- PickFromUnion_2<
7728
- NativeBehaviorEvent,
7729
- 'type',
7730
- 'copy' | 'cut' | 'drag.dragstart'
7731
- >,
7732
- 'dataTransfer'
7477
+ originEvent: PickFromUnion_2<
7478
+ NativeBehaviorEvent,
7479
+ 'type',
7480
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
7733
7481
  >
7734
7482
  }
7735
7483
  | {
7736
7484
  type: 'serialization.failure'
7737
7485
  mimeType: MIMEType_2
7738
7486
  reason: string
7739
- dataTransfer: DataTransfer
7740
- originEvent: Omit<
7741
- PickFromUnion_2<
7742
- NativeBehaviorEvent,
7743
- 'type',
7744
- 'copy' | 'cut' | 'drag.dragstart'
7745
- >,
7746
- 'dataTransfer'
7487
+ originEvent: PickFromUnion_2<
7488
+ NativeBehaviorEvent,
7489
+ 'type',
7490
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
7747
7491
  >
7748
7492
  }
7749
7493
  | InternalPatchEvent
@@ -8085,14 +7829,10 @@ declare const editorMachine: StateMachine<
8085
7829
  mimeType: `${string}/${string}`
8086
7830
  reason: string
8087
7831
  } & {
8088
- dataTransfer: DataTransfer
8089
- originEvent: Omit<
8090
- PickFromUnion_2<
8091
- NativeBehaviorEvent,
8092
- 'type',
8093
- 'drag.drop' | 'paste'
8094
- >,
8095
- 'dataTransfer'
7832
+ originEvent: PickFromUnion_2<
7833
+ NativeBehaviorEvent,
7834
+ 'type',
7835
+ 'drag.drop' | 'clipboard.paste'
8096
7836
  >
8097
7837
  })
8098
7838
  | ({
@@ -8100,42 +7840,30 @@ declare const editorMachine: StateMachine<
8100
7840
  data: Array<PortableTextBlock>
8101
7841
  mimeType: `${string}/${string}`
8102
7842
  } & {
8103
- dataTransfer: DataTransfer
8104
- originEvent: Omit<
8105
- PickFromUnion_2<
8106
- NativeBehaviorEvent,
8107
- 'type',
8108
- 'drag.drop' | 'paste'
8109
- >,
8110
- 'dataTransfer'
7843
+ originEvent: PickFromUnion_2<
7844
+ NativeBehaviorEvent,
7845
+ 'type',
7846
+ 'drag.drop' | 'clipboard.paste'
8111
7847
  >
8112
7848
  })
8113
7849
  | {
8114
7850
  type: 'serialization.success'
8115
7851
  mimeType: MIMEType_2
8116
7852
  data: string
8117
- dataTransfer: DataTransfer
8118
- originEvent: Omit<
8119
- PickFromUnion_2<
8120
- NativeBehaviorEvent,
8121
- 'type',
8122
- 'copy' | 'cut' | 'drag.dragstart'
8123
- >,
8124
- 'dataTransfer'
7853
+ originEvent: PickFromUnion_2<
7854
+ NativeBehaviorEvent,
7855
+ 'type',
7856
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
8125
7857
  >
8126
7858
  }
8127
7859
  | {
8128
7860
  type: 'serialization.failure'
8129
7861
  mimeType: MIMEType_2
8130
7862
  reason: string
8131
- dataTransfer: DataTransfer
8132
- originEvent: Omit<
8133
- PickFromUnion_2<
8134
- NativeBehaviorEvent,
8135
- 'type',
8136
- 'copy' | 'cut' | 'drag.dragstart'
8137
- >,
8138
- 'dataTransfer'
7863
+ originEvent: PickFromUnion_2<
7864
+ NativeBehaviorEvent,
7865
+ 'type',
7866
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
8139
7867
  >
8140
7868
  }
8141
7869
  | PatchEvent
@@ -8414,14 +8142,10 @@ declare const editorMachine: StateMachine<
8414
8142
  mimeType: `${string}/${string}`
8415
8143
  reason: string
8416
8144
  } & {
8417
- dataTransfer: DataTransfer
8418
- originEvent: Omit<
8419
- PickFromUnion_2<
8420
- NativeBehaviorEvent,
8421
- 'type',
8422
- 'drag.drop' | 'paste'
8423
- >,
8424
- 'dataTransfer'
8145
+ originEvent: PickFromUnion_2<
8146
+ NativeBehaviorEvent,
8147
+ 'type',
8148
+ 'drag.drop' | 'clipboard.paste'
8425
8149
  >
8426
8150
  })
8427
8151
  | ({
@@ -8429,42 +8153,30 @@ declare const editorMachine: StateMachine<
8429
8153
  data: Array<PortableTextBlock>
8430
8154
  mimeType: `${string}/${string}`
8431
8155
  } & {
8432
- dataTransfer: DataTransfer
8433
- originEvent: Omit<
8434
- PickFromUnion_2<
8435
- NativeBehaviorEvent,
8436
- 'type',
8437
- 'drag.drop' | 'paste'
8438
- >,
8439
- 'dataTransfer'
8156
+ originEvent: PickFromUnion_2<
8157
+ NativeBehaviorEvent,
8158
+ 'type',
8159
+ 'drag.drop' | 'clipboard.paste'
8440
8160
  >
8441
8161
  })
8442
8162
  | {
8443
8163
  type: 'serialization.success'
8444
8164
  mimeType: MIMEType_2
8445
8165
  data: string
8446
- dataTransfer: DataTransfer
8447
- originEvent: Omit<
8448
- PickFromUnion_2<
8449
- NativeBehaviorEvent,
8450
- 'type',
8451
- 'copy' | 'cut' | 'drag.dragstart'
8452
- >,
8453
- 'dataTransfer'
8166
+ originEvent: PickFromUnion_2<
8167
+ NativeBehaviorEvent,
8168
+ 'type',
8169
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
8454
8170
  >
8455
8171
  }
8456
8172
  | {
8457
8173
  type: 'serialization.failure'
8458
8174
  mimeType: MIMEType_2
8459
8175
  reason: string
8460
- dataTransfer: DataTransfer
8461
- originEvent: Omit<
8462
- PickFromUnion_2<
8463
- NativeBehaviorEvent,
8464
- 'type',
8465
- 'copy' | 'cut' | 'drag.dragstart'
8466
- >,
8467
- 'dataTransfer'
8176
+ originEvent: PickFromUnion_2<
8177
+ NativeBehaviorEvent,
8178
+ 'type',
8179
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
8468
8180
  >
8469
8181
  }
8470
8182
  | InternalPatchEvent
@@ -8806,14 +8518,10 @@ declare const editorMachine: StateMachine<
8806
8518
  mimeType: `${string}/${string}`
8807
8519
  reason: string
8808
8520
  } & {
8809
- dataTransfer: DataTransfer
8810
- originEvent: Omit<
8811
- PickFromUnion_2<
8812
- NativeBehaviorEvent,
8813
- 'type',
8814
- 'drag.drop' | 'paste'
8815
- >,
8816
- 'dataTransfer'
8521
+ originEvent: PickFromUnion_2<
8522
+ NativeBehaviorEvent,
8523
+ 'type',
8524
+ 'drag.drop' | 'clipboard.paste'
8817
8525
  >
8818
8526
  })
8819
8527
  | ({
@@ -8821,42 +8529,30 @@ declare const editorMachine: StateMachine<
8821
8529
  data: Array<PortableTextBlock>
8822
8530
  mimeType: `${string}/${string}`
8823
8531
  } & {
8824
- dataTransfer: DataTransfer
8825
- originEvent: Omit<
8826
- PickFromUnion_2<
8827
- NativeBehaviorEvent,
8828
- 'type',
8829
- 'drag.drop' | 'paste'
8830
- >,
8831
- 'dataTransfer'
8532
+ originEvent: PickFromUnion_2<
8533
+ NativeBehaviorEvent,
8534
+ 'type',
8535
+ 'drag.drop' | 'clipboard.paste'
8832
8536
  >
8833
8537
  })
8834
8538
  | {
8835
8539
  type: 'serialization.success'
8836
8540
  mimeType: MIMEType_2
8837
8541
  data: string
8838
- dataTransfer: DataTransfer
8839
- originEvent: Omit<
8840
- PickFromUnion_2<
8841
- NativeBehaviorEvent,
8842
- 'type',
8843
- 'copy' | 'cut' | 'drag.dragstart'
8844
- >,
8845
- 'dataTransfer'
8542
+ originEvent: PickFromUnion_2<
8543
+ NativeBehaviorEvent,
8544
+ 'type',
8545
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
8846
8546
  >
8847
8547
  }
8848
8548
  | {
8849
8549
  type: 'serialization.failure'
8850
8550
  mimeType: MIMEType_2
8851
8551
  reason: string
8852
- dataTransfer: DataTransfer
8853
- originEvent: Omit<
8854
- PickFromUnion_2<
8855
- NativeBehaviorEvent,
8856
- 'type',
8857
- 'copy' | 'cut' | 'drag.dragstart'
8858
- >,
8859
- 'dataTransfer'
8552
+ originEvent: PickFromUnion_2<
8553
+ NativeBehaviorEvent,
8554
+ 'type',
8555
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
8860
8556
  >
8861
8557
  }
8862
8558
  | PatchEvent
@@ -9138,14 +8834,10 @@ declare const editorMachine: StateMachine<
9138
8834
  mimeType: `${string}/${string}`
9139
8835
  reason: string
9140
8836
  } & {
9141
- dataTransfer: DataTransfer
9142
- originEvent: Omit<
9143
- PickFromUnion_2<
9144
- NativeBehaviorEvent,
9145
- 'type',
9146
- 'drag.drop' | 'paste'
9147
- >,
9148
- 'dataTransfer'
8837
+ originEvent: PickFromUnion_2<
8838
+ NativeBehaviorEvent,
8839
+ 'type',
8840
+ 'drag.drop' | 'clipboard.paste'
9149
8841
  >
9150
8842
  })
9151
8843
  | ({
@@ -9153,42 +8845,30 @@ declare const editorMachine: StateMachine<
9153
8845
  data: Array<PortableTextBlock>
9154
8846
  mimeType: `${string}/${string}`
9155
8847
  } & {
9156
- dataTransfer: DataTransfer
9157
- originEvent: Omit<
9158
- PickFromUnion_2<
9159
- NativeBehaviorEvent,
9160
- 'type',
9161
- 'drag.drop' | 'paste'
9162
- >,
9163
- 'dataTransfer'
8848
+ originEvent: PickFromUnion_2<
8849
+ NativeBehaviorEvent,
8850
+ 'type',
8851
+ 'drag.drop' | 'clipboard.paste'
9164
8852
  >
9165
8853
  })
9166
8854
  | {
9167
8855
  type: 'serialization.success'
9168
8856
  mimeType: MIMEType_2
9169
- data: string
9170
- dataTransfer: DataTransfer
9171
- originEvent: Omit<
9172
- PickFromUnion_2<
9173
- NativeBehaviorEvent,
9174
- 'type',
9175
- 'copy' | 'cut' | 'drag.dragstart'
9176
- >,
9177
- 'dataTransfer'
8857
+ data: string
8858
+ originEvent: PickFromUnion_2<
8859
+ NativeBehaviorEvent,
8860
+ 'type',
8861
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
9178
8862
  >
9179
8863
  }
9180
8864
  | {
9181
8865
  type: 'serialization.failure'
9182
8866
  mimeType: MIMEType_2
9183
8867
  reason: string
9184
- dataTransfer: DataTransfer
9185
- originEvent: Omit<
9186
- PickFromUnion_2<
9187
- NativeBehaviorEvent,
9188
- 'type',
9189
- 'copy' | 'cut' | 'drag.dragstart'
9190
- >,
9191
- 'dataTransfer'
8868
+ originEvent: PickFromUnion_2<
8869
+ NativeBehaviorEvent,
8870
+ 'type',
8871
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
9192
8872
  >
9193
8873
  }
9194
8874
  | InternalPatchEvent
@@ -9530,14 +9210,10 @@ declare const editorMachine: StateMachine<
9530
9210
  mimeType: `${string}/${string}`
9531
9211
  reason: string
9532
9212
  } & {
9533
- dataTransfer: DataTransfer
9534
- originEvent: Omit<
9535
- PickFromUnion_2<
9536
- NativeBehaviorEvent,
9537
- 'type',
9538
- 'drag.drop' | 'paste'
9539
- >,
9540
- 'dataTransfer'
9213
+ originEvent: PickFromUnion_2<
9214
+ NativeBehaviorEvent,
9215
+ 'type',
9216
+ 'drag.drop' | 'clipboard.paste'
9541
9217
  >
9542
9218
  })
9543
9219
  | ({
@@ -9545,42 +9221,30 @@ declare const editorMachine: StateMachine<
9545
9221
  data: Array<PortableTextBlock>
9546
9222
  mimeType: `${string}/${string}`
9547
9223
  } & {
9548
- dataTransfer: DataTransfer
9549
- originEvent: Omit<
9550
- PickFromUnion_2<
9551
- NativeBehaviorEvent,
9552
- 'type',
9553
- 'drag.drop' | 'paste'
9554
- >,
9555
- 'dataTransfer'
9224
+ originEvent: PickFromUnion_2<
9225
+ NativeBehaviorEvent,
9226
+ 'type',
9227
+ 'drag.drop' | 'clipboard.paste'
9556
9228
  >
9557
9229
  })
9558
9230
  | {
9559
9231
  type: 'serialization.success'
9560
9232
  mimeType: MIMEType_2
9561
9233
  data: string
9562
- dataTransfer: DataTransfer
9563
- originEvent: Omit<
9564
- PickFromUnion_2<
9565
- NativeBehaviorEvent,
9566
- 'type',
9567
- 'copy' | 'cut' | 'drag.dragstart'
9568
- >,
9569
- 'dataTransfer'
9234
+ originEvent: PickFromUnion_2<
9235
+ NativeBehaviorEvent,
9236
+ 'type',
9237
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
9570
9238
  >
9571
9239
  }
9572
9240
  | {
9573
9241
  type: 'serialization.failure'
9574
9242
  mimeType: MIMEType_2
9575
9243
  reason: string
9576
- dataTransfer: DataTransfer
9577
- originEvent: Omit<
9578
- PickFromUnion_2<
9579
- NativeBehaviorEvent,
9580
- 'type',
9581
- 'copy' | 'cut' | 'drag.dragstart'
9582
- >,
9583
- 'dataTransfer'
9244
+ originEvent: PickFromUnion_2<
9245
+ NativeBehaviorEvent,
9246
+ 'type',
9247
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
9584
9248
  >
9585
9249
  }
9586
9250
  | PatchEvent
@@ -9862,14 +9526,10 @@ declare const editorMachine: StateMachine<
9862
9526
  mimeType: `${string}/${string}`
9863
9527
  reason: string
9864
9528
  } & {
9865
- dataTransfer: DataTransfer
9866
- originEvent: Omit<
9867
- PickFromUnion_2<
9868
- NativeBehaviorEvent,
9869
- 'type',
9870
- 'drag.drop' | 'paste'
9871
- >,
9872
- 'dataTransfer'
9529
+ originEvent: PickFromUnion_2<
9530
+ NativeBehaviorEvent,
9531
+ 'type',
9532
+ 'drag.drop' | 'clipboard.paste'
9873
9533
  >
9874
9534
  })
9875
9535
  | ({
@@ -9877,42 +9537,30 @@ declare const editorMachine: StateMachine<
9877
9537
  data: Array<PortableTextBlock>
9878
9538
  mimeType: `${string}/${string}`
9879
9539
  } & {
9880
- dataTransfer: DataTransfer
9881
- originEvent: Omit<
9882
- PickFromUnion_2<
9883
- NativeBehaviorEvent,
9884
- 'type',
9885
- 'drag.drop' | 'paste'
9886
- >,
9887
- 'dataTransfer'
9540
+ originEvent: PickFromUnion_2<
9541
+ NativeBehaviorEvent,
9542
+ 'type',
9543
+ 'drag.drop' | 'clipboard.paste'
9888
9544
  >
9889
9545
  })
9890
9546
  | {
9891
9547
  type: 'serialization.success'
9892
9548
  mimeType: MIMEType_2
9893
9549
  data: string
9894
- dataTransfer: DataTransfer
9895
- originEvent: Omit<
9896
- PickFromUnion_2<
9897
- NativeBehaviorEvent,
9898
- 'type',
9899
- 'copy' | 'cut' | 'drag.dragstart'
9900
- >,
9901
- 'dataTransfer'
9550
+ originEvent: PickFromUnion_2<
9551
+ NativeBehaviorEvent,
9552
+ 'type',
9553
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
9902
9554
  >
9903
9555
  }
9904
9556
  | {
9905
9557
  type: 'serialization.failure'
9906
9558
  mimeType: MIMEType_2
9907
9559
  reason: string
9908
- dataTransfer: DataTransfer
9909
- originEvent: Omit<
9910
- PickFromUnion_2<
9911
- NativeBehaviorEvent,
9912
- 'type',
9913
- 'copy' | 'cut' | 'drag.dragstart'
9914
- >,
9915
- 'dataTransfer'
9560
+ originEvent: PickFromUnion_2<
9561
+ NativeBehaviorEvent,
9562
+ 'type',
9563
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
9916
9564
  >
9917
9565
  }
9918
9566
  | InternalPatchEvent
@@ -10281,14 +9929,10 @@ declare const editorMachine: StateMachine<
10281
9929
  mimeType: `${string}/${string}`
10282
9930
  reason: string
10283
9931
  } & {
10284
- dataTransfer: DataTransfer
10285
- originEvent: Omit<
10286
- PickFromUnion_2<
10287
- NativeBehaviorEvent,
10288
- 'type',
10289
- 'drag.drop' | 'paste'
10290
- >,
10291
- 'dataTransfer'
9932
+ originEvent: PickFromUnion_2<
9933
+ NativeBehaviorEvent,
9934
+ 'type',
9935
+ 'drag.drop' | 'clipboard.paste'
10292
9936
  >
10293
9937
  })
10294
9938
  | ({
@@ -10296,42 +9940,30 @@ declare const editorMachine: StateMachine<
10296
9940
  data: Array<PortableTextBlock>
10297
9941
  mimeType: `${string}/${string}`
10298
9942
  } & {
10299
- dataTransfer: DataTransfer
10300
- originEvent: Omit<
10301
- PickFromUnion_2<
10302
- NativeBehaviorEvent,
10303
- 'type',
10304
- 'drag.drop' | 'paste'
10305
- >,
10306
- 'dataTransfer'
9943
+ originEvent: PickFromUnion_2<
9944
+ NativeBehaviorEvent,
9945
+ 'type',
9946
+ 'drag.drop' | 'clipboard.paste'
10307
9947
  >
10308
9948
  })
10309
9949
  | {
10310
9950
  type: 'serialization.success'
10311
9951
  mimeType: MIMEType_2
10312
9952
  data: string
10313
- dataTransfer: DataTransfer
10314
- originEvent: Omit<
10315
- PickFromUnion_2<
10316
- NativeBehaviorEvent,
10317
- 'type',
10318
- 'copy' | 'cut' | 'drag.dragstart'
10319
- >,
10320
- 'dataTransfer'
9953
+ originEvent: PickFromUnion_2<
9954
+ NativeBehaviorEvent,
9955
+ 'type',
9956
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
10321
9957
  >
10322
9958
  }
10323
9959
  | {
10324
9960
  type: 'serialization.failure'
10325
9961
  mimeType: MIMEType_2
10326
9962
  reason: string
10327
- dataTransfer: DataTransfer
10328
- originEvent: Omit<
10329
- PickFromUnion_2<
10330
- NativeBehaviorEvent,
10331
- 'type',
10332
- 'copy' | 'cut' | 'drag.dragstart'
10333
- >,
10334
- 'dataTransfer'
9963
+ originEvent: PickFromUnion_2<
9964
+ NativeBehaviorEvent,
9965
+ 'type',
9966
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
10335
9967
  >
10336
9968
  }
10337
9969
  | InternalPatchEvent
@@ -10697,14 +10329,10 @@ declare const editorMachine: StateMachine<
10697
10329
  mimeType: `${string}/${string}`
10698
10330
  reason: string
10699
10331
  } & {
10700
- dataTransfer: DataTransfer
10701
- originEvent: Omit<
10702
- PickFromUnion_2<
10703
- NativeBehaviorEvent,
10704
- 'type',
10705
- 'drag.drop' | 'paste'
10706
- >,
10707
- 'dataTransfer'
10332
+ originEvent: PickFromUnion_2<
10333
+ NativeBehaviorEvent,
10334
+ 'type',
10335
+ 'drag.drop' | 'clipboard.paste'
10708
10336
  >
10709
10337
  })
10710
10338
  | ({
@@ -10712,42 +10340,30 @@ declare const editorMachine: StateMachine<
10712
10340
  data: Array<PortableTextBlock>
10713
10341
  mimeType: `${string}/${string}`
10714
10342
  } & {
10715
- dataTransfer: DataTransfer
10716
- originEvent: Omit<
10717
- PickFromUnion_2<
10718
- NativeBehaviorEvent,
10719
- 'type',
10720
- 'drag.drop' | 'paste'
10721
- >,
10722
- 'dataTransfer'
10343
+ originEvent: PickFromUnion_2<
10344
+ NativeBehaviorEvent,
10345
+ 'type',
10346
+ 'drag.drop' | 'clipboard.paste'
10723
10347
  >
10724
10348
  })
10725
10349
  | {
10726
10350
  type: 'serialization.success'
10727
10351
  mimeType: MIMEType_2
10728
10352
  data: string
10729
- dataTransfer: DataTransfer
10730
- originEvent: Omit<
10731
- PickFromUnion_2<
10732
- NativeBehaviorEvent,
10733
- 'type',
10734
- 'copy' | 'cut' | 'drag.dragstart'
10735
- >,
10736
- 'dataTransfer'
10353
+ originEvent: PickFromUnion_2<
10354
+ NativeBehaviorEvent,
10355
+ 'type',
10356
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
10737
10357
  >
10738
10358
  }
10739
10359
  | {
10740
10360
  type: 'serialization.failure'
10741
10361
  mimeType: MIMEType_2
10742
10362
  reason: string
10743
- dataTransfer: DataTransfer
10744
- originEvent: Omit<
10745
- PickFromUnion_2<
10746
- NativeBehaviorEvent,
10747
- 'type',
10748
- 'copy' | 'cut' | 'drag.dragstart'
10749
- >,
10750
- 'dataTransfer'
10363
+ originEvent: PickFromUnion_2<
10364
+ NativeBehaviorEvent,
10365
+ 'type',
10366
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
10751
10367
  >
10752
10368
  }
10753
10369
  | InternalPatchEvent
@@ -11282,14 +10898,10 @@ declare const editorMachine: StateMachine<
11282
10898
  mimeType: `${string}/${string}`
11283
10899
  reason: string
11284
10900
  } & {
11285
- dataTransfer: DataTransfer
11286
- originEvent: Omit<
11287
- PickFromUnion_2<
11288
- NativeBehaviorEvent,
11289
- 'type',
11290
- 'drag.drop' | 'paste'
11291
- >,
11292
- 'dataTransfer'
10901
+ originEvent: PickFromUnion_2<
10902
+ NativeBehaviorEvent,
10903
+ 'type',
10904
+ 'drag.drop' | 'clipboard.paste'
11293
10905
  >
11294
10906
  })
11295
10907
  | ({
@@ -11297,42 +10909,30 @@ declare const editorMachine: StateMachine<
11297
10909
  data: Array<PortableTextBlock>
11298
10910
  mimeType: `${string}/${string}`
11299
10911
  } & {
11300
- dataTransfer: DataTransfer
11301
- originEvent: Omit<
11302
- PickFromUnion_2<
11303
- NativeBehaviorEvent,
11304
- 'type',
11305
- 'drag.drop' | 'paste'
11306
- >,
11307
- 'dataTransfer'
10912
+ originEvent: PickFromUnion_2<
10913
+ NativeBehaviorEvent,
10914
+ 'type',
10915
+ 'drag.drop' | 'clipboard.paste'
11308
10916
  >
11309
10917
  })
11310
10918
  | {
11311
10919
  type: 'serialization.success'
11312
10920
  mimeType: MIMEType_2
11313
10921
  data: string
11314
- dataTransfer: DataTransfer
11315
- originEvent: Omit<
11316
- PickFromUnion_2<
11317
- NativeBehaviorEvent,
11318
- 'type',
11319
- 'copy' | 'cut' | 'drag.dragstart'
11320
- >,
11321
- 'dataTransfer'
10922
+ originEvent: PickFromUnion_2<
10923
+ NativeBehaviorEvent,
10924
+ 'type',
10925
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
11322
10926
  >
11323
10927
  }
11324
10928
  | {
11325
10929
  type: 'serialization.failure'
11326
10930
  mimeType: MIMEType_2
11327
10931
  reason: string
11328
- dataTransfer: DataTransfer
11329
- originEvent: Omit<
11330
- PickFromUnion_2<
11331
- NativeBehaviorEvent,
11332
- 'type',
11333
- 'copy' | 'cut' | 'drag.dragstart'
11334
- >,
11335
- 'dataTransfer'
10932
+ originEvent: PickFromUnion_2<
10933
+ NativeBehaviorEvent,
10934
+ 'type',
10935
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
11336
10936
  >
11337
10937
  }
11338
10938
  | InternalPatchEvent
@@ -11674,14 +11274,10 @@ declare const editorMachine: StateMachine<
11674
11274
  mimeType: `${string}/${string}`
11675
11275
  reason: string
11676
11276
  } & {
11677
- dataTransfer: DataTransfer
11678
- originEvent: Omit<
11679
- PickFromUnion_2<
11680
- NativeBehaviorEvent,
11681
- 'type',
11682
- 'drag.drop' | 'paste'
11683
- >,
11684
- 'dataTransfer'
11277
+ originEvent: PickFromUnion_2<
11278
+ NativeBehaviorEvent,
11279
+ 'type',
11280
+ 'drag.drop' | 'clipboard.paste'
11685
11281
  >
11686
11282
  })
11687
11283
  | ({
@@ -11689,42 +11285,30 @@ declare const editorMachine: StateMachine<
11689
11285
  data: Array<PortableTextBlock>
11690
11286
  mimeType: `${string}/${string}`
11691
11287
  } & {
11692
- dataTransfer: DataTransfer
11693
- originEvent: Omit<
11694
- PickFromUnion_2<
11695
- NativeBehaviorEvent,
11696
- 'type',
11697
- 'drag.drop' | 'paste'
11698
- >,
11699
- 'dataTransfer'
11288
+ originEvent: PickFromUnion_2<
11289
+ NativeBehaviorEvent,
11290
+ 'type',
11291
+ 'drag.drop' | 'clipboard.paste'
11700
11292
  >
11701
11293
  })
11702
11294
  | {
11703
11295
  type: 'serialization.success'
11704
11296
  mimeType: MIMEType_2
11705
11297
  data: string
11706
- dataTransfer: DataTransfer
11707
- originEvent: Omit<
11708
- PickFromUnion_2<
11709
- NativeBehaviorEvent,
11710
- 'type',
11711
- 'copy' | 'cut' | 'drag.dragstart'
11712
- >,
11713
- 'dataTransfer'
11298
+ originEvent: PickFromUnion_2<
11299
+ NativeBehaviorEvent,
11300
+ 'type',
11301
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
11714
11302
  >
11715
11303
  }
11716
11304
  | {
11717
11305
  type: 'serialization.failure'
11718
11306
  mimeType: MIMEType_2
11719
11307
  reason: string
11720
- dataTransfer: DataTransfer
11721
- originEvent: Omit<
11722
- PickFromUnion_2<
11723
- NativeBehaviorEvent,
11724
- 'type',
11725
- 'copy' | 'cut' | 'drag.dragstart'
11726
- >,
11727
- 'dataTransfer'
11308
+ originEvent: PickFromUnion_2<
11309
+ NativeBehaviorEvent,
11310
+ 'type',
11311
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
11728
11312
  >
11729
11313
  }
11730
11314
  | PatchEvent
@@ -12009,14 +11593,10 @@ declare const editorMachine: StateMachine<
12009
11593
  mimeType: `${string}/${string}`
12010
11594
  reason: string
12011
11595
  } & {
12012
- dataTransfer: DataTransfer
12013
- originEvent: Omit<
12014
- PickFromUnion_2<
12015
- NativeBehaviorEvent,
12016
- 'type',
12017
- 'drag.drop' | 'paste'
12018
- >,
12019
- 'dataTransfer'
11596
+ originEvent: PickFromUnion_2<
11597
+ NativeBehaviorEvent,
11598
+ 'type',
11599
+ 'drag.drop' | 'clipboard.paste'
12020
11600
  >
12021
11601
  })
12022
11602
  | ({
@@ -12024,42 +11604,30 @@ declare const editorMachine: StateMachine<
12024
11604
  data: Array<PortableTextBlock>
12025
11605
  mimeType: `${string}/${string}`
12026
11606
  } & {
12027
- dataTransfer: DataTransfer
12028
- originEvent: Omit<
12029
- PickFromUnion_2<
12030
- NativeBehaviorEvent,
12031
- 'type',
12032
- 'drag.drop' | 'paste'
12033
- >,
12034
- 'dataTransfer'
11607
+ originEvent: PickFromUnion_2<
11608
+ NativeBehaviorEvent,
11609
+ 'type',
11610
+ 'drag.drop' | 'clipboard.paste'
12035
11611
  >
12036
11612
  })
12037
11613
  | {
12038
11614
  type: 'serialization.success'
12039
11615
  mimeType: MIMEType_2
12040
11616
  data: string
12041
- dataTransfer: DataTransfer
12042
- originEvent: Omit<
12043
- PickFromUnion_2<
12044
- NativeBehaviorEvent,
12045
- 'type',
12046
- 'copy' | 'cut' | 'drag.dragstart'
12047
- >,
12048
- 'dataTransfer'
11617
+ originEvent: PickFromUnion_2<
11618
+ NativeBehaviorEvent,
11619
+ 'type',
11620
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
12049
11621
  >
12050
11622
  }
12051
11623
  | {
12052
11624
  type: 'serialization.failure'
12053
11625
  mimeType: MIMEType_2
12054
11626
  reason: string
12055
- dataTransfer: DataTransfer
12056
- originEvent: Omit<
12057
- PickFromUnion_2<
12058
- NativeBehaviorEvent,
12059
- 'type',
12060
- 'copy' | 'cut' | 'drag.dragstart'
12061
- >,
12062
- 'dataTransfer'
11627
+ originEvent: PickFromUnion_2<
11628
+ NativeBehaviorEvent,
11629
+ 'type',
11630
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
12063
11631
  >
12064
11632
  }
12065
11633
  | InternalPatchEvent
@@ -12401,14 +11969,10 @@ declare const editorMachine: StateMachine<
12401
11969
  mimeType: `${string}/${string}`
12402
11970
  reason: string
12403
11971
  } & {
12404
- dataTransfer: DataTransfer
12405
- originEvent: Omit<
12406
- PickFromUnion_2<
12407
- NativeBehaviorEvent,
12408
- 'type',
12409
- 'drag.drop' | 'paste'
12410
- >,
12411
- 'dataTransfer'
11972
+ originEvent: PickFromUnion_2<
11973
+ NativeBehaviorEvent,
11974
+ 'type',
11975
+ 'drag.drop' | 'clipboard.paste'
12412
11976
  >
12413
11977
  })
12414
11978
  | ({
@@ -12416,42 +11980,30 @@ declare const editorMachine: StateMachine<
12416
11980
  data: Array<PortableTextBlock>
12417
11981
  mimeType: `${string}/${string}`
12418
11982
  } & {
12419
- dataTransfer: DataTransfer
12420
- originEvent: Omit<
12421
- PickFromUnion_2<
12422
- NativeBehaviorEvent,
12423
- 'type',
12424
- 'drag.drop' | 'paste'
12425
- >,
12426
- 'dataTransfer'
11983
+ originEvent: PickFromUnion_2<
11984
+ NativeBehaviorEvent,
11985
+ 'type',
11986
+ 'drag.drop' | 'clipboard.paste'
12427
11987
  >
12428
11988
  })
12429
11989
  | {
12430
11990
  type: 'serialization.success'
12431
11991
  mimeType: MIMEType_2
12432
11992
  data: string
12433
- dataTransfer: DataTransfer
12434
- originEvent: Omit<
12435
- PickFromUnion_2<
12436
- NativeBehaviorEvent,
12437
- 'type',
12438
- 'copy' | 'cut' | 'drag.dragstart'
12439
- >,
12440
- 'dataTransfer'
11993
+ originEvent: PickFromUnion_2<
11994
+ NativeBehaviorEvent,
11995
+ 'type',
11996
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
12441
11997
  >
12442
11998
  }
12443
11999
  | {
12444
12000
  type: 'serialization.failure'
12445
12001
  mimeType: MIMEType_2
12446
12002
  reason: string
12447
- dataTransfer: DataTransfer
12448
- originEvent: Omit<
12449
- PickFromUnion_2<
12450
- NativeBehaviorEvent,
12451
- 'type',
12452
- 'copy' | 'cut' | 'drag.dragstart'
12453
- >,
12454
- 'dataTransfer'
12003
+ originEvent: PickFromUnion_2<
12004
+ NativeBehaviorEvent,
12005
+ 'type',
12006
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
12455
12007
  >
12456
12008
  }
12457
12009
  | PatchEvent
@@ -12729,14 +12281,10 @@ declare const editorMachine: StateMachine<
12729
12281
  mimeType: `${string}/${string}`
12730
12282
  reason: string
12731
12283
  } & {
12732
- dataTransfer: DataTransfer
12733
- originEvent: Omit<
12734
- PickFromUnion_2<
12735
- NativeBehaviorEvent,
12736
- 'type',
12737
- 'drag.drop' | 'paste'
12738
- >,
12739
- 'dataTransfer'
12284
+ originEvent: PickFromUnion_2<
12285
+ NativeBehaviorEvent,
12286
+ 'type',
12287
+ 'drag.drop' | 'clipboard.paste'
12740
12288
  >
12741
12289
  })
12742
12290
  | ({
@@ -12744,42 +12292,30 @@ declare const editorMachine: StateMachine<
12744
12292
  data: Array<PortableTextBlock>
12745
12293
  mimeType: `${string}/${string}`
12746
12294
  } & {
12747
- dataTransfer: DataTransfer
12748
- originEvent: Omit<
12749
- PickFromUnion_2<
12750
- NativeBehaviorEvent,
12751
- 'type',
12752
- 'drag.drop' | 'paste'
12753
- >,
12754
- 'dataTransfer'
12295
+ originEvent: PickFromUnion_2<
12296
+ NativeBehaviorEvent,
12297
+ 'type',
12298
+ 'drag.drop' | 'clipboard.paste'
12755
12299
  >
12756
12300
  })
12757
12301
  | {
12758
12302
  type: 'serialization.success'
12759
12303
  mimeType: MIMEType_2
12760
12304
  data: string
12761
- dataTransfer: DataTransfer
12762
- originEvent: Omit<
12763
- PickFromUnion_2<
12764
- NativeBehaviorEvent,
12765
- 'type',
12766
- 'copy' | 'cut' | 'drag.dragstart'
12767
- >,
12768
- 'dataTransfer'
12305
+ originEvent: PickFromUnion_2<
12306
+ NativeBehaviorEvent,
12307
+ 'type',
12308
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
12769
12309
  >
12770
12310
  }
12771
12311
  | {
12772
12312
  type: 'serialization.failure'
12773
12313
  mimeType: MIMEType_2
12774
12314
  reason: string
12775
- dataTransfer: DataTransfer
12776
- originEvent: Omit<
12777
- PickFromUnion_2<
12778
- NativeBehaviorEvent,
12779
- 'type',
12780
- 'copy' | 'cut' | 'drag.dragstart'
12781
- >,
12782
- 'dataTransfer'
12315
+ originEvent: PickFromUnion_2<
12316
+ NativeBehaviorEvent,
12317
+ 'type',
12318
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
12783
12319
  >
12784
12320
  }
12785
12321
  | InternalPatchEvent
@@ -13121,14 +12657,10 @@ declare const editorMachine: StateMachine<
13121
12657
  mimeType: `${string}/${string}`
13122
12658
  reason: string
13123
12659
  } & {
13124
- dataTransfer: DataTransfer
13125
- originEvent: Omit<
13126
- PickFromUnion_2<
13127
- NativeBehaviorEvent,
13128
- 'type',
13129
- 'drag.drop' | 'paste'
13130
- >,
13131
- 'dataTransfer'
12660
+ originEvent: PickFromUnion_2<
12661
+ NativeBehaviorEvent,
12662
+ 'type',
12663
+ 'drag.drop' | 'clipboard.paste'
13132
12664
  >
13133
12665
  })
13134
12666
  | ({
@@ -13136,42 +12668,30 @@ declare const editorMachine: StateMachine<
13136
12668
  data: Array<PortableTextBlock>
13137
12669
  mimeType: `${string}/${string}`
13138
12670
  } & {
13139
- dataTransfer: DataTransfer
13140
- originEvent: Omit<
13141
- PickFromUnion_2<
13142
- NativeBehaviorEvent,
13143
- 'type',
13144
- 'drag.drop' | 'paste'
13145
- >,
13146
- 'dataTransfer'
12671
+ originEvent: PickFromUnion_2<
12672
+ NativeBehaviorEvent,
12673
+ 'type',
12674
+ 'drag.drop' | 'clipboard.paste'
13147
12675
  >
13148
12676
  })
13149
12677
  | {
13150
12678
  type: 'serialization.success'
13151
12679
  mimeType: MIMEType_2
13152
12680
  data: string
13153
- dataTransfer: DataTransfer
13154
- originEvent: Omit<
13155
- PickFromUnion_2<
13156
- NativeBehaviorEvent,
13157
- 'type',
13158
- 'copy' | 'cut' | 'drag.dragstart'
13159
- >,
13160
- 'dataTransfer'
12681
+ originEvent: PickFromUnion_2<
12682
+ NativeBehaviorEvent,
12683
+ 'type',
12684
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
13161
12685
  >
13162
12686
  }
13163
12687
  | {
13164
12688
  type: 'serialization.failure'
13165
12689
  mimeType: MIMEType_2
13166
12690
  reason: string
13167
- dataTransfer: DataTransfer
13168
- originEvent: Omit<
13169
- PickFromUnion_2<
13170
- NativeBehaviorEvent,
13171
- 'type',
13172
- 'copy' | 'cut' | 'drag.dragstart'
13173
- >,
13174
- 'dataTransfer'
12691
+ originEvent: PickFromUnion_2<
12692
+ NativeBehaviorEvent,
12693
+ 'type',
12694
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
13175
12695
  >
13176
12696
  }
13177
12697
  | PatchEvent
@@ -13449,14 +12969,10 @@ declare const editorMachine: StateMachine<
13449
12969
  mimeType: `${string}/${string}`
13450
12970
  reason: string
13451
12971
  } & {
13452
- dataTransfer: DataTransfer
13453
- originEvent: Omit<
13454
- PickFromUnion_2<
13455
- NativeBehaviorEvent,
13456
- 'type',
13457
- 'drag.drop' | 'paste'
13458
- >,
13459
- 'dataTransfer'
12972
+ originEvent: PickFromUnion_2<
12973
+ NativeBehaviorEvent,
12974
+ 'type',
12975
+ 'drag.drop' | 'clipboard.paste'
13460
12976
  >
13461
12977
  })
13462
12978
  | ({
@@ -13464,42 +12980,30 @@ declare const editorMachine: StateMachine<
13464
12980
  data: Array<PortableTextBlock>
13465
12981
  mimeType: `${string}/${string}`
13466
12982
  } & {
13467
- dataTransfer: DataTransfer
13468
- originEvent: Omit<
13469
- PickFromUnion_2<
13470
- NativeBehaviorEvent,
13471
- 'type',
13472
- 'drag.drop' | 'paste'
13473
- >,
13474
- 'dataTransfer'
12983
+ originEvent: PickFromUnion_2<
12984
+ NativeBehaviorEvent,
12985
+ 'type',
12986
+ 'drag.drop' | 'clipboard.paste'
13475
12987
  >
13476
12988
  })
13477
12989
  | {
13478
12990
  type: 'serialization.success'
13479
12991
  mimeType: MIMEType_2
13480
12992
  data: string
13481
- dataTransfer: DataTransfer
13482
- originEvent: Omit<
13483
- PickFromUnion_2<
13484
- NativeBehaviorEvent,
13485
- 'type',
13486
- 'copy' | 'cut' | 'drag.dragstart'
13487
- >,
13488
- 'dataTransfer'
12993
+ originEvent: PickFromUnion_2<
12994
+ NativeBehaviorEvent,
12995
+ 'type',
12996
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
13489
12997
  >
13490
12998
  }
13491
12999
  | {
13492
13000
  type: 'serialization.failure'
13493
13001
  mimeType: MIMEType_2
13494
13002
  reason: string
13495
- dataTransfer: DataTransfer
13496
- originEvent: Omit<
13497
- PickFromUnion_2<
13498
- NativeBehaviorEvent,
13499
- 'type',
13500
- 'copy' | 'cut' | 'drag.dragstart'
13501
- >,
13502
- 'dataTransfer'
13003
+ originEvent: PickFromUnion_2<
13004
+ NativeBehaviorEvent,
13005
+ 'type',
13006
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
13503
13007
  >
13504
13008
  }
13505
13009
  | InternalPatchEvent
@@ -13841,14 +13345,10 @@ declare const editorMachine: StateMachine<
13841
13345
  mimeType: `${string}/${string}`
13842
13346
  reason: string
13843
13347
  } & {
13844
- dataTransfer: DataTransfer
13845
- originEvent: Omit<
13846
- PickFromUnion_2<
13847
- NativeBehaviorEvent,
13848
- 'type',
13849
- 'drag.drop' | 'paste'
13850
- >,
13851
- 'dataTransfer'
13348
+ originEvent: PickFromUnion_2<
13349
+ NativeBehaviorEvent,
13350
+ 'type',
13351
+ 'drag.drop' | 'clipboard.paste'
13852
13352
  >
13853
13353
  })
13854
13354
  | ({
@@ -13856,42 +13356,30 @@ declare const editorMachine: StateMachine<
13856
13356
  data: Array<PortableTextBlock>
13857
13357
  mimeType: `${string}/${string}`
13858
13358
  } & {
13859
- dataTransfer: DataTransfer
13860
- originEvent: Omit<
13861
- PickFromUnion_2<
13862
- NativeBehaviorEvent,
13863
- 'type',
13864
- 'drag.drop' | 'paste'
13865
- >,
13866
- 'dataTransfer'
13359
+ originEvent: PickFromUnion_2<
13360
+ NativeBehaviorEvent,
13361
+ 'type',
13362
+ 'drag.drop' | 'clipboard.paste'
13867
13363
  >
13868
13364
  })
13869
13365
  | {
13870
13366
  type: 'serialization.success'
13871
13367
  mimeType: MIMEType_2
13872
13368
  data: string
13873
- dataTransfer: DataTransfer
13874
- originEvent: Omit<
13875
- PickFromUnion_2<
13876
- NativeBehaviorEvent,
13877
- 'type',
13878
- 'copy' | 'cut' | 'drag.dragstart'
13879
- >,
13880
- 'dataTransfer'
13369
+ originEvent: PickFromUnion_2<
13370
+ NativeBehaviorEvent,
13371
+ 'type',
13372
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
13881
13373
  >
13882
13374
  }
13883
13375
  | {
13884
13376
  type: 'serialization.failure'
13885
13377
  mimeType: MIMEType_2
13886
13378
  reason: string
13887
- dataTransfer: DataTransfer
13888
- originEvent: Omit<
13889
- PickFromUnion_2<
13890
- NativeBehaviorEvent,
13891
- 'type',
13892
- 'copy' | 'cut' | 'drag.dragstart'
13893
- >,
13894
- 'dataTransfer'
13379
+ originEvent: PickFromUnion_2<
13380
+ NativeBehaviorEvent,
13381
+ 'type',
13382
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
13895
13383
  >
13896
13384
  }
13897
13385
  | PatchEvent
@@ -14182,14 +13670,10 @@ declare const editorMachine: StateMachine<
14182
13670
  mimeType: `${string}/${string}`
14183
13671
  reason: string
14184
13672
  } & {
14185
- dataTransfer: DataTransfer
14186
- originEvent: Omit<
14187
- PickFromUnion_2<
14188
- NativeBehaviorEvent,
14189
- 'type',
14190
- 'drag.drop' | 'paste'
14191
- >,
14192
- 'dataTransfer'
13673
+ originEvent: PickFromUnion_2<
13674
+ NativeBehaviorEvent,
13675
+ 'type',
13676
+ 'drag.drop' | 'clipboard.paste'
14193
13677
  >
14194
13678
  })
14195
13679
  | ({
@@ -14197,42 +13681,30 @@ declare const editorMachine: StateMachine<
14197
13681
  data: Array<PortableTextBlock>
14198
13682
  mimeType: `${string}/${string}`
14199
13683
  } & {
14200
- dataTransfer: DataTransfer
14201
- originEvent: Omit<
14202
- PickFromUnion_2<
14203
- NativeBehaviorEvent,
14204
- 'type',
14205
- 'drag.drop' | 'paste'
14206
- >,
14207
- 'dataTransfer'
13684
+ originEvent: PickFromUnion_2<
13685
+ NativeBehaviorEvent,
13686
+ 'type',
13687
+ 'drag.drop' | 'clipboard.paste'
14208
13688
  >
14209
13689
  })
14210
13690
  | {
14211
13691
  type: 'serialization.success'
14212
13692
  mimeType: MIMEType_2
14213
13693
  data: string
14214
- dataTransfer: DataTransfer
14215
- originEvent: Omit<
14216
- PickFromUnion_2<
14217
- NativeBehaviorEvent,
14218
- 'type',
14219
- 'copy' | 'cut' | 'drag.dragstart'
14220
- >,
14221
- 'dataTransfer'
13694
+ originEvent: PickFromUnion_2<
13695
+ NativeBehaviorEvent,
13696
+ 'type',
13697
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
14222
13698
  >
14223
13699
  }
14224
13700
  | {
14225
13701
  type: 'serialization.failure'
14226
13702
  mimeType: MIMEType_2
14227
13703
  reason: string
14228
- dataTransfer: DataTransfer
14229
- originEvent: Omit<
14230
- PickFromUnion_2<
14231
- NativeBehaviorEvent,
14232
- 'type',
14233
- 'copy' | 'cut' | 'drag.dragstart'
14234
- >,
14235
- 'dataTransfer'
13704
+ originEvent: PickFromUnion_2<
13705
+ NativeBehaviorEvent,
13706
+ 'type',
13707
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
14236
13708
  >
14237
13709
  }
14238
13710
  | InternalPatchEvent
@@ -14574,14 +14046,10 @@ declare const editorMachine: StateMachine<
14574
14046
  mimeType: `${string}/${string}`
14575
14047
  reason: string
14576
14048
  } & {
14577
- dataTransfer: DataTransfer
14578
- originEvent: Omit<
14579
- PickFromUnion_2<
14580
- NativeBehaviorEvent,
14581
- 'type',
14582
- 'drag.drop' | 'paste'
14583
- >,
14584
- 'dataTransfer'
14049
+ originEvent: PickFromUnion_2<
14050
+ NativeBehaviorEvent,
14051
+ 'type',
14052
+ 'drag.drop' | 'clipboard.paste'
14585
14053
  >
14586
14054
  })
14587
14055
  | ({
@@ -14589,42 +14057,30 @@ declare const editorMachine: StateMachine<
14589
14057
  data: Array<PortableTextBlock>
14590
14058
  mimeType: `${string}/${string}`
14591
14059
  } & {
14592
- dataTransfer: DataTransfer
14593
- originEvent: Omit<
14594
- PickFromUnion_2<
14595
- NativeBehaviorEvent,
14596
- 'type',
14597
- 'drag.drop' | 'paste'
14598
- >,
14599
- 'dataTransfer'
14060
+ originEvent: PickFromUnion_2<
14061
+ NativeBehaviorEvent,
14062
+ 'type',
14063
+ 'drag.drop' | 'clipboard.paste'
14600
14064
  >
14601
14065
  })
14602
14066
  | {
14603
14067
  type: 'serialization.success'
14604
14068
  mimeType: MIMEType_2
14605
14069
  data: string
14606
- dataTransfer: DataTransfer
14607
- originEvent: Omit<
14608
- PickFromUnion_2<
14609
- NativeBehaviorEvent,
14610
- 'type',
14611
- 'copy' | 'cut' | 'drag.dragstart'
14612
- >,
14613
- 'dataTransfer'
14070
+ originEvent: PickFromUnion_2<
14071
+ NativeBehaviorEvent,
14072
+ 'type',
14073
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
14614
14074
  >
14615
14075
  }
14616
14076
  | {
14617
14077
  type: 'serialization.failure'
14618
14078
  mimeType: MIMEType_2
14619
14079
  reason: string
14620
- dataTransfer: DataTransfer
14621
- originEvent: Omit<
14622
- PickFromUnion_2<
14623
- NativeBehaviorEvent,
14624
- 'type',
14625
- 'copy' | 'cut' | 'drag.dragstart'
14626
- >,
14627
- 'dataTransfer'
14080
+ originEvent: PickFromUnion_2<
14081
+ NativeBehaviorEvent,
14082
+ 'type',
14083
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
14628
14084
  >
14629
14085
  }
14630
14086
  | PatchEvent
@@ -14916,14 +14372,10 @@ declare const editorMachine: StateMachine<
14916
14372
  mimeType: `${string}/${string}`
14917
14373
  reason: string
14918
14374
  } & {
14919
- dataTransfer: DataTransfer
14920
- originEvent: Omit<
14921
- PickFromUnion_2<
14922
- NativeBehaviorEvent,
14923
- 'type',
14924
- 'drag.drop' | 'paste'
14925
- >,
14926
- 'dataTransfer'
14375
+ originEvent: PickFromUnion_2<
14376
+ NativeBehaviorEvent,
14377
+ 'type',
14378
+ 'drag.drop' | 'clipboard.paste'
14927
14379
  >
14928
14380
  })
14929
14381
  | ({
@@ -14931,42 +14383,30 @@ declare const editorMachine: StateMachine<
14931
14383
  data: Array<PortableTextBlock>
14932
14384
  mimeType: `${string}/${string}`
14933
14385
  } & {
14934
- dataTransfer: DataTransfer
14935
- originEvent: Omit<
14936
- PickFromUnion_2<
14937
- NativeBehaviorEvent,
14938
- 'type',
14939
- 'drag.drop' | 'paste'
14940
- >,
14941
- 'dataTransfer'
14386
+ originEvent: PickFromUnion_2<
14387
+ NativeBehaviorEvent,
14388
+ 'type',
14389
+ 'drag.drop' | 'clipboard.paste'
14942
14390
  >
14943
14391
  })
14944
14392
  | {
14945
14393
  type: 'serialization.success'
14946
14394
  mimeType: MIMEType_2
14947
14395
  data: string
14948
- dataTransfer: DataTransfer
14949
- originEvent: Omit<
14950
- PickFromUnion_2<
14951
- NativeBehaviorEvent,
14952
- 'type',
14953
- 'copy' | 'cut' | 'drag.dragstart'
14954
- >,
14955
- 'dataTransfer'
14396
+ originEvent: PickFromUnion_2<
14397
+ NativeBehaviorEvent,
14398
+ 'type',
14399
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
14956
14400
  >
14957
14401
  }
14958
14402
  | {
14959
14403
  type: 'serialization.failure'
14960
14404
  mimeType: MIMEType_2
14961
14405
  reason: string
14962
- dataTransfer: DataTransfer
14963
- originEvent: Omit<
14964
- PickFromUnion_2<
14965
- NativeBehaviorEvent,
14966
- 'type',
14967
- 'copy' | 'cut' | 'drag.dragstart'
14968
- >,
14969
- 'dataTransfer'
14406
+ originEvent: PickFromUnion_2<
14407
+ NativeBehaviorEvent,
14408
+ 'type',
14409
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
14970
14410
  >
14971
14411
  }
14972
14412
  | InternalPatchEvent
@@ -15308,14 +14748,10 @@ declare const editorMachine: StateMachine<
15308
14748
  mimeType: `${string}/${string}`
15309
14749
  reason: string
15310
14750
  } & {
15311
- dataTransfer: DataTransfer
15312
- originEvent: Omit<
15313
- PickFromUnion_2<
15314
- NativeBehaviorEvent,
15315
- 'type',
15316
- 'drag.drop' | 'paste'
15317
- >,
15318
- 'dataTransfer'
14751
+ originEvent: PickFromUnion_2<
14752
+ NativeBehaviorEvent,
14753
+ 'type',
14754
+ 'drag.drop' | 'clipboard.paste'
15319
14755
  >
15320
14756
  })
15321
14757
  | ({
@@ -15323,42 +14759,30 @@ declare const editorMachine: StateMachine<
15323
14759
  data: Array<PortableTextBlock>
15324
14760
  mimeType: `${string}/${string}`
15325
14761
  } & {
15326
- dataTransfer: DataTransfer
15327
- originEvent: Omit<
15328
- PickFromUnion_2<
15329
- NativeBehaviorEvent,
15330
- 'type',
15331
- 'drag.drop' | 'paste'
15332
- >,
15333
- 'dataTransfer'
14762
+ originEvent: PickFromUnion_2<
14763
+ NativeBehaviorEvent,
14764
+ 'type',
14765
+ 'drag.drop' | 'clipboard.paste'
15334
14766
  >
15335
14767
  })
15336
14768
  | {
15337
14769
  type: 'serialization.success'
15338
14770
  mimeType: MIMEType_2
15339
14771
  data: string
15340
- dataTransfer: DataTransfer
15341
- originEvent: Omit<
15342
- PickFromUnion_2<
15343
- NativeBehaviorEvent,
15344
- 'type',
15345
- 'copy' | 'cut' | 'drag.dragstart'
15346
- >,
15347
- 'dataTransfer'
14772
+ originEvent: PickFromUnion_2<
14773
+ NativeBehaviorEvent,
14774
+ 'type',
14775
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
15348
14776
  >
15349
14777
  }
15350
14778
  | {
15351
14779
  type: 'serialization.failure'
15352
14780
  mimeType: MIMEType_2
15353
14781
  reason: string
15354
- dataTransfer: DataTransfer
15355
- originEvent: Omit<
15356
- PickFromUnion_2<
15357
- NativeBehaviorEvent,
15358
- 'type',
15359
- 'copy' | 'cut' | 'drag.dragstart'
15360
- >,
15361
- 'dataTransfer'
14782
+ originEvent: PickFromUnion_2<
14783
+ NativeBehaviorEvent,
14784
+ 'type',
14785
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
15362
14786
  >
15363
14787
  }
15364
14788
  | PatchEvent
@@ -15636,14 +15060,10 @@ declare const editorMachine: StateMachine<
15636
15060
  mimeType: `${string}/${string}`
15637
15061
  reason: string
15638
15062
  } & {
15639
- dataTransfer: DataTransfer
15640
- originEvent: Omit<
15641
- PickFromUnion_2<
15642
- NativeBehaviorEvent,
15643
- 'type',
15644
- 'drag.drop' | 'paste'
15645
- >,
15646
- 'dataTransfer'
15063
+ originEvent: PickFromUnion_2<
15064
+ NativeBehaviorEvent,
15065
+ 'type',
15066
+ 'drag.drop' | 'clipboard.paste'
15647
15067
  >
15648
15068
  })
15649
15069
  | ({
@@ -15651,42 +15071,30 @@ declare const editorMachine: StateMachine<
15651
15071
  data: Array<PortableTextBlock>
15652
15072
  mimeType: `${string}/${string}`
15653
15073
  } & {
15654
- dataTransfer: DataTransfer
15655
- originEvent: Omit<
15656
- PickFromUnion_2<
15657
- NativeBehaviorEvent,
15658
- 'type',
15659
- 'drag.drop' | 'paste'
15660
- >,
15661
- 'dataTransfer'
15074
+ originEvent: PickFromUnion_2<
15075
+ NativeBehaviorEvent,
15076
+ 'type',
15077
+ 'drag.drop' | 'clipboard.paste'
15662
15078
  >
15663
15079
  })
15664
15080
  | {
15665
15081
  type: 'serialization.success'
15666
15082
  mimeType: MIMEType_2
15667
15083
  data: string
15668
- dataTransfer: DataTransfer
15669
- originEvent: Omit<
15670
- PickFromUnion_2<
15671
- NativeBehaviorEvent,
15672
- 'type',
15673
- 'copy' | 'cut' | 'drag.dragstart'
15674
- >,
15675
- 'dataTransfer'
15084
+ originEvent: PickFromUnion_2<
15085
+ NativeBehaviorEvent,
15086
+ 'type',
15087
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
15676
15088
  >
15677
15089
  }
15678
15090
  | {
15679
15091
  type: 'serialization.failure'
15680
15092
  mimeType: MIMEType_2
15681
15093
  reason: string
15682
- dataTransfer: DataTransfer
15683
- originEvent: Omit<
15684
- PickFromUnion_2<
15685
- NativeBehaviorEvent,
15686
- 'type',
15687
- 'copy' | 'cut' | 'drag.dragstart'
15688
- >,
15689
- 'dataTransfer'
15094
+ originEvent: PickFromUnion_2<
15095
+ NativeBehaviorEvent,
15096
+ 'type',
15097
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
15690
15098
  >
15691
15099
  }
15692
15100
  | InternalPatchEvent
@@ -16028,14 +15436,10 @@ declare const editorMachine: StateMachine<
16028
15436
  mimeType: `${string}/${string}`
16029
15437
  reason: string
16030
15438
  } & {
16031
- dataTransfer: DataTransfer
16032
- originEvent: Omit<
16033
- PickFromUnion_2<
16034
- NativeBehaviorEvent,
16035
- 'type',
16036
- 'drag.drop' | 'paste'
16037
- >,
16038
- 'dataTransfer'
15439
+ originEvent: PickFromUnion_2<
15440
+ NativeBehaviorEvent,
15441
+ 'type',
15442
+ 'drag.drop' | 'clipboard.paste'
16039
15443
  >
16040
15444
  })
16041
15445
  | ({
@@ -16043,42 +15447,30 @@ declare const editorMachine: StateMachine<
16043
15447
  data: Array<PortableTextBlock>
16044
15448
  mimeType: `${string}/${string}`
16045
15449
  } & {
16046
- dataTransfer: DataTransfer
16047
- originEvent: Omit<
16048
- PickFromUnion_2<
16049
- NativeBehaviorEvent,
16050
- 'type',
16051
- 'drag.drop' | 'paste'
16052
- >,
16053
- 'dataTransfer'
15450
+ originEvent: PickFromUnion_2<
15451
+ NativeBehaviorEvent,
15452
+ 'type',
15453
+ 'drag.drop' | 'clipboard.paste'
16054
15454
  >
16055
15455
  })
16056
15456
  | {
16057
15457
  type: 'serialization.success'
16058
15458
  mimeType: MIMEType_2
16059
15459
  data: string
16060
- dataTransfer: DataTransfer
16061
- originEvent: Omit<
16062
- PickFromUnion_2<
16063
- NativeBehaviorEvent,
16064
- 'type',
16065
- 'copy' | 'cut' | 'drag.dragstart'
16066
- >,
16067
- 'dataTransfer'
15460
+ originEvent: PickFromUnion_2<
15461
+ NativeBehaviorEvent,
15462
+ 'type',
15463
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
16068
15464
  >
16069
15465
  }
16070
15466
  | {
16071
15467
  type: 'serialization.failure'
16072
15468
  mimeType: MIMEType_2
16073
15469
  reason: string
16074
- dataTransfer: DataTransfer
16075
- originEvent: Omit<
16076
- PickFromUnion_2<
16077
- NativeBehaviorEvent,
16078
- 'type',
16079
- 'copy' | 'cut' | 'drag.dragstart'
16080
- >,
16081
- 'dataTransfer'
15470
+ originEvent: PickFromUnion_2<
15471
+ NativeBehaviorEvent,
15472
+ 'type',
15473
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
16082
15474
  >
16083
15475
  }
16084
15476
  | PatchEvent
@@ -16359,14 +15751,10 @@ declare const editorMachine: StateMachine<
16359
15751
  mimeType: `${string}/${string}`
16360
15752
  reason: string
16361
15753
  } & {
16362
- dataTransfer: DataTransfer
16363
- originEvent: Omit<
16364
- PickFromUnion_2<
16365
- NativeBehaviorEvent,
16366
- 'type',
16367
- 'drag.drop' | 'paste'
16368
- >,
16369
- 'dataTransfer'
15754
+ originEvent: PickFromUnion_2<
15755
+ NativeBehaviorEvent,
15756
+ 'type',
15757
+ 'drag.drop' | 'clipboard.paste'
16370
15758
  >
16371
15759
  })
16372
15760
  | ({
@@ -16374,42 +15762,30 @@ declare const editorMachine: StateMachine<
16374
15762
  data: Array<PortableTextBlock>
16375
15763
  mimeType: `${string}/${string}`
16376
15764
  } & {
16377
- dataTransfer: DataTransfer
16378
- originEvent: Omit<
16379
- PickFromUnion_2<
16380
- NativeBehaviorEvent,
16381
- 'type',
16382
- 'drag.drop' | 'paste'
16383
- >,
16384
- 'dataTransfer'
15765
+ originEvent: PickFromUnion_2<
15766
+ NativeBehaviorEvent,
15767
+ 'type',
15768
+ 'drag.drop' | 'clipboard.paste'
16385
15769
  >
16386
15770
  })
16387
15771
  | {
16388
15772
  type: 'serialization.success'
16389
15773
  mimeType: MIMEType_2
16390
15774
  data: string
16391
- dataTransfer: DataTransfer
16392
- originEvent: Omit<
16393
- PickFromUnion_2<
16394
- NativeBehaviorEvent,
16395
- 'type',
16396
- 'copy' | 'cut' | 'drag.dragstart'
16397
- >,
16398
- 'dataTransfer'
15775
+ originEvent: PickFromUnion_2<
15776
+ NativeBehaviorEvent,
15777
+ 'type',
15778
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
16399
15779
  >
16400
15780
  }
16401
15781
  | {
16402
15782
  type: 'serialization.failure'
16403
15783
  mimeType: MIMEType_2
16404
15784
  reason: string
16405
- dataTransfer: DataTransfer
16406
- originEvent: Omit<
16407
- PickFromUnion_2<
16408
- NativeBehaviorEvent,
16409
- 'type',
16410
- 'copy' | 'cut' | 'drag.dragstart'
16411
- >,
16412
- 'dataTransfer'
15785
+ originEvent: PickFromUnion_2<
15786
+ NativeBehaviorEvent,
15787
+ 'type',
15788
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
16413
15789
  >
16414
15790
  }
16415
15791
  | InternalPatchEvent
@@ -16751,14 +16127,10 @@ declare const editorMachine: StateMachine<
16751
16127
  mimeType: `${string}/${string}`
16752
16128
  reason: string
16753
16129
  } & {
16754
- dataTransfer: DataTransfer
16755
- originEvent: Omit<
16756
- PickFromUnion_2<
16757
- NativeBehaviorEvent,
16758
- 'type',
16759
- 'drag.drop' | 'paste'
16760
- >,
16761
- 'dataTransfer'
16130
+ originEvent: PickFromUnion_2<
16131
+ NativeBehaviorEvent,
16132
+ 'type',
16133
+ 'drag.drop' | 'clipboard.paste'
16762
16134
  >
16763
16135
  })
16764
16136
  | ({
@@ -16766,42 +16138,30 @@ declare const editorMachine: StateMachine<
16766
16138
  data: Array<PortableTextBlock>
16767
16139
  mimeType: `${string}/${string}`
16768
16140
  } & {
16769
- dataTransfer: DataTransfer
16770
- originEvent: Omit<
16771
- PickFromUnion_2<
16772
- NativeBehaviorEvent,
16773
- 'type',
16774
- 'drag.drop' | 'paste'
16775
- >,
16776
- 'dataTransfer'
16141
+ originEvent: PickFromUnion_2<
16142
+ NativeBehaviorEvent,
16143
+ 'type',
16144
+ 'drag.drop' | 'clipboard.paste'
16777
16145
  >
16778
16146
  })
16779
16147
  | {
16780
16148
  type: 'serialization.success'
16781
16149
  mimeType: MIMEType_2
16782
16150
  data: string
16783
- dataTransfer: DataTransfer
16784
- originEvent: Omit<
16785
- PickFromUnion_2<
16786
- NativeBehaviorEvent,
16787
- 'type',
16788
- 'copy' | 'cut' | 'drag.dragstart'
16789
- >,
16790
- 'dataTransfer'
16151
+ originEvent: PickFromUnion_2<
16152
+ NativeBehaviorEvent,
16153
+ 'type',
16154
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
16791
16155
  >
16792
16156
  }
16793
16157
  | {
16794
16158
  type: 'serialization.failure'
16795
16159
  mimeType: MIMEType_2
16796
16160
  reason: string
16797
- dataTransfer: DataTransfer
16798
- originEvent: Omit<
16799
- PickFromUnion_2<
16800
- NativeBehaviorEvent,
16801
- 'type',
16802
- 'copy' | 'cut' | 'drag.dragstart'
16803
- >,
16804
- 'dataTransfer'
16161
+ originEvent: PickFromUnion_2<
16162
+ NativeBehaviorEvent,
16163
+ 'type',
16164
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
16805
16165
  >
16806
16166
  }
16807
16167
  | PatchEvent
@@ -17135,14 +16495,10 @@ declare const editorMachine: StateMachine<
17135
16495
  mimeType: `${string}/${string}`
17136
16496
  reason: string
17137
16497
  } & {
17138
- dataTransfer: DataTransfer
17139
- originEvent: Omit<
17140
- PickFromUnion_2<
17141
- NativeBehaviorEvent,
17142
- 'type',
17143
- 'drag.drop' | 'paste'
17144
- >,
17145
- 'dataTransfer'
16498
+ originEvent: PickFromUnion_2<
16499
+ NativeBehaviorEvent,
16500
+ 'type',
16501
+ 'drag.drop' | 'clipboard.paste'
17146
16502
  >
17147
16503
  })
17148
16504
  | ({
@@ -17150,42 +16506,30 @@ declare const editorMachine: StateMachine<
17150
16506
  data: Array<PortableTextBlock>
17151
16507
  mimeType: `${string}/${string}`
17152
16508
  } & {
17153
- dataTransfer: DataTransfer
17154
- originEvent: Omit<
17155
- PickFromUnion_2<
17156
- NativeBehaviorEvent,
17157
- 'type',
17158
- 'drag.drop' | 'paste'
17159
- >,
17160
- 'dataTransfer'
16509
+ originEvent: PickFromUnion_2<
16510
+ NativeBehaviorEvent,
16511
+ 'type',
16512
+ 'drag.drop' | 'clipboard.paste'
17161
16513
  >
17162
16514
  })
17163
16515
  | {
17164
16516
  type: 'serialization.success'
17165
16517
  mimeType: MIMEType_2
17166
16518
  data: string
17167
- dataTransfer: DataTransfer
17168
- originEvent: Omit<
17169
- PickFromUnion_2<
17170
- NativeBehaviorEvent,
17171
- 'type',
17172
- 'copy' | 'cut' | 'drag.dragstart'
17173
- >,
17174
- 'dataTransfer'
16519
+ originEvent: PickFromUnion_2<
16520
+ NativeBehaviorEvent,
16521
+ 'type',
16522
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
17175
16523
  >
17176
16524
  }
17177
16525
  | {
17178
16526
  type: 'serialization.failure'
17179
16527
  mimeType: MIMEType_2
17180
16528
  reason: string
17181
- dataTransfer: DataTransfer
17182
- originEvent: Omit<
17183
- PickFromUnion_2<
17184
- NativeBehaviorEvent,
17185
- 'type',
17186
- 'copy' | 'cut' | 'drag.dragstart'
17187
- >,
17188
- 'dataTransfer'
16529
+ originEvent: PickFromUnion_2<
16530
+ NativeBehaviorEvent,
16531
+ 'type',
16532
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
17189
16533
  >
17190
16534
  }
17191
16535
  | InternalPatchEvent
@@ -17527,14 +16871,10 @@ declare const editorMachine: StateMachine<
17527
16871
  mimeType: `${string}/${string}`
17528
16872
  reason: string
17529
16873
  } & {
17530
- dataTransfer: DataTransfer
17531
- originEvent: Omit<
17532
- PickFromUnion_2<
17533
- NativeBehaviorEvent,
17534
- 'type',
17535
- 'drag.drop' | 'paste'
17536
- >,
17537
- 'dataTransfer'
16874
+ originEvent: PickFromUnion_2<
16875
+ NativeBehaviorEvent,
16876
+ 'type',
16877
+ 'drag.drop' | 'clipboard.paste'
17538
16878
  >
17539
16879
  })
17540
16880
  | ({
@@ -17542,42 +16882,30 @@ declare const editorMachine: StateMachine<
17542
16882
  data: Array<PortableTextBlock>
17543
16883
  mimeType: `${string}/${string}`
17544
16884
  } & {
17545
- dataTransfer: DataTransfer
17546
- originEvent: Omit<
17547
- PickFromUnion_2<
17548
- NativeBehaviorEvent,
17549
- 'type',
17550
- 'drag.drop' | 'paste'
17551
- >,
17552
- 'dataTransfer'
16885
+ originEvent: PickFromUnion_2<
16886
+ NativeBehaviorEvent,
16887
+ 'type',
16888
+ 'drag.drop' | 'clipboard.paste'
17553
16889
  >
17554
16890
  })
17555
16891
  | {
17556
16892
  type: 'serialization.success'
17557
16893
  mimeType: MIMEType_2
17558
16894
  data: string
17559
- dataTransfer: DataTransfer
17560
- originEvent: Omit<
17561
- PickFromUnion_2<
17562
- NativeBehaviorEvent,
17563
- 'type',
17564
- 'copy' | 'cut' | 'drag.dragstart'
17565
- >,
17566
- 'dataTransfer'
16895
+ originEvent: PickFromUnion_2<
16896
+ NativeBehaviorEvent,
16897
+ 'type',
16898
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
17567
16899
  >
17568
16900
  }
17569
16901
  | {
17570
16902
  type: 'serialization.failure'
17571
16903
  mimeType: MIMEType_2
17572
16904
  reason: string
17573
- dataTransfer: DataTransfer
17574
- originEvent: Omit<
17575
- PickFromUnion_2<
17576
- NativeBehaviorEvent,
17577
- 'type',
17578
- 'copy' | 'cut' | 'drag.dragstart'
17579
- >,
17580
- 'dataTransfer'
16905
+ originEvent: PickFromUnion_2<
16906
+ NativeBehaviorEvent,
16907
+ 'type',
16908
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
17581
16909
  >
17582
16910
  }
17583
16911
  | PatchEvent
@@ -17864,14 +17192,10 @@ declare const editorMachine: StateMachine<
17864
17192
  mimeType: `${string}/${string}`
17865
17193
  reason: string
17866
17194
  } & {
17867
- dataTransfer: DataTransfer
17868
- originEvent: Omit<
17869
- PickFromUnion_2<
17870
- NativeBehaviorEvent,
17871
- 'type',
17872
- 'drag.drop' | 'paste'
17873
- >,
17874
- 'dataTransfer'
17195
+ originEvent: PickFromUnion_2<
17196
+ NativeBehaviorEvent,
17197
+ 'type',
17198
+ 'drag.drop' | 'clipboard.paste'
17875
17199
  >
17876
17200
  })
17877
17201
  | ({
@@ -17879,42 +17203,30 @@ declare const editorMachine: StateMachine<
17879
17203
  data: Array<PortableTextBlock>
17880
17204
  mimeType: `${string}/${string}`
17881
17205
  } & {
17882
- dataTransfer: DataTransfer
17883
- originEvent: Omit<
17884
- PickFromUnion_2<
17885
- NativeBehaviorEvent,
17886
- 'type',
17887
- 'drag.drop' | 'paste'
17888
- >,
17889
- 'dataTransfer'
17206
+ originEvent: PickFromUnion_2<
17207
+ NativeBehaviorEvent,
17208
+ 'type',
17209
+ 'drag.drop' | 'clipboard.paste'
17890
17210
  >
17891
17211
  })
17892
17212
  | {
17893
17213
  type: 'serialization.success'
17894
17214
  mimeType: MIMEType_2
17895
17215
  data: string
17896
- dataTransfer: DataTransfer
17897
- originEvent: Omit<
17898
- PickFromUnion_2<
17899
- NativeBehaviorEvent,
17900
- 'type',
17901
- 'copy' | 'cut' | 'drag.dragstart'
17902
- >,
17903
- 'dataTransfer'
17216
+ originEvent: PickFromUnion_2<
17217
+ NativeBehaviorEvent,
17218
+ 'type',
17219
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
17904
17220
  >
17905
17221
  }
17906
17222
  | {
17907
17223
  type: 'serialization.failure'
17908
17224
  mimeType: MIMEType_2
17909
17225
  reason: string
17910
- dataTransfer: DataTransfer
17911
- originEvent: Omit<
17912
- PickFromUnion_2<
17913
- NativeBehaviorEvent,
17914
- 'type',
17915
- 'copy' | 'cut' | 'drag.dragstart'
17916
- >,
17917
- 'dataTransfer'
17226
+ originEvent: PickFromUnion_2<
17227
+ NativeBehaviorEvent,
17228
+ 'type',
17229
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
17918
17230
  >
17919
17231
  }
17920
17232
  | InternalPatchEvent
@@ -18256,14 +17568,10 @@ declare const editorMachine: StateMachine<
18256
17568
  mimeType: `${string}/${string}`
18257
17569
  reason: string
18258
17570
  } & {
18259
- dataTransfer: DataTransfer
18260
- originEvent: Omit<
18261
- PickFromUnion_2<
18262
- NativeBehaviorEvent,
18263
- 'type',
18264
- 'drag.drop' | 'paste'
18265
- >,
18266
- 'dataTransfer'
17571
+ originEvent: PickFromUnion_2<
17572
+ NativeBehaviorEvent,
17573
+ 'type',
17574
+ 'drag.drop' | 'clipboard.paste'
18267
17575
  >
18268
17576
  })
18269
17577
  | ({
@@ -18271,42 +17579,30 @@ declare const editorMachine: StateMachine<
18271
17579
  data: Array<PortableTextBlock>
18272
17580
  mimeType: `${string}/${string}`
18273
17581
  } & {
18274
- dataTransfer: DataTransfer
18275
- originEvent: Omit<
18276
- PickFromUnion_2<
18277
- NativeBehaviorEvent,
18278
- 'type',
18279
- 'drag.drop' | 'paste'
18280
- >,
18281
- 'dataTransfer'
17582
+ originEvent: PickFromUnion_2<
17583
+ NativeBehaviorEvent,
17584
+ 'type',
17585
+ 'drag.drop' | 'clipboard.paste'
18282
17586
  >
18283
17587
  })
18284
17588
  | {
18285
17589
  type: 'serialization.success'
18286
17590
  mimeType: MIMEType_2
18287
17591
  data: string
18288
- dataTransfer: DataTransfer
18289
- originEvent: Omit<
18290
- PickFromUnion_2<
18291
- NativeBehaviorEvent,
18292
- 'type',
18293
- 'copy' | 'cut' | 'drag.dragstart'
18294
- >,
18295
- 'dataTransfer'
17592
+ originEvent: PickFromUnion_2<
17593
+ NativeBehaviorEvent,
17594
+ 'type',
17595
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
18296
17596
  >
18297
17597
  }
18298
17598
  | {
18299
17599
  type: 'serialization.failure'
18300
17600
  mimeType: MIMEType_2
18301
17601
  reason: string
18302
- dataTransfer: DataTransfer
18303
- originEvent: Omit<
18304
- PickFromUnion_2<
18305
- NativeBehaviorEvent,
18306
- 'type',
18307
- 'copy' | 'cut' | 'drag.dragstart'
18308
- >,
18309
- 'dataTransfer'
17602
+ originEvent: PickFromUnion_2<
17603
+ NativeBehaviorEvent,
17604
+ 'type',
17605
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
18310
17606
  >
18311
17607
  }
18312
17608
  | PatchEvent
@@ -18594,14 +17890,10 @@ declare const editorMachine: StateMachine<
18594
17890
  mimeType: `${string}/${string}`
18595
17891
  reason: string
18596
17892
  } & {
18597
- dataTransfer: DataTransfer
18598
- originEvent: Omit<
18599
- PickFromUnion_2<
18600
- NativeBehaviorEvent,
18601
- 'type',
18602
- 'drag.drop' | 'paste'
18603
- >,
18604
- 'dataTransfer'
17893
+ originEvent: PickFromUnion_2<
17894
+ NativeBehaviorEvent,
17895
+ 'type',
17896
+ 'drag.drop' | 'clipboard.paste'
18605
17897
  >
18606
17898
  })
18607
17899
  | ({
@@ -18609,42 +17901,30 @@ declare const editorMachine: StateMachine<
18609
17901
  data: Array<PortableTextBlock>
18610
17902
  mimeType: `${string}/${string}`
18611
17903
  } & {
18612
- dataTransfer: DataTransfer
18613
- originEvent: Omit<
18614
- PickFromUnion_2<
18615
- NativeBehaviorEvent,
18616
- 'type',
18617
- 'drag.drop' | 'paste'
18618
- >,
18619
- 'dataTransfer'
17904
+ originEvent: PickFromUnion_2<
17905
+ NativeBehaviorEvent,
17906
+ 'type',
17907
+ 'drag.drop' | 'clipboard.paste'
18620
17908
  >
18621
17909
  })
18622
17910
  | {
18623
17911
  type: 'serialization.success'
18624
17912
  mimeType: MIMEType_2
18625
17913
  data: string
18626
- dataTransfer: DataTransfer
18627
- originEvent: Omit<
18628
- PickFromUnion_2<
18629
- NativeBehaviorEvent,
18630
- 'type',
18631
- 'copy' | 'cut' | 'drag.dragstart'
18632
- >,
18633
- 'dataTransfer'
17914
+ originEvent: PickFromUnion_2<
17915
+ NativeBehaviorEvent,
17916
+ 'type',
17917
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
18634
17918
  >
18635
17919
  }
18636
17920
  | {
18637
17921
  type: 'serialization.failure'
18638
17922
  mimeType: MIMEType_2
18639
17923
  reason: string
18640
- dataTransfer: DataTransfer
18641
- originEvent: Omit<
18642
- PickFromUnion_2<
18643
- NativeBehaviorEvent,
18644
- 'type',
18645
- 'copy' | 'cut' | 'drag.dragstart'
18646
- >,
18647
- 'dataTransfer'
17924
+ originEvent: PickFromUnion_2<
17925
+ NativeBehaviorEvent,
17926
+ 'type',
17927
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
18648
17928
  >
18649
17929
  }
18650
17930
  | InternalPatchEvent
@@ -18986,14 +18266,10 @@ declare const editorMachine: StateMachine<
18986
18266
  mimeType: `${string}/${string}`
18987
18267
  reason: string
18988
18268
  } & {
18989
- dataTransfer: DataTransfer
18990
- originEvent: Omit<
18991
- PickFromUnion_2<
18992
- NativeBehaviorEvent,
18993
- 'type',
18994
- 'drag.drop' | 'paste'
18995
- >,
18996
- 'dataTransfer'
18269
+ originEvent: PickFromUnion_2<
18270
+ NativeBehaviorEvent,
18271
+ 'type',
18272
+ 'drag.drop' | 'clipboard.paste'
18997
18273
  >
18998
18274
  })
18999
18275
  | ({
@@ -19001,42 +18277,30 @@ declare const editorMachine: StateMachine<
19001
18277
  data: Array<PortableTextBlock>
19002
18278
  mimeType: `${string}/${string}`
19003
18279
  } & {
19004
- dataTransfer: DataTransfer
19005
- originEvent: Omit<
19006
- PickFromUnion_2<
19007
- NativeBehaviorEvent,
19008
- 'type',
19009
- 'drag.drop' | 'paste'
19010
- >,
19011
- 'dataTransfer'
18280
+ originEvent: PickFromUnion_2<
18281
+ NativeBehaviorEvent,
18282
+ 'type',
18283
+ 'drag.drop' | 'clipboard.paste'
19012
18284
  >
19013
18285
  })
19014
18286
  | {
19015
18287
  type: 'serialization.success'
19016
18288
  mimeType: MIMEType_2
19017
18289
  data: string
19018
- dataTransfer: DataTransfer
19019
- originEvent: Omit<
19020
- PickFromUnion_2<
19021
- NativeBehaviorEvent,
19022
- 'type',
19023
- 'copy' | 'cut' | 'drag.dragstart'
19024
- >,
19025
- 'dataTransfer'
18290
+ originEvent: PickFromUnion_2<
18291
+ NativeBehaviorEvent,
18292
+ 'type',
18293
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
19026
18294
  >
19027
18295
  }
19028
18296
  | {
19029
18297
  type: 'serialization.failure'
19030
18298
  mimeType: MIMEType_2
19031
18299
  reason: string
19032
- dataTransfer: DataTransfer
19033
- originEvent: Omit<
19034
- PickFromUnion_2<
19035
- NativeBehaviorEvent,
19036
- 'type',
19037
- 'copy' | 'cut' | 'drag.dragstart'
19038
- >,
19039
- 'dataTransfer'
18300
+ originEvent: PickFromUnion_2<
18301
+ NativeBehaviorEvent,
18302
+ 'type',
18303
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
19040
18304
  >
19041
18305
  }
19042
18306
  | PatchEvent
@@ -19315,14 +18579,10 @@ declare const editorMachine: StateMachine<
19315
18579
  mimeType: `${string}/${string}`
19316
18580
  reason: string
19317
18581
  } & {
19318
- dataTransfer: DataTransfer
19319
- originEvent: Omit<
19320
- PickFromUnion_2<
19321
- NativeBehaviorEvent,
19322
- 'type',
19323
- 'drag.drop' | 'paste'
19324
- >,
19325
- 'dataTransfer'
18582
+ originEvent: PickFromUnion_2<
18583
+ NativeBehaviorEvent,
18584
+ 'type',
18585
+ 'drag.drop' | 'clipboard.paste'
19326
18586
  >
19327
18587
  })
19328
18588
  | ({
@@ -19330,42 +18590,30 @@ declare const editorMachine: StateMachine<
19330
18590
  data: Array<PortableTextBlock>
19331
18591
  mimeType: `${string}/${string}`
19332
18592
  } & {
19333
- dataTransfer: DataTransfer
19334
- originEvent: Omit<
19335
- PickFromUnion_2<
19336
- NativeBehaviorEvent,
19337
- 'type',
19338
- 'drag.drop' | 'paste'
19339
- >,
19340
- 'dataTransfer'
18593
+ originEvent: PickFromUnion_2<
18594
+ NativeBehaviorEvent,
18595
+ 'type',
18596
+ 'drag.drop' | 'clipboard.paste'
19341
18597
  >
19342
18598
  })
19343
18599
  | {
19344
18600
  type: 'serialization.success'
19345
18601
  mimeType: MIMEType_2
19346
18602
  data: string
19347
- dataTransfer: DataTransfer
19348
- originEvent: Omit<
19349
- PickFromUnion_2<
19350
- NativeBehaviorEvent,
19351
- 'type',
19352
- 'copy' | 'cut' | 'drag.dragstart'
19353
- >,
19354
- 'dataTransfer'
18603
+ originEvent: PickFromUnion_2<
18604
+ NativeBehaviorEvent,
18605
+ 'type',
18606
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
19355
18607
  >
19356
18608
  }
19357
18609
  | {
19358
18610
  type: 'serialization.failure'
19359
18611
  mimeType: MIMEType_2
19360
18612
  reason: string
19361
- dataTransfer: DataTransfer
19362
- originEvent: Omit<
19363
- PickFromUnion_2<
19364
- NativeBehaviorEvent,
19365
- 'type',
19366
- 'copy' | 'cut' | 'drag.dragstart'
19367
- >,
19368
- 'dataTransfer'
18613
+ originEvent: PickFromUnion_2<
18614
+ NativeBehaviorEvent,
18615
+ 'type',
18616
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
19369
18617
  >
19370
18618
  }
19371
18619
  | InternalPatchEvent
@@ -19707,14 +18955,10 @@ declare const editorMachine: StateMachine<
19707
18955
  mimeType: `${string}/${string}`
19708
18956
  reason: string
19709
18957
  } & {
19710
- dataTransfer: DataTransfer
19711
- originEvent: Omit<
19712
- PickFromUnion_2<
19713
- NativeBehaviorEvent,
19714
- 'type',
19715
- 'drag.drop' | 'paste'
19716
- >,
19717
- 'dataTransfer'
18958
+ originEvent: PickFromUnion_2<
18959
+ NativeBehaviorEvent,
18960
+ 'type',
18961
+ 'drag.drop' | 'clipboard.paste'
19718
18962
  >
19719
18963
  })
19720
18964
  | ({
@@ -19722,42 +18966,30 @@ declare const editorMachine: StateMachine<
19722
18966
  data: Array<PortableTextBlock>
19723
18967
  mimeType: `${string}/${string}`
19724
18968
  } & {
19725
- dataTransfer: DataTransfer
19726
- originEvent: Omit<
19727
- PickFromUnion_2<
19728
- NativeBehaviorEvent,
19729
- 'type',
19730
- 'drag.drop' | 'paste'
19731
- >,
19732
- 'dataTransfer'
18969
+ originEvent: PickFromUnion_2<
18970
+ NativeBehaviorEvent,
18971
+ 'type',
18972
+ 'drag.drop' | 'clipboard.paste'
19733
18973
  >
19734
18974
  })
19735
18975
  | {
19736
18976
  type: 'serialization.success'
19737
18977
  mimeType: MIMEType_2
19738
18978
  data: string
19739
- dataTransfer: DataTransfer
19740
- originEvent: Omit<
19741
- PickFromUnion_2<
19742
- NativeBehaviorEvent,
19743
- 'type',
19744
- 'copy' | 'cut' | 'drag.dragstart'
19745
- >,
19746
- 'dataTransfer'
18979
+ originEvent: PickFromUnion_2<
18980
+ NativeBehaviorEvent,
18981
+ 'type',
18982
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
19747
18983
  >
19748
18984
  }
19749
18985
  | {
19750
18986
  type: 'serialization.failure'
19751
18987
  mimeType: MIMEType_2
19752
18988
  reason: string
19753
- dataTransfer: DataTransfer
19754
- originEvent: Omit<
19755
- PickFromUnion_2<
19756
- NativeBehaviorEvent,
19757
- 'type',
19758
- 'copy' | 'cut' | 'drag.dragstart'
19759
- >,
19760
- 'dataTransfer'
18989
+ originEvent: PickFromUnion_2<
18990
+ NativeBehaviorEvent,
18991
+ 'type',
18992
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
19761
18993
  >
19762
18994
  }
19763
18995
  | PatchEvent
@@ -20040,14 +19272,10 @@ declare const editorMachine: StateMachine<
20040
19272
  mimeType: `${string}/${string}`
20041
19273
  reason: string
20042
19274
  } & {
20043
- dataTransfer: DataTransfer
20044
- originEvent: Omit<
20045
- PickFromUnion_2<
20046
- NativeBehaviorEvent,
20047
- 'type',
20048
- 'drag.drop' | 'paste'
20049
- >,
20050
- 'dataTransfer'
19275
+ originEvent: PickFromUnion_2<
19276
+ NativeBehaviorEvent,
19277
+ 'type',
19278
+ 'drag.drop' | 'clipboard.paste'
20051
19279
  >
20052
19280
  })
20053
19281
  | ({
@@ -20055,42 +19283,30 @@ declare const editorMachine: StateMachine<
20055
19283
  data: Array<PortableTextBlock>
20056
19284
  mimeType: `${string}/${string}`
20057
19285
  } & {
20058
- dataTransfer: DataTransfer
20059
- originEvent: Omit<
20060
- PickFromUnion_2<
20061
- NativeBehaviorEvent,
20062
- 'type',
20063
- 'drag.drop' | 'paste'
20064
- >,
20065
- 'dataTransfer'
19286
+ originEvent: PickFromUnion_2<
19287
+ NativeBehaviorEvent,
19288
+ 'type',
19289
+ 'drag.drop' | 'clipboard.paste'
20066
19290
  >
20067
19291
  })
20068
19292
  | {
20069
19293
  type: 'serialization.success'
20070
19294
  mimeType: MIMEType_2
20071
19295
  data: string
20072
- dataTransfer: DataTransfer
20073
- originEvent: Omit<
20074
- PickFromUnion_2<
20075
- NativeBehaviorEvent,
20076
- 'type',
20077
- 'copy' | 'cut' | 'drag.dragstart'
20078
- >,
20079
- 'dataTransfer'
19296
+ originEvent: PickFromUnion_2<
19297
+ NativeBehaviorEvent,
19298
+ 'type',
19299
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
20080
19300
  >
20081
19301
  }
20082
19302
  | {
20083
19303
  type: 'serialization.failure'
20084
19304
  mimeType: MIMEType_2
20085
19305
  reason: string
20086
- dataTransfer: DataTransfer
20087
- originEvent: Omit<
20088
- PickFromUnion_2<
20089
- NativeBehaviorEvent,
20090
- 'type',
20091
- 'copy' | 'cut' | 'drag.dragstart'
20092
- >,
20093
- 'dataTransfer'
19306
+ originEvent: PickFromUnion_2<
19307
+ NativeBehaviorEvent,
19308
+ 'type',
19309
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
20094
19310
  >
20095
19311
  }
20096
19312
  | InternalPatchEvent
@@ -20432,14 +19648,10 @@ declare const editorMachine: StateMachine<
20432
19648
  mimeType: `${string}/${string}`
20433
19649
  reason: string
20434
19650
  } & {
20435
- dataTransfer: DataTransfer
20436
- originEvent: Omit<
20437
- PickFromUnion_2<
20438
- NativeBehaviorEvent,
20439
- 'type',
20440
- 'drag.drop' | 'paste'
20441
- >,
20442
- 'dataTransfer'
19651
+ originEvent: PickFromUnion_2<
19652
+ NativeBehaviorEvent,
19653
+ 'type',
19654
+ 'drag.drop' | 'clipboard.paste'
20443
19655
  >
20444
19656
  })
20445
19657
  | ({
@@ -20447,42 +19659,30 @@ declare const editorMachine: StateMachine<
20447
19659
  data: Array<PortableTextBlock>
20448
19660
  mimeType: `${string}/${string}`
20449
19661
  } & {
20450
- dataTransfer: DataTransfer
20451
- originEvent: Omit<
20452
- PickFromUnion_2<
20453
- NativeBehaviorEvent,
20454
- 'type',
20455
- 'drag.drop' | 'paste'
20456
- >,
20457
- 'dataTransfer'
19662
+ originEvent: PickFromUnion_2<
19663
+ NativeBehaviorEvent,
19664
+ 'type',
19665
+ 'drag.drop' | 'clipboard.paste'
20458
19666
  >
20459
19667
  })
20460
19668
  | {
20461
19669
  type: 'serialization.success'
20462
19670
  mimeType: MIMEType_2
20463
19671
  data: string
20464
- dataTransfer: DataTransfer
20465
- originEvent: Omit<
20466
- PickFromUnion_2<
20467
- NativeBehaviorEvent,
20468
- 'type',
20469
- 'copy' | 'cut' | 'drag.dragstart'
20470
- >,
20471
- 'dataTransfer'
19672
+ originEvent: PickFromUnion_2<
19673
+ NativeBehaviorEvent,
19674
+ 'type',
19675
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
20472
19676
  >
20473
19677
  }
20474
19678
  | {
20475
19679
  type: 'serialization.failure'
20476
19680
  mimeType: MIMEType_2
20477
19681
  reason: string
20478
- dataTransfer: DataTransfer
20479
- originEvent: Omit<
20480
- PickFromUnion_2<
20481
- NativeBehaviorEvent,
20482
- 'type',
20483
- 'copy' | 'cut' | 'drag.dragstart'
20484
- >,
20485
- 'dataTransfer'
19682
+ originEvent: PickFromUnion_2<
19683
+ NativeBehaviorEvent,
19684
+ 'type',
19685
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
20486
19686
  >
20487
19687
  }
20488
19688
  | PatchEvent
@@ -20769,14 +19969,10 @@ declare const editorMachine: StateMachine<
20769
19969
  mimeType: `${string}/${string}`
20770
19970
  reason: string
20771
19971
  } & {
20772
- dataTransfer: DataTransfer
20773
- originEvent: Omit<
20774
- PickFromUnion_2<
20775
- NativeBehaviorEvent,
20776
- 'type',
20777
- 'drag.drop' | 'paste'
20778
- >,
20779
- 'dataTransfer'
19972
+ originEvent: PickFromUnion_2<
19973
+ NativeBehaviorEvent,
19974
+ 'type',
19975
+ 'drag.drop' | 'clipboard.paste'
20780
19976
  >
20781
19977
  })
20782
19978
  | ({
@@ -20784,42 +19980,30 @@ declare const editorMachine: StateMachine<
20784
19980
  data: Array<PortableTextBlock>
20785
19981
  mimeType: `${string}/${string}`
20786
19982
  } & {
20787
- dataTransfer: DataTransfer
20788
- originEvent: Omit<
20789
- PickFromUnion_2<
20790
- NativeBehaviorEvent,
20791
- 'type',
20792
- 'drag.drop' | 'paste'
20793
- >,
20794
- 'dataTransfer'
19983
+ originEvent: PickFromUnion_2<
19984
+ NativeBehaviorEvent,
19985
+ 'type',
19986
+ 'drag.drop' | 'clipboard.paste'
20795
19987
  >
20796
19988
  })
20797
19989
  | {
20798
19990
  type: 'serialization.success'
20799
19991
  mimeType: MIMEType_2
20800
19992
  data: string
20801
- dataTransfer: DataTransfer
20802
- originEvent: Omit<
20803
- PickFromUnion_2<
20804
- NativeBehaviorEvent,
20805
- 'type',
20806
- 'copy' | 'cut' | 'drag.dragstart'
20807
- >,
20808
- 'dataTransfer'
19993
+ originEvent: PickFromUnion_2<
19994
+ NativeBehaviorEvent,
19995
+ 'type',
19996
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
20809
19997
  >
20810
19998
  }
20811
19999
  | {
20812
20000
  type: 'serialization.failure'
20813
20001
  mimeType: MIMEType_2
20814
20002
  reason: string
20815
- dataTransfer: DataTransfer
20816
- originEvent: Omit<
20817
- PickFromUnion_2<
20818
- NativeBehaviorEvent,
20819
- 'type',
20820
- 'copy' | 'cut' | 'drag.dragstart'
20821
- >,
20822
- 'dataTransfer'
20003
+ originEvent: PickFromUnion_2<
20004
+ NativeBehaviorEvent,
20005
+ 'type',
20006
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
20823
20007
  >
20824
20008
  }
20825
20009
  | InternalPatchEvent
@@ -21161,14 +20345,10 @@ declare const editorMachine: StateMachine<
21161
20345
  mimeType: `${string}/${string}`
21162
20346
  reason: string
21163
20347
  } & {
21164
- dataTransfer: DataTransfer
21165
- originEvent: Omit<
21166
- PickFromUnion_2<
21167
- NativeBehaviorEvent,
21168
- 'type',
21169
- 'drag.drop' | 'paste'
21170
- >,
21171
- 'dataTransfer'
20348
+ originEvent: PickFromUnion_2<
20349
+ NativeBehaviorEvent,
20350
+ 'type',
20351
+ 'drag.drop' | 'clipboard.paste'
21172
20352
  >
21173
20353
  })
21174
20354
  | ({
@@ -21176,42 +20356,30 @@ declare const editorMachine: StateMachine<
21176
20356
  data: Array<PortableTextBlock>
21177
20357
  mimeType: `${string}/${string}`
21178
20358
  } & {
21179
- dataTransfer: DataTransfer
21180
- originEvent: Omit<
21181
- PickFromUnion_2<
21182
- NativeBehaviorEvent,
21183
- 'type',
21184
- 'drag.drop' | 'paste'
21185
- >,
21186
- 'dataTransfer'
20359
+ originEvent: PickFromUnion_2<
20360
+ NativeBehaviorEvent,
20361
+ 'type',
20362
+ 'drag.drop' | 'clipboard.paste'
21187
20363
  >
21188
20364
  })
21189
20365
  | {
21190
20366
  type: 'serialization.success'
21191
20367
  mimeType: MIMEType_2
21192
20368
  data: string
21193
- dataTransfer: DataTransfer
21194
- originEvent: Omit<
21195
- PickFromUnion_2<
21196
- NativeBehaviorEvent,
21197
- 'type',
21198
- 'copy' | 'cut' | 'drag.dragstart'
21199
- >,
21200
- 'dataTransfer'
20369
+ originEvent: PickFromUnion_2<
20370
+ NativeBehaviorEvent,
20371
+ 'type',
20372
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
21201
20373
  >
21202
20374
  }
21203
20375
  | {
21204
20376
  type: 'serialization.failure'
21205
20377
  mimeType: MIMEType_2
21206
20378
  reason: string
21207
- dataTransfer: DataTransfer
21208
- originEvent: Omit<
21209
- PickFromUnion_2<
21210
- NativeBehaviorEvent,
21211
- 'type',
21212
- 'copy' | 'cut' | 'drag.dragstart'
21213
- >,
21214
- 'dataTransfer'
20379
+ originEvent: PickFromUnion_2<
20380
+ NativeBehaviorEvent,
20381
+ 'type',
20382
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
21215
20383
  >
21216
20384
  }
21217
20385
  | PatchEvent
@@ -21512,14 +20680,10 @@ declare const editorMachine: StateMachine<
21512
20680
  mimeType: `${string}/${string}`
21513
20681
  reason: string
21514
20682
  } & {
21515
- dataTransfer: DataTransfer
21516
- originEvent: Omit<
21517
- PickFromUnion_2<
21518
- NativeBehaviorEvent,
21519
- 'type',
21520
- 'drag.drop' | 'paste'
21521
- >,
21522
- 'dataTransfer'
20683
+ originEvent: PickFromUnion_2<
20684
+ NativeBehaviorEvent,
20685
+ 'type',
20686
+ 'drag.drop' | 'clipboard.paste'
21523
20687
  >
21524
20688
  })
21525
20689
  | ({
@@ -21527,42 +20691,34 @@ declare const editorMachine: StateMachine<
21527
20691
  data: Array<PortableTextBlock>
21528
20692
  mimeType: `${string}/${string}`
21529
20693
  } & {
21530
- dataTransfer: DataTransfer
21531
- originEvent: Omit<
21532
- PickFromUnion_2<
21533
- NativeBehaviorEvent,
21534
- 'type',
21535
- 'drag.drop' | 'paste'
21536
- >,
21537
- 'dataTransfer'
20694
+ originEvent: PickFromUnion_2<
20695
+ NativeBehaviorEvent,
20696
+ 'type',
20697
+ 'drag.drop' | 'clipboard.paste'
21538
20698
  >
21539
20699
  })
21540
20700
  | {
21541
20701
  type: 'serialization.success'
21542
20702
  mimeType: MIMEType_2
21543
20703
  data: string
21544
- dataTransfer: DataTransfer
21545
- originEvent: Omit<
21546
- PickFromUnion_2<
21547
- NativeBehaviorEvent,
21548
- 'type',
21549
- 'copy' | 'cut' | 'drag.dragstart'
21550
- >,
21551
- 'dataTransfer'
20704
+ originEvent: PickFromUnion_2<
20705
+ NativeBehaviorEvent,
20706
+ 'type',
20707
+ | 'clipboard.copy'
20708
+ | 'clipboard.cut'
20709
+ | 'drag.dragstart'
21552
20710
  >
21553
20711
  }
21554
20712
  | {
21555
20713
  type: 'serialization.failure'
21556
20714
  mimeType: MIMEType_2
21557
20715
  reason: string
21558
- dataTransfer: DataTransfer
21559
- originEvent: Omit<
21560
- PickFromUnion_2<
21561
- NativeBehaviorEvent,
21562
- 'type',
21563
- 'copy' | 'cut' | 'drag.dragstart'
21564
- >,
21565
- 'dataTransfer'
20716
+ originEvent: PickFromUnion_2<
20717
+ NativeBehaviorEvent,
20718
+ 'type',
20719
+ | 'clipboard.copy'
20720
+ | 'clipboard.cut'
20721
+ | 'drag.dragstart'
21566
20722
  >
21567
20723
  }
21568
20724
  | InternalPatchEvent
@@ -21931,14 +21087,10 @@ declare const editorMachine: StateMachine<
21931
21087
  mimeType: `${string}/${string}`
21932
21088
  reason: string
21933
21089
  } & {
21934
- dataTransfer: DataTransfer
21935
- originEvent: Omit<
21936
- PickFromUnion_2<
21937
- NativeBehaviorEvent,
21938
- 'type',
21939
- 'drag.drop' | 'paste'
21940
- >,
21941
- 'dataTransfer'
21090
+ originEvent: PickFromUnion_2<
21091
+ NativeBehaviorEvent,
21092
+ 'type',
21093
+ 'drag.drop' | 'clipboard.paste'
21942
21094
  >
21943
21095
  })
21944
21096
  | ({
@@ -21946,42 +21098,30 @@ declare const editorMachine: StateMachine<
21946
21098
  data: Array<PortableTextBlock>
21947
21099
  mimeType: `${string}/${string}`
21948
21100
  } & {
21949
- dataTransfer: DataTransfer
21950
- originEvent: Omit<
21951
- PickFromUnion_2<
21952
- NativeBehaviorEvent,
21953
- 'type',
21954
- 'drag.drop' | 'paste'
21955
- >,
21956
- 'dataTransfer'
21101
+ originEvent: PickFromUnion_2<
21102
+ NativeBehaviorEvent,
21103
+ 'type',
21104
+ 'drag.drop' | 'clipboard.paste'
21957
21105
  >
21958
21106
  })
21959
21107
  | {
21960
21108
  type: 'serialization.success'
21961
21109
  mimeType: MIMEType_2
21962
21110
  data: string
21963
- dataTransfer: DataTransfer
21964
- originEvent: Omit<
21965
- PickFromUnion_2<
21966
- NativeBehaviorEvent,
21967
- 'type',
21968
- 'copy' | 'cut' | 'drag.dragstart'
21969
- >,
21970
- 'dataTransfer'
21111
+ originEvent: PickFromUnion_2<
21112
+ NativeBehaviorEvent,
21113
+ 'type',
21114
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
21971
21115
  >
21972
21116
  }
21973
21117
  | {
21974
21118
  type: 'serialization.failure'
21975
21119
  mimeType: MIMEType_2
21976
21120
  reason: string
21977
- dataTransfer: DataTransfer
21978
- originEvent: Omit<
21979
- PickFromUnion_2<
21980
- NativeBehaviorEvent,
21981
- 'type',
21982
- 'copy' | 'cut' | 'drag.dragstart'
21983
- >,
21984
- 'dataTransfer'
21121
+ originEvent: PickFromUnion_2<
21122
+ NativeBehaviorEvent,
21123
+ 'type',
21124
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
21985
21125
  >
21986
21126
  }
21987
21127
  | InternalPatchEvent
@@ -22318,14 +21458,10 @@ declare const editorMachine: StateMachine<
22318
21458
  mimeType: `${string}/${string}`
22319
21459
  reason: string
22320
21460
  } & {
22321
- dataTransfer: DataTransfer
22322
- originEvent: Omit<
22323
- PickFromUnion_2<
22324
- NativeBehaviorEvent,
22325
- 'type',
22326
- 'drag.drop' | 'paste'
22327
- >,
22328
- 'dataTransfer'
21461
+ originEvent: PickFromUnion_2<
21462
+ NativeBehaviorEvent,
21463
+ 'type',
21464
+ 'drag.drop' | 'clipboard.paste'
22329
21465
  >
22330
21466
  })
22331
21467
  | ({
@@ -22333,42 +21469,30 @@ declare const editorMachine: StateMachine<
22333
21469
  data: Array<PortableTextBlock>
22334
21470
  mimeType: `${string}/${string}`
22335
21471
  } & {
22336
- dataTransfer: DataTransfer
22337
- originEvent: Omit<
22338
- PickFromUnion_2<
22339
- NativeBehaviorEvent,
22340
- 'type',
22341
- 'drag.drop' | 'paste'
22342
- >,
22343
- 'dataTransfer'
21472
+ originEvent: PickFromUnion_2<
21473
+ NativeBehaviorEvent,
21474
+ 'type',
21475
+ 'drag.drop' | 'clipboard.paste'
22344
21476
  >
22345
21477
  })
22346
21478
  | {
22347
21479
  type: 'serialization.success'
22348
21480
  mimeType: MIMEType_2
22349
21481
  data: string
22350
- dataTransfer: DataTransfer
22351
- originEvent: Omit<
22352
- PickFromUnion_2<
22353
- NativeBehaviorEvent,
22354
- 'type',
22355
- 'copy' | 'cut' | 'drag.dragstart'
22356
- >,
22357
- 'dataTransfer'
21482
+ originEvent: PickFromUnion_2<
21483
+ NativeBehaviorEvent,
21484
+ 'type',
21485
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
22358
21486
  >
22359
21487
  }
22360
21488
  | {
22361
21489
  type: 'serialization.failure'
22362
21490
  mimeType: MIMEType_2
22363
21491
  reason: string
22364
- dataTransfer: DataTransfer
22365
- originEvent: Omit<
22366
- PickFromUnion_2<
22367
- NativeBehaviorEvent,
22368
- 'type',
22369
- 'copy' | 'cut' | 'drag.dragstart'
22370
- >,
22371
- 'dataTransfer'
21492
+ originEvent: PickFromUnion_2<
21493
+ NativeBehaviorEvent,
21494
+ 'type',
21495
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
22372
21496
  >
22373
21497
  }
22374
21498
  | InternalPatchEvent
@@ -22722,14 +21846,10 @@ declare const editorMachine: StateMachine<
22722
21846
  mimeType: `${string}/${string}`
22723
21847
  reason: string
22724
21848
  } & {
22725
- dataTransfer: DataTransfer
22726
- originEvent: Omit<
22727
- PickFromUnion_2<
22728
- NativeBehaviorEvent,
22729
- 'type',
22730
- 'drag.drop' | 'paste'
22731
- >,
22732
- 'dataTransfer'
21849
+ originEvent: PickFromUnion_2<
21850
+ NativeBehaviorEvent,
21851
+ 'type',
21852
+ 'drag.drop' | 'clipboard.paste'
22733
21853
  >
22734
21854
  })
22735
21855
  | ({
@@ -22737,42 +21857,30 @@ declare const editorMachine: StateMachine<
22737
21857
  data: Array<PortableTextBlock>
22738
21858
  mimeType: `${string}/${string}`
22739
21859
  } & {
22740
- dataTransfer: DataTransfer
22741
- originEvent: Omit<
22742
- PickFromUnion_2<
22743
- NativeBehaviorEvent,
22744
- 'type',
22745
- 'drag.drop' | 'paste'
22746
- >,
22747
- 'dataTransfer'
21860
+ originEvent: PickFromUnion_2<
21861
+ NativeBehaviorEvent,
21862
+ 'type',
21863
+ 'drag.drop' | 'clipboard.paste'
22748
21864
  >
22749
21865
  })
22750
21866
  | {
22751
21867
  type: 'serialization.success'
22752
21868
  mimeType: MIMEType_2
22753
21869
  data: string
22754
- dataTransfer: DataTransfer
22755
- originEvent: Omit<
22756
- PickFromUnion_2<
22757
- NativeBehaviorEvent,
22758
- 'type',
22759
- 'copy' | 'cut' | 'drag.dragstart'
22760
- >,
22761
- 'dataTransfer'
21870
+ originEvent: PickFromUnion_2<
21871
+ NativeBehaviorEvent,
21872
+ 'type',
21873
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
22762
21874
  >
22763
21875
  }
22764
21876
  | {
22765
21877
  type: 'serialization.failure'
22766
21878
  mimeType: MIMEType_2
22767
21879
  reason: string
22768
- dataTransfer: DataTransfer
22769
- originEvent: Omit<
22770
- PickFromUnion_2<
22771
- NativeBehaviorEvent,
22772
- 'type',
22773
- 'copy' | 'cut' | 'drag.dragstart'
22774
- >,
22775
- 'dataTransfer'
21880
+ originEvent: PickFromUnion_2<
21881
+ NativeBehaviorEvent,
21882
+ 'type',
21883
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
22776
21884
  >
22777
21885
  }
22778
21886
  | InternalPatchEvent
@@ -23109,14 +22217,10 @@ declare const editorMachine: StateMachine<
23109
22217
  mimeType: `${string}/${string}`
23110
22218
  reason: string
23111
22219
  } & {
23112
- dataTransfer: DataTransfer
23113
- originEvent: Omit<
23114
- PickFromUnion_2<
23115
- NativeBehaviorEvent,
23116
- 'type',
23117
- 'drag.drop' | 'paste'
23118
- >,
23119
- 'dataTransfer'
22220
+ originEvent: PickFromUnion_2<
22221
+ NativeBehaviorEvent,
22222
+ 'type',
22223
+ 'drag.drop' | 'clipboard.paste'
23120
22224
  >
23121
22225
  })
23122
22226
  | ({
@@ -23124,42 +22228,30 @@ declare const editorMachine: StateMachine<
23124
22228
  data: Array<PortableTextBlock>
23125
22229
  mimeType: `${string}/${string}`
23126
22230
  } & {
23127
- dataTransfer: DataTransfer
23128
- originEvent: Omit<
23129
- PickFromUnion_2<
23130
- NativeBehaviorEvent,
23131
- 'type',
23132
- 'drag.drop' | 'paste'
23133
- >,
23134
- 'dataTransfer'
22231
+ originEvent: PickFromUnion_2<
22232
+ NativeBehaviorEvent,
22233
+ 'type',
22234
+ 'drag.drop' | 'clipboard.paste'
23135
22235
  >
23136
22236
  })
23137
22237
  | {
23138
22238
  type: 'serialization.success'
23139
22239
  mimeType: MIMEType_2
23140
22240
  data: string
23141
- dataTransfer: DataTransfer
23142
- originEvent: Omit<
23143
- PickFromUnion_2<
23144
- NativeBehaviorEvent,
23145
- 'type',
23146
- 'copy' | 'cut' | 'drag.dragstart'
23147
- >,
23148
- 'dataTransfer'
22241
+ originEvent: PickFromUnion_2<
22242
+ NativeBehaviorEvent,
22243
+ 'type',
22244
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
23149
22245
  >
23150
22246
  }
23151
22247
  | {
23152
22248
  type: 'serialization.failure'
23153
22249
  mimeType: MIMEType_2
23154
22250
  reason: string
23155
- dataTransfer: DataTransfer
23156
- originEvent: Omit<
23157
- PickFromUnion_2<
23158
- NativeBehaviorEvent,
23159
- 'type',
23160
- 'copy' | 'cut' | 'drag.dragstart'
23161
- >,
23162
- 'dataTransfer'
22251
+ originEvent: PickFromUnion_2<
22252
+ NativeBehaviorEvent,
22253
+ 'type',
22254
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
23163
22255
  >
23164
22256
  }
23165
22257
  | InternalPatchEvent
@@ -23870,6 +22962,22 @@ export declare const isSelectionCollapsed: EditorSelector<boolean>
23870
22962
  */
23871
22963
  export declare const isSelectionExpanded: EditorSelector<boolean>
23872
22964
 
22965
+ declare type KeyboardBehaviorEvent =
22966
+ | {
22967
+ type: 'keyboard.keydown'
22968
+ originEvent: Pick<
22969
+ KeyboardEvent,
22970
+ 'key' | 'code' | 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey'
22971
+ >
22972
+ }
22973
+ | {
22974
+ type: 'keyboard.keyup'
22975
+ originEvent: Pick<
22976
+ KeyboardEvent,
22977
+ 'key' | 'code' | 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey'
22978
+ >
22979
+ }
22980
+
23873
22981
  declare type MIMEType = `${string}/${string}`
23874
22982
 
23875
22983
  declare type MouseBehaviorEvent = {
@@ -23907,36 +23015,9 @@ declare type NamespaceEvent<
23907
23015
  * @beta
23908
23016
  */
23909
23017
  declare type NativeBehaviorEvent =
23910
- | {
23911
- type: 'copy'
23912
- data: DataTransfer
23913
- position: EventPosition
23914
- }
23915
- | {
23916
- type: 'cut'
23917
- dataTransfer: DataTransfer
23918
- position: EventPosition
23919
- }
23920
- | {
23921
- type: 'key.down'
23922
- keyboardEvent: Pick<
23923
- KeyboardEvent,
23924
- 'key' | 'code' | 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey'
23925
- >
23926
- }
23927
- | {
23928
- type: 'key.up'
23929
- keyboardEvent: Pick<
23930
- KeyboardEvent,
23931
- 'key' | 'code' | 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey'
23932
- >
23933
- }
23018
+ | ClipboardBehaviorEvent
23019
+ | KeyboardBehaviorEvent
23934
23020
  | MouseBehaviorEvent
23935
- | {
23936
- type: 'paste'
23937
- data: DataTransfer
23938
- position: EventPosition
23939
- }
23940
23021
  | DragBehaviorEvent
23941
23022
 
23942
23023
  /**
@@ -24228,38 +23309,30 @@ declare type SyntheticBehaviorEvent =
24228
23309
  'type',
24229
23310
  'deserialization.failure' | 'deserialization.success'
24230
23311
  > & {
24231
- dataTransfer: DataTransfer
24232
- originEvent: Omit<
24233
- PickFromUnion<NativeBehaviorEvent, 'type', 'drag.drop' | 'paste'>,
24234
- 'dataTransfer'
23312
+ originEvent: PickFromUnion<
23313
+ NativeBehaviorEvent,
23314
+ 'type',
23315
+ 'drag.drop' | 'clipboard.paste'
24235
23316
  >
24236
23317
  })
24237
23318
  | {
24238
23319
  type: 'serialization.success'
24239
23320
  mimeType: MIMEType
24240
23321
  data: string
24241
- dataTransfer: DataTransfer
24242
- originEvent: Omit<
24243
- PickFromUnion<
24244
- NativeBehaviorEvent,
24245
- 'type',
24246
- 'copy' | 'cut' | 'drag.dragstart'
24247
- >,
24248
- 'dataTransfer'
23322
+ originEvent: PickFromUnion<
23323
+ NativeBehaviorEvent,
23324
+ 'type',
23325
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
24249
23326
  >
24250
23327
  }
24251
23328
  | {
24252
23329
  type: 'serialization.failure'
24253
23330
  mimeType: MIMEType
24254
23331
  reason: string
24255
- dataTransfer: DataTransfer
24256
- originEvent: Omit<
24257
- PickFromUnion<
24258
- NativeBehaviorEvent,
24259
- 'type',
24260
- 'copy' | 'cut' | 'drag.dragstart'
24261
- >,
24262
- 'dataTransfer'
23332
+ originEvent: PickFromUnion<
23333
+ NativeBehaviorEvent,
23334
+ 'type',
23335
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
24263
23336
  >
24264
23337
  }
24265
23338