@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
@@ -63,9 +63,15 @@ declare type Behavior<
63
63
  TGuardResponse = true,
64
64
  TBehaviorEvent extends BehaviorEvent = TBehaviorEventType extends '*'
65
65
  ? BehaviorEvent
66
- : TBehaviorEventType extends 'drag.*'
67
- ? DragBehaviorEvent
68
- : PickFromUnion<BehaviorEvent, 'type', TBehaviorEventType>,
66
+ : TBehaviorEventType extends 'clipboard.*'
67
+ ? ClipboardBehaviorEvent
68
+ : TBehaviorEventType extends 'drag.*'
69
+ ? DragBehaviorEvent
70
+ : TBehaviorEventType extends 'keyboard.*'
71
+ ? KeyboardBehaviorEvent
72
+ : TBehaviorEventType extends 'mouse.*'
73
+ ? MouseBehaviorEvent
74
+ : PickFromUnion<BehaviorEvent, 'type', TBehaviorEventType>,
69
75
  > = {
70
76
  /**
71
77
  * The internal editor event that triggers this behavior.
@@ -127,9 +133,18 @@ declare type BehaviorEvent =
127
133
  | {
128
134
  type: '*'
129
135
  }
136
+ | {
137
+ type: 'clipboard.*'
138
+ }
130
139
  | {
131
140
  type: 'drag.*'
132
141
  }
142
+ | {
143
+ type: 'keyboard.*'
144
+ }
145
+ | {
146
+ type: 'mouse.*'
147
+ }
133
148
 
134
149
  /**
135
150
  * @beta
@@ -159,6 +174,29 @@ declare type BlockOffset = {
159
174
  offset: number
160
175
  }
161
176
 
177
+ declare type ClipboardBehaviorEvent =
178
+ | {
179
+ type: 'clipboard.copy'
180
+ originEvent: {
181
+ dataTransfer: DataTransfer
182
+ }
183
+ position: EventPosition
184
+ }
185
+ | {
186
+ type: 'clipboard.cut'
187
+ originEvent: {
188
+ dataTransfer: DataTransfer
189
+ }
190
+ position: EventPosition
191
+ }
192
+ | {
193
+ type: 'clipboard.paste'
194
+ originEvent: {
195
+ dataTransfer: DataTransfer
196
+ }
197
+ position: EventPosition
198
+ }
199
+
162
200
  declare type Converter<TMIMEType extends MIMEType = MIMEType> = {
163
201
  mimeType: TMIMEType
164
202
  serialize: Serializer<TMIMEType>
@@ -168,19 +206,19 @@ declare type Converter<TMIMEType extends MIMEType = MIMEType> = {
168
206
  declare type ConverterEvent<TMIMEType extends MIMEType = MIMEType> =
169
207
  | {
170
208
  type: 'serialize'
171
- originEvent: 'copy' | 'cut' | 'drag.dragstart'
209
+ originEvent: 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
172
210
  }
173
211
  | {
174
212
  type: 'serialization.failure'
175
213
  mimeType: TMIMEType
176
- originEvent: 'copy' | 'cut' | 'drag.dragstart'
214
+ originEvent: 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
177
215
  reason: string
178
216
  }
179
217
  | {
180
218
  type: 'serialization.success'
181
219
  data: string
182
220
  mimeType: TMIMEType
183
- originEvent: 'copy' | 'cut' | 'drag.dragstart'
221
+ originEvent: 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
184
222
  }
185
223
  | {
186
224
  type: 'deserialize'
@@ -211,22 +249,18 @@ declare type CustomBehaviorEvent<
211
249
  declare type DataBehaviorEvent =
212
250
  | {
213
251
  type: 'deserialize'
214
- dataTransfer: DataTransfer
215
- originEvent: Omit<
216
- PickFromUnion<NativeBehaviorEvent, 'type', 'drag.drop' | 'paste'>,
217
- 'dataTransfer'
252
+ originEvent: PickFromUnion<
253
+ NativeBehaviorEvent,
254
+ 'type',
255
+ 'drag.drop' | 'clipboard.paste'
218
256
  >
219
257
  }
220
258
  | {
221
259
  type: 'serialize'
222
- dataTransfer: DataTransfer
223
- originEvent: Omit<
224
- PickFromUnion<
225
- NativeBehaviorEvent,
226
- 'type',
227
- 'copy' | 'cut' | 'drag.dragstart'
228
- >,
229
- 'dataTransfer'
260
+ originEvent: PickFromUnion<
261
+ NativeBehaviorEvent,
262
+ 'type',
263
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
230
264
  >
231
265
  }
232
266
 
@@ -256,35 +290,49 @@ declare type Deserializer<TMIMEType extends MIMEType> = ({
256
290
  declare type DragBehaviorEvent =
257
291
  | {
258
292
  type: 'drag.dragstart'
259
- dataTransfer: DataTransfer
293
+ originEvent: {
294
+ dataTransfer: DataTransfer
295
+ }
260
296
  position: EventPosition
261
297
  }
262
298
  | {
263
299
  type: 'drag.drag'
264
- dataTransfer: DataTransfer
300
+ originEvent: {
301
+ dataTransfer: DataTransfer
302
+ }
265
303
  }
266
304
  | {
267
305
  type: 'drag.dragend'
268
- dataTransfer: DataTransfer
306
+ originEvent: {
307
+ dataTransfer: DataTransfer
308
+ }
269
309
  }
270
310
  | {
271
311
  type: 'drag.dragenter'
272
- dataTransfer: DataTransfer
312
+ originEvent: {
313
+ dataTransfer: DataTransfer
314
+ }
273
315
  position: EventPosition
274
316
  }
275
317
  | {
276
318
  type: 'drag.dragover'
277
- dataTransfer: DataTransfer
319
+ originEvent: {
320
+ dataTransfer: DataTransfer
321
+ }
278
322
  position: EventPosition
279
323
  }
280
324
  | {
281
325
  type: 'drag.drop'
282
- dataTransfer: DataTransfer
326
+ originEvent: {
327
+ dataTransfer: DataTransfer
328
+ }
283
329
  position: EventPosition
284
330
  }
285
331
  | {
286
332
  type: 'drag.dragleave'
287
- dataTransfer: DataTransfer
333
+ originEvent: {
334
+ dataTransfer: DataTransfer
335
+ }
288
336
  }
289
337
 
290
338
  /** @beta */
@@ -690,10 +738,10 @@ declare const editorMachine: StateMachine<
690
738
  mimeType: `${string}/${string}`
691
739
  reason: string
692
740
  } & {
693
- dataTransfer: DataTransfer
694
- originEvent: Omit<
695
- PickFromUnion_2<NativeBehaviorEvent, 'type', 'drag.drop' | 'paste'>,
696
- 'dataTransfer'
741
+ originEvent: PickFromUnion_2<
742
+ NativeBehaviorEvent,
743
+ 'type',
744
+ 'drag.drop' | 'clipboard.paste'
697
745
  >
698
746
  })
699
747
  | ({
@@ -701,38 +749,30 @@ declare const editorMachine: StateMachine<
701
749
  data: Array<PortableTextBlock>
702
750
  mimeType: `${string}/${string}`
703
751
  } & {
704
- dataTransfer: DataTransfer
705
- originEvent: Omit<
706
- PickFromUnion_2<NativeBehaviorEvent, 'type', 'drag.drop' | 'paste'>,
707
- 'dataTransfer'
752
+ originEvent: PickFromUnion_2<
753
+ NativeBehaviorEvent,
754
+ 'type',
755
+ 'drag.drop' | 'clipboard.paste'
708
756
  >
709
757
  })
710
758
  | {
711
759
  type: 'serialization.success'
712
760
  mimeType: MIMEType_2
713
761
  data: string
714
- dataTransfer: DataTransfer
715
- originEvent: Omit<
716
- PickFromUnion_2<
717
- NativeBehaviorEvent,
718
- 'type',
719
- 'copy' | 'cut' | 'drag.dragstart'
720
- >,
721
- 'dataTransfer'
762
+ originEvent: PickFromUnion_2<
763
+ NativeBehaviorEvent,
764
+ 'type',
765
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
722
766
  >
723
767
  }
724
768
  | {
725
769
  type: 'serialization.failure'
726
770
  mimeType: MIMEType_2
727
771
  reason: string
728
- dataTransfer: DataTransfer
729
- originEvent: Omit<
730
- PickFromUnion_2<
731
- NativeBehaviorEvent,
732
- 'type',
733
- 'copy' | 'cut' | 'drag.dragstart'
734
- >,
735
- 'dataTransfer'
772
+ originEvent: PickFromUnion_2<
773
+ NativeBehaviorEvent,
774
+ 'type',
775
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
736
776
  >
737
777
  }
738
778
  | InternalPatchEvent
@@ -1153,10 +1193,10 @@ declare const editorMachine: StateMachine<
1153
1193
  mimeType: `${string}/${string}`
1154
1194
  reason: string
1155
1195
  } & {
1156
- dataTransfer: DataTransfer
1157
- originEvent: Omit<
1158
- PickFromUnion_2<NativeBehaviorEvent, 'type', 'drag.drop' | 'paste'>,
1159
- 'dataTransfer'
1196
+ originEvent: PickFromUnion_2<
1197
+ NativeBehaviorEvent,
1198
+ 'type',
1199
+ 'drag.drop' | 'clipboard.paste'
1160
1200
  >
1161
1201
  })
1162
1202
  | ({
@@ -1164,38 +1204,30 @@ declare const editorMachine: StateMachine<
1164
1204
  data: Array<PortableTextBlock>
1165
1205
  mimeType: `${string}/${string}`
1166
1206
  } & {
1167
- dataTransfer: DataTransfer
1168
- originEvent: Omit<
1169
- PickFromUnion_2<NativeBehaviorEvent, 'type', 'drag.drop' | 'paste'>,
1170
- 'dataTransfer'
1207
+ originEvent: PickFromUnion_2<
1208
+ NativeBehaviorEvent,
1209
+ 'type',
1210
+ 'drag.drop' | 'clipboard.paste'
1171
1211
  >
1172
1212
  })
1173
1213
  | {
1174
1214
  type: 'serialization.success'
1175
1215
  mimeType: MIMEType_2
1176
1216
  data: string
1177
- dataTransfer: DataTransfer
1178
- originEvent: Omit<
1179
- PickFromUnion_2<
1180
- NativeBehaviorEvent,
1181
- 'type',
1182
- 'copy' | 'cut' | 'drag.dragstart'
1183
- >,
1184
- 'dataTransfer'
1217
+ originEvent: PickFromUnion_2<
1218
+ NativeBehaviorEvent,
1219
+ 'type',
1220
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
1185
1221
  >
1186
1222
  }
1187
1223
  | {
1188
1224
  type: 'serialization.failure'
1189
1225
  mimeType: MIMEType_2
1190
1226
  reason: string
1191
- dataTransfer: DataTransfer
1192
- originEvent: Omit<
1193
- PickFromUnion_2<
1194
- NativeBehaviorEvent,
1195
- 'type',
1196
- 'copy' | 'cut' | 'drag.dragstart'
1197
- >,
1198
- 'dataTransfer'
1227
+ originEvent: PickFromUnion_2<
1228
+ NativeBehaviorEvent,
1229
+ 'type',
1230
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
1199
1231
  >
1200
1232
  }
1201
1233
  | PatchEvent
@@ -1505,14 +1537,10 @@ declare const editorMachine: StateMachine<
1505
1537
  mimeType: `${string}/${string}`
1506
1538
  reason: string
1507
1539
  } & {
1508
- dataTransfer: DataTransfer
1509
- originEvent: Omit<
1510
- PickFromUnion_2<
1511
- NativeBehaviorEvent,
1512
- 'type',
1513
- 'drag.drop' | 'paste'
1514
- >,
1515
- 'dataTransfer'
1540
+ originEvent: PickFromUnion_2<
1541
+ NativeBehaviorEvent,
1542
+ 'type',
1543
+ 'drag.drop' | 'clipboard.paste'
1516
1544
  >
1517
1545
  })
1518
1546
  | ({
@@ -1520,42 +1548,30 @@ declare const editorMachine: StateMachine<
1520
1548
  data: Array<PortableTextBlock>
1521
1549
  mimeType: `${string}/${string}`
1522
1550
  } & {
1523
- dataTransfer: DataTransfer
1524
- originEvent: Omit<
1525
- PickFromUnion_2<
1526
- NativeBehaviorEvent,
1527
- 'type',
1528
- 'drag.drop' | 'paste'
1529
- >,
1530
- 'dataTransfer'
1551
+ originEvent: PickFromUnion_2<
1552
+ NativeBehaviorEvent,
1553
+ 'type',
1554
+ 'drag.drop' | 'clipboard.paste'
1531
1555
  >
1532
1556
  })
1533
1557
  | {
1534
1558
  type: 'serialization.success'
1535
1559
  mimeType: MIMEType_2
1536
1560
  data: string
1537
- dataTransfer: DataTransfer
1538
- originEvent: Omit<
1539
- PickFromUnion_2<
1540
- NativeBehaviorEvent,
1541
- 'type',
1542
- 'copy' | 'cut' | 'drag.dragstart'
1543
- >,
1544
- 'dataTransfer'
1561
+ originEvent: PickFromUnion_2<
1562
+ NativeBehaviorEvent,
1563
+ 'type',
1564
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
1545
1565
  >
1546
1566
  }
1547
1567
  | {
1548
1568
  type: 'serialization.failure'
1549
1569
  mimeType: MIMEType_2
1550
1570
  reason: string
1551
- dataTransfer: DataTransfer
1552
- originEvent: Omit<
1553
- PickFromUnion_2<
1554
- NativeBehaviorEvent,
1555
- 'type',
1556
- 'copy' | 'cut' | 'drag.dragstart'
1557
- >,
1558
- 'dataTransfer'
1571
+ originEvent: PickFromUnion_2<
1572
+ NativeBehaviorEvent,
1573
+ 'type',
1574
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
1559
1575
  >
1560
1576
  }
1561
1577
  | InternalPatchEvent
@@ -1899,14 +1915,10 @@ declare const editorMachine: StateMachine<
1899
1915
  mimeType: `${string}/${string}`
1900
1916
  reason: string
1901
1917
  } & {
1902
- dataTransfer: DataTransfer
1903
- originEvent: Omit<
1904
- PickFromUnion_2<
1905
- NativeBehaviorEvent,
1906
- 'type',
1907
- 'drag.drop' | 'paste'
1908
- >,
1909
- 'dataTransfer'
1918
+ originEvent: PickFromUnion_2<
1919
+ NativeBehaviorEvent,
1920
+ 'type',
1921
+ 'drag.drop' | 'clipboard.paste'
1910
1922
  >
1911
1923
  })
1912
1924
  | ({
@@ -1914,42 +1926,30 @@ declare const editorMachine: StateMachine<
1914
1926
  data: Array<PortableTextBlock>
1915
1927
  mimeType: `${string}/${string}`
1916
1928
  } & {
1917
- dataTransfer: DataTransfer
1918
- originEvent: Omit<
1919
- PickFromUnion_2<
1920
- NativeBehaviorEvent,
1921
- 'type',
1922
- 'drag.drop' | 'paste'
1923
- >,
1924
- 'dataTransfer'
1929
+ originEvent: PickFromUnion_2<
1930
+ NativeBehaviorEvent,
1931
+ 'type',
1932
+ 'drag.drop' | 'clipboard.paste'
1925
1933
  >
1926
1934
  })
1927
1935
  | {
1928
1936
  type: 'serialization.success'
1929
1937
  mimeType: MIMEType_2
1930
1938
  data: string
1931
- dataTransfer: DataTransfer
1932
- originEvent: Omit<
1933
- PickFromUnion_2<
1934
- NativeBehaviorEvent,
1935
- 'type',
1936
- 'copy' | 'cut' | 'drag.dragstart'
1937
- >,
1938
- 'dataTransfer'
1939
+ originEvent: PickFromUnion_2<
1940
+ NativeBehaviorEvent,
1941
+ 'type',
1942
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
1939
1943
  >
1940
1944
  }
1941
1945
  | {
1942
1946
  type: 'serialization.failure'
1943
1947
  mimeType: MIMEType_2
1944
1948
  reason: string
1945
- dataTransfer: DataTransfer
1946
- originEvent: Omit<
1947
- PickFromUnion_2<
1948
- NativeBehaviorEvent,
1949
- 'type',
1950
- 'copy' | 'cut' | 'drag.dragstart'
1951
- >,
1952
- 'dataTransfer'
1949
+ originEvent: PickFromUnion_2<
1950
+ NativeBehaviorEvent,
1951
+ 'type',
1952
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
1953
1953
  >
1954
1954
  }
1955
1955
  | InternalPatchEvent
@@ -2321,14 +2321,10 @@ declare const editorMachine: StateMachine<
2321
2321
  mimeType: `${string}/${string}`
2322
2322
  reason: string
2323
2323
  } & {
2324
- dataTransfer: DataTransfer
2325
- originEvent: Omit<
2326
- PickFromUnion_2<
2327
- NativeBehaviorEvent,
2328
- 'type',
2329
- 'drag.drop' | 'paste'
2330
- >,
2331
- 'dataTransfer'
2324
+ originEvent: PickFromUnion_2<
2325
+ NativeBehaviorEvent,
2326
+ 'type',
2327
+ 'drag.drop' | 'clipboard.paste'
2332
2328
  >
2333
2329
  })
2334
2330
  | ({
@@ -2336,42 +2332,30 @@ declare const editorMachine: StateMachine<
2336
2332
  data: Array<PortableTextBlock>
2337
2333
  mimeType: `${string}/${string}`
2338
2334
  } & {
2339
- dataTransfer: DataTransfer
2340
- originEvent: Omit<
2341
- PickFromUnion_2<
2342
- NativeBehaviorEvent,
2343
- 'type',
2344
- 'drag.drop' | 'paste'
2345
- >,
2346
- 'dataTransfer'
2335
+ originEvent: PickFromUnion_2<
2336
+ NativeBehaviorEvent,
2337
+ 'type',
2338
+ 'drag.drop' | 'clipboard.paste'
2347
2339
  >
2348
2340
  })
2349
2341
  | {
2350
2342
  type: 'serialization.success'
2351
2343
  mimeType: MIMEType_2
2352
2344
  data: string
2353
- dataTransfer: DataTransfer
2354
- originEvent: Omit<
2355
- PickFromUnion_2<
2356
- NativeBehaviorEvent,
2357
- 'type',
2358
- 'copy' | 'cut' | 'drag.dragstart'
2359
- >,
2360
- 'dataTransfer'
2345
+ originEvent: PickFromUnion_2<
2346
+ NativeBehaviorEvent,
2347
+ 'type',
2348
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
2361
2349
  >
2362
2350
  }
2363
2351
  | {
2364
2352
  type: 'serialization.failure'
2365
2353
  mimeType: MIMEType_2
2366
2354
  reason: string
2367
- dataTransfer: DataTransfer
2368
- originEvent: Omit<
2369
- PickFromUnion_2<
2370
- NativeBehaviorEvent,
2371
- 'type',
2372
- 'copy' | 'cut' | 'drag.dragstart'
2373
- >,
2374
- 'dataTransfer'
2355
+ originEvent: PickFromUnion_2<
2356
+ NativeBehaviorEvent,
2357
+ 'type',
2358
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
2375
2359
  >
2376
2360
  }
2377
2361
  | InternalPatchEvent
@@ -2713,14 +2697,10 @@ declare const editorMachine: StateMachine<
2713
2697
  mimeType: `${string}/${string}`
2714
2698
  reason: string
2715
2699
  } & {
2716
- dataTransfer: DataTransfer
2717
- originEvent: Omit<
2718
- PickFromUnion_2<
2719
- NativeBehaviorEvent,
2720
- 'type',
2721
- 'drag.drop' | 'paste'
2722
- >,
2723
- 'dataTransfer'
2700
+ originEvent: PickFromUnion_2<
2701
+ NativeBehaviorEvent,
2702
+ 'type',
2703
+ 'drag.drop' | 'clipboard.paste'
2724
2704
  >
2725
2705
  })
2726
2706
  | ({
@@ -2728,42 +2708,30 @@ declare const editorMachine: StateMachine<
2728
2708
  data: Array<PortableTextBlock>
2729
2709
  mimeType: `${string}/${string}`
2730
2710
  } & {
2731
- dataTransfer: DataTransfer
2732
- originEvent: Omit<
2733
- PickFromUnion_2<
2734
- NativeBehaviorEvent,
2735
- 'type',
2736
- 'drag.drop' | 'paste'
2737
- >,
2738
- 'dataTransfer'
2711
+ originEvent: PickFromUnion_2<
2712
+ NativeBehaviorEvent,
2713
+ 'type',
2714
+ 'drag.drop' | 'clipboard.paste'
2739
2715
  >
2740
2716
  })
2741
2717
  | {
2742
2718
  type: 'serialization.success'
2743
2719
  mimeType: MIMEType_2
2744
2720
  data: string
2745
- dataTransfer: DataTransfer
2746
- originEvent: Omit<
2747
- PickFromUnion_2<
2748
- NativeBehaviorEvent,
2749
- 'type',
2750
- 'copy' | 'cut' | 'drag.dragstart'
2751
- >,
2752
- 'dataTransfer'
2721
+ originEvent: PickFromUnion_2<
2722
+ NativeBehaviorEvent,
2723
+ 'type',
2724
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
2753
2725
  >
2754
2726
  }
2755
2727
  | {
2756
2728
  type: 'serialization.failure'
2757
2729
  mimeType: MIMEType_2
2758
2730
  reason: string
2759
- dataTransfer: DataTransfer
2760
- originEvent: Omit<
2761
- PickFromUnion_2<
2762
- NativeBehaviorEvent,
2763
- 'type',
2764
- 'copy' | 'cut' | 'drag.dragstart'
2765
- >,
2766
- 'dataTransfer'
2731
+ originEvent: PickFromUnion_2<
2732
+ NativeBehaviorEvent,
2733
+ 'type',
2734
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
2767
2735
  >
2768
2736
  }
