@portabletext/editor 1.45.2 → 1.45.4
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.map +1 -1
- package/lib/_chunks-cjs/editor-provider.cjs +57 -57
- package/lib/_chunks-cjs/editor-provider.cjs.map +1 -1
- package/lib/_chunks-cjs/parse-blocks.cjs +4 -1
- package/lib/_chunks-cjs/parse-blocks.cjs.map +1 -1
- package/lib/_chunks-es/behavior.core.js.map +1 -1
- package/lib/_chunks-es/editor-provider.js +57 -57
- package/lib/_chunks-es/editor-provider.js.map +1 -1
- package/lib/_chunks-es/parse-blocks.js +4 -1
- package/lib/_chunks-es/parse-blocks.js.map +1 -1
- package/lib/behaviors/index.d.cts +26 -36
- package/lib/behaviors/index.d.ts +26 -36
- package/lib/index.d.cts +26 -36
- package/lib/index.d.ts +26 -36
- package/lib/plugins/index.d.cts +26 -36
- package/lib/plugins/index.d.ts +26 -36
- package/lib/selectors/index.d.cts +26 -36
- package/lib/selectors/index.d.ts +26 -36
- package/lib/utils/index.d.cts +26 -36
- package/lib/utils/index.d.ts +26 -36
- package/package.json +6 -6
- package/src/behaviors/behavior.perform-event.ts +14 -16
- package/src/behaviors/behavior.types.action.ts +1 -6
- package/src/behaviors/behavior.types.guard.ts +1 -6
- package/src/editor/components/Synchronizer.tsx +6 -3
- package/src/editor/create-editor.ts +1 -1
- package/src/editor/editor-machine.ts +6 -4
- package/src/internal-utils/parse-blocks.ts +6 -1
|
@@ -276,11 +276,6 @@ declare type BehaviorAction =
|
|
|
276
276
|
*/
|
|
277
277
|
declare type BehaviorActionSet<TBehaviorEvent, TGuardResponse> = (
|
|
278
278
|
payload: {
|
|
279
|
-
/**
|
|
280
|
-
* @deprecated
|
|
281
|
-
* Use `snapshot` instead
|
|
282
|
-
*/
|
|
283
|
-
context: EditorContext
|
|
284
279
|
snapshot: EditorSnapshot
|
|
285
280
|
event: TBehaviorEvent
|
|
286
281
|
},
|
|
@@ -306,11 +301,6 @@ declare type BehaviorEventTypeNamespace =
|
|
|
306
301
|
* @beta
|
|
307
302
|
*/
|
|
308
303
|
declare type BehaviorGuard<TBehaviorEvent, TGuardResponse> = (payload: {
|
|
309
|
-
/**
|
|
310
|
-
* @deprecated
|
|
311
|
-
* Use `snapshot` instead
|
|
312
|
-
*/
|
|
313
|
-
context: EditorContext
|
|
314
304
|
snapshot: EditorSnapshot
|
|
315
305
|
event: TBehaviorEvent
|
|
316
306
|
}) => TGuardResponse | false
|
|
@@ -592,7 +582,7 @@ declare const editorMachine: StateMachine<
|
|
|
592
582
|
initialReadOnly: boolean
|
|
593
583
|
maxBlocks: number | undefined
|
|
594
584
|
selection: EditorSelection
|
|
595
|
-
|
|
585
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
596
586
|
internalDrag?: {
|
|
597
587
|
ghost?: HTMLElement
|
|
598
588
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -799,7 +789,7 @@ declare const editorMachine: StateMachine<
|
|
|
799
789
|
maxBlocks?: number
|
|
800
790
|
readOnly?: boolean
|
|
801
791
|
schema: EditorSchema
|
|
802
|
-
|
|
792
|
+
initialValue?: Array<PortableTextBlock>
|
|
803
793
|
},
|
|
804
794
|
NonReducibleUnknown,
|
|
805
795
|
| PatchEvent
|
|
@@ -884,7 +874,7 @@ declare const editorMachine: StateMachine<
|
|
|
884
874
|
maxBlocks?: number
|
|
885
875
|
readOnly?: boolean
|
|
886
876
|
schema: EditorSchema
|
|
887
|
-
|
|
877
|
+
initialValue?: Array<PortableTextBlock>
|
|
888
878
|
}
|
|
889
879
|
self: ActorRef<
|
|
890
880
|
MachineSnapshot<
|
|
@@ -897,7 +887,7 @@ declare const editorMachine: StateMachine<
|
|
|
897
887
|
initialReadOnly: boolean
|
|
898
888
|
maxBlocks: number | undefined
|
|
899
889
|
selection: EditorSelection
|
|
900
|
-
|
|
890
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
901
891
|
internalDrag?: {
|
|
902
892
|
ghost?: HTMLElement
|
|
903
893
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1161,7 +1151,7 @@ declare const editorMachine: StateMachine<
|
|
|
1161
1151
|
selection: null
|
|
1162
1152
|
initialReadOnly: boolean
|
|
1163
1153
|
maxBlocks: number | undefined
|
|
1164
|
-
|
|
1154
|
+
incomingValue: PortableTextBlock[] | undefined
|
|
1165
1155
|
}
|
|
1166
1156
|
readonly on: {
|
|
1167
1157
|
readonly 'notify.blurred': {
|
|
@@ -1175,7 +1165,7 @@ declare const editorMachine: StateMachine<
|
|
|
1175
1165
|
initialReadOnly: boolean
|
|
1176
1166
|
maxBlocks: number | undefined
|
|
1177
1167
|
selection: EditorSelection
|
|
1178
|
-
|
|
1168
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
1179
1169
|
internalDrag?: {
|
|
1180
1170
|
ghost?: HTMLElement
|
|
1181
1171
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1370,7 +1360,7 @@ declare const editorMachine: StateMachine<
|
|
|
1370
1360
|
initialReadOnly: boolean
|
|
1371
1361
|
maxBlocks: number | undefined
|
|
1372
1362
|
selection: EditorSelection
|
|
1373
|
-
|
|
1363
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
1374
1364
|
internalDrag?: {
|
|
1375
1365
|
ghost?: HTMLElement
|
|
1376
1366
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1564,7 +1554,7 @@ declare const editorMachine: StateMachine<
|
|
|
1564
1554
|
initialReadOnly: boolean
|
|
1565
1555
|
maxBlocks: number | undefined
|
|
1566
1556
|
selection: EditorSelection
|
|
1567
|
-
|
|
1557
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
1568
1558
|
internalDrag?: {
|
|
1569
1559
|
ghost?: HTMLElement
|
|
1570
1560
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1761,7 +1751,7 @@ declare const editorMachine: StateMachine<
|
|
|
1761
1751
|
initialReadOnly: boolean
|
|
1762
1752
|
maxBlocks: number | undefined
|
|
1763
1753
|
selection: EditorSelection
|
|
1764
|
-
|
|
1754
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
1765
1755
|
internalDrag?: {
|
|
1766
1756
|
ghost?: HTMLElement
|
|
1767
1757
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1957,7 +1947,7 @@ declare const editorMachine: StateMachine<
|
|
|
1957
1947
|
initialReadOnly: boolean
|
|
1958
1948
|
maxBlocks: number | undefined
|
|
1959
1949
|
selection: EditorSelection
|
|
1960
|
-
|
|
1950
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
1961
1951
|
internalDrag?: {
|
|
1962
1952
|
ghost?: HTMLElement
|
|
1963
1953
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2153,7 +2143,7 @@ declare const editorMachine: StateMachine<
|
|
|
2153
2143
|
initialReadOnly: boolean
|
|
2154
2144
|
maxBlocks: number | undefined
|
|
2155
2145
|
selection: EditorSelection
|
|
2156
|
-
|
|
2146
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
2157
2147
|
internalDrag?: {
|
|
2158
2148
|
ghost?: HTMLElement
|
|
2159
2149
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2300,7 +2290,7 @@ declare const editorMachine: StateMachine<
|
|
|
2300
2290
|
initialReadOnly: boolean
|
|
2301
2291
|
maxBlocks: number | undefined
|
|
2302
2292
|
selection: EditorSelection
|
|
2303
|
-
|
|
2293
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
2304
2294
|
internalDrag?: {
|
|
2305
2295
|
ghost?: HTMLElement
|
|
2306
2296
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2496,7 +2486,7 @@ declare const editorMachine: StateMachine<
|
|
|
2496
2486
|
initialReadOnly: boolean
|
|
2497
2487
|
maxBlocks: number | undefined
|
|
2498
2488
|
selection: EditorSelection
|
|
2499
|
-
|
|
2489
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
2500
2490
|
internalDrag?: {
|
|
2501
2491
|
ghost?: HTMLElement
|
|
2502
2492
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2691,7 +2681,7 @@ declare const editorMachine: StateMachine<
|
|
|
2691
2681
|
initialReadOnly: boolean
|
|
2692
2682
|
maxBlocks: number | undefined
|
|
2693
2683
|
selection: EditorSelection
|
|
2694
|
-
|
|
2684
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
2695
2685
|
internalDrag?: {
|
|
2696
2686
|
ghost?: HTMLElement
|
|
2697
2687
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2885,7 +2875,7 @@ declare const editorMachine: StateMachine<
|
|
|
2885
2875
|
initialReadOnly: boolean
|
|
2886
2876
|
maxBlocks: number | undefined
|
|
2887
2877
|
selection: EditorSelection
|
|
2888
|
-
|
|
2878
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
2889
2879
|
internalDrag?: {
|
|
2890
2880
|
ghost?: HTMLElement
|
|
2891
2881
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3086,7 +3076,7 @@ declare const editorMachine: StateMachine<
|
|
|
3086
3076
|
initialReadOnly: boolean
|
|
3087
3077
|
maxBlocks: number | undefined
|
|
3088
3078
|
selection: EditorSelection
|
|
3089
|
-
|
|
3079
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3090
3080
|
internalDrag?: {
|
|
3091
3081
|
ghost?: HTMLElement
|
|
3092
3082
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3281,7 +3271,7 @@ declare const editorMachine: StateMachine<
|
|
|
3281
3271
|
initialReadOnly: boolean
|
|
3282
3272
|
maxBlocks: number | undefined
|
|
3283
3273
|
selection: EditorSelection
|
|
3284
|
-
|
|
3274
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3285
3275
|
internalDrag?: {
|
|
3286
3276
|
ghost?: HTMLElement
|
|
3287
3277
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3433,7 +3423,7 @@ declare const editorMachine: StateMachine<
|
|
|
3433
3423
|
initialReadOnly: boolean
|
|
3434
3424
|
maxBlocks: number | undefined
|
|
3435
3425
|
selection: EditorSelection
|
|
3436
|
-
|
|
3426
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3437
3427
|
internalDrag?: {
|
|
3438
3428
|
ghost?: HTMLElement
|
|
3439
3429
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3582,7 +3572,7 @@ declare const editorMachine: StateMachine<
|
|
|
3582
3572
|
initialReadOnly: boolean
|
|
3583
3573
|
maxBlocks: number | undefined
|
|
3584
3574
|
selection: EditorSelection
|
|
3585
|
-
|
|
3575
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3586
3576
|
internalDrag?: {
|
|
3587
3577
|
ghost?: HTMLElement
|
|
3588
3578
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3743,7 +3733,7 @@ declare const editorMachine: StateMachine<
|
|
|
3743
3733
|
initialReadOnly: boolean
|
|
3744
3734
|
maxBlocks: number | undefined
|
|
3745
3735
|
selection: EditorSelection
|
|
3746
|
-
|
|
3736
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3747
3737
|
internalDrag?: {
|
|
3748
3738
|
ghost?: HTMLElement
|
|
3749
3739
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3781,7 +3771,7 @@ declare const editorMachine: StateMachine<
|
|
|
3781
3771
|
initialReadOnly: boolean
|
|
3782
3772
|
maxBlocks: number | undefined
|
|
3783
3773
|
selection: EditorSelection
|
|
3784
|
-
|
|
3774
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3785
3775
|
internalDrag?: {
|
|
3786
3776
|
ghost?: HTMLElement
|
|
3787
3777
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3813,7 +3803,7 @@ declare const editorMachine: StateMachine<
|
|
|
3813
3803
|
initialReadOnly: boolean
|
|
3814
3804
|
maxBlocks: number | undefined
|
|
3815
3805
|
selection: EditorSelection
|
|
3816
|
-
|
|
3806
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3817
3807
|
internalDrag?: {
|
|
3818
3808
|
ghost?: HTMLElement
|
|
3819
3809
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3846,7 +3836,7 @@ declare const editorMachine: StateMachine<
|
|
|
3846
3836
|
initialReadOnly: boolean
|
|
3847
3837
|
maxBlocks: number | undefined
|
|
3848
3838
|
selection: EditorSelection
|
|
3849
|
-
|
|
3839
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3850
3840
|
internalDrag?: {
|
|
3851
3841
|
ghost?: HTMLElement
|
|
3852
3842
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3882,7 +3872,7 @@ declare const editorMachine: StateMachine<
|
|
|
3882
3872
|
initialReadOnly: boolean
|
|
3883
3873
|
maxBlocks: number | undefined
|
|
3884
3874
|
selection: EditorSelection
|
|
3885
|
-
|
|
3875
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3886
3876
|
internalDrag?: {
|
|
3887
3877
|
ghost?: HTMLElement
|
|
3888
3878
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -4039,7 +4029,7 @@ declare const editorMachine: StateMachine<
|
|
|
4039
4029
|
initialReadOnly: boolean
|
|
4040
4030
|
maxBlocks: number | undefined
|
|
4041
4031
|
selection: EditorSelection
|
|
4042
|
-
|
|
4032
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
4043
4033
|
internalDrag?: {
|
|
4044
4034
|
ghost?: HTMLElement
|
|
4045
4035
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -4296,7 +4286,7 @@ declare const editorMachine: StateMachine<
|
|
|
4296
4286
|
initialReadOnly: boolean
|
|
4297
4287
|
maxBlocks: number | undefined
|
|
4298
4288
|
selection: EditorSelection
|
|
4299
|
-
|
|
4289
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
4300
4290
|
internalDrag?: {
|
|
4301
4291
|
ghost?: HTMLElement
|
|
4302
4292
|
origin: Pick<EventPosition, 'selection'>
|
package/lib/selectors/index.d.ts
CHANGED
|
@@ -276,11 +276,6 @@ declare type BehaviorAction =
|
|
|
276
276
|
*/
|
|
277
277
|
declare type BehaviorActionSet<TBehaviorEvent, TGuardResponse> = (
|
|
278
278
|
payload: {
|
|
279
|
-
/**
|
|
280
|
-
* @deprecated
|
|
281
|
-
* Use `snapshot` instead
|
|
282
|
-
*/
|
|
283
|
-
context: EditorContext
|
|
284
279
|
snapshot: EditorSnapshot
|
|
285
280
|
event: TBehaviorEvent
|
|
286
281
|
},
|
|
@@ -306,11 +301,6 @@ declare type BehaviorEventTypeNamespace =
|
|
|
306
301
|
* @beta
|
|
307
302
|
*/
|
|
308
303
|
declare type BehaviorGuard<TBehaviorEvent, TGuardResponse> = (payload: {
|
|
309
|
-
/**
|
|
310
|
-
* @deprecated
|
|
311
|
-
* Use `snapshot` instead
|
|
312
|
-
*/
|
|
313
|
-
context: EditorContext
|
|
314
304
|
snapshot: EditorSnapshot
|
|
315
305
|
event: TBehaviorEvent
|
|
316
306
|
}) => TGuardResponse | false
|
|
@@ -592,7 +582,7 @@ declare const editorMachine: StateMachine<
|
|
|
592
582
|
initialReadOnly: boolean
|
|
593
583
|
maxBlocks: number | undefined
|
|
594
584
|
selection: EditorSelection
|
|
595
|
-
|
|
585
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
596
586
|
internalDrag?: {
|
|
597
587
|
ghost?: HTMLElement
|
|
598
588
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -799,7 +789,7 @@ declare const editorMachine: StateMachine<
|
|
|
799
789
|
maxBlocks?: number
|
|
800
790
|
readOnly?: boolean
|
|
801
791
|
schema: EditorSchema
|
|
802
|
-
|
|
792
|
+
initialValue?: Array<PortableTextBlock>
|
|
803
793
|
},
|
|
804
794
|
NonReducibleUnknown,
|
|
805
795
|
| PatchEvent
|
|
@@ -884,7 +874,7 @@ declare const editorMachine: StateMachine<
|
|
|
884
874
|
maxBlocks?: number
|
|
885
875
|
readOnly?: boolean
|
|
886
876
|
schema: EditorSchema
|
|
887
|
-
|
|
877
|
+
initialValue?: Array<PortableTextBlock>
|
|
888
878
|
}
|
|
889
879
|
self: ActorRef<
|
|
890
880
|
MachineSnapshot<
|
|
@@ -897,7 +887,7 @@ declare const editorMachine: StateMachine<
|
|
|
897
887
|
initialReadOnly: boolean
|
|
898
888
|
maxBlocks: number | undefined
|
|
899
889
|
selection: EditorSelection
|
|
900
|
-
|
|
890
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
901
891
|
internalDrag?: {
|
|
902
892
|
ghost?: HTMLElement
|
|
903
893
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1161,7 +1151,7 @@ declare const editorMachine: StateMachine<
|
|
|
1161
1151
|
selection: null
|
|
1162
1152
|
initialReadOnly: boolean
|
|
1163
1153
|
maxBlocks: number | undefined
|
|
1164
|
-
|
|
1154
|
+
incomingValue: PortableTextBlock[] | undefined
|
|
1165
1155
|
}
|
|
1166
1156
|
readonly on: {
|
|
1167
1157
|
readonly 'notify.blurred': {
|
|
@@ -1175,7 +1165,7 @@ declare const editorMachine: StateMachine<
|
|
|
1175
1165
|
initialReadOnly: boolean
|
|
1176
1166
|
maxBlocks: number | undefined
|
|
1177
1167
|
selection: EditorSelection
|
|
1178
|
-
|
|
1168
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
1179
1169
|
internalDrag?: {
|
|
1180
1170
|
ghost?: HTMLElement
|
|
1181
1171
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1370,7 +1360,7 @@ declare const editorMachine: StateMachine<
|
|
|
1370
1360
|
initialReadOnly: boolean
|
|
1371
1361
|
maxBlocks: number | undefined
|
|
1372
1362
|
selection: EditorSelection
|
|
1373
|
-
|
|
1363
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
1374
1364
|
internalDrag?: {
|
|
1375
1365
|
ghost?: HTMLElement
|
|
1376
1366
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1564,7 +1554,7 @@ declare const editorMachine: StateMachine<
|
|
|
1564
1554
|
initialReadOnly: boolean
|
|
1565
1555
|
maxBlocks: number | undefined
|
|
1566
1556
|
selection: EditorSelection
|
|
1567
|
-
|
|
1557
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
1568
1558
|
internalDrag?: {
|
|
1569
1559
|
ghost?: HTMLElement
|
|
1570
1560
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1761,7 +1751,7 @@ declare const editorMachine: StateMachine<
|
|
|
1761
1751
|
initialReadOnly: boolean
|
|
1762
1752
|
maxBlocks: number | undefined
|
|
1763
1753
|
selection: EditorSelection
|
|
1764
|
-
|
|
1754
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
1765
1755
|
internalDrag?: {
|
|
1766
1756
|
ghost?: HTMLElement
|
|
1767
1757
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1957,7 +1947,7 @@ declare const editorMachine: StateMachine<
|
|
|
1957
1947
|
initialReadOnly: boolean
|
|
1958
1948
|
maxBlocks: number | undefined
|
|
1959
1949
|
selection: EditorSelection
|
|
1960
|
-
|
|
1950
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
1961
1951
|
internalDrag?: {
|
|
1962
1952
|
ghost?: HTMLElement
|
|
1963
1953
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2153,7 +2143,7 @@ declare const editorMachine: StateMachine<
|
|
|
2153
2143
|
initialReadOnly: boolean
|
|
2154
2144
|
maxBlocks: number | undefined
|
|
2155
2145
|
selection: EditorSelection
|
|
2156
|
-
|
|
2146
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
2157
2147
|
internalDrag?: {
|
|
2158
2148
|
ghost?: HTMLElement
|
|
2159
2149
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2300,7 +2290,7 @@ declare const editorMachine: StateMachine<
|
|
|
2300
2290
|
initialReadOnly: boolean
|
|
2301
2291
|
maxBlocks: number | undefined
|
|
2302
2292
|
selection: EditorSelection
|
|
2303
|
-
|
|
2293
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
2304
2294
|
internalDrag?: {
|
|
2305
2295
|
ghost?: HTMLElement
|
|
2306
2296
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2496,7 +2486,7 @@ declare const editorMachine: StateMachine<
|
|
|
2496
2486
|
initialReadOnly: boolean
|
|
2497
2487
|
maxBlocks: number | undefined
|
|
2498
2488
|
selection: EditorSelection
|
|
2499
|
-
|
|
2489
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
2500
2490
|
internalDrag?: {
|
|
2501
2491
|
ghost?: HTMLElement
|
|
2502
2492
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2691,7 +2681,7 @@ declare const editorMachine: StateMachine<
|
|
|
2691
2681
|
initialReadOnly: boolean
|
|
2692
2682
|
maxBlocks: number | undefined
|
|
2693
2683
|
selection: EditorSelection
|
|
2694
|
-
|
|
2684
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
2695
2685
|
internalDrag?: {
|
|
2696
2686
|
ghost?: HTMLElement
|
|
2697
2687
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2885,7 +2875,7 @@ declare const editorMachine: StateMachine<
|
|
|
2885
2875
|
initialReadOnly: boolean
|
|
2886
2876
|
maxBlocks: number | undefined
|
|
2887
2877
|
selection: EditorSelection
|
|
2888
|
-
|
|
2878
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
2889
2879
|
internalDrag?: {
|
|
2890
2880
|
ghost?: HTMLElement
|
|
2891
2881
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3086,7 +3076,7 @@ declare const editorMachine: StateMachine<
|
|
|
3086
3076
|
initialReadOnly: boolean
|
|
3087
3077
|
maxBlocks: number | undefined
|
|
3088
3078
|
selection: EditorSelection
|
|
3089
|
-
|
|
3079
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3090
3080
|
internalDrag?: {
|
|
3091
3081
|
ghost?: HTMLElement
|
|
3092
3082
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3281,7 +3271,7 @@ declare const editorMachine: StateMachine<
|
|
|
3281
3271
|
initialReadOnly: boolean
|
|
3282
3272
|
maxBlocks: number | undefined
|
|
3283
3273
|
selection: EditorSelection
|
|
3284
|
-
|
|
3274
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3285
3275
|
internalDrag?: {
|
|
3286
3276
|
ghost?: HTMLElement
|
|
3287
3277
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3433,7 +3423,7 @@ declare const editorMachine: StateMachine<
|
|
|
3433
3423
|
initialReadOnly: boolean
|
|
3434
3424
|
maxBlocks: number | undefined
|
|
3435
3425
|
selection: EditorSelection
|
|
3436
|
-
|
|
3426
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3437
3427
|
internalDrag?: {
|
|
3438
3428
|
ghost?: HTMLElement
|
|
3439
3429
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3582,7 +3572,7 @@ declare const editorMachine: StateMachine<
|
|
|
3582
3572
|
initialReadOnly: boolean
|
|
3583
3573
|
maxBlocks: number | undefined
|
|
3584
3574
|
selection: EditorSelection
|
|
3585
|
-
|
|
3575
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3586
3576
|
internalDrag?: {
|
|
3587
3577
|
ghost?: HTMLElement
|
|
3588
3578
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3743,7 +3733,7 @@ declare const editorMachine: StateMachine<
|
|
|
3743
3733
|
initialReadOnly: boolean
|
|
3744
3734
|
maxBlocks: number | undefined
|
|
3745
3735
|
selection: EditorSelection
|
|
3746
|
-
|
|
3736
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3747
3737
|
internalDrag?: {
|
|
3748
3738
|
ghost?: HTMLElement
|
|
3749
3739
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3781,7 +3771,7 @@ declare const editorMachine: StateMachine<
|
|
|
3781
3771
|
initialReadOnly: boolean
|
|
3782
3772
|
maxBlocks: number | undefined
|
|
3783
3773
|
selection: EditorSelection
|
|
3784
|
-
|
|
3774
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3785
3775
|
internalDrag?: {
|
|
3786
3776
|
ghost?: HTMLElement
|
|
3787
3777
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3813,7 +3803,7 @@ declare const editorMachine: StateMachine<
|
|
|
3813
3803
|
initialReadOnly: boolean
|
|
3814
3804
|
maxBlocks: number | undefined
|
|
3815
3805
|
selection: EditorSelection
|
|
3816
|
-
|
|
3806
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3817
3807
|
internalDrag?: {
|
|
3818
3808
|
ghost?: HTMLElement
|
|
3819
3809
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3846,7 +3836,7 @@ declare const editorMachine: StateMachine<
|
|
|
3846
3836
|
initialReadOnly: boolean
|
|
3847
3837
|
maxBlocks: number | undefined
|
|
3848
3838
|
selection: EditorSelection
|
|
3849
|
-
|
|
3839
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3850
3840
|
internalDrag?: {
|
|
3851
3841
|
ghost?: HTMLElement
|
|
3852
3842
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3882,7 +3872,7 @@ declare const editorMachine: StateMachine<
|
|
|
3882
3872
|
initialReadOnly: boolean
|
|
3883
3873
|
maxBlocks: number | undefined
|
|
3884
3874
|
selection: EditorSelection
|
|
3885
|
-
|
|
3875
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3886
3876
|
internalDrag?: {
|
|
3887
3877
|
ghost?: HTMLElement
|
|
3888
3878
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -4039,7 +4029,7 @@ declare const editorMachine: StateMachine<
|
|
|
4039
4029
|
initialReadOnly: boolean
|
|
4040
4030
|
maxBlocks: number | undefined
|
|
4041
4031
|
selection: EditorSelection
|
|
4042
|
-
|
|
4032
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
4043
4033
|
internalDrag?: {
|
|
4044
4034
|
ghost?: HTMLElement
|
|
4045
4035
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -4296,7 +4286,7 @@ declare const editorMachine: StateMachine<
|
|
|
4296
4286
|
initialReadOnly: boolean
|
|
4297
4287
|
maxBlocks: number | undefined
|
|
4298
4288
|
selection: EditorSelection
|
|
4299
|
-
|
|
4289
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
4300
4290
|
internalDrag?: {
|
|
4301
4291
|
ghost?: HTMLElement
|
|
4302
4292
|
origin: Pick<EventPosition, 'selection'>
|