@portabletext/editor 1.45.3 → 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-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/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 +1 -1
- 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/lib/plugins/index.d.cts
CHANGED
|
@@ -277,11 +277,6 @@ declare type BehaviorAction =
|
|
|
277
277
|
*/
|
|
278
278
|
declare type BehaviorActionSet<TBehaviorEvent, TGuardResponse> = (
|
|
279
279
|
payload: {
|
|
280
|
-
/**
|
|
281
|
-
* @deprecated
|
|
282
|
-
* Use `snapshot` instead
|
|
283
|
-
*/
|
|
284
|
-
context: EditorContext
|
|
285
280
|
snapshot: EditorSnapshot
|
|
286
281
|
event: TBehaviorEvent
|
|
287
282
|
},
|
|
@@ -307,11 +302,6 @@ declare type BehaviorEventTypeNamespace =
|
|
|
307
302
|
* @beta
|
|
308
303
|
*/
|
|
309
304
|
declare type BehaviorGuard<TBehaviorEvent, TGuardResponse> = (payload: {
|
|
310
|
-
/**
|
|
311
|
-
* @deprecated
|
|
312
|
-
* Use `snapshot` instead
|
|
313
|
-
*/
|
|
314
|
-
context: EditorContext
|
|
315
305
|
snapshot: EditorSnapshot
|
|
316
306
|
event: TBehaviorEvent
|
|
317
307
|
}) => TGuardResponse | false
|
|
@@ -683,7 +673,7 @@ declare const editorMachine: StateMachine<
|
|
|
683
673
|
initialReadOnly: boolean
|
|
684
674
|
maxBlocks: number | undefined
|
|
685
675
|
selection: EditorSelection
|
|
686
|
-
|
|
676
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
687
677
|
internalDrag?: {
|
|
688
678
|
ghost?: HTMLElement
|
|
689
679
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -890,7 +880,7 @@ declare const editorMachine: StateMachine<
|
|
|
890
880
|
maxBlocks?: number
|
|
891
881
|
readOnly?: boolean
|
|
892
882
|
schema: EditorSchema
|
|
893
|
-
|
|
883
|
+
initialValue?: Array<PortableTextBlock>
|
|
894
884
|
},
|
|
895
885
|
NonReducibleUnknown,
|
|
896
886
|
| PatchEvent
|
|
@@ -975,7 +965,7 @@ declare const editorMachine: StateMachine<
|
|
|
975
965
|
maxBlocks?: number
|
|
976
966
|
readOnly?: boolean
|
|
977
967
|
schema: EditorSchema
|
|
978
|
-
|
|
968
|
+
initialValue?: Array<PortableTextBlock>
|
|
979
969
|
}
|
|
980
970
|
self: ActorRef<
|
|
981
971
|
MachineSnapshot<
|
|
@@ -988,7 +978,7 @@ declare const editorMachine: StateMachine<
|
|
|
988
978
|
initialReadOnly: boolean
|
|
989
979
|
maxBlocks: number | undefined
|
|
990
980
|
selection: EditorSelection
|
|
991
|
-
|
|
981
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
992
982
|
internalDrag?: {
|
|
993
983
|
ghost?: HTMLElement
|
|
994
984
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1252,7 +1242,7 @@ declare const editorMachine: StateMachine<
|
|
|
1252
1242
|
selection: null
|
|
1253
1243
|
initialReadOnly: boolean
|
|
1254
1244
|
maxBlocks: number | undefined
|
|
1255
|
-
|
|
1245
|
+
incomingValue: PortableTextBlock[] | undefined
|
|
1256
1246
|
}
|
|
1257
1247
|
readonly on: {
|
|
1258
1248
|
readonly 'notify.blurred': {
|
|
@@ -1266,7 +1256,7 @@ declare const editorMachine: StateMachine<
|
|
|
1266
1256
|
initialReadOnly: boolean
|
|
1267
1257
|
maxBlocks: number | undefined
|
|
1268
1258
|
selection: EditorSelection
|
|
1269
|
-
|
|
1259
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
1270
1260
|
internalDrag?: {
|
|
1271
1261
|
ghost?: HTMLElement
|
|
1272
1262
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1461,7 +1451,7 @@ declare const editorMachine: StateMachine<
|
|
|
1461
1451
|
initialReadOnly: boolean
|
|
1462
1452
|
maxBlocks: number | undefined
|
|
1463
1453
|
selection: EditorSelection
|
|
1464
|
-
|
|
1454
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
1465
1455
|
internalDrag?: {
|
|
1466
1456
|
ghost?: HTMLElement
|
|
1467
1457
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1655,7 +1645,7 @@ declare const editorMachine: StateMachine<
|
|
|
1655
1645
|
initialReadOnly: boolean
|
|
1656
1646
|
maxBlocks: number | undefined
|
|
1657
1647
|
selection: EditorSelection
|
|
1658
|
-
|
|
1648
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
1659
1649
|
internalDrag?: {
|
|
1660
1650
|
ghost?: HTMLElement
|
|
1661
1651
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1852,7 +1842,7 @@ declare const editorMachine: StateMachine<
|
|
|
1852
1842
|
initialReadOnly: boolean
|
|
1853
1843
|
maxBlocks: number | undefined
|
|
1854
1844
|
selection: EditorSelection
|
|
1855
|
-
|
|
1845
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
1856
1846
|
internalDrag?: {
|
|
1857
1847
|
ghost?: HTMLElement
|
|
1858
1848
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2048,7 +2038,7 @@ declare const editorMachine: StateMachine<
|
|
|
2048
2038
|
initialReadOnly: boolean
|
|
2049
2039
|
maxBlocks: number | undefined
|
|
2050
2040
|
selection: EditorSelection
|
|
2051
|
-
|
|
2041
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
2052
2042
|
internalDrag?: {
|
|
2053
2043
|
ghost?: HTMLElement
|
|
2054
2044
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2244,7 +2234,7 @@ declare const editorMachine: StateMachine<
|
|
|
2244
2234
|
initialReadOnly: boolean
|
|
2245
2235
|
maxBlocks: number | undefined
|
|
2246
2236
|
selection: EditorSelection
|
|
2247
|
-
|
|
2237
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
2248
2238
|
internalDrag?: {
|
|
2249
2239
|
ghost?: HTMLElement
|
|
2250
2240
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2391,7 +2381,7 @@ declare const editorMachine: StateMachine<
|
|
|
2391
2381
|
initialReadOnly: boolean
|
|
2392
2382
|
maxBlocks: number | undefined
|
|
2393
2383
|
selection: EditorSelection
|
|
2394
|
-
|
|
2384
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
2395
2385
|
internalDrag?: {
|
|
2396
2386
|
ghost?: HTMLElement
|
|
2397
2387
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2587,7 +2577,7 @@ declare const editorMachine: StateMachine<
|
|
|
2587
2577
|
initialReadOnly: boolean
|
|
2588
2578
|
maxBlocks: number | undefined
|
|
2589
2579
|
selection: EditorSelection
|
|
2590
|
-
|
|
2580
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
2591
2581
|
internalDrag?: {
|
|
2592
2582
|
ghost?: HTMLElement
|
|
2593
2583
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2782,7 +2772,7 @@ declare const editorMachine: StateMachine<
|
|
|
2782
2772
|
initialReadOnly: boolean
|
|
2783
2773
|
maxBlocks: number | undefined
|
|
2784
2774
|
selection: EditorSelection
|
|
2785
|
-
|
|
2775
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
2786
2776
|
internalDrag?: {
|
|
2787
2777
|
ghost?: HTMLElement
|
|
2788
2778
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2976,7 +2966,7 @@ declare const editorMachine: StateMachine<
|
|
|
2976
2966
|
initialReadOnly: boolean
|
|
2977
2967
|
maxBlocks: number | undefined
|
|
2978
2968
|
selection: EditorSelection
|
|
2979
|
-
|
|
2969
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
2980
2970
|
internalDrag?: {
|
|
2981
2971
|
ghost?: HTMLElement
|
|
2982
2972
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3177,7 +3167,7 @@ declare const editorMachine: StateMachine<
|
|
|
3177
3167
|
initialReadOnly: boolean
|
|
3178
3168
|
maxBlocks: number | undefined
|
|
3179
3169
|
selection: EditorSelection
|
|
3180
|
-
|
|
3170
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3181
3171
|
internalDrag?: {
|
|
3182
3172
|
ghost?: HTMLElement
|
|
3183
3173
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3372,7 +3362,7 @@ declare const editorMachine: StateMachine<
|
|
|
3372
3362
|
initialReadOnly: boolean
|
|
3373
3363
|
maxBlocks: number | undefined
|
|
3374
3364
|
selection: EditorSelection
|
|
3375
|
-
|
|
3365
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3376
3366
|
internalDrag?: {
|
|
3377
3367
|
ghost?: HTMLElement
|
|
3378
3368
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3524,7 +3514,7 @@ declare const editorMachine: StateMachine<
|
|
|
3524
3514
|
initialReadOnly: boolean
|
|
3525
3515
|
maxBlocks: number | undefined
|
|
3526
3516
|
selection: EditorSelection
|
|
3527
|
-
|
|
3517
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3528
3518
|
internalDrag?: {
|
|
3529
3519
|
ghost?: HTMLElement
|
|
3530
3520
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3673,7 +3663,7 @@ declare const editorMachine: StateMachine<
|
|
|
3673
3663
|
initialReadOnly: boolean
|
|
3674
3664
|
maxBlocks: number | undefined
|
|
3675
3665
|
selection: EditorSelection
|
|
3676
|
-
|
|
3666
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3677
3667
|
internalDrag?: {
|
|
3678
3668
|
ghost?: HTMLElement
|
|
3679
3669
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3834,7 +3824,7 @@ declare const editorMachine: StateMachine<
|
|
|
3834
3824
|
initialReadOnly: boolean
|
|
3835
3825
|
maxBlocks: number | undefined
|
|
3836
3826
|
selection: EditorSelection
|
|
3837
|
-
|
|
3827
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3838
3828
|
internalDrag?: {
|
|
3839
3829
|
ghost?: HTMLElement
|
|
3840
3830
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3872,7 +3862,7 @@ declare const editorMachine: StateMachine<
|
|
|
3872
3862
|
initialReadOnly: boolean
|
|
3873
3863
|
maxBlocks: number | undefined
|
|
3874
3864
|
selection: EditorSelection
|
|
3875
|
-
|
|
3865
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3876
3866
|
internalDrag?: {
|
|
3877
3867
|
ghost?: HTMLElement
|
|
3878
3868
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3904,7 +3894,7 @@ declare const editorMachine: StateMachine<
|
|
|
3904
3894
|
initialReadOnly: boolean
|
|
3905
3895
|
maxBlocks: number | undefined
|
|
3906
3896
|
selection: EditorSelection
|
|
3907
|
-
|
|
3897
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3908
3898
|
internalDrag?: {
|
|
3909
3899
|
ghost?: HTMLElement
|
|
3910
3900
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3937,7 +3927,7 @@ declare const editorMachine: StateMachine<
|
|
|
3937
3927
|
initialReadOnly: boolean
|
|
3938
3928
|
maxBlocks: number | undefined
|
|
3939
3929
|
selection: EditorSelection
|
|
3940
|
-
|
|
3930
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3941
3931
|
internalDrag?: {
|
|
3942
3932
|
ghost?: HTMLElement
|
|
3943
3933
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3973,7 +3963,7 @@ declare const editorMachine: StateMachine<
|
|
|
3973
3963
|
initialReadOnly: boolean
|
|
3974
3964
|
maxBlocks: number | undefined
|
|
3975
3965
|
selection: EditorSelection
|
|
3976
|
-
|
|
3966
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3977
3967
|
internalDrag?: {
|
|
3978
3968
|
ghost?: HTMLElement
|
|
3979
3969
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -4130,7 +4120,7 @@ declare const editorMachine: StateMachine<
|
|
|
4130
4120
|
initialReadOnly: boolean
|
|
4131
4121
|
maxBlocks: number | undefined
|
|
4132
4122
|
selection: EditorSelection
|
|
4133
|
-
|
|
4123
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
4134
4124
|
internalDrag?: {
|
|
4135
4125
|
ghost?: HTMLElement
|
|
4136
4126
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -4387,7 +4377,7 @@ declare const editorMachine: StateMachine<
|
|
|
4387
4377
|
initialReadOnly: boolean
|
|
4388
4378
|
maxBlocks: number | undefined
|
|
4389
4379
|
selection: EditorSelection
|
|
4390
|
-
|
|
4380
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
4391
4381
|
internalDrag?: {
|
|
4392
4382
|
ghost?: HTMLElement
|
|
4393
4383
|
origin: Pick<EventPosition, 'selection'>
|
package/lib/plugins/index.d.ts
CHANGED
|
@@ -277,11 +277,6 @@ declare type BehaviorAction =
|
|
|
277
277
|
*/
|
|
278
278
|
declare type BehaviorActionSet<TBehaviorEvent, TGuardResponse> = (
|
|
279
279
|
payload: {
|
|
280
|
-
/**
|
|
281
|
-
* @deprecated
|
|
282
|
-
* Use `snapshot` instead
|
|
283
|
-
*/
|
|
284
|
-
context: EditorContext
|
|
285
280
|
snapshot: EditorSnapshot
|
|
286
281
|
event: TBehaviorEvent
|
|
287
282
|
},
|
|
@@ -307,11 +302,6 @@ declare type BehaviorEventTypeNamespace =
|
|
|
307
302
|
* @beta
|
|
308
303
|
*/
|
|
309
304
|
declare type BehaviorGuard<TBehaviorEvent, TGuardResponse> = (payload: {
|
|
310
|
-
/**
|
|
311
|
-
* @deprecated
|
|
312
|
-
* Use `snapshot` instead
|
|
313
|
-
*/
|
|
314
|
-
context: EditorContext
|
|
315
305
|
snapshot: EditorSnapshot
|
|
316
306
|
event: TBehaviorEvent
|
|
317
307
|
}) => TGuardResponse | false
|
|
@@ -683,7 +673,7 @@ declare const editorMachine: StateMachine<
|
|
|
683
673
|
initialReadOnly: boolean
|
|
684
674
|
maxBlocks: number | undefined
|
|
685
675
|
selection: EditorSelection
|
|
686
|
-
|
|
676
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
687
677
|
internalDrag?: {
|
|
688
678
|
ghost?: HTMLElement
|
|
689
679
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -890,7 +880,7 @@ declare const editorMachine: StateMachine<
|
|
|
890
880
|
maxBlocks?: number
|
|
891
881
|
readOnly?: boolean
|
|
892
882
|
schema: EditorSchema
|
|
893
|
-
|
|
883
|
+
initialValue?: Array<PortableTextBlock>
|
|
894
884
|
},
|
|
895
885
|
NonReducibleUnknown,
|
|
896
886
|
| PatchEvent
|
|
@@ -975,7 +965,7 @@ declare const editorMachine: StateMachine<
|
|
|
975
965
|
maxBlocks?: number
|
|
976
966
|
readOnly?: boolean
|
|
977
967
|
schema: EditorSchema
|
|
978
|
-
|
|
968
|
+
initialValue?: Array<PortableTextBlock>
|
|
979
969
|
}
|
|
980
970
|
self: ActorRef<
|
|
981
971
|
MachineSnapshot<
|
|
@@ -988,7 +978,7 @@ declare const editorMachine: StateMachine<
|
|
|
988
978
|
initialReadOnly: boolean
|
|
989
979
|
maxBlocks: number | undefined
|
|
990
980
|
selection: EditorSelection
|
|
991
|
-
|
|
981
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
992
982
|
internalDrag?: {
|
|
993
983
|
ghost?: HTMLElement
|
|
994
984
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1252,7 +1242,7 @@ declare const editorMachine: StateMachine<
|
|
|
1252
1242
|
selection: null
|
|
1253
1243
|
initialReadOnly: boolean
|
|
1254
1244
|
maxBlocks: number | undefined
|
|
1255
|
-
|
|
1245
|
+
incomingValue: PortableTextBlock[] | undefined
|
|
1256
1246
|
}
|
|
1257
1247
|
readonly on: {
|
|
1258
1248
|
readonly 'notify.blurred': {
|
|
@@ -1266,7 +1256,7 @@ declare const editorMachine: StateMachine<
|
|
|
1266
1256
|
initialReadOnly: boolean
|
|
1267
1257
|
maxBlocks: number | undefined
|
|
1268
1258
|
selection: EditorSelection
|
|
1269
|
-
|
|
1259
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
1270
1260
|
internalDrag?: {
|
|
1271
1261
|
ghost?: HTMLElement
|
|
1272
1262
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1461,7 +1451,7 @@ declare const editorMachine: StateMachine<
|
|
|
1461
1451
|
initialReadOnly: boolean
|
|
1462
1452
|
maxBlocks: number | undefined
|
|
1463
1453
|
selection: EditorSelection
|
|
1464
|
-
|
|
1454
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
1465
1455
|
internalDrag?: {
|
|
1466
1456
|
ghost?: HTMLElement
|
|
1467
1457
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1655,7 +1645,7 @@ declare const editorMachine: StateMachine<
|
|
|
1655
1645
|
initialReadOnly: boolean
|
|
1656
1646
|
maxBlocks: number | undefined
|
|
1657
1647
|
selection: EditorSelection
|
|
1658
|
-
|
|
1648
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
1659
1649
|
internalDrag?: {
|
|
1660
1650
|
ghost?: HTMLElement
|
|
1661
1651
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1852,7 +1842,7 @@ declare const editorMachine: StateMachine<
|
|
|
1852
1842
|
initialReadOnly: boolean
|
|
1853
1843
|
maxBlocks: number | undefined
|
|
1854
1844
|
selection: EditorSelection
|
|
1855
|
-
|
|
1845
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
1856
1846
|
internalDrag?: {
|
|
1857
1847
|
ghost?: HTMLElement
|
|
1858
1848
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2048,7 +2038,7 @@ declare const editorMachine: StateMachine<
|
|
|
2048
2038
|
initialReadOnly: boolean
|
|
2049
2039
|
maxBlocks: number | undefined
|
|
2050
2040
|
selection: EditorSelection
|
|
2051
|
-
|
|
2041
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
2052
2042
|
internalDrag?: {
|
|
2053
2043
|
ghost?: HTMLElement
|
|
2054
2044
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2244,7 +2234,7 @@ declare const editorMachine: StateMachine<
|
|
|
2244
2234
|
initialReadOnly: boolean
|
|
2245
2235
|
maxBlocks: number | undefined
|
|
2246
2236
|
selection: EditorSelection
|
|
2247
|
-
|
|
2237
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
2248
2238
|
internalDrag?: {
|
|
2249
2239
|
ghost?: HTMLElement
|
|
2250
2240
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2391,7 +2381,7 @@ declare const editorMachine: StateMachine<
|
|
|
2391
2381
|
initialReadOnly: boolean
|
|
2392
2382
|
maxBlocks: number | undefined
|
|
2393
2383
|
selection: EditorSelection
|
|
2394
|
-
|
|
2384
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
2395
2385
|
internalDrag?: {
|
|
2396
2386
|
ghost?: HTMLElement
|
|
2397
2387
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2587,7 +2577,7 @@ declare const editorMachine: StateMachine<
|
|
|
2587
2577
|
initialReadOnly: boolean
|
|
2588
2578
|
maxBlocks: number | undefined
|
|
2589
2579
|
selection: EditorSelection
|
|
2590
|
-
|
|
2580
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
2591
2581
|
internalDrag?: {
|
|
2592
2582
|
ghost?: HTMLElement
|
|
2593
2583
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2782,7 +2772,7 @@ declare const editorMachine: StateMachine<
|
|
|
2782
2772
|
initialReadOnly: boolean
|
|
2783
2773
|
maxBlocks: number | undefined
|
|
2784
2774
|
selection: EditorSelection
|
|
2785
|
-
|
|
2775
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
2786
2776
|
internalDrag?: {
|
|
2787
2777
|
ghost?: HTMLElement
|
|
2788
2778
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2976,7 +2966,7 @@ declare const editorMachine: StateMachine<
|
|
|
2976
2966
|
initialReadOnly: boolean
|
|
2977
2967
|
maxBlocks: number | undefined
|
|
2978
2968
|
selection: EditorSelection
|
|
2979
|
-
|
|
2969
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
2980
2970
|
internalDrag?: {
|
|
2981
2971
|
ghost?: HTMLElement
|
|
2982
2972
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3177,7 +3167,7 @@ declare const editorMachine: StateMachine<
|
|
|
3177
3167
|
initialReadOnly: boolean
|
|
3178
3168
|
maxBlocks: number | undefined
|
|
3179
3169
|
selection: EditorSelection
|
|
3180
|
-
|
|
3170
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3181
3171
|
internalDrag?: {
|
|
3182
3172
|
ghost?: HTMLElement
|
|
3183
3173
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3372,7 +3362,7 @@ declare const editorMachine: StateMachine<
|
|
|
3372
3362
|
initialReadOnly: boolean
|
|
3373
3363
|
maxBlocks: number | undefined
|
|
3374
3364
|
selection: EditorSelection
|
|
3375
|
-
|
|
3365
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3376
3366
|
internalDrag?: {
|
|
3377
3367
|
ghost?: HTMLElement
|
|
3378
3368
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3524,7 +3514,7 @@ declare const editorMachine: StateMachine<
|
|
|
3524
3514
|
initialReadOnly: boolean
|
|
3525
3515
|
maxBlocks: number | undefined
|
|
3526
3516
|
selection: EditorSelection
|
|
3527
|
-
|
|
3517
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3528
3518
|
internalDrag?: {
|
|
3529
3519
|
ghost?: HTMLElement
|
|
3530
3520
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3673,7 +3663,7 @@ declare const editorMachine: StateMachine<
|
|
|
3673
3663
|
initialReadOnly: boolean
|
|
3674
3664
|
maxBlocks: number | undefined
|
|
3675
3665
|
selection: EditorSelection
|
|
3676
|
-
|
|
3666
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3677
3667
|
internalDrag?: {
|
|
3678
3668
|
ghost?: HTMLElement
|
|
3679
3669
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3834,7 +3824,7 @@ declare const editorMachine: StateMachine<
|
|
|
3834
3824
|
initialReadOnly: boolean
|
|
3835
3825
|
maxBlocks: number | undefined
|
|
3836
3826
|
selection: EditorSelection
|
|
3837
|
-
|
|
3827
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3838
3828
|
internalDrag?: {
|
|
3839
3829
|
ghost?: HTMLElement
|
|
3840
3830
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3872,7 +3862,7 @@ declare const editorMachine: StateMachine<
|
|
|
3872
3862
|
initialReadOnly: boolean
|
|
3873
3863
|
maxBlocks: number | undefined
|
|
3874
3864
|
selection: EditorSelection
|
|
3875
|
-
|
|
3865
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3876
3866
|
internalDrag?: {
|
|
3877
3867
|
ghost?: HTMLElement
|
|
3878
3868
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3904,7 +3894,7 @@ declare const editorMachine: StateMachine<
|
|
|
3904
3894
|
initialReadOnly: boolean
|
|
3905
3895
|
maxBlocks: number | undefined
|
|
3906
3896
|
selection: EditorSelection
|
|
3907
|
-
|
|
3897
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3908
3898
|
internalDrag?: {
|
|
3909
3899
|
ghost?: HTMLElement
|
|
3910
3900
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3937,7 +3927,7 @@ declare const editorMachine: StateMachine<
|
|
|
3937
3927
|
initialReadOnly: boolean
|
|
3938
3928
|
maxBlocks: number | undefined
|
|
3939
3929
|
selection: EditorSelection
|
|
3940
|
-
|
|
3930
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3941
3931
|
internalDrag?: {
|
|
3942
3932
|
ghost?: HTMLElement
|
|
3943
3933
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3973,7 +3963,7 @@ declare const editorMachine: StateMachine<
|
|
|
3973
3963
|
initialReadOnly: boolean
|
|
3974
3964
|
maxBlocks: number | undefined
|
|
3975
3965
|
selection: EditorSelection
|
|
3976
|
-
|
|
3966
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
3977
3967
|
internalDrag?: {
|
|
3978
3968
|
ghost?: HTMLElement
|
|
3979
3969
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -4130,7 +4120,7 @@ declare const editorMachine: StateMachine<
|
|
|
4130
4120
|
initialReadOnly: boolean
|
|
4131
4121
|
maxBlocks: number | undefined
|
|
4132
4122
|
selection: EditorSelection
|
|
4133
|
-
|
|
4123
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
4134
4124
|
internalDrag?: {
|
|
4135
4125
|
ghost?: HTMLElement
|
|
4136
4126
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -4387,7 +4377,7 @@ declare const editorMachine: StateMachine<
|
|
|
4387
4377
|
initialReadOnly: boolean
|
|
4388
4378
|
maxBlocks: number | undefined
|
|
4389
4379
|
selection: EditorSelection
|
|
4390
|
-
|
|
4380
|
+
incomingValue: Array<PortableTextBlock> | undefined
|
|
4391
4381
|
internalDrag?: {
|
|
4392
4382
|
ghost?: HTMLElement
|
|
4393
4383
|
origin: Pick<EventPosition, 'selection'>
|