2769
2737
  | PatchEvent
@@ -3041,14 +3009,10 @@ declare const editorMachine: StateMachine<
3041
3009
  mimeType: `${string}/${string}`
3042
3010
  reason: string
3043
3011
  } & {
3044
- dataTransfer: DataTransfer
3045
- originEvent: Omit<
3046
- PickFromUnion_2<
3047
- NativeBehaviorEvent,
3048
- 'type',
3049
- 'drag.drop' | 'paste'
3050
- >,
3051
- 'dataTransfer'
3012
+ originEvent: PickFromUnion_2<
3013
+ NativeBehaviorEvent,
3014
+ 'type',
3015
+ 'drag.drop' | 'clipboard.paste'
3052
3016
  >
3053
3017
  })
3054
3018
  | ({
@@ -3056,42 +3020,30 @@ declare const editorMachine: StateMachine<
3056
3020
  data: Array<PortableTextBlock>
3057
3021
  mimeType: `${string}/${string}`
3058
3022
  } & {
3059
- dataTransfer: DataTransfer
3060
- originEvent: Omit<
3061
- PickFromUnion_2<
3062
- NativeBehaviorEvent,
3063
- 'type',
3064
- 'drag.drop' | 'paste'
3065
- >,
3066
- 'dataTransfer'
3023
+ originEvent: PickFromUnion_2<
3024
+ NativeBehaviorEvent,
3025
+ 'type',
3026
+ 'drag.drop' | 'clipboard.paste'
3067
3027
  >
3068
3028
  })
3069
3029
  | {
3070
3030
  type: 'serialization.success'
3071
3031
  mimeType: MIMEType_2
3072
3032
  data: string
3073
- dataTransfer: DataTransfer
3074
- originEvent: Omit<
3075
- PickFromUnion_2<
3076
- NativeBehaviorEvent,
3077
- 'type',
3078
- 'copy' | 'cut' | 'drag.dragstart'
3079
- >,
3080
- 'dataTransfer'
3033
+ originEvent: PickFromUnion_2<
3034
+ NativeBehaviorEvent,
3035
+ 'type',
3036
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
3081
3037
  >
3082
3038
  }
3083
3039
  | {
3084
3040
  type: 'serialization.failure'
3085
3041
  mimeType: MIMEType_2
3086
3042
  reason: string
3087
- dataTransfer: DataTransfer
3088
- originEvent: Omit<
3089
- PickFromUnion_2<
3090
- NativeBehaviorEvent,
3091
- 'type',
3092
- 'copy' | 'cut' | 'drag.dragstart'
3093
- >,
3094
- 'dataTransfer'
3043
+ originEvent: PickFromUnion_2<
3044
+ NativeBehaviorEvent,
3045
+ 'type',
3046
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
3095
3047
  >
3096
3048
  }
3097
3049
  | InternalPatchEvent
@@ -3433,14 +3385,10 @@ declare const editorMachine: StateMachine<
3433
3385
  mimeType: `${string}/${string}`
3434
3386
  reason: string
3435
3387
  } & {
3436
- dataTransfer: DataTransfer
3437
- originEvent: Omit<
3438
- PickFromUnion_2<
3439
- NativeBehaviorEvent,
3440
- 'type',
3441
- 'drag.drop' | 'paste'
3442
- >,
3443
- 'dataTransfer'
3388
+ originEvent: PickFromUnion_2<
3389
+ NativeBehaviorEvent,
3390
+ 'type',
3391
+ 'drag.drop' | 'clipboard.paste'
3444
3392
  >
3445
3393
  })
3446
3394
  | ({
@@ -3448,42 +3396,30 @@ declare const editorMachine: StateMachine<
3448
3396
  data: Array<PortableTextBlock>
3449
3397
  mimeType: `${string}/${string}`
3450
3398
  } & {
3451
- dataTransfer: DataTransfer
3452
- originEvent: Omit<
3453
- PickFromUnion_2<
3454
- NativeBehaviorEvent,
3455
- 'type',
3456
- 'drag.drop' | 'paste'
3457
- >,
3458
- 'dataTransfer'
3399
+ originEvent: PickFromUnion_2<
3400
+ NativeBehaviorEvent,
3401
+ 'type',
3402
+ 'drag.drop' | 'clipboard.paste'
3459
3403
  >
3460
3404
  })
3461
3405
  | {
3462
3406
  type: 'serialization.success'
3463
3407
  mimeType: MIMEType_2
3464
3408
  data: string
3465
- dataTransfer: DataTransfer
3466
- originEvent: Omit<
3467
- PickFromUnion_2<
3468
- NativeBehaviorEvent,
3469
- 'type',
3470
- 'copy' | 'cut' | 'drag.dragstart'
3471
- >,
3472
- 'dataTransfer'
3409
+ originEvent: PickFromUnion_2<
3410
+ NativeBehaviorEvent,
3411
+ 'type',
3412
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
3473
3413
  >
3474
3414
  }
3475
3415
  | {
3476
3416
  type: 'serialization.failure'
3477
3417
  mimeType: MIMEType_2
3478
3418
  reason: string
3479
- dataTransfer: DataTransfer
3480
- originEvent: Omit<
3481
- PickFromUnion_2<
3482
- NativeBehaviorEvent,
3483
- 'type',
3484
- 'copy' | 'cut' | 'drag.dragstart'
3485
- >,
3486
- 'dataTransfer'
3419
+ originEvent: PickFromUnion_2<
3420
+ NativeBehaviorEvent,
3421
+ 'type',
3422
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
3487
3423
  >
3488
3424
  }
3489
3425
  | PatchEvent
@@ -3764,14 +3700,10 @@ declare const editorMachine: StateMachine<
3764
3700
  mimeType: `${string}/${string}`
3765
3701
  reason: string
3766
3702
  } & {
3767
- dataTransfer: DataTransfer
3768
- originEvent: Omit<
3769
- PickFromUnion_2<
3770
- NativeBehaviorEvent,
3771
- 'type',
3772
- 'drag.drop' | 'paste'
3773
- >,
3774
- 'dataTransfer'
3703
+ originEvent: PickFromUnion_2<
3704
+ NativeBehaviorEvent,
3705
+ 'type',
3706
+ 'drag.drop' | 'clipboard.paste'
3775
3707
  >
3776
3708
  })
3777
3709
  | ({
@@ -3779,42 +3711,30 @@ declare const editorMachine: StateMachine<
3779
3711
  data: Array<PortableTextBlock>
3780
3712
  mimeType: `${string}/${string}`
3781
3713
  } & {
3782
- dataTransfer: DataTransfer
3783
- originEvent: Omit<
3784
- PickFromUnion_2<
3785
- NativeBehaviorEvent,
3786
- 'type',
3787
- 'drag.drop' | 'paste'
3788
- >,
3789
- 'dataTransfer'
3714
+ originEvent: PickFromUnion_2<
3715
+ NativeBehaviorEvent,
3716
+ 'type',
3717
+ 'drag.drop' | 'clipboard.paste'
3790
3718
  >
3791
3719
  })
3792
3720
  | {
3793
3721
  type: 'serialization.success'
3794
3722
  mimeType: MIMEType_2
3795
3723
  data: string
3796
- dataTransfer: DataTransfer
3797
- originEvent: Omit<
3798
- PickFromUnion_2<
3799
- NativeBehaviorEvent,
3800
- 'type',
3801
- 'copy' | 'cut' | 'drag.dragstart'
3802
- >,
3803
- 'dataTransfer'
3724
+ originEvent: PickFromUnion_2<
3725
+ NativeBehaviorEvent,
3726
+ 'type',
3727
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
3804
3728
  >
3805
3729
  }
3806
3730
  | {
3807
3731
  type: 'serialization.failure'
3808
3732
  mimeType: MIMEType_2
3809
3733
  reason: string
3810
- dataTransfer: DataTransfer
3811
- originEvent: Omit<
3812
- PickFromUnion_2<
3813
- NativeBehaviorEvent,
3814
- 'type',
3815
- 'copy' | 'cut' | 'drag.dragstart'
3816
- >,
3817
- 'dataTransfer'
3734
+ originEvent: PickFromUnion_2<
3735
+ NativeBehaviorEvent,
3736
+ 'type',
3737
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
3818
3738
  >
3819
3739
  }
3820
3740
  | InternalPatchEvent
@@ -4156,14 +4076,10 @@ declare const editorMachine: StateMachine<
4156
4076
  mimeType: `${string}/${string}`
4157
4077
  reason: string
4158
4078
  } & {
4159
- dataTransfer: DataTransfer
4160
- originEvent: Omit<
4161
- PickFromUnion_2<
4162
- NativeBehaviorEvent,
4163
- 'type',
4164
- 'drag.drop' | 'paste'
4165
- >,
4166
- 'dataTransfer'
4079
+ originEvent: PickFromUnion_2<
4080
+ NativeBehaviorEvent,
4081
+ 'type',
4082
+ 'drag.drop' | 'clipboard.paste'
4167
4083
  >
4168
4084
  })
4169
4085
  | ({
@@ -4171,42 +4087,30 @@ declare const editorMachine: StateMachine<
4171
4087
  data: Array<PortableTextBlock>
4172
4088
  mimeType: `${string}/${string}`
4173
4089
  } & {
4174
- dataTransfer: DataTransfer
4175
- originEvent: Omit<
4176
- PickFromUnion_2<
4177
- NativeBehaviorEvent,
4178
- 'type',
4179
- 'drag.drop' | 'paste'
4180
- >,
4181
- 'dataTransfer'
4090
+ originEvent: PickFromUnion_2<
4091
+ NativeBehaviorEvent,
4092
+ 'type',
4093
+ 'drag.drop' | 'clipboard.paste'
4182
4094
  >
4183
4095
  })
4184
4096
  | {
4185
4097
  type: 'serialization.success'
4186
4098
  mimeType: MIMEType_2
4187
4099
  data: string
4188
- dataTransfer: DataTransfer
4189
- originEvent: Omit<
4190
- PickFromUnion_2<
4191
- NativeBehaviorEvent,
4192
- 'type',
4193
- 'copy' | 'cut' | 'drag.dragstart'
4194
- >,
4195
- 'dataTransfer'
4100
+ originEvent: PickFromUnion_2<
4101
+ NativeBehaviorEvent,
4102
+ 'type',
4103
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
4196
4104
  >
4197
4105
  }
4198
4106
  | {
4199
4107
  type: 'serialization.failure'
4200
4108
  mimeType: MIMEType_2
4201
4109
  reason: string
4202
- dataTransfer: DataTransfer
4203
- originEvent: Omit<
4204
- PickFromUnion_2<
4205
- NativeBehaviorEvent,
4206
- 'type',
4207
- 'copy' | 'cut' | 'drag.dragstart'
4208
- >,
4209
- 'dataTransfer'
4110
+ originEvent: PickFromUnion_2<
4111
+ NativeBehaviorEvent,
4112
+ 'type',
4113
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
4210
4114
  >
4211
4115
  }
4212
4116
  | PatchEvent
@@ -4486,14 +4390,10 @@ declare const editorMachine: StateMachine<
4486
4390
  mimeType: `${string}/${string}`
4487
4391
  reason: string
4488
4392
  } & {
4489
- dataTransfer: DataTransfer
4490
- originEvent: Omit<
4491
- PickFromUnion_2<
4492
- NativeBehaviorEvent,
4493
- 'type',
4494
- 'drag.drop' | 'paste'
4495
- >,
4496
- 'dataTransfer'
4393
+ originEvent: PickFromUnion_2<
4394
+ NativeBehaviorEvent,
4395
+ 'type',
4396
+ 'drag.drop' | 'clipboard.paste'
4497
4397
  >
4498
4398
  })
4499
4399
  | ({
@@ -4501,42 +4401,30 @@ declare const editorMachine: StateMachine<
4501
4401
  data: Array<PortableTextBlock>
4502
4402
  mimeType: `${string}/${string}`
4503
4403
  } & {
4504
- dataTransfer: DataTransfer
4505
- originEvent: Omit<
4506
- PickFromUnion_2<
4507
- NativeBehaviorEvent,
4508
- 'type',
4509
- 'drag.drop' | 'paste'
4510
- >,
4511
- 'dataTransfer'
4404
+ originEvent: PickFromUnion_2<
4405
+ NativeBehaviorEvent,
4406
+ 'type',
4407
+ 'drag.drop' | 'clipboard.paste'
4512
4408
  >
4513
4409
  })
4514
4410
  | {
4515
4411
  type: 'serialization.success'
4516
4412
  mimeType: MIMEType_2
4517
4413
  data: string
4518
- dataTransfer: DataTransfer
4519
- originEvent: Omit<
4520
- PickFromUnion_2<
4521
- NativeBehaviorEvent,
4522
- 'type',
4523
- 'copy' | 'cut' | 'drag.dragstart'
4524
- >,
4525
- 'dataTransfer'
4414
+ originEvent: PickFromUnion_2<
4415
+ NativeBehaviorEvent,
4416
+ 'type',
4417
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
4526
4418
  >
4527
4419
  }
4528
4420
  | {
4529
4421
  type: 'serialization.failure'
4530
4422
  mimeType: MIMEType_2
4531
4423
  reason: string
4532
- dataTransfer: DataTransfer
4533
- originEvent: Omit<
4534
- PickFromUnion_2<
4535
- NativeBehaviorEvent,
4536
- 'type',
4537
- 'copy' | 'cut' | 'drag.dragstart'
4538
- >,
4539
- 'dataTransfer'
4424
+ originEvent: PickFromUnion_2<
4425
+ NativeBehaviorEvent,
4426
+ 'type',
4427
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
4540
4428
  >
4541
4429
  }
4542
4430
  | InternalPatchEvent
@@ -4878,14 +4766,10 @@ declare const editorMachine: StateMachine<
4878
4766
  mimeType: `${string}/${string}`
4879
4767
  reason: string
4880
4768
  } & {
4881
- dataTransfer: DataTransfer
4882
- originEvent: Omit<
4883
- PickFromUnion_2<
4884
- NativeBehaviorEvent,
4885
- 'type',
4886
- 'drag.drop' | 'paste'
4887
- >,
4888
- 'dataTransfer'
4769
+ originEvent: PickFromUnion_2<
4770
+ NativeBehaviorEvent,
4771
+ 'type',
4772
+ 'drag.drop' | 'clipboard.paste'
4889
4773
  >
4890
4774
  })
4891
4775
  | ({
@@ -4893,42 +4777,30 @@ declare const editorMachine: StateMachine<
4893
4777
  data: Array<PortableTextBlock>
4894
4778
  mimeType: `${string}/${string}`
4895
4779
  } & {
4896
- dataTransfer: DataTransfer
4897
- originEvent: Omit<
4898
- PickFromUnion_2<
4899
- NativeBehaviorEvent,
4900
- 'type',
4901
- 'drag.drop' | 'paste'
4902
- >,
4903
- 'dataTransfer'
4780
+ originEvent: PickFromUnion_2<
4781
+ NativeBehaviorEvent,
4782
+ 'type',
4783
+ 'drag.drop' | 'clipboard.paste'
4904
4784
  >
4905
4785
  })
4906
4786
  | {
4907
4787
  type: 'serialization.success'
4908
4788
  mimeType: MIMEType_2
4909
4789
  data: string
4910
- dataTransfer: DataTransfer
4911
- originEvent: Omit<
4912
- PickFromUnion_2<
4913
- NativeBehaviorEvent,
4914
- 'type',
4915
- 'copy' | 'cut' | 'drag.dragstart'
4916
- >,
4917
- 'dataTransfer'
4790
+ originEvent: PickFromUnion_2<
4791
+ NativeBehaviorEvent,
4792
+ 'type',
4793
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
4918
4794
  >
4919
4795
  }
4920
4796
  | {
4921
4797
  type: 'serialization.failure'
4922
4798
  mimeType: MIMEType_2
4923
4799
  reason: string
4924
- dataTransfer: DataTransfer
4925
- originEvent: Omit<
4926
- PickFromUnion_2<
4927
- NativeBehaviorEvent,
4928
- 'type',
4929
- 'copy' | 'cut' | 'drag.dragstart'
4930
- >,
4931
- 'dataTransfer'
4800
+ originEvent: PickFromUnion_2<
4801
+ NativeBehaviorEvent,
4802
+ 'type',
4803
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
4932
4804
  >
4933
4805
  }
4934
4806
  | PatchEvent
@@ -5207,14 +5079,10 @@ declare const editorMachine: StateMachine<
5207
5079
  mimeType: `${string}/${string}`
5208
5080
  reason: string
5209
5081
  } & {
5210
- dataTransfer: DataTransfer
5211
- originEvent: Omit<
5212
- PickFromUnion_2<
5213
- NativeBehaviorEvent,
5214
- 'type',
5215
- 'drag.drop' | 'paste'
5216
- >,
5217
- 'dataTransfer'
5082
+ originEvent: PickFromUnion_2<
5083
+ NativeBehaviorEvent,
5084
+ 'type',
5085
+ 'drag.drop' | 'clipboard.paste'
5218
5086
  >
5219
5087
  })
5220
5088
  | ({
@@ -5222,42 +5090,30 @@ declare const editorMachine: StateMachine<
5222
5090
  data: Array<PortableTextBlock>
5223
5091
  mimeType: `${string}/${string}`
5224
5092
  } & {
5225
- dataTransfer: DataTransfer
5226
- originEvent: Omit<
5227
- PickFromUnion_2<
5228
- NativeBehaviorEvent,
5229
- 'type',
5230
- 'drag.drop' | 'paste'
5231
- >,
5232
- 'dataTransfer'
5093
+ originEvent: PickFromUnion_2<
5094
+ NativeBehaviorEvent,
5095
+ 'type',
5096
+ 'drag.drop' | 'clipboard.paste'
5233
5097
  >
5234
5098
  })
5235
5099
  | {
5236
5100
  type: 'serialization.success'
5237
5101
  mimeType: MIMEType_2
5238
5102
  data: string
5239
- dataTransfer: DataTransfer
5240
- originEvent: Omit<
5241
- PickFromUnion_2<
5242
- NativeBehaviorEvent,
5243
- 'type',
5244
- 'copy' | 'cut' | 'drag.dragstart'
5245
- >,
5246
- 'dataTransfer'
5103
+ originEvent: PickFromUnion_2<
5104
+ NativeBehaviorEvent,
5105
+ 'type',
5106
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
5247
5107
  >
5248
5108
  }
5249
5109
  | {
5250
5110
  type: 'serialization.failure'
5251
5111
  mimeType: MIMEType_2
5252
5112
  reason: string
5253
- dataTransfer: DataTransfer
5254
- originEvent: Omit<
5255
- PickFromUnion_2<
5256
- NativeBehaviorEvent,
5257
- 'type',
5258
- 'copy' | 'cut' | 'drag.dragstart'
5259
- >,
5260
- 'dataTransfer'
5113
+ originEvent: PickFromUnion_2<
5114
+ NativeBehaviorEvent,
5115
+ 'type',
5116
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
5261
5117
  >
5262
5118
  }
5263
5119
  | InternalPatchEvent
@@ -5599,14 +5455,10 @@ declare const editorMachine: StateMachine<
5599
5455
  mimeType: `${string}/${string}`
5600
5456
  reason: string
5601
5457
  } & {
5602
- dataTransfer: DataTransfer
5603
- originEvent: Omit<
5604
- PickFromUnion_2<
5605
- NativeBehaviorEvent,
5606
- 'type',
5607
- 'drag.drop' | 'paste'
5608
- >,
5609
- 'dataTransfer'
5458
+ originEvent: PickFromUnion_2<
5459
+ NativeBehaviorEvent,
5460
+ 'type',
5461
+ 'drag.drop' | 'clipboard.paste'
5610
5462
  >
5611
5463
  })
5612
5464
  | ({
@@ -5614,42 +5466,30 @@ declare const editorMachine: StateMachine<
5614
5466
  data: Array<PortableTextBlock>
5615
5467
  mimeType: `${string}/${string}`
5616
5468
  } & {
5617
- dataTransfer: DataTransfer
5618
- originEvent: Omit<
5619
- PickFromUnion_2<
5620
- NativeBehaviorEvent,
5621
- 'type',
5622
- 'drag.drop' | 'paste'
5623
- >,
5624
- 'dataTransfer'
5469
+ originEvent: PickFromUnion_2<
5470
+ NativeBehaviorEvent,
5471
+ 'type',
5472
+ 'drag.drop' | 'clipboard.paste'
5625
5473
  >
5626
5474
  })
5627
5475
  | {
5628
5476
  type: 'serialization.success'
5629
5477
  mimeType: MIMEType_2
5630
5478
  data: string
5631
- dataTransfer: DataTransfer
5632
- originEvent: Omit<
5633
- PickFromUnion_2<
5634
- NativeBehaviorEvent,
5635
- 'type',
5636
- 'copy' | 'cut' | 'drag.dragstart'
5637
- >,
5638
- 'dataTransfer'
5479
+ originEvent: PickFromUnion_2<
5480
+ NativeBehaviorEvent,
5481
+ 'type',
5482
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
5639
5483
  >
5640
5484
  }
5641
5485
  | {
5642
5486
  type: 'serialization.failure'
5643
5487
  mimeType: MIMEType_2
5644
5488
  reason: string
5645
- dataTransfer: DataTransfer
5646
- originEvent: Omit<
5647
- PickFromUnion_2<
5648
- NativeBehaviorEvent,
5649
- 'type',
5650
- 'copy' | 'cut' | 'drag.dragstart'
5651
- >,
5652
- 'dataTransfer'
5489
+ originEvent: PickFromUnion_2<
5490
+ NativeBehaviorEvent,
5491
+ 'type',
5492
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
5653
5493
  >
5654
5494
  }
5655
5495
  | PatchEvent
