@portabletext/editor 1.39.0 → 1.40.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.
- package/lib/_chunks-cjs/behavior.core.cjs +16 -5
- package/lib/_chunks-cjs/behavior.core.cjs.map +1 -1
- package/lib/_chunks-cjs/editor-provider.cjs +158 -153
- package/lib/_chunks-cjs/editor-provider.cjs.map +1 -1
- package/lib/_chunks-cjs/selector.get-text-before.cjs +0 -1
- package/lib/_chunks-cjs/selector.get-text-before.cjs.map +1 -1
- package/lib/_chunks-cjs/selector.is-at-the-start-of-block.cjs +0 -3
- package/lib/_chunks-cjs/selector.is-at-the-start-of-block.cjs.map +1 -1
- package/lib/_chunks-cjs/selector.is-overlapping-selection.cjs +0 -4
- package/lib/_chunks-cjs/selector.is-overlapping-selection.cjs.map +1 -1
- package/lib/_chunks-cjs/{parse-blocks.cjs → util.selection-point-to-block-offset.cjs} +74 -4
- package/lib/_chunks-cjs/util.selection-point-to-block-offset.cjs.map +1 -0
- package/lib/_chunks-cjs/util.slice-blocks.cjs +2 -2
- package/lib/_chunks-cjs/util.slice-blocks.cjs.map +1 -1
- package/lib/_chunks-cjs/util.split-text-block.cjs +68 -0
- package/lib/_chunks-cjs/util.split-text-block.cjs.map +1 -0
- package/lib/_chunks-es/behavior.core.js +17 -6
- package/lib/_chunks-es/behavior.core.js.map +1 -1
- package/lib/_chunks-es/editor-provider.js +155 -150
- package/lib/_chunks-es/editor-provider.js.map +1 -1
- package/lib/_chunks-es/selector.get-text-before.js +1 -2
- package/lib/_chunks-es/selector.get-text-before.js.map +1 -1
- package/lib/_chunks-es/selector.is-at-the-start-of-block.js +1 -4
- package/lib/_chunks-es/selector.is-at-the-start-of-block.js.map +1 -1
- package/lib/_chunks-es/selector.is-overlapping-selection.js +1 -5
- package/lib/_chunks-es/selector.is-overlapping-selection.js.map +1 -1
- package/lib/_chunks-es/{parse-blocks.js → util.selection-point-to-block-offset.js} +76 -5
- package/lib/_chunks-es/util.selection-point-to-block-offset.js.map +1 -0
- package/lib/_chunks-es/util.slice-blocks.js +2 -2
- package/lib/_chunks-es/util.slice-blocks.js.map +1 -1
- package/lib/_chunks-es/util.split-text-block.js +70 -0
- package/lib/_chunks-es/util.split-text-block.js.map +1 -0
- package/lib/behaviors/index.d.cts +1516 -911
- package/lib/behaviors/index.d.ts +1516 -911
- package/lib/index.cjs +197 -200
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +1247 -717
- package/lib/index.d.ts +1247 -717
- package/lib/index.js +204 -207
- package/lib/index.js.map +1 -1
- package/lib/plugins/index.cjs +11 -12
- package/lib/plugins/index.cjs.map +1 -1
- package/lib/plugins/index.d.cts +1238 -721
- package/lib/plugins/index.d.ts +1238 -721
- package/lib/plugins/index.js +3 -4
- package/lib/plugins/index.js.map +1 -1
- package/lib/selectors/index.d.cts +1237 -710
- package/lib/selectors/index.d.ts +1237 -710
- package/lib/utils/index.cjs +15 -87
- package/lib/utils/index.cjs.map +1 -1
- package/lib/utils/index.d.cts +1290 -713
- package/lib/utils/index.d.ts +1290 -713
- package/lib/utils/index.js +13 -86
- package/lib/utils/index.js.map +1 -1
- package/package.json +10 -10
- package/src/behavior-actions/behavior.action.decorator.add.ts +13 -2
- package/src/behaviors/behavior.core.block-objects.ts +32 -2
- package/src/behaviors/behavior.default.ts +59 -16
- package/src/behaviors/behavior.types.ts +67 -30
- package/src/editor/Editable.tsx +122 -68
- package/src/editor/PortableTextEditor.tsx +8 -8
- package/src/editor/__tests__/self-solving.test.tsx +1 -1
- package/src/editor/components/Element.tsx +1 -3
- package/src/editor/create-editor.ts +13 -5
- package/src/editor/editor-machine.ts +13 -3
- package/src/editor/editor-provider.tsx +11 -7
- package/src/editor/editor-selector.ts +4 -3
- package/src/editor/editor-snapshot.ts +2 -2
- package/src/editor/plugins/create-with-event-listeners.ts +18 -3
- package/src/editor/plugins/createWithPortableTextMarkModel.ts +1 -2
- package/src/internal-utils/block-keys.ts +9 -0
- package/src/internal-utils/collapse-selection.ts +36 -0
- package/src/internal-utils/compound-client-rect.ts +28 -0
- package/src/internal-utils/drag-selection.test.ts +507 -0
- package/src/internal-utils/drag-selection.ts +66 -0
- package/src/internal-utils/editor-selection.test.ts +40 -0
- package/src/internal-utils/editor-selection.ts +60 -0
- package/src/internal-utils/event-position.ts +55 -80
- package/src/internal-utils/inline-object-selection.ts +115 -0
- package/src/internal-utils/selection-block-keys.ts +20 -0
- package/src/internal-utils/selection-elements.ts +61 -0
- package/src/internal-utils/selection-focus-text.ts +38 -0
- package/src/internal-utils/selection-text.test.ts +23 -0
- package/src/internal-utils/selection-text.ts +90 -0
- package/src/internal-utils/split-string.ts +12 -0
- package/src/internal-utils/string-overlap.test.ts +14 -0
- package/src/internal-utils/string-overlap.ts +28 -0
- package/src/internal-utils/string-utils.ts +7 -0
- package/src/internal-utils/terse-pt.test.ts +60 -0
- package/src/internal-utils/terse-pt.ts +36 -0
- package/src/internal-utils/text-block-key.test.ts +30 -0
- package/src/internal-utils/text-block-key.ts +30 -0
- package/src/internal-utils/text-marks.test.ts +33 -0
- package/src/internal-utils/text-marks.ts +26 -0
- package/src/internal-utils/text-selection.test.ts +175 -0
- package/src/internal-utils/text-selection.ts +122 -0
- package/src/internal-utils/value-annotations.ts +31 -0
- package/src/internal-utils/values.ts +16 -5
- package/src/utils/index.ts +5 -0
- package/src/utils/util.block-offset-to-block-selection-point.ts +28 -0
- package/src/utils/util.block-offset-to-selection-point.ts +33 -0
- package/src/utils/util.block-offsets-to-selection.ts +3 -3
- package/src/utils/util.is-equal-selections.ts +20 -0
- package/src/utils/util.is-selection-collapsed.ts +15 -0
- package/src/utils/util.reverse-selection.ts +9 -5
- package/src/utils/util.selection-point-to-block-offset.ts +31 -0
- package/lib/_chunks-cjs/parse-blocks.cjs.map +0 -1
- package/lib/_chunks-es/parse-blocks.js.map +0 -1
- package/src/editor/components/use-draggable.ts +0 -123
package/lib/utils/index.d.ts
CHANGED
|
@@ -53,7 +53,10 @@ import {
|
|
|
53
53
|
BlockOffset as BlockOffset_2,
|
|
54
54
|
PortableTextMemberSchemaTypes as PortableTextMemberSchemaTypes_2,
|
|
55
55
|
} from '..'
|
|
56
|
-
import {
|
|
56
|
+
import {
|
|
57
|
+
InputBehaviorEvent as InputBehaviorEvent_2,
|
|
58
|
+
InsertPlacement as InsertPlacement_2,
|
|
59
|
+
} from '../behaviors/behavior.types'
|
|
57
60
|
import {MIMEType as MIMEType_2} from '../internal-utils/mime-type'
|
|
58
61
|
import {PickFromUnion as PickFromUnion_2} from '../type-utils'
|
|
59
62
|
|
|
@@ -69,11 +72,13 @@ declare type Behavior<
|
|
|
69
72
|
? ClipboardBehaviorEvent
|
|
70
73
|
: TBehaviorEventType extends 'drag.*'
|
|
71
74
|
? DragBehaviorEvent
|
|
72
|
-
: TBehaviorEventType extends '
|
|
73
|
-
?
|
|
74
|
-
: TBehaviorEventType extends '
|
|
75
|
-
?
|
|
76
|
-
:
|
|
75
|
+
: TBehaviorEventType extends 'input.*'
|
|
76
|
+
? InputBehaviorEvent
|
|
77
|
+
: TBehaviorEventType extends 'keyboard.*'
|
|
78
|
+
? KeyboardBehaviorEvent
|
|
79
|
+
: TBehaviorEventType extends 'mouse.*'
|
|
80
|
+
? MouseBehaviorEvent
|
|
81
|
+
: PickFromUnion<BehaviorEvent, 'type', TBehaviorEventType>,
|
|
77
82
|
> = {
|
|
78
83
|
/**
|
|
79
84
|
* The internal editor event that triggers this behavior.
|
|
@@ -141,6 +146,9 @@ declare type BehaviorEvent =
|
|
|
141
146
|
| {
|
|
142
147
|
type: 'drag.*'
|
|
143
148
|
}
|
|
149
|
+
| {
|
|
150
|
+
type: 'input.*'
|
|
151
|
+
}
|
|
144
152
|
| {
|
|
145
153
|
type: 'keyboard.*'
|
|
146
154
|
}
|
|
@@ -185,6 +193,30 @@ export declare function blockOffsetsToSelection({
|
|
|
185
193
|
backward?: boolean
|
|
186
194
|
}): EditorSelection
|
|
187
195
|
|
|
196
|
+
/**
|
|
197
|
+
* @public
|
|
198
|
+
*/
|
|
199
|
+
export declare function blockOffsetToBlockSelectionPoint({
|
|
200
|
+
value,
|
|
201
|
+
blockOffset,
|
|
202
|
+
}: {
|
|
203
|
+
value: Array<PortableTextBlock>
|
|
204
|
+
blockOffset: BlockOffset
|
|
205
|
+
}): EditorSelectionPoint | undefined
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* @public
|
|
209
|
+
*/
|
|
210
|
+
export declare function blockOffsetToSelectionPoint({
|
|
211
|
+
value,
|
|
212
|
+
blockOffset,
|
|
213
|
+
direction,
|
|
214
|
+
}: {
|
|
215
|
+
value: Array<PortableTextBlock>
|
|
216
|
+
blockOffset: BlockOffset
|
|
217
|
+
direction: 'forward' | 'backward'
|
|
218
|
+
}): EditorSelectionPoint | undefined
|
|
219
|
+
|
|
188
220
|
/**
|
|
189
221
|
* @public
|
|
190
222
|
*/
|
|
@@ -220,21 +252,21 @@ declare type ClipboardBehaviorEvent =
|
|
|
220
252
|
originEvent: {
|
|
221
253
|
dataTransfer: DataTransfer
|
|
222
254
|
}
|
|
223
|
-
position: EventPosition
|
|
255
|
+
position: Pick<EventPosition, 'selection'>
|
|
224
256
|
}
|
|
225
257
|
| {
|
|
226
258
|
type: 'clipboard.cut'
|
|
227
259
|
originEvent: {
|
|
228
260
|
dataTransfer: DataTransfer
|
|
229
261
|
}
|
|
230
|
-
position: EventPosition
|
|
262
|
+
position: Pick<EventPosition, 'selection'>
|
|
231
263
|
}
|
|
232
264
|
| {
|
|
233
265
|
type: 'clipboard.paste'
|
|
234
266
|
originEvent: {
|
|
235
267
|
dataTransfer: DataTransfer
|
|
236
268
|
}
|
|
237
|
-
position: EventPosition
|
|
269
|
+
position: Pick<EventPosition, 'selection'>
|
|
238
270
|
}
|
|
239
271
|
|
|
240
272
|
declare type Converter<TMIMEType extends MIMEType = MIMEType> = {
|
|
@@ -289,11 +321,13 @@ declare type CustomBehaviorEvent<
|
|
|
289
321
|
declare type DataBehaviorEvent =
|
|
290
322
|
| {
|
|
291
323
|
type: 'deserialize'
|
|
292
|
-
originEvent:
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
324
|
+
originEvent:
|
|
325
|
+
| PickFromUnion<
|
|
326
|
+
NativeBehaviorEvent,
|
|
327
|
+
'type',
|
|
328
|
+
'drag.drop' | 'clipboard.paste'
|
|
329
|
+
>
|
|
330
|
+
| InputBehaviorEvent
|
|
297
331
|
}
|
|
298
332
|
| {
|
|
299
333
|
type: 'serialize'
|
|
@@ -322,7 +356,7 @@ declare type DragBehaviorEvent =
|
|
|
322
356
|
originEvent: {
|
|
323
357
|
dataTransfer: DataTransfer
|
|
324
358
|
}
|
|
325
|
-
position: EventPosition
|
|
359
|
+
position: Pick<EventPosition, 'selection'>
|
|
326
360
|
}
|
|
327
361
|
| {
|
|
328
362
|
type: 'drag.drag'
|
|
@@ -487,7 +521,7 @@ declare const editorMachine: StateMachine<
|
|
|
487
521
|
value: Array<PortableTextBlock> | undefined
|
|
488
522
|
internalDrag?: {
|
|
489
523
|
ghost?: HTMLElement
|
|
490
|
-
origin: EventPosition
|
|
524
|
+
origin: Pick<EventPosition, 'selection'>
|
|
491
525
|
}
|
|
492
526
|
},
|
|
493
527
|
| {
|
|
@@ -548,6 +582,10 @@ declare const editorMachine: StateMachine<
|
|
|
548
582
|
| {
|
|
549
583
|
type: 'decorator.toggle'
|
|
550
584
|
decorator: string
|
|
585
|
+
offsets?: {
|
|
586
|
+
anchor: BlockOffset_2
|
|
587
|
+
focus: BlockOffset_2
|
|
588
|
+
}
|
|
551
589
|
}
|
|
552
590
|
| {
|
|
553
591
|
type: 'delete'
|
|
@@ -692,22 +730,26 @@ declare const editorMachine: StateMachine<
|
|
|
692
730
|
mimeType: `${string}/${string}`
|
|
693
731
|
reason: string
|
|
694
732
|
} & {
|
|
695
|
-
originEvent:
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
733
|
+
originEvent:
|
|
734
|
+
| PickFromUnion_2<
|
|
735
|
+
NativeBehaviorEvent,
|
|
736
|
+
'type',
|
|
737
|
+
'drag.drop' | 'clipboard.paste'
|
|
738
|
+
>
|
|
739
|
+
| InputBehaviorEvent_2
|
|
700
740
|
})
|
|
701
741
|
| ({
|
|
702
742
|
type: 'deserialization.success'
|
|
703
743
|
data: Array<PortableTextBlock>
|
|
704
744
|
mimeType: `${string}/${string}`
|
|
705
745
|
} & {
|
|
706
|
-
originEvent:
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
746
|
+
originEvent:
|
|
747
|
+
| PickFromUnion_2<
|
|
748
|
+
NativeBehaviorEvent,
|
|
749
|
+
'type',
|
|
750
|
+
'drag.drop' | 'clipboard.paste'
|
|
751
|
+
>
|
|
752
|
+
| InputBehaviorEvent_2
|
|
711
753
|
})
|
|
712
754
|
| {
|
|
713
755
|
type: 'serialization.success'
|
|
@@ -852,7 +894,7 @@ declare const editorMachine: StateMachine<
|
|
|
852
894
|
}
|
|
853
895
|
| {
|
|
854
896
|
type: 'dragstart'
|
|
855
|
-
origin: EventPosition
|
|
897
|
+
origin: Pick<EventPosition, 'selection'>
|
|
856
898
|
ghost?: HTMLElement
|
|
857
899
|
}
|
|
858
900
|
| {
|
|
@@ -922,7 +964,7 @@ declare const editorMachine: StateMachine<
|
|
|
922
964
|
{
|
|
923
965
|
'edit mode':
|
|
924
966
|
| {
|
|
925
|
-
editable: '
|
|
967
|
+
editable: 'dragging internally' | 'idle'
|
|
926
968
|
}
|
|
927
969
|
| {
|
|
928
970
|
'read only': 'read only' | 'determine initial edit mode'
|
|
@@ -931,7 +973,7 @@ declare const editorMachine: StateMachine<
|
|
|
931
973
|
| 'setting up'
|
|
932
974
|
| 'dirty'
|
|
933
975
|
| {
|
|
934
|
-
pristine: '
|
|
976
|
+
pristine: 'normalizing' | 'idle'
|
|
935
977
|
}
|
|
936
978
|
},
|
|
937
979
|
'dragging internally',
|
|
@@ -1003,6 +1045,10 @@ declare const editorMachine: StateMachine<
|
|
|
1003
1045
|
| {
|
|
1004
1046
|
type: 'decorator.toggle'
|
|
1005
1047
|
decorator: string
|
|
1048
|
+
offsets?: {
|
|
1049
|
+
anchor: BlockOffset_2
|
|
1050
|
+
focus: BlockOffset_2
|
|
1051
|
+
}
|
|
1006
1052
|
}
|
|
1007
1053
|
| {
|
|
1008
1054
|
type: 'delete'
|
|
@@ -1147,22 +1193,26 @@ declare const editorMachine: StateMachine<
|
|
|
1147
1193
|
mimeType: `${string}/${string}`
|
|
1148
1194
|
reason: string
|
|
1149
1195
|
} & {
|
|
1150
|
-
originEvent:
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1196
|
+
originEvent:
|
|
1197
|
+
| PickFromUnion_2<
|
|
1198
|
+
NativeBehaviorEvent,
|
|
1199
|
+
'type',
|
|
1200
|
+
'drag.drop' | 'clipboard.paste'
|
|
1201
|
+
>
|
|
1202
|
+
| InputBehaviorEvent_2
|
|
1155
1203
|
})
|
|
1156
1204
|
| ({
|
|
1157
1205
|
type: 'deserialization.success'
|
|
1158
1206
|
data: Array<PortableTextBlock>
|
|
1159
1207
|
mimeType: `${string}/${string}`
|
|
1160
1208
|
} & {
|
|
1161
|
-
originEvent:
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1209
|
+
originEvent:
|
|
1210
|
+
| PickFromUnion_2<
|
|
1211
|
+
NativeBehaviorEvent,
|
|
1212
|
+
'type',
|
|
1213
|
+
'drag.drop' | 'clipboard.paste'
|
|
1214
|
+
>
|
|
1215
|
+
| InputBehaviorEvent_2
|
|
1166
1216
|
})
|
|
1167
1217
|
| {
|
|
1168
1218
|
type: 'serialization.success'
|
|
@@ -1286,7 +1336,7 @@ declare const editorMachine: StateMachine<
|
|
|
1286
1336
|
value: Array<PortableTextBlock> | undefined
|
|
1287
1337
|
internalDrag?: {
|
|
1288
1338
|
ghost?: HTMLElement
|
|
1289
|
-
origin: EventPosition
|
|
1339
|
+
origin: Pick<EventPosition, 'selection'>
|
|
1290
1340
|
}
|
|
1291
1341
|
},
|
|
1292
1342
|
| {
|
|
@@ -1347,6 +1397,10 @@ declare const editorMachine: StateMachine<
|
|
|
1347
1397
|
| {
|
|
1348
1398
|
type: 'decorator.toggle'
|
|
1349
1399
|
decorator: string
|
|
1400
|
+
offsets?: {
|
|
1401
|
+
anchor: BlockOffset_2
|
|
1402
|
+
focus: BlockOffset_2
|
|
1403
|
+
}
|
|
1350
1404
|
}
|
|
1351
1405
|
| {
|
|
1352
1406
|
type: 'delete'
|
|
@@ -1491,22 +1545,26 @@ declare const editorMachine: StateMachine<
|
|
|
1491
1545
|
mimeType: `${string}/${string}`
|
|
1492
1546
|
reason: string
|
|
1493
1547
|
} & {
|
|
1494
|
-
originEvent:
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1548
|
+
originEvent:
|
|
1549
|
+
| PickFromUnion_2<
|
|
1550
|
+
NativeBehaviorEvent,
|
|
1551
|
+
'type',
|
|
1552
|
+
'drag.drop' | 'clipboard.paste'
|
|
1553
|
+
>
|
|
1554
|
+
| InputBehaviorEvent_2
|
|
1499
1555
|
})
|
|
1500
1556
|
| ({
|
|
1501
1557
|
type: 'deserialization.success'
|
|
1502
1558
|
data: Array<PortableTextBlock>
|
|
1503
1559
|
mimeType: `${string}/${string}`
|
|
1504
1560
|
} & {
|
|
1505
|
-
originEvent:
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1561
|
+
originEvent:
|
|
1562
|
+
| PickFromUnion_2<
|
|
1563
|
+
NativeBehaviorEvent,
|
|
1564
|
+
'type',
|
|
1565
|
+
'drag.drop' | 'clipboard.paste'
|
|
1566
|
+
>
|
|
1567
|
+
| InputBehaviorEvent_2
|
|
1510
1568
|
})
|
|
1511
1569
|
| {
|
|
1512
1570
|
type: 'serialization.success'
|
|
@@ -1651,7 +1709,7 @@ declare const editorMachine: StateMachine<
|
|
|
1651
1709
|
}
|
|
1652
1710
|
| {
|
|
1653
1711
|
type: 'dragstart'
|
|
1654
|
-
origin: EventPosition
|
|
1712
|
+
origin: Pick<EventPosition, 'selection'>
|
|
1655
1713
|
ghost?: HTMLElement
|
|
1656
1714
|
}
|
|
1657
1715
|
| {
|
|
@@ -1725,6 +1783,10 @@ declare const editorMachine: StateMachine<
|
|
|
1725
1783
|
| {
|
|
1726
1784
|
type: 'decorator.toggle'
|
|
1727
1785
|
decorator: string
|
|
1786
|
+
offsets?: {
|
|
1787
|
+
anchor: BlockOffset_2
|
|
1788
|
+
focus: BlockOffset_2
|
|
1789
|
+
}
|
|
1728
1790
|
}
|
|
1729
1791
|
| {
|
|
1730
1792
|
type: 'delete'
|
|
@@ -1869,22 +1931,26 @@ declare const editorMachine: StateMachine<
|
|
|
1869
1931
|
mimeType: `${string}/${string}`
|
|
1870
1932
|
reason: string
|
|
1871
1933
|
} & {
|
|
1872
|
-
originEvent:
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1934
|
+
originEvent:
|
|
1935
|
+
| PickFromUnion_2<
|
|
1936
|
+
NativeBehaviorEvent,
|
|
1937
|
+
'type',
|
|
1938
|
+
'drag.drop' | 'clipboard.paste'
|
|
1939
|
+
>
|
|
1940
|
+
| InputBehaviorEvent_2
|
|
1877
1941
|
})
|
|
1878
1942
|
| ({
|
|
1879
1943
|
type: 'deserialization.success'
|
|
1880
1944
|
data: Array<PortableTextBlock>
|
|
1881
1945
|
mimeType: `${string}/${string}`
|
|
1882
1946
|
} & {
|
|
1883
|
-
originEvent:
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1947
|
+
originEvent:
|
|
1948
|
+
| PickFromUnion_2<
|
|
1949
|
+
NativeBehaviorEvent,
|
|
1950
|
+
'type',
|
|
1951
|
+
'drag.drop' | 'clipboard.paste'
|
|
1952
|
+
>
|
|
1953
|
+
| InputBehaviorEvent_2
|
|
1888
1954
|
})
|
|
1889
1955
|
| {
|
|
1890
1956
|
type: 'serialization.success'
|
|
@@ -2029,7 +2095,7 @@ declare const editorMachine: StateMachine<
|
|
|
2029
2095
|
}
|
|
2030
2096
|
| {
|
|
2031
2097
|
type: 'dragstart'
|
|
2032
|
-
origin: EventPosition
|
|
2098
|
+
origin: Pick<EventPosition, 'selection'>
|
|
2033
2099
|
ghost?: HTMLElement
|
|
2034
2100
|
}
|
|
2035
2101
|
| {
|
|
@@ -2066,7 +2132,7 @@ declare const editorMachine: StateMachine<
|
|
|
2066
2132
|
value: Array<PortableTextBlock> | undefined
|
|
2067
2133
|
internalDrag?: {
|
|
2068
2134
|
ghost?: HTMLElement
|
|
2069
|
-
origin: EventPosition
|
|
2135
|
+
origin: Pick<EventPosition, 'selection'>
|
|
2070
2136
|
}
|
|
2071
2137
|
},
|
|
2072
2138
|
{
|
|
@@ -2131,6 +2197,10 @@ declare const editorMachine: StateMachine<
|
|
|
2131
2197
|
| {
|
|
2132
2198
|
type: 'decorator.toggle'
|
|
2133
2199
|
decorator: string
|
|
2200
|
+
offsets?: {
|
|
2201
|
+
anchor: BlockOffset_2
|
|
2202
|
+
focus: BlockOffset_2
|
|
2203
|
+
}
|
|
2134
2204
|
}
|
|
2135
2205
|
| {
|
|
2136
2206
|
type: 'delete'
|
|
@@ -2275,22 +2345,26 @@ declare const editorMachine: StateMachine<
|
|
|
2275
2345
|
mimeType: `${string}/${string}`
|
|
2276
2346
|
reason: string
|
|
2277
2347
|
} & {
|
|
2278
|
-
originEvent:
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2348
|
+
originEvent:
|
|
2349
|
+
| PickFromUnion_2<
|
|
2350
|
+
NativeBehaviorEvent,
|
|
2351
|
+
'type',
|
|
2352
|
+
'drag.drop' | 'clipboard.paste'
|
|
2353
|
+
>
|
|
2354
|
+
| InputBehaviorEvent_2
|
|
2283
2355
|
})
|
|
2284
2356
|
| ({
|
|
2285
2357
|
type: 'deserialization.success'
|
|
2286
2358
|
data: Array<PortableTextBlock>
|
|
2287
2359
|
mimeType: `${string}/${string}`
|
|
2288
2360
|
} & {
|
|
2289
|
-
originEvent:
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2361
|
+
originEvent:
|
|
2362
|
+
| PickFromUnion_2<
|
|
2363
|
+
NativeBehaviorEvent,
|
|
2364
|
+
'type',
|
|
2365
|
+
'drag.drop' | 'clipboard.paste'
|
|
2366
|
+
>
|
|
2367
|
+
| InputBehaviorEvent_2
|
|
2294
2368
|
})
|
|
2295
2369
|
| {
|
|
2296
2370
|
type: 'serialization.success'
|
|
@@ -2435,7 +2509,7 @@ declare const editorMachine: StateMachine<
|
|
|
2435
2509
|
}
|
|
2436
2510
|
| {
|
|
2437
2511
|
type: 'dragstart'
|
|
2438
|
-
origin: EventPosition
|
|
2512
|
+
origin: Pick<EventPosition, 'selection'>
|
|
2439
2513
|
ghost?: HTMLElement
|
|
2440
2514
|
}
|
|
2441
2515
|
| {
|
|
@@ -2507,6 +2581,10 @@ declare const editorMachine: StateMachine<
|
|
|
2507
2581
|
| {
|
|
2508
2582
|
type: 'decorator.toggle'
|
|
2509
2583
|
decorator: string
|
|
2584
|
+
offsets?: {
|
|
2585
|
+
anchor: BlockOffset_2
|
|
2586
|
+
focus: BlockOffset_2
|
|
2587
|
+
}
|
|
2510
2588
|
}
|
|
2511
2589
|
| {
|
|
2512
2590
|
type: 'delete'
|
|
@@ -2651,22 +2729,26 @@ declare const editorMachine: StateMachine<
|
|
|
2651
2729
|
mimeType: `${string}/${string}`
|
|
2652
2730
|
reason: string
|
|
2653
2731
|
} & {
|
|
2654
|
-
originEvent:
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2732
|
+
originEvent:
|
|
2733
|
+
| PickFromUnion_2<
|
|
2734
|
+
NativeBehaviorEvent,
|
|
2735
|
+
'type',
|
|
2736
|
+
'drag.drop' | 'clipboard.paste'
|
|
2737
|
+
>
|
|
2738
|
+
| InputBehaviorEvent_2
|
|
2659
2739
|
})
|
|
2660
2740
|
| ({
|
|
2661
2741
|
type: 'deserialization.success'
|
|
2662
2742
|
data: Array<PortableTextBlock>
|
|
2663
2743
|
mimeType: `${string}/${string}`
|
|
2664
2744
|
} & {
|
|
2665
|
-
originEvent:
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2745
|
+
originEvent:
|
|
2746
|
+
| PickFromUnion_2<
|
|
2747
|
+
NativeBehaviorEvent,
|
|
2748
|
+
'type',
|
|
2749
|
+
'drag.drop' | 'clipboard.paste'
|
|
2750
|
+
>
|
|
2751
|
+
| InputBehaviorEvent_2
|
|
2670
2752
|
})
|
|
2671
2753
|
| {
|
|
2672
2754
|
type: 'serialization.success'
|
|
@@ -2755,7 +2837,7 @@ declare const editorMachine: StateMachine<
|
|
|
2755
2837
|
value: Array<PortableTextBlock> | undefined
|
|
2756
2838
|
internalDrag?: {
|
|
2757
2839
|
ghost?: HTMLElement
|
|
2758
|
-
origin: EventPosition
|
|
2840
|
+
origin: Pick<EventPosition, 'selection'>
|
|
2759
2841
|
}
|
|
2760
2842
|
},
|
|
2761
2843
|
{
|
|
@@ -2819,6 +2901,10 @@ declare const editorMachine: StateMachine<
|
|
|
2819
2901
|
| {
|
|
2820
2902
|
type: 'decorator.toggle'
|
|
2821
2903
|
decorator: string
|
|
2904
|
+
offsets?: {
|
|
2905
|
+
anchor: BlockOffset_2
|
|
2906
|
+
focus: BlockOffset_2
|
|
2907
|
+
}
|
|
2822
2908
|
}
|
|
2823
2909
|
| {
|
|
2824
2910
|
type: 'delete'
|
|
@@ -2963,22 +3049,26 @@ declare const editorMachine: StateMachine<
|
|
|
2963
3049
|
mimeType: `${string}/${string}`
|
|
2964
3050
|
reason: string
|
|
2965
3051
|
} & {
|
|
2966
|
-
originEvent:
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
3052
|
+
originEvent:
|
|
3053
|
+
| PickFromUnion_2<
|
|
3054
|
+
NativeBehaviorEvent,
|
|
3055
|
+
'type',
|
|
3056
|
+
'drag.drop' | 'clipboard.paste'
|
|
3057
|
+
>
|
|
3058
|
+
| InputBehaviorEvent_2
|
|
2971
3059
|
})
|
|
2972
3060
|
| ({
|
|
2973
3061
|
type: 'deserialization.success'
|
|
2974
3062
|
data: Array<PortableTextBlock>
|
|
2975
3063
|
mimeType: `${string}/${string}`
|
|
2976
3064
|
} & {
|
|
2977
|
-
originEvent:
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
3065
|
+
originEvent:
|
|
3066
|
+
| PickFromUnion_2<
|
|
3067
|
+
NativeBehaviorEvent,
|
|
3068
|
+
'type',
|
|
3069
|
+
'drag.drop' | 'clipboard.paste'
|
|
3070
|
+
>
|
|
3071
|
+
| InputBehaviorEvent_2
|
|
2982
3072
|
})
|
|
2983
3073
|
| {
|
|
2984
3074
|
type: 'serialization.success'
|
|
@@ -3123,7 +3213,7 @@ declare const editorMachine: StateMachine<
|
|
|
3123
3213
|
}
|
|
3124
3214
|
| {
|
|
3125
3215
|
type: 'dragstart'
|
|
3126
|
-
origin: EventPosition
|
|
3216
|
+
origin: Pick<EventPosition, 'selection'>
|
|
3127
3217
|
ghost?: HTMLElement
|
|
3128
3218
|
}
|
|
3129
3219
|
| {
|
|
@@ -3195,6 +3285,10 @@ declare const editorMachine: StateMachine<
|
|
|
3195
3285
|
| {
|
|
3196
3286
|
type: 'decorator.toggle'
|
|
3197
3287
|
decorator: string
|
|
3288
|
+
offsets?: {
|
|
3289
|
+
anchor: BlockOffset_2
|
|
3290
|
+
focus: BlockOffset_2
|
|
3291
|
+
}
|
|
3198
3292
|
}
|
|
3199
3293
|
| {
|
|
3200
3294
|
type: 'delete'
|
|
@@ -3339,22 +3433,26 @@ declare const editorMachine: StateMachine<
|
|
|
3339
3433
|
mimeType: `${string}/${string}`
|
|
3340
3434
|
reason: string
|
|
3341
3435
|
} & {
|
|
3342
|
-
originEvent:
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3436
|
+
originEvent:
|
|
3437
|
+
| PickFromUnion_2<
|
|
3438
|
+
NativeBehaviorEvent,
|
|
3439
|
+
'type',
|
|
3440
|
+
'drag.drop' | 'clipboard.paste'
|
|
3441
|
+
>
|
|
3442
|
+
| InputBehaviorEvent_2
|
|
3347
3443
|
})
|
|
3348
3444
|
| ({
|
|
3349
3445
|
type: 'deserialization.success'
|
|
3350
3446
|
data: Array<PortableTextBlock>
|
|
3351
3447
|
mimeType: `${string}/${string}`
|
|
3352
3448
|
} & {
|
|
3353
|
-
originEvent:
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3449
|
+
originEvent:
|
|
3450
|
+
| PickFromUnion_2<
|
|
3451
|
+
NativeBehaviorEvent,
|
|
3452
|
+
'type',
|
|
3453
|
+
'drag.drop' | 'clipboard.paste'
|
|
3454
|
+
>
|
|
3455
|
+
| InputBehaviorEvent_2
|
|
3358
3456
|
})
|
|
3359
3457
|
| {
|
|
3360
3458
|
type: 'serialization.success'
|
|
@@ -3443,7 +3541,7 @@ declare const editorMachine: StateMachine<
|
|
|
3443
3541
|
value: Array<PortableTextBlock> | undefined
|
|
3444
3542
|
internalDrag?: {
|
|
3445
3543
|
ghost?: HTMLElement
|
|
3446
|
-
origin: EventPosition
|
|
3544
|
+
origin: Pick<EventPosition, 'selection'>
|
|
3447
3545
|
}
|
|
3448
3546
|
},
|
|
3449
3547
|
{
|
|
@@ -3510,6 +3608,10 @@ declare const editorMachine: StateMachine<
|
|
|
3510
3608
|
| {
|
|
3511
3609
|
type: 'decorator.toggle'
|
|
3512
3610
|
decorator: string
|
|
3611
|
+
offsets?: {
|
|
3612
|
+
anchor: BlockOffset_2
|
|
3613
|
+
focus: BlockOffset_2
|
|
3614
|
+
}
|
|
3513
3615
|
}
|
|
3514
3616
|
| {
|
|
3515
3617
|
type: 'delete'
|
|
@@ -3654,22 +3756,26 @@ declare const editorMachine: StateMachine<
|
|
|
3654
3756
|
mimeType: `${string}/${string}`
|
|
3655
3757
|
reason: string
|
|
3656
3758
|
} & {
|
|
3657
|
-
originEvent:
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3759
|
+
originEvent:
|
|
3760
|
+
| PickFromUnion_2<
|
|
3761
|
+
NativeBehaviorEvent,
|
|
3762
|
+
'type',
|
|
3763
|
+
'drag.drop' | 'clipboard.paste'
|
|
3764
|
+
>
|
|
3765
|
+
| InputBehaviorEvent_2
|
|
3662
3766
|
})
|
|
3663
3767
|
| ({
|
|
3664
3768
|
type: 'deserialization.success'
|
|
3665
3769
|
data: Array<PortableTextBlock>
|
|
3666
3770
|
mimeType: `${string}/${string}`
|
|
3667
3771
|
} & {
|
|
3668
|
-
originEvent:
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3772
|
+
originEvent:
|
|
3773
|
+
| PickFromUnion_2<
|
|
3774
|
+
NativeBehaviorEvent,
|
|
3775
|
+
'type',
|
|
3776
|
+
'drag.drop' | 'clipboard.paste'
|
|
3777
|
+
>
|
|
3778
|
+
| InputBehaviorEvent_2
|
|
3673
3779
|
})
|
|
3674
3780
|
| {
|
|
3675
3781
|
type: 'serialization.success'
|
|
@@ -3814,7 +3920,7 @@ declare const editorMachine: StateMachine<
|
|
|
3814
3920
|
}
|
|
3815
3921
|
| {
|
|
3816
3922
|
type: 'dragstart'
|
|
3817
|
-
origin: EventPosition
|
|
3923
|
+
origin: Pick<EventPosition, 'selection'>
|
|
3818
3924
|
ghost?: HTMLElement
|
|
3819
3925
|
}
|
|
3820
3926
|
| {
|
|
@@ -3886,6 +3992,10 @@ declare const editorMachine: StateMachine<
|
|
|
3886
3992
|
| {
|
|
3887
3993
|
type: 'decorator.toggle'
|
|
3888
3994
|
decorator: string
|
|
3995
|
+
offsets?: {
|
|
3996
|
+
anchor: BlockOffset_2
|
|
3997
|
+
focus: BlockOffset_2
|
|
3998
|
+
}
|
|
3889
3999
|
}
|
|
3890
4000
|
| {
|
|
3891
4001
|
type: 'delete'
|
|
@@ -4030,22 +4140,26 @@ declare const editorMachine: StateMachine<
|
|
|
4030
4140
|
mimeType: `${string}/${string}`
|
|
4031
4141
|
reason: string
|
|
4032
4142
|
} & {
|
|
4033
|
-
originEvent:
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4143
|
+
originEvent:
|
|
4144
|
+
| PickFromUnion_2<
|
|
4145
|
+
NativeBehaviorEvent,
|
|
4146
|
+
'type',
|
|
4147
|
+
'drag.drop' | 'clipboard.paste'
|
|
4148
|
+
>
|
|
4149
|
+
| InputBehaviorEvent_2
|
|
4038
4150
|
})
|
|
4039
4151
|
| ({
|
|
4040
4152
|
type: 'deserialization.success'
|
|
4041
4153
|
data: Array<PortableTextBlock>
|
|
4042
4154
|
mimeType: `${string}/${string}`
|
|
4043
4155
|
} & {
|
|
4044
|
-
originEvent:
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4156
|
+
originEvent:
|
|
4157
|
+
| PickFromUnion_2<
|
|
4158
|
+
NativeBehaviorEvent,
|
|
4159
|
+
'type',
|
|
4160
|
+
'drag.drop' | 'clipboard.paste'
|
|
4161
|
+
>
|
|
4162
|
+
| InputBehaviorEvent_2
|
|
4049
4163
|
})
|
|
4050
4164
|
| {
|
|
4051
4165
|
type: 'serialization.success'
|
|
@@ -4134,7 +4248,7 @@ declare const editorMachine: StateMachine<
|
|
|
4134
4248
|
value: Array<PortableTextBlock> | undefined
|
|
4135
4249
|
internalDrag?: {
|
|
4136
4250
|
ghost?: HTMLElement
|
|
4137
|
-
origin: EventPosition
|
|
4251
|
+
origin: Pick<EventPosition, 'selection'>
|
|
4138
4252
|
}
|
|
4139
4253
|
},
|
|
4140
4254
|
{
|
|
@@ -4200,6 +4314,10 @@ declare const editorMachine: StateMachine<
|
|
|
4200
4314
|
| {
|
|
4201
4315
|
type: 'decorator.toggle'
|
|
4202
4316
|
decorator: string
|
|
4317
|
+
offsets?: {
|
|
4318
|
+
anchor: BlockOffset_2
|
|
4319
|
+
focus: BlockOffset_2
|
|
4320
|
+
}
|
|
4203
4321
|
}
|
|
4204
4322
|
| {
|
|
4205
4323
|
type: 'delete'
|
|
@@ -4344,22 +4462,26 @@ declare const editorMachine: StateMachine<
|
|
|
4344
4462
|
mimeType: `${string}/${string}`
|
|
4345
4463
|
reason: string
|
|
4346
4464
|
} & {
|
|
4347
|
-
originEvent:
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4465
|
+
originEvent:
|
|
4466
|
+
| PickFromUnion_2<
|
|
4467
|
+
NativeBehaviorEvent,
|
|
4468
|
+
'type',
|
|
4469
|
+
'drag.drop' | 'clipboard.paste'
|
|
4470
|
+
>
|
|
4471
|
+
| InputBehaviorEvent_2
|
|
4352
4472
|
})
|
|
4353
4473
|
| ({
|
|
4354
4474
|
type: 'deserialization.success'
|
|
4355
4475
|
data: Array<PortableTextBlock>
|
|
4356
4476
|
mimeType: `${string}/${string}`
|
|
4357
4477
|
} & {
|
|
4358
|
-
originEvent:
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4478
|
+
originEvent:
|
|
4479
|
+
| PickFromUnion_2<
|
|
4480
|
+
NativeBehaviorEvent,
|
|
4481
|
+
'type',
|
|
4482
|
+
'drag.drop' | 'clipboard.paste'
|
|
4483
|
+
>
|
|
4484
|
+
| InputBehaviorEvent_2
|
|
4363
4485
|
})
|
|
4364
4486
|
| {
|
|
4365
4487
|
type: 'serialization.success'
|
|
@@ -4504,7 +4626,7 @@ declare const editorMachine: StateMachine<
|
|
|
4504
4626
|
}
|
|
4505
4627
|
| {
|
|
4506
4628
|
type: 'dragstart'
|
|
4507
|
-
origin: EventPosition
|
|
4629
|
+
origin: Pick<EventPosition, 'selection'>
|
|
4508
4630
|
ghost?: HTMLElement
|
|
4509
4631
|
}
|
|
4510
4632
|
| {
|
|
@@ -4576,6 +4698,10 @@ declare const editorMachine: StateMachine<
|
|
|
4576
4698
|
| {
|
|
4577
4699
|
type: 'decorator.toggle'
|
|
4578
4700
|
decorator: string
|
|
4701
|
+
offsets?: {
|
|
4702
|
+
anchor: BlockOffset_2
|
|
4703
|
+
focus: BlockOffset_2
|
|
4704
|
+
}
|
|
4579
4705
|
}
|
|
4580
4706
|
| {
|
|
4581
4707
|
type: 'delete'
|
|
@@ -4720,22 +4846,26 @@ declare const editorMachine: StateMachine<
|
|
|
4720
4846
|
mimeType: `${string}/${string}`
|
|
4721
4847
|
reason: string
|
|
4722
4848
|
} & {
|
|
4723
|
-
originEvent:
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4849
|
+
originEvent:
|
|
4850
|
+
| PickFromUnion_2<
|
|
4851
|
+
NativeBehaviorEvent,
|
|
4852
|
+
'type',
|
|
4853
|
+
'drag.drop' | 'clipboard.paste'
|
|
4854
|
+
>
|
|
4855
|
+
| InputBehaviorEvent_2
|
|
4728
4856
|
})
|
|
4729
4857
|
| ({
|
|
4730
4858
|
type: 'deserialization.success'
|
|
4731
4859
|
data: Array<PortableTextBlock>
|
|
4732
4860
|
mimeType: `${string}/${string}`
|
|
4733
4861
|
} & {
|
|
4734
|
-
originEvent:
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4862
|
+
originEvent:
|
|
4863
|
+
| PickFromUnion_2<
|
|
4864
|
+
NativeBehaviorEvent,
|
|
4865
|
+
'type',
|
|
4866
|
+
'drag.drop' | 'clipboard.paste'
|
|
4867
|
+
>
|
|
4868
|
+
| InputBehaviorEvent_2
|
|
4739
4869
|
})
|
|
4740
4870
|
| {
|
|
4741
4871
|
type: 'serialization.success'
|
|
@@ -4824,7 +4954,7 @@ declare const editorMachine: StateMachine<
|
|
|
4824
4954
|
value: Array<PortableTextBlock> | undefined
|
|
4825
4955
|
internalDrag?: {
|
|
4826
4956
|
ghost?: HTMLElement
|
|
4827
|
-
origin: EventPosition
|
|
4957
|
+
origin: Pick<EventPosition, 'selection'>
|
|
4828
4958
|
}
|
|
4829
4959
|
},
|
|
4830
4960
|
{
|
|
@@ -4889,6 +5019,10 @@ declare const editorMachine: StateMachine<
|
|
|
4889
5019
|
| {
|
|
4890
5020
|
type: 'decorator.toggle'
|
|
4891
5021
|
decorator: string
|
|
5022
|
+
offsets?: {
|
|
5023
|
+
anchor: BlockOffset_2
|
|
5024
|
+
focus: BlockOffset_2
|
|
5025
|
+
}
|
|
4892
5026
|
}
|
|
4893
5027
|
| {
|
|
4894
5028
|
type: 'delete'
|
|
@@ -5033,22 +5167,26 @@ declare const editorMachine: StateMachine<
|
|
|
5033
5167
|
mimeType: `${string}/${string}`
|
|
5034
5168
|
reason: string
|
|
5035
5169
|
} & {
|
|
5036
|
-
originEvent:
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5170
|
+
originEvent:
|
|
5171
|
+
| PickFromUnion_2<
|
|
5172
|
+
NativeBehaviorEvent,
|
|
5173
|
+
'type',
|
|
5174
|
+
'drag.drop' | 'clipboard.paste'
|
|
5175
|
+
>
|
|
5176
|
+
| InputBehaviorEvent_2
|
|
5041
5177
|
})
|
|
5042
5178
|
| ({
|
|
5043
5179
|
type: 'deserialization.success'
|
|
5044
5180
|
data: Array<PortableTextBlock>
|
|
5045
5181
|
mimeType: `${string}/${string}`
|
|
5046
5182
|
} & {
|
|
5047
|
-
originEvent:
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5183
|
+
originEvent:
|
|
5184
|
+
| PickFromUnion_2<
|
|
5185
|
+
NativeBehaviorEvent,
|
|
5186
|
+
'type',
|
|
5187
|
+
'drag.drop' | 'clipboard.paste'
|
|
5188
|
+
>
|
|
5189
|
+
| InputBehaviorEvent_2
|
|
5052
5190
|
})
|
|
5053
5191
|
| {
|
|
5054
5192
|
type: 'serialization.success'
|
|
@@ -5193,7 +5331,7 @@ declare const editorMachine: StateMachine<
|
|
|
5193
5331
|
}
|
|
5194
5332
|
| {
|
|
5195
5333
|
type: 'dragstart'
|
|
5196
|
-
origin: EventPosition
|
|
5334
|
+
origin: Pick<EventPosition, 'selection'>
|
|
5197
5335
|
ghost?: HTMLElement
|
|
5198
5336
|
}
|
|
5199
5337
|
| {
|
|
@@ -5265,6 +5403,10 @@ declare const editorMachine: StateMachine<
|
|
|
5265
5403
|
| {
|
|
5266
5404
|
type: 'decorator.toggle'
|
|
5267
5405
|
decorator: string
|
|
5406
|
+
offsets?: {
|
|
5407
|
+
anchor: BlockOffset_2
|
|
5408
|
+
focus: BlockOffset_2
|
|
5409
|
+
}
|
|
5268
5410
|
}
|
|
5269
5411
|
| {
|
|
5270
5412
|
type: 'delete'
|
|
@@ -5409,22 +5551,26 @@ declare const editorMachine: StateMachine<
|
|
|
5409
5551
|
mimeType: `${string}/${string}`
|
|
5410
5552
|
reason: string
|
|
5411
5553
|
} & {
|
|
5412
|
-
originEvent:
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5554
|
+
originEvent:
|
|
5555
|
+
| PickFromUnion_2<
|
|
5556
|
+
NativeBehaviorEvent,
|
|
5557
|
+
'type',
|
|
5558
|
+
'drag.drop' | 'clipboard.paste'
|
|
5559
|
+
>
|
|
5560
|
+
| InputBehaviorEvent_2
|
|
5417
5561
|
})
|
|
5418
5562
|
| ({
|
|
5419
5563
|
type: 'deserialization.success'
|
|
5420
5564
|
data: Array<PortableTextBlock>
|
|
5421
5565
|
mimeType: `${string}/${string}`
|
|
5422
5566
|
} & {
|
|
5423
|
-
originEvent:
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5567
|
+
originEvent:
|
|
5568
|
+
| PickFromUnion_2<
|
|
5569
|
+
NativeBehaviorEvent,
|
|
5570
|
+
'type',
|
|
5571
|
+
'drag.drop' | 'clipboard.paste'
|
|
5572
|
+
>
|
|
5573
|
+
| InputBehaviorEvent_2
|
|
5428
5574
|
})
|
|
5429
5575
|
| {
|
|
5430
5576
|
type: 'serialization.success'
|
|
@@ -5514,7 +5660,7 @@ declare const editorMachine: StateMachine<
|
|
|
5514
5660
|
value: Array<PortableTextBlock> | undefined
|
|
5515
5661
|
internalDrag?: {
|
|
5516
5662
|
ghost?: HTMLElement
|
|
5517
|
-
origin: EventPosition
|
|
5663
|
+
origin: Pick<EventPosition, 'selection'>
|
|
5518
5664
|
}
|
|
5519
5665
|
},
|
|
5520
5666
|
{
|
|
@@ -5579,6 +5725,10 @@ declare const editorMachine: StateMachine<
|
|
|
5579
5725
|
| {
|
|
5580
5726
|
type: 'decorator.toggle'
|
|
5581
5727
|
decorator: string
|
|
5728
|
+
offsets?: {
|
|
5729
|
+
anchor: BlockOffset_2
|
|
5730
|
+
focus: BlockOffset_2
|
|
5731
|
+
}
|
|
5582
5732
|
}
|
|
5583
5733
|
| {
|
|
5584
5734
|
type: 'delete'
|
|
@@ -5723,22 +5873,26 @@ declare const editorMachine: StateMachine<
|
|
|
5723
5873
|
mimeType: `${string}/${string}`
|
|
5724
5874
|
reason: string
|
|
5725
5875
|
} & {
|
|
5726
|
-
originEvent:
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5876
|
+
originEvent:
|
|
5877
|
+
| PickFromUnion_2<
|
|
5878
|
+
NativeBehaviorEvent,
|
|
5879
|
+
'type',
|
|
5880
|
+
'drag.drop' | 'clipboard.paste'
|
|
5881
|
+
>
|
|
5882
|
+
| InputBehaviorEvent_2
|
|
5731
5883
|
})
|
|
5732
5884
|
| ({
|
|
5733
5885
|
type: 'deserialization.success'
|
|
5734
5886
|
data: Array<PortableTextBlock>
|
|
5735
5887
|
mimeType: `${string}/${string}`
|
|
5736
5888
|
} & {
|
|
5737
|
-
originEvent:
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
|
|
5889
|
+
originEvent:
|
|
5890
|
+
| PickFromUnion_2<
|
|
5891
|
+
NativeBehaviorEvent,
|
|
5892
|
+
'type',
|
|
5893
|
+
'drag.drop' | 'clipboard.paste'
|
|
5894
|
+
>
|
|
5895
|
+
| InputBehaviorEvent_2
|
|
5742
5896
|
})
|
|
5743
5897
|
| {
|
|
5744
5898
|
type: 'serialization.success'
|
|
@@ -5883,7 +6037,7 @@ declare const editorMachine: StateMachine<
|
|
|
5883
6037
|
}
|
|
5884
6038
|
| {
|
|
5885
6039
|
type: 'dragstart'
|
|
5886
|
-
origin: EventPosition
|
|
6040
|
+
origin: Pick<EventPosition, 'selection'>
|
|
5887
6041
|
ghost?: HTMLElement
|
|
5888
6042
|
}
|
|
5889
6043
|
| {
|
|
@@ -5912,7 +6066,7 @@ declare const editorMachine: StateMachine<
|
|
|
5912
6066
|
value: Array<PortableTextBlock> | undefined
|
|
5913
6067
|
internalDrag?: {
|
|
5914
6068
|
ghost?: HTMLElement
|
|
5915
|
-
origin: EventPosition
|
|
6069
|
+
origin: Pick<EventPosition, 'selection'>
|
|
5916
6070
|
}
|
|
5917
6071
|
},
|
|
5918
6072
|
{
|
|
@@ -5977,6 +6131,10 @@ declare const editorMachine: StateMachine<
|
|
|
5977
6131
|
| {
|
|
5978
6132
|
type: 'decorator.toggle'
|
|
5979
6133
|
decorator: string
|
|
6134
|
+
offsets?: {
|
|
6135
|
+
anchor: BlockOffset_2
|
|
6136
|
+
focus: BlockOffset_2
|
|
6137
|
+
}
|
|
5980
6138
|
}
|
|
5981
6139
|
| {
|
|
5982
6140
|
type: 'delete'
|
|
@@ -6121,22 +6279,26 @@ declare const editorMachine: StateMachine<
|
|
|
6121
6279
|
mimeType: `${string}/${string}`
|
|
6122
6280
|
reason: string
|
|
6123
6281
|
} & {
|
|
6124
|
-
originEvent:
|
|
6125
|
-
|
|
6126
|
-
|
|
6127
|
-
|
|
6128
|
-
|
|
6282
|
+
originEvent:
|
|
6283
|
+
| PickFromUnion_2<
|
|
6284
|
+
NativeBehaviorEvent,
|
|
6285
|
+
'type',
|
|
6286
|
+
'drag.drop' | 'clipboard.paste'
|
|
6287
|
+
>
|
|
6288
|
+
| InputBehaviorEvent_2
|
|
6129
6289
|
})
|
|
6130
6290
|
| ({
|
|
6131
6291
|
type: 'deserialization.success'
|
|
6132
6292
|
data: Array<PortableTextBlock>
|
|
6133
6293
|
mimeType: `${string}/${string}`
|
|
6134
6294
|
} & {
|
|
6135
|
-
originEvent:
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
|
|
6295
|
+
originEvent:
|
|
6296
|
+
| PickFromUnion_2<
|
|
6297
|
+
NativeBehaviorEvent,
|
|
6298
|
+
'type',
|
|
6299
|
+
'drag.drop' | 'clipboard.paste'
|
|
6300
|
+
>
|
|
6301
|
+
| InputBehaviorEvent_2
|
|
6140
6302
|
})
|
|
6141
6303
|
| {
|
|
6142
6304
|
type: 'serialization.success'
|
|
@@ -6281,7 +6443,7 @@ declare const editorMachine: StateMachine<
|
|
|
6281
6443
|
}
|
|
6282
6444
|
| {
|
|
6283
6445
|
type: 'dragstart'
|
|
6284
|
-
origin: EventPosition
|
|
6446
|
+
origin: Pick<EventPosition, 'selection'>
|
|
6285
6447
|
ghost?: HTMLElement
|
|
6286
6448
|
}
|
|
6287
6449
|
| {
|
|
@@ -6353,6 +6515,10 @@ declare const editorMachine: StateMachine<
|
|
|
6353
6515
|
| {
|
|
6354
6516
|
type: 'decorator.toggle'
|
|
6355
6517
|
decorator: string
|
|
6518
|
+
offsets?: {
|
|
6519
|
+
anchor: BlockOffset_2
|
|
6520
|
+
focus: BlockOffset_2
|
|
6521
|
+
}
|
|
6356
6522
|
}
|
|
6357
6523
|
| {
|
|
6358
6524
|
type: 'delete'
|
|
@@ -6497,22 +6663,26 @@ declare const editorMachine: StateMachine<
|
|
|
6497
6663
|
mimeType: `${string}/${string}`
|
|
6498
6664
|
reason: string
|
|
6499
6665
|
} & {
|
|
6500
|
-
originEvent:
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6666
|
+
originEvent:
|
|
6667
|
+
| PickFromUnion_2<
|
|
6668
|
+
NativeBehaviorEvent,
|
|
6669
|
+
'type',
|
|
6670
|
+
'drag.drop' | 'clipboard.paste'
|
|
6671
|
+
>
|
|
6672
|
+
| InputBehaviorEvent_2
|
|
6505
6673
|
})
|
|
6506
6674
|
| ({
|
|
6507
6675
|
type: 'deserialization.success'
|
|
6508
6676
|
data: Array<PortableTextBlock>
|
|
6509
6677
|
mimeType: `${string}/${string}`
|
|
6510
6678
|
} & {
|
|
6511
|
-
originEvent:
|
|
6512
|
-
|
|
6513
|
-
|
|
6514
|
-
|
|
6515
|
-
|
|
6679
|
+
originEvent:
|
|
6680
|
+
| PickFromUnion_2<
|
|
6681
|
+
NativeBehaviorEvent,
|
|
6682
|
+
'type',
|
|
6683
|
+
'drag.drop' | 'clipboard.paste'
|
|
6684
|
+
>
|
|
6685
|
+
| InputBehaviorEvent_2
|
|
6516
6686
|
})
|
|
6517
6687
|
| {
|
|
6518
6688
|
type: 'serialization.success'
|
|
@@ -6602,7 +6772,7 @@ declare const editorMachine: StateMachine<
|
|
|
6602
6772
|
value: Array<PortableTextBlock> | undefined
|
|
6603
6773
|
internalDrag?: {
|
|
6604
6774
|
ghost?: HTMLElement
|
|
6605
|
-
origin: EventPosition
|
|
6775
|
+
origin: Pick<EventPosition, 'selection'>
|
|
6606
6776
|
}
|
|
6607
6777
|
},
|
|
6608
6778
|
{
|
|
@@ -6667,8 +6837,12 @@ declare const editorMachine: StateMachine<
|
|
|
6667
6837
|
| {
|
|
6668
6838
|
type: 'decorator.toggle'
|
|
6669
6839
|
decorator: string
|
|
6670
|
-
|
|
6671
|
-
|
|
6840
|
+
offsets?: {
|
|
6841
|
+
anchor: BlockOffset_2
|
|
6842
|
+
focus: BlockOffset_2
|
|
6843
|
+
}
|
|
6844
|
+
}
|
|
6845
|
+
| {
|
|
6672
6846
|
type: 'delete'
|
|
6673
6847
|
selection: NonNullable<EditorSelection>
|
|
6674
6848
|
}
|
|
@@ -6811,22 +6985,26 @@ declare const editorMachine: StateMachine<
|
|
|
6811
6985
|
mimeType: `${string}/${string}`
|
|
6812
6986
|
reason: string
|
|
6813
6987
|
} & {
|
|
6814
|
-
originEvent:
|
|
6815
|
-
|
|
6816
|
-
|
|
6817
|
-
|
|
6818
|
-
|
|
6988
|
+
originEvent:
|
|
6989
|
+
| PickFromUnion_2<
|
|
6990
|
+
NativeBehaviorEvent,
|
|
6991
|
+
'type',
|
|
6992
|
+
'drag.drop' | 'clipboard.paste'
|
|
6993
|
+
>
|
|
6994
|
+
| InputBehaviorEvent_2
|
|
6819
6995
|
})
|
|
6820
6996
|
| ({
|
|
6821
6997
|
type: 'deserialization.success'
|
|
6822
6998
|
data: Array<PortableTextBlock>
|
|
6823
6999
|
mimeType: `${string}/${string}`
|
|
6824
7000
|
} & {
|
|
6825
|
-
originEvent:
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
|
|
6829
|
-
|
|
7001
|
+
originEvent:
|
|
7002
|
+
| PickFromUnion_2<
|
|
7003
|
+
NativeBehaviorEvent,
|
|
7004
|
+
'type',
|
|
7005
|
+
'drag.drop' | 'clipboard.paste'
|
|
7006
|
+
>
|
|
7007
|
+
| InputBehaviorEvent_2
|
|
6830
7008
|
})
|
|
6831
7009
|
| {
|
|
6832
7010
|
type: 'serialization.success'
|
|
@@ -6971,7 +7149,7 @@ declare const editorMachine: StateMachine<
|
|
|
6971
7149
|
}
|
|
6972
7150
|
| {
|
|
6973
7151
|
type: 'dragstart'
|
|
6974
|
-
origin: EventPosition
|
|
7152
|
+
origin: Pick<EventPosition, 'selection'>
|
|
6975
7153
|
ghost?: HTMLElement
|
|
6976
7154
|
}
|
|
6977
7155
|
| {
|
|
@@ -7043,6 +7221,10 @@ declare const editorMachine: StateMachine<
|
|
|
7043
7221
|
| {
|
|
7044
7222
|
type: 'decorator.toggle'
|
|
7045
7223
|
decorator: string
|
|
7224
|
+
offsets?: {
|
|
7225
|
+
anchor: BlockOffset_2
|
|
7226
|
+
focus: BlockOffset_2
|
|
7227
|
+
}
|
|
7046
7228
|
}
|
|
7047
7229
|
| {
|
|
7048
7230
|
type: 'delete'
|
|
@@ -7187,22 +7369,26 @@ declare const editorMachine: StateMachine<
|
|
|
7187
7369
|
mimeType: `${string}/${string}`
|
|
7188
7370
|
reason: string
|
|
7189
7371
|
} & {
|
|
7190
|
-
originEvent:
|
|
7191
|
-
|
|
7192
|
-
|
|
7193
|
-
|
|
7194
|
-
|
|
7372
|
+
originEvent:
|
|
7373
|
+
| PickFromUnion_2<
|
|
7374
|
+
NativeBehaviorEvent,
|
|
7375
|
+
'type',
|
|
7376
|
+
'drag.drop' | 'clipboard.paste'
|
|
7377
|
+
>
|
|
7378
|
+
| InputBehaviorEvent_2
|
|
7195
7379
|
})
|
|
7196
7380
|
| ({
|
|
7197
7381
|
type: 'deserialization.success'
|
|
7198
7382
|
data: Array<PortableTextBlock>
|
|
7199
7383
|
mimeType: `${string}/${string}`
|
|
7200
7384
|
} & {
|
|
7201
|
-
originEvent:
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
|
|
7205
|
-
|
|
7385
|
+
originEvent:
|
|
7386
|
+
| PickFromUnion_2<
|
|
7387
|
+
NativeBehaviorEvent,
|
|
7388
|
+
'type',
|
|
7389
|
+
'drag.drop' | 'clipboard.paste'
|
|
7390
|
+
>
|
|
7391
|
+
| InputBehaviorEvent_2
|
|
7206
7392
|
})
|
|
7207
7393
|
| {
|
|
7208
7394
|
type: 'serialization.success'
|
|
@@ -7291,7 +7477,7 @@ declare const editorMachine: StateMachine<
|
|
|
7291
7477
|
value: Array<PortableTextBlock> | undefined
|
|
7292
7478
|
internalDrag?: {
|
|
7293
7479
|
ghost?: HTMLElement
|
|
7294
|
-
origin: EventPosition
|
|
7480
|
+
origin: Pick<EventPosition, 'selection'>
|
|
7295
7481
|
}
|
|
7296
7482
|
},
|
|
7297
7483
|
{
|
|
@@ -7355,6 +7541,10 @@ declare const editorMachine: StateMachine<
|
|
|
7355
7541
|
| {
|
|
7356
7542
|
type: 'decorator.toggle'
|
|
7357
7543
|
decorator: string
|
|
7544
|
+
offsets?: {
|
|
7545
|
+
anchor: BlockOffset_2
|
|
7546
|
+
focus: BlockOffset_2
|
|
7547
|
+
}
|
|
7358
7548
|
}
|
|
7359
7549
|
| {
|
|
7360
7550
|
type: 'delete'
|
|
@@ -7499,22 +7689,26 @@ declare const editorMachine: StateMachine<
|
|
|
7499
7689
|
mimeType: `${string}/${string}`
|
|
7500
7690
|
reason: string
|
|
7501
7691
|
} & {
|
|
7502
|
-
originEvent:
|
|
7503
|
-
|
|
7504
|
-
|
|
7505
|
-
|
|
7506
|
-
|
|
7692
|
+
originEvent:
|
|
7693
|
+
| PickFromUnion_2<
|
|
7694
|
+
NativeBehaviorEvent,
|
|
7695
|
+
'type',
|
|
7696
|
+
'drag.drop' | 'clipboard.paste'
|
|
7697
|
+
>
|
|
7698
|
+
| InputBehaviorEvent_2
|
|
7507
7699
|
})
|
|
7508
7700
|
| ({
|
|
7509
7701
|
type: 'deserialization.success'
|
|
7510
7702
|
data: Array<PortableTextBlock>
|
|
7511
7703
|
mimeType: `${string}/${string}`
|
|
7512
7704
|
} & {
|
|
7513
|
-
originEvent:
|
|
7514
|
-
|
|
7515
|
-
|
|
7516
|
-
|
|
7517
|
-
|
|
7705
|
+
originEvent:
|
|
7706
|
+
| PickFromUnion_2<
|
|
7707
|
+
NativeBehaviorEvent,
|
|
7708
|
+
'type',
|
|
7709
|
+
'drag.drop' | 'clipboard.paste'
|
|
7710
|
+
>
|
|
7711
|
+
| InputBehaviorEvent_2
|
|
7518
7712
|
})
|
|
7519
7713
|
| {
|
|
7520
7714
|
type: 'serialization.success'
|
|
@@ -7659,7 +7853,7 @@ declare const editorMachine: StateMachine<
|
|
|
7659
7853
|
}
|
|
7660
7854
|
| {
|
|
7661
7855
|
type: 'dragstart'
|
|
7662
|
-
origin: EventPosition
|
|
7856
|
+
origin: Pick<EventPosition, 'selection'>
|
|
7663
7857
|
ghost?: HTMLElement
|
|
7664
7858
|
}
|
|
7665
7859
|
| {
|
|
@@ -7731,6 +7925,10 @@ declare const editorMachine: StateMachine<
|
|
|
7731
7925
|
| {
|
|
7732
7926
|
type: 'decorator.toggle'
|
|
7733
7927
|
decorator: string
|
|
7928
|
+
offsets?: {
|
|
7929
|
+
anchor: BlockOffset_2
|
|
7930
|
+
focus: BlockOffset_2
|
|
7931
|
+
}
|
|
7734
7932
|
}
|
|
7735
7933
|
| {
|
|
7736
7934
|
type: 'delete'
|
|
@@ -7875,22 +8073,26 @@ declare const editorMachine: StateMachine<
|
|
|
7875
8073
|
mimeType: `${string}/${string}`
|
|
7876
8074
|
reason: string
|
|
7877
8075
|
} & {
|
|
7878
|
-
originEvent:
|
|
7879
|
-
|
|
7880
|
-
|
|
7881
|
-
|
|
7882
|
-
|
|
8076
|
+
originEvent:
|
|
8077
|
+
| PickFromUnion_2<
|
|
8078
|
+
NativeBehaviorEvent,
|
|
8079
|
+
'type',
|
|
8080
|
+
'drag.drop' | 'clipboard.paste'
|
|
8081
|
+
>
|
|
8082
|
+
| InputBehaviorEvent_2
|
|
7883
8083
|
})
|
|
7884
8084
|
| ({
|
|
7885
8085
|
type: 'deserialization.success'
|
|
7886
8086
|
data: Array<PortableTextBlock>
|
|
7887
8087
|
mimeType: `${string}/${string}`
|
|
7888
8088
|
} & {
|
|
7889
|
-
originEvent:
|
|
7890
|
-
|
|
7891
|
-
|
|
7892
|
-
|
|
7893
|
-
|
|
8089
|
+
originEvent:
|
|
8090
|
+
| PickFromUnion_2<
|
|
8091
|
+
NativeBehaviorEvent,
|
|
8092
|
+
'type',
|
|
8093
|
+
'drag.drop' | 'clipboard.paste'
|
|
8094
|
+
>
|
|
8095
|
+
| InputBehaviorEvent_2
|
|
7894
8096
|
})
|
|
7895
8097
|
| {
|
|
7896
8098
|
type: 'serialization.success'
|
|
@@ -7979,7 +8181,7 @@ declare const editorMachine: StateMachine<
|
|
|
7979
8181
|
value: Array<PortableTextBlock> | undefined
|
|
7980
8182
|
internalDrag?: {
|
|
7981
8183
|
ghost?: HTMLElement
|
|
7982
|
-
origin: EventPosition
|
|
8184
|
+
origin: Pick<EventPosition, 'selection'>
|
|
7983
8185
|
}
|
|
7984
8186
|
},
|
|
7985
8187
|
{
|
|
@@ -8044,6 +8246,10 @@ declare const editorMachine: StateMachine<
|
|
|
8044
8246
|
| {
|
|
8045
8247
|
type: 'decorator.toggle'
|
|
8046
8248
|
decorator: string
|
|
8249
|
+
offsets?: {
|
|
8250
|
+
anchor: BlockOffset_2
|
|
8251
|
+
focus: BlockOffset_2
|
|
8252
|
+
}
|
|
8047
8253
|
}
|
|
8048
8254
|
| {
|
|
8049
8255
|
type: 'delete'
|
|
@@ -8188,22 +8394,26 @@ declare const editorMachine: StateMachine<
|
|
|
8188
8394
|
mimeType: `${string}/${string}`
|
|
8189
8395
|
reason: string
|
|
8190
8396
|
} & {
|
|
8191
|
-
originEvent:
|
|
8192
|
-
|
|
8193
|
-
|
|
8194
|
-
|
|
8195
|
-
|
|
8397
|
+
originEvent:
|
|
8398
|
+
| PickFromUnion_2<
|
|
8399
|
+
NativeBehaviorEvent,
|
|
8400
|
+
'type',
|
|
8401
|
+
'drag.drop' | 'clipboard.paste'
|
|
8402
|
+
>
|
|
8403
|
+
| InputBehaviorEvent_2
|
|
8196
8404
|
})
|
|
8197
8405
|
| ({
|
|
8198
8406
|
type: 'deserialization.success'
|
|
8199
8407
|
data: Array<PortableTextBlock>
|
|
8200
8408
|
mimeType: `${string}/${string}`
|
|
8201
8409
|
} & {
|
|
8202
|
-
originEvent:
|
|
8203
|
-
|
|
8204
|
-
|
|
8205
|
-
|
|
8206
|
-
|
|
8410
|
+
originEvent:
|
|
8411
|
+
| PickFromUnion_2<
|
|
8412
|
+
NativeBehaviorEvent,
|
|
8413
|
+
'type',
|
|
8414
|
+
'drag.drop' | 'clipboard.paste'
|
|
8415
|
+
>
|
|
8416
|
+
| InputBehaviorEvent_2
|
|
8207
8417
|
})
|
|
8208
8418
|
| {
|
|
8209
8419
|
type: 'serialization.success'
|
|
@@ -8348,7 +8558,7 @@ declare const editorMachine: StateMachine<
|
|
|
8348
8558
|
}
|
|
8349
8559
|
| {
|
|
8350
8560
|
type: 'dragstart'
|
|
8351
|
-
origin: EventPosition
|
|
8561
|
+
origin: Pick<EventPosition, 'selection'>
|
|
8352
8562
|
ghost?: HTMLElement
|
|
8353
8563
|
}
|
|
8354
8564
|
| {
|
|
@@ -8420,6 +8630,10 @@ declare const editorMachine: StateMachine<
|
|
|
8420
8630
|
| {
|
|
8421
8631
|
type: 'decorator.toggle'
|
|
8422
8632
|
decorator: string
|
|
8633
|
+
offsets?: {
|
|
8634
|
+
anchor: BlockOffset_2
|
|
8635
|
+
focus: BlockOffset_2
|
|
8636
|
+
}
|
|
8423
8637
|
}
|
|
8424
8638
|
| {
|
|
8425
8639
|
type: 'delete'
|
|
@@ -8564,22 +8778,26 @@ declare const editorMachine: StateMachine<
|
|
|
8564
8778
|
mimeType: `${string}/${string}`
|
|
8565
8779
|
reason: string
|
|
8566
8780
|
} & {
|
|
8567
|
-
originEvent:
|
|
8568
|
-
|
|
8569
|
-
|
|
8570
|
-
|
|
8571
|
-
|
|
8781
|
+
originEvent:
|
|
8782
|
+
| PickFromUnion_2<
|
|
8783
|
+
NativeBehaviorEvent,
|
|
8784
|
+
'type',
|
|
8785
|
+
'drag.drop' | 'clipboard.paste'
|
|
8786
|
+
>
|
|
8787
|
+
| InputBehaviorEvent_2
|
|
8572
8788
|
})
|
|
8573
8789
|
| ({
|
|
8574
8790
|
type: 'deserialization.success'
|
|
8575
8791
|
data: Array<PortableTextBlock>
|
|
8576
8792
|
mimeType: `${string}/${string}`
|
|
8577
8793
|
} & {
|
|
8578
|
-
originEvent:
|
|
8579
|
-
|
|
8580
|
-
|
|
8581
|
-
|
|
8582
|
-
|
|
8794
|
+
originEvent:
|
|
8795
|
+
| PickFromUnion_2<
|
|
8796
|
+
NativeBehaviorEvent,
|
|
8797
|
+
'type',
|
|
8798
|
+
'drag.drop' | 'clipboard.paste'
|
|
8799
|
+
>
|
|
8800
|
+
| InputBehaviorEvent_2
|
|
8583
8801
|
})
|
|
8584
8802
|
| {
|
|
8585
8803
|
type: 'serialization.success'
|
|
@@ -8674,7 +8892,7 @@ declare const editorMachine: StateMachine<
|
|
|
8674
8892
|
value: Array<PortableTextBlock> | undefined
|
|
8675
8893
|
internalDrag?: {
|
|
8676
8894
|
ghost?: HTMLElement
|
|
8677
|
-
origin: EventPosition
|
|
8895
|
+
origin: Pick<EventPosition, 'selection'>
|
|
8678
8896
|
}
|
|
8679
8897
|
},
|
|
8680
8898
|
PatchesEvent,
|
|
@@ -8736,6 +8954,10 @@ declare const editorMachine: StateMachine<
|
|
|
8736
8954
|
| {
|
|
8737
8955
|
type: 'decorator.toggle'
|
|
8738
8956
|
decorator: string
|
|
8957
|
+
offsets?: {
|
|
8958
|
+
anchor: BlockOffset_2
|
|
8959
|
+
focus: BlockOffset_2
|
|
8960
|
+
}
|
|
8739
8961
|
}
|
|
8740
8962
|
| {
|
|
8741
8963
|
type: 'delete'
|
|
@@ -8880,22 +9102,26 @@ declare const editorMachine: StateMachine<
|
|
|
8880
9102
|
mimeType: `${string}/${string}`
|
|
8881
9103
|
reason: string
|
|
8882
9104
|
} & {
|
|
8883
|
-
originEvent:
|
|
8884
|
-
|
|
8885
|
-
|
|
8886
|
-
|
|
8887
|
-
|
|
9105
|
+
originEvent:
|
|
9106
|
+
| PickFromUnion_2<
|
|
9107
|
+
NativeBehaviorEvent,
|
|
9108
|
+
'type',
|
|
9109
|
+
'drag.drop' | 'clipboard.paste'
|
|
9110
|
+
>
|
|
9111
|
+
| InputBehaviorEvent_2
|
|
8888
9112
|
})
|
|
8889
9113
|
| ({
|
|
8890
9114
|
type: 'deserialization.success'
|
|
8891
9115
|
data: Array<PortableTextBlock>
|
|
8892
9116
|
mimeType: `${string}/${string}`
|
|
8893
9117
|
} & {
|
|
8894
|
-
originEvent:
|
|
8895
|
-
|
|
8896
|
-
|
|
8897
|
-
|
|
8898
|
-
|
|
9118
|
+
originEvent:
|
|
9119
|
+
| PickFromUnion_2<
|
|
9120
|
+
NativeBehaviorEvent,
|
|
9121
|
+
'type',
|
|
9122
|
+
'drag.drop' | 'clipboard.paste'
|
|
9123
|
+
>
|
|
9124
|
+
| InputBehaviorEvent_2
|
|
8899
9125
|
})
|
|
8900
9126
|
| {
|
|
8901
9127
|
type: 'serialization.success'
|
|
@@ -9040,7 +9266,7 @@ declare const editorMachine: StateMachine<
|
|
|
9040
9266
|
}
|
|
9041
9267
|
| {
|
|
9042
9268
|
type: 'dragstart'
|
|
9043
|
-
origin: EventPosition
|
|
9269
|
+
origin: Pick<EventPosition, 'selection'>
|
|
9044
9270
|
ghost?: HTMLElement
|
|
9045
9271
|
}
|
|
9046
9272
|
| {
|
|
@@ -9112,6 +9338,10 @@ declare const editorMachine: StateMachine<
|
|
|
9112
9338
|
| {
|
|
9113
9339
|
type: 'decorator.toggle'
|
|
9114
9340
|
decorator: string
|
|
9341
|
+
offsets?: {
|
|
9342
|
+
anchor: BlockOffset_2
|
|
9343
|
+
focus: BlockOffset_2
|
|
9344
|
+
}
|
|
9115
9345
|
}
|
|
9116
9346
|
| {
|
|
9117
9347
|
type: 'delete'
|
|
@@ -9256,22 +9486,26 @@ declare const editorMachine: StateMachine<
|
|
|
9256
9486
|
mimeType: `${string}/${string}`
|
|
9257
9487
|
reason: string
|
|
9258
9488
|
} & {
|
|
9259
|
-
originEvent:
|
|
9260
|
-
|
|
9261
|
-
|
|
9262
|
-
|
|
9263
|
-
|
|
9489
|
+
originEvent:
|
|
9490
|
+
| PickFromUnion_2<
|
|
9491
|
+
NativeBehaviorEvent,
|
|
9492
|
+
'type',
|
|
9493
|
+
'drag.drop' | 'clipboard.paste'
|
|
9494
|
+
>
|
|
9495
|
+
| InputBehaviorEvent_2
|
|
9264
9496
|
})
|
|
9265
9497
|
| ({
|
|
9266
9498
|
type: 'deserialization.success'
|
|
9267
9499
|
data: Array<PortableTextBlock>
|
|
9268
9500
|
mimeType: `${string}/${string}`
|
|
9269
9501
|
} & {
|
|
9270
|
-
originEvent:
|
|
9271
|
-
|
|
9272
|
-
|
|
9273
|
-
|
|
9274
|
-
|
|
9502
|
+
originEvent:
|
|
9503
|
+
| PickFromUnion_2<
|
|
9504
|
+
NativeBehaviorEvent,
|
|
9505
|
+
'type',
|
|
9506
|
+
'drag.drop' | 'clipboard.paste'
|
|
9507
|
+
>
|
|
9508
|
+
| InputBehaviorEvent_2
|
|
9275
9509
|
})
|
|
9276
9510
|
| {
|
|
9277
9511
|
type: 'serialization.success'
|
|
@@ -9363,7 +9597,7 @@ declare const editorMachine: StateMachine<
|
|
|
9363
9597
|
value: Array<PortableTextBlock> | undefined
|
|
9364
9598
|
internalDrag?: {
|
|
9365
9599
|
ghost?: HTMLElement
|
|
9366
|
-
origin: EventPosition
|
|
9600
|
+
origin: Pick<EventPosition, 'selection'>
|
|
9367
9601
|
}
|
|
9368
9602
|
},
|
|
9369
9603
|
{
|
|
@@ -9428,6 +9662,10 @@ declare const editorMachine: StateMachine<
|
|
|
9428
9662
|
| {
|
|
9429
9663
|
type: 'decorator.toggle'
|
|
9430
9664
|
decorator: string
|
|
9665
|
+
offsets?: {
|
|
9666
|
+
anchor: BlockOffset_2
|
|
9667
|
+
focus: BlockOffset_2
|
|
9668
|
+
}
|
|
9431
9669
|
}
|
|
9432
9670
|
| {
|
|
9433
9671
|
type: 'delete'
|
|
@@ -9572,22 +9810,26 @@ declare const editorMachine: StateMachine<
|
|
|
9572
9810
|
mimeType: `${string}/${string}`
|
|
9573
9811
|
reason: string
|
|
9574
9812
|
} & {
|
|
9575
|
-
originEvent:
|
|
9576
|
-
|
|
9577
|
-
|
|
9578
|
-
|
|
9579
|
-
|
|
9813
|
+
originEvent:
|
|
9814
|
+
| PickFromUnion_2<
|
|
9815
|
+
NativeBehaviorEvent,
|
|
9816
|
+
'type',
|
|
9817
|
+
'drag.drop' | 'clipboard.paste'
|
|
9818
|
+
>
|
|
9819
|
+
| InputBehaviorEvent_2
|
|
9580
9820
|
})
|
|
9581
9821
|
| ({
|
|
9582
9822
|
type: 'deserialization.success'
|
|
9583
9823
|
data: Array<PortableTextBlock>
|
|
9584
9824
|
mimeType: `${string}/${string}`
|
|
9585
9825
|
} & {
|
|
9586
|
-
originEvent:
|
|
9587
|
-
|
|
9588
|
-
|
|
9589
|
-
|
|
9590
|
-
|
|
9826
|
+
originEvent:
|
|
9827
|
+
| PickFromUnion_2<
|
|
9828
|
+
NativeBehaviorEvent,
|
|
9829
|
+
'type',
|
|
9830
|
+
'drag.drop' | 'clipboard.paste'
|
|
9831
|
+
>
|
|
9832
|
+
| InputBehaviorEvent_2
|
|
9591
9833
|
})
|
|
9592
9834
|
| {
|
|
9593
9835
|
type: 'serialization.success'
|
|
@@ -9732,7 +9974,7 @@ declare const editorMachine: StateMachine<
|
|
|
9732
9974
|
}
|
|
9733
9975
|
| {
|
|
9734
9976
|
type: 'dragstart'
|
|
9735
|
-
origin: EventPosition
|
|
9977
|
+
origin: Pick<EventPosition, 'selection'>
|
|
9736
9978
|
ghost?: HTMLElement
|
|
9737
9979
|
}
|
|
9738
9980
|
| {
|
|
@@ -9766,7 +10008,7 @@ declare const editorMachine: StateMachine<
|
|
|
9766
10008
|
value: Array<PortableTextBlock> | undefined
|
|
9767
10009
|
internalDrag?: {
|
|
9768
10010
|
ghost?: HTMLElement
|
|
9769
|
-
origin: EventPosition
|
|
10011
|
+
origin: Pick<EventPosition, 'selection'>
|
|
9770
10012
|
}
|
|
9771
10013
|
},
|
|
9772
10014
|
{
|
|
@@ -9831,6 +10073,10 @@ declare const editorMachine: StateMachine<
|
|
|
9831
10073
|
| {
|
|
9832
10074
|
type: 'decorator.toggle'
|
|
9833
10075
|
decorator: string
|
|
10076
|
+
offsets?: {
|
|
10077
|
+
anchor: BlockOffset_2
|
|
10078
|
+
focus: BlockOffset_2
|
|
10079
|
+
}
|
|
9834
10080
|
}
|
|
9835
10081
|
| {
|
|
9836
10082
|
type: 'delete'
|
|
@@ -9975,22 +10221,26 @@ declare const editorMachine: StateMachine<
|
|
|
9975
10221
|
mimeType: `${string}/${string}`
|
|
9976
10222
|
reason: string
|
|
9977
10223
|
} & {
|
|
9978
|
-
originEvent:
|
|
9979
|
-
|
|
9980
|
-
|
|
9981
|
-
|
|
9982
|
-
|
|
10224
|
+
originEvent:
|
|
10225
|
+
| PickFromUnion_2<
|
|
10226
|
+
NativeBehaviorEvent,
|
|
10227
|
+
'type',
|
|
10228
|
+
'drag.drop' | 'clipboard.paste'
|
|
10229
|
+
>
|
|
10230
|
+
| InputBehaviorEvent_2
|
|
9983
10231
|
})
|
|
9984
10232
|
| ({
|
|
9985
10233
|
type: 'deserialization.success'
|
|
9986
10234
|
data: Array<PortableTextBlock>
|
|
9987
10235
|
mimeType: `${string}/${string}`
|
|
9988
10236
|
} & {
|
|
9989
|
-
originEvent:
|
|
9990
|
-
|
|
9991
|
-
|
|
9992
|
-
|
|
9993
|
-
|
|
10237
|
+
originEvent:
|
|
10238
|
+
| PickFromUnion_2<
|
|
10239
|
+
NativeBehaviorEvent,
|
|
10240
|
+
'type',
|
|
10241
|
+
'drag.drop' | 'clipboard.paste'
|
|
10242
|
+
>
|
|
10243
|
+
| InputBehaviorEvent_2
|
|
9994
10244
|
})
|
|
9995
10245
|
| {
|
|
9996
10246
|
type: 'serialization.success'
|
|
@@ -10135,7 +10385,7 @@ declare const editorMachine: StateMachine<
|
|
|
10135
10385
|
}
|
|
10136
10386
|
| {
|
|
10137
10387
|
type: 'dragstart'
|
|
10138
|
-
origin: EventPosition
|
|
10388
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10139
10389
|
ghost?: HTMLElement
|
|
10140
10390
|
}
|
|
10141
10391
|
| {
|
|
@@ -10166,7 +10416,7 @@ declare const editorMachine: StateMachine<
|
|
|
10166
10416
|
value: Array<PortableTextBlock> | undefined
|
|
10167
10417
|
internalDrag?: {
|
|
10168
10418
|
ghost?: HTMLElement
|
|
10169
|
-
origin: EventPosition
|
|
10419
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10170
10420
|
}
|
|
10171
10421
|
},
|
|
10172
10422
|
{
|
|
@@ -10231,6 +10481,10 @@ declare const editorMachine: StateMachine<
|
|
|
10231
10481
|
| {
|
|
10232
10482
|
type: 'decorator.toggle'
|
|
10233
10483
|
decorator: string
|
|
10484
|
+
offsets?: {
|
|
10485
|
+
anchor: BlockOffset_2
|
|
10486
|
+
focus: BlockOffset_2
|
|
10487
|
+
}
|
|
10234
10488
|
}
|
|
10235
10489
|
| {
|
|
10236
10490
|
type: 'delete'
|
|
@@ -10375,22 +10629,26 @@ declare const editorMachine: StateMachine<
|
|
|
10375
10629
|
mimeType: `${string}/${string}`
|
|
10376
10630
|
reason: string
|
|
10377
10631
|
} & {
|
|
10378
|
-
originEvent:
|
|
10379
|
-
|
|
10380
|
-
|
|
10381
|
-
|
|
10382
|
-
|
|
10632
|
+
originEvent:
|
|
10633
|
+
| PickFromUnion_2<
|
|
10634
|
+
NativeBehaviorEvent,
|
|
10635
|
+
'type',
|
|
10636
|
+
'drag.drop' | 'clipboard.paste'
|
|
10637
|
+
>
|
|
10638
|
+
| InputBehaviorEvent_2
|
|
10383
10639
|
})
|
|
10384
10640
|
| ({
|
|
10385
10641
|
type: 'deserialization.success'
|
|
10386
10642
|
data: Array<PortableTextBlock>
|
|
10387
10643
|
mimeType: `${string}/${string}`
|
|
10388
10644
|
} & {
|
|
10389
|
-
originEvent:
|
|
10390
|
-
|
|
10391
|
-
|
|
10392
|
-
|
|
10393
|
-
|
|
10645
|
+
originEvent:
|
|
10646
|
+
| PickFromUnion_2<
|
|
10647
|
+
NativeBehaviorEvent,
|
|
10648
|
+
'type',
|
|
10649
|
+
'drag.drop' | 'clipboard.paste'
|
|
10650
|
+
>
|
|
10651
|
+
| InputBehaviorEvent_2
|
|
10394
10652
|
})
|
|
10395
10653
|
| {
|
|
10396
10654
|
type: 'serialization.success'
|
|
@@ -10535,7 +10793,7 @@ declare const editorMachine: StateMachine<
|
|
|
10535
10793
|
}
|
|
10536
10794
|
| {
|
|
10537
10795
|
type: 'dragstart'
|
|
10538
|
-
origin: EventPosition
|
|
10796
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10539
10797
|
ghost?: HTMLElement
|
|
10540
10798
|
}
|
|
10541
10799
|
| {
|
|
@@ -10578,7 +10836,7 @@ declare const editorMachine: StateMachine<
|
|
|
10578
10836
|
value: Array<PortableTextBlock> | undefined
|
|
10579
10837
|
internalDrag?: {
|
|
10580
10838
|
ghost?: HTMLElement
|
|
10581
|
-
origin: EventPosition
|
|
10839
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10582
10840
|
}
|
|
10583
10841
|
},
|
|
10584
10842
|
{
|
|
@@ -10619,7 +10877,7 @@ declare const editorMachine: StateMachine<
|
|
|
10619
10877
|
value: Array<PortableTextBlock> | undefined
|
|
10620
10878
|
internalDrag?: {
|
|
10621
10879
|
ghost?: HTMLElement
|
|
10622
|
-
origin: EventPosition
|
|
10880
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10623
10881
|
}
|
|
10624
10882
|
},
|
|
10625
10883
|
{
|
|
@@ -10651,7 +10909,7 @@ declare const editorMachine: StateMachine<
|
|
|
10651
10909
|
value: Array<PortableTextBlock> | undefined
|
|
10652
10910
|
internalDrag?: {
|
|
10653
10911
|
ghost?: HTMLElement
|
|
10654
|
-
origin: EventPosition
|
|
10912
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10655
10913
|
}
|
|
10656
10914
|
},
|
|
10657
10915
|
{
|
|
@@ -10684,7 +10942,7 @@ declare const editorMachine: StateMachine<
|
|
|
10684
10942
|
value: Array<PortableTextBlock> | undefined
|
|
10685
10943
|
internalDrag?: {
|
|
10686
10944
|
ghost?: HTMLElement
|
|
10687
|
-
origin: EventPosition
|
|
10945
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10688
10946
|
}
|
|
10689
10947
|
},
|
|
10690
10948
|
{
|
|
@@ -10715,7 +10973,7 @@ declare const editorMachine: StateMachine<
|
|
|
10715
10973
|
value: Array<PortableTextBlock> | undefined
|
|
10716
10974
|
internalDrag?: {
|
|
10717
10975
|
ghost?: HTMLElement
|
|
10718
|
-
origin: EventPosition
|
|
10976
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10719
10977
|
}
|
|
10720
10978
|
},
|
|
10721
10979
|
| {
|
|
@@ -10800,6 +11058,10 @@ declare const editorMachine: StateMachine<
|
|
|
10800
11058
|
| {
|
|
10801
11059
|
type: 'decorator.toggle'
|
|
10802
11060
|
decorator: string
|
|
11061
|
+
offsets?: {
|
|
11062
|
+
anchor: BlockOffset_2
|
|
11063
|
+
focus: BlockOffset_2
|
|
11064
|
+
}
|
|
10803
11065
|
}
|
|
10804
11066
|
| {
|
|
10805
11067
|
type: 'delete'
|
|
@@ -10944,22 +11206,26 @@ declare const editorMachine: StateMachine<
|
|
|
10944
11206
|
mimeType: `${string}/${string}`
|
|
10945
11207
|
reason: string
|
|
10946
11208
|
} & {
|
|
10947
|
-
originEvent:
|
|
10948
|
-
|
|
10949
|
-
|
|
10950
|
-
|
|
10951
|
-
|
|
11209
|
+
originEvent:
|
|
11210
|
+
| PickFromUnion_2<
|
|
11211
|
+
NativeBehaviorEvent,
|
|
11212
|
+
'type',
|
|
11213
|
+
'drag.drop' | 'clipboard.paste'
|
|
11214
|
+
>
|
|
11215
|
+
| InputBehaviorEvent_2
|
|
10952
11216
|
})
|
|
10953
11217
|
| ({
|
|
10954
11218
|
type: 'deserialization.success'
|
|
10955
11219
|
data: Array<PortableTextBlock>
|
|
10956
11220
|
mimeType: `${string}/${string}`
|
|
10957
11221
|
} & {
|
|
10958
|
-
originEvent:
|
|
10959
|
-
|
|
10960
|
-
|
|
10961
|
-
|
|
10962
|
-
|
|
11222
|
+
originEvent:
|
|
11223
|
+
| PickFromUnion_2<
|
|
11224
|
+
NativeBehaviorEvent,
|
|
11225
|
+
'type',
|
|
11226
|
+
'drag.drop' | 'clipboard.paste'
|
|
11227
|
+
>
|
|
11228
|
+
| InputBehaviorEvent_2
|
|
10963
11229
|
})
|
|
10964
11230
|
| {
|
|
10965
11231
|
type: 'serialization.success'
|
|
@@ -11104,7 +11370,7 @@ declare const editorMachine: StateMachine<
|
|
|
11104
11370
|
}
|
|
11105
11371
|
| {
|
|
11106
11372
|
type: 'dragstart'
|
|
11107
|
-
origin: EventPosition
|
|
11373
|
+
origin: Pick<EventPosition, 'selection'>
|
|
11108
11374
|
ghost?: HTMLElement
|
|
11109
11375
|
}
|
|
11110
11376
|
| {
|
|
@@ -11176,6 +11442,10 @@ declare const editorMachine: StateMachine<
|
|
|
11176
11442
|
| {
|
|
11177
11443
|
type: 'decorator.toggle'
|
|
11178
11444
|
decorator: string
|
|
11445
|
+
offsets?: {
|
|
11446
|
+
anchor: BlockOffset_2
|
|
11447
|
+
focus: BlockOffset_2
|
|
11448
|
+
}
|
|
11179
11449
|
}
|
|
11180
11450
|
| {
|
|
11181
11451
|
type: 'delete'
|
|
@@ -11320,22 +11590,26 @@ declare const editorMachine: StateMachine<
|
|
|
11320
11590
|
mimeType: `${string}/${string}`
|
|
11321
11591
|
reason: string
|
|
11322
11592
|
} & {
|
|
11323
|
-
originEvent:
|
|
11324
|
-
|
|
11325
|
-
|
|
11326
|
-
|
|
11327
|
-
|
|
11593
|
+
originEvent:
|
|
11594
|
+
| PickFromUnion_2<
|
|
11595
|
+
NativeBehaviorEvent,
|
|
11596
|
+
'type',
|
|
11597
|
+
'drag.drop' | 'clipboard.paste'
|
|
11598
|
+
>
|
|
11599
|
+
| InputBehaviorEvent_2
|
|
11328
11600
|
})
|
|
11329
11601
|
| ({
|
|
11330
11602
|
type: 'deserialization.success'
|
|
11331
11603
|
data: Array<PortableTextBlock>
|
|
11332
11604
|
mimeType: `${string}/${string}`
|
|
11333
11605
|
} & {
|
|
11334
|
-
originEvent:
|
|
11335
|
-
|
|
11336
|
-
|
|
11337
|
-
|
|
11338
|
-
|
|
11606
|
+
originEvent:
|
|
11607
|
+
| PickFromUnion_2<
|
|
11608
|
+
NativeBehaviorEvent,
|
|
11609
|
+
'type',
|
|
11610
|
+
'drag.drop' | 'clipboard.paste'
|
|
11611
|
+
>
|
|
11612
|
+
| InputBehaviorEvent_2
|
|
11339
11613
|
})
|
|
11340
11614
|
| {
|
|
11341
11615
|
type: 'serialization.success'
|
|
@@ -11424,7 +11698,7 @@ declare const editorMachine: StateMachine<
|
|
|
11424
11698
|
value: Array<PortableTextBlock> | undefined
|
|
11425
11699
|
internalDrag?: {
|
|
11426
11700
|
ghost?: HTMLElement
|
|
11427
|
-
origin: EventPosition
|
|
11701
|
+
origin: Pick<EventPosition, 'selection'>
|
|
11428
11702
|
}
|
|
11429
11703
|
},
|
|
11430
11704
|
| {
|
|
@@ -11495,6 +11769,10 @@ declare const editorMachine: StateMachine<
|
|
|
11495
11769
|
| {
|
|
11496
11770
|
type: 'decorator.toggle'
|
|
11497
11771
|
decorator: string
|
|
11772
|
+
offsets?: {
|
|
11773
|
+
anchor: BlockOffset_2
|
|
11774
|
+
focus: BlockOffset_2
|
|
11775
|
+
}
|
|
11498
11776
|
}
|
|
11499
11777
|
| {
|
|
11500
11778
|
type: 'delete'
|
|
@@ -11639,22 +11917,26 @@ declare const editorMachine: StateMachine<
|
|
|
11639
11917
|
mimeType: `${string}/${string}`
|
|
11640
11918
|
reason: string
|
|
11641
11919
|
} & {
|
|
11642
|
-
originEvent:
|
|
11643
|
-
|
|
11644
|
-
|
|
11645
|
-
|
|
11646
|
-
|
|
11920
|
+
originEvent:
|
|
11921
|
+
| PickFromUnion_2<
|
|
11922
|
+
NativeBehaviorEvent,
|
|
11923
|
+
'type',
|
|
11924
|
+
'drag.drop' | 'clipboard.paste'
|
|
11925
|
+
>
|
|
11926
|
+
| InputBehaviorEvent_2
|
|
11647
11927
|
})
|
|
11648
11928
|
| ({
|
|
11649
11929
|
type: 'deserialization.success'
|
|
11650
11930
|
data: Array<PortableTextBlock>
|
|
11651
11931
|
mimeType: `${string}/${string}`
|
|
11652
11932
|
} & {
|
|
11653
|
-
originEvent:
|
|
11654
|
-
|
|
11655
|
-
|
|
11656
|
-
|
|
11657
|
-
|
|
11933
|
+
originEvent:
|
|
11934
|
+
| PickFromUnion_2<
|
|
11935
|
+
NativeBehaviorEvent,
|
|
11936
|
+
'type',
|
|
11937
|
+
'drag.drop' | 'clipboard.paste'
|
|
11938
|
+
>
|
|
11939
|
+
| InputBehaviorEvent_2
|
|
11658
11940
|
})
|
|
11659
11941
|
| {
|
|
11660
11942
|
type: 'serialization.success'
|
|
@@ -11799,7 +12081,7 @@ declare const editorMachine: StateMachine<
|
|
|
11799
12081
|
}
|
|
11800
12082
|
| {
|
|
11801
12083
|
type: 'dragstart'
|
|
11802
|
-
origin: EventPosition
|
|
12084
|
+
origin: Pick<EventPosition, 'selection'>
|
|
11803
12085
|
ghost?: HTMLElement
|
|
11804
12086
|
}
|
|
11805
12087
|
| {
|
|
@@ -11871,6 +12153,10 @@ declare const editorMachine: StateMachine<
|
|
|
11871
12153
|
| {
|
|
11872
12154
|
type: 'decorator.toggle'
|
|
11873
12155
|
decorator: string
|
|
12156
|
+
offsets?: {
|
|
12157
|
+
anchor: BlockOffset_2
|
|
12158
|
+
focus: BlockOffset_2
|
|
12159
|
+
}
|
|
11874
12160
|
}
|
|
11875
12161
|
| {
|
|
11876
12162
|
type: 'delete'
|
|
@@ -12015,22 +12301,26 @@ declare const editorMachine: StateMachine<
|
|
|
12015
12301
|
mimeType: `${string}/${string}`
|
|
12016
12302
|
reason: string
|
|
12017
12303
|
} & {
|
|
12018
|
-
originEvent:
|
|
12019
|
-
|
|
12020
|
-
|
|
12021
|
-
|
|
12022
|
-
|
|
12304
|
+
originEvent:
|
|
12305
|
+
| PickFromUnion_2<
|
|
12306
|
+
NativeBehaviorEvent,
|
|
12307
|
+
'type',
|
|
12308
|
+
'drag.drop' | 'clipboard.paste'
|
|
12309
|
+
>
|
|
12310
|
+
| InputBehaviorEvent_2
|
|
12023
12311
|
})
|
|
12024
12312
|
| ({
|
|
12025
12313
|
type: 'deserialization.success'
|
|
12026
12314
|
data: Array<PortableTextBlock>
|
|
12027
12315
|
mimeType: `${string}/${string}`
|
|
12028
12316
|
} & {
|
|
12029
|
-
originEvent:
|
|
12030
|
-
|
|
12031
|
-
|
|
12032
|
-
|
|
12033
|
-
|
|
12317
|
+
originEvent:
|
|
12318
|
+
| PickFromUnion_2<
|
|
12319
|
+
NativeBehaviorEvent,
|
|
12320
|
+
'type',
|
|
12321
|
+
'drag.drop' | 'clipboard.paste'
|
|
12322
|
+
>
|
|
12323
|
+
| InputBehaviorEvent_2
|
|
12034
12324
|
})
|
|
12035
12325
|
| {
|
|
12036
12326
|
type: 'serialization.success'
|
|
@@ -12119,7 +12409,7 @@ declare const editorMachine: StateMachine<
|
|
|
12119
12409
|
value: Array<PortableTextBlock> | undefined
|
|
12120
12410
|
internalDrag?: {
|
|
12121
12411
|
ghost?: HTMLElement
|
|
12122
|
-
origin: EventPosition
|
|
12412
|
+
origin: Pick<EventPosition, 'selection'>
|
|
12123
12413
|
}
|
|
12124
12414
|
},
|
|
12125
12415
|
{
|
|
@@ -12183,6 +12473,10 @@ declare const editorMachine: StateMachine<
|
|
|
12183
12473
|
| {
|
|
12184
12474
|
type: 'decorator.toggle'
|
|
12185
12475
|
decorator: string
|
|
12476
|
+
offsets?: {
|
|
12477
|
+
anchor: BlockOffset_2
|
|
12478
|
+
focus: BlockOffset_2
|
|
12479
|
+
}
|
|
12186
12480
|
}
|
|
12187
12481
|
| {
|
|
12188
12482
|
type: 'delete'
|
|
@@ -12327,22 +12621,26 @@ declare const editorMachine: StateMachine<
|
|
|
12327
12621
|
mimeType: `${string}/${string}`
|
|
12328
12622
|
reason: string
|
|
12329
12623
|
} & {
|
|
12330
|
-
originEvent:
|
|
12331
|
-
|
|
12332
|
-
|
|
12333
|
-
|
|
12334
|
-
|
|
12624
|
+
originEvent:
|
|
12625
|
+
| PickFromUnion_2<
|
|
12626
|
+
NativeBehaviorEvent,
|
|
12627
|
+
'type',
|
|
12628
|
+
'drag.drop' | 'clipboard.paste'
|
|
12629
|
+
>
|
|
12630
|
+
| InputBehaviorEvent_2
|
|
12335
12631
|
})
|
|
12336
12632
|
| ({
|
|
12337
12633
|
type: 'deserialization.success'
|
|
12338
12634
|
data: Array<PortableTextBlock>
|
|
12339
12635
|
mimeType: `${string}/${string}`
|
|
12340
12636
|
} & {
|
|
12341
|
-
originEvent:
|
|
12342
|
-
|
|
12343
|
-
|
|
12344
|
-
|
|
12345
|
-
|
|
12637
|
+
originEvent:
|
|
12638
|
+
| PickFromUnion_2<
|
|
12639
|
+
NativeBehaviorEvent,
|
|
12640
|
+
'type',
|
|
12641
|
+
'drag.drop' | 'clipboard.paste'
|
|
12642
|
+
>
|
|
12643
|
+
| InputBehaviorEvent_2
|
|
12346
12644
|
})
|
|
12347
12645
|
| {
|
|
12348
12646
|
type: 'serialization.success'
|
|
@@ -12487,7 +12785,7 @@ declare const editorMachine: StateMachine<
|
|
|
12487
12785
|
}
|
|
12488
12786
|
| {
|
|
12489
12787
|
type: 'dragstart'
|
|
12490
|
-
origin: EventPosition
|
|
12788
|
+
origin: Pick<EventPosition, 'selection'>
|
|
12491
12789
|
ghost?: HTMLElement
|
|
12492
12790
|
}
|
|
12493
12791
|
| {
|
|
@@ -12559,6 +12857,10 @@ declare const editorMachine: StateMachine<
|
|
|
12559
12857
|
| {
|
|
12560
12858
|
type: 'decorator.toggle'
|
|
12561
12859
|
decorator: string
|
|
12860
|
+
offsets?: {
|
|
12861
|
+
anchor: BlockOffset_2
|
|
12862
|
+
focus: BlockOffset_2
|
|
12863
|
+
}
|
|
12562
12864
|
}
|
|
12563
12865
|
| {
|
|
12564
12866
|
type: 'delete'
|
|
@@ -12703,22 +13005,26 @@ declare const editorMachine: StateMachine<
|
|
|
12703
13005
|
mimeType: `${string}/${string}`
|
|
12704
13006
|
reason: string
|
|
12705
13007
|
} & {
|
|
12706
|
-
originEvent:
|
|
12707
|
-
|
|
12708
|
-
|
|
12709
|
-
|
|
12710
|
-
|
|
13008
|
+
originEvent:
|
|
13009
|
+
| PickFromUnion_2<
|
|
13010
|
+
NativeBehaviorEvent,
|
|
13011
|
+
'type',
|
|
13012
|
+
'drag.drop' | 'clipboard.paste'
|
|
13013
|
+
>
|
|
13014
|
+
| InputBehaviorEvent_2
|
|
12711
13015
|
})
|
|
12712
13016
|
| ({
|
|
12713
13017
|
type: 'deserialization.success'
|
|
12714
13018
|
data: Array<PortableTextBlock>
|
|
12715
13019
|
mimeType: `${string}/${string}`
|
|
12716
13020
|
} & {
|
|
12717
|
-
originEvent:
|
|
12718
|
-
|
|
12719
|
-
|
|
12720
|
-
|
|
12721
|
-
|
|
13021
|
+
originEvent:
|
|
13022
|
+
| PickFromUnion_2<
|
|
13023
|
+
NativeBehaviorEvent,
|
|
13024
|
+
'type',
|
|
13025
|
+
'drag.drop' | 'clipboard.paste'
|
|
13026
|
+
>
|
|
13027
|
+
| InputBehaviorEvent_2
|
|
12722
13028
|
})
|
|
12723
13029
|
| {
|
|
12724
13030
|
type: 'serialization.success'
|
|
@@ -12807,7 +13113,7 @@ declare const editorMachine: StateMachine<
|
|
|
12807
13113
|
value: Array<PortableTextBlock> | undefined
|
|
12808
13114
|
internalDrag?: {
|
|
12809
13115
|
ghost?: HTMLElement
|
|
12810
|
-
origin: EventPosition
|
|
13116
|
+
origin: Pick<EventPosition, 'selection'>
|
|
12811
13117
|
}
|
|
12812
13118
|
},
|
|
12813
13119
|
{
|
|
@@ -12871,6 +13177,10 @@ declare const editorMachine: StateMachine<
|
|
|
12871
13177
|
| {
|
|
12872
13178
|
type: 'decorator.toggle'
|
|
12873
13179
|
decorator: string
|
|
13180
|
+
offsets?: {
|
|
13181
|
+
anchor: BlockOffset_2
|
|
13182
|
+
focus: BlockOffset_2
|
|
13183
|
+
}
|
|
12874
13184
|
}
|
|
12875
13185
|
| {
|
|
12876
13186
|
type: 'delete'
|
|
@@ -13015,22 +13325,26 @@ declare const editorMachine: StateMachine<
|
|
|
13015
13325
|
mimeType: `${string}/${string}`
|
|
13016
13326
|
reason: string
|
|
13017
13327
|
} & {
|
|
13018
|
-
originEvent:
|
|
13019
|
-
|
|
13020
|
-
|
|
13021
|
-
|
|
13022
|
-
|
|
13328
|
+
originEvent:
|
|
13329
|
+
| PickFromUnion_2<
|
|
13330
|
+
NativeBehaviorEvent,
|
|
13331
|
+
'type',
|
|
13332
|
+
'drag.drop' | 'clipboard.paste'
|
|
13333
|
+
>
|
|
13334
|
+
| InputBehaviorEvent_2
|
|
13023
13335
|
})
|
|
13024
13336
|
| ({
|
|
13025
13337
|
type: 'deserialization.success'
|
|
13026
13338
|
data: Array<PortableTextBlock>
|
|
13027
13339
|
mimeType: `${string}/${string}`
|
|
13028
13340
|
} & {
|
|
13029
|
-
originEvent:
|
|
13030
|
-
|
|
13031
|
-
|
|
13032
|
-
|
|
13033
|
-
|
|
13341
|
+
originEvent:
|
|
13342
|
+
| PickFromUnion_2<
|
|
13343
|
+
NativeBehaviorEvent,
|
|
13344
|
+
'type',
|
|
13345
|
+
'drag.drop' | 'clipboard.paste'
|
|
13346
|
+
>
|
|
13347
|
+
| InputBehaviorEvent_2
|
|
13034
13348
|
})
|
|
13035
13349
|
| {
|
|
13036
13350
|
type: 'serialization.success'
|
|
@@ -13175,7 +13489,7 @@ declare const editorMachine: StateMachine<
|
|
|
13175
13489
|
}
|
|
13176
13490
|
| {
|
|
13177
13491
|
type: 'dragstart'
|
|
13178
|
-
origin: EventPosition
|
|
13492
|
+
origin: Pick<EventPosition, 'selection'>
|
|
13179
13493
|
ghost?: HTMLElement
|
|
13180
13494
|
}
|
|
13181
13495
|
| {
|
|
@@ -13247,6 +13561,10 @@ declare const editorMachine: StateMachine<
|
|
|
13247
13561
|
| {
|
|
13248
13562
|
type: 'decorator.toggle'
|
|
13249
13563
|
decorator: string
|
|
13564
|
+
offsets?: {
|
|
13565
|
+
anchor: BlockOffset_2
|
|
13566
|
+
focus: BlockOffset_2
|
|
13567
|
+
}
|
|
13250
13568
|
}
|
|
13251
13569
|
| {
|
|
13252
13570
|
type: 'delete'
|
|
@@ -13391,22 +13709,26 @@ declare const editorMachine: StateMachine<
|
|
|
13391
13709
|
mimeType: `${string}/${string}`
|
|
13392
13710
|
reason: string
|
|
13393
13711
|
} & {
|
|
13394
|
-
originEvent:
|
|
13395
|
-
|
|
13396
|
-
|
|
13397
|
-
|
|
13398
|
-
|
|
13712
|
+
originEvent:
|
|
13713
|
+
| PickFromUnion_2<
|
|
13714
|
+
NativeBehaviorEvent,
|
|
13715
|
+
'type',
|
|
13716
|
+
'drag.drop' | 'clipboard.paste'
|
|
13717
|
+
>
|
|
13718
|
+
| InputBehaviorEvent_2
|
|
13399
13719
|
})
|
|
13400
13720
|
| ({
|
|
13401
13721
|
type: 'deserialization.success'
|
|
13402
13722
|
data: Array<PortableTextBlock>
|
|
13403
13723
|
mimeType: `${string}/${string}`
|
|
13404
13724
|
} & {
|
|
13405
|
-
originEvent:
|
|
13406
|
-
|
|
13407
|
-
|
|
13408
|
-
|
|
13409
|
-
|
|
13725
|
+
originEvent:
|
|
13726
|
+
| PickFromUnion_2<
|
|
13727
|
+
NativeBehaviorEvent,
|
|
13728
|
+
'type',
|
|
13729
|
+
'drag.drop' | 'clipboard.paste'
|
|
13730
|
+
>
|
|
13731
|
+
| InputBehaviorEvent_2
|
|
13410
13732
|
})
|
|
13411
13733
|
| {
|
|
13412
13734
|
type: 'serialization.success'
|
|
@@ -13495,7 +13817,7 @@ declare const editorMachine: StateMachine<
|
|
|
13495
13817
|
value: Array<PortableTextBlock> | undefined
|
|
13496
13818
|
internalDrag?: {
|
|
13497
13819
|
ghost?: HTMLElement
|
|
13498
|
-
origin: EventPosition
|
|
13820
|
+
origin: Pick<EventPosition, 'selection'>
|
|
13499
13821
|
}
|
|
13500
13822
|
},
|
|
13501
13823
|
| {
|
|
@@ -13513,6 +13835,10 @@ declare const editorMachine: StateMachine<
|
|
|
13513
13835
|
| {
|
|
13514
13836
|
type: 'decorator.toggle'
|
|
13515
13837
|
decorator: string
|
|
13838
|
+
offsets?: {
|
|
13839
|
+
anchor: BlockOffset_2
|
|
13840
|
+
focus: BlockOffset_2
|
|
13841
|
+
}
|
|
13516
13842
|
},
|
|
13517
13843
|
| {
|
|
13518
13844
|
type: 'annotation.add'
|
|
@@ -13572,6 +13898,10 @@ declare const editorMachine: StateMachine<
|
|
|
13572
13898
|
| {
|
|
13573
13899
|
type: 'decorator.toggle'
|
|
13574
13900
|
decorator: string
|
|
13901
|
+
offsets?: {
|
|
13902
|
+
anchor: BlockOffset_2
|
|
13903
|
+
focus: BlockOffset_2
|
|
13904
|
+
}
|
|
13575
13905
|
}
|
|
13576
13906
|
| {
|
|
13577
13907
|
type: 'delete'
|
|
@@ -13716,22 +14046,26 @@ declare const editorMachine: StateMachine<
|
|
|
13716
14046
|
mimeType: `${string}/${string}`
|
|
13717
14047
|
reason: string
|
|
13718
14048
|
} & {
|
|
13719
|
-
originEvent:
|
|
13720
|
-
|
|
13721
|
-
|
|
13722
|
-
|
|
13723
|
-
|
|
14049
|
+
originEvent:
|
|
14050
|
+
| PickFromUnion_2<
|
|
14051
|
+
NativeBehaviorEvent,
|
|
14052
|
+
'type',
|
|
14053
|
+
'drag.drop' | 'clipboard.paste'
|
|
14054
|
+
>
|
|
14055
|
+
| InputBehaviorEvent_2
|
|
13724
14056
|
})
|
|
13725
14057
|
| ({
|
|
13726
14058
|
type: 'deserialization.success'
|
|
13727
14059
|
data: Array<PortableTextBlock>
|
|
13728
14060
|
mimeType: `${string}/${string}`
|
|
13729
14061
|
} & {
|
|
13730
|
-
originEvent:
|
|
13731
|
-
|
|
13732
|
-
|
|
13733
|
-
|
|
13734
|
-
|
|
14062
|
+
originEvent:
|
|
14063
|
+
| PickFromUnion_2<
|
|
14064
|
+
NativeBehaviorEvent,
|
|
14065
|
+
'type',
|
|
14066
|
+
'drag.drop' | 'clipboard.paste'
|
|
14067
|
+
>
|
|
14068
|
+
| InputBehaviorEvent_2
|
|
13735
14069
|
})
|
|
13736
14070
|
| {
|
|
13737
14071
|
type: 'serialization.success'
|
|
@@ -13876,7 +14210,7 @@ declare const editorMachine: StateMachine<
|
|
|
13876
14210
|
}
|
|
13877
14211
|
| {
|
|
13878
14212
|
type: 'dragstart'
|
|
13879
|
-
origin: EventPosition
|
|
14213
|
+
origin: Pick<EventPosition, 'selection'>
|
|
13880
14214
|
ghost?: HTMLElement
|
|
13881
14215
|
}
|
|
13882
14216
|
| {
|
|
@@ -13948,6 +14282,10 @@ declare const editorMachine: StateMachine<
|
|
|
13948
14282
|
| {
|
|
13949
14283
|
type: 'decorator.toggle'
|
|
13950
14284
|
decorator: string
|
|
14285
|
+
offsets?: {
|
|
14286
|
+
anchor: BlockOffset_2
|
|
14287
|
+
focus: BlockOffset_2
|
|
14288
|
+
}
|
|
13951
14289
|
}
|
|
13952
14290
|
| {
|
|
13953
14291
|
type: 'delete'
|
|
@@ -14092,22 +14430,26 @@ declare const editorMachine: StateMachine<
|
|
|
14092
14430
|
mimeType: `${string}/${string}`
|
|
14093
14431
|
reason: string
|
|
14094
14432
|
} & {
|
|
14095
|
-
originEvent:
|
|
14096
|
-
|
|
14097
|
-
|
|
14098
|
-
|
|
14099
|
-
|
|
14433
|
+
originEvent:
|
|
14434
|
+
| PickFromUnion_2<
|
|
14435
|
+
NativeBehaviorEvent,
|
|
14436
|
+
'type',
|
|
14437
|
+
'drag.drop' | 'clipboard.paste'
|
|
14438
|
+
>
|
|
14439
|
+
| InputBehaviorEvent_2
|
|
14100
14440
|
})
|
|
14101
14441
|
| ({
|
|
14102
14442
|
type: 'deserialization.success'
|
|
14103
14443
|
data: Array<PortableTextBlock>
|
|
14104
14444
|
mimeType: `${string}/${string}`
|
|
14105
14445
|
} & {
|
|
14106
|
-
originEvent:
|
|
14107
|
-
|
|
14108
|
-
|
|
14109
|
-
|
|
14110
|
-
|
|
14446
|
+
originEvent:
|
|
14447
|
+
| PickFromUnion_2<
|
|
14448
|
+
NativeBehaviorEvent,
|
|
14449
|
+
'type',
|
|
14450
|
+
'drag.drop' | 'clipboard.paste'
|
|
14451
|
+
>
|
|
14452
|
+
| InputBehaviorEvent_2
|
|
14111
14453
|
})
|
|
14112
14454
|
| {
|
|
14113
14455
|
type: 'serialization.success'
|
|
@@ -14196,7 +14538,7 @@ declare const editorMachine: StateMachine<
|
|
|
14196
14538
|
value: Array<PortableTextBlock> | undefined
|
|
14197
14539
|
internalDrag?: {
|
|
14198
14540
|
ghost?: HTMLElement
|
|
14199
|
-
origin: EventPosition
|
|
14541
|
+
origin: Pick<EventPosition, 'selection'>
|
|
14200
14542
|
}
|
|
14201
14543
|
},
|
|
14202
14544
|
| {
|
|
@@ -14274,6 +14616,10 @@ declare const editorMachine: StateMachine<
|
|
|
14274
14616
|
| {
|
|
14275
14617
|
type: 'decorator.toggle'
|
|
14276
14618
|
decorator: string
|
|
14619
|
+
offsets?: {
|
|
14620
|
+
anchor: BlockOffset_2
|
|
14621
|
+
focus: BlockOffset_2
|
|
14622
|
+
}
|
|
14277
14623
|
}
|
|
14278
14624
|
| {
|
|
14279
14625
|
type: 'delete'
|
|
@@ -14418,22 +14764,26 @@ declare const editorMachine: StateMachine<
|
|
|
14418
14764
|
mimeType: `${string}/${string}`
|
|
14419
14765
|
reason: string
|
|
14420
14766
|
} & {
|
|
14421
|
-
originEvent:
|
|
14422
|
-
|
|
14423
|
-
|
|
14424
|
-
|
|
14425
|
-
|
|
14767
|
+
originEvent:
|
|
14768
|
+
| PickFromUnion_2<
|
|
14769
|
+
NativeBehaviorEvent,
|
|
14770
|
+
'type',
|
|
14771
|
+
'drag.drop' | 'clipboard.paste'
|
|
14772
|
+
>
|
|
14773
|
+
| InputBehaviorEvent_2
|
|
14426
14774
|
})
|
|
14427
14775
|
| ({
|
|
14428
14776
|
type: 'deserialization.success'
|
|
14429
14777
|
data: Array<PortableTextBlock>
|
|
14430
14778
|
mimeType: `${string}/${string}`
|
|
14431
14779
|
} & {
|
|
14432
|
-
originEvent:
|
|
14433
|
-
|
|
14434
|
-
|
|
14435
|
-
|
|
14436
|
-
|
|
14780
|
+
originEvent:
|
|
14781
|
+
| PickFromUnion_2<
|
|
14782
|
+
NativeBehaviorEvent,
|
|
14783
|
+
'type',
|
|
14784
|
+
'drag.drop' | 'clipboard.paste'
|
|
14785
|
+
>
|
|
14786
|
+
| InputBehaviorEvent_2
|
|
14437
14787
|
})
|
|
14438
14788
|
| {
|
|
14439
14789
|
type: 'serialization.success'
|
|
@@ -14578,7 +14928,7 @@ declare const editorMachine: StateMachine<
|
|
|
14578
14928
|
}
|
|
14579
14929
|
| {
|
|
14580
14930
|
type: 'dragstart'
|
|
14581
|
-
origin: EventPosition
|
|
14931
|
+
origin: Pick<EventPosition, 'selection'>
|
|
14582
14932
|
ghost?: HTMLElement
|
|
14583
14933
|
}
|
|
14584
14934
|
| {
|
|
@@ -14650,6 +15000,10 @@ declare const editorMachine: StateMachine<
|
|
|
14650
15000
|
| {
|
|
14651
15001
|
type: 'decorator.toggle'
|
|
14652
15002
|
decorator: string
|
|
15003
|
+
offsets?: {
|
|
15004
|
+
anchor: BlockOffset_2
|
|
15005
|
+
focus: BlockOffset_2
|
|
15006
|
+
}
|
|
14653
15007
|
}
|
|
14654
15008
|
| {
|
|
14655
15009
|
type: 'delete'
|
|
@@ -14794,22 +15148,26 @@ declare const editorMachine: StateMachine<
|
|
|
14794
15148
|
mimeType: `${string}/${string}`
|
|
14795
15149
|
reason: string
|
|
14796
15150
|
} & {
|
|
14797
|
-
originEvent:
|
|
14798
|
-
|
|
14799
|
-
|
|
14800
|
-
|
|
14801
|
-
|
|
15151
|
+
originEvent:
|
|
15152
|
+
| PickFromUnion_2<
|
|
15153
|
+
NativeBehaviorEvent,
|
|
15154
|
+
'type',
|
|
15155
|
+
'drag.drop' | 'clipboard.paste'
|
|
15156
|
+
>
|
|
15157
|
+
| InputBehaviorEvent_2
|
|
14802
15158
|
})
|
|
14803
15159
|
| ({
|
|
14804
15160
|
type: 'deserialization.success'
|
|
14805
15161
|
data: Array<PortableTextBlock>
|
|
14806
15162
|
mimeType: `${string}/${string}`
|
|
14807
15163
|
} & {
|
|
14808
|
-
originEvent:
|
|
14809
|
-
|
|
14810
|
-
|
|
14811
|
-
|
|
14812
|
-
|
|
15164
|
+
originEvent:
|
|
15165
|
+
| PickFromUnion_2<
|
|
15166
|
+
NativeBehaviorEvent,
|
|
15167
|
+
'type',
|
|
15168
|
+
'drag.drop' | 'clipboard.paste'
|
|
15169
|
+
>
|
|
15170
|
+
| InputBehaviorEvent_2
|
|
14813
15171
|
})
|
|
14814
15172
|
| {
|
|
14815
15173
|
type: 'serialization.success'
|
|
@@ -14898,7 +15256,7 @@ declare const editorMachine: StateMachine<
|
|
|
14898
15256
|
value: Array<PortableTextBlock> | undefined
|
|
14899
15257
|
internalDrag?: {
|
|
14900
15258
|
ghost?: HTMLElement
|
|
14901
|
-
origin: EventPosition
|
|
15259
|
+
origin: Pick<EventPosition, 'selection'>
|
|
14902
15260
|
}
|
|
14903
15261
|
},
|
|
14904
15262
|
{
|
|
@@ -14962,6 +15320,10 @@ declare const editorMachine: StateMachine<
|
|
|
14962
15320
|
| {
|
|
14963
15321
|
type: 'decorator.toggle'
|
|
14964
15322
|
decorator: string
|
|
15323
|
+
offsets?: {
|
|
15324
|
+
anchor: BlockOffset_2
|
|
15325
|
+
focus: BlockOffset_2
|
|
15326
|
+
}
|
|
14965
15327
|
}
|
|
14966
15328
|
| {
|
|
14967
15329
|
type: 'delete'
|
|
@@ -15106,22 +15468,26 @@ declare const editorMachine: StateMachine<
|
|
|
15106
15468
|
mimeType: `${string}/${string}`
|
|
15107
15469
|
reason: string
|
|
15108
15470
|
} & {
|
|
15109
|
-
originEvent:
|
|
15110
|
-
|
|
15111
|
-
|
|
15112
|
-
|
|
15113
|
-
|
|
15471
|
+
originEvent:
|
|
15472
|
+
| PickFromUnion_2<
|
|
15473
|
+
NativeBehaviorEvent,
|
|
15474
|
+
'type',
|
|
15475
|
+
'drag.drop' | 'clipboard.paste'
|
|
15476
|
+
>
|
|
15477
|
+
| InputBehaviorEvent_2
|
|
15114
15478
|
})
|
|
15115
15479
|
| ({
|
|
15116
15480
|
type: 'deserialization.success'
|
|
15117
15481
|
data: Array<PortableTextBlock>
|
|
15118
15482
|
mimeType: `${string}/${string}`
|
|
15119
15483
|
} & {
|
|
15120
|
-
originEvent:
|
|
15121
|
-
|
|
15122
|
-
|
|
15123
|
-
|
|
15124
|
-
|
|
15484
|
+
originEvent:
|
|
15485
|
+
| PickFromUnion_2<
|
|
15486
|
+
NativeBehaviorEvent,
|
|
15487
|
+
'type',
|
|
15488
|
+
'drag.drop' | 'clipboard.paste'
|
|
15489
|
+
>
|
|
15490
|
+
| InputBehaviorEvent_2
|
|
15125
15491
|
})
|
|
15126
15492
|
| {
|
|
15127
15493
|
type: 'serialization.success'
|
|
@@ -15266,7 +15632,7 @@ declare const editorMachine: StateMachine<
|
|
|
15266
15632
|
}
|
|
15267
15633
|
| {
|
|
15268
15634
|
type: 'dragstart'
|
|
15269
|
-
origin: EventPosition
|
|
15635
|
+
origin: Pick<EventPosition, 'selection'>
|
|
15270
15636
|
ghost?: HTMLElement
|
|
15271
15637
|
}
|
|
15272
15638
|
| {
|
|
@@ -15338,6 +15704,10 @@ declare const editorMachine: StateMachine<
|
|
|
15338
15704
|
| {
|
|
15339
15705
|
type: 'decorator.toggle'
|
|
15340
15706
|
decorator: string
|
|
15707
|
+
offsets?: {
|
|
15708
|
+
anchor: BlockOffset_2
|
|
15709
|
+
focus: BlockOffset_2
|
|
15710
|
+
}
|
|
15341
15711
|
}
|
|
15342
15712
|
| {
|
|
15343
15713
|
type: 'delete'
|
|
@@ -15482,22 +15852,26 @@ declare const editorMachine: StateMachine<
|
|
|
15482
15852
|
mimeType: `${string}/${string}`
|
|
15483
15853
|
reason: string
|
|
15484
15854
|
} & {
|
|
15485
|
-
originEvent:
|
|
15486
|
-
|
|
15487
|
-
|
|
15488
|
-
|
|
15489
|
-
|
|
15855
|
+
originEvent:
|
|
15856
|
+
| PickFromUnion_2<
|
|
15857
|
+
NativeBehaviorEvent,
|
|
15858
|
+
'type',
|
|
15859
|
+
'drag.drop' | 'clipboard.paste'
|
|
15860
|
+
>
|
|
15861
|
+
| InputBehaviorEvent_2
|
|
15490
15862
|
})
|
|
15491
15863
|
| ({
|
|
15492
15864
|
type: 'deserialization.success'
|
|
15493
15865
|
data: Array<PortableTextBlock>
|
|
15494
15866
|
mimeType: `${string}/${string}`
|
|
15495
15867
|
} & {
|
|
15496
|
-
originEvent:
|
|
15497
|
-
|
|
15498
|
-
|
|
15499
|
-
|
|
15500
|
-
|
|
15868
|
+
originEvent:
|
|
15869
|
+
| PickFromUnion_2<
|
|
15870
|
+
NativeBehaviorEvent,
|
|
15871
|
+
'type',
|
|
15872
|
+
'drag.drop' | 'clipboard.paste'
|
|
15873
|
+
>
|
|
15874
|
+
| InputBehaviorEvent_2
|
|
15501
15875
|
})
|
|
15502
15876
|
| {
|
|
15503
15877
|
type: 'serialization.success'
|
|
@@ -15586,7 +15960,7 @@ declare const editorMachine: StateMachine<
|
|
|
15586
15960
|
value: Array<PortableTextBlock> | undefined
|
|
15587
15961
|
internalDrag?: {
|
|
15588
15962
|
ghost?: HTMLElement
|
|
15589
|
-
origin: EventPosition
|
|
15963
|
+
origin: Pick<EventPosition, 'selection'>
|
|
15590
15964
|
}
|
|
15591
15965
|
},
|
|
15592
15966
|
| {
|
|
@@ -15653,6 +16027,10 @@ declare const editorMachine: StateMachine<
|
|
|
15653
16027
|
| {
|
|
15654
16028
|
type: 'decorator.toggle'
|
|
15655
16029
|
decorator: string
|
|
16030
|
+
offsets?: {
|
|
16031
|
+
anchor: BlockOffset_2
|
|
16032
|
+
focus: BlockOffset_2
|
|
16033
|
+
}
|
|
15656
16034
|
}
|
|
15657
16035
|
| {
|
|
15658
16036
|
type: 'delete'
|
|
@@ -15797,22 +16175,26 @@ declare const editorMachine: StateMachine<
|
|
|
15797
16175
|
mimeType: `${string}/${string}`
|
|
15798
16176
|
reason: string
|
|
15799
16177
|
} & {
|
|
15800
|
-
originEvent:
|
|
15801
|
-
|
|
15802
|
-
|
|
15803
|
-
|
|
15804
|
-
|
|
16178
|
+
originEvent:
|
|
16179
|
+
| PickFromUnion_2<
|
|
16180
|
+
NativeBehaviorEvent,
|
|
16181
|
+
'type',
|
|
16182
|
+
'drag.drop' | 'clipboard.paste'
|
|
16183
|
+
>
|
|
16184
|
+
| InputBehaviorEvent_2
|
|
15805
16185
|
})
|
|
15806
16186
|
| ({
|
|
15807
16187
|
type: 'deserialization.success'
|
|
15808
16188
|
data: Array<PortableTextBlock>
|
|
15809
16189
|
mimeType: `${string}/${string}`
|
|
15810
16190
|
} & {
|
|
15811
|
-
originEvent:
|
|
15812
|
-
|
|
15813
|
-
|
|
15814
|
-
|
|
15815
|
-
|
|
16191
|
+
originEvent:
|
|
16192
|
+
| PickFromUnion_2<
|
|
16193
|
+
NativeBehaviorEvent,
|
|
16194
|
+
'type',
|
|
16195
|
+
'drag.drop' | 'clipboard.paste'
|
|
16196
|
+
>
|
|
16197
|
+
| InputBehaviorEvent_2
|
|
15816
16198
|
})
|
|
15817
16199
|
| {
|
|
15818
16200
|
type: 'serialization.success'
|
|
@@ -15957,7 +16339,7 @@ declare const editorMachine: StateMachine<
|
|
|
15957
16339
|
}
|
|
15958
16340
|
| {
|
|
15959
16341
|
type: 'dragstart'
|
|
15960
|
-
origin: EventPosition
|
|
16342
|
+
origin: Pick<EventPosition, 'selection'>
|
|
15961
16343
|
ghost?: HTMLElement
|
|
15962
16344
|
}
|
|
15963
16345
|
| {
|
|
@@ -16029,6 +16411,10 @@ declare const editorMachine: StateMachine<
|
|
|
16029
16411
|
| {
|
|
16030
16412
|
type: 'decorator.toggle'
|
|
16031
16413
|
decorator: string
|
|
16414
|
+
offsets?: {
|
|
16415
|
+
anchor: BlockOffset_2
|
|
16416
|
+
focus: BlockOffset_2
|
|
16417
|
+
}
|
|
16032
16418
|
}
|
|
16033
16419
|
| {
|
|
16034
16420
|
type: 'delete'
|
|
@@ -16173,22 +16559,26 @@ declare const editorMachine: StateMachine<
|
|
|
16173
16559
|
mimeType: `${string}/${string}`
|
|
16174
16560
|
reason: string
|
|
16175
16561
|
} & {
|
|
16176
|
-
originEvent:
|
|
16177
|
-
|
|
16178
|
-
|
|
16179
|
-
|
|
16180
|
-
|
|
16562
|
+
originEvent:
|
|
16563
|
+
| PickFromUnion_2<
|
|
16564
|
+
NativeBehaviorEvent,
|
|
16565
|
+
'type',
|
|
16566
|
+
'drag.drop' | 'clipboard.paste'
|
|
16567
|
+
>
|
|
16568
|
+
| InputBehaviorEvent_2
|
|
16181
16569
|
})
|
|
16182
16570
|
| ({
|
|
16183
16571
|
type: 'deserialization.success'
|
|
16184
16572
|
data: Array<PortableTextBlock>
|
|
16185
16573
|
mimeType: `${string}/${string}`
|
|
16186
16574
|
} & {
|
|
16187
|
-
originEvent:
|
|
16188
|
-
|
|
16189
|
-
|
|
16190
|
-
|
|
16191
|
-
|
|
16575
|
+
originEvent:
|
|
16576
|
+
| PickFromUnion_2<
|
|
16577
|
+
NativeBehaviorEvent,
|
|
16578
|
+
'type',
|
|
16579
|
+
'drag.drop' | 'clipboard.paste'
|
|
16580
|
+
>
|
|
16581
|
+
| InputBehaviorEvent_2
|
|
16192
16582
|
})
|
|
16193
16583
|
| {
|
|
16194
16584
|
type: 'serialization.success'
|
|
@@ -16277,7 +16667,7 @@ declare const editorMachine: StateMachine<
|
|
|
16277
16667
|
value: Array<PortableTextBlock> | undefined
|
|
16278
16668
|
internalDrag?: {
|
|
16279
16669
|
ghost?: HTMLElement
|
|
16280
|
-
origin: EventPosition
|
|
16670
|
+
origin: Pick<EventPosition, 'selection'>
|
|
16281
16671
|
}
|
|
16282
16672
|
},
|
|
16283
16673
|
| {
|
|
@@ -16397,6 +16787,10 @@ declare const editorMachine: StateMachine<
|
|
|
16397
16787
|
| {
|
|
16398
16788
|
type: 'decorator.toggle'
|
|
16399
16789
|
decorator: string
|
|
16790
|
+
offsets?: {
|
|
16791
|
+
anchor: BlockOffset_2
|
|
16792
|
+
focus: BlockOffset_2
|
|
16793
|
+
}
|
|
16400
16794
|
}
|
|
16401
16795
|
| {
|
|
16402
16796
|
type: 'delete'
|
|
@@ -16541,22 +16935,26 @@ declare const editorMachine: StateMachine<
|
|
|
16541
16935
|
mimeType: `${string}/${string}`
|
|
16542
16936
|
reason: string
|
|
16543
16937
|
} & {
|
|
16544
|
-
originEvent:
|
|
16545
|
-
|
|
16546
|
-
|
|
16547
|
-
|
|
16548
|
-
|
|
16938
|
+
originEvent:
|
|
16939
|
+
| PickFromUnion_2<
|
|
16940
|
+
NativeBehaviorEvent,
|
|
16941
|
+
'type',
|
|
16942
|
+
'drag.drop' | 'clipboard.paste'
|
|
16943
|
+
>
|
|
16944
|
+
| InputBehaviorEvent_2
|
|
16549
16945
|
})
|
|
16550
16946
|
| ({
|
|
16551
16947
|
type: 'deserialization.success'
|
|
16552
16948
|
data: Array<PortableTextBlock>
|
|
16553
16949
|
mimeType: `${string}/${string}`
|
|
16554
16950
|
} & {
|
|
16555
|
-
originEvent:
|
|
16556
|
-
|
|
16557
|
-
|
|
16558
|
-
|
|
16559
|
-
|
|
16951
|
+
originEvent:
|
|
16952
|
+
| PickFromUnion_2<
|
|
16953
|
+
NativeBehaviorEvent,
|
|
16954
|
+
'type',
|
|
16955
|
+
'drag.drop' | 'clipboard.paste'
|
|
16956
|
+
>
|
|
16957
|
+
| InputBehaviorEvent_2
|
|
16560
16958
|
})
|
|
16561
16959
|
| {
|
|
16562
16960
|
type: 'serialization.success'
|
|
@@ -16701,7 +17099,7 @@ declare const editorMachine: StateMachine<
|
|
|
16701
17099
|
}
|
|
16702
17100
|
| {
|
|
16703
17101
|
type: 'dragstart'
|
|
16704
|
-
origin: EventPosition
|
|
17102
|
+
origin: Pick<EventPosition, 'selection'>
|
|
16705
17103
|
ghost?: HTMLElement
|
|
16706
17104
|
}
|
|
16707
17105
|
| {
|
|
@@ -16773,6 +17171,10 @@ declare const editorMachine: StateMachine<
|
|
|
16773
17171
|
| {
|
|
16774
17172
|
type: 'decorator.toggle'
|
|
16775
17173
|
decorator: string
|
|
17174
|
+
offsets?: {
|
|
17175
|
+
anchor: BlockOffset_2
|
|
17176
|
+
focus: BlockOffset_2
|
|
17177
|
+
}
|
|
16776
17178
|
}
|
|
16777
17179
|
| {
|
|
16778
17180
|
type: 'delete'
|
|
@@ -16917,22 +17319,26 @@ declare const editorMachine: StateMachine<
|
|
|
16917
17319
|
mimeType: `${string}/${string}`
|
|
16918
17320
|
reason: string
|
|
16919
17321
|
} & {
|
|
16920
|
-
originEvent:
|
|
16921
|
-
|
|
16922
|
-
|
|
16923
|
-
|
|
16924
|
-
|
|
17322
|
+
originEvent:
|
|
17323
|
+
| PickFromUnion_2<
|
|
17324
|
+
NativeBehaviorEvent,
|
|
17325
|
+
'type',
|
|
17326
|
+
'drag.drop' | 'clipboard.paste'
|
|
17327
|
+
>
|
|
17328
|
+
| InputBehaviorEvent_2
|
|
16925
17329
|
})
|
|
16926
17330
|
| ({
|
|
16927
17331
|
type: 'deserialization.success'
|
|
16928
17332
|
data: Array<PortableTextBlock>
|
|
16929
17333
|
mimeType: `${string}/${string}`
|
|
16930
17334
|
} & {
|
|
16931
|
-
originEvent:
|
|
16932
|
-
|
|
16933
|
-
|
|
16934
|
-
|
|
16935
|
-
|
|
17335
|
+
originEvent:
|
|
17336
|
+
| PickFromUnion_2<
|
|
17337
|
+
NativeBehaviorEvent,
|
|
17338
|
+
'type',
|
|
17339
|
+
'drag.drop' | 'clipboard.paste'
|
|
17340
|
+
>
|
|
17341
|
+
| InputBehaviorEvent_2
|
|
16936
17342
|
})
|
|
16937
17343
|
| {
|
|
16938
17344
|
type: 'serialization.success'
|
|
@@ -17021,7 +17427,7 @@ declare const editorMachine: StateMachine<
|
|
|
17021
17427
|
value: Array<PortableTextBlock> | undefined
|
|
17022
17428
|
internalDrag?: {
|
|
17023
17429
|
ghost?: HTMLElement
|
|
17024
|
-
origin: EventPosition
|
|
17430
|
+
origin: Pick<EventPosition, 'selection'>
|
|
17025
17431
|
}
|
|
17026
17432
|
},
|
|
17027
17433
|
| {
|
|
@@ -17094,6 +17500,10 @@ declare const editorMachine: StateMachine<
|
|
|
17094
17500
|
| {
|
|
17095
17501
|
type: 'decorator.toggle'
|
|
17096
17502
|
decorator: string
|
|
17503
|
+
offsets?: {
|
|
17504
|
+
anchor: BlockOffset_2
|
|
17505
|
+
focus: BlockOffset_2
|
|
17506
|
+
}
|
|
17097
17507
|
}
|
|
17098
17508
|
| {
|
|
17099
17509
|
type: 'delete'
|
|
@@ -17238,22 +17648,26 @@ declare const editorMachine: StateMachine<
|
|
|
17238
17648
|
mimeType: `${string}/${string}`
|
|
17239
17649
|
reason: string
|
|
17240
17650
|
} & {
|
|
17241
|
-
originEvent:
|
|
17242
|
-
|
|
17243
|
-
|
|
17244
|
-
|
|
17245
|
-
|
|
17651
|
+
originEvent:
|
|
17652
|
+
| PickFromUnion_2<
|
|
17653
|
+
NativeBehaviorEvent,
|
|
17654
|
+
'type',
|
|
17655
|
+
'drag.drop' | 'clipboard.paste'
|
|
17656
|
+
>
|
|
17657
|
+
| InputBehaviorEvent_2
|
|
17246
17658
|
})
|
|
17247
17659
|
| ({
|
|
17248
17660
|
type: 'deserialization.success'
|
|
17249
17661
|
data: Array<PortableTextBlock>
|
|
17250
17662
|
mimeType: `${string}/${string}`
|
|
17251
17663
|
} & {
|
|
17252
|
-
originEvent:
|
|
17253
|
-
|
|
17254
|
-
|
|
17255
|
-
|
|
17256
|
-
|
|
17664
|
+
originEvent:
|
|
17665
|
+
| PickFromUnion_2<
|
|
17666
|
+
NativeBehaviorEvent,
|
|
17667
|
+
'type',
|
|
17668
|
+
'drag.drop' | 'clipboard.paste'
|
|
17669
|
+
>
|
|
17670
|
+
| InputBehaviorEvent_2
|
|
17257
17671
|
})
|
|
17258
17672
|
| {
|
|
17259
17673
|
type: 'serialization.success'
|
|
@@ -17398,7 +17812,7 @@ declare const editorMachine: StateMachine<
|
|
|
17398
17812
|
}
|
|
17399
17813
|
| {
|
|
17400
17814
|
type: 'dragstart'
|
|
17401
|
-
origin: EventPosition
|
|
17815
|
+
origin: Pick<EventPosition, 'selection'>
|
|
17402
17816
|
ghost?: HTMLElement
|
|
17403
17817
|
}
|
|
17404
17818
|
| {
|
|
@@ -17470,6 +17884,10 @@ declare const editorMachine: StateMachine<
|
|
|
17470
17884
|
| {
|
|
17471
17885
|
type: 'decorator.toggle'
|
|
17472
17886
|
decorator: string
|
|
17887
|
+
offsets?: {
|
|
17888
|
+
anchor: BlockOffset_2
|
|
17889
|
+
focus: BlockOffset_2
|
|
17890
|
+
}
|
|
17473
17891
|
}
|
|
17474
17892
|
| {
|
|
17475
17893
|
type: 'delete'
|
|
@@ -17614,22 +18032,26 @@ declare const editorMachine: StateMachine<
|
|
|
17614
18032
|
mimeType: `${string}/${string}`
|
|
17615
18033
|
reason: string
|
|
17616
18034
|
} & {
|
|
17617
|
-
originEvent:
|
|
17618
|
-
|
|
17619
|
-
|
|
17620
|
-
|
|
17621
|
-
|
|
18035
|
+
originEvent:
|
|
18036
|
+
| PickFromUnion_2<
|
|
18037
|
+
NativeBehaviorEvent,
|
|
18038
|
+
'type',
|
|
18039
|
+
'drag.drop' | 'clipboard.paste'
|
|
18040
|
+
>
|
|
18041
|
+
| InputBehaviorEvent_2
|
|
17622
18042
|
})
|
|
17623
18043
|
| ({
|
|
17624
18044
|
type: 'deserialization.success'
|
|
17625
18045
|
data: Array<PortableTextBlock>
|
|
17626
18046
|
mimeType: `${string}/${string}`
|
|
17627
18047
|
} & {
|
|
17628
|
-
originEvent:
|
|
17629
|
-
|
|
17630
|
-
|
|
17631
|
-
|
|
17632
|
-
|
|
18048
|
+
originEvent:
|
|
18049
|
+
| PickFromUnion_2<
|
|
18050
|
+
NativeBehaviorEvent,
|
|
18051
|
+
'type',
|
|
18052
|
+
'drag.drop' | 'clipboard.paste'
|
|
18053
|
+
>
|
|
18054
|
+
| InputBehaviorEvent_2
|
|
17633
18055
|
})
|
|
17634
18056
|
| {
|
|
17635
18057
|
type: 'serialization.success'
|
|
@@ -17718,7 +18140,7 @@ declare const editorMachine: StateMachine<
|
|
|
17718
18140
|
value: Array<PortableTextBlock> | undefined
|
|
17719
18141
|
internalDrag?: {
|
|
17720
18142
|
ghost?: HTMLElement
|
|
17721
|
-
origin: EventPosition
|
|
18143
|
+
origin: Pick<EventPosition, 'selection'>
|
|
17722
18144
|
}
|
|
17723
18145
|
},
|
|
17724
18146
|
| {
|
|
@@ -17792,6 +18214,10 @@ declare const editorMachine: StateMachine<
|
|
|
17792
18214
|
| {
|
|
17793
18215
|
type: 'decorator.toggle'
|
|
17794
18216
|
decorator: string
|
|
18217
|
+
offsets?: {
|
|
18218
|
+
anchor: BlockOffset_2
|
|
18219
|
+
focus: BlockOffset_2
|
|
18220
|
+
}
|
|
17795
18221
|
}
|
|
17796
18222
|
| {
|
|
17797
18223
|
type: 'delete'
|
|
@@ -17936,22 +18362,26 @@ declare const editorMachine: StateMachine<
|
|
|
17936
18362
|
mimeType: `${string}/${string}`
|
|
17937
18363
|
reason: string
|
|
17938
18364
|
} & {
|
|
17939
|
-
originEvent:
|
|
17940
|
-
|
|
17941
|
-
|
|
17942
|
-
|
|
17943
|
-
|
|
18365
|
+
originEvent:
|
|
18366
|
+
| PickFromUnion_2<
|
|
18367
|
+
NativeBehaviorEvent,
|
|
18368
|
+
'type',
|
|
18369
|
+
'drag.drop' | 'clipboard.paste'
|
|
18370
|
+
>
|
|
18371
|
+
| InputBehaviorEvent_2
|
|
17944
18372
|
})
|
|
17945
18373
|
| ({
|
|
17946
18374
|
type: 'deserialization.success'
|
|
17947
18375
|
data: Array<PortableTextBlock>
|
|
17948
18376
|
mimeType: `${string}/${string}`
|
|
17949
18377
|
} & {
|
|
17950
|
-
originEvent:
|
|
17951
|
-
|
|
17952
|
-
|
|
17953
|
-
|
|
17954
|
-
|
|
18378
|
+
originEvent:
|
|
18379
|
+
| PickFromUnion_2<
|
|
18380
|
+
NativeBehaviorEvent,
|
|
18381
|
+
'type',
|
|
18382
|
+
'drag.drop' | 'clipboard.paste'
|
|
18383
|
+
>
|
|
18384
|
+
| InputBehaviorEvent_2
|
|
17955
18385
|
})
|
|
17956
18386
|
| {
|
|
17957
18387
|
type: 'serialization.success'
|
|
@@ -18096,7 +18526,7 @@ declare const editorMachine: StateMachine<
|
|
|
18096
18526
|
}
|
|
18097
18527
|
| {
|
|
18098
18528
|
type: 'dragstart'
|
|
18099
|
-
origin: EventPosition
|
|
18529
|
+
origin: Pick<EventPosition, 'selection'>
|
|
18100
18530
|
ghost?: HTMLElement
|
|
18101
18531
|
}
|
|
18102
18532
|
| {
|
|
@@ -18168,6 +18598,10 @@ declare const editorMachine: StateMachine<
|
|
|
18168
18598
|
| {
|
|
18169
18599
|
type: 'decorator.toggle'
|
|
18170
18600
|
decorator: string
|
|
18601
|
+
offsets?: {
|
|
18602
|
+
anchor: BlockOffset_2
|
|
18603
|
+
focus: BlockOffset_2
|
|
18604
|
+
}
|
|
18171
18605
|
}
|
|
18172
18606
|
| {
|
|
18173
18607
|
type: 'delete'
|
|
@@ -18312,22 +18746,26 @@ declare const editorMachine: StateMachine<
|
|
|
18312
18746
|
mimeType: `${string}/${string}`
|
|
18313
18747
|
reason: string
|
|
18314
18748
|
} & {
|
|
18315
|
-
originEvent:
|
|
18316
|
-
|
|
18317
|
-
|
|
18318
|
-
|
|
18319
|
-
|
|
18749
|
+
originEvent:
|
|
18750
|
+
| PickFromUnion_2<
|
|
18751
|
+
NativeBehaviorEvent,
|
|
18752
|
+
'type',
|
|
18753
|
+
'drag.drop' | 'clipboard.paste'
|
|
18754
|
+
>
|
|
18755
|
+
| InputBehaviorEvent_2
|
|
18320
18756
|
})
|
|
18321
18757
|
| ({
|
|
18322
18758
|
type: 'deserialization.success'
|
|
18323
18759
|
data: Array<PortableTextBlock>
|
|
18324
18760
|
mimeType: `${string}/${string}`
|
|
18325
18761
|
} & {
|
|
18326
|
-
originEvent:
|
|
18327
|
-
|
|
18328
|
-
|
|
18329
|
-
|
|
18330
|
-
|
|
18762
|
+
originEvent:
|
|
18763
|
+
| PickFromUnion_2<
|
|
18764
|
+
NativeBehaviorEvent,
|
|
18765
|
+
'type',
|
|
18766
|
+
'drag.drop' | 'clipboard.paste'
|
|
18767
|
+
>
|
|
18768
|
+
| InputBehaviorEvent_2
|
|
18331
18769
|
})
|
|
18332
18770
|
| {
|
|
18333
18771
|
type: 'serialization.success'
|
|
@@ -18416,7 +18854,7 @@ declare const editorMachine: StateMachine<
|
|
|
18416
18854
|
value: Array<PortableTextBlock> | undefined
|
|
18417
18855
|
internalDrag?: {
|
|
18418
18856
|
ghost?: HTMLElement
|
|
18419
|
-
origin: EventPosition
|
|
18857
|
+
origin: Pick<EventPosition, 'selection'>
|
|
18420
18858
|
}
|
|
18421
18859
|
},
|
|
18422
18860
|
{
|
|
@@ -18481,6 +18919,10 @@ declare const editorMachine: StateMachine<
|
|
|
18481
18919
|
| {
|
|
18482
18920
|
type: 'decorator.toggle'
|
|
18483
18921
|
decorator: string
|
|
18922
|
+
offsets?: {
|
|
18923
|
+
anchor: BlockOffset_2
|
|
18924
|
+
focus: BlockOffset_2
|
|
18925
|
+
}
|
|
18484
18926
|
}
|
|
18485
18927
|
| {
|
|
18486
18928
|
type: 'delete'
|
|
@@ -18625,22 +19067,26 @@ declare const editorMachine: StateMachine<
|
|
|
18625
19067
|
mimeType: `${string}/${string}`
|
|
18626
19068
|
reason: string
|
|
18627
19069
|
} & {
|
|
18628
|
-
originEvent:
|
|
18629
|
-
|
|
18630
|
-
|
|
18631
|
-
|
|
18632
|
-
|
|
19070
|
+
originEvent:
|
|
19071
|
+
| PickFromUnion_2<
|
|
19072
|
+
NativeBehaviorEvent,
|
|
19073
|
+
'type',
|
|
19074
|
+
'drag.drop' | 'clipboard.paste'
|
|
19075
|
+
>
|
|
19076
|
+
| InputBehaviorEvent_2
|
|
18633
19077
|
})
|
|
18634
19078
|
| ({
|
|
18635
19079
|
type: 'deserialization.success'
|
|
18636
19080
|
data: Array<PortableTextBlock>
|
|
18637
19081
|
mimeType: `${string}/${string}`
|
|
18638
19082
|
} & {
|
|
18639
|
-
originEvent:
|
|
18640
|
-
|
|
18641
|
-
|
|
18642
|
-
|
|
18643
|
-
|
|
19083
|
+
originEvent:
|
|
19084
|
+
| PickFromUnion_2<
|
|
19085
|
+
NativeBehaviorEvent,
|
|
19086
|
+
'type',
|
|
19087
|
+
'drag.drop' | 'clipboard.paste'
|
|
19088
|
+
>
|
|
19089
|
+
| InputBehaviorEvent_2
|
|
18644
19090
|
})
|
|
18645
19091
|
| {
|
|
18646
19092
|
type: 'serialization.success'
|
|
@@ -18785,7 +19231,7 @@ declare const editorMachine: StateMachine<
|
|
|
18785
19231
|
}
|
|
18786
19232
|
| {
|
|
18787
19233
|
type: 'dragstart'
|
|
18788
|
-
origin: EventPosition
|
|
19234
|
+
origin: Pick<EventPosition, 'selection'>
|
|
18789
19235
|
ghost?: HTMLElement
|
|
18790
19236
|
}
|
|
18791
19237
|
| {
|
|
@@ -18857,6 +19303,10 @@ declare const editorMachine: StateMachine<
|
|
|
18857
19303
|
| {
|
|
18858
19304
|
type: 'decorator.toggle'
|
|
18859
19305
|
decorator: string
|
|
19306
|
+
offsets?: {
|
|
19307
|
+
anchor: BlockOffset_2
|
|
19308
|
+
focus: BlockOffset_2
|
|
19309
|
+
}
|
|
18860
19310
|
}
|
|
18861
19311
|
| {
|
|
18862
19312
|
type: 'delete'
|
|
@@ -19001,22 +19451,26 @@ declare const editorMachine: StateMachine<
|
|
|
19001
19451
|
mimeType: `${string}/${string}`
|
|
19002
19452
|
reason: string
|
|
19003
19453
|
} & {
|
|
19004
|
-
originEvent:
|
|
19005
|
-
|
|
19006
|
-
|
|
19007
|
-
|
|
19008
|
-
|
|
19454
|
+
originEvent:
|
|
19455
|
+
| PickFromUnion_2<
|
|
19456
|
+
NativeBehaviorEvent,
|
|
19457
|
+
'type',
|
|
19458
|
+
'drag.drop' | 'clipboard.paste'
|
|
19459
|
+
>
|
|
19460
|
+
| InputBehaviorEvent_2
|
|
19009
19461
|
})
|
|
19010
19462
|
| ({
|
|
19011
19463
|
type: 'deserialization.success'
|
|
19012
19464
|
data: Array<PortableTextBlock>
|
|
19013
19465
|
mimeType: `${string}/${string}`
|
|
19014
19466
|
} & {
|
|
19015
|
-
originEvent:
|
|
19016
|
-
|
|
19017
|
-
|
|
19018
|
-
|
|
19019
|
-
|
|
19467
|
+
originEvent:
|
|
19468
|
+
| PickFromUnion_2<
|
|
19469
|
+
NativeBehaviorEvent,
|
|
19470
|
+
'type',
|
|
19471
|
+
'drag.drop' | 'clipboard.paste'
|
|
19472
|
+
>
|
|
19473
|
+
| InputBehaviorEvent_2
|
|
19020
19474
|
})
|
|
19021
19475
|
| {
|
|
19022
19476
|
type: 'serialization.success'
|
|
@@ -19105,7 +19559,7 @@ declare const editorMachine: StateMachine<
|
|
|
19105
19559
|
value: Array<PortableTextBlock> | undefined
|
|
19106
19560
|
internalDrag?: {
|
|
19107
19561
|
ghost?: HTMLElement
|
|
19108
|
-
origin: EventPosition
|
|
19562
|
+
origin: Pick<EventPosition, 'selection'>
|
|
19109
19563
|
}
|
|
19110
19564
|
},
|
|
19111
19565
|
| {
|
|
@@ -19174,6 +19628,10 @@ declare const editorMachine: StateMachine<
|
|
|
19174
19628
|
| {
|
|
19175
19629
|
type: 'decorator.toggle'
|
|
19176
19630
|
decorator: string
|
|
19631
|
+
offsets?: {
|
|
19632
|
+
anchor: BlockOffset_2
|
|
19633
|
+
focus: BlockOffset_2
|
|
19634
|
+
}
|
|
19177
19635
|
}
|
|
19178
19636
|
| {
|
|
19179
19637
|
type: 'delete'
|
|
@@ -19318,22 +19776,26 @@ declare const editorMachine: StateMachine<
|
|
|
19318
19776
|
mimeType: `${string}/${string}`
|
|
19319
19777
|
reason: string
|
|
19320
19778
|
} & {
|
|
19321
|
-
originEvent:
|
|
19322
|
-
|
|
19323
|
-
|
|
19324
|
-
|
|
19325
|
-
|
|
19779
|
+
originEvent:
|
|
19780
|
+
| PickFromUnion_2<
|
|
19781
|
+
NativeBehaviorEvent,
|
|
19782
|
+
'type',
|
|
19783
|
+
'drag.drop' | 'clipboard.paste'
|
|
19784
|
+
>
|
|
19785
|
+
| InputBehaviorEvent_2
|
|
19326
19786
|
})
|
|
19327
19787
|
| ({
|
|
19328
19788
|
type: 'deserialization.success'
|
|
19329
19789
|
data: Array<PortableTextBlock>
|
|
19330
19790
|
mimeType: `${string}/${string}`
|
|
19331
19791
|
} & {
|
|
19332
|
-
originEvent:
|
|
19333
|
-
|
|
19334
|
-
|
|
19335
|
-
|
|
19336
|
-
|
|
19792
|
+
originEvent:
|
|
19793
|
+
| PickFromUnion_2<
|
|
19794
|
+
NativeBehaviorEvent,
|
|
19795
|
+
'type',
|
|
19796
|
+
'drag.drop' | 'clipboard.paste'
|
|
19797
|
+
>
|
|
19798
|
+
| InputBehaviorEvent_2
|
|
19337
19799
|
})
|
|
19338
19800
|
| {
|
|
19339
19801
|
type: 'serialization.success'
|
|
@@ -19478,7 +19940,7 @@ declare const editorMachine: StateMachine<
|
|
|
19478
19940
|
}
|
|
19479
19941
|
| {
|
|
19480
19942
|
type: 'dragstart'
|
|
19481
|
-
origin: EventPosition
|
|
19943
|
+
origin: Pick<EventPosition, 'selection'>
|
|
19482
19944
|
ghost?: HTMLElement
|
|
19483
19945
|
}
|
|
19484
19946
|
| {
|
|
@@ -19550,6 +20012,10 @@ declare const editorMachine: StateMachine<
|
|
|
19550
20012
|
| {
|
|
19551
20013
|
type: 'decorator.toggle'
|
|
19552
20014
|
decorator: string
|
|
20015
|
+
offsets?: {
|
|
20016
|
+
anchor: BlockOffset_2
|
|
20017
|
+
focus: BlockOffset_2
|
|
20018
|
+
}
|
|
19553
20019
|
}
|
|
19554
20020
|
| {
|
|
19555
20021
|
type: 'delete'
|
|
@@ -19694,22 +20160,26 @@ declare const editorMachine: StateMachine<
|
|
|
19694
20160
|
mimeType: `${string}/${string}`
|
|
19695
20161
|
reason: string
|
|
19696
20162
|
} & {
|
|
19697
|
-
originEvent:
|
|
19698
|
-
|
|
19699
|
-
|
|
19700
|
-
|
|
19701
|
-
|
|
20163
|
+
originEvent:
|
|
20164
|
+
| PickFromUnion_2<
|
|
20165
|
+
NativeBehaviorEvent,
|
|
20166
|
+
'type',
|
|
20167
|
+
'drag.drop' | 'clipboard.paste'
|
|
20168
|
+
>
|
|
20169
|
+
| InputBehaviorEvent_2
|
|
19702
20170
|
})
|
|
19703
20171
|
| ({
|
|
19704
20172
|
type: 'deserialization.success'
|
|
19705
20173
|
data: Array<PortableTextBlock>
|
|
19706
20174
|
mimeType: `${string}/${string}`
|
|
19707
20175
|
} & {
|
|
19708
|
-
originEvent:
|
|
19709
|
-
|
|
19710
|
-
|
|
19711
|
-
|
|
19712
|
-
|
|
20176
|
+
originEvent:
|
|
20177
|
+
| PickFromUnion_2<
|
|
20178
|
+
NativeBehaviorEvent,
|
|
20179
|
+
'type',
|
|
20180
|
+
'drag.drop' | 'clipboard.paste'
|
|
20181
|
+
>
|
|
20182
|
+
| InputBehaviorEvent_2
|
|
19713
20183
|
})
|
|
19714
20184
|
| {
|
|
19715
20185
|
type: 'serialization.success'
|
|
@@ -19798,7 +20268,7 @@ declare const editorMachine: StateMachine<
|
|
|
19798
20268
|
value: Array<PortableTextBlock> | undefined
|
|
19799
20269
|
internalDrag?: {
|
|
19800
20270
|
ghost?: HTMLElement
|
|
19801
|
-
origin: EventPosition
|
|
20271
|
+
origin: Pick<EventPosition, 'selection'>
|
|
19802
20272
|
}
|
|
19803
20273
|
},
|
|
19804
20274
|
| {
|
|
@@ -19871,6 +20341,10 @@ declare const editorMachine: StateMachine<
|
|
|
19871
20341
|
| {
|
|
19872
20342
|
type: 'decorator.toggle'
|
|
19873
20343
|
decorator: string
|
|
20344
|
+
offsets?: {
|
|
20345
|
+
anchor: BlockOffset_2
|
|
20346
|
+
focus: BlockOffset_2
|
|
20347
|
+
}
|
|
19874
20348
|
}
|
|
19875
20349
|
| {
|
|
19876
20350
|
type: 'delete'
|
|
@@ -20015,22 +20489,26 @@ declare const editorMachine: StateMachine<
|
|
|
20015
20489
|
mimeType: `${string}/${string}`
|
|
20016
20490
|
reason: string
|
|
20017
20491
|
} & {
|
|
20018
|
-
originEvent:
|
|
20019
|
-
|
|
20020
|
-
|
|
20021
|
-
|
|
20022
|
-
|
|
20492
|
+
originEvent:
|
|
20493
|
+
| PickFromUnion_2<
|
|
20494
|
+
NativeBehaviorEvent,
|
|
20495
|
+
'type',
|
|
20496
|
+
'drag.drop' | 'clipboard.paste'
|
|
20497
|
+
>
|
|
20498
|
+
| InputBehaviorEvent_2
|
|
20023
20499
|
})
|
|
20024
20500
|
| ({
|
|
20025
20501
|
type: 'deserialization.success'
|
|
20026
20502
|
data: Array<PortableTextBlock>
|
|
20027
20503
|
mimeType: `${string}/${string}`
|
|
20028
20504
|
} & {
|
|
20029
|
-
originEvent:
|
|
20030
|
-
|
|
20031
|
-
|
|
20032
|
-
|
|
20033
|
-
|
|
20505
|
+
originEvent:
|
|
20506
|
+
| PickFromUnion_2<
|
|
20507
|
+
NativeBehaviorEvent,
|
|
20508
|
+
'type',
|
|
20509
|
+
'drag.drop' | 'clipboard.paste'
|
|
20510
|
+
>
|
|
20511
|
+
| InputBehaviorEvent_2
|
|
20034
20512
|
})
|
|
20035
20513
|
| {
|
|
20036
20514
|
type: 'serialization.success'
|
|
@@ -20175,7 +20653,7 @@ declare const editorMachine: StateMachine<
|
|
|
20175
20653
|
}
|
|
20176
20654
|
| {
|
|
20177
20655
|
type: 'dragstart'
|
|
20178
|
-
origin: EventPosition
|
|
20656
|
+
origin: Pick<EventPosition, 'selection'>
|
|
20179
20657
|
ghost?: HTMLElement
|
|
20180
20658
|
}
|
|
20181
20659
|
| {
|
|
@@ -20247,6 +20725,10 @@ declare const editorMachine: StateMachine<
|
|
|
20247
20725
|
| {
|
|
20248
20726
|
type: 'decorator.toggle'
|
|
20249
20727
|
decorator: string
|
|
20728
|
+
offsets?: {
|
|
20729
|
+
anchor: BlockOffset_2
|
|
20730
|
+
focus: BlockOffset_2
|
|
20731
|
+
}
|
|
20250
20732
|
}
|
|
20251
20733
|
| {
|
|
20252
20734
|
type: 'delete'
|
|
@@ -20391,22 +20873,26 @@ declare const editorMachine: StateMachine<
|
|
|
20391
20873
|
mimeType: `${string}/${string}`
|
|
20392
20874
|
reason: string
|
|
20393
20875
|
} & {
|
|
20394
|
-
originEvent:
|
|
20395
|
-
|
|
20396
|
-
|
|
20397
|
-
|
|
20398
|
-
|
|
20876
|
+
originEvent:
|
|
20877
|
+
| PickFromUnion_2<
|
|
20878
|
+
NativeBehaviorEvent,
|
|
20879
|
+
'type',
|
|
20880
|
+
'drag.drop' | 'clipboard.paste'
|
|
20881
|
+
>
|
|
20882
|
+
| InputBehaviorEvent_2
|
|
20399
20883
|
})
|
|
20400
20884
|
| ({
|
|
20401
20885
|
type: 'deserialization.success'
|
|
20402
20886
|
data: Array<PortableTextBlock>
|
|
20403
20887
|
mimeType: `${string}/${string}`
|
|
20404
20888
|
} & {
|
|
20405
|
-
originEvent:
|
|
20406
|
-
|
|
20407
|
-
|
|
20408
|
-
|
|
20409
|
-
|
|
20889
|
+
originEvent:
|
|
20890
|
+
| PickFromUnion_2<
|
|
20891
|
+
NativeBehaviorEvent,
|
|
20892
|
+
'type',
|
|
20893
|
+
'drag.drop' | 'clipboard.paste'
|
|
20894
|
+
>
|
|
20895
|
+
| InputBehaviorEvent_2
|
|
20410
20896
|
})
|
|
20411
20897
|
| {
|
|
20412
20898
|
type: 'serialization.success'
|
|
@@ -20516,12 +21002,12 @@ declare const editorMachine: StateMachine<
|
|
|
20516
21002
|
value: Array<PortableTextBlock> | undefined
|
|
20517
21003
|
internalDrag?: {
|
|
20518
21004
|
ghost?: HTMLElement
|
|
20519
|
-
origin: EventPosition
|
|
21005
|
+
origin: Pick<EventPosition, 'selection'>
|
|
20520
21006
|
}
|
|
20521
21007
|
},
|
|
20522
21008
|
{
|
|
20523
21009
|
type: 'dragstart'
|
|
20524
|
-
origin: EventPosition
|
|
21010
|
+
origin: Pick<EventPosition, 'selection'>
|
|
20525
21011
|
ghost?: HTMLElement
|
|
20526
21012
|
},
|
|
20527
21013
|
| {
|
|
@@ -20582,6 +21068,10 @@ declare const editorMachine: StateMachine<
|
|
|
20582
21068
|
| {
|
|
20583
21069
|
type: 'decorator.toggle'
|
|
20584
21070
|
decorator: string
|
|
21071
|
+
offsets?: {
|
|
21072
|
+
anchor: BlockOffset_2
|
|
21073
|
+
focus: BlockOffset_2
|
|
21074
|
+
}
|
|
20585
21075
|
}
|
|
20586
21076
|
| {
|
|
20587
21077
|
type: 'delete'
|
|
@@ -20726,22 +21216,26 @@ declare const editorMachine: StateMachine<
|
|
|
20726
21216
|
mimeType: `${string}/${string}`
|
|
20727
21217
|
reason: string
|
|
20728
21218
|
} & {
|
|
20729
|
-
originEvent:
|
|
20730
|
-
|
|
20731
|
-
|
|
20732
|
-
|
|
20733
|
-
|
|
21219
|
+
originEvent:
|
|
21220
|
+
| PickFromUnion_2<
|
|
21221
|
+
NativeBehaviorEvent,
|
|
21222
|
+
'type',
|
|
21223
|
+
'drag.drop' | 'clipboard.paste'
|
|
21224
|
+
>
|
|
21225
|
+
| InputBehaviorEvent_2
|
|
20734
21226
|
})
|
|
20735
21227
|
| ({
|
|
20736
21228
|
type: 'deserialization.success'
|
|
20737
21229
|
data: Array<PortableTextBlock>
|
|
20738
21230
|
mimeType: `${string}/${string}`
|
|
20739
21231
|
} & {
|
|
20740
|
-
originEvent:
|
|
20741
|
-
|
|
20742
|
-
|
|
20743
|
-
|
|
20744
|
-
|
|
21232
|
+
originEvent:
|
|
21233
|
+
| PickFromUnion_2<
|
|
21234
|
+
NativeBehaviorEvent,
|
|
21235
|
+
'type',
|
|
21236
|
+
'drag.drop' | 'clipboard.paste'
|
|
21237
|
+
>
|
|
21238
|
+
| InputBehaviorEvent_2
|
|
20745
21239
|
})
|
|
20746
21240
|
| {
|
|
20747
21241
|
type: 'serialization.success'
|
|
@@ -20890,7 +21384,7 @@ declare const editorMachine: StateMachine<
|
|
|
20890
21384
|
}
|
|
20891
21385
|
| {
|
|
20892
21386
|
type: 'dragstart'
|
|
20893
|
-
origin: EventPosition
|
|
21387
|
+
origin: Pick<EventPosition, 'selection'>
|
|
20894
21388
|
ghost?: HTMLElement
|
|
20895
21389
|
}
|
|
20896
21390
|
| {
|
|
@@ -20928,7 +21422,7 @@ declare const editorMachine: StateMachine<
|
|
|
20928
21422
|
value: Array<PortableTextBlock> | undefined
|
|
20929
21423
|
internalDrag?: {
|
|
20930
21424
|
ghost?: HTMLElement
|
|
20931
|
-
origin: EventPosition
|
|
21425
|
+
origin: Pick<EventPosition, 'selection'>
|
|
20932
21426
|
}
|
|
20933
21427
|
},
|
|
20934
21428
|
| {
|
|
@@ -20989,6 +21483,10 @@ declare const editorMachine: StateMachine<
|
|
|
20989
21483
|
| {
|
|
20990
21484
|
type: 'decorator.toggle'
|
|
20991
21485
|
decorator: string
|
|
21486
|
+
offsets?: {
|
|
21487
|
+
anchor: BlockOffset_2
|
|
21488
|
+
focus: BlockOffset_2
|
|
21489
|
+
}
|
|
20992
21490
|
}
|
|
20993
21491
|
| {
|
|
20994
21492
|
type: 'delete'
|
|
@@ -21133,22 +21631,26 @@ declare const editorMachine: StateMachine<
|
|
|
21133
21631
|
mimeType: `${string}/${string}`
|
|
21134
21632
|
reason: string
|
|
21135
21633
|
} & {
|
|
21136
|
-
originEvent:
|
|
21137
|
-
|
|
21138
|
-
|
|
21139
|
-
|
|
21140
|
-
|
|
21634
|
+
originEvent:
|
|
21635
|
+
| PickFromUnion_2<
|
|
21636
|
+
NativeBehaviorEvent,
|
|
21637
|
+
'type',
|
|
21638
|
+
'drag.drop' | 'clipboard.paste'
|
|
21639
|
+
>
|
|
21640
|
+
| InputBehaviorEvent_2
|
|
21141
21641
|
})
|
|
21142
21642
|
| ({
|
|
21143
21643
|
type: 'deserialization.success'
|
|
21144
21644
|
data: Array<PortableTextBlock>
|
|
21145
21645
|
mimeType: `${string}/${string}`
|
|
21146
21646
|
} & {
|
|
21147
|
-
originEvent:
|
|
21148
|
-
|
|
21149
|
-
|
|
21150
|
-
|
|
21151
|
-
|
|
21647
|
+
originEvent:
|
|
21648
|
+
| PickFromUnion_2<
|
|
21649
|
+
NativeBehaviorEvent,
|
|
21650
|
+
'type',
|
|
21651
|
+
'drag.drop' | 'clipboard.paste'
|
|
21652
|
+
>
|
|
21653
|
+
| InputBehaviorEvent_2
|
|
21152
21654
|
})
|
|
21153
21655
|
| {
|
|
21154
21656
|
type: 'serialization.success'
|
|
@@ -21293,7 +21795,7 @@ declare const editorMachine: StateMachine<
|
|
|
21293
21795
|
}
|
|
21294
21796
|
| {
|
|
21295
21797
|
type: 'dragstart'
|
|
21296
|
-
origin: EventPosition
|
|
21798
|
+
origin: Pick<EventPosition, 'selection'>
|
|
21297
21799
|
ghost?: HTMLElement
|
|
21298
21800
|
}
|
|
21299
21801
|
| {
|
|
@@ -21360,6 +21862,10 @@ declare const editorMachine: StateMachine<
|
|
|
21360
21862
|
| {
|
|
21361
21863
|
type: 'decorator.toggle'
|
|
21362
21864
|
decorator: string
|
|
21865
|
+
offsets?: {
|
|
21866
|
+
anchor: BlockOffset_2
|
|
21867
|
+
focus: BlockOffset_2
|
|
21868
|
+
}
|
|
21363
21869
|
}
|
|
21364
21870
|
| {
|
|
21365
21871
|
type: 'delete'
|
|
@@ -21504,22 +22010,26 @@ declare const editorMachine: StateMachine<
|
|
|
21504
22010
|
mimeType: `${string}/${string}`
|
|
21505
22011
|
reason: string
|
|
21506
22012
|
} & {
|
|
21507
|
-
originEvent:
|
|
21508
|
-
|
|
21509
|
-
|
|
21510
|
-
|
|
21511
|
-
|
|
22013
|
+
originEvent:
|
|
22014
|
+
| PickFromUnion_2<
|
|
22015
|
+
NativeBehaviorEvent,
|
|
22016
|
+
'type',
|
|
22017
|
+
'drag.drop' | 'clipboard.paste'
|
|
22018
|
+
>
|
|
22019
|
+
| InputBehaviorEvent_2
|
|
21512
22020
|
})
|
|
21513
22021
|
| ({
|
|
21514
22022
|
type: 'deserialization.success'
|
|
21515
22023
|
data: Array<PortableTextBlock>
|
|
21516
22024
|
mimeType: `${string}/${string}`
|
|
21517
22025
|
} & {
|
|
21518
|
-
originEvent:
|
|
21519
|
-
|
|
21520
|
-
|
|
21521
|
-
|
|
21522
|
-
|
|
22026
|
+
originEvent:
|
|
22027
|
+
| PickFromUnion_2<
|
|
22028
|
+
NativeBehaviorEvent,
|
|
22029
|
+
'type',
|
|
22030
|
+
'drag.drop' | 'clipboard.paste'
|
|
22031
|
+
>
|
|
22032
|
+
| InputBehaviorEvent_2
|
|
21523
22033
|
})
|
|
21524
22034
|
| {
|
|
21525
22035
|
type: 'serialization.success'
|
|
@@ -21664,7 +22174,7 @@ declare const editorMachine: StateMachine<
|
|
|
21664
22174
|
}
|
|
21665
22175
|
| {
|
|
21666
22176
|
type: 'dragstart'
|
|
21667
|
-
origin: EventPosition
|
|
22177
|
+
origin: Pick<EventPosition, 'selection'>
|
|
21668
22178
|
ghost?: HTMLElement
|
|
21669
22179
|
}
|
|
21670
22180
|
| {
|
|
@@ -21687,7 +22197,7 @@ declare const editorMachine: StateMachine<
|
|
|
21687
22197
|
value: Array<PortableTextBlock> | undefined
|
|
21688
22198
|
internalDrag?: {
|
|
21689
22199
|
ghost?: HTMLElement
|
|
21690
|
-
origin: EventPosition
|
|
22200
|
+
origin: Pick<EventPosition, 'selection'>
|
|
21691
22201
|
}
|
|
21692
22202
|
},
|
|
21693
22203
|
| {
|
|
@@ -21748,6 +22258,10 @@ declare const editorMachine: StateMachine<
|
|
|
21748
22258
|
| {
|
|
21749
22259
|
type: 'decorator.toggle'
|
|
21750
22260
|
decorator: string
|
|
22261
|
+
offsets?: {
|
|
22262
|
+
anchor: BlockOffset_2
|
|
22263
|
+
focus: BlockOffset_2
|
|
22264
|
+
}
|
|
21751
22265
|
}
|
|
21752
22266
|
| {
|
|
21753
22267
|
type: 'delete'
|
|
@@ -21892,22 +22406,26 @@ declare const editorMachine: StateMachine<
|
|
|
21892
22406
|
mimeType: `${string}/${string}`
|
|
21893
22407
|
reason: string
|
|
21894
22408
|
} & {
|
|
21895
|
-
originEvent:
|
|
21896
|
-
|
|
21897
|
-
|
|
21898
|
-
|
|
21899
|
-
|
|
22409
|
+
originEvent:
|
|
22410
|
+
| PickFromUnion_2<
|
|
22411
|
+
NativeBehaviorEvent,
|
|
22412
|
+
'type',
|
|
22413
|
+
'drag.drop' | 'clipboard.paste'
|
|
22414
|
+
>
|
|
22415
|
+
| InputBehaviorEvent_2
|
|
21900
22416
|
})
|
|
21901
22417
|
| ({
|
|
21902
22418
|
type: 'deserialization.success'
|
|
21903
22419
|
data: Array<PortableTextBlock>
|
|
21904
22420
|
mimeType: `${string}/${string}`
|
|
21905
22421
|
} & {
|
|
21906
|
-
originEvent:
|
|
21907
|
-
|
|
21908
|
-
|
|
21909
|
-
|
|
21910
|
-
|
|
22422
|
+
originEvent:
|
|
22423
|
+
| PickFromUnion_2<
|
|
22424
|
+
NativeBehaviorEvent,
|
|
22425
|
+
'type',
|
|
22426
|
+
'drag.drop' | 'clipboard.paste'
|
|
22427
|
+
>
|
|
22428
|
+
| InputBehaviorEvent_2
|
|
21911
22429
|
})
|
|
21912
22430
|
| {
|
|
21913
22431
|
type: 'serialization.success'
|
|
@@ -22052,7 +22570,7 @@ declare const editorMachine: StateMachine<
|
|
|
22052
22570
|
}
|
|
22053
22571
|
| {
|
|
22054
22572
|
type: 'dragstart'
|
|
22055
|
-
origin: EventPosition
|
|
22573
|
+
origin: Pick<EventPosition, 'selection'>
|
|
22056
22574
|
ghost?: HTMLElement
|
|
22057
22575
|
}
|
|
22058
22576
|
| {
|
|
@@ -22119,6 +22637,10 @@ declare const editorMachine: StateMachine<
|
|
|
22119
22637
|
| {
|
|
22120
22638
|
type: 'decorator.toggle'
|
|
22121
22639
|
decorator: string
|
|
22640
|
+
offsets?: {
|
|
22641
|
+
anchor: BlockOffset_2
|
|
22642
|
+
focus: BlockOffset_2
|
|
22643
|
+
}
|
|
22122
22644
|
}
|
|
22123
22645
|
| {
|
|
22124
22646
|
type: 'delete'
|
|
@@ -22263,22 +22785,26 @@ declare const editorMachine: StateMachine<
|
|
|
22263
22785
|
mimeType: `${string}/${string}`
|
|
22264
22786
|
reason: string
|
|
22265
22787
|
} & {
|
|
22266
|
-
originEvent:
|
|
22267
|
-
|
|
22268
|
-
|
|
22269
|
-
|
|
22270
|
-
|
|
22788
|
+
originEvent:
|
|
22789
|
+
| PickFromUnion_2<
|
|
22790
|
+
NativeBehaviorEvent,
|
|
22791
|
+
'type',
|
|
22792
|
+
'drag.drop' | 'clipboard.paste'
|
|
22793
|
+
>
|
|
22794
|
+
| InputBehaviorEvent_2
|
|
22271
22795
|
})
|
|
22272
22796
|
| ({
|
|
22273
22797
|
type: 'deserialization.success'
|
|
22274
22798
|
data: Array<PortableTextBlock>
|
|
22275
22799
|
mimeType: `${string}/${string}`
|
|
22276
22800
|
} & {
|
|
22277
|
-
originEvent:
|
|
22278
|
-
|
|
22279
|
-
|
|
22280
|
-
|
|
22281
|
-
|
|
22801
|
+
originEvent:
|
|
22802
|
+
| PickFromUnion_2<
|
|
22803
|
+
NativeBehaviorEvent,
|
|
22804
|
+
'type',
|
|
22805
|
+
'drag.drop' | 'clipboard.paste'
|
|
22806
|
+
>
|
|
22807
|
+
| InputBehaviorEvent_2
|
|
22282
22808
|
})
|
|
22283
22809
|
| {
|
|
22284
22810
|
type: 'serialization.success'
|
|
@@ -22423,7 +22949,7 @@ declare const editorMachine: StateMachine<
|
|
|
22423
22949
|
}
|
|
22424
22950
|
| {
|
|
22425
22951
|
type: 'dragstart'
|
|
22426
|
-
origin: EventPosition
|
|
22952
|
+
origin: Pick<EventPosition, 'selection'>
|
|
22427
22953
|
ghost?: HTMLElement
|
|
22428
22954
|
}
|
|
22429
22955
|
| {
|
|
@@ -22555,7 +23081,7 @@ declare type EditorSnapshot = {
|
|
|
22555
23081
|
hasTag: HasTag
|
|
22556
23082
|
internalDrag:
|
|
22557
23083
|
| {
|
|
22558
|
-
origin: EventPosition
|
|
23084
|
+
origin: Pick<EventPosition, 'selection'>
|
|
22559
23085
|
}
|
|
22560
23086
|
| undefined
|
|
22561
23087
|
}
|
|
@@ -22609,6 +23135,24 @@ declare type HistoryItem = {
|
|
|
22609
23135
|
timestamp: Date
|
|
22610
23136
|
}
|
|
22611
23137
|
|
|
23138
|
+
/**
|
|
23139
|
+
* Used to represent native InputEvents that hold a DataTransfer object.
|
|
23140
|
+
*
|
|
23141
|
+
* These can either be one of:
|
|
23142
|
+
*
|
|
23143
|
+
* - insertFromPaste
|
|
23144
|
+
* - insertFromPasteAsQuotation
|
|
23145
|
+
* - insertFromDrop
|
|
23146
|
+
* - insertReplacementText
|
|
23147
|
+
* - insertFromYank
|
|
23148
|
+
*/
|
|
23149
|
+
declare type InputBehaviorEvent = {
|
|
23150
|
+
type: 'input.*'
|
|
23151
|
+
originEvent: {
|
|
23152
|
+
dataTransfer: DataTransfer
|
|
23153
|
+
}
|
|
23154
|
+
}
|
|
23155
|
+
|
|
22612
23156
|
declare type InsertPlacement = 'auto' | 'after' | 'before'
|
|
22613
23157
|
|
|
22614
23158
|
declare type InternalPatchEvent = NamespaceEvent<PatchEvent, 'internal'> & {
|
|
@@ -22652,6 +23196,14 @@ export declare function isEqualSelectionPoints(
|
|
|
22652
23196
|
b: EditorSelectionPoint,
|
|
22653
23197
|
): boolean
|
|
22654
23198
|
|
|
23199
|
+
/**
|
|
23200
|
+
* @public
|
|
23201
|
+
*/
|
|
23202
|
+
export declare function isEqualSelections(
|
|
23203
|
+
a: EditorSelection,
|
|
23204
|
+
b: EditorSelection,
|
|
23205
|
+
): boolean
|
|
23206
|
+
|
|
22655
23207
|
/**
|
|
22656
23208
|
* @public
|
|
22657
23209
|
*/
|
|
@@ -22659,6 +23211,13 @@ export declare function isKeyedSegment(
|
|
|
22659
23211
|
segment: PathSegment,
|
|
22660
23212
|
): segment is KeyedSegment
|
|
22661
23213
|
|
|
23214
|
+
/**
|
|
23215
|
+
* @public
|
|
23216
|
+
*/
|
|
23217
|
+
export declare function isSelectionCollapsed(
|
|
23218
|
+
selection: EditorSelection,
|
|
23219
|
+
): boolean
|
|
23220
|
+
|
|
22662
23221
|
/**
|
|
22663
23222
|
* @public
|
|
22664
23223
|
*/
|
|
@@ -22742,9 +23301,10 @@ declare type NamespaceEvent<
|
|
|
22742
23301
|
*/
|
|
22743
23302
|
declare type NativeBehaviorEvent =
|
|
22744
23303
|
| ClipboardBehaviorEvent
|
|
23304
|
+
| DragBehaviorEvent
|
|
23305
|
+
| InputBehaviorEvent
|
|
22745
23306
|
| KeyboardBehaviorEvent
|
|
22746
23307
|
| MouseBehaviorEvent
|
|
22747
|
-
| DragBehaviorEvent
|
|
22748
23308
|
|
|
22749
23309
|
/**
|
|
22750
23310
|
* @public
|
|
@@ -22820,9 +23380,20 @@ declare interface PortableTextSlateEditor extends ReactEditor {
|
|
|
22820
23380
|
/**
|
|
22821
23381
|
* @public
|
|
22822
23382
|
*/
|
|
22823
|
-
export declare function reverseSelection
|
|
22824
|
-
|
|
22825
|
-
):
|
|
23383
|
+
export declare function reverseSelection<
|
|
23384
|
+
TEditorSelection extends NonNullable<EditorSelection> | null,
|
|
23385
|
+
>(selection: TEditorSelection): TEditorSelection
|
|
23386
|
+
|
|
23387
|
+
/**
|
|
23388
|
+
* @public
|
|
23389
|
+
*/
|
|
23390
|
+
export declare function selectionPointToBlockOffset({
|
|
23391
|
+
value,
|
|
23392
|
+
selectionPoint,
|
|
23393
|
+
}: {
|
|
23394
|
+
value: Array<PortableTextBlock>
|
|
23395
|
+
selectionPoint: EditorSelectionPoint
|
|
23396
|
+
}): BlockOffset | undefined
|
|
22826
23397
|
|
|
22827
23398
|
declare type Serializer<TMIMEType extends MIMEType> = ({
|
|
22828
23399
|
snapshot,
|
|
@@ -22938,6 +23509,10 @@ declare type SyntheticBehaviorEvent =
|
|
|
22938
23509
|
| {
|
|
22939
23510
|
type: 'decorator.toggle'
|
|
22940
23511
|
decorator: string
|
|
23512
|
+
offsets?: {
|
|
23513
|
+
anchor: BlockOffset
|
|
23514
|
+
focus: BlockOffset
|
|
23515
|
+
}
|
|
22941
23516
|
}
|
|
22942
23517
|
| {
|
|
22943
23518
|
type: 'delete'
|
|
@@ -23082,11 +23657,13 @@ declare type SyntheticBehaviorEvent =
|
|
|
23082
23657
|
'type',
|
|
23083
23658
|
'deserialization.failure' | 'deserialization.success'
|
|
23084
23659
|
> & {
|
|
23085
|
-
originEvent:
|
|
23086
|
-
|
|
23087
|
-
|
|
23088
|
-
|
|
23089
|
-
|
|
23660
|
+
originEvent:
|
|
23661
|
+
| PickFromUnion<
|
|
23662
|
+
NativeBehaviorEvent,
|
|
23663
|
+
'type',
|
|
23664
|
+
'drag.drop' | 'clipboard.paste'
|
|
23665
|
+
>
|
|
23666
|
+
| InputBehaviorEvent
|
|
23090
23667
|
})
|
|
23091
23668
|
| {
|
|
23092
23669
|
type: 'serialization.success'
|