@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/plugins/index.d.ts
CHANGED
|
@@ -18,8 +18,8 @@ import type {
|
|
|
18
18
|
KeyboardEvent as KeyboardEvent_2,
|
|
19
19
|
} from 'react'
|
|
20
20
|
import {JSX, default as React_2} from 'react'
|
|
21
|
-
import {Descendant,
|
|
22
|
-
import
|
|
21
|
+
import type {Descendant, Operation} from 'slate'
|
|
22
|
+
import {TextUnit} from 'slate'
|
|
23
23
|
import type {DOMNode} from 'slate-dom'
|
|
24
24
|
import type {ReactEditor} from 'slate-react'
|
|
25
25
|
import {TextInsertTextOptions} from 'slate/dist/interfaces/transforms/text'
|
|
@@ -51,7 +51,10 @@ import {
|
|
|
51
51
|
BlockOffset as BlockOffset_2,
|
|
52
52
|
PortableTextMemberSchemaTypes as PortableTextMemberSchemaTypes_2,
|
|
53
53
|
} from '..'
|
|
54
|
-
import {
|
|
54
|
+
import {
|
|
55
|
+
InputBehaviorEvent as InputBehaviorEvent_2,
|
|
56
|
+
InsertPlacement as InsertPlacement_2,
|
|
57
|
+
} from '../behaviors/behavior.types'
|
|
55
58
|
import {MIMEType as MIMEType_2} from '../internal-utils/mime-type'
|
|
56
59
|
import {PickFromUnion as PickFromUnion_2} from '../type-utils'
|
|
57
60
|
|
|
@@ -67,11 +70,13 @@ declare type Behavior<
|
|
|
67
70
|
? ClipboardBehaviorEvent
|
|
68
71
|
: TBehaviorEventType extends 'drag.*'
|
|
69
72
|
? DragBehaviorEvent
|
|
70
|
-
: TBehaviorEventType extends '
|
|
71
|
-
?
|
|
72
|
-
: TBehaviorEventType extends '
|
|
73
|
-
?
|
|
74
|
-
:
|
|
73
|
+
: TBehaviorEventType extends 'input.*'
|
|
74
|
+
? InputBehaviorEvent
|
|
75
|
+
: TBehaviorEventType extends 'keyboard.*'
|
|
76
|
+
? KeyboardBehaviorEvent
|
|
77
|
+
: TBehaviorEventType extends 'mouse.*'
|
|
78
|
+
? MouseBehaviorEvent
|
|
79
|
+
: PickFromUnion<BehaviorEvent, 'type', TBehaviorEventType>,
|
|
75
80
|
> = {
|
|
76
81
|
/**
|
|
77
82
|
* The internal editor event that triggers this behavior.
|
|
@@ -139,6 +144,9 @@ declare type BehaviorEvent =
|
|
|
139
144
|
| {
|
|
140
145
|
type: 'drag.*'
|
|
141
146
|
}
|
|
147
|
+
| {
|
|
148
|
+
type: 'input.*'
|
|
149
|
+
}
|
|
142
150
|
| {
|
|
143
151
|
type: 'keyboard.*'
|
|
144
152
|
}
|
|
@@ -180,21 +188,21 @@ declare type ClipboardBehaviorEvent =
|
|
|
180
188
|
originEvent: {
|
|
181
189
|
dataTransfer: DataTransfer
|
|
182
190
|
}
|
|
183
|
-
position: EventPosition
|
|
191
|
+
position: Pick<EventPosition, 'selection'>
|
|
184
192
|
}
|
|
185
193
|
| {
|
|
186
194
|
type: 'clipboard.cut'
|
|
187
195
|
originEvent: {
|
|
188
196
|
dataTransfer: DataTransfer
|
|
189
197
|
}
|
|
190
|
-
position: EventPosition
|
|
198
|
+
position: Pick<EventPosition, 'selection'>
|
|
191
199
|
}
|
|
192
200
|
| {
|
|
193
201
|
type: 'clipboard.paste'
|
|
194
202
|
originEvent: {
|
|
195
203
|
dataTransfer: DataTransfer
|
|
196
204
|
}
|
|
197
|
-
position: EventPosition
|
|
205
|
+
position: Pick<EventPosition, 'selection'>
|
|
198
206
|
}
|
|
199
207
|
|
|
200
208
|
declare type Converter<TMIMEType extends MIMEType = MIMEType> = {
|
|
@@ -249,11 +257,13 @@ declare type CustomBehaviorEvent<
|
|
|
249
257
|
declare type DataBehaviorEvent =
|
|
250
258
|
| {
|
|
251
259
|
type: 'deserialize'
|
|
252
|
-
originEvent:
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
260
|
+
originEvent:
|
|
261
|
+
| PickFromUnion<
|
|
262
|
+
NativeBehaviorEvent,
|
|
263
|
+
'type',
|
|
264
|
+
'drag.drop' | 'clipboard.paste'
|
|
265
|
+
>
|
|
266
|
+
| InputBehaviorEvent
|
|
257
267
|
}
|
|
258
268
|
| {
|
|
259
269
|
type: 'serialize'
|
|
@@ -293,7 +303,7 @@ declare type DragBehaviorEvent =
|
|
|
293
303
|
originEvent: {
|
|
294
304
|
dataTransfer: DataTransfer
|
|
295
305
|
}
|
|
296
|
-
position: EventPosition
|
|
306
|
+
position: Pick<EventPosition, 'selection'>
|
|
297
307
|
}
|
|
298
308
|
| {
|
|
299
309
|
type: 'drag.drag'
|
|
@@ -435,11 +445,6 @@ declare type Editor = {
|
|
|
435
445
|
registerBehavior: (config: {behavior: Behavior}) => () => void
|
|
436
446
|
send: (event: EditorEvent) => void
|
|
437
447
|
on: ActorRef<Snapshot<unknown>, EventObject, EditorEmittedEvent>['on']
|
|
438
|
-
_internal: {
|
|
439
|
-
editable: EditableAPI
|
|
440
|
-
editorActor: EditorActor
|
|
441
|
-
slateEditor: SlateEditor
|
|
442
|
-
}
|
|
443
448
|
}
|
|
444
449
|
|
|
445
450
|
/**
|
|
@@ -533,7 +538,7 @@ declare const editorMachine: StateMachine<
|
|
|
533
538
|
value: Array<PortableTextBlock> | undefined
|
|
534
539
|
internalDrag?: {
|
|
535
540
|
ghost?: HTMLElement
|
|
536
|
-
origin: EventPosition
|
|
541
|
+
origin: Pick<EventPosition, 'selection'>
|
|
537
542
|
}
|
|
538
543
|
},
|
|
539
544
|
| {
|
|
@@ -594,6 +599,10 @@ declare const editorMachine: StateMachine<
|
|
|
594
599
|
| {
|
|
595
600
|
type: 'decorator.toggle'
|
|
596
601
|
decorator: string
|
|
602
|
+
offsets?: {
|
|
603
|
+
anchor: BlockOffset_2
|
|
604
|
+
focus: BlockOffset_2
|
|
605
|
+
}
|
|
597
606
|
}
|
|
598
607
|
| {
|
|
599
608
|
type: 'delete'
|
|
@@ -738,22 +747,26 @@ declare const editorMachine: StateMachine<
|
|
|
738
747
|
mimeType: `${string}/${string}`
|
|
739
748
|
reason: string
|
|
740
749
|
} & {
|
|
741
|
-
originEvent:
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
750
|
+
originEvent:
|
|
751
|
+
| PickFromUnion_2<
|
|
752
|
+
NativeBehaviorEvent,
|
|
753
|
+
'type',
|
|
754
|
+
'drag.drop' | 'clipboard.paste'
|
|
755
|
+
>
|
|
756
|
+
| InputBehaviorEvent_2
|
|
746
757
|
})
|
|
747
758
|
| ({
|
|
748
759
|
type: 'deserialization.success'
|
|
749
760
|
data: Array<PortableTextBlock>
|
|
750
761
|
mimeType: `${string}/${string}`
|
|
751
762
|
} & {
|
|
752
|
-
originEvent:
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
763
|
+
originEvent:
|
|
764
|
+
| PickFromUnion_2<
|
|
765
|
+
NativeBehaviorEvent,
|
|
766
|
+
'type',
|
|
767
|
+
'drag.drop' | 'clipboard.paste'
|
|
768
|
+
>
|
|
769
|
+
| InputBehaviorEvent_2
|
|
757
770
|
})
|
|
758
771
|
| {
|
|
759
772
|
type: 'serialization.success'
|
|
@@ -898,7 +911,7 @@ declare const editorMachine: StateMachine<
|
|
|
898
911
|
}
|
|
899
912
|
| {
|
|
900
913
|
type: 'dragstart'
|
|
901
|
-
origin: EventPosition
|
|
914
|
+
origin: Pick<EventPosition, 'selection'>
|
|
902
915
|
ghost?: HTMLElement
|
|
903
916
|
}
|
|
904
917
|
| {
|
|
@@ -968,7 +981,7 @@ declare const editorMachine: StateMachine<
|
|
|
968
981
|
{
|
|
969
982
|
'edit mode':
|
|
970
983
|
| {
|
|
971
|
-
editable: '
|
|
984
|
+
editable: 'dragging internally' | 'idle'
|
|
972
985
|
}
|
|
973
986
|
| {
|
|
974
987
|
'read only': 'read only' | 'determine initial edit mode'
|
|
@@ -977,7 +990,7 @@ declare const editorMachine: StateMachine<
|
|
|
977
990
|
| 'setting up'
|
|
978
991
|
| 'dirty'
|
|
979
992
|
| {
|
|
980
|
-
pristine: '
|
|
993
|
+
pristine: 'normalizing' | 'idle'
|
|
981
994
|
}
|
|
982
995
|
},
|
|
983
996
|
'dragging internally',
|
|
@@ -1049,6 +1062,10 @@ declare const editorMachine: StateMachine<
|
|
|
1049
1062
|
| {
|
|
1050
1063
|
type: 'decorator.toggle'
|
|
1051
1064
|
decorator: string
|
|
1065
|
+
offsets?: {
|
|
1066
|
+
anchor: BlockOffset_2
|
|
1067
|
+
focus: BlockOffset_2
|
|
1068
|
+
}
|
|
1052
1069
|
}
|
|
1053
1070
|
| {
|
|
1054
1071
|
type: 'delete'
|
|
@@ -1193,22 +1210,26 @@ declare const editorMachine: StateMachine<
|
|
|
1193
1210
|
mimeType: `${string}/${string}`
|
|
1194
1211
|
reason: string
|
|
1195
1212
|
} & {
|
|
1196
|
-
originEvent:
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1213
|
+
originEvent:
|
|
1214
|
+
| PickFromUnion_2<
|
|
1215
|
+
NativeBehaviorEvent,
|
|
1216
|
+
'type',
|
|
1217
|
+
'drag.drop' | 'clipboard.paste'
|
|
1218
|
+
>
|
|
1219
|
+
| InputBehaviorEvent_2
|
|
1201
1220
|
})
|
|
1202
1221
|
| ({
|
|
1203
1222
|
type: 'deserialization.success'
|
|
1204
1223
|
data: Array<PortableTextBlock>
|
|
1205
1224
|
mimeType: `${string}/${string}`
|
|
1206
1225
|
} & {
|
|
1207
|
-
originEvent:
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1226
|
+
originEvent:
|
|
1227
|
+
| PickFromUnion_2<
|
|
1228
|
+
NativeBehaviorEvent,
|
|
1229
|
+
'type',
|
|
1230
|
+
'drag.drop' | 'clipboard.paste'
|
|
1231
|
+
>
|
|
1232
|
+
| InputBehaviorEvent_2
|
|
1212
1233
|
})
|
|
1213
1234
|
| {
|
|
1214
1235
|
type: 'serialization.success'
|
|
@@ -1332,7 +1353,7 @@ declare const editorMachine: StateMachine<
|
|
|
1332
1353
|
value: Array<PortableTextBlock> | undefined
|
|
1333
1354
|
internalDrag?: {
|
|
1334
1355
|
ghost?: HTMLElement
|
|
1335
|
-
origin: EventPosition
|
|
1356
|
+
origin: Pick<EventPosition, 'selection'>
|
|
1336
1357
|
}
|
|
1337
1358
|
},
|
|
1338
1359
|
| {
|
|
@@ -1393,6 +1414,10 @@ declare const editorMachine: StateMachine<
|
|
|
1393
1414
|
| {
|
|
1394
1415
|
type: 'decorator.toggle'
|
|
1395
1416
|
decorator: string
|
|
1417
|
+
offsets?: {
|
|
1418
|
+
anchor: BlockOffset_2
|
|
1419
|
+
focus: BlockOffset_2
|
|
1420
|
+
}
|
|
1396
1421
|
}
|
|
1397
1422
|
| {
|
|
1398
1423
|
type: 'delete'
|
|
@@ -1537,22 +1562,26 @@ declare const editorMachine: StateMachine<
|
|
|
1537
1562
|
mimeType: `${string}/${string}`
|
|
1538
1563
|
reason: string
|
|
1539
1564
|
} & {
|
|
1540
|
-
originEvent:
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1565
|
+
originEvent:
|
|
1566
|
+
| PickFromUnion_2<
|
|
1567
|
+
NativeBehaviorEvent,
|
|
1568
|
+
'type',
|
|
1569
|
+
'drag.drop' | 'clipboard.paste'
|
|
1570
|
+
>
|
|
1571
|
+
| InputBehaviorEvent_2
|
|
1545
1572
|
})
|
|
1546
1573
|
| ({
|
|
1547
1574
|
type: 'deserialization.success'
|
|
1548
1575
|
data: Array<PortableTextBlock>
|
|
1549
1576
|
mimeType: `${string}/${string}`
|
|
1550
1577
|
} & {
|
|
1551
|
-
originEvent:
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1578
|
+
originEvent:
|
|
1579
|
+
| PickFromUnion_2<
|
|
1580
|
+
NativeBehaviorEvent,
|
|
1581
|
+
'type',
|
|
1582
|
+
'drag.drop' | 'clipboard.paste'
|
|
1583
|
+
>
|
|
1584
|
+
| InputBehaviorEvent_2
|
|
1556
1585
|
})
|
|
1557
1586
|
| {
|
|
1558
1587
|
type: 'serialization.success'
|
|
@@ -1697,7 +1726,7 @@ declare const editorMachine: StateMachine<
|
|
|
1697
1726
|
}
|
|
1698
1727
|
| {
|
|
1699
1728
|
type: 'dragstart'
|
|
1700
|
-
origin: EventPosition
|
|
1729
|
+
origin: Pick<EventPosition, 'selection'>
|
|
1701
1730
|
ghost?: HTMLElement
|
|
1702
1731
|
}
|
|
1703
1732
|
| {
|
|
@@ -1771,6 +1800,10 @@ declare const editorMachine: StateMachine<
|
|
|
1771
1800
|
| {
|
|
1772
1801
|
type: 'decorator.toggle'
|
|
1773
1802
|
decorator: string
|
|
1803
|
+
offsets?: {
|
|
1804
|
+
anchor: BlockOffset_2
|
|
1805
|
+
focus: BlockOffset_2
|
|
1806
|
+
}
|
|
1774
1807
|
}
|
|
1775
1808
|
| {
|
|
1776
1809
|
type: 'delete'
|
|
@@ -1915,22 +1948,26 @@ declare const editorMachine: StateMachine<
|
|
|
1915
1948
|
mimeType: `${string}/${string}`
|
|
1916
1949
|
reason: string
|
|
1917
1950
|
} & {
|
|
1918
|
-
originEvent:
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1951
|
+
originEvent:
|
|
1952
|
+
| PickFromUnion_2<
|
|
1953
|
+
NativeBehaviorEvent,
|
|
1954
|
+
'type',
|
|
1955
|
+
'drag.drop' | 'clipboard.paste'
|
|
1956
|
+
>
|
|
1957
|
+
| InputBehaviorEvent_2
|
|
1923
1958
|
})
|
|
1924
1959
|
| ({
|
|
1925
1960
|
type: 'deserialization.success'
|
|
1926
1961
|
data: Array<PortableTextBlock>
|
|
1927
1962
|
mimeType: `${string}/${string}`
|
|
1928
1963
|
} & {
|
|
1929
|
-
originEvent:
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1964
|
+
originEvent:
|
|
1965
|
+
| PickFromUnion_2<
|
|
1966
|
+
NativeBehaviorEvent,
|
|
1967
|
+
'type',
|
|
1968
|
+
'drag.drop' | 'clipboard.paste'
|
|
1969
|
+
>
|
|
1970
|
+
| InputBehaviorEvent_2
|
|
1934
1971
|
})
|
|
1935
1972
|
| {
|
|
1936
1973
|
type: 'serialization.success'
|
|
@@ -2075,7 +2112,7 @@ declare const editorMachine: StateMachine<
|
|
|
2075
2112
|
}
|
|
2076
2113
|
| {
|
|
2077
2114
|
type: 'dragstart'
|
|
2078
|
-
origin: EventPosition
|
|
2115
|
+
origin: Pick<EventPosition, 'selection'>
|
|
2079
2116
|
ghost?: HTMLElement
|
|
2080
2117
|
}
|
|
2081
2118
|
| {
|
|
@@ -2112,7 +2149,7 @@ declare const editorMachine: StateMachine<
|
|
|
2112
2149
|
value: Array<PortableTextBlock> | undefined
|
|
2113
2150
|
internalDrag?: {
|
|
2114
2151
|
ghost?: HTMLElement
|
|
2115
|
-
origin: EventPosition
|
|
2152
|
+
origin: Pick<EventPosition, 'selection'>
|
|
2116
2153
|
}
|
|
2117
2154
|
},
|
|
2118
2155
|
{
|
|
@@ -2177,6 +2214,10 @@ declare const editorMachine: StateMachine<
|
|
|
2177
2214
|
| {
|
|
2178
2215
|
type: 'decorator.toggle'
|
|
2179
2216
|
decorator: string
|
|
2217
|
+
offsets?: {
|
|
2218
|
+
anchor: BlockOffset_2
|
|
2219
|
+
focus: BlockOffset_2
|
|
2220
|
+
}
|
|
2180
2221
|
}
|
|
2181
2222
|
| {
|
|
2182
2223
|
type: 'delete'
|
|
@@ -2321,22 +2362,26 @@ declare const editorMachine: StateMachine<
|
|
|
2321
2362
|
mimeType: `${string}/${string}`
|
|
2322
2363
|
reason: string
|
|
2323
2364
|
} & {
|
|
2324
|
-
originEvent:
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2365
|
+
originEvent:
|
|
2366
|
+
| PickFromUnion_2<
|
|
2367
|
+
NativeBehaviorEvent,
|
|
2368
|
+
'type',
|
|
2369
|
+
'drag.drop' | 'clipboard.paste'
|
|
2370
|
+
>
|
|
2371
|
+
| InputBehaviorEvent_2
|
|
2329
2372
|
})
|
|
2330
2373
|
| ({
|
|
2331
2374
|
type: 'deserialization.success'
|
|
2332
2375
|
data: Array<PortableTextBlock>
|
|
2333
2376
|
mimeType: `${string}/${string}`
|
|
2334
2377
|
} & {
|
|
2335
|
-
originEvent:
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2378
|
+
originEvent:
|
|
2379
|
+
| PickFromUnion_2<
|
|
2380
|
+
NativeBehaviorEvent,
|
|
2381
|
+
'type',
|
|
2382
|
+
'drag.drop' | 'clipboard.paste'
|
|
2383
|
+
>
|
|
2384
|
+
| InputBehaviorEvent_2
|
|
2340
2385
|
})
|
|
2341
2386
|
| {
|
|
2342
2387
|
type: 'serialization.success'
|
|
@@ -2481,7 +2526,7 @@ declare const editorMachine: StateMachine<
|
|
|
2481
2526
|
}
|
|
2482
2527
|
| {
|
|
2483
2528
|
type: 'dragstart'
|
|
2484
|
-
origin: EventPosition
|
|
2529
|
+
origin: Pick<EventPosition, 'selection'>
|
|
2485
2530
|
ghost?: HTMLElement
|
|
2486
2531
|
}
|
|
2487
2532
|
| {
|
|
@@ -2553,6 +2598,10 @@ declare const editorMachine: StateMachine<
|
|
|
2553
2598
|
| {
|
|
2554
2599
|
type: 'decorator.toggle'
|
|
2555
2600
|
decorator: string
|
|
2601
|
+
offsets?: {
|
|
2602
|
+
anchor: BlockOffset_2
|
|
2603
|
+
focus: BlockOffset_2
|
|
2604
|
+
}
|
|
2556
2605
|
}
|
|
2557
2606
|
| {
|
|
2558
2607
|
type: 'delete'
|
|
@@ -2697,22 +2746,26 @@ declare const editorMachine: StateMachine<
|
|
|
2697
2746
|
mimeType: `${string}/${string}`
|
|
2698
2747
|
reason: string
|
|
2699
2748
|
} & {
|
|
2700
|
-
originEvent:
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2749
|
+
originEvent:
|
|
2750
|
+
| PickFromUnion_2<
|
|
2751
|
+
NativeBehaviorEvent,
|
|
2752
|
+
'type',
|
|
2753
|
+
'drag.drop' | 'clipboard.paste'
|
|
2754
|
+
>
|
|
2755
|
+
| InputBehaviorEvent_2
|
|
2705
2756
|
})
|
|
2706
2757
|
| ({
|
|
2707
2758
|
type: 'deserialization.success'
|
|
2708
2759
|
data: Array<PortableTextBlock>
|
|
2709
2760
|
mimeType: `${string}/${string}`
|
|
2710
2761
|
} & {
|
|
2711
|
-
originEvent:
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2762
|
+
originEvent:
|
|
2763
|
+
| PickFromUnion_2<
|
|
2764
|
+
NativeBehaviorEvent,
|
|
2765
|
+
'type',
|
|
2766
|
+
'drag.drop' | 'clipboard.paste'
|
|
2767
|
+
>
|
|
2768
|
+
| InputBehaviorEvent_2
|
|
2716
2769
|
})
|
|
2717
2770
|
| {
|
|
2718
2771
|
type: 'serialization.success'
|
|
@@ -2801,7 +2854,7 @@ declare const editorMachine: StateMachine<
|
|
|
2801
2854
|
value: Array<PortableTextBlock> | undefined
|
|
2802
2855
|
internalDrag?: {
|
|
2803
2856
|
ghost?: HTMLElement
|
|
2804
|
-
origin: EventPosition
|
|
2857
|
+
origin: Pick<EventPosition, 'selection'>
|
|
2805
2858
|
}
|
|
2806
2859
|
},
|
|
2807
2860
|
{
|
|
@@ -2865,6 +2918,10 @@ declare const editorMachine: StateMachine<
|
|
|
2865
2918
|
| {
|
|
2866
2919
|
type: 'decorator.toggle'
|
|
2867
2920
|
decorator: string
|
|
2921
|
+
offsets?: {
|
|
2922
|
+
anchor: BlockOffset_2
|
|
2923
|
+
focus: BlockOffset_2
|
|
2924
|
+
}
|
|
2868
2925
|
}
|
|
2869
2926
|
| {
|
|
2870
2927
|
type: 'delete'
|
|
@@ -3009,22 +3066,26 @@ declare const editorMachine: StateMachine<
|
|
|
3009
3066
|
mimeType: `${string}/${string}`
|
|
3010
3067
|
reason: string
|
|
3011
3068
|
} & {
|
|
3012
|
-
originEvent:
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3069
|
+
originEvent:
|
|
3070
|
+
| PickFromUnion_2<
|
|
3071
|
+
NativeBehaviorEvent,
|
|
3072
|
+
'type',
|
|
3073
|
+
'drag.drop' | 'clipboard.paste'
|
|
3074
|
+
>
|
|
3075
|
+
| InputBehaviorEvent_2
|
|
3017
3076
|
})
|
|
3018
3077
|
| ({
|
|
3019
3078
|
type: 'deserialization.success'
|
|
3020
3079
|
data: Array<PortableTextBlock>
|
|
3021
3080
|
mimeType: `${string}/${string}`
|
|
3022
3081
|
} & {
|
|
3023
|
-
originEvent:
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3082
|
+
originEvent:
|
|
3083
|
+
| PickFromUnion_2<
|
|
3084
|
+
NativeBehaviorEvent,
|
|
3085
|
+
'type',
|
|
3086
|
+
'drag.drop' | 'clipboard.paste'
|
|
3087
|
+
>
|
|
3088
|
+
| InputBehaviorEvent_2
|
|
3028
3089
|
})
|
|
3029
3090
|
| {
|
|
3030
3091
|
type: 'serialization.success'
|
|
@@ -3169,7 +3230,7 @@ declare const editorMachine: StateMachine<
|
|
|
3169
3230
|
}
|
|
3170
3231
|
| {
|
|
3171
3232
|
type: 'dragstart'
|
|
3172
|
-
origin: EventPosition
|
|
3233
|
+
origin: Pick<EventPosition, 'selection'>
|
|
3173
3234
|
ghost?: HTMLElement
|
|
3174
3235
|
}
|
|
3175
3236
|
| {
|
|
@@ -3241,6 +3302,10 @@ declare const editorMachine: StateMachine<
|
|
|
3241
3302
|
| {
|
|
3242
3303
|
type: 'decorator.toggle'
|
|
3243
3304
|
decorator: string
|
|
3305
|
+
offsets?: {
|
|
3306
|
+
anchor: BlockOffset_2
|
|
3307
|
+
focus: BlockOffset_2
|
|
3308
|
+
}
|
|
3244
3309
|
}
|
|
3245
3310
|
| {
|
|
3246
3311
|
type: 'delete'
|
|
@@ -3385,22 +3450,26 @@ declare const editorMachine: StateMachine<
|
|
|
3385
3450
|
mimeType: `${string}/${string}`
|
|
3386
3451
|
reason: string
|
|
3387
3452
|
} & {
|
|
3388
|
-
originEvent:
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3453
|
+
originEvent:
|
|
3454
|
+
| PickFromUnion_2<
|
|
3455
|
+
NativeBehaviorEvent,
|
|
3456
|
+
'type',
|
|
3457
|
+
'drag.drop' | 'clipboard.paste'
|
|
3458
|
+
>
|
|
3459
|
+
| InputBehaviorEvent_2
|
|
3393
3460
|
})
|
|
3394
3461
|
| ({
|
|
3395
3462
|
type: 'deserialization.success'
|
|
3396
3463
|
data: Array<PortableTextBlock>
|
|
3397
3464
|
mimeType: `${string}/${string}`
|
|
3398
3465
|
} & {
|
|
3399
|
-
originEvent:
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3466
|
+
originEvent:
|
|
3467
|
+
| PickFromUnion_2<
|
|
3468
|
+
NativeBehaviorEvent,
|
|
3469
|
+
'type',
|
|
3470
|
+
'drag.drop' | 'clipboard.paste'
|
|
3471
|
+
>
|
|
3472
|
+
| InputBehaviorEvent_2
|
|
3404
3473
|
})
|
|
3405
3474
|
| {
|
|
3406
3475
|
type: 'serialization.success'
|
|
@@ -3489,7 +3558,7 @@ declare const editorMachine: StateMachine<
|
|
|
3489
3558
|
value: Array<PortableTextBlock> | undefined
|
|
3490
3559
|
internalDrag?: {
|
|
3491
3560
|
ghost?: HTMLElement
|
|
3492
|
-
origin: EventPosition
|
|
3561
|
+
origin: Pick<EventPosition, 'selection'>
|
|
3493
3562
|
}
|
|
3494
3563
|
},
|
|
3495
3564
|
{
|
|
@@ -3556,6 +3625,10 @@ declare const editorMachine: StateMachine<
|
|
|
3556
3625
|
| {
|
|
3557
3626
|
type: 'decorator.toggle'
|
|
3558
3627
|
decorator: string
|
|
3628
|
+
offsets?: {
|
|
3629
|
+
anchor: BlockOffset_2
|
|
3630
|
+
focus: BlockOffset_2
|
|
3631
|
+
}
|
|
3559
3632
|
}
|
|
3560
3633
|
| {
|
|
3561
3634
|
type: 'delete'
|
|
@@ -3700,22 +3773,26 @@ declare const editorMachine: StateMachine<
|
|
|
3700
3773
|
mimeType: `${string}/${string}`
|
|
3701
3774
|
reason: string
|
|
3702
3775
|
} & {
|
|
3703
|
-
originEvent:
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3776
|
+
originEvent:
|
|
3777
|
+
| PickFromUnion_2<
|
|
3778
|
+
NativeBehaviorEvent,
|
|
3779
|
+
'type',
|
|
3780
|
+
'drag.drop' | 'clipboard.paste'
|
|
3781
|
+
>
|
|
3782
|
+
| InputBehaviorEvent_2
|
|
3708
3783
|
})
|
|
3709
3784
|
| ({
|
|
3710
3785
|
type: 'deserialization.success'
|
|
3711
3786
|
data: Array<PortableTextBlock>
|
|
3712
3787
|
mimeType: `${string}/${string}`
|
|
3713
3788
|
} & {
|
|
3714
|
-
originEvent:
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3789
|
+
originEvent:
|
|
3790
|
+
| PickFromUnion_2<
|
|
3791
|
+
NativeBehaviorEvent,
|
|
3792
|
+
'type',
|
|
3793
|
+
'drag.drop' | 'clipboard.paste'
|
|
3794
|
+
>
|
|
3795
|
+
| InputBehaviorEvent_2
|
|
3719
3796
|
})
|
|
3720
3797
|
| {
|
|
3721
3798
|
type: 'serialization.success'
|
|
@@ -3860,7 +3937,7 @@ declare const editorMachine: StateMachine<
|
|
|
3860
3937
|
}
|
|
3861
3938
|
| {
|
|
3862
3939
|
type: 'dragstart'
|
|
3863
|
-
origin: EventPosition
|
|
3940
|
+
origin: Pick<EventPosition, 'selection'>
|
|
3864
3941
|
ghost?: HTMLElement
|
|
3865
3942
|
}
|
|
3866
3943
|
| {
|
|
@@ -3932,6 +4009,10 @@ declare const editorMachine: StateMachine<
|
|
|
3932
4009
|
| {
|
|
3933
4010
|
type: 'decorator.toggle'
|
|
3934
4011
|
decorator: string
|
|
4012
|
+
offsets?: {
|
|
4013
|
+
anchor: BlockOffset_2
|
|
4014
|
+
focus: BlockOffset_2
|
|
4015
|
+
}
|
|
3935
4016
|
}
|
|
3936
4017
|
| {
|
|
3937
4018
|
type: 'delete'
|
|
@@ -4076,22 +4157,26 @@ declare const editorMachine: StateMachine<
|
|
|
4076
4157
|
mimeType: `${string}/${string}`
|
|
4077
4158
|
reason: string
|
|
4078
4159
|
} & {
|
|
4079
|
-
originEvent:
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4160
|
+
originEvent:
|
|
4161
|
+
| PickFromUnion_2<
|
|
4162
|
+
NativeBehaviorEvent,
|
|
4163
|
+
'type',
|
|
4164
|
+
'drag.drop' | 'clipboard.paste'
|
|
4165
|
+
>
|
|
4166
|
+
| InputBehaviorEvent_2
|
|
4084
4167
|
})
|
|
4085
4168
|
| ({
|
|
4086
4169
|
type: 'deserialization.success'
|
|
4087
4170
|
data: Array<PortableTextBlock>
|
|
4088
4171
|
mimeType: `${string}/${string}`
|
|
4089
4172
|
} & {
|
|
4090
|
-
originEvent:
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4173
|
+
originEvent:
|
|
4174
|
+
| PickFromUnion_2<
|
|
4175
|
+
NativeBehaviorEvent,
|
|
4176
|
+
'type',
|
|
4177
|
+
'drag.drop' | 'clipboard.paste'
|
|
4178
|
+
>
|
|
4179
|
+
| InputBehaviorEvent_2
|
|
4095
4180
|
})
|
|
4096
4181
|
| {
|
|
4097
4182
|
type: 'serialization.success'
|
|
@@ -4180,7 +4265,7 @@ declare const editorMachine: StateMachine<
|
|
|
4180
4265
|
value: Array<PortableTextBlock> | undefined
|
|
4181
4266
|
internalDrag?: {
|
|
4182
4267
|
ghost?: HTMLElement
|
|
4183
|
-
origin: EventPosition
|
|
4268
|
+
origin: Pick<EventPosition, 'selection'>
|
|
4184
4269
|
}
|
|
4185
4270
|
},
|
|
4186
4271
|
{
|
|
@@ -4246,6 +4331,10 @@ declare const editorMachine: StateMachine<
|
|
|
4246
4331
|
| {
|
|
4247
4332
|
type: 'decorator.toggle'
|
|
4248
4333
|
decorator: string
|
|
4334
|
+
offsets?: {
|
|
4335
|
+
anchor: BlockOffset_2
|
|
4336
|
+
focus: BlockOffset_2
|
|
4337
|
+
}
|
|
4249
4338
|
}
|
|
4250
4339
|
| {
|
|
4251
4340
|
type: 'delete'
|
|
@@ -4390,22 +4479,26 @@ declare const editorMachine: StateMachine<
|
|
|
4390
4479
|
mimeType: `${string}/${string}`
|
|
4391
4480
|
reason: string
|
|
4392
4481
|
} & {
|
|
4393
|
-
originEvent:
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4482
|
+
originEvent:
|
|
4483
|
+
| PickFromUnion_2<
|
|
4484
|
+
NativeBehaviorEvent,
|
|
4485
|
+
'type',
|
|
4486
|
+
'drag.drop' | 'clipboard.paste'
|
|
4487
|
+
>
|
|
4488
|
+
| InputBehaviorEvent_2
|
|
4398
4489
|
})
|
|
4399
4490
|
| ({
|
|
4400
4491
|
type: 'deserialization.success'
|
|
4401
4492
|
data: Array<PortableTextBlock>
|
|
4402
4493
|
mimeType: `${string}/${string}`
|
|
4403
4494
|
} & {
|
|
4404
|
-
originEvent:
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4495
|
+
originEvent:
|
|
4496
|
+
| PickFromUnion_2<
|
|
4497
|
+
NativeBehaviorEvent,
|
|
4498
|
+
'type',
|
|
4499
|
+
'drag.drop' | 'clipboard.paste'
|
|
4500
|
+
>
|
|
4501
|
+
| InputBehaviorEvent_2
|
|
4409
4502
|
})
|
|
4410
4503
|
| {
|
|
4411
4504
|
type: 'serialization.success'
|
|
@@ -4550,7 +4643,7 @@ declare const editorMachine: StateMachine<
|
|
|
4550
4643
|
}
|
|
4551
4644
|
| {
|
|
4552
4645
|
type: 'dragstart'
|
|
4553
|
-
origin: EventPosition
|
|
4646
|
+
origin: Pick<EventPosition, 'selection'>
|
|
4554
4647
|
ghost?: HTMLElement
|
|
4555
4648
|
}
|
|
4556
4649
|
| {
|
|
@@ -4622,6 +4715,10 @@ declare const editorMachine: StateMachine<
|
|
|
4622
4715
|
| {
|
|
4623
4716
|
type: 'decorator.toggle'
|
|
4624
4717
|
decorator: string
|
|
4718
|
+
offsets?: {
|
|
4719
|
+
anchor: BlockOffset_2
|
|
4720
|
+
focus: BlockOffset_2
|
|
4721
|
+
}
|
|
4625
4722
|
}
|
|
4626
4723
|
| {
|
|
4627
4724
|
type: 'delete'
|
|
@@ -4766,22 +4863,26 @@ declare const editorMachine: StateMachine<
|
|
|
4766
4863
|
mimeType: `${string}/${string}`
|
|
4767
4864
|
reason: string
|
|
4768
4865
|
} & {
|
|
4769
|
-
originEvent:
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4866
|
+
originEvent:
|
|
4867
|
+
| PickFromUnion_2<
|
|
4868
|
+
NativeBehaviorEvent,
|
|
4869
|
+
'type',
|
|
4870
|
+
'drag.drop' | 'clipboard.paste'
|
|
4871
|
+
>
|
|
4872
|
+
| InputBehaviorEvent_2
|
|
4774
4873
|
})
|
|
4775
4874
|
| ({
|
|
4776
4875
|
type: 'deserialization.success'
|
|
4777
4876
|
data: Array<PortableTextBlock>
|
|
4778
4877
|
mimeType: `${string}/${string}`
|
|
4779
4878
|
} & {
|
|
4780
|
-
originEvent:
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4879
|
+
originEvent:
|
|
4880
|
+
| PickFromUnion_2<
|
|
4881
|
+
NativeBehaviorEvent,
|
|
4882
|
+
'type',
|
|
4883
|
+
'drag.drop' | 'clipboard.paste'
|
|
4884
|
+
>
|
|
4885
|
+
| InputBehaviorEvent_2
|
|
4785
4886
|
})
|
|
4786
4887
|
| {
|
|
4787
4888
|
type: 'serialization.success'
|
|
@@ -4870,7 +4971,7 @@ declare const editorMachine: StateMachine<
|
|
|
4870
4971
|
value: Array<PortableTextBlock> | undefined
|
|
4871
4972
|
internalDrag?: {
|
|
4872
4973
|
ghost?: HTMLElement
|
|
4873
|
-
origin: EventPosition
|
|
4974
|
+
origin: Pick<EventPosition, 'selection'>
|
|
4874
4975
|
}
|
|
4875
4976
|
},
|
|
4876
4977
|
{
|
|
@@ -4935,6 +5036,10 @@ declare const editorMachine: StateMachine<
|
|
|
4935
5036
|
| {
|
|
4936
5037
|
type: 'decorator.toggle'
|
|
4937
5038
|
decorator: string
|
|
5039
|
+
offsets?: {
|
|
5040
|
+
anchor: BlockOffset_2
|
|
5041
|
+
focus: BlockOffset_2
|
|
5042
|
+
}
|
|
4938
5043
|
}
|
|
4939
5044
|
| {
|
|
4940
5045
|
type: 'delete'
|
|
@@ -5079,22 +5184,26 @@ declare const editorMachine: StateMachine<
|
|
|
5079
5184
|
mimeType: `${string}/${string}`
|
|
5080
5185
|
reason: string
|
|
5081
5186
|
} & {
|
|
5082
|
-
originEvent:
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5187
|
+
originEvent:
|
|
5188
|
+
| PickFromUnion_2<
|
|
5189
|
+
NativeBehaviorEvent,
|
|
5190
|
+
'type',
|
|
5191
|
+
'drag.drop' | 'clipboard.paste'
|
|
5192
|
+
>
|
|
5193
|
+
| InputBehaviorEvent_2
|
|
5087
5194
|
})
|
|
5088
5195
|
| ({
|
|
5089
5196
|
type: 'deserialization.success'
|
|
5090
5197
|
data: Array<PortableTextBlock>
|
|
5091
5198
|
mimeType: `${string}/${string}`
|
|
5092
5199
|
} & {
|
|
5093
|
-
originEvent:
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5200
|
+
originEvent:
|
|
5201
|
+
| PickFromUnion_2<
|
|
5202
|
+
NativeBehaviorEvent,
|
|
5203
|
+
'type',
|
|
5204
|
+
'drag.drop' | 'clipboard.paste'
|
|
5205
|
+
>
|
|
5206
|
+
| InputBehaviorEvent_2
|
|
5098
5207
|
})
|
|
5099
5208
|
| {
|
|
5100
5209
|
type: 'serialization.success'
|
|
@@ -5239,7 +5348,7 @@ declare const editorMachine: StateMachine<
|
|
|
5239
5348
|
}
|
|
5240
5349
|
| {
|
|
5241
5350
|
type: 'dragstart'
|
|
5242
|
-
origin: EventPosition
|
|
5351
|
+
origin: Pick<EventPosition, 'selection'>
|
|
5243
5352
|
ghost?: HTMLElement
|
|
5244
5353
|
}
|
|
5245
5354
|
| {
|
|
@@ -5311,6 +5420,10 @@ declare const editorMachine: StateMachine<
|
|
|
5311
5420
|
| {
|
|
5312
5421
|
type: 'decorator.toggle'
|
|
5313
5422
|
decorator: string
|
|
5423
|
+
offsets?: {
|
|
5424
|
+
anchor: BlockOffset_2
|
|
5425
|
+
focus: BlockOffset_2
|
|
5426
|
+
}
|
|
5314
5427
|
}
|
|
5315
5428
|
| {
|
|
5316
5429
|
type: 'delete'
|
|
@@ -5455,22 +5568,26 @@ declare const editorMachine: StateMachine<
|
|
|
5455
5568
|
mimeType: `${string}/${string}`
|
|
5456
5569
|
reason: string
|
|
5457
5570
|
} & {
|
|
5458
|
-
originEvent:
|
|
5459
|
-
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
|
|
5571
|
+
originEvent:
|
|
5572
|
+
| PickFromUnion_2<
|
|
5573
|
+
NativeBehaviorEvent,
|
|
5574
|
+
'type',
|
|
5575
|
+
'drag.drop' | 'clipboard.paste'
|
|
5576
|
+
>
|
|
5577
|
+
| InputBehaviorEvent_2
|
|
5463
5578
|
})
|
|
5464
5579
|
| ({
|
|
5465
5580
|
type: 'deserialization.success'
|
|
5466
5581
|
data: Array<PortableTextBlock>
|
|
5467
5582
|
mimeType: `${string}/${string}`
|
|
5468
5583
|
} & {
|
|
5469
|
-
originEvent:
|
|
5470
|
-
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
|
|
5584
|
+
originEvent:
|
|
5585
|
+
| PickFromUnion_2<
|
|
5586
|
+
NativeBehaviorEvent,
|
|
5587
|
+
'type',
|
|
5588
|
+
'drag.drop' | 'clipboard.paste'
|
|
5589
|
+
>
|
|
5590
|
+
| InputBehaviorEvent_2
|
|
5474
5591
|
})
|
|
5475
5592
|
| {
|
|
5476
5593
|
type: 'serialization.success'
|
|
@@ -5560,7 +5677,7 @@ declare const editorMachine: StateMachine<
|
|
|
5560
5677
|
value: Array<PortableTextBlock> | undefined
|
|
5561
5678
|
internalDrag?: {
|
|
5562
5679
|
ghost?: HTMLElement
|
|
5563
|
-
origin: EventPosition
|
|
5680
|
+
origin: Pick<EventPosition, 'selection'>
|
|
5564
5681
|
}
|
|
5565
5682
|
},
|
|
5566
5683
|
{
|
|
@@ -5625,6 +5742,10 @@ declare const editorMachine: StateMachine<
|
|
|
5625
5742
|
| {
|
|
5626
5743
|
type: 'decorator.toggle'
|
|
5627
5744
|
decorator: string
|
|
5745
|
+
offsets?: {
|
|
5746
|
+
anchor: BlockOffset_2
|
|
5747
|
+
focus: BlockOffset_2
|
|
5748
|
+
}
|
|
5628
5749
|
}
|
|
5629
5750
|
| {
|
|
5630
5751
|
type: 'delete'
|
|
@@ -5769,22 +5890,26 @@ declare const editorMachine: StateMachine<
|
|
|
5769
5890
|
mimeType: `${string}/${string}`
|
|
5770
5891
|
reason: string
|
|
5771
5892
|
} & {
|
|
5772
|
-
originEvent:
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5893
|
+
originEvent:
|
|
5894
|
+
| PickFromUnion_2<
|
|
5895
|
+
NativeBehaviorEvent,
|
|
5896
|
+
'type',
|
|
5897
|
+
'drag.drop' | 'clipboard.paste'
|
|
5898
|
+
>
|
|
5899
|
+
| InputBehaviorEvent_2
|
|
5777
5900
|
})
|
|
5778
5901
|
| ({
|
|
5779
5902
|
type: 'deserialization.success'
|
|
5780
5903
|
data: Array<PortableTextBlock>
|
|
5781
5904
|
mimeType: `${string}/${string}`
|
|
5782
5905
|
} & {
|
|
5783
|
-
originEvent:
|
|
5784
|
-
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
5906
|
+
originEvent:
|
|
5907
|
+
| PickFromUnion_2<
|
|
5908
|
+
NativeBehaviorEvent,
|
|
5909
|
+
'type',
|
|
5910
|
+
'drag.drop' | 'clipboard.paste'
|
|
5911
|
+
>
|
|
5912
|
+
| InputBehaviorEvent_2
|
|
5788
5913
|
})
|
|
5789
5914
|
| {
|
|
5790
5915
|
type: 'serialization.success'
|
|
@@ -5929,7 +6054,7 @@ declare const editorMachine: StateMachine<
|
|
|
5929
6054
|
}
|
|
5930
6055
|
| {
|
|
5931
6056
|
type: 'dragstart'
|
|
5932
|
-
origin: EventPosition
|
|
6057
|
+
origin: Pick<EventPosition, 'selection'>
|
|
5933
6058
|
ghost?: HTMLElement
|
|
5934
6059
|
}
|
|
5935
6060
|
| {
|
|
@@ -5958,7 +6083,7 @@ declare const editorMachine: StateMachine<
|
|
|
5958
6083
|
value: Array<PortableTextBlock> | undefined
|
|
5959
6084
|
internalDrag?: {
|
|
5960
6085
|
ghost?: HTMLElement
|
|
5961
|
-
origin: EventPosition
|
|
6086
|
+
origin: Pick<EventPosition, 'selection'>
|
|
5962
6087
|
}
|
|
5963
6088
|
},
|
|
5964
6089
|
{
|
|
@@ -6023,6 +6148,10 @@ declare const editorMachine: StateMachine<
|
|
|
6023
6148
|
| {
|
|
6024
6149
|
type: 'decorator.toggle'
|
|
6025
6150
|
decorator: string
|
|
6151
|
+
offsets?: {
|
|
6152
|
+
anchor: BlockOffset_2
|
|
6153
|
+
focus: BlockOffset_2
|
|
6154
|
+
}
|
|
6026
6155
|
}
|
|
6027
6156
|
| {
|
|
6028
6157
|
type: 'delete'
|
|
@@ -6167,22 +6296,26 @@ declare const editorMachine: StateMachine<
|
|
|
6167
6296
|
mimeType: `${string}/${string}`
|
|
6168
6297
|
reason: string
|
|
6169
6298
|
} & {
|
|
6170
|
-
originEvent:
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6299
|
+
originEvent:
|
|
6300
|
+
| PickFromUnion_2<
|
|
6301
|
+
NativeBehaviorEvent,
|
|
6302
|
+
'type',
|
|
6303
|
+
'drag.drop' | 'clipboard.paste'
|
|
6304
|
+
>
|
|
6305
|
+
| InputBehaviorEvent_2
|
|
6175
6306
|
})
|
|
6176
6307
|
| ({
|
|
6177
6308
|
type: 'deserialization.success'
|
|
6178
6309
|
data: Array<PortableTextBlock>
|
|
6179
6310
|
mimeType: `${string}/${string}`
|
|
6180
6311
|
} & {
|
|
6181
|
-
originEvent:
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6312
|
+
originEvent:
|
|
6313
|
+
| PickFromUnion_2<
|
|
6314
|
+
NativeBehaviorEvent,
|
|
6315
|
+
'type',
|
|
6316
|
+
'drag.drop' | 'clipboard.paste'
|
|
6317
|
+
>
|
|
6318
|
+
| InputBehaviorEvent_2
|
|
6186
6319
|
})
|
|
6187
6320
|
| {
|
|
6188
6321
|
type: 'serialization.success'
|
|
@@ -6327,7 +6460,7 @@ declare const editorMachine: StateMachine<
|
|
|
6327
6460
|
}
|
|
6328
6461
|
| {
|
|
6329
6462
|
type: 'dragstart'
|
|
6330
|
-
origin: EventPosition
|
|
6463
|
+
origin: Pick<EventPosition, 'selection'>
|
|
6331
6464
|
ghost?: HTMLElement
|
|
6332
6465
|
}
|
|
6333
6466
|
| {
|
|
@@ -6399,6 +6532,10 @@ declare const editorMachine: StateMachine<
|
|
|
6399
6532
|
| {
|
|
6400
6533
|
type: 'decorator.toggle'
|
|
6401
6534
|
decorator: string
|
|
6535
|
+
offsets?: {
|
|
6536
|
+
anchor: BlockOffset_2
|
|
6537
|
+
focus: BlockOffset_2
|
|
6538
|
+
}
|
|
6402
6539
|
}
|
|
6403
6540
|
| {
|
|
6404
6541
|
type: 'delete'
|
|
@@ -6543,22 +6680,26 @@ declare const editorMachine: StateMachine<
|
|
|
6543
6680
|
mimeType: `${string}/${string}`
|
|
6544
6681
|
reason: string
|
|
6545
6682
|
} & {
|
|
6546
|
-
originEvent:
|
|
6547
|
-
|
|
6548
|
-
|
|
6549
|
-
|
|
6550
|
-
|
|
6683
|
+
originEvent:
|
|
6684
|
+
| PickFromUnion_2<
|
|
6685
|
+
NativeBehaviorEvent,
|
|
6686
|
+
'type',
|
|
6687
|
+
'drag.drop' | 'clipboard.paste'
|
|
6688
|
+
>
|
|
6689
|
+
| InputBehaviorEvent_2
|
|
6551
6690
|
})
|
|
6552
6691
|
| ({
|
|
6553
6692
|
type: 'deserialization.success'
|
|
6554
6693
|
data: Array<PortableTextBlock>
|
|
6555
6694
|
mimeType: `${string}/${string}`
|
|
6556
6695
|
} & {
|
|
6557
|
-
originEvent:
|
|
6558
|
-
|
|
6559
|
-
|
|
6560
|
-
|
|
6561
|
-
|
|
6696
|
+
originEvent:
|
|
6697
|
+
| PickFromUnion_2<
|
|
6698
|
+
NativeBehaviorEvent,
|
|
6699
|
+
'type',
|
|
6700
|
+
'drag.drop' | 'clipboard.paste'
|
|
6701
|
+
>
|
|
6702
|
+
| InputBehaviorEvent_2
|
|
6562
6703
|
})
|
|
6563
6704
|
| {
|
|
6564
6705
|
type: 'serialization.success'
|
|
@@ -6648,7 +6789,7 @@ declare const editorMachine: StateMachine<
|
|
|
6648
6789
|
value: Array<PortableTextBlock> | undefined
|
|
6649
6790
|
internalDrag?: {
|
|
6650
6791
|
ghost?: HTMLElement
|
|
6651
|
-
origin: EventPosition
|
|
6792
|
+
origin: Pick<EventPosition, 'selection'>
|
|
6652
6793
|
}
|
|
6653
6794
|
},
|
|
6654
6795
|
{
|
|
@@ -6713,6 +6854,10 @@ declare const editorMachine: StateMachine<
|
|
|
6713
6854
|
| {
|
|
6714
6855
|
type: 'decorator.toggle'
|
|
6715
6856
|
decorator: string
|
|
6857
|
+
offsets?: {
|
|
6858
|
+
anchor: BlockOffset_2
|
|
6859
|
+
focus: BlockOffset_2
|
|
6860
|
+
}
|
|
6716
6861
|
}
|
|
6717
6862
|
| {
|
|
6718
6863
|
type: 'delete'
|
|
@@ -6857,22 +7002,26 @@ declare const editorMachine: StateMachine<
|
|
|
6857
7002
|
mimeType: `${string}/${string}`
|
|
6858
7003
|
reason: string
|
|
6859
7004
|
} & {
|
|
6860
|
-
originEvent:
|
|
6861
|
-
|
|
6862
|
-
|
|
6863
|
-
|
|
6864
|
-
|
|
7005
|
+
originEvent:
|
|
7006
|
+
| PickFromUnion_2<
|
|
7007
|
+
NativeBehaviorEvent,
|
|
7008
|
+
'type',
|
|
7009
|
+
'drag.drop' | 'clipboard.paste'
|
|
7010
|
+
>
|
|
7011
|
+
| InputBehaviorEvent_2
|
|
6865
7012
|
})
|
|
6866
7013
|
| ({
|
|
6867
7014
|
type: 'deserialization.success'
|
|
6868
7015
|
data: Array<PortableTextBlock>
|
|
6869
7016
|
mimeType: `${string}/${string}`
|
|
6870
7017
|
} & {
|
|
6871
|
-
originEvent:
|
|
6872
|
-
|
|
6873
|
-
|
|
6874
|
-
|
|
6875
|
-
|
|
7018
|
+
originEvent:
|
|
7019
|
+
| PickFromUnion_2<
|
|
7020
|
+
NativeBehaviorEvent,
|
|
7021
|
+
'type',
|
|
7022
|
+
'drag.drop' | 'clipboard.paste'
|
|
7023
|
+
>
|
|
7024
|
+
| InputBehaviorEvent_2
|
|
6876
7025
|
})
|
|
6877
7026
|
| {
|
|
6878
7027
|
type: 'serialization.success'
|
|
@@ -7017,7 +7166,7 @@ declare const editorMachine: StateMachine<
|
|
|
7017
7166
|
}
|
|
7018
7167
|
| {
|
|
7019
7168
|
type: 'dragstart'
|
|
7020
|
-
origin: EventPosition
|
|
7169
|
+
origin: Pick<EventPosition, 'selection'>
|
|
7021
7170
|
ghost?: HTMLElement
|
|
7022
7171
|
}
|
|
7023
7172
|
| {
|
|
@@ -7089,6 +7238,10 @@ declare const editorMachine: StateMachine<
|
|
|
7089
7238
|
| {
|
|
7090
7239
|
type: 'decorator.toggle'
|
|
7091
7240
|
decorator: string
|
|
7241
|
+
offsets?: {
|
|
7242
|
+
anchor: BlockOffset_2
|
|
7243
|
+
focus: BlockOffset_2
|
|
7244
|
+
}
|
|
7092
7245
|
}
|
|
7093
7246
|
| {
|
|
7094
7247
|
type: 'delete'
|
|
@@ -7233,22 +7386,26 @@ declare const editorMachine: StateMachine<
|
|
|
7233
7386
|
mimeType: `${string}/${string}`
|
|
7234
7387
|
reason: string
|
|
7235
7388
|
} & {
|
|
7236
|
-
originEvent:
|
|
7237
|
-
|
|
7238
|
-
|
|
7239
|
-
|
|
7240
|
-
|
|
7389
|
+
originEvent:
|
|
7390
|
+
| PickFromUnion_2<
|
|
7391
|
+
NativeBehaviorEvent,
|
|
7392
|
+
'type',
|
|
7393
|
+
'drag.drop' | 'clipboard.paste'
|
|
7394
|
+
>
|
|
7395
|
+
| InputBehaviorEvent_2
|
|
7241
7396
|
})
|
|
7242
7397
|
| ({
|
|
7243
7398
|
type: 'deserialization.success'
|
|
7244
7399
|
data: Array<PortableTextBlock>
|
|
7245
7400
|
mimeType: `${string}/${string}`
|
|
7246
7401
|
} & {
|
|
7247
|
-
originEvent:
|
|
7248
|
-
|
|
7249
|
-
|
|
7250
|
-
|
|
7251
|
-
|
|
7402
|
+
originEvent:
|
|
7403
|
+
| PickFromUnion_2<
|
|
7404
|
+
NativeBehaviorEvent,
|
|
7405
|
+
'type',
|
|
7406
|
+
'drag.drop' | 'clipboard.paste'
|
|
7407
|
+
>
|
|
7408
|
+
| InputBehaviorEvent_2
|
|
7252
7409
|
})
|
|
7253
7410
|
| {
|
|
7254
7411
|
type: 'serialization.success'
|
|
@@ -7337,7 +7494,7 @@ declare const editorMachine: StateMachine<
|
|
|
7337
7494
|
value: Array<PortableTextBlock> | undefined
|
|
7338
7495
|
internalDrag?: {
|
|
7339
7496
|
ghost?: HTMLElement
|
|
7340
|
-
origin: EventPosition
|
|
7497
|
+
origin: Pick<EventPosition, 'selection'>
|
|
7341
7498
|
}
|
|
7342
7499
|
},
|
|
7343
7500
|
{
|
|
@@ -7401,6 +7558,10 @@ declare const editorMachine: StateMachine<
|
|
|
7401
7558
|
| {
|
|
7402
7559
|
type: 'decorator.toggle'
|
|
7403
7560
|
decorator: string
|
|
7561
|
+
offsets?: {
|
|
7562
|
+
anchor: BlockOffset_2
|
|
7563
|
+
focus: BlockOffset_2
|
|
7564
|
+
}
|
|
7404
7565
|
}
|
|
7405
7566
|
| {
|
|
7406
7567
|
type: 'delete'
|
|
@@ -7545,22 +7706,26 @@ declare const editorMachine: StateMachine<
|
|
|
7545
7706
|
mimeType: `${string}/${string}`
|
|
7546
7707
|
reason: string
|
|
7547
7708
|
} & {
|
|
7548
|
-
originEvent:
|
|
7549
|
-
|
|
7550
|
-
|
|
7551
|
-
|
|
7552
|
-
|
|
7709
|
+
originEvent:
|
|
7710
|
+
| PickFromUnion_2<
|
|
7711
|
+
NativeBehaviorEvent,
|
|
7712
|
+
'type',
|
|
7713
|
+
'drag.drop' | 'clipboard.paste'
|
|
7714
|
+
>
|
|
7715
|
+
| InputBehaviorEvent_2
|
|
7553
7716
|
})
|
|
7554
7717
|
| ({
|
|
7555
7718
|
type: 'deserialization.success'
|
|
7556
7719
|
data: Array<PortableTextBlock>
|
|
7557
7720
|
mimeType: `${string}/${string}`
|
|
7558
7721
|
} & {
|
|
7559
|
-
originEvent:
|
|
7560
|
-
|
|
7561
|
-
|
|
7562
|
-
|
|
7563
|
-
|
|
7722
|
+
originEvent:
|
|
7723
|
+
| PickFromUnion_2<
|
|
7724
|
+
NativeBehaviorEvent,
|
|
7725
|
+
'type',
|
|
7726
|
+
'drag.drop' | 'clipboard.paste'
|
|
7727
|
+
>
|
|
7728
|
+
| InputBehaviorEvent_2
|
|
7564
7729
|
})
|
|
7565
7730
|
| {
|
|
7566
7731
|
type: 'serialization.success'
|
|
@@ -7705,7 +7870,7 @@ declare const editorMachine: StateMachine<
|
|
|
7705
7870
|
}
|
|
7706
7871
|
| {
|
|
7707
7872
|
type: 'dragstart'
|
|
7708
|
-
origin: EventPosition
|
|
7873
|
+
origin: Pick<EventPosition, 'selection'>
|
|
7709
7874
|
ghost?: HTMLElement
|
|
7710
7875
|
}
|
|
7711
7876
|
| {
|
|
@@ -7777,6 +7942,10 @@ declare const editorMachine: StateMachine<
|
|
|
7777
7942
|
| {
|
|
7778
7943
|
type: 'decorator.toggle'
|
|
7779
7944
|
decorator: string
|
|
7945
|
+
offsets?: {
|
|
7946
|
+
anchor: BlockOffset_2
|
|
7947
|
+
focus: BlockOffset_2
|
|
7948
|
+
}
|
|
7780
7949
|
}
|
|
7781
7950
|
| {
|
|
7782
7951
|
type: 'delete'
|
|
@@ -7921,22 +8090,26 @@ declare const editorMachine: StateMachine<
|
|
|
7921
8090
|
mimeType: `${string}/${string}`
|
|
7922
8091
|
reason: string
|
|
7923
8092
|
} & {
|
|
7924
|
-
originEvent:
|
|
7925
|
-
|
|
7926
|
-
|
|
7927
|
-
|
|
7928
|
-
|
|
8093
|
+
originEvent:
|
|
8094
|
+
| PickFromUnion_2<
|
|
8095
|
+
NativeBehaviorEvent,
|
|
8096
|
+
'type',
|
|
8097
|
+
'drag.drop' | 'clipboard.paste'
|
|
8098
|
+
>
|
|
8099
|
+
| InputBehaviorEvent_2
|
|
7929
8100
|
})
|
|
7930
8101
|
| ({
|
|
7931
8102
|
type: 'deserialization.success'
|
|
7932
8103
|
data: Array<PortableTextBlock>
|
|
7933
8104
|
mimeType: `${string}/${string}`
|
|
7934
8105
|
} & {
|
|
7935
|
-
originEvent:
|
|
7936
|
-
|
|
7937
|
-
|
|
7938
|
-
|
|
7939
|
-
|
|
8106
|
+
originEvent:
|
|
8107
|
+
| PickFromUnion_2<
|
|
8108
|
+
NativeBehaviorEvent,
|
|
8109
|
+
'type',
|
|
8110
|
+
'drag.drop' | 'clipboard.paste'
|
|
8111
|
+
>
|
|
8112
|
+
| InputBehaviorEvent_2
|
|
7940
8113
|
})
|
|
7941
8114
|
| {
|
|
7942
8115
|
type: 'serialization.success'
|
|
@@ -8025,7 +8198,7 @@ declare const editorMachine: StateMachine<
|
|
|
8025
8198
|
value: Array<PortableTextBlock> | undefined
|
|
8026
8199
|
internalDrag?: {
|
|
8027
8200
|
ghost?: HTMLElement
|
|
8028
|
-
origin: EventPosition
|
|
8201
|
+
origin: Pick<EventPosition, 'selection'>
|
|
8029
8202
|
}
|
|
8030
8203
|
},
|
|
8031
8204
|
{
|
|
@@ -8090,6 +8263,10 @@ declare const editorMachine: StateMachine<
|
|
|
8090
8263
|
| {
|
|
8091
8264
|
type: 'decorator.toggle'
|
|
8092
8265
|
decorator: string
|
|
8266
|
+
offsets?: {
|
|
8267
|
+
anchor: BlockOffset_2
|
|
8268
|
+
focus: BlockOffset_2
|
|
8269
|
+
}
|
|
8093
8270
|
}
|
|
8094
8271
|
| {
|
|
8095
8272
|
type: 'delete'
|
|
@@ -8234,22 +8411,26 @@ declare const editorMachine: StateMachine<
|
|
|
8234
8411
|
mimeType: `${string}/${string}`
|
|
8235
8412
|
reason: string
|
|
8236
8413
|
} & {
|
|
8237
|
-
originEvent:
|
|
8238
|
-
|
|
8239
|
-
|
|
8240
|
-
|
|
8241
|
-
|
|
8414
|
+
originEvent:
|
|
8415
|
+
| PickFromUnion_2<
|
|
8416
|
+
NativeBehaviorEvent,
|
|
8417
|
+
'type',
|
|
8418
|
+
'drag.drop' | 'clipboard.paste'
|
|
8419
|
+
>
|
|
8420
|
+
| InputBehaviorEvent_2
|
|
8242
8421
|
})
|
|
8243
8422
|
| ({
|
|
8244
8423
|
type: 'deserialization.success'
|
|
8245
8424
|
data: Array<PortableTextBlock>
|
|
8246
8425
|
mimeType: `${string}/${string}`
|
|
8247
8426
|
} & {
|
|
8248
|
-
originEvent:
|
|
8249
|
-
|
|
8250
|
-
|
|
8251
|
-
|
|
8252
|
-
|
|
8427
|
+
originEvent:
|
|
8428
|
+
| PickFromUnion_2<
|
|
8429
|
+
NativeBehaviorEvent,
|
|
8430
|
+
'type',
|
|
8431
|
+
'drag.drop' | 'clipboard.paste'
|
|
8432
|
+
>
|
|
8433
|
+
| InputBehaviorEvent_2
|
|
8253
8434
|
})
|
|
8254
8435
|
| {
|
|
8255
8436
|
type: 'serialization.success'
|
|
@@ -8394,7 +8575,7 @@ declare const editorMachine: StateMachine<
|
|
|
8394
8575
|
}
|
|
8395
8576
|
| {
|
|
8396
8577
|
type: 'dragstart'
|
|
8397
|
-
origin: EventPosition
|
|
8578
|
+
origin: Pick<EventPosition, 'selection'>
|
|
8398
8579
|
ghost?: HTMLElement
|
|
8399
8580
|
}
|
|
8400
8581
|
| {
|
|
@@ -8466,6 +8647,10 @@ declare const editorMachine: StateMachine<
|
|
|
8466
8647
|
| {
|
|
8467
8648
|
type: 'decorator.toggle'
|
|
8468
8649
|
decorator: string
|
|
8650
|
+
offsets?: {
|
|
8651
|
+
anchor: BlockOffset_2
|
|
8652
|
+
focus: BlockOffset_2
|
|
8653
|
+
}
|
|
8469
8654
|
}
|
|
8470
8655
|
| {
|
|
8471
8656
|
type: 'delete'
|
|
@@ -8610,22 +8795,26 @@ declare const editorMachine: StateMachine<
|
|
|
8610
8795
|
mimeType: `${string}/${string}`
|
|
8611
8796
|
reason: string
|
|
8612
8797
|
} & {
|
|
8613
|
-
originEvent:
|
|
8614
|
-
|
|
8615
|
-
|
|
8616
|
-
|
|
8617
|
-
|
|
8798
|
+
originEvent:
|
|
8799
|
+
| PickFromUnion_2<
|
|
8800
|
+
NativeBehaviorEvent,
|
|
8801
|
+
'type',
|
|
8802
|
+
'drag.drop' | 'clipboard.paste'
|
|
8803
|
+
>
|
|
8804
|
+
| InputBehaviorEvent_2
|
|
8618
8805
|
})
|
|
8619
8806
|
| ({
|
|
8620
8807
|
type: 'deserialization.success'
|
|
8621
8808
|
data: Array<PortableTextBlock>
|
|
8622
8809
|
mimeType: `${string}/${string}`
|
|
8623
8810
|
} & {
|
|
8624
|
-
originEvent:
|
|
8625
|
-
|
|
8626
|
-
|
|
8627
|
-
|
|
8628
|
-
|
|
8811
|
+
originEvent:
|
|
8812
|
+
| PickFromUnion_2<
|
|
8813
|
+
NativeBehaviorEvent,
|
|
8814
|
+
'type',
|
|
8815
|
+
'drag.drop' | 'clipboard.paste'
|
|
8816
|
+
>
|
|
8817
|
+
| InputBehaviorEvent_2
|
|
8629
8818
|
})
|
|
8630
8819
|
| {
|
|
8631
8820
|
type: 'serialization.success'
|
|
@@ -8720,7 +8909,7 @@ declare const editorMachine: StateMachine<
|
|
|
8720
8909
|
value: Array<PortableTextBlock> | undefined
|
|
8721
8910
|
internalDrag?: {
|
|
8722
8911
|
ghost?: HTMLElement
|
|
8723
|
-
origin: EventPosition
|
|
8912
|
+
origin: Pick<EventPosition, 'selection'>
|
|
8724
8913
|
}
|
|
8725
8914
|
},
|
|
8726
8915
|
PatchesEvent,
|
|
@@ -8782,6 +8971,10 @@ declare const editorMachine: StateMachine<
|
|
|
8782
8971
|
| {
|
|
8783
8972
|
type: 'decorator.toggle'
|
|
8784
8973
|
decorator: string
|
|
8974
|
+
offsets?: {
|
|
8975
|
+
anchor: BlockOffset_2
|
|
8976
|
+
focus: BlockOffset_2
|
|
8977
|
+
}
|
|
8785
8978
|
}
|
|
8786
8979
|
| {
|
|
8787
8980
|
type: 'delete'
|
|
@@ -8926,22 +9119,26 @@ declare const editorMachine: StateMachine<
|
|
|
8926
9119
|
mimeType: `${string}/${string}`
|
|
8927
9120
|
reason: string
|
|
8928
9121
|
} & {
|
|
8929
|
-
originEvent:
|
|
8930
|
-
|
|
8931
|
-
|
|
8932
|
-
|
|
8933
|
-
|
|
9122
|
+
originEvent:
|
|
9123
|
+
| PickFromUnion_2<
|
|
9124
|
+
NativeBehaviorEvent,
|
|
9125
|
+
'type',
|
|
9126
|
+
'drag.drop' | 'clipboard.paste'
|
|
9127
|
+
>
|
|
9128
|
+
| InputBehaviorEvent_2
|
|
8934
9129
|
})
|
|
8935
9130
|
| ({
|
|
8936
9131
|
type: 'deserialization.success'
|
|
8937
9132
|
data: Array<PortableTextBlock>
|
|
8938
9133
|
mimeType: `${string}/${string}`
|
|
8939
9134
|
} & {
|
|
8940
|
-
originEvent:
|
|
8941
|
-
|
|
8942
|
-
|
|
8943
|
-
|
|
8944
|
-
|
|
9135
|
+
originEvent:
|
|
9136
|
+
| PickFromUnion_2<
|
|
9137
|
+
NativeBehaviorEvent,
|
|
9138
|
+
'type',
|
|
9139
|
+
'drag.drop' | 'clipboard.paste'
|
|
9140
|
+
>
|
|
9141
|
+
| InputBehaviorEvent_2
|
|
8945
9142
|
})
|
|
8946
9143
|
| {
|
|
8947
9144
|
type: 'serialization.success'
|
|
@@ -9086,7 +9283,7 @@ declare const editorMachine: StateMachine<
|
|
|
9086
9283
|
}
|
|
9087
9284
|
| {
|
|
9088
9285
|
type: 'dragstart'
|
|
9089
|
-
origin: EventPosition
|
|
9286
|
+
origin: Pick<EventPosition, 'selection'>
|
|
9090
9287
|
ghost?: HTMLElement
|
|
9091
9288
|
}
|
|
9092
9289
|
| {
|
|
@@ -9158,6 +9355,10 @@ declare const editorMachine: StateMachine<
|
|
|
9158
9355
|
| {
|
|
9159
9356
|
type: 'decorator.toggle'
|
|
9160
9357
|
decorator: string
|
|
9358
|
+
offsets?: {
|
|
9359
|
+
anchor: BlockOffset_2
|
|
9360
|
+
focus: BlockOffset_2
|
|
9361
|
+
}
|
|
9161
9362
|
}
|
|
9162
9363
|
| {
|
|
9163
9364
|
type: 'delete'
|
|
@@ -9302,22 +9503,26 @@ declare const editorMachine: StateMachine<
|
|
|
9302
9503
|
mimeType: `${string}/${string}`
|
|
9303
9504
|
reason: string
|
|
9304
9505
|
} & {
|
|
9305
|
-
originEvent:
|
|
9306
|
-
|
|
9307
|
-
|
|
9308
|
-
|
|
9309
|
-
|
|
9506
|
+
originEvent:
|
|
9507
|
+
| PickFromUnion_2<
|
|
9508
|
+
NativeBehaviorEvent,
|
|
9509
|
+
'type',
|
|
9510
|
+
'drag.drop' | 'clipboard.paste'
|
|
9511
|
+
>
|
|
9512
|
+
| InputBehaviorEvent_2
|
|
9310
9513
|
})
|
|
9311
9514
|
| ({
|
|
9312
9515
|
type: 'deserialization.success'
|
|
9313
9516
|
data: Array<PortableTextBlock>
|
|
9314
9517
|
mimeType: `${string}/${string}`
|
|
9315
9518
|
} & {
|
|
9316
|
-
originEvent:
|
|
9317
|
-
|
|
9318
|
-
|
|
9319
|
-
|
|
9320
|
-
|
|
9519
|
+
originEvent:
|
|
9520
|
+
| PickFromUnion_2<
|
|
9521
|
+
NativeBehaviorEvent,
|
|
9522
|
+
'type',
|
|
9523
|
+
'drag.drop' | 'clipboard.paste'
|
|
9524
|
+
>
|
|
9525
|
+
| InputBehaviorEvent_2
|
|
9321
9526
|
})
|
|
9322
9527
|
| {
|
|
9323
9528
|
type: 'serialization.success'
|
|
@@ -9409,7 +9614,7 @@ declare const editorMachine: StateMachine<
|
|
|
9409
9614
|
value: Array<PortableTextBlock> | undefined
|
|
9410
9615
|
internalDrag?: {
|
|
9411
9616
|
ghost?: HTMLElement
|
|
9412
|
-
origin: EventPosition
|
|
9617
|
+
origin: Pick<EventPosition, 'selection'>
|
|
9413
9618
|
}
|
|
9414
9619
|
},
|
|
9415
9620
|
{
|
|
@@ -9474,6 +9679,10 @@ declare const editorMachine: StateMachine<
|
|
|
9474
9679
|
| {
|
|
9475
9680
|
type: 'decorator.toggle'
|
|
9476
9681
|
decorator: string
|
|
9682
|
+
offsets?: {
|
|
9683
|
+
anchor: BlockOffset_2
|
|
9684
|
+
focus: BlockOffset_2
|
|
9685
|
+
}
|
|
9477
9686
|
}
|
|
9478
9687
|
| {
|
|
9479
9688
|
type: 'delete'
|
|
@@ -9618,22 +9827,26 @@ declare const editorMachine: StateMachine<
|
|
|
9618
9827
|
mimeType: `${string}/${string}`
|
|
9619
9828
|
reason: string
|
|
9620
9829
|
} & {
|
|
9621
|
-
originEvent:
|
|
9622
|
-
|
|
9623
|
-
|
|
9624
|
-
|
|
9625
|
-
|
|
9830
|
+
originEvent:
|
|
9831
|
+
| PickFromUnion_2<
|
|
9832
|
+
NativeBehaviorEvent,
|
|
9833
|
+
'type',
|
|
9834
|
+
'drag.drop' | 'clipboard.paste'
|
|
9835
|
+
>
|
|
9836
|
+
| InputBehaviorEvent_2
|
|
9626
9837
|
})
|
|
9627
9838
|
| ({
|
|
9628
9839
|
type: 'deserialization.success'
|
|
9629
9840
|
data: Array<PortableTextBlock>
|
|
9630
9841
|
mimeType: `${string}/${string}`
|
|
9631
9842
|
} & {
|
|
9632
|
-
originEvent:
|
|
9633
|
-
|
|
9634
|
-
|
|
9635
|
-
|
|
9636
|
-
|
|
9843
|
+
originEvent:
|
|
9844
|
+
| PickFromUnion_2<
|
|
9845
|
+
NativeBehaviorEvent,
|
|
9846
|
+
'type',
|
|
9847
|
+
'drag.drop' | 'clipboard.paste'
|
|
9848
|
+
>
|
|
9849
|
+
| InputBehaviorEvent_2
|
|
9637
9850
|
})
|
|
9638
9851
|
| {
|
|
9639
9852
|
type: 'serialization.success'
|
|
@@ -9778,7 +9991,7 @@ declare const editorMachine: StateMachine<
|
|
|
9778
9991
|
}
|
|
9779
9992
|
| {
|
|
9780
9993
|
type: 'dragstart'
|
|
9781
|
-
origin: EventPosition
|
|
9994
|
+
origin: Pick<EventPosition, 'selection'>
|
|
9782
9995
|
ghost?: HTMLElement
|
|
9783
9996
|
}
|
|
9784
9997
|
| {
|
|
@@ -9812,7 +10025,7 @@ declare const editorMachine: StateMachine<
|
|
|
9812
10025
|
value: Array<PortableTextBlock> | undefined
|
|
9813
10026
|
internalDrag?: {
|
|
9814
10027
|
ghost?: HTMLElement
|
|
9815
|
-
origin: EventPosition
|
|
10028
|
+
origin: Pick<EventPosition, 'selection'>
|
|
9816
10029
|
}
|
|
9817
10030
|
},
|
|
9818
10031
|
{
|
|
@@ -9877,6 +10090,10 @@ declare const editorMachine: StateMachine<
|
|
|
9877
10090
|
| {
|
|
9878
10091
|
type: 'decorator.toggle'
|
|
9879
10092
|
decorator: string
|
|
10093
|
+
offsets?: {
|
|
10094
|
+
anchor: BlockOffset_2
|
|
10095
|
+
focus: BlockOffset_2
|
|
10096
|
+
}
|
|
9880
10097
|
}
|
|
9881
10098
|
| {
|
|
9882
10099
|
type: 'delete'
|
|
@@ -10021,22 +10238,26 @@ declare const editorMachine: StateMachine<
|
|
|
10021
10238
|
mimeType: `${string}/${string}`
|
|
10022
10239
|
reason: string
|
|
10023
10240
|
} & {
|
|
10024
|
-
originEvent:
|
|
10025
|
-
|
|
10026
|
-
|
|
10027
|
-
|
|
10028
|
-
|
|
10241
|
+
originEvent:
|
|
10242
|
+
| PickFromUnion_2<
|
|
10243
|
+
NativeBehaviorEvent,
|
|
10244
|
+
'type',
|
|
10245
|
+
'drag.drop' | 'clipboard.paste'
|
|
10246
|
+
>
|
|
10247
|
+
| InputBehaviorEvent_2
|
|
10029
10248
|
})
|
|
10030
10249
|
| ({
|
|
10031
10250
|
type: 'deserialization.success'
|
|
10032
10251
|
data: Array<PortableTextBlock>
|
|
10033
10252
|
mimeType: `${string}/${string}`
|
|
10034
10253
|
} & {
|
|
10035
|
-
originEvent:
|
|
10036
|
-
|
|
10037
|
-
|
|
10038
|
-
|
|
10039
|
-
|
|
10254
|
+
originEvent:
|
|
10255
|
+
| PickFromUnion_2<
|
|
10256
|
+
NativeBehaviorEvent,
|
|
10257
|
+
'type',
|
|
10258
|
+
'drag.drop' | 'clipboard.paste'
|
|
10259
|
+
>
|
|
10260
|
+
| InputBehaviorEvent_2
|
|
10040
10261
|
})
|
|
10041
10262
|
| {
|
|
10042
10263
|
type: 'serialization.success'
|
|
@@ -10181,7 +10402,7 @@ declare const editorMachine: StateMachine<
|
|
|
10181
10402
|
}
|
|
10182
10403
|
| {
|
|
10183
10404
|
type: 'dragstart'
|
|
10184
|
-
origin: EventPosition
|
|
10405
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10185
10406
|
ghost?: HTMLElement
|
|
10186
10407
|
}
|
|
10187
10408
|
| {
|
|
@@ -10212,7 +10433,7 @@ declare const editorMachine: StateMachine<
|
|
|
10212
10433
|
value: Array<PortableTextBlock> | undefined
|
|
10213
10434
|
internalDrag?: {
|
|
10214
10435
|
ghost?: HTMLElement
|
|
10215
|
-
origin: EventPosition
|
|
10436
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10216
10437
|
}
|
|
10217
10438
|
},
|
|
10218
10439
|
{
|
|
@@ -10277,6 +10498,10 @@ declare const editorMachine: StateMachine<
|
|
|
10277
10498
|
| {
|
|
10278
10499
|
type: 'decorator.toggle'
|
|
10279
10500
|
decorator: string
|
|
10501
|
+
offsets?: {
|
|
10502
|
+
anchor: BlockOffset_2
|
|
10503
|
+
focus: BlockOffset_2
|
|
10504
|
+
}
|
|
10280
10505
|
}
|
|
10281
10506
|
| {
|
|
10282
10507
|
type: 'delete'
|
|
@@ -10421,22 +10646,26 @@ declare const editorMachine: StateMachine<
|
|
|
10421
10646
|
mimeType: `${string}/${string}`
|
|
10422
10647
|
reason: string
|
|
10423
10648
|
} & {
|
|
10424
|
-
originEvent:
|
|
10425
|
-
|
|
10426
|
-
|
|
10427
|
-
|
|
10428
|
-
|
|
10649
|
+
originEvent:
|
|
10650
|
+
| PickFromUnion_2<
|
|
10651
|
+
NativeBehaviorEvent,
|
|
10652
|
+
'type',
|
|
10653
|
+
'drag.drop' | 'clipboard.paste'
|
|
10654
|
+
>
|
|
10655
|
+
| InputBehaviorEvent_2
|
|
10429
10656
|
})
|
|
10430
10657
|
| ({
|
|
10431
10658
|
type: 'deserialization.success'
|
|
10432
10659
|
data: Array<PortableTextBlock>
|
|
10433
10660
|
mimeType: `${string}/${string}`
|
|
10434
10661
|
} & {
|
|
10435
|
-
originEvent:
|
|
10436
|
-
|
|
10437
|
-
|
|
10438
|
-
|
|
10439
|
-
|
|
10662
|
+
originEvent:
|
|
10663
|
+
| PickFromUnion_2<
|
|
10664
|
+
NativeBehaviorEvent,
|
|
10665
|
+
'type',
|
|
10666
|
+
'drag.drop' | 'clipboard.paste'
|
|
10667
|
+
>
|
|
10668
|
+
| InputBehaviorEvent_2
|
|
10440
10669
|
})
|
|
10441
10670
|
| {
|
|
10442
10671
|
type: 'serialization.success'
|
|
@@ -10581,7 +10810,7 @@ declare const editorMachine: StateMachine<
|
|
|
10581
10810
|
}
|
|
10582
10811
|
| {
|
|
10583
10812
|
type: 'dragstart'
|
|
10584
|
-
origin: EventPosition
|
|
10813
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10585
10814
|
ghost?: HTMLElement
|
|
10586
10815
|
}
|
|
10587
10816
|
| {
|
|
@@ -10624,7 +10853,7 @@ declare const editorMachine: StateMachine<
|
|
|
10624
10853
|
value: Array<PortableTextBlock> | undefined
|
|
10625
10854
|
internalDrag?: {
|
|
10626
10855
|
ghost?: HTMLElement
|
|
10627
|
-
origin: EventPosition
|
|
10856
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10628
10857
|
}
|
|
10629
10858
|
},
|
|
10630
10859
|
{
|
|
@@ -10665,7 +10894,7 @@ declare const editorMachine: StateMachine<
|
|
|
10665
10894
|
value: Array<PortableTextBlock> | undefined
|
|
10666
10895
|
internalDrag?: {
|
|
10667
10896
|
ghost?: HTMLElement
|
|
10668
|
-
origin: EventPosition
|
|
10897
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10669
10898
|
}
|
|
10670
10899
|
},
|
|
10671
10900
|
{
|
|
@@ -10697,7 +10926,7 @@ declare const editorMachine: StateMachine<
|
|
|
10697
10926
|
value: Array<PortableTextBlock> | undefined
|
|
10698
10927
|
internalDrag?: {
|
|
10699
10928
|
ghost?: HTMLElement
|
|
10700
|
-
origin: EventPosition
|
|
10929
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10701
10930
|
}
|
|
10702
10931
|
},
|
|
10703
10932
|
{
|
|
@@ -10730,7 +10959,7 @@ declare const editorMachine: StateMachine<
|
|
|
10730
10959
|
value: Array<PortableTextBlock> | undefined
|
|
10731
10960
|
internalDrag?: {
|
|
10732
10961
|
ghost?: HTMLElement
|
|
10733
|
-
origin: EventPosition
|
|
10962
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10734
10963
|
}
|
|
10735
10964
|
},
|
|
10736
10965
|
{
|
|
@@ -10761,7 +10990,7 @@ declare const editorMachine: StateMachine<
|
|
|
10761
10990
|
value: Array<PortableTextBlock> | undefined
|
|
10762
10991
|
internalDrag?: {
|
|
10763
10992
|
ghost?: HTMLElement
|
|
10764
|
-
origin: EventPosition
|
|
10993
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10765
10994
|
}
|
|
10766
10995
|
},
|
|
10767
10996
|
| {
|
|
@@ -10846,6 +11075,10 @@ declare const editorMachine: StateMachine<
|
|
|
10846
11075
|
| {
|
|
10847
11076
|
type: 'decorator.toggle'
|
|
10848
11077
|
decorator: string
|
|
11078
|
+
offsets?: {
|
|
11079
|
+
anchor: BlockOffset_2
|
|
11080
|
+
focus: BlockOffset_2
|
|
11081
|
+
}
|
|
10849
11082
|
}
|
|
10850
11083
|
| {
|
|
10851
11084
|
type: 'delete'
|
|
@@ -10990,22 +11223,26 @@ declare const editorMachine: StateMachine<
|
|
|
10990
11223
|
mimeType: `${string}/${string}`
|
|
10991
11224
|
reason: string
|
|
10992
11225
|
} & {
|
|
10993
|
-
originEvent:
|
|
10994
|
-
|
|
10995
|
-
|
|
10996
|
-
|
|
10997
|
-
|
|
11226
|
+
originEvent:
|
|
11227
|
+
| PickFromUnion_2<
|
|
11228
|
+
NativeBehaviorEvent,
|
|
11229
|
+
'type',
|
|
11230
|
+
'drag.drop' | 'clipboard.paste'
|
|
11231
|
+
>
|
|
11232
|
+
| InputBehaviorEvent_2
|
|
10998
11233
|
})
|
|
10999
11234
|
| ({
|
|
11000
11235
|
type: 'deserialization.success'
|
|
11001
11236
|
data: Array<PortableTextBlock>
|
|
11002
11237
|
mimeType: `${string}/${string}`
|
|
11003
11238
|
} & {
|
|
11004
|
-
originEvent:
|
|
11005
|
-
|
|
11006
|
-
|
|
11007
|
-
|
|
11008
|
-
|
|
11239
|
+
originEvent:
|
|
11240
|
+
| PickFromUnion_2<
|
|
11241
|
+
NativeBehaviorEvent,
|
|
11242
|
+
'type',
|
|
11243
|
+
'drag.drop' | 'clipboard.paste'
|
|
11244
|
+
>
|
|
11245
|
+
| InputBehaviorEvent_2
|
|
11009
11246
|
})
|
|
11010
11247
|
| {
|
|
11011
11248
|
type: 'serialization.success'
|
|
@@ -11150,7 +11387,7 @@ declare const editorMachine: StateMachine<
|
|
|
11150
11387
|
}
|
|
11151
11388
|
| {
|
|
11152
11389
|
type: 'dragstart'
|
|
11153
|
-
origin: EventPosition
|
|
11390
|
+
origin: Pick<EventPosition, 'selection'>
|
|
11154
11391
|
ghost?: HTMLElement
|
|
11155
11392
|
}
|
|
11156
11393
|
| {
|
|
@@ -11222,6 +11459,10 @@ declare const editorMachine: StateMachine<
|
|
|
11222
11459
|
| {
|
|
11223
11460
|
type: 'decorator.toggle'
|
|
11224
11461
|
decorator: string
|
|
11462
|
+
offsets?: {
|
|
11463
|
+
anchor: BlockOffset_2
|
|
11464
|
+
focus: BlockOffset_2
|
|
11465
|
+
}
|
|
11225
11466
|
}
|
|
11226
11467
|
| {
|
|
11227
11468
|
type: 'delete'
|
|
@@ -11366,22 +11607,26 @@ declare const editorMachine: StateMachine<
|
|
|
11366
11607
|
mimeType: `${string}/${string}`
|
|
11367
11608
|
reason: string
|
|
11368
11609
|
} & {
|
|
11369
|
-
originEvent:
|
|
11370
|
-
|
|
11371
|
-
|
|
11372
|
-
|
|
11373
|
-
|
|
11610
|
+
originEvent:
|
|
11611
|
+
| PickFromUnion_2<
|
|
11612
|
+
NativeBehaviorEvent,
|
|
11613
|
+
'type',
|
|
11614
|
+
'drag.drop' | 'clipboard.paste'
|
|
11615
|
+
>
|
|
11616
|
+
| InputBehaviorEvent_2
|
|
11374
11617
|
})
|
|
11375
11618
|
| ({
|
|
11376
11619
|
type: 'deserialization.success'
|
|
11377
11620
|
data: Array<PortableTextBlock>
|
|
11378
11621
|
mimeType: `${string}/${string}`
|
|
11379
11622
|
} & {
|
|
11380
|
-
originEvent:
|
|
11381
|
-
|
|
11382
|
-
|
|
11383
|
-
|
|
11384
|
-
|
|
11623
|
+
originEvent:
|
|
11624
|
+
| PickFromUnion_2<
|
|
11625
|
+
NativeBehaviorEvent,
|
|
11626
|
+
'type',
|
|
11627
|
+
'drag.drop' | 'clipboard.paste'
|
|
11628
|
+
>
|
|
11629
|
+
| InputBehaviorEvent_2
|
|
11385
11630
|
})
|
|
11386
11631
|
| {
|
|
11387
11632
|
type: 'serialization.success'
|
|
@@ -11470,7 +11715,7 @@ declare const editorMachine: StateMachine<
|
|
|
11470
11715
|
value: Array<PortableTextBlock> | undefined
|
|
11471
11716
|
internalDrag?: {
|
|
11472
11717
|
ghost?: HTMLElement
|
|
11473
|
-
origin: EventPosition
|
|
11718
|
+
origin: Pick<EventPosition, 'selection'>
|
|
11474
11719
|
}
|
|
11475
11720
|
},
|
|
11476
11721
|
| {
|
|
@@ -11541,6 +11786,10 @@ declare const editorMachine: StateMachine<
|
|
|
11541
11786
|
| {
|
|
11542
11787
|
type: 'decorator.toggle'
|
|
11543
11788
|
decorator: string
|
|
11789
|
+
offsets?: {
|
|
11790
|
+
anchor: BlockOffset_2
|
|
11791
|
+
focus: BlockOffset_2
|
|
11792
|
+
}
|
|
11544
11793
|
}
|
|
11545
11794
|
| {
|
|
11546
11795
|
type: 'delete'
|
|
@@ -11685,22 +11934,26 @@ declare const editorMachine: StateMachine<
|
|
|
11685
11934
|
mimeType: `${string}/${string}`
|
|
11686
11935
|
reason: string
|
|
11687
11936
|
} & {
|
|
11688
|
-
originEvent:
|
|
11689
|
-
|
|
11690
|
-
|
|
11691
|
-
|
|
11692
|
-
|
|
11937
|
+
originEvent:
|
|
11938
|
+
| PickFromUnion_2<
|
|
11939
|
+
NativeBehaviorEvent,
|
|
11940
|
+
'type',
|
|
11941
|
+
'drag.drop' | 'clipboard.paste'
|
|
11942
|
+
>
|
|
11943
|
+
| InputBehaviorEvent_2
|
|
11693
11944
|
})
|
|
11694
11945
|
| ({
|
|
11695
11946
|
type: 'deserialization.success'
|
|
11696
11947
|
data: Array<PortableTextBlock>
|
|
11697
11948
|
mimeType: `${string}/${string}`
|
|
11698
11949
|
} & {
|
|
11699
|
-
originEvent:
|
|
11700
|
-
|
|
11701
|
-
|
|
11702
|
-
|
|
11703
|
-
|
|
11950
|
+
originEvent:
|
|
11951
|
+
| PickFromUnion_2<
|
|
11952
|
+
NativeBehaviorEvent,
|
|
11953
|
+
'type',
|
|
11954
|
+
'drag.drop' | 'clipboard.paste'
|
|
11955
|
+
>
|
|
11956
|
+
| InputBehaviorEvent_2
|
|
11704
11957
|
})
|
|
11705
11958
|
| {
|
|
11706
11959
|
type: 'serialization.success'
|
|
@@ -11845,7 +12098,7 @@ declare const editorMachine: StateMachine<
|
|
|
11845
12098
|
}
|
|
11846
12099
|
| {
|
|
11847
12100
|
type: 'dragstart'
|
|
11848
|
-
origin: EventPosition
|
|
12101
|
+
origin: Pick<EventPosition, 'selection'>
|
|
11849
12102
|
ghost?: HTMLElement
|
|
11850
12103
|
}
|
|
11851
12104
|
| {
|
|
@@ -11917,6 +12170,10 @@ declare const editorMachine: StateMachine<
|
|
|
11917
12170
|
| {
|
|
11918
12171
|
type: 'decorator.toggle'
|
|
11919
12172
|
decorator: string
|
|
12173
|
+
offsets?: {
|
|
12174
|
+
anchor: BlockOffset_2
|
|
12175
|
+
focus: BlockOffset_2
|
|
12176
|
+
}
|
|
11920
12177
|
}
|
|
11921
12178
|
| {
|
|
11922
12179
|
type: 'delete'
|
|
@@ -12061,22 +12318,26 @@ declare const editorMachine: StateMachine<
|
|
|
12061
12318
|
mimeType: `${string}/${string}`
|
|
12062
12319
|
reason: string
|
|
12063
12320
|
} & {
|
|
12064
|
-
originEvent:
|
|
12065
|
-
|
|
12066
|
-
|
|
12067
|
-
|
|
12068
|
-
|
|
12321
|
+
originEvent:
|
|
12322
|
+
| PickFromUnion_2<
|
|
12323
|
+
NativeBehaviorEvent,
|
|
12324
|
+
'type',
|
|
12325
|
+
'drag.drop' | 'clipboard.paste'
|
|
12326
|
+
>
|
|
12327
|
+
| InputBehaviorEvent_2
|
|
12069
12328
|
})
|
|
12070
12329
|
| ({
|
|
12071
12330
|
type: 'deserialization.success'
|
|
12072
12331
|
data: Array<PortableTextBlock>
|
|
12073
12332
|
mimeType: `${string}/${string}`
|
|
12074
12333
|
} & {
|
|
12075
|
-
originEvent:
|
|
12076
|
-
|
|
12077
|
-
|
|
12078
|
-
|
|
12079
|
-
|
|
12334
|
+
originEvent:
|
|
12335
|
+
| PickFromUnion_2<
|
|
12336
|
+
NativeBehaviorEvent,
|
|
12337
|
+
'type',
|
|
12338
|
+
'drag.drop' | 'clipboard.paste'
|
|
12339
|
+
>
|
|
12340
|
+
| InputBehaviorEvent_2
|
|
12080
12341
|
})
|
|
12081
12342
|
| {
|
|
12082
12343
|
type: 'serialization.success'
|
|
@@ -12165,7 +12426,7 @@ declare const editorMachine: StateMachine<
|
|
|
12165
12426
|
value: Array<PortableTextBlock> | undefined
|
|
12166
12427
|
internalDrag?: {
|
|
12167
12428
|
ghost?: HTMLElement
|
|
12168
|
-
origin: EventPosition
|
|
12429
|
+
origin: Pick<EventPosition, 'selection'>
|
|
12169
12430
|
}
|
|
12170
12431
|
},
|
|
12171
12432
|
{
|
|
@@ -12229,6 +12490,10 @@ declare const editorMachine: StateMachine<
|
|
|
12229
12490
|
| {
|
|
12230
12491
|
type: 'decorator.toggle'
|
|
12231
12492
|
decorator: string
|
|
12493
|
+
offsets?: {
|
|
12494
|
+
anchor: BlockOffset_2
|
|
12495
|
+
focus: BlockOffset_2
|
|
12496
|
+
}
|
|
12232
12497
|
}
|
|
12233
12498
|
| {
|
|
12234
12499
|
type: 'delete'
|
|
@@ -12373,22 +12638,26 @@ declare const editorMachine: StateMachine<
|
|
|
12373
12638
|
mimeType: `${string}/${string}`
|
|
12374
12639
|
reason: string
|
|
12375
12640
|
} & {
|
|
12376
|
-
originEvent:
|
|
12377
|
-
|
|
12378
|
-
|
|
12379
|
-
|
|
12380
|
-
|
|
12641
|
+
originEvent:
|
|
12642
|
+
| PickFromUnion_2<
|
|
12643
|
+
NativeBehaviorEvent,
|
|
12644
|
+
'type',
|
|
12645
|
+
'drag.drop' | 'clipboard.paste'
|
|
12646
|
+
>
|
|
12647
|
+
| InputBehaviorEvent_2
|
|
12381
12648
|
})
|
|
12382
12649
|
| ({
|
|
12383
12650
|
type: 'deserialization.success'
|
|
12384
12651
|
data: Array<PortableTextBlock>
|
|
12385
12652
|
mimeType: `${string}/${string}`
|
|
12386
12653
|
} & {
|
|
12387
|
-
originEvent:
|
|
12388
|
-
|
|
12389
|
-
|
|
12390
|
-
|
|
12391
|
-
|
|
12654
|
+
originEvent:
|
|
12655
|
+
| PickFromUnion_2<
|
|
12656
|
+
NativeBehaviorEvent,
|
|
12657
|
+
'type',
|
|
12658
|
+
'drag.drop' | 'clipboard.paste'
|
|
12659
|
+
>
|
|
12660
|
+
| InputBehaviorEvent_2
|
|
12392
12661
|
})
|
|
12393
12662
|
| {
|
|
12394
12663
|
type: 'serialization.success'
|
|
@@ -12533,7 +12802,7 @@ declare const editorMachine: StateMachine<
|
|
|
12533
12802
|
}
|
|
12534
12803
|
| {
|
|
12535
12804
|
type: 'dragstart'
|
|
12536
|
-
origin: EventPosition
|
|
12805
|
+
origin: Pick<EventPosition, 'selection'>
|
|
12537
12806
|
ghost?: HTMLElement
|
|
12538
12807
|
}
|
|
12539
12808
|
| {
|
|
@@ -12605,6 +12874,10 @@ declare const editorMachine: StateMachine<
|
|
|
12605
12874
|
| {
|
|
12606
12875
|
type: 'decorator.toggle'
|
|
12607
12876
|
decorator: string
|
|
12877
|
+
offsets?: {
|
|
12878
|
+
anchor: BlockOffset_2
|
|
12879
|
+
focus: BlockOffset_2
|
|
12880
|
+
}
|
|
12608
12881
|
}
|
|
12609
12882
|
| {
|
|
12610
12883
|
type: 'delete'
|
|
@@ -12749,22 +13022,26 @@ declare const editorMachine: StateMachine<
|
|
|
12749
13022
|
mimeType: `${string}/${string}`
|
|
12750
13023
|
reason: string
|
|
12751
13024
|
} & {
|
|
12752
|
-
originEvent:
|
|
12753
|
-
|
|
12754
|
-
|
|
12755
|
-
|
|
12756
|
-
|
|
13025
|
+
originEvent:
|
|
13026
|
+
| PickFromUnion_2<
|
|
13027
|
+
NativeBehaviorEvent,
|
|
13028
|
+
'type',
|
|
13029
|
+
'drag.drop' | 'clipboard.paste'
|
|
13030
|
+
>
|
|
13031
|
+
| InputBehaviorEvent_2
|
|
12757
13032
|
})
|
|
12758
13033
|
| ({
|
|
12759
13034
|
type: 'deserialization.success'
|
|
12760
13035
|
data: Array<PortableTextBlock>
|
|
12761
13036
|
mimeType: `${string}/${string}`
|
|
12762
13037
|
} & {
|
|
12763
|
-
originEvent:
|
|
12764
|
-
|
|
12765
|
-
|
|
12766
|
-
|
|
12767
|
-
|
|
13038
|
+
originEvent:
|
|
13039
|
+
| PickFromUnion_2<
|
|
13040
|
+
NativeBehaviorEvent,
|
|
13041
|
+
'type',
|
|
13042
|
+
'drag.drop' | 'clipboard.paste'
|
|
13043
|
+
>
|
|
13044
|
+
| InputBehaviorEvent_2
|
|
12768
13045
|
})
|
|
12769
13046
|
| {
|
|
12770
13047
|
type: 'serialization.success'
|
|
@@ -12853,7 +13130,7 @@ declare const editorMachine: StateMachine<
|
|
|
12853
13130
|
value: Array<PortableTextBlock> | undefined
|
|
12854
13131
|
internalDrag?: {
|
|
12855
13132
|
ghost?: HTMLElement
|
|
12856
|
-
origin: EventPosition
|
|
13133
|
+
origin: Pick<EventPosition, 'selection'>
|
|
12857
13134
|
}
|
|
12858
13135
|
},
|
|
12859
13136
|
{
|
|
@@ -12917,6 +13194,10 @@ declare const editorMachine: StateMachine<
|
|
|
12917
13194
|
| {
|
|
12918
13195
|
type: 'decorator.toggle'
|
|
12919
13196
|
decorator: string
|
|
13197
|
+
offsets?: {
|
|
13198
|
+
anchor: BlockOffset_2
|
|
13199
|
+
focus: BlockOffset_2
|
|
13200
|
+
}
|
|
12920
13201
|
}
|
|
12921
13202
|
| {
|
|
12922
13203
|
type: 'delete'
|
|
@@ -13061,22 +13342,26 @@ declare const editorMachine: StateMachine<
|
|
|
13061
13342
|
mimeType: `${string}/${string}`
|
|
13062
13343
|
reason: string
|
|
13063
13344
|
} & {
|
|
13064
|
-
originEvent:
|
|
13065
|
-
|
|
13066
|
-
|
|
13067
|
-
|
|
13068
|
-
|
|
13345
|
+
originEvent:
|
|
13346
|
+
| PickFromUnion_2<
|
|
13347
|
+
NativeBehaviorEvent,
|
|
13348
|
+
'type',
|
|
13349
|
+
'drag.drop' | 'clipboard.paste'
|
|
13350
|
+
>
|
|
13351
|
+
| InputBehaviorEvent_2
|
|
13069
13352
|
})
|
|
13070
13353
|
| ({
|
|
13071
13354
|
type: 'deserialization.success'
|
|
13072
13355
|
data: Array<PortableTextBlock>
|
|
13073
13356
|
mimeType: `${string}/${string}`
|
|
13074
13357
|
} & {
|
|
13075
|
-
originEvent:
|
|
13076
|
-
|
|
13077
|
-
|
|
13078
|
-
|
|
13079
|
-
|
|
13358
|
+
originEvent:
|
|
13359
|
+
| PickFromUnion_2<
|
|
13360
|
+
NativeBehaviorEvent,
|
|
13361
|
+
'type',
|
|
13362
|
+
'drag.drop' | 'clipboard.paste'
|
|
13363
|
+
>
|
|
13364
|
+
| InputBehaviorEvent_2
|
|
13080
13365
|
})
|
|
13081
13366
|
| {
|
|
13082
13367
|
type: 'serialization.success'
|
|
@@ -13221,7 +13506,7 @@ declare const editorMachine: StateMachine<
|
|
|
13221
13506
|
}
|
|
13222
13507
|
| {
|
|
13223
13508
|
type: 'dragstart'
|
|
13224
|
-
origin: EventPosition
|
|
13509
|
+
origin: Pick<EventPosition, 'selection'>
|
|
13225
13510
|
ghost?: HTMLElement
|
|
13226
13511
|
}
|
|
13227
13512
|
| {
|
|
@@ -13293,6 +13578,10 @@ declare const editorMachine: StateMachine<
|
|
|
13293
13578
|
| {
|
|
13294
13579
|
type: 'decorator.toggle'
|
|
13295
13580
|
decorator: string
|
|
13581
|
+
offsets?: {
|
|
13582
|
+
anchor: BlockOffset_2
|
|
13583
|
+
focus: BlockOffset_2
|
|
13584
|
+
}
|
|
13296
13585
|
}
|
|
13297
13586
|
| {
|
|
13298
13587
|
type: 'delete'
|
|
@@ -13437,22 +13726,26 @@ declare const editorMachine: StateMachine<
|
|
|
13437
13726
|
mimeType: `${string}/${string}`
|
|
13438
13727
|
reason: string
|
|
13439
13728
|
} & {
|
|
13440
|
-
originEvent:
|
|
13441
|
-
|
|
13442
|
-
|
|
13443
|
-
|
|
13444
|
-
|
|
13729
|
+
originEvent:
|
|
13730
|
+
| PickFromUnion_2<
|
|
13731
|
+
NativeBehaviorEvent,
|
|
13732
|
+
'type',
|
|
13733
|
+
'drag.drop' | 'clipboard.paste'
|
|
13734
|
+
>
|
|
13735
|
+
| InputBehaviorEvent_2
|
|
13445
13736
|
})
|
|
13446
13737
|
| ({
|
|
13447
13738
|
type: 'deserialization.success'
|
|
13448
13739
|
data: Array<PortableTextBlock>
|
|
13449
13740
|
mimeType: `${string}/${string}`
|
|
13450
13741
|
} & {
|
|
13451
|
-
originEvent:
|
|
13452
|
-
|
|
13453
|
-
|
|
13454
|
-
|
|
13455
|
-
|
|
13742
|
+
originEvent:
|
|
13743
|
+
| PickFromUnion_2<
|
|
13744
|
+
NativeBehaviorEvent,
|
|
13745
|
+
'type',
|
|
13746
|
+
'drag.drop' | 'clipboard.paste'
|
|
13747
|
+
>
|
|
13748
|
+
| InputBehaviorEvent_2
|
|
13456
13749
|
})
|
|
13457
13750
|
| {
|
|
13458
13751
|
type: 'serialization.success'
|
|
@@ -13541,7 +13834,7 @@ declare const editorMachine: StateMachine<
|
|
|
13541
13834
|
value: Array<PortableTextBlock> | undefined
|
|
13542
13835
|
internalDrag?: {
|
|
13543
13836
|
ghost?: HTMLElement
|
|
13544
|
-
origin: EventPosition
|
|
13837
|
+
origin: Pick<EventPosition, 'selection'>
|
|
13545
13838
|
}
|
|
13546
13839
|
},
|
|
13547
13840
|
| {
|
|
@@ -13559,6 +13852,10 @@ declare const editorMachine: StateMachine<
|
|
|
13559
13852
|
| {
|
|
13560
13853
|
type: 'decorator.toggle'
|
|
13561
13854
|
decorator: string
|
|
13855
|
+
offsets?: {
|
|
13856
|
+
anchor: BlockOffset_2
|
|
13857
|
+
focus: BlockOffset_2
|
|
13858
|
+
}
|
|
13562
13859
|
},
|
|
13563
13860
|
| {
|
|
13564
13861
|
type: 'annotation.add'
|
|
@@ -13618,6 +13915,10 @@ declare const editorMachine: StateMachine<
|
|
|
13618
13915
|
| {
|
|
13619
13916
|
type: 'decorator.toggle'
|
|
13620
13917
|
decorator: string
|
|
13918
|
+
offsets?: {
|
|
13919
|
+
anchor: BlockOffset_2
|
|
13920
|
+
focus: BlockOffset_2
|
|
13921
|
+
}
|
|
13621
13922
|
}
|
|
13622
13923
|
| {
|
|
13623
13924
|
type: 'delete'
|
|
@@ -13762,22 +14063,26 @@ declare const editorMachine: StateMachine<
|
|
|
13762
14063
|
mimeType: `${string}/${string}`
|
|
13763
14064
|
reason: string
|
|
13764
14065
|
} & {
|
|
13765
|
-
originEvent:
|
|
13766
|
-
|
|
13767
|
-
|
|
13768
|
-
|
|
13769
|
-
|
|
14066
|
+
originEvent:
|
|
14067
|
+
| PickFromUnion_2<
|
|
14068
|
+
NativeBehaviorEvent,
|
|
14069
|
+
'type',
|
|
14070
|
+
'drag.drop' | 'clipboard.paste'
|
|
14071
|
+
>
|
|
14072
|
+
| InputBehaviorEvent_2
|
|
13770
14073
|
})
|
|
13771
14074
|
| ({
|
|
13772
14075
|
type: 'deserialization.success'
|
|
13773
14076
|
data: Array<PortableTextBlock>
|
|
13774
14077
|
mimeType: `${string}/${string}`
|
|
13775
14078
|
} & {
|
|
13776
|
-
originEvent:
|
|
13777
|
-
|
|
13778
|
-
|
|
13779
|
-
|
|
13780
|
-
|
|
14079
|
+
originEvent:
|
|
14080
|
+
| PickFromUnion_2<
|
|
14081
|
+
NativeBehaviorEvent,
|
|
14082
|
+
'type',
|
|
14083
|
+
'drag.drop' | 'clipboard.paste'
|
|
14084
|
+
>
|
|
14085
|
+
| InputBehaviorEvent_2
|
|
13781
14086
|
})
|
|
13782
14087
|
| {
|
|
13783
14088
|
type: 'serialization.success'
|
|
@@ -13922,7 +14227,7 @@ declare const editorMachine: StateMachine<
|
|
|
13922
14227
|
}
|
|
13923
14228
|
| {
|
|
13924
14229
|
type: 'dragstart'
|
|
13925
|
-
origin: EventPosition
|
|
14230
|
+
origin: Pick<EventPosition, 'selection'>
|
|
13926
14231
|
ghost?: HTMLElement
|
|
13927
14232
|
}
|
|
13928
14233
|
| {
|
|
@@ -13994,6 +14299,10 @@ declare const editorMachine: StateMachine<
|
|
|
13994
14299
|
| {
|
|
13995
14300
|
type: 'decorator.toggle'
|
|
13996
14301
|
decorator: string
|
|
14302
|
+
offsets?: {
|
|
14303
|
+
anchor: BlockOffset_2
|
|
14304
|
+
focus: BlockOffset_2
|
|
14305
|
+
}
|
|
13997
14306
|
}
|
|
13998
14307
|
| {
|
|
13999
14308
|
type: 'delete'
|
|
@@ -14138,22 +14447,26 @@ declare const editorMachine: StateMachine<
|
|
|
14138
14447
|
mimeType: `${string}/${string}`
|
|
14139
14448
|
reason: string
|
|
14140
14449
|
} & {
|
|
14141
|
-
originEvent:
|
|
14142
|
-
|
|
14143
|
-
|
|
14144
|
-
|
|
14145
|
-
|
|
14450
|
+
originEvent:
|
|
14451
|
+
| PickFromUnion_2<
|
|
14452
|
+
NativeBehaviorEvent,
|
|
14453
|
+
'type',
|
|
14454
|
+
'drag.drop' | 'clipboard.paste'
|
|
14455
|
+
>
|
|
14456
|
+
| InputBehaviorEvent_2
|
|
14146
14457
|
})
|
|
14147
14458
|
| ({
|
|
14148
14459
|
type: 'deserialization.success'
|
|
14149
14460
|
data: Array<PortableTextBlock>
|
|
14150
14461
|
mimeType: `${string}/${string}`
|
|
14151
14462
|
} & {
|
|
14152
|
-
originEvent:
|
|
14153
|
-
|
|
14154
|
-
|
|
14155
|
-
|
|
14156
|
-
|
|
14463
|
+
originEvent:
|
|
14464
|
+
| PickFromUnion_2<
|
|
14465
|
+
NativeBehaviorEvent,
|
|
14466
|
+
'type',
|
|
14467
|
+
'drag.drop' | 'clipboard.paste'
|
|
14468
|
+
>
|
|
14469
|
+
| InputBehaviorEvent_2
|
|
14157
14470
|
})
|
|
14158
14471
|
| {
|
|
14159
14472
|
type: 'serialization.success'
|
|
@@ -14242,7 +14555,7 @@ declare const editorMachine: StateMachine<
|
|
|
14242
14555
|
value: Array<PortableTextBlock> | undefined
|
|
14243
14556
|
internalDrag?: {
|
|
14244
14557
|
ghost?: HTMLElement
|
|
14245
|
-
origin: EventPosition
|
|
14558
|
+
origin: Pick<EventPosition, 'selection'>
|
|
14246
14559
|
}
|
|
14247
14560
|
},
|
|
14248
14561
|
| {
|
|
@@ -14320,7 +14633,11 @@ declare const editorMachine: StateMachine<
|
|
|
14320
14633
|
| {
|
|
14321
14634
|
type: 'decorator.toggle'
|
|
14322
14635
|
decorator: string
|
|
14323
|
-
|
|
14636
|
+
offsets?: {
|
|
14637
|
+
anchor: BlockOffset_2
|
|
14638
|
+
focus: BlockOffset_2
|
|
14639
|
+
}
|
|
14640
|
+
}
|
|
14324
14641
|
| {
|
|
14325
14642
|
type: 'delete'
|
|
14326
14643
|
selection: NonNullable<EditorSelection>
|
|
@@ -14464,22 +14781,26 @@ declare const editorMachine: StateMachine<
|
|
|
14464
14781
|
mimeType: `${string}/${string}`
|
|
14465
14782
|
reason: string
|
|
14466
14783
|
} & {
|
|
14467
|
-
originEvent:
|
|
14468
|
-
|
|
14469
|
-
|
|
14470
|
-
|
|
14471
|
-
|
|
14784
|
+
originEvent:
|
|
14785
|
+
| PickFromUnion_2<
|
|
14786
|
+
NativeBehaviorEvent,
|
|
14787
|
+
'type',
|
|
14788
|
+
'drag.drop' | 'clipboard.paste'
|
|
14789
|
+
>
|
|
14790
|
+
| InputBehaviorEvent_2
|
|
14472
14791
|
})
|
|
14473
14792
|
| ({
|
|
14474
14793
|
type: 'deserialization.success'
|
|
14475
14794
|
data: Array<PortableTextBlock>
|
|
14476
14795
|
mimeType: `${string}/${string}`
|
|
14477
14796
|
} & {
|
|
14478
|
-
originEvent:
|
|
14479
|
-
|
|
14480
|
-
|
|
14481
|
-
|
|
14482
|
-
|
|
14797
|
+
originEvent:
|
|
14798
|
+
| PickFromUnion_2<
|
|
14799
|
+
NativeBehaviorEvent,
|
|
14800
|
+
'type',
|
|
14801
|
+
'drag.drop' | 'clipboard.paste'
|
|
14802
|
+
>
|
|
14803
|
+
| InputBehaviorEvent_2
|
|
14483
14804
|
})
|
|
14484
14805
|
| {
|
|
14485
14806
|
type: 'serialization.success'
|
|
@@ -14624,7 +14945,7 @@ declare const editorMachine: StateMachine<
|
|
|
14624
14945
|
}
|
|
14625
14946
|
| {
|
|
14626
14947
|
type: 'dragstart'
|
|
14627
|
-
origin: EventPosition
|
|
14948
|
+
origin: Pick<EventPosition, 'selection'>
|
|
14628
14949
|
ghost?: HTMLElement
|
|
14629
14950
|
}
|
|
14630
14951
|
| {
|
|
@@ -14696,6 +15017,10 @@ declare const editorMachine: StateMachine<
|
|
|
14696
15017
|
| {
|
|
14697
15018
|
type: 'decorator.toggle'
|
|
14698
15019
|
decorator: string
|
|
15020
|
+
offsets?: {
|
|
15021
|
+
anchor: BlockOffset_2
|
|
15022
|
+
focus: BlockOffset_2
|
|
15023
|
+
}
|
|
14699
15024
|
}
|
|
14700
15025
|
| {
|
|
14701
15026
|
type: 'delete'
|
|
@@ -14840,22 +15165,26 @@ declare const editorMachine: StateMachine<
|
|
|
14840
15165
|
mimeType: `${string}/${string}`
|
|
14841
15166
|
reason: string
|
|
14842
15167
|
} & {
|
|
14843
|
-
originEvent:
|
|
14844
|
-
|
|
14845
|
-
|
|
14846
|
-
|
|
14847
|
-
|
|
15168
|
+
originEvent:
|
|
15169
|
+
| PickFromUnion_2<
|
|
15170
|
+
NativeBehaviorEvent,
|
|
15171
|
+
'type',
|
|
15172
|
+
'drag.drop' | 'clipboard.paste'
|
|
15173
|
+
>
|
|
15174
|
+
| InputBehaviorEvent_2
|
|
14848
15175
|
})
|
|
14849
15176
|
| ({
|
|
14850
15177
|
type: 'deserialization.success'
|
|
14851
15178
|
data: Array<PortableTextBlock>
|
|
14852
15179
|
mimeType: `${string}/${string}`
|
|
14853
15180
|
} & {
|
|
14854
|
-
originEvent:
|
|
14855
|
-
|
|
14856
|
-
|
|
14857
|
-
|
|
14858
|
-
|
|
15181
|
+
originEvent:
|
|
15182
|
+
| PickFromUnion_2<
|
|
15183
|
+
NativeBehaviorEvent,
|
|
15184
|
+
'type',
|
|
15185
|
+
'drag.drop' | 'clipboard.paste'
|
|
15186
|
+
>
|
|
15187
|
+
| InputBehaviorEvent_2
|
|
14859
15188
|
})
|
|
14860
15189
|
| {
|
|
14861
15190
|
type: 'serialization.success'
|
|
@@ -14944,7 +15273,7 @@ declare const editorMachine: StateMachine<
|
|
|
14944
15273
|
value: Array<PortableTextBlock> | undefined
|
|
14945
15274
|
internalDrag?: {
|
|
14946
15275
|
ghost?: HTMLElement
|
|
14947
|
-
origin: EventPosition
|
|
15276
|
+
origin: Pick<EventPosition, 'selection'>
|
|
14948
15277
|
}
|
|
14949
15278
|
},
|
|
14950
15279
|
{
|
|
@@ -15008,6 +15337,10 @@ declare const editorMachine: StateMachine<
|
|
|
15008
15337
|
| {
|
|
15009
15338
|
type: 'decorator.toggle'
|
|
15010
15339
|
decorator: string
|
|
15340
|
+
offsets?: {
|
|
15341
|
+
anchor: BlockOffset_2
|
|
15342
|
+
focus: BlockOffset_2
|
|
15343
|
+
}
|
|
15011
15344
|
}
|
|
15012
15345
|
| {
|
|
15013
15346
|
type: 'delete'
|
|
@@ -15152,22 +15485,26 @@ declare const editorMachine: StateMachine<
|
|
|
15152
15485
|
mimeType: `${string}/${string}`
|
|
15153
15486
|
reason: string
|
|
15154
15487
|
} & {
|
|
15155
|
-
originEvent:
|
|
15156
|
-
|
|
15157
|
-
|
|
15158
|
-
|
|
15159
|
-
|
|
15488
|
+
originEvent:
|
|
15489
|
+
| PickFromUnion_2<
|
|
15490
|
+
NativeBehaviorEvent,
|
|
15491
|
+
'type',
|
|
15492
|
+
'drag.drop' | 'clipboard.paste'
|
|
15493
|
+
>
|
|
15494
|
+
| InputBehaviorEvent_2
|
|
15160
15495
|
})
|
|
15161
15496
|
| ({
|
|
15162
15497
|
type: 'deserialization.success'
|
|
15163
15498
|
data: Array<PortableTextBlock>
|
|
15164
15499
|
mimeType: `${string}/${string}`
|
|
15165
15500
|
} & {
|
|
15166
|
-
originEvent:
|
|
15167
|
-
|
|
15168
|
-
|
|
15169
|
-
|
|
15170
|
-
|
|
15501
|
+
originEvent:
|
|
15502
|
+
| PickFromUnion_2<
|
|
15503
|
+
NativeBehaviorEvent,
|
|
15504
|
+
'type',
|
|
15505
|
+
'drag.drop' | 'clipboard.paste'
|
|
15506
|
+
>
|
|
15507
|
+
| InputBehaviorEvent_2
|
|
15171
15508
|
})
|
|
15172
15509
|
| {
|
|
15173
15510
|
type: 'serialization.success'
|
|
@@ -15312,7 +15649,7 @@ declare const editorMachine: StateMachine<
|
|
|
15312
15649
|
}
|
|
15313
15650
|
| {
|
|
15314
15651
|
type: 'dragstart'
|
|
15315
|
-
origin: EventPosition
|
|
15652
|
+
origin: Pick<EventPosition, 'selection'>
|
|
15316
15653
|
ghost?: HTMLElement
|
|
15317
15654
|
}
|
|
15318
15655
|
| {
|
|
@@ -15384,6 +15721,10 @@ declare const editorMachine: StateMachine<
|
|
|
15384
15721
|
| {
|
|
15385
15722
|
type: 'decorator.toggle'
|
|
15386
15723
|
decorator: string
|
|
15724
|
+
offsets?: {
|
|
15725
|
+
anchor: BlockOffset_2
|
|
15726
|
+
focus: BlockOffset_2
|
|
15727
|
+
}
|
|
15387
15728
|
}
|
|
15388
15729
|
| {
|
|
15389
15730
|
type: 'delete'
|
|
@@ -15528,22 +15869,26 @@ declare const editorMachine: StateMachine<
|
|
|
15528
15869
|
mimeType: `${string}/${string}`
|
|
15529
15870
|
reason: string
|
|
15530
15871
|
} & {
|
|
15531
|
-
originEvent:
|
|
15532
|
-
|
|
15533
|
-
|
|
15534
|
-
|
|
15535
|
-
|
|
15872
|
+
originEvent:
|
|
15873
|
+
| PickFromUnion_2<
|
|
15874
|
+
NativeBehaviorEvent,
|
|
15875
|
+
'type',
|
|
15876
|
+
'drag.drop' | 'clipboard.paste'
|
|
15877
|
+
>
|
|
15878
|
+
| InputBehaviorEvent_2
|
|
15536
15879
|
})
|
|
15537
15880
|
| ({
|
|
15538
15881
|
type: 'deserialization.success'
|
|
15539
15882
|
data: Array<PortableTextBlock>
|
|
15540
15883
|
mimeType: `${string}/${string}`
|
|
15541
15884
|
} & {
|
|
15542
|
-
originEvent:
|
|
15543
|
-
|
|
15544
|
-
|
|
15545
|
-
|
|
15546
|
-
|
|
15885
|
+
originEvent:
|
|
15886
|
+
| PickFromUnion_2<
|
|
15887
|
+
NativeBehaviorEvent,
|
|
15888
|
+
'type',
|
|
15889
|
+
'drag.drop' | 'clipboard.paste'
|
|
15890
|
+
>
|
|
15891
|
+
| InputBehaviorEvent_2
|
|
15547
15892
|
})
|
|
15548
15893
|
| {
|
|
15549
15894
|
type: 'serialization.success'
|
|
@@ -15632,7 +15977,7 @@ declare const editorMachine: StateMachine<
|
|
|
15632
15977
|
value: Array<PortableTextBlock> | undefined
|
|
15633
15978
|
internalDrag?: {
|
|
15634
15979
|
ghost?: HTMLElement
|
|
15635
|
-
origin: EventPosition
|
|
15980
|
+
origin: Pick<EventPosition, 'selection'>
|
|
15636
15981
|
}
|
|
15637
15982
|
},
|
|
15638
15983
|
| {
|
|
@@ -15699,6 +16044,10 @@ declare const editorMachine: StateMachine<
|
|
|
15699
16044
|
| {
|
|
15700
16045
|
type: 'decorator.toggle'
|
|
15701
16046
|
decorator: string
|
|
16047
|
+
offsets?: {
|
|
16048
|
+
anchor: BlockOffset_2
|
|
16049
|
+
focus: BlockOffset_2
|
|
16050
|
+
}
|
|
15702
16051
|
}
|
|
15703
16052
|
| {
|
|
15704
16053
|
type: 'delete'
|
|
@@ -15843,22 +16192,26 @@ declare const editorMachine: StateMachine<
|
|
|
15843
16192
|
mimeType: `${string}/${string}`
|
|
15844
16193
|
reason: string
|
|
15845
16194
|
} & {
|
|
15846
|
-
originEvent:
|
|
15847
|
-
|
|
15848
|
-
|
|
15849
|
-
|
|
15850
|
-
|
|
16195
|
+
originEvent:
|
|
16196
|
+
| PickFromUnion_2<
|
|
16197
|
+
NativeBehaviorEvent,
|
|
16198
|
+
'type',
|
|
16199
|
+
'drag.drop' | 'clipboard.paste'
|
|
16200
|
+
>
|
|
16201
|
+
| InputBehaviorEvent_2
|
|
15851
16202
|
})
|
|
15852
16203
|
| ({
|
|
15853
16204
|
type: 'deserialization.success'
|
|
15854
16205
|
data: Array<PortableTextBlock>
|
|
15855
16206
|
mimeType: `${string}/${string}`
|
|
15856
16207
|
} & {
|
|
15857
|
-
originEvent:
|
|
15858
|
-
|
|
15859
|
-
|
|
15860
|
-
|
|
15861
|
-
|
|
16208
|
+
originEvent:
|
|
16209
|
+
| PickFromUnion_2<
|
|
16210
|
+
NativeBehaviorEvent,
|
|
16211
|
+
'type',
|
|
16212
|
+
'drag.drop' | 'clipboard.paste'
|
|
16213
|
+
>
|
|
16214
|
+
| InputBehaviorEvent_2
|
|
15862
16215
|
})
|
|
15863
16216
|
| {
|
|
15864
16217
|
type: 'serialization.success'
|
|
@@ -16003,7 +16356,7 @@ declare const editorMachine: StateMachine<
|
|
|
16003
16356
|
}
|
|
16004
16357
|
| {
|
|
16005
16358
|
type: 'dragstart'
|
|
16006
|
-
origin: EventPosition
|
|
16359
|
+
origin: Pick<EventPosition, 'selection'>
|
|
16007
16360
|
ghost?: HTMLElement
|
|
16008
16361
|
}
|
|
16009
16362
|
| {
|
|
@@ -16075,6 +16428,10 @@ declare const editorMachine: StateMachine<
|
|
|
16075
16428
|
| {
|
|
16076
16429
|
type: 'decorator.toggle'
|
|
16077
16430
|
decorator: string
|
|
16431
|
+
offsets?: {
|
|
16432
|
+
anchor: BlockOffset_2
|
|
16433
|
+
focus: BlockOffset_2
|
|
16434
|
+
}
|
|
16078
16435
|
}
|
|
16079
16436
|
| {
|
|
16080
16437
|
type: 'delete'
|
|
@@ -16219,22 +16576,26 @@ declare const editorMachine: StateMachine<
|
|
|
16219
16576
|
mimeType: `${string}/${string}`
|
|
16220
16577
|
reason: string
|
|
16221
16578
|
} & {
|
|
16222
|
-
originEvent:
|
|
16223
|
-
|
|
16224
|
-
|
|
16225
|
-
|
|
16226
|
-
|
|
16579
|
+
originEvent:
|
|
16580
|
+
| PickFromUnion_2<
|
|
16581
|
+
NativeBehaviorEvent,
|
|
16582
|
+
'type',
|
|
16583
|
+
'drag.drop' | 'clipboard.paste'
|
|
16584
|
+
>
|
|
16585
|
+
| InputBehaviorEvent_2
|
|
16227
16586
|
})
|
|
16228
16587
|
| ({
|
|
16229
16588
|
type: 'deserialization.success'
|
|
16230
16589
|
data: Array<PortableTextBlock>
|
|
16231
16590
|
mimeType: `${string}/${string}`
|
|
16232
16591
|
} & {
|
|
16233
|
-
originEvent:
|
|
16234
|
-
|
|
16235
|
-
|
|
16236
|
-
|
|
16237
|
-
|
|
16592
|
+
originEvent:
|
|
16593
|
+
| PickFromUnion_2<
|
|
16594
|
+
NativeBehaviorEvent,
|
|
16595
|
+
'type',
|
|
16596
|
+
'drag.drop' | 'clipboard.paste'
|
|
16597
|
+
>
|
|
16598
|
+
| InputBehaviorEvent_2
|
|
16238
16599
|
})
|
|
16239
16600
|
| {
|
|
16240
16601
|
type: 'serialization.success'
|
|
@@ -16323,7 +16684,7 @@ declare const editorMachine: StateMachine<
|
|
|
16323
16684
|
value: Array<PortableTextBlock> | undefined
|
|
16324
16685
|
internalDrag?: {
|
|
16325
16686
|
ghost?: HTMLElement
|
|
16326
|
-
origin: EventPosition
|
|
16687
|
+
origin: Pick<EventPosition, 'selection'>
|
|
16327
16688
|
}
|
|
16328
16689
|
},
|
|
16329
16690
|
| {
|
|
@@ -16443,6 +16804,10 @@ declare const editorMachine: StateMachine<
|
|
|
16443
16804
|
| {
|
|
16444
16805
|
type: 'decorator.toggle'
|
|
16445
16806
|
decorator: string
|
|
16807
|
+
offsets?: {
|
|
16808
|
+
anchor: BlockOffset_2
|
|
16809
|
+
focus: BlockOffset_2
|
|
16810
|
+
}
|
|
16446
16811
|
}
|
|
16447
16812
|
| {
|
|
16448
16813
|
type: 'delete'
|
|
@@ -16587,22 +16952,26 @@ declare const editorMachine: StateMachine<
|
|
|
16587
16952
|
mimeType: `${string}/${string}`
|
|
16588
16953
|
reason: string
|
|
16589
16954
|
} & {
|
|
16590
|
-
originEvent:
|
|
16591
|
-
|
|
16592
|
-
|
|
16593
|
-
|
|
16594
|
-
|
|
16955
|
+
originEvent:
|
|
16956
|
+
| PickFromUnion_2<
|
|
16957
|
+
NativeBehaviorEvent,
|
|
16958
|
+
'type',
|
|
16959
|
+
'drag.drop' | 'clipboard.paste'
|
|
16960
|
+
>
|
|
16961
|
+
| InputBehaviorEvent_2
|
|
16595
16962
|
})
|
|
16596
16963
|
| ({
|
|
16597
16964
|
type: 'deserialization.success'
|
|
16598
16965
|
data: Array<PortableTextBlock>
|
|
16599
16966
|
mimeType: `${string}/${string}`
|
|
16600
16967
|
} & {
|
|
16601
|
-
originEvent:
|
|
16602
|
-
|
|
16603
|
-
|
|
16604
|
-
|
|
16605
|
-
|
|
16968
|
+
originEvent:
|
|
16969
|
+
| PickFromUnion_2<
|
|
16970
|
+
NativeBehaviorEvent,
|
|
16971
|
+
'type',
|
|
16972
|
+
'drag.drop' | 'clipboard.paste'
|
|
16973
|
+
>
|
|
16974
|
+
| InputBehaviorEvent_2
|
|
16606
16975
|
})
|
|
16607
16976
|
| {
|
|
16608
16977
|
type: 'serialization.success'
|
|
@@ -16747,7 +17116,7 @@ declare const editorMachine: StateMachine<
|
|
|
16747
17116
|
}
|
|
16748
17117
|
| {
|
|
16749
17118
|
type: 'dragstart'
|
|
16750
|
-
origin: EventPosition
|
|
17119
|
+
origin: Pick<EventPosition, 'selection'>
|
|
16751
17120
|
ghost?: HTMLElement
|
|
16752
17121
|
}
|
|
16753
17122
|
| {
|
|
@@ -16819,6 +17188,10 @@ declare const editorMachine: StateMachine<
|
|
|
16819
17188
|
| {
|
|
16820
17189
|
type: 'decorator.toggle'
|
|
16821
17190
|
decorator: string
|
|
17191
|
+
offsets?: {
|
|
17192
|
+
anchor: BlockOffset_2
|
|
17193
|
+
focus: BlockOffset_2
|
|
17194
|
+
}
|
|
16822
17195
|
}
|
|
16823
17196
|
| {
|
|
16824
17197
|
type: 'delete'
|
|
@@ -16963,22 +17336,26 @@ declare const editorMachine: StateMachine<
|
|
|
16963
17336
|
mimeType: `${string}/${string}`
|
|
16964
17337
|
reason: string
|
|
16965
17338
|
} & {
|
|
16966
|
-
originEvent:
|
|
16967
|
-
|
|
16968
|
-
|
|
16969
|
-
|
|
16970
|
-
|
|
17339
|
+
originEvent:
|
|
17340
|
+
| PickFromUnion_2<
|
|
17341
|
+
NativeBehaviorEvent,
|
|
17342
|
+
'type',
|
|
17343
|
+
'drag.drop' | 'clipboard.paste'
|
|
17344
|
+
>
|
|
17345
|
+
| InputBehaviorEvent_2
|
|
16971
17346
|
})
|
|
16972
17347
|
| ({
|
|
16973
17348
|
type: 'deserialization.success'
|
|
16974
17349
|
data: Array<PortableTextBlock>
|
|
16975
17350
|
mimeType: `${string}/${string}`
|
|
16976
17351
|
} & {
|
|
16977
|
-
originEvent:
|
|
16978
|
-
|
|
16979
|
-
|
|
16980
|
-
|
|
16981
|
-
|
|
17352
|
+
originEvent:
|
|
17353
|
+
| PickFromUnion_2<
|
|
17354
|
+
NativeBehaviorEvent,
|
|
17355
|
+
'type',
|
|
17356
|
+
'drag.drop' | 'clipboard.paste'
|
|
17357
|
+
>
|
|
17358
|
+
| InputBehaviorEvent_2
|
|
16982
17359
|
})
|
|
16983
17360
|
| {
|
|
16984
17361
|
type: 'serialization.success'
|
|
@@ -17067,7 +17444,7 @@ declare const editorMachine: StateMachine<
|
|
|
17067
17444
|
value: Array<PortableTextBlock> | undefined
|
|
17068
17445
|
internalDrag?: {
|
|
17069
17446
|
ghost?: HTMLElement
|
|
17070
|
-
origin: EventPosition
|
|
17447
|
+
origin: Pick<EventPosition, 'selection'>
|
|
17071
17448
|
}
|
|
17072
17449
|
},
|
|
17073
17450
|
| {
|
|
@@ -17140,6 +17517,10 @@ declare const editorMachine: StateMachine<
|
|
|
17140
17517
|
| {
|
|
17141
17518
|
type: 'decorator.toggle'
|
|
17142
17519
|
decorator: string
|
|
17520
|
+
offsets?: {
|
|
17521
|
+
anchor: BlockOffset_2
|
|
17522
|
+
focus: BlockOffset_2
|
|
17523
|
+
}
|
|
17143
17524
|
}
|
|
17144
17525
|
| {
|
|
17145
17526
|
type: 'delete'
|
|
@@ -17284,22 +17665,26 @@ declare const editorMachine: StateMachine<
|
|
|
17284
17665
|
mimeType: `${string}/${string}`
|
|
17285
17666
|
reason: string
|
|
17286
17667
|
} & {
|
|
17287
|
-
originEvent:
|
|
17288
|
-
|
|
17289
|
-
|
|
17290
|
-
|
|
17291
|
-
|
|
17668
|
+
originEvent:
|
|
17669
|
+
| PickFromUnion_2<
|
|
17670
|
+
NativeBehaviorEvent,
|
|
17671
|
+
'type',
|
|
17672
|
+
'drag.drop' | 'clipboard.paste'
|
|
17673
|
+
>
|
|
17674
|
+
| InputBehaviorEvent_2
|
|
17292
17675
|
})
|
|
17293
17676
|
| ({
|
|
17294
17677
|
type: 'deserialization.success'
|
|
17295
17678
|
data: Array<PortableTextBlock>
|
|
17296
17679
|
mimeType: `${string}/${string}`
|
|
17297
17680
|
} & {
|
|
17298
|
-
originEvent:
|
|
17299
|
-
|
|
17300
|
-
|
|
17301
|
-
|
|
17302
|
-
|
|
17681
|
+
originEvent:
|
|
17682
|
+
| PickFromUnion_2<
|
|
17683
|
+
NativeBehaviorEvent,
|
|
17684
|
+
'type',
|
|
17685
|
+
'drag.drop' | 'clipboard.paste'
|
|
17686
|
+
>
|
|
17687
|
+
| InputBehaviorEvent_2
|
|
17303
17688
|
})
|
|
17304
17689
|
| {
|
|
17305
17690
|
type: 'serialization.success'
|
|
@@ -17444,7 +17829,7 @@ declare const editorMachine: StateMachine<
|
|
|
17444
17829
|
}
|
|
17445
17830
|
| {
|
|
17446
17831
|
type: 'dragstart'
|
|
17447
|
-
origin: EventPosition
|
|
17832
|
+
origin: Pick<EventPosition, 'selection'>
|
|
17448
17833
|
ghost?: HTMLElement
|
|
17449
17834
|
}
|
|
17450
17835
|
| {
|
|
@@ -17516,6 +17901,10 @@ declare const editorMachine: StateMachine<
|
|
|
17516
17901
|
| {
|
|
17517
17902
|
type: 'decorator.toggle'
|
|
17518
17903
|
decorator: string
|
|
17904
|
+
offsets?: {
|
|
17905
|
+
anchor: BlockOffset_2
|
|
17906
|
+
focus: BlockOffset_2
|
|
17907
|
+
}
|
|
17519
17908
|
}
|
|
17520
17909
|
| {
|
|
17521
17910
|
type: 'delete'
|
|
@@ -17660,22 +18049,26 @@ declare const editorMachine: StateMachine<
|
|
|
17660
18049
|
mimeType: `${string}/${string}`
|
|
17661
18050
|
reason: string
|
|
17662
18051
|
} & {
|
|
17663
|
-
originEvent:
|
|
17664
|
-
|
|
17665
|
-
|
|
17666
|
-
|
|
17667
|
-
|
|
18052
|
+
originEvent:
|
|
18053
|
+
| PickFromUnion_2<
|
|
18054
|
+
NativeBehaviorEvent,
|
|
18055
|
+
'type',
|
|
18056
|
+
'drag.drop' | 'clipboard.paste'
|
|
18057
|
+
>
|
|
18058
|
+
| InputBehaviorEvent_2
|
|
17668
18059
|
})
|
|
17669
18060
|
| ({
|
|
17670
18061
|
type: 'deserialization.success'
|
|
17671
18062
|
data: Array<PortableTextBlock>
|
|
17672
18063
|
mimeType: `${string}/${string}`
|
|
17673
18064
|
} & {
|
|
17674
|
-
originEvent:
|
|
17675
|
-
|
|
17676
|
-
|
|
17677
|
-
|
|
17678
|
-
|
|
18065
|
+
originEvent:
|
|
18066
|
+
| PickFromUnion_2<
|
|
18067
|
+
NativeBehaviorEvent,
|
|
18068
|
+
'type',
|
|
18069
|
+
'drag.drop' | 'clipboard.paste'
|
|
18070
|
+
>
|
|
18071
|
+
| InputBehaviorEvent_2
|
|
17679
18072
|
})
|
|
17680
18073
|
| {
|
|
17681
18074
|
type: 'serialization.success'
|
|
@@ -17764,7 +18157,7 @@ declare const editorMachine: StateMachine<
|
|
|
17764
18157
|
value: Array<PortableTextBlock> | undefined
|
|
17765
18158
|
internalDrag?: {
|
|
17766
18159
|
ghost?: HTMLElement
|
|
17767
|
-
origin: EventPosition
|
|
18160
|
+
origin: Pick<EventPosition, 'selection'>
|
|
17768
18161
|
}
|
|
17769
18162
|
},
|
|
17770
18163
|
| {
|
|
@@ -17838,6 +18231,10 @@ declare const editorMachine: StateMachine<
|
|
|
17838
18231
|
| {
|
|
17839
18232
|
type: 'decorator.toggle'
|
|
17840
18233
|
decorator: string
|
|
18234
|
+
offsets?: {
|
|
18235
|
+
anchor: BlockOffset_2
|
|
18236
|
+
focus: BlockOffset_2
|
|
18237
|
+
}
|
|
17841
18238
|
}
|
|
17842
18239
|
| {
|
|
17843
18240
|
type: 'delete'
|
|
@@ -17982,22 +18379,26 @@ declare const editorMachine: StateMachine<
|
|
|
17982
18379
|
mimeType: `${string}/${string}`
|
|
17983
18380
|
reason: string
|
|
17984
18381
|
} & {
|
|
17985
|
-
originEvent:
|
|
17986
|
-
|
|
17987
|
-
|
|
17988
|
-
|
|
17989
|
-
|
|
18382
|
+
originEvent:
|
|
18383
|
+
| PickFromUnion_2<
|
|
18384
|
+
NativeBehaviorEvent,
|
|
18385
|
+
'type',
|
|
18386
|
+
'drag.drop' | 'clipboard.paste'
|
|
18387
|
+
>
|
|
18388
|
+
| InputBehaviorEvent_2
|
|
17990
18389
|
})
|
|
17991
18390
|
| ({
|
|
17992
18391
|
type: 'deserialization.success'
|
|
17993
18392
|
data: Array<PortableTextBlock>
|
|
17994
18393
|
mimeType: `${string}/${string}`
|
|
17995
18394
|
} & {
|
|
17996
|
-
originEvent:
|
|
17997
|
-
|
|
17998
|
-
|
|
17999
|
-
|
|
18000
|
-
|
|
18395
|
+
originEvent:
|
|
18396
|
+
| PickFromUnion_2<
|
|
18397
|
+
NativeBehaviorEvent,
|
|
18398
|
+
'type',
|
|
18399
|
+
'drag.drop' | 'clipboard.paste'
|
|
18400
|
+
>
|
|
18401
|
+
| InputBehaviorEvent_2
|
|
18001
18402
|
})
|
|
18002
18403
|
| {
|
|
18003
18404
|
type: 'serialization.success'
|
|
@@ -18142,7 +18543,7 @@ declare const editorMachine: StateMachine<
|
|
|
18142
18543
|
}
|
|
18143
18544
|
| {
|
|
18144
18545
|
type: 'dragstart'
|
|
18145
|
-
origin: EventPosition
|
|
18546
|
+
origin: Pick<EventPosition, 'selection'>
|
|
18146
18547
|
ghost?: HTMLElement
|
|
18147
18548
|
}
|
|
18148
18549
|
| {
|
|
@@ -18214,6 +18615,10 @@ declare const editorMachine: StateMachine<
|
|
|
18214
18615
|
| {
|
|
18215
18616
|
type: 'decorator.toggle'
|
|
18216
18617
|
decorator: string
|
|
18618
|
+
offsets?: {
|
|
18619
|
+
anchor: BlockOffset_2
|
|
18620
|
+
focus: BlockOffset_2
|
|
18621
|
+
}
|
|
18217
18622
|
}
|
|
18218
18623
|
| {
|
|
18219
18624
|
type: 'delete'
|
|
@@ -18358,22 +18763,26 @@ declare const editorMachine: StateMachine<
|
|
|
18358
18763
|
mimeType: `${string}/${string}`
|
|
18359
18764
|
reason: string
|
|
18360
18765
|
} & {
|
|
18361
|
-
originEvent:
|
|
18362
|
-
|
|
18363
|
-
|
|
18364
|
-
|
|
18365
|
-
|
|
18766
|
+
originEvent:
|
|
18767
|
+
| PickFromUnion_2<
|
|
18768
|
+
NativeBehaviorEvent,
|
|
18769
|
+
'type',
|
|
18770
|
+
'drag.drop' | 'clipboard.paste'
|
|
18771
|
+
>
|
|
18772
|
+
| InputBehaviorEvent_2
|
|
18366
18773
|
})
|
|
18367
18774
|
| ({
|
|
18368
18775
|
type: 'deserialization.success'
|
|
18369
18776
|
data: Array<PortableTextBlock>
|
|
18370
18777
|
mimeType: `${string}/${string}`
|
|
18371
18778
|
} & {
|
|
18372
|
-
originEvent:
|
|
18373
|
-
|
|
18374
|
-
|
|
18375
|
-
|
|
18376
|
-
|
|
18779
|
+
originEvent:
|
|
18780
|
+
| PickFromUnion_2<
|
|
18781
|
+
NativeBehaviorEvent,
|
|
18782
|
+
'type',
|
|
18783
|
+
'drag.drop' | 'clipboard.paste'
|
|
18784
|
+
>
|
|
18785
|
+
| InputBehaviorEvent_2
|
|
18377
18786
|
})
|
|
18378
18787
|
| {
|
|
18379
18788
|
type: 'serialization.success'
|
|
@@ -18462,7 +18871,7 @@ declare const editorMachine: StateMachine<
|
|
|
18462
18871
|
value: Array<PortableTextBlock> | undefined
|
|
18463
18872
|
internalDrag?: {
|
|
18464
18873
|
ghost?: HTMLElement
|
|
18465
|
-
origin: EventPosition
|
|
18874
|
+
origin: Pick<EventPosition, 'selection'>
|
|
18466
18875
|
}
|
|
18467
18876
|
},
|
|
18468
18877
|
{
|
|
@@ -18527,6 +18936,10 @@ declare const editorMachine: StateMachine<
|
|
|
18527
18936
|
| {
|
|
18528
18937
|
type: 'decorator.toggle'
|
|
18529
18938
|
decorator: string
|
|
18939
|
+
offsets?: {
|
|
18940
|
+
anchor: BlockOffset_2
|
|
18941
|
+
focus: BlockOffset_2
|
|
18942
|
+
}
|
|
18530
18943
|
}
|
|
18531
18944
|
| {
|
|
18532
18945
|
type: 'delete'
|
|
@@ -18671,22 +19084,26 @@ declare const editorMachine: StateMachine<
|
|
|
18671
19084
|
mimeType: `${string}/${string}`
|
|
18672
19085
|
reason: string
|
|
18673
19086
|
} & {
|
|
18674
|
-
originEvent:
|
|
18675
|
-
|
|
18676
|
-
|
|
18677
|
-
|
|
18678
|
-
|
|
19087
|
+
originEvent:
|
|
19088
|
+
| PickFromUnion_2<
|
|
19089
|
+
NativeBehaviorEvent,
|
|
19090
|
+
'type',
|
|
19091
|
+
'drag.drop' | 'clipboard.paste'
|
|
19092
|
+
>
|
|
19093
|
+
| InputBehaviorEvent_2
|
|
18679
19094
|
})
|
|
18680
19095
|
| ({
|
|
18681
19096
|
type: 'deserialization.success'
|
|
18682
19097
|
data: Array<PortableTextBlock>
|
|
18683
19098
|
mimeType: `${string}/${string}`
|
|
18684
19099
|
} & {
|
|
18685
|
-
originEvent:
|
|
18686
|
-
|
|
18687
|
-
|
|
18688
|
-
|
|
18689
|
-
|
|
19100
|
+
originEvent:
|
|
19101
|
+
| PickFromUnion_2<
|
|
19102
|
+
NativeBehaviorEvent,
|
|
19103
|
+
'type',
|
|
19104
|
+
'drag.drop' | 'clipboard.paste'
|
|
19105
|
+
>
|
|
19106
|
+
| InputBehaviorEvent_2
|
|
18690
19107
|
})
|
|
18691
19108
|
| {
|
|
18692
19109
|
type: 'serialization.success'
|
|
@@ -18831,7 +19248,7 @@ declare const editorMachine: StateMachine<
|
|
|
18831
19248
|
}
|
|
18832
19249
|
| {
|
|
18833
19250
|
type: 'dragstart'
|
|
18834
|
-
origin: EventPosition
|
|
19251
|
+
origin: Pick<EventPosition, 'selection'>
|
|
18835
19252
|
ghost?: HTMLElement
|
|
18836
19253
|
}
|
|
18837
19254
|
| {
|
|
@@ -18903,6 +19320,10 @@ declare const editorMachine: StateMachine<
|
|
|
18903
19320
|
| {
|
|
18904
19321
|
type: 'decorator.toggle'
|
|
18905
19322
|
decorator: string
|
|
19323
|
+
offsets?: {
|
|
19324
|
+
anchor: BlockOffset_2
|
|
19325
|
+
focus: BlockOffset_2
|
|
19326
|
+
}
|
|
18906
19327
|
}
|
|
18907
19328
|
| {
|
|
18908
19329
|
type: 'delete'
|
|
@@ -19047,22 +19468,26 @@ declare const editorMachine: StateMachine<
|
|
|
19047
19468
|
mimeType: `${string}/${string}`
|
|
19048
19469
|
reason: string
|
|
19049
19470
|
} & {
|
|
19050
|
-
originEvent:
|
|
19051
|
-
|
|
19052
|
-
|
|
19053
|
-
|
|
19054
|
-
|
|
19471
|
+
originEvent:
|
|
19472
|
+
| PickFromUnion_2<
|
|
19473
|
+
NativeBehaviorEvent,
|
|
19474
|
+
'type',
|
|
19475
|
+
'drag.drop' | 'clipboard.paste'
|
|
19476
|
+
>
|
|
19477
|
+
| InputBehaviorEvent_2
|
|
19055
19478
|
})
|
|
19056
19479
|
| ({
|
|
19057
19480
|
type: 'deserialization.success'
|
|
19058
19481
|
data: Array<PortableTextBlock>
|
|
19059
19482
|
mimeType: `${string}/${string}`
|
|
19060
19483
|
} & {
|
|
19061
|
-
originEvent:
|
|
19062
|
-
|
|
19063
|
-
|
|
19064
|
-
|
|
19065
|
-
|
|
19484
|
+
originEvent:
|
|
19485
|
+
| PickFromUnion_2<
|
|
19486
|
+
NativeBehaviorEvent,
|
|
19487
|
+
'type',
|
|
19488
|
+
'drag.drop' | 'clipboard.paste'
|
|
19489
|
+
>
|
|
19490
|
+
| InputBehaviorEvent_2
|
|
19066
19491
|
})
|
|
19067
19492
|
| {
|
|
19068
19493
|
type: 'serialization.success'
|
|
@@ -19151,7 +19576,7 @@ declare const editorMachine: StateMachine<
|
|
|
19151
19576
|
value: Array<PortableTextBlock> | undefined
|
|
19152
19577
|
internalDrag?: {
|
|
19153
19578
|
ghost?: HTMLElement
|
|
19154
|
-
origin: EventPosition
|
|
19579
|
+
origin: Pick<EventPosition, 'selection'>
|
|
19155
19580
|
}
|
|
19156
19581
|
},
|
|
19157
19582
|
| {
|
|
@@ -19220,6 +19645,10 @@ declare const editorMachine: StateMachine<
|
|
|
19220
19645
|
| {
|
|
19221
19646
|
type: 'decorator.toggle'
|
|
19222
19647
|
decorator: string
|
|
19648
|
+
offsets?: {
|
|
19649
|
+
anchor: BlockOffset_2
|
|
19650
|
+
focus: BlockOffset_2
|
|
19651
|
+
}
|
|
19223
19652
|
}
|
|
19224
19653
|
| {
|
|
19225
19654
|
type: 'delete'
|
|
@@ -19364,22 +19793,26 @@ declare const editorMachine: StateMachine<
|
|
|
19364
19793
|
mimeType: `${string}/${string}`
|
|
19365
19794
|
reason: string
|
|
19366
19795
|
} & {
|
|
19367
|
-
originEvent:
|
|
19368
|
-
|
|
19369
|
-
|
|
19370
|
-
|
|
19371
|
-
|
|
19796
|
+
originEvent:
|
|
19797
|
+
| PickFromUnion_2<
|
|
19798
|
+
NativeBehaviorEvent,
|
|
19799
|
+
'type',
|
|
19800
|
+
'drag.drop' | 'clipboard.paste'
|
|
19801
|
+
>
|
|
19802
|
+
| InputBehaviorEvent_2
|
|
19372
19803
|
})
|
|
19373
19804
|
| ({
|
|
19374
19805
|
type: 'deserialization.success'
|
|
19375
19806
|
data: Array<PortableTextBlock>
|
|
19376
19807
|
mimeType: `${string}/${string}`
|
|
19377
19808
|
} & {
|
|
19378
|
-
originEvent:
|
|
19379
|
-
|
|
19380
|
-
|
|
19381
|
-
|
|
19382
|
-
|
|
19809
|
+
originEvent:
|
|
19810
|
+
| PickFromUnion_2<
|
|
19811
|
+
NativeBehaviorEvent,
|
|
19812
|
+
'type',
|
|
19813
|
+
'drag.drop' | 'clipboard.paste'
|
|
19814
|
+
>
|
|
19815
|
+
| InputBehaviorEvent_2
|
|
19383
19816
|
})
|
|
19384
19817
|
| {
|
|
19385
19818
|
type: 'serialization.success'
|
|
@@ -19524,7 +19957,7 @@ declare const editorMachine: StateMachine<
|
|
|
19524
19957
|
}
|
|
19525
19958
|
| {
|
|
19526
19959
|
type: 'dragstart'
|
|
19527
|
-
origin: EventPosition
|
|
19960
|
+
origin: Pick<EventPosition, 'selection'>
|
|
19528
19961
|
ghost?: HTMLElement
|
|
19529
19962
|
}
|
|
19530
19963
|
| {
|
|
@@ -19596,6 +20029,10 @@ declare const editorMachine: StateMachine<
|
|
|
19596
20029
|
| {
|
|
19597
20030
|
type: 'decorator.toggle'
|
|
19598
20031
|
decorator: string
|
|
20032
|
+
offsets?: {
|
|
20033
|
+
anchor: BlockOffset_2
|
|
20034
|
+
focus: BlockOffset_2
|
|
20035
|
+
}
|
|
19599
20036
|
}
|
|
19600
20037
|
| {
|
|
19601
20038
|
type: 'delete'
|
|
@@ -19740,22 +20177,26 @@ declare const editorMachine: StateMachine<
|
|
|
19740
20177
|
mimeType: `${string}/${string}`
|
|
19741
20178
|
reason: string
|
|
19742
20179
|
} & {
|
|
19743
|
-
originEvent:
|
|
19744
|
-
|
|
19745
|
-
|
|
19746
|
-
|
|
19747
|
-
|
|
20180
|
+
originEvent:
|
|
20181
|
+
| PickFromUnion_2<
|
|
20182
|
+
NativeBehaviorEvent,
|
|
20183
|
+
'type',
|
|
20184
|
+
'drag.drop' | 'clipboard.paste'
|
|
20185
|
+
>
|
|
20186
|
+
| InputBehaviorEvent_2
|
|
19748
20187
|
})
|
|
19749
20188
|
| ({
|
|
19750
20189
|
type: 'deserialization.success'
|
|
19751
20190
|
data: Array<PortableTextBlock>
|
|
19752
20191
|
mimeType: `${string}/${string}`
|
|
19753
20192
|
} & {
|
|
19754
|
-
originEvent:
|
|
19755
|
-
|
|
19756
|
-
|
|
19757
|
-
|
|
19758
|
-
|
|
20193
|
+
originEvent:
|
|
20194
|
+
| PickFromUnion_2<
|
|
20195
|
+
NativeBehaviorEvent,
|
|
20196
|
+
'type',
|
|
20197
|
+
'drag.drop' | 'clipboard.paste'
|
|
20198
|
+
>
|
|
20199
|
+
| InputBehaviorEvent_2
|
|
19759
20200
|
})
|
|
19760
20201
|
| {
|
|
19761
20202
|
type: 'serialization.success'
|
|
@@ -19844,7 +20285,7 @@ declare const editorMachine: StateMachine<
|
|
|
19844
20285
|
value: Array<PortableTextBlock> | undefined
|
|
19845
20286
|
internalDrag?: {
|
|
19846
20287
|
ghost?: HTMLElement
|
|
19847
|
-
origin: EventPosition
|
|
20288
|
+
origin: Pick<EventPosition, 'selection'>
|
|
19848
20289
|
}
|
|
19849
20290
|
},
|
|
19850
20291
|
| {
|
|
@@ -19917,6 +20358,10 @@ declare const editorMachine: StateMachine<
|
|
|
19917
20358
|
| {
|
|
19918
20359
|
type: 'decorator.toggle'
|
|
19919
20360
|
decorator: string
|
|
20361
|
+
offsets?: {
|
|
20362
|
+
anchor: BlockOffset_2
|
|
20363
|
+
focus: BlockOffset_2
|
|
20364
|
+
}
|
|
19920
20365
|
}
|
|
19921
20366
|
| {
|
|
19922
20367
|
type: 'delete'
|
|
@@ -20061,22 +20506,26 @@ declare const editorMachine: StateMachine<
|
|
|
20061
20506
|
mimeType: `${string}/${string}`
|
|
20062
20507
|
reason: string
|
|
20063
20508
|
} & {
|
|
20064
|
-
originEvent:
|
|
20065
|
-
|
|
20066
|
-
|
|
20067
|
-
|
|
20068
|
-
|
|
20509
|
+
originEvent:
|
|
20510
|
+
| PickFromUnion_2<
|
|
20511
|
+
NativeBehaviorEvent,
|
|
20512
|
+
'type',
|
|
20513
|
+
'drag.drop' | 'clipboard.paste'
|
|
20514
|
+
>
|
|
20515
|
+
| InputBehaviorEvent_2
|
|
20069
20516
|
})
|
|
20070
20517
|
| ({
|
|
20071
20518
|
type: 'deserialization.success'
|
|
20072
20519
|
data: Array<PortableTextBlock>
|
|
20073
20520
|
mimeType: `${string}/${string}`
|
|
20074
20521
|
} & {
|
|
20075
|
-
originEvent:
|
|
20076
|
-
|
|
20077
|
-
|
|
20078
|
-
|
|
20079
|
-
|
|
20522
|
+
originEvent:
|
|
20523
|
+
| PickFromUnion_2<
|
|
20524
|
+
NativeBehaviorEvent,
|
|
20525
|
+
'type',
|
|
20526
|
+
'drag.drop' | 'clipboard.paste'
|
|
20527
|
+
>
|
|
20528
|
+
| InputBehaviorEvent_2
|
|
20080
20529
|
})
|
|
20081
20530
|
| {
|
|
20082
20531
|
type: 'serialization.success'
|
|
@@ -20221,7 +20670,7 @@ declare const editorMachine: StateMachine<
|
|
|
20221
20670
|
}
|
|
20222
20671
|
| {
|
|
20223
20672
|
type: 'dragstart'
|
|
20224
|
-
origin: EventPosition
|
|
20673
|
+
origin: Pick<EventPosition, 'selection'>
|
|
20225
20674
|
ghost?: HTMLElement
|
|
20226
20675
|
}
|
|
20227
20676
|
| {
|
|
@@ -20293,6 +20742,10 @@ declare const editorMachine: StateMachine<
|
|
|
20293
20742
|
| {
|
|
20294
20743
|
type: 'decorator.toggle'
|
|
20295
20744
|
decorator: string
|
|
20745
|
+
offsets?: {
|
|
20746
|
+
anchor: BlockOffset_2
|
|
20747
|
+
focus: BlockOffset_2
|
|
20748
|
+
}
|
|
20296
20749
|
}
|
|
20297
20750
|
| {
|
|
20298
20751
|
type: 'delete'
|
|
@@ -20437,22 +20890,26 @@ declare const editorMachine: StateMachine<
|
|
|
20437
20890
|
mimeType: `${string}/${string}`
|
|
20438
20891
|
reason: string
|
|
20439
20892
|
} & {
|
|
20440
|
-
originEvent:
|
|
20441
|
-
|
|
20442
|
-
|
|
20443
|
-
|
|
20444
|
-
|
|
20893
|
+
originEvent:
|
|
20894
|
+
| PickFromUnion_2<
|
|
20895
|
+
NativeBehaviorEvent,
|
|
20896
|
+
'type',
|
|
20897
|
+
'drag.drop' | 'clipboard.paste'
|
|
20898
|
+
>
|
|
20899
|
+
| InputBehaviorEvent_2
|
|
20445
20900
|
})
|
|
20446
20901
|
| ({
|
|
20447
20902
|
type: 'deserialization.success'
|
|
20448
20903
|
data: Array<PortableTextBlock>
|
|
20449
20904
|
mimeType: `${string}/${string}`
|
|
20450
20905
|
} & {
|
|
20451
|
-
originEvent:
|
|
20452
|
-
|
|
20453
|
-
|
|
20454
|
-
|
|
20455
|
-
|
|
20906
|
+
originEvent:
|
|
20907
|
+
| PickFromUnion_2<
|
|
20908
|
+
NativeBehaviorEvent,
|
|
20909
|
+
'type',
|
|
20910
|
+
'drag.drop' | 'clipboard.paste'
|
|
20911
|
+
>
|
|
20912
|
+
| InputBehaviorEvent_2
|
|
20456
20913
|
})
|
|
20457
20914
|
| {
|
|
20458
20915
|
type: 'serialization.success'
|
|
@@ -20562,12 +21019,12 @@ declare const editorMachine: StateMachine<
|
|
|
20562
21019
|
value: Array<PortableTextBlock> | undefined
|
|
20563
21020
|
internalDrag?: {
|
|
20564
21021
|
ghost?: HTMLElement
|
|
20565
|
-
origin: EventPosition
|
|
21022
|
+
origin: Pick<EventPosition, 'selection'>
|
|
20566
21023
|
}
|
|
20567
21024
|
},
|
|
20568
21025
|
{
|
|
20569
21026
|
type: 'dragstart'
|
|
20570
|
-
origin: EventPosition
|
|
21027
|
+
origin: Pick<EventPosition, 'selection'>
|
|
20571
21028
|
ghost?: HTMLElement
|
|
20572
21029
|
},
|
|
20573
21030
|
| {
|
|
@@ -20628,6 +21085,10 @@ declare const editorMachine: StateMachine<
|
|
|
20628
21085
|
| {
|
|
20629
21086
|
type: 'decorator.toggle'
|
|
20630
21087
|
decorator: string
|
|
21088
|
+
offsets?: {
|
|
21089
|
+
anchor: BlockOffset_2
|
|
21090
|
+
focus: BlockOffset_2
|
|
21091
|
+
}
|
|
20631
21092
|
}
|
|
20632
21093
|
| {
|
|
20633
21094
|
type: 'delete'
|
|
@@ -20772,22 +21233,26 @@ declare const editorMachine: StateMachine<
|
|
|
20772
21233
|
mimeType: `${string}/${string}`
|
|
20773
21234
|
reason: string
|
|
20774
21235
|
} & {
|
|
20775
|
-
originEvent:
|
|
20776
|
-
|
|
20777
|
-
|
|
20778
|
-
|
|
20779
|
-
|
|
21236
|
+
originEvent:
|
|
21237
|
+
| PickFromUnion_2<
|
|
21238
|
+
NativeBehaviorEvent,
|
|
21239
|
+
'type',
|
|
21240
|
+
'drag.drop' | 'clipboard.paste'
|
|
21241
|
+
>
|
|
21242
|
+
| InputBehaviorEvent_2
|
|
20780
21243
|
})
|
|
20781
21244
|
| ({
|
|
20782
21245
|
type: 'deserialization.success'
|
|
20783
21246
|
data: Array<PortableTextBlock>
|
|
20784
21247
|
mimeType: `${string}/${string}`
|
|
20785
21248
|
} & {
|
|
20786
|
-
originEvent:
|
|
20787
|
-
|
|
20788
|
-
|
|
20789
|
-
|
|
20790
|
-
|
|
21249
|
+
originEvent:
|
|
21250
|
+
| PickFromUnion_2<
|
|
21251
|
+
NativeBehaviorEvent,
|
|
21252
|
+
'type',
|
|
21253
|
+
'drag.drop' | 'clipboard.paste'
|
|
21254
|
+
>
|
|
21255
|
+
| InputBehaviorEvent_2
|
|
20791
21256
|
})
|
|
20792
21257
|
| {
|
|
20793
21258
|
type: 'serialization.success'
|
|
@@ -20936,7 +21401,7 @@ declare const editorMachine: StateMachine<
|
|
|
20936
21401
|
}
|
|
20937
21402
|
| {
|
|
20938
21403
|
type: 'dragstart'
|
|
20939
|
-
origin: EventPosition
|
|
21404
|
+
origin: Pick<EventPosition, 'selection'>
|
|
20940
21405
|
ghost?: HTMLElement
|
|
20941
21406
|
}
|
|
20942
21407
|
| {
|
|
@@ -20974,7 +21439,7 @@ declare const editorMachine: StateMachine<
|
|
|
20974
21439
|
value: Array<PortableTextBlock> | undefined
|
|
20975
21440
|
internalDrag?: {
|
|
20976
21441
|
ghost?: HTMLElement
|
|
20977
|
-
origin: EventPosition
|
|
21442
|
+
origin: Pick<EventPosition, 'selection'>
|
|
20978
21443
|
}
|
|
20979
21444
|
},
|
|
20980
21445
|
| {
|
|
@@ -21035,6 +21500,10 @@ declare const editorMachine: StateMachine<
|
|
|
21035
21500
|
| {
|
|
21036
21501
|
type: 'decorator.toggle'
|
|
21037
21502
|
decorator: string
|
|
21503
|
+
offsets?: {
|
|
21504
|
+
anchor: BlockOffset_2
|
|
21505
|
+
focus: BlockOffset_2
|
|
21506
|
+
}
|
|
21038
21507
|
}
|
|
21039
21508
|
| {
|
|
21040
21509
|
type: 'delete'
|
|
@@ -21179,22 +21648,26 @@ declare const editorMachine: StateMachine<
|
|
|
21179
21648
|
mimeType: `${string}/${string}`
|
|
21180
21649
|
reason: string
|
|
21181
21650
|
} & {
|
|
21182
|
-
originEvent:
|
|
21183
|
-
|
|
21184
|
-
|
|
21185
|
-
|
|
21186
|
-
|
|
21651
|
+
originEvent:
|
|
21652
|
+
| PickFromUnion_2<
|
|
21653
|
+
NativeBehaviorEvent,
|
|
21654
|
+
'type',
|
|
21655
|
+
'drag.drop' | 'clipboard.paste'
|
|
21656
|
+
>
|
|
21657
|
+
| InputBehaviorEvent_2
|
|
21187
21658
|
})
|
|
21188
21659
|
| ({
|
|
21189
21660
|
type: 'deserialization.success'
|
|
21190
21661
|
data: Array<PortableTextBlock>
|
|
21191
21662
|
mimeType: `${string}/${string}`
|
|
21192
21663
|
} & {
|
|
21193
|
-
originEvent:
|
|
21194
|
-
|
|
21195
|
-
|
|
21196
|
-
|
|
21197
|
-
|
|
21664
|
+
originEvent:
|
|
21665
|
+
| PickFromUnion_2<
|
|
21666
|
+
NativeBehaviorEvent,
|
|
21667
|
+
'type',
|
|
21668
|
+
'drag.drop' | 'clipboard.paste'
|
|
21669
|
+
>
|
|
21670
|
+
| InputBehaviorEvent_2
|
|
21198
21671
|
})
|
|
21199
21672
|
| {
|
|
21200
21673
|
type: 'serialization.success'
|
|
@@ -21339,7 +21812,7 @@ declare const editorMachine: StateMachine<
|
|
|
21339
21812
|
}
|
|
21340
21813
|
| {
|
|
21341
21814
|
type: 'dragstart'
|
|
21342
|
-
origin: EventPosition
|
|
21815
|
+
origin: Pick<EventPosition, 'selection'>
|
|
21343
21816
|
ghost?: HTMLElement
|
|
21344
21817
|
}
|
|
21345
21818
|
| {
|
|
@@ -21406,6 +21879,10 @@ declare const editorMachine: StateMachine<
|
|
|
21406
21879
|
| {
|
|
21407
21880
|
type: 'decorator.toggle'
|
|
21408
21881
|
decorator: string
|
|
21882
|
+
offsets?: {
|
|
21883
|
+
anchor: BlockOffset_2
|
|
21884
|
+
focus: BlockOffset_2
|
|
21885
|
+
}
|
|
21409
21886
|
}
|
|
21410
21887
|
| {
|
|
21411
21888
|
type: 'delete'
|
|
@@ -21550,22 +22027,26 @@ declare const editorMachine: StateMachine<
|
|
|
21550
22027
|
mimeType: `${string}/${string}`
|
|
21551
22028
|
reason: string
|
|
21552
22029
|
} & {
|
|
21553
|
-
originEvent:
|
|
21554
|
-
|
|
21555
|
-
|
|
21556
|
-
|
|
21557
|
-
|
|
22030
|
+
originEvent:
|
|
22031
|
+
| PickFromUnion_2<
|
|
22032
|
+
NativeBehaviorEvent,
|
|
22033
|
+
'type',
|
|
22034
|
+
'drag.drop' | 'clipboard.paste'
|
|
22035
|
+
>
|
|
22036
|
+
| InputBehaviorEvent_2
|
|
21558
22037
|
})
|
|
21559
22038
|
| ({
|
|
21560
22039
|
type: 'deserialization.success'
|
|
21561
22040
|
data: Array<PortableTextBlock>
|
|
21562
22041
|
mimeType: `${string}/${string}`
|
|
21563
22042
|
} & {
|
|
21564
|
-
originEvent:
|
|
21565
|
-
|
|
21566
|
-
|
|
21567
|
-
|
|
21568
|
-
|
|
22043
|
+
originEvent:
|
|
22044
|
+
| PickFromUnion_2<
|
|
22045
|
+
NativeBehaviorEvent,
|
|
22046
|
+
'type',
|
|
22047
|
+
'drag.drop' | 'clipboard.paste'
|
|
22048
|
+
>
|
|
22049
|
+
| InputBehaviorEvent_2
|
|
21569
22050
|
})
|
|
21570
22051
|
| {
|
|
21571
22052
|
type: 'serialization.success'
|
|
@@ -21710,7 +22191,7 @@ declare const editorMachine: StateMachine<
|
|
|
21710
22191
|
}
|
|
21711
22192
|
| {
|
|
21712
22193
|
type: 'dragstart'
|
|
21713
|
-
origin: EventPosition
|
|
22194
|
+
origin: Pick<EventPosition, 'selection'>
|
|
21714
22195
|
ghost?: HTMLElement
|
|
21715
22196
|
}
|
|
21716
22197
|
| {
|
|
@@ -21733,7 +22214,7 @@ declare const editorMachine: StateMachine<
|
|
|
21733
22214
|
value: Array<PortableTextBlock> | undefined
|
|
21734
22215
|
internalDrag?: {
|
|
21735
22216
|
ghost?: HTMLElement
|
|
21736
|
-
origin: EventPosition
|
|
22217
|
+
origin: Pick<EventPosition, 'selection'>
|
|
21737
22218
|
}
|
|
21738
22219
|
},
|
|
21739
22220
|
| {
|
|
@@ -21794,6 +22275,10 @@ declare const editorMachine: StateMachine<
|
|
|
21794
22275
|
| {
|
|
21795
22276
|
type: 'decorator.toggle'
|
|
21796
22277
|
decorator: string
|
|
22278
|
+
offsets?: {
|
|
22279
|
+
anchor: BlockOffset_2
|
|
22280
|
+
focus: BlockOffset_2
|
|
22281
|
+
}
|
|
21797
22282
|
}
|
|
21798
22283
|
| {
|
|
21799
22284
|
type: 'delete'
|
|
@@ -21938,22 +22423,26 @@ declare const editorMachine: StateMachine<
|
|
|
21938
22423
|
mimeType: `${string}/${string}`
|
|
21939
22424
|
reason: string
|
|
21940
22425
|
} & {
|
|
21941
|
-
originEvent:
|
|
21942
|
-
|
|
21943
|
-
|
|
21944
|
-
|
|
21945
|
-
|
|
22426
|
+
originEvent:
|
|
22427
|
+
| PickFromUnion_2<
|
|
22428
|
+
NativeBehaviorEvent,
|
|
22429
|
+
'type',
|
|
22430
|
+
'drag.drop' | 'clipboard.paste'
|
|
22431
|
+
>
|
|
22432
|
+
| InputBehaviorEvent_2
|
|
21946
22433
|
})
|
|
21947
22434
|
| ({
|
|
21948
22435
|
type: 'deserialization.success'
|
|
21949
22436
|
data: Array<PortableTextBlock>
|
|
21950
22437
|
mimeType: `${string}/${string}`
|
|
21951
22438
|
} & {
|
|
21952
|
-
originEvent:
|
|
21953
|
-
|
|
21954
|
-
|
|
21955
|
-
|
|
21956
|
-
|
|
22439
|
+
originEvent:
|
|
22440
|
+
| PickFromUnion_2<
|
|
22441
|
+
NativeBehaviorEvent,
|
|
22442
|
+
'type',
|
|
22443
|
+
'drag.drop' | 'clipboard.paste'
|
|
22444
|
+
>
|
|
22445
|
+
| InputBehaviorEvent_2
|
|
21957
22446
|
})
|
|
21958
22447
|
| {
|
|
21959
22448
|
type: 'serialization.success'
|
|
@@ -22098,7 +22587,7 @@ declare const editorMachine: StateMachine<
|
|
|
22098
22587
|
}
|
|
22099
22588
|
| {
|
|
22100
22589
|
type: 'dragstart'
|
|
22101
|
-
origin: EventPosition
|
|
22590
|
+
origin: Pick<EventPosition, 'selection'>
|
|
22102
22591
|
ghost?: HTMLElement
|
|
22103
22592
|
}
|
|
22104
22593
|
| {
|
|
@@ -22165,6 +22654,10 @@ declare const editorMachine: StateMachine<
|
|
|
22165
22654
|
| {
|
|
22166
22655
|
type: 'decorator.toggle'
|
|
22167
22656
|
decorator: string
|
|
22657
|
+
offsets?: {
|
|
22658
|
+
anchor: BlockOffset_2
|
|
22659
|
+
focus: BlockOffset_2
|
|
22660
|
+
}
|
|
22168
22661
|
}
|
|
22169
22662
|
| {
|
|
22170
22663
|
type: 'delete'
|
|
@@ -22309,22 +22802,26 @@ declare const editorMachine: StateMachine<
|
|
|
22309
22802
|
mimeType: `${string}/${string}`
|
|
22310
22803
|
reason: string
|
|
22311
22804
|
} & {
|
|
22312
|
-
originEvent:
|
|
22313
|
-
|
|
22314
|
-
|
|
22315
|
-
|
|
22316
|
-
|
|
22805
|
+
originEvent:
|
|
22806
|
+
| PickFromUnion_2<
|
|
22807
|
+
NativeBehaviorEvent,
|
|
22808
|
+
'type',
|
|
22809
|
+
'drag.drop' | 'clipboard.paste'
|
|
22810
|
+
>
|
|
22811
|
+
| InputBehaviorEvent_2
|
|
22317
22812
|
})
|
|
22318
22813
|
| ({
|
|
22319
22814
|
type: 'deserialization.success'
|
|
22320
22815
|
data: Array<PortableTextBlock>
|
|
22321
22816
|
mimeType: `${string}/${string}`
|
|
22322
22817
|
} & {
|
|
22323
|
-
originEvent:
|
|
22324
|
-
|
|
22325
|
-
|
|
22326
|
-
|
|
22327
|
-
|
|
22818
|
+
originEvent:
|
|
22819
|
+
| PickFromUnion_2<
|
|
22820
|
+
NativeBehaviorEvent,
|
|
22821
|
+
'type',
|
|
22822
|
+
'drag.drop' | 'clipboard.paste'
|
|
22823
|
+
>
|
|
22824
|
+
| InputBehaviorEvent_2
|
|
22328
22825
|
})
|
|
22329
22826
|
| {
|
|
22330
22827
|
type: 'serialization.success'
|
|
@@ -22469,7 +22966,7 @@ declare const editorMachine: StateMachine<
|
|
|
22469
22966
|
}
|
|
22470
22967
|
| {
|
|
22471
22968
|
type: 'dragstart'
|
|
22472
|
-
origin: EventPosition
|
|
22969
|
+
origin: Pick<EventPosition, 'selection'>
|
|
22473
22970
|
ghost?: HTMLElement
|
|
22474
22971
|
}
|
|
22475
22972
|
| {
|
|
@@ -22608,7 +23105,7 @@ declare type EditorSnapshot = {
|
|
|
22608
23105
|
hasTag: HasTag
|
|
22609
23106
|
internalDrag:
|
|
22610
23107
|
| {
|
|
22611
|
-
origin: EventPosition
|
|
23108
|
+
origin: Pick<EventPosition, 'selection'>
|
|
22612
23109
|
}
|
|
22613
23110
|
| undefined
|
|
22614
23111
|
}
|
|
@@ -22726,6 +23223,24 @@ declare type HistoryItem = {
|
|
|
22726
23223
|
timestamp: Date
|
|
22727
23224
|
}
|
|
22728
23225
|
|
|
23226
|
+
/**
|
|
23227
|
+
* Used to represent native InputEvents that hold a DataTransfer object.
|
|
23228
|
+
*
|
|
23229
|
+
* These can either be one of:
|
|
23230
|
+
*
|
|
23231
|
+
* - insertFromPaste
|
|
23232
|
+
* - insertFromPasteAsQuotation
|
|
23233
|
+
* - insertFromDrop
|
|
23234
|
+
* - insertReplacementText
|
|
23235
|
+
* - insertFromYank
|
|
23236
|
+
*/
|
|
23237
|
+
declare type InputBehaviorEvent = {
|
|
23238
|
+
type: 'input.*'
|
|
23239
|
+
originEvent: {
|
|
23240
|
+
dataTransfer: DataTransfer
|
|
23241
|
+
}
|
|
23242
|
+
}
|
|
23243
|
+
|
|
22729
23244
|
declare type InsertPlacement = 'auto' | 'after' | 'before'
|
|
22730
23245
|
|
|
22731
23246
|
declare type InternalPatchEvent = NamespaceEvent<PatchEvent, 'internal'> & {
|
|
@@ -22898,9 +23413,10 @@ declare type NamespaceEvent<
|
|
|
22898
23413
|
*/
|
|
22899
23414
|
declare type NativeBehaviorEvent =
|
|
22900
23415
|
| ClipboardBehaviorEvent
|
|
23416
|
+
| DragBehaviorEvent
|
|
23417
|
+
| InputBehaviorEvent
|
|
22901
23418
|
| KeyboardBehaviorEvent
|
|
22902
23419
|
| MouseBehaviorEvent
|
|
22903
|
-
| DragBehaviorEvent
|
|
22904
23420
|
|
|
22905
23421
|
/**
|
|
22906
23422
|
* @beta
|
|
@@ -22995,11 +23511,6 @@ declare type Serializer<TMIMEType extends MIMEType> = ({
|
|
|
22995
23511
|
'serialization.success' | 'serialization.failure'
|
|
22996
23512
|
>
|
|
22997
23513
|
|
|
22998
|
-
declare type SlateEditor = {
|
|
22999
|
-
instance: PortableTextSlateEditor
|
|
23000
|
-
initialValue: Array<Descendant>
|
|
23001
|
-
}
|
|
23002
|
-
|
|
23003
23514
|
/**
|
|
23004
23515
|
* @beta
|
|
23005
23516
|
*/
|
|
@@ -23062,6 +23573,10 @@ declare type SyntheticBehaviorEvent =
|
|
|
23062
23573
|
| {
|
|
23063
23574
|
type: 'decorator.toggle'
|
|
23064
23575
|
decorator: string
|
|
23576
|
+
offsets?: {
|
|
23577
|
+
anchor: BlockOffset
|
|
23578
|
+
focus: BlockOffset
|
|
23579
|
+
}
|
|
23065
23580
|
}
|
|
23066
23581
|
| {
|
|
23067
23582
|
type: 'delete'
|
|
@@ -23206,11 +23721,13 @@ declare type SyntheticBehaviorEvent =
|
|
|
23206
23721
|
'type',
|
|
23207
23722
|
'deserialization.failure' | 'deserialization.success'
|
|
23208
23723
|
> & {
|
|
23209
|
-
originEvent:
|
|
23210
|
-
|
|
23211
|
-
|
|
23212
|
-
|
|
23213
|
-
|
|
23724
|
+
originEvent:
|
|
23725
|
+
| PickFromUnion<
|
|
23726
|
+
NativeBehaviorEvent,
|
|
23727
|
+
'type',
|
|
23728
|
+
'drag.drop' | 'clipboard.paste'
|
|
23729
|
+
>
|
|
23730
|
+
| InputBehaviorEvent
|
|
23214
23731
|
})
|
|
23215
23732
|
| {
|
|
23216
23733
|
type: 'serialization.success'
|