@@ -5929,14 +5769,10 @@ declare const editorMachine: StateMachine<
5929
5769
  mimeType: `${string}/${string}`
5930
5770
  reason: string
5931
5771
  } & {
5932
- dataTransfer: DataTransfer
5933
- originEvent: Omit<
5934
- PickFromUnion_2<
5935
- NativeBehaviorEvent,
5936
- 'type',
5937
- 'drag.drop' | 'paste'
5938
- >,
5939
- 'dataTransfer'
5772
+ originEvent: PickFromUnion_2<
5773
+ NativeBehaviorEvent,
5774
+ 'type',
5775
+ 'drag.drop' | 'clipboard.paste'
5940
5776
  >
5941
5777
  })
5942
5778
  | ({
@@ -5944,42 +5780,30 @@ declare const editorMachine: StateMachine<
5944
5780
  data: Array<PortableTextBlock>
5945
5781
  mimeType: `${string}/${string}`
5946
5782
  } & {
5947
- dataTransfer: DataTransfer
5948
- originEvent: Omit<
5949
- PickFromUnion_2<
5950
- NativeBehaviorEvent,
5951
- 'type',
5952
- 'drag.drop' | 'paste'
5953
- >,
5954
- 'dataTransfer'
5783
+ originEvent: PickFromUnion_2<
5784
+ NativeBehaviorEvent,
5785
+ 'type',
5786
+ 'drag.drop' | 'clipboard.paste'
5955
5787
  >
5956
5788
  })
5957
5789
  | {
5958
5790
  type: 'serialization.success'
5959
5791
  mimeType: MIMEType_2
5960
5792
  data: string
5961
- dataTransfer: DataTransfer
5962
- originEvent: Omit<
5963
- PickFromUnion_2<
5964
- NativeBehaviorEvent,
5965
- 'type',
5966
- 'copy' | 'cut' | 'drag.dragstart'
5967
- >,
5968
- 'dataTransfer'
5793
+ originEvent: PickFromUnion_2<
5794
+ NativeBehaviorEvent,
5795
+ 'type',
5796
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
5969
5797
  >
5970
5798
  }
5971
5799
  | {
5972
5800
  type: 'serialization.failure'
5973
5801
  mimeType: MIMEType_2
5974
5802
  reason: string
5975
- dataTransfer: DataTransfer
5976
- originEvent: Omit<
5977
- PickFromUnion_2<
5978
- NativeBehaviorEvent,
5979
- 'type',
5980
- 'copy' | 'cut' | 'drag.dragstart'
5981
- >,
5982
- 'dataTransfer'
5803
+ originEvent: PickFromUnion_2<
5804
+ NativeBehaviorEvent,
5805
+ 'type',
5806
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
5983
5807
  >
5984
5808
  }
5985
5809
  | InternalPatchEvent
@@ -6343,14 +6167,10 @@ declare const editorMachine: StateMachine<
6343
6167
  mimeType: `${string}/${string}`
6344
6168
  reason: string
6345
6169
  } & {
6346
- dataTransfer: DataTransfer
6347
- originEvent: Omit<
6348
- PickFromUnion_2<
6349
- NativeBehaviorEvent,
6350
- 'type',
6351
- 'drag.drop' | 'paste'
6352
- >,
6353
- 'dataTransfer'
6170
+ originEvent: PickFromUnion_2<
6171
+ NativeBehaviorEvent,
6172
+ 'type',
6173
+ 'drag.drop' | 'clipboard.paste'
6354
6174
  >
6355
6175
  })
6356
6176
  | ({
@@ -6358,42 +6178,30 @@ declare const editorMachine: StateMachine<
6358
6178
  data: Array<PortableTextBlock>
6359
6179
  mimeType: `${string}/${string}`
6360
6180
  } & {
6361
- dataTransfer: DataTransfer
6362
- originEvent: Omit<
6363
- PickFromUnion_2<
6364
- NativeBehaviorEvent,
6365
- 'type',
6366
- 'drag.drop' | 'paste'
6367
- >,
6368
- 'dataTransfer'
6181
+ originEvent: PickFromUnion_2<
6182
+ NativeBehaviorEvent,
6183
+ 'type',
6184
+ 'drag.drop' | 'clipboard.paste'
6369
6185
  >
6370
6186
  })
6371
6187
  | {
6372
6188
  type: 'serialization.success'
6373
6189
  mimeType: MIMEType_2
6374
6190
  data: string
6375
- dataTransfer: DataTransfer
6376
- originEvent: Omit<
6377
- PickFromUnion_2<
6378
- NativeBehaviorEvent,
6379
- 'type',
6380
- 'copy' | 'cut' | 'drag.dragstart'
6381
- >,
6382
- 'dataTransfer'
6191
+ originEvent: PickFromUnion_2<
6192
+ NativeBehaviorEvent,
6193
+ 'type',
6194
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
6383
6195
  >
6384
6196
  }
6385
6197
  | {
6386
6198
  type: 'serialization.failure'
6387
6199
  mimeType: MIMEType_2
6388
6200
  reason: string
6389
- dataTransfer: DataTransfer
6390
- originEvent: Omit<
6391
- PickFromUnion_2<
6392
- NativeBehaviorEvent,
6393
- 'type',
6394
- 'copy' | 'cut' | 'drag.dragstart'
6395
- >,
6396
- 'dataTransfer'
6201
+ originEvent: PickFromUnion_2<
6202
+ NativeBehaviorEvent,
6203
+ 'type',
6204
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
6397
6205
  >
6398
6206
  }
6399
6207
  | InternalPatchEvent
@@ -6735,14 +6543,10 @@ declare const editorMachine: StateMachine<
6735
6543
  mimeType: `${string}/${string}`
6736
6544
  reason: string
6737
6545
  } & {
6738
- dataTransfer: DataTransfer
6739
- originEvent: Omit<
6740
- PickFromUnion_2<
6741
- NativeBehaviorEvent,
6742
- 'type',
6743
- 'drag.drop' | 'paste'
6744
- >,
6745
- 'dataTransfer'
6546
+ originEvent: PickFromUnion_2<
6547
+ NativeBehaviorEvent,
6548
+ 'type',
6549
+ 'drag.drop' | 'clipboard.paste'
6746
6550
  >
6747
6551
  })
6748
6552
  | ({
@@ -6750,42 +6554,30 @@ declare const editorMachine: StateMachine<
6750
6554
  data: Array<PortableTextBlock>
6751
6555
  mimeType: `${string}/${string}`
6752
6556
  } & {
6753
- dataTransfer: DataTransfer
6754
- originEvent: Omit<
6755
- PickFromUnion_2<
6756
- NativeBehaviorEvent,
6757
- 'type',
6758
- 'drag.drop' | 'paste'
6759
- >,
6760
- 'dataTransfer'
6557
+ originEvent: PickFromUnion_2<
6558
+ NativeBehaviorEvent,
6559
+ 'type',
6560
+ 'drag.drop' | 'clipboard.paste'
6761
6561
  >
6762
6562
  })
6763
6563
  | {
6764
6564
  type: 'serialization.success'
6765
6565
  mimeType: MIMEType_2
6766
6566
  data: string
6767
- dataTransfer: DataTransfer
6768
- originEvent: Omit<
6769
- PickFromUnion_2<
6770
- NativeBehaviorEvent,
6771
- 'type',
6772
- 'copy' | 'cut' | 'drag.dragstart'
6773
- >,
6774
- 'dataTransfer'
6567
+ originEvent: PickFromUnion_2<
6568
+ NativeBehaviorEvent,
6569
+ 'type',
6570
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
6775
6571
  >
6776
6572
  }
6777
6573
  | {
6778
6574
  type: 'serialization.failure'
6779
6575
  mimeType: MIMEType_2
6780
6576
  reason: string
6781
- dataTransfer: DataTransfer
6782
- originEvent: Omit<
6783
- PickFromUnion_2<
6784
- NativeBehaviorEvent,
6785
- 'type',
6786
- 'copy' | 'cut' | 'drag.dragstart'
6787
- >,
6788
- 'dataTransfer'
6577
+ originEvent: PickFromUnion_2<
6578
+ NativeBehaviorEvent,
6579
+ 'type',
6580
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
6789
6581
  >
6790
6582
  }
6791
6583
  | PatchEvent
@@ -7065,14 +6857,10 @@ declare const editorMachine: StateMachine<
7065
6857
  mimeType: `${string}/${string}`
7066
6858
  reason: string
7067
6859
  } & {
7068
- dataTransfer: DataTransfer
7069
- originEvent: Omit<
7070
- PickFromUnion_2<
7071
- NativeBehaviorEvent,
7072
- 'type',
7073
- 'drag.drop' | 'paste'
7074
- >,
7075
- 'dataTransfer'
6860
+ originEvent: PickFromUnion_2<
6861
+ NativeBehaviorEvent,
6862
+ 'type',
6863
+ 'drag.drop' | 'clipboard.paste'
7076
6864
  >
7077
6865
  })
7078
6866
  | ({
@@ -7080,42 +6868,30 @@ declare const editorMachine: StateMachine<
7080
6868
  data: Array<PortableTextBlock>
7081
6869
  mimeType: `${string}/${string}`
7082
6870
  } & {
7083
- dataTransfer: DataTransfer
7084
- originEvent: Omit<
7085
- PickFromUnion_2<
7086
- NativeBehaviorEvent,
7087
- 'type',
7088
- 'drag.drop' | 'paste'
7089
- >,
7090
- 'dataTransfer'
6871
+ originEvent: PickFromUnion_2<
6872
+ NativeBehaviorEvent,
6873
+ 'type',
6874
+ 'drag.drop' | 'clipboard.paste'
7091
6875
  >
7092
6876
  })
7093
6877
  | {
7094
6878
  type: 'serialization.success'
7095
6879
  mimeType: MIMEType_2
7096
6880
  data: string
7097
- dataTransfer: DataTransfer
7098
- originEvent: Omit<
7099
- PickFromUnion_2<
7100
- NativeBehaviorEvent,
7101
- 'type',
7102
- 'copy' | 'cut' | 'drag.dragstart'
7103
- >,
7104
- 'dataTransfer'
6881
+ originEvent: PickFromUnion_2<
6882
+ NativeBehaviorEvent,
6883
+ 'type',
6884
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
7105
6885
  >
7106
6886
  }
7107
6887
  | {
7108
6888
  type: 'serialization.failure'
7109
6889
  mimeType: MIMEType_2
7110
6890
  reason: string
7111
- dataTransfer: DataTransfer
7112
- originEvent: Omit<
7113
- PickFromUnion_2<
7114
- NativeBehaviorEvent,
7115
- 'type',
7116
- 'copy' | 'cut' | 'drag.dragstart'
7117
- >,
7118
- 'dataTransfer'
6891
+ originEvent: PickFromUnion_2<
6892
+ NativeBehaviorEvent,
6893
+ 'type',
6894
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
7119
6895
  >
7120
6896
  }
7121
6897
  | InternalPatchEvent
@@ -7457,14 +7233,10 @@ declare const editorMachine: StateMachine<
7457
7233
  mimeType: `${string}/${string}`
7458
7234
  reason: string
7459
7235
  } & {
7460
- dataTransfer: DataTransfer
7461
- originEvent: Omit<
7462
- PickFromUnion_2<
7463
- NativeBehaviorEvent,
7464
- 'type',
7465
- 'drag.drop' | 'paste'
7466
- >,
7467
- 'dataTransfer'
7236
+ originEvent: PickFromUnion_2<
7237
+ NativeBehaviorEvent,
7238
+ 'type',
7239
+ 'drag.drop' | 'clipboard.paste'
7468
7240
  >
7469
7241
  })
7470
7242
  | ({
@@ -7472,42 +7244,30 @@ declare const editorMachine: StateMachine<
7472
7244
  data: Array<PortableTextBlock>
7473
7245
  mimeType: `${string}/${string}`
7474
7246
  } & {
7475
- dataTransfer: DataTransfer
7476
- originEvent: Omit<
7477
- PickFromUnion_2<
7478
- NativeBehaviorEvent,
7479
- 'type',
7480
- 'drag.drop' | 'paste'
7481
- >,
7482
- 'dataTransfer'
7247
+ originEvent: PickFromUnion_2<
7248
+ NativeBehaviorEvent,
7249
+ 'type',
7250
+ 'drag.drop' | 'clipboard.paste'
7483
7251
  >
7484
7252
  })
7485
7253
  | {
7486
7254
  type: 'serialization.success'
7487
7255
  mimeType: MIMEType_2
7488
7256
  data: string
7489
- dataTransfer: DataTransfer
7490
- originEvent: Omit<
7491
- PickFromUnion_2<
7492
- NativeBehaviorEvent,
7493
- 'type',
7494
- 'copy' | 'cut' | 'drag.dragstart'
7495
- >,
7496
- 'dataTransfer'
7257
+ originEvent: PickFromUnion_2<
7258
+ NativeBehaviorEvent,
7259
+ 'type',
7260
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
7497
7261
  >
7498
7262
  }
7499
7263
  | {
7500
7264
  type: 'serialization.failure'
7501
7265
  mimeType: MIMEType_2
7502
7266
  reason: string
7503
- dataTransfer: DataTransfer
7504
- originEvent: Omit<
7505
- PickFromUnion_2<
7506
- NativeBehaviorEvent,
7507
- 'type',
7508
- 'copy' | 'cut' | 'drag.dragstart'
7509
- >,
7510
- 'dataTransfer'
7267
+ originEvent: PickFromUnion_2<
7268
+ NativeBehaviorEvent,
7269
+ 'type',
7270
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
7511
7271
  >
7512
7272
  }
7513
7273
  | PatchEvent
@@ -7785,14 +7545,10 @@ declare const editorMachine: StateMachine<
7785
7545
  mimeType: `${string}/${string}`
7786
7546
  reason: string
7787
7547
  } & {
7788
- dataTransfer: DataTransfer
7789
- originEvent: Omit<
7790
- PickFromUnion_2<
7791
- NativeBehaviorEvent,
7792
- 'type',
7793
- 'drag.drop' | 'paste'
7794
- >,
7795
- 'dataTransfer'
7548
+ originEvent: PickFromUnion_2<
7549
+ NativeBehaviorEvent,
7550
+ 'type',
7551
+ 'drag.drop' | 'clipboard.paste'
7796
7552
  >
7797
7553
  })
7798
7554
  | ({
@@ -7800,42 +7556,30 @@ declare const editorMachine: StateMachine<
7800
7556
  data: Array<PortableTextBlock>
7801
7557
  mimeType: `${string}/${string}`
7802
7558
  } & {
7803
- dataTransfer: DataTransfer
7804
- originEvent: Omit<
7805
- PickFromUnion_2<
7806
- NativeBehaviorEvent,
7807
- 'type',
7808
- 'drag.drop' | 'paste'
7809
- >,
7810
- 'dataTransfer'
7559
+ originEvent: PickFromUnion_2<
7560
+ NativeBehaviorEvent,
7561
+ 'type',
7562
+ 'drag.drop' | 'clipboard.paste'
7811
7563
  >
7812
7564
  })
7813
7565
  | {
7814
7566
  type: 'serialization.success'
7815
7567
  mimeType: MIMEType_2
7816
7568
  data: string
7817
- dataTransfer: DataTransfer
7818
- originEvent: Omit<
7819
- PickFromUnion_2<
7820
- NativeBehaviorEvent,
7821
- 'type',
7822
- 'copy' | 'cut' | 'drag.dragstart'
7823
- >,
7824
- 'dataTransfer'
7569
+ originEvent: PickFromUnion_2<
7570
+ NativeBehaviorEvent,
7571
+ 'type',
7572
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
7825
7573
  >
7826
7574
  }
7827
7575
  | {
7828
7576
  type: 'serialization.failure'
7829
7577
  mimeType: MIMEType_2
7830
7578
  reason: string
7831
- dataTransfer: DataTransfer
7832
- originEvent: Omit<
7833
- PickFromUnion_2<
7834
- NativeBehaviorEvent,
7835
- 'type',
7836
- 'copy' | 'cut' | 'drag.dragstart'
7837
- >,
7838
- 'dataTransfer'
7579
+ originEvent: PickFromUnion_2<
7580
+ NativeBehaviorEvent,
7581
+ 'type',
7582
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
7839
7583
  >
7840
7584
  }
7841
7585
  | InternalPatchEvent
@@ -8177,14 +7921,10 @@ declare const editorMachine: StateMachine<
8177
7921
  mimeType: `${string}/${string}`
8178
7922
  reason: string
8179
7923
  } & {
8180
- dataTransfer: DataTransfer
8181
- originEvent: Omit<
8182
- PickFromUnion_2<
8183
- NativeBehaviorEvent,
8184
- 'type',
8185
- 'drag.drop' | 'paste'
8186
- >,
8187
- 'dataTransfer'
7924
+ originEvent: PickFromUnion_2<
7925
+ NativeBehaviorEvent,
7926
+ 'type',
7927
+ 'drag.drop' | 'clipboard.paste'
8188
7928
  >
8189
7929
  })
8190
7930
  | ({
@@ -8192,42 +7932,30 @@ declare const editorMachine: StateMachine<
8192
7932
  data: Array<PortableTextBlock>
8193
7933
  mimeType: `${string}/${string}`
8194
7934
  } & {
8195
- dataTransfer: DataTransfer
8196
- originEvent: Omit<
8197
- PickFromUnion_2<
8198
- NativeBehaviorEvent,
8199
- 'type',
8200
- 'drag.drop' | 'paste'
8201
- >,
8202
- 'dataTransfer'
7935
+ originEvent: PickFromUnion_2<
7936
+ NativeBehaviorEvent,
7937
+ 'type',
7938
+ 'drag.drop' | 'clipboard.paste'
8203
7939
  >
8204
7940
  })
8205
7941
  | {
8206
7942
  type: 'serialization.success'
8207
7943
  mimeType: MIMEType_2
8208
7944
  data: string
8209
- dataTransfer: DataTransfer
8210
- originEvent: Omit<
8211
- PickFromUnion_2<
8212
- NativeBehaviorEvent,
8213
- 'type',
8214
- 'copy' | 'cut' | 'drag.dragstart'
8215
- >,
8216
- 'dataTransfer'
7945
+ originEvent: PickFromUnion_2<
7946
+ NativeBehaviorEvent,
7947
+ 'type',
7948
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
8217
7949
  >
8218
7950
  }
8219
7951
  | {
8220
7952
  type: 'serialization.failure'
8221
7953
  mimeType: MIMEType_2
8222
7954
  reason: string
8223
- dataTransfer: DataTransfer
8224
- originEvent: Omit<
8225
- PickFromUnion_2<
8226
- NativeBehaviorEvent,
8227
- 'type',
8228
- 'copy' | 'cut' | 'drag.dragstart'
8229
- >,
8230
- 'dataTransfer'
7955
+ originEvent: PickFromUnion_2<
7956
+ NativeBehaviorEvent,
7957
+ 'type',
7958
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
8231
7959
  >
8232
7960
  }
8233
7961
  | PatchEvent
@@ -8506,14 +8234,10 @@ declare const editorMachine: StateMachine<
8506
8234
  mimeType: `${string}/${string}`
8507
8235
  reason: string
8508
8236
  } & {
8509
- dataTransfer: DataTransfer
8510
- originEvent: Omit<
8511
- PickFromUnion_2<
8512
- NativeBehaviorEvent,
8513
- 'type',
8514
- 'drag.drop' | 'paste'
8515
- >,
8516
- 'dataTransfer'
8237
+ originEvent: PickFromUnion_2<
8238
+ NativeBehaviorEvent,
8239
+ 'type',
8240
+ 'drag.drop' | 'clipboard.paste'
8517
8241
  >
8518
8242
  })
8519
8243
  | ({
@@ -8521,42 +8245,30 @@ declare const editorMachine: StateMachine<
8521
8245
  data: Array<PortableTextBlock>
8522
8246
  mimeType: `${string}/${string}`
8523
8247
  } & {
8524
- dataTransfer: DataTransfer
8525
- originEvent: Omit<
8526
- PickFromUnion_2<
8527
- NativeBehaviorEvent,
8528
- 'type',
8529
- 'drag.drop' | 'paste'
8530
- >,
8531
- 'dataTransfer'
8248
+ originEvent: PickFromUnion_2<
8249
+ NativeBehaviorEvent,
8250
+ 'type',
8251
+ 'drag.drop' | 'clipboard.paste'
8532
8252
  >
8533
8253
  })
8534
8254
  | {
8535
8255
  type: 'serialization.success'
8536
8256
  mimeType: MIMEType_2
8537
8257
  data: string
8538
- dataTransfer: DataTransfer
8539
- originEvent: Omit<
8540
- PickFromUnion_2<
8541
- NativeBehaviorEvent,
8542
- 'type',
8543
- 'copy' | 'cut' | 'drag.dragstart'
8544
- >,
8545
- 'dataTransfer'
8258
+ originEvent: PickFromUnion_2<
8259
+ NativeBehaviorEvent,
8260
+ 'type',
8261
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
8546
8262
  >
8547
8263
  }
8548
8264
  | {
8549
8265
  type: 'serialization.failure'
8550
8266
  mimeType: MIMEType_2
8551
8267
  reason: string
8552
- dataTransfer: DataTransfer
8553
- originEvent: Omit<
8554
- PickFromUnion_2<
8555
- NativeBehaviorEvent,
8556
- 'type',
8557
- 'copy' | 'cut' | 'drag.dragstart'
8558
- >,
8559
- 'dataTransfer'
8268
+ originEvent: PickFromUnion_2<
8269
+ NativeBehaviorEvent,
8270
+ 'type',
8271
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
8560
8272
  >
8561
8273
  }
8562
8274
  | InternalPatchEvent
@@ -8898,14 +8610,10 @@ declare const editorMachine: StateMachine<
8898
8610
  mimeType: `${string}/${string}`
8899
8611
  reason: string
