@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/plugins/index.d.ts
CHANGED
|
@@ -18,8 +18,8 @@ import type {
|
|
|
18
18
|
KeyboardEvent as KeyboardEvent_2,
|
|
19
19
|
} from 'react'
|
|
20
20
|
import {JSX, default as React_2} from 'react'
|
|
21
|
-
import {Descendant,
|
|
22
|
-
import
|
|
21
|
+
import type {Descendant, Operation} from 'slate'
|
|
22
|
+
import {TextUnit} from 'slate'
|
|
23
23
|
import type {DOMNode} from 'slate-dom'
|
|
24
24
|
import type {ReactEditor} from 'slate-react'
|
|
25
25
|
import {TextInsertTextOptions} from 'slate/dist/interfaces/transforms/text'
|
|
@@ -188,21 +188,21 @@ declare type ClipboardBehaviorEvent =
|
|
|
188
188
|
originEvent: {
|
|
189
189
|
dataTransfer: DataTransfer
|
|
190
190
|
}
|
|
191
|
-
position: EventPosition
|
|
191
|
+
position: Pick<EventPosition, 'selection'>
|
|
192
192
|
}
|
|
193
193
|
| {
|
|
194
194
|
type: 'clipboard.cut'
|
|
195
195
|
originEvent: {
|
|
196
196
|
dataTransfer: DataTransfer
|
|
197
197
|
}
|
|
198
|
-
position: EventPosition
|
|
198
|
+
position: Pick<EventPosition, 'selection'>
|
|
199
199
|
}
|
|
200
200
|
| {
|
|
201
201
|
type: 'clipboard.paste'
|
|
202
202
|
originEvent: {
|
|
203
203
|
dataTransfer: DataTransfer
|
|
204
204
|
}
|
|
205
|
-
position: EventPosition
|
|
205
|
+
position: Pick<EventPosition, 'selection'>
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
declare type Converter<TMIMEType extends MIMEType = MIMEType> = {
|
|
@@ -303,7 +303,7 @@ declare type DragBehaviorEvent =
|
|
|
303
303
|
originEvent: {
|
|
304
304
|
dataTransfer: DataTransfer
|
|
305
305
|
}
|
|
306
|
-
position: EventPosition
|
|
306
|
+
position: Pick<EventPosition, 'selection'>
|
|
307
307
|
}
|
|
308
308
|
| {
|
|
309
309
|
type: 'drag.drag'
|
|
@@ -445,11 +445,6 @@ declare type Editor = {
|
|
|
445
445
|
registerBehavior: (config: {behavior: Behavior}) => () => void
|
|
446
446
|
send: (event: EditorEvent) => void
|
|
447
447
|
on: ActorRef<Snapshot<unknown>, EventObject, EditorEmittedEvent>['on']
|
|
448
|
-
_internal: {
|
|
449
|
-
editable: EditableAPI
|
|
450
|
-
editorActor: EditorActor
|
|
451
|
-
slateEditor: SlateEditor
|
|
452
|
-
}
|
|
453
448
|
}
|
|
454
449
|
|
|
455
450
|
/**
|
|
@@ -543,7 +538,7 @@ declare const editorMachine: StateMachine<
|
|
|
543
538
|
value: Array<PortableTextBlock> | undefined
|
|
544
539
|
internalDrag?: {
|
|
545
540
|
ghost?: HTMLElement
|
|
546
|
-
origin: EventPosition
|
|
541
|
+
origin: Pick<EventPosition, 'selection'>
|
|
547
542
|
}
|
|
548
543
|
},
|
|
549
544
|
| {
|
|
@@ -604,6 +599,10 @@ declare const editorMachine: StateMachine<
|
|
|
604
599
|
| {
|
|
605
600
|
type: 'decorator.toggle'
|
|
606
601
|
decorator: string
|
|
602
|
+
offsets?: {
|
|
603
|
+
anchor: BlockOffset_2
|
|
604
|
+
focus: BlockOffset_2
|
|
605
|
+
}
|
|
607
606
|
}
|
|
608
607
|
| {
|
|
609
608
|
type: 'delete'
|
|
@@ -912,7 +911,7 @@ declare const editorMachine: StateMachine<
|
|
|
912
911
|
}
|
|
913
912
|
| {
|
|
914
913
|
type: 'dragstart'
|
|
915
|
-
origin: EventPosition
|
|
914
|
+
origin: Pick<EventPosition, 'selection'>
|
|
916
915
|
ghost?: HTMLElement
|
|
917
916
|
}
|
|
918
917
|
| {
|
|
@@ -982,7 +981,7 @@ declare const editorMachine: StateMachine<
|
|
|
982
981
|
{
|
|
983
982
|
'edit mode':
|
|
984
983
|
| {
|
|
985
|
-
editable: '
|
|
984
|
+
editable: 'dragging internally' | 'idle'
|
|
986
985
|
}
|
|
987
986
|
| {
|
|
988
987
|
'read only': 'read only' | 'determine initial edit mode'
|
|
@@ -991,7 +990,7 @@ declare const editorMachine: StateMachine<
|
|
|
991
990
|
| 'setting up'
|
|
992
991
|
| 'dirty'
|
|
993
992
|
| {
|
|
994
|
-
pristine: '
|
|
993
|
+
pristine: 'normalizing' | 'idle'
|
|
995
994
|
}
|
|
996
995
|
},
|
|
997
996
|
'dragging internally',
|
|
@@ -1063,6 +1062,10 @@ declare const editorMachine: StateMachine<
|
|
|
1063
1062
|
| {
|
|
1064
1063
|
type: 'decorator.toggle'
|
|
1065
1064
|
decorator: string
|
|
1065
|
+
offsets?: {
|
|
1066
|
+
anchor: BlockOffset_2
|
|
1067
|
+
focus: BlockOffset_2
|
|
1068
|
+
}
|
|
1066
1069
|
}
|
|
1067
1070
|
| {
|
|
1068
1071
|
type: 'delete'
|
|
@@ -1350,7 +1353,7 @@ declare const editorMachine: StateMachine<
|
|
|
1350
1353
|
value: Array<PortableTextBlock> | undefined
|
|
1351
1354
|
internalDrag?: {
|
|
1352
1355
|
ghost?: HTMLElement
|
|
1353
|
-
origin: EventPosition
|
|
1356
|
+
origin: Pick<EventPosition, 'selection'>
|
|
1354
1357
|
}
|
|
1355
1358
|
},
|
|
1356
1359
|
| {
|
|
@@ -1411,6 +1414,10 @@ declare const editorMachine: StateMachine<
|
|
|
1411
1414
|
| {
|
|
1412
1415
|
type: 'decorator.toggle'
|
|
1413
1416
|
decorator: string
|
|
1417
|
+
offsets?: {
|
|
1418
|
+
anchor: BlockOffset_2
|
|
1419
|
+
focus: BlockOffset_2
|
|
1420
|
+
}
|
|
1414
1421
|
}
|
|
1415
1422
|
| {
|
|
1416
1423
|
type: 'delete'
|
|
@@ -1719,7 +1726,7 @@ declare const editorMachine: StateMachine<
|
|
|
1719
1726
|
}
|
|
1720
1727
|
| {
|
|
1721
1728
|
type: 'dragstart'
|
|
1722
|
-
origin: EventPosition
|
|
1729
|
+
origin: Pick<EventPosition, 'selection'>
|
|
1723
1730
|
ghost?: HTMLElement
|
|
1724
1731
|
}
|
|
1725
1732
|
| {
|
|
@@ -1793,6 +1800,10 @@ declare const editorMachine: StateMachine<
|
|
|
1793
1800
|
| {
|
|
1794
1801
|
type: 'decorator.toggle'
|
|
1795
1802
|
decorator: string
|
|
1803
|
+
offsets?: {
|
|
1804
|
+
anchor: BlockOffset_2
|
|
1805
|
+
focus: BlockOffset_2
|
|
1806
|
+
}
|
|
1796
1807
|
}
|
|
1797
1808
|
| {
|
|
1798
1809
|
type: 'delete'
|
|
@@ -2101,7 +2112,7 @@ declare const editorMachine: StateMachine<
|
|
|
2101
2112
|
}
|
|
2102
2113
|
| {
|
|
2103
2114
|
type: 'dragstart'
|
|
2104
|
-
origin: EventPosition
|
|
2115
|
+
origin: Pick<EventPosition, 'selection'>
|
|
2105
2116
|
ghost?: HTMLElement
|
|
2106
2117
|
}
|
|
2107
2118
|
| {
|
|
@@ -2138,7 +2149,7 @@ declare const editorMachine: StateMachine<
|
|
|
2138
2149
|
value: Array<PortableTextBlock> | undefined
|
|
2139
2150
|
internalDrag?: {
|
|
2140
2151
|
ghost?: HTMLElement
|
|
2141
|
-
origin: EventPosition
|
|
2152
|
+
origin: Pick<EventPosition, 'selection'>
|
|
2142
2153
|
}
|
|
2143
2154
|
},
|
|
2144
2155
|
{
|
|
@@ -2203,6 +2214,10 @@ declare const editorMachine: StateMachine<
|
|
|
2203
2214
|
| {
|
|
2204
2215
|
type: 'decorator.toggle'
|
|
2205
2216
|
decorator: string
|
|
2217
|
+
offsets?: {
|
|
2218
|
+
anchor: BlockOffset_2
|
|
2219
|
+
focus: BlockOffset_2
|
|
2220
|
+
}
|
|
2206
2221
|
}
|
|
2207
2222
|
| {
|
|
2208
2223
|
type: 'delete'
|
|
@@ -2511,7 +2526,7 @@ declare const editorMachine: StateMachine<
|
|
|
2511
2526
|
}
|
|
2512
2527
|
| {
|
|
2513
2528
|
type: 'dragstart'
|
|
2514
|
-
origin: EventPosition
|
|
2529
|
+
origin: Pick<EventPosition, 'selection'>
|
|
2515
2530
|
ghost?: HTMLElement
|
|
2516
2531
|
}
|
|
2517
2532
|
| {
|
|
@@ -2583,6 +2598,10 @@ declare const editorMachine: StateMachine<
|
|
|
2583
2598
|
| {
|
|
2584
2599
|
type: 'decorator.toggle'
|
|
2585
2600
|
decorator: string
|
|
2601
|
+
offsets?: {
|
|
2602
|
+
anchor: BlockOffset_2
|
|
2603
|
+
focus: BlockOffset_2
|
|
2604
|
+
}
|
|
2586
2605
|
}
|
|
2587
2606
|
| {
|
|
2588
2607
|
type: 'delete'
|
|
@@ -2835,7 +2854,7 @@ declare const editorMachine: StateMachine<
|
|
|
2835
2854
|
value: Array<PortableTextBlock> | undefined
|
|
2836
2855
|
internalDrag?: {
|
|
2837
2856
|
ghost?: HTMLElement
|
|
2838
|
-
origin: EventPosition
|
|
2857
|
+
origin: Pick<EventPosition, 'selection'>
|
|
2839
2858
|
}
|
|
2840
2859
|
},
|
|
2841
2860
|
{
|
|
@@ -2899,6 +2918,10 @@ declare const editorMachine: StateMachine<
|
|
|
2899
2918
|
| {
|
|
2900
2919
|
type: 'decorator.toggle'
|
|
2901
2920
|
decorator: string
|
|
2921
|
+
offsets?: {
|
|
2922
|
+
anchor: BlockOffset_2
|
|
2923
|
+
focus: BlockOffset_2
|
|
2924
|
+
}
|
|
2902
2925
|
}
|
|
2903
2926
|
| {
|
|
2904
2927
|
type: 'delete'
|
|
@@ -3207,7 +3230,7 @@ declare const editorMachine: StateMachine<
|
|
|
3207
3230
|
}
|
|
3208
3231
|
| {
|
|
3209
3232
|
type: 'dragstart'
|
|
3210
|
-
origin: EventPosition
|
|
3233
|
+
origin: Pick<EventPosition, 'selection'>
|
|
3211
3234
|
ghost?: HTMLElement
|
|
3212
3235
|
}
|
|
3213
3236
|
| {
|
|
@@ -3279,6 +3302,10 @@ declare const editorMachine: StateMachine<
|
|
|
3279
3302
|
| {
|
|
3280
3303
|
type: 'decorator.toggle'
|
|
3281
3304
|
decorator: string
|
|
3305
|
+
offsets?: {
|
|
3306
|
+
anchor: BlockOffset_2
|
|
3307
|
+
focus: BlockOffset_2
|
|
3308
|
+
}
|
|
3282
3309
|
}
|
|
3283
3310
|
| {
|
|
3284
3311
|
type: 'delete'
|
|
@@ -3531,7 +3558,7 @@ declare const editorMachine: StateMachine<
|
|
|
3531
3558
|
value: Array<PortableTextBlock> | undefined
|
|
3532
3559
|
internalDrag?: {
|
|
3533
3560
|
ghost?: HTMLElement
|
|
3534
|
-
origin: EventPosition
|
|
3561
|
+
origin: Pick<EventPosition, 'selection'>
|
|
3535
3562
|
}
|
|
3536
3563
|
},
|
|
3537
3564
|
{
|
|
@@ -3598,6 +3625,10 @@ declare const editorMachine: StateMachine<
|
|
|
3598
3625
|
| {
|
|
3599
3626
|
type: 'decorator.toggle'
|
|
3600
3627
|
decorator: string
|
|
3628
|
+
offsets?: {
|
|
3629
|
+
anchor: BlockOffset_2
|
|
3630
|
+
focus: BlockOffset_2
|
|
3631
|
+
}
|
|
3601
3632
|
}
|
|
3602
3633
|
| {
|
|
3603
3634
|
type: 'delete'
|
|
@@ -3906,7 +3937,7 @@ declare const editorMachine: StateMachine<
|
|
|
3906
3937
|
}
|
|
3907
3938
|
| {
|
|
3908
3939
|
type: 'dragstart'
|
|
3909
|
-
origin: EventPosition
|
|
3940
|
+
origin: Pick<EventPosition, 'selection'>
|
|
3910
3941
|
ghost?: HTMLElement
|
|
3911
3942
|
}
|
|
3912
3943
|
| {
|
|
@@ -3978,6 +4009,10 @@ declare const editorMachine: StateMachine<
|
|
|
3978
4009
|
| {
|
|
3979
4010
|
type: 'decorator.toggle'
|
|
3980
4011
|
decorator: string
|
|
4012
|
+
offsets?: {
|
|
4013
|
+
anchor: BlockOffset_2
|
|
4014
|
+
focus: BlockOffset_2
|
|
4015
|
+
}
|
|
3981
4016
|
}
|
|
3982
4017
|
| {
|
|
3983
4018
|
type: 'delete'
|
|
@@ -4230,7 +4265,7 @@ declare const editorMachine: StateMachine<
|
|
|
4230
4265
|
value: Array<PortableTextBlock> | undefined
|
|
4231
4266
|
internalDrag?: {
|
|
4232
4267
|
ghost?: HTMLElement
|
|
4233
|
-
origin: EventPosition
|
|
4268
|
+
origin: Pick<EventPosition, 'selection'>
|
|
4234
4269
|
}
|
|
4235
4270
|
},
|
|
4236
4271
|
{
|
|
@@ -4296,6 +4331,10 @@ declare const editorMachine: StateMachine<
|
|
|
4296
4331
|
| {
|
|
4297
4332
|
type: 'decorator.toggle'
|
|
4298
4333
|
decorator: string
|
|
4334
|
+
offsets?: {
|
|
4335
|
+
anchor: BlockOffset_2
|
|
4336
|
+
focus: BlockOffset_2
|
|
4337
|
+
}
|
|
4299
4338
|
}
|
|
4300
4339
|
| {
|
|
4301
4340
|
type: 'delete'
|
|
@@ -4604,7 +4643,7 @@ declare const editorMachine: StateMachine<
|
|
|
4604
4643
|
}
|
|
4605
4644
|
| {
|
|
4606
4645
|
type: 'dragstart'
|
|
4607
|
-
origin: EventPosition
|
|
4646
|
+
origin: Pick<EventPosition, 'selection'>
|
|
4608
4647
|
ghost?: HTMLElement
|
|
4609
4648
|
}
|
|
4610
4649
|
| {
|
|
@@ -4676,6 +4715,10 @@ declare const editorMachine: StateMachine<
|
|
|
4676
4715
|
| {
|
|
4677
4716
|
type: 'decorator.toggle'
|
|
4678
4717
|
decorator: string
|
|
4718
|
+
offsets?: {
|
|
4719
|
+
anchor: BlockOffset_2
|
|
4720
|
+
focus: BlockOffset_2
|
|
4721
|
+
}
|
|
4679
4722
|
}
|
|
4680
4723
|
| {
|
|
4681
4724
|
type: 'delete'
|
|
@@ -4928,7 +4971,7 @@ declare const editorMachine: StateMachine<
|
|
|
4928
4971
|
value: Array<PortableTextBlock> | undefined
|
|
4929
4972
|
internalDrag?: {
|
|
4930
4973
|
ghost?: HTMLElement
|
|
4931
|
-
origin: EventPosition
|
|
4974
|
+
origin: Pick<EventPosition, 'selection'>
|
|
4932
4975
|
}
|
|
4933
4976
|
},
|
|
4934
4977
|
{
|
|
@@ -4993,6 +5036,10 @@ declare const editorMachine: StateMachine<
|
|
|
4993
5036
|
| {
|
|
4994
5037
|
type: 'decorator.toggle'
|
|
4995
5038
|
decorator: string
|
|
5039
|
+
offsets?: {
|
|
5040
|
+
anchor: BlockOffset_2
|
|
5041
|
+
focus: BlockOffset_2
|
|
5042
|
+
}
|
|
4996
5043
|
}
|
|
4997
5044
|
| {
|
|
4998
5045
|
type: 'delete'
|
|
@@ -5301,7 +5348,7 @@ declare const editorMachine: StateMachine<
|
|
|
5301
5348
|
}
|
|
5302
5349
|
| {
|
|
5303
5350
|
type: 'dragstart'
|
|
5304
|
-
origin: EventPosition
|
|
5351
|
+
origin: Pick<EventPosition, 'selection'>
|
|
5305
5352
|
ghost?: HTMLElement
|
|
5306
5353
|
}
|
|
5307
5354
|
| {
|
|
@@ -5373,6 +5420,10 @@ declare const editorMachine: StateMachine<
|
|
|
5373
5420
|
| {
|
|
5374
5421
|
type: 'decorator.toggle'
|
|
5375
5422
|
decorator: string
|
|
5423
|
+
offsets?: {
|
|
5424
|
+
anchor: BlockOffset_2
|
|
5425
|
+
focus: BlockOffset_2
|
|
5426
|
+
}
|
|
5376
5427
|
}
|
|
5377
5428
|
| {
|
|
5378
5429
|
type: 'delete'
|
|
@@ -5626,7 +5677,7 @@ declare const editorMachine: StateMachine<
|
|
|
5626
5677
|
value: Array<PortableTextBlock> | undefined
|
|
5627
5678
|
internalDrag?: {
|
|
5628
5679
|
ghost?: HTMLElement
|
|
5629
|
-
origin: EventPosition
|
|
5680
|
+
origin: Pick<EventPosition, 'selection'>
|
|
5630
5681
|
}
|
|
5631
5682
|
},
|
|
5632
5683
|
{
|
|
@@ -5691,6 +5742,10 @@ declare const editorMachine: StateMachine<
|
|
|
5691
5742
|
| {
|
|
5692
5743
|
type: 'decorator.toggle'
|
|
5693
5744
|
decorator: string
|
|
5745
|
+
offsets?: {
|
|
5746
|
+
anchor: BlockOffset_2
|
|
5747
|
+
focus: BlockOffset_2
|
|
5748
|
+
}
|
|
5694
5749
|
}
|
|
5695
5750
|
| {
|
|
5696
5751
|
type: 'delete'
|
|
@@ -5999,7 +6054,7 @@ declare const editorMachine: StateMachine<
|
|
|
5999
6054
|
}
|
|
6000
6055
|
| {
|
|
6001
6056
|
type: 'dragstart'
|
|
6002
|
-
origin: EventPosition
|
|
6057
|
+
origin: Pick<EventPosition, 'selection'>
|
|
6003
6058
|
ghost?: HTMLElement
|
|
6004
6059
|
}
|
|
6005
6060
|
| {
|
|
@@ -6028,7 +6083,7 @@ declare const editorMachine: StateMachine<
|
|
|
6028
6083
|
value: Array<PortableTextBlock> | undefined
|
|
6029
6084
|
internalDrag?: {
|
|
6030
6085
|
ghost?: HTMLElement
|
|
6031
|
-
origin: EventPosition
|
|
6086
|
+
origin: Pick<EventPosition, 'selection'>
|
|
6032
6087
|
}
|
|
6033
6088
|
},
|
|
6034
6089
|
{
|
|
@@ -6093,6 +6148,10 @@ declare const editorMachine: StateMachine<
|
|
|
6093
6148
|
| {
|
|
6094
6149
|
type: 'decorator.toggle'
|
|
6095
6150
|
decorator: string
|
|
6151
|
+
offsets?: {
|
|
6152
|
+
anchor: BlockOffset_2
|
|
6153
|
+
focus: BlockOffset_2
|
|
6154
|
+
}
|
|
6096
6155
|
}
|
|
6097
6156
|
| {
|
|
6098
6157
|
type: 'delete'
|
|
@@ -6401,7 +6460,7 @@ declare const editorMachine: StateMachine<
|
|
|
6401
6460
|
}
|
|
6402
6461
|
| {
|
|
6403
6462
|
type: 'dragstart'
|
|
6404
|
-
origin: EventPosition
|
|
6463
|
+
origin: Pick<EventPosition, 'selection'>
|
|
6405
6464
|
ghost?: HTMLElement
|
|
6406
6465
|
}
|
|
6407
6466
|
| {
|
|
@@ -6473,6 +6532,10 @@ declare const editorMachine: StateMachine<
|
|
|
6473
6532
|
| {
|
|
6474
6533
|
type: 'decorator.toggle'
|
|
6475
6534
|
decorator: string
|
|
6535
|
+
offsets?: {
|
|
6536
|
+
anchor: BlockOffset_2
|
|
6537
|
+
focus: BlockOffset_2
|
|
6538
|
+
}
|
|
6476
6539
|
}
|
|
6477
6540
|
| {
|
|
6478
6541
|
type: 'delete'
|
|
@@ -6726,7 +6789,7 @@ declare const editorMachine: StateMachine<
|
|
|
6726
6789
|
value: Array<PortableTextBlock> | undefined
|
|
6727
6790
|
internalDrag?: {
|
|
6728
6791
|
ghost?: HTMLElement
|
|
6729
|
-
origin: EventPosition
|
|
6792
|
+
origin: Pick<EventPosition, 'selection'>
|
|
6730
6793
|
}
|
|
6731
6794
|
},
|
|
6732
6795
|
{
|
|
@@ -6791,6 +6854,10 @@ declare const editorMachine: StateMachine<
|
|
|
6791
6854
|
| {
|
|
6792
6855
|
type: 'decorator.toggle'
|
|
6793
6856
|
decorator: string
|
|
6857
|
+
offsets?: {
|
|
6858
|
+
anchor: BlockOffset_2
|
|
6859
|
+
focus: BlockOffset_2
|
|
6860
|
+
}
|
|
6794
6861
|
}
|
|
6795
6862
|
| {
|
|
6796
6863
|
type: 'delete'
|
|
@@ -7099,7 +7166,7 @@ declare const editorMachine: StateMachine<
|
|
|
7099
7166
|
}
|
|
7100
7167
|
| {
|
|
7101
7168
|
type: 'dragstart'
|
|
7102
|
-
origin: EventPosition
|
|
7169
|
+
origin: Pick<EventPosition, 'selection'>
|
|
7103
7170
|
ghost?: HTMLElement
|
|
7104
7171
|
}
|
|
7105
7172
|
| {
|
|
@@ -7171,6 +7238,10 @@ declare const editorMachine: StateMachine<
|
|
|
7171
7238
|
| {
|
|
7172
7239
|
type: 'decorator.toggle'
|
|
7173
7240
|
decorator: string
|
|
7241
|
+
offsets?: {
|
|
7242
|
+
anchor: BlockOffset_2
|
|
7243
|
+
focus: BlockOffset_2
|
|
7244
|
+
}
|
|
7174
7245
|
}
|
|
7175
7246
|
| {
|
|
7176
7247
|
type: 'delete'
|
|
@@ -7423,7 +7494,7 @@ declare const editorMachine: StateMachine<
|
|
|
7423
7494
|
value: Array<PortableTextBlock> | undefined
|
|
7424
7495
|
internalDrag?: {
|
|
7425
7496
|
ghost?: HTMLElement
|
|
7426
|
-
origin: EventPosition
|
|
7497
|
+
origin: Pick<EventPosition, 'selection'>
|
|
7427
7498
|
}
|
|
7428
7499
|
},
|
|
7429
7500
|
{
|
|
@@ -7487,6 +7558,10 @@ declare const editorMachine: StateMachine<
|
|
|
7487
7558
|
| {
|
|
7488
7559
|
type: 'decorator.toggle'
|
|
7489
7560
|
decorator: string
|
|
7561
|
+
offsets?: {
|
|
7562
|
+
anchor: BlockOffset_2
|
|
7563
|
+
focus: BlockOffset_2
|
|
7564
|
+
}
|
|
7490
7565
|
}
|
|
7491
7566
|
| {
|
|
7492
7567
|
type: 'delete'
|
|
@@ -7795,7 +7870,7 @@ declare const editorMachine: StateMachine<
|
|
|
7795
7870
|
}
|
|
7796
7871
|
| {
|
|
7797
7872
|
type: 'dragstart'
|
|
7798
|
-
origin: EventPosition
|
|
7873
|
+
origin: Pick<EventPosition, 'selection'>
|
|
7799
7874
|
ghost?: HTMLElement
|
|
7800
7875
|
}
|
|
7801
7876
|
| {
|
|
@@ -7867,6 +7942,10 @@ declare const editorMachine: StateMachine<
|
|
|
7867
7942
|
| {
|
|
7868
7943
|
type: 'decorator.toggle'
|
|
7869
7944
|
decorator: string
|
|
7945
|
+
offsets?: {
|
|
7946
|
+
anchor: BlockOffset_2
|
|
7947
|
+
focus: BlockOffset_2
|
|
7948
|
+
}
|
|
7870
7949
|
}
|
|
7871
7950
|
| {
|
|
7872
7951
|
type: 'delete'
|
|
@@ -8119,7 +8198,7 @@ declare const editorMachine: StateMachine<
|
|
|
8119
8198
|
value: Array<PortableTextBlock> | undefined
|
|
8120
8199
|
internalDrag?: {
|
|
8121
8200
|
ghost?: HTMLElement
|
|
8122
|
-
origin: EventPosition
|
|
8201
|
+
origin: Pick<EventPosition, 'selection'>
|
|
8123
8202
|
}
|
|
8124
8203
|
},
|
|
8125
8204
|
{
|
|
@@ -8184,6 +8263,10 @@ declare const editorMachine: StateMachine<
|
|
|
8184
8263
|
| {
|
|
8185
8264
|
type: 'decorator.toggle'
|
|
8186
8265
|
decorator: string
|
|
8266
|
+
offsets?: {
|
|
8267
|
+
anchor: BlockOffset_2
|
|
8268
|
+
focus: BlockOffset_2
|
|
8269
|
+
}
|
|
8187
8270
|
}
|
|
8188
8271
|
| {
|
|
8189
8272
|
type: 'delete'
|
|
@@ -8492,7 +8575,7 @@ declare const editorMachine: StateMachine<
|
|
|
8492
8575
|
}
|
|
8493
8576
|
| {
|
|
8494
8577
|
type: 'dragstart'
|
|
8495
|
-
origin: EventPosition
|
|
8578
|
+
origin: Pick<EventPosition, 'selection'>
|
|
8496
8579
|
ghost?: HTMLElement
|
|
8497
8580
|
}
|
|
8498
8581
|
| {
|
|
@@ -8564,6 +8647,10 @@ declare const editorMachine: StateMachine<
|
|
|
8564
8647
|
| {
|
|
8565
8648
|
type: 'decorator.toggle'
|
|
8566
8649
|
decorator: string
|
|
8650
|
+
offsets?: {
|
|
8651
|
+
anchor: BlockOffset_2
|
|
8652
|
+
focus: BlockOffset_2
|
|
8653
|
+
}
|
|
8567
8654
|
}
|
|
8568
8655
|
| {
|
|
8569
8656
|
type: 'delete'
|
|
@@ -8822,7 +8909,7 @@ declare const editorMachine: StateMachine<
|
|
|
8822
8909
|
value: Array<PortableTextBlock> | undefined
|
|
8823
8910
|
internalDrag?: {
|
|
8824
8911
|
ghost?: HTMLElement
|
|
8825
|
-
origin: EventPosition
|
|
8912
|
+
origin: Pick<EventPosition, 'selection'>
|
|
8826
8913
|
}
|
|
8827
8914
|
},
|
|
8828
8915
|
PatchesEvent,
|
|
@@ -8884,6 +8971,10 @@ declare const editorMachine: StateMachine<
|
|
|
8884
8971
|
| {
|
|
8885
8972
|
type: 'decorator.toggle'
|
|
8886
8973
|
decorator: string
|
|
8974
|
+
offsets?: {
|
|
8975
|
+
anchor: BlockOffset_2
|
|
8976
|
+
focus: BlockOffset_2
|
|
8977
|
+
}
|
|
8887
8978
|
}
|
|
8888
8979
|
| {
|
|
8889
8980
|
type: 'delete'
|
|
@@ -9192,7 +9283,7 @@ declare const editorMachine: StateMachine<
|
|
|
9192
9283
|
}
|
|
9193
9284
|
| {
|
|
9194
9285
|
type: 'dragstart'
|
|
9195
|
-
origin: EventPosition
|
|
9286
|
+
origin: Pick<EventPosition, 'selection'>
|
|
9196
9287
|
ghost?: HTMLElement
|
|
9197
9288
|
}
|
|
9198
9289
|
| {
|
|
@@ -9264,6 +9355,10 @@ declare const editorMachine: StateMachine<
|
|
|
9264
9355
|
| {
|
|
9265
9356
|
type: 'decorator.toggle'
|
|
9266
9357
|
decorator: string
|
|
9358
|
+
offsets?: {
|
|
9359
|
+
anchor: BlockOffset_2
|
|
9360
|
+
focus: BlockOffset_2
|
|
9361
|
+
}
|
|
9267
9362
|
}
|
|
9268
9363
|
| {
|
|
9269
9364
|
type: 'delete'
|
|
@@ -9519,7 +9614,7 @@ declare const editorMachine: StateMachine<
|
|
|
9519
9614
|
value: Array<PortableTextBlock> | undefined
|
|
9520
9615
|
internalDrag?: {
|
|
9521
9616
|
ghost?: HTMLElement
|
|
9522
|
-
origin: EventPosition
|
|
9617
|
+
origin: Pick<EventPosition, 'selection'>
|
|
9523
9618
|
}
|
|
9524
9619
|
},
|
|
9525
9620
|
{
|
|
@@ -9584,6 +9679,10 @@ declare const editorMachine: StateMachine<
|
|
|
9584
9679
|
| {
|
|
9585
9680
|
type: 'decorator.toggle'
|
|
9586
9681
|
decorator: string
|
|
9682
|
+
offsets?: {
|
|
9683
|
+
anchor: BlockOffset_2
|
|
9684
|
+
focus: BlockOffset_2
|
|
9685
|
+
}
|
|
9587
9686
|
}
|
|
9588
9687
|
| {
|
|
9589
9688
|
type: 'delete'
|
|
@@ -9892,7 +9991,7 @@ declare const editorMachine: StateMachine<
|
|
|
9892
9991
|
}
|
|
9893
9992
|
| {
|
|
9894
9993
|
type: 'dragstart'
|
|
9895
|
-
origin: EventPosition
|
|
9994
|
+
origin: Pick<EventPosition, 'selection'>
|
|
9896
9995
|
ghost?: HTMLElement
|
|
9897
9996
|
}
|
|
9898
9997
|
| {
|
|
@@ -9926,7 +10025,7 @@ declare const editorMachine: StateMachine<
|
|
|
9926
10025
|
value: Array<PortableTextBlock> | undefined
|
|
9927
10026
|
internalDrag?: {
|
|
9928
10027
|
ghost?: HTMLElement
|
|
9929
|
-
origin: EventPosition
|
|
10028
|
+
origin: Pick<EventPosition, 'selection'>
|
|
9930
10029
|
}
|
|
9931
10030
|
},
|
|
9932
10031
|
{
|
|
@@ -9991,6 +10090,10 @@ declare const editorMachine: StateMachine<
|
|
|
9991
10090
|
| {
|
|
9992
10091
|
type: 'decorator.toggle'
|
|
9993
10092
|
decorator: string
|
|
10093
|
+
offsets?: {
|
|
10094
|
+
anchor: BlockOffset_2
|
|
10095
|
+
focus: BlockOffset_2
|
|
10096
|
+
}
|
|
9994
10097
|
}
|
|
9995
10098
|
| {
|
|
9996
10099
|
type: 'delete'
|
|
@@ -10299,7 +10402,7 @@ declare const editorMachine: StateMachine<
|
|
|
10299
10402
|
}
|
|
10300
10403
|
| {
|
|
10301
10404
|
type: 'dragstart'
|
|
10302
|
-
origin: EventPosition
|
|
10405
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10303
10406
|
ghost?: HTMLElement
|
|
10304
10407
|
}
|
|
10305
10408
|
| {
|
|
@@ -10330,7 +10433,7 @@ declare const editorMachine: StateMachine<
|
|
|
10330
10433
|
value: Array<PortableTextBlock> | undefined
|
|
10331
10434
|
internalDrag?: {
|
|
10332
10435
|
ghost?: HTMLElement
|
|
10333
|
-
origin: EventPosition
|
|
10436
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10334
10437
|
}
|
|
10335
10438
|
},
|
|
10336
10439
|
{
|
|
@@ -10395,6 +10498,10 @@ declare const editorMachine: StateMachine<
|
|
|
10395
10498
|
| {
|
|
10396
10499
|
type: 'decorator.toggle'
|
|
10397
10500
|
decorator: string
|
|
10501
|
+
offsets?: {
|
|
10502
|
+
anchor: BlockOffset_2
|
|
10503
|
+
focus: BlockOffset_2
|
|
10504
|
+
}
|
|
10398
10505
|
}
|
|
10399
10506
|
| {
|
|
10400
10507
|
type: 'delete'
|
|
@@ -10703,7 +10810,7 @@ declare const editorMachine: StateMachine<
|
|
|
10703
10810
|
}
|
|
10704
10811
|
| {
|
|
10705
10812
|
type: 'dragstart'
|
|
10706
|
-
origin: EventPosition
|
|
10813
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10707
10814
|
ghost?: HTMLElement
|
|
10708
10815
|
}
|
|
10709
10816
|
| {
|
|
@@ -10746,7 +10853,7 @@ declare const editorMachine: StateMachine<
|
|
|
10746
10853
|
value: Array<PortableTextBlock> | undefined
|
|
10747
10854
|
internalDrag?: {
|
|
10748
10855
|
ghost?: HTMLElement
|
|
10749
|
-
origin: EventPosition
|
|
10856
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10750
10857
|
}
|
|
10751
10858
|
},
|
|
10752
10859
|
{
|
|
@@ -10787,7 +10894,7 @@ declare const editorMachine: StateMachine<
|
|
|
10787
10894
|
value: Array<PortableTextBlock> | undefined
|
|
10788
10895
|
internalDrag?: {
|
|
10789
10896
|
ghost?: HTMLElement
|
|
10790
|
-
origin: EventPosition
|
|
10897
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10791
10898
|
}
|
|
10792
10899
|
},
|
|
10793
10900
|
{
|
|
@@ -10819,7 +10926,7 @@ declare const editorMachine: StateMachine<
|
|
|
10819
10926
|
value: Array<PortableTextBlock> | undefined
|
|
10820
10927
|
internalDrag?: {
|
|
10821
10928
|
ghost?: HTMLElement
|
|
10822
|
-
origin: EventPosition
|
|
10929
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10823
10930
|
}
|
|
10824
10931
|
},
|
|
10825
10932
|
{
|
|
@@ -10852,7 +10959,7 @@ declare const editorMachine: StateMachine<
|
|
|
10852
10959
|
value: Array<PortableTextBlock> | undefined
|
|
10853
10960
|
internalDrag?: {
|
|
10854
10961
|
ghost?: HTMLElement
|
|
10855
|
-
origin: EventPosition
|
|
10962
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10856
10963
|
}
|
|
10857
10964
|
},
|
|
10858
10965
|
{
|
|
@@ -10883,7 +10990,7 @@ declare const editorMachine: StateMachine<
|
|
|
10883
10990
|
value: Array<PortableTextBlock> | undefined
|
|
10884
10991
|
internalDrag?: {
|
|
10885
10992
|
ghost?: HTMLElement
|
|
10886
|
-
origin: EventPosition
|
|
10993
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10887
10994
|
}
|
|
10888
10995
|
},
|
|
10889
10996
|
| {
|
|
@@ -10968,6 +11075,10 @@ declare const editorMachine: StateMachine<
|
|
|
10968
11075
|
| {
|
|
10969
11076
|
type: 'decorator.toggle'
|
|
10970
11077
|
decorator: string
|
|
11078
|
+
offsets?: {
|
|
11079
|
+
anchor: BlockOffset_2
|
|
11080
|
+
focus: BlockOffset_2
|
|
11081
|
+
}
|
|
10971
11082
|
}
|
|
10972
11083
|
| {
|
|
10973
11084
|
type: 'delete'
|
|
@@ -11276,7 +11387,7 @@ declare const editorMachine: StateMachine<
|
|
|
11276
11387
|
}
|
|
11277
11388
|
| {
|
|
11278
11389
|
type: 'dragstart'
|
|
11279
|
-
origin: EventPosition
|
|
11390
|
+
origin: Pick<EventPosition, 'selection'>
|
|
11280
11391
|
ghost?: HTMLElement
|
|
11281
11392
|
}
|
|
11282
11393
|
| {
|
|
@@ -11348,6 +11459,10 @@ declare const editorMachine: StateMachine<
|
|
|
11348
11459
|
| {
|
|
11349
11460
|
type: 'decorator.toggle'
|
|
11350
11461
|
decorator: string
|
|
11462
|
+
offsets?: {
|
|
11463
|
+
anchor: BlockOffset_2
|
|
11464
|
+
focus: BlockOffset_2
|
|
11465
|
+
}
|
|
11351
11466
|
}
|
|
11352
11467
|
| {
|
|
11353
11468
|
type: 'delete'
|
|
@@ -11600,7 +11715,7 @@ declare const editorMachine: StateMachine<
|
|
|
11600
11715
|
value: Array<PortableTextBlock> | undefined
|
|
11601
11716
|
internalDrag?: {
|
|
11602
11717
|
ghost?: HTMLElement
|
|
11603
|
-
origin: EventPosition
|
|
11718
|
+
origin: Pick<EventPosition, 'selection'>
|
|
11604
11719
|
}
|
|
11605
11720
|
},
|
|
11606
11721
|
| {
|
|
@@ -11671,6 +11786,10 @@ declare const editorMachine: StateMachine<
|
|
|
11671
11786
|
| {
|
|
11672
11787
|
type: 'decorator.toggle'
|
|
11673
11788
|
decorator: string
|
|
11789
|
+
offsets?: {
|
|
11790
|
+
anchor: BlockOffset_2
|
|
11791
|
+
focus: BlockOffset_2
|
|
11792
|
+
}
|
|
11674
11793
|
}
|
|
11675
11794
|
| {
|
|
11676
11795
|
type: 'delete'
|
|
@@ -11979,7 +12098,7 @@ declare const editorMachine: StateMachine<
|
|
|
11979
12098
|
}
|
|
11980
12099
|
| {
|
|
11981
12100
|
type: 'dragstart'
|
|
11982
|
-
origin: EventPosition
|
|
12101
|
+
origin: Pick<EventPosition, 'selection'>
|
|
11983
12102
|
ghost?: HTMLElement
|
|
11984
12103
|
}
|
|
11985
12104
|
| {
|
|
@@ -12051,6 +12170,10 @@ declare const editorMachine: StateMachine<
|
|
|
12051
12170
|
| {
|
|
12052
12171
|
type: 'decorator.toggle'
|
|
12053
12172
|
decorator: string
|
|
12173
|
+
offsets?: {
|
|
12174
|
+
anchor: BlockOffset_2
|
|
12175
|
+
focus: BlockOffset_2
|
|
12176
|
+
}
|
|
12054
12177
|
}
|
|
12055
12178
|
| {
|
|
12056
12179
|
type: 'delete'
|
|
@@ -12303,7 +12426,7 @@ declare const editorMachine: StateMachine<
|
|
|
12303
12426
|
value: Array<PortableTextBlock> | undefined
|
|
12304
12427
|
internalDrag?: {
|
|
12305
12428
|
ghost?: HTMLElement
|
|
12306
|
-
origin: EventPosition
|
|
12429
|
+
origin: Pick<EventPosition, 'selection'>
|
|
12307
12430
|
}
|
|
12308
12431
|
},
|
|
12309
12432
|
{
|
|
@@ -12367,6 +12490,10 @@ declare const editorMachine: StateMachine<
|
|
|
12367
12490
|
| {
|
|
12368
12491
|
type: 'decorator.toggle'
|
|
12369
12492
|
decorator: string
|
|
12493
|
+
offsets?: {
|
|
12494
|
+
anchor: BlockOffset_2
|
|
12495
|
+
focus: BlockOffset_2
|
|
12496
|
+
}
|
|
12370
12497
|
}
|
|
12371
12498
|
| {
|
|
12372
12499
|
type: 'delete'
|
|
@@ -12675,7 +12802,7 @@ declare const editorMachine: StateMachine<
|
|
|
12675
12802
|
}
|
|
12676
12803
|
| {
|
|
12677
12804
|
type: 'dragstart'
|
|
12678
|
-
origin: EventPosition
|
|
12805
|
+
origin: Pick<EventPosition, 'selection'>
|
|
12679
12806
|
ghost?: HTMLElement
|
|
12680
12807
|
}
|
|
12681
12808
|
| {
|
|
@@ -12747,6 +12874,10 @@ declare const editorMachine: StateMachine<
|
|
|
12747
12874
|
| {
|
|
12748
12875
|
type: 'decorator.toggle'
|
|
12749
12876
|
decorator: string
|
|
12877
|
+
offsets?: {
|
|
12878
|
+
anchor: BlockOffset_2
|
|
12879
|
+
focus: BlockOffset_2
|
|
12880
|
+
}
|
|
12750
12881
|
}
|
|
12751
12882
|
| {
|
|
12752
12883
|
type: 'delete'
|
|
@@ -12999,7 +13130,7 @@ declare const editorMachine: StateMachine<
|
|
|
12999
13130
|
value: Array<PortableTextBlock> | undefined
|
|
13000
13131
|
internalDrag?: {
|
|
13001
13132
|
ghost?: HTMLElement
|
|
13002
|
-
origin: EventPosition
|
|
13133
|
+
origin: Pick<EventPosition, 'selection'>
|
|
13003
13134
|
}
|
|
13004
13135
|
},
|
|
13005
13136
|
{
|
|
@@ -13063,6 +13194,10 @@ declare const editorMachine: StateMachine<
|
|
|
13063
13194
|
| {
|
|
13064
13195
|
type: 'decorator.toggle'
|
|
13065
13196
|
decorator: string
|
|
13197
|
+
offsets?: {
|
|
13198
|
+
anchor: BlockOffset_2
|
|
13199
|
+
focus: BlockOffset_2
|
|
13200
|
+
}
|
|
13066
13201
|
}
|
|
13067
13202
|
| {
|
|
13068
13203
|
type: 'delete'
|
|
@@ -13371,7 +13506,7 @@ declare const editorMachine: StateMachine<
|
|
|
13371
13506
|
}
|
|
13372
13507
|
| {
|
|
13373
13508
|
type: 'dragstart'
|
|
13374
|
-
origin: EventPosition
|
|
13509
|
+
origin: Pick<EventPosition, 'selection'>
|
|
13375
13510
|
ghost?: HTMLElement
|
|
13376
13511
|
}
|
|
13377
13512
|
| {
|
|
@@ -13443,6 +13578,10 @@ declare const editorMachine: StateMachine<
|
|
|
13443
13578
|
| {
|
|
13444
13579
|
type: 'decorator.toggle'
|
|
13445
13580
|
decorator: string
|
|
13581
|
+
offsets?: {
|
|
13582
|
+
anchor: BlockOffset_2
|
|
13583
|
+
focus: BlockOffset_2
|
|
13584
|
+
}
|
|
13446
13585
|
}
|
|
13447
13586
|
| {
|
|
13448
13587
|
type: 'delete'
|
|
@@ -13695,7 +13834,7 @@ declare const editorMachine: StateMachine<
|
|
|
13695
13834
|
value: Array<PortableTextBlock> | undefined
|
|
13696
13835
|
internalDrag?: {
|
|
13697
13836
|
ghost?: HTMLElement
|
|
13698
|
-
origin: EventPosition
|
|
13837
|
+
origin: Pick<EventPosition, 'selection'>
|
|
13699
13838
|
}
|
|
13700
13839
|
},
|
|
13701
13840
|
| {
|
|
@@ -13713,6 +13852,10 @@ declare const editorMachine: StateMachine<
|
|
|
13713
13852
|
| {
|
|
13714
13853
|
type: 'decorator.toggle'
|
|
13715
13854
|
decorator: string
|
|
13855
|
+
offsets?: {
|
|
13856
|
+
anchor: BlockOffset_2
|
|
13857
|
+
focus: BlockOffset_2
|
|
13858
|
+
}
|
|
13716
13859
|
},
|
|
13717
13860
|
| {
|
|
13718
13861
|
type: 'annotation.add'
|
|
@@ -13772,6 +13915,10 @@ declare const editorMachine: StateMachine<
|
|
|
13772
13915
|
| {
|
|
13773
13916
|
type: 'decorator.toggle'
|
|
13774
13917
|
decorator: string
|
|
13918
|
+
offsets?: {
|
|
13919
|
+
anchor: BlockOffset_2
|
|
13920
|
+
focus: BlockOffset_2
|
|
13921
|
+
}
|
|
13775
13922
|
}
|
|
13776
13923
|
| {
|
|
13777
13924
|
type: 'delete'
|
|
@@ -14080,7 +14227,7 @@ declare const editorMachine: StateMachine<
|
|
|
14080
14227
|
}
|
|
14081
14228
|
| {
|
|
14082
14229
|
type: 'dragstart'
|
|
14083
|
-
origin: EventPosition
|
|
14230
|
+
origin: Pick<EventPosition, 'selection'>
|
|
14084
14231
|
ghost?: HTMLElement
|
|
14085
14232
|
}
|
|
14086
14233
|
| {
|
|
@@ -14152,6 +14299,10 @@ declare const editorMachine: StateMachine<
|
|
|
14152
14299
|
| {
|
|
14153
14300
|
type: 'decorator.toggle'
|
|
14154
14301
|
decorator: string
|
|
14302
|
+
offsets?: {
|
|
14303
|
+
anchor: BlockOffset_2
|
|
14304
|
+
focus: BlockOffset_2
|
|
14305
|
+
}
|
|
14155
14306
|
}
|
|
14156
14307
|
| {
|
|
14157
14308
|
type: 'delete'
|
|
@@ -14404,7 +14555,7 @@ declare const editorMachine: StateMachine<
|
|
|
14404
14555
|
value: Array<PortableTextBlock> | undefined
|
|
14405
14556
|
internalDrag?: {
|
|
14406
14557
|
ghost?: HTMLElement
|
|
14407
|
-
origin: EventPosition
|
|
14558
|
+
origin: Pick<EventPosition, 'selection'>
|
|
14408
14559
|
}
|
|
14409
14560
|
},
|
|
14410
14561
|
| {
|
|
@@ -14482,6 +14633,10 @@ declare const editorMachine: StateMachine<
|
|
|
14482
14633
|
| {
|
|
14483
14634
|
type: 'decorator.toggle'
|
|
14484
14635
|
decorator: string
|
|
14636
|
+
offsets?: {
|
|
14637
|
+
anchor: BlockOffset_2
|
|
14638
|
+
focus: BlockOffset_2
|
|
14639
|
+
}
|
|
14485
14640
|
}
|
|
14486
14641
|
| {
|
|
14487
14642
|
type: 'delete'
|
|
@@ -14790,7 +14945,7 @@ declare const editorMachine: StateMachine<
|
|
|
14790
14945
|
}
|
|
14791
14946
|
| {
|
|
14792
14947
|
type: 'dragstart'
|
|
14793
|
-
origin: EventPosition
|
|
14948
|
+
origin: Pick<EventPosition, 'selection'>
|
|
14794
14949
|
ghost?: HTMLElement
|
|
14795
14950
|
}
|
|
14796
14951
|
| {
|
|
@@ -14862,6 +15017,10 @@ declare const editorMachine: StateMachine<
|
|
|
14862
15017
|
| {
|
|
14863
15018
|
type: 'decorator.toggle'
|
|
14864
15019
|
decorator: string
|
|
15020
|
+
offsets?: {
|
|
15021
|
+
anchor: BlockOffset_2
|
|
15022
|
+
focus: BlockOffset_2
|
|
15023
|
+
}
|
|
14865
15024
|
}
|
|
14866
15025
|
| {
|
|
14867
15026
|
type: 'delete'
|
|
@@ -15114,7 +15273,7 @@ declare const editorMachine: StateMachine<
|
|
|
15114
15273
|
value: Array<PortableTextBlock> | undefined
|
|
15115
15274
|
internalDrag?: {
|
|
15116
15275
|
ghost?: HTMLElement
|
|
15117
|
-
origin: EventPosition
|
|
15276
|
+
origin: Pick<EventPosition, 'selection'>
|
|
15118
15277
|
}
|
|
15119
15278
|
},
|
|
15120
15279
|
{
|
|
@@ -15178,6 +15337,10 @@ declare const editorMachine: StateMachine<
|
|
|
15178
15337
|
| {
|
|
15179
15338
|
type: 'decorator.toggle'
|
|
15180
15339
|
decorator: string
|
|
15340
|
+
offsets?: {
|
|
15341
|
+
anchor: BlockOffset_2
|
|
15342
|
+
focus: BlockOffset_2
|
|
15343
|
+
}
|
|
15181
15344
|
}
|
|
15182
15345
|
| {
|
|
15183
15346
|
type: 'delete'
|
|
@@ -15486,7 +15649,7 @@ declare const editorMachine: StateMachine<
|
|
|
15486
15649
|
}
|
|
15487
15650
|
| {
|
|
15488
15651
|
type: 'dragstart'
|
|
15489
|
-
origin: EventPosition
|
|
15652
|
+
origin: Pick<EventPosition, 'selection'>
|
|
15490
15653
|
ghost?: HTMLElement
|
|
15491
15654
|
}
|
|
15492
15655
|
| {
|
|
@@ -15558,6 +15721,10 @@ declare const editorMachine: StateMachine<
|
|
|
15558
15721
|
| {
|
|
15559
15722
|
type: 'decorator.toggle'
|
|
15560
15723
|
decorator: string
|
|
15724
|
+
offsets?: {
|
|
15725
|
+
anchor: BlockOffset_2
|
|
15726
|
+
focus: BlockOffset_2
|
|
15727
|
+
}
|
|
15561
15728
|
}
|
|
15562
15729
|
| {
|
|
15563
15730
|
type: 'delete'
|
|
@@ -15810,7 +15977,7 @@ declare const editorMachine: StateMachine<
|
|
|
15810
15977
|
value: Array<PortableTextBlock> | undefined
|
|
15811
15978
|
internalDrag?: {
|
|
15812
15979
|
ghost?: HTMLElement
|
|
15813
|
-
origin: EventPosition
|
|
15980
|
+
origin: Pick<EventPosition, 'selection'>
|
|
15814
15981
|
}
|
|
15815
15982
|
},
|
|
15816
15983
|
| {
|
|
@@ -15877,6 +16044,10 @@ declare const editorMachine: StateMachine<
|
|
|
15877
16044
|
| {
|
|
15878
16045
|
type: 'decorator.toggle'
|
|
15879
16046
|
decorator: string
|
|
16047
|
+
offsets?: {
|
|
16048
|
+
anchor: BlockOffset_2
|
|
16049
|
+
focus: BlockOffset_2
|
|
16050
|
+
}
|
|
15880
16051
|
}
|
|
15881
16052
|
| {
|
|
15882
16053
|
type: 'delete'
|
|
@@ -16185,7 +16356,7 @@ declare const editorMachine: StateMachine<
|
|
|
16185
16356
|
}
|
|
16186
16357
|
| {
|
|
16187
16358
|
type: 'dragstart'
|
|
16188
|
-
origin: EventPosition
|
|
16359
|
+
origin: Pick<EventPosition, 'selection'>
|
|
16189
16360
|
ghost?: HTMLElement
|
|
16190
16361
|
}
|
|
16191
16362
|
| {
|
|
@@ -16257,6 +16428,10 @@ declare const editorMachine: StateMachine<
|
|
|
16257
16428
|
| {
|
|
16258
16429
|
type: 'decorator.toggle'
|
|
16259
16430
|
decorator: string
|
|
16431
|
+
offsets?: {
|
|
16432
|
+
anchor: BlockOffset_2
|
|
16433
|
+
focus: BlockOffset_2
|
|
16434
|
+
}
|
|
16260
16435
|
}
|
|
16261
16436
|
| {
|
|
16262
16437
|
type: 'delete'
|
|
@@ -16509,7 +16684,7 @@ declare const editorMachine: StateMachine<
|
|
|
16509
16684
|
value: Array<PortableTextBlock> | undefined
|
|
16510
16685
|
internalDrag?: {
|
|
16511
16686
|
ghost?: HTMLElement
|
|
16512
|
-
origin: EventPosition
|
|
16687
|
+
origin: Pick<EventPosition, 'selection'>
|
|
16513
16688
|
}
|
|
16514
16689
|
},
|
|
16515
16690
|
| {
|
|
@@ -16629,6 +16804,10 @@ declare const editorMachine: StateMachine<
|
|
|
16629
16804
|
| {
|
|
16630
16805
|
type: 'decorator.toggle'
|
|
16631
16806
|
decorator: string
|
|
16807
|
+
offsets?: {
|
|
16808
|
+
anchor: BlockOffset_2
|
|
16809
|
+
focus: BlockOffset_2
|
|
16810
|
+
}
|
|
16632
16811
|
}
|
|
16633
16812
|
| {
|
|
16634
16813
|
type: 'delete'
|
|
@@ -16937,7 +17116,7 @@ declare const editorMachine: StateMachine<
|
|
|
16937
17116
|
}
|
|
16938
17117
|
| {
|
|
16939
17118
|
type: 'dragstart'
|
|
16940
|
-
origin: EventPosition
|
|
17119
|
+
origin: Pick<EventPosition, 'selection'>
|
|
16941
17120
|
ghost?: HTMLElement
|
|
16942
17121
|
}
|
|
16943
17122
|
| {
|
|
@@ -17009,6 +17188,10 @@ declare const editorMachine: StateMachine<
|
|
|
17009
17188
|
| {
|
|
17010
17189
|
type: 'decorator.toggle'
|
|
17011
17190
|
decorator: string
|
|
17191
|
+
offsets?: {
|
|
17192
|
+
anchor: BlockOffset_2
|
|
17193
|
+
focus: BlockOffset_2
|
|
17194
|
+
}
|
|
17012
17195
|
}
|
|
17013
17196
|
| {
|
|
17014
17197
|
type: 'delete'
|
|
@@ -17261,7 +17444,7 @@ declare const editorMachine: StateMachine<
|
|
|
17261
17444
|
value: Array<PortableTextBlock> | undefined
|
|
17262
17445
|
internalDrag?: {
|
|
17263
17446
|
ghost?: HTMLElement
|
|
17264
|
-
origin: EventPosition
|
|
17447
|
+
origin: Pick<EventPosition, 'selection'>
|
|
17265
17448
|
}
|
|
17266
17449
|
},
|
|
17267
17450
|
| {
|
|
@@ -17334,6 +17517,10 @@ declare const editorMachine: StateMachine<
|
|
|
17334
17517
|
| {
|
|
17335
17518
|
type: 'decorator.toggle'
|
|
17336
17519
|
decorator: string
|
|
17520
|
+
offsets?: {
|
|
17521
|
+
anchor: BlockOffset_2
|
|
17522
|
+
focus: BlockOffset_2
|
|
17523
|
+
}
|
|
17337
17524
|
}
|
|
17338
17525
|
| {
|
|
17339
17526
|
type: 'delete'
|
|
@@ -17642,7 +17829,7 @@ declare const editorMachine: StateMachine<
|
|
|
17642
17829
|
}
|
|
17643
17830
|
| {
|
|
17644
17831
|
type: 'dragstart'
|
|
17645
|
-
origin: EventPosition
|
|
17832
|
+
origin: Pick<EventPosition, 'selection'>
|
|
17646
17833
|
ghost?: HTMLElement
|
|
17647
17834
|
}
|
|
17648
17835
|
| {
|
|
@@ -17714,6 +17901,10 @@ declare const editorMachine: StateMachine<
|
|
|
17714
17901
|
| {
|
|
17715
17902
|
type: 'decorator.toggle'
|
|
17716
17903
|
decorator: string
|
|
17904
|
+
offsets?: {
|
|
17905
|
+
anchor: BlockOffset_2
|
|
17906
|
+
focus: BlockOffset_2
|
|
17907
|
+
}
|
|
17717
17908
|
}
|
|
17718
17909
|
| {
|
|
17719
17910
|
type: 'delete'
|
|
@@ -17966,7 +18157,7 @@ declare const editorMachine: StateMachine<
|
|
|
17966
18157
|
value: Array<PortableTextBlock> | undefined
|
|
17967
18158
|
internalDrag?: {
|
|
17968
18159
|
ghost?: HTMLElement
|
|
17969
|
-
origin: EventPosition
|
|
18160
|
+
origin: Pick<EventPosition, 'selection'>
|
|
17970
18161
|
}
|
|
17971
18162
|
},
|
|
17972
18163
|
| {
|
|
@@ -18040,6 +18231,10 @@ declare const editorMachine: StateMachine<
|
|
|
18040
18231
|
| {
|
|
18041
18232
|
type: 'decorator.toggle'
|
|
18042
18233
|
decorator: string
|
|
18234
|
+
offsets?: {
|
|
18235
|
+
anchor: BlockOffset_2
|
|
18236
|
+
focus: BlockOffset_2
|
|
18237
|
+
}
|
|
18043
18238
|
}
|
|
18044
18239
|
| {
|
|
18045
18240
|
type: 'delete'
|
|
@@ -18348,7 +18543,7 @@ declare const editorMachine: StateMachine<
|
|
|
18348
18543
|
}
|
|
18349
18544
|
| {
|
|
18350
18545
|
type: 'dragstart'
|
|
18351
|
-
origin: EventPosition
|
|
18546
|
+
origin: Pick<EventPosition, 'selection'>
|
|
18352
18547
|
ghost?: HTMLElement
|
|
18353
18548
|
}
|
|
18354
18549
|
| {
|
|
@@ -18420,6 +18615,10 @@ declare const editorMachine: StateMachine<
|
|
|
18420
18615
|
| {
|
|
18421
18616
|
type: 'decorator.toggle'
|
|
18422
18617
|
decorator: string
|
|
18618
|
+
offsets?: {
|
|
18619
|
+
anchor: BlockOffset_2
|
|
18620
|
+
focus: BlockOffset_2
|
|
18621
|
+
}
|
|
18423
18622
|
}
|
|
18424
18623
|
| {
|
|
18425
18624
|
type: 'delete'
|
|
@@ -18672,7 +18871,7 @@ declare const editorMachine: StateMachine<
|
|
|
18672
18871
|
value: Array<PortableTextBlock> | undefined
|
|
18673
18872
|
internalDrag?: {
|
|
18674
18873
|
ghost?: HTMLElement
|
|
18675
|
-
origin: EventPosition
|
|
18874
|
+
origin: Pick<EventPosition, 'selection'>
|
|
18676
18875
|
}
|
|
18677
18876
|
},
|
|
18678
18877
|
{
|
|
@@ -18737,6 +18936,10 @@ declare const editorMachine: StateMachine<
|
|
|
18737
18936
|
| {
|
|
18738
18937
|
type: 'decorator.toggle'
|
|
18739
18938
|
decorator: string
|
|
18939
|
+
offsets?: {
|
|
18940
|
+
anchor: BlockOffset_2
|
|
18941
|
+
focus: BlockOffset_2
|
|
18942
|
+
}
|
|
18740
18943
|
}
|
|
18741
18944
|
| {
|
|
18742
18945
|
type: 'delete'
|
|
@@ -19045,7 +19248,7 @@ declare const editorMachine: StateMachine<
|
|
|
19045
19248
|
}
|
|
19046
19249
|
| {
|
|
19047
19250
|
type: 'dragstart'
|
|
19048
|
-
origin: EventPosition
|
|
19251
|
+
origin: Pick<EventPosition, 'selection'>
|
|
19049
19252
|
ghost?: HTMLElement
|
|
19050
19253
|
}
|
|
19051
19254
|
| {
|
|
@@ -19117,6 +19320,10 @@ declare const editorMachine: StateMachine<
|
|
|
19117
19320
|
| {
|
|
19118
19321
|
type: 'decorator.toggle'
|
|
19119
19322
|
decorator: string
|
|
19323
|
+
offsets?: {
|
|
19324
|
+
anchor: BlockOffset_2
|
|
19325
|
+
focus: BlockOffset_2
|
|
19326
|
+
}
|
|
19120
19327
|
}
|
|
19121
19328
|
| {
|
|
19122
19329
|
type: 'delete'
|
|
@@ -19369,7 +19576,7 @@ declare const editorMachine: StateMachine<
|
|
|
19369
19576
|
value: Array<PortableTextBlock> | undefined
|
|
19370
19577
|
internalDrag?: {
|
|
19371
19578
|
ghost?: HTMLElement
|
|
19372
|
-
origin: EventPosition
|
|
19579
|
+
origin: Pick<EventPosition, 'selection'>
|
|
19373
19580
|
}
|
|
19374
19581
|
},
|
|
19375
19582
|
| {
|
|
@@ -19438,6 +19645,10 @@ declare const editorMachine: StateMachine<
|
|
|
19438
19645
|
| {
|
|
19439
19646
|
type: 'decorator.toggle'
|
|
19440
19647
|
decorator: string
|
|
19648
|
+
offsets?: {
|
|
19649
|
+
anchor: BlockOffset_2
|
|
19650
|
+
focus: BlockOffset_2
|
|
19651
|
+
}
|
|
19441
19652
|
}
|
|
19442
19653
|
| {
|
|
19443
19654
|
type: 'delete'
|
|
@@ -19746,7 +19957,7 @@ declare const editorMachine: StateMachine<
|
|
|
19746
19957
|
}
|
|
19747
19958
|
| {
|
|
19748
19959
|
type: 'dragstart'
|
|
19749
|
-
origin: EventPosition
|
|
19960
|
+
origin: Pick<EventPosition, 'selection'>
|
|
19750
19961
|
ghost?: HTMLElement
|
|
19751
19962
|
}
|
|
19752
19963
|
| {
|
|
@@ -19818,6 +20029,10 @@ declare const editorMachine: StateMachine<
|
|
|
19818
20029
|
| {
|
|
19819
20030
|
type: 'decorator.toggle'
|
|
19820
20031
|
decorator: string
|
|
20032
|
+
offsets?: {
|
|
20033
|
+
anchor: BlockOffset_2
|
|
20034
|
+
focus: BlockOffset_2
|
|
20035
|
+
}
|
|
19821
20036
|
}
|
|
19822
20037
|
| {
|
|
19823
20038
|
type: 'delete'
|
|
@@ -20070,7 +20285,7 @@ declare const editorMachine: StateMachine<
|
|
|
20070
20285
|
value: Array<PortableTextBlock> | undefined
|
|
20071
20286
|
internalDrag?: {
|
|
20072
20287
|
ghost?: HTMLElement
|
|
20073
|
-
origin: EventPosition
|
|
20288
|
+
origin: Pick<EventPosition, 'selection'>
|
|
20074
20289
|
}
|
|
20075
20290
|
},
|
|
20076
20291
|
| {
|
|
@@ -20143,6 +20358,10 @@ declare const editorMachine: StateMachine<
|
|
|
20143
20358
|
| {
|
|
20144
20359
|
type: 'decorator.toggle'
|
|
20145
20360
|
decorator: string
|
|
20361
|
+
offsets?: {
|
|
20362
|
+
anchor: BlockOffset_2
|
|
20363
|
+
focus: BlockOffset_2
|
|
20364
|
+
}
|
|
20146
20365
|
}
|
|
20147
20366
|
| {
|
|
20148
20367
|
type: 'delete'
|
|
@@ -20451,7 +20670,7 @@ declare const editorMachine: StateMachine<
|
|
|
20451
20670
|
}
|
|
20452
20671
|
| {
|
|
20453
20672
|
type: 'dragstart'
|
|
20454
|
-
origin: EventPosition
|
|
20673
|
+
origin: Pick<EventPosition, 'selection'>
|
|
20455
20674
|
ghost?: HTMLElement
|
|
20456
20675
|
}
|
|
20457
20676
|
| {
|
|
@@ -20523,6 +20742,10 @@ declare const editorMachine: StateMachine<
|
|
|
20523
20742
|
| {
|
|
20524
20743
|
type: 'decorator.toggle'
|
|
20525
20744
|
decorator: string
|
|
20745
|
+
offsets?: {
|
|
20746
|
+
anchor: BlockOffset_2
|
|
20747
|
+
focus: BlockOffset_2
|
|
20748
|
+
}
|
|
20526
20749
|
}
|
|
20527
20750
|
| {
|
|
20528
20751
|
type: 'delete'
|
|
@@ -20796,12 +21019,12 @@ declare const editorMachine: StateMachine<
|
|
|
20796
21019
|
value: Array<PortableTextBlock> | undefined
|
|
20797
21020
|
internalDrag?: {
|
|
20798
21021
|
ghost?: HTMLElement
|
|
20799
|
-
origin: EventPosition
|
|
21022
|
+
origin: Pick<EventPosition, 'selection'>
|
|
20800
21023
|
}
|
|
20801
21024
|
},
|
|
20802
21025
|
{
|
|
20803
21026
|
type: 'dragstart'
|
|
20804
|
-
origin: EventPosition
|
|
21027
|
+
origin: Pick<EventPosition, 'selection'>
|
|
20805
21028
|
ghost?: HTMLElement
|
|
20806
21029
|
},
|
|
20807
21030
|
| {
|
|
@@ -20862,6 +21085,10 @@ declare const editorMachine: StateMachine<
|
|
|
20862
21085
|
| {
|
|
20863
21086
|
type: 'decorator.toggle'
|
|
20864
21087
|
decorator: string
|
|
21088
|
+
offsets?: {
|
|
21089
|
+
anchor: BlockOffset_2
|
|
21090
|
+
focus: BlockOffset_2
|
|
21091
|
+
}
|
|
20865
21092
|
}
|
|
20866
21093
|
| {
|
|
20867
21094
|
type: 'delete'
|
|
@@ -21174,7 +21401,7 @@ declare const editorMachine: StateMachine<
|
|
|
21174
21401
|
}
|
|
21175
21402
|
| {
|
|
21176
21403
|
type: 'dragstart'
|
|
21177
|
-
origin: EventPosition
|
|
21404
|
+
origin: Pick<EventPosition, 'selection'>
|
|
21178
21405
|
ghost?: HTMLElement
|
|
21179
21406
|
}
|
|
21180
21407
|
| {
|
|
@@ -21212,7 +21439,7 @@ declare const editorMachine: StateMachine<
|
|
|
21212
21439
|
value: Array<PortableTextBlock> | undefined
|
|
21213
21440
|
internalDrag?: {
|
|
21214
21441
|
ghost?: HTMLElement
|
|
21215
|
-
origin: EventPosition
|
|
21442
|
+
origin: Pick<EventPosition, 'selection'>
|
|
21216
21443
|
}
|
|
21217
21444
|
},
|
|
21218
21445
|
| {
|
|
@@ -21273,6 +21500,10 @@ declare const editorMachine: StateMachine<
|
|
|
21273
21500
|
| {
|
|
21274
21501
|
type: 'decorator.toggle'
|
|
21275
21502
|
decorator: string
|
|
21503
|
+
offsets?: {
|
|
21504
|
+
anchor: BlockOffset_2
|
|
21505
|
+
focus: BlockOffset_2
|
|
21506
|
+
}
|
|
21276
21507
|
}
|
|
21277
21508
|
| {
|
|
21278
21509
|
type: 'delete'
|
|
@@ -21581,7 +21812,7 @@ declare const editorMachine: StateMachine<
|
|
|
21581
21812
|
}
|
|
21582
21813
|
| {
|
|
21583
21814
|
type: 'dragstart'
|
|
21584
|
-
origin: EventPosition
|
|
21815
|
+
origin: Pick<EventPosition, 'selection'>
|
|
21585
21816
|
ghost?: HTMLElement
|
|
21586
21817
|
}
|
|
21587
21818
|
| {
|
|
@@ -21648,6 +21879,10 @@ declare const editorMachine: StateMachine<
|
|
|
21648
21879
|
| {
|
|
21649
21880
|
type: 'decorator.toggle'
|
|
21650
21881
|
decorator: string
|
|
21882
|
+
offsets?: {
|
|
21883
|
+
anchor: BlockOffset_2
|
|
21884
|
+
focus: BlockOffset_2
|
|
21885
|
+
}
|
|
21651
21886
|
}
|
|
21652
21887
|
| {
|
|
21653
21888
|
type: 'delete'
|
|
@@ -21956,7 +22191,7 @@ declare const editorMachine: StateMachine<
|
|
|
21956
22191
|
}
|
|
21957
22192
|
| {
|
|
21958
22193
|
type: 'dragstart'
|
|
21959
|
-
origin: EventPosition
|
|
22194
|
+
origin: Pick<EventPosition, 'selection'>
|
|
21960
22195
|
ghost?: HTMLElement
|
|
21961
22196
|
}
|
|
21962
22197
|
| {
|
|
@@ -21979,7 +22214,7 @@ declare const editorMachine: StateMachine<
|
|
|
21979
22214
|
value: Array<PortableTextBlock> | undefined
|
|
21980
22215
|
internalDrag?: {
|
|
21981
22216
|
ghost?: HTMLElement
|
|
21982
|
-
origin: EventPosition
|
|
22217
|
+
origin: Pick<EventPosition, 'selection'>
|
|
21983
22218
|
}
|
|
21984
22219
|
},
|
|
21985
22220
|
| {
|
|
@@ -22040,6 +22275,10 @@ declare const editorMachine: StateMachine<
|
|
|
22040
22275
|
| {
|
|
22041
22276
|
type: 'decorator.toggle'
|
|
22042
22277
|
decorator: string
|
|
22278
|
+
offsets?: {
|
|
22279
|
+
anchor: BlockOffset_2
|
|
22280
|
+
focus: BlockOffset_2
|
|
22281
|
+
}
|
|
22043
22282
|
}
|
|
22044
22283
|
| {
|
|
22045
22284
|
type: 'delete'
|
|
@@ -22348,7 +22587,7 @@ declare const editorMachine: StateMachine<
|
|
|
22348
22587
|
}
|
|
22349
22588
|
| {
|
|
22350
22589
|
type: 'dragstart'
|
|
22351
|
-
origin: EventPosition
|
|
22590
|
+
origin: Pick<EventPosition, 'selection'>
|
|
22352
22591
|
ghost?: HTMLElement
|
|
22353
22592
|
}
|
|
22354
22593
|
| {
|
|
@@ -22415,6 +22654,10 @@ declare const editorMachine: StateMachine<
|
|
|
22415
22654
|
| {
|
|
22416
22655
|
type: 'decorator.toggle'
|
|
22417
22656
|
decorator: string
|
|
22657
|
+
offsets?: {
|
|
22658
|
+
anchor: BlockOffset_2
|
|
22659
|
+
focus: BlockOffset_2
|
|
22660
|
+
}
|
|
22418
22661
|
}
|
|
22419
22662
|
| {
|
|
22420
22663
|
type: 'delete'
|
|
@@ -22723,7 +22966,7 @@ declare const editorMachine: StateMachine<
|
|
|
22723
22966
|
}
|
|
22724
22967
|
| {
|
|
22725
22968
|
type: 'dragstart'
|
|
22726
|
-
origin: EventPosition
|
|
22969
|
+
origin: Pick<EventPosition, 'selection'>
|
|
22727
22970
|
ghost?: HTMLElement
|
|
22728
22971
|
}
|
|
22729
22972
|
| {
|
|
@@ -22862,7 +23105,7 @@ declare type EditorSnapshot = {
|
|
|
22862
23105
|
hasTag: HasTag
|
|
22863
23106
|
internalDrag:
|
|
22864
23107
|
| {
|
|
22865
|
-
origin: EventPosition
|
|
23108
|
+
origin: Pick<EventPosition, 'selection'>
|
|
22866
23109
|
}
|
|
22867
23110
|
| undefined
|
|
22868
23111
|
}
|
|
@@ -23268,11 +23511,6 @@ declare type Serializer<TMIMEType extends MIMEType> = ({
|
|
|
23268
23511
|
'serialization.success' | 'serialization.failure'
|
|
23269
23512
|
>
|
|
23270
23513
|
|
|
23271
|
-
declare type SlateEditor = {
|
|
23272
|
-
instance: PortableTextSlateEditor
|
|
23273
|
-
initialValue: Array<Descendant>
|
|
23274
|
-
}
|
|
23275
|
-
|
|
23276
23514
|
/**
|
|
23277
23515
|
* @beta
|
|
23278
23516
|
*/
|
|
@@ -23335,6 +23573,10 @@ declare type SyntheticBehaviorEvent =
|
|
|
23335
23573
|
| {
|
|
23336
23574
|
type: 'decorator.toggle'
|
|
23337
23575
|
decorator: string
|
|
23576
|
+
offsets?: {
|
|
23577
|
+
anchor: BlockOffset
|
|
23578
|
+
focus: BlockOffset
|
|
23579
|
+
}
|
|
23338
23580
|
}
|
|
23339
23581
|
| {
|
|
23340
23582
|
type: 'delete'
|