@portabletext/editor 1.39.1 → 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 +12 -4
- package/lib/_chunks-cjs/behavior.core.cjs.map +1 -1
- package/lib/_chunks-cjs/editor-provider.cjs +122 -102
- package/lib/_chunks-cjs/editor-provider.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 +12 -4
- package/lib/_chunks-es/behavior.core.js.map +1 -1
- package/lib/_chunks-es/editor-provider.js +116 -96
- package/lib/_chunks-es/editor-provider.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 +383 -111
- package/lib/behaviors/index.d.ts +383 -111
- package/lib/index.cjs +197 -194
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +345 -90
- package/lib/index.d.ts +345 -90
- package/lib/index.js +204 -201
- package/lib/index.js.map +1 -1
- package/lib/plugins/index.cjs +11 -11
- package/lib/plugins/index.cjs.map +1 -1
- package/lib/plugins/index.d.cts +335 -93
- package/lib/plugins/index.d.ts +335 -93
- package/lib/plugins/index.js +2 -2
- package/lib/selectors/index.d.cts +333 -81
- package/lib/selectors/index.d.ts +333 -81
- package/lib/utils/index.cjs +15 -87
- package/lib/utils/index.cjs.map +1 -1
- package/lib/utils/index.d.cts +386 -84
- package/lib/utils/index.d.ts +386 -84
- package/lib/utils/index.js +13 -86
- package/lib/utils/index.js.map +1 -1
- package/package.json +6 -6
- 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 +38 -14
- package/src/behaviors/behavior.types.ts +5 -4
- 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 +6 -2
- 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/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/selectors/index.d.ts
CHANGED
|
@@ -182,21 +182,21 @@ declare type ClipboardBehaviorEvent =
|
|
|
182
182
|
originEvent: {
|
|
183
183
|
dataTransfer: DataTransfer
|
|
184
184
|
}
|
|
185
|
-
position: EventPosition
|
|
185
|
+
position: Pick<EventPosition, 'selection'>
|
|
186
186
|
}
|
|
187
187
|
| {
|
|
188
188
|
type: 'clipboard.cut'
|
|
189
189
|
originEvent: {
|
|
190
190
|
dataTransfer: DataTransfer
|
|
191
191
|
}
|
|
192
|
-
position: EventPosition
|
|
192
|
+
position: Pick<EventPosition, 'selection'>
|
|
193
193
|
}
|
|
194
194
|
| {
|
|
195
195
|
type: 'clipboard.paste'
|
|
196
196
|
originEvent: {
|
|
197
197
|
dataTransfer: DataTransfer
|
|
198
198
|
}
|
|
199
|
-
position: EventPosition
|
|
199
|
+
position: Pick<EventPosition, 'selection'>
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
declare type Converter<TMIMEType extends MIMEType = MIMEType> = {
|
|
@@ -286,7 +286,7 @@ declare type DragBehaviorEvent =
|
|
|
286
286
|
originEvent: {
|
|
287
287
|
dataTransfer: DataTransfer
|
|
288
288
|
}
|
|
289
|
-
position: EventPosition
|
|
289
|
+
position: Pick<EventPosition, 'selection'>
|
|
290
290
|
}
|
|
291
291
|
| {
|
|
292
292
|
type: 'drag.drag'
|
|
@@ -451,7 +451,7 @@ declare const editorMachine: StateMachine<
|
|
|
451
451
|
value: Array<PortableTextBlock> | undefined
|
|
452
452
|
internalDrag?: {
|
|
453
453
|
ghost?: HTMLElement
|
|
454
|
-
origin: EventPosition
|
|
454
|
+
origin: Pick<EventPosition, 'selection'>
|
|
455
455
|
}
|
|
456
456
|
},
|
|
457
457
|
| {
|
|
@@ -512,6 +512,10 @@ declare const editorMachine: StateMachine<
|
|
|
512
512
|
| {
|
|
513
513
|
type: 'decorator.toggle'
|
|
514
514
|
decorator: string
|
|
515
|
+
offsets?: {
|
|
516
|
+
anchor: BlockOffset_2
|
|
517
|
+
focus: BlockOffset_2
|
|
518
|
+
}
|
|
515
519
|
}
|
|
516
520
|
| {
|
|
517
521
|
type: 'delete'
|
|
@@ -820,7 +824,7 @@ declare const editorMachine: StateMachine<
|
|
|
820
824
|
}
|
|
821
825
|
| {
|
|
822
826
|
type: 'dragstart'
|
|
823
|
-
origin: EventPosition
|
|
827
|
+
origin: Pick<EventPosition, 'selection'>
|
|
824
828
|
ghost?: HTMLElement
|
|
825
829
|
}
|
|
826
830
|
| {
|
|
@@ -890,7 +894,7 @@ declare const editorMachine: StateMachine<
|
|
|
890
894
|
{
|
|
891
895
|
'edit mode':
|
|
892
896
|
| {
|
|
893
|
-
editable: '
|
|
897
|
+
editable: 'dragging internally' | 'idle'
|
|
894
898
|
}
|
|
895
899
|
| {
|
|
896
900
|
'read only': 'read only' | 'determine initial edit mode'
|
|
@@ -899,7 +903,7 @@ declare const editorMachine: StateMachine<
|
|
|
899
903
|
| 'setting up'
|
|
900
904
|
| 'dirty'
|
|
901
905
|
| {
|
|
902
|
-
pristine: '
|
|
906
|
+
pristine: 'normalizing' | 'idle'
|
|
903
907
|
}
|
|
904
908
|
},
|
|
905
909
|
'dragging internally',
|
|
@@ -971,6 +975,10 @@ declare const editorMachine: StateMachine<
|
|
|
971
975
|
| {
|
|
972
976
|
type: 'decorator.toggle'
|
|
973
977
|
decorator: string
|
|
978
|
+
offsets?: {
|
|
979
|
+
anchor: BlockOffset_2
|
|
980
|
+
focus: BlockOffset_2
|
|
981
|
+
}
|
|
974
982
|
}
|
|
975
983
|
| {
|
|
976
984
|
type: 'delete'
|
|
@@ -1258,7 +1266,7 @@ declare const editorMachine: StateMachine<
|
|
|
1258
1266
|
value: Array<PortableTextBlock> | undefined
|
|
1259
1267
|
internalDrag?: {
|
|
1260
1268
|
ghost?: HTMLElement
|
|
1261
|
-
origin: EventPosition
|
|
1269
|
+
origin: Pick<EventPosition, 'selection'>
|
|
1262
1270
|
}
|
|
1263
1271
|
},
|
|
1264
1272
|
| {
|
|
@@ -1319,6 +1327,10 @@ declare const editorMachine: StateMachine<
|
|
|
1319
1327
|
| {
|
|
1320
1328
|
type: 'decorator.toggle'
|
|
1321
1329
|
decorator: string
|
|
1330
|
+
offsets?: {
|
|
1331
|
+
anchor: BlockOffset_2
|
|
1332
|
+
focus: BlockOffset_2
|
|
1333
|
+
}
|
|
1322
1334
|
}
|
|
1323
1335
|
| {
|
|
1324
1336
|
type: 'delete'
|
|
@@ -1627,7 +1639,7 @@ declare const editorMachine: StateMachine<
|
|
|
1627
1639
|
}
|
|
1628
1640
|
| {
|
|
1629
1641
|
type: 'dragstart'
|
|
1630
|
-
origin: EventPosition
|
|
1642
|
+
origin: Pick<EventPosition, 'selection'>
|
|
1631
1643
|
ghost?: HTMLElement
|
|
1632
1644
|
}
|
|
1633
1645
|
| {
|
|
@@ -1701,6 +1713,10 @@ declare const editorMachine: StateMachine<
|
|
|
1701
1713
|
| {
|
|
1702
1714
|
type: 'decorator.toggle'
|
|
1703
1715
|
decorator: string
|
|
1716
|
+
offsets?: {
|
|
1717
|
+
anchor: BlockOffset_2
|
|
1718
|
+
focus: BlockOffset_2
|
|
1719
|
+
}
|
|
1704
1720
|
}
|
|
1705
1721
|
| {
|
|
1706
1722
|
type: 'delete'
|
|
@@ -2009,7 +2025,7 @@ declare const editorMachine: StateMachine<
|
|
|
2009
2025
|
}
|
|
2010
2026
|
| {
|
|
2011
2027
|
type: 'dragstart'
|
|
2012
|
-
origin: EventPosition
|
|
2028
|
+
origin: Pick<EventPosition, 'selection'>
|
|
2013
2029
|
ghost?: HTMLElement
|
|
2014
2030
|
}
|
|
2015
2031
|
| {
|
|
@@ -2046,7 +2062,7 @@ declare const editorMachine: StateMachine<
|
|
|
2046
2062
|
value: Array<PortableTextBlock> | undefined
|
|
2047
2063
|
internalDrag?: {
|
|
2048
2064
|
ghost?: HTMLElement
|
|
2049
|
-
origin: EventPosition
|
|
2065
|
+
origin: Pick<EventPosition, 'selection'>
|
|
2050
2066
|
}
|
|
2051
2067
|
},
|
|
2052
2068
|
{
|
|
@@ -2111,6 +2127,10 @@ declare const editorMachine: StateMachine<
|
|
|
2111
2127
|
| {
|
|
2112
2128
|
type: 'decorator.toggle'
|
|
2113
2129
|
decorator: string
|
|
2130
|
+
offsets?: {
|
|
2131
|
+
anchor: BlockOffset_2
|
|
2132
|
+
focus: BlockOffset_2
|
|
2133
|
+
}
|
|
2114
2134
|
}
|
|
2115
2135
|
| {
|
|
2116
2136
|
type: 'delete'
|
|
@@ -2419,7 +2439,7 @@ declare const editorMachine: StateMachine<
|
|
|
2419
2439
|
}
|
|
2420
2440
|
| {
|
|
2421
2441
|
type: 'dragstart'
|
|
2422
|
-
origin: EventPosition
|
|
2442
|
+
origin: Pick<EventPosition, 'selection'>
|
|
2423
2443
|
ghost?: HTMLElement
|
|
2424
2444
|
}
|
|
2425
2445
|
| {
|
|
@@ -2491,6 +2511,10 @@ declare const editorMachine: StateMachine<
|
|
|
2491
2511
|
| {
|
|
2492
2512
|
type: 'decorator.toggle'
|
|
2493
2513
|
decorator: string
|
|
2514
|
+
offsets?: {
|
|
2515
|
+
anchor: BlockOffset_2
|
|
2516
|
+
focus: BlockOffset_2
|
|
2517
|
+
}
|
|
2494
2518
|
}
|
|
2495
2519
|
| {
|
|
2496
2520
|
type: 'delete'
|
|
@@ -2743,7 +2767,7 @@ declare const editorMachine: StateMachine<
|
|
|
2743
2767
|
value: Array<PortableTextBlock> | undefined
|
|
2744
2768
|
internalDrag?: {
|
|
2745
2769
|
ghost?: HTMLElement
|
|
2746
|
-
origin: EventPosition
|
|
2770
|
+
origin: Pick<EventPosition, 'selection'>
|
|
2747
2771
|
}
|
|
2748
2772
|
},
|
|
2749
2773
|
{
|
|
@@ -2807,6 +2831,10 @@ declare const editorMachine: StateMachine<
|
|
|
2807
2831
|
| {
|
|
2808
2832
|
type: 'decorator.toggle'
|
|
2809
2833
|
decorator: string
|
|
2834
|
+
offsets?: {
|
|
2835
|
+
anchor: BlockOffset_2
|
|
2836
|
+
focus: BlockOffset_2
|
|
2837
|
+
}
|
|
2810
2838
|
}
|
|
2811
2839
|
| {
|
|
2812
2840
|
type: 'delete'
|
|
@@ -3115,7 +3143,7 @@ declare const editorMachine: StateMachine<
|
|
|
3115
3143
|
}
|
|
3116
3144
|
| {
|
|
3117
3145
|
type: 'dragstart'
|
|
3118
|
-
origin: EventPosition
|
|
3146
|
+
origin: Pick<EventPosition, 'selection'>
|
|
3119
3147
|
ghost?: HTMLElement
|
|
3120
3148
|
}
|
|
3121
3149
|
| {
|
|
@@ -3187,6 +3215,10 @@ declare const editorMachine: StateMachine<
|
|
|
3187
3215
|
| {
|
|
3188
3216
|
type: 'decorator.toggle'
|
|
3189
3217
|
decorator: string
|
|
3218
|
+
offsets?: {
|
|
3219
|
+
anchor: BlockOffset_2
|
|
3220
|
+
focus: BlockOffset_2
|
|
3221
|
+
}
|
|
3190
3222
|
}
|
|
3191
3223
|
| {
|
|
3192
3224
|
type: 'delete'
|
|
@@ -3439,7 +3471,7 @@ declare const editorMachine: StateMachine<
|
|
|
3439
3471
|
value: Array<PortableTextBlock> | undefined
|
|
3440
3472
|
internalDrag?: {
|
|
3441
3473
|
ghost?: HTMLElement
|
|
3442
|
-
origin: EventPosition
|
|
3474
|
+
origin: Pick<EventPosition, 'selection'>
|
|
3443
3475
|
}
|
|
3444
3476
|
},
|
|
3445
3477
|
{
|
|
@@ -3506,6 +3538,10 @@ declare const editorMachine: StateMachine<
|
|
|
3506
3538
|
| {
|
|
3507
3539
|
type: 'decorator.toggle'
|
|
3508
3540
|
decorator: string
|
|
3541
|
+
offsets?: {
|
|
3542
|
+
anchor: BlockOffset_2
|
|
3543
|
+
focus: BlockOffset_2
|
|
3544
|
+
}
|
|
3509
3545
|
}
|
|
3510
3546
|
| {
|
|
3511
3547
|
type: 'delete'
|
|
@@ -3814,7 +3850,7 @@ declare const editorMachine: StateMachine<
|
|
|
3814
3850
|
}
|
|
3815
3851
|
| {
|
|
3816
3852
|
type: 'dragstart'
|
|
3817
|
-
origin: EventPosition
|
|
3853
|
+
origin: Pick<EventPosition, 'selection'>
|
|
3818
3854
|
ghost?: HTMLElement
|
|
3819
3855
|
}
|
|
3820
3856
|
| {
|
|
@@ -3886,6 +3922,10 @@ declare const editorMachine: StateMachine<
|
|
|
3886
3922
|
| {
|
|
3887
3923
|
type: 'decorator.toggle'
|
|
3888
3924
|
decorator: string
|
|
3925
|
+
offsets?: {
|
|
3926
|
+
anchor: BlockOffset_2
|
|
3927
|
+
focus: BlockOffset_2
|
|
3928
|
+
}
|
|
3889
3929
|
}
|
|
3890
3930
|
| {
|
|
3891
3931
|
type: 'delete'
|
|
@@ -4138,7 +4178,7 @@ declare const editorMachine: StateMachine<
|
|
|
4138
4178
|
value: Array<PortableTextBlock> | undefined
|
|
4139
4179
|
internalDrag?: {
|
|
4140
4180
|
ghost?: HTMLElement
|
|
4141
|
-
origin: EventPosition
|
|
4181
|
+
origin: Pick<EventPosition, 'selection'>
|
|
4142
4182
|
}
|
|
4143
4183
|
},
|
|
4144
4184
|
{
|
|
@@ -4204,6 +4244,10 @@ declare const editorMachine: StateMachine<
|
|
|
4204
4244
|
| {
|
|
4205
4245
|
type: 'decorator.toggle'
|
|
4206
4246
|
decorator: string
|
|
4247
|
+
offsets?: {
|
|
4248
|
+
anchor: BlockOffset_2
|
|
4249
|
+
focus: BlockOffset_2
|
|
4250
|
+
}
|
|
4207
4251
|
}
|
|
4208
4252
|
| {
|
|
4209
4253
|
type: 'delete'
|
|
@@ -4512,7 +4556,7 @@ declare const editorMachine: StateMachine<
|
|
|
4512
4556
|
}
|
|
4513
4557
|
| {
|
|
4514
4558
|
type: 'dragstart'
|
|
4515
|
-
origin: EventPosition
|
|
4559
|
+
origin: Pick<EventPosition, 'selection'>
|
|
4516
4560
|
ghost?: HTMLElement
|
|
4517
4561
|
}
|
|
4518
4562
|
| {
|
|
@@ -4584,6 +4628,10 @@ declare const editorMachine: StateMachine<
|
|
|
4584
4628
|
| {
|
|
4585
4629
|
type: 'decorator.toggle'
|
|
4586
4630
|
decorator: string
|
|
4631
|
+
offsets?: {
|
|
4632
|
+
anchor: BlockOffset_2
|
|
4633
|
+
focus: BlockOffset_2
|
|
4634
|
+
}
|
|
4587
4635
|
}
|
|
4588
4636
|
| {
|
|
4589
4637
|
type: 'delete'
|
|
@@ -4836,7 +4884,7 @@ declare const editorMachine: StateMachine<
|
|
|
4836
4884
|
value: Array<PortableTextBlock> | undefined
|
|
4837
4885
|
internalDrag?: {
|
|
4838
4886
|
ghost?: HTMLElement
|
|
4839
|
-
origin: EventPosition
|
|
4887
|
+
origin: Pick<EventPosition, 'selection'>
|
|
4840
4888
|
}
|
|
4841
4889
|
},
|
|
4842
4890
|
{
|
|
@@ -4901,6 +4949,10 @@ declare const editorMachine: StateMachine<
|
|
|
4901
4949
|
| {
|
|
4902
4950
|
type: 'decorator.toggle'
|
|
4903
4951
|
decorator: string
|
|
4952
|
+
offsets?: {
|
|
4953
|
+
anchor: BlockOffset_2
|
|
4954
|
+
focus: BlockOffset_2
|
|
4955
|
+
}
|
|
4904
4956
|
}
|
|
4905
4957
|
| {
|
|
4906
4958
|
type: 'delete'
|
|
@@ -5209,7 +5261,7 @@ declare const editorMachine: StateMachine<
|
|
|
5209
5261
|
}
|
|
5210
5262
|
| {
|
|
5211
5263
|
type: 'dragstart'
|
|
5212
|
-
origin: EventPosition
|
|
5264
|
+
origin: Pick<EventPosition, 'selection'>
|
|
5213
5265
|
ghost?: HTMLElement
|
|
5214
5266
|
}
|
|
5215
5267
|
| {
|
|
@@ -5281,6 +5333,10 @@ declare const editorMachine: StateMachine<
|
|
|
5281
5333
|
| {
|
|
5282
5334
|
type: 'decorator.toggle'
|
|
5283
5335
|
decorator: string
|
|
5336
|
+
offsets?: {
|
|
5337
|
+
anchor: BlockOffset_2
|
|
5338
|
+
focus: BlockOffset_2
|
|
5339
|
+
}
|
|
5284
5340
|
}
|
|
5285
5341
|
| {
|
|
5286
5342
|
type: 'delete'
|
|
@@ -5534,7 +5590,7 @@ declare const editorMachine: StateMachine<
|
|
|
5534
5590
|
value: Array<PortableTextBlock> | undefined
|
|
5535
5591
|
internalDrag?: {
|
|
5536
5592
|
ghost?: HTMLElement
|
|
5537
|
-
origin: EventPosition
|
|
5593
|
+
origin: Pick<EventPosition, 'selection'>
|
|
5538
5594
|
}
|
|
5539
5595
|
},
|
|
5540
5596
|
{
|
|
@@ -5599,6 +5655,10 @@ declare const editorMachine: StateMachine<
|
|
|
5599
5655
|
| {
|
|
5600
5656
|
type: 'decorator.toggle'
|
|
5601
5657
|
decorator: string
|
|
5658
|
+
offsets?: {
|
|
5659
|
+
anchor: BlockOffset_2
|
|
5660
|
+
focus: BlockOffset_2
|
|
5661
|
+
}
|
|
5602
5662
|
}
|
|
5603
5663
|
| {
|
|
5604
5664
|
type: 'delete'
|
|
@@ -5907,7 +5967,7 @@ declare const editorMachine: StateMachine<
|
|
|
5907
5967
|
}
|
|
5908
5968
|
| {
|
|
5909
5969
|
type: 'dragstart'
|
|
5910
|
-
origin: EventPosition
|
|
5970
|
+
origin: Pick<EventPosition, 'selection'>
|
|
5911
5971
|
ghost?: HTMLElement
|
|
5912
5972
|
}
|
|
5913
5973
|
| {
|
|
@@ -5936,7 +5996,7 @@ declare const editorMachine: StateMachine<
|
|
|
5936
5996
|
value: Array<PortableTextBlock> | undefined
|
|
5937
5997
|
internalDrag?: {
|
|
5938
5998
|
ghost?: HTMLElement
|
|
5939
|
-
origin: EventPosition
|
|
5999
|
+
origin: Pick<EventPosition, 'selection'>
|
|
5940
6000
|
}
|
|
5941
6001
|
},
|
|
5942
6002
|
{
|
|
@@ -6001,6 +6061,10 @@ declare const editorMachine: StateMachine<
|
|
|
6001
6061
|
| {
|
|
6002
6062
|
type: 'decorator.toggle'
|
|
6003
6063
|
decorator: string
|
|
6064
|
+
offsets?: {
|
|
6065
|
+
anchor: BlockOffset_2
|
|
6066
|
+
focus: BlockOffset_2
|
|
6067
|
+
}
|
|
6004
6068
|
}
|
|
6005
6069
|
| {
|
|
6006
6070
|
type: 'delete'
|
|
@@ -6309,7 +6373,7 @@ declare const editorMachine: StateMachine<
|
|
|
6309
6373
|
}
|
|
6310
6374
|
| {
|
|
6311
6375
|
type: 'dragstart'
|
|
6312
|
-
origin: EventPosition
|
|
6376
|
+
origin: Pick<EventPosition, 'selection'>
|
|
6313
6377
|
ghost?: HTMLElement
|
|
6314
6378
|
}
|
|
6315
6379
|
| {
|
|
@@ -6381,6 +6445,10 @@ declare const editorMachine: StateMachine<
|
|
|
6381
6445
|
| {
|
|
6382
6446
|
type: 'decorator.toggle'
|
|
6383
6447
|
decorator: string
|
|
6448
|
+
offsets?: {
|
|
6449
|
+
anchor: BlockOffset_2
|
|
6450
|
+
focus: BlockOffset_2
|
|
6451
|
+
}
|
|
6384
6452
|
}
|
|
6385
6453
|
| {
|
|
6386
6454
|
type: 'delete'
|
|
@@ -6634,7 +6702,7 @@ declare const editorMachine: StateMachine<
|
|
|
6634
6702
|
value: Array<PortableTextBlock> | undefined
|
|
6635
6703
|
internalDrag?: {
|
|
6636
6704
|
ghost?: HTMLElement
|
|
6637
|
-
origin: EventPosition
|
|
6705
|
+
origin: Pick<EventPosition, 'selection'>
|
|
6638
6706
|
}
|
|
6639
6707
|
},
|
|
6640
6708
|
{
|
|
@@ -6699,6 +6767,10 @@ declare const editorMachine: StateMachine<
|
|
|
6699
6767
|
| {
|
|
6700
6768
|
type: 'decorator.toggle'
|
|
6701
6769
|
decorator: string
|
|
6770
|
+
offsets?: {
|
|
6771
|
+
anchor: BlockOffset_2
|
|
6772
|
+
focus: BlockOffset_2
|
|
6773
|
+
}
|
|
6702
6774
|
}
|
|
6703
6775
|
| {
|
|
6704
6776
|
type: 'delete'
|
|
@@ -7007,7 +7079,7 @@ declare const editorMachine: StateMachine<
|
|
|
7007
7079
|
}
|
|
7008
7080
|
| {
|
|
7009
7081
|
type: 'dragstart'
|
|
7010
|
-
origin: EventPosition
|
|
7082
|
+
origin: Pick<EventPosition, 'selection'>
|
|
7011
7083
|
ghost?: HTMLElement
|
|
7012
7084
|
}
|
|
7013
7085
|
| {
|
|
@@ -7079,6 +7151,10 @@ declare const editorMachine: StateMachine<
|
|
|
7079
7151
|
| {
|
|
7080
7152
|
type: 'decorator.toggle'
|
|
7081
7153
|
decorator: string
|
|
7154
|
+
offsets?: {
|
|
7155
|
+
anchor: BlockOffset_2
|
|
7156
|
+
focus: BlockOffset_2
|
|
7157
|
+
}
|
|
7082
7158
|
}
|
|
7083
7159
|
| {
|
|
7084
7160
|
type: 'delete'
|
|
@@ -7331,7 +7407,7 @@ declare const editorMachine: StateMachine<
|
|
|
7331
7407
|
value: Array<PortableTextBlock> | undefined
|
|
7332
7408
|
internalDrag?: {
|
|
7333
7409
|
ghost?: HTMLElement
|
|
7334
|
-
origin: EventPosition
|
|
7410
|
+
origin: Pick<EventPosition, 'selection'>
|
|
7335
7411
|
}
|
|
7336
7412
|
},
|
|
7337
7413
|
{
|
|
@@ -7395,6 +7471,10 @@ declare const editorMachine: StateMachine<
|
|
|
7395
7471
|
| {
|
|
7396
7472
|
type: 'decorator.toggle'
|
|
7397
7473
|
decorator: string
|
|
7474
|
+
offsets?: {
|
|
7475
|
+
anchor: BlockOffset_2
|
|
7476
|
+
focus: BlockOffset_2
|
|
7477
|
+
}
|
|
7398
7478
|
}
|
|
7399
7479
|
| {
|
|
7400
7480
|
type: 'delete'
|
|
@@ -7703,7 +7783,7 @@ declare const editorMachine: StateMachine<
|
|
|
7703
7783
|
}
|
|
7704
7784
|
| {
|
|
7705
7785
|
type: 'dragstart'
|
|
7706
|
-
origin: EventPosition
|
|
7786
|
+
origin: Pick<EventPosition, 'selection'>
|
|
7707
7787
|
ghost?: HTMLElement
|
|
7708
7788
|
}
|
|
7709
7789
|
| {
|
|
@@ -7775,6 +7855,10 @@ declare const editorMachine: StateMachine<
|
|
|
7775
7855
|
| {
|
|
7776
7856
|
type: 'decorator.toggle'
|
|
7777
7857
|
decorator: string
|
|
7858
|
+
offsets?: {
|
|
7859
|
+
anchor: BlockOffset_2
|
|
7860
|
+
focus: BlockOffset_2
|
|
7861
|
+
}
|
|
7778
7862
|
}
|
|
7779
7863
|
| {
|
|
7780
7864
|
type: 'delete'
|
|
@@ -8027,7 +8111,7 @@ declare const editorMachine: StateMachine<
|
|
|
8027
8111
|
value: Array<PortableTextBlock> | undefined
|
|
8028
8112
|
internalDrag?: {
|
|
8029
8113
|
ghost?: HTMLElement
|
|
8030
|
-
origin: EventPosition
|
|
8114
|
+
origin: Pick<EventPosition, 'selection'>
|
|
8031
8115
|
}
|
|
8032
8116
|
},
|
|
8033
8117
|
{
|
|
@@ -8092,6 +8176,10 @@ declare const editorMachine: StateMachine<
|
|
|
8092
8176
|
| {
|
|
8093
8177
|
type: 'decorator.toggle'
|
|
8094
8178
|
decorator: string
|
|
8179
|
+
offsets?: {
|
|
8180
|
+
anchor: BlockOffset_2
|
|
8181
|
+
focus: BlockOffset_2
|
|
8182
|
+
}
|
|
8095
8183
|
}
|
|
8096
8184
|
| {
|
|
8097
8185
|
type: 'delete'
|
|
@@ -8400,7 +8488,7 @@ declare const editorMachine: StateMachine<
|
|
|
8400
8488
|
}
|
|
8401
8489
|
| {
|
|
8402
8490
|
type: 'dragstart'
|
|
8403
|
-
origin: EventPosition
|
|
8491
|
+
origin: Pick<EventPosition, 'selection'>
|
|
8404
8492
|
ghost?: HTMLElement
|
|
8405
8493
|
}
|
|
8406
8494
|
| {
|
|
@@ -8472,6 +8560,10 @@ declare const editorMachine: StateMachine<
|
|
|
8472
8560
|
| {
|
|
8473
8561
|
type: 'decorator.toggle'
|
|
8474
8562
|
decorator: string
|
|
8563
|
+
offsets?: {
|
|
8564
|
+
anchor: BlockOffset_2
|
|
8565
|
+
focus: BlockOffset_2
|
|
8566
|
+
}
|
|
8475
8567
|
}
|
|
8476
8568
|
| {
|
|
8477
8569
|
type: 'delete'
|
|
@@ -8730,7 +8822,7 @@ declare const editorMachine: StateMachine<
|
|
|
8730
8822
|
value: Array<PortableTextBlock> | undefined
|
|
8731
8823
|
internalDrag?: {
|
|
8732
8824
|
ghost?: HTMLElement
|
|
8733
|
-
origin: EventPosition
|
|
8825
|
+
origin: Pick<EventPosition, 'selection'>
|
|
8734
8826
|
}
|
|
8735
8827
|
},
|
|
8736
8828
|
PatchesEvent,
|
|
@@ -8792,6 +8884,10 @@ declare const editorMachine: StateMachine<
|
|
|
8792
8884
|
| {
|
|
8793
8885
|
type: 'decorator.toggle'
|
|
8794
8886
|
decorator: string
|
|
8887
|
+
offsets?: {
|
|
8888
|
+
anchor: BlockOffset_2
|
|
8889
|
+
focus: BlockOffset_2
|
|
8890
|
+
}
|
|
8795
8891
|
}
|
|
8796
8892
|
| {
|
|
8797
8893
|
type: 'delete'
|
|
@@ -9100,7 +9196,7 @@ declare const editorMachine: StateMachine<
|
|
|
9100
9196
|
}
|
|
9101
9197
|
| {
|
|
9102
9198
|
type: 'dragstart'
|
|
9103
|
-
origin: EventPosition
|
|
9199
|
+
origin: Pick<EventPosition, 'selection'>
|
|
9104
9200
|
ghost?: HTMLElement
|
|
9105
9201
|
}
|
|
9106
9202
|
| {
|
|
@@ -9172,6 +9268,10 @@ declare const editorMachine: StateMachine<
|
|
|
9172
9268
|
| {
|
|
9173
9269
|
type: 'decorator.toggle'
|
|
9174
9270
|
decorator: string
|
|
9271
|
+
offsets?: {
|
|
9272
|
+
anchor: BlockOffset_2
|
|
9273
|
+
focus: BlockOffset_2
|
|
9274
|
+
}
|
|
9175
9275
|
}
|
|
9176
9276
|
| {
|
|
9177
9277
|
type: 'delete'
|
|
@@ -9427,7 +9527,7 @@ declare const editorMachine: StateMachine<
|
|
|
9427
9527
|
value: Array<PortableTextBlock> | undefined
|
|
9428
9528
|
internalDrag?: {
|
|
9429
9529
|
ghost?: HTMLElement
|
|
9430
|
-
origin: EventPosition
|
|
9530
|
+
origin: Pick<EventPosition, 'selection'>
|
|
9431
9531
|
}
|
|
9432
9532
|
},
|
|
9433
9533
|
{
|
|
@@ -9492,6 +9592,10 @@ declare const editorMachine: StateMachine<
|
|
|
9492
9592
|
| {
|
|
9493
9593
|
type: 'decorator.toggle'
|
|
9494
9594
|
decorator: string
|
|
9595
|
+
offsets?: {
|
|
9596
|
+
anchor: BlockOffset_2
|
|
9597
|
+
focus: BlockOffset_2
|
|
9598
|
+
}
|
|
9495
9599
|
}
|
|
9496
9600
|
| {
|
|
9497
9601
|
type: 'delete'
|
|
@@ -9800,7 +9904,7 @@ declare const editorMachine: StateMachine<
|
|
|
9800
9904
|
}
|
|
9801
9905
|
| {
|
|
9802
9906
|
type: 'dragstart'
|
|
9803
|
-
origin: EventPosition
|
|
9907
|
+
origin: Pick<EventPosition, 'selection'>
|
|
9804
9908
|
ghost?: HTMLElement
|
|
9805
9909
|
}
|
|
9806
9910
|
| {
|
|
@@ -9834,7 +9938,7 @@ declare const editorMachine: StateMachine<
|
|
|
9834
9938
|
value: Array<PortableTextBlock> | undefined
|
|
9835
9939
|
internalDrag?: {
|
|
9836
9940
|
ghost?: HTMLElement
|
|
9837
|
-
origin: EventPosition
|
|
9941
|
+
origin: Pick<EventPosition, 'selection'>
|
|
9838
9942
|
}
|
|
9839
9943
|
},
|
|
9840
9944
|
{
|
|
@@ -9899,6 +10003,10 @@ declare const editorMachine: StateMachine<
|
|
|
9899
10003
|
| {
|
|
9900
10004
|
type: 'decorator.toggle'
|
|
9901
10005
|
decorator: string
|
|
10006
|
+
offsets?: {
|
|
10007
|
+
anchor: BlockOffset_2
|
|
10008
|
+
focus: BlockOffset_2
|
|
10009
|
+
}
|
|
9902
10010
|
}
|
|
9903
10011
|
| {
|
|
9904
10012
|
type: 'delete'
|
|
@@ -10207,7 +10315,7 @@ declare const editorMachine: StateMachine<
|
|
|
10207
10315
|
}
|
|
10208
10316
|
| {
|
|
10209
10317
|
type: 'dragstart'
|
|
10210
|
-
origin: EventPosition
|
|
10318
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10211
10319
|
ghost?: HTMLElement
|
|
10212
10320
|
}
|
|
10213
10321
|
| {
|
|
@@ -10238,7 +10346,7 @@ declare const editorMachine: StateMachine<
|
|
|
10238
10346
|
value: Array<PortableTextBlock> | undefined
|
|
10239
10347
|
internalDrag?: {
|
|
10240
10348
|
ghost?: HTMLElement
|
|
10241
|
-
origin: EventPosition
|
|
10349
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10242
10350
|
}
|
|
10243
10351
|
},
|
|
10244
10352
|
{
|
|
@@ -10303,6 +10411,10 @@ declare const editorMachine: StateMachine<
|
|
|
10303
10411
|
| {
|
|
10304
10412
|
type: 'decorator.toggle'
|
|
10305
10413
|
decorator: string
|
|
10414
|
+
offsets?: {
|
|
10415
|
+
anchor: BlockOffset_2
|
|
10416
|
+
focus: BlockOffset_2
|
|
10417
|
+
}
|
|
10306
10418
|
}
|
|
10307
10419
|
| {
|
|
10308
10420
|
type: 'delete'
|
|
@@ -10611,7 +10723,7 @@ declare const editorMachine: StateMachine<
|
|
|
10611
10723
|
}
|
|
10612
10724
|
| {
|
|
10613
10725
|
type: 'dragstart'
|
|
10614
|
-
origin: EventPosition
|
|
10726
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10615
10727
|
ghost?: HTMLElement
|
|
10616
10728
|
}
|
|
10617
10729
|
| {
|
|
@@ -10654,7 +10766,7 @@ declare const editorMachine: StateMachine<
|
|
|
10654
10766
|
value: Array<PortableTextBlock> | undefined
|
|
10655
10767
|
internalDrag?: {
|
|
10656
10768
|
ghost?: HTMLElement
|
|
10657
|
-
origin: EventPosition
|
|
10769
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10658
10770
|
}
|
|
10659
10771
|
},
|
|
10660
10772
|
{
|
|
@@ -10695,7 +10807,7 @@ declare const editorMachine: StateMachine<
|
|
|
10695
10807
|
value: Array<PortableTextBlock> | undefined
|
|
10696
10808
|
internalDrag?: {
|
|
10697
10809
|
ghost?: HTMLElement
|
|
10698
|
-
origin: EventPosition
|
|
10810
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10699
10811
|
}
|
|
10700
10812
|
},
|
|
10701
10813
|
{
|
|
@@ -10727,7 +10839,7 @@ declare const editorMachine: StateMachine<
|
|
|
10727
10839
|
value: Array<PortableTextBlock> | undefined
|
|
10728
10840
|
internalDrag?: {
|
|
10729
10841
|
ghost?: HTMLElement
|
|
10730
|
-
origin: EventPosition
|
|
10842
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10731
10843
|
}
|
|
10732
10844
|
},
|
|
10733
10845
|
{
|
|
@@ -10760,7 +10872,7 @@ declare const editorMachine: StateMachine<
|
|
|
10760
10872
|
value: Array<PortableTextBlock> | undefined
|
|
10761
10873
|
internalDrag?: {
|
|
10762
10874
|
ghost?: HTMLElement
|
|
10763
|
-
origin: EventPosition
|
|
10875
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10764
10876
|
}
|
|
10765
10877
|
},
|
|
10766
10878
|
{
|
|
@@ -10791,7 +10903,7 @@ declare const editorMachine: StateMachine<
|
|
|
10791
10903
|
value: Array<PortableTextBlock> | undefined
|
|
10792
10904
|
internalDrag?: {
|
|
10793
10905
|
ghost?: HTMLElement
|
|
10794
|
-
origin: EventPosition
|
|
10906
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10795
10907
|
}
|
|
10796
10908
|
},
|
|
10797
10909
|
| {
|
|
@@ -10876,6 +10988,10 @@ declare const editorMachine: StateMachine<
|
|
|
10876
10988
|
| {
|
|
10877
10989
|
type: 'decorator.toggle'
|
|
10878
10990
|
decorator: string
|
|
10991
|
+
offsets?: {
|
|
10992
|
+
anchor: BlockOffset_2
|
|
10993
|
+
focus: BlockOffset_2
|
|
10994
|
+
}
|
|
10879
10995
|
}
|
|
10880
10996
|
| {
|
|
10881
10997
|
type: 'delete'
|
|
@@ -11184,7 +11300,7 @@ declare const editorMachine: StateMachine<
|
|
|
11184
11300
|
}
|
|
11185
11301
|
| {
|
|
11186
11302
|
type: 'dragstart'
|
|
11187
|
-
origin: EventPosition
|
|
11303
|
+
origin: Pick<EventPosition, 'selection'>
|
|
11188
11304
|
ghost?: HTMLElement
|
|
11189
11305
|
}
|
|
11190
11306
|
| {
|
|
@@ -11256,6 +11372,10 @@ declare const editorMachine: StateMachine<
|
|
|
11256
11372
|
| {
|
|
11257
11373
|
type: 'decorator.toggle'
|
|
11258
11374
|
decorator: string
|
|
11375
|
+
offsets?: {
|
|
11376
|
+
anchor: BlockOffset_2
|
|
11377
|
+
focus: BlockOffset_2
|
|
11378
|
+
}
|
|
11259
11379
|
}
|
|
11260
11380
|
| {
|
|
11261
11381
|
type: 'delete'
|
|
@@ -11508,7 +11628,7 @@ declare const editorMachine: StateMachine<
|
|
|
11508
11628
|
value: Array<PortableTextBlock> | undefined
|
|
11509
11629
|
internalDrag?: {
|
|
11510
11630
|
ghost?: HTMLElement
|
|
11511
|
-
origin: EventPosition
|
|
11631
|
+
origin: Pick<EventPosition, 'selection'>
|
|
11512
11632
|
}
|
|
11513
11633
|
},
|
|
11514
11634
|
| {
|
|
@@ -11579,6 +11699,10 @@ declare const editorMachine: StateMachine<
|
|
|
11579
11699
|
| {
|
|
11580
11700
|
type: 'decorator.toggle'
|
|
11581
11701
|
decorator: string
|
|
11702
|
+
offsets?: {
|
|
11703
|
+
anchor: BlockOffset_2
|
|
11704
|
+
focus: BlockOffset_2
|
|
11705
|
+
}
|
|
11582
11706
|
}
|
|
11583
11707
|
| {
|
|
11584
11708
|
type: 'delete'
|
|
@@ -11887,7 +12011,7 @@ declare const editorMachine: StateMachine<
|
|
|
11887
12011
|
}
|
|
11888
12012
|
| {
|
|
11889
12013
|
type: 'dragstart'
|
|
11890
|
-
origin: EventPosition
|
|
12014
|
+
origin: Pick<EventPosition, 'selection'>
|
|
11891
12015
|
ghost?: HTMLElement
|
|
11892
12016
|
}
|
|
11893
12017
|
| {
|
|
@@ -11959,6 +12083,10 @@ declare const editorMachine: StateMachine<
|
|
|
11959
12083
|
| {
|
|
11960
12084
|
type: 'decorator.toggle'
|
|
11961
12085
|
decorator: string
|
|
12086
|
+
offsets?: {
|
|
12087
|
+
anchor: BlockOffset_2
|
|
12088
|
+
focus: BlockOffset_2
|
|
12089
|
+
}
|
|
11962
12090
|
}
|
|
11963
12091
|
| {
|
|
11964
12092
|
type: 'delete'
|
|
@@ -12211,7 +12339,7 @@ declare const editorMachine: StateMachine<
|
|
|
12211
12339
|
value: Array<PortableTextBlock> | undefined
|
|
12212
12340
|
internalDrag?: {
|
|
12213
12341
|
ghost?: HTMLElement
|
|
12214
|
-
origin: EventPosition
|
|
12342
|
+
origin: Pick<EventPosition, 'selection'>
|
|
12215
12343
|
}
|
|
12216
12344
|
},
|
|
12217
12345
|
{
|
|
@@ -12275,6 +12403,10 @@ declare const editorMachine: StateMachine<
|
|
|
12275
12403
|
| {
|
|
12276
12404
|
type: 'decorator.toggle'
|
|
12277
12405
|
decorator: string
|
|
12406
|
+
offsets?: {
|
|
12407
|
+
anchor: BlockOffset_2
|
|
12408
|
+
focus: BlockOffset_2
|
|
12409
|
+
}
|
|
12278
12410
|
}
|
|
12279
12411
|
| {
|
|
12280
12412
|
type: 'delete'
|
|
@@ -12583,7 +12715,7 @@ declare const editorMachine: StateMachine<
|
|
|
12583
12715
|
}
|
|
12584
12716
|
| {
|
|
12585
12717
|
type: 'dragstart'
|
|
12586
|
-
origin: EventPosition
|
|
12718
|
+
origin: Pick<EventPosition, 'selection'>
|
|
12587
12719
|
ghost?: HTMLElement
|
|
12588
12720
|
}
|
|
12589
12721
|
| {
|
|
@@ -12655,6 +12787,10 @@ declare const editorMachine: StateMachine<
|
|
|
12655
12787
|
| {
|
|
12656
12788
|
type: 'decorator.toggle'
|
|
12657
12789
|
decorator: string
|
|
12790
|
+
offsets?: {
|
|
12791
|
+
anchor: BlockOffset_2
|
|
12792
|
+
focus: BlockOffset_2
|
|
12793
|
+
}
|
|
12658
12794
|
}
|
|
12659
12795
|
| {
|
|
12660
12796
|
type: 'delete'
|
|
@@ -12907,7 +13043,7 @@ declare const editorMachine: StateMachine<
|
|
|
12907
13043
|
value: Array<PortableTextBlock> | undefined
|
|
12908
13044
|
internalDrag?: {
|
|
12909
13045
|
ghost?: HTMLElement
|
|
12910
|
-
origin: EventPosition
|
|
13046
|
+
origin: Pick<EventPosition, 'selection'>
|
|
12911
13047
|
}
|
|
12912
13048
|
},
|
|
12913
13049
|
{
|
|
@@ -12971,6 +13107,10 @@ declare const editorMachine: StateMachine<
|
|
|
12971
13107
|
| {
|
|
12972
13108
|
type: 'decorator.toggle'
|
|
12973
13109
|
decorator: string
|
|
13110
|
+
offsets?: {
|
|
13111
|
+
anchor: BlockOffset_2
|
|
13112
|
+
focus: BlockOffset_2
|
|
13113
|
+
}
|
|
12974
13114
|
}
|
|
12975
13115
|
| {
|
|
12976
13116
|
type: 'delete'
|
|
@@ -13279,7 +13419,7 @@ declare const editorMachine: StateMachine<
|
|
|
13279
13419
|
}
|
|
13280
13420
|
| {
|
|
13281
13421
|
type: 'dragstart'
|
|
13282
|
-
origin: EventPosition
|
|
13422
|
+
origin: Pick<EventPosition, 'selection'>
|
|
13283
13423
|
ghost?: HTMLElement
|
|
13284
13424
|
}
|
|
13285
13425
|
| {
|
|
@@ -13351,6 +13491,10 @@ declare const editorMachine: StateMachine<
|
|
|
13351
13491
|
| {
|
|
13352
13492
|
type: 'decorator.toggle'
|
|
13353
13493
|
decorator: string
|
|
13494
|
+
offsets?: {
|
|
13495
|
+
anchor: BlockOffset_2
|
|
13496
|
+
focus: BlockOffset_2
|
|
13497
|
+
}
|
|
13354
13498
|
}
|
|
13355
13499
|
| {
|
|
13356
13500
|
type: 'delete'
|
|
@@ -13603,7 +13747,7 @@ declare const editorMachine: StateMachine<
|
|
|
13603
13747
|
value: Array<PortableTextBlock> | undefined
|
|
13604
13748
|
internalDrag?: {
|
|
13605
13749
|
ghost?: HTMLElement
|
|
13606
|
-
origin: EventPosition
|
|
13750
|
+
origin: Pick<EventPosition, 'selection'>
|
|
13607
13751
|
}
|
|
13608
13752
|
},
|
|
13609
13753
|
| {
|
|
@@ -13621,6 +13765,10 @@ declare const editorMachine: StateMachine<
|
|
|
13621
13765
|
| {
|
|
13622
13766
|
type: 'decorator.toggle'
|
|
13623
13767
|
decorator: string
|
|
13768
|
+
offsets?: {
|
|
13769
|
+
anchor: BlockOffset_2
|
|
13770
|
+
focus: BlockOffset_2
|
|
13771
|
+
}
|
|
13624
13772
|
},
|
|
13625
13773
|
| {
|
|
13626
13774
|
type: 'annotation.add'
|
|
@@ -13680,6 +13828,10 @@ declare const editorMachine: StateMachine<
|
|
|
13680
13828
|
| {
|
|
13681
13829
|
type: 'decorator.toggle'
|
|
13682
13830
|
decorator: string
|
|
13831
|
+
offsets?: {
|
|
13832
|
+
anchor: BlockOffset_2
|
|
13833
|
+
focus: BlockOffset_2
|
|
13834
|
+
}
|
|
13683
13835
|
}
|
|
13684
13836
|
| {
|
|
13685
13837
|
type: 'delete'
|
|
@@ -13988,7 +14140,7 @@ declare const editorMachine: StateMachine<
|
|
|
13988
14140
|
}
|
|
13989
14141
|
| {
|
|
13990
14142
|
type: 'dragstart'
|
|
13991
|
-
origin: EventPosition
|
|
14143
|
+
origin: Pick<EventPosition, 'selection'>
|
|
13992
14144
|
ghost?: HTMLElement
|
|
13993
14145
|
}
|
|
13994
14146
|
| {
|
|
@@ -14060,6 +14212,10 @@ declare const editorMachine: StateMachine<
|
|
|
14060
14212
|
| {
|
|
14061
14213
|
type: 'decorator.toggle'
|
|
14062
14214
|
decorator: string
|
|
14215
|
+
offsets?: {
|
|
14216
|
+
anchor: BlockOffset_2
|
|
14217
|
+
focus: BlockOffset_2
|
|
14218
|
+
}
|
|
14063
14219
|
}
|
|
14064
14220
|
| {
|
|
14065
14221
|
type: 'delete'
|
|
@@ -14312,7 +14468,7 @@ declare const editorMachine: StateMachine<
|
|
|
14312
14468
|
value: Array<PortableTextBlock> | undefined
|
|
14313
14469
|
internalDrag?: {
|
|
14314
14470
|
ghost?: HTMLElement
|
|
14315
|
-
origin: EventPosition
|
|
14471
|
+
origin: Pick<EventPosition, 'selection'>
|
|
14316
14472
|
}
|
|
14317
14473
|
},
|
|
14318
14474
|
| {
|
|
@@ -14390,6 +14546,10 @@ declare const editorMachine: StateMachine<
|
|
|
14390
14546
|
| {
|
|
14391
14547
|
type: 'decorator.toggle'
|
|
14392
14548
|
decorator: string
|
|
14549
|
+
offsets?: {
|
|
14550
|
+
anchor: BlockOffset_2
|
|
14551
|
+
focus: BlockOffset_2
|
|
14552
|
+
}
|
|
14393
14553
|
}
|
|
14394
14554
|
| {
|
|
14395
14555
|
type: 'delete'
|
|
@@ -14698,7 +14858,7 @@ declare const editorMachine: StateMachine<
|
|
|
14698
14858
|
}
|
|
14699
14859
|
| {
|
|
14700
14860
|
type: 'dragstart'
|
|
14701
|
-
origin: EventPosition
|
|
14861
|
+
origin: Pick<EventPosition, 'selection'>
|
|
14702
14862
|
ghost?: HTMLElement
|
|
14703
14863
|
}
|
|
14704
14864
|
| {
|
|
@@ -14770,6 +14930,10 @@ declare const editorMachine: StateMachine<
|
|
|
14770
14930
|
| {
|
|
14771
14931
|
type: 'decorator.toggle'
|
|
14772
14932
|
decorator: string
|
|
14933
|
+
offsets?: {
|
|
14934
|
+
anchor: BlockOffset_2
|
|
14935
|
+
focus: BlockOffset_2
|
|
14936
|
+
}
|
|
14773
14937
|
}
|
|
14774
14938
|
| {
|
|
14775
14939
|
type: 'delete'
|
|
@@ -15022,7 +15186,7 @@ declare const editorMachine: StateMachine<
|
|
|
15022
15186
|
value: Array<PortableTextBlock> | undefined
|
|
15023
15187
|
internalDrag?: {
|
|
15024
15188
|
ghost?: HTMLElement
|
|
15025
|
-
origin: EventPosition
|
|
15189
|
+
origin: Pick<EventPosition, 'selection'>
|
|
15026
15190
|
}
|
|
15027
15191
|
},
|
|
15028
15192
|
{
|
|
@@ -15086,6 +15250,10 @@ declare const editorMachine: StateMachine<
|
|
|
15086
15250
|
| {
|
|
15087
15251
|
type: 'decorator.toggle'
|
|
15088
15252
|
decorator: string
|
|
15253
|
+
offsets?: {
|
|
15254
|
+
anchor: BlockOffset_2
|
|
15255
|
+
focus: BlockOffset_2
|
|
15256
|
+
}
|
|
15089
15257
|
}
|
|
15090
15258
|
| {
|
|
15091
15259
|
type: 'delete'
|
|
@@ -15394,7 +15562,7 @@ declare const editorMachine: StateMachine<
|
|
|
15394
15562
|
}
|
|
15395
15563
|
| {
|
|
15396
15564
|
type: 'dragstart'
|
|
15397
|
-
origin: EventPosition
|
|
15565
|
+
origin: Pick<EventPosition, 'selection'>
|
|
15398
15566
|
ghost?: HTMLElement
|
|
15399
15567
|
}
|
|
15400
15568
|
| {
|
|
@@ -15466,6 +15634,10 @@ declare const editorMachine: StateMachine<
|
|
|
15466
15634
|
| {
|
|
15467
15635
|
type: 'decorator.toggle'
|
|
15468
15636
|
decorator: string
|
|
15637
|
+
offsets?: {
|
|
15638
|
+
anchor: BlockOffset_2
|
|
15639
|
+
focus: BlockOffset_2
|
|
15640
|
+
}
|
|
15469
15641
|
}
|
|
15470
15642
|
| {
|
|
15471
15643
|
type: 'delete'
|
|
@@ -15718,7 +15890,7 @@ declare const editorMachine: StateMachine<
|
|
|
15718
15890
|
value: Array<PortableTextBlock> | undefined
|
|
15719
15891
|
internalDrag?: {
|
|
15720
15892
|
ghost?: HTMLElement
|
|
15721
|
-
origin: EventPosition
|
|
15893
|
+
origin: Pick<EventPosition, 'selection'>
|
|
15722
15894
|
}
|
|
15723
15895
|
},
|
|
15724
15896
|
| {
|
|
@@ -15785,6 +15957,10 @@ declare const editorMachine: StateMachine<
|
|
|
15785
15957
|
| {
|
|
15786
15958
|
type: 'decorator.toggle'
|
|
15787
15959
|
decorator: string
|
|
15960
|
+
offsets?: {
|
|
15961
|
+
anchor: BlockOffset_2
|
|
15962
|
+
focus: BlockOffset_2
|
|
15963
|
+
}
|
|
15788
15964
|
}
|
|
15789
15965
|
| {
|
|
15790
15966
|
type: 'delete'
|
|
@@ -16093,7 +16269,7 @@ declare const editorMachine: StateMachine<
|
|
|
16093
16269
|
}
|
|
16094
16270
|
| {
|
|
16095
16271
|
type: 'dragstart'
|
|
16096
|
-
origin: EventPosition
|
|
16272
|
+
origin: Pick<EventPosition, 'selection'>
|
|
16097
16273
|
ghost?: HTMLElement
|
|
16098
16274
|
}
|
|
16099
16275
|
| {
|
|
@@ -16165,6 +16341,10 @@ declare const editorMachine: StateMachine<
|
|
|
16165
16341
|
| {
|
|
16166
16342
|
type: 'decorator.toggle'
|
|
16167
16343
|
decorator: string
|
|
16344
|
+
offsets?: {
|
|
16345
|
+
anchor: BlockOffset_2
|
|
16346
|
+
focus: BlockOffset_2
|
|
16347
|
+
}
|
|
16168
16348
|
}
|
|
16169
16349
|
| {
|
|
16170
16350
|
type: 'delete'
|
|
@@ -16417,7 +16597,7 @@ declare const editorMachine: StateMachine<
|
|
|
16417
16597
|
value: Array<PortableTextBlock> | undefined
|
|
16418
16598
|
internalDrag?: {
|
|
16419
16599
|
ghost?: HTMLElement
|
|
16420
|
-
origin: EventPosition
|
|
16600
|
+
origin: Pick<EventPosition, 'selection'>
|
|
16421
16601
|
}
|
|
16422
16602
|
},
|
|
16423
16603
|
| {
|
|
@@ -16537,6 +16717,10 @@ declare const editorMachine: StateMachine<
|
|
|
16537
16717
|
| {
|
|
16538
16718
|
type: 'decorator.toggle'
|
|
16539
16719
|
decorator: string
|
|
16720
|
+
offsets?: {
|
|
16721
|
+
anchor: BlockOffset_2
|
|
16722
|
+
focus: BlockOffset_2
|
|
16723
|
+
}
|
|
16540
16724
|
}
|
|
16541
16725
|
| {
|
|
16542
16726
|
type: 'delete'
|
|
@@ -16845,7 +17029,7 @@ declare const editorMachine: StateMachine<
|
|
|
16845
17029
|
}
|
|
16846
17030
|
| {
|
|
16847
17031
|
type: 'dragstart'
|
|
16848
|
-
origin: EventPosition
|
|
17032
|
+
origin: Pick<EventPosition, 'selection'>
|
|
16849
17033
|
ghost?: HTMLElement
|
|
16850
17034
|
}
|
|
16851
17035
|
| {
|
|
@@ -16917,6 +17101,10 @@ declare const editorMachine: StateMachine<
|
|
|
16917
17101
|
| {
|
|
16918
17102
|
type: 'decorator.toggle'
|
|
16919
17103
|
decorator: string
|
|
17104
|
+
offsets?: {
|
|
17105
|
+
anchor: BlockOffset_2
|
|
17106
|
+
focus: BlockOffset_2
|
|
17107
|
+
}
|
|
16920
17108
|
}
|
|
16921
17109
|
| {
|
|
16922
17110
|
type: 'delete'
|
|
@@ -17169,7 +17357,7 @@ declare const editorMachine: StateMachine<
|
|
|
17169
17357
|
value: Array<PortableTextBlock> | undefined
|
|
17170
17358
|
internalDrag?: {
|
|
17171
17359
|
ghost?: HTMLElement
|
|
17172
|
-
origin: EventPosition
|
|
17360
|
+
origin: Pick<EventPosition, 'selection'>
|
|
17173
17361
|
}
|
|
17174
17362
|
},
|
|
17175
17363
|
| {
|
|
@@ -17242,6 +17430,10 @@ declare const editorMachine: StateMachine<
|
|
|
17242
17430
|
| {
|
|
17243
17431
|
type: 'decorator.toggle'
|
|
17244
17432
|
decorator: string
|
|
17433
|
+
offsets?: {
|
|
17434
|
+
anchor: BlockOffset_2
|
|
17435
|
+
focus: BlockOffset_2
|
|
17436
|
+
}
|
|
17245
17437
|
}
|
|
17246
17438
|
| {
|
|
17247
17439
|
type: 'delete'
|
|
@@ -17550,7 +17742,7 @@ declare const editorMachine: StateMachine<
|
|
|
17550
17742
|
}
|
|
17551
17743
|
| {
|
|
17552
17744
|
type: 'dragstart'
|
|
17553
|
-
origin: EventPosition
|
|
17745
|
+
origin: Pick<EventPosition, 'selection'>
|
|
17554
17746
|
ghost?: HTMLElement
|
|
17555
17747
|
}
|
|
17556
17748
|
| {
|
|
@@ -17622,6 +17814,10 @@ declare const editorMachine: StateMachine<
|
|
|
17622
17814
|
| {
|
|
17623
17815
|
type: 'decorator.toggle'
|
|
17624
17816
|
decorator: string
|
|
17817
|
+
offsets?: {
|
|
17818
|
+
anchor: BlockOffset_2
|
|
17819
|
+
focus: BlockOffset_2
|
|
17820
|
+
}
|
|
17625
17821
|
}
|
|
17626
17822
|
| {
|
|
17627
17823
|
type: 'delete'
|
|
@@ -17874,7 +18070,7 @@ declare const editorMachine: StateMachine<
|
|
|
17874
18070
|
value: Array<PortableTextBlock> | undefined
|
|
17875
18071
|
internalDrag?: {
|
|
17876
18072
|
ghost?: HTMLElement
|
|
17877
|
-
origin: EventPosition
|
|
18073
|
+
origin: Pick<EventPosition, 'selection'>
|
|
17878
18074
|
}
|
|
17879
18075
|
},
|
|
17880
18076
|
| {
|
|
@@ -17948,6 +18144,10 @@ declare const editorMachine: StateMachine<
|
|
|
17948
18144
|
| {
|
|
17949
18145
|
type: 'decorator.toggle'
|
|
17950
18146
|
decorator: string
|
|
18147
|
+
offsets?: {
|
|
18148
|
+
anchor: BlockOffset_2
|
|
18149
|
+
focus: BlockOffset_2
|
|
18150
|
+
}
|
|
17951
18151
|
}
|
|
17952
18152
|
| {
|
|
17953
18153
|
type: 'delete'
|
|
@@ -18256,7 +18456,7 @@ declare const editorMachine: StateMachine<
|
|
|
18256
18456
|
}
|
|
18257
18457
|
| {
|
|
18258
18458
|
type: 'dragstart'
|
|
18259
|
-
origin: EventPosition
|
|
18459
|
+
origin: Pick<EventPosition, 'selection'>
|
|
18260
18460
|
ghost?: HTMLElement
|
|
18261
18461
|
}
|
|
18262
18462
|
| {
|
|
@@ -18328,6 +18528,10 @@ declare const editorMachine: StateMachine<
|
|
|
18328
18528
|
| {
|
|
18329
18529
|
type: 'decorator.toggle'
|
|
18330
18530
|
decorator: string
|
|
18531
|
+
offsets?: {
|
|
18532
|
+
anchor: BlockOffset_2
|
|
18533
|
+
focus: BlockOffset_2
|
|
18534
|
+
}
|
|
18331
18535
|
}
|
|
18332
18536
|
| {
|
|
18333
18537
|
type: 'delete'
|
|
@@ -18580,7 +18784,7 @@ declare const editorMachine: StateMachine<
|
|
|
18580
18784
|
value: Array<PortableTextBlock> | undefined
|
|
18581
18785
|
internalDrag?: {
|
|
18582
18786
|
ghost?: HTMLElement
|
|
18583
|
-
origin: EventPosition
|
|
18787
|
+
origin: Pick<EventPosition, 'selection'>
|
|
18584
18788
|
}
|
|
18585
18789
|
},
|
|
18586
18790
|
{
|
|
@@ -18645,6 +18849,10 @@ declare const editorMachine: StateMachine<
|
|
|
18645
18849
|
| {
|
|
18646
18850
|
type: 'decorator.toggle'
|
|
18647
18851
|
decorator: string
|
|
18852
|
+
offsets?: {
|
|
18853
|
+
anchor: BlockOffset_2
|
|
18854
|
+
focus: BlockOffset_2
|
|
18855
|
+
}
|
|
18648
18856
|
}
|
|
18649
18857
|
| {
|
|
18650
18858
|
type: 'delete'
|
|
@@ -18953,7 +19161,7 @@ declare const editorMachine: StateMachine<
|
|
|
18953
19161
|
}
|
|
18954
19162
|
| {
|
|
18955
19163
|
type: 'dragstart'
|
|
18956
|
-
origin: EventPosition
|
|
19164
|
+
origin: Pick<EventPosition, 'selection'>
|
|
18957
19165
|
ghost?: HTMLElement
|
|
18958
19166
|
}
|
|
18959
19167
|
| {
|
|
@@ -19025,6 +19233,10 @@ declare const editorMachine: StateMachine<
|
|
|
19025
19233
|
| {
|
|
19026
19234
|
type: 'decorator.toggle'
|
|
19027
19235
|
decorator: string
|
|
19236
|
+
offsets?: {
|
|
19237
|
+
anchor: BlockOffset_2
|
|
19238
|
+
focus: BlockOffset_2
|
|
19239
|
+
}
|
|
19028
19240
|
}
|
|
19029
19241
|
| {
|
|
19030
19242
|
type: 'delete'
|
|
@@ -19277,7 +19489,7 @@ declare const editorMachine: StateMachine<
|
|
|
19277
19489
|
value: Array<PortableTextBlock> | undefined
|
|
19278
19490
|
internalDrag?: {
|
|
19279
19491
|
ghost?: HTMLElement
|
|
19280
|
-
origin: EventPosition
|
|
19492
|
+
origin: Pick<EventPosition, 'selection'>
|
|
19281
19493
|
}
|
|
19282
19494
|
},
|
|
19283
19495
|
| {
|
|
@@ -19346,6 +19558,10 @@ declare const editorMachine: StateMachine<
|
|
|
19346
19558
|
| {
|
|
19347
19559
|
type: 'decorator.toggle'
|
|
19348
19560
|
decorator: string
|
|
19561
|
+
offsets?: {
|
|
19562
|
+
anchor: BlockOffset_2
|
|
19563
|
+
focus: BlockOffset_2
|
|
19564
|
+
}
|
|
19349
19565
|
}
|
|
19350
19566
|
| {
|
|
19351
19567
|
type: 'delete'
|
|
@@ -19654,7 +19870,7 @@ declare const editorMachine: StateMachine<
|
|
|
19654
19870
|
}
|
|
19655
19871
|
| {
|
|
19656
19872
|
type: 'dragstart'
|
|
19657
|
-
origin: EventPosition
|
|
19873
|
+
origin: Pick<EventPosition, 'selection'>
|
|
19658
19874
|
ghost?: HTMLElement
|
|
19659
19875
|
}
|
|
19660
19876
|
| {
|
|
@@ -19726,6 +19942,10 @@ declare const editorMachine: StateMachine<
|
|
|
19726
19942
|
| {
|
|
19727
19943
|
type: 'decorator.toggle'
|
|
19728
19944
|
decorator: string
|
|
19945
|
+
offsets?: {
|
|
19946
|
+
anchor: BlockOffset_2
|
|
19947
|
+
focus: BlockOffset_2
|
|
19948
|
+
}
|
|
19729
19949
|
}
|
|
19730
19950
|
| {
|
|
19731
19951
|
type: 'delete'
|
|
@@ -19978,7 +20198,7 @@ declare const editorMachine: StateMachine<
|
|
|
19978
20198
|
value: Array<PortableTextBlock> | undefined
|
|
19979
20199
|
internalDrag?: {
|
|
19980
20200
|
ghost?: HTMLElement
|
|
19981
|
-
origin: EventPosition
|
|
20201
|
+
origin: Pick<EventPosition, 'selection'>
|
|
19982
20202
|
}
|
|
19983
20203
|
},
|
|
19984
20204
|
| {
|
|
@@ -20051,6 +20271,10 @@ declare const editorMachine: StateMachine<
|
|
|
20051
20271
|
| {
|
|
20052
20272
|
type: 'decorator.toggle'
|
|
20053
20273
|
decorator: string
|
|
20274
|
+
offsets?: {
|
|
20275
|
+
anchor: BlockOffset_2
|
|
20276
|
+
focus: BlockOffset_2
|
|
20277
|
+
}
|
|
20054
20278
|
}
|
|
20055
20279
|
| {
|
|
20056
20280
|
type: 'delete'
|
|
@@ -20359,7 +20583,7 @@ declare const editorMachine: StateMachine<
|
|
|
20359
20583
|
}
|
|
20360
20584
|
| {
|
|
20361
20585
|
type: 'dragstart'
|
|
20362
|
-
origin: EventPosition
|
|
20586
|
+
origin: Pick<EventPosition, 'selection'>
|
|
20363
20587
|
ghost?: HTMLElement
|
|
20364
20588
|
}
|
|
20365
20589
|
| {
|
|
@@ -20431,6 +20655,10 @@ declare const editorMachine: StateMachine<
|
|
|
20431
20655
|
| {
|
|
20432
20656
|
type: 'decorator.toggle'
|
|
20433
20657
|
decorator: string
|
|
20658
|
+
offsets?: {
|
|
20659
|
+
anchor: BlockOffset_2
|
|
20660
|
+
focus: BlockOffset_2
|
|
20661
|
+
}
|
|
20434
20662
|
}
|
|
20435
20663
|
| {
|
|
20436
20664
|
type: 'delete'
|
|
@@ -20704,12 +20932,12 @@ declare const editorMachine: StateMachine<
|
|
|
20704
20932
|
value: Array<PortableTextBlock> | undefined
|
|
20705
20933
|
internalDrag?: {
|
|
20706
20934
|
ghost?: HTMLElement
|
|
20707
|
-
origin: EventPosition
|
|
20935
|
+
origin: Pick<EventPosition, 'selection'>
|
|
20708
20936
|
}
|
|
20709
20937
|
},
|
|
20710
20938
|
{
|
|
20711
20939
|
type: 'dragstart'
|
|
20712
|
-
origin: EventPosition
|
|
20940
|
+
origin: Pick<EventPosition, 'selection'>
|
|
20713
20941
|
ghost?: HTMLElement
|
|
20714
20942
|
},
|
|
20715
20943
|
| {
|
|
@@ -20770,6 +20998,10 @@ declare const editorMachine: StateMachine<
|
|
|
20770
20998
|
| {
|
|
20771
20999
|
type: 'decorator.toggle'
|
|
20772
21000
|
decorator: string
|
|
21001
|
+
offsets?: {
|
|
21002
|
+
anchor: BlockOffset_2
|
|
21003
|
+
focus: BlockOffset_2
|
|
21004
|
+
}
|
|
20773
21005
|
}
|
|
20774
21006
|
| {
|
|
20775
21007
|
type: 'delete'
|
|
@@ -21082,7 +21314,7 @@ declare const editorMachine: StateMachine<
|
|
|
21082
21314
|
}
|
|
21083
21315
|
| {
|
|
21084
21316
|
type: 'dragstart'
|
|
21085
|
-
origin: EventPosition
|
|
21317
|
+
origin: Pick<EventPosition, 'selection'>
|
|
21086
21318
|
ghost?: HTMLElement
|
|
21087
21319
|
}
|
|
21088
21320
|
| {
|
|
@@ -21120,7 +21352,7 @@ declare const editorMachine: StateMachine<
|
|
|
21120
21352
|
value: Array<PortableTextBlock> | undefined
|
|
21121
21353
|
internalDrag?: {
|
|
21122
21354
|
ghost?: HTMLElement
|
|
21123
|
-
origin: EventPosition
|
|
21355
|
+
origin: Pick<EventPosition, 'selection'>
|
|
21124
21356
|
}
|
|
21125
21357
|
},
|
|
21126
21358
|
| {
|
|
@@ -21181,6 +21413,10 @@ declare const editorMachine: StateMachine<
|
|
|
21181
21413
|
| {
|
|
21182
21414
|
type: 'decorator.toggle'
|
|
21183
21415
|
decorator: string
|
|
21416
|
+
offsets?: {
|
|
21417
|
+
anchor: BlockOffset_2
|
|
21418
|
+
focus: BlockOffset_2
|
|
21419
|
+
}
|
|
21184
21420
|
}
|
|
21185
21421
|
| {
|
|
21186
21422
|
type: 'delete'
|
|
@@ -21489,7 +21725,7 @@ declare const editorMachine: StateMachine<
|
|
|
21489
21725
|
}
|
|
21490
21726
|
| {
|
|
21491
21727
|
type: 'dragstart'
|
|
21492
|
-
origin: EventPosition
|
|
21728
|
+
origin: Pick<EventPosition, 'selection'>
|
|
21493
21729
|
ghost?: HTMLElement
|
|
21494
21730
|
}
|
|
21495
21731
|
| {
|
|
@@ -21556,6 +21792,10 @@ declare const editorMachine: StateMachine<
|
|
|
21556
21792
|
| {
|
|
21557
21793
|
type: 'decorator.toggle'
|
|
21558
21794
|
decorator: string
|
|
21795
|
+
offsets?: {
|
|
21796
|
+
anchor: BlockOffset_2
|
|
21797
|
+
focus: BlockOffset_2
|
|
21798
|
+
}
|
|
21559
21799
|
}
|
|
21560
21800
|
| {
|
|
21561
21801
|
type: 'delete'
|
|
@@ -21864,7 +22104,7 @@ declare const editorMachine: StateMachine<
|
|
|
21864
22104
|
}
|
|
21865
22105
|
| {
|
|
21866
22106
|
type: 'dragstart'
|
|
21867
|
-
origin: EventPosition
|
|
22107
|
+
origin: Pick<EventPosition, 'selection'>
|
|
21868
22108
|
ghost?: HTMLElement
|
|
21869
22109
|
}
|
|
21870
22110
|
| {
|
|
@@ -21887,7 +22127,7 @@ declare const editorMachine: StateMachine<
|
|
|
21887
22127
|
value: Array<PortableTextBlock> | undefined
|
|
21888
22128
|
internalDrag?: {
|
|
21889
22129
|
ghost?: HTMLElement
|
|
21890
|
-
origin: EventPosition
|
|
22130
|
+
origin: Pick<EventPosition, 'selection'>
|
|
21891
22131
|
}
|
|
21892
22132
|
},
|
|
21893
22133
|
| {
|
|
@@ -21948,6 +22188,10 @@ declare const editorMachine: StateMachine<
|
|
|
21948
22188
|
| {
|
|
21949
22189
|
type: 'decorator.toggle'
|
|
21950
22190
|
decorator: string
|
|
22191
|
+
offsets?: {
|
|
22192
|
+
anchor: BlockOffset_2
|
|
22193
|
+
focus: BlockOffset_2
|
|
22194
|
+
}
|
|
21951
22195
|
}
|
|
21952
22196
|
| {
|
|
21953
22197
|
type: 'delete'
|
|
@@ -22256,7 +22500,7 @@ declare const editorMachine: StateMachine<
|
|
|
22256
22500
|
}
|
|
22257
22501
|
| {
|
|
22258
22502
|
type: 'dragstart'
|
|
22259
|
-
origin: EventPosition
|
|
22503
|
+
origin: Pick<EventPosition, 'selection'>
|
|
22260
22504
|
ghost?: HTMLElement
|
|
22261
22505
|
}
|
|
22262
22506
|
| {
|
|
@@ -22323,6 +22567,10 @@ declare const editorMachine: StateMachine<
|
|
|
22323
22567
|
| {
|
|
22324
22568
|
type: 'decorator.toggle'
|
|
22325
22569
|
decorator: string
|
|
22570
|
+
offsets?: {
|
|
22571
|
+
anchor: BlockOffset_2
|
|
22572
|
+
focus: BlockOffset_2
|
|
22573
|
+
}
|
|
22326
22574
|
}
|
|
22327
22575
|
| {
|
|
22328
22576
|
type: 'delete'
|
|
@@ -22631,7 +22879,7 @@ declare const editorMachine: StateMachine<
|
|
|
22631
22879
|
}
|
|
22632
22880
|
| {
|
|
22633
22881
|
type: 'dragstart'
|
|
22634
|
-
origin: EventPosition
|
|
22882
|
+
origin: Pick<EventPosition, 'selection'>
|
|
22635
22883
|
ghost?: HTMLElement
|
|
22636
22884
|
}
|
|
22637
22885
|
| {
|
|
@@ -22768,7 +23016,7 @@ declare type EditorSnapshot = {
|
|
|
22768
23016
|
hasTag: HasTag
|
|
22769
23017
|
internalDrag:
|
|
22770
23018
|
| {
|
|
22771
|
-
origin: EventPosition
|
|
23019
|
+
origin: Pick<EventPosition, 'selection'>
|
|
22772
23020
|
}
|
|
22773
23021
|
| undefined
|
|
22774
23022
|
}
|
|
@@ -23438,6 +23686,10 @@ declare type SyntheticBehaviorEvent =
|
|
|
23438
23686
|
| {
|
|
23439
23687
|
type: 'decorator.toggle'
|
|
23440
23688
|
decorator: string
|
|
23689
|
+
offsets?: {
|
|
23690
|
+
anchor: BlockOffset
|
|
23691
|
+
focus: BlockOffset
|
|
23692
|
+
}
|
|
23441
23693
|
}
|
|
23442
23694
|
| {
|
|
23443
23695
|
type: 'delete'
|