8900
8612
  } & {
8901
- dataTransfer: DataTransfer
8902
- originEvent: Omit<
8903
- PickFromUnion_2<
8904
- NativeBehaviorEvent,
8905
- 'type',
8906
- 'drag.drop' | 'paste'
8907
- >,
8908
- 'dataTransfer'
8613
+ originEvent: PickFromUnion_2<
8614
+ NativeBehaviorEvent,
8615
+ 'type',
8616
+ 'drag.drop' | 'clipboard.paste'
8909
8617
  >
8910
8618
  })
8911
8619
  | ({
@@ -8913,42 +8621,30 @@ declare const editorMachine: StateMachine<
8913
8621
  data: Array<PortableTextBlock>
8914
8622
  mimeType: `${string}/${string}`
8915
8623
  } & {
8916
- dataTransfer: DataTransfer
8917
- originEvent: Omit<
8918
- PickFromUnion_2<
8919
- NativeBehaviorEvent,
8920
- 'type',
8921
- 'drag.drop' | 'paste'
8922
- >,
8923
- 'dataTransfer'
8624
+ originEvent: PickFromUnion_2<
8625
+ NativeBehaviorEvent,
8626
+ 'type',
8627
+ 'drag.drop' | 'clipboard.paste'
8924
8628
  >
8925
8629
  })
8926
8630
  | {
8927
8631
  type: 'serialization.success'
8928
8632
  mimeType: MIMEType_2
8929
8633
  data: string
8930
- dataTransfer: DataTransfer
8931
- originEvent: Omit<
8932
- PickFromUnion_2<
8933
- NativeBehaviorEvent,
8934
- 'type',
8935
- 'copy' | 'cut' | 'drag.dragstart'
8936
- >,
8937
- 'dataTransfer'
8634
+ originEvent: PickFromUnion_2<
8635
+ NativeBehaviorEvent,
8636
+ 'type',
8637
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
8938
8638
  >
8939
8639
  }
8940
8640
  | {
8941
8641
  type: 'serialization.failure'
8942
8642
  mimeType: MIMEType_2
8943
8643
  reason: string
8944
- dataTransfer: DataTransfer
8945
- originEvent: Omit<
8946
- PickFromUnion_2<
8947
- NativeBehaviorEvent,
8948
- 'type',
8949
- 'copy' | 'cut' | 'drag.dragstart'
8950
- >,
8951
- 'dataTransfer'
8644
+ originEvent: PickFromUnion_2<
8645
+ NativeBehaviorEvent,
8646
+ 'type',
8647
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
8952
8648
  >
8953
8649
  }
8954
8650
  | PatchEvent
@@ -9230,14 +8926,10 @@ declare const editorMachine: StateMachine<
9230
8926
  mimeType: `${string}/${string}`
9231
8927
  reason: string
9232
8928
  } & {
9233
- dataTransfer: DataTransfer
9234
- originEvent: Omit<
9235
- PickFromUnion_2<
9236
- NativeBehaviorEvent,
9237
- 'type',
9238
- 'drag.drop' | 'paste'
9239
- >,
9240
- 'dataTransfer'
8929
+ originEvent: PickFromUnion_2<
8930
+ NativeBehaviorEvent,
8931
+ 'type',
8932
+ 'drag.drop' | 'clipboard.paste'
9241
8933
  >
9242
8934
  })
9243
8935
  | ({
@@ -9245,42 +8937,30 @@ declare const editorMachine: StateMachine<
9245
8937
  data: Array<PortableTextBlock>
9246
8938
  mimeType: `${string}/${string}`
9247
8939
  } & {
9248
- dataTransfer: DataTransfer
9249
- originEvent: Omit<
9250
- PickFromUnion_2<
9251
- NativeBehaviorEvent,
9252
- 'type',
9253
- 'drag.drop' | 'paste'
9254
- >,
9255
- 'dataTransfer'
8940
+ originEvent: PickFromUnion_2<
8941
+ NativeBehaviorEvent,
8942
+ 'type',
8943
+ 'drag.drop' | 'clipboard.paste'
9256
8944
  >
9257
8945
  })
9258
8946
  | {
9259
8947
  type: 'serialization.success'
9260
8948
  mimeType: MIMEType_2
9261
- data: string
9262
- dataTransfer: DataTransfer
9263
- originEvent: Omit<
9264
- PickFromUnion_2<
9265
- NativeBehaviorEvent,
9266
- 'type',
9267
- 'copy' | 'cut' | 'drag.dragstart'
9268
- >,
9269
- 'dataTransfer'
8949
+ data: string
8950
+ originEvent: PickFromUnion_2<
8951
+ NativeBehaviorEvent,
8952
+ 'type',
8953
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
9270
8954
  >
9271
8955
  }
9272
8956
  | {
9273
8957
  type: 'serialization.failure'
9274
8958
  mimeType: MIMEType_2
9275
8959
  reason: string
9276
- dataTransfer: DataTransfer
9277
- originEvent: Omit<
9278
- PickFromUnion_2<
9279
- NativeBehaviorEvent,
9280
- 'type',
9281
- 'copy' | 'cut' | 'drag.dragstart'
9282
- >,
9283
- 'dataTransfer'
8960
+ originEvent: PickFromUnion_2<
8961
+ NativeBehaviorEvent,
8962
+ 'type',
8963
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
9284
8964
  >
9285
8965
  }
9286
8966
  | InternalPatchEvent
@@ -9622,14 +9302,10 @@ declare const editorMachine: StateMachine<
9622
9302
  mimeType: `${string}/${string}`
9623
9303
  reason: string
9624
9304
  } & {
9625
- dataTransfer: DataTransfer
9626
- originEvent: Omit<
9627
- PickFromUnion_2<
9628
- NativeBehaviorEvent,
9629
- 'type',
9630
- 'drag.drop' | 'paste'
9631
- >,
9632
- 'dataTransfer'
9305
+ originEvent: PickFromUnion_2<
9306
+ NativeBehaviorEvent,
9307
+ 'type',
9308
+ 'drag.drop' | 'clipboard.paste'
9633
9309
  >
9634
9310
  })
9635
9311
  | ({
@@ -9637,42 +9313,30 @@ declare const editorMachine: StateMachine<
9637
9313
  data: Array<PortableTextBlock>
9638
9314
  mimeType: `${string}/${string}`
9639
9315
  } & {
9640
- dataTransfer: DataTransfer
9641
- originEvent: Omit<
9642
- PickFromUnion_2<
9643
- NativeBehaviorEvent,
9644
- 'type',
9645
- 'drag.drop' | 'paste'
9646
- >,
9647
- 'dataTransfer'
9316
+ originEvent: PickFromUnion_2<
9317
+ NativeBehaviorEvent,
9318
+ 'type',
9319
+ 'drag.drop' | 'clipboard.paste'
9648
9320
  >
9649
9321
  })
9650
9322
  | {
9651
9323
  type: 'serialization.success'
9652
9324
  mimeType: MIMEType_2
9653
9325
  data: string
9654
- dataTransfer: DataTransfer
9655
- originEvent: Omit<
9656
- PickFromUnion_2<
9657
- NativeBehaviorEvent,
9658
- 'type',
9659
- 'copy' | 'cut' | 'drag.dragstart'
9660
- >,
9661
- 'dataTransfer'
9326
+ originEvent: PickFromUnion_2<
9327
+ NativeBehaviorEvent,
9328
+ 'type',
9329
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
9662
9330
  >
9663
9331
  }
9664
9332
  | {
9665
9333
  type: 'serialization.failure'
9666
9334
  mimeType: MIMEType_2
9667
9335
  reason: string
9668
- dataTransfer: DataTransfer
9669
- originEvent: Omit<
9670
- PickFromUnion_2<
9671
- NativeBehaviorEvent,
9672
- 'type',
9673
- 'copy' | 'cut' | 'drag.dragstart'
9674
- >,
9675
- 'dataTransfer'
9336
+ originEvent: PickFromUnion_2<
9337
+ NativeBehaviorEvent,
9338
+ 'type',
9339
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
9676
9340
  >
9677
9341
  }
9678
9342
  | PatchEvent
@@ -9954,14 +9618,10 @@ declare const editorMachine: StateMachine<
9954
9618
  mimeType: `${string}/${string}`
9955
9619
  reason: string
9956
9620
  } & {
9957
- dataTransfer: DataTransfer
9958
- originEvent: Omit<
9959
- PickFromUnion_2<
9960
- NativeBehaviorEvent,
9961
- 'type',
9962
- 'drag.drop' | 'paste'
9963
- >,
9964
- 'dataTransfer'
9621
+ originEvent: PickFromUnion_2<
9622
+ NativeBehaviorEvent,
9623
+ 'type',
9624
+ 'drag.drop' | 'clipboard.paste'
9965
9625
  >
9966
9626
  })
9967
9627
  | ({
@@ -9969,42 +9629,30 @@ declare const editorMachine: StateMachine<
9969
9629
  data: Array<PortableTextBlock>
9970
9630
  mimeType: `${string}/${string}`
9971
9631
  } & {
9972
- dataTransfer: DataTransfer
9973
- originEvent: Omit<
9974
- PickFromUnion_2<
9975
- NativeBehaviorEvent,
9976
- 'type',
9977
- 'drag.drop' | 'paste'
9978
- >,
9979
- 'dataTransfer'
9632
+ originEvent: PickFromUnion_2<
9633
+ NativeBehaviorEvent,
9634
+ 'type',
9635
+ 'drag.drop' | 'clipboard.paste'
9980
9636
  >
9981
9637
  })
9982
9638
  | {
9983
9639
  type: 'serialization.success'
9984
9640
  mimeType: MIMEType_2
9985
9641
  data: string
9986
- dataTransfer: DataTransfer
9987
- originEvent: Omit<
9988
- PickFromUnion_2<
9989
- NativeBehaviorEvent,
9990
- 'type',
9991
- 'copy' | 'cut' | 'drag.dragstart'
9992
- >,
9993
- 'dataTransfer'
9642
+ originEvent: PickFromUnion_2<
9643
+ NativeBehaviorEvent,
9644
+ 'type',
9645
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
9994
9646
  >
9995
9647
  }
9996
9648
  | {
9997
9649
  type: 'serialization.failure'
9998
9650
  mimeType: MIMEType_2
9999
9651
  reason: string
10000
- dataTransfer: DataTransfer
10001
- originEvent: Omit<
10002
- PickFromUnion_2<
10003
- NativeBehaviorEvent,
10004
- 'type',
10005
- 'copy' | 'cut' | 'drag.dragstart'
10006
- >,
10007
- 'dataTransfer'
9652
+ originEvent: PickFromUnion_2<
9653
+ NativeBehaviorEvent,
9654
+ 'type',
9655
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
10008
9656
  >
10009
9657
  }
10010
9658
  | InternalPatchEvent
@@ -10373,14 +10021,10 @@ declare const editorMachine: StateMachine<
10373
10021
  mimeType: `${string}/${string}`
10374
10022
  reason: string
10375
10023
  } & {
10376
- dataTransfer: DataTransfer
10377
- originEvent: Omit<
10378
- PickFromUnion_2<
10379
- NativeBehaviorEvent,
10380
- 'type',
10381
- 'drag.drop' | 'paste'
10382
- >,
10383
- 'dataTransfer'
10024
+ originEvent: PickFromUnion_2<
10025
+ NativeBehaviorEvent,
10026
+ 'type',
10027
+ 'drag.drop' | 'clipboard.paste'
10384
10028
  >
10385
10029
  })
10386
10030
  | ({
@@ -10388,42 +10032,30 @@ declare const editorMachine: StateMachine<
10388
10032
  data: Array<PortableTextBlock>
10389
10033
  mimeType: `${string}/${string}`
10390
10034
  } & {
10391
- dataTransfer: DataTransfer
10392
- originEvent: Omit<
10393
- PickFromUnion_2<
10394
- NativeBehaviorEvent,
10395
- 'type',
10396
- 'drag.drop' | 'paste'
10397
- >,
10398
- 'dataTransfer'
10035
+ originEvent: PickFromUnion_2<
10036
+ NativeBehaviorEvent,
10037
+ 'type',
10038
+ 'drag.drop' | 'clipboard.paste'
10399
10039
  >
10400
10040
  })
10401
10041
  | {
10402
10042
  type: 'serialization.success'
10403
10043
  mimeType: MIMEType_2
10404
10044
  data: string
10405
- dataTransfer: DataTransfer
10406
- originEvent: Omit<
10407
- PickFromUnion_2<
10408
- NativeBehaviorEvent,
10409
- 'type',
10410
- 'copy' | 'cut' | 'drag.dragstart'
10411
- >,
10412
- 'dataTransfer'
10045
+ originEvent: PickFromUnion_2<
10046
+ NativeBehaviorEvent,
10047
+ 'type',
10048
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
10413
10049
  >
10414
10050
  }
10415
10051
  | {
10416
10052
  type: 'serialization.failure'
10417
10053
  mimeType: MIMEType_2
10418
10054
  reason: string
10419
- dataTransfer: DataTransfer
10420
- originEvent: Omit<
10421
- PickFromUnion_2<
10422
- NativeBehaviorEvent,
10423
- 'type',
10424
- 'copy' | 'cut' | 'drag.dragstart'
10425
- >,
10426
- 'dataTransfer'
10055
+ originEvent: PickFromUnion_2<
10056
+ NativeBehaviorEvent,
10057
+ 'type',
10058
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
10427
10059
  >
10428
10060
  }
10429
10061
  | InternalPatchEvent
@@ -10789,14 +10421,10 @@ declare const editorMachine: StateMachine<
10789
10421
  mimeType: `${string}/${string}`
10790
10422
  reason: string
10791
10423
  } & {
10792
- dataTransfer: DataTransfer
10793
- originEvent: Omit<
10794
- PickFromUnion_2<
10795
- NativeBehaviorEvent,
10796
- 'type',
10797
- 'drag.drop' | 'paste'
10798
- >,
10799
- 'dataTransfer'
10424
+ originEvent: PickFromUnion_2<
10425
+ NativeBehaviorEvent,
10426
+ 'type',
10427
+ 'drag.drop' | 'clipboard.paste'
10800
10428
  >
10801
10429
  })
10802
10430
  | ({
@@ -10804,42 +10432,30 @@ declare const editorMachine: StateMachine<
10804
10432
  data: Array<PortableTextBlock>
10805
10433
  mimeType: `${string}/${string}`
10806
10434
  } & {
10807
- dataTransfer: DataTransfer
10808
- originEvent: Omit<
10809
- PickFromUnion_2<
10810
- NativeBehaviorEvent,
10811
- 'type',
10812
- 'drag.drop' | 'paste'
10813
- >,
10814
- 'dataTransfer'
10435
+ originEvent: PickFromUnion_2<
10436
+ NativeBehaviorEvent,
10437
+ 'type',
10438
+ 'drag.drop' | 'clipboard.paste'
10815
10439
  >
10816
10440
  })
10817
10441
  | {
10818
10442
  type: 'serialization.success'
10819
10443
  mimeType: MIMEType_2
10820
10444
  data: string
10821
- dataTransfer: DataTransfer
10822
- originEvent: Omit<
10823
- PickFromUnion_2<
10824
- NativeBehaviorEvent,
10825
- 'type',
10826
- 'copy' | 'cut' | 'drag.dragstart'
10827
- >,
10828
- 'dataTransfer'
10445
+ originEvent: PickFromUnion_2<
10446
+ NativeBehaviorEvent,
10447
+ 'type',
10448
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
10829
10449
  >
10830
10450
  }
10831
10451
  | {
10832
10452
  type: 'serialization.failure'
10833
10453
  mimeType: MIMEType_2
10834
10454
  reason: string
10835
- dataTransfer: DataTransfer
10836
- originEvent: Omit<
10837
- PickFromUnion_2<
10838
- NativeBehaviorEvent,
10839
- 'type',
10840
- 'copy' | 'cut' | 'drag.dragstart'
10841
- >,
10842
- 'dataTransfer'
10455
+ originEvent: PickFromUnion_2<
10456
+ NativeBehaviorEvent,
10457
+ 'type',
10458
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
10843
10459
  >
10844
10460
  }
10845
10461
  | InternalPatchEvent
@@ -11374,14 +10990,10 @@ declare const editorMachine: StateMachine<
11374
10990
  mimeType: `${string}/${string}`
11375
10991
  reason: string
11376
10992
  } & {
11377
- dataTransfer: DataTransfer
11378
- originEvent: Omit<
11379
- PickFromUnion_2<
11380
- NativeBehaviorEvent,
11381
- 'type',
11382
- 'drag.drop' | 'paste'
11383
- >,
11384
- 'dataTransfer'
10993
+ originEvent: PickFromUnion_2<
10994
+ NativeBehaviorEvent,
10995
+ 'type',
10996
+ 'drag.drop' | 'clipboard.paste'
11385
10997
  >
11386
10998
  })
11387
10999
  | ({
@@ -11389,42 +11001,30 @@ declare const editorMachine: StateMachine<
11389
11001
  data: Array<PortableTextBlock>
11390
11002
  mimeType: `${string}/${string}`
11391
11003
  } & {
11392
- dataTransfer: DataTransfer
11393
- originEvent: Omit<
11394
- PickFromUnion_2<
11395
- NativeBehaviorEvent,
11396
- 'type',
11397
- 'drag.drop' | 'paste'
11398
- >,
11399
- 'dataTransfer'
11004
+ originEvent: PickFromUnion_2<
11005
+ NativeBehaviorEvent,
11006
+ 'type',
11007
+ 'drag.drop' | 'clipboard.paste'
11400
11008
  >
11401
11009
  })
11402
11010
  | {
11403
11011
  type: 'serialization.success'
11404
11012
  mimeType: MIMEType_2
11405
11013
  data: string
11406
- dataTransfer: DataTransfer
11407
- originEvent: Omit<
11408
- PickFromUnion_2<
11409
- NativeBehaviorEvent,
11410
- 'type',
11411
- 'copy' | 'cut' | 'drag.dragstart'
11412
- >,
11413
- 'dataTransfer'
11014
+ originEvent: PickFromUnion_2<
11015
+ NativeBehaviorEvent,
11016
+ 'type',
11017
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
11414
11018
  >
11415
11019
  }
11416
11020
  | {
11417
11021
  type: 'serialization.failure'
11418
11022
  mimeType: MIMEType_2
11419
11023
  reason: string
11420
- dataTransfer: DataTransfer
11421
- originEvent: Omit<
11422
- PickFromUnion_2<
11423
- NativeBehaviorEvent,
11424
- 'type',
11425
- 'copy' | 'cut' | 'drag.dragstart'
11426
- >,
11427
- 'dataTransfer'
11024
+ originEvent: PickFromUnion_2<
11025
+ NativeBehaviorEvent,
11026
+ 'type',
11027
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
11428
11028
  >
11429
11029
  }
11430
11030
  | InternalPatchEvent
@@ -11766,14 +11366,10 @@ declare const editorMachine: StateMachine<
11766
11366
  mimeType: `${string}/${string}`
11767
11367
  reason: string
11768
11368
  } & {
11769
- dataTransfer: DataTransfer
11770
- originEvent: Omit<
11771
- PickFromUnion_2<
11772
- NativeBehaviorEvent,
11773
- 'type',
11774
- 'drag.drop' | 'paste'
11775
- >,
11776
- 'dataTransfer'
11369
+ originEvent: PickFromUnion_2<
11370
+ NativeBehaviorEvent,
11371
+ 'type',
11372
+ 'drag.drop' | 'clipboard.paste'
11777
11373
  >
11778
11374
  })
11779
11375
  | ({
@@ -11781,42 +11377,30 @@ declare const editorMachine: StateMachine<
11781
11377
  data: Array<PortableTextBlock>
11782
11378
  mimeType: `${string}/${string}`
11783
11379
  } & {
11784
- dataTransfer: DataTransfer
11785
- originEvent: Omit<
11786
- PickFromUnion_2<
11787
- NativeBehaviorEvent,
11788
- 'type',
11789
- 'drag.drop' | 'paste'
11790
- >,
11791
- 'dataTransfer'
11380
+ originEvent: PickFromUnion_2<
11381
+ NativeBehaviorEvent,
11382
+ 'type',
11383
+ 'drag.drop' | 'clipboard.paste'
11792
11384
  >
11793
11385
  })
11794
11386
  | {
11795
11387
  type: 'serialization.success'
11796
11388
  mimeType: MIMEType_2
11797
11389
  data: string
11798
- dataTransfer: DataTransfer
11799
- originEvent: Omit<
11800
- PickFromUnion_2<
11801
- NativeBehaviorEvent,
11802
- 'type',
11803
- 'copy' | 'cut' | 'drag.dragstart'
11804
- >,
11805
- 'dataTransfer'
11390
+ originEvent: PickFromUnion_2<
11391
+ NativeBehaviorEvent,
11392
+ 'type',
11393
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
11806
11394
  >
11807
11395
  }
11808
11396
  | {
11809
11397
  type: 'serialization.failure'
11810
11398
  mimeType: MIMEType_2
11811
11399
  reason: string
11812
- dataTransfer: DataTransfer
11813
- originEvent: Omit<
11814
- PickFromUnion_2<
11815
- NativeBehaviorEvent,
11816
- 'type',
11817
- 'copy' | 'cut' | 'drag.dragstart'
11818
- >,
11819
- 'dataTransfer'
11400
+ originEvent: PickFromUnion_2<
11401
+ NativeBehaviorEvent,
11402
+ 'type',
11403
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
11820
11404
  >
11821
11405
  }
11822
11406
  | PatchEvent
@@ -12101,14 +11685,10 @@ declare const editorMachine: StateMachine<
12101
11685
  mimeType: `${string}/${string}`
12102
11686
  reason: string
12103
11687
  } & {
12104
- dataTransfer: DataTransfer
12105
- originEvent: Omit<
12106
- PickFromUnion_2<
12107
- NativeBehaviorEvent,
12108
- 'type',
12109
- 'drag.drop' | 'paste'
12110
- >,
12111
- 'dataTransfer'
11688
+ originEvent: PickFromUnion_2<
11689
+ NativeBehaviorEvent,
11690
+ 'type',
11691
+ 'drag.drop' | 'clipboard.paste'
12112
11692
  >
12113
11693
  })
