@portabletext/editor 1.49.7 → 1.49.8
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/behaviors/index.d.cts +24 -272
- package/lib/behaviors/index.d.ts +24 -272
- package/lib/index.cjs +3049 -3097
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +31 -277
- package/lib/index.d.ts +31 -277
- package/lib/index.js +3127 -3175
- package/lib/index.js.map +1 -1
- package/lib/plugins/index.d.cts +31 -277
- package/lib/plugins/index.d.ts +31 -277
- package/lib/selectors/index.d.cts +24 -272
- package/lib/selectors/index.d.ts +24 -272
- package/lib/utils/index.d.cts +24 -272
- package/lib/utils/index.d.ts +24 -272
- package/package.json +1 -1
- package/src/editor/PortableTextEditor.tsx +12 -101
- package/src/editor/create-editor.ts +132 -2
- package/src/editor/editor-machine.ts +2 -9
- package/src/editor/editor-provider.tsx +1 -6
- package/src/editor/route-events-to-changes.tsx +81 -0
- package/src/editor/sync-machine.ts +31 -0
- package/src/editor.ts +7 -1
- package/src/internal-utils/text-selection.ts +3 -1
- package/src/editor/__tests__/pteWarningsSelfSolving.test.tsx +0 -364
- package/src/editor/components/Synchronizer.tsx +0 -134
package/lib/selectors/index.d.ts
CHANGED
|
@@ -589,7 +589,7 @@ declare const editorMachine: StateMachine<
|
|
|
589
589
|
initialReadOnly: boolean
|
|
590
590
|
maxBlocks: number | undefined
|
|
591
591
|
selection: EditorSelection
|
|
592
|
-
|
|
592
|
+
initialValue: Array<PortableTextBlock> | undefined
|
|
593
593
|
internalDrag?: {
|
|
594
594
|
ghost?: HTMLElement
|
|
595
595
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -611,10 +611,6 @@ declare const editorMachine: StateMachine<
|
|
|
611
611
|
type: 'update key generator'
|
|
612
612
|
keyGenerator: () => string
|
|
613
613
|
}
|
|
614
|
-
| {
|
|
615
|
-
type: 'update value'
|
|
616
|
-
value: Array<PortableTextBlock> | undefined
|
|
617
|
-
}
|
|
618
614
|
| {
|
|
619
615
|
type: 'update maxBlocks'
|
|
620
616
|
maxBlocks: number | undefined
|
|
@@ -933,7 +929,7 @@ declare const editorMachine: StateMachine<
|
|
|
933
929
|
initialReadOnly: boolean
|
|
934
930
|
maxBlocks: number | undefined
|
|
935
931
|
selection: EditorSelection
|
|
936
|
-
|
|
932
|
+
initialValue: Array<PortableTextBlock> | undefined
|
|
937
933
|
internalDrag?: {
|
|
938
934
|
ghost?: HTMLElement
|
|
939
935
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -955,10 +951,6 @@ declare const editorMachine: StateMachine<
|
|
|
955
951
|
type: 'update key generator'
|
|
956
952
|
keyGenerator: () => string
|
|
957
953
|
}
|
|
958
|
-
| {
|
|
959
|
-
type: 'update value'
|
|
960
|
-
value: Array<PortableTextBlock> | undefined
|
|
961
|
-
}
|
|
962
954
|
| {
|
|
963
955
|
type: 'update maxBlocks'
|
|
964
956
|
maxBlocks: number | undefined
|
|
@@ -1088,10 +1080,6 @@ declare const editorMachine: StateMachine<
|
|
|
1088
1080
|
type: 'update key generator'
|
|
1089
1081
|
keyGenerator: () => string
|
|
1090
1082
|
}
|
|
1091
|
-
| {
|
|
1092
|
-
type: 'update value'
|
|
1093
|
-
value: Array<PortableTextBlock> | undefined
|
|
1094
|
-
}
|
|
1095
1083
|
| {
|
|
1096
1084
|
type: 'update maxBlocks'
|
|
1097
1085
|
maxBlocks: number | undefined
|
|
@@ -1212,7 +1200,7 @@ declare const editorMachine: StateMachine<
|
|
|
1212
1200
|
selection: null
|
|
1213
1201
|
initialReadOnly: boolean
|
|
1214
1202
|
maxBlocks: number | undefined
|
|
1215
|
-
|
|
1203
|
+
initialValue: PortableTextBlock[] | undefined
|
|
1216
1204
|
}
|
|
1217
1205
|
readonly on: {
|
|
1218
1206
|
readonly 'notify.blurred': {
|
|
@@ -1228,7 +1216,7 @@ declare const editorMachine: StateMachine<
|
|
|
1228
1216
|
initialReadOnly: boolean
|
|
1229
1217
|
maxBlocks: number | undefined
|
|
1230
1218
|
selection: EditorSelection
|
|
1231
|
-
|
|
1219
|
+
initialValue: Array<PortableTextBlock> | undefined
|
|
1232
1220
|
internalDrag?: {
|
|
1233
1221
|
ghost?: HTMLElement
|
|
1234
1222
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1254,10 +1242,6 @@ declare const editorMachine: StateMachine<
|
|
|
1254
1242
|
type: 'update key generator'
|
|
1255
1243
|
keyGenerator: () => string
|
|
1256
1244
|
}
|
|
1257
|
-
| {
|
|
1258
|
-
type: 'update value'
|
|
1259
|
-
value: Array<PortableTextBlock> | undefined
|
|
1260
|
-
}
|
|
1261
1245
|
| {
|
|
1262
1246
|
type: 'update maxBlocks'
|
|
1263
1247
|
maxBlocks: number | undefined
|
|
@@ -1432,7 +1416,7 @@ declare const editorMachine: StateMachine<
|
|
|
1432
1416
|
initialReadOnly: boolean
|
|
1433
1417
|
maxBlocks: number | undefined
|
|
1434
1418
|
selection: EditorSelection
|
|
1435
|
-
|
|
1419
|
+
initialValue: Array<PortableTextBlock> | undefined
|
|
1436
1420
|
internalDrag?: {
|
|
1437
1421
|
ghost?: HTMLElement
|
|
1438
1422
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1457,10 +1441,6 @@ declare const editorMachine: StateMachine<
|
|
|
1457
1441
|
type: 'update key generator'
|
|
1458
1442
|
keyGenerator: () => string
|
|
1459
1443
|
}
|
|
1460
|
-
| {
|
|
1461
|
-
type: 'update value'
|
|
1462
|
-
value: Array<PortableTextBlock> | undefined
|
|
1463
|
-
}
|
|
1464
1444
|
| {
|
|
1465
1445
|
type: 'update maxBlocks'
|
|
1466
1446
|
maxBlocks: number | undefined
|
|
@@ -1635,7 +1615,7 @@ declare const editorMachine: StateMachine<
|
|
|
1635
1615
|
initialReadOnly: boolean
|
|
1636
1616
|
maxBlocks: number | undefined
|
|
1637
1617
|
selection: EditorSelection
|
|
1638
|
-
|
|
1618
|
+
initialValue: Array<PortableTextBlock> | undefined
|
|
1639
1619
|
internalDrag?: {
|
|
1640
1620
|
ghost?: HTMLElement
|
|
1641
1621
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1663,10 +1643,6 @@ declare const editorMachine: StateMachine<
|
|
|
1663
1643
|
type: 'update key generator'
|
|
1664
1644
|
keyGenerator: () => string
|
|
1665
1645
|
}
|
|
1666
|
-
| {
|
|
1667
|
-
type: 'update value'
|
|
1668
|
-
value: Array<PortableTextBlock> | undefined
|
|
1669
|
-
}
|
|
1670
1646
|
| {
|
|
1671
1647
|
type: 'update maxBlocks'
|
|
1672
1648
|
maxBlocks: number | undefined
|
|
@@ -1841,7 +1817,7 @@ declare const editorMachine: StateMachine<
|
|
|
1841
1817
|
initialReadOnly: boolean
|
|
1842
1818
|
maxBlocks: number | undefined
|
|
1843
1819
|
selection: EditorSelection
|
|
1844
|
-
|
|
1820
|
+
initialValue: Array<PortableTextBlock> | undefined
|
|
1845
1821
|
internalDrag?: {
|
|
1846
1822
|
ghost?: HTMLElement
|
|
1847
1823
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -1868,10 +1844,6 @@ declare const editorMachine: StateMachine<
|
|
|
1868
1844
|
type: 'update key generator'
|
|
1869
1845
|
keyGenerator: () => string
|
|
1870
1846
|
}
|
|
1871
|
-
| {
|
|
1872
|
-
type: 'update value'
|
|
1873
|
-
value: Array<PortableTextBlock> | undefined
|
|
1874
|
-
}
|
|
1875
1847
|
| {
|
|
1876
1848
|
type: 'update maxBlocks'
|
|
1877
1849
|
maxBlocks: number | undefined
|
|
@@ -2046,7 +2018,7 @@ declare const editorMachine: StateMachine<
|
|
|
2046
2018
|
initialReadOnly: boolean
|
|
2047
2019
|
maxBlocks: number | undefined
|
|
2048
2020
|
selection: EditorSelection
|
|
2049
|
-
|
|
2021
|
+
initialValue: Array<PortableTextBlock> | undefined
|
|
2050
2022
|
internalDrag?: {
|
|
2051
2023
|
ghost?: HTMLElement
|
|
2052
2024
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2072,10 +2044,6 @@ declare const editorMachine: StateMachine<
|
|
|
2072
2044
|
type: 'update key generator'
|
|
2073
2045
|
keyGenerator: () => string
|
|
2074
2046
|
}
|
|
2075
|
-
| {
|
|
2076
|
-
type: 'update value'
|
|
2077
|
-
value: Array<PortableTextBlock> | undefined
|
|
2078
|
-
}
|
|
2079
2047
|
| {
|
|
2080
2048
|
type: 'update maxBlocks'
|
|
2081
2049
|
maxBlocks: number | undefined
|
|
@@ -2251,7 +2219,7 @@ declare const editorMachine: StateMachine<
|
|
|
2251
2219
|
initialReadOnly: boolean
|
|
2252
2220
|
maxBlocks: number | undefined
|
|
2253
2221
|
selection: EditorSelection
|
|
2254
|
-
|
|
2222
|
+
initialValue: Array<PortableTextBlock> | undefined
|
|
2255
2223
|
internalDrag?: {
|
|
2256
2224
|
ghost?: HTMLElement
|
|
2257
2225
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2277,10 +2245,6 @@ declare const editorMachine: StateMachine<
|
|
|
2277
2245
|
type: 'update key generator'
|
|
2278
2246
|
keyGenerator: () => string
|
|
2279
2247
|
}
|
|
2280
|
-
| {
|
|
2281
|
-
type: 'update value'
|
|
2282
|
-
value: Array<PortableTextBlock> | undefined
|
|
2283
|
-
}
|
|
2284
2248
|
| {
|
|
2285
2249
|
type: 'update maxBlocks'
|
|
2286
2250
|
maxBlocks: number | undefined
|
|
@@ -2407,7 +2371,7 @@ declare const editorMachine: StateMachine<
|
|
|
2407
2371
|
initialReadOnly: boolean
|
|
2408
2372
|
maxBlocks: number | undefined
|
|
2409
2373
|
selection: EditorSelection
|
|
2410
|
-
|
|
2374
|
+
initialValue: Array<PortableTextBlock> | undefined
|
|
2411
2375
|
internalDrag?: {
|
|
2412
2376
|
ghost?: HTMLElement
|
|
2413
2377
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2433,10 +2397,6 @@ declare const editorMachine: StateMachine<
|
|
|
2433
2397
|
type: 'update key generator'
|
|
2434
2398
|
keyGenerator: () => string
|
|
2435
2399
|
}
|
|
2436
|
-
| {
|
|
2437
|
-
type: 'update value'
|
|
2438
|
-
value: Array<PortableTextBlock> | undefined
|
|
2439
|
-
}
|
|
2440
2400
|
| {
|
|
2441
2401
|
type: 'update maxBlocks'
|
|
2442
2402
|
maxBlocks: number | undefined
|
|
@@ -2612,7 +2572,7 @@ declare const editorMachine: StateMachine<
|
|
|
2612
2572
|
initialReadOnly: boolean
|
|
2613
2573
|
maxBlocks: number | undefined
|
|
2614
2574
|
selection: EditorSelection
|
|
2615
|
-
|
|
2575
|
+
initialValue: Array<PortableTextBlock> | undefined
|
|
2616
2576
|
internalDrag?: {
|
|
2617
2577
|
ghost?: HTMLElement
|
|
2618
2578
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2638,10 +2598,6 @@ declare const editorMachine: StateMachine<
|
|
|
2638
2598
|
type: 'update key generator'
|
|
2639
2599
|
keyGenerator: () => string
|
|
2640
2600
|
}
|
|
2641
|
-
| {
|
|
2642
|
-
type: 'update value'
|
|
2643
|
-
value: Array<PortableTextBlock> | undefined
|
|
2644
|
-
}
|
|
2645
2601
|
| {
|
|
2646
2602
|
type: 'update maxBlocks'
|
|
2647
2603
|
maxBlocks: number | undefined
|
|
@@ -2816,7 +2772,7 @@ declare const editorMachine: StateMachine<
|
|
|
2816
2772
|
initialReadOnly: boolean
|
|
2817
2773
|
maxBlocks: number | undefined
|
|
2818
2774
|
selection: EditorSelection
|
|
2819
|
-
|
|
2775
|
+
initialValue: Array<PortableTextBlock> | undefined
|
|
2820
2776
|
internalDrag?: {
|
|
2821
2777
|
ghost?: HTMLElement
|
|
2822
2778
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -2841,10 +2797,6 @@ declare const editorMachine: StateMachine<
|
|
|
2841
2797
|
type: 'update key generator'
|
|
2842
2798
|
keyGenerator: () => string
|
|
2843
2799
|
}
|
|
2844
|
-
| {
|
|
2845
|
-
type: 'update value'
|
|
2846
|
-
value: Array<PortableTextBlock> | undefined
|
|
2847
|
-
}
|
|
2848
2800
|
| {
|
|
2849
2801
|
type: 'update maxBlocks'
|
|
2850
2802
|
maxBlocks: number | undefined
|
|
@@ -3019,7 +2971,7 @@ declare const editorMachine: StateMachine<
|
|
|
3019
2971
|
initialReadOnly: boolean
|
|
3020
2972
|
maxBlocks: number | undefined
|
|
3021
2973
|
selection: EditorSelection
|
|
3022
|
-
|
|
2974
|
+
initialValue: Array<PortableTextBlock> | undefined
|
|
3023
2975
|
internalDrag?: {
|
|
3024
2976
|
ghost?: HTMLElement
|
|
3025
2977
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3045,10 +2997,6 @@ declare const editorMachine: StateMachine<
|
|
|
3045
2997
|
type: 'update key generator'
|
|
3046
2998
|
keyGenerator: () => string
|
|
3047
2999
|
}
|
|
3048
|
-
| {
|
|
3049
|
-
type: 'update value'
|
|
3050
|
-
value: Array<PortableTextBlock> | undefined
|
|
3051
|
-
}
|
|
3052
3000
|
| {
|
|
3053
3001
|
type: 'update maxBlocks'
|
|
3054
3002
|
maxBlocks: number | undefined
|
|
@@ -3229,7 +3177,7 @@ declare const editorMachine: StateMachine<
|
|
|
3229
3177
|
initialReadOnly: boolean
|
|
3230
3178
|
maxBlocks: number | undefined
|
|
3231
3179
|
selection: EditorSelection
|
|
3232
|
-
|
|
3180
|
+
initialValue: Array<PortableTextBlock> | undefined
|
|
3233
3181
|
internalDrag?: {
|
|
3234
3182
|
ghost?: HTMLElement
|
|
3235
3183
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3255,10 +3203,6 @@ declare const editorMachine: StateMachine<
|
|
|
3255
3203
|
type: 'update key generator'
|
|
3256
3204
|
keyGenerator: () => string
|
|
3257
3205
|
}
|
|
3258
|
-
| {
|
|
3259
|
-
type: 'update value'
|
|
3260
|
-
value: Array<PortableTextBlock> | undefined
|
|
3261
|
-
}
|
|
3262
3206
|
| {
|
|
3263
3207
|
type: 'update maxBlocks'
|
|
3264
3208
|
maxBlocks: number | undefined
|
|
@@ -3377,164 +3321,6 @@ declare const editorMachine: StateMachine<
|
|
|
3377
3321
|
readonly 'update schema': {
|
|
3378
3322
|
readonly actions: 'assign schema'
|
|
3379
3323
|
}
|
|
3380
|
-
readonly 'update value': {
|
|
3381
|
-
readonly actions: ActionFunction<
|
|
3382
|
-
{
|
|
3383
|
-
behaviors: Set<BehaviorConfig>
|
|
3384
|
-
converters: Set<Converter>
|
|
3385
|
-
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3386
|
-
keyGenerator: () => string
|
|
3387
|
-
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3388
|
-
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
3389
|
-
schema: EditorSchema
|
|
3390
|
-
initialReadOnly: boolean
|
|
3391
|
-
maxBlocks: number | undefined
|
|
3392
|
-
selection: EditorSelection
|
|
3393
|
-
incomingValue: Array<PortableTextBlock> | undefined
|
|
3394
|
-
internalDrag?: {
|
|
3395
|
-
ghost?: HTMLElement
|
|
3396
|
-
origin: Pick<EventPosition, 'selection'>
|
|
3397
|
-
}
|
|
3398
|
-
slateEditor?: PortableTextSlateEditor
|
|
3399
|
-
},
|
|
3400
|
-
{
|
|
3401
|
-
type: 'update value'
|
|
3402
|
-
value: Array<PortableTextBlock> | undefined
|
|
3403
|
-
},
|
|
3404
|
-
| InternalPatchEvent
|
|
3405
|
-
| MutationEvent
|
|
3406
|
-
| PatchesEvent
|
|
3407
|
-
| {
|
|
3408
|
-
type: 'update readOnly'
|
|
3409
|
-
readOnly: boolean
|
|
3410
|
-
}
|
|
3411
|
-
| {
|
|
3412
|
-
type: 'update schema'
|
|
3413
|
-
schema: EditorSchema
|
|
3414
|
-
}
|
|
3415
|
-
| {
|
|
3416
|
-
type: 'update key generator'
|
|
3417
|
-
keyGenerator: () => string
|
|
3418
|
-
}
|
|
3419
|
-
| {
|
|
3420
|
-
type: 'update value'
|
|
3421
|
-
value: Array<PortableTextBlock> | undefined
|
|
3422
|
-
}
|
|
3423
|
-
| {
|
|
3424
|
-
type: 'update maxBlocks'
|
|
3425
|
-
maxBlocks: number | undefined
|
|
3426
|
-
}
|
|
3427
|
-
| {
|
|
3428
|
-
type: 'add behavior'
|
|
3429
|
-
behaviorConfig: BehaviorConfig
|
|
3430
|
-
}
|
|
3431
|
-
| {
|
|
3432
|
-
type: 'remove behavior'
|
|
3433
|
-
behaviorConfig: BehaviorConfig
|
|
3434
|
-
}
|
|
3435
|
-
| {
|
|
3436
|
-
type: 'blur'
|
|
3437
|
-
editor: PortableTextSlateEditor
|
|
3438
|
-
}
|
|
3439
|
-
| {
|
|
3440
|
-
type: 'focus'
|
|
3441
|
-
editor: PortableTextSlateEditor
|
|
3442
|
-
}
|
|
3443
|
-
| {
|
|
3444
|
-
type: 'normalizing'
|
|
3445
|
-
}
|
|
3446
|
-
| {
|
|
3447
|
-
type: 'done normalizing'
|
|
3448
|
-
}
|
|
3449
|
-
| {
|
|
3450
|
-
type: 'done syncing value'
|
|
3451
|
-
}
|
|
3452
|
-
| {
|
|
3453
|
-
type: 'syncing value'
|
|
3454
|
-
}
|
|
3455
|
-
| {
|
|
3456
|
-
type: 'behavior event'
|
|
3457
|
-
behaviorEvent: BehaviorEvent
|
|
3458
|
-
editor: PortableTextSlateEditor
|
|
3459
|
-
nativeEvent?: {
|
|
3460
|
-
preventDefault: () => void
|
|
3461
|
-
}
|
|
3462
|
-
}
|
|
3463
|
-
| {
|
|
3464
|
-
type: 'notify.patch'
|
|
3465
|
-
patch: Patch
|
|
3466
|
-
}
|
|
3467
|
-
| {
|
|
3468
|
-
type: 'notify.mutation'
|
|
3469
|
-
patches: Array<Patch>
|
|
3470
|
-
snapshot: Array<PortableTextBlock> | undefined
|
|
3471
|
-
value: Array<PortableTextBlock> | undefined
|
|
3472
|
-
}
|
|
3473
|
-
| {
|
|
3474
|
-
type: 'notify.blurred'
|
|
3475
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3476
|
-
}
|
|
3477
|
-
| {
|
|
3478
|
-
type: 'notify.done loading'
|
|
3479
|
-
}
|
|
3480
|
-
| {
|
|
3481
|
-
type: 'notify.editable'
|
|
3482
|
-
}
|
|
3483
|
-
| {
|
|
3484
|
-
type: 'notify.error'
|
|
3485
|
-
name: string
|
|
3486
|
-
description: string
|
|
3487
|
-
data: unknown
|
|
3488
|
-
}
|
|
3489
|
-
| {
|
|
3490
|
-
type: 'notify.focused'
|
|
3491
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3492
|
-
}
|
|
3493
|
-
| {
|
|
3494
|
-
type: 'notify.invalid value'
|
|
3495
|
-
resolution: InvalidValueResolution | null
|
|
3496
|
-
value: Array<PortableTextBlock> | undefined
|
|
3497
|
-
}
|
|
3498
|
-
| {
|
|
3499
|
-
type: 'notify.loading'
|
|
3500
|
-
}
|
|
3501
|
-
| {
|
|
3502
|
-
type: 'notify.read only'
|
|
3503
|
-
}
|
|
3504
|
-
| {
|
|
3505
|
-
type: 'notify.ready'
|
|
3506
|
-
}
|
|
3507
|
-
| {
|
|
3508
|
-
type: 'notify.selection'
|
|
3509
|
-
selection: EditorSelection
|
|
3510
|
-
}
|
|
3511
|
-
| {
|
|
3512
|
-
type: 'notify.value changed'
|
|
3513
|
-
value: Array<PortableTextBlock> | undefined
|
|
3514
|
-
}
|
|
3515
|
-
| {
|
|
3516
|
-
type: 'notify.unset'
|
|
3517
|
-
previousValue: Array<PortableTextBlock>
|
|
3518
|
-
}
|
|
3519
|
-
| {
|
|
3520
|
-
type: 'dragstart'
|
|
3521
|
-
origin: Pick<EventPosition, 'selection'>
|
|
3522
|
-
ghost?: HTMLElement
|
|
3523
|
-
}
|
|
3524
|
-
| {
|
|
3525
|
-
type: 'dragend'
|
|
3526
|
-
}
|
|
3527
|
-
| {
|
|
3528
|
-
type: 'drop'
|
|
3529
|
-
},
|
|
3530
|
-
undefined,
|
|
3531
|
-
never,
|
|
3532
|
-
never,
|
|
3533
|
-
never,
|
|
3534
|
-
never,
|
|
3535
|
-
never
|
|
3536
|
-
>
|
|
3537
|
-
}
|
|
3538
3324
|
readonly 'update maxBlocks': {
|
|
3539
3325
|
readonly actions: ActionFunction<
|
|
3540
3326
|
{
|
|
@@ -3548,7 +3334,7 @@ declare const editorMachine: StateMachine<
|
|
|
3548
3334
|
initialReadOnly: boolean
|
|
3549
3335
|
maxBlocks: number | undefined
|
|
3550
3336
|
selection: EditorSelection
|
|
3551
|
-
|
|
3337
|
+
initialValue: Array<PortableTextBlock> | undefined
|
|
3552
3338
|
internalDrag?: {
|
|
3553
3339
|
ghost?: HTMLElement
|
|
3554
3340
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3574,10 +3360,6 @@ declare const editorMachine: StateMachine<
|
|
|
3574
3360
|
type: 'update key generator'
|
|
3575
3361
|
keyGenerator: () => string
|
|
3576
3362
|
}
|
|
3577
|
-
| {
|
|
3578
|
-
type: 'update value'
|
|
3579
|
-
value: Array<PortableTextBlock> | undefined
|
|
3580
|
-
}
|
|
3581
3363
|
| {
|
|
3582
3364
|
type: 'update maxBlocks'
|
|
3583
3365
|
maxBlocks: number | undefined
|
|
@@ -3718,7 +3500,7 @@ declare const editorMachine: StateMachine<
|
|
|
3718
3500
|
initialReadOnly: boolean
|
|
3719
3501
|
maxBlocks: number | undefined
|
|
3720
3502
|
selection: EditorSelection
|
|
3721
|
-
|
|
3503
|
+
initialValue: Array<PortableTextBlock> | undefined
|
|
3722
3504
|
internalDrag?: {
|
|
3723
3505
|
ghost?: HTMLElement
|
|
3724
3506
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3760,7 +3542,7 @@ declare const editorMachine: StateMachine<
|
|
|
3760
3542
|
initialReadOnly: boolean
|
|
3761
3543
|
maxBlocks: number | undefined
|
|
3762
3544
|
selection: EditorSelection
|
|
3763
|
-
|
|
3545
|
+
initialValue: Array<PortableTextBlock> | undefined
|
|
3764
3546
|
internalDrag?: {
|
|
3765
3547
|
ghost?: HTMLElement
|
|
3766
3548
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3797,7 +3579,7 @@ declare const editorMachine: StateMachine<
|
|
|
3797
3579
|
initialReadOnly: boolean
|
|
3798
3580
|
maxBlocks: number | undefined
|
|
3799
3581
|
selection: EditorSelection
|
|
3800
|
-
|
|
3582
|
+
initialValue: Array<PortableTextBlock> | undefined
|
|
3801
3583
|
internalDrag?: {
|
|
3802
3584
|
ghost?: HTMLElement
|
|
3803
3585
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3833,7 +3615,7 @@ declare const editorMachine: StateMachine<
|
|
|
3833
3615
|
initialReadOnly: boolean
|
|
3834
3616
|
maxBlocks: number | undefined
|
|
3835
3617
|
selection: EditorSelection
|
|
3836
|
-
|
|
3618
|
+
initialValue: Array<PortableTextBlock> | undefined
|
|
3837
3619
|
internalDrag?: {
|
|
3838
3620
|
ghost?: HTMLElement
|
|
3839
3621
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3869,7 +3651,7 @@ declare const editorMachine: StateMachine<
|
|
|
3869
3651
|
initialReadOnly: boolean
|
|
3870
3652
|
maxBlocks: number | undefined
|
|
3871
3653
|
selection: EditorSelection
|
|
3872
|
-
|
|
3654
|
+
initialValue: Array<PortableTextBlock> | undefined
|
|
3873
3655
|
internalDrag?: {
|
|
3874
3656
|
ghost?: HTMLElement
|
|
3875
3657
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -3895,10 +3677,6 @@ declare const editorMachine: StateMachine<
|
|
|
3895
3677
|
type: 'update key generator'
|
|
3896
3678
|
keyGenerator: () => string
|
|
3897
3679
|
}
|
|
3898
|
-
| {
|
|
3899
|
-
type: 'update value'
|
|
3900
|
-
value: Array<PortableTextBlock> | undefined
|
|
3901
|
-
}
|
|
3902
3680
|
| {
|
|
3903
3681
|
type: 'update maxBlocks'
|
|
3904
3682
|
maxBlocks: number | undefined
|
|
@@ -4038,7 +3816,7 @@ declare const editorMachine: StateMachine<
|
|
|
4038
3816
|
initialReadOnly: boolean
|
|
4039
3817
|
maxBlocks: number | undefined
|
|
4040
3818
|
selection: EditorSelection
|
|
4041
|
-
|
|
3819
|
+
initialValue: Array<PortableTextBlock> | undefined
|
|
4042
3820
|
internalDrag?: {
|
|
4043
3821
|
ghost?: HTMLElement
|
|
4044
3822
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -4065,10 +3843,6 @@ declare const editorMachine: StateMachine<
|
|
|
4065
3843
|
type: 'update key generator'
|
|
4066
3844
|
keyGenerator: () => string
|
|
4067
3845
|
}
|
|
4068
|
-
| {
|
|
4069
|
-
type: 'update value'
|
|
4070
|
-
value: Array<PortableTextBlock> | undefined
|
|
4071
|
-
}
|
|
4072
3846
|
| {
|
|
4073
3847
|
type: 'update maxBlocks'
|
|
4074
3848
|
maxBlocks: number | undefined
|
|
@@ -4234,7 +4008,7 @@ declare const editorMachine: StateMachine<
|
|
|
4234
4008
|
initialReadOnly: boolean
|
|
4235
4009
|
maxBlocks: number | undefined
|
|
4236
4010
|
selection: EditorSelection
|
|
4237
|
-
|
|
4011
|
+
initialValue: Array<PortableTextBlock> | undefined
|
|
4238
4012
|
internalDrag?: {
|
|
4239
4013
|
ghost?: HTMLElement
|
|
4240
4014
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -4256,10 +4030,6 @@ declare const editorMachine: StateMachine<
|
|
|
4256
4030
|
type: 'update key generator'
|
|
4257
4031
|
keyGenerator: () => string
|
|
4258
4032
|
}
|
|
4259
|
-
| {
|
|
4260
|
-
type: 'update value'
|
|
4261
|
-
value: Array<PortableTextBlock> | undefined
|
|
4262
|
-
}
|
|
4263
4033
|
| {
|
|
4264
4034
|
type: 'update maxBlocks'
|
|
4265
4035
|
maxBlocks: number | undefined
|
|
@@ -4382,10 +4152,6 @@ declare const editorMachine: StateMachine<
|
|
|
4382
4152
|
type: 'update key generator'
|
|
4383
4153
|
keyGenerator: () => string
|
|
4384
4154
|
}
|
|
4385
|
-
| {
|
|
4386
|
-
type: 'update value'
|
|
4387
|
-
value: Array<PortableTextBlock> | undefined
|
|
4388
|
-
}
|
|
4389
4155
|
| {
|
|
4390
4156
|
type: 'update maxBlocks'
|
|
4391
4157
|
maxBlocks: number | undefined
|
|
@@ -4506,7 +4272,7 @@ declare const editorMachine: StateMachine<
|
|
|
4506
4272
|
initialReadOnly: boolean
|
|
4507
4273
|
maxBlocks: number | undefined
|
|
4508
4274
|
selection: EditorSelection
|
|
4509
|
-
|
|
4275
|
+
initialValue: Array<PortableTextBlock> | undefined
|
|
4510
4276
|
internalDrag?: {
|
|
4511
4277
|
ghost?: HTMLElement
|
|
4512
4278
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -4528,10 +4294,6 @@ declare const editorMachine: StateMachine<
|
|
|
4528
4294
|
type: 'update key generator'
|
|
4529
4295
|
keyGenerator: () => string
|
|
4530
4296
|
}
|
|
4531
|
-
| {
|
|
4532
|
-
type: 'update value'
|
|
4533
|
-
value: Array<PortableTextBlock> | undefined
|
|
4534
|
-
}
|
|
4535
4297
|
| {
|
|
4536
4298
|
type: 'update maxBlocks'
|
|
4537
4299
|
maxBlocks: number | undefined
|
|
@@ -4654,10 +4416,6 @@ declare const editorMachine: StateMachine<
|
|
|
4654
4416
|
type: 'update key generator'
|
|
4655
4417
|
keyGenerator: () => string
|
|
4656
4418
|
}
|
|
4657
|
-
| {
|
|
4658
|
-
type: 'update value'
|
|
4659
|
-
value: Array<PortableTextBlock> | undefined
|
|
4660
|
-
}
|
|
4661
4419
|
| {
|
|
4662
4420
|
type: 'update maxBlocks'
|
|
4663
4421
|
maxBlocks: number | undefined
|
|
@@ -4839,9 +4597,7 @@ declare const editorMachine: StateMachine<
|
|
|
4839
4597
|
initialReadOnly: boolean
|
|
4840
4598
|
maxBlocks: number | undefined
|
|
4841
4599
|
selection: EditorSelection
|
|
4842
|
-
|
|
4843
|
-
| Array<PortableTextBlock>
|
|
4844
|
-
| undefined
|
|
4600
|
+
initialValue: Array<PortableTextBlock> | undefined
|
|
4845
4601
|
internalDrag?: {
|
|
4846
4602
|
ghost?: HTMLElement
|
|
4847
4603
|
origin: Pick<EventPosition, 'selection'>
|
|
@@ -4864,10 +4620,6 @@ declare const editorMachine: StateMachine<
|
|
|
4864
4620
|
type: 'update key generator'
|
|
4865
4621
|
keyGenerator: () => string
|
|
4866
4622
|
}
|
|
4867
|
-
| {
|
|
4868
|
-
type: 'update value'
|
|
4869
|
-
value: Array<PortableTextBlock> | undefined
|
|
4870
|
-
}
|
|
4871
4623
|
| {
|
|
4872
4624
|
type: 'update maxBlocks'
|
|
4873
4625
|
maxBlocks: number | undefined
|