@portabletext/editor 1.38.0 → 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 +43 -25
  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 +43 -25
  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 -21
  47. package/src/editor/editor-machine.ts +26 -6
@@ -65,9 +65,15 @@ declare type Behavior<
65
65
  TGuardResponse = true,
66
66
  TBehaviorEvent extends BehaviorEvent = TBehaviorEventType extends '*'
67
67
  ? BehaviorEvent
68
- : TBehaviorEventType extends 'drag.*'
69
- ? DragBehaviorEvent
70
- : PickFromUnion<BehaviorEvent, 'type', TBehaviorEventType>,
68
+ : TBehaviorEventType extends 'clipboard.*'
69
+ ? ClipboardBehaviorEvent
70
+ : TBehaviorEventType extends 'drag.*'
71
+ ? DragBehaviorEvent
72
+ : TBehaviorEventType extends 'keyboard.*'
73
+ ? KeyboardBehaviorEvent
74
+ : TBehaviorEventType extends 'mouse.*'
75
+ ? MouseBehaviorEvent
76
+ : PickFromUnion<BehaviorEvent, 'type', TBehaviorEventType>,
71
77
  > = {
72
78
  /**
73
79
  * The internal editor event that triggers this behavior.
@@ -129,9 +135,18 @@ declare type BehaviorEvent =
129
135
  | {
130
136
  type: '*'
131
137
  }
138
+ | {
139
+ type: 'clipboard.*'
140
+ }
132
141
  | {
133
142
  type: 'drag.*'
134
143
  }
144
+ | {
145
+ type: 'keyboard.*'
146
+ }
147
+ | {
148
+ type: 'mouse.*'
149
+ }
135
150
 
136
151
  /**
137
152
  * @beta
@@ -199,6 +214,29 @@ export declare function childSelectionPointToBlockOffset({
199
214
  selectionPoint: EditorSelectionPoint
200
215
  }): BlockOffset | undefined
201
216
 
217
+ declare type ClipboardBehaviorEvent =
218
+ | {
219
+ type: 'clipboard.copy'
220
+ originEvent: {
221
+ dataTransfer: DataTransfer
222
+ }
223
+ position: EventPosition
224
+ }
225
+ | {
226
+ type: 'clipboard.cut'
227
+ originEvent: {
228
+ dataTransfer: DataTransfer
229
+ }
230
+ position: EventPosition
231
+ }
232
+ | {
233
+ type: 'clipboard.paste'
234
+ originEvent: {
235
+ dataTransfer: DataTransfer
236
+ }
237
+ position: EventPosition
238
+ }
239
+
202
240
  declare type Converter<TMIMEType extends MIMEType = MIMEType> = {
203
241
  mimeType: TMIMEType
204
242
  serialize: Serializer<TMIMEType>
@@ -208,19 +246,19 @@ declare type Converter<TMIMEType extends MIMEType = MIMEType> = {
208
246
  declare type ConverterEvent<TMIMEType extends MIMEType = MIMEType> =
209
247
  | {
210
248
  type: 'serialize'
211
- originEvent: 'copy' | 'cut' | 'drag.dragstart'
249
+ originEvent: 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
212
250
  }
213
251
  | {
214
252
  type: 'serialization.failure'
215
253
  mimeType: TMIMEType
216
- originEvent: 'copy' | 'cut' | 'drag.dragstart'
254
+ originEvent: 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
217
255
  reason: string
218
256
  }
219
257
  | {
220
258
  type: 'serialization.success'
221
259
  data: string
222
260
  mimeType: TMIMEType
223
- originEvent: 'copy' | 'cut' | 'drag.dragstart'
261
+ originEvent: 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
224
262
  }
225
263
  | {
226
264
  type: 'deserialize'
@@ -251,22 +289,18 @@ declare type CustomBehaviorEvent<
251
289
  declare type DataBehaviorEvent =
252
290
  | {
253
291
  type: 'deserialize'
254
- dataTransfer: DataTransfer
255
- originEvent: Omit<
256
- PickFromUnion<NativeBehaviorEvent, 'type', 'drag.drop' | 'paste'>,
257
- 'dataTransfer'
292
+ originEvent: PickFromUnion<
293
+ NativeBehaviorEvent,
294
+ 'type',
295
+ 'drag.drop' | 'clipboard.paste'
258
296
  >
259
297
  }
260
298
  | {
261
299
  type: 'serialize'
262
- dataTransfer: DataTransfer
263
- originEvent: Omit<
264
- PickFromUnion<
265
- NativeBehaviorEvent,
266
- 'type',
267
- 'copy' | 'cut' | 'drag.dragstart'
268
- >,
269
- 'dataTransfer'
300
+ originEvent: PickFromUnion<
301
+ NativeBehaviorEvent,
302
+ 'type',
303
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
270
304
  >
271
305
  }
272
306
 
@@ -285,35 +319,49 @@ declare type Deserializer<TMIMEType extends MIMEType> = ({
285
319
  declare type DragBehaviorEvent =
286
320
  | {
287
321
  type: 'drag.dragstart'
288
- dataTransfer: DataTransfer
322
+ originEvent: {
323
+ dataTransfer: DataTransfer
324
+ }
289
325
  position: EventPosition
290
326
  }
291
327
  | {
292
328
  type: 'drag.drag'
293
- dataTransfer: DataTransfer
329
+ originEvent: {
330
+ dataTransfer: DataTransfer
331
+ }
294
332
  }
295
333
  | {
296
334
  type: 'drag.dragend'
297
- dataTransfer: DataTransfer
335
+ originEvent: {
336
+ dataTransfer: DataTransfer
337
+ }
298
338
  }
299
339
  | {
300
340
  type: 'drag.dragenter'
301
- dataTransfer: DataTransfer
341
+ originEvent: {
342
+ dataTransfer: DataTransfer
343
+ }
302
344
  position: EventPosition
303
345
  }
304
346
  | {
305
347
  type: 'drag.dragover'
306
- dataTransfer: DataTransfer
348
+ originEvent: {
349
+ dataTransfer: DataTransfer
350
+ }
307
351
  position: EventPosition
308
352
  }
309
353
  | {
310
354
  type: 'drag.drop'
311
- dataTransfer: DataTransfer
355
+ originEvent: {
356
+ dataTransfer: DataTransfer
357
+ }
312
358
  position: EventPosition
313
359
  }
314
360
  | {
315
361
  type: 'drag.dragleave'
316
- dataTransfer: DataTransfer
362
+ originEvent: {
363
+ dataTransfer: DataTransfer
364
+ }
317
365
  }
318
366
 
319
367
  /** @beta */
@@ -644,10 +692,10 @@ declare const editorMachine: StateMachine<
644
692
  mimeType: `${string}/${string}`
645
693
  reason: string
646
694
  } & {
647
- dataTransfer: DataTransfer
648
- originEvent: Omit<
649
- PickFromUnion_2<NativeBehaviorEvent, 'type', 'drag.drop' | 'paste'>,
650
- 'dataTransfer'
695
+ originEvent: PickFromUnion_2<
696
+ NativeBehaviorEvent,
697
+ 'type',
698
+ 'drag.drop' | 'clipboard.paste'
651
699
  >
652
700
  })
653
701
  | ({
@@ -655,38 +703,30 @@ declare const editorMachine: StateMachine<
655
703
  data: Array<PortableTextBlock>
656
704
  mimeType: `${string}/${string}`
657
705
  } & {
658
- dataTransfer: DataTransfer
659
- originEvent: Omit<
660
- PickFromUnion_2<NativeBehaviorEvent, 'type', 'drag.drop' | 'paste'>,
661
- 'dataTransfer'
706
+ originEvent: PickFromUnion_2<
707
+ NativeBehaviorEvent,
708
+ 'type',
709
+ 'drag.drop' | 'clipboard.paste'
662
710
  >
663
711
  })
664
712
  | {
665
713
  type: 'serialization.success'
666
714
  mimeType: MIMEType_2
667
715
  data: string
668
- dataTransfer: DataTransfer
669
- originEvent: Omit<
670
- PickFromUnion_2<
671
- NativeBehaviorEvent,
672
- 'type',
673
- 'copy' | 'cut' | 'drag.dragstart'
674
- >,
675
- 'dataTransfer'
716
+ originEvent: PickFromUnion_2<
717
+ NativeBehaviorEvent,
718
+ 'type',
719
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
676
720
  >
677
721
  }
678
722
  | {
679
723
  type: 'serialization.failure'
680
724
  mimeType: MIMEType_2
681
725
  reason: string
682
- dataTransfer: DataTransfer
683
- originEvent: Omit<
684
- PickFromUnion_2<
685
- NativeBehaviorEvent,
686
- 'type',
687
- 'copy' | 'cut' | 'drag.dragstart'
688
- >,
689
- 'dataTransfer'
726
+ originEvent: PickFromUnion_2<
727
+ NativeBehaviorEvent,
728
+ 'type',
729
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
690
730
  >
691
731
  }
692
732
  | InternalPatchEvent
@@ -1107,10 +1147,10 @@ declare const editorMachine: StateMachine<
1107
1147
  mimeType: `${string}/${string}`
1108
1148
  reason: string
1109
1149
  } & {
1110
- dataTransfer: DataTransfer
1111
- originEvent: Omit<
1112
- PickFromUnion_2<NativeBehaviorEvent, 'type', 'drag.drop' | 'paste'>,
1113
- 'dataTransfer'
1150
+ originEvent: PickFromUnion_2<
1151
+ NativeBehaviorEvent,
1152
+ 'type',
1153
+ 'drag.drop' | 'clipboard.paste'
1114
1154
  >
1115
1155
  })
1116
1156
  | ({
@@ -1118,38 +1158,30 @@ declare const editorMachine: StateMachine<
1118
1158
  data: Array<PortableTextBlock>
1119
1159
  mimeType: `${string}/${string}`
1120
1160
  } & {
1121
- dataTransfer: DataTransfer
1122
- originEvent: Omit<
1123
- PickFromUnion_2<NativeBehaviorEvent, 'type', 'drag.drop' | 'paste'>,
1124
- 'dataTransfer'
1161
+ originEvent: PickFromUnion_2<
1162
+ NativeBehaviorEvent,
1163
+ 'type',
1164
+ 'drag.drop' | 'clipboard.paste'
1125
1165
  >
1126
1166
  })
1127
1167
  | {
1128
1168
  type: 'serialization.success'
1129
1169
  mimeType: MIMEType_2
1130
1170
  data: string
1131
- dataTransfer: DataTransfer
1132
- originEvent: Omit<
1133
- PickFromUnion_2<
1134
- NativeBehaviorEvent,
1135
- 'type',
1136
- 'copy' | 'cut' | 'drag.dragstart'
1137
- >,
1138
- 'dataTransfer'
1171
+ originEvent: PickFromUnion_2<
1172
+ NativeBehaviorEvent,
1173
+ 'type',
1174
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
1139
1175
  >
1140
1176
  }
1141
1177
  | {
1142
1178
  type: 'serialization.failure'
1143
1179
  mimeType: MIMEType_2
1144
1180
  reason: string
1145
- dataTransfer: DataTransfer
1146
- originEvent: Omit<
1147
- PickFromUnion_2<
1148
- NativeBehaviorEvent,
1149
- 'type',
1150
- 'copy' | 'cut' | 'drag.dragstart'
1151
- >,
1152
- 'dataTransfer'
1181
+ originEvent: PickFromUnion_2<
1182
+ NativeBehaviorEvent,
1183
+ 'type',
1184
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
1153
1185
  >
1154
1186
  }
1155
1187
  | PatchEvent
@@ -1459,14 +1491,10 @@ declare const editorMachine: StateMachine<
1459
1491
  mimeType: `${string}/${string}`
1460
1492
  reason: string
1461
1493
  } & {
1462
- dataTransfer: DataTransfer
1463
- originEvent: Omit<
1464
- PickFromUnion_2<
1465
- NativeBehaviorEvent,
1466
- 'type',
1467
- 'drag.drop' | 'paste'
1468
- >,
1469
- 'dataTransfer'
1494
+ originEvent: PickFromUnion_2<
1495
+ NativeBehaviorEvent,
1496
+ 'type',
1497
+ 'drag.drop' | 'clipboard.paste'
1470
1498
  >
1471
1499
  })
1472
1500
  | ({
@@ -1474,42 +1502,30 @@ declare const editorMachine: StateMachine<
1474
1502
  data: Array<PortableTextBlock>
1475
1503
  mimeType: `${string}/${string}`
1476
1504
  } & {
1477
- dataTransfer: DataTransfer
1478
- originEvent: Omit<
1479
- PickFromUnion_2<
1480
- NativeBehaviorEvent,
1481
- 'type',
1482
- 'drag.drop' | 'paste'
1483
- >,
1484
- 'dataTransfer'
1505
+ originEvent: PickFromUnion_2<
1506
+ NativeBehaviorEvent,
1507
+ 'type',
1508
+ 'drag.drop' | 'clipboard.paste'
1485
1509
  >
1486
1510
  })
1487
1511
  | {
1488
1512
  type: 'serialization.success'
1489
1513
  mimeType: MIMEType_2
1490
1514
  data: string
1491
- dataTransfer: DataTransfer
1492
- originEvent: Omit<
1493
- PickFromUnion_2<
1494
- NativeBehaviorEvent,
1495
- 'type',
1496
- 'copy' | 'cut' | 'drag.dragstart'
1497
- >,
1498
- 'dataTransfer'
1515
+ originEvent: PickFromUnion_2<
1516
+ NativeBehaviorEvent,
1517
+ 'type',
1518
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
1499
1519
  >
1500
1520
  }
1501
1521
  | {
1502
1522
  type: 'serialization.failure'
1503
1523
  mimeType: MIMEType_2
1504
1524
  reason: string
1505
- dataTransfer: DataTransfer
1506
- originEvent: Omit<
1507
- PickFromUnion_2<
1508
- NativeBehaviorEvent,
1509
- 'type',
1510
- 'copy' | 'cut' | 'drag.dragstart'
1511
- >,
1512
- 'dataTransfer'
1525
+ originEvent: PickFromUnion_2<
1526
+ NativeBehaviorEvent,
1527
+ 'type',
1528
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
1513
1529
  >
1514
1530
  }
1515
1531
  | InternalPatchEvent
@@ -1853,14 +1869,10 @@ declare const editorMachine: StateMachine<
1853
1869
  mimeType: `${string}/${string}`
1854
1870
  reason: string
1855
1871
  } & {
1856
- dataTransfer: DataTransfer
1857
- originEvent: Omit<
1858
- PickFromUnion_2<
1859
- NativeBehaviorEvent,
1860
- 'type',
1861
- 'drag.drop' | 'paste'
1862
- >,
1863
- 'dataTransfer'
1872
+ originEvent: PickFromUnion_2<
1873
+ NativeBehaviorEvent,
1874
+ 'type',
1875
+ 'drag.drop' | 'clipboard.paste'
1864
1876
  >
1865
1877
  })
1866
1878
  | ({
@@ -1868,42 +1880,30 @@ declare const editorMachine: StateMachine<
1868
1880
  data: Array<PortableTextBlock>
1869
1881
  mimeType: `${string}/${string}`
1870
1882
  } & {
1871
- dataTransfer: DataTransfer
1872
- originEvent: Omit<
1873
- PickFromUnion_2<
1874
- NativeBehaviorEvent,
1875
- 'type',
1876
- 'drag.drop' | 'paste'
1877
- >,
1878
- 'dataTransfer'
1883
+ originEvent: PickFromUnion_2<
1884
+ NativeBehaviorEvent,
1885
+ 'type',
1886
+ 'drag.drop' | 'clipboard.paste'
1879
1887
  >
1880
1888
  })
1881
1889
  | {
1882
1890
  type: 'serialization.success'
1883
1891
  mimeType: MIMEType_2
1884
1892
  data: string
1885
- dataTransfer: DataTransfer
1886
- originEvent: Omit<
1887
- PickFromUnion_2<
1888
- NativeBehaviorEvent,
1889
- 'type',
1890
- 'copy' | 'cut' | 'drag.dragstart'
1891
- >,
1892
- 'dataTransfer'
1893
+ originEvent: PickFromUnion_2<
1894
+ NativeBehaviorEvent,
1895
+ 'type',
1896
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
1893
1897
  >
1894
1898
  }
1895
1899
  | {
1896
1900
  type: 'serialization.failure'
1897
1901
  mimeType: MIMEType_2
1898
1902
  reason: string
1899
- dataTransfer: DataTransfer
1900
- originEvent: Omit<
1901
- PickFromUnion_2<
1902
- NativeBehaviorEvent,
1903
- 'type',
1904
- 'copy' | 'cut' | 'drag.dragstart'
1905
- >,
1906
- 'dataTransfer'
1903
+ originEvent: PickFromUnion_2<
1904
+ NativeBehaviorEvent,
1905
+ 'type',
1906
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
1907
1907
  >
1908
1908
  }
1909
1909
  | InternalPatchEvent
@@ -2275,14 +2275,10 @@ declare const editorMachine: StateMachine<
2275
2275
  mimeType: `${string}/${string}`
2276
2276
  reason: string
2277
2277
  } & {
2278
- dataTransfer: DataTransfer
2279
- originEvent: Omit<
2280
- PickFromUnion_2<
2281
- NativeBehaviorEvent,
2282
- 'type',
2283
- 'drag.drop' | 'paste'
2284
- >,
2285
- 'dataTransfer'
2278
+ originEvent: PickFromUnion_2<
2279
+ NativeBehaviorEvent,
2280
+ 'type',
2281
+ 'drag.drop' | 'clipboard.paste'
2286
2282
  >
2287
2283
  })
2288
2284
  | ({
@@ -2290,42 +2286,30 @@ declare const editorMachine: StateMachine<
2290
2286
  data: Array<PortableTextBlock>
2291
2287
  mimeType: `${string}/${string}`
2292
2288
  } & {
2293
- dataTransfer: DataTransfer
2294
- originEvent: Omit<
2295
- PickFromUnion_2<
2296
- NativeBehaviorEvent,
2297
- 'type',
2298
- 'drag.drop' | 'paste'
2299
- >,
2300
- 'dataTransfer'
2289
+ originEvent: PickFromUnion_2<
2290
+ NativeBehaviorEvent,
2291
+ 'type',
2292
+ 'drag.drop' | 'clipboard.paste'
2301
2293
  >
2302
2294
  })
2303
2295
  | {
2304
2296
  type: 'serialization.success'
2305
2297
  mimeType: MIMEType_2
2306
2298
  data: string
2307
- dataTransfer: DataTransfer
2308
- originEvent: Omit<
2309
- PickFromUnion_2<
2310
- NativeBehaviorEvent,
2311
- 'type',
2312
- 'copy' | 'cut' | 'drag.dragstart'
2313
- >,
2314
- 'dataTransfer'
2299
+ originEvent: PickFromUnion_2<
2300
+ NativeBehaviorEvent,
2301
+ 'type',
2302
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
2315
2303
  >
2316
2304
  }
2317
2305
  | {
2318
2306
  type: 'serialization.failure'
2319
2307
  mimeType: MIMEType_2
2320
2308
  reason: string
2321
- dataTransfer: DataTransfer
2322
- originEvent: Omit<
2323
- PickFromUnion_2<
2324
- NativeBehaviorEvent,
2325
- 'type',
2326
- 'copy' | 'cut' | 'drag.dragstart'
2327
- >,
2328
- 'dataTransfer'
2309
+ originEvent: PickFromUnion_2<
2310
+ NativeBehaviorEvent,
2311
+ 'type',
2312
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
2329
2313
  >
2330
2314
  }
2331
2315
  | InternalPatchEvent
@@ -2667,14 +2651,10 @@ declare const editorMachine: StateMachine<
2667
2651
  mimeType: `${string}/${string}`
2668
2652
  reason: string
2669
2653
  } & {
2670
- dataTransfer: DataTransfer
2671
- originEvent: Omit<
2672
- PickFromUnion_2<
2673
- NativeBehaviorEvent,
2674
- 'type',
2675
- 'drag.drop' | 'paste'
2676
- >,
2677
- 'dataTransfer'
2654
+ originEvent: PickFromUnion_2<
2655
+ NativeBehaviorEvent,
2656
+ 'type',
2657
+ 'drag.drop' | 'clipboard.paste'
2678
2658
  >
2679
2659
  })
2680
2660
  | ({
@@ -2682,42 +2662,30 @@ declare const editorMachine: StateMachine<
2682
2662
  data: Array<PortableTextBlock>
2683
2663
  mimeType: `${string}/${string}`
2684
2664
  } & {
2685
- dataTransfer: DataTransfer
2686
- originEvent: Omit<
2687
- PickFromUnion_2<
2688
- NativeBehaviorEvent,
2689
- 'type',
2690
- 'drag.drop' | 'paste'
2691
- >,
2692
- 'dataTransfer'
2665
+ originEvent: PickFromUnion_2<
2666
+ NativeBehaviorEvent,
2667
+ 'type',
2668
+ 'drag.drop' | 'clipboard.paste'
2693
2669
  >
2694
2670
  })
2695
2671
  | {
2696
2672
  type: 'serialization.success'
2697
2673
  mimeType: MIMEType_2
2698
2674
  data: string
2699
- dataTransfer: DataTransfer
2700
- originEvent: Omit<
2701
- PickFromUnion_2<
2702
- NativeBehaviorEvent,
2703
- 'type',
2704
- 'copy' | 'cut' | 'drag.dragstart'
2705
- >,
2706
- 'dataTransfer'
2675
+ originEvent: PickFromUnion_2<
2676
+ NativeBehaviorEvent,
2677
+ 'type',
2678
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
2707
2679
  >
2708
2680
  }