12114
11694
  | ({
@@ -12116,42 +11696,30 @@ declare const editorMachine: StateMachine<
12116
11696
  data: Array<PortableTextBlock>
12117
11697
  mimeType: `${string}/${string}`
12118
11698
  } & {
12119
- dataTransfer: DataTransfer
12120
- originEvent: Omit<
12121
- PickFromUnion_2<
12122
- NativeBehaviorEvent,
12123
- 'type',
12124
- 'drag.drop' | 'paste'
12125
- >,
12126
- 'dataTransfer'
11699
+ originEvent: PickFromUnion_2<
11700
+ NativeBehaviorEvent,
11701
+ 'type',
11702
+ 'drag.drop' | 'clipboard.paste'
12127
11703
  >
12128
11704
  })
12129
11705
  | {
12130
11706
  type: 'serialization.success'
12131
11707
  mimeType: MIMEType_2
12132
11708
  data: string
12133
- dataTransfer: DataTransfer
12134
- originEvent: Omit<
12135
- PickFromUnion_2<
12136
- NativeBehaviorEvent,
12137
- 'type',
12138
- 'copy' | 'cut' | 'drag.dragstart'
12139
- >,
12140
- 'dataTransfer'
11709
+ originEvent: PickFromUnion_2<
11710
+ NativeBehaviorEvent,
11711
+ 'type',
11712
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
12141
11713
  >
12142
11714
  }
12143
11715
  | {
12144
11716
  type: 'serialization.failure'
12145
11717
  mimeType: MIMEType_2
12146
11718
  reason: string
12147
- dataTransfer: DataTransfer
12148
- originEvent: Omit<
12149
- PickFromUnion_2<
12150
- NativeBehaviorEvent,
12151
- 'type',
12152
- 'copy' | 'cut' | 'drag.dragstart'
12153
- >,
12154
- 'dataTransfer'
11719
+ originEvent: PickFromUnion_2<
11720
+ NativeBehaviorEvent,
11721
+ 'type',
11722
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
12155
11723
  >
12156
11724
  }
12157
11725
  | InternalPatchEvent
@@ -12493,14 +12061,10 @@ declare const editorMachine: StateMachine<
12493
12061
  mimeType: `${string}/${string}`
12494
12062
  reason: string
12495
12063
  } & {
12496
- dataTransfer: DataTransfer
12497
- originEvent: Omit<
12498
- PickFromUnion_2<
12499
- NativeBehaviorEvent,
12500
- 'type',
12501
- 'drag.drop' | 'paste'
12502
- >,
12503
- 'dataTransfer'
12064
+ originEvent: PickFromUnion_2<
12065
+ NativeBehaviorEvent,
12066
+ 'type',
12067
+ 'drag.drop' | 'clipboard.paste'
12504
12068
  >
12505
12069
  })
12506
12070
  | ({
@@ -12508,42 +12072,30 @@ declare const editorMachine: StateMachine<
12508
12072
  data: Array<PortableTextBlock>
12509
12073
  mimeType: `${string}/${string}`
12510
12074
  } & {
12511
- dataTransfer: DataTransfer
12512
- originEvent: Omit<
12513
- PickFromUnion_2<
12514
- NativeBehaviorEvent,
12515
- 'type',
12516
- 'drag.drop' | 'paste'
12517
- >,
12518
- 'dataTransfer'
12075
+ originEvent: PickFromUnion_2<
12076
+ NativeBehaviorEvent,
12077
+ 'type',
12078
+ 'drag.drop' | 'clipboard.paste'
12519
12079
  >
12520
12080
  })
12521
12081
  | {
12522
12082
  type: 'serialization.success'
12523
12083
  mimeType: MIMEType_2
12524
12084
  data: string
12525
- dataTransfer: DataTransfer
12526
- originEvent: Omit<
12527
- PickFromUnion_2<
12528
- NativeBehaviorEvent,
12529
- 'type',
12530
- 'copy' | 'cut' | 'drag.dragstart'
12531
- >,
12532
- 'dataTransfer'
12085
+ originEvent: PickFromUnion_2<
12086
+ NativeBehaviorEvent,
12087
+ 'type',
12088
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
12533
12089
  >
12534
12090
  }
12535
12091
  | {
12536
12092
  type: 'serialization.failure'
12537
12093
  mimeType: MIMEType_2
12538
12094
  reason: string
12539
- dataTransfer: DataTransfer
12540
- originEvent: Omit<
12541
- PickFromUnion_2<
12542
- NativeBehaviorEvent,
12543
- 'type',
12544
- 'copy' | 'cut' | 'drag.dragstart'
12545
- >,
12546
- 'dataTransfer'
12095
+ originEvent: PickFromUnion_2<
12096
+ NativeBehaviorEvent,
12097
+ 'type',
12098
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
12547
12099
  >
12548
12100
  }
12549
12101
  | PatchEvent
@@ -12821,14 +12373,10 @@ declare const editorMachine: StateMachine<
12821
12373
  mimeType: `${string}/${string}`
12822
12374
  reason: string
12823
12375
  } & {
12824
- dataTransfer: DataTransfer
12825
- originEvent: Omit<
12826
- PickFromUnion_2<
12827
- NativeBehaviorEvent,
12828
- 'type',
12829
- 'drag.drop' | 'paste'
12830
- >,
12831
- 'dataTransfer'
12376
+ originEvent: PickFromUnion_2<
12377
+ NativeBehaviorEvent,
12378
+ 'type',
12379
+ 'drag.drop' | 'clipboard.paste'
12832
12380
  >
12833
12381
  })
12834
12382
  | ({
@@ -12836,42 +12384,30 @@ declare const editorMachine: StateMachine<
12836
12384
  data: Array<PortableTextBlock>
12837
12385
  mimeType: `${string}/${string}`
12838
12386
  } & {
12839
- dataTransfer: DataTransfer
12840
- originEvent: Omit<
12841
- PickFromUnion_2<
12842
- NativeBehaviorEvent,
12843
- 'type',
12844
- 'drag.drop' | 'paste'
12845
- >,
12846
- 'dataTransfer'
12387
+ originEvent: PickFromUnion_2<
12388
+ NativeBehaviorEvent,
12389
+ 'type',
12390
+ 'drag.drop' | 'clipboard.paste'
12847
12391
  >
12848
12392
  })
12849
12393
  | {
12850
12394
  type: 'serialization.success'
12851
12395
  mimeType: MIMEType_2
12852
12396
  data: string
12853
- dataTransfer: DataTransfer
12854
- originEvent: Omit<
12855
- PickFromUnion_2<
12856
- NativeBehaviorEvent,
12857
- 'type',
12858
- 'copy' | 'cut' | 'drag.dragstart'
12859
- >,
12860
- 'dataTransfer'
12397
+ originEvent: PickFromUnion_2<
12398
+ NativeBehaviorEvent,
12399
+ 'type',
12400
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
12861
12401
  >
12862
12402
  }
12863
12403
  | {
12864
12404
  type: 'serialization.failure'
12865
12405
  mimeType: MIMEType_2
12866
12406
  reason: string
12867
- dataTransfer: DataTransfer
12868
- originEvent: Omit<
12869
- PickFromUnion_2<
12870
- NativeBehaviorEvent,
12871
- 'type',
12872
- 'copy' | 'cut' | 'drag.dragstart'
12873
- >,
12874
- 'dataTransfer'
12407
+ originEvent: PickFromUnion_2<
12408
+ NativeBehaviorEvent,
12409
+ 'type',
12410
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
12875
12411
  >
12876
12412
  }
12877
12413
  | InternalPatchEvent
@@ -13213,14 +12749,10 @@ declare const editorMachine: StateMachine<
13213
12749
  mimeType: `${string}/${string}`
13214
12750
  reason: string
13215
12751
  } & {
13216
- dataTransfer: DataTransfer
13217
- originEvent: Omit<
13218
- PickFromUnion_2<
13219
- NativeBehaviorEvent,
13220
- 'type',
13221
- 'drag.drop' | 'paste'
13222
- >,
13223
- 'dataTransfer'
12752
+ originEvent: PickFromUnion_2<
12753
+ NativeBehaviorEvent,
12754
+ 'type',
12755
+ 'drag.drop' | 'clipboard.paste'
13224
12756
  >
13225
12757
  })
13226
12758
  | ({
@@ -13228,42 +12760,30 @@ declare const editorMachine: StateMachine<
13228
12760
  data: Array<PortableTextBlock>
13229
12761
  mimeType: `${string}/${string}`
13230
12762
  } & {
13231
- dataTransfer: DataTransfer
13232
- originEvent: Omit<
13233
- PickFromUnion_2<
13234
- NativeBehaviorEvent,
13235
- 'type',
13236
- 'drag.drop' | 'paste'
13237
- >,
13238
- 'dataTransfer'
12763
+ originEvent: PickFromUnion_2<
12764
+ NativeBehaviorEvent,
12765
+ 'type',
12766
+ 'drag.drop' | 'clipboard.paste'
13239
12767
  >
13240
12768
  })
13241
12769
  | {
13242
12770
  type: 'serialization.success'
13243
12771
  mimeType: MIMEType_2
13244
12772
  data: string
13245
- dataTransfer: DataTransfer
13246
- originEvent: Omit<
13247
- PickFromUnion_2<
13248
- NativeBehaviorEvent,
13249
- 'type',
13250
- 'copy' | 'cut' | 'drag.dragstart'
13251
- >,
13252
- 'dataTransfer'
12773
+ originEvent: PickFromUnion_2<
12774
+ NativeBehaviorEvent,
12775
+ 'type',
12776
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
13253
12777
  >
13254
12778
  }
13255
12779
  | {
13256
12780
  type: 'serialization.failure'
13257
12781
  mimeType: MIMEType_2
13258
12782
  reason: string
13259
- dataTransfer: DataTransfer
13260
- originEvent: Omit<
13261
- PickFromUnion_2<
13262
- NativeBehaviorEvent,
13263
- 'type',
13264
- 'copy' | 'cut' | 'drag.dragstart'
13265
- >,
13266
- 'dataTransfer'
12783
+ originEvent: PickFromUnion_2<
12784
+ NativeBehaviorEvent,
12785
+ 'type',
12786
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
13267
12787
  >
13268
12788
  }
13269
12789
  | PatchEvent
@@ -13541,14 +13061,10 @@ declare const editorMachine: StateMachine<
13541
13061
  mimeType: `${string}/${string}`
13542
13062
  reason: string
13543
13063
  } & {
13544
- dataTransfer: DataTransfer
13545
- originEvent: Omit<
13546
- PickFromUnion_2<
13547
- NativeBehaviorEvent,
13548
- 'type',
13549
- 'drag.drop' | 'paste'
13550
- >,
13551
- 'dataTransfer'
13064
+ originEvent: PickFromUnion_2<
13065
+ NativeBehaviorEvent,
13066
+ 'type',
13067
+ 'drag.drop' | 'clipboard.paste'
13552
13068
  >
13553
13069
  })
13554
13070
  | ({
@@ -13556,42 +13072,30 @@ declare const editorMachine: StateMachine<
13556
13072
  data: Array<PortableTextBlock>
13557
13073
  mimeType: `${string}/${string}`
13558
13074
  } & {
13559
- dataTransfer: DataTransfer
13560
- originEvent: Omit<
13561
- PickFromUnion_2<
13562
- NativeBehaviorEvent,
13563
- 'type',
13564
- 'drag.drop' | 'paste'
13565
- >,
13566
- 'dataTransfer'
13075
+ originEvent: PickFromUnion_2<
13076
+ NativeBehaviorEvent,
13077
+ 'type',
13078
+ 'drag.drop' | 'clipboard.paste'
13567
13079
  >
13568
13080
  })
13569
13081
  | {
13570
13082
  type: 'serialization.success'
13571
13083
  mimeType: MIMEType_2
13572
13084
  data: string
13573
- dataTransfer: DataTransfer
13574
- originEvent: Omit<
13575
- PickFromUnion_2<
13576
- NativeBehaviorEvent,
13577
- 'type',
13578
- 'copy' | 'cut' | 'drag.dragstart'
13579
- >,
13580
- 'dataTransfer'
13085
+ originEvent: PickFromUnion_2<
13086
+ NativeBehaviorEvent,
13087
+ 'type',
13088
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
13581
13089
  >
13582
13090
  }
13583
13091
  | {
13584
13092
  type: 'serialization.failure'
13585
13093
  mimeType: MIMEType_2
13586
13094
  reason: string
13587
- dataTransfer: DataTransfer
13588
- originEvent: Omit<
13589
- PickFromUnion_2<
13590
- NativeBehaviorEvent,
13591
- 'type',
13592
- 'copy' | 'cut' | 'drag.dragstart'
13593
- >,
13594
- 'dataTransfer'
13095
+ originEvent: PickFromUnion_2<
13096
+ NativeBehaviorEvent,
13097
+ 'type',
13098
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
13595
13099
  >
13596
13100
  }
13597
13101
  | InternalPatchEvent
@@ -13933,14 +13437,10 @@ declare const editorMachine: StateMachine<
13933
13437
  mimeType: `${string}/${string}`
13934
13438
  reason: string
13935
13439
  } & {
13936
- dataTransfer: DataTransfer
13937
- originEvent: Omit<
13938
- PickFromUnion_2<
13939
- NativeBehaviorEvent,
13940
- 'type',
13941
- 'drag.drop' | 'paste'
13942
- >,
13943
- 'dataTransfer'
13440
+ originEvent: PickFromUnion_2<
13441
+ NativeBehaviorEvent,
13442
+ 'type',
13443
+ 'drag.drop' | 'clipboard.paste'
13944
13444
  >
13945
13445
  })
13946
13446
  | ({
@@ -13948,42 +13448,30 @@ declare const editorMachine: StateMachine<
13948
13448
  data: Array<PortableTextBlock>
13949
13449
  mimeType: `${string}/${string}`
13950
13450
  } & {
13951
- dataTransfer: DataTransfer
13952
- originEvent: Omit<
13953
- PickFromUnion_2<
13954
- NativeBehaviorEvent,
13955
- 'type',
13956
- 'drag.drop' | 'paste'
13957
- >,
13958
- 'dataTransfer'
13451
+ originEvent: PickFromUnion_2<
13452
+ NativeBehaviorEvent,
13453
+ 'type',
13454
+ 'drag.drop' | 'clipboard.paste'
13959
13455
  >
13960
13456
  })
13961
13457
  | {
13962
13458
  type: 'serialization.success'
13963
13459
  mimeType: MIMEType_2
13964
13460
  data: string
13965
- dataTransfer: DataTransfer
13966
- originEvent: Omit<
13967
- PickFromUnion_2<
13968
- NativeBehaviorEvent,
13969
- 'type',
13970
- 'copy' | 'cut' | 'drag.dragstart'
13971
- >,
13972
- 'dataTransfer'
13461
+ originEvent: PickFromUnion_2<
13462
+ NativeBehaviorEvent,
13463
+ 'type',
13464
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
13973
13465
  >
13974
13466
  }
13975
13467
  | {
13976
13468
  type: 'serialization.failure'
13977
13469
  mimeType: MIMEType_2
13978
13470
  reason: string
13979
- dataTransfer: DataTransfer
13980
- originEvent: Omit<
13981
- PickFromUnion_2<
13982
- NativeBehaviorEvent,
13983
- 'type',
13984
- 'copy' | 'cut' | 'drag.dragstart'
13985
- >,
13986
- 'dataTransfer'
13471
+ originEvent: PickFromUnion_2<
13472
+ NativeBehaviorEvent,
13473
+ 'type',
13474
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
13987
13475
  >
13988
13476
  }
13989
13477
  | PatchEvent
@@ -14274,14 +13762,10 @@ declare const editorMachine: StateMachine<
14274
13762
  mimeType: `${string}/${string}`
14275
13763
  reason: string
14276
13764
  } & {
14277
- dataTransfer: DataTransfer
14278
- originEvent: Omit<
14279
- PickFromUnion_2<
14280
- NativeBehaviorEvent,
14281
- 'type',
14282
- 'drag.drop' | 'paste'
14283
- >,
14284
- 'dataTransfer'
13765
+ originEvent: PickFromUnion_2<
13766
+ NativeBehaviorEvent,
13767
+ 'type',
13768
+ 'drag.drop' | 'clipboard.paste'
14285
13769
  >
14286
13770
  })
14287
13771
  | ({
@@ -14289,42 +13773,30 @@ declare const editorMachine: StateMachine<
14289
13773
  data: Array<PortableTextBlock>
14290
13774
  mimeType: `${string}/${string}`
14291
13775
  } & {
14292
- dataTransfer: DataTransfer
14293
- originEvent: Omit<
14294
- PickFromUnion_2<
14295
- NativeBehaviorEvent,
14296
- 'type',
14297
- 'drag.drop' | 'paste'
14298
- >,
14299
- 'dataTransfer'
13776
+ originEvent: PickFromUnion_2<
13777
+ NativeBehaviorEvent,
13778
+ 'type',
13779
+ 'drag.drop' | 'clipboard.paste'
14300
13780
  >
14301
13781
  })
14302
13782
  | {
14303
13783
  type: 'serialization.success'
14304
13784
  mimeType: MIMEType_2
14305
13785
  data: string
14306
- dataTransfer: DataTransfer
14307
- originEvent: Omit<
14308
- PickFromUnion_2<
14309
- NativeBehaviorEvent,
14310
- 'type',
14311
- 'copy' | 'cut' | 'drag.dragstart'
14312
- >,
14313
- 'dataTransfer'
13786
+ originEvent: PickFromUnion_2<
13787
+ NativeBehaviorEvent,
13788
+ 'type',
13789
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
14314
13790
  >
14315
13791
  }
14316
13792
  | {
14317
13793
  type: 'serialization.failure'
14318
13794
  mimeType: MIMEType_2
14319
13795
  reason: string
14320
- dataTransfer: DataTransfer
14321
- originEvent: Omit<
14322
- PickFromUnion_2<
14323
- NativeBehaviorEvent,
14324
- 'type',
14325
- 'copy' | 'cut' | 'drag.dragstart'
14326
- >,
14327
- 'dataTransfer'
13796
+ originEvent: PickFromUnion_2<
13797
+ NativeBehaviorEvent,
13798
+ 'type',
13799
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
14328
13800
  >
14329
13801
  }
14330
13802
  | InternalPatchEvent
@@ -14666,14 +14138,10 @@ declare const editorMachine: StateMachine<
14666
14138
  mimeType: `${string}/${string}`
14667
14139
  reason: string
14668
14140
  } & {
14669
- dataTransfer: DataTransfer
14670
- originEvent: Omit<
14671
- PickFromUnion_2<
14672
- NativeBehaviorEvent,
14673
- 'type',
14674
- 'drag.drop' | 'paste'
14675
- >,
14676
- 'dataTransfer'
14141
+ originEvent: PickFromUnion_2<
14142
+ NativeBehaviorEvent,
14143
+ 'type',
14144
+ 'drag.drop' | 'clipboard.paste'
14677
14145
  >
14678
14146
  })
14679
14147
  | ({
@@ -14681,42 +14149,30 @@ declare const editorMachine: StateMachine<
14681
14149
  data: Array<PortableTextBlock>
14682
14150
  mimeType: `${string}/${string}`
14683
14151
  } & {
14684
- dataTransfer: DataTransfer
14685
- originEvent: Omit<
14686
- PickFromUnion_2<
14687
- NativeBehaviorEvent,
14688
- 'type',
14689
- 'drag.drop' | 'paste'
14690
- >,
14691
- 'dataTransfer'
14152
+ originEvent: PickFromUnion_2<
14153
+ NativeBehaviorEvent,
14154
+ 'type',
14155
+ 'drag.drop' | 'clipboard.paste'
14692
14156
  >
14693
14157
  })
14694
14158
  | {
14695
14159
  type: 'serialization.success'
14696
14160
  mimeType: MIMEType_2
14697
14161
  data: string
14698
- dataTransfer: DataTransfer
14699
- originEvent: Omit<
14700
- PickFromUnion_2<
14701
- NativeBehaviorEvent,
14702
- 'type',
14703
- 'copy' | 'cut' | 'drag.dragstart'
14704
- >,
14705
- 'dataTransfer'
14162
+ originEvent: PickFromUnion_2<
14163
+ NativeBehaviorEvent,
14164
+ 'type',
14165
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
14706
14166
  >
14707
14167
  }
14708
14168
  | {
14709
14169
  type: 'serialization.failure'
14710
14170
  mimeType: MIMEType_2
14711
14171
  reason: string
14712
- dataTransfer: DataTransfer
14713
- originEvent: Omit<
14714
- PickFromUnion_2<
14715
- NativeBehaviorEvent,
14716
- 'type',
14717
- 'copy' | 'cut' | 'drag.dragstart'
14718
- >,
14719
- 'dataTransfer'
14172
+ originEvent: PickFromUnion_2<
14173
+ NativeBehaviorEvent,
14174
+ 'type',
14175
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
14720
14176
  >
14721
14177
  }
14722
14178
  | PatchEvent
@@ -15008,14 +14464,10 @@ declare const editorMachine: StateMachine<
15008
14464
  mimeType: `${string}/${string}`
15009
14465
  reason: string
15010
14466
  } & {
15011
- dataTransfer: DataTransfer
15012
- originEvent: Omit<
15013
- PickFromUnion_2<
15014
- NativeBehaviorEvent,
15015
- 'type',
15016
- 'drag.drop' | 'paste'
15017
- >,
15018
- 'dataTransfer'
14467
+ originEvent: PickFromUnion_2<
14468
+ NativeBehaviorEvent,
14469
+ 'type',
14470
+ 'drag.drop' | 'clipboard.paste'
15019
14471
  >
15020
14472
  })
