@portabletext/editor 1.39.1 → 1.40.1
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 +131 -109
- 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 +125 -103
- 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 +198 -195
- 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 +205 -202
- 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/converters/converter.portable-text.ts +9 -0
- package/src/converters/converter.text-plain.test.ts +5 -5
- package/src/converters/converter.text-plain.ts +12 -19
- 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 +2 -9
- 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/create-with-event-listeners.ts +2 -5
- package/src/editor/plugins/createWithPortableTextMarkModel.ts +1 -2
- package/src/internal-utils/block-keys.ts +9 -0
- package/src/internal-utils/collapse-selection.ts +36 -0
- package/src/internal-utils/compound-client-rect.ts +28 -0
- package/src/internal-utils/drag-selection.test.ts +507 -0
- package/src/internal-utils/drag-selection.ts +66 -0
- package/src/internal-utils/editor-selection.test.ts +40 -0
- package/src/internal-utils/editor-selection.ts +60 -0
- package/src/internal-utils/event-position.ts +55 -80
- package/src/internal-utils/inline-object-selection.ts +115 -0
- package/src/internal-utils/selection-block-keys.ts +20 -0
- package/src/internal-utils/selection-elements.ts +61 -0
- package/src/internal-utils/selection-focus-text.ts +38 -0
- package/src/internal-utils/selection-text.test.ts +23 -0
- package/src/internal-utils/selection-text.ts +90 -0
- package/src/internal-utils/split-string.ts +12 -0
- package/src/internal-utils/string-overlap.test.ts +14 -0
- package/src/internal-utils/string-overlap.ts +28 -0
- package/src/internal-utils/string-utils.ts +7 -0
- package/src/internal-utils/terse-pt.test.ts +60 -0
- package/src/internal-utils/terse-pt.ts +36 -0
- package/src/internal-utils/text-block-key.test.ts +30 -0
- package/src/internal-utils/text-block-key.ts +30 -0
- package/src/internal-utils/text-marks.test.ts +33 -0
- package/src/internal-utils/text-marks.ts +26 -0
- package/src/internal-utils/text-selection.test.ts +175 -0
- package/src/internal-utils/text-selection.ts +122 -0
- package/src/internal-utils/value-annotations.ts +31 -0
- package/src/internal-utils/values.ts +16 -5
- package/src/utils/index.ts +5 -0
- package/src/utils/util.block-offset-to-block-selection-point.ts +28 -0
- package/src/utils/util.block-offset-to-selection-point.ts +33 -0
- package/src/utils/util.block-offsets-to-selection.ts +3 -3
- package/src/utils/util.is-equal-selections.ts +20 -0
- package/src/utils/util.is-selection-collapsed.ts +15 -0
- package/src/utils/util.reverse-selection.ts +9 -5
- package/src/utils/util.selection-point-to-block-offset.ts +31 -0
- package/lib/_chunks-cjs/parse-blocks.cjs.map +0 -1
- package/lib/_chunks-es/parse-blocks.js.map +0 -1
- package/src/editor/components/use-draggable.ts +0 -123
package/lib/index.d.ts
CHANGED
|
@@ -316,21 +316,21 @@ declare type ClipboardBehaviorEvent =
|
|
|
316
316
|
originEvent: {
|
|
317
317
|
dataTransfer: DataTransfer
|
|
318
318
|
}
|
|
319
|
-
position: EventPosition
|
|
319
|
+
position: Pick<EventPosition, 'selection'>
|
|
320
320
|
}
|
|
321
321
|
| {
|
|
322
322
|
type: 'clipboard.cut'
|
|
323
323
|
originEvent: {
|
|
324
324
|
dataTransfer: DataTransfer
|
|
325
325
|
}
|
|
326
|
-
position: EventPosition
|
|
326
|
+
position: Pick<EventPosition, 'selection'>
|
|
327
327
|
}
|
|
328
328
|
| {
|
|
329
329
|
type: 'clipboard.paste'
|
|
330
330
|
originEvent: {
|
|
331
331
|
dataTransfer: DataTransfer
|
|
332
332
|
}
|
|
333
|
-
position: EventPosition
|
|
333
|
+
position: Pick<EventPosition, 'selection'>
|
|
334
334
|
}
|
|
335
335
|
|
|
336
336
|
/**
|
|
@@ -456,7 +456,7 @@ declare type DragBehaviorEvent =
|
|
|
456
456
|
originEvent: {
|
|
457
457
|
dataTransfer: DataTransfer
|
|
458
458
|
}
|
|
459
|
-
position: EventPosition
|
|
459
|
+
position: Pick<EventPosition, 'selection'>
|
|
460
460
|
}
|
|
461
461
|
| {
|
|
462
462
|
type: 'drag.drag'
|
|
@@ -598,11 +598,6 @@ export declare type Editor = {
|
|
|
598
598
|
registerBehavior: (config: {behavior: Behavior}) => () => void
|
|
599
599
|
send: (event: EditorEvent) => void
|
|
600
600
|
on: ActorRef<Snapshot<unknown>, EventObject, EditorEmittedEvent>['on']
|
|
601
|
-
_internal: {
|
|
602
|
-
editable: EditableAPI
|
|
603
|
-
editorActor: EditorActor
|
|
604
|
-
slateEditor: SlateEditor
|
|
605
|
-
}
|
|
606
601
|
}
|
|
607
602
|
|
|
608
603
|
/**
|
|
@@ -759,7 +754,7 @@ declare const editorMachine: StateMachine<
|
|
|
759
754
|
value: Array<PortableTextBlock> | undefined
|
|
760
755
|
internalDrag?: {
|
|
761
756
|
ghost?: HTMLElement
|
|
762
|
-
origin: EventPosition
|
|
757
|
+
origin: Pick<EventPosition, 'selection'>
|
|
763
758
|
}
|
|
764
759
|
},
|
|
765
760
|
| {
|
|
@@ -820,6 +815,10 @@ declare const editorMachine: StateMachine<
|
|
|
820
815
|
| {
|
|
821
816
|
type: 'decorator.toggle'
|
|
822
817
|
decorator: string
|
|
818
|
+
offsets?: {
|
|
819
|
+
anchor: BlockOffset_2
|
|
820
|
+
focus: BlockOffset_2
|
|
821
|
+
}
|
|
823
822
|
}
|
|
824
823
|
| {
|
|
825
824
|
type: 'delete'
|
|
@@ -1128,7 +1127,7 @@ declare const editorMachine: StateMachine<
|
|
|
1128
1127
|
}
|
|
1129
1128
|
| {
|
|
1130
1129
|
type: 'dragstart'
|
|
1131
|
-
origin: EventPosition
|
|
1130
|
+
origin: Pick<EventPosition, 'selection'>
|
|
1132
1131
|
ghost?: HTMLElement
|
|
1133
1132
|
}
|
|
1134
1133
|
| {
|
|
@@ -1198,7 +1197,7 @@ declare const editorMachine: StateMachine<
|
|
|
1198
1197
|
{
|
|
1199
1198
|
'edit mode':
|
|
1200
1199
|
| {
|
|
1201
|
-
editable: '
|
|
1200
|
+
editable: 'dragging internally' | 'idle'
|
|
1202
1201
|
}
|
|
1203
1202
|
| {
|
|
1204
1203
|
'read only': 'read only' | 'determine initial edit mode'
|
|
@@ -1207,7 +1206,7 @@ declare const editorMachine: StateMachine<
|
|
|
1207
1206
|
| 'setting up'
|
|
1208
1207
|
| 'dirty'
|
|
1209
1208
|
| {
|
|
1210
|
-
pristine: '
|
|
1209
|
+
pristine: 'normalizing' | 'idle'
|
|
1211
1210
|
}
|
|
1212
1211
|
},
|
|
1213
1212
|
'dragging internally',
|
|
@@ -1279,6 +1278,10 @@ declare const editorMachine: StateMachine<
|
|
|
1279
1278
|
| {
|
|
1280
1279
|
type: 'decorator.toggle'
|
|
1281
1280
|
decorator: string
|
|
1281
|
+
offsets?: {
|
|
1282
|
+
anchor: BlockOffset_2
|
|
1283
|
+
focus: BlockOffset_2
|
|
1284
|
+
}
|
|
1282
1285
|
}
|
|
1283
1286
|
| {
|
|
1284
1287
|
type: 'delete'
|
|
@@ -1566,7 +1569,7 @@ declare const editorMachine: StateMachine<
|
|
|
1566
1569
|
value: Array<PortableTextBlock> | undefined
|
|
1567
1570
|
internalDrag?: {
|
|
1568
1571
|
ghost?: HTMLElement
|
|
1569
|
-
origin: EventPosition
|
|
1572
|
+
origin: Pick<EventPosition, 'selection'>
|
|
1570
1573
|
}
|
|
1571
1574
|
},
|
|
1572
1575
|
| {
|
|
@@ -1627,6 +1630,10 @@ declare const editorMachine: StateMachine<
|
|
|
1627
1630
|
| {
|
|
1628
1631
|
type: 'decorator.toggle'
|
|
1629
1632
|
decorator: string
|
|
1633
|
+
offsets?: {
|
|
1634
|
+
anchor: BlockOffset_2
|
|
1635
|
+
focus: BlockOffset_2
|
|
1636
|
+
}
|
|
1630
1637
|
}
|
|
1631
1638
|
| {
|
|
1632
1639
|
type: 'delete'
|
|
@@ -1935,7 +1942,7 @@ declare const editorMachine: StateMachine<
|
|
|
1935
1942
|
}
|
|
1936
1943
|
| {
|
|
1937
1944
|
type: 'dragstart'
|
|
1938
|
-
origin: EventPosition
|
|
1945
|
+
origin: Pick<EventPosition, 'selection'>
|
|
1939
1946
|
ghost?: HTMLElement
|
|
1940
1947
|
}
|
|
1941
1948
|
| {
|
|
@@ -2009,6 +2016,10 @@ declare const editorMachine: StateMachine<
|
|
|
2009
2016
|
| {
|
|
2010
2017
|
type: 'decorator.toggle'
|
|
2011
2018
|
decorator: string
|
|
2019
|
+
offsets?: {
|
|
2020
|
+
anchor: BlockOffset_2
|
|
2021
|
+
focus: BlockOffset_2
|
|
2022
|
+
}
|
|
2012
2023
|
}
|
|
2013
2024
|
| {
|
|
2014
2025
|
type: 'delete'
|
|
@@ -2317,7 +2328,7 @@ declare const editorMachine: StateMachine<
|
|
|
2317
2328
|
}
|
|
2318
2329
|
| {
|
|
2319
2330
|
type: 'dragstart'
|
|
2320
|
-
origin: EventPosition
|
|
2331
|
+
origin: Pick<EventPosition, 'selection'>
|
|
2321
2332
|
ghost?: HTMLElement
|
|
2322
2333
|
}
|
|
2323
2334
|
| {
|
|
@@ -2354,7 +2365,7 @@ declare const editorMachine: StateMachine<
|
|
|
2354
2365
|
value: Array<PortableTextBlock> | undefined
|
|
2355
2366
|
internalDrag?: {
|
|
2356
2367
|
ghost?: HTMLElement
|
|
2357
|
-
origin: EventPosition
|
|
2368
|
+
origin: Pick<EventPosition, 'selection'>
|
|
2358
2369
|
}
|
|
2359
2370
|
},
|
|
2360
2371
|
{
|
|
@@ -2419,6 +2430,10 @@ declare const editorMachine: StateMachine<
|
|
|
2419
2430
|
| {
|
|
2420
2431
|
type: 'decorator.toggle'
|
|
2421
2432
|
decorator: string
|
|
2433
|
+
offsets?: {
|
|
2434
|
+
anchor: BlockOffset_2
|
|
2435
|
+
focus: BlockOffset_2
|
|
2436
|
+
}
|
|
2422
2437
|
}
|
|
2423
2438
|
| {
|
|
2424
2439
|
type: 'delete'
|
|
@@ -2727,7 +2742,7 @@ declare const editorMachine: StateMachine<
|
|
|
2727
2742
|
}
|
|
2728
2743
|
| {
|
|
2729
2744
|
type: 'dragstart'
|
|
2730
|
-
origin: EventPosition
|
|
2745
|
+
origin: Pick<EventPosition, 'selection'>
|
|
2731
2746
|
ghost?: HTMLElement
|
|
2732
2747
|
}
|
|
2733
2748
|
| {
|
|
@@ -2799,6 +2814,10 @@ declare const editorMachine: StateMachine<
|
|
|
2799
2814
|
| {
|
|
2800
2815
|
type: 'decorator.toggle'
|
|
2801
2816
|
decorator: string
|
|
2817
|
+
offsets?: {
|
|
2818
|
+
anchor: BlockOffset_2
|
|
2819
|
+
focus: BlockOffset_2
|
|
2820
|
+
}
|
|
2802
2821
|
}
|
|
2803
2822
|
| {
|
|
2804
2823
|
type: 'delete'
|
|
@@ -3051,7 +3070,7 @@ declare const editorMachine: StateMachine<
|
|
|
3051
3070
|
value: Array<PortableTextBlock> | undefined
|
|
3052
3071
|
internalDrag?: {
|
|
3053
3072
|
ghost?: HTMLElement
|
|
3054
|
-
origin: EventPosition
|
|
3073
|
+
origin: Pick<EventPosition, 'selection'>
|
|
3055
3074
|
}
|
|
3056
3075
|
},
|
|
3057
3076
|
{
|
|
@@ -3115,6 +3134,10 @@ declare const editorMachine: StateMachine<
|
|
|
3115
3134
|
| {
|
|
3116
3135
|
type: 'decorator.toggle'
|
|
3117
3136
|
decorator: string
|
|
3137
|
+
offsets?: {
|
|
3138
|
+
anchor: BlockOffset_2
|
|
3139
|
+
focus: BlockOffset_2
|
|
3140
|
+
}
|
|
3118
3141
|
}
|
|
3119
3142
|
| {
|
|
3120
3143
|
type: 'delete'
|
|
@@ -3423,7 +3446,7 @@ declare const editorMachine: StateMachine<
|
|
|
3423
3446
|
}
|
|
3424
3447
|
| {
|
|
3425
3448
|
type: 'dragstart'
|
|
3426
|
-
origin: EventPosition
|
|
3449
|
+
origin: Pick<EventPosition, 'selection'>
|
|
3427
3450
|
ghost?: HTMLElement
|
|
3428
3451
|
}
|
|
3429
3452
|
| {
|
|
@@ -3495,6 +3518,10 @@ declare const editorMachine: StateMachine<
|
|
|
3495
3518
|
| {
|
|
3496
3519
|
type: 'decorator.toggle'
|
|
3497
3520
|
decorator: string
|
|
3521
|
+
offsets?: {
|
|
3522
|
+
anchor: BlockOffset_2
|
|
3523
|
+
focus: BlockOffset_2
|
|
3524
|
+
}
|
|
3498
3525
|
}
|
|
3499
3526
|
| {
|
|
3500
3527
|
type: 'delete'
|
|
@@ -3747,7 +3774,7 @@ declare const editorMachine: StateMachine<
|
|
|
3747
3774
|
value: Array<PortableTextBlock> | undefined
|
|
3748
3775
|
internalDrag?: {
|
|
3749
3776
|
ghost?: HTMLElement
|
|
3750
|
-
origin: EventPosition
|
|
3777
|
+
origin: Pick<EventPosition, 'selection'>
|
|
3751
3778
|
}
|
|
3752
3779
|
},
|
|
3753
3780
|
{
|
|
@@ -3814,6 +3841,10 @@ declare const editorMachine: StateMachine<
|
|
|
3814
3841
|
| {
|
|
3815
3842
|
type: 'decorator.toggle'
|
|
3816
3843
|
decorator: string
|
|
3844
|
+
offsets?: {
|
|
3845
|
+
anchor: BlockOffset_2
|
|
3846
|
+
focus: BlockOffset_2
|
|
3847
|
+
}
|
|
3817
3848
|
}
|
|
3818
3849
|
| {
|
|
3819
3850
|
type: 'delete'
|
|
@@ -4122,7 +4153,7 @@ declare const editorMachine: StateMachine<
|
|
|
4122
4153
|
}
|
|
4123
4154
|
| {
|
|
4124
4155
|
type: 'dragstart'
|
|
4125
|
-
origin: EventPosition
|
|
4156
|
+
origin: Pick<EventPosition, 'selection'>
|
|
4126
4157
|
ghost?: HTMLElement
|
|
4127
4158
|
}
|
|
4128
4159
|
| {
|
|
@@ -4194,6 +4225,10 @@ declare const editorMachine: StateMachine<
|
|
|
4194
4225
|
| {
|
|
4195
4226
|
type: 'decorator.toggle'
|
|
4196
4227
|
decorator: string
|
|
4228
|
+
offsets?: {
|
|
4229
|
+
anchor: BlockOffset_2
|
|
4230
|
+
focus: BlockOffset_2
|
|
4231
|
+
}
|
|
4197
4232
|
}
|
|
4198
4233
|
| {
|
|
4199
4234
|
type: 'delete'
|
|
@@ -4446,7 +4481,7 @@ declare const editorMachine: StateMachine<
|
|
|
4446
4481
|
value: Array<PortableTextBlock> | undefined
|
|
4447
4482
|
internalDrag?: {
|
|
4448
4483
|
ghost?: HTMLElement
|
|
4449
|
-
origin: EventPosition
|
|
4484
|
+
origin: Pick<EventPosition, 'selection'>
|
|
4450
4485
|
}
|
|
4451
4486
|
},
|
|
4452
4487
|
{
|
|
@@ -4512,6 +4547,10 @@ declare const editorMachine: StateMachine<
|
|
|
4512
4547
|
| {
|
|
4513
4548
|
type: 'decorator.toggle'
|
|
4514
4549
|
decorator: string
|
|
4550
|
+
offsets?: {
|
|
4551
|
+
anchor: BlockOffset_2
|
|
4552
|
+
focus: BlockOffset_2
|
|
4553
|
+
}
|
|
4515
4554
|
}
|
|
4516
4555
|
| {
|
|
4517
4556
|
type: 'delete'
|
|
@@ -4820,7 +4859,7 @@ declare const editorMachine: StateMachine<
|
|
|
4820
4859
|
}
|
|
4821
4860
|
| {
|
|
4822
4861
|
type: 'dragstart'
|
|
4823
|
-
origin: EventPosition
|
|
4862
|
+
origin: Pick<EventPosition, 'selection'>
|
|
4824
4863
|
ghost?: HTMLElement
|
|
4825
4864
|
}
|
|
4826
4865
|
| {
|
|
@@ -4892,6 +4931,10 @@ declare const editorMachine: StateMachine<
|
|
|
4892
4931
|
| {
|
|
4893
4932
|
type: 'decorator.toggle'
|
|
4894
4933
|
decorator: string
|
|
4934
|
+
offsets?: {
|
|
4935
|
+
anchor: BlockOffset_2
|
|
4936
|
+
focus: BlockOffset_2
|
|
4937
|
+
}
|
|
4895
4938
|
}
|
|
4896
4939
|
| {
|
|
4897
4940
|
type: 'delete'
|
|
@@ -5144,7 +5187,7 @@ declare const editorMachine: StateMachine<
|
|
|
5144
5187
|
value: Array<PortableTextBlock> | undefined
|
|
5145
5188
|
internalDrag?: {
|
|
5146
5189
|
ghost?: HTMLElement
|
|
5147
|
-
origin: EventPosition
|
|
5190
|
+
origin: Pick<EventPosition, 'selection'>
|
|
5148
5191
|
}
|
|
5149
5192
|
},
|
|
5150
5193
|
{
|
|
@@ -5209,6 +5252,10 @@ declare const editorMachine: StateMachine<
|
|
|
5209
5252
|
| {
|
|
5210
5253
|
type: 'decorator.toggle'
|
|
5211
5254
|
decorator: string
|
|
5255
|
+
offsets?: {
|
|
5256
|
+
anchor: BlockOffset_2
|
|
5257
|
+
focus: BlockOffset_2
|
|
5258
|
+
}
|
|
5212
5259
|
}
|
|
5213
5260
|
| {
|
|
5214
5261
|
type: 'delete'
|
|
@@ -5517,7 +5564,7 @@ declare const editorMachine: StateMachine<
|
|
|
5517
5564
|
}
|
|
5518
5565
|
| {
|
|
5519
5566
|
type: 'dragstart'
|
|
5520
|
-
origin: EventPosition
|
|
5567
|
+
origin: Pick<EventPosition, 'selection'>
|
|
5521
5568
|
ghost?: HTMLElement
|
|
5522
5569
|
}
|
|
5523
5570
|
| {
|
|
@@ -5589,6 +5636,10 @@ declare const editorMachine: StateMachine<
|
|
|
5589
5636
|
| {
|
|
5590
5637
|
type: 'decorator.toggle'
|
|
5591
5638
|
decorator: string
|
|
5639
|
+
offsets?: {
|
|
5640
|
+
anchor: BlockOffset_2
|
|
5641
|
+
focus: BlockOffset_2
|
|
5642
|
+
}
|
|
5592
5643
|
}
|
|
5593
5644
|
| {
|
|
5594
5645
|
type: 'delete'
|
|
@@ -5842,7 +5893,7 @@ declare const editorMachine: StateMachine<
|
|
|
5842
5893
|
value: Array<PortableTextBlock> | undefined
|
|
5843
5894
|
internalDrag?: {
|
|
5844
5895
|
ghost?: HTMLElement
|
|
5845
|
-
origin: EventPosition
|
|
5896
|
+
origin: Pick<EventPosition, 'selection'>
|
|
5846
5897
|
}
|
|
5847
5898
|
},
|
|
5848
5899
|
{
|
|
@@ -5907,6 +5958,10 @@ declare const editorMachine: StateMachine<
|
|
|
5907
5958
|
| {
|
|
5908
5959
|
type: 'decorator.toggle'
|
|
5909
5960
|
decorator: string
|
|
5961
|
+
offsets?: {
|
|
5962
|
+
anchor: BlockOffset_2
|
|
5963
|
+
focus: BlockOffset_2
|
|
5964
|
+
}
|
|
5910
5965
|
}
|
|
5911
5966
|
| {
|
|
5912
5967
|
type: 'delete'
|
|
@@ -6215,7 +6270,7 @@ declare const editorMachine: StateMachine<
|
|
|
6215
6270
|
}
|
|
6216
6271
|
| {
|
|
6217
6272
|
type: 'dragstart'
|
|
6218
|
-
origin: EventPosition
|
|
6273
|
+
origin: Pick<EventPosition, 'selection'>
|
|
6219
6274
|
ghost?: HTMLElement
|
|
6220
6275
|
}
|
|
6221
6276
|
| {
|
|
@@ -6244,7 +6299,7 @@ declare const editorMachine: StateMachine<
|
|
|
6244
6299
|
value: Array<PortableTextBlock> | undefined
|
|
6245
6300
|
internalDrag?: {
|
|
6246
6301
|
ghost?: HTMLElement
|
|
6247
|
-
origin: EventPosition
|
|
6302
|
+
origin: Pick<EventPosition, 'selection'>
|
|
6248
6303
|
}
|
|
6249
6304
|
},
|
|
6250
6305
|
{
|
|
@@ -6309,6 +6364,10 @@ declare const editorMachine: StateMachine<
|
|
|
6309
6364
|
| {
|
|
6310
6365
|
type: 'decorator.toggle'
|
|
6311
6366
|
decorator: string
|
|
6367
|
+
offsets?: {
|
|
6368
|
+
anchor: BlockOffset_2
|
|
6369
|
+
focus: BlockOffset_2
|
|
6370
|
+
}
|
|
6312
6371
|
}
|
|
6313
6372
|
| {
|
|
6314
6373
|
type: 'delete'
|
|
@@ -6617,7 +6676,7 @@ declare const editorMachine: StateMachine<
|
|
|
6617
6676
|
}
|
|
6618
6677
|
| {
|
|
6619
6678
|
type: 'dragstart'
|
|
6620
|
-
origin: EventPosition
|
|
6679
|
+
origin: Pick<EventPosition, 'selection'>
|
|
6621
6680
|
ghost?: HTMLElement
|
|
6622
6681
|
}
|
|
6623
6682
|
| {
|
|
@@ -6689,6 +6748,10 @@ declare const editorMachine: StateMachine<
|
|
|
6689
6748
|
| {
|
|
6690
6749
|
type: 'decorator.toggle'
|
|
6691
6750
|
decorator: string
|
|
6751
|
+
offsets?: {
|
|
6752
|
+
anchor: BlockOffset_2
|
|
6753
|
+
focus: BlockOffset_2
|
|
6754
|
+
}
|
|
6692
6755
|
}
|
|
6693
6756
|
| {
|
|
6694
6757
|
type: 'delete'
|
|
@@ -6942,7 +7005,7 @@ declare const editorMachine: StateMachine<
|
|
|
6942
7005
|
value: Array<PortableTextBlock> | undefined
|
|
6943
7006
|
internalDrag?: {
|
|
6944
7007
|
ghost?: HTMLElement
|
|
6945
|
-
origin: EventPosition
|
|
7008
|
+
origin: Pick<EventPosition, 'selection'>
|
|
6946
7009
|
}
|
|
6947
7010
|
},
|
|
6948
7011
|
{
|
|
@@ -7007,6 +7070,10 @@ declare const editorMachine: StateMachine<
|
|
|
7007
7070
|
| {
|
|
7008
7071
|
type: 'decorator.toggle'
|
|
7009
7072
|
decorator: string
|
|
7073
|
+
offsets?: {
|
|
7074
|
+
anchor: BlockOffset_2
|
|
7075
|
+
focus: BlockOffset_2
|
|
7076
|
+
}
|
|
7010
7077
|
}
|
|
7011
7078
|
| {
|
|
7012
7079
|
type: 'delete'
|
|
@@ -7315,7 +7382,7 @@ declare const editorMachine: StateMachine<
|
|
|
7315
7382
|
}
|
|
7316
7383
|
| {
|
|
7317
7384
|
type: 'dragstart'
|
|
7318
|
-
origin: EventPosition
|
|
7385
|
+
origin: Pick<EventPosition, 'selection'>
|
|
7319
7386
|
ghost?: HTMLElement
|
|
7320
7387
|
}
|
|
7321
7388
|
| {
|
|
@@ -7387,6 +7454,10 @@ declare const editorMachine: StateMachine<
|
|
|
7387
7454
|
| {
|
|
7388
7455
|
type: 'decorator.toggle'
|
|
7389
7456
|
decorator: string
|
|
7457
|
+
offsets?: {
|
|
7458
|
+
anchor: BlockOffset_2
|
|
7459
|
+
focus: BlockOffset_2
|
|
7460
|
+
}
|
|
7390
7461
|
}
|
|
7391
7462
|
| {
|
|
7392
7463
|
type: 'delete'
|
|
@@ -7639,7 +7710,7 @@ declare const editorMachine: StateMachine<
|
|
|
7639
7710
|
value: Array<PortableTextBlock> | undefined
|
|
7640
7711
|
internalDrag?: {
|
|
7641
7712
|
ghost?: HTMLElement
|
|
7642
|
-
origin: EventPosition
|
|
7713
|
+
origin: Pick<EventPosition, 'selection'>
|
|
7643
7714
|
}
|
|
7644
7715
|
},
|
|
7645
7716
|
{
|
|
@@ -7703,6 +7774,10 @@ declare const editorMachine: StateMachine<
|
|
|
7703
7774
|
| {
|
|
7704
7775
|
type: 'decorator.toggle'
|
|
7705
7776
|
decorator: string
|
|
7777
|
+
offsets?: {
|
|
7778
|
+
anchor: BlockOffset_2
|
|
7779
|
+
focus: BlockOffset_2
|
|
7780
|
+
}
|
|
7706
7781
|
}
|
|
7707
7782
|
| {
|
|
7708
7783
|
type: 'delete'
|
|
@@ -8011,7 +8086,7 @@ declare const editorMachine: StateMachine<
|
|
|
8011
8086
|
}
|
|
8012
8087
|
| {
|
|
8013
8088
|
type: 'dragstart'
|
|
8014
|
-
origin: EventPosition
|
|
8089
|
+
origin: Pick<EventPosition, 'selection'>
|
|
8015
8090
|
ghost?: HTMLElement
|
|
8016
8091
|
}
|
|
8017
8092
|
| {
|
|
@@ -8083,6 +8158,10 @@ declare const editorMachine: StateMachine<
|
|
|
8083
8158
|
| {
|
|
8084
8159
|
type: 'decorator.toggle'
|
|
8085
8160
|
decorator: string
|
|
8161
|
+
offsets?: {
|
|
8162
|
+
anchor: BlockOffset_2
|
|
8163
|
+
focus: BlockOffset_2
|
|
8164
|
+
}
|
|
8086
8165
|
}
|
|
8087
8166
|
| {
|
|
8088
8167
|
type: 'delete'
|
|
@@ -8335,7 +8414,7 @@ declare const editorMachine: StateMachine<
|
|
|
8335
8414
|
value: Array<PortableTextBlock> | undefined
|
|
8336
8415
|
internalDrag?: {
|
|
8337
8416
|
ghost?: HTMLElement
|
|
8338
|
-
origin: EventPosition
|
|
8417
|
+
origin: Pick<EventPosition, 'selection'>
|
|
8339
8418
|
}
|
|
8340
8419
|
},
|
|
8341
8420
|
{
|
|
@@ -8400,6 +8479,10 @@ declare const editorMachine: StateMachine<
|
|
|
8400
8479
|
| {
|
|
8401
8480
|
type: 'decorator.toggle'
|
|
8402
8481
|
decorator: string
|
|
8482
|
+
offsets?: {
|
|
8483
|
+
anchor: BlockOffset_2
|
|
8484
|
+
focus: BlockOffset_2
|
|
8485
|
+
}
|
|
8403
8486
|
}
|
|
8404
8487
|
| {
|
|
8405
8488
|
type: 'delete'
|
|
@@ -8708,7 +8791,7 @@ declare const editorMachine: StateMachine<
|
|
|
8708
8791
|
}
|
|
8709
8792
|
| {
|
|
8710
8793
|
type: 'dragstart'
|
|
8711
|
-
origin: EventPosition
|
|
8794
|
+
origin: Pick<EventPosition, 'selection'>
|
|
8712
8795
|
ghost?: HTMLElement
|
|
8713
8796
|
}
|
|
8714
8797
|
| {
|
|
@@ -8780,6 +8863,10 @@ declare const editorMachine: StateMachine<
|
|
|
8780
8863
|
| {
|
|
8781
8864
|
type: 'decorator.toggle'
|
|
8782
8865
|
decorator: string
|
|
8866
|
+
offsets?: {
|
|
8867
|
+
anchor: BlockOffset_2
|
|
8868
|
+
focus: BlockOffset_2
|
|
8869
|
+
}
|
|
8783
8870
|
}
|
|
8784
8871
|
| {
|
|
8785
8872
|
type: 'delete'
|
|
@@ -9038,7 +9125,7 @@ declare const editorMachine: StateMachine<
|
|
|
9038
9125
|
value: Array<PortableTextBlock> | undefined
|
|
9039
9126
|
internalDrag?: {
|
|
9040
9127
|
ghost?: HTMLElement
|
|
9041
|
-
origin: EventPosition
|
|
9128
|
+
origin: Pick<EventPosition, 'selection'>
|
|
9042
9129
|
}
|
|
9043
9130
|
},
|
|
9044
9131
|
PatchesEvent,
|
|
@@ -9100,6 +9187,10 @@ declare const editorMachine: StateMachine<
|
|
|
9100
9187
|
| {
|
|
9101
9188
|
type: 'decorator.toggle'
|
|
9102
9189
|
decorator: string
|
|
9190
|
+
offsets?: {
|
|
9191
|
+
anchor: BlockOffset_2
|
|
9192
|
+
focus: BlockOffset_2
|
|
9193
|
+
}
|
|
9103
9194
|
}
|
|
9104
9195
|
| {
|
|
9105
9196
|
type: 'delete'
|
|
@@ -9408,7 +9499,7 @@ declare const editorMachine: StateMachine<
|
|
|
9408
9499
|
}
|
|
9409
9500
|
| {
|
|
9410
9501
|
type: 'dragstart'
|
|
9411
|
-
origin: EventPosition
|
|
9502
|
+
origin: Pick<EventPosition, 'selection'>
|
|
9412
9503
|
ghost?: HTMLElement
|
|
9413
9504
|
}
|
|
9414
9505
|
| {
|
|
@@ -9480,6 +9571,10 @@ declare const editorMachine: StateMachine<
|
|
|
9480
9571
|
| {
|
|
9481
9572
|
type: 'decorator.toggle'
|
|
9482
9573
|
decorator: string
|
|
9574
|
+
offsets?: {
|
|
9575
|
+
anchor: BlockOffset_2
|
|
9576
|
+
focus: BlockOffset_2
|
|
9577
|
+
}
|
|
9483
9578
|
}
|
|
9484
9579
|
| {
|
|
9485
9580
|
type: 'delete'
|
|
@@ -9735,7 +9830,7 @@ declare const editorMachine: StateMachine<
|
|
|
9735
9830
|
value: Array<PortableTextBlock> | undefined
|
|
9736
9831
|
internalDrag?: {
|
|
9737
9832
|
ghost?: HTMLElement
|
|
9738
|
-
origin: EventPosition
|
|
9833
|
+
origin: Pick<EventPosition, 'selection'>
|
|
9739
9834
|
}
|
|
9740
9835
|
},
|
|
9741
9836
|
{
|
|
@@ -9800,6 +9895,10 @@ declare const editorMachine: StateMachine<
|
|
|
9800
9895
|
| {
|
|
9801
9896
|
type: 'decorator.toggle'
|
|
9802
9897
|
decorator: string
|
|
9898
|
+
offsets?: {
|
|
9899
|
+
anchor: BlockOffset_2
|
|
9900
|
+
focus: BlockOffset_2
|
|
9901
|
+
}
|
|
9803
9902
|
}
|
|
9804
9903
|
| {
|
|
9805
9904
|
type: 'delete'
|
|
@@ -10108,7 +10207,7 @@ declare const editorMachine: StateMachine<
|
|
|
10108
10207
|
}
|
|
10109
10208
|
| {
|
|
10110
10209
|
type: 'dragstart'
|
|
10111
|
-
origin: EventPosition
|
|
10210
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10112
10211
|
ghost?: HTMLElement
|
|
10113
10212
|
}
|
|
10114
10213
|
| {
|
|
@@ -10142,7 +10241,7 @@ declare const editorMachine: StateMachine<
|
|
|
10142
10241
|
value: Array<PortableTextBlock> | undefined
|
|
10143
10242
|
internalDrag?: {
|
|
10144
10243
|
ghost?: HTMLElement
|
|
10145
|
-
origin: EventPosition
|
|
10244
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10146
10245
|
}
|
|
10147
10246
|
},
|
|
10148
10247
|
{
|
|
@@ -10207,6 +10306,10 @@ declare const editorMachine: StateMachine<
|
|
|
10207
10306
|
| {
|
|
10208
10307
|
type: 'decorator.toggle'
|
|
10209
10308
|
decorator: string
|
|
10309
|
+
offsets?: {
|
|
10310
|
+
anchor: BlockOffset_2
|
|
10311
|
+
focus: BlockOffset_2
|
|
10312
|
+
}
|
|
10210
10313
|
}
|
|
10211
10314
|
| {
|
|
10212
10315
|
type: 'delete'
|
|
@@ -10515,7 +10618,7 @@ declare const editorMachine: StateMachine<
|
|
|
10515
10618
|
}
|
|
10516
10619
|
| {
|
|
10517
10620
|
type: 'dragstart'
|
|
10518
|
-
origin: EventPosition
|
|
10621
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10519
10622
|
ghost?: HTMLElement
|
|
10520
10623
|
}
|
|
10521
10624
|
| {
|
|
@@ -10546,7 +10649,7 @@ declare const editorMachine: StateMachine<
|
|
|
10546
10649
|
value: Array<PortableTextBlock> | undefined
|
|
10547
10650
|
internalDrag?: {
|
|
10548
10651
|
ghost?: HTMLElement
|
|
10549
|
-
origin: EventPosition
|
|
10652
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10550
10653
|
}
|
|
10551
10654
|
},
|
|
10552
10655
|
{
|
|
@@ -10611,6 +10714,10 @@ declare const editorMachine: StateMachine<
|
|
|
10611
10714
|
| {
|
|
10612
10715
|
type: 'decorator.toggle'
|
|
10613
10716
|
decorator: string
|
|
10717
|
+
offsets?: {
|
|
10718
|
+
anchor: BlockOffset_2
|
|
10719
|
+
focus: BlockOffset_2
|
|
10720
|
+
}
|
|
10614
10721
|
}
|
|
10615
10722
|
| {
|
|
10616
10723
|
type: 'delete'
|
|
@@ -10919,7 +11026,7 @@ declare const editorMachine: StateMachine<
|
|
|
10919
11026
|
}
|
|
10920
11027
|
| {
|
|
10921
11028
|
type: 'dragstart'
|
|
10922
|
-
origin: EventPosition
|
|
11029
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10923
11030
|
ghost?: HTMLElement
|
|
10924
11031
|
}
|
|
10925
11032
|
| {
|
|
@@ -10962,7 +11069,7 @@ declare const editorMachine: StateMachine<
|
|
|
10962
11069
|
value: Array<PortableTextBlock> | undefined
|
|
10963
11070
|
internalDrag?: {
|
|
10964
11071
|
ghost?: HTMLElement
|
|
10965
|
-
origin: EventPosition
|
|
11072
|
+
origin: Pick<EventPosition, 'selection'>
|
|
10966
11073
|
}
|
|
10967
11074
|
},
|
|
10968
11075
|
{
|
|
@@ -11003,7 +11110,7 @@ declare const editorMachine: StateMachine<
|
|
|
11003
11110
|
value: Array<PortableTextBlock> | undefined
|
|
11004
11111
|
internalDrag?: {
|
|
11005
11112
|
ghost?: HTMLElement
|
|
11006
|
-
origin: EventPosition
|
|
11113
|
+
origin: Pick<EventPosition, 'selection'>
|
|
11007
11114
|
}
|
|
11008
11115
|
},
|
|
11009
11116
|
{
|
|
@@ -11035,7 +11142,7 @@ declare const editorMachine: StateMachine<
|
|
|
11035
11142
|
value: Array<PortableTextBlock> | undefined
|
|
11036
11143
|
internalDrag?: {
|
|
11037
11144
|
ghost?: HTMLElement
|
|
11038
|
-
origin: EventPosition
|
|
11145
|
+
origin: Pick<EventPosition, 'selection'>
|
|
11039
11146
|
}
|
|
11040
11147
|
},
|
|
11041
11148
|
{
|
|
@@ -11068,7 +11175,7 @@ declare const editorMachine: StateMachine<
|
|
|
11068
11175
|
value: Array<PortableTextBlock> | undefined
|
|
11069
11176
|
internalDrag?: {
|
|
11070
11177
|
ghost?: HTMLElement
|
|
11071
|
-
origin: EventPosition
|
|
11178
|
+
origin: Pick<EventPosition, 'selection'>
|
|
11072
11179
|
}
|
|
11073
11180
|
},
|
|
11074
11181
|
{
|
|
@@ -11099,7 +11206,7 @@ declare const editorMachine: StateMachine<
|
|
|
11099
11206
|
value: Array<PortableTextBlock> | undefined
|
|
11100
11207
|
internalDrag?: {
|
|
11101
11208
|
ghost?: HTMLElement
|
|
11102
|
-
origin: EventPosition
|
|
11209
|
+
origin: Pick<EventPosition, 'selection'>
|
|
11103
11210
|
}
|
|
11104
11211
|
},
|
|
11105
11212
|
| {
|
|
@@ -11184,6 +11291,10 @@ declare const editorMachine: StateMachine<
|
|
|
11184
11291
|
| {
|
|
11185
11292
|
type: 'decorator.toggle'
|
|
11186
11293
|
decorator: string
|
|
11294
|
+
offsets?: {
|
|
11295
|
+
anchor: BlockOffset_2
|
|
11296
|
+
focus: BlockOffset_2
|
|
11297
|
+
}
|
|
11187
11298
|
}
|
|
11188
11299
|
| {
|
|
11189
11300
|
type: 'delete'
|
|
@@ -11492,7 +11603,7 @@ declare const editorMachine: StateMachine<
|
|
|
11492
11603
|
}
|
|
11493
11604
|
| {
|
|
11494
11605
|
type: 'dragstart'
|
|
11495
|
-
origin: EventPosition
|
|
11606
|
+
origin: Pick<EventPosition, 'selection'>
|
|
11496
11607
|
ghost?: HTMLElement
|
|
11497
11608
|
}
|
|
11498
11609
|
| {
|
|
@@ -11564,6 +11675,10 @@ declare const editorMachine: StateMachine<
|
|
|
11564
11675
|
| {
|
|
11565
11676
|
type: 'decorator.toggle'
|
|
11566
11677
|
decorator: string
|
|
11678
|
+
offsets?: {
|
|
11679
|
+
anchor: BlockOffset_2
|
|
11680
|
+
focus: BlockOffset_2
|
|
11681
|
+
}
|
|
11567
11682
|
}
|
|
11568
11683
|
| {
|
|
11569
11684
|
type: 'delete'
|
|
@@ -11816,7 +11931,7 @@ declare const editorMachine: StateMachine<
|
|
|
11816
11931
|
value: Array<PortableTextBlock> | undefined
|
|
11817
11932
|
internalDrag?: {
|
|
11818
11933
|
ghost?: HTMLElement
|
|
11819
|
-
origin: EventPosition
|
|
11934
|
+
origin: Pick<EventPosition, 'selection'>
|
|
11820
11935
|
}
|
|
11821
11936
|
},
|
|
11822
11937
|
| {
|
|
@@ -11887,6 +12002,10 @@ declare const editorMachine: StateMachine<
|
|
|
11887
12002
|
| {
|
|
11888
12003
|
type: 'decorator.toggle'
|
|
11889
12004
|
decorator: string
|
|
12005
|
+
offsets?: {
|
|
12006
|
+
anchor: BlockOffset_2
|
|
12007
|
+
focus: BlockOffset_2
|
|
12008
|
+
}
|
|
11890
12009
|
}
|
|
11891
12010
|
| {
|
|
11892
12011
|
type: 'delete'
|
|
@@ -12195,7 +12314,7 @@ declare const editorMachine: StateMachine<
|
|
|
12195
12314
|
}
|
|
12196
12315
|
| {
|
|
12197
12316
|
type: 'dragstart'
|
|
12198
|
-
origin: EventPosition
|
|
12317
|
+
origin: Pick<EventPosition, 'selection'>
|
|
12199
12318
|
ghost?: HTMLElement
|
|
12200
12319
|
}
|
|
12201
12320
|
| {
|
|
@@ -12267,6 +12386,10 @@ declare const editorMachine: StateMachine<
|
|
|
12267
12386
|
| {
|
|
12268
12387
|
type: 'decorator.toggle'
|
|
12269
12388
|
decorator: string
|
|
12389
|
+
offsets?: {
|
|
12390
|
+
anchor: BlockOffset_2
|
|
12391
|
+
focus: BlockOffset_2
|
|
12392
|
+
}
|
|
12270
12393
|
}
|
|
12271
12394
|
| {
|
|
12272
12395
|
type: 'delete'
|
|
@@ -12519,7 +12642,7 @@ declare const editorMachine: StateMachine<
|
|
|
12519
12642
|
value: Array<PortableTextBlock> | undefined
|
|
12520
12643
|
internalDrag?: {
|
|
12521
12644
|
ghost?: HTMLElement
|
|
12522
|
-
origin: EventPosition
|
|
12645
|
+
origin: Pick<EventPosition, 'selection'>
|
|
12523
12646
|
}
|
|
12524
12647
|
},
|
|
12525
12648
|
{
|
|
@@ -12583,6 +12706,10 @@ declare const editorMachine: StateMachine<
|
|
|
12583
12706
|
| {
|
|
12584
12707
|
type: 'decorator.toggle'
|
|
12585
12708
|
decorator: string
|
|
12709
|
+
offsets?: {
|
|
12710
|
+
anchor: BlockOffset_2
|
|
12711
|
+
focus: BlockOffset_2
|
|
12712
|
+
}
|
|
12586
12713
|
}
|
|
12587
12714
|
| {
|
|
12588
12715
|
type: 'delete'
|
|
@@ -12891,7 +13018,7 @@ declare const editorMachine: StateMachine<
|
|
|
12891
13018
|
}
|
|
12892
13019
|
| {
|
|
12893
13020
|
type: 'dragstart'
|
|
12894
|
-
origin: EventPosition
|
|
13021
|
+
origin: Pick<EventPosition, 'selection'>
|
|
12895
13022
|
ghost?: HTMLElement
|
|
12896
13023
|
}
|
|
12897
13024
|
| {
|
|
@@ -12963,6 +13090,10 @@ declare const editorMachine: StateMachine<
|
|
|
12963
13090
|
| {
|
|
12964
13091
|
type: 'decorator.toggle'
|
|
12965
13092
|
decorator: string
|
|
13093
|
+
offsets?: {
|
|
13094
|
+
anchor: BlockOffset_2
|
|
13095
|
+
focus: BlockOffset_2
|
|
13096
|
+
}
|
|
12966
13097
|
}
|
|
12967
13098
|
| {
|
|
12968
13099
|
type: 'delete'
|
|
@@ -13215,7 +13346,7 @@ declare const editorMachine: StateMachine<
|
|
|
13215
13346
|
value: Array<PortableTextBlock> | undefined
|
|
13216
13347
|
internalDrag?: {
|
|
13217
13348
|
ghost?: HTMLElement
|
|
13218
|
-
origin: EventPosition
|
|
13349
|
+
origin: Pick<EventPosition, 'selection'>
|
|
13219
13350
|
}
|
|
13220
13351
|
},
|
|
13221
13352
|
{
|
|
@@ -13279,6 +13410,10 @@ declare const editorMachine: StateMachine<
|
|
|
13279
13410
|
| {
|
|
13280
13411
|
type: 'decorator.toggle'
|
|
13281
13412
|
decorator: string
|
|
13413
|
+
offsets?: {
|
|
13414
|
+
anchor: BlockOffset_2
|
|
13415
|
+
focus: BlockOffset_2
|
|
13416
|
+
}
|
|
13282
13417
|
}
|
|
13283
13418
|
| {
|
|
13284
13419
|
type: 'delete'
|
|
@@ -13587,7 +13722,7 @@ declare const editorMachine: StateMachine<
|
|
|
13587
13722
|
}
|
|
13588
13723
|
| {
|
|
13589
13724
|
type: 'dragstart'
|
|
13590
|
-
origin: EventPosition
|
|
13725
|
+
origin: Pick<EventPosition, 'selection'>
|
|
13591
13726
|
ghost?: HTMLElement
|
|
13592
13727
|
}
|
|
13593
13728
|
| {
|
|
@@ -13659,6 +13794,10 @@ declare const editorMachine: StateMachine<
|
|
|
13659
13794
|
| {
|
|
13660
13795
|
type: 'decorator.toggle'
|
|
13661
13796
|
decorator: string
|
|
13797
|
+
offsets?: {
|
|
13798
|
+
anchor: BlockOffset_2
|
|
13799
|
+
focus: BlockOffset_2
|
|
13800
|
+
}
|
|
13662
13801
|
}
|
|
13663
13802
|
| {
|
|
13664
13803
|
type: 'delete'
|
|
@@ -13911,7 +14050,7 @@ declare const editorMachine: StateMachine<
|
|
|
13911
14050
|
value: Array<PortableTextBlock> | undefined
|
|
13912
14051
|
internalDrag?: {
|
|
13913
14052
|
ghost?: HTMLElement
|
|
13914
|
-
origin: EventPosition
|
|
14053
|
+
origin: Pick<EventPosition, 'selection'>
|
|
13915
14054
|
}
|
|
13916
14055
|
},
|
|
13917
14056
|
| {
|
|
@@ -13929,6 +14068,10 @@ declare const editorMachine: StateMachine<
|
|
|
13929
14068
|
| {
|
|
13930
14069
|
type: 'decorator.toggle'
|
|
13931
14070
|
decorator: string
|
|
14071
|
+
offsets?: {
|
|
14072
|
+
anchor: BlockOffset_2
|
|
14073
|
+
focus: BlockOffset_2
|
|
14074
|
+
}
|
|
13932
14075
|
},
|
|
13933
14076
|
| {
|
|
13934
14077
|
type: 'annotation.add'
|
|
@@ -13988,6 +14131,10 @@ declare const editorMachine: StateMachine<
|
|
|
13988
14131
|
| {
|
|
13989
14132
|
type: 'decorator.toggle'
|
|
13990
14133
|
decorator: string
|
|
14134
|
+
offsets?: {
|
|
14135
|
+
anchor: BlockOffset_2
|
|
14136
|
+
focus: BlockOffset_2
|
|
14137
|
+
}
|
|
13991
14138
|
}
|
|
13992
14139
|
| {
|
|
13993
14140
|
type: 'delete'
|
|
@@ -14296,7 +14443,7 @@ declare const editorMachine: StateMachine<
|
|
|
14296
14443
|
}
|
|
14297
14444
|
| {
|
|
14298
14445
|
type: 'dragstart'
|
|
14299
|
-
origin: EventPosition
|
|
14446
|
+
origin: Pick<EventPosition, 'selection'>
|
|
14300
14447
|
ghost?: HTMLElement
|
|
14301
14448
|
}
|
|
14302
14449
|
| {
|
|
@@ -14368,6 +14515,10 @@ declare const editorMachine: StateMachine<
|
|
|
14368
14515
|
| {
|
|
14369
14516
|
type: 'decorator.toggle'
|
|
14370
14517
|
decorator: string
|
|
14518
|
+
offsets?: {
|
|
14519
|
+
anchor: BlockOffset_2
|
|
14520
|
+
focus: BlockOffset_2
|
|
14521
|
+
}
|
|
14371
14522
|
}
|
|
14372
14523
|
| {
|
|
14373
14524
|
type: 'delete'
|
|
@@ -14620,7 +14771,7 @@ declare const editorMachine: StateMachine<
|
|
|
14620
14771
|
value: Array<PortableTextBlock> | undefined
|
|
14621
14772
|
internalDrag?: {
|
|
14622
14773
|
ghost?: HTMLElement
|
|
14623
|
-
origin: EventPosition
|
|
14774
|
+
origin: Pick<EventPosition, 'selection'>
|
|
14624
14775
|
}
|
|
14625
14776
|
},
|
|
14626
14777
|
| {
|
|
@@ -14698,6 +14849,10 @@ declare const editorMachine: StateMachine<
|
|
|
14698
14849
|
| {
|
|
14699
14850
|
type: 'decorator.toggle'
|
|
14700
14851
|
decorator: string
|
|
14852
|
+
offsets?: {
|
|
14853
|
+
anchor: BlockOffset_2
|
|
14854
|
+
focus: BlockOffset_2
|
|
14855
|
+
}
|
|
14701
14856
|
}
|
|
14702
14857
|
| {
|
|
14703
14858
|
type: 'delete'
|
|
@@ -15006,7 +15161,7 @@ declare const editorMachine: StateMachine<
|
|
|
15006
15161
|
}
|
|
15007
15162
|
| {
|
|
15008
15163
|
type: 'dragstart'
|
|
15009
|
-
origin: EventPosition
|
|
15164
|
+
origin: Pick<EventPosition, 'selection'>
|
|
15010
15165
|
ghost?: HTMLElement
|
|
15011
15166
|
}
|
|
15012
15167
|
| {
|
|
@@ -15078,6 +15233,10 @@ declare const editorMachine: StateMachine<
|
|
|
15078
15233
|
| {
|
|
15079
15234
|
type: 'decorator.toggle'
|
|
15080
15235
|
decorator: string
|
|
15236
|
+
offsets?: {
|
|
15237
|
+
anchor: BlockOffset_2
|
|
15238
|
+
focus: BlockOffset_2
|
|
15239
|
+
}
|
|
15081
15240
|
}
|
|
15082
15241
|
| {
|
|
15083
15242
|
type: 'delete'
|
|
@@ -15330,7 +15489,7 @@ declare const editorMachine: StateMachine<
|
|
|
15330
15489
|
value: Array<PortableTextBlock> | undefined
|
|
15331
15490
|
internalDrag?: {
|
|
15332
15491
|
ghost?: HTMLElement
|
|
15333
|
-
origin: EventPosition
|
|
15492
|
+
origin: Pick<EventPosition, 'selection'>
|
|
15334
15493
|
}
|
|
15335
15494
|
},
|
|
15336
15495
|
{
|
|
@@ -15394,6 +15553,10 @@ declare const editorMachine: StateMachine<
|
|
|
15394
15553
|
| {
|
|
15395
15554
|
type: 'decorator.toggle'
|
|
15396
15555
|
decorator: string
|
|
15556
|
+
offsets?: {
|
|
15557
|
+
anchor: BlockOffset_2
|
|
15558
|
+
focus: BlockOffset_2
|
|
15559
|
+
}
|
|
15397
15560
|
}
|
|
15398
15561
|
| {
|
|
15399
15562
|
type: 'delete'
|
|
@@ -15702,7 +15865,7 @@ declare const editorMachine: StateMachine<
|
|
|
15702
15865
|
}
|
|
15703
15866
|
| {
|
|
15704
15867
|
type: 'dragstart'
|
|
15705
|
-
origin: EventPosition
|
|
15868
|
+
origin: Pick<EventPosition, 'selection'>
|
|
15706
15869
|
ghost?: HTMLElement
|
|
15707
15870
|
}
|
|
15708
15871
|
| {
|
|
@@ -15774,6 +15937,10 @@ declare const editorMachine: StateMachine<
|
|
|
15774
15937
|
| {
|
|
15775
15938
|
type: 'decorator.toggle'
|
|
15776
15939
|
decorator: string
|
|
15940
|
+
offsets?: {
|
|
15941
|
+
anchor: BlockOffset_2
|
|
15942
|
+
focus: BlockOffset_2
|
|
15943
|
+
}
|
|
15777
15944
|
}
|
|
15778
15945
|
| {
|
|
15779
15946
|
type: 'delete'
|
|
@@ -16026,7 +16193,7 @@ declare const editorMachine: StateMachine<
|
|
|
16026
16193
|
value: Array<PortableTextBlock> | undefined
|
|
16027
16194
|
internalDrag?: {
|
|
16028
16195
|
ghost?: HTMLElement
|
|
16029
|
-
origin: EventPosition
|
|
16196
|
+
origin: Pick<EventPosition, 'selection'>
|
|
16030
16197
|
}
|
|
16031
16198
|
},
|
|
16032
16199
|
| {
|
|
@@ -16093,6 +16260,10 @@ declare const editorMachine: StateMachine<
|
|
|
16093
16260
|
| {
|
|
16094
16261
|
type: 'decorator.toggle'
|
|
16095
16262
|
decorator: string
|
|
16263
|
+
offsets?: {
|
|
16264
|
+
anchor: BlockOffset_2
|
|
16265
|
+
focus: BlockOffset_2
|
|
16266
|
+
}
|
|
16096
16267
|
}
|
|
16097
16268
|
| {
|
|
16098
16269
|
type: 'delete'
|
|
@@ -16401,7 +16572,7 @@ declare const editorMachine: StateMachine<
|
|
|
16401
16572
|
}
|
|
16402
16573
|
| {
|
|
16403
16574
|
type: 'dragstart'
|
|
16404
|
-
origin: EventPosition
|
|
16575
|
+
origin: Pick<EventPosition, 'selection'>
|
|
16405
16576
|
ghost?: HTMLElement
|
|
16406
16577
|
}
|
|
16407
16578
|
| {
|
|
@@ -16473,6 +16644,10 @@ declare const editorMachine: StateMachine<
|
|
|
16473
16644
|
| {
|
|
16474
16645
|
type: 'decorator.toggle'
|
|
16475
16646
|
decorator: string
|
|
16647
|
+
offsets?: {
|
|
16648
|
+
anchor: BlockOffset_2
|
|
16649
|
+
focus: BlockOffset_2
|
|
16650
|
+
}
|
|
16476
16651
|
}
|
|
16477
16652
|
| {
|
|
16478
16653
|
type: 'delete'
|
|
@@ -16725,7 +16900,7 @@ declare const editorMachine: StateMachine<
|
|
|
16725
16900
|
value: Array<PortableTextBlock> | undefined
|
|
16726
16901
|
internalDrag?: {
|
|
16727
16902
|
ghost?: HTMLElement
|
|
16728
|
-
origin: EventPosition
|
|
16903
|
+
origin: Pick<EventPosition, 'selection'>
|
|
16729
16904
|
}
|
|
16730
16905
|
},
|
|
16731
16906
|
| {
|
|
@@ -16845,6 +17020,10 @@ declare const editorMachine: StateMachine<
|
|
|
16845
17020
|
| {
|
|
16846
17021
|
type: 'decorator.toggle'
|
|
16847
17022
|
decorator: string
|
|
17023
|
+
offsets?: {
|
|
17024
|
+
anchor: BlockOffset_2
|
|
17025
|
+
focus: BlockOffset_2
|
|
17026
|
+
}
|
|
16848
17027
|
}
|
|
16849
17028
|
| {
|
|
16850
17029
|
type: 'delete'
|
|
@@ -17153,7 +17332,7 @@ declare const editorMachine: StateMachine<
|
|
|
17153
17332
|
}
|
|
17154
17333
|
| {
|
|
17155
17334
|
type: 'dragstart'
|
|
17156
|
-
origin: EventPosition
|
|
17335
|
+
origin: Pick<EventPosition, 'selection'>
|
|
17157
17336
|
ghost?: HTMLElement
|
|
17158
17337
|
}
|
|
17159
17338
|
| {
|
|
@@ -17225,6 +17404,10 @@ declare const editorMachine: StateMachine<
|
|
|
17225
17404
|
| {
|
|
17226
17405
|
type: 'decorator.toggle'
|
|
17227
17406
|
decorator: string
|
|
17407
|
+
offsets?: {
|
|
17408
|
+
anchor: BlockOffset_2
|
|
17409
|
+
focus: BlockOffset_2
|
|
17410
|
+
}
|
|
17228
17411
|
}
|
|
17229
17412
|
| {
|
|
17230
17413
|
type: 'delete'
|
|
@@ -17477,7 +17660,7 @@ declare const editorMachine: StateMachine<
|
|
|
17477
17660
|
value: Array<PortableTextBlock> | undefined
|
|
17478
17661
|
internalDrag?: {
|
|
17479
17662
|
ghost?: HTMLElement
|
|
17480
|
-
origin: EventPosition
|
|
17663
|
+
origin: Pick<EventPosition, 'selection'>
|
|
17481
17664
|
}
|
|
17482
17665
|
},
|
|
17483
17666
|
| {
|
|
@@ -17550,6 +17733,10 @@ declare const editorMachine: StateMachine<
|
|
|
17550
17733
|
| {
|
|
17551
17734
|
type: 'decorator.toggle'
|
|
17552
17735
|
decorator: string
|
|
17736
|
+
offsets?: {
|
|
17737
|
+
anchor: BlockOffset_2
|
|
17738
|
+
focus: BlockOffset_2
|
|
17739
|
+
}
|
|
17553
17740
|
}
|
|
17554
17741
|
| {
|
|
17555
17742
|
type: 'delete'
|
|
@@ -17858,7 +18045,7 @@ declare const editorMachine: StateMachine<
|
|
|
17858
18045
|
}
|
|
17859
18046
|
| {
|
|
17860
18047
|
type: 'dragstart'
|
|
17861
|
-
origin: EventPosition
|
|
18048
|
+
origin: Pick<EventPosition, 'selection'>
|
|
17862
18049
|
ghost?: HTMLElement
|
|
17863
18050
|
}
|
|
17864
18051
|
| {
|
|
@@ -17930,6 +18117,10 @@ declare const editorMachine: StateMachine<
|
|
|
17930
18117
|
| {
|
|
17931
18118
|
type: 'decorator.toggle'
|
|
17932
18119
|
decorator: string
|
|
18120
|
+
offsets?: {
|
|
18121
|
+
anchor: BlockOffset_2
|
|
18122
|
+
focus: BlockOffset_2
|
|
18123
|
+
}
|
|
17933
18124
|
}
|
|
17934
18125
|
| {
|
|
17935
18126
|
type: 'delete'
|
|
@@ -18182,7 +18373,7 @@ declare const editorMachine: StateMachine<
|
|
|
18182
18373
|
value: Array<PortableTextBlock> | undefined
|
|
18183
18374
|
internalDrag?: {
|
|
18184
18375
|
ghost?: HTMLElement
|
|
18185
|
-
origin: EventPosition
|
|
18376
|
+
origin: Pick<EventPosition, 'selection'>
|
|
18186
18377
|
}
|
|
18187
18378
|
},
|
|
18188
18379
|
| {
|
|
@@ -18256,6 +18447,10 @@ declare const editorMachine: StateMachine<
|
|
|
18256
18447
|
| {
|
|
18257
18448
|
type: 'decorator.toggle'
|
|
18258
18449
|
decorator: string
|
|
18450
|
+
offsets?: {
|
|
18451
|
+
anchor: BlockOffset_2
|
|
18452
|
+
focus: BlockOffset_2
|
|
18453
|
+
}
|
|
18259
18454
|
}
|
|
18260
18455
|
| {
|
|
18261
18456
|
type: 'delete'
|
|
@@ -18564,7 +18759,7 @@ declare const editorMachine: StateMachine<
|
|
|
18564
18759
|
}
|
|
18565
18760
|
| {
|
|
18566
18761
|
type: 'dragstart'
|
|
18567
|
-
origin: EventPosition
|
|
18762
|
+
origin: Pick<EventPosition, 'selection'>
|
|
18568
18763
|
ghost?: HTMLElement
|
|
18569
18764
|
}
|
|
18570
18765
|
| {
|
|
@@ -18636,6 +18831,10 @@ declare const editorMachine: StateMachine<
|
|
|
18636
18831
|
| {
|
|
18637
18832
|
type: 'decorator.toggle'
|
|
18638
18833
|
decorator: string
|
|
18834
|
+
offsets?: {
|
|
18835
|
+
anchor: BlockOffset_2
|
|
18836
|
+
focus: BlockOffset_2
|
|
18837
|
+
}
|
|
18639
18838
|
}
|
|
18640
18839
|
| {
|
|
18641
18840
|
type: 'delete'
|
|
@@ -18888,7 +19087,7 @@ declare const editorMachine: StateMachine<
|
|
|
18888
19087
|
value: Array<PortableTextBlock> | undefined
|
|
18889
19088
|
internalDrag?: {
|
|
18890
19089
|
ghost?: HTMLElement
|
|
18891
|
-
origin: EventPosition
|
|
19090
|
+
origin: Pick<EventPosition, 'selection'>
|
|
18892
19091
|
}
|
|
18893
19092
|
},
|
|
18894
19093
|
{
|
|
@@ -18953,6 +19152,10 @@ declare const editorMachine: StateMachine<
|
|
|
18953
19152
|
| {
|
|
18954
19153
|
type: 'decorator.toggle'
|
|
18955
19154
|
decorator: string
|
|
19155
|
+
offsets?: {
|
|
19156
|
+
anchor: BlockOffset_2
|
|
19157
|
+
focus: BlockOffset_2
|
|
19158
|
+
}
|
|
18956
19159
|
}
|
|
18957
19160
|
| {
|
|
18958
19161
|
type: 'delete'
|
|
@@ -19261,7 +19464,7 @@ declare const editorMachine: StateMachine<
|
|
|
19261
19464
|
}
|
|
19262
19465
|
| {
|
|
19263
19466
|
type: 'dragstart'
|
|
19264
|
-
origin: EventPosition
|
|
19467
|
+
origin: Pick<EventPosition, 'selection'>
|
|
19265
19468
|
ghost?: HTMLElement
|
|
19266
19469
|
}
|
|
19267
19470
|
| {
|
|
@@ -19333,6 +19536,10 @@ declare const editorMachine: StateMachine<
|
|
|
19333
19536
|
| {
|
|
19334
19537
|
type: 'decorator.toggle'
|
|
19335
19538
|
decorator: string
|
|
19539
|
+
offsets?: {
|
|
19540
|
+
anchor: BlockOffset_2
|
|
19541
|
+
focus: BlockOffset_2
|
|
19542
|
+
}
|
|
19336
19543
|
}
|
|
19337
19544
|
| {
|
|
19338
19545
|
type: 'delete'
|
|
@@ -19585,7 +19792,7 @@ declare const editorMachine: StateMachine<
|
|
|
19585
19792
|
value: Array<PortableTextBlock> | undefined
|
|
19586
19793
|
internalDrag?: {
|
|
19587
19794
|
ghost?: HTMLElement
|
|
19588
|
-
origin: EventPosition
|
|
19795
|
+
origin: Pick<EventPosition, 'selection'>
|
|
19589
19796
|
}
|
|
19590
19797
|
},
|
|
19591
19798
|
| {
|
|
@@ -19654,6 +19861,10 @@ declare const editorMachine: StateMachine<
|
|
|
19654
19861
|
| {
|
|
19655
19862
|
type: 'decorator.toggle'
|
|
19656
19863
|
decorator: string
|
|
19864
|
+
offsets?: {
|
|
19865
|
+
anchor: BlockOffset_2
|
|
19866
|
+
focus: BlockOffset_2
|
|
19867
|
+
}
|
|
19657
19868
|
}
|
|
19658
19869
|
| {
|
|
19659
19870
|
type: 'delete'
|
|
@@ -19962,7 +20173,7 @@ declare const editorMachine: StateMachine<
|
|
|
19962
20173
|
}
|
|
19963
20174
|
| {
|
|
19964
20175
|
type: 'dragstart'
|
|
19965
|
-
origin: EventPosition
|
|
20176
|
+
origin: Pick<EventPosition, 'selection'>
|
|
19966
20177
|
ghost?: HTMLElement
|
|
19967
20178
|
}
|
|
19968
20179
|
| {
|
|
@@ -20034,6 +20245,10 @@ declare const editorMachine: StateMachine<
|
|
|
20034
20245
|
| {
|
|
20035
20246
|
type: 'decorator.toggle'
|
|
20036
20247
|
decorator: string
|
|
20248
|
+
offsets?: {
|
|
20249
|
+
anchor: BlockOffset_2
|
|
20250
|
+
focus: BlockOffset_2
|
|
20251
|
+
}
|
|
20037
20252
|
}
|
|
20038
20253
|
| {
|
|
20039
20254
|
type: 'delete'
|
|
@@ -20286,7 +20501,7 @@ declare const editorMachine: StateMachine<
|
|
|
20286
20501
|
value: Array<PortableTextBlock> | undefined
|
|
20287
20502
|
internalDrag?: {
|
|
20288
20503
|
ghost?: HTMLElement
|
|
20289
|
-
origin: EventPosition
|
|
20504
|
+
origin: Pick<EventPosition, 'selection'>
|
|
20290
20505
|
}
|
|
20291
20506
|
},
|
|
20292
20507
|
| {
|
|
@@ -20359,6 +20574,10 @@ declare const editorMachine: StateMachine<
|
|
|
20359
20574
|
| {
|
|
20360
20575
|
type: 'decorator.toggle'
|
|
20361
20576
|
decorator: string
|
|
20577
|
+
offsets?: {
|
|
20578
|
+
anchor: BlockOffset_2
|
|
20579
|
+
focus: BlockOffset_2
|
|
20580
|
+
}
|
|
20362
20581
|
}
|
|
20363
20582
|
| {
|
|
20364
20583
|
type: 'delete'
|
|
@@ -20667,7 +20886,7 @@ declare const editorMachine: StateMachine<
|
|
|
20667
20886
|
}
|
|
20668
20887
|
| {
|
|
20669
20888
|
type: 'dragstart'
|
|
20670
|
-
origin: EventPosition
|
|
20889
|
+
origin: Pick<EventPosition, 'selection'>
|
|
20671
20890
|
ghost?: HTMLElement
|
|
20672
20891
|
}
|
|
20673
20892
|
| {
|
|
@@ -20739,6 +20958,10 @@ declare const editorMachine: StateMachine<
|
|
|
20739
20958
|
| {
|
|
20740
20959
|
type: 'decorator.toggle'
|
|
20741
20960
|
decorator: string
|
|
20961
|
+
offsets?: {
|
|
20962
|
+
anchor: BlockOffset_2
|
|
20963
|
+
focus: BlockOffset_2
|
|
20964
|
+
}
|
|
20742
20965
|
}
|
|
20743
20966
|
| {
|
|
20744
20967
|
type: 'delete'
|
|
@@ -21012,12 +21235,12 @@ declare const editorMachine: StateMachine<
|
|
|
21012
21235
|
value: Array<PortableTextBlock> | undefined
|
|
21013
21236
|
internalDrag?: {
|
|
21014
21237
|
ghost?: HTMLElement
|
|
21015
|
-
origin: EventPosition
|
|
21238
|
+
origin: Pick<EventPosition, 'selection'>
|
|
21016
21239
|
}
|
|
21017
21240
|
},
|
|
21018
21241
|
{
|
|
21019
21242
|
type: 'dragstart'
|
|
21020
|
-
origin: EventPosition
|
|
21243
|
+
origin: Pick<EventPosition, 'selection'>
|
|
21021
21244
|
ghost?: HTMLElement
|
|
21022
21245
|
},
|
|
21023
21246
|
| {
|
|
@@ -21078,6 +21301,10 @@ declare const editorMachine: StateMachine<
|
|
|
21078
21301
|
| {
|
|
21079
21302
|
type: 'decorator.toggle'
|
|
21080
21303
|
decorator: string
|
|
21304
|
+
offsets?: {
|
|
21305
|
+
anchor: BlockOffset_2
|
|
21306
|
+
focus: BlockOffset_2
|
|
21307
|
+
}
|
|
21081
21308
|
}
|
|
21082
21309
|
| {
|
|
21083
21310
|
type: 'delete'
|
|
@@ -21390,7 +21617,7 @@ declare const editorMachine: StateMachine<
|
|
|
21390
21617
|
}
|
|
21391
21618
|
| {
|
|
21392
21619
|
type: 'dragstart'
|
|
21393
|
-
origin: EventPosition
|
|
21620
|
+
origin: Pick<EventPosition, 'selection'>
|
|
21394
21621
|
ghost?: HTMLElement
|
|
21395
21622
|
}
|
|
21396
21623
|
| {
|
|
@@ -21428,7 +21655,7 @@ declare const editorMachine: StateMachine<
|
|
|
21428
21655
|
value: Array<PortableTextBlock> | undefined
|
|
21429
21656
|
internalDrag?: {
|
|
21430
21657
|
ghost?: HTMLElement
|
|
21431
|
-
origin: EventPosition
|
|
21658
|
+
origin: Pick<EventPosition, 'selection'>
|
|
21432
21659
|
}
|
|
21433
21660
|
},
|
|
21434
21661
|
| {
|
|
@@ -21489,6 +21716,10 @@ declare const editorMachine: StateMachine<
|
|
|
21489
21716
|
| {
|
|
21490
21717
|
type: 'decorator.toggle'
|
|
21491
21718
|
decorator: string
|
|
21719
|
+
offsets?: {
|
|
21720
|
+
anchor: BlockOffset_2
|
|
21721
|
+
focus: BlockOffset_2
|
|
21722
|
+
}
|
|
21492
21723
|
}
|
|
21493
21724
|
| {
|
|
21494
21725
|
type: 'delete'
|
|
@@ -21797,7 +22028,7 @@ declare const editorMachine: StateMachine<
|
|
|
21797
22028
|
}
|
|
21798
22029
|
| {
|
|
21799
22030
|
type: 'dragstart'
|
|
21800
|
-
origin: EventPosition
|
|
22031
|
+
origin: Pick<EventPosition, 'selection'>
|
|
21801
22032
|
ghost?: HTMLElement
|
|
21802
22033
|
}
|
|
21803
22034
|
| {
|
|
@@ -21864,6 +22095,10 @@ declare const editorMachine: StateMachine<
|
|
|
21864
22095
|
| {
|
|
21865
22096
|
type: 'decorator.toggle'
|
|
21866
22097
|
decorator: string
|
|
22098
|
+
offsets?: {
|
|
22099
|
+
anchor: BlockOffset_2
|
|
22100
|
+
focus: BlockOffset_2
|
|
22101
|
+
}
|
|
21867
22102
|
}
|
|
21868
22103
|
| {
|
|
21869
22104
|
type: 'delete'
|
|
@@ -22172,7 +22407,7 @@ declare const editorMachine: StateMachine<
|
|
|
22172
22407
|
}
|
|
22173
22408
|
| {
|
|
22174
22409
|
type: 'dragstart'
|
|
22175
|
-
origin: EventPosition
|
|
22410
|
+
origin: Pick<EventPosition, 'selection'>
|
|
22176
22411
|
ghost?: HTMLElement
|
|
22177
22412
|
}
|
|
22178
22413
|
| {
|
|
@@ -22195,7 +22430,7 @@ declare const editorMachine: StateMachine<
|
|
|
22195
22430
|
value: Array<PortableTextBlock> | undefined
|
|
22196
22431
|
internalDrag?: {
|
|
22197
22432
|
ghost?: HTMLElement
|
|
22198
|
-
origin: EventPosition
|
|
22433
|
+
origin: Pick<EventPosition, 'selection'>
|
|
22199
22434
|
}
|
|
22200
22435
|
},
|
|
22201
22436
|
| {
|
|
@@ -22256,6 +22491,10 @@ declare const editorMachine: StateMachine<
|
|
|
22256
22491
|
| {
|
|
22257
22492
|
type: 'decorator.toggle'
|
|
22258
22493
|
decorator: string
|
|
22494
|
+
offsets?: {
|
|
22495
|
+
anchor: BlockOffset_2
|
|
22496
|
+
focus: BlockOffset_2
|
|
22497
|
+
}
|
|
22259
22498
|
}
|
|
22260
22499
|
| {
|
|
22261
22500
|
type: 'delete'
|
|
@@ -22564,7 +22803,7 @@ declare const editorMachine: StateMachine<
|
|
|
22564
22803
|
}
|
|
22565
22804
|
| {
|
|
22566
22805
|
type: 'dragstart'
|
|
22567
|
-
origin: EventPosition
|
|
22806
|
+
origin: Pick<EventPosition, 'selection'>
|
|
22568
22807
|
ghost?: HTMLElement
|
|
22569
22808
|
}
|
|
22570
22809
|
| {
|
|
@@ -22631,6 +22870,10 @@ declare const editorMachine: StateMachine<
|
|
|
22631
22870
|
| {
|
|
22632
22871
|
type: 'decorator.toggle'
|
|
22633
22872
|
decorator: string
|
|
22873
|
+
offsets?: {
|
|
22874
|
+
anchor: BlockOffset_2
|
|
22875
|
+
focus: BlockOffset_2
|
|
22876
|
+
}
|
|
22634
22877
|
}
|
|
22635
22878
|
| {
|
|
22636
22879
|
type: 'delete'
|
|
@@ -22939,7 +23182,7 @@ declare const editorMachine: StateMachine<
|
|
|
22939
23182
|
}
|
|
22940
23183
|
| {
|
|
22941
23184
|
type: 'dragstart'
|
|
22942
|
-
origin: EventPosition
|
|
23185
|
+
origin: Pick<EventPosition, 'selection'>
|
|
22943
23186
|
ghost?: HTMLElement
|
|
22944
23187
|
}
|
|
22945
23188
|
| {
|
|
@@ -23108,7 +23351,7 @@ export declare type EditorSnapshot = {
|
|
|
23108
23351
|
hasTag: HasTag
|
|
23109
23352
|
internalDrag:
|
|
23110
23353
|
| {
|
|
23111
|
-
origin: EventPosition
|
|
23354
|
+
origin: Pick<EventPosition, 'selection'>
|
|
23112
23355
|
}
|
|
23113
23356
|
| undefined
|
|
23114
23357
|
}
|
|
@@ -23223,6 +23466,14 @@ declare type InputBehaviorEvent = {
|
|
|
23223
23466
|
|
|
23224
23467
|
declare type InsertPlacement = 'auto' | 'after' | 'before'
|
|
23225
23468
|
|
|
23469
|
+
declare type InternalEditor = Editor & {
|
|
23470
|
+
_internal: {
|
|
23471
|
+
editable: EditableAPI
|
|
23472
|
+
editorActor: EditorActor
|
|
23473
|
+
slateEditor: SlateEditor
|
|
23474
|
+
}
|
|
23475
|
+
}
|
|
23476
|
+
|
|
23226
23477
|
declare type InternalPatchEvent = NamespaceEvent<PatchEvent, 'internal'> & {
|
|
23227
23478
|
actionId?: string
|
|
23228
23479
|
value: Array<PortableTextBlock>
|
|
@@ -23480,7 +23731,7 @@ export declare type PortableTextEditableProps = Omit<
|
|
|
23480
23731
|
* @deprecated Use `EditorProvider` instead
|
|
23481
23732
|
*/
|
|
23482
23733
|
export declare class PortableTextEditor extends Component<
|
|
23483
|
-
PortableTextEditorProps<
|
|
23734
|
+
PortableTextEditorProps<InternalEditor | undefined>
|
|
23484
23735
|
> {
|
|
23485
23736
|
static displayName: string
|
|
23486
23737
|
/**
|
|
@@ -23925,12 +24176,12 @@ export declare class PortableTextEditor extends Component<
|
|
|
23925
24176
|
* @deprecated Use `EditorProvider` instead
|
|
23926
24177
|
*/
|
|
23927
24178
|
export declare type PortableTextEditorProps<
|
|
23928
|
-
TEditor extends
|
|
24179
|
+
TEditor extends InternalEditor | undefined = undefined,
|
|
23929
24180
|
> = PropsWithChildren<
|
|
23930
|
-
TEditor extends
|
|
24181
|
+
TEditor extends InternalEditor
|
|
23931
24182
|
? {
|
|
23932
24183
|
/**
|
|
23933
|
-
* @
|
|
24184
|
+
* @internal
|
|
23934
24185
|
*/
|
|
23935
24186
|
editor: TEditor
|
|
23936
24187
|
}
|
|
@@ -24229,6 +24480,10 @@ declare type SyntheticBehaviorEvent =
|
|
|
24229
24480
|
| {
|
|
24230
24481
|
type: 'decorator.toggle'
|
|
24231
24482
|
decorator: string
|
|
24483
|
+
offsets?: {
|
|
24484
|
+
anchor: BlockOffset
|
|
24485
|
+
focus: BlockOffset
|
|
24486
|
+
}
|
|
24232
24487
|
}
|
|
24233
24488
|
| {
|
|
24234
24489
|
type: 'delete'
|