2709
2681
  | {
2710
2682
  type: 'serialization.failure'
2711
2683
  mimeType: MIMEType_2
2712
2684
  reason: string
2713
- dataTransfer: DataTransfer
2714
- originEvent: Omit<
2715
- PickFromUnion_2<
2716
- NativeBehaviorEvent,
2717
- 'type',
2718
- 'copy' | 'cut' | 'drag.dragstart'
2719
- >,
2720
- 'dataTransfer'
2685
+ originEvent: PickFromUnion_2<
2686
+ NativeBehaviorEvent,
2687
+ 'type',
2688
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
2721
2689
  >
2722
2690
  }
2723
2691
  | PatchEvent
@@ -2995,14 +2963,10 @@ declare const editorMachine: StateMachine<
2995
2963
  mimeType: `${string}/${string}`
2996
2964
  reason: string
2997
2965
  } & {
2998
- dataTransfer: DataTransfer
2999
- originEvent: Omit<
3000
- PickFromUnion_2<
3001
- NativeBehaviorEvent,
3002
- 'type',
3003
- 'drag.drop' | 'paste'
3004
- >,
3005
- 'dataTransfer'
2966
+ originEvent: PickFromUnion_2<
2967
+ NativeBehaviorEvent,
2968
+ 'type',
2969
+ 'drag.drop' | 'clipboard.paste'
3006
2970
  >
3007
2971
  })
3008
2972
  | ({
@@ -3010,42 +2974,30 @@ declare const editorMachine: StateMachine<
3010
2974
  data: Array<PortableTextBlock>
3011
2975
  mimeType: `${string}/${string}`
3012
2976
  } & {
3013
- dataTransfer: DataTransfer
3014
- originEvent: Omit<
3015
- PickFromUnion_2<
3016
- NativeBehaviorEvent,
3017
- 'type',
3018
- 'drag.drop' | 'paste'
3019
- >,
3020
- 'dataTransfer'
2977
+ originEvent: PickFromUnion_2<
2978
+ NativeBehaviorEvent,
2979
+ 'type',
2980
+ 'drag.drop' | 'clipboard.paste'
3021
2981
  >
3022
2982
  })
3023
2983
  | {
3024
2984
  type: 'serialization.success'
3025
2985
  mimeType: MIMEType_2
3026
2986
  data: string
3027
- dataTransfer: DataTransfer
3028
- originEvent: Omit<
3029
- PickFromUnion_2<
3030
- NativeBehaviorEvent,
3031
- 'type',
3032
- 'copy' | 'cut' | 'drag.dragstart'
3033
- >,
3034
- 'dataTransfer'
2987
+ originEvent: PickFromUnion_2<
2988
+ NativeBehaviorEvent,
2989
+ 'type',
2990
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
3035
2991
  >
3036
2992
  }
3037
2993
  | {
3038
2994
  type: 'serialization.failure'
3039
2995
  mimeType: MIMEType_2
3040
2996
  reason: string
3041
- dataTransfer: DataTransfer
3042
- originEvent: Omit<
3043
- PickFromUnion_2<
3044
- NativeBehaviorEvent,
3045
- 'type',
3046
- 'copy' | 'cut' | 'drag.dragstart'
3047
- >,
3048
- 'dataTransfer'
2997
+ originEvent: PickFromUnion_2<
2998
+ NativeBehaviorEvent,
2999
+ 'type',
3000
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
3049
3001
  >
3050
3002
  }
3051
3003
  | InternalPatchEvent
@@ -3387,14 +3339,10 @@ declare const editorMachine: StateMachine<
3387
3339
  mimeType: `${string}/${string}`
3388
3340
  reason: string
3389
3341
  } & {
3390
- dataTransfer: DataTransfer
3391
- originEvent: Omit<
3392
- PickFromUnion_2<
3393
- NativeBehaviorEvent,
3394
- 'type',
3395
- 'drag.drop' | 'paste'
3396
- >,
3397
- 'dataTransfer'
3342
+ originEvent: PickFromUnion_2<
3343
+ NativeBehaviorEvent,
3344
+ 'type',
3345
+ 'drag.drop' | 'clipboard.paste'
3398
3346
  >
3399
3347
  })
3400
3348
  | ({
@@ -3402,42 +3350,30 @@ declare const editorMachine: StateMachine<
3402
3350
  data: Array<PortableTextBlock>
3403
3351
  mimeType: `${string}/${string}`
3404
3352
  } & {
3405
- dataTransfer: DataTransfer
3406
- originEvent: Omit<
3407
- PickFromUnion_2<
3408
- NativeBehaviorEvent,
3409
- 'type',
3410
- 'drag.drop' | 'paste'
3411
- >,
3412
- 'dataTransfer'
3353
+ originEvent: PickFromUnion_2<
3354
+ NativeBehaviorEvent,
3355
+ 'type',
3356
+ 'drag.drop' | 'clipboard.paste'
3413
3357
  >
3414
3358
  })
3415
3359
  | {
3416
3360
  type: 'serialization.success'
3417
3361
  mimeType: MIMEType_2
3418
3362
  data: string
3419
- dataTransfer: DataTransfer
3420
- originEvent: Omit<
3421
- PickFromUnion_2<
3422
- NativeBehaviorEvent,
3423
- 'type',
3424
- 'copy' | 'cut' | 'drag.dragstart'
3425
- >,
3426
- 'dataTransfer'
3363
+ originEvent: PickFromUnion_2<
3364
+ NativeBehaviorEvent,
3365
+ 'type',
3366
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
3427
3367
  >
3428
3368
  }
3429
3369
  | {
3430
3370
  type: 'serialization.failure'
3431
3371
  mimeType: MIMEType_2
3432
3372
  reason: string
3433
- dataTransfer: DataTransfer
3434
- originEvent: Omit<
3435
- PickFromUnion_2<
3436
- NativeBehaviorEvent,
3437
- 'type',
3438
- 'copy' | 'cut' | 'drag.dragstart'
3439
- >,
3440
- 'dataTransfer'
3373
+ originEvent: PickFromUnion_2<
3374
+ NativeBehaviorEvent,
3375
+ 'type',
3376
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
3441
3377
  >
3442
3378
  }
3443
3379
  | PatchEvent
@@ -3718,14 +3654,10 @@ declare const editorMachine: StateMachine<
3718
3654
  mimeType: `${string}/${string}`
3719
3655
  reason: string
3720
3656
  } & {
3721
- dataTransfer: DataTransfer
3722
- originEvent: Omit<
3723
- PickFromUnion_2<
3724
- NativeBehaviorEvent,
3725
- 'type',
3726
- 'drag.drop' | 'paste'
3727
- >,
3728
- 'dataTransfer'
3657
+ originEvent: PickFromUnion_2<
3658
+ NativeBehaviorEvent,
3659
+ 'type',
3660
+ 'drag.drop' | 'clipboard.paste'
3729
3661
  >
3730
3662
  })
3731
3663
  | ({
@@ -3733,42 +3665,30 @@ declare const editorMachine: StateMachine<
3733
3665
  data: Array<PortableTextBlock>
3734
3666
  mimeType: `${string}/${string}`
3735
3667
  } & {
3736
- dataTransfer: DataTransfer
3737
- originEvent: Omit<
3738
- PickFromUnion_2<
3739
- NativeBehaviorEvent,
3740
- 'type',
3741
- 'drag.drop' | 'paste'
3742
- >,
3743
- 'dataTransfer'
3668
+ originEvent: PickFromUnion_2<
3669
+ NativeBehaviorEvent,
3670
+ 'type',
3671
+ 'drag.drop' | 'clipboard.paste'
3744
3672
  >
3745
3673
  })
3746
3674
  | {
3747
3675
  type: 'serialization.success'
3748
3676
  mimeType: MIMEType_2
3749
3677
  data: string
3750
- dataTransfer: DataTransfer
3751
- originEvent: Omit<
3752
- PickFromUnion_2<
3753
- NativeBehaviorEvent,
3754
- 'type',
3755
- 'copy' | 'cut' | 'drag.dragstart'
3756
- >,
3757
- 'dataTransfer'
3678
+ originEvent: PickFromUnion_2<
3679
+ NativeBehaviorEvent,
3680
+ 'type',
3681
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
3758
3682
  >
3759
3683
  }
3760
3684
  | {
3761
3685
  type: 'serialization.failure'
3762
3686
  mimeType: MIMEType_2
3763
3687
  reason: string
3764
- dataTransfer: DataTransfer
3765
- originEvent: Omit<
3766
- PickFromUnion_2<
3767
- NativeBehaviorEvent,
3768
- 'type',
3769
- 'copy' | 'cut' | 'drag.dragstart'
3770
- >,
3771
- 'dataTransfer'
3688
+ originEvent: PickFromUnion_2<
3689
+ NativeBehaviorEvent,
3690
+ 'type',
3691
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
3772
3692
  >
3773
3693
  }
3774
3694
  | InternalPatchEvent
@@ -4110,14 +4030,10 @@ declare const editorMachine: StateMachine<
4110
4030
  mimeType: `${string}/${string}`
4111
4031
  reason: string
4112
4032
  } & {
4113
- dataTransfer: DataTransfer
4114
- originEvent: Omit<
4115
- PickFromUnion_2<
4116
- NativeBehaviorEvent,
4117
- 'type',
4118
- 'drag.drop' | 'paste'
4119
- >,
4120
- 'dataTransfer'
4033
+ originEvent: PickFromUnion_2<
4034
+ NativeBehaviorEvent,
4035
+ 'type',
4036
+ 'drag.drop' | 'clipboard.paste'
4121
4037
  >
4122
4038
  })
4123
4039
  | ({
@@ -4125,42 +4041,30 @@ declare const editorMachine: StateMachine<
4125
4041
  data: Array<PortableTextBlock>
4126
4042
  mimeType: `${string}/${string}`
4127
4043
  } & {
4128
- dataTransfer: DataTransfer
4129
- originEvent: Omit<
4130
- PickFromUnion_2<
4131
- NativeBehaviorEvent,
4132
- 'type',
4133
- 'drag.drop' | 'paste'
4134
- >,
4135
- 'dataTransfer'
4044
+ originEvent: PickFromUnion_2<
4045
+ NativeBehaviorEvent,
4046
+ 'type',
4047
+ 'drag.drop' | 'clipboard.paste'
4136
4048
  >
4137
4049
  })
4138
4050
  | {
4139
4051
  type: 'serialization.success'
4140
4052
  mimeType: MIMEType_2
4141
4053
  data: string
4142
- dataTransfer: DataTransfer
4143
- originEvent: Omit<
4144
- PickFromUnion_2<
4145
- NativeBehaviorEvent,
4146
- 'type',
4147
- 'copy' | 'cut' | 'drag.dragstart'
4148
- >,
4149
- 'dataTransfer'
4054
+ originEvent: PickFromUnion_2<
4055
+ NativeBehaviorEvent,
4056
+ 'type',
4057
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
4150
4058
  >
4151
4059
  }
4152
4060
  | {
4153
4061
  type: 'serialization.failure'
4154
4062
  mimeType: MIMEType_2
4155
4063
  reason: string
4156
- dataTransfer: DataTransfer
4157
- originEvent: Omit<
4158
- PickFromUnion_2<
4159
- NativeBehaviorEvent,
4160
- 'type',
4161
- 'copy' | 'cut' | 'drag.dragstart'
4162
- >,
4163
- 'dataTransfer'
4064
+ originEvent: PickFromUnion_2<
4065
+ NativeBehaviorEvent,
4066
+ 'type',
4067
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
4164
4068
  >
4165
4069
  }
4166
4070
  | PatchEvent
@@ -4440,14 +4344,10 @@ declare const editorMachine: StateMachine<
4440
4344
  mimeType: `${string}/${string}`
4441
4345
  reason: string
4442
4346
  } & {
4443
- dataTransfer: DataTransfer
4444
- originEvent: Omit<
4445
- PickFromUnion_2<
4446
- NativeBehaviorEvent,
4447
- 'type',
4448
- 'drag.drop' | 'paste'
4449
- >,
4450
- 'dataTransfer'
4347
+ originEvent: PickFromUnion_2<
4348
+ NativeBehaviorEvent,
4349
+ 'type',
4350
+ 'drag.drop' | 'clipboard.paste'
4451
4351
  >
4452
4352
  })
4453
4353
  | ({
@@ -4455,42 +4355,30 @@ declare const editorMachine: StateMachine<
4455
4355
  data: Array<PortableTextBlock>
4456
4356
  mimeType: `${string}/${string}`
4457
4357
  } & {
4458
- dataTransfer: DataTransfer
4459
- originEvent: Omit<
4460
- PickFromUnion_2<
4461
- NativeBehaviorEvent,
4462
- 'type',
4463
- 'drag.drop' | 'paste'
4464
- >,
4465
- 'dataTransfer'
4358
+ originEvent: PickFromUnion_2<
4359
+ NativeBehaviorEvent,
4360
+ 'type',
4361
+ 'drag.drop' | 'clipboard.paste'
4466
4362
  >
4467
4363
  })
4468
4364
  | {
4469
4365
  type: 'serialization.success'
4470
4366
  mimeType: MIMEType_2
4471
4367
  data: string
4472
- dataTransfer: DataTransfer
4473
- originEvent: Omit<
4474
- PickFromUnion_2<
4475
- NativeBehaviorEvent,
4476
- 'type',
4477
- 'copy' | 'cut' | 'drag.dragstart'
4478
- >,
4479
- 'dataTransfer'
4368
+ originEvent: PickFromUnion_2<
4369
+ NativeBehaviorEvent,
4370
+ 'type',
4371
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
4480
4372
  >
4481
4373
  }
4482
4374
  | {
4483
4375
  type: 'serialization.failure'
4484
4376
  mimeType: MIMEType_2
4485
4377
  reason: string
4486
- dataTransfer: DataTransfer
4487
- originEvent: Omit<
4488
- PickFromUnion_2<
4489
- NativeBehaviorEvent,
4490
- 'type',
4491
- 'copy' | 'cut' | 'drag.dragstart'
4492
- >,
4493
- 'dataTransfer'
4378
+ originEvent: PickFromUnion_2<
4379
+ NativeBehaviorEvent,
4380
+ 'type',
4381
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
4494
4382
  >
4495
4383
  }
4496
4384
  | InternalPatchEvent
@@ -4832,14 +4720,10 @@ declare const editorMachine: StateMachine<
4832
4720
  mimeType: `${string}/${string}`
4833
4721
  reason: string
4834
4722
  } & {
4835
- dataTransfer: DataTransfer
4836
- originEvent: Omit<
4837
- PickFromUnion_2<
4838
- NativeBehaviorEvent,
4839
- 'type',
4840
- 'drag.drop' | 'paste'
4841
- >,
4842
- 'dataTransfer'
4723
+ originEvent: PickFromUnion_2<
4724
+ NativeBehaviorEvent,
4725
+ 'type',
4726
+ 'drag.drop' | 'clipboard.paste'
4843
4727
  >
4844
4728
  })
4845
4729
  | ({
@@ -4847,42 +4731,30 @@ declare const editorMachine: StateMachine<
4847
4731
  data: Array<PortableTextBlock>
4848
4732
  mimeType: `${string}/${string}`
4849
4733
  } & {
4850
- dataTransfer: DataTransfer
4851
- originEvent: Omit<
4852
- PickFromUnion_2<
4853
- NativeBehaviorEvent,
4854
- 'type',
4855
- 'drag.drop' | 'paste'
4856
- >,
4857
- 'dataTransfer'
4734
+ originEvent: PickFromUnion_2<
4735
+ NativeBehaviorEvent,
4736
+ 'type',
4737
+ 'drag.drop' | 'clipboard.paste'
4858
4738
  >
4859
4739
  })
4860
4740
  | {
4861
4741
  type: 'serialization.success'
4862
4742
  mimeType: MIMEType_2
4863
4743
  data: string
4864
- dataTransfer: DataTransfer
4865
- originEvent: Omit<
4866
- PickFromUnion_2<
4867
- NativeBehaviorEvent,
4868
- 'type',
4869
- 'copy' | 'cut' | 'drag.dragstart'
4870
- >,
4871
- 'dataTransfer'
4744
+ originEvent: PickFromUnion_2<
4745
+ NativeBehaviorEvent,
4746
+ 'type',
4747
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
4872
4748
  >
4873
4749
  }
4874
4750
  | {
4875
4751
  type: 'serialization.failure'
4876
4752
  mimeType: MIMEType_2
4877
4753
  reason: string
4878
- dataTransfer: DataTransfer
4879
- originEvent: Omit<
4880
- PickFromUnion_2<
4881
- NativeBehaviorEvent,
4882
- 'type',
4883
- 'copy' | 'cut' | 'drag.dragstart'
4884
- >,
4885
- 'dataTransfer'
4754
+ originEvent: PickFromUnion_2<
4755
+ NativeBehaviorEvent,
4756
+ 'type',
4757
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
4886
4758
  >
4887
4759
  }
4888
4760
  | PatchEvent
@@ -5161,14 +5033,10 @@ declare const editorMachine: StateMachine<
5161
5033
  mimeType: `${string}/${string}`
5162
5034
  reason: string
5163
5035
  } & {
5164
- dataTransfer: DataTransfer
5165
- originEvent: Omit<
5166
- PickFromUnion_2<
5167
- NativeBehaviorEvent,
5168
- 'type',
5169
- 'drag.drop' | 'paste'
5170
- >,
5171
- 'dataTransfer'
5036
+ originEvent: PickFromUnion_2<
5037
+ NativeBehaviorEvent,
5038
+ 'type',
5039
+ 'drag.drop' | 'clipboard.paste'
5172
5040
  >
5173
5041
  })
5174
5042
  | ({
@@ -5176,42 +5044,30 @@ declare const editorMachine: StateMachine<
5176
5044
  data: Array<PortableTextBlock>
5177
5045
  mimeType: `${string}/${string}`
5178
5046
  } & {
5179
- dataTransfer: DataTransfer
5180
- originEvent: Omit<
5181
- PickFromUnion_2<
5182
- NativeBehaviorEvent,
5183
- 'type',
5184
- 'drag.drop' | 'paste'
5185
- >,
5186
- 'dataTransfer'
5047
+ originEvent: PickFromUnion_2<
5048
+ NativeBehaviorEvent,
5049
+ 'type',
5050
+ 'drag.drop' | 'clipboard.paste'
5187
5051
  >
5188
5052
  })
5189
5053
  | {
5190
5054
  type: 'serialization.success'
5191
5055
  mimeType: MIMEType_2
5192
5056
  data: string
5193
- dataTransfer: DataTransfer
5194
- originEvent: Omit<
5195
- PickFromUnion_2<
5196
- NativeBehaviorEvent,
5197
- 'type',
5198
- 'copy' | 'cut' | 'drag.dragstart'
5199
- >,
5200
- 'dataTransfer'
5057
+ originEvent: PickFromUnion_2<
5058
+ NativeBehaviorEvent,
5059
+ 'type',
5060
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
5201
5061
  >
5202
5062
  }
5203
5063
  | {
5204
5064
  type: 'serialization.failure'
5205
5065
  mimeType: MIMEType_2
5206
5066
  reason: string
5207
- dataTransfer: DataTransfer
5208
- originEvent: Omit<
5209
- PickFromUnion_2<
5210
- NativeBehaviorEvent,
5211
- 'type',
5212
- 'copy' | 'cut' | 'drag.dragstart'
5213
- >,
5214
- 'dataTransfer'
5067
+ originEvent: PickFromUnion_2<
5068
+ NativeBehaviorEvent,
5069
+ 'type',
5070
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
5215
5071
  >
5216
5072
  }
5217
5073
  | InternalPatchEvent
@@ -5553,14 +5409,10 @@ declare const editorMachine: StateMachine<
5553
5409
  mimeType: `${string}/${string}`
5554
5410
  reason: string
5555
5411
  } & {
5556
- dataTransfer: DataTransfer
5557
- originEvent: Omit<
5558
- PickFromUnion_2<
5559
- NativeBehaviorEvent,
5560
- 'type',
5561
- 'drag.drop' | 'paste'
5562
- >,
5563
- 'dataTransfer'
5412
+ originEvent: PickFromUnion_2<
5413
+ NativeBehaviorEvent,
5414
+ 'type',
5415
+ 'drag.drop' | 'clipboard.paste'
5564
5416
  >
5565
5417
  })
5566
5418
  | ({
@@ -5568,42 +5420,30 @@ declare const editorMachine: StateMachine<
5568
5420
  data: Array<PortableTextBlock>
5569
5421
  mimeType: `${string}/${string}`
5570
5422
  } & {
5571
- dataTransfer: DataTransfer
5572
- originEvent: Omit<
5573
- PickFromUnion_2<
5574
- NativeBehaviorEvent,
5575
- 'type',
5576
- 'drag.drop' | 'paste'
5577
- >,
5578
- 'dataTransfer'
5423
+ originEvent: PickFromUnion_2<
5424
+ NativeBehaviorEvent,
5425
+ 'type',
5426
+ 'drag.drop' | 'clipboard.paste'
5579
5427
  >
5580
5428
  })
5581
5429
  | {
5582
5430
  type: 'serialization.success'
5583
5431
  mimeType: MIMEType_2
5584
5432
  data: string
5585
- dataTransfer: DataTransfer
5586
- originEvent: Omit<
5587
- PickFromUnion_2<
5588
- NativeBehaviorEvent,
5589
- 'type',
5590
- 'copy' | 'cut' | 'drag.dragstart'
5591
- >,
5592
- 'dataTransfer'
5433
+ originEvent: PickFromUnion_2<
5434
+ NativeBehaviorEvent,
5435
+ 'type',
5436
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
5593
5437
  >
5594
5438
  }
5595
5439
  | {
5596
5440
  type: 'serialization.failure'
5597
5441
  mimeType: MIMEType_2
5598
5442
  reason: string
5599
- dataTransfer: DataTransfer
5600
- originEvent: Omit<
5601
- PickFromUnion_2<
5602
- NativeBehaviorEvent,
5603
- 'type',
5604
- 'copy' | 'cut' | 'drag.dragstart'
5605
- >,
5606
- 'dataTransfer'
5443
+ originEvent: PickFromUnion_2<
5444
+ NativeBehaviorEvent,
5445
+ 'type',
5446
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
5607
5447
  >
5608
5448
  }