15021
14473
  | ({
@@ -15023,42 +14475,30 @@ declare const editorMachine: StateMachine<
15023
14475
  data: Array<PortableTextBlock>
15024
14476
  mimeType: `${string}/${string}`
15025
14477
  } & {
15026
- dataTransfer: DataTransfer
15027
- originEvent: Omit<
15028
- PickFromUnion_2<
15029
- NativeBehaviorEvent,
15030
- 'type',
15031
- 'drag.drop' | 'paste'
15032
- >,
15033
- 'dataTransfer'
14478
+ originEvent: PickFromUnion_2<
14479
+ NativeBehaviorEvent,
14480
+ 'type',
14481
+ 'drag.drop' | 'clipboard.paste'
15034
14482
  >
15035
14483
  })
15036
14484
  | {
15037
14485
  type: 'serialization.success'
15038
14486
  mimeType: MIMEType_2
15039
14487
  data: string
15040
- dataTransfer: DataTransfer
15041
- originEvent: Omit<
15042
- PickFromUnion_2<
15043
- NativeBehaviorEvent,
15044
- 'type',
15045
- 'copy' | 'cut' | 'drag.dragstart'
15046
- >,
15047
- 'dataTransfer'
14488
+ originEvent: PickFromUnion_2<
14489
+ NativeBehaviorEvent,
14490
+ 'type',
14491
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
15048
14492
  >
15049
14493
  }
15050
14494
  | {
15051
14495
  type: 'serialization.failure'
15052
14496
  mimeType: MIMEType_2
15053
14497
  reason: string
15054
- dataTransfer: DataTransfer
15055
- originEvent: Omit<
15056
- PickFromUnion_2<
15057
- NativeBehaviorEvent,
15058
- 'type',
15059
- 'copy' | 'cut' | 'drag.dragstart'
15060
- >,
15061
- 'dataTransfer'
14498
+ originEvent: PickFromUnion_2<
14499
+ NativeBehaviorEvent,
14500
+ 'type',
14501
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
15062
14502
  >
15063
14503
  }
15064
14504
  | InternalPatchEvent
@@ -15400,14 +14840,10 @@ declare const editorMachine: StateMachine<
15400
14840
  mimeType: `${string}/${string}`
15401
14841
  reason: string
15402
14842
  } & {
15403
- dataTransfer: DataTransfer
15404
- originEvent: Omit<
15405
- PickFromUnion_2<
15406
- NativeBehaviorEvent,
15407
- 'type',
15408
- 'drag.drop' | 'paste'
15409
- >,
15410
- 'dataTransfer'
14843
+ originEvent: PickFromUnion_2<
14844
+ NativeBehaviorEvent,
14845
+ 'type',
14846
+ 'drag.drop' | 'clipboard.paste'
15411
14847
  >
15412
14848
  })
15413
14849
  | ({
@@ -15415,42 +14851,30 @@ declare const editorMachine: StateMachine<
15415
14851
  data: Array<PortableTextBlock>
15416
14852
  mimeType: `${string}/${string}`
15417
14853
  } & {
15418
- dataTransfer: DataTransfer
15419
- originEvent: Omit<
15420
- PickFromUnion_2<
15421
- NativeBehaviorEvent,
15422
- 'type',
15423
- 'drag.drop' | 'paste'
15424
- >,
15425
- 'dataTransfer'
14854
+ originEvent: PickFromUnion_2<
14855
+ NativeBehaviorEvent,
14856
+ 'type',
14857
+ 'drag.drop' | 'clipboard.paste'
15426
14858
  >
15427
14859
  })
15428
14860
  | {
15429
14861
  type: 'serialization.success'
15430
14862
  mimeType: MIMEType_2
15431
14863
  data: string
15432
- dataTransfer: DataTransfer
15433
- originEvent: Omit<
15434
- PickFromUnion_2<
15435
- NativeBehaviorEvent,
15436
- 'type',
15437
- 'copy' | 'cut' | 'drag.dragstart'
15438
- >,
15439
- 'dataTransfer'
14864
+ originEvent: PickFromUnion_2<
14865
+ NativeBehaviorEvent,
14866
+ 'type',
14867
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
15440
14868
  >
15441
14869
  }
15442
14870
  | {
15443
14871
  type: 'serialization.failure'
15444
14872
  mimeType: MIMEType_2
15445
14873
  reason: string
15446
- dataTransfer: DataTransfer
15447
- originEvent: Omit<
15448
- PickFromUnion_2<
15449
- NativeBehaviorEvent,
15450
- 'type',
15451
- 'copy' | 'cut' | 'drag.dragstart'
15452
- >,
15453
- 'dataTransfer'
14874
+ originEvent: PickFromUnion_2<
14875
+ NativeBehaviorEvent,
14876
+ 'type',
14877
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
15454
14878
  >
15455
14879
  }
15456
14880
  | PatchEvent
@@ -15728,14 +15152,10 @@ declare const editorMachine: StateMachine<
15728
15152
  mimeType: `${string}/${string}`
15729
15153
  reason: string
15730
15154
  } & {
15731
- dataTransfer: DataTransfer
15732
- originEvent: Omit<
15733
- PickFromUnion_2<
15734
- NativeBehaviorEvent,
15735
- 'type',
15736
- 'drag.drop' | 'paste'
15737
- >,
15738
- 'dataTransfer'
15155
+ originEvent: PickFromUnion_2<
15156
+ NativeBehaviorEvent,
15157
+ 'type',
15158
+ 'drag.drop' | 'clipboard.paste'
15739
15159
  >
15740
15160
  })
15741
15161
  | ({
@@ -15743,42 +15163,30 @@ declare const editorMachine: StateMachine<
15743
15163
  data: Array<PortableTextBlock>
15744
15164
  mimeType: `${string}/${string}`
15745
15165
  } & {
15746
- dataTransfer: DataTransfer
15747
- originEvent: Omit<
15748
- PickFromUnion_2<
15749
- NativeBehaviorEvent,
15750
- 'type',
15751
- 'drag.drop' | 'paste'
15752
- >,
15753
- 'dataTransfer'
15166
+ originEvent: PickFromUnion_2<
15167
+ NativeBehaviorEvent,
15168
+ 'type',
15169
+ 'drag.drop' | 'clipboard.paste'
15754
15170
  >
15755
15171
  })
15756
15172
  | {
15757
15173
  type: 'serialization.success'
15758
15174
  mimeType: MIMEType_2
15759
15175
  data: string
15760
- dataTransfer: DataTransfer
15761
- originEvent: Omit<
15762
- PickFromUnion_2<
15763
- NativeBehaviorEvent,
15764
- 'type',
15765
- 'copy' | 'cut' | 'drag.dragstart'
15766
- >,
15767
- 'dataTransfer'
15176
+ originEvent: PickFromUnion_2<
15177
+ NativeBehaviorEvent,
15178
+ 'type',
15179
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
15768
15180
  >
15769
15181
  }
15770
15182
  | {
15771
15183
  type: 'serialization.failure'
15772
15184
  mimeType: MIMEType_2
15773
15185
  reason: string
15774
- dataTransfer: DataTransfer
15775
- originEvent: Omit<
15776
- PickFromUnion_2<
15777
- NativeBehaviorEvent,
15778
- 'type',
15779
- 'copy' | 'cut' | 'drag.dragstart'
15780
- >,
15781
- 'dataTransfer'
15186
+ originEvent: PickFromUnion_2<
15187
+ NativeBehaviorEvent,
15188
+ 'type',
15189
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
15782
15190
  >
15783
15191
  }
15784
15192
  | InternalPatchEvent
@@ -16120,14 +15528,10 @@ declare const editorMachine: StateMachine<
16120
15528
  mimeType: `${string}/${string}`
16121
15529
  reason: string
16122
15530
  } & {
16123
- dataTransfer: DataTransfer
16124
- originEvent: Omit<
16125
- PickFromUnion_2<
16126
- NativeBehaviorEvent,
16127
- 'type',
16128
- 'drag.drop' | 'paste'
16129
- >,
16130
- 'dataTransfer'
15531
+ originEvent: PickFromUnion_2<
15532
+ NativeBehaviorEvent,
15533
+ 'type',
15534
+ 'drag.drop' | 'clipboard.paste'
16131
15535
  >
16132
15536
  })
16133
15537
  | ({
@@ -16135,42 +15539,30 @@ declare const editorMachine: StateMachine<
16135
15539
  data: Array<PortableTextBlock>
16136
15540
  mimeType: `${string}/${string}`
16137
15541
  } & {
16138
- dataTransfer: DataTransfer
16139
- originEvent: Omit<
16140
- PickFromUnion_2<
16141
- NativeBehaviorEvent,
16142
- 'type',
16143
- 'drag.drop' | 'paste'
16144
- >,
16145
- 'dataTransfer'
15542
+ originEvent: PickFromUnion_2<
15543
+ NativeBehaviorEvent,
15544
+ 'type',
15545
+ 'drag.drop' | 'clipboard.paste'
16146
15546
  >
16147
15547
  })
16148
15548
  | {
16149
15549
  type: 'serialization.success'
16150
15550
  mimeType: MIMEType_2
16151
15551
  data: string
16152
- dataTransfer: DataTransfer
16153
- originEvent: Omit<
16154
- PickFromUnion_2<
16155
- NativeBehaviorEvent,
16156
- 'type',
16157
- 'copy' | 'cut' | 'drag.dragstart'
16158
- >,
16159
- 'dataTransfer'
15552
+ originEvent: PickFromUnion_2<
15553
+ NativeBehaviorEvent,
15554
+ 'type',
15555
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
16160
15556
  >
16161
15557
  }
16162
15558
  | {
16163
15559
  type: 'serialization.failure'
16164
15560
  mimeType: MIMEType_2
16165
15561
  reason: string
16166
- dataTransfer: DataTransfer
16167
- originEvent: Omit<
16168
- PickFromUnion_2<
16169
- NativeBehaviorEvent,
16170
- 'type',
16171
- 'copy' | 'cut' | 'drag.dragstart'
16172
- >,
16173
- 'dataTransfer'
15562
+ originEvent: PickFromUnion_2<
15563
+ NativeBehaviorEvent,
15564
+ 'type',
15565
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
16174
15566
  >
16175
15567
  }
16176
15568
  | PatchEvent
@@ -16451,14 +15843,10 @@ declare const editorMachine: StateMachine<
16451
15843
  mimeType: `${string}/${string}`
16452
15844
  reason: string
16453
15845
  } & {
16454
- dataTransfer: DataTransfer
16455
- originEvent: Omit<
16456
- PickFromUnion_2<
16457
- NativeBehaviorEvent,
16458
- 'type',
16459
- 'drag.drop' | 'paste'
16460
- >,
16461
- 'dataTransfer'
15846
+ originEvent: PickFromUnion_2<
15847
+ NativeBehaviorEvent,
15848
+ 'type',
15849
+ 'drag.drop' | 'clipboard.paste'
16462
15850
  >
16463
15851
  })
16464
15852
  | ({
@@ -16466,42 +15854,30 @@ declare const editorMachine: StateMachine<
16466
15854
  data: Array<PortableTextBlock>
16467
15855
  mimeType: `${string}/${string}`
16468
15856
  } & {
16469
- dataTransfer: DataTransfer
16470
- originEvent: Omit<
16471
- PickFromUnion_2<
16472
- NativeBehaviorEvent,
16473
- 'type',
16474
- 'drag.drop' | 'paste'
16475
- >,
16476
- 'dataTransfer'
15857
+ originEvent: PickFromUnion_2<
15858
+ NativeBehaviorEvent,
15859
+ 'type',
15860
+ 'drag.drop' | 'clipboard.paste'
16477
15861
  >
16478
15862
  })
16479
15863
  | {
16480
15864
  type: 'serialization.success'
16481
15865
  mimeType: MIMEType_2
16482
15866
  data: string
16483
- dataTransfer: DataTransfer
16484
- originEvent: Omit<
16485
- PickFromUnion_2<
16486
- NativeBehaviorEvent,
16487
- 'type',
16488
- 'copy' | 'cut' | 'drag.dragstart'
16489
- >,
16490
- 'dataTransfer'
15867
+ originEvent: PickFromUnion_2<
15868
+ NativeBehaviorEvent,
15869
+ 'type',
15870
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
16491
15871
  >
16492
15872
  }
16493
15873
  | {
16494
15874
  type: 'serialization.failure'
16495
15875
  mimeType: MIMEType_2
16496
15876
  reason: string
16497
- dataTransfer: DataTransfer
16498
- originEvent: Omit<
16499
- PickFromUnion_2<
16500
- NativeBehaviorEvent,
16501
- 'type',
16502
- 'copy' | 'cut' | 'drag.dragstart'
16503
- >,
16504
- 'dataTransfer'
15877
+ originEvent: PickFromUnion_2<
15878
+ NativeBehaviorEvent,
15879
+ 'type',
15880
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
16505
15881
  >
16506
15882
  }
16507
15883
  | InternalPatchEvent
@@ -16843,14 +16219,10 @@ declare const editorMachine: StateMachine<
16843
16219
  mimeType: `${string}/${string}`
16844
16220
  reason: string
16845
16221
  } & {
16846
- dataTransfer: DataTransfer
16847
- originEvent: Omit<
16848
- PickFromUnion_2<
16849
- NativeBehaviorEvent,
16850
- 'type',
16851
- 'drag.drop' | 'paste'
16852
- >,
16853
- 'dataTransfer'
16222
+ originEvent: PickFromUnion_2<
16223
+ NativeBehaviorEvent,
16224
+ 'type',
16225
+ 'drag.drop' | 'clipboard.paste'
16854
16226
  >
16855
16227
  })
16856
16228
  | ({
@@ -16858,42 +16230,30 @@ declare const editorMachine: StateMachine<
16858
16230
  data: Array<PortableTextBlock>
16859
16231
  mimeType: `${string}/${string}`
16860
16232
  } & {
16861
- dataTransfer: DataTransfer
16862
- originEvent: Omit<
16863
- PickFromUnion_2<
16864
- NativeBehaviorEvent,
16865
- 'type',
16866
- 'drag.drop' | 'paste'
16867
- >,
16868
- 'dataTransfer'
16233
+ originEvent: PickFromUnion_2<
16234
+ NativeBehaviorEvent,
16235
+ 'type',
16236
+ 'drag.drop' | 'clipboard.paste'
16869
16237
  >
16870
16238
  })
16871
16239
  | {
16872
16240
  type: 'serialization.success'
16873
16241
  mimeType: MIMEType_2
16874
16242
  data: string
16875
- dataTransfer: DataTransfer
16876
- originEvent: Omit<
16877
- PickFromUnion_2<
16878
- NativeBehaviorEvent,
16879
- 'type',
16880
- 'copy' | 'cut' | 'drag.dragstart'
16881
- >,
16882
- 'dataTransfer'
16243
+ originEvent: PickFromUnion_2<
16244
+ NativeBehaviorEvent,
16245
+ 'type',
16246
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
16883
16247
  >
16884
16248
  }
16885
16249
  | {
16886
16250
  type: 'serialization.failure'
16887
16251
  mimeType: MIMEType_2
16888
16252
  reason: string
16889
- dataTransfer: DataTransfer
16890
- originEvent: Omit<
16891
- PickFromUnion_2<
16892
- NativeBehaviorEvent,
16893
- 'type',
16894
- 'copy' | 'cut' | 'drag.dragstart'
16895
- >,
16896
- 'dataTransfer'
16253
+ originEvent: PickFromUnion_2<
16254
+ NativeBehaviorEvent,
16255
+ 'type',
16256
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
16897
16257
  >
16898
16258
  }
16899
16259
  | PatchEvent
@@ -17227,14 +16587,10 @@ declare const editorMachine: StateMachine<
17227
16587
  mimeType: `${string}/${string}`
17228
16588
  reason: string
17229
16589
  } & {
17230
- dataTransfer: DataTransfer
17231
- originEvent: Omit<
17232
- PickFromUnion_2<
17233
- NativeBehaviorEvent,
17234
- 'type',
17235
- 'drag.drop' | 'paste'
17236
- >,
17237
- 'dataTransfer'
16590
+ originEvent: PickFromUnion_2<
16591
+ NativeBehaviorEvent,
16592
+ 'type',
16593
+ 'drag.drop' | 'clipboard.paste'
17238
16594
  >
17239
16595
  })
17240
16596
  | ({
@@ -17242,42 +16598,30 @@ declare const editorMachine: StateMachine<
17242
16598
  data: Array<PortableTextBlock>
17243
16599
  mimeType: `${string}/${string}`
17244
16600
  } & {
17245
- dataTransfer: DataTransfer
17246
- originEvent: Omit<
17247
- PickFromUnion_2<
17248
- NativeBehaviorEvent,
17249
- 'type',
17250
- 'drag.drop' | 'paste'
17251
- >,
17252
- 'dataTransfer'
16601
+ originEvent: PickFromUnion_2<
16602
+ NativeBehaviorEvent,
16603
+ 'type',
16604
+ 'drag.drop' | 'clipboard.paste'
17253
16605
  >
17254
16606
  })
17255
16607
  | {
17256
16608
  type: 'serialization.success'
17257
16609
  mimeType: MIMEType_2
17258
16610
  data: string
17259
- dataTransfer: DataTransfer
17260
- originEvent: Omit<
17261
- PickFromUnion_2<
17262
- NativeBehaviorEvent,
17263
- 'type',
17264
- 'copy' | 'cut' | 'drag.dragstart'
17265
- >,
17266
- 'dataTransfer'
16611
+ originEvent: PickFromUnion_2<
16612
+ NativeBehaviorEvent,
16613
+ 'type',
16614
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
17267
16615
  >
17268
16616
  }
17269
16617
  | {
17270
16618
  type: 'serialization.failure'
17271
16619
  mimeType: MIMEType_2
17272
16620
  reason: string
17273
- dataTransfer: DataTransfer
17274
- originEvent: Omit<
17275
- PickFromUnion_2<
17276
- NativeBehaviorEvent,
17277
- 'type',
17278
- 'copy' | 'cut' | 'drag.dragstart'
17279
- >,
17280
- 'dataTransfer'
16621
+ originEvent: PickFromUnion_2<
16622
+ NativeBehaviorEvent,
16623
+ 'type',
16624
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
17281
16625
  >
17282
16626
  }
17283
16627
  | InternalPatchEvent
@@ -17619,14 +16963,10 @@ declare const editorMachine: StateMachine<
17619
16963
  mimeType: `${string}/${string}`
17620
16964
  reason: string
17621
16965
  } & {
17622
- dataTransfer: DataTransfer
17623
- originEvent: Omit<
17624
- PickFromUnion_2<
17625
- NativeBehaviorEvent,
17626
- 'type',
17627
- 'drag.drop' | 'paste'
17628
- >,
17629
- 'dataTransfer'
16966
+ originEvent: PickFromUnion_2<
16967
+ NativeBehaviorEvent,
16968
+ 'type',
16969
+ 'drag.drop' | 'clipboard.paste'
17630
16970
  >
17631
16971
  })
17632
16972
  | ({
@@ -17634,42 +16974,30 @@ declare const editorMachine: StateMachine<
17634
16974
  data: Array<PortableTextBlock>
17635
16975
  mimeType: `${string}/${string}`
17636
16976
  } & {
17637
- dataTransfer: DataTransfer
17638
- originEvent: Omit<
17639
- PickFromUnion_2<
17640
- NativeBehaviorEvent,
17641
- 'type',
17642
- 'drag.drop' | 'paste'
17643
- >,
17644
- 'dataTransfer'
16977
+ originEvent: PickFromUnion_2<
16978
+ NativeBehaviorEvent,
16979
+ 'type',
16980
+ 'drag.drop' | 'clipboard.paste'
17645
16981
  >
17646
16982
  })
17647
16983
  | {
17648
16984
  type: 'serialization.success'
17649
16985
  mimeType: MIMEType_2
17650
16986
  data: string
17651
- dataTransfer: DataTransfer
17652
- originEvent: Omit<
17653
- PickFromUnion_2<
17654
- NativeBehaviorEvent,
17655
- 'type',
17656
- 'copy' | 'cut' | 'drag.dragstart'
17657
- >,
17658
- 'dataTransfer'
16987
+ originEvent: PickFromUnion_2<
16988
+ NativeBehaviorEvent,
16989
+ 'type',
16990
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
17659
16991
  >
17660
16992
  }
17661
16993
  | {
17662
16994
  type: 'serialization.failure'
17663
16995
  mimeType: MIMEType_2
17664
16996
  reason: string
17665
- dataTransfer: DataTransfer
17666
- originEvent: Omit<
17667
- PickFromUnion_2<
17668
- NativeBehaviorEvent,
17669
- 'type',
17670
- 'copy' | 'cut' | 'drag.dragstart'
17671
- >,
17672
- 'dataTransfer'
16997
+ originEvent: PickFromUnion_2<
16998
+ NativeBehaviorEvent,
16999
+ 'type',
17000
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
17673
17001
  >
17674
17002
  }
17675
17003
  | PatchEvent
@@ -17956,14 +17284,10 @@ declare const editorMachine: StateMachine<
17956
17284
  mimeType: `${string}/${string}`
17957
17285
  reason: string
17958
17286
  } & {
17959
- dataTransfer: DataTransfer
17960
- originEvent: Omit<
17961
- PickFromUnion_2<
17962
- NativeBehaviorEvent,
17963
- 'type',
17964
- 'drag.drop' | 'paste'
17965
- >,
17966
- 'dataTransfer'
17287
+ originEvent: PickFromUnion_2<
17288
+ NativeBehaviorEvent,
17289
+ 'type',
17290
+ 'drag.drop' | 'clipboard.paste'
17967
17291
  >
17968
17292
  })
