@portabletext/editor 1.48.9 → 1.48.10
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/editor-provider.cjs +103 -47
- package/lib/_chunks-cjs/editor-provider.cjs.map +1 -1
- package/lib/_chunks-es/editor-provider.js +103 -47
- package/lib/_chunks-es/editor-provider.js.map +1 -1
- package/lib/behaviors/index.d.cts +449 -288
- package/lib/behaviors/index.d.ts +449 -288
- package/lib/index.d.cts +449 -288
- package/lib/index.d.ts +449 -288
- package/lib/plugins/index.d.cts +449 -288
- package/lib/plugins/index.d.ts +449 -288
- package/lib/selectors/index.d.cts +449 -288
- package/lib/selectors/index.d.ts +449 -288
- package/lib/utils/index.d.cts +449 -288
- package/lib/utils/index.d.ts +449 -288
- package/package.json +3 -3
- package/src/editor/editor-machine.ts +104 -39
- package/src/editor/sync-machine.ts +10 -4
package/lib/index.d.cts
CHANGED
|
@@ -877,6 +877,7 @@ declare const editorMachine: StateMachine<
|
|
|
877
877
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
878
878
|
keyGenerator: () => string
|
|
879
879
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
880
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
880
881
|
schema: EditorSchema
|
|
881
882
|
initialReadOnly: boolean
|
|
882
883
|
maxBlocks: number | undefined
|
|
@@ -890,6 +891,7 @@ declare const editorMachine: StateMachine<
|
|
|
890
891
|
},
|
|
891
892
|
| InternalPatchEvent
|
|
892
893
|
| MutationEvent
|
|
894
|
+
| PatchesEvent
|
|
893
895
|
| {
|
|
894
896
|
type: 'add behavior'
|
|
895
897
|
behavior: Behavior
|
|
@@ -922,7 +924,6 @@ declare const editorMachine: StateMachine<
|
|
|
922
924
|
type: 'update maxBlocks'
|
|
923
925
|
maxBlocks: number | undefined
|
|
924
926
|
}
|
|
925
|
-
| PatchesEvent
|
|
926
927
|
| {
|
|
927
928
|
type: 'blur'
|
|
928
929
|
editor: PortableTextSlateEditor
|
|
@@ -938,7 +939,10 @@ declare const editorMachine: StateMachine<
|
|
|
938
939
|
type: 'done normalizing'
|
|
939
940
|
}
|
|
940
941
|
| {
|
|
941
|
-
type: 'done syncing
|
|
942
|
+
type: 'done syncing value'
|
|
943
|
+
}
|
|
944
|
+
| {
|
|
945
|
+
type: 'syncing value'
|
|
942
946
|
}
|
|
943
947
|
| {
|
|
944
948
|
type: 'behavior event'
|
|
@@ -1066,6 +1070,18 @@ declare const editorMachine: StateMachine<
|
|
|
1066
1070
|
type: 'clear pending events'
|
|
1067
1071
|
params: NonReducibleUnknown
|
|
1068
1072
|
}
|
|
1073
|
+
'defer incoming patches': {
|
|
1074
|
+
type: 'defer incoming patches'
|
|
1075
|
+
params: NonReducibleUnknown
|
|
1076
|
+
}
|
|
1077
|
+
'emit pending incoming patches': {
|
|
1078
|
+
type: 'emit pending incoming patches'
|
|
1079
|
+
params: NonReducibleUnknown
|
|
1080
|
+
}
|
|
1081
|
+
'clear pending incoming patches': {
|
|
1082
|
+
type: 'clear pending incoming patches'
|
|
1083
|
+
params: NonReducibleUnknown
|
|
1084
|
+
}
|
|
1069
1085
|
'handle blur': {
|
|
1070
1086
|
type: 'handle blur'
|
|
1071
1087
|
params: unknown
|
|
@@ -1099,9 +1115,15 @@ declare const editorMachine: StateMachine<
|
|
|
1099
1115
|
}
|
|
1100
1116
|
'setup':
|
|
1101
1117
|
| 'setting up'
|
|
1102
|
-
| 'dirty'
|
|
1103
1118
|
| {
|
|
1104
|
-
|
|
1119
|
+
'set up': {
|
|
1120
|
+
'value sync': 'syncing value' | 'idle'
|
|
1121
|
+
'writing':
|
|
1122
|
+
| 'dirty'
|
|
1123
|
+
| {
|
|
1124
|
+
pristine: 'normalizing' | 'idle'
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1105
1127
|
}
|
|
1106
1128
|
},
|
|
1107
1129
|
'dragging internally',
|
|
@@ -1209,6 +1231,7 @@ declare const editorMachine: StateMachine<
|
|
|
1209
1231
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1210
1232
|
keyGenerator: () => string
|
|
1211
1233
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1234
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
1212
1235
|
schema: EditorSchema
|
|
1213
1236
|
initialReadOnly: boolean
|
|
1214
1237
|
maxBlocks: number | undefined
|
|
@@ -1222,6 +1245,7 @@ declare const editorMachine: StateMachine<
|
|
|
1222
1245
|
},
|
|
1223
1246
|
| InternalPatchEvent
|
|
1224
1247
|
| MutationEvent
|
|
1248
|
+
| PatchesEvent
|
|
1225
1249
|
| {
|
|
1226
1250
|
type: 'add behavior'
|
|
1227
1251
|
behavior: Behavior
|
|
@@ -1254,7 +1278,6 @@ declare const editorMachine: StateMachine<
|
|
|
1254
1278
|
type: 'update maxBlocks'
|
|
1255
1279
|
maxBlocks: number | undefined
|
|
1256
1280
|
}
|
|
1257
|
-
| PatchesEvent
|
|
1258
1281
|
| {
|
|
1259
1282
|
type: 'blur'
|
|
1260
1283
|
editor: PortableTextSlateEditor
|
|
@@ -1270,7 +1293,10 @@ declare const editorMachine: StateMachine<
|
|
|
1270
1293
|
type: 'done normalizing'
|
|
1271
1294
|
}
|
|
1272
1295
|
| {
|
|
1273
|
-
type: 'done syncing
|
|
1296
|
+
type: 'done syncing value'
|
|
1297
|
+
}
|
|
1298
|
+
| {
|
|
1299
|
+
type: 'syncing value'
|
|
1274
1300
|
}
|
|
1275
1301
|
| {
|
|
1276
1302
|
type: 'behavior event'
|
|
@@ -1356,6 +1382,7 @@ declare const editorMachine: StateMachine<
|
|
|
1356
1382
|
>,
|
|
1357
1383
|
| InternalPatchEvent
|
|
1358
1384
|
| MutationEvent
|
|
1385
|
+
| PatchesEvent
|
|
1359
1386
|
| {
|
|
1360
1387
|
type: 'add behavior'
|
|
1361
1388
|
behavior: Behavior
|
|
@@ -1388,7 +1415,6 @@ declare const editorMachine: StateMachine<
|
|
|
1388
1415
|
type: 'update maxBlocks'
|
|
1389
1416
|
maxBlocks: number | undefined
|
|
1390
1417
|
}
|
|
1391
|
-
| PatchesEvent
|
|
1392
1418
|
| {
|
|
1393
1419
|
type: 'blur'
|
|
1394
1420
|
editor: PortableTextSlateEditor
|
|
@@ -1404,7 +1430,10 @@ declare const editorMachine: StateMachine<
|
|
|
1404
1430
|
type: 'done normalizing'
|
|
1405
1431
|
}
|
|
1406
1432
|
| {
|
|
1407
|
-
type: 'done syncing
|
|
1433
|
+
type: 'done syncing value'
|
|
1434
|
+
}
|
|
1435
|
+
| {
|
|
1436
|
+
type: 'syncing value'
|
|
1408
1437
|
}
|
|
1409
1438
|
| {
|
|
1410
1439
|
type: 'behavior event'
|
|
@@ -1489,6 +1518,7 @@ declare const editorMachine: StateMachine<
|
|
|
1489
1518
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1490
1519
|
keyGenerator: () => string
|
|
1491
1520
|
pendingEvents: never[]
|
|
1521
|
+
pendingIncomingPatchesEvents: never[]
|
|
1492
1522
|
schema: EditorSchema
|
|
1493
1523
|
selection: null
|
|
1494
1524
|
initialReadOnly: boolean
|
|
@@ -1504,6 +1534,7 @@ declare const editorMachine: StateMachine<
|
|
|
1504
1534
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1505
1535
|
keyGenerator: () => string
|
|
1506
1536
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1537
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
1507
1538
|
schema: EditorSchema
|
|
1508
1539
|
initialReadOnly: boolean
|
|
1509
1540
|
maxBlocks: number | undefined
|
|
@@ -1521,6 +1552,7 @@ declare const editorMachine: StateMachine<
|
|
|
1521
1552
|
},
|
|
1522
1553
|
| InternalPatchEvent
|
|
1523
1554
|
| MutationEvent
|
|
1555
|
+
| PatchesEvent
|
|
1524
1556
|
| {
|
|
1525
1557
|
type: 'add behavior'
|
|
1526
1558
|
behavior: Behavior
|
|
@@ -1553,7 +1585,6 @@ declare const editorMachine: StateMachine<
|
|
|
1553
1585
|
type: 'update maxBlocks'
|
|
1554
1586
|
maxBlocks: number | undefined
|
|
1555
1587
|
}
|
|
1556
|
-
| PatchesEvent
|
|
1557
1588
|
| {
|
|
1558
1589
|
type: 'blur'
|
|
1559
1590
|
editor: PortableTextSlateEditor
|
|
@@ -1569,7 +1600,10 @@ declare const editorMachine: StateMachine<
|
|
|
1569
1600
|
type: 'done normalizing'
|
|
1570
1601
|
}
|
|
1571
1602
|
| {
|
|
1572
|
-
type: 'done syncing
|
|
1603
|
+
type: 'done syncing value'
|
|
1604
|
+
}
|
|
1605
|
+
| {
|
|
1606
|
+
type: 'syncing value'
|
|
1573
1607
|
}
|
|
1574
1608
|
| {
|
|
1575
1609
|
type: 'behavior event'
|
|
@@ -1708,6 +1742,7 @@ declare const editorMachine: StateMachine<
|
|
|
1708
1742
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1709
1743
|
keyGenerator: () => string
|
|
1710
1744
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1745
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
1711
1746
|
schema: EditorSchema
|
|
1712
1747
|
initialReadOnly: boolean
|
|
1713
1748
|
maxBlocks: number | undefined
|
|
@@ -1724,6 +1759,7 @@ declare const editorMachine: StateMachine<
|
|
|
1724
1759
|
},
|
|
1725
1760
|
| InternalPatchEvent
|
|
1726
1761
|
| MutationEvent
|
|
1762
|
+
| PatchesEvent
|
|
1727
1763
|
| {
|
|
1728
1764
|
type: 'add behavior'
|
|
1729
1765
|
behavior: Behavior
|
|
@@ -1756,7 +1792,6 @@ declare const editorMachine: StateMachine<
|
|
|
1756
1792
|
type: 'update maxBlocks'
|
|
1757
1793
|
maxBlocks: number | undefined
|
|
1758
1794
|
}
|
|
1759
|
-
| PatchesEvent
|
|
1760
1795
|
| {
|
|
1761
1796
|
type: 'blur'
|
|
1762
1797
|
editor: PortableTextSlateEditor
|
|
@@ -1772,7 +1807,10 @@ declare const editorMachine: StateMachine<
|
|
|
1772
1807
|
type: 'done normalizing'
|
|
1773
1808
|
}
|
|
1774
1809
|
| {
|
|
1775
|
-
type: 'done syncing
|
|
1810
|
+
type: 'done syncing value'
|
|
1811
|
+
}
|
|
1812
|
+
| {
|
|
1813
|
+
type: 'syncing value'
|
|
1776
1814
|
}
|
|
1777
1815
|
| {
|
|
1778
1816
|
type: 'behavior event'
|
|
@@ -1911,6 +1949,7 @@ declare const editorMachine: StateMachine<
|
|
|
1911
1949
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1912
1950
|
keyGenerator: () => string
|
|
1913
1951
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1952
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
1914
1953
|
schema: EditorSchema
|
|
1915
1954
|
initialReadOnly: boolean
|
|
1916
1955
|
maxBlocks: number | undefined
|
|
@@ -1930,6 +1969,7 @@ declare const editorMachine: StateMachine<
|
|
|
1930
1969
|
},
|
|
1931
1970
|
| InternalPatchEvent
|
|
1932
1971
|
| MutationEvent
|
|
1972
|
+
| PatchesEvent
|
|
1933
1973
|
| {
|
|
1934
1974
|
type: 'add behavior'
|
|
1935
1975
|
behavior: Behavior
|
|
@@ -1962,7 +2002,6 @@ declare const editorMachine: StateMachine<
|
|
|
1962
2002
|
type: 'update maxBlocks'
|
|
1963
2003
|
maxBlocks: number | undefined
|
|
1964
2004
|
}
|
|
1965
|
-
| PatchesEvent
|
|
1966
2005
|
| {
|
|
1967
2006
|
type: 'blur'
|
|
1968
2007
|
editor: PortableTextSlateEditor
|
|
@@ -1978,7 +2017,10 @@ declare const editorMachine: StateMachine<
|
|
|
1978
2017
|
type: 'done normalizing'
|
|
1979
2018
|
}
|
|
1980
2019
|
| {
|
|
1981
|
-
type: 'done syncing
|
|
2020
|
+
type: 'done syncing value'
|
|
2021
|
+
}
|
|
2022
|
+
| {
|
|
2023
|
+
type: 'syncing value'
|
|
1982
2024
|
}
|
|
1983
2025
|
| {
|
|
1984
2026
|
type: 'behavior event'
|
|
@@ -2117,6 +2159,7 @@ declare const editorMachine: StateMachine<
|
|
|
2117
2159
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2118
2160
|
keyGenerator: () => string
|
|
2119
2161
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2162
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
2120
2163
|
schema: EditorSchema
|
|
2121
2164
|
initialReadOnly: boolean
|
|
2122
2165
|
maxBlocks: number | undefined
|
|
@@ -2135,6 +2178,7 @@ declare const editorMachine: StateMachine<
|
|
|
2135
2178
|
},
|
|
2136
2179
|
| InternalPatchEvent
|
|
2137
2180
|
| MutationEvent
|
|
2181
|
+
| PatchesEvent
|
|
2138
2182
|
| {
|
|
2139
2183
|
type: 'add behavior'
|
|
2140
2184
|
behavior: Behavior
|
|
@@ -2167,7 +2211,6 @@ declare const editorMachine: StateMachine<
|
|
|
2167
2211
|
type: 'update maxBlocks'
|
|
2168
2212
|
maxBlocks: number | undefined
|
|
2169
2213
|
}
|
|
2170
|
-
| PatchesEvent
|
|
2171
2214
|
| {
|
|
2172
2215
|
type: 'blur'
|
|
2173
2216
|
editor: PortableTextSlateEditor
|
|
@@ -2183,7 +2226,10 @@ declare const editorMachine: StateMachine<
|
|
|
2183
2226
|
type: 'done normalizing'
|
|
2184
2227
|
}
|
|
2185
2228
|
| {
|
|
2186
|
-
type: 'done syncing
|
|
2229
|
+
type: 'done syncing value'
|
|
2230
|
+
}
|
|
2231
|
+
| {
|
|
2232
|
+
type: 'syncing value'
|
|
2187
2233
|
}
|
|
2188
2234
|
| {
|
|
2189
2235
|
type: 'behavior event'
|
|
@@ -2322,6 +2368,7 @@ declare const editorMachine: StateMachine<
|
|
|
2322
2368
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2323
2369
|
keyGenerator: () => string
|
|
2324
2370
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2371
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
2325
2372
|
schema: EditorSchema
|
|
2326
2373
|
initialReadOnly: boolean
|
|
2327
2374
|
maxBlocks: number | undefined
|
|
@@ -2339,6 +2386,7 @@ declare const editorMachine: StateMachine<
|
|
|
2339
2386
|
},
|
|
2340
2387
|
| InternalPatchEvent
|
|
2341
2388
|
| MutationEvent
|
|
2389
|
+
| PatchesEvent
|
|
2342
2390
|
| {
|
|
2343
2391
|
type: 'add behavior'
|
|
2344
2392
|
behavior: Behavior
|
|
@@ -2371,7 +2419,6 @@ declare const editorMachine: StateMachine<
|
|
|
2371
2419
|
type: 'update maxBlocks'
|
|
2372
2420
|
maxBlocks: number | undefined
|
|
2373
2421
|
}
|
|
2374
|
-
| PatchesEvent
|
|
2375
2422
|
| {
|
|
2376
2423
|
type: 'blur'
|
|
2377
2424
|
editor: PortableTextSlateEditor
|
|
@@ -2387,7 +2434,10 @@ declare const editorMachine: StateMachine<
|
|
|
2387
2434
|
type: 'done normalizing'
|
|
2388
2435
|
}
|
|
2389
2436
|
| {
|
|
2390
|
-
type: 'done syncing
|
|
2437
|
+
type: 'done syncing value'
|
|
2438
|
+
}
|
|
2439
|
+
| {
|
|
2440
|
+
type: 'syncing value'
|
|
2391
2441
|
}
|
|
2392
2442
|
| {
|
|
2393
2443
|
type: 'behavior event'
|
|
@@ -2527,6 +2577,7 @@ declare const editorMachine: StateMachine<
|
|
|
2527
2577
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2528
2578
|
keyGenerator: () => string
|
|
2529
2579
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2580
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
2530
2581
|
schema: EditorSchema
|
|
2531
2582
|
initialReadOnly: boolean
|
|
2532
2583
|
maxBlocks: number | undefined
|
|
@@ -2544,6 +2595,7 @@ declare const editorMachine: StateMachine<
|
|
|
2544
2595
|
},
|
|
2545
2596
|
| InternalPatchEvent
|
|
2546
2597
|
| MutationEvent
|
|
2598
|
+
| PatchesEvent
|
|
2547
2599
|
| {
|
|
2548
2600
|
type: 'add behavior'
|
|
2549
2601
|
behavior: Behavior
|
|
@@ -2576,7 +2628,6 @@ declare const editorMachine: StateMachine<
|
|
|
2576
2628
|
type: 'update maxBlocks'
|
|
2577
2629
|
maxBlocks: number | undefined
|
|
2578
2630
|
}
|
|
2579
|
-
| PatchesEvent
|
|
2580
2631
|
| {
|
|
2581
2632
|
type: 'blur'
|
|
2582
2633
|
editor: PortableTextSlateEditor
|
|
@@ -2592,7 +2643,10 @@ declare const editorMachine: StateMachine<
|
|
|
2592
2643
|
type: 'done normalizing'
|
|
2593
2644
|
}
|
|
2594
2645
|
| {
|
|
2595
|
-
type: 'done syncing
|
|
2646
|
+
type: 'done syncing value'
|
|
2647
|
+
}
|
|
2648
|
+
| {
|
|
2649
|
+
type: 'syncing value'
|
|
2596
2650
|
}
|
|
2597
2651
|
| {
|
|
2598
2652
|
type: 'behavior event'
|
|
@@ -2683,6 +2737,7 @@ declare const editorMachine: StateMachine<
|
|
|
2683
2737
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2684
2738
|
keyGenerator: () => string
|
|
2685
2739
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2740
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
2686
2741
|
schema: EditorSchema
|
|
2687
2742
|
initialReadOnly: boolean
|
|
2688
2743
|
maxBlocks: number | undefined
|
|
@@ -2700,6 +2755,7 @@ declare const editorMachine: StateMachine<
|
|
|
2700
2755
|
},
|
|
2701
2756
|
| InternalPatchEvent
|
|
2702
2757
|
| MutationEvent
|
|
2758
|
+
| PatchesEvent
|
|
2703
2759
|
| {
|
|
2704
2760
|
type: 'add behavior'
|
|
2705
2761
|
behavior: Behavior
|
|
@@ -2732,7 +2788,6 @@ declare const editorMachine: StateMachine<
|
|
|
2732
2788
|
type: 'update maxBlocks'
|
|
2733
2789
|
maxBlocks: number | undefined
|
|
2734
2790
|
}
|
|
2735
|
-
| PatchesEvent
|
|
2736
2791
|
| {
|
|
2737
2792
|
type: 'blur'
|
|
2738
2793
|
editor: PortableTextSlateEditor
|
|
@@ -2748,7 +2803,10 @@ declare const editorMachine: StateMachine<
|
|
|
2748
2803
|
type: 'done normalizing'
|
|
2749
2804
|
}
|
|
2750
2805
|
| {
|
|
2751
|
-
type: 'done syncing
|
|
2806
|
+
type: 'done syncing value'
|
|
2807
|
+
}
|
|
2808
|
+
| {
|
|
2809
|
+
type: 'syncing value'
|
|
2752
2810
|
}
|
|
2753
2811
|
| {
|
|
2754
2812
|
type: 'behavior event'
|
|
@@ -2888,6 +2946,7 @@ declare const editorMachine: StateMachine<
|
|
|
2888
2946
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2889
2947
|
keyGenerator: () => string
|
|
2890
2948
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2949
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
2891
2950
|
schema: EditorSchema
|
|
2892
2951
|
initialReadOnly: boolean
|
|
2893
2952
|
maxBlocks: number | undefined
|
|
@@ -2905,6 +2964,7 @@ declare const editorMachine: StateMachine<
|
|
|
2905
2964
|
},
|
|
2906
2965
|
| InternalPatchEvent
|
|
2907
2966
|
| MutationEvent
|
|
2967
|
+
| PatchesEvent
|
|
2908
2968
|
| {
|
|
2909
2969
|
type: 'add behavior'
|
|
2910
2970
|
behavior: Behavior
|
|
@@ -2937,7 +2997,6 @@ declare const editorMachine: StateMachine<
|
|
|
2937
2997
|
type: 'update maxBlocks'
|
|
2938
2998
|
maxBlocks: number | undefined
|
|
2939
2999
|
}
|
|
2940
|
-
| PatchesEvent
|
|
2941
3000
|
| {
|
|
2942
3001
|
type: 'blur'
|
|
2943
3002
|
editor: PortableTextSlateEditor
|
|
@@ -2953,7 +3012,10 @@ declare const editorMachine: StateMachine<
|
|
|
2953
3012
|
type: 'done normalizing'
|
|
2954
3013
|
}
|
|
2955
3014
|
| {
|
|
2956
|
-
type: 'done syncing
|
|
3015
|
+
type: 'done syncing value'
|
|
3016
|
+
}
|
|
3017
|
+
| {
|
|
3018
|
+
type: 'syncing value'
|
|
2957
3019
|
}
|
|
2958
3020
|
| {
|
|
2959
3021
|
type: 'behavior event'
|
|
@@ -3092,6 +3154,7 @@ declare const editorMachine: StateMachine<
|
|
|
3092
3154
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3093
3155
|
keyGenerator: () => string
|
|
3094
3156
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3157
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
3095
3158
|
schema: EditorSchema
|
|
3096
3159
|
initialReadOnly: boolean
|
|
3097
3160
|
maxBlocks: number | undefined
|
|
@@ -3108,6 +3171,7 @@ declare const editorMachine: StateMachine<
|
|
|
3108
3171
|
},
|
|
3109
3172
|
| InternalPatchEvent
|
|
3110
3173
|
| MutationEvent
|
|
3174
|
+
| PatchesEvent
|
|
3111
3175
|
| {
|
|
3112
3176
|
type: 'add behavior'
|
|
3113
3177
|
behavior: Behavior
|
|
@@ -3140,7 +3204,6 @@ declare const editorMachine: StateMachine<
|
|
|
3140
3204
|
type: 'update maxBlocks'
|
|
3141
3205
|
maxBlocks: number | undefined
|
|
3142
3206
|
}
|
|
3143
|
-
| PatchesEvent
|
|
3144
3207
|
| {
|
|
3145
3208
|
type: 'blur'
|
|
3146
3209
|
editor: PortableTextSlateEditor
|
|
@@ -3156,7 +3219,10 @@ declare const editorMachine: StateMachine<
|
|
|
3156
3219
|
type: 'done normalizing'
|
|
3157
3220
|
}
|
|
3158
3221
|
| {
|
|
3159
|
-
type: 'done syncing
|
|
3222
|
+
type: 'done syncing value'
|
|
3223
|
+
}
|
|
3224
|
+
| {
|
|
3225
|
+
type: 'syncing value'
|
|
3160
3226
|
}
|
|
3161
3227
|
| {
|
|
3162
3228
|
type: 'behavior event'
|
|
@@ -3295,6 +3361,7 @@ declare const editorMachine: StateMachine<
|
|
|
3295
3361
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3296
3362
|
keyGenerator: () => string
|
|
3297
3363
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3364
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
3298
3365
|
schema: EditorSchema
|
|
3299
3366
|
initialReadOnly: boolean
|
|
3300
3367
|
maxBlocks: number | undefined
|
|
@@ -3312,6 +3379,7 @@ declare const editorMachine: StateMachine<
|
|
|
3312
3379
|
},
|
|
3313
3380
|
| InternalPatchEvent
|
|
3314
3381
|
| MutationEvent
|
|
3382
|
+
| PatchesEvent
|
|
3315
3383
|
| {
|
|
3316
3384
|
type: 'add behavior'
|
|
3317
3385
|
behavior: Behavior
|
|
@@ -3344,7 +3412,6 @@ declare const editorMachine: StateMachine<
|
|
|
3344
3412
|
type: 'update maxBlocks'
|
|
3345
3413
|
maxBlocks: number | undefined
|
|
3346
3414
|
}
|
|
3347
|
-
| PatchesEvent
|
|
3348
3415
|
| {
|
|
3349
3416
|
type: 'blur'
|
|
3350
3417
|
editor: PortableTextSlateEditor
|
|
@@ -3360,7 +3427,10 @@ declare const editorMachine: StateMachine<
|
|
|
3360
3427
|
type: 'done normalizing'
|
|
3361
3428
|
}
|
|
3362
3429
|
| {
|
|
3363
|
-
type: 'done syncing
|
|
3430
|
+
type: 'done syncing value'
|
|
3431
|
+
}
|
|
3432
|
+
| {
|
|
3433
|
+
type: 'syncing value'
|
|
3364
3434
|
}
|
|
3365
3435
|
| {
|
|
3366
3436
|
type: 'behavior event'
|
|
@@ -3497,207 +3567,6 @@ declare const editorMachine: StateMachine<
|
|
|
3497
3567
|
readonly 'remove behavior': {
|
|
3498
3568
|
readonly actions: 'remove behavior from context'
|
|
3499
3569
|
}
|
|
3500
|
-
readonly 'patches': {
|
|
3501
|
-
readonly actions: ActionFunction<
|
|
3502
|
-
{
|
|
3503
|
-
behaviors: Set<Behavior>
|
|
3504
|
-
converters: Set<Converter>
|
|
3505
|
-
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3506
|
-
keyGenerator: () => string
|
|
3507
|
-
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3508
|
-
schema: EditorSchema
|
|
3509
|
-
initialReadOnly: boolean
|
|
3510
|
-
maxBlocks: number | undefined
|
|
3511
|
-
selection: EditorSelection
|
|
3512
|
-
incomingValue: Array<PortableTextBlock> | undefined
|
|
3513
|
-
internalDrag?: {
|
|
3514
|
-
ghost?: HTMLElement
|
|
3515
|
-
origin: Pick<EventPosition, 'selection'>
|
|
3516
|
-
}
|
|
3517
|
-
slateEditor?: PortableTextSlateEditor
|
|
3518
|
-
},
|
|
3519
|
-
PatchesEvent,
|
|
3520
|
-
| InternalPatchEvent
|
|
3521
|
-
| MutationEvent
|
|
3522
|
-
| {
|
|
3523
|
-
type: 'add behavior'
|
|
3524
|
-
behavior: Behavior
|
|
3525
|
-
}
|
|
3526
|
-
| {
|
|
3527
|
-
type: 'remove behavior'
|
|
3528
|
-
behavior: Behavior
|
|
3529
|
-
}
|
|
3530
|
-
| {
|
|
3531
|
-
type: 'update readOnly'
|
|
3532
|
-
readOnly: boolean
|
|
3533
|
-
}
|
|
3534
|
-
| {
|
|
3535
|
-
type: 'update schema'
|
|
3536
|
-
schema: EditorSchema
|
|
3537
|
-
}
|
|
3538
|
-
| {
|
|
3539
|
-
type: 'update behaviors'
|
|
3540
|
-
behaviors: Array<Behavior>
|
|
3541
|
-
}
|
|
3542
|
-
| {
|
|
3543
|
-
type: 'update key generator'
|
|
3544
|
-
keyGenerator: () => string
|
|
3545
|
-
}
|
|
3546
|
-
| {
|
|
3547
|
-
type: 'update value'
|
|
3548
|
-
value: Array<PortableTextBlock> | undefined
|
|
3549
|
-
}
|
|
3550
|
-
| {
|
|
3551
|
-
type: 'update maxBlocks'
|
|
3552
|
-
maxBlocks: number | undefined
|
|
3553
|
-
}
|
|
3554
|
-
| PatchesEvent
|
|
3555
|
-
| {
|
|
3556
|
-
type: 'blur'
|
|
3557
|
-
editor: PortableTextSlateEditor
|
|
3558
|
-
}
|
|
3559
|
-
| {
|
|
3560
|
-
type: 'focus'
|
|
3561
|
-
editor: PortableTextSlateEditor
|
|
3562
|
-
}
|
|
3563
|
-
| {
|
|
3564
|
-
type: 'normalizing'
|
|
3565
|
-
}
|
|
3566
|
-
| {
|
|
3567
|
-
type: 'done normalizing'
|
|
3568
|
-
}
|
|
3569
|
-
| {
|
|
3570
|
-
type: 'done syncing initial value'
|
|
3571
|
-
}
|
|
3572
|
-
| {
|
|
3573
|
-
type: 'behavior event'
|
|
3574
|
-
behaviorEvent: BehaviorEvent
|
|
3575
|
-
editor: PortableTextSlateEditor
|
|
3576
|
-
nativeEvent?: {
|
|
3577
|
-
preventDefault: () => void
|
|
3578
|
-
}
|
|
3579
|
-
}
|
|
3580
|
-
| {
|
|
3581
|
-
type: 'notify.patch'
|
|
3582
|
-
patch: Patch
|
|
3583
|
-
}
|
|
3584
|
-
| {
|
|
3585
|
-
type: 'notify.mutation'
|
|
3586
|
-
patches: Array<Patch>
|
|
3587
|
-
snapshot: Array<PortableTextBlock> | undefined
|
|
3588
|
-
value: Array<PortableTextBlock> | undefined
|
|
3589
|
-
}
|
|
3590
|
-
| {
|
|
3591
|
-
type: 'notify.blurred'
|
|
3592
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3593
|
-
}
|
|
3594
|
-
| {
|
|
3595
|
-
type: 'notify.done loading'
|
|
3596
|
-
}
|
|
3597
|
-
| {
|
|
3598
|
-
type: 'notify.editable'
|
|
3599
|
-
}
|
|
3600
|
-
| {
|
|
3601
|
-
type: 'notify.error'
|
|
3602
|
-
name: string
|
|
3603
|
-
description: string
|
|
3604
|
-
data: unknown
|
|
3605
|
-
}
|
|
3606
|
-
| {
|
|
3607
|
-
type: 'notify.focused'
|
|
3608
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3609
|
-
}
|
|
3610
|
-
| {
|
|
3611
|
-
type: 'notify.invalid value'
|
|
3612
|
-
resolution: InvalidValueResolution | null
|
|
3613
|
-
value: Array<PortableTextBlock> | undefined
|
|
3614
|
-
}
|
|
3615
|
-
| {
|
|
3616
|
-
type: 'notify.loading'
|
|
3617
|
-
}
|
|
3618
|
-
| {
|
|
3619
|
-
type: 'notify.read only'
|
|
3620
|
-
}
|
|
3621
|
-
| {
|
|
3622
|
-
type: 'notify.ready'
|
|
3623
|
-
}
|
|
3624
|
-
| {
|
|
3625
|
-
type: 'notify.selection'
|
|
3626
|
-
selection: EditorSelection
|
|
3627
|
-
}
|
|
3628
|
-
| {
|
|
3629
|
-
type: 'notify.value changed'
|
|
3630
|
-
value: Array<PortableTextBlock> | undefined
|
|
3631
|
-
}
|
|
3632
|
-
| {
|
|
3633
|
-
type: 'notify.unset'
|
|
3634
|
-
previousValue: Array<PortableTextBlock>
|
|
3635
|
-
}
|
|
3636
|
-
| {
|
|
3637
|
-
type: 'dragstart'
|
|
3638
|
-
origin: Pick<EventPosition, 'selection'>
|
|
3639
|
-
ghost?: HTMLElement
|
|
3640
|
-
}
|
|
3641
|
-
| {
|
|
3642
|
-
type: 'dragend'
|
|
3643
|
-
}
|
|
3644
|
-
| {
|
|
3645
|
-
type: 'drop'
|
|
3646
|
-
},
|
|
3647
|
-
undefined,
|
|
3648
|
-
never,
|
|
3649
|
-
never,
|
|
3650
|
-
never,
|
|
3651
|
-
never,
|
|
3652
|
-
| PatchEvent
|
|
3653
|
-
| InternalPatchEvent
|
|
3654
|
-
| MutationEvent
|
|
3655
|
-
| PatchesEvent
|
|
3656
|
-
| {
|
|
3657
|
-
type: 'blurred'
|
|
3658
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3659
|
-
}
|
|
3660
|
-
| {
|
|
3661
|
-
type: 'done loading'
|
|
3662
|
-
}
|
|
3663
|
-
| {
|
|
3664
|
-
type: 'editable'
|
|
3665
|
-
}
|
|
3666
|
-
| {
|
|
3667
|
-
type: 'error'
|
|
3668
|
-
name: string
|
|
3669
|
-
description: string
|
|
3670
|
-
data: unknown
|
|
3671
|
-
}
|
|
3672
|
-
| {
|
|
3673
|
-
type: 'focused'
|
|
3674
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3675
|
-
}
|
|
3676
|
-
| {
|
|
3677
|
-
type: 'invalid value'
|
|
3678
|
-
resolution: InvalidValueResolution | null
|
|
3679
|
-
value: Array<PortableTextBlock> | undefined
|
|
3680
|
-
}
|
|
3681
|
-
| {
|
|
3682
|
-
type: 'loading'
|
|
3683
|
-
}
|
|
3684
|
-
| {
|
|
3685
|
-
type: 'read only'
|
|
3686
|
-
}
|
|
3687
|
-
| {
|
|
3688
|
-
type: 'ready'
|
|
3689
|
-
}
|
|
3690
|
-
| {
|
|
3691
|
-
type: 'selection'
|
|
3692
|
-
selection: EditorSelection
|
|
3693
|
-
}
|
|
3694
|
-
| {
|
|
3695
|
-
type: 'value changed'
|
|
3696
|
-
value: Array<PortableTextBlock> | undefined
|
|
3697
|
-
}
|
|
3698
|
-
| UnsetEvent
|
|
3699
|
-
>
|
|
3700
|
-
}
|
|
3701
3570
|
readonly 'update behaviors': {
|
|
3702
3571
|
readonly actions: 'assign behaviors'
|
|
3703
3572
|
}
|
|
@@ -3709,6 +3578,7 @@ declare const editorMachine: StateMachine<
|
|
|
3709
3578
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3710
3579
|
keyGenerator: () => string
|
|
3711
3580
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3581
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
3712
3582
|
schema: EditorSchema
|
|
3713
3583
|
initialReadOnly: boolean
|
|
3714
3584
|
maxBlocks: number | undefined
|
|
@@ -3726,6 +3596,7 @@ declare const editorMachine: StateMachine<
|
|
|
3726
3596
|
},
|
|
3727
3597
|
| InternalPatchEvent
|
|
3728
3598
|
| MutationEvent
|
|
3599
|
+
| PatchesEvent
|
|
3729
3600
|
| {
|
|
3730
3601
|
type: 'add behavior'
|
|
3731
3602
|
behavior: Behavior
|
|
@@ -3758,7 +3629,6 @@ declare const editorMachine: StateMachine<
|
|
|
3758
3629
|
type: 'update maxBlocks'
|
|
3759
3630
|
maxBlocks: number | undefined
|
|
3760
3631
|
}
|
|
3761
|
-
| PatchesEvent
|
|
3762
3632
|
| {
|
|
3763
3633
|
type: 'blur'
|
|
3764
3634
|
editor: PortableTextSlateEditor
|
|
@@ -3774,7 +3644,10 @@ declare const editorMachine: StateMachine<
|
|
|
3774
3644
|
type: 'done normalizing'
|
|
3775
3645
|
}
|
|
3776
3646
|
| {
|
|
3777
|
-
type: 'done syncing
|
|
3647
|
+
type: 'done syncing value'
|
|
3648
|
+
}
|
|
3649
|
+
| {
|
|
3650
|
+
type: 'syncing value'
|
|
3778
3651
|
}
|
|
3779
3652
|
| {
|
|
3780
3653
|
type: 'behavior event'
|
|
@@ -3870,6 +3743,7 @@ declare const editorMachine: StateMachine<
|
|
|
3870
3743
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3871
3744
|
keyGenerator: () => string
|
|
3872
3745
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3746
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
3873
3747
|
schema: EditorSchema
|
|
3874
3748
|
initialReadOnly: boolean
|
|
3875
3749
|
maxBlocks: number | undefined
|
|
@@ -3887,6 +3761,7 @@ declare const editorMachine: StateMachine<
|
|
|
3887
3761
|
},
|
|
3888
3762
|
| InternalPatchEvent
|
|
3889
3763
|
| MutationEvent
|
|
3764
|
+
| PatchesEvent
|
|
3890
3765
|
| {
|
|
3891
3766
|
type: 'add behavior'
|
|
3892
3767
|
behavior: Behavior
|
|
@@ -3919,7 +3794,6 @@ declare const editorMachine: StateMachine<
|
|
|
3919
3794
|
type: 'update maxBlocks'
|
|
3920
3795
|
maxBlocks: number | undefined
|
|
3921
3796
|
}
|
|
3922
|
-
| PatchesEvent
|
|
3923
3797
|
| {
|
|
3924
3798
|
type: 'blur'
|
|
3925
3799
|
editor: PortableTextSlateEditor
|
|
@@ -3935,7 +3809,10 @@ declare const editorMachine: StateMachine<
|
|
|
3935
3809
|
type: 'done normalizing'
|
|
3936
3810
|
}
|
|
3937
3811
|
| {
|
|
3938
|
-
type: 'done syncing
|
|
3812
|
+
type: 'done syncing value'
|
|
3813
|
+
}
|
|
3814
|
+
| {
|
|
3815
|
+
type: 'syncing value'
|
|
3939
3816
|
}
|
|
3940
3817
|
| {
|
|
3941
3818
|
type: 'behavior event'
|
|
@@ -4028,6 +3905,7 @@ declare const editorMachine: StateMachine<
|
|
|
4028
3905
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4029
3906
|
keyGenerator: () => string
|
|
4030
3907
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3908
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4031
3909
|
schema: EditorSchema
|
|
4032
3910
|
initialReadOnly: boolean
|
|
4033
3911
|
maxBlocks: number | undefined
|
|
@@ -4045,6 +3923,7 @@ declare const editorMachine: StateMachine<
|
|
|
4045
3923
|
},
|
|
4046
3924
|
| InternalPatchEvent
|
|
4047
3925
|
| MutationEvent
|
|
3926
|
+
| PatchesEvent
|
|
4048
3927
|
| {
|
|
4049
3928
|
type: 'add behavior'
|
|
4050
3929
|
behavior: Behavior
|
|
@@ -4077,7 +3956,6 @@ declare const editorMachine: StateMachine<
|
|
|
4077
3956
|
type: 'update maxBlocks'
|
|
4078
3957
|
maxBlocks: number | undefined
|
|
4079
3958
|
}
|
|
4080
|
-
| PatchesEvent
|
|
4081
3959
|
| {
|
|
4082
3960
|
type: 'blur'
|
|
4083
3961
|
editor: PortableTextSlateEditor
|
|
@@ -4093,7 +3971,10 @@ declare const editorMachine: StateMachine<
|
|
|
4093
3971
|
type: 'done normalizing'
|
|
4094
3972
|
}
|
|
4095
3973
|
| {
|
|
4096
|
-
type: 'done syncing
|
|
3974
|
+
type: 'done syncing value'
|
|
3975
|
+
}
|
|
3976
|
+
| {
|
|
3977
|
+
type: 'syncing value'
|
|
4097
3978
|
}
|
|
4098
3979
|
| {
|
|
4099
3980
|
type: 'behavior event'
|
|
@@ -4198,6 +4079,7 @@ declare const editorMachine: StateMachine<
|
|
|
4198
4079
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4199
4080
|
keyGenerator: () => string
|
|
4200
4081
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4082
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4201
4083
|
schema: EditorSchema
|
|
4202
4084
|
initialReadOnly: boolean
|
|
4203
4085
|
maxBlocks: number | undefined
|
|
@@ -4223,7 +4105,7 @@ declare const editorMachine: StateMachine<
|
|
|
4223
4105
|
readonly states: {
|
|
4224
4106
|
readonly 'determine initial edit mode': {
|
|
4225
4107
|
readonly on: {
|
|
4226
|
-
readonly 'done syncing
|
|
4108
|
+
readonly 'done syncing value': readonly [
|
|
4227
4109
|
{
|
|
4228
4110
|
readonly target: '#editor.edit mode.read only.read only'
|
|
4229
4111
|
readonly guard: ({
|
|
@@ -4237,6 +4119,7 @@ declare const editorMachine: StateMachine<
|
|
|
4237
4119
|
pendingEvents: Array<
|
|
4238
4120
|
InternalPatchEvent | MutationEvent
|
|
4239
4121
|
>
|
|
4122
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4240
4123
|
schema: EditorSchema
|
|
4241
4124
|
initialReadOnly: boolean
|
|
4242
4125
|
maxBlocks: number | undefined
|
|
@@ -4249,7 +4132,7 @@ declare const editorMachine: StateMachine<
|
|
|
4249
4132
|
slateEditor?: PortableTextSlateEditor
|
|
4250
4133
|
},
|
|
4251
4134
|
{
|
|
4252
|
-
type: 'done syncing
|
|
4135
|
+
type: 'done syncing value'
|
|
4253
4136
|
}
|
|
4254
4137
|
>) => boolean
|
|
4255
4138
|
},
|
|
@@ -4271,6 +4154,7 @@ declare const editorMachine: StateMachine<
|
|
|
4271
4154
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4272
4155
|
keyGenerator: () => string
|
|
4273
4156
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4157
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4274
4158
|
schema: EditorSchema
|
|
4275
4159
|
initialReadOnly: boolean
|
|
4276
4160
|
maxBlocks: number | undefined
|
|
@@ -4306,6 +4190,7 @@ declare const editorMachine: StateMachine<
|
|
|
4306
4190
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4307
4191
|
keyGenerator: () => string
|
|
4308
4192
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4193
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4309
4194
|
schema: EditorSchema
|
|
4310
4195
|
initialReadOnly: boolean
|
|
4311
4196
|
maxBlocks: number | undefined
|
|
@@ -4341,6 +4226,7 @@ declare const editorMachine: StateMachine<
|
|
|
4341
4226
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4342
4227
|
keyGenerator: () => string
|
|
4343
4228
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4229
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4344
4230
|
schema: EditorSchema
|
|
4345
4231
|
initialReadOnly: boolean
|
|
4346
4232
|
maxBlocks: number | undefined
|
|
@@ -4358,6 +4244,7 @@ declare const editorMachine: StateMachine<
|
|
|
4358
4244
|
},
|
|
4359
4245
|
| InternalPatchEvent
|
|
4360
4246
|
| MutationEvent
|
|
4247
|
+
| PatchesEvent
|
|
4361
4248
|
| {
|
|
4362
4249
|
type: 'add behavior'
|
|
4363
4250
|
behavior: Behavior
|
|
@@ -4390,7 +4277,6 @@ declare const editorMachine: StateMachine<
|
|
|
4390
4277
|
type: 'update maxBlocks'
|
|
4391
4278
|
maxBlocks: number | undefined
|
|
4392
4279
|
}
|
|
4393
|
-
| PatchesEvent
|
|
4394
4280
|
| {
|
|
4395
4281
|
type: 'blur'
|
|
4396
4282
|
editor: PortableTextSlateEditor
|
|
@@ -4406,7 +4292,10 @@ declare const editorMachine: StateMachine<
|
|
|
4406
4292
|
type: 'done normalizing'
|
|
4407
4293
|
}
|
|
4408
4294
|
| {
|
|
4409
|
-
type: 'done syncing
|
|
4295
|
+
type: 'done syncing value'
|
|
4296
|
+
}
|
|
4297
|
+
| {
|
|
4298
|
+
type: 'syncing value'
|
|
4410
4299
|
}
|
|
4411
4300
|
| {
|
|
4412
4301
|
type: 'behavior event'
|
|
@@ -4508,6 +4397,7 @@ declare const editorMachine: StateMachine<
|
|
|
4508
4397
|
pendingEvents: Array<
|
|
4509
4398
|
InternalPatchEvent | MutationEvent
|
|
4510
4399
|
>
|
|
4400
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4511
4401
|
schema: EditorSchema
|
|
4512
4402
|
initialReadOnly: boolean
|
|
4513
4403
|
maxBlocks: number | undefined
|
|
@@ -4526,6 +4416,7 @@ declare const editorMachine: StateMachine<
|
|
|
4526
4416
|
},
|
|
4527
4417
|
| InternalPatchEvent
|
|
4528
4418
|
| MutationEvent
|
|
4419
|
+
| PatchesEvent
|
|
4529
4420
|
| {
|
|
4530
4421
|
type: 'add behavior'
|
|
4531
4422
|
behavior: Behavior
|
|
@@ -4558,7 +4449,6 @@ declare const editorMachine: StateMachine<
|
|
|
4558
4449
|
type: 'update maxBlocks'
|
|
4559
4450
|
maxBlocks: number | undefined
|
|
4560
4451
|
}
|
|
4561
|
-
| PatchesEvent
|
|
4562
4452
|
| {
|
|
4563
4453
|
type: 'blur'
|
|
4564
4454
|
editor: PortableTextSlateEditor
|
|
@@ -4574,7 +4464,10 @@ declare const editorMachine: StateMachine<
|
|
|
4574
4464
|
type: 'done normalizing'
|
|
4575
4465
|
}
|
|
4576
4466
|
| {
|
|
4577
|
-
type: 'done syncing
|
|
4467
|
+
type: 'done syncing value'
|
|
4468
|
+
}
|
|
4469
|
+
| {
|
|
4470
|
+
type: 'syncing value'
|
|
4578
4471
|
}
|
|
4579
4472
|
| {
|
|
4580
4473
|
type: 'behavior event'
|
|
@@ -4698,6 +4591,7 @@ declare const editorMachine: StateMachine<
|
|
|
4698
4591
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4699
4592
|
keyGenerator: () => string
|
|
4700
4593
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4594
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4701
4595
|
schema: EditorSchema
|
|
4702
4596
|
initialReadOnly: boolean
|
|
4703
4597
|
maxBlocks: number | undefined
|
|
@@ -4711,6 +4605,7 @@ declare const editorMachine: StateMachine<
|
|
|
4711
4605
|
},
|
|
4712
4606
|
| InternalPatchEvent
|
|
4713
4607
|
| MutationEvent
|
|
4608
|
+
| PatchesEvent
|
|
4714
4609
|
| {
|
|
4715
4610
|
type: 'add behavior'
|
|
4716
4611
|
behavior: Behavior
|
|
@@ -4743,7 +4638,6 @@ declare const editorMachine: StateMachine<
|
|
|
4743
4638
|
type: 'update maxBlocks'
|
|
4744
4639
|
maxBlocks: number | undefined
|
|
4745
4640
|
}
|
|
4746
|
-
| PatchesEvent
|
|
4747
4641
|
| {
|
|
4748
4642
|
type: 'blur'
|
|
4749
4643
|
editor: PortableTextSlateEditor
|
|
@@ -4759,7 +4653,10 @@ declare const editorMachine: StateMachine<
|
|
|
4759
4653
|
type: 'done normalizing'
|
|
4760
4654
|
}
|
|
4761
4655
|
| {
|
|
4762
|
-
type: 'done syncing
|
|
4656
|
+
type: 'done syncing value'
|
|
4657
|
+
}
|
|
4658
|
+
| {
|
|
4659
|
+
type: 'syncing value'
|
|
4763
4660
|
}
|
|
4764
4661
|
| {
|
|
4765
4662
|
type: 'behavior event'
|
|
@@ -4838,6 +4735,7 @@ declare const editorMachine: StateMachine<
|
|
|
4838
4735
|
},
|
|
4839
4736
|
| InternalPatchEvent
|
|
4840
4737
|
| MutationEvent
|
|
4738
|
+
| PatchesEvent
|
|
4841
4739
|
| {
|
|
4842
4740
|
type: 'add behavior'
|
|
4843
4741
|
behavior: Behavior
|
|
@@ -4870,7 +4768,6 @@ declare const editorMachine: StateMachine<
|
|
|
4870
4768
|
type: 'update maxBlocks'
|
|
4871
4769
|
maxBlocks: number | undefined
|
|
4872
4770
|
}
|
|
4873
|
-
| PatchesEvent
|
|
4874
4771
|
| {
|
|
4875
4772
|
type: 'blur'
|
|
4876
4773
|
editor: PortableTextSlateEditor
|
|
@@ -4886,7 +4783,10 @@ declare const editorMachine: StateMachine<
|
|
|
4886
4783
|
type: 'done normalizing'
|
|
4887
4784
|
}
|
|
4888
4785
|
| {
|
|
4889
|
-
type: 'done syncing
|
|
4786
|
+
type: 'done syncing value'
|
|
4787
|
+
}
|
|
4788
|
+
| {
|
|
4789
|
+
type: 'syncing value'
|
|
4890
4790
|
}
|
|
4891
4791
|
| {
|
|
4892
4792
|
type: 'behavior event'
|
|
@@ -4971,6 +4871,7 @@ declare const editorMachine: StateMachine<
|
|
|
4971
4871
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4972
4872
|
keyGenerator: () => string
|
|
4973
4873
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4874
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4974
4875
|
schema: EditorSchema
|
|
4975
4876
|
initialReadOnly: boolean
|
|
4976
4877
|
maxBlocks: number | undefined
|
|
@@ -4984,6 +4885,7 @@ declare const editorMachine: StateMachine<
|
|
|
4984
4885
|
},
|
|
4985
4886
|
| InternalPatchEvent
|
|
4986
4887
|
| MutationEvent
|
|
4888
|
+
| PatchesEvent
|
|
4987
4889
|
| {
|
|
4988
4890
|
type: 'add behavior'
|
|
4989
4891
|
behavior: Behavior
|
|
@@ -5016,7 +4918,6 @@ declare const editorMachine: StateMachine<
|
|
|
5016
4918
|
type: 'update maxBlocks'
|
|
5017
4919
|
maxBlocks: number | undefined
|
|
5018
4920
|
}
|
|
5019
|
-
| PatchesEvent
|
|
5020
4921
|
| {
|
|
5021
4922
|
type: 'blur'
|
|
5022
4923
|
editor: PortableTextSlateEditor
|
|
@@ -5032,7 +4933,10 @@ declare const editorMachine: StateMachine<
|
|
|
5032
4933
|
type: 'done normalizing'
|
|
5033
4934
|
}
|
|
5034
4935
|
| {
|
|
5035
|
-
type: 'done syncing
|
|
4936
|
+
type: 'done syncing value'
|
|
4937
|
+
}
|
|
4938
|
+
| {
|
|
4939
|
+
type: 'syncing value'
|
|
5036
4940
|
}
|
|
5037
4941
|
| {
|
|
5038
4942
|
type: 'behavior event'
|
|
@@ -5111,6 +5015,7 @@ declare const editorMachine: StateMachine<
|
|
|
5111
5015
|
},
|
|
5112
5016
|
| InternalPatchEvent
|
|
5113
5017
|
| MutationEvent
|
|
5018
|
+
| PatchesEvent
|
|
5114
5019
|
| {
|
|
5115
5020
|
type: 'add behavior'
|
|
5116
5021
|
behavior: Behavior
|
|
@@ -5143,7 +5048,6 @@ declare const editorMachine: StateMachine<
|
|
|
5143
5048
|
type: 'update maxBlocks'
|
|
5144
5049
|
maxBlocks: number | undefined
|
|
5145
5050
|
}
|
|
5146
|
-
| PatchesEvent
|
|
5147
5051
|
| {
|
|
5148
5052
|
type: 'blur'
|
|
5149
5053
|
editor: PortableTextSlateEditor
|
|
@@ -5159,7 +5063,10 @@ declare const editorMachine: StateMachine<
|
|
|
5159
5063
|
type: 'done normalizing'
|
|
5160
5064
|
}
|
|
5161
5065
|
| {
|
|
5162
|
-
type: 'done syncing
|
|
5066
|
+
type: 'done syncing value'
|
|
5067
|
+
}
|
|
5068
|
+
| {
|
|
5069
|
+
type: 'syncing value'
|
|
5163
5070
|
}
|
|
5164
5071
|
| {
|
|
5165
5072
|
type: 'behavior event'
|
|
@@ -5262,7 +5169,11 @@ declare const editorMachine: StateMachine<
|
|
|
5262
5169
|
readonly initial: 'setting up'
|
|
5263
5170
|
readonly states: {
|
|
5264
5171
|
readonly 'setting up': {
|
|
5265
|
-
readonly exit: readonly [
|
|
5172
|
+
readonly exit: readonly [
|
|
5173
|
+
'emit ready',
|
|
5174
|
+
'emit pending incoming patches',
|
|
5175
|
+
'clear pending incoming patches',
|
|
5176
|
+
]
|
|
5266
5177
|
readonly on: {
|
|
5267
5178
|
readonly 'internal.patch': {
|
|
5268
5179
|
readonly actions: 'defer event'
|
|
@@ -5270,58 +5181,308 @@ declare const editorMachine: StateMachine<
|
|
|
5270
5181
|
readonly 'mutation': {
|
|
5271
5182
|
readonly actions: 'defer event'
|
|
5272
5183
|
}
|
|
5273
|
-
readonly 'done syncing
|
|
5274
|
-
readonly target: '
|
|
5184
|
+
readonly 'done syncing value': {
|
|
5185
|
+
readonly target: 'set up'
|
|
5186
|
+
}
|
|
5187
|
+
readonly 'patches': {
|
|
5188
|
+
readonly actions: readonly ['defer incoming patches']
|
|
5275
5189
|
}
|
|
5276
5190
|
}
|
|
5277
5191
|
}
|
|
5278
|
-
readonly '
|
|
5279
|
-
readonly
|
|
5192
|
+
readonly 'set up': {
|
|
5193
|
+
readonly type: 'parallel'
|
|
5280
5194
|
readonly states: {
|
|
5281
|
-
readonly
|
|
5282
|
-
readonly
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5195
|
+
readonly 'value sync': {
|
|
5196
|
+
readonly initial: 'idle'
|
|
5197
|
+
readonly states: {
|
|
5198
|
+
readonly 'idle': {
|
|
5199
|
+
readonly on: {
|
|
5200
|
+
readonly 'patches': {
|
|
5201
|
+
readonly actions: readonly [
|
|
5202
|
+
ActionFunction<
|
|
5203
|
+
{
|
|
5204
|
+
behaviors: Set<Behavior>
|
|
5205
|
+
converters: Set<Converter>
|
|
5206
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
5207
|
+
keyGenerator: () => string
|
|
5208
|
+
pendingEvents: Array<
|
|
5209
|
+
InternalPatchEvent | MutationEvent
|
|
5210
|
+
>
|
|
5211
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
5212
|
+
schema: EditorSchema
|
|
5213
|
+
initialReadOnly: boolean
|
|
5214
|
+
maxBlocks: number | undefined
|
|
5215
|
+
selection: EditorSelection
|
|
5216
|
+
incomingValue:
|
|
5217
|
+
| Array<PortableTextBlock>
|
|
5218
|
+
| undefined
|
|
5219
|
+
internalDrag?: {
|
|
5220
|
+
ghost?: HTMLElement
|
|
5221
|
+
origin: Pick<EventPosition, 'selection'>
|
|
5222
|
+
}
|
|
5223
|
+
slateEditor?: PortableTextSlateEditor
|
|
5224
|
+
},
|
|
5225
|
+
PatchesEvent,
|
|
5226
|
+
| InternalPatchEvent
|
|
5227
|
+
| MutationEvent
|
|
5228
|
+
| PatchesEvent
|
|
5229
|
+
| {
|
|
5230
|
+
type: 'add behavior'
|
|
5231
|
+
behavior: Behavior
|
|
5232
|
+
}
|
|
5233
|
+
| {
|
|
5234
|
+
type: 'remove behavior'
|
|
5235
|
+
behavior: Behavior
|
|
5236
|
+
}
|
|
5237
|
+
| {
|
|
5238
|
+
type: 'update readOnly'
|
|
5239
|
+
readOnly: boolean
|
|
5240
|
+
}
|
|
5241
|
+
| {
|
|
5242
|
+
type: 'update schema'
|
|
5243
|
+
schema: EditorSchema
|
|
5244
|
+
}
|
|
5245
|
+
| {
|
|
5246
|
+
type: 'update behaviors'
|
|
5247
|
+
behaviors: Array<Behavior>
|
|
5248
|
+
}
|
|
5249
|
+
| {
|
|
5250
|
+
type: 'update key generator'
|
|
5251
|
+
keyGenerator: () => string
|
|
5252
|
+
}
|
|
5253
|
+
| {
|
|
5254
|
+
type: 'update value'
|
|
5255
|
+
value: Array<PortableTextBlock> | undefined
|
|
5256
|
+
}
|
|
5257
|
+
| {
|
|
5258
|
+
type: 'update maxBlocks'
|
|
5259
|
+
maxBlocks: number | undefined
|
|
5260
|
+
}
|
|
5261
|
+
| {
|
|
5262
|
+
type: 'blur'
|
|
5263
|
+
editor: PortableTextSlateEditor
|
|
5264
|
+
}
|
|
5265
|
+
| {
|
|
5266
|
+
type: 'focus'
|
|
5267
|
+
editor: PortableTextSlateEditor
|
|
5268
|
+
}
|
|
5269
|
+
| {
|
|
5270
|
+
type: 'normalizing'
|
|
5271
|
+
}
|
|
5272
|
+
| {
|
|
5273
|
+
type: 'done normalizing'
|
|
5274
|
+
}
|
|
5275
|
+
| {
|
|
5276
|
+
type: 'done syncing value'
|
|
5277
|
+
}
|
|
5278
|
+
| {
|
|
5279
|
+
type: 'syncing value'
|
|
5280
|
+
}
|
|
5281
|
+
| {
|
|
5282
|
+
type: 'behavior event'
|
|
5283
|
+
behaviorEvent: BehaviorEvent
|
|
5284
|
+
editor: PortableTextSlateEditor
|
|
5285
|
+
nativeEvent?: {
|
|
5286
|
+
preventDefault: () => void
|
|
5287
|
+
}
|
|
5288
|
+
}
|
|
5289
|
+
| {
|
|
5290
|
+
type: 'notify.patch'
|
|
5291
|
+
patch: Patch
|
|
5292
|
+
}
|
|
5293
|
+
| {
|
|
5294
|
+
type: 'notify.mutation'
|
|
5295
|
+
patches: Array<Patch>
|
|
5296
|
+
snapshot: Array<PortableTextBlock> | undefined
|
|
5297
|
+
value: Array<PortableTextBlock> | undefined
|
|
5298
|
+
}
|
|
5299
|
+
| {
|
|
5300
|
+
type: 'notify.blurred'
|
|
5301
|
+
event: FocusEvent_2<HTMLDivElement, Element>
|
|
5302
|
+
}
|
|
5303
|
+
| {
|
|
5304
|
+
type: 'notify.done loading'
|
|
5305
|
+
}
|
|
5306
|
+
| {
|
|
5307
|
+
type: 'notify.editable'
|
|
5308
|
+
}
|
|
5309
|
+
| {
|
|
5310
|
+
type: 'notify.error'
|
|
5311
|
+
name: string
|
|
5312
|
+
description: string
|
|
5313
|
+
data: unknown
|
|
5314
|
+
}
|
|
5315
|
+
| {
|
|
5316
|
+
type: 'notify.focused'
|
|
5317
|
+
event: FocusEvent_2<HTMLDivElement, Element>
|
|
5318
|
+
}
|
|
5319
|
+
| {
|
|
5320
|
+
type: 'notify.invalid value'
|
|
5321
|
+
resolution: InvalidValueResolution | null
|
|
5322
|
+
value: Array<PortableTextBlock> | undefined
|
|
5323
|
+
}
|
|
5324
|
+
| {
|
|
5325
|
+
type: 'notify.loading'
|
|
5326
|
+
}
|
|
5327
|
+
| {
|
|
5328
|
+
type: 'notify.read only'
|
|
5329
|
+
}
|
|
5330
|
+
| {
|
|
5331
|
+
type: 'notify.ready'
|
|
5332
|
+
}
|
|
5333
|
+
| {
|
|
5334
|
+
type: 'notify.selection'
|
|
5335
|
+
selection: EditorSelection
|
|
5336
|
+
}
|
|
5337
|
+
| {
|
|
5338
|
+
type: 'notify.value changed'
|
|
5339
|
+
value: Array<PortableTextBlock> | undefined
|
|
5340
|
+
}
|
|
5341
|
+
| {
|
|
5342
|
+
type: 'notify.unset'
|
|
5343
|
+
previousValue: Array<PortableTextBlock>
|
|
5344
|
+
}
|
|
5345
|
+
| {
|
|
5346
|
+
type: 'dragstart'
|
|
5347
|
+
origin: Pick<EventPosition, 'selection'>
|
|
5348
|
+
ghost?: HTMLElement
|
|
5349
|
+
}
|
|
5350
|
+
| {
|
|
5351
|
+
type: 'dragend'
|
|
5352
|
+
}
|
|
5353
|
+
| {
|
|
5354
|
+
type: 'drop'
|
|
5355
|
+
},
|
|
5356
|
+
undefined,
|
|
5357
|
+
never,
|
|
5358
|
+
never,
|
|
5359
|
+
never,
|
|
5360
|
+
never,
|
|
5361
|
+
| PatchEvent
|
|
5362
|
+
| InternalPatchEvent
|
|
5363
|
+
| MutationEvent
|
|
5364
|
+
| PatchesEvent
|
|
5365
|
+
| {
|
|
5366
|
+
type: 'blurred'
|
|
5367
|
+
event: FocusEvent_2<HTMLDivElement, Element>
|
|
5368
|
+
}
|
|
5369
|
+
| {
|
|
5370
|
+
type: 'done loading'
|
|
5371
|
+
}
|
|
5372
|
+
| {
|
|
5373
|
+
type: 'editable'
|
|
5374
|
+
}
|
|
5375
|
+
| {
|
|
5376
|
+
type: 'error'
|
|
5377
|
+
name: string
|
|
5378
|
+
description: string
|
|
5379
|
+
data: unknown
|
|
5380
|
+
}
|
|
5381
|
+
| {
|
|
5382
|
+
type: 'focused'
|
|
5383
|
+
event: FocusEvent_2<HTMLDivElement, Element>
|
|
5384
|
+
}
|
|
5385
|
+
| {
|
|
5386
|
+
type: 'invalid value'
|
|
5387
|
+
resolution: InvalidValueResolution | null
|
|
5388
|
+
value: Array<PortableTextBlock> | undefined
|
|
5389
|
+
}
|
|
5390
|
+
| {
|
|
5391
|
+
type: 'loading'
|
|
5392
|
+
}
|
|
5393
|
+
| {
|
|
5394
|
+
type: 'read only'
|
|
5395
|
+
}
|
|
5396
|
+
| {
|
|
5397
|
+
type: 'ready'
|
|
5398
|
+
}
|
|
5399
|
+
| {
|
|
5400
|
+
type: 'selection'
|
|
5401
|
+
selection: EditorSelection
|
|
5402
|
+
}
|
|
5403
|
+
| {
|
|
5404
|
+
type: 'value changed'
|
|
5405
|
+
value: Array<PortableTextBlock> | undefined
|
|
5406
|
+
}
|
|
5407
|
+
| UnsetEvent
|
|
5408
|
+
>,
|
|
5409
|
+
]
|
|
5410
|
+
}
|
|
5411
|
+
readonly 'syncing value': {
|
|
5412
|
+
readonly target: 'syncing value'
|
|
5413
|
+
}
|
|
5414
|
+
}
|
|
5289
5415
|
}
|
|
5290
|
-
readonly '
|
|
5291
|
-
readonly
|
|
5292
|
-
|
|
5416
|
+
readonly 'syncing value': {
|
|
5417
|
+
readonly exit: readonly [
|
|
5418
|
+
'emit pending incoming patches',
|
|
5419
|
+
'clear pending incoming patches',
|
|
5420
|
+
]
|
|
5421
|
+
readonly on: {
|
|
5422
|
+
readonly 'patches': {
|
|
5423
|
+
readonly actions: readonly ['defer incoming patches']
|
|
5424
|
+
}
|
|
5425
|
+
readonly 'done syncing value': {
|
|
5426
|
+
readonly target: 'idle'
|
|
5427
|
+
}
|
|
5428
|
+
}
|
|
5293
5429
|
}
|
|
5294
5430
|
}
|
|
5295
5431
|
}
|
|
5296
|
-
readonly
|
|
5297
|
-
readonly
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
|
|
5302
|
-
|
|
5432
|
+
readonly 'writing': {
|
|
5433
|
+
readonly initial: 'pristine'
|
|
5434
|
+
readonly states: {
|
|
5435
|
+
readonly pristine: {
|
|
5436
|
+
readonly initial: 'idle'
|
|
5437
|
+
readonly states: {
|
|
5438
|
+
readonly idle: {
|
|
5439
|
+
readonly on: {
|
|
5440
|
+
readonly 'normalizing': {
|
|
5441
|
+
readonly target: 'normalizing'
|
|
5442
|
+
}
|
|
5443
|
+
readonly 'internal.patch': {
|
|
5444
|
+
readonly actions: 'defer event'
|
|
5445
|
+
readonly target: '#editor.setup.set up.writing.dirty'
|
|
5446
|
+
}
|
|
5447
|
+
readonly 'mutation': {
|
|
5448
|
+
readonly actions: 'defer event'
|
|
5449
|
+
readonly target: '#editor.setup.set up.writing.dirty'
|
|
5450
|
+
}
|
|
5451
|
+
}
|
|
5452
|
+
}
|
|
5453
|
+
readonly normalizing: {
|
|
5454
|
+
readonly on: {
|
|
5455
|
+
readonly 'done normalizing': {
|
|
5456
|
+
readonly target: 'idle'
|
|
5457
|
+
}
|
|
5458
|
+
readonly 'internal.patch': {
|
|
5459
|
+
readonly actions: 'defer event'
|
|
5460
|
+
}
|
|
5461
|
+
readonly 'mutation': {
|
|
5462
|
+
readonly actions: 'defer event'
|
|
5463
|
+
}
|
|
5464
|
+
}
|
|
5465
|
+
}
|
|
5466
|
+
}
|
|
5303
5467
|
}
|
|
5304
|
-
readonly
|
|
5305
|
-
readonly
|
|
5468
|
+
readonly dirty: {
|
|
5469
|
+
readonly entry: readonly [
|
|
5470
|
+
'emit pending events',
|
|
5471
|
+
'clear pending events',
|
|
5472
|
+
]
|
|
5473
|
+
readonly on: {
|
|
5474
|
+
readonly 'internal.patch': {
|
|
5475
|
+
readonly actions: 'emit patch event'
|
|
5476
|
+
}
|
|
5477
|
+
readonly 'mutation': {
|
|
5478
|
+
readonly actions: 'emit mutation event'
|
|
5479
|
+
}
|
|
5480
|
+
}
|
|
5306
5481
|
}
|
|
5307
5482
|
}
|
|
5308
5483
|
}
|
|
5309
5484
|
}
|
|
5310
5485
|
}
|
|
5311
|
-
readonly 'dirty': {
|
|
5312
|
-
readonly entry: readonly [
|
|
5313
|
-
'emit pending events',
|
|
5314
|
-
'clear pending events',
|
|
5315
|
-
]
|
|
5316
|
-
readonly on: {
|
|
5317
|
-
readonly 'internal.patch': {
|
|
5318
|
-
readonly actions: 'emit patch event'
|
|
5319
|
-
}
|
|
5320
|
-
readonly 'mutation': {
|
|
5321
|
-
readonly actions: 'emit mutation event'
|
|
5322
|
-
}
|
|
5323
|
-
}
|
|
5324
|
-
}
|
|
5325
5486
|
}
|
|
5326
5487
|
}
|
|
5327
5488
|
}
|