5609
5449
  | PatchEvent
@@ -5883,14 +5723,10 @@ declare const editorMachine: StateMachine<
5883
5723
  mimeType: `${string}/${string}`
5884
5724
  reason: string
5885
5725
  } & {
5886
- dataTransfer: DataTransfer
5887
- originEvent: Omit<
5888
- PickFromUnion_2<
5889
- NativeBehaviorEvent,
5890
- 'type',
5891
- 'drag.drop' | 'paste'
5892
- >,
5893
- 'dataTransfer'
5726
+ originEvent: PickFromUnion_2<
5727
+ NativeBehaviorEvent,
5728
+ 'type',
5729
+ 'drag.drop' | 'clipboard.paste'
5894
5730
  >
5895
5731
  })
5896
5732
  | ({
@@ -5898,42 +5734,30 @@ declare const editorMachine: StateMachine<
5898
5734
  data: Array<PortableTextBlock>
5899
5735
  mimeType: `${string}/${string}`
5900
5736
  } & {
5901
- dataTransfer: DataTransfer
5902
- originEvent: Omit<
5903
- PickFromUnion_2<
5904
- NativeBehaviorEvent,
5905
- 'type',
5906
- 'drag.drop' | 'paste'
5907
- >,
5908
- 'dataTransfer'
5737
+ originEvent: PickFromUnion_2<
5738
+ NativeBehaviorEvent,
5739
+ 'type',
5740
+ 'drag.drop' | 'clipboard.paste'
5909
5741
  >
5910
5742
  })
5911
5743
  | {
5912
5744
  type: 'serialization.success'
5913
5745
  mimeType: MIMEType_2
5914
5746
  data: string
5915
- dataTransfer: DataTransfer
5916
- originEvent: Omit<
5917
- PickFromUnion_2<
5918
- NativeBehaviorEvent,
5919
- 'type',
5920
- 'copy' | 'cut' | 'drag.dragstart'
5921
- >,
5922
- 'dataTransfer'
5747
+ originEvent: PickFromUnion_2<
5748
+ NativeBehaviorEvent,
5749
+ 'type',
5750
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
5923
5751
  >
5924
5752
  }
5925
5753
  | {
5926
5754
  type: 'serialization.failure'
5927
5755
  mimeType: MIMEType_2
5928
5756
  reason: string
5929
- dataTransfer: DataTransfer
5930
- originEvent: Omit<
5931
- PickFromUnion_2<
5932
- NativeBehaviorEvent,
5933
- 'type',
5934
- 'copy' | 'cut' | 'drag.dragstart'
5935
- >,
5936
- 'dataTransfer'
5757
+ originEvent: PickFromUnion_2<
5758
+ NativeBehaviorEvent,
5759
+ 'type',
5760
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
5937
5761
  >
5938
5762
  }
5939
5763
  | InternalPatchEvent
@@ -6297,14 +6121,10 @@ declare const editorMachine: StateMachine<
6297
6121
  mimeType: `${string}/${string}`
6298
6122
  reason: string
6299
6123
  } & {
6300
- dataTransfer: DataTransfer
6301
- originEvent: Omit<
6302
- PickFromUnion_2<
6303
- NativeBehaviorEvent,
6304
- 'type',
6305
- 'drag.drop' | 'paste'
6306
- >,
6307
- 'dataTransfer'
6124
+ originEvent: PickFromUnion_2<
6125
+ NativeBehaviorEvent,
6126
+ 'type',
6127
+ 'drag.drop' | 'clipboard.paste'
6308
6128
  >
6309
6129
  })
6310
6130
  | ({
@@ -6312,42 +6132,30 @@ declare const editorMachine: StateMachine<
6312
6132
  data: Array<PortableTextBlock>
6313
6133
  mimeType: `${string}/${string}`
6314
6134
  } & {
6315
- dataTransfer: DataTransfer
6316
- originEvent: Omit<
6317
- PickFromUnion_2<
6318
- NativeBehaviorEvent,
6319
- 'type',
6320
- 'drag.drop' | 'paste'
6321
- >,
6322
- 'dataTransfer'
6135
+ originEvent: PickFromUnion_2<
6136
+ NativeBehaviorEvent,
6137
+ 'type',
6138
+ 'drag.drop' | 'clipboard.paste'
6323
6139
  >
6324
6140
  })
6325
6141
  | {
6326
6142
  type: 'serialization.success'
6327
6143
  mimeType: MIMEType_2
6328
6144
  data: string
6329
- dataTransfer: DataTransfer
6330
- originEvent: Omit<
6331
- PickFromUnion_2<
6332
- NativeBehaviorEvent,
6333
- 'type',
6334
- 'copy' | 'cut' | 'drag.dragstart'
6335
- >,
6336
- 'dataTransfer'
6145
+ originEvent: PickFromUnion_2<
6146
+ NativeBehaviorEvent,
6147
+ 'type',
6148
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
6337
6149
  >
6338
6150
  }
6339
6151
  | {
6340
6152
  type: 'serialization.failure'
6341
6153
  mimeType: MIMEType_2
6342
6154
  reason: string
6343
- dataTransfer: DataTransfer
6344
- originEvent: Omit<
6345
- PickFromUnion_2<
6346
- NativeBehaviorEvent,
6347
- 'type',
6348
- 'copy' | 'cut' | 'drag.dragstart'
6349
- >,
6350
- 'dataTransfer'
6155
+ originEvent: PickFromUnion_2<
6156
+ NativeBehaviorEvent,
6157
+ 'type',
6158
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
6351
6159
  >
6352
6160
  }
6353
6161
  | InternalPatchEvent
@@ -6689,14 +6497,10 @@ declare const editorMachine: StateMachine<
6689
6497
  mimeType: `${string}/${string}`
6690
6498
  reason: string
6691
6499
  } & {
6692
- dataTransfer: DataTransfer
6693
- originEvent: Omit<
6694
- PickFromUnion_2<
6695
- NativeBehaviorEvent,
6696
- 'type',
6697
- 'drag.drop' | 'paste'
6698
- >,
6699
- 'dataTransfer'
6500
+ originEvent: PickFromUnion_2<
6501
+ NativeBehaviorEvent,
6502
+ 'type',
6503
+ 'drag.drop' | 'clipboard.paste'
6700
6504
  >
6701
6505
  })
6702
6506
  | ({
@@ -6704,42 +6508,30 @@ declare const editorMachine: StateMachine<
6704
6508
  data: Array<PortableTextBlock>
6705
6509
  mimeType: `${string}/${string}`
6706
6510
  } & {
6707
- dataTransfer: DataTransfer
6708
- originEvent: Omit<
6709
- PickFromUnion_2<
6710
- NativeBehaviorEvent,
6711
- 'type',
6712
- 'drag.drop' | 'paste'
6713
- >,
6714
- 'dataTransfer'
6511
+ originEvent: PickFromUnion_2<
6512
+ NativeBehaviorEvent,
6513
+ 'type',
6514
+ 'drag.drop' | 'clipboard.paste'
6715
6515
  >
6716
6516
  })
6717
6517
  | {
6718
6518
  type: 'serialization.success'
6719
6519
  mimeType: MIMEType_2
6720
6520
  data: string
6721
- dataTransfer: DataTransfer
6722
- originEvent: Omit<
6723
- PickFromUnion_2<
6724
- NativeBehaviorEvent,
6725
- 'type',
6726
- 'copy' | 'cut' | 'drag.dragstart'
6727
- >,
6728
- 'dataTransfer'
6521
+ originEvent: PickFromUnion_2<
6522
+ NativeBehaviorEvent,
6523
+ 'type',
6524
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
6729
6525
  >
6730
6526
  }
6731
6527
  | {
6732
6528
  type: 'serialization.failure'
6733
6529
  mimeType: MIMEType_2
6734
6530
  reason: string
6735
- dataTransfer: DataTransfer
6736
- originEvent: Omit<
6737
- PickFromUnion_2<
6738
- NativeBehaviorEvent,
6739
- 'type',
6740
- 'copy' | 'cut' | 'drag.dragstart'
6741
- >,
6742
- 'dataTransfer'
6531
+ originEvent: PickFromUnion_2<
6532
+ NativeBehaviorEvent,
6533
+ 'type',
6534
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
6743
6535
  >
6744
6536
  }
6745
6537
  | PatchEvent
@@ -7019,14 +6811,10 @@ declare const editorMachine: StateMachine<
7019
6811
  mimeType: `${string}/${string}`
7020
6812
  reason: string
7021
6813
  } & {
7022
- dataTransfer: DataTransfer
7023
- originEvent: Omit<
7024
- PickFromUnion_2<
7025
- NativeBehaviorEvent,
7026
- 'type',
7027
- 'drag.drop' | 'paste'
7028
- >,
7029
- 'dataTransfer'
6814
+ originEvent: PickFromUnion_2<
6815
+ NativeBehaviorEvent,
6816
+ 'type',
6817
+ 'drag.drop' | 'clipboard.paste'
7030
6818
  >
7031
6819
  })
7032
6820
  | ({
@@ -7034,42 +6822,30 @@ declare const editorMachine: StateMachine<
7034
6822
  data: Array<PortableTextBlock>
7035
6823
  mimeType: `${string}/${string}`
7036
6824
  } & {
7037
- dataTransfer: DataTransfer
7038
- originEvent: Omit<
7039
- PickFromUnion_2<
7040
- NativeBehaviorEvent,
7041
- 'type',
7042
- 'drag.drop' | 'paste'
7043
- >,
7044
- 'dataTransfer'
6825
+ originEvent: PickFromUnion_2<
6826
+ NativeBehaviorEvent,
6827
+ 'type',
6828
+ 'drag.drop' | 'clipboard.paste'
7045
6829
  >
7046
6830
  })
7047
6831
  | {
7048
6832
  type: 'serialization.success'
7049
6833
  mimeType: MIMEType_2
7050
6834
  data: string
7051
- dataTransfer: DataTransfer
7052
- originEvent: Omit<
7053
- PickFromUnion_2<
7054
- NativeBehaviorEvent,
7055
- 'type',
7056
- 'copy' | 'cut' | 'drag.dragstart'
7057
- >,
7058
- 'dataTransfer'
6835
+ originEvent: PickFromUnion_2<
6836
+ NativeBehaviorEvent,
6837
+ 'type',
6838
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
7059
6839
  >
7060
6840
  }
7061
6841
  | {
7062
6842
  type: 'serialization.failure'
7063
6843
  mimeType: MIMEType_2
7064
6844
  reason: string
7065
- dataTransfer: DataTransfer
7066
- originEvent: Omit<
7067
- PickFromUnion_2<
7068
- NativeBehaviorEvent,
7069
- 'type',
7070
- 'copy' | 'cut' | 'drag.dragstart'
7071
- >,
7072
- 'dataTransfer'
6845
+ originEvent: PickFromUnion_2<
6846
+ NativeBehaviorEvent,
6847
+ 'type',
6848
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
7073
6849
  >
7074
6850
  }
7075
6851
  | InternalPatchEvent
@@ -7411,14 +7187,10 @@ declare const editorMachine: StateMachine<
7411
7187
  mimeType: `${string}/${string}`
7412
7188
  reason: string
7413
7189
  } & {
7414
- dataTransfer: DataTransfer
7415
- originEvent: Omit<
7416
- PickFromUnion_2<
7417
- NativeBehaviorEvent,
7418
- 'type',
7419
- 'drag.drop' | 'paste'
7420
- >,
7421
- 'dataTransfer'
7190
+ originEvent: PickFromUnion_2<
7191
+ NativeBehaviorEvent,
7192
+ 'type',
7193
+ 'drag.drop' | 'clipboard.paste'
7422
7194
  >
7423
7195
  })
7424
7196
  | ({
@@ -7426,42 +7198,30 @@ declare const editorMachine: StateMachine<
7426
7198
  data: Array<PortableTextBlock>
7427
7199
  mimeType: `${string}/${string}`
7428
7200
  } & {
7429
- dataTransfer: DataTransfer
7430
- originEvent: Omit<
7431
- PickFromUnion_2<
7432
- NativeBehaviorEvent,
7433
- 'type',
7434
- 'drag.drop' | 'paste'
7435
- >,
7436
- 'dataTransfer'
7201
+ originEvent: PickFromUnion_2<
7202
+ NativeBehaviorEvent,
7203
+ 'type',
7204
+ 'drag.drop' | 'clipboard.paste'
7437
7205
  >
7438
7206
  })
7439
7207
  | {
7440
7208
  type: 'serialization.success'
7441
7209
  mimeType: MIMEType_2
7442
7210
  data: string
7443
- dataTransfer: DataTransfer
7444
- originEvent: Omit<
7445
- PickFromUnion_2<
7446
- NativeBehaviorEvent,
7447
- 'type',
7448
- 'copy' | 'cut' | 'drag.dragstart'
7449
- >,
7450
- 'dataTransfer'
7211
+ originEvent: PickFromUnion_2<
7212
+ NativeBehaviorEvent,
7213
+ 'type',
7214
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
7451
7215
  >
7452
7216
  }
7453
7217
  | {
7454
7218
  type: 'serialization.failure'
7455
7219
  mimeType: MIMEType_2
7456
7220
  reason: string
7457
- dataTransfer: DataTransfer
7458
- originEvent: Omit<
7459
- PickFromUnion_2<
7460
- NativeBehaviorEvent,
7461
- 'type',
7462
- 'copy' | 'cut' | 'drag.dragstart'
7463
- >,
7464
- 'dataTransfer'
7221
+ originEvent: PickFromUnion_2<
7222
+ NativeBehaviorEvent,
7223
+ 'type',
7224
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
7465
7225
  >
7466
7226
  }
7467
7227
  | PatchEvent
@@ -7739,14 +7499,10 @@ declare const editorMachine: StateMachine<
7739
7499
  mimeType: `${string}/${string}`
7740
7500
  reason: string
7741
7501
  } & {
7742
- dataTransfer: DataTransfer
7743
- originEvent: Omit<
7744
- PickFromUnion_2<
7745
- NativeBehaviorEvent,
7746
- 'type',
7747
- 'drag.drop' | 'paste'
7748
- >,
7749
- 'dataTransfer'
7502
+ originEvent: PickFromUnion_2<
7503
+ NativeBehaviorEvent,
7504
+ 'type',
7505
+ 'drag.drop' | 'clipboard.paste'
7750
7506
  >
7751
7507
  })
7752
7508
  | ({
@@ -7754,42 +7510,30 @@ declare const editorMachine: StateMachine<
7754
7510
  data: Array<PortableTextBlock>
7755
7511
  mimeType: `${string}/${string}`
7756
7512
  } & {
7757
- dataTransfer: DataTransfer
7758
- originEvent: Omit<
7759
- PickFromUnion_2<
7760
- NativeBehaviorEvent,
7761
- 'type',
7762
- 'drag.drop' | 'paste'
7763
- >,
7764
- 'dataTransfer'
7513
+ originEvent: PickFromUnion_2<
7514
+ NativeBehaviorEvent,
7515
+ 'type',
7516
+ 'drag.drop' | 'clipboard.paste'
7765
7517
  >
7766
7518
  })
7767
7519
  | {
7768
7520
  type: 'serialization.success'
7769
7521
  mimeType: MIMEType_2
7770
7522
  data: string
7771
- dataTransfer: DataTransfer
7772
- originEvent: Omit<
7773
- PickFromUnion_2<
7774
- NativeBehaviorEvent,
7775
- 'type',
7776
- 'copy' | 'cut' | 'drag.dragstart'
7777
- >,
7778
- 'dataTransfer'
7523
+ originEvent: PickFromUnion_2<
7524
+ NativeBehaviorEvent,
7525
+ 'type',
7526
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
7779
7527
  >
7780
7528
  }
7781
7529
  | {
7782
7530
  type: 'serialization.failure'
7783
7531
  mimeType: MIMEType_2
7784
7532
  reason: string
7785
- dataTransfer: DataTransfer
7786
- originEvent: Omit<
7787
- PickFromUnion_2<
7788
- NativeBehaviorEvent,
7789
- 'type',
7790
- 'copy' | 'cut' | 'drag.dragstart'
7791
- >,
7792
- 'dataTransfer'
7533
+ originEvent: PickFromUnion_2<
7534
+ NativeBehaviorEvent,
7535
+ 'type',
7536
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
7793
7537
  >
7794
7538
  }
7795
7539
  | InternalPatchEvent
@@ -8131,14 +7875,10 @@ declare const editorMachine: StateMachine<
8131
7875
  mimeType: `${string}/${string}`
8132
7876
  reason: string
8133
7877
  } & {
8134
- dataTransfer: DataTransfer
8135
- originEvent: Omit<
8136
- PickFromUnion_2<
8137
- NativeBehaviorEvent,
8138
- 'type',
8139
- 'drag.drop' | 'paste'
8140
- >,
8141
- 'dataTransfer'
7878
+ originEvent: PickFromUnion_2<
7879
+ NativeBehaviorEvent,
7880
+ 'type',
7881
+ 'drag.drop' | 'clipboard.paste'
8142
7882
  >
8143
7883
  })
8144
7884
  | ({
@@ -8146,42 +7886,30 @@ declare const editorMachine: StateMachine<
8146
7886
  data: Array<PortableTextBlock>
8147
7887
  mimeType: `${string}/${string}`
8148
7888
  } & {
8149
- dataTransfer: DataTransfer
8150
- originEvent: Omit<
8151
- PickFromUnion_2<
8152
- NativeBehaviorEvent,
8153
- 'type',
8154
- 'drag.drop' | 'paste'
8155
- >,
8156
- 'dataTransfer'
7889
+ originEvent: PickFromUnion_2<
7890
+ NativeBehaviorEvent,
7891
+ 'type',
7892
+ 'drag.drop' | 'clipboard.paste'
8157
7893
  >
8158
7894
  })
8159
7895
  | {
8160
7896
  type: 'serialization.success'
8161
7897
  mimeType: MIMEType_2
8162
7898
  data: string
8163
- dataTransfer: DataTransfer
8164
- originEvent: Omit<
8165
- PickFromUnion_2<
8166
- NativeBehaviorEvent,
8167
- 'type',
8168
- 'copy' | 'cut' | 'drag.dragstart'
8169
- >,
8170
- 'dataTransfer'
7899
+ originEvent: PickFromUnion_2<
7900
+ NativeBehaviorEvent,
7901
+ 'type',
7902
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
8171
7903
  >
8172
7904
  }
8173
7905
  | {
8174
7906
  type: 'serialization.failure'
8175
7907
  mimeType: MIMEType_2
8176
7908
  reason: string
8177
- dataTransfer: DataTransfer
8178
- originEvent: Omit<
8179
- PickFromUnion_2<
8180
- NativeBehaviorEvent,
8181
- 'type',
8182
- 'copy' | 'cut' | 'drag.dragstart'
8183
- >,
8184
- 'dataTransfer'
7909
+ originEvent: PickFromUnion_2<
7910
+ NativeBehaviorEvent,
7911
+ 'type',
7912
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
8185
7913
  >
8186
7914
  }
8187
7915
  | PatchEvent
@@ -8460,14 +8188,10 @@ declare const editorMachine: StateMachine<
8460
8188
  mimeType: `${string}/${string}`
8461
8189
  reason: string
8462
8190
  } & {
8463
- dataTransfer: DataTransfer
8464
- originEvent: Omit<
8465
- PickFromUnion_2<
8466
- NativeBehaviorEvent,
8467
- 'type',
8468
- 'drag.drop' | 'paste'
8469
- >,
8470
- 'dataTransfer'
8191
+ originEvent: PickFromUnion_2<
8192
+ NativeBehaviorEvent,
8193
+ 'type',
8194
+ 'drag.drop' | 'clipboard.paste'
8471
8195
  >
8472
8196
  })
8473
8197
  | ({
@@ -8475,42 +8199,30 @@ declare const editorMachine: StateMachine<
8475
8199
  data: Array<PortableTextBlock>
8476
8200
  mimeType: `${string}/${string}`
8477
8201
  } & {
8478
- dataTransfer: DataTransfer
8479
- originEvent: Omit<
8480
- PickFromUnion_2<
8481
- NativeBehaviorEvent,
8482
- 'type',
8483
- 'drag.drop' | 'paste'
8484
- >,
8485
- 'dataTransfer'
8202
+ originEvent: PickFromUnion_2<
8203
+ NativeBehaviorEvent,
8204
+ 'type',
8205
+ 'drag.drop' | 'clipboard.paste'
8486
8206
  >
8487
8207
  })
8488
8208
  | {
8489
8209
  type: 'serialization.success'
8490
8210
  mimeType: MIMEType_2
8491
8211
  data: string
8492
- dataTransfer: DataTransfer
8493
- originEvent: Omit<
8494
- PickFromUnion_2<
8495
- NativeBehaviorEvent,
8496
- 'type',
8497
- 'copy' | 'cut' | 'drag.dragstart'
8498
- >,
8499
- 'dataTransfer'
8212
+ originEvent: PickFromUnion_2<
8213
+ NativeBehaviorEvent,
8214
+ 'type',
8215
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
8500
8216
  >
8501
8217
  }
8502
8218
  | {
8503
8219
  type: 'serialization.failure'
8504
8220
  mimeType: MIMEType_2
8505
8221
  reason: string
8506
- dataTransfer: DataTransfer
8507
- originEvent: Omit<
8508
- PickFromUnion_2<
8509
- NativeBehaviorEvent,
8510
- 'type',
8511
- 'copy' | 'cut' | 'drag.dragstart'
8512
- >,
8513
- 'dataTransfer'
8222
+ originEvent: PickFromUnion_2<
8223
+ NativeBehaviorEvent,
8224
+ 'type',
8225
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
8514
8226
  >
8515
8227
  }
8516
8228
  | InternalPatchEvent
@@ -8852,14 +8564,10 @@ declare const editorMachine: StateMachine<
8852
8564
  mimeType: `${string}/${string}`