17969
17293
  | ({
@@ -17971,42 +17295,30 @@ declare const editorMachine: StateMachine<
17971
17295
  data: Array<PortableTextBlock>
17972
17296
  mimeType: `${string}/${string}`
17973
17297
  } & {
17974
- dataTransfer: DataTransfer
17975
- originEvent: Omit<
17976
- PickFromUnion_2<
17977
- NativeBehaviorEvent,
17978
- 'type',
17979
- 'drag.drop' | 'paste'
17980
- >,
17981
- 'dataTransfer'
17298
+ originEvent: PickFromUnion_2<
17299
+ NativeBehaviorEvent,
17300
+ 'type',
17301
+ 'drag.drop' | 'clipboard.paste'
17982
17302
  >
17983
17303
  })
17984
17304
  | {
17985
17305
  type: 'serialization.success'
17986
17306
  mimeType: MIMEType_2
17987
17307
  data: string
17988
- dataTransfer: DataTransfer
17989
- originEvent: Omit<
17990
- PickFromUnion_2<
17991
- NativeBehaviorEvent,
17992
- 'type',
17993
- 'copy' | 'cut' | 'drag.dragstart'
17994
- >,
17995
- 'dataTransfer'
17308
+ originEvent: PickFromUnion_2<
17309
+ NativeBehaviorEvent,
17310
+ 'type',
17311
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
17996
17312
  >
17997
17313
  }
17998
17314
  | {
17999
17315
  type: 'serialization.failure'
18000
17316
  mimeType: MIMEType_2
18001
17317
  reason: string
18002
- dataTransfer: DataTransfer
18003
- originEvent: Omit<
18004
- PickFromUnion_2<
18005
- NativeBehaviorEvent,
18006
- 'type',
18007
- 'copy' | 'cut' | 'drag.dragstart'
18008
- >,
18009
- 'dataTransfer'
17318
+ originEvent: PickFromUnion_2<
17319
+ NativeBehaviorEvent,
17320
+ 'type',
17321
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
18010
17322
  >
18011
17323
  }
18012
17324
  | InternalPatchEvent
@@ -18348,14 +17660,10 @@ declare const editorMachine: StateMachine<
18348
17660
  mimeType: `${string}/${string}`
18349
17661
  reason: string
18350
17662
  } & {
18351
- dataTransfer: DataTransfer
18352
- originEvent: Omit<
18353
- PickFromUnion_2<
18354
- NativeBehaviorEvent,
18355
- 'type',
18356
- 'drag.drop' | 'paste'
18357
- >,
18358
- 'dataTransfer'
17663
+ originEvent: PickFromUnion_2<
17664
+ NativeBehaviorEvent,
17665
+ 'type',
17666
+ 'drag.drop' | 'clipboard.paste'
18359
17667
  >
18360
17668
  })
18361
17669
  | ({
@@ -18363,42 +17671,30 @@ declare const editorMachine: StateMachine<
18363
17671
  data: Array<PortableTextBlock>
18364
17672
  mimeType: `${string}/${string}`
18365
17673
  } & {
18366
- dataTransfer: DataTransfer
18367
- originEvent: Omit<
18368
- PickFromUnion_2<
18369
- NativeBehaviorEvent,
18370
- 'type',
18371
- 'drag.drop' | 'paste'
18372
- >,
18373
- 'dataTransfer'
17674
+ originEvent: PickFromUnion_2<
17675
+ NativeBehaviorEvent,
17676
+ 'type',
17677
+ 'drag.drop' | 'clipboard.paste'
18374
17678
  >
18375
17679
  })
18376
17680
  | {
18377
17681
  type: 'serialization.success'
18378
17682
  mimeType: MIMEType_2
18379
17683
  data: string
18380
- dataTransfer: DataTransfer
18381
- originEvent: Omit<
18382
- PickFromUnion_2<
18383
- NativeBehaviorEvent,
18384
- 'type',
18385
- 'copy' | 'cut' | 'drag.dragstart'
18386
- >,
18387
- 'dataTransfer'
17684
+ originEvent: PickFromUnion_2<
17685
+ NativeBehaviorEvent,
17686
+ 'type',
17687
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
18388
17688
  >
18389
17689
  }
18390
17690
  | {
18391
17691
  type: 'serialization.failure'
18392
17692
  mimeType: MIMEType_2
18393
17693
  reason: string
18394
- dataTransfer: DataTransfer
18395
- originEvent: Omit<
18396
- PickFromUnion_2<
18397
- NativeBehaviorEvent,
18398
- 'type',
18399
- 'copy' | 'cut' | 'drag.dragstart'
18400
- >,
18401
- 'dataTransfer'
17694
+ originEvent: PickFromUnion_2<
17695
+ NativeBehaviorEvent,
17696
+ 'type',
17697
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
18402
17698
  >
18403
17699
  }
18404
17700
  | PatchEvent
@@ -18686,14 +17982,10 @@ declare const editorMachine: StateMachine<
18686
17982
  mimeType: `${string}/${string}`
18687
17983
  reason: string
18688
17984
  } & {
18689
- dataTransfer: DataTransfer
18690
- originEvent: Omit<
18691
- PickFromUnion_2<
18692
- NativeBehaviorEvent,
18693
- 'type',
18694
- 'drag.drop' | 'paste'
18695
- >,
18696
- 'dataTransfer'
17985
+ originEvent: PickFromUnion_2<
17986
+ NativeBehaviorEvent,
17987
+ 'type',
17988
+ 'drag.drop' | 'clipboard.paste'
18697
17989
  >
18698
17990
  })
18699
17991
  | ({
@@ -18701,42 +17993,30 @@ declare const editorMachine: StateMachine<
18701
17993
  data: Array<PortableTextBlock>
18702
17994
  mimeType: `${string}/${string}`
18703
17995
  } & {
18704
- dataTransfer: DataTransfer
18705
- originEvent: Omit<
18706
- PickFromUnion_2<
18707
- NativeBehaviorEvent,
18708
- 'type',
18709
- 'drag.drop' | 'paste'
18710
- >,
18711
- 'dataTransfer'
17996
+ originEvent: PickFromUnion_2<
17997
+ NativeBehaviorEvent,
17998
+ 'type',
17999
+ 'drag.drop' | 'clipboard.paste'
18712
18000
  >
18713
18001
  })
18714
18002
  | {
18715
18003
  type: 'serialization.success'
18716
18004
  mimeType: MIMEType_2
18717
18005
  data: string
18718
- dataTransfer: DataTransfer
18719
- originEvent: Omit<
18720
- PickFromUnion_2<
18721
- NativeBehaviorEvent,
18722
- 'type',
18723
- 'copy' | 'cut' | 'drag.dragstart'
18724
- >,
18725
- 'dataTransfer'
18006
+ originEvent: PickFromUnion_2<
18007
+ NativeBehaviorEvent,
18008
+ 'type',
18009
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
18726
18010
  >
18727
18011
  }
18728
18012
  | {
18729
18013
  type: 'serialization.failure'
18730
18014
  mimeType: MIMEType_2
18731
18015
  reason: string
18732
- dataTransfer: DataTransfer
18733
- originEvent: Omit<
18734
- PickFromUnion_2<
18735
- NativeBehaviorEvent,
18736
- 'type',
18737
- 'copy' | 'cut' | 'drag.dragstart'
18738
- >,
18739
- 'dataTransfer'
18016
+ originEvent: PickFromUnion_2<
18017
+ NativeBehaviorEvent,
18018
+ 'type',
18019
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
18740
18020
  >
18741
18021
  }
18742
18022
  | InternalPatchEvent
@@ -19078,14 +18358,10 @@ declare const editorMachine: StateMachine<
19078
18358
  mimeType: `${string}/${string}`
19079
18359
  reason: string
19080
18360
  } & {
19081
- dataTransfer: DataTransfer
19082
- originEvent: Omit<
19083
- PickFromUnion_2<
19084
- NativeBehaviorEvent,
19085
- 'type',
19086
- 'drag.drop' | 'paste'
19087
- >,
19088
- 'dataTransfer'
18361
+ originEvent: PickFromUnion_2<
18362
+ NativeBehaviorEvent,
18363
+ 'type',
18364
+ 'drag.drop' | 'clipboard.paste'
19089
18365
  >
19090
18366
  })
19091
18367
  | ({
@@ -19093,42 +18369,30 @@ declare const editorMachine: StateMachine<
19093
18369
  data: Array<PortableTextBlock>
19094
18370
  mimeType: `${string}/${string}`
19095
18371
  } & {
19096
- dataTransfer: DataTransfer
19097
- originEvent: Omit<
19098
- PickFromUnion_2<
19099
- NativeBehaviorEvent,
19100
- 'type',
19101
- 'drag.drop' | 'paste'
19102
- >,
19103
- 'dataTransfer'
18372
+ originEvent: PickFromUnion_2<
18373
+ NativeBehaviorEvent,
18374
+ 'type',
18375
+ 'drag.drop' | 'clipboard.paste'
19104
18376
  >
19105
18377
  })
19106
18378
  | {
19107
18379
  type: 'serialization.success'
19108
18380
  mimeType: MIMEType_2
19109
18381
  data: string
19110
- dataTransfer: DataTransfer
19111
- originEvent: Omit<
19112
- PickFromUnion_2<
19113
- NativeBehaviorEvent,
19114
- 'type',
19115
- 'copy' | 'cut' | 'drag.dragstart'
19116
- >,
19117
- 'dataTransfer'
18382
+ originEvent: PickFromUnion_2<
18383
+ NativeBehaviorEvent,
18384
+ 'type',
18385
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
19118
18386
  >
19119
18387
  }
19120
18388
  | {
19121
18389
  type: 'serialization.failure'
19122
18390
  mimeType: MIMEType_2
19123
18391
  reason: string
19124
- dataTransfer: DataTransfer
19125
- originEvent: Omit<
19126
- PickFromUnion_2<
19127
- NativeBehaviorEvent,
19128
- 'type',
19129
- 'copy' | 'cut' | 'drag.dragstart'
19130
- >,
19131
- 'dataTransfer'
18392
+ originEvent: PickFromUnion_2<
18393
+ NativeBehaviorEvent,
18394
+ 'type',
18395
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
19132
18396
  >
19133
18397
  }
19134
18398
  | PatchEvent
@@ -19407,14 +18671,10 @@ declare const editorMachine: StateMachine<
19407
18671
  mimeType: `${string}/${string}`
19408
18672
  reason: string
19409
18673
  } & {
19410
- dataTransfer: DataTransfer
19411
- originEvent: Omit<
19412
- PickFromUnion_2<
19413
- NativeBehaviorEvent,
19414
- 'type',
19415
- 'drag.drop' | 'paste'
19416
- >,
19417
- 'dataTransfer'
18674
+ originEvent: PickFromUnion_2<
18675
+ NativeBehaviorEvent,
18676
+ 'type',
18677
+ 'drag.drop' | 'clipboard.paste'
19418
18678
  >
19419
18679
  })
19420
18680
  | ({
@@ -19422,42 +18682,30 @@ declare const editorMachine: StateMachine<
19422
18682
  data: Array<PortableTextBlock>
19423
18683
  mimeType: `${string}/${string}`
19424
18684
  } & {
19425
- dataTransfer: DataTransfer
19426
- originEvent: Omit<
19427
- PickFromUnion_2<
19428
- NativeBehaviorEvent,
19429
- 'type',
19430
- 'drag.drop' | 'paste'
19431
- >,
19432
- 'dataTransfer'
18685
+ originEvent: PickFromUnion_2<
18686
+ NativeBehaviorEvent,
18687
+ 'type',
18688
+ 'drag.drop' | 'clipboard.paste'
19433
18689
  >
19434
18690
  })
19435
18691
  | {
19436
18692
  type: 'serialization.success'
19437
18693
  mimeType: MIMEType_2
19438
18694
  data: string
19439
- dataTransfer: DataTransfer
19440
- originEvent: Omit<
19441
- PickFromUnion_2<
19442
- NativeBehaviorEvent,
19443
- 'type',
19444
- 'copy' | 'cut' | 'drag.dragstart'
19445
- >,
19446
- 'dataTransfer'
18695
+ originEvent: PickFromUnion_2<
18696
+ NativeBehaviorEvent,
18697
+ 'type',
18698
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
19447
18699
  >
19448
18700
  }
19449
18701
  | {
19450
18702
  type: 'serialization.failure'
19451
18703
  mimeType: MIMEType_2
19452
18704
  reason: string
19453
- dataTransfer: DataTransfer
19454
- originEvent: Omit<
19455
- PickFromUnion_2<
19456
- NativeBehaviorEvent,
19457
- 'type',
19458
- 'copy' | 'cut' | 'drag.dragstart'
19459
- >,
19460
- 'dataTransfer'
18705
+ originEvent: PickFromUnion_2<
18706
+ NativeBehaviorEvent,
18707
+ 'type',
18708
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
19461
18709
  >
19462
18710
  }
19463
18711
  | InternalPatchEvent
@@ -19799,14 +19047,10 @@ declare const editorMachine: StateMachine<
19799
19047
  mimeType: `${string}/${string}`
19800
19048
  reason: string
19801
19049
  } & {
19802
- dataTransfer: DataTransfer
19803
- originEvent: Omit<
19804
- PickFromUnion_2<
19805
- NativeBehaviorEvent,
19806
- 'type',
19807
- 'drag.drop' | 'paste'
19808
- >,
19809
- 'dataTransfer'
19050
+ originEvent: PickFromUnion_2<
19051
+ NativeBehaviorEvent,
19052
+ 'type',
19053
+ 'drag.drop' | 'clipboard.paste'
19810
19054
  >
19811
19055
  })
19812
19056
  | ({
@@ -19814,42 +19058,30 @@ declare const editorMachine: StateMachine<
19814
19058
  data: Array<PortableTextBlock>
19815
19059
  mimeType: `${string}/${string}`
19816
19060
  } & {
19817
- dataTransfer: DataTransfer
19818
- originEvent: Omit<
19819
- PickFromUnion_2<
19820
- NativeBehaviorEvent,
19821
- 'type',
19822
- 'drag.drop' | 'paste'
19823
- >,
19824
- 'dataTransfer'
19061
+ originEvent: PickFromUnion_2<
19062
+ NativeBehaviorEvent,
19063
+ 'type',
19064
+ 'drag.drop' | 'clipboard.paste'
19825
19065
  >
19826
19066
  })
19827
19067
  | {
19828
19068
  type: 'serialization.success'
19829
19069
  mimeType: MIMEType_2
19830
19070
  data: string
19831
- dataTransfer: DataTransfer
19832
- originEvent: Omit<
19833
- PickFromUnion_2<
19834
- NativeBehaviorEvent,
19835
- 'type',
19836
- 'copy' | 'cut' | 'drag.dragstart'
19837
- >,
19838
- 'dataTransfer'
19071
+ originEvent: PickFromUnion_2<
19072
+ NativeBehaviorEvent,
19073
+ 'type',
19074
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
19839
19075
  >
19840
19076
  }
19841
19077
  | {
19842
19078
  type: 'serialization.failure'
19843
19079
  mimeType: MIMEType_2
19844
19080
  reason: string
19845
- dataTransfer: DataTransfer
19846
- originEvent: Omit<
19847
- PickFromUnion_2<
19848
- NativeBehaviorEvent,
19849
- 'type',
19850
- 'copy' | 'cut' | 'drag.dragstart'
19851
- >,
19852
- 'dataTransfer'
19081
+ originEvent: PickFromUnion_2<
19082
+ NativeBehaviorEvent,
19083
+ 'type',
19084
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
19853
19085
  >
19854
19086
  }
19855
19087
  | PatchEvent
@@ -20132,14 +19364,10 @@ declare const editorMachine: StateMachine<
20132
19364
  mimeType: `${string}/${string}`
20133
19365
  reason: string
20134
19366
  } & {
20135
- dataTransfer: DataTransfer
20136
- originEvent: Omit<
20137
- PickFromUnion_2<
20138
- NativeBehaviorEvent,
20139
- 'type',
20140
- 'drag.drop' | 'paste'
20141
- >,
20142
- 'dataTransfer'
19367
+ originEvent: PickFromUnion_2<
19368
+ NativeBehaviorEvent,
19369
+ 'type',
19370
+ 'drag.drop' | 'clipboard.paste'
20143
19371
  >
20144
19372
  })
20145
19373
  | ({
@@ -20147,42 +19375,30 @@ declare const editorMachine: StateMachine<
20147
19375
  data: Array<PortableTextBlock>
20148
19376
  mimeType: `${string}/${string}`
20149
19377
  } & {
20150
- dataTransfer: DataTransfer
20151
- originEvent: Omit<
20152
- PickFromUnion_2<
20153
- NativeBehaviorEvent,
20154
- 'type',
20155
- 'drag.drop' | 'paste'
20156
- >,
20157
- 'dataTransfer'
19378
+ originEvent: PickFromUnion_2<
19379
+ NativeBehaviorEvent,
19380
+ 'type',
19381
+ 'drag.drop' | 'clipboard.paste'
20158
19382
  >
20159
19383
  })
20160
19384
  | {
20161
19385
  type: 'serialization.success'
20162
19386
  mimeType: MIMEType_2
20163
19387
  data: string
20164
- dataTransfer: DataTransfer
20165
- originEvent: Omit<
20166
- PickFromUnion_2<
20167
- NativeBehaviorEvent,
20168
- 'type',
20169
- 'copy' | 'cut' | 'drag.dragstart'
20170
- >,
20171
- 'dataTransfer'
19388
+ originEvent: PickFromUnion_2<
19389
+ NativeBehaviorEvent,
19390
+ 'type',
19391
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
20172
19392
  >
20173
19393
  }
20174
19394
  | {
20175
19395
  type: 'serialization.failure'
20176
19396
  mimeType: MIMEType_2
20177
19397
  reason: string
20178
- dataTransfer: DataTransfer
20179
- originEvent: Omit<
20180
- PickFromUnion_2<
20181
- NativeBehaviorEvent,
20182
- 'type',
20183
- 'copy' | 'cut' | 'drag.dragstart'
20184
- >,
20185
- 'dataTransfer'
19398
+ originEvent: PickFromUnion_2<
19399
+ NativeBehaviorEvent,
19400
+ 'type',
19401
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
20186
19402
  >
20187
19403
  }
20188
19404
  | InternalPatchEvent
@@ -20524,14 +19740,10 @@ declare const editorMachine: StateMachine<
20524
19740
  mimeType: `${string}/${string}`
20525
19741
  reason: string
20526
19742
  } & {
20527
- dataTransfer: DataTransfer
20528
- originEvent: Omit<
20529
- PickFromUnion_2<
20530
- NativeBehaviorEvent,
20531
- 'type',
20532
- 'drag.drop' | 'paste'
20533
- >,
20534
- 'dataTransfer'
19743
+ originEvent: PickFromUnion_2<
19744
+ NativeBehaviorEvent,
19745
+ 'type',
19746
+ 'drag.drop' | 'clipboard.paste'
20535
19747
  >
20536
19748
  })
20537
19749
  | ({
@@ -20539,42 +19751,30 @@ declare const editorMachine: StateMachine<
20539
19751
  data: Array<PortableTextBlock>
20540
19752
  mimeType: `${string}/${string}`
20541
19753
  } & {
20542
- dataTransfer: DataTransfer
20543
- originEvent: Omit<
20544
- PickFromUnion_2<
20545
- NativeBehaviorEvent,
20546
- 'type',
20547
- 'drag.drop' | 'paste'
20548
- >,
20549
- 'dataTransfer'
19754
+ originEvent: PickFromUnion_2<
19755
+ NativeBehaviorEvent,
19756
+ 'type',
19757
+ 'drag.drop' | 'clipboard.paste'
20550
19758
  >
20551
19759
  })
20552
19760
  | {
20553
19761
  type: 'serialization.success'
20554
19762
  mimeType: MIMEType_2
20555
19763
  data: string
20556
- dataTransfer: DataTransfer
20557
- originEvent: Omit<
20558
- PickFromUnion_2<
20559
- NativeBehaviorEvent,
20560
- 'type',
20561
- 'copy' | 'cut' | 'drag.dragstart'
20562
- >,
20563
- 'dataTransfer'
19764
+ originEvent: PickFromUnion_2<
19765
+ NativeBehaviorEvent,
19766
+ 'type',
19767
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
20564
19768
  >
20565
19769
  }
20566
19770
  | {
20567
19771
  type: 'serialization.failure'
20568
19772
  mimeType: MIMEType_2
20569
19773
  reason: string
20570
- dataTransfer: DataTransfer
20571
- originEvent: Omit<
20572
- PickFromUnion_2<
20573
- NativeBehaviorEvent,
20574
- 'type',
20575
- 'copy' | 'cut' | 'drag.dragstart'
20576
- >,
20577
- 'dataTransfer'
19774
+ originEvent: PickFromUnion_2<
19775
+ NativeBehaviorEvent,
19776
+ 'type',
19777
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
20578
19778
  >
20579
19779
  }
20580
19780
  | PatchEvent
@@ -20861,14 +20061,10 @@ declare const editorMachine: StateMachine<
20861
20061
  mimeType: `${string}/${string}`
20862
20062
  reason: string
20863
20063
  } & {
20864
- dataTransfer: DataTransfer
20865
- originEvent: Omit<
20866
- PickFromUnion_2<
20867
- NativeBehaviorEvent,
20868
- 'type',
20869
- 'drag.drop' | 'paste'
20870
- >,
20871
- 'dataTransfer'
20064
+ originEvent: PickFromUnion_2<
20065
+ NativeBehaviorEvent,
20066
+ 'type',
20067
+ 'drag.drop' | 'clipboard.paste'
20872
20068
  >
20873
20069
  })
20874
20070
  | ({
@@ -20876,42 +20072,30 @@ declare const editorMachine: StateMachine<
20876
20072
  data: Array<PortableTextBlock>
20877
20073
  mimeType: `${string}/${string}`
20878
20074
  } & {
20879
- dataTransfer: DataTransfer
20880
- originEvent: Omit<
20881
- PickFromUnion_2<
20882
- NativeBehaviorEvent,
20883
- 'type',
20884
- 'drag.drop' | 'paste'
20885
- >,
20886
- 'dataTransfer'
20075
+ originEvent: PickFromUnion_2<
20076
+ NativeBehaviorEvent,
20077
+ 'type',
20078
+ 'drag.drop' | 'clipboard.paste'
20887
20079
  >
20888
20080
  })
