@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/index.d.ts
CHANGED
|
@@ -70,7 +70,10 @@ import {
|
|
|
70
70
|
BlockOffset as BlockOffset_2,
|
|
71
71
|
PortableTextMemberSchemaTypes as PortableTextMemberSchemaTypes_2,
|
|
72
72
|
} from '..'
|
|
73
|
-
import {
|
|
73
|
+
import {
|
|
74
|
+
InputBehaviorEvent as InputBehaviorEvent_2,
|
|
75
|
+
InsertPlacement as InsertPlacement_2,
|
|
76
|
+
} from '../behaviors/behavior.types'
|
|
74
77
|
import {MIMEType as MIMEType_2} from '../internal-utils/mime-type'
|
|
75
78
|
import {PickFromUnion as PickFromUnion_2} from '../type-utils'
|
|
76
79
|
|
|
@@ -112,11 +115,13 @@ declare type Behavior<
|
|
|
112
115
|
? ClipboardBehaviorEvent
|
|
113
116
|
: TBehaviorEventType extends 'drag.*'
|
|
114
117
|
? DragBehaviorEvent
|
|
115
|
-
: TBehaviorEventType extends '
|
|
116
|
-
?
|
|
117
|
-
: TBehaviorEventType extends '
|
|
118
|
-
?
|
|
119
|
-
:
|
|
118
|
+
: TBehaviorEventType extends 'input.*'
|
|
119
|
+
? InputBehaviorEvent
|
|
120
|
+
: TBehaviorEventType extends 'keyboard.*'
|
|
121
|
+
? KeyboardBehaviorEvent
|
|
122
|
+
: TBehaviorEventType extends 'mouse.*'
|
|
123
|
+
? MouseBehaviorEvent
|
|
124
|
+
: PickFromUnion<BehaviorEvent, 'type', TBehaviorEventType>,
|
|
120
125
|
> = {
|
|
121
126
|
/**
|
|
122
127
|
* The internal editor event that triggers this behavior.
|
|
@@ -184,6 +189,9 @@ declare type BehaviorEvent =
|
|
|
184
189
|
| {
|
|
185
190
|
type: 'drag.*'
|
|
186
191
|
}
|
|
192
|
+
| {
|
|
193
|
+
type: 'input.*'
|
|
194
|
+
}
|
|
187
195
|
| {
|
|
188
196
|
type: 'keyboard.*'
|
|
189
197
|
}
|
|
@@ -308,21 +316,21 @@ declare type ClipboardBehaviorEvent =
|
|
|
308
316
|
originEvent: {
|
|
309
317
|
dataTransfer: DataTransfer
|
|
310
318
|
}
|
|
311
|
-
position: EventPosition
|
|
319
|
+
position: Pick<EventPosition, 'selection'>
|
|
312
320
|
}
|
|
313
321
|
| {
|
|
314
322
|
type: 'clipboard.cut'
|
|
315
323
|
originEvent: {
|
|
316
324
|
dataTransfer: DataTransfer
|
|
317
325
|
}
|
|
318
|
-
position: EventPosition
|
|
326
|
+
position: Pick<EventPosition, 'selection'>
|
|
319
327
|
}
|
|
320
328
|
| {
|
|
321
329
|
type: 'clipboard.paste'
|
|
322
330
|
originEvent: {
|
|
323
331
|
dataTransfer: DataTransfer
|
|
324
332
|
}
|
|
325
|
-
position: EventPosition
|
|
333
|
+
position: Pick<EventPosition, 'selection'>
|
|
326
334
|
}
|
|
327
335
|
|
|
328
336
|
/**
|
|
@@ -386,11 +394,13 @@ declare type CustomBehaviorEvent<
|
|
|
386
394
|
declare type DataBehaviorEvent =
|
|
387
395
|
| {
|
|
388
396
|
type: 'deserialize'
|
|
389
|
-
originEvent:
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
397
|
+
originEvent:
|
|
398
|
+
| PickFromUnion<
|
|
399
|
+
NativeBehaviorEvent,
|
|
400
|
+
'type',
|
|
401
|
+
'drag.drop' | 'clipboard.paste'
|
|
402
|
+
>
|
|
403
|
+
| InputBehaviorEvent
|
|
394
404
|
}
|
|
395
405
|
| {
|
|
396
406
|
type: 'serialize'
|
|
@@ -446,7 +456,7 @@ declare type DragBehaviorEvent =
|
|
|
446
456
|
originEvent: {
|
|
447
457
|
dataTransfer: DataTransfer
|
|
448
458
|
}
|
|
449
|
-
position: EventPosition
|
|
459
|
+
position: Pick<EventPosition, 'selection'>
|
|
450
460
|
}
|
|
451
461
|
| {
|
|
452
462
|
type: 'drag.drag'
|
|
@@ -588,11 +598,6 @@ export declare type Editor = {
|
|
|
588
598
|
registerBehavior: (config: {behavior: Behavior}) => () => void
|
|
589
599
|
send: (event: EditorEvent) => void
|
|
590
600
|
on: ActorRef<Snapshot<unknown>, EventObject, EditorEmittedEvent>['on']
|
|
591
|
-
_internal: {
|
|
592
|
-
editable: EditableAPI
|
|
593
|
-
editorActor: EditorActor
|
|
594
|
-
slateEditor: SlateEditor
|
|
595
|
-
}
|
|
596
601
|
}
|
|
597
602
|
|
|
598
603
|
/**
|
|
@@ -749,7 +754,7 @@ declare const editorMachine: StateMachine<
|
|
|
749
754
|
value: Array<PortableTextBlock> | undefined
|
|
750
755
|
internalDrag?: {
|
|
751
756
|
ghost?: HTMLElement
|
|
752
|
-
origin: EventPosition
|
|
757
|
+
origin: Pick<EventPosition, 'selection'>
|
|
753
758
|
}
|
|
754
759
|
},
|
|
755
760
|
| {
|
|
@@ -810,6 +815,10 @@ declare const editorMachine: StateMachine<
|
|
|
810
815
|
| {
|
|
811
816
|
type: 'decorator.toggle'
|
|
812
817
|
decorator: string
|
|
818
|
+
offsets?: {
|
|
819
|
+
anchor: BlockOffset_2
|
|
820
|
+
focus: BlockOffset_2
|
|
821
|
+
}
|
|
813
822
|
}
|
|
814
823
|
| {
|
|
815
824
|
type: 'delete'
|
|
@@ -954,22 +963,26 @@ declare const editorMachine: StateMachine<
|
|
|
954
963
|
mimeType: `${string}/${string}`
|
|
955
964
|
reason: string
|
|
956
965
|
} & {
|
|
957
|
-
originEvent:
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
966
|
+
originEvent:
|
|
967
|
+
| PickFromUnion_2<
|
|
968
|
+
NativeBehaviorEvent,
|
|
969
|
+
'type',
|
|
970
|
+
'drag.drop' | 'clipboard.paste'
|
|
971
|
+
>
|
|
972
|
+
| InputBehaviorEvent_2
|
|
962
973
|
})
|
|
963
974
|
| ({
|
|
964
975
|
type: 'deserialization.success'
|
|
965
976
|
data: Array<PortableTextBlock>
|
|
966
977
|
mimeType: `${string}/${string}`
|
|
967
978
|
} & {
|
|
968
|
-
originEvent:
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
979
|
+
originEvent:
|
|
980
|
+
| PickFromUnion_2<
|
|
981
|
+
NativeBehaviorEvent,
|
|
982
|
+
'type',
|
|
983
|
+
'drag.drop' | 'clipboard.paste'
|
|
984
|
+
>
|
|
985
|
+
| InputBehaviorEvent_2
|
|
973
986
|
})
|
|
974
987
|
| {
|
|
975
988
|
type: 'serialization.success'
|
|
@@ -1114,7 +1127,7 @@ declare const editorMachine: StateMachine<
|
|
|
1114
1127
|
}
|
|
1115
1128
|
| {
|
|
1116
1129
|
type: 'dragstart'
|
|
1117
|
-
origin: EventPosition
|
|
1130
|
+
origin: Pick<EventPosition, 'selection'>
|
|
1118
1131
|
ghost?: HTMLElement
|
|
1119
1132
|
}
|
|
1120
1133
|
| {
|
|
@@ -1184,7 +1197,7 @@ declare const editorMachine: StateMachine<
|
|
|
1184
1197
|
{
|
|
1185
1198
|
'edit mode':
|
|
1186
1199
|
| {
|
|
1187
|
-
editable: '
|
|
1200
|
+
editable: 'dragging internally' | 'idle'
|
|
1188
1201
|
}
|
|
1189
1202
|
| {
|
|
1190
1203
|
'read only': 'read only' | 'determine initial edit mode'
|
|
@@ -1193,7 +1206,7 @@ declare const editorMachine: StateMachine<
|
|
|
1193
1206
|
| 'setting up'
|
|
1194
1207
|
| 'dirty'
|
|
1195
1208
|
| {
|
|
1196
|
-
pristine: '
|
|
1209
|
+
pristine: 'normalizing' | 'idle'
|
|
1197
1210
|
}
|
|
1198
1211
|
},
|
|
1199
1212
|
'dragging internally',
|
|
@@ -1265,6 +1278,10 @@ declare const editorMachine: StateMachine<
|
|
|
1265
1278
|
| {
|
|
1266
1279
|
type: 'decorator.toggle'
|
|
1267
1280
|
decorator: string
|
|
1281
|
+
offsets?: {
|
|
1282
|
+
anchor: BlockOffset_2
|
|
1283
|
+
focus: BlockOffset_2
|
|
1284
|
+
}
|
|
1268
1285
|
}
|
|
1269
1286
|
| {
|
|
1270
1287
|
type: 'delete'
|
|
@@ -1409,22 +1426,26 @@ declare const editorMachine: StateMachine<
|
|
|
1409
1426
|
mimeType: `${string}/${string}`
|
|
1410
1427
|
reason: string
|
|
1411
1428
|
} & {
|
|
1412
|
-
originEvent:
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1429
|
+
originEvent:
|
|
1430
|
+
| PickFromUnion_2<
|
|
1431
|
+
NativeBehaviorEvent,
|
|
1432
|
+
'type',
|
|
1433
|
+
'drag.drop' | 'clipboard.paste'
|
|
1434
|
+
>
|
|
1435
|
+
| InputBehaviorEvent_2
|
|
1417
1436
|
})
|
|
1418
1437
|
| ({
|
|
1419
1438
|
type: 'deserialization.success'
|
|
1420
1439
|
data: Array<PortableTextBlock>
|
|
1421
1440
|
mimeType: `${string}/${string}`
|
|
1422
1441
|
} & {
|
|
1423
|
-
originEvent:
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1442
|
+
originEvent:
|
|
1443
|
+
| PickFromUnion_2<
|
|
1444
|
+
NativeBehaviorEvent,
|
|
1445
|
+
'type',
|
|
1446
|
+
'drag.drop' | 'clipboard.paste'
|
|
1447
|
+
>
|
|
1448
|
+
| InputBehaviorEvent_2
|
|
1428
1449
|
})
|
|
1429
1450
|
| {
|
|
1430
1451
|
type: 'serialization.success'
|
|
@@ -1548,7 +1569,7 @@ declare const editorMachine: StateMachine<
|
|
|
1548
1569
|
value: Array<PortableTextBlock> | undefined
|
|
1549
1570
|
internalDrag?: {
|
|
1550
1571
|
ghost?: HTMLElement
|
|
1551
|
-
origin: EventPosition
|
|
1572
|
+
origin: Pick<EventPosition, 'selection'>
|
|
1552
1573
|
}
|
|
1553
1574
|
},
|
|
1554
1575
|
| {
|
|
@@ -1609,6 +1630,10 @@ declare const editorMachine: StateMachine<
|
|
|
1609
1630
|
| {
|
|
1610
1631
|
type: 'decorator.toggle'
|
|
1611
1632
|
decorator: string
|
|
1633
|
+
offsets?: {
|
|
1634
|
+
anchor: BlockOffset_2
|
|
1635
|
+
focus: BlockOffset_2
|
|
1636
|
+
}
|
|
1612
1637
|
}
|
|
1613
1638
|
| {
|
|
1614
1639
|
type: 'delete'
|
|
@@ -1753,22 +1778,26 @@ declare const editorMachine: StateMachine<
|
|
|
1753
1778
|
mimeType: `${string}/${string}`
|
|
1754
1779
|
reason: string
|
|
1755
1780
|
} & {
|
|
1756
|
-
originEvent:
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1781
|
+
originEvent:
|
|
1782
|
+
| PickFromUnion_2<
|
|
1783
|
+
NativeBehaviorEvent,
|
|
1784
|
+
'type',
|
|
1785
|
+
'drag.drop' | 'clipboard.paste'
|
|
1786
|
+
>
|
|
1787
|
+
| InputBehaviorEvent_2
|
|
1761
1788
|
})
|
|
1762
1789
|
| ({
|
|
1763
1790
|
type: 'deserialization.success'
|
|
1764
1791
|
data: Array<PortableTextBlock>
|
|
1765
1792
|
mimeType: `${string}/${string}`
|
|
1766
1793
|
} & {
|
|
1767
|
-
originEvent:
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1794
|
+
originEvent:
|
|
1795
|
+
| PickFromUnion_2<
|
|
1796
|
+
NativeBehaviorEvent,
|
|
1797
|
+
'type',
|
|
1798
|
+
'drag.drop' | 'clipboard.paste'
|
|
1799
|
+
>
|
|
1800
|
+
| InputBehaviorEvent_2
|
|
1772
1801
|
})
|
|
1773
1802
|
| {
|
|
1774
1803
|
type: 'serialization.success'
|
|
@@ -1913,7 +1942,7 @@ declare const editorMachine: StateMachine<
|
|
|
1913
1942
|
}
|
|
1914
1943
|
| {
|
|
1915
1944
|
type: 'dragstart'
|
|
1916
|
-
origin: EventPosition
|
|
1945
|
+
origin: Pick<EventPosition, 'selection'>
|
|
1917
1946
|
ghost?: HTMLElement
|
|
1918
1947
|
}
|
|
1919
1948
|
| {
|
|
@@ -1987,6 +2016,10 @@ declare const editorMachine: StateMachine<
|
|
|
1987
2016
|
| {
|
|
1988
2017
|
type: 'decorator.toggle'
|
|
1989
2018
|
decorator: string
|
|
2019
|
+
offsets?: {
|
|
2020
|
+
anchor: BlockOffset_2
|
|
2021
|
+
focus: BlockOffset_2
|
|
2022
|
+
}
|
|
1990
2023
|
}
|
|
1991
2024
|
| {
|
|
1992
2025
|
type: 'delete'
|
|
@@ -2131,22 +2164,26 @@ declare const editorMachine: StateMachine<
|
|
|
2131
2164
|
mimeType: `${string}/${string}`
|
|
2132
2165
|
reason: string
|
|
2133
2166
|
} & {
|
|
2134
|
-
originEvent:
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2167
|
+
originEvent:
|
|
2168
|
+
| PickFromUnion_2<
|
|
2169
|
+
NativeBehaviorEvent,
|
|
2170
|
+
'type',
|
|
2171
|
+
'drag.drop' | 'clipboard.paste'
|
|
2172
|
+
>
|
|
2173
|
+
| InputBehaviorEvent_2
|
|
2139
2174
|
})
|
|
2140
2175
|
| ({
|
|
2141
2176
|
type: 'deserialization.success'
|
|
2142
2177
|
data: Array<PortableTextBlock>
|
|
2143
2178
|
mimeType: `${string}/${string}`
|
|
2144
2179
|
} & {
|
|
2145
|
-
originEvent:
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2180
|
+
originEvent:
|
|
2181
|
+
| PickFromUnion_2<
|
|
2182
|
+
NativeBehaviorEvent,
|
|
2183
|
+
'type',
|
|
2184
|
+
'drag.drop' | 'clipboard.paste'
|
|
2185
|
+
>
|
|
2186
|
+
| InputBehaviorEvent_2
|
|
2150
2187
|
})
|
|
2151
2188
|
| {
|
|
2152
2189
|
type: 'serialization.success'
|
|
@@ -2291,7 +2328,7 @@ declare const editorMachine: StateMachine<
|
|
|
2291
2328
|
}
|
|
2292
2329
|
| {
|
|
2293
2330
|
type: 'dragstart'
|
|
2294
|
-
origin: EventPosition
|
|
2331
|
+
origin: Pick<EventPosition, 'selection'>
|
|
2295
2332
|
ghost?: HTMLElement
|
|
2296
2333
|
}
|
|
2297
2334
|
| {
|
|
@@ -2328,7 +2365,7 @@ declare const editorMachine: StateMachine<
|
|
|
2328
2365
|
value: Array<PortableTextBlock> | undefined
|
|
2329
2366
|
internalDrag?: {
|
|
2330
2367
|
ghost?: HTMLElement
|
|
2331
|
-
origin: EventPosition
|
|
2368
|
+
origin: Pick<EventPosition, 'selection'>
|
|
2332
2369
|
}
|
|
2333
2370
|
},
|
|
2334
2371
|
{
|
|
@@ -2393,6 +2430,10 @@ declare const editorMachine: StateMachine<
|
|
|
2393
2430
|
| {
|
|
2394
2431
|
type: 'decorator.toggle'
|
|
2395
2432
|
decorator: string
|
|
2433
|
+
offsets?: {
|
|
2434
|
+
anchor: BlockOffset_2
|
|
2435
|
+
focus: BlockOffset_2
|
|
2436
|
+
}
|
|
2396
2437
|
}
|
|
2397
2438
|
| {
|
|
2398
2439
|
type: 'delete'
|
|
@@ -2537,22 +2578,26 @@ declare const editorMachine: StateMachine<
|
|
|
2537
2578
|
mimeType: `${string}/${string}`
|
|
2538
2579
|
reason: string
|
|
2539
2580
|
} & {
|
|
2540
|
-
originEvent:
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2581
|
+
originEvent:
|
|
2582
|
+
| PickFromUnion_2<
|
|
2583
|
+
NativeBehaviorEvent,
|
|
2584
|
+
'type',
|
|
2585
|
+
'drag.drop' | 'clipboard.paste'
|
|
2586
|
+
>
|
|
2587
|
+
| InputBehaviorEvent_2
|
|
2545
2588
|
})
|
|
2546
2589
|
| ({
|
|
2547
2590
|
type: 'deserialization.success'
|
|
2548
2591
|
data: Array<PortableTextBlock>
|
|
2549
2592
|
mimeType: `${string}/${string}`
|
|
2550
2593
|
} & {
|
|
2551
|
-
originEvent:
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2594
|
+
originEvent:
|
|
2595
|
+
| PickFromUnion_2<
|
|
2596
|
+
NativeBehaviorEvent,
|
|
2597
|
+
'type',
|
|
2598
|
+
'drag.drop' | 'clipboard.paste'
|
|
2599
|
+
>
|
|
2600
|
+
| InputBehaviorEvent_2
|
|
2556
2601
|
})
|
|
2557
2602
|
| {
|
|
2558
2603
|
type: 'serialization.success'
|
|
@@ -2697,7 +2742,7 @@ declare const editorMachine: StateMachine<
|
|
|
2697
2742
|
}
|
|
2698
2743
|
| {
|
|
2699
2744
|
type: 'dragstart'
|
|
2700
|
-
origin: EventPosition
|
|
2745
|
+
origin: Pick<EventPosition, 'selection'>
|
|
2701
2746
|
ghost?: HTMLElement
|
|
2702
2747
|
}
|
|
2703
2748
|
| {
|
|
@@ -2769,6 +2814,10 @@ declare const editorMachine: StateMachine<
|
|
|
2769
2814
|
| {
|
|
2770
2815
|
type: 'decorator.toggle'
|
|
2771
2816
|
decorator: string
|
|
2817
|
+
offsets?: {
|
|
2818
|
+
anchor: BlockOffset_2
|
|
2819
|
+
focus: BlockOffset_2
|
|
2820
|
+
}
|
|
2772
2821
|
}
|
|
2773
2822
|
| {
|
|
2774
2823
|
type: 'delete'
|
|
@@ -2913,22 +2962,26 @@ declare const editorMachine: StateMachine<
|
|
|
2913
2962
|
mimeType: `${string}/${string}`
|
|
2914
2963
|
reason: string
|
|
2915
2964
|
} & {
|
|
2916
|
-
originEvent:
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2965
|
+
originEvent:
|
|
2966
|
+
| PickFromUnion_2<
|
|
2967
|
+
NativeBehaviorEvent,
|
|
2968
|
+
'type',
|
|
2969
|
+
'drag.drop' | 'clipboard.paste'
|
|
2970
|
+
>
|
|
2971
|
+
| InputBehaviorEvent_2
|
|
2921
2972
|
})
|
|
2922
2973
|
| ({
|
|
2923
2974
|
type: 'deserialization.success'
|
|
2924
2975
|
data: Array<PortableTextBlock>
|
|
2925
2976
|
mimeType: `${string}/${string}`
|
|
2926
2977
|
} & {
|
|
2927
|
-
originEvent:
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2978
|
+
originEvent:
|
|
2979
|
+
| PickFromUnion_2<
|
|
2980
|
+
NativeBehaviorEvent,
|
|
2981
|
+
'type',
|
|
2982
|
+
'drag.drop' | 'clipboard.paste'
|
|
2983
|
+
>
|
|
2984
|
+
| InputBehaviorEvent_2
|
|
2932
2985
|
})
|
|
2933
2986
|
| {
|
|
2934
2987
|
type: 'serialization.success'
|
|
@@ -3017,7 +3070,7 @@ declare const editorMachine: StateMachine<
|
|
|
3017
3070
|
value: Array<PortableTextBlock> | undefined
|
|
3018
3071
|
internalDrag?: {
|
|
3019
3072
|
ghost?: HTMLElement
|
|
3020
|
-
origin: EventPosition
|
|
3073
|
+
origin: Pick<EventPosition, 'selection'>
|
|
3021
3074
|
}
|
|
3022
3075
|
},
|
|
3023
3076
|
{
|
|
@@ -3081,6 +3134,10 @@ declare const editorMachine: StateMachine<
|
|
|
3081
3134
|
| {
|
|
3082
3135
|
type: 'decorator.toggle'
|
|
3083
3136
|
decorator: string
|
|
3137
|
+
offsets?: {
|
|
3138
|
+
anchor: BlockOffset_2
|
|
3139
|
+
focus: BlockOffset_2
|
|
3140
|
+
}
|
|
3084
3141
|
}
|
|
3085
3142
|
| {
|
|
3086
3143
|
type: 'delete'
|
|
@@ -3225,22 +3282,26 @@ declare const editorMachine: StateMachine<
|
|
|
3225
3282
|
mimeType: `${string}/${string}`
|
|
3226
3283
|
reason: string
|
|
3227
3284
|
} & {
|
|
3228
|
-
originEvent:
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3285
|
+
originEvent:
|
|
3286
|
+
| PickFromUnion_2<
|
|
3287
|
+
NativeBehaviorEvent,
|
|
3288
|
+
'type',
|
|
3289
|
+
'drag.drop' | 'clipboard.paste'
|
|
3290
|
+
>
|
|
3291
|
+
| InputBehaviorEvent_2
|
|
3233
3292
|
})
|
|
3234
3293
|
| ({
|
|
3235
3294
|
type: 'deserialization.success'
|
|
3236
3295
|
data: Array<PortableTextBlock>
|
|
3237
3296
|
mimeType: `${string}/${string}`
|
|
3238
3297
|
} & {
|
|
3239
|
-
originEvent:
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3298
|
+
originEvent:
|
|
3299
|
+
| PickFromUnion_2<
|
|
3300
|
+
NativeBehaviorEvent,
|
|
3301
|
+
'type',
|
|
3302
|
+
'drag.drop' | 'clipboard.paste'
|
|
3303
|
+
>
|
|
3304
|
+
| InputBehaviorEvent_2
|
|
3244
3305
|
})
|
|
3245
3306
|
| {
|
|
3246
3307
|
type: 'serialization.success'
|
|
@@ -3385,7 +3446,7 @@ declare const editorMachine: StateMachine<
|
|
|
3385
3446
|
}
|
|
3386
3447
|
| {
|
|
3387
3448
|
type: 'dragstart'
|
|
3388
|
-
origin: EventPosition
|
|
3449
|
+
origin: Pick<EventPosition, 'selection'>
|
|
3389
3450
|
ghost?: HTMLElement
|
|
3390
3451
|
}
|
|
3391
3452
|
| {
|
|
@@ -3457,6 +3518,10 @@ declare const editorMachine: StateMachine<
|
|
|
3457
3518
|
| {
|
|
3458
3519
|
type: 'decorator.toggle'
|
|
3459
3520
|
decorator: string
|
|
3521
|
+
offsets?: {
|
|
3522
|
+
anchor: BlockOffset_2
|
|
3523
|
+
focus: BlockOffset_2
|
|
3524
|
+
}
|
|
3460
3525
|
}
|
|
3461
3526
|
| {
|
|
3462
3527
|
type: 'delete'
|
|
@@ -3601,22 +3666,26 @@ declare const editorMachine: StateMachine<
|
|
|
3601
3666
|
mimeType: `${string}/${string}`
|
|
3602
3667
|
reason: string
|
|
3603
3668
|
} & {
|
|
3604
|
-
originEvent:
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3669
|
+
originEvent:
|
|
3670
|
+
| PickFromUnion_2<
|
|
3671
|
+
NativeBehaviorEvent,
|
|
3672
|
+
'type',
|
|
3673
|
+
'drag.drop' | 'clipboard.paste'
|
|
3674
|
+
>
|
|
3675
|
+
| InputBehaviorEvent_2
|
|
3609
3676
|
})
|
|
3610
3677
|
| ({
|
|
3611
3678
|
type: 'deserialization.success'
|
|
3612
3679
|
data: Array<PortableTextBlock>
|
|
3613
3680
|
mimeType: `${string}/${string}`
|
|
3614
3681
|
} & {
|
|
3615
|
-
originEvent:
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3682
|
+
originEvent:
|
|
3683
|
+
| PickFromUnion_2<
|
|
3684
|
+
NativeBehaviorEvent,
|
|
3685
|
+
'type',
|
|
3686
|
+
'drag.drop' | 'clipboard.paste'
|
|
3687
|
+
>
|
|
3688
|
+
| InputBehaviorEvent_2
|
|
3620
3689
|
})
|
|
3621
3690
|
| {
|
|
3622
3691
|
type: 'serialization.success'
|
|
@@ -3705,7 +3774,7 @@ declare const editorMachine: StateMachine<
|
|
|
3705
3774
|
value: Array<PortableTextBlock> | undefined
|
|
3706
3775
|
internalDrag?: {
|
|
3707
3776
|
ghost?: HTMLElement
|
|
3708
|
-
origin: EventPosition
|
|
3777
|
+
origin: Pick<EventPosition, 'selection'>
|
|
3709
3778
|
}
|
|
3710
3779
|
},
|
|
3711
3780
|
{
|
|
@@ -3772,6 +3841,10 @@ declare const editorMachine: StateMachine<
|
|
|
3772
3841
|
| {
|
|
3773
3842
|
type: 'decorator.toggle'
|
|
3774
3843
|
decorator: string
|
|
3844
|
+
offsets?: {
|
|
3845
|
+
anchor: BlockOffset_2
|
|
3846
|
+
focus: BlockOffset_2
|
|
3847
|
+
}
|
|
3775
3848
|
}
|
|
3776
3849
|
| {
|
|
3777
3850
|
type: 'delete'
|
|
@@ -3916,22 +3989,26 @@ declare const editorMachine: StateMachine<
|
|
|
3916
3989
|
mimeType: `${string}/${string}`
|
|
3917
3990
|
reason: string
|
|
3918
3991
|
} & {
|
|
3919
|
-
originEvent:
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3992
|
+
originEvent:
|
|
3993
|
+
| PickFromUnion_2<
|
|
3994
|
+
NativeBehaviorEvent,
|
|
3995
|
+
'type',
|
|
3996
|
+
'drag.drop' | 'clipboard.paste'
|
|
3997
|
+
>
|
|
3998
|
+
| InputBehaviorEvent_2
|
|
3924
3999
|
})
|
|
3925
4000
|
| ({
|
|
3926
4001
|
type: 'deserialization.success'
|
|
3927
4002
|
data: Array<PortableTextBlock>
|
|
3928
4003
|
mimeType: `${string}/${string}`
|
|
3929
4004
|
} & {
|
|
3930
|
-
originEvent:
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
4005
|
+
originEvent:
|
|
4006
|
+
| PickFromUnion_2<
|
|
4007
|
+
NativeBehaviorEvent,
|
|
4008
|
+
'type',
|
|
4009
|
+
'drag.drop' | 'clipboard.paste'
|
|
4010
|
+
>
|
|
4011
|
+
| InputBehaviorEvent_2
|
|
3935
4012
|
})
|
|
3936
4013
|
| {
|
|
3937
4014
|
type: 'serialization.success'
|
|
@@ -4076,7 +4153,7 @@ declare const editorMachine: StateMachine<
|
|
|
4076
4153
|
}
|
|
4077
4154
|
| {
|
|
4078
4155
|
type: 'dragstart'
|
|
4079
|
-
origin: EventPosition
|
|
4156
|
+
origin: Pick<EventPosition, 'selection'>
|
|
4080
4157
|
ghost?: HTMLElement
|
|
4081
4158
|
}
|
|
4082
4159
|
| {
|
|
@@ -4148,6 +4225,10 @@ declare const editorMachine: StateMachine<
|
|
|
4148
4225
|
| {
|
|
4149
4226
|
type: 'decorator.toggle'
|
|
4150
4227
|
decorator: string
|
|
4228
|
+
offsets?: {
|
|
4229
|
+
anchor: BlockOffset_2
|
|
4230
|
+
focus: BlockOffset_2
|
|
4231
|
+
}
|
|
4151
4232
|
}
|
|
4152
4233
|
| {
|
|
4153
4234
|
type: 'delete'
|
|
@@ -4292,22 +4373,26 @@ declare const editorMachine: StateMachine<
|
|
|
4292
4373
|
mimeType: `${string}/${string}`
|
|
4293
4374
|
reason: string
|
|
4294
4375
|
} & {
|
|
4295
|
-
originEvent:
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4376
|
+
originEvent:
|
|
4377
|
+
| PickFromUnion_2<
|
|
4378
|
+
NativeBehaviorEvent,
|
|
4379
|
+
'type',
|
|
4380
|
+
'drag.drop' | 'clipboard.paste'
|
|
4381
|
+
>
|
|
4382
|
+
| InputBehaviorEvent_2
|
|
4300
4383
|
})
|
|
4301
4384
|
| ({
|
|
4302
4385
|
type: 'deserialization.success'
|
|
4303
4386
|
data: Array<PortableTextBlock>
|
|
4304
4387
|
mimeType: `${string}/${string}`
|
|
4305
4388
|
} & {
|
|
4306
|
-
originEvent:
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4389
|
+
originEvent:
|
|
4390
|
+
| PickFromUnion_2<
|
|
4391
|
+
NativeBehaviorEvent,
|
|
4392
|
+
'type',
|
|
4393
|
+
'drag.drop' | 'clipboard.paste'
|
|
4394
|
+
>
|
|
4395
|
+
| InputBehaviorEvent_2
|
|
4311
4396
|
})
|
|
4312
4397
|
| {
|
|
4313
4398
|
type: 'serialization.success'
|
|
@@ -4396,7 +4481,7 @@ declare const editorMachine: StateMachine<
|
|
|
4396
4481
|
value: Array<PortableTextBlock> | undefined
|
|
4397
4482
|
internalDrag?: {
|
|
4398
4483
|
ghost?: HTMLElement
|
|
4399
|
-
origin: EventPosition
|
|
4484
|
+
origin: Pick<EventPosition, 'selection'>
|
|
4400
4485
|
}
|
|
4401
4486
|
},
|
|
4402
4487
|
{
|
|
@@ -4462,6 +4547,10 @@ declare const editorMachine: StateMachine<
|
|
|
4462
4547
|
| {
|
|
4463
4548
|
type: 'decorator.toggle'
|
|
4464
4549
|
decorator: string
|
|
4550
|
+
offsets?: {
|
|
4551
|
+
anchor: BlockOffset_2
|
|
4552
|
+
focus: BlockOffset_2
|
|
4553
|
+
}
|
|
4465
4554
|
}
|
|
4466
4555
|
| {
|
|
4467
4556
|
type: 'delete'
|
|
@@ -4606,22 +4695,26 @@ declare const editorMachine: StateMachine<
|
|
|
4606
4695
|
mimeType: `${string}/${string}`
|
|
4607
4696
|
reason: string
|
|
4608
4697
|
} & {
|
|
4609
|
-
originEvent:
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4698
|
+
originEvent:
|
|
4699
|
+
| PickFromUnion_2<
|
|
4700
|
+
NativeBehaviorEvent,
|
|
4701
|
+
'type',
|
|
4702
|
+
'drag.drop' | 'clipboard.paste'
|
|
4703
|
+
>
|
|
4704
|
+
| InputBehaviorEvent_2
|
|
4614
4705
|
})
|
|
4615
4706
|
| ({
|
|
4616
4707
|
type: 'deserialization.success'
|
|
4617
4708
|
data: Array<PortableTextBlock>
|
|
4618
4709
|
mimeType: `${string}/${string}`
|
|
4619
4710
|
} & {
|
|
4620
|
-
originEvent:
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4711
|
+
originEvent:
|
|
4712
|
+
| PickFromUnion_2<
|
|
4713
|
+
NativeBehaviorEvent,
|
|
4714
|
+
'type',
|
|
4715
|
+
'drag.drop' | 'clipboard.paste'
|
|
4716
|
+
>
|
|
4717
|
+
| InputBehaviorEvent_2
|
|
4625
4718
|
})
|
|
4626
4719
|
| {
|
|
4627
4720
|
type: 'serialization.success'
|
|
@@ -4766,7 +4859,7 @@ declare const editorMachine: StateMachine<
|
|
|
4766
4859
|
}
|
|
4767
4860
|
| {
|
|
4768
4861
|
type: 'dragstart'
|
|
4769
|
-
origin: EventPosition
|
|
4862
|
+
origin: Pick<EventPosition, 'selection'>
|
|
4770
4863
|
ghost?: HTMLElement
|
|
4771
4864
|
}
|
|
4772
4865
|
| {
|
|
@@ -4838,6 +4931,10 @@ declare const editorMachine: StateMachine<
|
|
|
4838
4931
|
| {
|
|
4839
4932
|
type: 'decorator.toggle'
|
|
4840
4933
|
decorator: string
|
|
4934
|
+
offsets?: {
|
|
4935
|
+
anchor: BlockOffset_2
|
|
4936
|
+
focus: BlockOffset_2
|
|
4937
|
+
}
|
|
4841
4938
|
}
|
|
4842
4939
|
| {
|
|
4843
4940
|
type: 'delete'
|
|
@@ -4982,22 +5079,26 @@ declare const editorMachine: StateMachine<
|
|
|
4982
5079
|
mimeType: `${string}/${string}`
|
|
4983
5080
|
reason: string
|
|
4984
5081
|
} & {
|
|
4985
|
-
originEvent:
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
5082
|
+
originEvent:
|
|
5083
|
+
| PickFromUnion_2<
|
|
5084
|
+
NativeBehaviorEvent,
|
|
5085
|
+
'type',
|
|
5086
|
+
'drag.drop' | 'clipboard.paste'
|
|
5087
|
+
>
|
|
5088
|
+
| InputBehaviorEvent_2
|
|
4990
5089
|
})
|
|
4991
5090
|
| ({
|
|
4992
5091
|
type: 'deserialization.success'
|
|
4993
5092
|
data: Array<PortableTextBlock>
|
|
4994
5093
|
mimeType: `${string}/${string}`
|
|
4995
5094
|
} & {
|
|
4996
|
-
originEvent:
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5095
|
+
originEvent:
|
|
5096
|
+
| PickFromUnion_2<
|
|
5097
|
+
NativeBehaviorEvent,
|
|
5098
|
+
'type',
|
|
5099
|
+
'drag.drop' | 'clipboard.paste'
|
|
5100
|
+
>
|
|
5101
|
+
| InputBehaviorEvent_2
|
|
5001
5102
|
})
|
|
5002
5103
|
| {
|
|
5003
5104
|
type: 'serialization.success'
|
|
@@ -5086,7 +5187,7 @@ declare const editorMachine: StateMachine<
|
|
|
5086
5187
|
value: Array<PortableTextBlock> | undefined
|
|
5087
5188
|
internalDrag?: {
|
|
5088
5189
|
ghost?: HTMLElement
|
|
5089
|
-
origin: EventPosition
|
|
5190
|
+
origin: Pick<EventPosition, 'selection'>
|
|
5090
5191
|
}
|
|
5091
5192
|
},
|
|
5092
5193
|
{
|
|
@@ -5151,6 +5252,10 @@ declare const editorMachine: StateMachine<
|
|
|
5151
5252
|
| {
|
|
5152
5253
|
type: 'decorator.toggle'
|
|
5153
5254
|
decorator: string
|
|
5255
|
+
offsets?: {
|
|
5256
|
+
anchor: BlockOffset_2
|
|
5257
|
+
focus: BlockOffset_2
|
|
5258
|
+
}
|
|
5154
5259
|
}
|
|
5155
5260
|
| {
|
|
5156
5261
|
type: 'delete'
|
|
@@ -5295,22 +5400,26 @@ declare const editorMachine: StateMachine<
|
|
|
5295
5400
|
mimeType: `${string}/${string}`
|
|
5296
5401
|
reason: string
|
|
5297
5402
|
} & {
|
|
5298
|
-
originEvent:
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5403
|
+
originEvent:
|
|
5404
|
+
| PickFromUnion_2<
|
|
5405
|
+
NativeBehaviorEvent,
|
|
5406
|
+
'type',
|
|
5407
|
+
'drag.drop' | 'clipboard.paste'
|
|
5408
|
+
>
|
|
5409
|
+
| InputBehaviorEvent_2
|
|
5303
5410
|
})
|
|
5304
5411
|
| ({
|
|
5305
5412
|
type: 'deserialization.success'
|
|
5306
5413
|
data: Array<PortableTextBlock>
|
|
5307
5414
|
mimeType: `${string}/${string}`
|
|
5308
5415
|
} & {
|
|
5309
|
-
originEvent:
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5416
|
+
originEvent:
|
|
5417
|
+
| PickFromUnion_2<
|
|
5418
|
+
NativeBehaviorEvent,
|
|
5419
|
+
'type',
|
|
5420
|
+
'drag.drop' | 'clipboard.paste'
|
|
5421
|
+
>
|
|
5422
|
+
| InputBehaviorEvent_2
|
|
5314
5423
|
})
|
|
5315
5424
|
| {
|
|
5316
5425
|
type: 'serialization.success'
|
|
@@ -5455,7 +5564,7 @@ declare const editorMachine: StateMachine<
|
|
|
5455
5564
|
}
|
|
5456
5565
|
| {
|
|
5457
5566
|
type: 'dragstart'
|
|
5458
|
-
origin: EventPosition
|
|
5567
|
+
origin: Pick<EventPosition, 'selection'>
|
|
5459
5568
|
ghost?: HTMLElement
|
|
5460
5569
|
}
|
|
5461
5570
|
| {
|
|
@@ -5527,6 +5636,10 @@ declare const editorMachine: StateMachine<
|
|
|
5527
5636
|
| {
|
|
5528
5637
|
type: 'decorator.toggle'
|
|
5529
5638
|
decorator: string
|
|
5639
|
+
offsets?: {
|
|
5640
|
+
anchor: BlockOffset_2
|
|
5641
|
+
focus: BlockOffset_2
|
|
5642
|
+
}
|
|
5530
5643
|
}
|
|
5531
5644
|
| {
|
|
5532
5645
|
type: 'delete'
|
|
@@ -5671,22 +5784,26 @@ declare const editorMachine: StateMachine<
|
|
|
5671
5784
|
mimeType: `${string}/${string}`
|
|
5672
5785
|
reason: string
|
|
5673
5786
|
} & {
|
|
5674
|
-
originEvent:
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5787
|
+
originEvent:
|
|
5788
|
+
| PickFromUnion_2<
|
|
5789
|
+
NativeBehaviorEvent,
|
|
5790
|
+
'type',
|
|
5791
|
+
'drag.drop' | 'clipboard.paste'
|
|
5792
|
+
>
|
|
5793
|
+
| InputBehaviorEvent_2
|
|
5679
5794
|
})
|
|
5680
5795
|
| ({
|
|
5681
5796
|
type: 'deserialization.success'
|
|
5682
5797
|
data: Array<PortableTextBlock>
|
|
5683
5798
|
mimeType: `${string}/${string}`
|
|
5684
5799
|
} & {
|
|
5685
|
-
originEvent:
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5800
|
+
originEvent:
|
|
5801
|
+
| PickFromUnion_2<
|
|
5802
|
+
NativeBehaviorEvent,
|
|
5803
|
+
'type',
|
|
5804
|
+
'drag.drop' | 'clipboard.paste'
|
|
5805
|
+
>
|
|
5806
|
+
| InputBehaviorEvent_2
|
|
5690
5807
|
})
|
|
5691
5808
|
| {
|
|
5692
5809
|
type: 'serialization.success'
|
|
@@ -5776,7 +5893,7 @@ declare const editorMachine: StateMachine<
|
|
|
5776
5893
|
value: Array<PortableTextBlock> | undefined
|
|
5777
5894
|
internalDrag?: {
|
|
5778
5895
|
ghost?: HTMLElement
|
|
5779
|
-
origin: EventPosition
|
|
5896
|
+
origin: Pick<EventPosition, 'selection'>
|
|
5780
5897
|
}
|
|
5781
5898
|
},
|
|
5782
5899
|
{
|
|
@@ -5841,6 +5958,10 @@ declare const editorMachine: StateMachine<
|
|
|
5841
5958
|
| {
|
|
5842
5959
|
type: 'decorator.toggle'
|
|
5843
5960
|
decorator: string
|
|
5961
|
+
offsets?: {
|
|
5962
|
+
anchor: BlockOffset_2
|
|
5963
|
+
focus: BlockOffset_2
|
|
5964
|
+
}
|
|
5844
5965
|
}
|
|
5845
5966
|
| {
|
|
5846
5967
|
type: 'delete'
|
|
@@ -5985,22 +6106,26 @@ declare const editorMachine: StateMachine<
|
|
|
5985
6106
|
mimeType: `${string}/${string}`
|
|
5986
6107
|
reason: string
|
|
5987
6108
|
} & {
|
|
5988
|
-
originEvent:
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
6109
|
+
originEvent:
|
|
6110
|
+
| PickFromUnion_2<
|
|
6111
|
+
NativeBehaviorEvent,
|
|
6112
|
+
'type',
|
|
6113
|
+
'drag.drop' | 'clipboard.paste'
|
|
6114
|
+
>
|
|
6115
|
+
| InputBehaviorEvent_2
|
|
5993
6116
|
})
|
|
5994
6117
|
| ({
|
|
5995
6118
|
type: 'deserialization.success'
|
|
5996
6119
|
data: Array<PortableTextBlock>
|
|
5997
6120
|
mimeType: `${string}/${string}`
|
|
5998
6121
|
} & {
|
|
5999
|
-
originEvent:
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6122
|
+
originEvent:
|
|
6123
|
+
| PickFromUnion_2<
|
|
6124
|
+
NativeBehaviorEvent,
|
|
6125
|
+
'type',
|
|
6126
|
+
'drag.drop' | 'clipboard.paste'
|
|
6127
|
+
>
|
|
6128
|
+
| InputBehaviorEvent_2
|
|
6004
6129
|
})
|
|
6005
6130
|
| {
|
|
6006
6131
|
type: 'serialization.success'
|
|
@@ -6145,7 +6270,7 @@ declare const editorMachine: StateMachine<
|
|
|
6145
6270
|
}
|
|
6146
6271
|
| {
|
|
6147
6272
|
type: 'dragstart'
|
|
6148
|
-
origin: EventPosition
|
|
6273
|
+
origin: Pick<EventPosition, 'selection'>
|
|
6149
6274
|
ghost?: HTMLElement
|
|
6150
6275
|
}
|
|
6151
6276
|
| {
|
|
@@ -6174,7 +6299,7 @@ declare const editorMachine: StateMachine<
|
|
|
6174
6299
|
value: Array<PortableTextBlock> | undefined
|
|
6175
6300
|
internalDrag?: {
|
|
6176
6301
|
ghost?: HTMLElement
|
|
6177
|
-
origin: EventPosition
|
|
6302
|
+
origin: Pick<EventPosition, 'selection'>
|
|
6178
6303
|
}
|
|
6179
6304
|
},
|
|
6180
6305
|
{
|
|
@@ -6239,6 +6364,10 @@ declare const editorMachine: StateMachine<
|
|
|
6239
6364
|
| {
|
|
6240
6365
|
type: 'decorator.toggle'
|
|
6241
6366
|
decorator: string
|
|
6367
|
+
offsets?: {
|
|
6368
|
+
anchor: BlockOffset_2
|
|
6369
|
+
focus: BlockOffset_2
|
|
6370
|
+
}
|
|
6242
6371
|
}
|
|
6243
6372
|
| {
|
|
6244
6373
|
type: 'delete'
|
|
@@ -6383,22 +6512,26 @@ declare const editorMachine: StateMachine<
|
|
|
6383
6512
|
mimeType: `${string}/${string}`
|
|
6384
6513
|
reason: string
|
|
6385
6514
|
} & {
|
|
6386
|
-
originEvent:
|
|
6387
|
-
|
|
6388
|
-
|
|
6389
|
-
|
|
6390
|
-
|
|
6515
|
+
originEvent:
|
|
6516
|
+
| PickFromUnion_2<
|
|
6517
|
+
NativeBehaviorEvent,
|
|
6518
|
+
'type',
|
|
6519
|
+
'drag.drop' | 'clipboard.paste'
|
|
6520
|
+
>
|
|
6521
|
+
| InputBehaviorEvent_2
|
|
6391
6522
|
})
|
|
6392
6523
|
| ({
|
|
6393
6524
|
type: 'deserialization.success'
|
|
6394
6525
|
data: Array<PortableTextBlock>
|
|
6395
6526
|
mimeType: `${string}/${string}`
|
|
6396
6527
|
} & {
|
|
6397
|
-
originEvent:
|
|
6398
|
-
|
|
6399
|
-
|
|
6400
|
-
|
|
6401
|
-
|
|
6528
|
+
originEvent:
|
|
6529
|
+
| PickFromUnion_2<
|
|
6530
|
+
NativeBehaviorEvent,
|
|
6531
|
+
'type',
|
|
6532
|
+
'drag.drop' | 'clipboard.paste'
|
|
6533
|
+
>
|
|
6534
|
+
| InputBehaviorEvent_2
|
|
6402
6535
|
})
|
|
6403
6536
|
| {
|
|
6404
6537
|
type: 'serialization.success'
|
|
@@ -6543,7 +6676,7 @@ declare const editorMachine: StateMachine<
|
|
|
6543
6676
|
}
|
|
6544
6677
|
| {
|
|
6545
6678
|
type: 'dragstart'
|
|
6546
|
-
origin: EventPosition
|
|
6679
|
+
origin: Pick<EventPosition, 'selection'>
|
|
6547
6680
|
ghost?: HTMLElement
|
|
6548
6681
|
}
|
|
6549
6682
|
| {
|
|
@@ -6615,6 +6748,10 @@ declare const editorMachine: StateMachine<
|
|
|
6615
6748
|
| {
|
|
6616
6749
|
type: 'decorator.toggle'
|
|
6617
6750
|
decorator: string
|
|
6751
|
+
offsets?: {
|
|
6752
|
+
anchor: BlockOffset_2
|
|
6753
|
+
focus: BlockOffset_2
|
|
6754
|
+
}
|
|
6618
6755
|
}
|
|
6619
6756
|
| {
|
|
6620
6757
|
type: 'delete'
|
|
@@ -6759,22 +6896,26 @@ declare const editorMachine: StateMachine<
|
|
|
6759
6896
|
mimeType: `${string}/${string}`
|
|
6760
6897
|
reason: string
|
|
6761
6898
|
} & {
|
|
6762
|
-
originEvent:
|
|
6763
|
-
|
|
6764
|
-
|
|
6765
|
-
|
|
6766
|
-
|
|
6899
|
+
originEvent:
|
|
6900
|
+
| PickFromUnion_2<
|
|
6901
|
+
NativeBehaviorEvent,
|
|
6902
|
+
'type',
|
|
6903
|
+
'drag.drop' | 'clipboard.paste'
|
|
6904
|
+
>
|
|
6905
|
+
| InputBehaviorEvent_2
|
|
6767
6906
|
})
|
|
6768
6907
|
| ({
|
|
6769
6908
|
type: 'deserialization.success'
|
|
6770
6909
|
data: Array<PortableTextBlock>
|
|
6771
6910
|
mimeType: `${string}/${string}`
|
|
6772
6911
|
} & {
|
|
6773
|
-
originEvent:
|
|
6774
|
-
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
|
|
6912
|
+
originEvent:
|
|
6913
|
+
| PickFromUnion_2<
|
|
6914
|
+
NativeBehaviorEvent,
|
|
6915
|
+
'type',
|
|
6916
|
+
'drag.drop' | 'clipboard.paste'
|
|
6917
|
+
>
|
|
6918
|
+
| InputBehaviorEvent_2
|
|
6778
6919
|
})
|
|
6779
6920
|
| {
|
|
6780
6921
|
type: 'serialization.success'
|
|
@@ -6864,7 +7005,7 @@ declare const editorMachine: StateMachine<
|
|
|
6864
7005
|
value: Array<PortableTextBlock> | undefined
|
|
6865
7006
|
internalDrag?: {
|
|
6866
7007
|
ghost?: HTMLElement
|
|
6867
|
-
origin: EventPosition
|
|
7008
|
+
origin: Pick<EventPosition, 'selection'>
|
|
6868
7009
|
}
|
|
6869
7010
|
},
|
|
6870
7011
|
{
|
|
@@ -6929,6 +7070,10 @@ declare const editorMachine: StateMachine<
|
|
|
6929
7070
|
| {
|
|
6930
7071
|
type: 'decorator.toggle'
|
|
6931
7072
|
decorator: string
|
|
7073
|
+
offsets?: {
|
|
7074
|
+
anchor: BlockOffset_2
|
|
7075
|
+
focus: BlockOffset_2
|
|
7076
|
+
}
|
|
6932
7077
|
}
|
|
6933
7078
|
| {
|
|
6934
7079
|
type: 'delete'
|
|
@@ -7073,22 +7218,26 @@ declare const editorMachine: StateMachine<
|
|
|
7073
7218
|
mimeType: `${string}/${string}`
|
|
7074
7219
|
reason: string
|
|
7075
7220
|
} & {
|
|
7076
|
-
originEvent:
|
|
7077
|
-
|
|
7078
|
-
|
|
7079
|
-
|
|
7080
|
-
|
|
7221
|
+
originEvent:
|
|
7222
|
+
| PickFromUnion_2<
|
|
7223
|
+
NativeBehaviorEvent,
|
|
7224
|
+
'type',
|
|
7225
|
+
'drag.drop' | 'clipboard.paste'
|
|
7226
|
+
>
|
|
7227
|
+
| InputBehaviorEvent_2
|
|
7081
7228
|
})
|
|
7082
7229
|
| ({
|
|
7083
7230
|
type: 'deserialization.success'
|
|
7084
7231
|
data: Array<PortableTextBlock>
|
|
7085
7232
|
mimeType: `${string}/${string}`
|
|
7086
7233
|
} & {
|
|
7087
|
-
originEvent:
|
|
7088
|
-
|
|
7089
|
-
|
|
7090
|
-
|
|
7091
|
-
|
|
7234
|
+
originEvent:
|
|
7235
|
+
| PickFromUnion_2<
|
|
7236
|
+
NativeBehaviorEvent,
|
|
7237
|
+
'type',
|
|
7238
|
+
'drag.drop' | 'clipboard.paste'
|
|
7239
|
+
>
|
|
7240
|
+
| InputBehaviorEvent_2
|
|
7092
7241
|
})
|
|
7093
7242
|
| {
|
|
7094
7243
|
type: 'serialization.success'
|
|
@@ -7233,7 +7382,7 @@ declare const editorMachine: StateMachine<
|
|
|
7233
7382
|
}
|
|
7234
7383
|
| {
|
|
7235
7384
|
type: 'dragstart'
|
|
7236
|
-
origin: EventPosition
|
|
7385
|
+
origin: Pick<EventPosition, 'selection'>
|
|
7237
7386
|
ghost?: HTMLElement
|
|
7238
7387
|
}
|
|
7239
7388
|
| {
|
|
@@ -7305,6 +7454,10 @@ declare const editorMachine: StateMachine<
|
|
|
7305
7454
|
| {
|
|
7306
7455
|
type: 'decorator.toggle'
|
|
7307
7456
|
decorator: string
|
|
7457
|
+
offsets?: {
|
|
7458
|
+
anchor: BlockOffset_2
|
|
7459
|
+
focus: BlockOffset_2
|
|
7460
|
+
}
|
|
7308
7461
|
}
|
|
7309
7462
|
| {
|
|
7310
7463
|
type: 'delete'
|
|
@@ -7449,22 +7602,26 @@ declare const editorMachine: StateMachine<
|
|
|
7449
7602
|
mimeType: `${string}/${string}`
|
|
7450
7603
|
reason: string
|
|
7451
7604
|
} & {
|
|
7452
|
-
originEvent:
|
|
7453
|
-
|
|
7454
|
-
|
|
7455
|
-
|
|
7456
|
-
|
|
7605
|
+
originEvent:
|
|
7606
|
+
| PickFromUnion_2<
|
|
7607
|
+
NativeBehaviorEvent,
|
|
7608
|
+
'type',
|
|
7609
|
+
'drag.drop' | 'clipboard.paste'
|
|
7610
|
+
>
|
|
7611
|
+
| InputBehaviorEvent_2
|
|
7457
7612
|
})
|
|
7458
7613
|
| ({
|
|
7459
7614
|
type: 'deserialization.success'
|
|
7460
7615
|
data: Array<PortableTextBlock>
|
|
7461
7616
|
mimeType: `${string}/${string}`
|
|
7462
7617
|
} & {
|
|
7463
|
-
originEvent:
|
|
7464
|
-
|
|
7465
|
-
|
|
7466
|
-
|
|
7467
|
-
|
|
7618
|
+
originEvent:
|
|
7619
|
+
| PickFromUnion_2<
|
|
7620
|
+
NativeBehaviorEvent,
|
|
7621
|
+
'type',
|
|
7622
|
+
'drag.drop' | 'clipboard.paste'
|
|
7623
|
+
>
|
|
7624
|
+
| InputBehaviorEvent_2
|
|
7468
7625
|
})
|
|
7469
7626
|
| {
|
|
7470
7627
|
type: 'serialization.success'
|
|
@@ -7553,7 +7710,7 @@ declare const editorMachine: StateMachine<
|
|
|
7553
7710
|
value: Array<PortableTextBlock> | undefined
|
|
7554
7711
|
internalDrag?: {
|
|
7555
7712
|
ghost?: HTMLElement
|
|
7556
|
-
origin: EventPosition
|
|
7713
|
+
origin: Pick<EventPosition, 'selection'>
|
|
7557
7714
|
}
|
|
7558
7715
|
},
|
|
7559
7716
|
{
|
|
@@ -7617,6 +7774,10 @@ declare const editorMachine: StateMachine<
|
|
|
7617
7774
|
| {
|
|
7618
7775
|
type: 'decorator.toggle'
|
|
7619
7776
|
decorator: string
|
|
7777
|
+
offsets?: {
|
|
7778
|
+
anchor: BlockOffset_2
|
|
7779
|
+
focus: BlockOffset_2
|
|
7780
|
+
}
|
|
7620
7781
|
}
|
|
7621
7782
|
| {
|
|
7622
7783
|
type: 'delete'
|
|
@@ -7761,22 +7922,26 @@ declare const editorMachine: StateMachine<
|
|
|
7761
7922
|
mimeType: `${string}/${string}`
|
|
7762
7923
|
reason: string
|
|
7763
7924
|
} & {
|
|
7764
|
-
originEvent:
|
|
7765
|
-
|
|
7766
|
-
|
|
7767
|
-
|
|
7768
|
-
|
|
7925
|
+
originEvent:
|
|
7926
|
+
| PickFromUnion_2<
|
|
7927
|
+
NativeBehaviorEvent,
|
|
7928
|
+
'type',
|
|
7929
|
+
'drag.drop' | 'clipboard.paste'
|
|
7930
|
+
>
|
|
7931
|
+
| InputBehaviorEvent_2
|
|
7769
7932
|
})
|
|
7770
7933
|
| ({
|
|
7771
7934
|
type: 'deserialization.success'
|
|
7772
7935
|
data: Array<PortableTextBlock>
|
|
7773
7936
|
mimeType: `${string}/${string}`
|
|
7774
7937
|
} & {
|
|
7775
|
-
originEvent:
|
|
7776
|
-
|
|
7777
|
-
|
|
7778
|
-
|
|
7779
|
-
|
|
7938
|
+
originEvent:
|
|
7939
|
+
| PickFromUnion_2<
|
|
7940
|
+
NativeBehaviorEvent,
|
|
7941
|
+
'type',
|
|
7942
|
+
'drag.drop' | 'clipboard.paste'
|
|
7943
|
+
>
|
|
7944
|
+
| InputBehaviorEvent_2
|
|
7780
7945
|
})
|
|
7781
7946
|
| {
|
|
7782
7947
|
type: 'serialization.success'
|
|
@@ -7921,7 +8086,7 @@ declare const editorMachine: StateMachine<
|
|
|
7921
8086
|
}
|
|
7922
8087
|
| {
|
|
7923
8088
|
type: 'dragstart'
|
|
7924
|
-
origin: EventPosition
|
|
8089
|
+
origin: Pick<EventPosition, 'selection'>
|
|
7925
8090
|
ghost?: HTMLElement
|
|
7926
8091
|
}
|
|
7927
8092
|
| {
|
|
@@ -7993,6 +8158,10 @@ declare const editorMachine: StateMachine<
|
|
|
7993
8158
|
| {
|
|
7994
8159
|
type: 'decorator.toggle'
|
|
7995
8160
|
decorator: string
|
|
8161
|
+
offsets?: {
|
|
8162
|
+
anchor: BlockOffset_2
|
|
8163
|
+
focus: BlockOffset_2
|
|
8164
|
+
}
|
|
7996
8165
|
}
|
|
7997
8166
|
| {
|
|
7998
8167
|
type: 'delete'
|
|
@@ -8137,22 +8306,26 @@ declare const editorMachine: StateMachine<
|
|
|
8137
8306
|
mimeType: `${string}/${string}`
|
|
8138
8307
|
reason: string
|
|
8139
8308
|
} & {
|
|
8140
|
-
originEvent:
|
|
8141
|
-
|
|
8142
|
-
|
|
8143
|
-
|
|
8144
|
-
|
|
8309
|
+
originEvent:
|
|
8310
|
+
| PickFromUnion_2<
|
|
8311
|
+
NativeBehaviorEvent,
|
|
8312
|
+
'type',
|
|
8313
|
+
'drag.drop' | 'clipboard.paste'
|
|
8314
|
+
>
|
|
8315
|
+
| InputBehaviorEvent_2
|
|
8145
8316
|
})
|
|
8146
8317
|
| ({
|
|
8147
8318
|
type: 'deserialization.success'
|
|
8148
8319
|
data: Array<PortableTextBlock>
|
|
8149
8320
|
mimeType: `${string}/${string}`
|
|
8150
8321
|
} & {
|
|
8151
|
-
originEvent:
|
|
8152
|
-
|
|
8153
|
-
|
|
8154
|
-
|
|
8155
|
-
|
|
8322
|
+
originEvent:
|
|
8323
|
+
| PickFromUnion_2<
|
|
8324
|
+
NativeBehaviorEvent,
|
|
8325
|
+
'type',
|
|
8326
|
+
'drag.drop' | 'clipboard.paste'
|
|
8327
|
+
>
|
|
8328
|
+
| InputBehaviorEvent_2
|
|
8156
8329
|
})
|
|
8157
8330
|
| {
|
|
8158
8331
|
type: 'serialization.success'
|
|
@@ -8241,7 +8414,7 @@ declare const editorMachine: StateMachine<
|
|
|
8241
8414
|
value: Array<PortableTextBlock> | undefined
|
|
8242
8415
|
internalDrag?: {
|
|
8243
8416
|
ghost?: HTMLElement
|
|
8244
|
-
origin: EventPosition
|
|
8417
|
+
origin: Pick<EventPosition, 'selection'>
|
|
8245
8418
|
}
|
|
8246
8419
|
},
|
|
8247
8420
|
{
|
|
@@ -8306,6 +8479,10 @@ declare const editorMachine: StateMachine<
|
|
|
8306
8479
|
| {
|
|
8307
8480
|
type: 'decorator.toggle'
|
|
8308
8481
|
decorator: string
|
|
8482
|
+
offsets?: {
|
|
8483
|
+
anchor: BlockOffset_2
|
|
8484
|
+
focus: BlockOffset_2
|
|
8485
|
+
}
|
|
8309
8486
|
}
|
|
8310
8487
|
| {
|
|
8311
8488
|
type: 'delete'
|
|
@@ -8450,22 +8627,26 @@ declare const editorMachine: StateMachine<
|
|
|
8450
8627
|
mimeType: `${string}/${string}`
|
|
8451
8628
|
reason: string
|
|
8452
8629
|
} & {
|
|
8453
|
-
originEvent:
|
|
8454
|
-
|
|
8455
|
-
|
|
8456
|
-
|
|
8457
|
-
|
|
8630
|
+
originEvent:
|
|
8631
|
+
| PickFromUnion_2<
|
|
8632
|
+
NativeBehaviorEvent,
|
|
8633
|
+
'type',
|
|
8634
|
+
'drag.drop' | 'clipboard.paste'
|
|
8635
|
+
>
|
|
8636
|
+
| InputBehaviorEvent_2
|
|
8458
8637
|
})
|
|
8459
8638
|
| ({
|
|
8460
8639
|
type: 'deserialization.success'
|
|
8461
8640
|
data: Array<PortableTextBlock>
|
|
8462
8641
|
mimeType: `${string}/${string}`
|
|
8463
8642
|
} & {
|
|
8464
|
-
originEvent:
|
|
8465
|
-
|
|
8466
|
-
|
|
8467
|
-
|
|
8468
|
-
|
|
8643
|
+
originEvent:
|
|
8644
|
+
| PickFromUnion_2<
|
|
8645
|
+
NativeBehaviorEvent,
|
|
8646
|
+
'type',
|
|
8647
|
+
'drag.drop' | 'clipboard.paste'
|
|
8648
|
+
>
|
|
8649
|
+
| InputBehaviorEvent_2
|
|
8469
8650
|
})
|
|
8470
8651
|
| {
|
|
8471
8652
|
type: 'serialization.success'
|
|
@@ -8610,7 +8791,7 @@ declare const editorMachine: StateMachine<
|
|
|
8610
8791
|
}
|
|
8611
8792
|
| {
|
|
8612
8793
|
type: 'dragstart'
|
|
8613
|
-
origin: EventPosition
|
|
8794
|
+
origin: Pick<EventPosition, 'selection'>
|
|
8614
8795
|
ghost?: HTMLElement
|
|
8615
8796
|
}
|
|
8616
8797
|
| {
|
|
@@ -8682,6 +8863,10 @@ declare const editorMachine: StateMachine<
|
|
|
8682
8863
|
| {
|
|
8683
8864
|
type: 'decorator.toggle'
|
|
8684
8865
|
decorator: string
|
|
8866
|
+
offsets?: {
|
|
8867
|
+
anchor: BlockOffset_2
|
|
8868
|
+
focus: BlockOffset_2
|
|
8869
|
+
}
|
|
8685
8870
|
}
|
|
8686
8871
|
| {
|
|
8687
8872
|
type: 'delete'
|
|
@@ -8826,22 +9011,26 @@ declare const editorMachine: StateMachine<
|
|
|
8826
9011
|
mimeType: `${string}/${string}`
|
|
8827
9012
|
reason: string
|
|
8828
9013
|
} & {
|
|
8829
|
-
originEvent:
|
|
8830
|
-
|
|
8831
|
-
|
|
8832
|
-
|
|
8833
|
-
|
|
9014
|
+
originEvent:
|
|
9015
|
+
| PickFromUnion_2<
|
|
9016
|
+
NativeBehaviorEvent,
|
|
9017
|
+
'type',
|
|
9018
|
+
'drag.drop' | 'clipboard.paste'
|
|
9019
|
+
>
|
|
9020
|
+
| InputBehaviorEvent_2
|
|
8834
9021
|
})
|
|
8835
9022
|
| ({
|
|
8836
9023
|
type: 'deserialization.success'
|
|
8837
9024
|
data: Array<PortableTextBlock>
|
|
8838
9025
|
mimeType: `${string}/${string}`
|
|
8839
9026
|
} & {
|
|
8840
|
-
originEvent:
|
|
8841
|
-
|
|
8842
|
-
|
|
8843
|
-
|
|
8844
|
-
|
|
9027
|
+
originEvent:
|
|
9028
|
+
| PickFromUnion_2<
|
|
9029
|
+
NativeBehaviorEvent,
|
|
9030
|
+
'type',
|
|
9031
|
+
'drag.drop' | 'clipboard.paste'
|
|
9032
|
+
>
|
|
9033
|
+
| InputBehaviorEvent_2
|
|
8845
9034
|
})
|
|
8846
9035
|
| {
|
|
8847
9036
|
type: 'serialization.success'
|
|
@@ -8936,7 +9125,7 @@ declare const editorMachine: StateMachine<
|
|
|
8936
9125
|
value: Array<PortableTextBlock> | undefined
|
|
8937
9126
|
internalDrag?: {
|
|
8938
9127
|
ghost?: HTMLElement
|
|
8939
|
-
origin: EventPosition
|
|
9128
|
+
origin: Pick<EventPosition, 'selection'>
|
|
8940
9129
|
}
|
|
8941
9130
|
},
|
|
8942
9131
|
PatchesEvent,
|
|
@@ -8998,6 +9187,10 @@ declare const editorMachine: StateMachine<
|
|
|
8998
9187
|
| {
|
|
8999
9188
|
type: 'decorator.toggle'
|
|
9000
9189
|
decorator: string
|
|
9190
|
+
offsets?: {
|
|
9191
|
+
anchor: BlockOffset_2
|
|
9192
|
+
focus: BlockOffset_2
|
|
9193
|
+
}
|
|
9001
9194
|
}
|
|
9002
9195
|
| {
|
|
9003
9196
|
type: 'delete'
|
|
@@ -9142,22 +9335,26 @@ declare const editorMachine: StateMachine<
|
|
|
9142
9335
|
mimeType: `${string}/${string}`
|
|
9143
9336
|
reason: string
|
|
9144
9337
|
} & {
|
|
9145
|
-
originEvent:
|
|
9146
|
-
|
|
9147
|
-
|
|
9148
|
-
|
|
9149
|
-
|
|
9338
|
+
originEvent:
|
|
9339
|
+
| PickFromUnion_2<
|
|
9340
|
+
NativeBehaviorEvent,
|
|
9341
|
+
'type',
|
|
9342
|
+
'drag.drop' | 'clipboard.paste'
|
|
9343
|
+
>
|
|
9344
|
+
| InputBehaviorEvent_2
|
|
9150
9345
|
})
|
|
9151
9346
|
| ({
|
|
9152
9347
|
type: 'deserialization.success'
|
|
9153
9348
|
data: Array<PortableTextBlock>
|
|
9154
9349
|
mimeType: `${string}/${string}`
|
|
9155
9350
|
} & {
|
|
9156
|
-
originEvent:
|
|
9157
|
-
|
|
9158
|
-
|
|
9159
|
-
|
|
9160
|
-
|
|
9351
|
+
originEvent:
|
|
9352
|
+
| PickFromUnion_2<
|
|
9353
|
+
NativeBehaviorEvent,
|
|
9354
|
+
'type',
|
|
9355
|
+
'drag.drop' | 'clipboard.paste'
|
|
9356
|
+
>
|
|
9357
|
+
| InputBehaviorEvent_2
|
|
9161
9358
|
})
|
|
9162
9359
|
| {
|
|
9163
9360
|
type: 'serialization.success'
|
|
@@ -9302,7 +9499,7 @@ declare const editorMachine: StateMachine<
|
|
|
9302
9499
|
}
|
|
9303
9500
|
| {
|
|
9304
9501
|
type: 'dragstart'
|
|
9305
|
-
origin: EventPosition
|
|
9502
|
+
origin: Pick<EventPosition, 'selection'>
|
|
9306
9503
|
ghost?: HTMLElement
|
|
9307
9504
|
}
|
|
9308
9505
|
| {
|
|
@@ -9374,6 +9571,10 @@ declare const editorMachine: StateMachine<
|
|
|
9374
9571
|
| {
|
|
9375
9572
|
type: 'decorator.toggle'
|
|
9376
9573
|
decorator: string
|
|
9574
|
+
offsets?: {
|
|
9575
|
+
anchor: BlockOffset_2
|
|
9576
|
+
focus: BlockOffset_2
|
|
9577
|
+
}
|
|
9377
9578
|
}
|
|
9378
9579
|
| {
|
|
9379
9580
|
type: 'delete'
|
|
@@ -9518,22 +9719,26 @@ declare const editorMachine: StateMachine<
|
|
|
9518
9719
|
mimeType: `${string}/${string}`
|
|
9519
9720
|
reason: string
|
|
9520
9721
|
} & {
|
|
9521
|
-
originEvent:
|
|
9522
|
-
|
|
9523
|
-
|
|
9524
|
-
|
|
9525
|
-
|
|
9722
|
+
originEvent:
|
|
9723
|
+
| PickFromUnion_2<
|
|
9724
|
+
NativeBehaviorEvent,
|
|
9725
|
+
'type',
|
|
9726
|
+
'drag.drop' | 'clipboard.paste'
|
|
9727
|
+
>
|
|
9728
|
+
| InputBehaviorEvent_2
|
|
9526
9729
|
})
|
|
9527
9730
|
| ({
|
|
9528
9731
|
type: 'deserialization.success'
|
|
9529
9732
|
data: Array<PortableTextBlock>
|
|
9530
9733
|
mimeType: `${string}/${string}`
|
|
9531
9734
|
} & {
|
|
9532
|
-
originEvent:
|
|
9533
|
-
|
|
9534
|
-
|
|
9535
|
-
|
|
9536
|
-
|
|
9735
|
+
originEvent:
|
|
9736
|
+
| PickFromUnion_2<
|
|
9737
|
+
NativeBehaviorEvent,
|
|
9738
|
+
'type',
|
|
9739
|
+
'drag.drop' | 'clipboard.paste'
|
|
9740
|
+
>
|
|
9741
|
+
| InputBehaviorEvent_2
|
|
9537
9742
|
})
|
|
9538
9743
|
| {
|
|
9539
9744
|
type: 'serialization.success'
|
|
@@ -9625,7 +9830,7 @@ declare const editorMachine: StateMachine<
|
|
|
9625
9830
|
value: Array<PortableTextBlock> | undefined
|
|
9626
9831
|
internalDrag?: {
|
|
9627
9832
|
ghost?: HTMLElement
|
|
9628
|
-
origin: EventPosition
|
|
9833
|
+
origin: Pick<EventPosition, 'selection'>
|
|
9629
9834
|
}
|
|
9630
9835
|
},
|
|
9631
9836
|
{
|
|
@@ -9690,6 +9895,10 @@ declare const editorMachine: StateMachine<
|
|
|
9690
9895
|
| {
|
|
9691
9896
|
type: 'decorator.toggle'
|
|
9692
9897
|
decorator: string
|
|
9898
|
+
offsets?: {
|
|
9899
|
+
anchor: BlockOffset_2
|
|
9900
|
+
focus: BlockOffset_2
|
|
9901
|
+
}
|
|
9693
9902
|
}
|
|
9694
9903
|
| {
|
|
9695
9904
|
type: 'delete'
|
|
@@ -9834,22 +10043,26 @@ declare const editorMachine: StateMachine<
|
|
|
9834
10043
|
mimeType: `${string}/${string}`
|
|
9835
10044
|
reason: string
|
|
9836
10045
|
} & {
|
|
9837
|
-
originEvent:
|
|
9838
|
-
|
|
9839
|
-
|
|
9840
|
-
|
|
9841
|
-
|
|
10046
|
+
originEvent:
|
|
10047
|
+
| PickFromUnion_2<
|
|
10048
|
+
NativeBehaviorEvent,
|
|
10049
|
+
'type',
|
|
10050
|
+
'drag.drop' | 'clipboard.paste'
|
|
10051
|
+
>
|
|
10052
|
+
| InputBehaviorEvent_2
|
|
9842
10053
|
})
|
|
9843
10054
|
| ({
|
|
9844
10055
|
type: 'deserialization.success'
|
|
9845
10056
|
data: Array<PortableTextBlock>
|
|
9846
10057
|
mimeType: `${string}/${string}`
|
|
9847
10058
|
} & {
|
|
9848
|
-
originEvent:
|
|
9849
|
-
|
|
9850
|
-
|
|
9851
|
-
|
|
9852
|
-
|
|
10059
|
+
originEvent:
|
|
10060
|
+
| PickFromUnion_2<
|
|
10061
|
+
NativeBehaviorEvent,
|
|
10062
|
+
'type',
|
|
10063
|
+
'drag.drop' | 'clipboard.paste'
|
|
10064
|
+
>
|
|
10065
|
+
| InputBehaviorEvent_2
|
|
9853
10066
|
})
|
|
9854
10067
|
| {
|
|
9855
10068
|
type: 'serialization.success'
|
|
@@ -9994,7 +10207,7 @@ declare const editorMachine: StateMachine<
|
|
|
9994
10207
|
}
|
|
9995
10208
|
| {
|
|
9996
10209
|
type: 'dragstart'
|
|
9997
|
-
origin: EventPosition
|
|
10210
|
+
origin: Pick<EventPosition, 'selection'>
|
|
9998
10211
|
ghost?: HTMLElement
|
|
9999
10212
|
}
|
|
10000
10213
|
| {
|
|
@@ -10028,7 +10241,7 @@ declare const editorMachine: StateMachine<
|
|
|
10028
10241
|
value: Array<PortableTextBlock> | undefined
|
|
10029
10242
|
internalDrag?: {
|
|
10030
10243
|
ghost?: HTMLElement
|
|
10031
|
-
origin: EventPosition
|
|
10244
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10032
10245
|
}
|
|
10033
10246
|
},
|
|
10034
10247
|
{
|
|
@@ -10093,6 +10306,10 @@ declare const editorMachine: StateMachine<
|
|
|
10093
10306
|
| {
|
|
10094
10307
|
type: 'decorator.toggle'
|
|
10095
10308
|
decorator: string
|
|
10309
|
+
offsets?: {
|
|
10310
|
+
anchor: BlockOffset_2
|
|
10311
|
+
focus: BlockOffset_2
|
|
10312
|
+
}
|
|
10096
10313
|
}
|
|
10097
10314
|
| {
|
|
10098
10315
|
type: 'delete'
|
|
@@ -10237,22 +10454,26 @@ declare const editorMachine: StateMachine<
|
|
|
10237
10454
|
mimeType: `${string}/${string}`
|
|
10238
10455
|
reason: string
|
|
10239
10456
|
} & {
|
|
10240
|
-
originEvent:
|
|
10241
|
-
|
|
10242
|
-
|
|
10243
|
-
|
|
10244
|
-
|
|
10457
|
+
originEvent:
|
|
10458
|
+
| PickFromUnion_2<
|
|
10459
|
+
NativeBehaviorEvent,
|
|
10460
|
+
'type',
|
|
10461
|
+
'drag.drop' | 'clipboard.paste'
|
|
10462
|
+
>
|
|
10463
|
+
| InputBehaviorEvent_2
|
|
10245
10464
|
})
|
|
10246
10465
|
| ({
|
|
10247
10466
|
type: 'deserialization.success'
|
|
10248
10467
|
data: Array<PortableTextBlock>
|
|
10249
10468
|
mimeType: `${string}/${string}`
|
|
10250
10469
|
} & {
|
|
10251
|
-
originEvent:
|
|
10252
|
-
|
|
10253
|
-
|
|
10254
|
-
|
|
10255
|
-
|
|
10470
|
+
originEvent:
|
|
10471
|
+
| PickFromUnion_2<
|
|
10472
|
+
NativeBehaviorEvent,
|
|
10473
|
+
'type',
|
|
10474
|
+
'drag.drop' | 'clipboard.paste'
|
|
10475
|
+
>
|
|
10476
|
+
| InputBehaviorEvent_2
|
|
10256
10477
|
})
|
|
10257
10478
|
| {
|
|
10258
10479
|
type: 'serialization.success'
|
|
@@ -10397,7 +10618,7 @@ declare const editorMachine: StateMachine<
|
|
|
10397
10618
|
}
|
|
10398
10619
|
| {
|
|
10399
10620
|
type: 'dragstart'
|
|
10400
|
-
origin: EventPosition
|
|
10621
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10401
10622
|
ghost?: HTMLElement
|
|
10402
10623
|
}
|
|
10403
10624
|
| {
|
|
@@ -10428,7 +10649,7 @@ declare const editorMachine: StateMachine<
|
|
|
10428
10649
|
value: Array<PortableTextBlock> | undefined
|
|
10429
10650
|
internalDrag?: {
|
|
10430
10651
|
ghost?: HTMLElement
|
|
10431
|
-
origin: EventPosition
|
|
10652
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10432
10653
|
}
|
|
10433
10654
|
},
|
|
10434
10655
|
{
|
|
@@ -10493,6 +10714,10 @@ declare const editorMachine: StateMachine<
|
|
|
10493
10714
|
| {
|
|
10494
10715
|
type: 'decorator.toggle'
|
|
10495
10716
|
decorator: string
|
|
10717
|
+
offsets?: {
|
|
10718
|
+
anchor: BlockOffset_2
|
|
10719
|
+
focus: BlockOffset_2
|
|
10720
|
+
}
|
|
10496
10721
|
}
|
|
10497
10722
|
| {
|
|
10498
10723
|
type: 'delete'
|
|
@@ -10637,22 +10862,26 @@ declare const editorMachine: StateMachine<
|
|
|
10637
10862
|
mimeType: `${string}/${string}`
|
|
10638
10863
|
reason: string
|
|
10639
10864
|
} & {
|
|
10640
|
-
originEvent:
|
|
10641
|
-
|
|
10642
|
-
|
|
10643
|
-
|
|
10644
|
-
|
|
10865
|
+
originEvent:
|
|
10866
|
+
| PickFromUnion_2<
|
|
10867
|
+
NativeBehaviorEvent,
|
|
10868
|
+
'type',
|
|
10869
|
+
'drag.drop' | 'clipboard.paste'
|
|
10870
|
+
>
|
|
10871
|
+
| InputBehaviorEvent_2
|
|
10645
10872
|
})
|
|
10646
10873
|
| ({
|
|
10647
10874
|
type: 'deserialization.success'
|
|
10648
10875
|
data: Array<PortableTextBlock>
|
|
10649
10876
|
mimeType: `${string}/${string}`
|
|
10650
10877
|
} & {
|
|
10651
|
-
originEvent:
|
|
10652
|
-
|
|
10653
|
-
|
|
10654
|
-
|
|
10655
|
-
|
|
10878
|
+
originEvent:
|
|
10879
|
+
| PickFromUnion_2<
|
|
10880
|
+
NativeBehaviorEvent,
|
|
10881
|
+
'type',
|
|
10882
|
+
'drag.drop' | 'clipboard.paste'
|
|
10883
|
+
>
|
|
10884
|
+
| InputBehaviorEvent_2
|
|
10656
10885
|
})
|
|
10657
10886
|
| {
|
|
10658
10887
|
type: 'serialization.success'
|
|
@@ -10797,7 +11026,7 @@ declare const editorMachine: StateMachine<
|
|
|
10797
11026
|
}
|
|
10798
11027
|
| {
|
|
10799
11028
|
type: 'dragstart'
|
|
10800
|
-
origin: EventPosition
|
|
11029
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10801
11030
|
ghost?: HTMLElement
|
|
10802
11031
|
}
|
|
10803
11032
|
| {
|
|
@@ -10840,7 +11069,7 @@ declare const editorMachine: StateMachine<
|
|
|
10840
11069
|
value: Array<PortableTextBlock> | undefined
|
|
10841
11070
|
internalDrag?: {
|
|
10842
11071
|
ghost?: HTMLElement
|
|
10843
|
-
origin: EventPosition
|
|
11072
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10844
11073
|
}
|
|
10845
11074
|
},
|
|
10846
11075
|
{
|
|
@@ -10881,7 +11110,7 @@ declare const editorMachine: StateMachine<
|
|
|
10881
11110
|
value: Array<PortableTextBlock> | undefined
|
|
10882
11111
|
internalDrag?: {
|
|
10883
11112
|
ghost?: HTMLElement
|
|
10884
|
-
origin: EventPosition
|
|
11113
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10885
11114
|
}
|
|
10886
11115
|
},
|
|
10887
11116
|
{
|
|
@@ -10913,7 +11142,7 @@ declare const editorMachine: StateMachine<
|
|
|
10913
11142
|
value: Array<PortableTextBlock> | undefined
|
|
10914
11143
|
internalDrag?: {
|
|
10915
11144
|
ghost?: HTMLElement
|
|
10916
|
-
origin: EventPosition
|
|
11145
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10917
11146
|
}
|
|
10918
11147
|
},
|
|
10919
11148
|
{
|
|
@@ -10946,7 +11175,7 @@ declare const editorMachine: StateMachine<
|
|
|
10946
11175
|
value: Array<PortableTextBlock> | undefined
|
|
10947
11176
|
internalDrag?: {
|
|
10948
11177
|
ghost?: HTMLElement
|
|
10949
|
-
origin: EventPosition
|
|
11178
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10950
11179
|
}
|
|
10951
11180
|
},
|
|
10952
11181
|
{
|
|
@@ -10977,7 +11206,7 @@ declare const editorMachine: StateMachine<
|
|
|
10977
11206
|
value: Array<PortableTextBlock> | undefined
|
|
10978
11207
|
internalDrag?: {
|
|
10979
11208
|
ghost?: HTMLElement
|
|
10980
|
-
origin: EventPosition
|
|
11209
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10981
11210
|
}
|
|
10982
11211
|
},
|
|
10983
11212
|
| {
|
|
@@ -11062,6 +11291,10 @@ declare const editorMachine: StateMachine<
|
|
|
11062
11291
|
| {
|
|
11063
11292
|
type: 'decorator.toggle'
|
|
11064
11293
|
decorator: string
|
|
11294
|
+
offsets?: {
|
|
11295
|
+
anchor: BlockOffset_2
|
|
11296
|
+
focus: BlockOffset_2
|
|
11297
|
+
}
|
|
11065
11298
|
}
|
|
11066
11299
|
| {
|
|
11067
11300
|
type: 'delete'
|
|
@@ -11206,22 +11439,26 @@ declare const editorMachine: StateMachine<
|
|
|
11206
11439
|
mimeType: `${string}/${string}`
|
|
11207
11440
|
reason: string
|
|
11208
11441
|
} & {
|
|
11209
|
-
originEvent:
|
|
11210
|
-
|
|
11211
|
-
|
|
11212
|
-
|
|
11213
|
-
|
|
11442
|
+
originEvent:
|
|
11443
|
+
| PickFromUnion_2<
|
|
11444
|
+
NativeBehaviorEvent,
|
|
11445
|
+
'type',
|
|
11446
|
+
'drag.drop' | 'clipboard.paste'
|
|
11447
|
+
>
|
|
11448
|
+
| InputBehaviorEvent_2
|
|
11214
11449
|
})
|
|
11215
11450
|
| ({
|
|
11216
11451
|
type: 'deserialization.success'
|
|
11217
11452
|
data: Array<PortableTextBlock>
|
|
11218
11453
|
mimeType: `${string}/${string}`
|
|
11219
11454
|
} & {
|
|
11220
|
-
originEvent:
|
|
11221
|
-
|
|
11222
|
-
|
|
11223
|
-
|
|
11224
|
-
|
|
11455
|
+
originEvent:
|
|
11456
|
+
| PickFromUnion_2<
|
|
11457
|
+
NativeBehaviorEvent,
|
|
11458
|
+
'type',
|
|
11459
|
+
'drag.drop' | 'clipboard.paste'
|
|
11460
|
+
>
|
|
11461
|
+
| InputBehaviorEvent_2
|
|
11225
11462
|
})
|
|
11226
11463
|
| {
|
|
11227
11464
|
type: 'serialization.success'
|
|
@@ -11366,7 +11603,7 @@ declare const editorMachine: StateMachine<
|
|
|
11366
11603
|
}
|
|
11367
11604
|
| {
|
|
11368
11605
|
type: 'dragstart'
|
|
11369
|
-
origin: EventPosition
|
|
11606
|
+
origin: Pick<EventPosition, 'selection'>
|
|
11370
11607
|
ghost?: HTMLElement
|
|
11371
11608
|
}
|
|
11372
11609
|
| {
|
|
@@ -11438,6 +11675,10 @@ declare const editorMachine: StateMachine<
|
|
|
11438
11675
|
| {
|
|
11439
11676
|
type: 'decorator.toggle'
|
|
11440
11677
|
decorator: string
|
|
11678
|
+
offsets?: {
|
|
11679
|
+
anchor: BlockOffset_2
|
|
11680
|
+
focus: BlockOffset_2
|
|
11681
|
+
}
|
|
11441
11682
|
}
|
|
11442
11683
|
| {
|
|
11443
11684
|
type: 'delete'
|
|
@@ -11582,22 +11823,26 @@ declare const editorMachine: StateMachine<
|
|
|
11582
11823
|
mimeType: `${string}/${string}`
|
|
11583
11824
|
reason: string
|
|
11584
11825
|
} & {
|
|
11585
|
-
originEvent:
|
|
11586
|
-
|
|
11587
|
-
|
|
11588
|
-
|
|
11589
|
-
|
|
11826
|
+
originEvent:
|
|
11827
|
+
| PickFromUnion_2<
|
|
11828
|
+
NativeBehaviorEvent,
|
|
11829
|
+
'type',
|
|
11830
|
+
'drag.drop' | 'clipboard.paste'
|
|
11831
|
+
>
|
|
11832
|
+
| InputBehaviorEvent_2
|
|
11590
11833
|
})
|
|
11591
11834
|
| ({
|
|
11592
11835
|
type: 'deserialization.success'
|
|
11593
11836
|
data: Array<PortableTextBlock>
|
|
11594
11837
|
mimeType: `${string}/${string}`
|
|
11595
11838
|
} & {
|
|
11596
|
-
originEvent:
|
|
11597
|
-
|
|
11598
|
-
|
|
11599
|
-
|
|
11600
|
-
|
|
11839
|
+
originEvent:
|
|
11840
|
+
| PickFromUnion_2<
|
|
11841
|
+
NativeBehaviorEvent,
|
|
11842
|
+
'type',
|
|
11843
|
+
'drag.drop' | 'clipboard.paste'
|
|
11844
|
+
>
|
|
11845
|
+
| InputBehaviorEvent_2
|
|
11601
11846
|
})
|
|
11602
11847
|
| {
|
|
11603
11848
|
type: 'serialization.success'
|
|
@@ -11686,7 +11931,7 @@ declare const editorMachine: StateMachine<
|
|
|
11686
11931
|
value: Array<PortableTextBlock> | undefined
|
|
11687
11932
|
internalDrag?: {
|
|
11688
11933
|
ghost?: HTMLElement
|
|
11689
|
-
origin: EventPosition
|
|
11934
|
+
origin: Pick<EventPosition, 'selection'>
|
|
11690
11935
|
}
|
|
11691
11936
|
},
|
|
11692
11937
|
| {
|
|
@@ -11757,6 +12002,10 @@ declare const editorMachine: StateMachine<
|
|
|
11757
12002
|
| {
|
|
11758
12003
|
type: 'decorator.toggle'
|
|
11759
12004
|
decorator: string
|
|
12005
|
+
offsets?: {
|
|
12006
|
+
anchor: BlockOffset_2
|
|
12007
|
+
focus: BlockOffset_2
|
|
12008
|
+
}
|
|
11760
12009
|
}
|
|
11761
12010
|
| {
|
|
11762
12011
|
type: 'delete'
|
|
@@ -11901,22 +12150,26 @@ declare const editorMachine: StateMachine<
|
|
|
11901
12150
|
mimeType: `${string}/${string}`
|
|
11902
12151
|
reason: string
|
|
11903
12152
|
} & {
|
|
11904
|
-
originEvent:
|
|
11905
|
-
|
|
11906
|
-
|
|
11907
|
-
|
|
11908
|
-
|
|
12153
|
+
originEvent:
|
|
12154
|
+
| PickFromUnion_2<
|
|
12155
|
+
NativeBehaviorEvent,
|
|
12156
|
+
'type',
|
|
12157
|
+
'drag.drop' | 'clipboard.paste'
|
|
12158
|
+
>
|
|
12159
|
+
| InputBehaviorEvent_2
|
|
11909
12160
|
})
|
|
11910
12161
|
| ({
|
|
11911
12162
|
type: 'deserialization.success'
|
|
11912
12163
|
data: Array<PortableTextBlock>
|
|
11913
12164
|
mimeType: `${string}/${string}`
|
|
11914
12165
|
} & {
|
|
11915
|
-
originEvent:
|
|
11916
|
-
|
|
11917
|
-
|
|
11918
|
-
|
|
11919
|
-
|
|
12166
|
+
originEvent:
|
|
12167
|
+
| PickFromUnion_2<
|
|
12168
|
+
NativeBehaviorEvent,
|
|
12169
|
+
'type',
|
|
12170
|
+
'drag.drop' | 'clipboard.paste'
|
|
12171
|
+
>
|
|
12172
|
+
| InputBehaviorEvent_2
|
|
11920
12173
|
})
|
|
11921
12174
|
| {
|
|
11922
12175
|
type: 'serialization.success'
|
|
@@ -12061,7 +12314,7 @@ declare const editorMachine: StateMachine<
|
|
|
12061
12314
|
}
|
|
12062
12315
|
| {
|
|
12063
12316
|
type: 'dragstart'
|
|
12064
|
-
origin: EventPosition
|
|
12317
|
+
origin: Pick<EventPosition, 'selection'>
|
|
12065
12318
|
ghost?: HTMLElement
|
|
12066
12319
|
}
|
|
12067
12320
|
| {
|
|
@@ -12133,6 +12386,10 @@ declare const editorMachine: StateMachine<
|
|
|
12133
12386
|
| {
|
|
12134
12387
|
type: 'decorator.toggle'
|
|
12135
12388
|
decorator: string
|
|
12389
|
+
offsets?: {
|
|
12390
|
+
anchor: BlockOffset_2
|
|
12391
|
+
focus: BlockOffset_2
|
|
12392
|
+
}
|
|
12136
12393
|
}
|
|
12137
12394
|
| {
|
|
12138
12395
|
type: 'delete'
|
|
@@ -12277,22 +12534,26 @@ declare const editorMachine: StateMachine<
|
|
|
12277
12534
|
mimeType: `${string}/${string}`
|
|
12278
12535
|
reason: string
|
|
12279
12536
|
} & {
|
|
12280
|
-
originEvent:
|
|
12281
|
-
|
|
12282
|
-
|
|
12283
|
-
|
|
12284
|
-
|
|
12537
|
+
originEvent:
|
|
12538
|
+
| PickFromUnion_2<
|
|
12539
|
+
NativeBehaviorEvent,
|
|
12540
|
+
'type',
|
|
12541
|
+
'drag.drop' | 'clipboard.paste'
|
|
12542
|
+
>
|
|
12543
|
+
| InputBehaviorEvent_2
|
|
12285
12544
|
})
|
|
12286
12545
|
| ({
|
|
12287
12546
|
type: 'deserialization.success'
|
|
12288
12547
|
data: Array<PortableTextBlock>
|
|
12289
12548
|
mimeType: `${string}/${string}`
|
|
12290
12549
|
} & {
|
|
12291
|
-
originEvent:
|
|
12292
|
-
|
|
12293
|
-
|
|
12294
|
-
|
|
12295
|
-
|
|
12550
|
+
originEvent:
|
|
12551
|
+
| PickFromUnion_2<
|
|
12552
|
+
NativeBehaviorEvent,
|
|
12553
|
+
'type',
|
|
12554
|
+
'drag.drop' | 'clipboard.paste'
|
|
12555
|
+
>
|
|
12556
|
+
| InputBehaviorEvent_2
|
|
12296
12557
|
})
|
|
12297
12558
|
| {
|
|
12298
12559
|
type: 'serialization.success'
|
|
@@ -12381,7 +12642,7 @@ declare const editorMachine: StateMachine<
|
|
|
12381
12642
|
value: Array<PortableTextBlock> | undefined
|
|
12382
12643
|
internalDrag?: {
|
|
12383
12644
|
ghost?: HTMLElement
|
|
12384
|
-
origin: EventPosition
|
|
12645
|
+
origin: Pick<EventPosition, 'selection'>
|
|
12385
12646
|
}
|
|
12386
12647
|
},
|
|
12387
12648
|
{
|
|
@@ -12445,6 +12706,10 @@ declare const editorMachine: StateMachine<
|
|
|
12445
12706
|
| {
|
|
12446
12707
|
type: 'decorator.toggle'
|
|
12447
12708
|
decorator: string
|
|
12709
|
+
offsets?: {
|
|
12710
|
+
anchor: BlockOffset_2
|
|
12711
|
+
focus: BlockOffset_2
|
|
12712
|
+
}
|
|
12448
12713
|
}
|
|
12449
12714
|
| {
|
|
12450
12715
|
type: 'delete'
|
|
@@ -12589,22 +12854,26 @@ declare const editorMachine: StateMachine<
|
|
|
12589
12854
|
mimeType: `${string}/${string}`
|
|
12590
12855
|
reason: string
|
|
12591
12856
|
} & {
|
|
12592
|
-
originEvent:
|
|
12593
|
-
|
|
12594
|
-
|
|
12595
|
-
|
|
12596
|
-
|
|
12857
|
+
originEvent:
|
|
12858
|
+
| PickFromUnion_2<
|
|
12859
|
+
NativeBehaviorEvent,
|
|
12860
|
+
'type',
|
|
12861
|
+
'drag.drop' | 'clipboard.paste'
|
|
12862
|
+
>
|
|
12863
|
+
| InputBehaviorEvent_2
|
|
12597
12864
|
})
|
|
12598
12865
|
| ({
|
|
12599
12866
|
type: 'deserialization.success'
|
|
12600
12867
|
data: Array<PortableTextBlock>
|
|
12601
12868
|
mimeType: `${string}/${string}`
|
|
12602
12869
|
} & {
|
|
12603
|
-
originEvent:
|
|
12604
|
-
|
|
12605
|
-
|
|
12606
|
-
|
|
12607
|
-
|
|
12870
|
+
originEvent:
|
|
12871
|
+
| PickFromUnion_2<
|
|
12872
|
+
NativeBehaviorEvent,
|
|
12873
|
+
'type',
|
|
12874
|
+
'drag.drop' | 'clipboard.paste'
|
|
12875
|
+
>
|
|
12876
|
+
| InputBehaviorEvent_2
|
|
12608
12877
|
})
|
|
12609
12878
|
| {
|
|
12610
12879
|
type: 'serialization.success'
|
|
@@ -12749,7 +13018,7 @@ declare const editorMachine: StateMachine<
|
|
|
12749
13018
|
}
|
|
12750
13019
|
| {
|
|
12751
13020
|
type: 'dragstart'
|
|
12752
|
-
origin: EventPosition
|
|
13021
|
+
origin: Pick<EventPosition, 'selection'>
|
|
12753
13022
|
ghost?: HTMLElement
|
|
12754
13023
|
}
|
|
12755
13024
|
| {
|
|
@@ -12821,6 +13090,10 @@ declare const editorMachine: StateMachine<
|
|
|
12821
13090
|
| {
|
|
12822
13091
|
type: 'decorator.toggle'
|
|
12823
13092
|
decorator: string
|
|
13093
|
+
offsets?: {
|
|
13094
|
+
anchor: BlockOffset_2
|
|
13095
|
+
focus: BlockOffset_2
|
|
13096
|
+
}
|
|
12824
13097
|
}
|
|
12825
13098
|
| {
|
|
12826
13099
|
type: 'delete'
|
|
@@ -12965,22 +13238,26 @@ declare const editorMachine: StateMachine<
|
|
|
12965
13238
|
mimeType: `${string}/${string}`
|
|
12966
13239
|
reason: string
|
|
12967
13240
|
} & {
|
|
12968
|
-
originEvent:
|
|
12969
|
-
|
|
12970
|
-
|
|
12971
|
-
|
|
12972
|
-
|
|
13241
|
+
originEvent:
|
|
13242
|
+
| PickFromUnion_2<
|
|
13243
|
+
NativeBehaviorEvent,
|
|
13244
|
+
'type',
|
|
13245
|
+
'drag.drop' | 'clipboard.paste'
|
|
13246
|
+
>
|
|
13247
|
+
| InputBehaviorEvent_2
|
|
12973
13248
|
})
|
|
12974
13249
|
| ({
|
|
12975
13250
|
type: 'deserialization.success'
|
|
12976
13251
|
data: Array<PortableTextBlock>
|
|
12977
13252
|
mimeType: `${string}/${string}`
|
|
12978
13253
|
} & {
|
|
12979
|
-
originEvent:
|
|
12980
|
-
|
|
12981
|
-
|
|
12982
|
-
|
|
12983
|
-
|
|
13254
|
+
originEvent:
|
|
13255
|
+
| PickFromUnion_2<
|
|
13256
|
+
NativeBehaviorEvent,
|
|
13257
|
+
'type',
|
|
13258
|
+
'drag.drop' | 'clipboard.paste'
|
|
13259
|
+
>
|
|
13260
|
+
| InputBehaviorEvent_2
|
|
12984
13261
|
})
|
|
12985
13262
|
| {
|
|
12986
13263
|
type: 'serialization.success'
|
|
@@ -13069,7 +13346,7 @@ declare const editorMachine: StateMachine<
|
|
|
13069
13346
|
value: Array<PortableTextBlock> | undefined
|
|
13070
13347
|
internalDrag?: {
|
|
13071
13348
|
ghost?: HTMLElement
|
|
13072
|
-
origin: EventPosition
|
|
13349
|
+
origin: Pick<EventPosition, 'selection'>
|
|
13073
13350
|
}
|
|
13074
13351
|
},
|
|
13075
13352
|
{
|
|
@@ -13133,6 +13410,10 @@ declare const editorMachine: StateMachine<
|
|
|
13133
13410
|
| {
|
|
13134
13411
|
type: 'decorator.toggle'
|
|
13135
13412
|
decorator: string
|
|
13413
|
+
offsets?: {
|
|
13414
|
+
anchor: BlockOffset_2
|
|
13415
|
+
focus: BlockOffset_2
|
|
13416
|
+
}
|
|
13136
13417
|
}
|
|
13137
13418
|
| {
|
|
13138
13419
|
type: 'delete'
|
|
@@ -13277,22 +13558,26 @@ declare const editorMachine: StateMachine<
|
|
|
13277
13558
|
mimeType: `${string}/${string}`
|
|
13278
13559
|
reason: string
|
|
13279
13560
|
} & {
|
|
13280
|
-
originEvent:
|
|
13281
|
-
|
|
13282
|
-
|
|
13283
|
-
|
|
13284
|
-
|
|
13561
|
+
originEvent:
|
|
13562
|
+
| PickFromUnion_2<
|
|
13563
|
+
NativeBehaviorEvent,
|
|
13564
|
+
'type',
|
|
13565
|
+
'drag.drop' | 'clipboard.paste'
|
|
13566
|
+
>
|
|
13567
|
+
| InputBehaviorEvent_2
|
|
13285
13568
|
})
|
|
13286
13569
|
| ({
|
|
13287
13570
|
type: 'deserialization.success'
|
|
13288
13571
|
data: Array<PortableTextBlock>
|
|
13289
13572
|
mimeType: `${string}/${string}`
|
|
13290
13573
|
} & {
|
|
13291
|
-
originEvent:
|
|
13292
|
-
|
|
13293
|
-
|
|
13294
|
-
|
|
13295
|
-
|
|
13574
|
+
originEvent:
|
|
13575
|
+
| PickFromUnion_2<
|
|
13576
|
+
NativeBehaviorEvent,
|
|
13577
|
+
'type',
|
|
13578
|
+
'drag.drop' | 'clipboard.paste'
|
|
13579
|
+
>
|
|
13580
|
+
| InputBehaviorEvent_2
|
|
13296
13581
|
})
|
|
13297
13582
|
| {
|
|
13298
13583
|
type: 'serialization.success'
|
|
@@ -13437,7 +13722,7 @@ declare const editorMachine: StateMachine<
|
|
|
13437
13722
|
}
|
|
13438
13723
|
| {
|
|
13439
13724
|
type: 'dragstart'
|
|
13440
|
-
origin: EventPosition
|
|
13725
|
+
origin: Pick<EventPosition, 'selection'>
|
|
13441
13726
|
ghost?: HTMLElement
|
|
13442
13727
|
}
|
|
13443
13728
|
| {
|
|
@@ -13509,6 +13794,10 @@ declare const editorMachine: StateMachine<
|
|
|
13509
13794
|
| {
|
|
13510
13795
|
type: 'decorator.toggle'
|
|
13511
13796
|
decorator: string
|
|
13797
|
+
offsets?: {
|
|
13798
|
+
anchor: BlockOffset_2
|
|
13799
|
+
focus: BlockOffset_2
|
|
13800
|
+
}
|
|
13512
13801
|
}
|
|
13513
13802
|
| {
|
|
13514
13803
|
type: 'delete'
|
|
@@ -13653,22 +13942,26 @@ declare const editorMachine: StateMachine<
|
|
|
13653
13942
|
mimeType: `${string}/${string}`
|
|
13654
13943
|
reason: string
|
|
13655
13944
|
} & {
|
|
13656
|
-
originEvent:
|
|
13657
|
-
|
|
13658
|
-
|
|
13659
|
-
|
|
13660
|
-
|
|
13945
|
+
originEvent:
|
|
13946
|
+
| PickFromUnion_2<
|
|
13947
|
+
NativeBehaviorEvent,
|
|
13948
|
+
'type',
|
|
13949
|
+
'drag.drop' | 'clipboard.paste'
|
|
13950
|
+
>
|
|
13951
|
+
| InputBehaviorEvent_2
|
|
13661
13952
|
})
|
|
13662
13953
|
| ({
|
|
13663
13954
|
type: 'deserialization.success'
|
|
13664
13955
|
data: Array<PortableTextBlock>
|
|
13665
13956
|
mimeType: `${string}/${string}`
|
|
13666
13957
|
} & {
|
|
13667
|
-
originEvent:
|
|
13668
|
-
|
|
13669
|
-
|
|
13670
|
-
|
|
13671
|
-
|
|
13958
|
+
originEvent:
|
|
13959
|
+
| PickFromUnion_2<
|
|
13960
|
+
NativeBehaviorEvent,
|
|
13961
|
+
'type',
|
|
13962
|
+
'drag.drop' | 'clipboard.paste'
|
|
13963
|
+
>
|
|
13964
|
+
| InputBehaviorEvent_2
|
|
13672
13965
|
})
|
|
13673
13966
|
| {
|
|
13674
13967
|
type: 'serialization.success'
|
|
@@ -13757,7 +14050,7 @@ declare const editorMachine: StateMachine<
|
|
|
13757
14050
|
value: Array<PortableTextBlock> | undefined
|
|
13758
14051
|
internalDrag?: {
|
|
13759
14052
|
ghost?: HTMLElement
|
|
13760
|
-
origin: EventPosition
|
|
14053
|
+
origin: Pick<EventPosition, 'selection'>
|
|
13761
14054
|
}
|
|
13762
14055
|
},
|
|
13763
14056
|
| {
|
|
@@ -13775,6 +14068,10 @@ declare const editorMachine: StateMachine<
|
|
|
13775
14068
|
| {
|
|
13776
14069
|
type: 'decorator.toggle'
|
|
13777
14070
|
decorator: string
|
|
14071
|
+
offsets?: {
|
|
14072
|
+
anchor: BlockOffset_2
|
|
14073
|
+
focus: BlockOffset_2
|
|
14074
|
+
}
|
|
13778
14075
|
},
|
|
13779
14076
|
| {
|
|
13780
14077
|
type: 'annotation.add'
|
|
@@ -13834,6 +14131,10 @@ declare const editorMachine: StateMachine<
|
|
|
13834
14131
|
| {
|
|
13835
14132
|
type: 'decorator.toggle'
|
|
13836
14133
|
decorator: string
|
|
14134
|
+
offsets?: {
|
|
14135
|
+
anchor: BlockOffset_2
|
|
14136
|
+
focus: BlockOffset_2
|
|
14137
|
+
}
|
|
13837
14138
|
}
|
|
13838
14139
|
| {
|
|
13839
14140
|
type: 'delete'
|
|
@@ -13978,22 +14279,26 @@ declare const editorMachine: StateMachine<
|
|
|
13978
14279
|
mimeType: `${string}/${string}`
|
|
13979
14280
|
reason: string
|
|
13980
14281
|
} & {
|
|
13981
|
-
originEvent:
|
|
13982
|
-
|
|
13983
|
-
|
|
13984
|
-
|
|
13985
|
-
|
|
14282
|
+
originEvent:
|
|
14283
|
+
| PickFromUnion_2<
|
|
14284
|
+
NativeBehaviorEvent,
|
|
14285
|
+
'type',
|
|
14286
|
+
'drag.drop' | 'clipboard.paste'
|
|
14287
|
+
>
|
|
14288
|
+
| InputBehaviorEvent_2
|
|
13986
14289
|
})
|
|
13987
14290
|
| ({
|
|
13988
14291
|
type: 'deserialization.success'
|
|
13989
14292
|
data: Array<PortableTextBlock>
|
|
13990
14293
|
mimeType: `${string}/${string}`
|
|
13991
14294
|
} & {
|
|
13992
|
-
originEvent:
|
|
13993
|
-
|
|
13994
|
-
|
|
13995
|
-
|
|
13996
|
-
|
|
14295
|
+
originEvent:
|
|
14296
|
+
| PickFromUnion_2<
|
|
14297
|
+
NativeBehaviorEvent,
|
|
14298
|
+
'type',
|
|
14299
|
+
'drag.drop' | 'clipboard.paste'
|
|
14300
|
+
>
|
|
14301
|
+
| InputBehaviorEvent_2
|
|
13997
14302
|
})
|
|
13998
14303
|
| {
|
|
13999
14304
|
type: 'serialization.success'
|
|
@@ -14138,7 +14443,7 @@ declare const editorMachine: StateMachine<
|
|
|
14138
14443
|
}
|
|
14139
14444
|
| {
|
|
14140
14445
|
type: 'dragstart'
|
|
14141
|
-
origin: EventPosition
|
|
14446
|
+
origin: Pick<EventPosition, 'selection'>
|
|
14142
14447
|
ghost?: HTMLElement
|
|
14143
14448
|
}
|
|
14144
14449
|
| {
|
|
@@ -14210,6 +14515,10 @@ declare const editorMachine: StateMachine<
|
|
|
14210
14515
|
| {
|
|
14211
14516
|
type: 'decorator.toggle'
|
|
14212
14517
|
decorator: string
|
|
14518
|
+
offsets?: {
|
|
14519
|
+
anchor: BlockOffset_2
|
|
14520
|
+
focus: BlockOffset_2
|
|
14521
|
+
}
|
|
14213
14522
|
}
|
|
14214
14523
|
| {
|
|
14215
14524
|
type: 'delete'
|
|
@@ -14354,22 +14663,26 @@ declare const editorMachine: StateMachine<
|
|
|
14354
14663
|
mimeType: `${string}/${string}`
|
|
14355
14664
|
reason: string
|
|
14356
14665
|
} & {
|
|
14357
|
-
originEvent:
|
|
14358
|
-
|
|
14359
|
-
|
|
14360
|
-
|
|
14361
|
-
|
|
14666
|
+
originEvent:
|
|
14667
|
+
| PickFromUnion_2<
|
|
14668
|
+
NativeBehaviorEvent,
|
|
14669
|
+
'type',
|
|
14670
|
+
'drag.drop' | 'clipboard.paste'
|
|
14671
|
+
>
|
|
14672
|
+
| InputBehaviorEvent_2
|
|
14362
14673
|
})
|
|
14363
14674
|
| ({
|
|
14364
14675
|
type: 'deserialization.success'
|
|
14365
14676
|
data: Array<PortableTextBlock>
|
|
14366
14677
|
mimeType: `${string}/${string}`
|
|
14367
14678
|
} & {
|
|
14368
|
-
originEvent:
|
|
14369
|
-
|
|
14370
|
-
|
|
14371
|
-
|
|
14372
|
-
|
|
14679
|
+
originEvent:
|
|
14680
|
+
| PickFromUnion_2<
|
|
14681
|
+
NativeBehaviorEvent,
|
|
14682
|
+
'type',
|
|
14683
|
+
'drag.drop' | 'clipboard.paste'
|
|
14684
|
+
>
|
|
14685
|
+
| InputBehaviorEvent_2
|
|
14373
14686
|
})
|
|
14374
14687
|
| {
|
|
14375
14688
|
type: 'serialization.success'
|
|
@@ -14458,7 +14771,7 @@ declare const editorMachine: StateMachine<
|
|
|
14458
14771
|
value: Array<PortableTextBlock> | undefined
|
|
14459
14772
|
internalDrag?: {
|
|
14460
14773
|
ghost?: HTMLElement
|
|
14461
|
-
origin: EventPosition
|
|
14774
|
+
origin: Pick<EventPosition, 'selection'>
|
|
14462
14775
|
}
|
|
14463
14776
|
},
|
|
14464
14777
|
| {
|
|
@@ -14536,6 +14849,10 @@ declare const editorMachine: StateMachine<
|
|
|
14536
14849
|
| {
|
|
14537
14850
|
type: 'decorator.toggle'
|
|
14538
14851
|
decorator: string
|
|
14852
|
+
offsets?: {
|
|
14853
|
+
anchor: BlockOffset_2
|
|
14854
|
+
focus: BlockOffset_2
|
|
14855
|
+
}
|
|
14539
14856
|
}
|
|
14540
14857
|
| {
|
|
14541
14858
|
type: 'delete'
|
|
@@ -14680,22 +14997,26 @@ declare const editorMachine: StateMachine<
|
|
|
14680
14997
|
mimeType: `${string}/${string}`
|
|
14681
14998
|
reason: string
|
|
14682
14999
|
} & {
|
|
14683
|
-
originEvent:
|
|
14684
|
-
|
|
14685
|
-
|
|
14686
|
-
|
|
14687
|
-
|
|
15000
|
+
originEvent:
|
|
15001
|
+
| PickFromUnion_2<
|
|
15002
|
+
NativeBehaviorEvent,
|
|
15003
|
+
'type',
|
|
15004
|
+
'drag.drop' | 'clipboard.paste'
|
|
15005
|
+
>
|
|
15006
|
+
| InputBehaviorEvent_2
|
|
14688
15007
|
})
|
|
14689
15008
|
| ({
|
|
14690
15009
|
type: 'deserialization.success'
|
|
14691
15010
|
data: Array<PortableTextBlock>
|
|
14692
15011
|
mimeType: `${string}/${string}`
|
|
14693
15012
|
} & {
|
|
14694
|
-
originEvent:
|
|
14695
|
-
|
|
14696
|
-
|
|
14697
|
-
|
|
14698
|
-
|
|
15013
|
+
originEvent:
|
|
15014
|
+
| PickFromUnion_2<
|
|
15015
|
+
NativeBehaviorEvent,
|
|
15016
|
+
'type',
|
|
15017
|
+
'drag.drop' | 'clipboard.paste'
|
|
15018
|
+
>
|
|
15019
|
+
| InputBehaviorEvent_2
|
|
14699
15020
|
})
|
|
14700
15021
|
| {
|
|
14701
15022
|
type: 'serialization.success'
|
|
@@ -14840,7 +15161,7 @@ declare const editorMachine: StateMachine<
|
|
|
14840
15161
|
}
|
|
14841
15162
|
| {
|
|
14842
15163
|
type: 'dragstart'
|
|
14843
|
-
origin: EventPosition
|
|
15164
|
+
origin: Pick<EventPosition, 'selection'>
|
|
14844
15165
|
ghost?: HTMLElement
|
|
14845
15166
|
}
|
|
14846
15167
|
| {
|
|
@@ -14912,6 +15233,10 @@ declare const editorMachine: StateMachine<
|
|
|
14912
15233
|
| {
|
|
14913
15234
|
type: 'decorator.toggle'
|
|
14914
15235
|
decorator: string
|
|
15236
|
+
offsets?: {
|
|
15237
|
+
anchor: BlockOffset_2
|
|
15238
|
+
focus: BlockOffset_2
|
|
15239
|
+
}
|
|
14915
15240
|
}
|
|
14916
15241
|
| {
|
|
14917
15242
|
type: 'delete'
|
|
@@ -15056,22 +15381,26 @@ declare const editorMachine: StateMachine<
|
|
|
15056
15381
|
mimeType: `${string}/${string}`
|
|
15057
15382
|
reason: string
|
|
15058
15383
|
} & {
|
|
15059
|
-
originEvent:
|
|
15060
|
-
|
|
15061
|
-
|
|
15062
|
-
|
|
15063
|
-
|
|
15384
|
+
originEvent:
|
|
15385
|
+
| PickFromUnion_2<
|
|
15386
|
+
NativeBehaviorEvent,
|
|
15387
|
+
'type',
|
|
15388
|
+
'drag.drop' | 'clipboard.paste'
|
|
15389
|
+
>
|
|
15390
|
+
| InputBehaviorEvent_2
|
|
15064
15391
|
})
|
|
15065
15392
|
| ({
|
|
15066
15393
|
type: 'deserialization.success'
|
|
15067
15394
|
data: Array<PortableTextBlock>
|
|
15068
15395
|
mimeType: `${string}/${string}`
|
|
15069
15396
|
} & {
|
|
15070
|
-
originEvent:
|
|
15071
|
-
|
|
15072
|
-
|
|
15073
|
-
|
|
15074
|
-
|
|
15397
|
+
originEvent:
|
|
15398
|
+
| PickFromUnion_2<
|
|
15399
|
+
NativeBehaviorEvent,
|
|
15400
|
+
'type',
|
|
15401
|
+
'drag.drop' | 'clipboard.paste'
|
|
15402
|
+
>
|
|
15403
|
+
| InputBehaviorEvent_2
|
|
15075
15404
|
})
|
|
15076
15405
|
| {
|
|
15077
15406
|
type: 'serialization.success'
|
|
@@ -15160,7 +15489,7 @@ declare const editorMachine: StateMachine<
|
|
|
15160
15489
|
value: Array<PortableTextBlock> | undefined
|
|
15161
15490
|
internalDrag?: {
|
|
15162
15491
|
ghost?: HTMLElement
|
|
15163
|
-
origin: EventPosition
|
|
15492
|
+
origin: Pick<EventPosition, 'selection'>
|
|
15164
15493
|
}
|
|
15165
15494
|
},
|
|
15166
15495
|
{
|
|
@@ -15224,6 +15553,10 @@ declare const editorMachine: StateMachine<
|
|
|
15224
15553
|
| {
|
|
15225
15554
|
type: 'decorator.toggle'
|
|
15226
15555
|
decorator: string
|
|
15556
|
+
offsets?: {
|
|
15557
|
+
anchor: BlockOffset_2
|
|
15558
|
+
focus: BlockOffset_2
|
|
15559
|
+
}
|
|
15227
15560
|
}
|
|
15228
15561
|
| {
|
|
15229
15562
|
type: 'delete'
|
|
@@ -15368,22 +15701,26 @@ declare const editorMachine: StateMachine<
|
|
|
15368
15701
|
mimeType: `${string}/${string}`
|
|
15369
15702
|
reason: string
|
|
15370
15703
|
} & {
|
|
15371
|
-
originEvent:
|
|
15372
|
-
|
|
15373
|
-
|
|
15374
|
-
|
|
15375
|
-
|
|
15704
|
+
originEvent:
|
|
15705
|
+
| PickFromUnion_2<
|
|
15706
|
+
NativeBehaviorEvent,
|
|
15707
|
+
'type',
|
|
15708
|
+
'drag.drop' | 'clipboard.paste'
|
|
15709
|
+
>
|
|
15710
|
+
| InputBehaviorEvent_2
|
|
15376
15711
|
})
|
|
15377
15712
|
| ({
|
|
15378
15713
|
type: 'deserialization.success'
|
|
15379
15714
|
data: Array<PortableTextBlock>
|
|
15380
15715
|
mimeType: `${string}/${string}`
|
|
15381
15716
|
} & {
|
|
15382
|
-
originEvent:
|
|
15383
|
-
|
|
15384
|
-
|
|
15385
|
-
|
|
15386
|
-
|
|
15717
|
+
originEvent:
|
|
15718
|
+
| PickFromUnion_2<
|
|
15719
|
+
NativeBehaviorEvent,
|
|
15720
|
+
'type',
|
|
15721
|
+
'drag.drop' | 'clipboard.paste'
|
|
15722
|
+
>
|
|
15723
|
+
| InputBehaviorEvent_2
|
|
15387
15724
|
})
|
|
15388
15725
|
| {
|
|
15389
15726
|
type: 'serialization.success'
|
|
@@ -15528,7 +15865,7 @@ declare const editorMachine: StateMachine<
|
|
|
15528
15865
|
}
|
|
15529
15866
|
| {
|
|
15530
15867
|
type: 'dragstart'
|
|
15531
|
-
origin: EventPosition
|
|
15868
|
+
origin: Pick<EventPosition, 'selection'>
|
|
15532
15869
|
ghost?: HTMLElement
|
|
15533
15870
|
}
|
|
15534
15871
|
| {
|
|
@@ -15600,6 +15937,10 @@ declare const editorMachine: StateMachine<
|
|
|
15600
15937
|
| {
|
|
15601
15938
|
type: 'decorator.toggle'
|
|
15602
15939
|
decorator: string
|
|
15940
|
+
offsets?: {
|
|
15941
|
+
anchor: BlockOffset_2
|
|
15942
|
+
focus: BlockOffset_2
|
|
15943
|
+
}
|
|
15603
15944
|
}
|
|
15604
15945
|
| {
|
|
15605
15946
|
type: 'delete'
|
|
@@ -15744,22 +16085,26 @@ declare const editorMachine: StateMachine<
|
|
|
15744
16085
|
mimeType: `${string}/${string}`
|
|
15745
16086
|
reason: string
|
|
15746
16087
|
} & {
|
|
15747
|
-
originEvent:
|
|
15748
|
-
|
|
15749
|
-
|
|
15750
|
-
|
|
15751
|
-
|
|
16088
|
+
originEvent:
|
|
16089
|
+
| PickFromUnion_2<
|
|
16090
|
+
NativeBehaviorEvent,
|
|
16091
|
+
'type',
|
|
16092
|
+
'drag.drop' | 'clipboard.paste'
|
|
16093
|
+
>
|
|
16094
|
+
| InputBehaviorEvent_2
|
|
15752
16095
|
})
|
|
15753
16096
|
| ({
|
|
15754
16097
|
type: 'deserialization.success'
|
|
15755
16098
|
data: Array<PortableTextBlock>
|
|
15756
16099
|
mimeType: `${string}/${string}`
|
|
15757
16100
|
} & {
|
|
15758
|
-
originEvent:
|
|
15759
|
-
|
|
15760
|
-
|
|
15761
|
-
|
|
15762
|
-
|
|
16101
|
+
originEvent:
|
|
16102
|
+
| PickFromUnion_2<
|
|
16103
|
+
NativeBehaviorEvent,
|
|
16104
|
+
'type',
|
|
16105
|
+
'drag.drop' | 'clipboard.paste'
|
|
16106
|
+
>
|
|
16107
|
+
| InputBehaviorEvent_2
|
|
15763
16108
|
})
|
|
15764
16109
|
| {
|
|
15765
16110
|
type: 'serialization.success'
|
|
@@ -15848,7 +16193,7 @@ declare const editorMachine: StateMachine<
|
|
|
15848
16193
|
value: Array<PortableTextBlock> | undefined
|
|
15849
16194
|
internalDrag?: {
|
|
15850
16195
|
ghost?: HTMLElement
|
|
15851
|
-
origin: EventPosition
|
|
16196
|
+
origin: Pick<EventPosition, 'selection'>
|
|
15852
16197
|
}
|
|
15853
16198
|
},
|
|
15854
16199
|
| {
|
|
@@ -15915,6 +16260,10 @@ declare const editorMachine: StateMachine<
|
|
|
15915
16260
|
| {
|
|
15916
16261
|
type: 'decorator.toggle'
|
|
15917
16262
|
decorator: string
|
|
16263
|
+
offsets?: {
|
|
16264
|
+
anchor: BlockOffset_2
|
|
16265
|
+
focus: BlockOffset_2
|
|
16266
|
+
}
|
|
15918
16267
|
}
|
|
15919
16268
|
| {
|
|
15920
16269
|
type: 'delete'
|
|
@@ -16059,22 +16408,26 @@ declare const editorMachine: StateMachine<
|
|
|
16059
16408
|
mimeType: `${string}/${string}`
|
|
16060
16409
|
reason: string
|
|
16061
16410
|
} & {
|
|
16062
|
-
originEvent:
|
|
16063
|
-
|
|
16064
|
-
|
|
16065
|
-
|
|
16066
|
-
|
|
16411
|
+
originEvent:
|
|
16412
|
+
| PickFromUnion_2<
|
|
16413
|
+
NativeBehaviorEvent,
|
|
16414
|
+
'type',
|
|
16415
|
+
'drag.drop' | 'clipboard.paste'
|
|
16416
|
+
>
|
|
16417
|
+
| InputBehaviorEvent_2
|
|
16067
16418
|
})
|
|
16068
16419
|
| ({
|
|
16069
16420
|
type: 'deserialization.success'
|
|
16070
16421
|
data: Array<PortableTextBlock>
|
|
16071
16422
|
mimeType: `${string}/${string}`
|
|
16072
16423
|
} & {
|
|
16073
|
-
originEvent:
|
|
16074
|
-
|
|
16075
|
-
|
|
16076
|
-
|
|
16077
|
-
|
|
16424
|
+
originEvent:
|
|
16425
|
+
| PickFromUnion_2<
|
|
16426
|
+
NativeBehaviorEvent,
|
|
16427
|
+
'type',
|
|
16428
|
+
'drag.drop' | 'clipboard.paste'
|
|
16429
|
+
>
|
|
16430
|
+
| InputBehaviorEvent_2
|
|
16078
16431
|
})
|
|
16079
16432
|
| {
|
|
16080
16433
|
type: 'serialization.success'
|
|
@@ -16219,7 +16572,7 @@ declare const editorMachine: StateMachine<
|
|
|
16219
16572
|
}
|
|
16220
16573
|
| {
|
|
16221
16574
|
type: 'dragstart'
|
|
16222
|
-
origin: EventPosition
|
|
16575
|
+
origin: Pick<EventPosition, 'selection'>
|
|
16223
16576
|
ghost?: HTMLElement
|
|
16224
16577
|
}
|
|
16225
16578
|
| {
|
|
@@ -16291,6 +16644,10 @@ declare const editorMachine: StateMachine<
|
|
|
16291
16644
|
| {
|
|
16292
16645
|
type: 'decorator.toggle'
|
|
16293
16646
|
decorator: string
|
|
16647
|
+
offsets?: {
|
|
16648
|
+
anchor: BlockOffset_2
|
|
16649
|
+
focus: BlockOffset_2
|
|
16650
|
+
}
|
|
16294
16651
|
}
|
|
16295
16652
|
| {
|
|
16296
16653
|
type: 'delete'
|
|
@@ -16435,22 +16792,26 @@ declare const editorMachine: StateMachine<
|
|
|
16435
16792
|
mimeType: `${string}/${string}`
|
|
16436
16793
|
reason: string
|
|
16437
16794
|
} & {
|
|
16438
|
-
originEvent:
|
|
16439
|
-
|
|
16440
|
-
|
|
16441
|
-
|
|
16442
|
-
|
|
16795
|
+
originEvent:
|
|
16796
|
+
| PickFromUnion_2<
|
|
16797
|
+
NativeBehaviorEvent,
|
|
16798
|
+
'type',
|
|
16799
|
+
'drag.drop' | 'clipboard.paste'
|
|
16800
|
+
>
|
|
16801
|
+
| InputBehaviorEvent_2
|
|
16443
16802
|
})
|
|
16444
16803
|
| ({
|
|
16445
16804
|
type: 'deserialization.success'
|
|
16446
16805
|
data: Array<PortableTextBlock>
|
|
16447
16806
|
mimeType: `${string}/${string}`
|
|
16448
16807
|
} & {
|
|
16449
|
-
originEvent:
|
|
16450
|
-
|
|
16451
|
-
|
|
16452
|
-
|
|
16453
|
-
|
|
16808
|
+
originEvent:
|
|
16809
|
+
| PickFromUnion_2<
|
|
16810
|
+
NativeBehaviorEvent,
|
|
16811
|
+
'type',
|
|
16812
|
+
'drag.drop' | 'clipboard.paste'
|
|
16813
|
+
>
|
|
16814
|
+
| InputBehaviorEvent_2
|
|
16454
16815
|
})
|
|
16455
16816
|
| {
|
|
16456
16817
|
type: 'serialization.success'
|
|
@@ -16539,7 +16900,7 @@ declare const editorMachine: StateMachine<
|
|
|
16539
16900
|
value: Array<PortableTextBlock> | undefined
|
|
16540
16901
|
internalDrag?: {
|
|
16541
16902
|
ghost?: HTMLElement
|
|
16542
|
-
origin: EventPosition
|
|
16903
|
+
origin: Pick<EventPosition, 'selection'>
|
|
16543
16904
|
}
|
|
16544
16905
|
},
|
|
16545
16906
|
| {
|
|
@@ -16659,6 +17020,10 @@ declare const editorMachine: StateMachine<
|
|
|
16659
17020
|
| {
|
|
16660
17021
|
type: 'decorator.toggle'
|
|
16661
17022
|
decorator: string
|
|
17023
|
+
offsets?: {
|
|
17024
|
+
anchor: BlockOffset_2
|
|
17025
|
+
focus: BlockOffset_2
|
|
17026
|
+
}
|
|
16662
17027
|
}
|
|
16663
17028
|
| {
|
|
16664
17029
|
type: 'delete'
|
|
@@ -16803,22 +17168,26 @@ declare const editorMachine: StateMachine<
|
|
|
16803
17168
|
mimeType: `${string}/${string}`
|
|
16804
17169
|
reason: string
|
|
16805
17170
|
} & {
|
|
16806
|
-
originEvent:
|
|
16807
|
-
|
|
16808
|
-
|
|
16809
|
-
|
|
16810
|
-
|
|
17171
|
+
originEvent:
|
|
17172
|
+
| PickFromUnion_2<
|
|
17173
|
+
NativeBehaviorEvent,
|
|
17174
|
+
'type',
|
|
17175
|
+
'drag.drop' | 'clipboard.paste'
|
|
17176
|
+
>
|
|
17177
|
+
| InputBehaviorEvent_2
|
|
16811
17178
|
})
|
|
16812
17179
|
| ({
|
|
16813
17180
|
type: 'deserialization.success'
|
|
16814
17181
|
data: Array<PortableTextBlock>
|
|
16815
17182
|
mimeType: `${string}/${string}`
|
|
16816
17183
|
} & {
|
|
16817
|
-
originEvent:
|
|
16818
|
-
|
|
16819
|
-
|
|
16820
|
-
|
|
16821
|
-
|
|
17184
|
+
originEvent:
|
|
17185
|
+
| PickFromUnion_2<
|
|
17186
|
+
NativeBehaviorEvent,
|
|
17187
|
+
'type',
|
|
17188
|
+
'drag.drop' | 'clipboard.paste'
|
|
17189
|
+
>
|
|
17190
|
+
| InputBehaviorEvent_2
|
|
16822
17191
|
})
|
|
16823
17192
|
| {
|
|
16824
17193
|
type: 'serialization.success'
|
|
@@ -16963,7 +17332,7 @@ declare const editorMachine: StateMachine<
|
|
|
16963
17332
|
}
|
|
16964
17333
|
| {
|
|
16965
17334
|
type: 'dragstart'
|
|
16966
|
-
origin: EventPosition
|
|
17335
|
+
origin: Pick<EventPosition, 'selection'>
|
|
16967
17336
|
ghost?: HTMLElement
|
|
16968
17337
|
}
|
|
16969
17338
|
| {
|
|
@@ -17035,6 +17404,10 @@ declare const editorMachine: StateMachine<
|
|
|
17035
17404
|
| {
|
|
17036
17405
|
type: 'decorator.toggle'
|
|
17037
17406
|
decorator: string
|
|
17407
|
+
offsets?: {
|
|
17408
|
+
anchor: BlockOffset_2
|
|
17409
|
+
focus: BlockOffset_2
|
|
17410
|
+
}
|
|
17038
17411
|
}
|
|
17039
17412
|
| {
|
|
17040
17413
|
type: 'delete'
|
|
@@ -17179,22 +17552,26 @@ declare const editorMachine: StateMachine<
|
|
|
17179
17552
|
mimeType: `${string}/${string}`
|
|
17180
17553
|
reason: string
|
|
17181
17554
|
} & {
|
|
17182
|
-
originEvent:
|
|
17183
|
-
|
|
17184
|
-
|
|
17185
|
-
|
|
17186
|
-
|
|
17555
|
+
originEvent:
|
|
17556
|
+
| PickFromUnion_2<
|
|
17557
|
+
NativeBehaviorEvent,
|
|
17558
|
+
'type',
|
|
17559
|
+
'drag.drop' | 'clipboard.paste'
|
|
17560
|
+
>
|
|
17561
|
+
| InputBehaviorEvent_2
|
|
17187
17562
|
})
|
|
17188
17563
|
| ({
|
|
17189
17564
|
type: 'deserialization.success'
|
|
17190
17565
|
data: Array<PortableTextBlock>
|
|
17191
17566
|
mimeType: `${string}/${string}`
|
|
17192
17567
|
} & {
|
|
17193
|
-
originEvent:
|
|
17194
|
-
|
|
17195
|
-
|
|
17196
|
-
|
|
17197
|
-
|
|
17568
|
+
originEvent:
|
|
17569
|
+
| PickFromUnion_2<
|
|
17570
|
+
NativeBehaviorEvent,
|
|
17571
|
+
'type',
|
|
17572
|
+
'drag.drop' | 'clipboard.paste'
|
|
17573
|
+
>
|
|
17574
|
+
| InputBehaviorEvent_2
|
|
17198
17575
|
})
|
|
17199
17576
|
| {
|
|
17200
17577
|
type: 'serialization.success'
|
|
@@ -17283,7 +17660,7 @@ declare const editorMachine: StateMachine<
|
|
|
17283
17660
|
value: Array<PortableTextBlock> | undefined
|
|
17284
17661
|
internalDrag?: {
|
|
17285
17662
|
ghost?: HTMLElement
|
|
17286
|
-
origin: EventPosition
|
|
17663
|
+
origin: Pick<EventPosition, 'selection'>
|
|
17287
17664
|
}
|
|
17288
17665
|
},
|
|
17289
17666
|
| {
|
|
@@ -17356,6 +17733,10 @@ declare const editorMachine: StateMachine<
|
|
|
17356
17733
|
| {
|
|
17357
17734
|
type: 'decorator.toggle'
|
|
17358
17735
|
decorator: string
|
|
17736
|
+
offsets?: {
|
|
17737
|
+
anchor: BlockOffset_2
|
|
17738
|
+
focus: BlockOffset_2
|
|
17739
|
+
}
|
|
17359
17740
|
}
|
|
17360
17741
|
| {
|
|
17361
17742
|
type: 'delete'
|
|
@@ -17500,22 +17881,26 @@ declare const editorMachine: StateMachine<
|
|
|
17500
17881
|
mimeType: `${string}/${string}`
|
|
17501
17882
|
reason: string
|
|
17502
17883
|
} & {
|
|
17503
|
-
originEvent:
|
|
17504
|
-
|
|
17505
|
-
|
|
17506
|
-
|
|
17507
|
-
|
|
17884
|
+
originEvent:
|
|
17885
|
+
| PickFromUnion_2<
|
|
17886
|
+
NativeBehaviorEvent,
|
|
17887
|
+
'type',
|
|
17888
|
+
'drag.drop' | 'clipboard.paste'
|
|
17889
|
+
>
|
|
17890
|
+
| InputBehaviorEvent_2
|
|
17508
17891
|
})
|
|
17509
17892
|
| ({
|
|
17510
17893
|
type: 'deserialization.success'
|
|
17511
17894
|
data: Array<PortableTextBlock>
|
|
17512
17895
|
mimeType: `${string}/${string}`
|
|
17513
17896
|
} & {
|
|
17514
|
-
originEvent:
|
|
17515
|
-
|
|
17516
|
-
|
|
17517
|
-
|
|
17518
|
-
|
|
17897
|
+
originEvent:
|
|
17898
|
+
| PickFromUnion_2<
|
|
17899
|
+
NativeBehaviorEvent,
|
|
17900
|
+
'type',
|
|
17901
|
+
'drag.drop' | 'clipboard.paste'
|
|
17902
|
+
>
|
|
17903
|
+
| InputBehaviorEvent_2
|
|
17519
17904
|
})
|
|
17520
17905
|
| {
|
|
17521
17906
|
type: 'serialization.success'
|
|
@@ -17660,7 +18045,7 @@ declare const editorMachine: StateMachine<
|
|
|
17660
18045
|
}
|
|
17661
18046
|
| {
|
|
17662
18047
|
type: 'dragstart'
|
|
17663
|
-
origin: EventPosition
|
|
18048
|
+
origin: Pick<EventPosition, 'selection'>
|
|
17664
18049
|
ghost?: HTMLElement
|
|
17665
18050
|
}
|
|
17666
18051
|
| {
|
|
@@ -17732,6 +18117,10 @@ declare const editorMachine: StateMachine<
|
|
|
17732
18117
|
| {
|
|
17733
18118
|
type: 'decorator.toggle'
|
|
17734
18119
|
decorator: string
|
|
18120
|
+
offsets?: {
|
|
18121
|
+
anchor: BlockOffset_2
|
|
18122
|
+
focus: BlockOffset_2
|
|
18123
|
+
}
|
|
17735
18124
|
}
|
|
17736
18125
|
| {
|
|
17737
18126
|
type: 'delete'
|
|
@@ -17876,22 +18265,26 @@ declare const editorMachine: StateMachine<
|
|
|
17876
18265
|
mimeType: `${string}/${string}`
|
|
17877
18266
|
reason: string
|
|
17878
18267
|
} & {
|
|
17879
|
-
originEvent:
|
|
17880
|
-
|
|
17881
|
-
|
|
17882
|
-
|
|
17883
|
-
|
|
18268
|
+
originEvent:
|
|
18269
|
+
| PickFromUnion_2<
|
|
18270
|
+
NativeBehaviorEvent,
|
|
18271
|
+
'type',
|
|
18272
|
+
'drag.drop' | 'clipboard.paste'
|
|
18273
|
+
>
|
|
18274
|
+
| InputBehaviorEvent_2
|
|
17884
18275
|
})
|
|
17885
18276
|
| ({
|
|
17886
18277
|
type: 'deserialization.success'
|
|
17887
18278
|
data: Array<PortableTextBlock>
|
|
17888
18279
|
mimeType: `${string}/${string}`
|
|
17889
18280
|
} & {
|
|
17890
|
-
originEvent:
|
|
17891
|
-
|
|
17892
|
-
|
|
17893
|
-
|
|
17894
|
-
|
|
18281
|
+
originEvent:
|
|
18282
|
+
| PickFromUnion_2<
|
|
18283
|
+
NativeBehaviorEvent,
|
|
18284
|
+
'type',
|
|
18285
|
+
'drag.drop' | 'clipboard.paste'
|
|
18286
|
+
>
|
|
18287
|
+
| InputBehaviorEvent_2
|
|
17895
18288
|
})
|
|
17896
18289
|
| {
|
|
17897
18290
|
type: 'serialization.success'
|
|
@@ -17980,7 +18373,7 @@ declare const editorMachine: StateMachine<
|
|
|
17980
18373
|
value: Array<PortableTextBlock> | undefined
|
|
17981
18374
|
internalDrag?: {
|
|
17982
18375
|
ghost?: HTMLElement
|
|
17983
|
-
origin: EventPosition
|
|
18376
|
+
origin: Pick<EventPosition, 'selection'>
|
|
17984
18377
|
}
|
|
17985
18378
|
},
|
|
17986
18379
|
| {
|
|
@@ -18054,6 +18447,10 @@ declare const editorMachine: StateMachine<
|
|
|
18054
18447
|
| {
|
|
18055
18448
|
type: 'decorator.toggle'
|
|
18056
18449
|
decorator: string
|
|
18450
|
+
offsets?: {
|
|
18451
|
+
anchor: BlockOffset_2
|
|
18452
|
+
focus: BlockOffset_2
|
|
18453
|
+
}
|
|
18057
18454
|
}
|
|
18058
18455
|
| {
|
|
18059
18456
|
type: 'delete'
|
|
@@ -18198,22 +18595,26 @@ declare const editorMachine: StateMachine<
|
|
|
18198
18595
|
mimeType: `${string}/${string}`
|
|
18199
18596
|
reason: string
|
|
18200
18597
|
} & {
|
|
18201
|
-
originEvent:
|
|
18202
|
-
|
|
18203
|
-
|
|
18204
|
-
|
|
18205
|
-
|
|
18598
|
+
originEvent:
|
|
18599
|
+
| PickFromUnion_2<
|
|
18600
|
+
NativeBehaviorEvent,
|
|
18601
|
+
'type',
|
|
18602
|
+
'drag.drop' | 'clipboard.paste'
|
|
18603
|
+
>
|
|
18604
|
+
| InputBehaviorEvent_2
|
|
18206
18605
|
})
|
|
18207
18606
|
| ({
|
|
18208
18607
|
type: 'deserialization.success'
|
|
18209
18608
|
data: Array<PortableTextBlock>
|
|
18210
18609
|
mimeType: `${string}/${string}`
|
|
18211
18610
|
} & {
|
|
18212
|
-
originEvent:
|
|
18213
|
-
|
|
18214
|
-
|
|
18215
|
-
|
|
18216
|
-
|
|
18611
|
+
originEvent:
|
|
18612
|
+
| PickFromUnion_2<
|
|
18613
|
+
NativeBehaviorEvent,
|
|
18614
|
+
'type',
|
|
18615
|
+
'drag.drop' | 'clipboard.paste'
|
|
18616
|
+
>
|
|
18617
|
+
| InputBehaviorEvent_2
|
|
18217
18618
|
})
|
|
18218
18619
|
| {
|
|
18219
18620
|
type: 'serialization.success'
|
|
@@ -18358,7 +18759,7 @@ declare const editorMachine: StateMachine<
|
|
|
18358
18759
|
}
|
|
18359
18760
|
| {
|
|
18360
18761
|
type: 'dragstart'
|
|
18361
|
-
origin: EventPosition
|
|
18762
|
+
origin: Pick<EventPosition, 'selection'>
|
|
18362
18763
|
ghost?: HTMLElement
|
|
18363
18764
|
}
|
|
18364
18765
|
| {
|
|
@@ -18430,6 +18831,10 @@ declare const editorMachine: StateMachine<
|
|
|
18430
18831
|
| {
|
|
18431
18832
|
type: 'decorator.toggle'
|
|
18432
18833
|
decorator: string
|
|
18834
|
+
offsets?: {
|
|
18835
|
+
anchor: BlockOffset_2
|
|
18836
|
+
focus: BlockOffset_2
|
|
18837
|
+
}
|
|
18433
18838
|
}
|
|
18434
18839
|
| {
|
|
18435
18840
|
type: 'delete'
|
|
@@ -18574,22 +18979,26 @@ declare const editorMachine: StateMachine<
|
|
|
18574
18979
|
mimeType: `${string}/${string}`
|
|
18575
18980
|
reason: string
|
|
18576
18981
|
} & {
|
|
18577
|
-
originEvent:
|
|
18578
|
-
|
|
18579
|
-
|
|
18580
|
-
|
|
18581
|
-
|
|
18982
|
+
originEvent:
|
|
18983
|
+
| PickFromUnion_2<
|
|
18984
|
+
NativeBehaviorEvent,
|
|
18985
|
+
'type',
|
|
18986
|
+
'drag.drop' | 'clipboard.paste'
|
|
18987
|
+
>
|
|
18988
|
+
| InputBehaviorEvent_2
|
|
18582
18989
|
})
|
|
18583
18990
|
| ({
|
|
18584
18991
|
type: 'deserialization.success'
|
|
18585
18992
|
data: Array<PortableTextBlock>
|
|
18586
18993
|
mimeType: `${string}/${string}`
|
|
18587
18994
|
} & {
|
|
18588
|
-
originEvent:
|
|
18589
|
-
|
|
18590
|
-
|
|
18591
|
-
|
|
18592
|
-
|
|
18995
|
+
originEvent:
|
|
18996
|
+
| PickFromUnion_2<
|
|
18997
|
+
NativeBehaviorEvent,
|
|
18998
|
+
'type',
|
|
18999
|
+
'drag.drop' | 'clipboard.paste'
|
|
19000
|
+
>
|
|
19001
|
+
| InputBehaviorEvent_2
|
|
18593
19002
|
})
|
|
18594
19003
|
| {
|
|
18595
19004
|
type: 'serialization.success'
|
|
@@ -18678,7 +19087,7 @@ declare const editorMachine: StateMachine<
|
|
|
18678
19087
|
value: Array<PortableTextBlock> | undefined
|
|
18679
19088
|
internalDrag?: {
|
|
18680
19089
|
ghost?: HTMLElement
|
|
18681
|
-
origin: EventPosition
|
|
19090
|
+
origin: Pick<EventPosition, 'selection'>
|
|
18682
19091
|
}
|
|
18683
19092
|
},
|
|
18684
19093
|
{
|
|
@@ -18743,6 +19152,10 @@ declare const editorMachine: StateMachine<
|
|
|
18743
19152
|
| {
|
|
18744
19153
|
type: 'decorator.toggle'
|
|
18745
19154
|
decorator: string
|
|
19155
|
+
offsets?: {
|
|
19156
|
+
anchor: BlockOffset_2
|
|
19157
|
+
focus: BlockOffset_2
|
|
19158
|
+
}
|
|
18746
19159
|
}
|
|
18747
19160
|
| {
|
|
18748
19161
|
type: 'delete'
|
|
@@ -18887,22 +19300,26 @@ declare const editorMachine: StateMachine<
|
|
|
18887
19300
|
mimeType: `${string}/${string}`
|
|
18888
19301
|
reason: string
|
|
18889
19302
|
} & {
|
|
18890
|
-
originEvent:
|
|
18891
|
-
|
|
18892
|
-
|
|
18893
|
-
|
|
18894
|
-
|
|
19303
|
+
originEvent:
|
|
19304
|
+
| PickFromUnion_2<
|
|
19305
|
+
NativeBehaviorEvent,
|
|
19306
|
+
'type',
|
|
19307
|
+
'drag.drop' | 'clipboard.paste'
|
|
19308
|
+
>
|
|
19309
|
+
| InputBehaviorEvent_2
|
|
18895
19310
|
})
|
|
18896
19311
|
| ({
|
|
18897
19312
|
type: 'deserialization.success'
|
|
18898
19313
|
data: Array<PortableTextBlock>
|
|
18899
19314
|
mimeType: `${string}/${string}`
|
|
18900
19315
|
} & {
|
|
18901
|
-
originEvent:
|
|
18902
|
-
|
|
18903
|
-
|
|
18904
|
-
|
|
18905
|
-
|
|
19316
|
+
originEvent:
|
|
19317
|
+
| PickFromUnion_2<
|
|
19318
|
+
NativeBehaviorEvent,
|
|
19319
|
+
'type',
|
|
19320
|
+
'drag.drop' | 'clipboard.paste'
|
|
19321
|
+
>
|
|
19322
|
+
| InputBehaviorEvent_2
|
|
18906
19323
|
})
|
|
18907
19324
|
| {
|
|
18908
19325
|
type: 'serialization.success'
|
|
@@ -19047,7 +19464,7 @@ declare const editorMachine: StateMachine<
|
|
|
19047
19464
|
}
|
|
19048
19465
|
| {
|
|
19049
19466
|
type: 'dragstart'
|
|
19050
|
-
origin: EventPosition
|
|
19467
|
+
origin: Pick<EventPosition, 'selection'>
|
|
19051
19468
|
ghost?: HTMLElement
|
|
19052
19469
|
}
|
|
19053
19470
|
| {
|
|
@@ -19119,6 +19536,10 @@ declare const editorMachine: StateMachine<
|
|
|
19119
19536
|
| {
|
|
19120
19537
|
type: 'decorator.toggle'
|
|
19121
19538
|
decorator: string
|
|
19539
|
+
offsets?: {
|
|
19540
|
+
anchor: BlockOffset_2
|
|
19541
|
+
focus: BlockOffset_2
|
|
19542
|
+
}
|
|
19122
19543
|
}
|
|
19123
19544
|
| {
|
|
19124
19545
|
type: 'delete'
|
|
@@ -19263,22 +19684,26 @@ declare const editorMachine: StateMachine<
|
|
|
19263
19684
|
mimeType: `${string}/${string}`
|
|
19264
19685
|
reason: string
|
|
19265
19686
|
} & {
|
|
19266
|
-
originEvent:
|
|
19267
|
-
|
|
19268
|
-
|
|
19269
|
-
|
|
19270
|
-
|
|
19687
|
+
originEvent:
|
|
19688
|
+
| PickFromUnion_2<
|
|
19689
|
+
NativeBehaviorEvent,
|
|
19690
|
+
'type',
|
|
19691
|
+
'drag.drop' | 'clipboard.paste'
|
|
19692
|
+
>
|
|
19693
|
+
| InputBehaviorEvent_2
|
|
19271
19694
|
})
|
|
19272
19695
|
| ({
|
|
19273
19696
|
type: 'deserialization.success'
|
|
19274
19697
|
data: Array<PortableTextBlock>
|
|
19275
19698
|
mimeType: `${string}/${string}`
|
|
19276
19699
|
} & {
|
|
19277
|
-
originEvent:
|
|
19278
|
-
|
|
19279
|
-
|
|
19280
|
-
|
|
19281
|
-
|
|
19700
|
+
originEvent:
|
|
19701
|
+
| PickFromUnion_2<
|
|
19702
|
+
NativeBehaviorEvent,
|
|
19703
|
+
'type',
|
|
19704
|
+
'drag.drop' | 'clipboard.paste'
|
|
19705
|
+
>
|
|
19706
|
+
| InputBehaviorEvent_2
|
|
19282
19707
|
})
|
|
19283
19708
|
| {
|
|
19284
19709
|
type: 'serialization.success'
|
|
@@ -19367,7 +19792,7 @@ declare const editorMachine: StateMachine<
|
|
|
19367
19792
|
value: Array<PortableTextBlock> | undefined
|
|
19368
19793
|
internalDrag?: {
|
|
19369
19794
|
ghost?: HTMLElement
|
|
19370
|
-
origin: EventPosition
|
|
19795
|
+
origin: Pick<EventPosition, 'selection'>
|
|
19371
19796
|
}
|
|
19372
19797
|
},
|
|
19373
19798
|
| {
|
|
@@ -19436,6 +19861,10 @@ declare const editorMachine: StateMachine<
|
|
|
19436
19861
|
| {
|
|
19437
19862
|
type: 'decorator.toggle'
|
|
19438
19863
|
decorator: string
|
|
19864
|
+
offsets?: {
|
|
19865
|
+
anchor: BlockOffset_2
|
|
19866
|
+
focus: BlockOffset_2
|
|
19867
|
+
}
|
|
19439
19868
|
}
|
|
19440
19869
|
| {
|
|
19441
19870
|
type: 'delete'
|
|
@@ -19580,22 +20009,26 @@ declare const editorMachine: StateMachine<
|
|
|
19580
20009
|
mimeType: `${string}/${string}`
|
|
19581
20010
|
reason: string
|
|
19582
20011
|
} & {
|
|
19583
|
-
originEvent:
|
|
19584
|
-
|
|
19585
|
-
|
|
19586
|
-
|
|
19587
|
-
|
|
20012
|
+
originEvent:
|
|
20013
|
+
| PickFromUnion_2<
|
|
20014
|
+
NativeBehaviorEvent,
|
|
20015
|
+
'type',
|
|
20016
|
+
'drag.drop' | 'clipboard.paste'
|
|
20017
|
+
>
|
|
20018
|
+
| InputBehaviorEvent_2
|
|
19588
20019
|
})
|
|
19589
20020
|
| ({
|
|
19590
20021
|
type: 'deserialization.success'
|
|
19591
20022
|
data: Array<PortableTextBlock>
|
|
19592
20023
|
mimeType: `${string}/${string}`
|
|
19593
20024
|
} & {
|
|
19594
|
-
originEvent:
|
|
19595
|
-
|
|
19596
|
-
|
|
19597
|
-
|
|
19598
|
-
|
|
20025
|
+
originEvent:
|
|
20026
|
+
| PickFromUnion_2<
|
|
20027
|
+
NativeBehaviorEvent,
|
|
20028
|
+
'type',
|
|
20029
|
+
'drag.drop' | 'clipboard.paste'
|
|
20030
|
+
>
|
|
20031
|
+
| InputBehaviorEvent_2
|
|
19599
20032
|
})
|
|
19600
20033
|
| {
|
|
19601
20034
|
type: 'serialization.success'
|
|
@@ -19740,7 +20173,7 @@ declare const editorMachine: StateMachine<
|
|
|
19740
20173
|
}
|
|
19741
20174
|
| {
|
|
19742
20175
|
type: 'dragstart'
|
|
19743
|
-
origin: EventPosition
|
|
20176
|
+
origin: Pick<EventPosition, 'selection'>
|
|
19744
20177
|
ghost?: HTMLElement
|
|
19745
20178
|
}
|
|
19746
20179
|
| {
|
|
@@ -19812,6 +20245,10 @@ declare const editorMachine: StateMachine<
|
|
|
19812
20245
|
| {
|
|
19813
20246
|
type: 'decorator.toggle'
|
|
19814
20247
|
decorator: string
|
|
20248
|
+
offsets?: {
|
|
20249
|
+
anchor: BlockOffset_2
|
|
20250
|
+
focus: BlockOffset_2
|
|
20251
|
+
}
|
|
19815
20252
|
}
|
|
19816
20253
|
| {
|
|
19817
20254
|
type: 'delete'
|
|
@@ -19956,22 +20393,26 @@ declare const editorMachine: StateMachine<
|
|
|
19956
20393
|
mimeType: `${string}/${string}`
|
|
19957
20394
|
reason: string
|
|
19958
20395
|
} & {
|
|
19959
|
-
originEvent:
|
|
19960
|
-
|
|
19961
|
-
|
|
19962
|
-
|
|
19963
|
-
|
|
20396
|
+
originEvent:
|
|
20397
|
+
| PickFromUnion_2<
|
|
20398
|
+
NativeBehaviorEvent,
|
|
20399
|
+
'type',
|
|
20400
|
+
'drag.drop' | 'clipboard.paste'
|
|
20401
|
+
>
|
|
20402
|
+
| InputBehaviorEvent_2
|
|
19964
20403
|
})
|
|
19965
20404
|
| ({
|
|
19966
20405
|
type: 'deserialization.success'
|
|
19967
20406
|
data: Array<PortableTextBlock>
|
|
19968
20407
|
mimeType: `${string}/${string}`
|
|
19969
20408
|
} & {
|
|
19970
|
-
originEvent:
|
|
19971
|
-
|
|
19972
|
-
|
|
19973
|
-
|
|
19974
|
-
|
|
20409
|
+
originEvent:
|
|
20410
|
+
| PickFromUnion_2<
|
|
20411
|
+
NativeBehaviorEvent,
|
|
20412
|
+
'type',
|
|
20413
|
+
'drag.drop' | 'clipboard.paste'
|
|
20414
|
+
>
|
|
20415
|
+
| InputBehaviorEvent_2
|
|
19975
20416
|
})
|
|
19976
20417
|
| {
|
|
19977
20418
|
type: 'serialization.success'
|
|
@@ -20060,7 +20501,7 @@ declare const editorMachine: StateMachine<
|
|
|
20060
20501
|
value: Array<PortableTextBlock> | undefined
|
|
20061
20502
|
internalDrag?: {
|
|
20062
20503
|
ghost?: HTMLElement
|
|
20063
|
-
origin: EventPosition
|
|
20504
|
+
origin: Pick<EventPosition, 'selection'>
|
|
20064
20505
|
}
|
|
20065
20506
|
},
|
|
20066
20507
|
| {
|
|
@@ -20133,6 +20574,10 @@ declare const editorMachine: StateMachine<
|
|
|
20133
20574
|
| {
|
|
20134
20575
|
type: 'decorator.toggle'
|
|
20135
20576
|
decorator: string
|
|
20577
|
+
offsets?: {
|
|
20578
|
+
anchor: BlockOffset_2
|
|
20579
|
+
focus: BlockOffset_2
|
|
20580
|
+
}
|
|
20136
20581
|
}
|
|
20137
20582
|
| {
|
|
20138
20583
|
type: 'delete'
|
|
@@ -20277,22 +20722,26 @@ declare const editorMachine: StateMachine<
|
|
|
20277
20722
|
mimeType: `${string}/${string}`
|
|
20278
20723
|
reason: string
|
|
20279
20724
|
} & {
|
|
20280
|
-
originEvent:
|
|
20281
|
-
|
|
20282
|
-
|
|
20283
|
-
|
|
20284
|
-
|
|
20725
|
+
originEvent:
|
|
20726
|
+
| PickFromUnion_2<
|
|
20727
|
+
NativeBehaviorEvent,
|
|
20728
|
+
'type',
|
|
20729
|
+
'drag.drop' | 'clipboard.paste'
|
|
20730
|
+
>
|
|
20731
|
+
| InputBehaviorEvent_2
|
|
20285
20732
|
})
|
|
20286
20733
|
| ({
|
|
20287
20734
|
type: 'deserialization.success'
|
|
20288
20735
|
data: Array<PortableTextBlock>
|
|
20289
20736
|
mimeType: `${string}/${string}`
|
|
20290
20737
|
} & {
|
|
20291
|
-
originEvent:
|
|
20292
|
-
|
|
20293
|
-
|
|
20294
|
-
|
|
20295
|
-
|
|
20738
|
+
originEvent:
|
|
20739
|
+
| PickFromUnion_2<
|
|
20740
|
+
NativeBehaviorEvent,
|
|
20741
|
+
'type',
|
|
20742
|
+
'drag.drop' | 'clipboard.paste'
|
|
20743
|
+
>
|
|
20744
|
+
| InputBehaviorEvent_2
|
|
20296
20745
|
})
|
|
20297
20746
|
| {
|
|
20298
20747
|
type: 'serialization.success'
|
|
@@ -20437,7 +20886,7 @@ declare const editorMachine: StateMachine<
|
|
|
20437
20886
|
}
|
|
20438
20887
|
| {
|
|
20439
20888
|
type: 'dragstart'
|
|
20440
|
-
origin: EventPosition
|
|
20889
|
+
origin: Pick<EventPosition, 'selection'>
|
|
20441
20890
|
ghost?: HTMLElement
|
|
20442
20891
|
}
|
|
20443
20892
|
| {
|
|
@@ -20509,6 +20958,10 @@ declare const editorMachine: StateMachine<
|
|
|
20509
20958
|
| {
|
|
20510
20959
|
type: 'decorator.toggle'
|
|
20511
20960
|
decorator: string
|
|
20961
|
+
offsets?: {
|
|
20962
|
+
anchor: BlockOffset_2
|
|
20963
|
+
focus: BlockOffset_2
|
|
20964
|
+
}
|
|
20512
20965
|
}
|
|
20513
20966
|
| {
|
|
20514
20967
|
type: 'delete'
|
|
@@ -20653,22 +21106,26 @@ declare const editorMachine: StateMachine<
|
|
|
20653
21106
|
mimeType: `${string}/${string}`
|
|
20654
21107
|
reason: string
|
|
20655
21108
|
} & {
|
|
20656
|
-
originEvent:
|
|
20657
|
-
|
|
20658
|
-
|
|
20659
|
-
|
|
20660
|
-
|
|
21109
|
+
originEvent:
|
|
21110
|
+
| PickFromUnion_2<
|
|
21111
|
+
NativeBehaviorEvent,
|
|
21112
|
+
'type',
|
|
21113
|
+
'drag.drop' | 'clipboard.paste'
|
|
21114
|
+
>
|
|
21115
|
+
| InputBehaviorEvent_2
|
|
20661
21116
|
})
|
|
20662
21117
|
| ({
|
|
20663
21118
|
type: 'deserialization.success'
|
|
20664
21119
|
data: Array<PortableTextBlock>
|
|
20665
21120
|
mimeType: `${string}/${string}`
|
|
20666
21121
|
} & {
|
|
20667
|
-
originEvent:
|
|
20668
|
-
|
|
20669
|
-
|
|
20670
|
-
|
|
20671
|
-
|
|
21122
|
+
originEvent:
|
|
21123
|
+
| PickFromUnion_2<
|
|
21124
|
+
NativeBehaviorEvent,
|
|
21125
|
+
'type',
|
|
21126
|
+
'drag.drop' | 'clipboard.paste'
|
|
21127
|
+
>
|
|
21128
|
+
| InputBehaviorEvent_2
|
|
20672
21129
|
})
|
|
20673
21130
|
| {
|
|
20674
21131
|
type: 'serialization.success'
|
|
@@ -20778,12 +21235,12 @@ declare const editorMachine: StateMachine<
|
|
|
20778
21235
|
value: Array<PortableTextBlock> | undefined
|
|
20779
21236
|
internalDrag?: {
|
|
20780
21237
|
ghost?: HTMLElement
|
|
20781
|
-
origin: EventPosition
|
|
21238
|
+
origin: Pick<EventPosition, 'selection'>
|
|
20782
21239
|
}
|
|
20783
21240
|
},
|
|
20784
21241
|
{
|
|
20785
21242
|
type: 'dragstart'
|
|
20786
|
-
origin: EventPosition
|
|
21243
|
+
origin: Pick<EventPosition, 'selection'>
|
|
20787
21244
|
ghost?: HTMLElement
|
|
20788
21245
|
},
|
|
20789
21246
|
| {
|
|
@@ -20844,6 +21301,10 @@ declare const editorMachine: StateMachine<
|
|
|
20844
21301
|
| {
|
|
20845
21302
|
type: 'decorator.toggle'
|
|
20846
21303
|
decorator: string
|
|
21304
|
+
offsets?: {
|
|
21305
|
+
anchor: BlockOffset_2
|
|
21306
|
+
focus: BlockOffset_2
|
|
21307
|
+
}
|
|
20847
21308
|
}
|
|
20848
21309
|
| {
|
|
20849
21310
|
type: 'delete'
|
|
@@ -20988,22 +21449,26 @@ declare const editorMachine: StateMachine<
|
|
|
20988
21449
|
mimeType: `${string}/${string}`
|
|
20989
21450
|
reason: string
|
|
20990
21451
|
} & {
|
|
20991
|
-
originEvent:
|
|
20992
|
-
|
|
20993
|
-
|
|
20994
|
-
|
|
20995
|
-
|
|
21452
|
+
originEvent:
|
|
21453
|
+
| PickFromUnion_2<
|
|
21454
|
+
NativeBehaviorEvent,
|
|
21455
|
+
'type',
|
|
21456
|
+
'drag.drop' | 'clipboard.paste'
|
|
21457
|
+
>
|
|
21458
|
+
| InputBehaviorEvent_2
|
|
20996
21459
|
})
|
|
20997
21460
|
| ({
|
|
20998
21461
|
type: 'deserialization.success'
|
|
20999
21462
|
data: Array<PortableTextBlock>
|
|
21000
21463
|
mimeType: `${string}/${string}`
|
|
21001
21464
|
} & {
|
|
21002
|
-
originEvent:
|
|
21003
|
-
|
|
21004
|
-
|
|
21005
|
-
|
|
21006
|
-
|
|
21465
|
+
originEvent:
|
|
21466
|
+
| PickFromUnion_2<
|
|
21467
|
+
NativeBehaviorEvent,
|
|
21468
|
+
'type',
|
|
21469
|
+
'drag.drop' | 'clipboard.paste'
|
|
21470
|
+
>
|
|
21471
|
+
| InputBehaviorEvent_2
|
|
21007
21472
|
})
|
|
21008
21473
|
| {
|
|
21009
21474
|
type: 'serialization.success'
|
|
@@ -21152,7 +21617,7 @@ declare const editorMachine: StateMachine<
|
|
|
21152
21617
|
}
|
|
21153
21618
|
| {
|
|
21154
21619
|
type: 'dragstart'
|
|
21155
|
-
origin: EventPosition
|
|
21620
|
+
origin: Pick<EventPosition, 'selection'>
|
|
21156
21621
|
ghost?: HTMLElement
|
|
21157
21622
|
}
|
|
21158
21623
|
| {
|
|
@@ -21190,7 +21655,7 @@ declare const editorMachine: StateMachine<
|
|
|
21190
21655
|
value: Array<PortableTextBlock> | undefined
|
|
21191
21656
|
internalDrag?: {
|
|
21192
21657
|
ghost?: HTMLElement
|
|
21193
|
-
origin: EventPosition
|
|
21658
|
+
origin: Pick<EventPosition, 'selection'>
|
|
21194
21659
|
}
|
|
21195
21660
|
},
|
|
21196
21661
|
| {
|
|
@@ -21251,6 +21716,10 @@ declare const editorMachine: StateMachine<
|
|
|
21251
21716
|
| {
|
|
21252
21717
|
type: 'decorator.toggle'
|
|
21253
21718
|
decorator: string
|
|
21719
|
+
offsets?: {
|
|
21720
|
+
anchor: BlockOffset_2
|
|
21721
|
+
focus: BlockOffset_2
|
|
21722
|
+
}
|
|
21254
21723
|
}
|
|
21255
21724
|
| {
|
|
21256
21725
|
type: 'delete'
|
|
@@ -21395,22 +21864,26 @@ declare const editorMachine: StateMachine<
|
|
|
21395
21864
|
mimeType: `${string}/${string}`
|
|
21396
21865
|
reason: string
|
|
21397
21866
|
} & {
|
|
21398
|
-
originEvent:
|
|
21399
|
-
|
|
21400
|
-
|
|
21401
|
-
|
|
21402
|
-
|
|
21867
|
+
originEvent:
|
|
21868
|
+
| PickFromUnion_2<
|
|
21869
|
+
NativeBehaviorEvent,
|
|
21870
|
+
'type',
|
|
21871
|
+
'drag.drop' | 'clipboard.paste'
|
|
21872
|
+
>
|
|
21873
|
+
| InputBehaviorEvent_2
|
|
21403
21874
|
})
|
|
21404
21875
|
| ({
|
|
21405
21876
|
type: 'deserialization.success'
|
|
21406
21877
|
data: Array<PortableTextBlock>
|
|
21407
21878
|
mimeType: `${string}/${string}`
|
|
21408
21879
|
} & {
|
|
21409
|
-
originEvent:
|
|
21410
|
-
|
|
21411
|
-
|
|
21412
|
-
|
|
21413
|
-
|
|
21880
|
+
originEvent:
|
|
21881
|
+
| PickFromUnion_2<
|
|
21882
|
+
NativeBehaviorEvent,
|
|
21883
|
+
'type',
|
|
21884
|
+
'drag.drop' | 'clipboard.paste'
|
|
21885
|
+
>
|
|
21886
|
+
| InputBehaviorEvent_2
|
|
21414
21887
|
})
|
|
21415
21888
|
| {
|
|
21416
21889
|
type: 'serialization.success'
|
|
@@ -21555,7 +22028,7 @@ declare const editorMachine: StateMachine<
|
|
|
21555
22028
|
}
|
|
21556
22029
|
| {
|
|
21557
22030
|
type: 'dragstart'
|
|
21558
|
-
origin: EventPosition
|
|
22031
|
+
origin: Pick<EventPosition, 'selection'>
|
|
21559
22032
|
ghost?: HTMLElement
|
|
21560
22033
|
}
|
|
21561
22034
|
| {
|
|
@@ -21622,6 +22095,10 @@ declare const editorMachine: StateMachine<
|
|
|
21622
22095
|
| {
|
|
21623
22096
|
type: 'decorator.toggle'
|
|
21624
22097
|
decorator: string
|
|
22098
|
+
offsets?: {
|
|
22099
|
+
anchor: BlockOffset_2
|
|
22100
|
+
focus: BlockOffset_2
|
|
22101
|
+
}
|
|
21625
22102
|
}
|
|
21626
22103
|
| {
|
|
21627
22104
|
type: 'delete'
|
|
@@ -21766,22 +22243,26 @@ declare const editorMachine: StateMachine<
|
|
|
21766
22243
|
mimeType: `${string}/${string}`
|
|
21767
22244
|
reason: string
|
|
21768
22245
|
} & {
|
|
21769
|
-
originEvent:
|
|
21770
|
-
|
|
21771
|
-
|
|
21772
|
-
|
|
21773
|
-
|
|
22246
|
+
originEvent:
|
|
22247
|
+
| PickFromUnion_2<
|
|
22248
|
+
NativeBehaviorEvent,
|
|
22249
|
+
'type',
|
|
22250
|
+
'drag.drop' | 'clipboard.paste'
|
|
22251
|
+
>
|
|
22252
|
+
| InputBehaviorEvent_2
|
|
21774
22253
|
})
|
|
21775
22254
|
| ({
|
|
21776
22255
|
type: 'deserialization.success'
|
|
21777
22256
|
data: Array<PortableTextBlock>
|
|
21778
22257
|
mimeType: `${string}/${string}`
|
|
21779
22258
|
} & {
|
|
21780
|
-
originEvent:
|
|
21781
|
-
|
|
21782
|
-
|
|
21783
|
-
|
|
21784
|
-
|
|
22259
|
+
originEvent:
|
|
22260
|
+
| PickFromUnion_2<
|
|
22261
|
+
NativeBehaviorEvent,
|
|
22262
|
+
'type',
|
|
22263
|
+
'drag.drop' | 'clipboard.paste'
|
|
22264
|
+
>
|
|
22265
|
+
| InputBehaviorEvent_2
|
|
21785
22266
|
})
|
|
21786
22267
|
| {
|
|
21787
22268
|
type: 'serialization.success'
|
|
@@ -21926,7 +22407,7 @@ declare const editorMachine: StateMachine<
|
|
|
21926
22407
|
}
|
|
21927
22408
|
| {
|
|
21928
22409
|
type: 'dragstart'
|
|
21929
|
-
origin: EventPosition
|
|
22410
|
+
origin: Pick<EventPosition, 'selection'>
|
|
21930
22411
|
ghost?: HTMLElement
|
|
21931
22412
|
}
|
|
21932
22413
|
| {
|
|
@@ -21949,7 +22430,7 @@ declare const editorMachine: StateMachine<
|
|
|
21949
22430
|
value: Array<PortableTextBlock> | undefined
|
|
21950
22431
|
internalDrag?: {
|
|
21951
22432
|
ghost?: HTMLElement
|
|
21952
|
-
origin: EventPosition
|
|
22433
|
+
origin: Pick<EventPosition, 'selection'>
|
|
21953
22434
|
}
|
|
21954
22435
|
},
|
|
21955
22436
|
| {
|
|
@@ -22010,6 +22491,10 @@ declare const editorMachine: StateMachine<
|
|
|
22010
22491
|
| {
|
|
22011
22492
|
type: 'decorator.toggle'
|
|
22012
22493
|
decorator: string
|
|
22494
|
+
offsets?: {
|
|
22495
|
+
anchor: BlockOffset_2
|
|
22496
|
+
focus: BlockOffset_2
|
|
22497
|
+
}
|
|
22013
22498
|
}
|
|
22014
22499
|
| {
|
|
22015
22500
|
type: 'delete'
|
|
@@ -22154,22 +22639,26 @@ declare const editorMachine: StateMachine<
|
|
|
22154
22639
|
mimeType: `${string}/${string}`
|
|
22155
22640
|
reason: string
|
|
22156
22641
|
} & {
|
|
22157
|
-
originEvent:
|
|
22158
|
-
|
|
22159
|
-
|
|
22160
|
-
|
|
22161
|
-
|
|
22642
|
+
originEvent:
|
|
22643
|
+
| PickFromUnion_2<
|
|
22644
|
+
NativeBehaviorEvent,
|
|
22645
|
+
'type',
|
|
22646
|
+
'drag.drop' | 'clipboard.paste'
|
|
22647
|
+
>
|
|
22648
|
+
| InputBehaviorEvent_2
|
|
22162
22649
|
})
|
|
22163
22650
|
| ({
|
|
22164
22651
|
type: 'deserialization.success'
|
|
22165
22652
|
data: Array<PortableTextBlock>
|
|
22166
22653
|
mimeType: `${string}/${string}`
|
|
22167
22654
|
} & {
|
|
22168
|
-
originEvent:
|
|
22169
|
-
|
|
22170
|
-
|
|
22171
|
-
|
|
22172
|
-
|
|
22655
|
+
originEvent:
|
|
22656
|
+
| PickFromUnion_2<
|
|
22657
|
+
NativeBehaviorEvent,
|
|
22658
|
+
'type',
|
|
22659
|
+
'drag.drop' | 'clipboard.paste'
|
|
22660
|
+
>
|
|
22661
|
+
| InputBehaviorEvent_2
|
|
22173
22662
|
})
|
|
22174
22663
|
| {
|
|
22175
22664
|
type: 'serialization.success'
|
|
@@ -22314,7 +22803,7 @@ declare const editorMachine: StateMachine<
|
|
|
22314
22803
|
}
|
|
22315
22804
|
| {
|
|
22316
22805
|
type: 'dragstart'
|
|
22317
|
-
origin: EventPosition
|
|
22806
|
+
origin: Pick<EventPosition, 'selection'>
|
|
22318
22807
|
ghost?: HTMLElement
|
|
22319
22808
|
}
|
|
22320
22809
|
| {
|
|
@@ -22381,6 +22870,10 @@ declare const editorMachine: StateMachine<
|
|
|
22381
22870
|
| {
|
|
22382
22871
|
type: 'decorator.toggle'
|
|
22383
22872
|
decorator: string
|
|
22873
|
+
offsets?: {
|
|
22874
|
+
anchor: BlockOffset_2
|
|
22875
|
+
focus: BlockOffset_2
|
|
22876
|
+
}
|
|
22384
22877
|
}
|
|
22385
22878
|
| {
|
|
22386
22879
|
type: 'delete'
|
|
@@ -22525,22 +23018,26 @@ declare const editorMachine: StateMachine<
|
|
|
22525
23018
|
mimeType: `${string}/${string}`
|
|
22526
23019
|
reason: string
|
|
22527
23020
|
} & {
|
|
22528
|
-
originEvent:
|
|
22529
|
-
|
|
22530
|
-
|
|
22531
|
-
|
|
22532
|
-
|
|
23021
|
+
originEvent:
|
|
23022
|
+
| PickFromUnion_2<
|
|
23023
|
+
NativeBehaviorEvent,
|
|
23024
|
+
'type',
|
|
23025
|
+
'drag.drop' | 'clipboard.paste'
|
|
23026
|
+
>
|
|
23027
|
+
| InputBehaviorEvent_2
|
|
22533
23028
|
})
|
|
22534
23029
|
| ({
|
|
22535
23030
|
type: 'deserialization.success'
|
|
22536
23031
|
data: Array<PortableTextBlock>
|
|
22537
23032
|
mimeType: `${string}/${string}`
|
|
22538
23033
|
} & {
|
|
22539
|
-
originEvent:
|
|
22540
|
-
|
|
22541
|
-
|
|
22542
|
-
|
|
22543
|
-
|
|
23034
|
+
originEvent:
|
|
23035
|
+
| PickFromUnion_2<
|
|
23036
|
+
NativeBehaviorEvent,
|
|
23037
|
+
'type',
|
|
23038
|
+
'drag.drop' | 'clipboard.paste'
|
|
23039
|
+
>
|
|
23040
|
+
| InputBehaviorEvent_2
|
|
22544
23041
|
})
|
|
22545
23042
|
| {
|
|
22546
23043
|
type: 'serialization.success'
|
|
@@ -22685,7 +23182,7 @@ declare const editorMachine: StateMachine<
|
|
|
22685
23182
|
}
|
|
22686
23183
|
| {
|
|
22687
23184
|
type: 'dragstart'
|
|
22688
|
-
origin: EventPosition
|
|
23185
|
+
origin: Pick<EventPosition, 'selection'>
|
|
22689
23186
|
ghost?: HTMLElement
|
|
22690
23187
|
}
|
|
22691
23188
|
| {
|
|
@@ -22854,7 +23351,7 @@ export declare type EditorSnapshot = {
|
|
|
22854
23351
|
hasTag: HasTag
|
|
22855
23352
|
internalDrag:
|
|
22856
23353
|
| {
|
|
22857
|
-
origin: EventPosition
|
|
23354
|
+
origin: Pick<EventPosition, 'selection'>
|
|
22858
23355
|
}
|
|
22859
23356
|
| undefined
|
|
22860
23357
|
}
|
|
@@ -22949,8 +23446,34 @@ export declare type HotkeyOptions = {
|
|
|
22949
23446
|
>
|
|
22950
23447
|
}
|
|
22951
23448
|
|
|
23449
|
+
/**
|
|
23450
|
+
* Used to represent native InputEvents that hold a DataTransfer object.
|
|
23451
|
+
*
|
|
23452
|
+
* These can either be one of:
|
|
23453
|
+
*
|
|
23454
|
+
* - insertFromPaste
|
|
23455
|
+
* - insertFromPasteAsQuotation
|
|
23456
|
+
* - insertFromDrop
|
|
23457
|
+
* - insertReplacementText
|
|
23458
|
+
* - insertFromYank
|
|
23459
|
+
*/
|
|
23460
|
+
declare type InputBehaviorEvent = {
|
|
23461
|
+
type: 'input.*'
|
|
23462
|
+
originEvent: {
|
|
23463
|
+
dataTransfer: DataTransfer
|
|
23464
|
+
}
|
|
23465
|
+
}
|
|
23466
|
+
|
|
22952
23467
|
declare type InsertPlacement = 'auto' | 'after' | 'before'
|
|
22953
23468
|
|
|
23469
|
+
declare type InternalEditor = Editor & {
|
|
23470
|
+
_internal: {
|
|
23471
|
+
editable: EditableAPI
|
|
23472
|
+
editorActor: EditorActor
|
|
23473
|
+
slateEditor: SlateEditor
|
|
23474
|
+
}
|
|
23475
|
+
}
|
|
23476
|
+
|
|
22954
23477
|
declare type InternalPatchEvent = NamespaceEvent<PatchEvent, 'internal'> & {
|
|
22955
23478
|
actionId?: string
|
|
22956
23479
|
value: Array<PortableTextBlock>
|
|
@@ -23065,9 +23588,10 @@ declare type NamespaceEvent<
|
|
|
23065
23588
|
*/
|
|
23066
23589
|
declare type NativeBehaviorEvent =
|
|
23067
23590
|
| ClipboardBehaviorEvent
|
|
23591
|
+
| DragBehaviorEvent
|
|
23592
|
+
| InputBehaviorEvent
|
|
23068
23593
|
| KeyboardBehaviorEvent
|
|
23069
23594
|
| MouseBehaviorEvent
|
|
23070
|
-
| DragBehaviorEvent
|
|
23071
23595
|
|
|
23072
23596
|
/** @beta */
|
|
23073
23597
|
export declare type OnBeforeInputFn = (event: InputEvent) => void
|
|
@@ -23207,7 +23731,7 @@ export declare type PortableTextEditableProps = Omit<
|
|
|
23207
23731
|
* @deprecated Use `EditorProvider` instead
|
|
23208
23732
|
*/
|
|
23209
23733
|
export declare class PortableTextEditor extends Component<
|
|
23210
|
-
PortableTextEditorProps<
|
|
23734
|
+
PortableTextEditorProps<InternalEditor | undefined>
|
|
23211
23735
|
> {
|
|
23212
23736
|
static displayName: string
|
|
23213
23737
|
/**
|
|
@@ -23652,12 +24176,12 @@ export declare class PortableTextEditor extends Component<
|
|
|
23652
24176
|
* @deprecated Use `EditorProvider` instead
|
|
23653
24177
|
*/
|
|
23654
24178
|
export declare type PortableTextEditorProps<
|
|
23655
|
-
TEditor extends
|
|
24179
|
+
TEditor extends InternalEditor | undefined = undefined,
|
|
23656
24180
|
> = PropsWithChildren<
|
|
23657
|
-
TEditor extends
|
|
24181
|
+
TEditor extends InternalEditor
|
|
23658
24182
|
? {
|
|
23659
24183
|
/**
|
|
23660
|
-
* @
|
|
24184
|
+
* @internal
|
|
23661
24185
|
*/
|
|
23662
24186
|
editor: TEditor
|
|
23663
24187
|
}
|
|
@@ -23956,6 +24480,10 @@ declare type SyntheticBehaviorEvent =
|
|
|
23956
24480
|
| {
|
|
23957
24481
|
type: 'decorator.toggle'
|
|
23958
24482
|
decorator: string
|
|
24483
|
+
offsets?: {
|
|
24484
|
+
anchor: BlockOffset
|
|
24485
|
+
focus: BlockOffset
|
|
24486
|
+
}
|
|
23959
24487
|
}
|
|
23960
24488
|
| {
|
|
23961
24489
|
type: 'delete'
|
|
@@ -24100,11 +24628,13 @@ declare type SyntheticBehaviorEvent =
|
|
|
24100
24628
|
'type',
|
|
24101
24629
|
'deserialization.failure' | 'deserialization.success'
|
|
24102
24630
|
> & {
|
|
24103
|
-
originEvent:
|
|
24104
|
-
|
|
24105
|
-
|
|
24106
|
-
|
|
24107
|
-
|
|
24631
|
+
originEvent:
|
|
24632
|
+
| PickFromUnion<
|
|
24633
|
+
NativeBehaviorEvent,
|
|
24634
|
+
'type',
|
|
24635
|
+
'drag.drop' | 'clipboard.paste'
|
|
24636
|
+
>
|
|
24637
|
+
| InputBehaviorEvent
|
|
24108
24638
|
})
|
|
24109
24639
|
| {
|
|
24110
24640
|
type: 'serialization.success'
|