8853
8565
  reason: string
8854
8566
  } & {
8855
- dataTransfer: DataTransfer
8856
- originEvent: Omit<
8857
- PickFromUnion_2<
8858
- NativeBehaviorEvent,
8859
- 'type',
8860
- 'drag.drop' | 'paste'
8861
- >,
8862
- 'dataTransfer'
8567
+ originEvent: PickFromUnion_2<
8568
+ NativeBehaviorEvent,
8569
+ 'type',
8570
+ 'drag.drop' | 'clipboard.paste'
8863
8571
  >
8864
8572
  })
8865
8573
  | ({
@@ -8867,42 +8575,30 @@ declare const editorMachine: StateMachine<
8867
8575
  data: Array<PortableTextBlock>
8868
8576
  mimeType: `${string}/${string}`
8869
8577
  } & {
8870
- dataTransfer: DataTransfer
8871
- originEvent: Omit<
8872
- PickFromUnion_2<
8873
- NativeBehaviorEvent,
8874
- 'type',
8875
- 'drag.drop' | 'paste'
8876
- >,
8877
- 'dataTransfer'
8578
+ originEvent: PickFromUnion_2<
8579
+ NativeBehaviorEvent,
8580
+ 'type',
8581
+ 'drag.drop' | 'clipboard.paste'
8878
8582
  >
8879
8583
  })
8880
8584
  | {
8881
8585
  type: 'serialization.success'
8882
8586
  mimeType: MIMEType_2
8883
8587
  data: string
8884
- dataTransfer: DataTransfer
8885
- originEvent: Omit<
8886
- PickFromUnion_2<
8887
- NativeBehaviorEvent,
8888
- 'type',
8889
- 'copy' | 'cut' | 'drag.dragstart'
8890
- >,
8891
- 'dataTransfer'
8588
+ originEvent: PickFromUnion_2<
8589
+ NativeBehaviorEvent,
8590
+ 'type',
8591
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
8892
8592
  >
8893
8593
  }
8894
8594
  | {
8895
8595
  type: 'serialization.failure'
8896
8596
  mimeType: MIMEType_2
8897
8597
  reason: string
8898
- dataTransfer: DataTransfer
8899
- originEvent: Omit<
8900
- PickFromUnion_2<
8901
- NativeBehaviorEvent,
8902
- 'type',
8903
- 'copy' | 'cut' | 'drag.dragstart'
8904
- >,
8905
- 'dataTransfer'
8598
+ originEvent: PickFromUnion_2<
8599
+ NativeBehaviorEvent,
8600
+ 'type',
8601
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
8906
8602
  >
8907
8603
  }
8908
8604
  | PatchEvent
@@ -9184,14 +8880,10 @@ declare const editorMachine: StateMachine<
9184
8880
  mimeType: `${string}/${string}`
9185
8881
  reason: string
9186
8882
  } & {
9187
- dataTransfer: DataTransfer
9188
- originEvent: Omit<
9189
- PickFromUnion_2<
9190
- NativeBehaviorEvent,
9191
- 'type',
9192
- 'drag.drop' | 'paste'
9193
- >,
9194
- 'dataTransfer'
8883
+ originEvent: PickFromUnion_2<
8884
+ NativeBehaviorEvent,
8885
+ 'type',
8886
+ 'drag.drop' | 'clipboard.paste'
9195
8887
  >
9196
8888
  })
9197
8889
  | ({
@@ -9199,42 +8891,30 @@ declare const editorMachine: StateMachine<
9199
8891
  data: Array<PortableTextBlock>
9200
8892
  mimeType: `${string}/${string}`
9201
8893
  } & {
9202
- dataTransfer: DataTransfer
9203
- originEvent: Omit<
9204
- PickFromUnion_2<
9205
- NativeBehaviorEvent,
9206
- 'type',
9207
- 'drag.drop' | 'paste'
9208
- >,
9209
- 'dataTransfer'
8894
+ originEvent: PickFromUnion_2<
8895
+ NativeBehaviorEvent,
8896
+ 'type',
8897
+ 'drag.drop' | 'clipboard.paste'
9210
8898
  >
9211
8899
  })
9212
8900
  | {
9213
8901
  type: 'serialization.success'
9214
8902
  mimeType: MIMEType_2
9215
- data: string
9216
- dataTransfer: DataTransfer
9217
- originEvent: Omit<
9218
- PickFromUnion_2<
9219
- NativeBehaviorEvent,
9220
- 'type',
9221
- 'copy' | 'cut' | 'drag.dragstart'
9222
- >,
9223
- 'dataTransfer'
8903
+ data: string
8904
+ originEvent: PickFromUnion_2<
8905
+ NativeBehaviorEvent,
8906
+ 'type',
8907
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
9224
8908
  >
9225
8909
  }
9226
8910
  | {
9227
8911
  type: 'serialization.failure'
9228
8912
  mimeType: MIMEType_2
9229
8913
  reason: string
9230
- dataTransfer: DataTransfer
9231
- originEvent: Omit<
9232
- PickFromUnion_2<
9233
- NativeBehaviorEvent,
9234
- 'type',
9235
- 'copy' | 'cut' | 'drag.dragstart'
9236
- >,
9237
- 'dataTransfer'
8914
+ originEvent: PickFromUnion_2<
8915
+ NativeBehaviorEvent,
8916
+ 'type',
8917
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
9238
8918
  >
9239
8919
  }
9240
8920
  | InternalPatchEvent
@@ -9576,14 +9256,10 @@ declare const editorMachine: StateMachine<
9576
9256
  mimeType: `${string}/${string}`
9577
9257
  reason: string
9578
9258
  } & {
9579
- dataTransfer: DataTransfer
9580
- originEvent: Omit<
9581
- PickFromUnion_2<
9582
- NativeBehaviorEvent,
9583
- 'type',
9584
- 'drag.drop' | 'paste'
9585
- >,
9586
- 'dataTransfer'
9259
+ originEvent: PickFromUnion_2<
9260
+ NativeBehaviorEvent,
9261
+ 'type',
9262
+ 'drag.drop' | 'clipboard.paste'
9587
9263
  >
9588
9264
  })
9589
9265
  | ({
@@ -9591,42 +9267,30 @@ declare const editorMachine: StateMachine<
9591
9267
  data: Array<PortableTextBlock>
9592
9268
  mimeType: `${string}/${string}`
9593
9269
  } & {
9594
- dataTransfer: DataTransfer
9595
- originEvent: Omit<
9596
- PickFromUnion_2<
9597
- NativeBehaviorEvent,
9598
- 'type',
9599
- 'drag.drop' | 'paste'
9600
- >,
9601
- 'dataTransfer'
9270
+ originEvent: PickFromUnion_2<
9271
+ NativeBehaviorEvent,
9272
+ 'type',
9273
+ 'drag.drop' | 'clipboard.paste'
9602
9274
  >
9603
9275
  })
9604
9276
  | {
9605
9277
  type: 'serialization.success'
9606
9278
  mimeType: MIMEType_2
9607
9279
  data: string
9608
- dataTransfer: DataTransfer
9609
- originEvent: Omit<
9610
- PickFromUnion_2<
9611
- NativeBehaviorEvent,
9612
- 'type',
9613
- 'copy' | 'cut' | 'drag.dragstart'
9614
- >,
9615
- 'dataTransfer'
9280
+ originEvent: PickFromUnion_2<
9281
+ NativeBehaviorEvent,
9282
+ 'type',
9283
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
9616
9284
  >
9617
9285
  }
9618
9286
  | {
9619
9287
  type: 'serialization.failure'
9620
9288
  mimeType: MIMEType_2
9621
9289
  reason: string
9622
- dataTransfer: DataTransfer
9623
- originEvent: Omit<
9624
- PickFromUnion_2<
9625
- NativeBehaviorEvent,
9626
- 'type',
9627
- 'copy' | 'cut' | 'drag.dragstart'
9628
- >,
9629
- 'dataTransfer'
9290
+ originEvent: PickFromUnion_2<
9291
+ NativeBehaviorEvent,
9292
+ 'type',
9293
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
9630
9294
  >
9631
9295
  }
9632
9296
  | PatchEvent
@@ -9908,14 +9572,10 @@ declare const editorMachine: StateMachine<
9908
9572
  mimeType: `${string}/${string}`
9909
9573
  reason: string
9910
9574
  } & {
9911
- dataTransfer: DataTransfer
9912
- originEvent: Omit<
9913
- PickFromUnion_2<
9914
- NativeBehaviorEvent,
9915
- 'type',
9916
- 'drag.drop' | 'paste'
9917
- >,
9918
- 'dataTransfer'
9575
+ originEvent: PickFromUnion_2<
9576
+ NativeBehaviorEvent,
9577
+ 'type',
9578
+ 'drag.drop' | 'clipboard.paste'
9919
9579
  >
9920
9580
  })
9921
9581
  | ({
@@ -9923,42 +9583,30 @@ declare const editorMachine: StateMachine<
9923
9583
  data: Array<PortableTextBlock>
9924
9584
  mimeType: `${string}/${string}`
9925
9585
  } & {
9926
- dataTransfer: DataTransfer
9927
- originEvent: Omit<
9928
- PickFromUnion_2<
9929
- NativeBehaviorEvent,
9930
- 'type',
9931
- 'drag.drop' | 'paste'
9932
- >,
9933
- 'dataTransfer'
9586
+ originEvent: PickFromUnion_2<
9587
+ NativeBehaviorEvent,
9588
+ 'type',
9589
+ 'drag.drop' | 'clipboard.paste'
9934
9590
  >
9935
9591
  })
9936
9592
  | {
9937
9593
  type: 'serialization.success'
9938
9594
  mimeType: MIMEType_2
9939
9595
  data: string
9940
- dataTransfer: DataTransfer
9941
- originEvent: Omit<
9942
- PickFromUnion_2<
9943
- NativeBehaviorEvent,
9944
- 'type',
9945
- 'copy' | 'cut' | 'drag.dragstart'
9946
- >,
9947
- 'dataTransfer'
9596
+ originEvent: PickFromUnion_2<
9597
+ NativeBehaviorEvent,
9598
+ 'type',
9599
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
9948
9600
  >
9949
9601
  }
9950
9602
  | {
9951
9603
  type: 'serialization.failure'
9952
9604
  mimeType: MIMEType_2
9953
9605
  reason: string
9954
- dataTransfer: DataTransfer
9955
- originEvent: Omit<
9956
- PickFromUnion_2<
9957
- NativeBehaviorEvent,
9958
- 'type',
9959
- 'copy' | 'cut' | 'drag.dragstart'
9960
- >,
9961
- 'dataTransfer'
9606
+ originEvent: PickFromUnion_2<
9607
+ NativeBehaviorEvent,
9608
+ 'type',
9609
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
9962
9610
  >
9963
9611
  }
9964
9612
  | InternalPatchEvent
@@ -10327,14 +9975,10 @@ declare const editorMachine: StateMachine<
10327
9975
  mimeType: `${string}/${string}`
10328
9976
  reason: string
10329
9977
  } & {
10330
- dataTransfer: DataTransfer
10331
- originEvent: Omit<
10332
- PickFromUnion_2<
10333
- NativeBehaviorEvent,
10334
- 'type',
10335
- 'drag.drop' | 'paste'
10336
- >,
10337
- 'dataTransfer'
9978
+ originEvent: PickFromUnion_2<
9979
+ NativeBehaviorEvent,
9980
+ 'type',
9981
+ 'drag.drop' | 'clipboard.paste'
10338
9982
  >
10339
9983
  })
10340
9984
  | ({
@@ -10342,42 +9986,30 @@ declare const editorMachine: StateMachine<
10342
9986
  data: Array<PortableTextBlock>
10343
9987
  mimeType: `${string}/${string}`
10344
9988
  } & {
10345
- dataTransfer: DataTransfer
10346
- originEvent: Omit<
10347
- PickFromUnion_2<
10348
- NativeBehaviorEvent,
10349
- 'type',
10350
- 'drag.drop' | 'paste'
10351
- >,
10352
- 'dataTransfer'
9989
+ originEvent: PickFromUnion_2<
9990
+ NativeBehaviorEvent,
9991
+ 'type',
9992
+ 'drag.drop' | 'clipboard.paste'
10353
9993
  >
10354
9994
  })
10355
9995
  | {
10356
9996
  type: 'serialization.success'
10357
9997
  mimeType: MIMEType_2
10358
9998
  data: string
10359
- dataTransfer: DataTransfer
10360
- originEvent: Omit<
10361
- PickFromUnion_2<
10362
- NativeBehaviorEvent,
10363
- 'type',
10364
- 'copy' | 'cut' | 'drag.dragstart'
10365
- >,
10366
- 'dataTransfer'
9999
+ originEvent: PickFromUnion_2<
10000
+ NativeBehaviorEvent,
10001
+ 'type',
10002
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
10367
10003
  >
10368
10004
  }
10369
10005
  | {
10370
10006
  type: 'serialization.failure'
10371
10007
  mimeType: MIMEType_2
10372
10008
  reason: string
10373
- dataTransfer: DataTransfer
10374
- originEvent: Omit<
10375
- PickFromUnion_2<
10376
- NativeBehaviorEvent,
10377
- 'type',
10378
- 'copy' | 'cut' | 'drag.dragstart'
10379
- >,
10380
- 'dataTransfer'
10009
+ originEvent: PickFromUnion_2<
10010
+ NativeBehaviorEvent,
10011
+ 'type',
10012
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
10381
10013
  >
10382
10014
  }
10383
10015
  | InternalPatchEvent
@@ -10743,14 +10375,10 @@ declare const editorMachine: StateMachine<
10743
10375
  mimeType: `${string}/${string}`
10744
10376
  reason: string
10745
10377
  } & {
10746
- dataTransfer: DataTransfer
10747
- originEvent: Omit<
10748
- PickFromUnion_2<
10749
- NativeBehaviorEvent,
10750
- 'type',
10751
- 'drag.drop' | 'paste'
10752
- >,
10753
- 'dataTransfer'
10378
+ originEvent: PickFromUnion_2<
10379
+ NativeBehaviorEvent,
10380
+ 'type',
10381
+ 'drag.drop' | 'clipboard.paste'
10754
10382
  >
10755
10383
  })
10756
10384
  | ({
@@ -10758,42 +10386,30 @@ declare const editorMachine: StateMachine<
10758
10386
  data: Array<PortableTextBlock>
10759
10387
  mimeType: `${string}/${string}`
10760
10388
  } & {
10761
- dataTransfer: DataTransfer
10762
- originEvent: Omit<
10763
- PickFromUnion_2<
10764
- NativeBehaviorEvent,
10765
- 'type',
10766
- 'drag.drop' | 'paste'
10767
- >,
10768
- 'dataTransfer'
10389
+ originEvent: PickFromUnion_2<
10390
+ NativeBehaviorEvent,
10391
+ 'type',
10392
+ 'drag.drop' | 'clipboard.paste'
10769
10393
  >
10770
10394
  })
10771
10395
  | {
10772
10396
  type: 'serialization.success'
10773
10397
  mimeType: MIMEType_2
10774
10398
  data: string
10775
- dataTransfer: DataTransfer
10776
- originEvent: Omit<
10777
- PickFromUnion_2<
10778
- NativeBehaviorEvent,
10779
- 'type',
10780
- 'copy' | 'cut' | 'drag.dragstart'
10781
- >,
10782
- 'dataTransfer'
10399
+ originEvent: PickFromUnion_2<
10400
+ NativeBehaviorEvent,
10401
+ 'type',
10402
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
10783
10403
  >
10784
10404
  }
10785
10405
  | {
10786
10406
  type: 'serialization.failure'
10787
10407
  mimeType: MIMEType_2
10788
10408
  reason: string
10789
- dataTransfer: DataTransfer
10790
- originEvent: Omit<
10791
- PickFromUnion_2<
10792
- NativeBehaviorEvent,
10793
- 'type',
10794
- 'copy' | 'cut' | 'drag.dragstart'
10795
- >,
10796
- 'dataTransfer'
10409
+ originEvent: PickFromUnion_2<
10410
+ NativeBehaviorEvent,
10411
+ 'type',
10412
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
10797
10413
  >
10798
10414
  }
10799
10415
  | InternalPatchEvent
@@ -11328,14 +10944,10 @@ declare const editorMachine: StateMachine<
11328
10944
  mimeType: `${string}/${string}`
11329
10945
  reason: string
11330
10946
  } & {
11331
- dataTransfer: DataTransfer
11332
- originEvent: Omit<
11333
- PickFromUnion_2<
11334
- NativeBehaviorEvent,
11335
- 'type',
11336
- 'drag.drop' | 'paste'
11337
- >,
11338
- 'dataTransfer'
10947
+ originEvent: PickFromUnion_2<
10948
+ NativeBehaviorEvent,
10949
+ 'type',
10950
+ 'drag.drop' | 'clipboard.paste'
11339
10951
  >
11340
10952
  })
11341
10953
  | ({
@@ -11343,42 +10955,30 @@ declare const editorMachine: StateMachine<
11343
10955
  data: Array<PortableTextBlock>
11344
10956
  mimeType: `${string}/${string}`
11345
10957
  } & {
11346
- dataTransfer: DataTransfer
11347
- originEvent: Omit<
11348
- PickFromUnion_2<
11349
- NativeBehaviorEvent,
11350
- 'type',
11351
- 'drag.drop' | 'paste'
11352
- >,
11353
- 'dataTransfer'
10958
+ originEvent: PickFromUnion_2<
10959
+ NativeBehaviorEvent,
10960
+ 'type',
10961
+ 'drag.drop' | 'clipboard.paste'
11354
10962
  >
11355
10963
  })
11356
10964
  | {
11357
10965
  type: 'serialization.success'
11358
10966
  mimeType: MIMEType_2
11359
10967
  data: string
11360
- dataTransfer: DataTransfer
11361
- originEvent: Omit<
11362
- PickFromUnion_2<
11363
- NativeBehaviorEvent,
11364
- 'type',
11365
- 'copy' | 'cut' | 'drag.dragstart'
11366
- >,
11367
- 'dataTransfer'
10968
+ originEvent: PickFromUnion_2<
10969
+ NativeBehaviorEvent,
10970
+ 'type',
10971
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
11368
10972
  >
11369
10973
  }
11370
10974
  | {
11371
10975
  type: 'serialization.failure'
11372
10976
  mimeType: MIMEType_2
11373
10977
  reason: string
11374
- dataTransfer: DataTransfer
11375
- originEvent: Omit<
11376
- PickFromUnion_2<
11377
- NativeBehaviorEvent,
11378
- 'type',
11379
- 'copy' | 'cut' | 'drag.dragstart'
11380
- >,
11381
- 'dataTransfer'
10978
+ originEvent: PickFromUnion_2<
10979
+ NativeBehaviorEvent,
10980
+ 'type',
10981
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
11382
10982
  >
11383
10983
  }
11384
10984
  | InternalPatchEvent
@@ -11720,14 +11320,10 @@ declare const editorMachine: StateMachine<
11720
11320
  mimeType: `${string}/${string}`
11721
11321
  reason: string
11722
11322
  } & {
11723
- dataTransfer: DataTransfer
11724
- originEvent: Omit<
11725
- PickFromUnion_2<
11726
- NativeBehaviorEvent,
11727
- 'type',
11728
- 'drag.drop' | 'paste'
11729
- >,
11730
- 'dataTransfer'
11323
+ originEvent: PickFromUnion_2<
11324
+ NativeBehaviorEvent,
11325
+ 'type',
11326
+ 'drag.drop' | 'clipboard.paste'
11731
11327
  >
11732
11328
  })
11733
11329
  | ({
@@ -11735,42 +11331,30 @@ declare const editorMachine: StateMachine<
11735
11331
  data: Array<PortableTextBlock>
11736
11332
  mimeType: `${string}/${string}`
11737
11333
  } & {
11738
- dataTransfer: DataTransfer
11739
- originEvent: Omit<
11740
- PickFromUnion_2<
11741
- NativeBehaviorEvent,
11742
- 'type',
11743
- 'drag.drop' | 'paste'
11744
- >,
11745
- 'dataTransfer'
11334
+ originEvent: PickFromUnion_2<
11335
+ NativeBehaviorEvent,
11336
+ 'type',
11337
+ 'drag.drop' | 'clipboard.paste'
11746
11338
  >
11747
11339
  })
11748
11340
  | {
11749
11341
  type: 'serialization.success'
11750
11342
  mimeType: MIMEType_2
11751
11343
  data: string
11752
- dataTransfer: DataTransfer
11753
- originEvent: Omit<
11754
- PickFromUnion_2<
11755
- NativeBehaviorEvent,
11756
- 'type',
11757
- 'copy' | 'cut' | 'drag.dragstart'
11758
- >,
11759
- 'dataTransfer'
11344
+ originEvent: PickFromUnion_2<
11345
+ NativeBehaviorEvent,
11346
+ 'type',
11347
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
11760
11348
  >
11761
11349
  }
11762
11350
  | {
11763
11351
  type: 'serialization.failure'
11764
11352
  mimeType: MIMEType_2
11765
11353
  reason: string
11766
- dataTransfer: DataTransfer
11767
- originEvent: Omit<
11768
- PickFromUnion_2<
11769
- NativeBehaviorEvent,
11770
- 'type',
11771
- 'copy' | 'cut' | 'drag.dragstart'
11772
- >,
11773
- 'dataTransfer'
11354
+ originEvent: PickFromUnion_2<
11355
+ NativeBehaviorEvent,
11356
+ 'type',
11357
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
11774
11358
  >
11775
11359
  }
11776
11360
  | PatchEvent
@@ -12055,14 +11639,10 @@ declare const editorMachine: StateMachine<
12055
11639
  mimeType: `${string}/${string}`
12056
11640
  reason: string