20889
20081
  | {
20890
20082
  type: 'serialization.success'
20891
20083
  mimeType: MIMEType_2
20892
20084
  data: string
20893
- dataTransfer: DataTransfer
20894
- originEvent: Omit<
20895
- PickFromUnion_2<
20896
- NativeBehaviorEvent,
20897
- 'type',
20898
- 'copy' | 'cut' | 'drag.dragstart'
20899
- >,
20900
- 'dataTransfer'
20085
+ originEvent: PickFromUnion_2<
20086
+ NativeBehaviorEvent,
20087
+ 'type',
20088
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
20901
20089
  >
20902
20090
  }
20903
20091
  | {
20904
20092
  type: 'serialization.failure'
20905
20093
  mimeType: MIMEType_2
20906
20094
  reason: string
20907
- dataTransfer: DataTransfer
20908
- originEvent: Omit<
20909
- PickFromUnion_2<
20910
- NativeBehaviorEvent,
20911
- 'type',
20912
- 'copy' | 'cut' | 'drag.dragstart'
20913
- >,
20914
- 'dataTransfer'
20095
+ originEvent: PickFromUnion_2<
20096
+ NativeBehaviorEvent,
20097
+ 'type',
20098
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
20915
20099
  >
20916
20100
  }
20917
20101
  | InternalPatchEvent
@@ -21253,14 +20437,10 @@ declare const editorMachine: StateMachine<
21253
20437
  mimeType: `${string}/${string}`
21254
20438
  reason: string
21255
20439
  } & {
21256
- dataTransfer: DataTransfer
21257
- originEvent: Omit<
21258
- PickFromUnion_2<
21259
- NativeBehaviorEvent,
21260
- 'type',
21261
- 'drag.drop' | 'paste'
21262
- >,
21263
- 'dataTransfer'
20440
+ originEvent: PickFromUnion_2<
20441
+ NativeBehaviorEvent,
20442
+ 'type',
20443
+ 'drag.drop' | 'clipboard.paste'
21264
20444
  >
21265
20445
  })
21266
20446
  | ({
@@ -21268,42 +20448,30 @@ declare const editorMachine: StateMachine<
21268
20448
  data: Array<PortableTextBlock>
21269
20449
  mimeType: `${string}/${string}`
21270
20450
  } & {
21271
- dataTransfer: DataTransfer
21272
- originEvent: Omit<
21273
- PickFromUnion_2<
21274
- NativeBehaviorEvent,
21275
- 'type',
21276
- 'drag.drop' | 'paste'
21277
- >,
21278
- 'dataTransfer'
20451
+ originEvent: PickFromUnion_2<
20452
+ NativeBehaviorEvent,
20453
+ 'type',
20454
+ 'drag.drop' | 'clipboard.paste'
21279
20455
  >
21280
20456
  })
21281
20457
  | {
21282
20458
  type: 'serialization.success'
21283
20459
  mimeType: MIMEType_2
21284
20460
  data: string
21285
- dataTransfer: DataTransfer
21286
- originEvent: Omit<
21287
- PickFromUnion_2<
21288
- NativeBehaviorEvent,
21289
- 'type',
21290
- 'copy' | 'cut' | 'drag.dragstart'
21291
- >,
21292
- 'dataTransfer'
20461
+ originEvent: PickFromUnion_2<
20462
+ NativeBehaviorEvent,
20463
+ 'type',
20464
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
21293
20465
  >
21294
20466
  }
21295
20467
  | {
21296
20468
  type: 'serialization.failure'
21297
20469
  mimeType: MIMEType_2
21298
20470
  reason: string
21299
- dataTransfer: DataTransfer
21300
- originEvent: Omit<
21301
- PickFromUnion_2<
21302
- NativeBehaviorEvent,
21303
- 'type',
21304
- 'copy' | 'cut' | 'drag.dragstart'
21305
- >,
21306
- 'dataTransfer'
20471
+ originEvent: PickFromUnion_2<
20472
+ NativeBehaviorEvent,
20473
+ 'type',
20474
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
21307
20475
  >
21308
20476
  }
21309
20477
  | PatchEvent
@@ -21604,14 +20772,10 @@ declare const editorMachine: StateMachine<
21604
20772
  mimeType: `${string}/${string}`
21605
20773
  reason: string
21606
20774
  } & {
21607
- dataTransfer: DataTransfer
21608
- originEvent: Omit<
21609
- PickFromUnion_2<
21610
- NativeBehaviorEvent,
21611
- 'type',
21612
- 'drag.drop' | 'paste'
21613
- >,
21614
- 'dataTransfer'
20775
+ originEvent: PickFromUnion_2<
20776
+ NativeBehaviorEvent,
20777
+ 'type',
20778
+ 'drag.drop' | 'clipboard.paste'
21615
20779
  >
21616
20780
  })
21617
20781
  | ({
@@ -21619,42 +20783,34 @@ declare const editorMachine: StateMachine<
21619
20783
  data: Array<PortableTextBlock>
21620
20784
  mimeType: `${string}/${string}`
21621
20785
  } & {
21622
- dataTransfer: DataTransfer
21623
- originEvent: Omit<
21624
- PickFromUnion_2<
21625
- NativeBehaviorEvent,
21626
- 'type',
21627
- 'drag.drop' | 'paste'
21628
- >,
21629
- 'dataTransfer'
20786
+ originEvent: PickFromUnion_2<
20787
+ NativeBehaviorEvent,
20788
+ 'type',
20789
+ 'drag.drop' | 'clipboard.paste'
21630
20790
  >
21631
20791
  })
21632
20792
  | {
21633
20793
  type: 'serialization.success'
21634
20794
  mimeType: MIMEType_2
21635
20795
  data: string
21636
- dataTransfer: DataTransfer
21637
- originEvent: Omit<
21638
- PickFromUnion_2<
21639
- NativeBehaviorEvent,
21640
- 'type',
21641
- 'copy' | 'cut' | 'drag.dragstart'
21642
- >,
21643
- 'dataTransfer'
20796
+ originEvent: PickFromUnion_2<
20797
+ NativeBehaviorEvent,
20798
+ 'type',
20799
+ | 'clipboard.copy'
20800
+ | 'clipboard.cut'
20801
+ | 'drag.dragstart'
21644
20802
  >
21645
20803
  }
21646
20804
  | {
21647
20805
  type: 'serialization.failure'
21648
20806
  mimeType: MIMEType_2
21649
20807
  reason: string
21650
- dataTransfer: DataTransfer
21651
- originEvent: Omit<
21652
- PickFromUnion_2<
21653
- NativeBehaviorEvent,
21654
- 'type',
21655
- 'copy' | 'cut' | 'drag.dragstart'
21656
- >,
21657
- 'dataTransfer'
20808
+ originEvent: PickFromUnion_2<
20809
+ NativeBehaviorEvent,
20810
+ 'type',
20811
+ | 'clipboard.copy'
20812
+ | 'clipboard.cut'
20813
+ | 'drag.dragstart'
21658
20814
  >
21659
20815
  }
21660
20816
  | InternalPatchEvent
@@ -22023,14 +21179,10 @@ declare const editorMachine: StateMachine<
22023
21179
  mimeType: `${string}/${string}`
22024
21180
  reason: string
22025
21181
  } & {
22026
- dataTransfer: DataTransfer
22027
- originEvent: Omit<
22028
- PickFromUnion_2<
22029
- NativeBehaviorEvent,
22030
- 'type',
22031
- 'drag.drop' | 'paste'
22032
- >,
22033
- 'dataTransfer'
21182
+ originEvent: PickFromUnion_2<
21183
+ NativeBehaviorEvent,
21184
+ 'type',
21185
+ 'drag.drop' | 'clipboard.paste'
22034
21186
  >
22035
21187
  })
22036
21188
  | ({
@@ -22038,42 +21190,30 @@ declare const editorMachine: StateMachine<
22038
21190
  data: Array<PortableTextBlock>
22039
21191
  mimeType: `${string}/${string}`
22040
21192
  } & {
22041
- dataTransfer: DataTransfer
22042
- originEvent: Omit<
22043
- PickFromUnion_2<
22044
- NativeBehaviorEvent,
22045
- 'type',
22046
- 'drag.drop' | 'paste'
22047
- >,
22048
- 'dataTransfer'
21193
+ originEvent: PickFromUnion_2<
21194
+ NativeBehaviorEvent,
21195
+ 'type',
21196
+ 'drag.drop' | 'clipboard.paste'
22049
21197
  >
22050
21198
  })
22051
21199
  | {
22052
21200
  type: 'serialization.success'
22053
21201
  mimeType: MIMEType_2
22054
21202
  data: string
22055
- dataTransfer: DataTransfer
22056
- originEvent: Omit<
22057
- PickFromUnion_2<
22058
- NativeBehaviorEvent,
22059
- 'type',
22060
- 'copy' | 'cut' | 'drag.dragstart'
22061
- >,
22062
- 'dataTransfer'
21203
+ originEvent: PickFromUnion_2<
21204
+ NativeBehaviorEvent,
21205
+ 'type',
21206
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
22063
21207
  >
22064
21208
  }
22065
21209
  | {
22066
21210
  type: 'serialization.failure'
22067
21211
  mimeType: MIMEType_2
22068
21212
  reason: string
22069
- dataTransfer: DataTransfer
22070
- originEvent: Omit<
22071
- PickFromUnion_2<
22072
- NativeBehaviorEvent,
22073
- 'type',
22074
- 'copy' | 'cut' | 'drag.dragstart'
22075
- >,
22076
- 'dataTransfer'
21213
+ originEvent: PickFromUnion_2<
21214
+ NativeBehaviorEvent,
21215
+ 'type',
21216
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
22077
21217
  >
22078
21218
  }
22079
21219
  | InternalPatchEvent
@@ -22410,14 +21550,10 @@ declare const editorMachine: StateMachine<
22410
21550
  mimeType: `${string}/${string}`
22411
21551
  reason: string
22412
21552
  } & {
22413
- dataTransfer: DataTransfer
22414
- originEvent: Omit<
22415
- PickFromUnion_2<
22416
- NativeBehaviorEvent,
22417
- 'type',
22418
- 'drag.drop' | 'paste'
22419
- >,
22420
- 'dataTransfer'
21553
+ originEvent: PickFromUnion_2<
21554
+ NativeBehaviorEvent,
21555
+ 'type',
21556
+ 'drag.drop' | 'clipboard.paste'
22421
21557
  >
22422
21558
  })
22423
21559
  | ({
@@ -22425,42 +21561,30 @@ declare const editorMachine: StateMachine<
22425
21561
  data: Array<PortableTextBlock>
22426
21562
  mimeType: `${string}/${string}`
22427
21563
  } & {
22428
- dataTransfer: DataTransfer
22429
- originEvent: Omit<
22430
- PickFromUnion_2<
22431
- NativeBehaviorEvent,
22432
- 'type',
22433
- 'drag.drop' | 'paste'
22434
- >,
22435
- 'dataTransfer'
21564
+ originEvent: PickFromUnion_2<
21565
+ NativeBehaviorEvent,
21566
+ 'type',
21567
+ 'drag.drop' | 'clipboard.paste'
22436
21568
  >
22437
21569
  })
22438
21570
  | {
22439
21571
  type: 'serialization.success'
22440
21572
  mimeType: MIMEType_2
22441
21573
  data: string
22442
- dataTransfer: DataTransfer
22443
- originEvent: Omit<
22444
- PickFromUnion_2<
22445
- NativeBehaviorEvent,
22446
- 'type',
22447
- 'copy' | 'cut' | 'drag.dragstart'
22448
- >,
22449
- 'dataTransfer'
21574
+ originEvent: PickFromUnion_2<
21575
+ NativeBehaviorEvent,
21576
+ 'type',
21577
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
22450
21578
  >
22451
21579
  }
22452
21580
  | {
22453
21581
  type: 'serialization.failure'
22454
21582
  mimeType: MIMEType_2
22455
21583
  reason: string
22456
- dataTransfer: DataTransfer
22457
- originEvent: Omit<
22458
- PickFromUnion_2<
22459
- NativeBehaviorEvent,
22460
- 'type',
22461
- 'copy' | 'cut' | 'drag.dragstart'
22462
- >,
22463
- 'dataTransfer'
21584
+ originEvent: PickFromUnion_2<
21585
+ NativeBehaviorEvent,
21586
+ 'type',
21587
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
22464
21588
  >
22465
21589
  }
22466
21590
  | InternalPatchEvent
@@ -22814,14 +21938,10 @@ declare const editorMachine: StateMachine<
22814
21938
  mimeType: `${string}/${string}`
22815
21939
  reason: string
22816
21940
  } & {
22817
- dataTransfer: DataTransfer
22818
- originEvent: Omit<
22819
- PickFromUnion_2<
22820
- NativeBehaviorEvent,
22821
- 'type',
22822
- 'drag.drop' | 'paste'
22823
- >,
22824
- 'dataTransfer'
21941
+ originEvent: PickFromUnion_2<
21942
+ NativeBehaviorEvent,
21943
+ 'type',
21944
+ 'drag.drop' | 'clipboard.paste'
22825
21945
  >
22826
21946
  })
22827
21947
  | ({
@@ -22829,42 +21949,30 @@ declare const editorMachine: StateMachine<
22829
21949
  data: Array<PortableTextBlock>
22830
21950
  mimeType: `${string}/${string}`
22831
21951
  } & {
22832
- dataTransfer: DataTransfer
22833
- originEvent: Omit<
22834
- PickFromUnion_2<
22835
- NativeBehaviorEvent,
22836
- 'type',
22837
- 'drag.drop' | 'paste'
22838
- >,
22839
- 'dataTransfer'
21952
+ originEvent: PickFromUnion_2<
21953
+ NativeBehaviorEvent,
21954
+ 'type',
21955
+ 'drag.drop' | 'clipboard.paste'
22840
21956
  >
22841
21957
  })
22842
21958
  | {
22843
21959
  type: 'serialization.success'
22844
21960
  mimeType: MIMEType_2
22845
21961
  data: string
22846
- dataTransfer: DataTransfer
22847
- originEvent: Omit<
22848
- PickFromUnion_2<
22849
- NativeBehaviorEvent,
22850
- 'type',
22851
- 'copy' | 'cut' | 'drag.dragstart'
22852
- >,
22853
- 'dataTransfer'
21962
+ originEvent: PickFromUnion_2<
21963
+ NativeBehaviorEvent,
21964
+ 'type',
21965
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
22854
21966
  >
22855
21967
  }
22856
21968
  | {
22857
21969
  type: 'serialization.failure'
22858
21970
  mimeType: MIMEType_2
22859
21971
  reason: string
22860
- dataTransfer: DataTransfer
22861
- originEvent: Omit<
22862
- PickFromUnion_2<
22863
- NativeBehaviorEvent,
22864
- 'type',
22865
- 'copy' | 'cut' | 'drag.dragstart'
22866
- >,
22867
- 'dataTransfer'
21972
+ originEvent: PickFromUnion_2<
21973
+ NativeBehaviorEvent,
21974
+ 'type',
21975
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
22868
21976
  >
22869
21977
  }
22870
21978
  | InternalPatchEvent
@@ -23201,14 +22309,10 @@ declare const editorMachine: StateMachine<
23201
22309
  mimeType: `${string}/${string}`
23202
22310
  reason: string
23203
22311
  } & {
23204
- dataTransfer: DataTransfer
23205
- originEvent: Omit<
23206
- PickFromUnion_2<
23207
- NativeBehaviorEvent,
23208
- 'type',
23209
- 'drag.drop' | 'paste'
23210
- >,
23211
- 'dataTransfer'
22312
+ originEvent: PickFromUnion_2<
22313
+ NativeBehaviorEvent,
22314
+ 'type',
22315
+ 'drag.drop' | 'clipboard.paste'
23212
22316
  >
23213
22317
  })
23214
22318
  | ({
@@ -23216,42 +22320,30 @@ declare const editorMachine: StateMachine<
23216
22320
  data: Array<PortableTextBlock>
23217
22321
  mimeType: `${string}/${string}`
23218
22322
  } & {
23219
- dataTransfer: DataTransfer
23220
- originEvent: Omit<
23221
- PickFromUnion_2<
23222
- NativeBehaviorEvent,
23223
- 'type',
23224
- 'drag.drop' | 'paste'
23225
- >,
23226
- 'dataTransfer'
22323
+ originEvent: PickFromUnion_2<
22324
+ NativeBehaviorEvent,
22325
+ 'type',
22326
+ 'drag.drop' | 'clipboard.paste'
23227
22327
  >
23228
22328
  })
23229
22329
  | {
23230
22330
  type: 'serialization.success'
23231
22331
  mimeType: MIMEType_2
23232
22332
  data: string
23233
- dataTransfer: DataTransfer
23234
- originEvent: Omit<
23235
- PickFromUnion_2<
23236
- NativeBehaviorEvent,
23237
- 'type',
23238
- 'copy' | 'cut' | 'drag.dragstart'
23239
- >,
23240
- 'dataTransfer'
22333
+ originEvent: PickFromUnion_2<
22334
+ NativeBehaviorEvent,
22335
+ 'type',
22336
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
23241
22337
  >
23242
22338
  }
23243
22339
  | {
23244
22340
  type: 'serialization.failure'
23245
22341
  mimeType: MIMEType_2
23246
22342
  reason: string
23247
- dataTransfer: DataTransfer
23248
- originEvent: Omit<
23249
- PickFromUnion_2<
23250
- NativeBehaviorEvent,
23251
- 'type',
23252
- 'copy' | 'cut' | 'drag.dragstart'
23253
- >,
23254
- 'dataTransfer'
22343
+ originEvent: PickFromUnion_2<
22344
+ NativeBehaviorEvent,
22345
+ 'type',
22346
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
23255
22347
  >
23256
22348
  }
23257
22349
  | InternalPatchEvent
@@ -23664,6 +22756,22 @@ declare type InvalidValueResolution = {
23664
22756
  }
23665
22757
  }
23666
22758
 
22759
+ declare type KeyboardBehaviorEvent =
22760
+ | {
22761
+ type: 'keyboard.keydown'
22762
+ originEvent: Pick<
22763
+ KeyboardEvent,
22764
+ 'key' | 'code' | 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey'
22765
+ >
22766
+ }
22767
+ | {
22768
+ type: 'keyboard.keyup'
22769
+ originEvent: Pick<
22770
+ KeyboardEvent,
22771
+ 'key' | 'code' | 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey'
22772
+ >
22773
+ }
22774
+
23667
22775
  /**
23668
22776
  * @beta
23669
22777
  */
@@ -23789,36 +22897,9 @@ declare type NamespaceEvent<
23789
22897
  * @beta
23790
22898
  */
23791
22899
  declare type NativeBehaviorEvent =
23792
- | {
23793
- type: 'copy'
23794
- data: DataTransfer
23795
- position: EventPosition
23796
- }
23797
- | {
23798
- type: 'cut'
23799
- dataTransfer: DataTransfer
23800
- position: EventPosition
23801
- }
23802
- | {
23803
- type: 'key.down'
23804
- keyboardEvent: Pick<
23805
- KeyboardEvent,
23806
- 'key' | 'code' | 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey'
23807
- >
23808
- }
23809
- | {
23810
- type: 'key.up'
23811
- keyboardEvent: Pick<
23812
- KeyboardEvent,
23813
- 'key' | 'code' | 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey'
23814
- >
23815
- }
22900
+ | ClipboardBehaviorEvent
22901
+ | KeyboardBehaviorEvent
23816
22902
  | MouseBehaviorEvent
23817
- | {
23818
- type: 'paste'
23819
- data: DataTransfer
23820
- position: EventPosition
23821
- }
23822
22903
  | DragBehaviorEvent
23823
22904
 
23824
22905
  /**
@@ -24125,38 +23206,30 @@ declare type SyntheticBehaviorEvent =
24125
23206
  'type',
24126
23207
  'deserialization.failure' | 'deserialization.success'
24127
23208
  > & {
24128
- dataTransfer: DataTransfer
24129
- originEvent: Omit<
24130
- PickFromUnion<NativeBehaviorEvent, 'type', 'drag.drop' | 'paste'>,
24131
- 'dataTransfer'
23209
+ originEvent: PickFromUnion<
23210
+ NativeBehaviorEvent,
23211
+ 'type',
23212
+ 'drag.drop' | 'clipboard.paste'
24132
23213
  >
24133
23214
  })
24134
23215
  | {
24135
23216
  type: 'serialization.success'
24136
23217
  mimeType: MIMEType
24137
23218
  data: string
24138
- dataTransfer: DataTransfer
24139
- originEvent: Omit<
24140
- PickFromUnion<
24141
- NativeBehaviorEvent,
24142
- 'type',
24143
- 'copy' | 'cut' | 'drag.dragstart'
24144
- >,
24145
- 'dataTransfer'
23219
+ originEvent: PickFromUnion<
23220
+ NativeBehaviorEvent,
23221
+ 'type',
23222
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
24146
23223
  >
24147
23224
  }
24148
23225
  | {
24149
23226
  type: 'serialization.failure'
24150
23227
  mimeType: MIMEType
24151
23228
  reason: string
24152
- dataTransfer: DataTransfer
24153
- originEvent: Omit<
24154
- PickFromUnion<
24155
- NativeBehaviorEvent,
24156
- 'type',
24157
- 'copy' | 'cut' | 'drag.dragstart'
24158
- >,
24159
- 'dataTransfer'
23229
+ originEvent: PickFromUnion<
23230
+ NativeBehaviorEvent,
23231
+ 'type',
23232
+ 'clipboard.copy' | 'clipboard.cut' | 'drag.dragstart'
24160
23233
  >
24161
23234
  }
24162
23235