12057
11641
  } & {
12058
- dataTransfer: DataTransfer
12059
- originEvent: Omit<
12060
- PickFromUnion_2<
12061
- NativeBehaviorEvent,
12062
- 'type',
12063
- 'drag.drop' | 'paste'
12064
- >,
12065
- 'dataTransfer'
11642
+ originEvent: PickFromUnion_2<
11643
+ NativeBehaviorEvent,
11644
+ 'type',
11645
+ 'drag.drop' | 'clipboard.paste'
12066
11646
  >
12067
11647
  })
12068
11648
  | ({
@@ -12070,42 +11650,30 @@ declare const editorMachine: StateMachine<
12070
11650
  data: Array<PortableTextBlock>
12071
11651
  mimeType: `${string}/${string}`
12072
11652
  } & {
12073
- dataTransfer: DataTransfer
12074
- originEvent: Omit<
12075
- PickFromUnion_2<
12076
- NativeBehaviorEvent,
12077
- 'type',
12078
- 'drag.drop' | 'paste'
12079
- >,
12080
- 'dataTransfer'
11653
+ originEvent: PickFromUnion_2<
11654
+ NativeBehaviorEvent,
11655
+ 'type',
11656
+ 'drag.drop' | 'clipboard.paste'
12081
11657
  >
12082
11658
  })
12083
11659
  | {
12084
11660
  type: 'serialization.success'
12085
11661
  mimeType: MIMEType_2
12086
11662
  data: string
12087
- dataTransfer: DataTransfer
12088
- originEvent: Omit<
12089
- PickFromUnion_2<
12090
- NativeBehaviorEvent,
12091
- 'type',
12092
- 'copy' | 'cut' | 'drag.dragstart'
12093
- >,
12094
- 'dataTransfer'
11663
+ originEvent: PickFromUnion_2<
11664
+ NativeBehaviorEvent,
11665
+ 'type',
11666
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
12095
11667
  >
12096
11668
  }
12097
11669
  | {
12098
11670
  type: 'serialization.failure'
12099
11671
  mimeType: MIMEType_2
12100
11672
  reason: string
12101
- dataTransfer: DataTransfer
12102
- originEvent: Omit<
12103
- PickFromUnion_2<
12104
- NativeBehaviorEvent,
12105
- 'type',
12106
- 'copy' | 'cut' | 'drag.dragstart'
12107
- >,
12108
- 'dataTransfer'
11673
+ originEvent: PickFromUnion_2<
11674
+ NativeBehaviorEvent,
11675
+ 'type',
11676
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
12109
11677
  >
12110
11678
  }
12111
11679
  | InternalPatchEvent
@@ -12447,14 +12015,10 @@ declare const editorMachine: StateMachine<
12447
12015
  mimeType: `${string}/${string}`
12448
12016
  reason: string
12449
12017
  } & {
12450
- dataTransfer: DataTransfer
12451
- originEvent: Omit<
12452
- PickFromUnion_2<
12453
- NativeBehaviorEvent,
12454
- 'type',
12455
- 'drag.drop' | 'paste'
12456
- >,
12457
- 'dataTransfer'
12018
+ originEvent: PickFromUnion_2<
12019
+ NativeBehaviorEvent,
12020
+ 'type',
12021
+ 'drag.drop' | 'clipboard.paste'
12458
12022
  >
12459
12023
  })
12460
12024
  | ({
@@ -12462,42 +12026,30 @@ declare const editorMachine: StateMachine<
12462
12026
  data: Array<PortableTextBlock>
12463
12027
  mimeType: `${string}/${string}`
12464
12028
  } & {
12465
- dataTransfer: DataTransfer
12466
- originEvent: Omit<
12467
- PickFromUnion_2<
12468
- NativeBehaviorEvent,
12469
- 'type',
12470
- 'drag.drop' | 'paste'
12471
- >,
12472
- 'dataTransfer'
12029
+ originEvent: PickFromUnion_2<
12030
+ NativeBehaviorEvent,
12031
+ 'type',
12032
+ 'drag.drop' | 'clipboard.paste'
12473
12033
  >
12474
12034
  })
12475
12035
  | {
12476
12036
  type: 'serialization.success'
12477
12037
  mimeType: MIMEType_2
12478
12038
  data: string
12479
- dataTransfer: DataTransfer
12480
- originEvent: Omit<
12481
- PickFromUnion_2<
12482
- NativeBehaviorEvent,
12483
- 'type',
12484
- 'copy' | 'cut' | 'drag.dragstart'
12485
- >,
12486
- 'dataTransfer'
12039
+ originEvent: PickFromUnion_2<
12040
+ NativeBehaviorEvent,
12041
+ 'type',
12042
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
12487
12043
  >
12488
12044
  }
12489
12045
  | {
12490
12046
  type: 'serialization.failure'
12491
12047
  mimeType: MIMEType_2
12492
12048
  reason: string
12493
- dataTransfer: DataTransfer
12494
- originEvent: Omit<
12495
- PickFromUnion_2<
12496
- NativeBehaviorEvent,
12497
- 'type',
12498
- 'copy' | 'cut' | 'drag.dragstart'
12499
- >,
12500
- 'dataTransfer'
12049
+ originEvent: PickFromUnion_2<
12050
+ NativeBehaviorEvent,
12051
+ 'type',
12052
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
12501
12053
  >
12502
12054
  }
12503
12055
  | PatchEvent
@@ -12775,14 +12327,10 @@ declare const editorMachine: StateMachine<
12775
12327
  mimeType: `${string}/${string}`
12776
12328
  reason: string
12777
12329
  } & {
12778
- dataTransfer: DataTransfer
12779
- originEvent: Omit<
12780
- PickFromUnion_2<
12781
- NativeBehaviorEvent,
12782
- 'type',
12783
- 'drag.drop' | 'paste'
12784
- >,
12785
- 'dataTransfer'
12330
+ originEvent: PickFromUnion_2<
12331
+ NativeBehaviorEvent,
12332
+ 'type',
12333
+ 'drag.drop' | 'clipboard.paste'
12786
12334
  >
12787
12335
  })
12788
12336
  | ({
@@ -12790,42 +12338,30 @@ declare const editorMachine: StateMachine<
12790
12338
  data: Array<PortableTextBlock>
12791
12339
  mimeType: `${string}/${string}`
12792
12340
  } & {
12793
- dataTransfer: DataTransfer
12794
- originEvent: Omit<
12795
- PickFromUnion_2<
12796
- NativeBehaviorEvent,
12797
- 'type',
12798
- 'drag.drop' | 'paste'
12799
- >,
12800
- 'dataTransfer'
12341
+ originEvent: PickFromUnion_2<
12342
+ NativeBehaviorEvent,
12343
+ 'type',
12344
+ 'drag.drop' | 'clipboard.paste'
12801
12345
  >
12802
12346
  })
12803
12347
  | {
12804
12348
  type: 'serialization.success'
12805
12349
  mimeType: MIMEType_2
12806
12350
  data: string
12807
- dataTransfer: DataTransfer
12808
- originEvent: Omit<
12809
- PickFromUnion_2<
12810
- NativeBehaviorEvent,
12811
- 'type',
12812
- 'copy' | 'cut' | 'drag.dragstart'
12813
- >,
12814
- 'dataTransfer'
12351
+ originEvent: PickFromUnion_2<
12352
+ NativeBehaviorEvent,
12353
+ 'type',
12354
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
12815
12355
  >
12816
12356
  }
12817
12357
  | {
12818
12358
  type: 'serialization.failure'
12819
12359
  mimeType: MIMEType_2
12820
12360
  reason: string
12821
- dataTransfer: DataTransfer
12822
- originEvent: Omit<
12823
- PickFromUnion_2<
12824
- NativeBehaviorEvent,
12825
- 'type',
12826
- 'copy' | 'cut' | 'drag.dragstart'
12827
- >,
12828
- 'dataTransfer'
12361
+ originEvent: PickFromUnion_2<
12362
+ NativeBehaviorEvent,
12363
+ 'type',
12364
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
12829
12365
  >
12830
12366
  }
12831
12367
  | InternalPatchEvent
@@ -13167,14 +12703,10 @@ declare const editorMachine: StateMachine<
13167
12703
  mimeType: `${string}/${string}`
13168
12704
  reason: string
13169
12705
  } & {
13170
- dataTransfer: DataTransfer
13171
- originEvent: Omit<
13172
- PickFromUnion_2<
13173
- NativeBehaviorEvent,
13174
- 'type',
13175
- 'drag.drop' | 'paste'
13176
- >,
13177
- 'dataTransfer'
12706
+ originEvent: PickFromUnion_2<
12707
+ NativeBehaviorEvent,
12708
+ 'type',
12709
+ 'drag.drop' | 'clipboard.paste'
13178
12710
  >
13179
12711
  })
13180
12712
  | ({
@@ -13182,42 +12714,30 @@ declare const editorMachine: StateMachine<
13182
12714
  data: Array<PortableTextBlock>
13183
12715
  mimeType: `${string}/${string}`
13184
12716
  } & {
13185
- dataTransfer: DataTransfer
13186
- originEvent: Omit<
13187
- PickFromUnion_2<
13188
- NativeBehaviorEvent,
13189
- 'type',
13190
- 'drag.drop' | 'paste'
13191
- >,
13192
- 'dataTransfer'
12717
+ originEvent: PickFromUnion_2<
12718
+ NativeBehaviorEvent,
12719
+ 'type',
12720
+ 'drag.drop' | 'clipboard.paste'
13193
12721
  >
13194
12722
  })
13195
12723
  | {
13196
12724
  type: 'serialization.success'
13197
12725
  mimeType: MIMEType_2
13198
12726
  data: string
13199
- dataTransfer: DataTransfer
13200
- originEvent: Omit<
13201
- PickFromUnion_2<
13202
- NativeBehaviorEvent,
13203
- 'type',
13204
- 'copy' | 'cut' | 'drag.dragstart'
13205
- >,
13206
- 'dataTransfer'
12727
+ originEvent: PickFromUnion_2<
12728
+ NativeBehaviorEvent,
12729
+ 'type',
12730
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
13207
12731
  >
13208
12732
  }
13209
12733
  | {
13210
12734
  type: 'serialization.failure'
13211
12735
  mimeType: MIMEType_2
13212
12736
  reason: string
13213
- dataTransfer: DataTransfer
13214
- originEvent: Omit<
13215
- PickFromUnion_2<
13216
- NativeBehaviorEvent,
13217
- 'type',
13218
- 'copy' | 'cut' | 'drag.dragstart'
13219
- >,
13220
- 'dataTransfer'
12737
+ originEvent: PickFromUnion_2<
12738
+ NativeBehaviorEvent,
12739
+ 'type',
12740
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
13221
12741
  >
13222
12742
  }
13223
12743
  | PatchEvent
@@ -13495,14 +13015,10 @@ declare const editorMachine: StateMachine<
13495
13015
  mimeType: `${string}/${string}`
13496
13016
  reason: string
13497
13017
  } & {
13498
- dataTransfer: DataTransfer
13499
- originEvent: Omit<
13500
- PickFromUnion_2<
13501
- NativeBehaviorEvent,
13502
- 'type',
13503
- 'drag.drop' | 'paste'
13504
- >,
13505
- 'dataTransfer'
13018
+ originEvent: PickFromUnion_2<
13019
+ NativeBehaviorEvent,
13020
+ 'type',
13021
+ 'drag.drop' | 'clipboard.paste'
13506
13022
  >
13507
13023
  })
13508
13024
  | ({
@@ -13510,42 +13026,30 @@ declare const editorMachine: StateMachine<
13510
13026
  data: Array<PortableTextBlock>
13511
13027
  mimeType: `${string}/${string}`
13512
13028
  } & {
13513
- dataTransfer: DataTransfer
13514
- originEvent: Omit<
13515
- PickFromUnion_2<
13516
- NativeBehaviorEvent,
13517
- 'type',
13518
- 'drag.drop' | 'paste'
13519
- >,
13520
- 'dataTransfer'
13029
+ originEvent: PickFromUnion_2<
13030
+ NativeBehaviorEvent,
13031
+ 'type',
13032
+ 'drag.drop' | 'clipboard.paste'
13521
13033
  >
13522
13034
  })
13523
13035
  | {
13524
13036
  type: 'serialization.success'
13525
13037
  mimeType: MIMEType_2
13526
13038
  data: string
13527
- dataTransfer: DataTransfer
13528
- originEvent: Omit<
13529
- PickFromUnion_2<
13530
- NativeBehaviorEvent,
13531
- 'type',
13532
- 'copy' | 'cut' | 'drag.dragstart'
13533
- >,
13534
- 'dataTransfer'
13039
+ originEvent: PickFromUnion_2<
13040
+ NativeBehaviorEvent,
13041
+ 'type',
13042
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
13535
13043
  >
13536
13044
  }
13537
13045
  | {
13538
13046
  type: 'serialization.failure'
13539
13047
  mimeType: MIMEType_2
13540
13048
  reason: string
13541
- dataTransfer: DataTransfer
13542
- originEvent: Omit<
13543
- PickFromUnion_2<
13544
- NativeBehaviorEvent,
13545
- 'type',
13546
- 'copy' | 'cut' | 'drag.dragstart'
13547
- >,
13548
- 'dataTransfer'
13049
+ originEvent: PickFromUnion_2<
13050
+ NativeBehaviorEvent,
13051
+ 'type',
13052
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
13549
13053
  >
13550
13054
  }
13551
13055
  | InternalPatchEvent
@@ -13887,14 +13391,10 @@ declare const editorMachine: StateMachine<
13887
13391
  mimeType: `${string}/${string}`
13888
13392
  reason: string
13889
13393
  } & {
13890
- dataTransfer: DataTransfer
13891
- originEvent: Omit<
13892
- PickFromUnion_2<
13893
- NativeBehaviorEvent,
13894
- 'type',
13895
- 'drag.drop' | 'paste'
13896
- >,
13897
- 'dataTransfer'
13394
+ originEvent: PickFromUnion_2<
13395
+ NativeBehaviorEvent,
13396
+ 'type',
13397
+ 'drag.drop' | 'clipboard.paste'
13898
13398
  >
13899
13399
  })
13900
13400
  | ({
@@ -13902,42 +13402,30 @@ declare const editorMachine: StateMachine<
13902
13402
  data: Array<PortableTextBlock>
13903
13403
  mimeType: `${string}/${string}`
13904
13404
  } & {
13905
- dataTransfer: DataTransfer
13906
- originEvent: Omit<
13907
- PickFromUnion_2<
13908
- NativeBehaviorEvent,
13909
- 'type',
13910
- 'drag.drop' | 'paste'
13911
- >,
13912
- 'dataTransfer'
13405
+ originEvent: PickFromUnion_2<
13406
+ NativeBehaviorEvent,
13407
+ 'type',
13408
+ 'drag.drop' | 'clipboard.paste'
13913
13409
  >
13914
13410
  })
13915
13411
  | {
13916
13412
  type: 'serialization.success'
13917
13413
  mimeType: MIMEType_2
13918
13414
  data: string
13919
- dataTransfer: DataTransfer
13920
- originEvent: Omit<
13921
- PickFromUnion_2<
13922
- NativeBehaviorEvent,
13923
- 'type',
13924
- 'copy' | 'cut' | 'drag.dragstart'
13925
- >,
13926
- 'dataTransfer'
13415
+ originEvent: PickFromUnion_2<
13416
+ NativeBehaviorEvent,
13417
+ 'type',
13418
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
13927
13419
  >
13928
13420
  }
13929
13421
  | {
13930
13422
  type: 'serialization.failure'
13931
13423
  mimeType: MIMEType_2
13932
13424
  reason: string
13933
- dataTransfer: DataTransfer
13934
- originEvent: Omit<
13935
- PickFromUnion_2<
13936
- NativeBehaviorEvent,
13937
- 'type',
13938
- 'copy' | 'cut' | 'drag.dragstart'
13939
- >,
13940
- 'dataTransfer'
13425
+ originEvent: PickFromUnion_2<
13426
+ NativeBehaviorEvent,
13427
+ 'type',
13428
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
13941
13429
  >
13942
13430
  }
13943
13431
  | PatchEvent
@@ -14228,14 +13716,10 @@ declare const editorMachine: StateMachine<
14228
13716
  mimeType: `${string}/${string}`
14229
13717
  reason: string
14230
13718
  } & {
14231
- dataTransfer: DataTransfer
14232
- originEvent: Omit<
14233
- PickFromUnion_2<
14234
- NativeBehaviorEvent,
14235
- 'type',
14236
- 'drag.drop' | 'paste'
14237
- >,
14238
- 'dataTransfer'
13719
+ originEvent: PickFromUnion_2<
13720
+ NativeBehaviorEvent,
13721
+ 'type',
13722
+ 'drag.drop' | 'clipboard.paste'
14239
13723
  >
14240
13724
  })
14241
13725
  | ({
@@ -14243,42 +13727,30 @@ declare const editorMachine: StateMachine<
14243
13727
  data: Array<PortableTextBlock>
14244
13728
  mimeType: `${string}/${string}`
14245
13729
  } & {
14246
- dataTransfer: DataTransfer
14247
- originEvent: Omit<
14248
- PickFromUnion_2<
14249
- NativeBehaviorEvent,
14250
- 'type',
14251
- 'drag.drop' | 'paste'
14252
- >,
14253
- 'dataTransfer'
13730
+ originEvent: PickFromUnion_2<
13731
+ NativeBehaviorEvent,
13732
+ 'type',
13733
+ 'drag.drop' | 'clipboard.paste'
14254
13734
  >
14255
13735
  })
14256
13736
  | {
14257
13737
  type: 'serialization.success'
14258
13738
  mimeType: MIMEType_2
14259
13739
  data: string
14260
- dataTransfer: DataTransfer
14261
- originEvent: Omit<
14262
- PickFromUnion_2<
14263
- NativeBehaviorEvent,
14264
- 'type',
14265
- 'copy' | 'cut' | 'drag.dragstart'
14266
- >,
14267
- 'dataTransfer'
13740
+ originEvent: PickFromUnion_2<
13741
+ NativeBehaviorEvent,
13742
+ 'type',
13743
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
14268
13744
  >
14269
13745
  }
14270
13746
  | {
14271
13747
  type: 'serialization.failure'
14272
13748
  mimeType: MIMEType_2
14273
13749
  reason: string
14274
- dataTransfer: DataTransfer
14275
- originEvent: Omit<
14276
- PickFromUnion_2<
14277
- NativeBehaviorEvent,
14278
- 'type',
14279
- 'copy' | 'cut' | 'drag.dragstart'
14280
- >,
14281
- 'dataTransfer'
13750
+ originEvent: PickFromUnion_2<
13751
+ NativeBehaviorEvent,
13752
+ 'type',
13753
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
14282
13754
  >
14283
13755
  }
14284
13756
  | InternalPatchEvent
@@ -14620,14 +14092,10 @@ declare const editorMachine: StateMachine<
14620
14092
  mimeType: `${string}/${string}`
14621
14093
  reason: string
14622
14094
  } & {
14623
- dataTransfer: DataTransfer
14624
- originEvent: Omit<
14625
- PickFromUnion_2<
14626
- NativeBehaviorEvent,
14627
- 'type',
14628
- 'drag.drop' | 'paste'
14629
- >,
14630
- 'dataTransfer'
14095
+ originEvent: PickFromUnion_2<
14096
+ NativeBehaviorEvent,
14097
+ 'type',
14098
+ 'drag.drop' | 'clipboard.paste'
14631
14099
  >
14632
14100
  })
14633
14101
  | ({
@@ -14635,42 +14103,30 @@ declare const editorMachine: StateMachine<
14635
14103
  data: Array<PortableTextBlock>
14636
14104
  mimeType: `${string}/${string}`
14637
14105
  } & {
14638
- dataTransfer: DataTransfer
14639
- originEvent: Omit<
14640
- PickFromUnion_2<
14641
- NativeBehaviorEvent,
14642
- 'type',
14643
- 'drag.drop' | 'paste'
14644
- >,
14645
- 'dataTransfer'
14106
+ originEvent: PickFromUnion_2<
14107
+ NativeBehaviorEvent,
14108
+ 'type',
14109
+ 'drag.drop' | 'clipboard.paste'
14646
14110
  >
14647
14111
  })
14648
14112
  | {
14649
14113
  type: 'serialization.success'
14650
14114
  mimeType: MIMEType_2
14651
14115
  data: string
14652
- dataTransfer: DataTransfer
14653
- originEvent: Omit<
14654
- PickFromUnion_2<
14655
- NativeBehaviorEvent,
14656
- 'type',
14657
- 'copy' | 'cut' | 'drag.dragstart'
14658
- >,
14659
- 'dataTransfer'
14116
+ originEvent: PickFromUnion_2<
14117
+ NativeBehaviorEvent,
14118
+ 'type',
14119
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
14660
14120
  >
14661
14121
  }
14662
14122
  | {
14663
14123
  type: 'serialization.failure'
14664
14124
  mimeType: MIMEType_2
14665
14125
  reason: string
14666
- dataTransfer: DataTransfer
14667
- originEvent: Omit<
14668
- PickFromUnion_2<
14669
- NativeBehaviorEvent,
14670
- 'type',
14671
- 'copy' | 'cut' | 'drag.dragstart'
14672
- >,
14673
- 'dataTransfer'
14126
+ originEvent: PickFromUnion_2<
14127
+ NativeBehaviorEvent,
14128
+ 'type',
14129
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
14674
14130
  >
14675
14131
  }
14676
14132
  | PatchEvent
@@ -14962,14 +14418,10 @@ declare const editorMachine: StateMachine<
14962
14418
  mimeType: `${string}/${string}`
14963
14419
  reason: string
14964
14420
  } & {
14965
- dataTransfer: DataTransfer
14966
- originEvent: Omit<
14967
- PickFromUnion_2<
14968
- NativeBehaviorEvent,
14969
- 'type',
14970
- 'drag.drop' | 'paste'
14971
- >,
14972
- 'dataTransfer'
14421
+ originEvent: PickFromUnion_2<
14422
+ NativeBehaviorEvent,
14423
+ 'type',
14424
+ 'drag.drop' | 'clipboard.paste'
14973
14425
  >
14974
14426
  })
14975
14427
  | ({
@@ -14977,42 +14429,30 @@ declare const editorMachine: StateMachine<
14977
14429
  data: Array<PortableTextBlock>
14978
14430
  mimeType: `${string}/${string}`
14979
14431
  } & {
14980
- dataTransfer: DataTransfer
14981
- originEvent: Omit<
14982
- PickFromUnion_2<
14983
- NativeBehaviorEvent,
14984
- 'type',
14985
- 'drag.drop' | 'paste'
14986
- >,
14987
- 'dataTransfer'
14432
+ originEvent: PickFromUnion_2<
14433
+ NativeBehaviorEvent,
14434
+ 'type',
14435
+ 'drag.drop' | 'clipboard.paste'
14988
14436
  >
14989
14437
  })
14990
14438
  | {
14991
14439
  type: 'serialization.success'
14992
14440
  mimeType: MIMEType_2
14993
14441
  data: string
14994
- dataTransfer: DataTransfer
14995
- originEvent: Omit<
14996
- PickFromUnion_2<
14997
- NativeBehaviorEvent,
14998
- 'type',
14999
- 'copy' | 'cut' | 'drag.dragstart'
15000
- >,
15001
- 'dataTransfer'
14442
+ originEvent: PickFromUnion_2<
14443
+ NativeBehaviorEvent,
14444
+ 'type',
14445
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
15002
14446
  >
15003
14447
  }
15004
14448
  | {
15005
14449
  type: 'serialization.failure'
15006
14450
  mimeType: MIMEType_2
15007
14451
  reason: string
15008
- dataTransfer: DataTransfer
15009
- originEvent: Omit<
15010
- PickFromUnion_2<
15011
- NativeBehaviorEvent,
15012
- 'type',
15013
- 'copy' | 'cut' | 'drag.dragstart'
15014
- >,
15015
- 'dataTransfer'
14452
+ originEvent: PickFromUnion_2<
14453
+ NativeBehaviorEvent,
14454
+ 'type',
14455
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
15016
14456
  >
15017
14457
  }
15018
14458
  | InternalPatchEvent
@@ -15354,14 +14794,10 @@ declare const editorMachine: StateMachine<
15354
14794
  mimeType: `${string}/${string}`
15355
14795
  reason: string
15356
14796
  } & {
15357
- dataTransfer: DataTransfer
15358
- originEvent: Omit<
15359
- PickFromUnion_2<
15360
- NativeBehaviorEvent,
15361
- 'type',
15362
- 'drag.drop' | 'paste'
15363
- >,
15364
- 'dataTransfer'
14797
+ originEvent: PickFromUnion_2<
14798
+ NativeBehaviorEvent,
14799
+ 'type',
14800
+ 'drag.drop' | 'clipboard.paste'
15365
14801
  >
15366
14802
  })
15367
14803
  | ({
@@ -15369,42 +14805,30 @@ declare const editorMachine: StateMachine<
15369
14805
  data: Array<PortableTextBlock>
15370
14806
  mimeType: `${string}/${string}`
15371
14807
  } & {
15372
- dataTransfer: DataTransfer
15373
- originEvent: Omit<
15374
- PickFromUnion_2<
15375
- NativeBehaviorEvent,
15376
- 'type',
15377
- 'drag.drop' | 'paste'
15378
- >,
15379
- 'dataTransfer'
14808
+ originEvent: PickFromUnion_2<
14809
+ NativeBehaviorEvent,
14810
+ 'type',
14811
+ 'drag.drop' | 'clipboard.paste'
15380
14812
  >
15381
14813
  })
15382
14814
  | {
15383
14815
  type: 'serialization.success'
15384
14816
  mimeType: MIMEType_2
15385
14817
  data: string
15386
- dataTransfer: DataTransfer
15387
- originEvent: Omit<
15388
- PickFromUnion_2<
15389
- NativeBehaviorEvent,
15390
- 'type',
15391
- 'copy' | 'cut' | 'drag.dragstart'
15392
- >,
15393
- 'dataTransfer'
14818
+ originEvent: PickFromUnion_2<
14819
+ NativeBehaviorEvent,
14820
+ 'type',
14821
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
15394
14822
  >
15395
14823
  }
15396
14824
  | {
15397
14825
  type: 'serialization.failure'
15398
14826
  mimeType: MIMEType_2
15399
14827
  reason: string
15400
- dataTransfer: DataTransfer
15401
- originEvent: Omit<
15402
- PickFromUnion_2<
15403
- NativeBehaviorEvent,
15404
- 'type',
15405
- 'copy' | 'cut' | 'drag.dragstart'
15406
- >,
15407
- 'dataTransfer'
14828
+ originEvent: PickFromUnion_2<
14829
+ NativeBehaviorEvent,
14830
+ 'type',
14831
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
15408
14832
  >
15409
14833
  }
15410
14834
  | PatchEvent
@@ -15682,14 +15106,10 @@ declare const editorMachine: StateMachine<
15682
15106
  mimeType: `${string}/${string}`
15683
15107
  reason: string
15684
15108
  } & {
15685
- dataTransfer: DataTransfer
15686
- originEvent: Omit<
15687
- PickFromUnion_2<
15688
- NativeBehaviorEvent,
15689
- 'type',
15690
- 'drag.drop' | 'paste'
15691
- >,
15692
- 'dataTransfer'
15109
+ originEvent: PickFromUnion_2<
15110
+ NativeBehaviorEvent,
15111
+ 'type',
15112
+ 'drag.drop' | 'clipboard.paste'
15693
15113
  >
15694
15114
  })
15695
15115
  | ({
@@ -15697,42 +15117,30 @@ declare const editorMachine: StateMachine<
15697
15117
  data: Array<PortableTextBlock>
15698
15118
  mimeType: `${string}/${string}`
15699
15119
  } & {
15700
- dataTransfer: DataTransfer
15701
- originEvent: Omit<
15702
- PickFromUnion_2<
15703
- NativeBehaviorEvent,
15704
- 'type',
15705
- 'drag.drop' | 'paste'
15706
- >,
15707
- 'dataTransfer'
15120
+ originEvent: PickFromUnion_2<
15121
+ NativeBehaviorEvent,
15122
+ 'type',
15123
+ 'drag.drop' | 'clipboard.paste'
15708
15124
  >
15709
15125
  })
15710
15126
  | {
15711
15127
  type: 'serialization.success'
15712
15128
  mimeType: MIMEType_2
15713
15129
  data: string
15714
- dataTransfer: DataTransfer
15715
- originEvent: Omit<
15716
- PickFromUnion_2<
15717
- NativeBehaviorEvent,
15718
- 'type',
15719
- 'copy' | 'cut' | 'drag.dragstart'
15720
- >,
15721
- 'dataTransfer'
15130
+ originEvent: PickFromUnion_2<
15131
+ NativeBehaviorEvent,
15132
+ 'type',
15133
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
15722
15134
  >
15723
15135
  }
15724
15136
  | {
15725
15137
  type: 'serialization.failure'
15726
15138
  mimeType: MIMEType_2
15727
15139
  reason: string
15728
- dataTransfer: DataTransfer
15729
- originEvent: Omit<
15730
- PickFromUnion_2<
15731
- NativeBehaviorEvent,
15732
- 'type',
15733
- 'copy' | 'cut' | 'drag.dragstart'
15734
- >,
15735
- 'dataTransfer'
15140
+ originEvent: PickFromUnion_2<
15141
+ NativeBehaviorEvent,
15142
+ 'type',
15143
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
15736
15144
  >
15737
15145
  }
15738
15146
  | InternalPatchEvent
@@ -16074,14 +15482,10 @@ declare const editorMachine: StateMachine<
16074
15482
  mimeType: `${string}/${string}`
16075
15483
  reason: string
16076
15484
  } & {
16077
- dataTransfer: DataTransfer
16078
- originEvent: Omit<
16079
- PickFromUnion_2<
16080
- NativeBehaviorEvent,
16081
- 'type',
16082
- 'drag.drop' | 'paste'
16083
- >,
16084
- 'dataTransfer'
15485
+ originEvent: PickFromUnion_2<
15486
+ NativeBehaviorEvent,
15487
+ 'type',
15488
+ 'drag.drop' | 'clipboard.paste'
16085
15489
  >
16086
15490
  })
16087
15491
  | ({
@@ -16089,42 +15493,30 @@ declare const editorMachine: StateMachine<
16089
15493
  data: Array<PortableTextBlock>
16090
15494
  mimeType: `${string}/${string}`
16091
15495
  } & {
16092
- dataTransfer: DataTransfer
16093
- originEvent: Omit<
16094
- PickFromUnion_2<
16095
- NativeBehaviorEvent,
16096
- 'type',
16097
- 'drag.drop' | 'paste'
16098
- >,
16099
- 'dataTransfer'
15496
+ originEvent: PickFromUnion_2<
15497
+ NativeBehaviorEvent,
15498
+ 'type',
15499
+ 'drag.drop' | 'clipboard.paste'
16100
15500
  >
16101
15501
  })
16102
15502
  | {
16103
15503
  type: 'serialization.success'
16104
15504
  mimeType: MIMEType_2
16105
15505
  data: string
16106
- dataTransfer: DataTransfer
16107
- originEvent: Omit<
16108
- PickFromUnion_2<
16109
- NativeBehaviorEvent,
16110
- 'type',
16111
- 'copy' | 'cut' | 'drag.dragstart'
16112
- >,
16113
- 'dataTransfer'
15506
+ originEvent: PickFromUnion_2<
15507
+ NativeBehaviorEvent,
15508
+ 'type',
15509
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
16114
15510
  >
16115
15511
  }
16116
15512
  | {
16117
15513
  type: 'serialization.failure'
16118
15514
  mimeType: MIMEType_2
16119
15515
  reason: string
16120
- dataTransfer: DataTransfer
16121
- originEvent: Omit<
16122
- PickFromUnion_2<
16123
- NativeBehaviorEvent,
16124
- 'type',
16125
- 'copy' | 'cut' | 'drag.dragstart'
16126
- >,
16127
- 'dataTransfer'
15516
+ originEvent: PickFromUnion_2<
15517
+ NativeBehaviorEvent,
15518
+ 'type',
15519
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
16128
15520
  >
16129
15521
  }
16130
15522
  | PatchEvent
@@ -16405,14 +15797,10 @@ declare const editorMachine: StateMachine<
16405
15797
  mimeType: `${string}/${string}`
16406
15798
  reason: string
16407
15799
  } & {
16408
- dataTransfer: DataTransfer
16409
- originEvent: Omit<
16410
- PickFromUnion_2<
16411
- NativeBehaviorEvent,
16412
- 'type',
16413
- 'drag.drop' | 'paste'
16414
- >,
16415
- 'dataTransfer'
15800
+ originEvent: PickFromUnion_2<
15801
+ NativeBehaviorEvent,
15802
+ 'type',
15803
+ 'drag.drop' | 'clipboard.paste'
16416
15804
  >
16417
15805
  })
16418
15806
  | ({
@@ -16420,42 +15808,30 @@ declare const editorMachine: StateMachine<
16420
15808
  data: Array<PortableTextBlock>
16421
15809
  mimeType: `${string}/${string}`
16422
15810
  } & {
16423
- dataTransfer: DataTransfer
16424
- originEvent: Omit<
16425
- PickFromUnion_2<
16426
- NativeBehaviorEvent,
16427
- 'type',
16428
- 'drag.drop' | 'paste'
16429
- >,
16430
- 'dataTransfer'
15811
+ originEvent: PickFromUnion_2<
15812
+ NativeBehaviorEvent,
15813
+ 'type',
15814
+ 'drag.drop' | 'clipboard.paste'
16431
15815
  >
16432
15816
  })
16433
15817
  | {
16434
15818
  type: 'serialization.success'
16435
15819
  mimeType: MIMEType_2
16436
15820
  data: string
16437
- dataTransfer: DataTransfer
16438
- originEvent: Omit<
16439
- PickFromUnion_2<
16440
- NativeBehaviorEvent,
16441
- 'type',
16442
- 'copy' | 'cut' | 'drag.dragstart'
16443
- >,
16444
- 'dataTransfer'
15821
+ originEvent: PickFromUnion_2<
15822
+ NativeBehaviorEvent,
15823
+ 'type',
15824
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
16445
15825
  >
16446
15826
  }
16447
15827
  | {
16448
15828
  type: 'serialization.failure'
16449
15829
  mimeType: MIMEType_2
16450
15830
  reason: string
16451
- dataTransfer: DataTransfer
16452
- originEvent: Omit<
16453
- PickFromUnion_2<
16454
- NativeBehaviorEvent,
16455
- 'type',
16456
- 'copy' | 'cut' | 'drag.dragstart'
16457
- >,
16458
- 'dataTransfer'
15831
+ originEvent: PickFromUnion_2<
15832
+ NativeBehaviorEvent,
15833
+ 'type',
15834
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
16459
15835
  >
16460
15836
  }
16461
15837
  | InternalPatchEvent
@@ -16797,14 +16173,10 @@ declare const editorMachine: StateMachine<
16797
16173
  mimeType: `${string}/${string}`
16798
16174
  reason: string
16799
16175
  } & {
16800
- dataTransfer: DataTransfer
16801
- originEvent: Omit<
16802
- PickFromUnion_2<
16803
- NativeBehaviorEvent,
16804
- 'type',
16805
- 'drag.drop' | 'paste'
16806
- >,
16807
- 'dataTransfer'
16176
+ originEvent: PickFromUnion_2<
16177
+ NativeBehaviorEvent,
16178
+ 'type',
16179
+ 'drag.drop' | 'clipboard.paste'
16808
16180
  >
16809
16181
  })
16810
16182
  | ({
@@ -16812,42 +16184,30 @@ declare const editorMachine: StateMachine<
16812
16184
  data: Array<PortableTextBlock>
16813
16185
  mimeType: `${string}/${string}`
16814
16186
  } & {
16815
- dataTransfer: DataTransfer
16816
- originEvent: Omit<
16817
- PickFromUnion_2<
16818
- NativeBehaviorEvent,
16819
- 'type',
16820
- 'drag.drop' | 'paste'
16821
- >,
16822
- 'dataTransfer'
16187
+ originEvent: PickFromUnion_2<
16188
+ NativeBehaviorEvent,
16189
+ 'type',
16190
+ 'drag.drop' | 'clipboard.paste'
16823
16191
  >
16824
16192
  })
16825
16193
  | {
16826
16194
  type: 'serialization.success'
16827
16195
  mimeType: MIMEType_2
16828
16196
  data: string
16829
- dataTransfer: DataTransfer
16830
- originEvent: Omit<
16831
- PickFromUnion_2<
16832
- NativeBehaviorEvent,
16833
- 'type',
16834
- 'copy' | 'cut' | 'drag.dragstart'
16835
- >,
16836
- 'dataTransfer'
16197
+ originEvent: PickFromUnion_2<
16198
+ NativeBehaviorEvent,
16199
+ 'type',
16200
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
16837
16201
  >
16838
16202
  }
16839
16203
  | {
16840
16204
  type: 'serialization.failure'
16841
16205
  mimeType: MIMEType_2
16842
16206
  reason: string
16843
- dataTransfer: DataTransfer
16844
- originEvent: Omit<
16845
- PickFromUnion_2<
16846
- NativeBehaviorEvent,
16847
- 'type',
16848
- 'copy' | 'cut' | 'drag.dragstart'
16849
- >,
16850
- 'dataTransfer'
16207
+ originEvent: PickFromUnion_2<
16208
+ NativeBehaviorEvent,
16209
+ 'type',
16210
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
16851
16211
  >
16852
16212
  }
16853
16213
  | PatchEvent
@@ -17181,14 +16541,10 @@ declare const editorMachine: StateMachine<
17181
16541
  mimeType: `${string}/${string}`
17182
16542
  reason: string
17183
16543
  } & {
17184
- dataTransfer: DataTransfer
17185
- originEvent: Omit<
17186
- PickFromUnion_2<
17187
- NativeBehaviorEvent,
17188
- 'type',
17189
- 'drag.drop' | 'paste'
17190
- >,
17191
- 'dataTransfer'
16544
+ originEvent: PickFromUnion_2<
16545
+ NativeBehaviorEvent,
16546
+ 'type',
16547
+ 'drag.drop' | 'clipboard.paste'
17192
16548
  >
17193
16549
  })
17194
16550
  | ({
@@ -17196,42 +16552,30 @@ declare const editorMachine: StateMachine<
17196
16552
  data: Array<PortableTextBlock>
17197
16553
  mimeType: `${string}/${string}`
17198
16554
  } & {
17199
- dataTransfer: DataTransfer
17200
- originEvent: Omit<
17201
- PickFromUnion_2<
17202
- NativeBehaviorEvent,
17203
- 'type',
17204
- 'drag.drop' | 'paste'
17205
- >,
17206
- 'dataTransfer'
16555
+ originEvent: PickFromUnion_2<
16556
+ NativeBehaviorEvent,
16557
+ 'type',
16558
+ 'drag.drop' | 'clipboard.paste'
17207
16559
  >
17208
16560
  })
17209
16561
  | {
17210
16562
  type: 'serialization.success'
17211
16563
  mimeType: MIMEType_2
17212
16564
  data: string
17213
- dataTransfer: DataTransfer
17214
- originEvent: Omit<
17215
- PickFromUnion_2<
17216
- NativeBehaviorEvent,
17217
- 'type',
17218
- 'copy' | 'cut' | 'drag.dragstart'
17219
- >,
17220
- 'dataTransfer'
16565
+ originEvent: PickFromUnion_2<
16566
+ NativeBehaviorEvent,
16567
+ 'type',
16568
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
17221
16569
  >
17222
16570
  }
17223
16571
  | {
17224
16572
  type: 'serialization.failure'
17225
16573
  mimeType: MIMEType_2
17226
16574
  reason: string
17227
- dataTransfer: DataTransfer
17228
- originEvent: Omit<
17229
- PickFromUnion_2<
17230
- NativeBehaviorEvent,
17231
- 'type',
17232
- 'copy' | 'cut' | 'drag.dragstart'
17233
- >,
17234
- 'dataTransfer'
16575
+ originEvent: PickFromUnion_2<
16576
+ NativeBehaviorEvent,
16577
+ 'type',
16578
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
17235
16579
  >
17236
16580
  }
17237
16581
  | InternalPatchEvent
@@ -17573,14 +16917,10 @@ declare const editorMachine: StateMachine<
17573
16917
  mimeType: `${string}/${string}`
17574
16918
  reason: string
17575
16919
  } & {
17576
- dataTransfer: DataTransfer
17577
- originEvent: Omit<
17578
- PickFromUnion_2<
17579
- NativeBehaviorEvent,
17580
- 'type',
17581
- 'drag.drop' | 'paste'
17582
- >,
17583
- 'dataTransfer'
16920
+ originEvent: PickFromUnion_2<
16921
+ NativeBehaviorEvent,
16922
+ 'type',
16923
+ 'drag.drop' | 'clipboard.paste'
17584
16924
  >
17585
16925
  })
17586
16926
  | ({
@@ -17588,42 +16928,30 @@ declare const editorMachine: StateMachine<
17588
16928
  data: Array<PortableTextBlock>
17589
16929
  mimeType: `${string}/${string}`
17590
16930
  } & {
17591
- dataTransfer: DataTransfer
17592
- originEvent: Omit<
17593
- PickFromUnion_2<
17594
- NativeBehaviorEvent,
17595
- 'type',
17596
- 'drag.drop' | 'paste'
17597
- >,
17598
- 'dataTransfer'
16931
+ originEvent: PickFromUnion_2<
16932
+ NativeBehaviorEvent,
16933
+ 'type',
16934
+ 'drag.drop' | 'clipboard.paste'
17599
16935
  >
17600
16936
  })
17601
16937
  | {
17602
16938
  type: 'serialization.success'
17603
16939
  mimeType: MIMEType_2
17604
16940
  data: string
17605
- dataTransfer: DataTransfer
17606
- originEvent: Omit<
17607
- PickFromUnion_2<
17608
- NativeBehaviorEvent,
17609
- 'type',
17610
- 'copy' | 'cut' | 'drag.dragstart'
17611
- >,
17612
- 'dataTransfer'
16941
+ originEvent: PickFromUnion_2<
16942
+ NativeBehaviorEvent,
16943
+ 'type',
16944
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
17613
16945
  >
17614
16946
  }
17615
16947
  | {
17616
16948
  type: 'serialization.failure'
17617
16949
  mimeType: MIMEType_2
17618
16950
  reason: string
17619
- dataTransfer: DataTransfer
17620
- originEvent: Omit<
17621
- PickFromUnion_2<
17622
- NativeBehaviorEvent,
17623
- 'type',
17624
- 'copy' | 'cut' | 'drag.dragstart'
17625
- >,
17626
- 'dataTransfer'
16951
+ originEvent: PickFromUnion_2<
16952
+ NativeBehaviorEvent,
16953
+ 'type',
16954
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
17627
16955
  >
17628
16956
  }
17629
16957
  | PatchEvent
@@ -17910,14 +17238,10 @@ declare const editorMachine: StateMachine<
17910
17238
  mimeType: `${string}/${string}`
17911
17239
  reason: string
17912
17240
  } & {
17913
- dataTransfer: DataTransfer
17914
- originEvent: Omit<
17915
- PickFromUnion_2<
17916
- NativeBehaviorEvent,
17917
- 'type',
17918
- 'drag.drop' | 'paste'
17919
- >,
17920
- 'dataTransfer'
17241
+ originEvent: PickFromUnion_2<
17242
+ NativeBehaviorEvent,
17243
+ 'type',
17244
+ 'drag.drop' | 'clipboard.paste'
17921
17245
  >
17922
17246
  })
17923
17247
  | ({
@@ -17925,42 +17249,30 @@ declare const editorMachine: StateMachine<
17925
17249
  data: Array<PortableTextBlock>
17926
17250
  mimeType: `${string}/${string}`
17927
17251
  } & {
17928
- dataTransfer: DataTransfer
17929
- originEvent: Omit<
17930
- PickFromUnion_2<
17931
- NativeBehaviorEvent,
17932
- 'type',
17933
- 'drag.drop' | 'paste'
17934
- >,
17935
- 'dataTransfer'
17252
+ originEvent: PickFromUnion_2<
17253
+ NativeBehaviorEvent,
17254
+ 'type',
17255
+ 'drag.drop' | 'clipboard.paste'
17936
17256
  >
17937
17257
  })
17938
17258
  | {
17939
17259
  type: 'serialization.success'
17940
17260
  mimeType: MIMEType_2
17941
17261
  data: string
17942
- dataTransfer: DataTransfer
17943
- originEvent: Omit<
17944
- PickFromUnion_2<
17945
- NativeBehaviorEvent,
17946
- 'type',
17947
- 'copy' | 'cut' | 'drag.dragstart'
17948
- >,
17949
- 'dataTransfer'
17262
+ originEvent: PickFromUnion_2<
17263
+ NativeBehaviorEvent,
17264
+ 'type',
17265
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
17950
17266
  >
17951
17267
  }
17952
17268
  | {
17953
17269
  type: 'serialization.failure'
17954
17270
  mimeType: MIMEType_2
17955
17271
  reason: string
17956
- dataTransfer: DataTransfer
17957
- originEvent: Omit<
17958
- PickFromUnion_2<
17959
- NativeBehaviorEvent,
17960
- 'type',
17961
- 'copy' | 'cut' | 'drag.dragstart'
17962
- >,
17963
- 'dataTransfer'
17272
+ originEvent: PickFromUnion_2<
17273
+ NativeBehaviorEvent,
17274
+ 'type',
17275
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
17964
17276
  >
17965
17277
  }
17966
17278
  | InternalPatchEvent
@@ -18302,14 +17614,10 @@ declare const editorMachine: StateMachine<
18302
17614
  mimeType: `${string}/${string}`
18303
17615
  reason: string
18304
17616
  } & {
18305
- dataTransfer: DataTransfer
18306
- originEvent: Omit<
18307
- PickFromUnion_2<
18308
- NativeBehaviorEvent,
18309
- 'type',
18310
- 'drag.drop' | 'paste'
18311
- >,
18312
- 'dataTransfer'
17617
+ originEvent: PickFromUnion_2<
17618
+ NativeBehaviorEvent,
17619
+ 'type',
17620
+ 'drag.drop' | 'clipboard.paste'
18313
17621
  >
18314
17622
  })
18315
17623
  | ({
@@ -18317,42 +17625,30 @@ declare const editorMachine: StateMachine<
18317
17625
  data: Array<PortableTextBlock>
18318
17626
  mimeType: `${string}/${string}`
18319
17627
  } & {
18320
- dataTransfer: DataTransfer
18321
- originEvent: Omit<
18322
- PickFromUnion_2<
18323
- NativeBehaviorEvent,
18324
- 'type',
18325
- 'drag.drop' | 'paste'
18326
- >,
18327
- 'dataTransfer'
17628
+ originEvent: PickFromUnion_2<
17629
+ NativeBehaviorEvent,
17630
+ 'type',
17631
+ 'drag.drop' | 'clipboard.paste'
18328
17632
  >
18329
17633
  })
18330
17634
  | {
18331
17635
  type: 'serialization.success'
18332
17636
  mimeType: MIMEType_2
18333
17637
  data: string
18334
- dataTransfer: DataTransfer
18335
- originEvent: Omit<
18336
- PickFromUnion_2<
18337
- NativeBehaviorEvent,
18338
- 'type',
18339
- 'copy' | 'cut' | 'drag.dragstart'
18340
- >,
18341
- 'dataTransfer'
17638
+ originEvent: PickFromUnion_2<
17639
+ NativeBehaviorEvent,
17640
+ 'type',
17641
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
18342
17642
  >
18343
17643
  }
18344
17644
  | {
18345
17645
  type: 'serialization.failure'
18346
17646
  mimeType: MIMEType_2
18347
17647
  reason: string
18348
- dataTransfer: DataTransfer
18349
- originEvent: Omit<
18350
- PickFromUnion_2<
18351
- NativeBehaviorEvent,
18352
- 'type',
18353
- 'copy' | 'cut' | 'drag.dragstart'
18354
- >,
18355
- 'dataTransfer'
17648
+ originEvent: PickFromUnion_2<
17649
+ NativeBehaviorEvent,
17650
+ 'type',
17651
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
18356
17652
  >
18357
17653
  }
18358
17654
  | PatchEvent
@@ -18640,14 +17936,10 @@ declare const editorMachine: StateMachine<
18640
17936
  mimeType: `${string}/${string}`
18641
17937
  reason: string
18642
17938
  } & {
18643
- dataTransfer: DataTransfer
18644
- originEvent: Omit<
18645
- PickFromUnion_2<
18646
- NativeBehaviorEvent,
18647
- 'type',
18648
- 'drag.drop' | 'paste'
18649
- >,
18650
- 'dataTransfer'
17939
+ originEvent: PickFromUnion_2<
17940
+ NativeBehaviorEvent,
17941
+ 'type',
17942
+ 'drag.drop' | 'clipboard.paste'
18651
17943
  >
18652
17944
  })
18653
17945
  | ({
@@ -18655,42 +17947,30 @@ declare const editorMachine: StateMachine<
18655
17947
  data: Array<PortableTextBlock>
18656
17948
  mimeType: `${string}/${string}`
18657
17949
  } & {
18658
- dataTransfer: DataTransfer
18659
- originEvent: Omit<
18660
- PickFromUnion_2<
18661
- NativeBehaviorEvent,
18662
- 'type',
18663
- 'drag.drop' | 'paste'
18664
- >,
18665
- 'dataTransfer'
17950
+ originEvent: PickFromUnion_2<
17951
+ NativeBehaviorEvent,
17952
+ 'type',
17953
+ 'drag.drop' | 'clipboard.paste'
18666
17954
  >
18667
17955
  })
18668
17956
  | {
18669
17957
  type: 'serialization.success'
18670
17958
  mimeType: MIMEType_2
18671
17959
  data: string
18672
- dataTransfer: DataTransfer
18673
- originEvent: Omit<
18674
- PickFromUnion_2<
18675
- NativeBehaviorEvent,
18676
- 'type',
18677
- 'copy' | 'cut' | 'drag.dragstart'
18678
- >,
18679
- 'dataTransfer'
17960
+ originEvent: PickFromUnion_2<
17961
+ NativeBehaviorEvent,
17962
+ 'type',
17963
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
18680
17964
  >
18681
17965
  }
18682
17966
  | {
18683
17967
  type: 'serialization.failure'
18684
17968
  mimeType: MIMEType_2
18685
17969
  reason: string
18686
- dataTransfer: DataTransfer
18687
- originEvent: Omit<
18688
- PickFromUnion_2<
18689
- NativeBehaviorEvent,
18690
- 'type',
18691
- 'copy' | 'cut' | 'drag.dragstart'
18692
- >,
18693
- 'dataTransfer'
17970
+ originEvent: PickFromUnion_2<
17971
+ NativeBehaviorEvent,
17972
+ 'type',
17973
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
18694
17974
  >
18695
17975
  }
18696
17976
  | InternalPatchEvent
@@ -19032,14 +18312,10 @@ declare const editorMachine: StateMachine<
19032
18312
  mimeType: `${string}/${string}`
19033
18313
  reason: string
19034
18314
  } & {
19035
- dataTransfer: DataTransfer
19036
- originEvent: Omit<
19037
- PickFromUnion_2<
19038
- NativeBehaviorEvent,
19039
- 'type',
19040
- 'drag.drop' | 'paste'
19041
- >,
19042
- 'dataTransfer'
18315
+ originEvent: PickFromUnion_2<
18316
+ NativeBehaviorEvent,
18317
+ 'type',
18318
+ 'drag.drop' | 'clipboard.paste'
19043
18319
  >
19044
18320
  })
19045
18321
  | ({
@@ -19047,42 +18323,30 @@ declare const editorMachine: StateMachine<
19047
18323
  data: Array<PortableTextBlock>
19048
18324
  mimeType: `${string}/${string}`
19049
18325
  } & {
19050
- dataTransfer: DataTransfer
19051
- originEvent: Omit<
19052
- PickFromUnion_2<
19053
- NativeBehaviorEvent,
19054
- 'type',
19055
- 'drag.drop' | 'paste'
19056
- >,
19057
- 'dataTransfer'
18326
+ originEvent: PickFromUnion_2<
18327
+ NativeBehaviorEvent,
18328
+ 'type',
18329
+ 'drag.drop' | 'clipboard.paste'
19058
18330
  >
19059
18331
  })
19060
18332
  | {
19061
18333
  type: 'serialization.success'
19062
18334
  mimeType: MIMEType_2
19063
18335
  data: string
19064
- dataTransfer: DataTransfer
19065
- originEvent: Omit<
19066
- PickFromUnion_2<
19067
- NativeBehaviorEvent,
19068
- 'type',
19069
- 'copy' | 'cut' | 'drag.dragstart'
19070
- >,
19071
- 'dataTransfer'
18336
+ originEvent: PickFromUnion_2<
18337
+ NativeBehaviorEvent,
18338
+ 'type',
18339
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
19072
18340
  >
19073
18341
  }
19074
18342
  | {
19075
18343
  type: 'serialization.failure'
19076
18344
  mimeType: MIMEType_2
19077
18345
  reason: string
19078
- dataTransfer: DataTransfer
19079
- originEvent: Omit<
19080
- PickFromUnion_2<
19081
- NativeBehaviorEvent,
19082
- 'type',
19083
- 'copy' | 'cut' | 'drag.dragstart'
19084
- >,
19085
- 'dataTransfer'
18346
+ originEvent: PickFromUnion_2<
18347
+ NativeBehaviorEvent,
18348
+ 'type',
18349
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
19086
18350
  >
19087
18351
  }
19088
18352
  | PatchEvent
@@ -19361,14 +18625,10 @@ declare const editorMachine: StateMachine<
19361
18625
  mimeType: `${string}/${string}`
19362
18626
  reason: string
19363
18627
  } & {
19364
- dataTransfer: DataTransfer
19365
- originEvent: Omit<
19366
- PickFromUnion_2<
19367
- NativeBehaviorEvent,
19368
- 'type',
19369
- 'drag.drop' | 'paste'
19370
- >,
19371
- 'dataTransfer'
18628
+ originEvent: PickFromUnion_2<
18629
+ NativeBehaviorEvent,
18630
+ 'type',
18631
+ 'drag.drop' | 'clipboard.paste'
19372
18632
  >
19373
18633
  })
19374
18634
  | ({
@@ -19376,42 +18636,30 @@ declare const editorMachine: StateMachine<
19376
18636
  data: Array<PortableTextBlock>
19377
18637
  mimeType: `${string}/${string}`
19378
18638
  } & {
19379
- dataTransfer: DataTransfer
19380
- originEvent: Omit<
19381
- PickFromUnion_2<
19382
- NativeBehaviorEvent,
19383
- 'type',
19384
- 'drag.drop' | 'paste'
19385
- >,
19386
- 'dataTransfer'
18639
+ originEvent: PickFromUnion_2<
18640
+ NativeBehaviorEvent,
18641
+ 'type',
18642
+ 'drag.drop' | 'clipboard.paste'
19387
18643
  >
19388
18644
  })
19389
18645
  | {
19390
18646
  type: 'serialization.success'
19391
18647
  mimeType: MIMEType_2
19392
18648
  data: string
19393
- dataTransfer: DataTransfer
19394
- originEvent: Omit<
19395
- PickFromUnion_2<
19396
- NativeBehaviorEvent,
19397
- 'type',
19398
- 'copy' | 'cut' | 'drag.dragstart'
19399
- >,
19400
- 'dataTransfer'
18649
+ originEvent: PickFromUnion_2<
18650
+ NativeBehaviorEvent,
18651
+ 'type',
18652
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
19401
18653
  >
19402
18654
  }
19403
18655
  | {
19404
18656
  type: 'serialization.failure'
19405
18657
  mimeType: MIMEType_2
19406
18658
  reason: string
19407
- dataTransfer: DataTransfer
19408
- originEvent: Omit<
19409
- PickFromUnion_2<
19410
- NativeBehaviorEvent,
19411
- 'type',
19412
- 'copy' | 'cut' | 'drag.dragstart'
19413
- >,
19414
- 'dataTransfer'
18659
+ originEvent: PickFromUnion_2<
18660
+ NativeBehaviorEvent,
18661
+ 'type',
18662
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
19415
18663
  >
19416
18664
  }
19417
18665
  | InternalPatchEvent
@@ -19753,14 +19001,10 @@ declare const editorMachine: StateMachine<
19753
19001
  mimeType: `${string}/${string}`
19754
19002
  reason: string
19755
19003
  } & {
19756
- dataTransfer: DataTransfer
19757
- originEvent: Omit<
19758
- PickFromUnion_2<
19759
- NativeBehaviorEvent,
19760
- 'type',
19761
- 'drag.drop' | 'paste'
19762
- >,
19763
- 'dataTransfer'
19004
+ originEvent: PickFromUnion_2<
19005
+ NativeBehaviorEvent,
19006
+ 'type',
19007
+ 'drag.drop' | 'clipboard.paste'
19764
19008
  >
19765
19009
  })
19766
19010
  | ({
@@ -19768,42 +19012,30 @@ declare const editorMachine: StateMachine<
19768
19012
  data: Array<PortableTextBlock>
19769
19013
  mimeType: `${string}/${string}`
19770
19014
  } & {
19771
- dataTransfer: DataTransfer
19772
- originEvent: Omit<
19773
- PickFromUnion_2<
19774
- NativeBehaviorEvent,
19775
- 'type',
19776
- 'drag.drop' | 'paste'
19777
- >,
19778
- 'dataTransfer'
19015
+ originEvent: PickFromUnion_2<
19016
+ NativeBehaviorEvent,
19017
+ 'type',
19018
+ 'drag.drop' | 'clipboard.paste'
19779
19019
  >
19780
19020
  })
19781
19021
  | {
19782
19022
  type: 'serialization.success'
19783
19023
  mimeType: MIMEType_2
19784
19024
  data: string
19785
- dataTransfer: DataTransfer
19786
- originEvent: Omit<
19787
- PickFromUnion_2<
19788
- NativeBehaviorEvent,
19789
- 'type',
19790
- 'copy' | 'cut' | 'drag.dragstart'
19791
- >,
19792
- 'dataTransfer'
19025
+ originEvent: PickFromUnion_2<
19026
+ NativeBehaviorEvent,
19027
+ 'type',
19028
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
19793
19029
  >
19794
19030
  }
19795
19031
  | {
19796
19032
  type: 'serialization.failure'
19797
19033
  mimeType: MIMEType_2
19798
19034
  reason: string
19799
- dataTransfer: DataTransfer
19800
- originEvent: Omit<
19801
- PickFromUnion_2<
19802
- NativeBehaviorEvent,
19803
- 'type',
19804
- 'copy' | 'cut' | 'drag.dragstart'
19805
- >,
19806
- 'dataTransfer'
19035
+ originEvent: PickFromUnion_2<
19036
+ NativeBehaviorEvent,
19037
+ 'type',
19038
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
19807
19039
  >
19808
19040
  }
19809
19041
  | PatchEvent
@@ -20086,14 +19318,10 @@ declare const editorMachine: StateMachine<
20086
19318
  mimeType: `${string}/${string}`
20087
19319
  reason: string
20088
19320
  } & {
20089
- dataTransfer: DataTransfer
20090
- originEvent: Omit<
20091
- PickFromUnion_2<
20092
- NativeBehaviorEvent,
20093
- 'type',
20094
- 'drag.drop' | 'paste'
20095
- >,
20096
- 'dataTransfer'
19321
+ originEvent: PickFromUnion_2<
19322
+ NativeBehaviorEvent,
19323
+ 'type',
19324
+ 'drag.drop' | 'clipboard.paste'
20097
19325
  >
20098
19326
  })
20099
19327
  | ({
@@ -20101,42 +19329,30 @@ declare const editorMachine: StateMachine<
20101
19329
  data: Array<PortableTextBlock>
20102
19330
  mimeType: `${string}/${string}`
20103
19331
  } & {
20104
- dataTransfer: DataTransfer
20105
- originEvent: Omit<
20106
- PickFromUnion_2<
20107
- NativeBehaviorEvent,
20108
- 'type',
20109
- 'drag.drop' | 'paste'
20110
- >,
20111
- 'dataTransfer'
19332
+ originEvent: PickFromUnion_2<
19333
+ NativeBehaviorEvent,
19334
+ 'type',
19335
+ 'drag.drop' | 'clipboard.paste'
20112
19336
  >
20113
19337
  })
20114
19338
  | {
20115
19339
  type: 'serialization.success'
20116
19340
  mimeType: MIMEType_2
20117
19341
  data: string
20118
- dataTransfer: DataTransfer
20119
- originEvent: Omit<
20120
- PickFromUnion_2<
20121
- NativeBehaviorEvent,
20122
- 'type',
20123
- 'copy' | 'cut' | 'drag.dragstart'
20124
- >,
20125
- 'dataTransfer'
19342
+ originEvent: PickFromUnion_2<
19343
+ NativeBehaviorEvent,
19344
+ 'type',
19345
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
20126
19346
  >
20127
19347
  }
20128
19348
  | {
20129
19349
  type: 'serialization.failure'
20130
19350
  mimeType: MIMEType_2
20131
19351
  reason: string
20132
- dataTransfer: DataTransfer
20133
- originEvent: Omit<
20134
- PickFromUnion_2<
20135
- NativeBehaviorEvent,
20136
- 'type',
20137
- 'copy' | 'cut' | 'drag.dragstart'
20138
- >,
20139
- 'dataTransfer'
19352
+ originEvent: PickFromUnion_2<
19353
+ NativeBehaviorEvent,
19354
+ 'type',
19355
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
20140
19356
  >
20141
19357
  }
20142
19358
  | InternalPatchEvent
@@ -20478,14 +19694,10 @@ declare const editorMachine: StateMachine<
20478
19694
  mimeType: `${string}/${string}`
20479
19695
  reason: string
20480
19696
  } & {
20481
- dataTransfer: DataTransfer
20482
- originEvent: Omit<
20483
- PickFromUnion_2<
20484
- NativeBehaviorEvent,
20485
- 'type',
20486
- 'drag.drop' | 'paste'
20487
- >,
20488
- 'dataTransfer'
19697
+ originEvent: PickFromUnion_2<
19698
+ NativeBehaviorEvent,
19699
+ 'type',
19700
+ 'drag.drop' | 'clipboard.paste'
20489
19701
  >
20490
19702
  })
20491
19703
  | ({
@@ -20493,42 +19705,30 @@ declare const editorMachine: StateMachine<
20493
19705
  data: Array<PortableTextBlock>
20494
19706
  mimeType: `${string}/${string}`
20495
19707
  } & {
20496
- dataTransfer: DataTransfer
20497
- originEvent: Omit<
20498
- PickFromUnion_2<
20499
- NativeBehaviorEvent,
20500
- 'type',
20501
- 'drag.drop' | 'paste'
20502
- >,
20503
- 'dataTransfer'
19708
+ originEvent: PickFromUnion_2<
19709
+ NativeBehaviorEvent,
19710
+ 'type',
19711
+ 'drag.drop' | 'clipboard.paste'
20504
19712
  >
20505
19713
  })
20506
19714
  | {
20507
19715
  type: 'serialization.success'
20508
19716
  mimeType: MIMEType_2
20509
19717
  data: string
20510
- dataTransfer: DataTransfer
20511
- originEvent: Omit<
20512
- PickFromUnion_2<
20513
- NativeBehaviorEvent,
20514
- 'type',
20515
- 'copy' | 'cut' | 'drag.dragstart'
20516
- >,
20517
- 'dataTransfer'
19718
+ originEvent: PickFromUnion_2<
19719
+ NativeBehaviorEvent,
19720
+ 'type',
19721
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
20518
19722
  >
20519
19723
  }
20520
19724
  | {
20521
19725
  type: 'serialization.failure'
20522
19726
  mimeType: MIMEType_2
20523
19727
  reason: string
20524
- dataTransfer: DataTransfer
20525
- originEvent: Omit<
20526
- PickFromUnion_2<
20527
- NativeBehaviorEvent,
20528
- 'type',
20529
- 'copy' | 'cut' | 'drag.dragstart'
20530
- >,
20531
- 'dataTransfer'
19728
+ originEvent: PickFromUnion_2<
19729
+ NativeBehaviorEvent,
19730
+ 'type',
19731
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
20532
19732
  >
20533
19733
  }
20534
19734
  | PatchEvent
@@ -20815,14 +20015,10 @@ declare const editorMachine: StateMachine<
20815
20015
  mimeType: `${string}/${string}`
20816
20016
  reason: string
20817
20017
  } & {
20818
- dataTransfer: DataTransfer
20819
- originEvent: Omit<
20820
- PickFromUnion_2<
20821
- NativeBehaviorEvent,
20822
- 'type',
20823
- 'drag.drop' | 'paste'
20824
- >,
20825
- 'dataTransfer'
20018
+ originEvent: PickFromUnion_2<
20019
+ NativeBehaviorEvent,
20020
+ 'type',
20021
+ 'drag.drop' | 'clipboard.paste'
20826
20022
  >
20827
20023
  })
20828
20024
  | ({
@@ -20830,42 +20026,30 @@ declare const editorMachine: StateMachine<
20830
20026
  data: Array<PortableTextBlock>
20831
20027
  mimeType: `${string}/${string}`
20832
20028
  } & {
20833
- dataTransfer: DataTransfer
20834
- originEvent: Omit<
20835
- PickFromUnion_2<
20836
- NativeBehaviorEvent,
20837
- 'type',
20838
- 'drag.drop' | 'paste'
20839
- >,
20840
- 'dataTransfer'
20029
+ originEvent: PickFromUnion_2<
20030
+ NativeBehaviorEvent,
20031
+ 'type',
20032
+ 'drag.drop' | 'clipboard.paste'
20841
20033
  >
20842
20034
  })
20843
20035
  | {
20844
20036
  type: 'serialization.success'
20845
20037
  mimeType: MIMEType_2
20846
20038
  data: string
20847
- dataTransfer: DataTransfer
20848
- originEvent: Omit<
20849
- PickFromUnion_2<
20850
- NativeBehaviorEvent,
20851
- 'type',
20852
- 'copy' | 'cut' | 'drag.dragstart'
20853
- >,
20854
- 'dataTransfer'
20039
+ originEvent: PickFromUnion_2<
20040
+ NativeBehaviorEvent,
20041
+ 'type',
20042
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
20855
20043
  >
20856
20044
  }
20857
20045
  | {
20858
20046
  type: 'serialization.failure'
20859
20047
  mimeType: MIMEType_2
20860
20048
  reason: string
20861
- dataTransfer: DataTransfer
20862
- originEvent: Omit<
20863
- PickFromUnion_2<
20864
- NativeBehaviorEvent,
20865
- 'type',
20866
- 'copy' | 'cut' | 'drag.dragstart'
20867
- >,
20868
- 'dataTransfer'
20049
+ originEvent: PickFromUnion_2<
20050
+ NativeBehaviorEvent,
20051
+ 'type',
20052
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
20869
20053
  >
20870
20054
  }
20871
20055
  | InternalPatchEvent
@@ -21207,14 +20391,10 @@ declare const editorMachine: StateMachine<
21207
20391
  mimeType: `${string}/${string}`
21208
20392
  reason: string
21209
20393
  } & {
21210
- dataTransfer: DataTransfer
21211
- originEvent: Omit<
21212
- PickFromUnion_2<
21213
- NativeBehaviorEvent,
21214
- 'type',
21215
- 'drag.drop' | 'paste'
21216
- >,
21217
- 'dataTransfer'
20394
+ originEvent: PickFromUnion_2<
20395
+ NativeBehaviorEvent,
20396
+ 'type',
20397
+ 'drag.drop' | 'clipboard.paste'
21218
20398
  >
21219
20399
  })
21220
20400
  | ({
@@ -21222,42 +20402,30 @@ declare const editorMachine: StateMachine<
21222
20402
  data: Array<PortableTextBlock>
21223
20403
  mimeType: `${string}/${string}`
21224
20404
  } & {
21225
- dataTransfer: DataTransfer
21226
- originEvent: Omit<
21227
- PickFromUnion_2<
21228
- NativeBehaviorEvent,
21229
- 'type',
21230
- 'drag.drop' | 'paste'
21231
- >,
21232
- 'dataTransfer'
20405
+ originEvent: PickFromUnion_2<
20406
+ NativeBehaviorEvent,
20407
+ 'type',
20408
+ 'drag.drop' | 'clipboard.paste'
21233
20409
  >
21234
20410
  })
21235
20411
  | {
21236
20412
  type: 'serialization.success'
21237
20413
  mimeType: MIMEType_2
21238
20414
  data: string
21239
- dataTransfer: DataTransfer
21240
- originEvent: Omit<
21241
- PickFromUnion_2<
21242
- NativeBehaviorEvent,
21243
- 'type',
21244
- 'copy' | 'cut' | 'drag.dragstart'
21245
- >,
21246
- 'dataTransfer'
20415
+ originEvent: PickFromUnion_2<
20416
+ NativeBehaviorEvent,
20417
+ 'type',
20418
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
21247
20419
  >
21248
20420
  }
21249
20421
  | {
21250
20422
  type: 'serialization.failure'
21251
20423
  mimeType: MIMEType_2
21252
20424
  reason: string
21253
- dataTransfer: DataTransfer
21254
- originEvent: Omit<
21255
- PickFromUnion_2<
21256
- NativeBehaviorEvent,
21257
- 'type',
21258
- 'copy' | 'cut' | 'drag.dragstart'
21259
- >,
21260
- 'dataTransfer'
20425
+ originEvent: PickFromUnion_2<
20426
+ NativeBehaviorEvent,
20427
+ 'type',
20428
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
21261
20429
  >
21262
20430
  }
21263
20431
  | PatchEvent
@@ -21558,14 +20726,10 @@ declare const editorMachine: StateMachine<
21558
20726
  mimeType: `${string}/${string}`
21559
20727
  reason: string
21560
20728
  } & {
21561
- dataTransfer: DataTransfer
21562
- originEvent: Omit<
21563
- PickFromUnion_2<
21564
- NativeBehaviorEvent,
21565
- 'type',
21566
- 'drag.drop' | 'paste'
21567
- >,
21568
- 'dataTransfer'
20729
+ originEvent: PickFromUnion_2<
20730
+ NativeBehaviorEvent,
20731
+ 'type',
20732
+ 'drag.drop' | 'clipboard.paste'
21569
20733
  >
21570
20734
  })
21571
20735
  | ({
@@ -21573,42 +20737,34 @@ declare const editorMachine: StateMachine<
21573
20737
  data: Array<PortableTextBlock>
21574
20738
  mimeType: `${string}/${string}`
21575
20739
  } & {
21576
- dataTransfer: DataTransfer
21577
- originEvent: Omit<
21578
- PickFromUnion_2<
21579
- NativeBehaviorEvent,
21580
- 'type',
21581
- 'drag.drop' | 'paste'
21582
- >,
21583
- 'dataTransfer'
20740
+ originEvent: PickFromUnion_2<
20741
+ NativeBehaviorEvent,
20742
+ 'type',
20743
+ 'drag.drop' | 'clipboard.paste'
21584
20744
  >
21585
20745
  })
21586
20746
  | {
21587
20747
  type: 'serialization.success'
21588
20748
  mimeType: MIMEType_2
21589
20749
  data: string
21590
- dataTransfer: DataTransfer
21591
- originEvent: Omit<
21592
- PickFromUnion_2<
21593
- NativeBehaviorEvent,
21594
- 'type',
21595
- 'copy' | 'cut' | 'drag.dragstart'
21596
- >,
21597
- 'dataTransfer'
20750
+ originEvent: PickFromUnion_2<
20751
+ NativeBehaviorEvent,
20752
+ 'type',
20753
+ | 'clipboard.copy'
20754
+ | 'clipboard.cut'
20755
+ | 'drag.dragstart'
21598
20756
  >
21599
20757
  }
21600
20758
  | {
21601
20759
  type: 'serialization.failure'
21602
20760
  mimeType: MIMEType_2
21603
20761
  reason: string
21604
- dataTransfer: DataTransfer
21605
- originEvent: Omit<
21606
- PickFromUnion_2<
21607
- NativeBehaviorEvent,
21608
- 'type',
21609
- 'copy' | 'cut' | 'drag.dragstart'
21610
- >,
21611
- 'dataTransfer'
20762
+ originEvent: PickFromUnion_2<
20763
+ NativeBehaviorEvent,
20764
+ 'type',
20765
+ | 'clipboard.copy'
20766
+ | 'clipboard.cut'
20767
+ | 'drag.dragstart'
21612
20768
  >
21613
20769
  }
21614
20770
  | InternalPatchEvent
@@ -21977,14 +21133,10 @@ declare const editorMachine: StateMachine<
21977
21133
  mimeType: `${string}/${string}`
21978
21134
  reason: string
21979
21135
  } & {
21980
- dataTransfer: DataTransfer
21981
- originEvent: Omit<
21982
- PickFromUnion_2<
21983
- NativeBehaviorEvent,
21984
- 'type',
21985
- 'drag.drop' | 'paste'
21986
- >,
21987
- 'dataTransfer'
21136
+ originEvent: PickFromUnion_2<
21137
+ NativeBehaviorEvent,
21138
+ 'type',
21139
+ 'drag.drop' | 'clipboard.paste'
21988
21140
  >
21989
21141
  })
21990
21142
  | ({
@@ -21992,42 +21144,30 @@ declare const editorMachine: StateMachine<
21992
21144
  data: Array<PortableTextBlock>
21993
21145
  mimeType: `${string}/${string}`
21994
21146
  } & {
21995
- dataTransfer: DataTransfer
21996
- originEvent: Omit<
21997
- PickFromUnion_2<
21998
- NativeBehaviorEvent,
21999
- 'type',
22000
- 'drag.drop' | 'paste'
22001
- >,
22002
- 'dataTransfer'
21147
+ originEvent: PickFromUnion_2<
21148
+ NativeBehaviorEvent,
21149
+ 'type',
21150
+ 'drag.drop' | 'clipboard.paste'
22003
21151
  >
22004
21152
  })
22005
21153
  | {
22006
21154
  type: 'serialization.success'
22007
21155
  mimeType: MIMEType_2
22008
21156
  data: string
22009
- dataTransfer: DataTransfer
22010
- originEvent: Omit<
22011
- PickFromUnion_2<
22012
- NativeBehaviorEvent,
22013
- 'type',
22014
- 'copy' | 'cut' | 'drag.dragstart'
22015
- >,
22016
- 'dataTransfer'
21157
+ originEvent: PickFromUnion_2<
21158
+ NativeBehaviorEvent,
21159
+ 'type',
21160
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
22017
21161
  >
22018
21162
  }
22019
21163
  | {
22020
21164
  type: 'serialization.failure'
22021
21165
  mimeType: MIMEType_2
22022
21166
  reason: string
22023
- dataTransfer: DataTransfer
22024
- originEvent: Omit<
22025
- PickFromUnion_2<
22026
- NativeBehaviorEvent,
22027
- 'type',
22028
- 'copy' | 'cut' | 'drag.dragstart'
22029
- >,
22030
- 'dataTransfer'
21167
+ originEvent: PickFromUnion_2<
21168
+ NativeBehaviorEvent,
21169
+ 'type',
21170
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
22031
21171
  >
22032
21172
  }
22033
21173
  | InternalPatchEvent
@@ -22364,14 +21504,10 @@ declare const editorMachine: StateMachine<
22364
21504
  mimeType: `${string}/${string}`
22365
21505
  reason: string
22366
21506
  } & {
22367
- dataTransfer: DataTransfer
22368
- originEvent: Omit<
22369
- PickFromUnion_2<
22370
- NativeBehaviorEvent,
22371
- 'type',
22372
- 'drag.drop' | 'paste'
22373
- >,
22374
- 'dataTransfer'
21507
+ originEvent: PickFromUnion_2<
21508
+ NativeBehaviorEvent,
21509
+ 'type',
21510
+ 'drag.drop' | 'clipboard.paste'
22375
21511
  >
22376
21512
  })
22377
21513
  | ({
@@ -22379,42 +21515,30 @@ declare const editorMachine: StateMachine<
22379
21515
  data: Array<PortableTextBlock>
22380
21516
  mimeType: `${string}/${string}`
22381
21517
  } & {
22382
- dataTransfer: DataTransfer
22383
- originEvent: Omit<
22384
- PickFromUnion_2<
22385
- NativeBehaviorEvent,
22386
- 'type',
22387
- 'drag.drop' | 'paste'
22388
- >,
22389
- 'dataTransfer'
21518
+ originEvent: PickFromUnion_2<
21519
+ NativeBehaviorEvent,
21520
+ 'type',
21521
+ 'drag.drop' | 'clipboard.paste'
22390
21522
  >
22391
21523
  })
22392
21524
  | {
22393
21525
  type: 'serialization.success'
22394
21526
  mimeType: MIMEType_2
22395
21527
  data: string
22396
- dataTransfer: DataTransfer
22397
- originEvent: Omit<
22398
- PickFromUnion_2<
22399
- NativeBehaviorEvent,
22400
- 'type',
22401
- 'copy' | 'cut' | 'drag.dragstart'
22402
- >,
22403
- 'dataTransfer'
21528
+ originEvent: PickFromUnion_2<
21529
+ NativeBehaviorEvent,
21530
+ 'type',
21531
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
22404
21532
  >
22405
21533
  }
22406
21534
  | {
22407
21535
  type: 'serialization.failure'
22408
21536
  mimeType: MIMEType_2
22409
21537
  reason: string
22410
- dataTransfer: DataTransfer
22411
- originEvent: Omit<
22412
- PickFromUnion_2<
22413
- NativeBehaviorEvent,
22414
- 'type',
22415
- 'copy' | 'cut' | 'drag.dragstart'
22416
- >,
22417
- 'dataTransfer'
21538
+ originEvent: PickFromUnion_2<
21539
+ NativeBehaviorEvent,
21540
+ 'type',
21541
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
22418
21542
  >
22419
21543
  }
22420
21544
  | InternalPatchEvent
@@ -22768,14 +21892,10 @@ declare const editorMachine: StateMachine<
22768
21892
  mimeType: `${string}/${string}`
22769
21893
  reason: string
22770
21894
  } & {
22771
- dataTransfer: DataTransfer
22772
- originEvent: Omit<
22773
- PickFromUnion_2<
22774
- NativeBehaviorEvent,
22775
- 'type',
22776
- 'drag.drop' | 'paste'
22777
- >,
22778
- 'dataTransfer'
21895
+ originEvent: PickFromUnion_2<
21896
+ NativeBehaviorEvent,
21897
+ 'type',
21898
+ 'drag.drop' | 'clipboard.paste'
22779
21899
  >
22780
21900
  })
22781
21901
  | ({
@@ -22783,42 +21903,30 @@ declare const editorMachine: StateMachine<
22783
21903
  data: Array<PortableTextBlock>
22784
21904
  mimeType: `${string}/${string}`
22785
21905
  } & {
22786
- dataTransfer: DataTransfer
22787
- originEvent: Omit<
22788
- PickFromUnion_2<
22789
- NativeBehaviorEvent,
22790
- 'type',
22791
- 'drag.drop' | 'paste'
22792
- >,
22793
- 'dataTransfer'
21906
+ originEvent: PickFromUnion_2<
21907
+ NativeBehaviorEvent,
21908
+ 'type',
21909
+ 'drag.drop' | 'clipboard.paste'
22794
21910
  >
22795
21911
  })
22796
21912
  | {
22797
21913
  type: 'serialization.success'
22798
21914
  mimeType: MIMEType_2
22799
21915
  data: string
22800
- dataTransfer: DataTransfer
22801
- originEvent: Omit<
22802
- PickFromUnion_2<
22803
- NativeBehaviorEvent,
22804
- 'type',
22805
- 'copy' | 'cut' | 'drag.dragstart'
22806
- >,
22807
- 'dataTransfer'
21916
+ originEvent: PickFromUnion_2<
21917
+ NativeBehaviorEvent,
21918
+ 'type',
21919
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
22808
21920
  >
22809
21921
  }
22810
21922
  | {
22811
21923
  type: 'serialization.failure'
22812
21924
  mimeType: MIMEType_2
22813
21925
  reason: string
22814
- dataTransfer: DataTransfer
22815
- originEvent: Omit<
22816
- PickFromUnion_2<
22817
- NativeBehaviorEvent,
22818
- 'type',
22819
- 'copy' | 'cut' | 'drag.dragstart'
22820
- >,
22821
- 'dataTransfer'
21926
+ originEvent: PickFromUnion_2<
21927
+ NativeBehaviorEvent,
21928
+ 'type',
21929
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
22822
21930
  >
22823
21931
  }
22824
21932
  | InternalPatchEvent
@@ -23155,14 +22263,10 @@ declare const editorMachine: StateMachine<
23155
22263
  mimeType: `${string}/${string}`
23156
22264
  reason: string
23157
22265
  } & {
23158
- dataTransfer: DataTransfer
23159
- originEvent: Omit<
23160
- PickFromUnion_2<
23161
- NativeBehaviorEvent,
23162
- 'type',
23163
- 'drag.drop' | 'paste'
23164
- >,
23165
- 'dataTransfer'
22266
+ originEvent: PickFromUnion_2<
22267
+ NativeBehaviorEvent,
22268
+ 'type',
22269
+ 'drag.drop' | 'clipboard.paste'
23166
22270
  >
23167
22271
  })
23168
22272
  | ({
@@ -23170,42 +22274,30 @@ declare const editorMachine: StateMachine<
23170
22274
  data: Array<PortableTextBlock>
23171
22275
  mimeType: `${string}/${string}`
23172
22276
  } & {
23173
- dataTransfer: DataTransfer
23174
- originEvent: Omit<
23175
- PickFromUnion_2<
23176
- NativeBehaviorEvent,
23177
- 'type',
23178
- 'drag.drop' | 'paste'
23179
- >,
23180
- 'dataTransfer'
22277
+ originEvent: PickFromUnion_2<
22278
+ NativeBehaviorEvent,
22279
+ 'type',
22280
+ 'drag.drop' | 'clipboard.paste'
23181
22281
  >
23182
22282
  })
23183
22283
  | {
23184
22284
  type: 'serialization.success'
23185
22285
  mimeType: MIMEType_2
23186
22286
  data: string
23187
- dataTransfer: DataTransfer
23188
- originEvent: Omit<
23189
- PickFromUnion_2<
23190
- NativeBehaviorEvent,
23191
- 'type',
23192
- 'copy' | 'cut' | 'drag.dragstart'
23193
- >,
23194
- 'dataTransfer'
22287
+ originEvent: PickFromUnion_2<
22288
+ NativeBehaviorEvent,
22289
+ 'type',
22290
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
23195
22291
  >
23196
22292
  }
23197
22293
  | {
23198
22294
  type: 'serialization.failure'
23199
22295
  mimeType: MIMEType_2
23200
22296
  reason: string
23201
- dataTransfer: DataTransfer
23202
- originEvent: Omit<
23203
- PickFromUnion_2<
23204
- NativeBehaviorEvent,
23205
- 'type',
23206
- 'copy' | 'cut' | 'drag.dragstart'
23207
- >,
23208
- 'dataTransfer'
22297
+ originEvent: PickFromUnion_2<
22298
+ NativeBehaviorEvent,
22299
+ 'type',
22300
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
23209
22301
  >
23210
22302
  }
23211
22303
  | InternalPatchEvent
@@ -23583,6 +22675,22 @@ export declare function isTextBlock(
23583
22675
  block: PortableTextBlock,
23584
22676
  ): block is PortableTextTextBlock
23585
22677
 
22678
+ declare type KeyboardBehaviorEvent =
22679
+ | {
22680
+ type: 'keyboard.keydown'
22681
+ originEvent: Pick<
22682
+ KeyboardEvent,
22683
+ 'key' | 'code' | 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey'
22684
+ >
22685
+ }
22686
+ | {
22687
+ type: 'keyboard.keyup'
22688
+ originEvent: Pick<
22689
+ KeyboardEvent,
22690
+ 'key' | 'code' | 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey'
22691
+ >
22692
+ }
22693
+
23586
22694
  /**
23587
22695
  * @beta
23588
22696
  */
@@ -23633,36 +22741,9 @@ declare type NamespaceEvent<
23633
22741
  * @beta
23634
22742
  */
23635
22743
  declare type NativeBehaviorEvent =
23636
- | {
23637
- type: 'copy'
23638
- data: DataTransfer
23639
- position: EventPosition
23640
- }
23641
- | {
23642
- type: 'cut'
23643
- dataTransfer: DataTransfer
23644
- position: EventPosition
23645
- }
23646
- | {
23647
- type: 'key.down'
23648
- keyboardEvent: Pick<
23649
- KeyboardEvent,
23650
- 'key' | 'code' | 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey'
23651
- >
23652
- }
23653
- | {
23654
- type: 'key.up'
23655
- keyboardEvent: Pick<
23656
- KeyboardEvent,
23657
- 'key' | 'code' | 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey'
23658
- >
23659
- }
22744
+ | ClipboardBehaviorEvent
22745
+ | KeyboardBehaviorEvent
23660
22746
  | MouseBehaviorEvent
23661
- | {
23662
- type: 'paste'
23663
- data: DataTransfer
23664
- position: EventPosition
23665
- }
23666
22747
  | DragBehaviorEvent
23667
22748
 
23668
22749
  /**
@@ -24001,38 +23082,30 @@ declare type SyntheticBehaviorEvent =
24001
23082
  'type',
24002
23083
  'deserialization.failure' | 'deserialization.success'
24003
23084
  > & {
24004
- dataTransfer: DataTransfer
24005
- originEvent: Omit<
24006
- PickFromUnion<NativeBehaviorEvent, 'type', 'drag.drop' | 'paste'>,
24007
- 'dataTransfer'
23085
+ originEvent: PickFromUnion<
23086
+ NativeBehaviorEvent,
23087
+ 'type',
23088
+ 'drag.drop' | 'clipboard.paste'
24008
23089
  >
24009
23090
  })
24010
23091
  | {
24011
23092
  type: 'serialization.success'
24012
23093
  mimeType: MIMEType
24013
23094
  data: string
24014
- dataTransfer: DataTransfer
24015
- originEvent: Omit<
24016
- PickFromUnion<
24017
- NativeBehaviorEvent,
24018
- 'type',
24019
- 'copy' | 'cut' | 'drag.dragstart'
24020
- >,
24021
- 'dataTransfer'
23095
+ originEvent: PickFromUnion<
23096
+ NativeBehaviorEvent,
23097
+ 'type',
23098
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
24022
23099
  >
24023
23100
  }
24024
23101
  | {
24025
23102
  type: 'serialization.failure'
24026
23103
  mimeType: MIMEType
24027
23104
  reason: string
24028
- dataTransfer: DataTransfer
24029
- originEvent: Omit<
24030
- PickFromUnion<
24031
- NativeBehaviorEvent,
24032
- 'type',
24033
- 'copy' | 'cut' | 'drag.dragstart'
24034
- >,
24035
- 'dataTransfer'
23105
+ originEvent: PickFromUnion<
23106
+ NativeBehaviorEvent,
23107
+ 'type',
23108
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
24036
23109
  >
24037
23110
  }
24038
23111