@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/utils/index.d.cts
CHANGED
|
@@ -649,6 +649,7 @@ declare const editorMachine: StateMachine<
|
|
|
649
649
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
650
650
|
keyGenerator: () => string
|
|
651
651
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
652
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
652
653
|
schema: EditorSchema
|
|
653
654
|
initialReadOnly: boolean
|
|
654
655
|
maxBlocks: number | undefined
|
|
@@ -662,6 +663,7 @@ declare const editorMachine: StateMachine<
|
|
|
662
663
|
},
|
|
663
664
|
| InternalPatchEvent
|
|
664
665
|
| MutationEvent
|
|
666
|
+
| PatchesEvent
|
|
665
667
|
| {
|
|
666
668
|
type: 'add behavior'
|
|
667
669
|
behavior: Behavior
|
|
@@ -694,7 +696,6 @@ declare const editorMachine: StateMachine<
|
|
|
694
696
|
type: 'update maxBlocks'
|
|
695
697
|
maxBlocks: number | undefined
|
|
696
698
|
}
|
|
697
|
-
| PatchesEvent
|
|
698
699
|
| {
|
|
699
700
|
type: 'blur'
|
|
700
701
|
editor: PortableTextSlateEditor
|
|
@@ -710,7 +711,10 @@ declare const editorMachine: StateMachine<
|
|
|
710
711
|
type: 'done normalizing'
|
|
711
712
|
}
|
|
712
713
|
| {
|
|
713
|
-
type: 'done syncing
|
|
714
|
+
type: 'done syncing value'
|
|
715
|
+
}
|
|
716
|
+
| {
|
|
717
|
+
type: 'syncing value'
|
|
714
718
|
}
|
|
715
719
|
| {
|
|
716
720
|
type: 'behavior event'
|
|
@@ -838,6 +842,18 @@ declare const editorMachine: StateMachine<
|
|
|
838
842
|
type: 'clear pending events'
|
|
839
843
|
params: NonReducibleUnknown
|
|
840
844
|
}
|
|
845
|
+
'defer incoming patches': {
|
|
846
|
+
type: 'defer incoming patches'
|
|
847
|
+
params: NonReducibleUnknown
|
|
848
|
+
}
|
|
849
|
+
'emit pending incoming patches': {
|
|
850
|
+
type: 'emit pending incoming patches'
|
|
851
|
+
params: NonReducibleUnknown
|
|
852
|
+
}
|
|
853
|
+
'clear pending incoming patches': {
|
|
854
|
+
type: 'clear pending incoming patches'
|
|
855
|
+
params: NonReducibleUnknown
|
|
856
|
+
}
|
|
841
857
|
'handle blur': {
|
|
842
858
|
type: 'handle blur'
|
|
843
859
|
params: unknown
|
|
@@ -871,9 +887,15 @@ declare const editorMachine: StateMachine<
|
|
|
871
887
|
}
|
|
872
888
|
'setup':
|
|
873
889
|
| 'setting up'
|
|
874
|
-
| 'dirty'
|
|
875
890
|
| {
|
|
876
|
-
|
|
891
|
+
'set up': {
|
|
892
|
+
'value sync': 'syncing value' | 'idle'
|
|
893
|
+
'writing':
|
|
894
|
+
| 'dirty'
|
|
895
|
+
| {
|
|
896
|
+
pristine: 'normalizing' | 'idle'
|
|
897
|
+
}
|
|
898
|
+
}
|
|
877
899
|
}
|
|
878
900
|
},
|
|
879
901
|
'dragging internally',
|
|
@@ -981,6 +1003,7 @@ declare const editorMachine: StateMachine<
|
|
|
981
1003
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
982
1004
|
keyGenerator: () => string
|
|
983
1005
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1006
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
984
1007
|
schema: EditorSchema
|
|
985
1008
|
initialReadOnly: boolean
|
|
986
1009
|
maxBlocks: number | undefined
|
|
@@ -994,6 +1017,7 @@ declare const editorMachine: StateMachine<
|
|
|
994
1017
|
},
|
|
995
1018
|
| InternalPatchEvent
|
|
996
1019
|
| MutationEvent
|
|
1020
|
+
| PatchesEvent
|
|
997
1021
|
| {
|
|
998
1022
|
type: 'add behavior'
|
|
999
1023
|
behavior: Behavior
|
|
@@ -1026,7 +1050,6 @@ declare const editorMachine: StateMachine<
|
|
|
1026
1050
|
type: 'update maxBlocks'
|
|
1027
1051
|
maxBlocks: number | undefined
|
|
1028
1052
|
}
|
|
1029
|
-
| PatchesEvent
|
|
1030
1053
|
| {
|
|
1031
1054
|
type: 'blur'
|
|
1032
1055
|
editor: PortableTextSlateEditor
|
|
@@ -1042,7 +1065,10 @@ declare const editorMachine: StateMachine<
|
|
|
1042
1065
|
type: 'done normalizing'
|
|
1043
1066
|
}
|
|
1044
1067
|
| {
|
|
1045
|
-
type: 'done syncing
|
|
1068
|
+
type: 'done syncing value'
|
|
1069
|
+
}
|
|
1070
|
+
| {
|
|
1071
|
+
type: 'syncing value'
|
|
1046
1072
|
}
|
|
1047
1073
|
| {
|
|
1048
1074
|
type: 'behavior event'
|
|
@@ -1128,6 +1154,7 @@ declare const editorMachine: StateMachine<
|
|
|
1128
1154
|
>,
|
|
1129
1155
|
| InternalPatchEvent
|
|
1130
1156
|
| MutationEvent
|
|
1157
|
+
| PatchesEvent
|
|
1131
1158
|
| {
|
|
1132
1159
|
type: 'add behavior'
|
|
1133
1160
|
behavior: Behavior
|
|
@@ -1160,7 +1187,6 @@ declare const editorMachine: StateMachine<
|
|
|
1160
1187
|
type: 'update maxBlocks'
|
|
1161
1188
|
maxBlocks: number | undefined
|
|
1162
1189
|
}
|
|
1163
|
-
| PatchesEvent
|
|
1164
1190
|
| {
|
|
1165
1191
|
type: 'blur'
|
|
1166
1192
|
editor: PortableTextSlateEditor
|
|
@@ -1176,7 +1202,10 @@ declare const editorMachine: StateMachine<
|
|
|
1176
1202
|
type: 'done normalizing'
|
|
1177
1203
|
}
|
|
1178
1204
|
| {
|
|
1179
|
-
type: 'done syncing
|
|
1205
|
+
type: 'done syncing value'
|
|
1206
|
+
}
|
|
1207
|
+
| {
|
|
1208
|
+
type: 'syncing value'
|
|
1180
1209
|
}
|
|
1181
1210
|
| {
|
|
1182
1211
|
type: 'behavior event'
|
|
@@ -1261,6 +1290,7 @@ declare const editorMachine: StateMachine<
|
|
|
1261
1290
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1262
1291
|
keyGenerator: () => string
|
|
1263
1292
|
pendingEvents: never[]
|
|
1293
|
+
pendingIncomingPatchesEvents: never[]
|
|
1264
1294
|
schema: EditorSchema
|
|
1265
1295
|
selection: null
|
|
1266
1296
|
initialReadOnly: boolean
|
|
@@ -1276,6 +1306,7 @@ declare const editorMachine: StateMachine<
|
|
|
1276
1306
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1277
1307
|
keyGenerator: () => string
|
|
1278
1308
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1309
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
1279
1310
|
schema: EditorSchema
|
|
1280
1311
|
initialReadOnly: boolean
|
|
1281
1312
|
maxBlocks: number | undefined
|
|
@@ -1293,6 +1324,7 @@ declare const editorMachine: StateMachine<
|
|
|
1293
1324
|
},
|
|
1294
1325
|
| InternalPatchEvent
|
|
1295
1326
|
| MutationEvent
|
|
1327
|
+
| PatchesEvent
|
|
1296
1328
|
| {
|
|
1297
1329
|
type: 'add behavior'
|
|
1298
1330
|
behavior: Behavior
|
|
@@ -1325,7 +1357,6 @@ declare const editorMachine: StateMachine<
|
|
|
1325
1357
|
type: 'update maxBlocks'
|
|
1326
1358
|
maxBlocks: number | undefined
|
|
1327
1359
|
}
|
|
1328
|
-
| PatchesEvent
|
|
1329
1360
|
| {
|
|
1330
1361
|
type: 'blur'
|
|
1331
1362
|
editor: PortableTextSlateEditor
|
|
@@ -1341,7 +1372,10 @@ declare const editorMachine: StateMachine<
|
|
|
1341
1372
|
type: 'done normalizing'
|
|
1342
1373
|
}
|
|
1343
1374
|
| {
|
|
1344
|
-
type: 'done syncing
|
|
1375
|
+
type: 'done syncing value'
|
|
1376
|
+
}
|
|
1377
|
+
| {
|
|
1378
|
+
type: 'syncing value'
|
|
1345
1379
|
}
|
|
1346
1380
|
| {
|
|
1347
1381
|
type: 'behavior event'
|
|
@@ -1480,6 +1514,7 @@ declare const editorMachine: StateMachine<
|
|
|
1480
1514
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1481
1515
|
keyGenerator: () => string
|
|
1482
1516
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1517
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
1483
1518
|
schema: EditorSchema
|
|
1484
1519
|
initialReadOnly: boolean
|
|
1485
1520
|
maxBlocks: number | undefined
|
|
@@ -1496,6 +1531,7 @@ declare const editorMachine: StateMachine<
|
|
|
1496
1531
|
},
|
|
1497
1532
|
| InternalPatchEvent
|
|
1498
1533
|
| MutationEvent
|
|
1534
|
+
| PatchesEvent
|
|
1499
1535
|
| {
|
|
1500
1536
|
type: 'add behavior'
|
|
1501
1537
|
behavior: Behavior
|
|
@@ -1528,7 +1564,6 @@ declare const editorMachine: StateMachine<
|
|
|
1528
1564
|
type: 'update maxBlocks'
|
|
1529
1565
|
maxBlocks: number | undefined
|
|
1530
1566
|
}
|
|
1531
|
-
| PatchesEvent
|
|
1532
1567
|
| {
|
|
1533
1568
|
type: 'blur'
|
|
1534
1569
|
editor: PortableTextSlateEditor
|
|
@@ -1544,7 +1579,10 @@ declare const editorMachine: StateMachine<
|
|
|
1544
1579
|
type: 'done normalizing'
|
|
1545
1580
|
}
|
|
1546
1581
|
| {
|
|
1547
|
-
type: 'done syncing
|
|
1582
|
+
type: 'done syncing value'
|
|
1583
|
+
}
|
|
1584
|
+
| {
|
|
1585
|
+
type: 'syncing value'
|
|
1548
1586
|
}
|
|
1549
1587
|
| {
|
|
1550
1588
|
type: 'behavior event'
|
|
@@ -1683,6 +1721,7 @@ declare const editorMachine: StateMachine<
|
|
|
1683
1721
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1684
1722
|
keyGenerator: () => string
|
|
1685
1723
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1724
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
1686
1725
|
schema: EditorSchema
|
|
1687
1726
|
initialReadOnly: boolean
|
|
1688
1727
|
maxBlocks: number | undefined
|
|
@@ -1702,6 +1741,7 @@ declare const editorMachine: StateMachine<
|
|
|
1702
1741
|
},
|
|
1703
1742
|
| InternalPatchEvent
|
|
1704
1743
|
| MutationEvent
|
|
1744
|
+
| PatchesEvent
|
|
1705
1745
|
| {
|
|
1706
1746
|
type: 'add behavior'
|
|
1707
1747
|
behavior: Behavior
|
|
@@ -1734,7 +1774,6 @@ declare const editorMachine: StateMachine<
|
|
|
1734
1774
|
type: 'update maxBlocks'
|
|
1735
1775
|
maxBlocks: number | undefined
|
|
1736
1776
|
}
|
|
1737
|
-
| PatchesEvent
|
|
1738
1777
|
| {
|
|
1739
1778
|
type: 'blur'
|
|
1740
1779
|
editor: PortableTextSlateEditor
|
|
@@ -1750,7 +1789,10 @@ declare const editorMachine: StateMachine<
|
|
|
1750
1789
|
type: 'done normalizing'
|
|
1751
1790
|
}
|
|
1752
1791
|
| {
|
|
1753
|
-
type: 'done syncing
|
|
1792
|
+
type: 'done syncing value'
|
|
1793
|
+
}
|
|
1794
|
+
| {
|
|
1795
|
+
type: 'syncing value'
|
|
1754
1796
|
}
|
|
1755
1797
|
| {
|
|
1756
1798
|
type: 'behavior event'
|
|
@@ -1889,6 +1931,7 @@ declare const editorMachine: StateMachine<
|
|
|
1889
1931
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
1890
1932
|
keyGenerator: () => string
|
|
1891
1933
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
1934
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
1892
1935
|
schema: EditorSchema
|
|
1893
1936
|
initialReadOnly: boolean
|
|
1894
1937
|
maxBlocks: number | undefined
|
|
@@ -1907,6 +1950,7 @@ declare const editorMachine: StateMachine<
|
|
|
1907
1950
|
},
|
|
1908
1951
|
| InternalPatchEvent
|
|
1909
1952
|
| MutationEvent
|
|
1953
|
+
| PatchesEvent
|
|
1910
1954
|
| {
|
|
1911
1955
|
type: 'add behavior'
|
|
1912
1956
|
behavior: Behavior
|
|
@@ -1939,7 +1983,6 @@ declare const editorMachine: StateMachine<
|
|
|
1939
1983
|
type: 'update maxBlocks'
|
|
1940
1984
|
maxBlocks: number | undefined
|
|
1941
1985
|
}
|
|
1942
|
-
| PatchesEvent
|
|
1943
1986
|
| {
|
|
1944
1987
|
type: 'blur'
|
|
1945
1988
|
editor: PortableTextSlateEditor
|
|
@@ -1955,7 +1998,10 @@ declare const editorMachine: StateMachine<
|
|
|
1955
1998
|
type: 'done normalizing'
|
|
1956
1999
|
}
|
|
1957
2000
|
| {
|
|
1958
|
-
type: 'done syncing
|
|
2001
|
+
type: 'done syncing value'
|
|
2002
|
+
}
|
|
2003
|
+
| {
|
|
2004
|
+
type: 'syncing value'
|
|
1959
2005
|
}
|
|
1960
2006
|
| {
|
|
1961
2007
|
type: 'behavior event'
|
|
@@ -2094,6 +2140,7 @@ declare const editorMachine: StateMachine<
|
|
|
2094
2140
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2095
2141
|
keyGenerator: () => string
|
|
2096
2142
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2143
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
2097
2144
|
schema: EditorSchema
|
|
2098
2145
|
initialReadOnly: boolean
|
|
2099
2146
|
maxBlocks: number | undefined
|
|
@@ -2111,6 +2158,7 @@ declare const editorMachine: StateMachine<
|
|
|
2111
2158
|
},
|
|
2112
2159
|
| InternalPatchEvent
|
|
2113
2160
|
| MutationEvent
|
|
2161
|
+
| PatchesEvent
|
|
2114
2162
|
| {
|
|
2115
2163
|
type: 'add behavior'
|
|
2116
2164
|
behavior: Behavior
|
|
@@ -2143,7 +2191,6 @@ declare const editorMachine: StateMachine<
|
|
|
2143
2191
|
type: 'update maxBlocks'
|
|
2144
2192
|
maxBlocks: number | undefined
|
|
2145
2193
|
}
|
|
2146
|
-
| PatchesEvent
|
|
2147
2194
|
| {
|
|
2148
2195
|
type: 'blur'
|
|
2149
2196
|
editor: PortableTextSlateEditor
|
|
@@ -2159,7 +2206,10 @@ declare const editorMachine: StateMachine<
|
|
|
2159
2206
|
type: 'done normalizing'
|
|
2160
2207
|
}
|
|
2161
2208
|
| {
|
|
2162
|
-
type: 'done syncing
|
|
2209
|
+
type: 'done syncing value'
|
|
2210
|
+
}
|
|
2211
|
+
| {
|
|
2212
|
+
type: 'syncing value'
|
|
2163
2213
|
}
|
|
2164
2214
|
| {
|
|
2165
2215
|
type: 'behavior event'
|
|
@@ -2299,6 +2349,7 @@ declare const editorMachine: StateMachine<
|
|
|
2299
2349
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2300
2350
|
keyGenerator: () => string
|
|
2301
2351
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2352
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
2302
2353
|
schema: EditorSchema
|
|
2303
2354
|
initialReadOnly: boolean
|
|
2304
2355
|
maxBlocks: number | undefined
|
|
@@ -2316,6 +2367,7 @@ declare const editorMachine: StateMachine<
|
|
|
2316
2367
|
},
|
|
2317
2368
|
| InternalPatchEvent
|
|
2318
2369
|
| MutationEvent
|
|
2370
|
+
| PatchesEvent
|
|
2319
2371
|
| {
|
|
2320
2372
|
type: 'add behavior'
|
|
2321
2373
|
behavior: Behavior
|
|
@@ -2348,7 +2400,6 @@ declare const editorMachine: StateMachine<
|
|
|
2348
2400
|
type: 'update maxBlocks'
|
|
2349
2401
|
maxBlocks: number | undefined
|
|
2350
2402
|
}
|
|
2351
|
-
| PatchesEvent
|
|
2352
2403
|
| {
|
|
2353
2404
|
type: 'blur'
|
|
2354
2405
|
editor: PortableTextSlateEditor
|
|
@@ -2364,7 +2415,10 @@ declare const editorMachine: StateMachine<
|
|
|
2364
2415
|
type: 'done normalizing'
|
|
2365
2416
|
}
|
|
2366
2417
|
| {
|
|
2367
|
-
type: 'done syncing
|
|
2418
|
+
type: 'done syncing value'
|
|
2419
|
+
}
|
|
2420
|
+
| {
|
|
2421
|
+
type: 'syncing value'
|
|
2368
2422
|
}
|
|
2369
2423
|
| {
|
|
2370
2424
|
type: 'behavior event'
|
|
@@ -2455,6 +2509,7 @@ declare const editorMachine: StateMachine<
|
|
|
2455
2509
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2456
2510
|
keyGenerator: () => string
|
|
2457
2511
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2512
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
2458
2513
|
schema: EditorSchema
|
|
2459
2514
|
initialReadOnly: boolean
|
|
2460
2515
|
maxBlocks: number | undefined
|
|
@@ -2472,6 +2527,7 @@ declare const editorMachine: StateMachine<
|
|
|
2472
2527
|
},
|
|
2473
2528
|
| InternalPatchEvent
|
|
2474
2529
|
| MutationEvent
|
|
2530
|
+
| PatchesEvent
|
|
2475
2531
|
| {
|
|
2476
2532
|
type: 'add behavior'
|
|
2477
2533
|
behavior: Behavior
|
|
@@ -2504,7 +2560,6 @@ declare const editorMachine: StateMachine<
|
|
|
2504
2560
|
type: 'update maxBlocks'
|
|
2505
2561
|
maxBlocks: number | undefined
|
|
2506
2562
|
}
|
|
2507
|
-
| PatchesEvent
|
|
2508
2563
|
| {
|
|
2509
2564
|
type: 'blur'
|
|
2510
2565
|
editor: PortableTextSlateEditor
|
|
@@ -2520,7 +2575,10 @@ declare const editorMachine: StateMachine<
|
|
|
2520
2575
|
type: 'done normalizing'
|
|
2521
2576
|
}
|
|
2522
2577
|
| {
|
|
2523
|
-
type: 'done syncing
|
|
2578
|
+
type: 'done syncing value'
|
|
2579
|
+
}
|
|
2580
|
+
| {
|
|
2581
|
+
type: 'syncing value'
|
|
2524
2582
|
}
|
|
2525
2583
|
| {
|
|
2526
2584
|
type: 'behavior event'
|
|
@@ -2660,6 +2718,7 @@ declare const editorMachine: StateMachine<
|
|
|
2660
2718
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2661
2719
|
keyGenerator: () => string
|
|
2662
2720
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2721
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
2663
2722
|
schema: EditorSchema
|
|
2664
2723
|
initialReadOnly: boolean
|
|
2665
2724
|
maxBlocks: number | undefined
|
|
@@ -2677,6 +2736,7 @@ declare const editorMachine: StateMachine<
|
|
|
2677
2736
|
},
|
|
2678
2737
|
| InternalPatchEvent
|
|
2679
2738
|
| MutationEvent
|
|
2739
|
+
| PatchesEvent
|
|
2680
2740
|
| {
|
|
2681
2741
|
type: 'add behavior'
|
|
2682
2742
|
behavior: Behavior
|
|
@@ -2709,7 +2769,6 @@ declare const editorMachine: StateMachine<
|
|
|
2709
2769
|
type: 'update maxBlocks'
|
|
2710
2770
|
maxBlocks: number | undefined
|
|
2711
2771
|
}
|
|
2712
|
-
| PatchesEvent
|
|
2713
2772
|
| {
|
|
2714
2773
|
type: 'blur'
|
|
2715
2774
|
editor: PortableTextSlateEditor
|
|
@@ -2725,7 +2784,10 @@ declare const editorMachine: StateMachine<
|
|
|
2725
2784
|
type: 'done normalizing'
|
|
2726
2785
|
}
|
|
2727
2786
|
| {
|
|
2728
|
-
type: 'done syncing
|
|
2787
|
+
type: 'done syncing value'
|
|
2788
|
+
}
|
|
2789
|
+
| {
|
|
2790
|
+
type: 'syncing value'
|
|
2729
2791
|
}
|
|
2730
2792
|
| {
|
|
2731
2793
|
type: 'behavior event'
|
|
@@ -2864,6 +2926,7 @@ declare const editorMachine: StateMachine<
|
|
|
2864
2926
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
2865
2927
|
keyGenerator: () => string
|
|
2866
2928
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
2929
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
2867
2930
|
schema: EditorSchema
|
|
2868
2931
|
initialReadOnly: boolean
|
|
2869
2932
|
maxBlocks: number | undefined
|
|
@@ -2880,6 +2943,7 @@ declare const editorMachine: StateMachine<
|
|
|
2880
2943
|
},
|
|
2881
2944
|
| InternalPatchEvent
|
|
2882
2945
|
| MutationEvent
|
|
2946
|
+
| PatchesEvent
|
|
2883
2947
|
| {
|
|
2884
2948
|
type: 'add behavior'
|
|
2885
2949
|
behavior: Behavior
|
|
@@ -2912,7 +2976,6 @@ declare const editorMachine: StateMachine<
|
|
|
2912
2976
|
type: 'update maxBlocks'
|
|
2913
2977
|
maxBlocks: number | undefined
|
|
2914
2978
|
}
|
|
2915
|
-
| PatchesEvent
|
|
2916
2979
|
| {
|
|
2917
2980
|
type: 'blur'
|
|
2918
2981
|
editor: PortableTextSlateEditor
|
|
@@ -2928,7 +2991,10 @@ declare const editorMachine: StateMachine<
|
|
|
2928
2991
|
type: 'done normalizing'
|
|
2929
2992
|
}
|
|
2930
2993
|
| {
|
|
2931
|
-
type: 'done syncing
|
|
2994
|
+
type: 'done syncing value'
|
|
2995
|
+
}
|
|
2996
|
+
| {
|
|
2997
|
+
type: 'syncing value'
|
|
2932
2998
|
}
|
|
2933
2999
|
| {
|
|
2934
3000
|
type: 'behavior event'
|
|
@@ -3067,6 +3133,7 @@ declare const editorMachine: StateMachine<
|
|
|
3067
3133
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3068
3134
|
keyGenerator: () => string
|
|
3069
3135
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3136
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
3070
3137
|
schema: EditorSchema
|
|
3071
3138
|
initialReadOnly: boolean
|
|
3072
3139
|
maxBlocks: number | undefined
|
|
@@ -3084,6 +3151,7 @@ declare const editorMachine: StateMachine<
|
|
|
3084
3151
|
},
|
|
3085
3152
|
| InternalPatchEvent
|
|
3086
3153
|
| MutationEvent
|
|
3154
|
+
| PatchesEvent
|
|
3087
3155
|
| {
|
|
3088
3156
|
type: 'add behavior'
|
|
3089
3157
|
behavior: Behavior
|
|
@@ -3116,7 +3184,6 @@ declare const editorMachine: StateMachine<
|
|
|
3116
3184
|
type: 'update maxBlocks'
|
|
3117
3185
|
maxBlocks: number | undefined
|
|
3118
3186
|
}
|
|
3119
|
-
| PatchesEvent
|
|
3120
3187
|
| {
|
|
3121
3188
|
type: 'blur'
|
|
3122
3189
|
editor: PortableTextSlateEditor
|
|
@@ -3132,7 +3199,10 @@ declare const editorMachine: StateMachine<
|
|
|
3132
3199
|
type: 'done normalizing'
|
|
3133
3200
|
}
|
|
3134
3201
|
| {
|
|
3135
|
-
type: 'done syncing
|
|
3202
|
+
type: 'done syncing value'
|
|
3203
|
+
}
|
|
3204
|
+
| {
|
|
3205
|
+
type: 'syncing value'
|
|
3136
3206
|
}
|
|
3137
3207
|
| {
|
|
3138
3208
|
type: 'behavior event'
|
|
@@ -3269,207 +3339,6 @@ declare const editorMachine: StateMachine<
|
|
|
3269
3339
|
readonly 'remove behavior': {
|
|
3270
3340
|
readonly actions: 'remove behavior from context'
|
|
3271
3341
|
}
|
|
3272
|
-
readonly 'patches': {
|
|
3273
|
-
readonly actions: ActionFunction<
|
|
3274
|
-
{
|
|
3275
|
-
behaviors: Set<Behavior>
|
|
3276
|
-
converters: Set<Converter>
|
|
3277
|
-
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3278
|
-
keyGenerator: () => string
|
|
3279
|
-
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3280
|
-
schema: EditorSchema
|
|
3281
|
-
initialReadOnly: boolean
|
|
3282
|
-
maxBlocks: number | undefined
|
|
3283
|
-
selection: EditorSelection
|
|
3284
|
-
incomingValue: Array<PortableTextBlock> | undefined
|
|
3285
|
-
internalDrag?: {
|
|
3286
|
-
ghost?: HTMLElement
|
|
3287
|
-
origin: Pick<EventPosition, 'selection'>
|
|
3288
|
-
}
|
|
3289
|
-
slateEditor?: PortableTextSlateEditor
|
|
3290
|
-
},
|
|
3291
|
-
PatchesEvent,
|
|
3292
|
-
| InternalPatchEvent
|
|
3293
|
-
| MutationEvent
|
|
3294
|
-
| {
|
|
3295
|
-
type: 'add behavior'
|
|
3296
|
-
behavior: Behavior
|
|
3297
|
-
}
|
|
3298
|
-
| {
|
|
3299
|
-
type: 'remove behavior'
|
|
3300
|
-
behavior: Behavior
|
|
3301
|
-
}
|
|
3302
|
-
| {
|
|
3303
|
-
type: 'update readOnly'
|
|
3304
|
-
readOnly: boolean
|
|
3305
|
-
}
|
|
3306
|
-
| {
|
|
3307
|
-
type: 'update schema'
|
|
3308
|
-
schema: EditorSchema
|
|
3309
|
-
}
|
|
3310
|
-
| {
|
|
3311
|
-
type: 'update behaviors'
|
|
3312
|
-
behaviors: Array<Behavior>
|
|
3313
|
-
}
|
|
3314
|
-
| {
|
|
3315
|
-
type: 'update key generator'
|
|
3316
|
-
keyGenerator: () => string
|
|
3317
|
-
}
|
|
3318
|
-
| {
|
|
3319
|
-
type: 'update value'
|
|
3320
|
-
value: Array<PortableTextBlock> | undefined
|
|
3321
|
-
}
|
|
3322
|
-
| {
|
|
3323
|
-
type: 'update maxBlocks'
|
|
3324
|
-
maxBlocks: number | undefined
|
|
3325
|
-
}
|
|
3326
|
-
| PatchesEvent
|
|
3327
|
-
| {
|
|
3328
|
-
type: 'blur'
|
|
3329
|
-
editor: PortableTextSlateEditor
|
|
3330
|
-
}
|
|
3331
|
-
| {
|
|
3332
|
-
type: 'focus'
|
|
3333
|
-
editor: PortableTextSlateEditor
|
|
3334
|
-
}
|
|
3335
|
-
| {
|
|
3336
|
-
type: 'normalizing'
|
|
3337
|
-
}
|
|
3338
|
-
| {
|
|
3339
|
-
type: 'done normalizing'
|
|
3340
|
-
}
|
|
3341
|
-
| {
|
|
3342
|
-
type: 'done syncing initial value'
|
|
3343
|
-
}
|
|
3344
|
-
| {
|
|
3345
|
-
type: 'behavior event'
|
|
3346
|
-
behaviorEvent: BehaviorEvent
|
|
3347
|
-
editor: PortableTextSlateEditor
|
|
3348
|
-
nativeEvent?: {
|
|
3349
|
-
preventDefault: () => void
|
|
3350
|
-
}
|
|
3351
|
-
}
|
|
3352
|
-
| {
|
|
3353
|
-
type: 'notify.patch'
|
|
3354
|
-
patch: Patch
|
|
3355
|
-
}
|
|
3356
|
-
| {
|
|
3357
|
-
type: 'notify.mutation'
|
|
3358
|
-
patches: Array<Patch>
|
|
3359
|
-
snapshot: Array<PortableTextBlock> | undefined
|
|
3360
|
-
value: Array<PortableTextBlock> | undefined
|
|
3361
|
-
}
|
|
3362
|
-
| {
|
|
3363
|
-
type: 'notify.blurred'
|
|
3364
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3365
|
-
}
|
|
3366
|
-
| {
|
|
3367
|
-
type: 'notify.done loading'
|
|
3368
|
-
}
|
|
3369
|
-
| {
|
|
3370
|
-
type: 'notify.editable'
|
|
3371
|
-
}
|
|
3372
|
-
| {
|
|
3373
|
-
type: 'notify.error'
|
|
3374
|
-
name: string
|
|
3375
|
-
description: string
|
|
3376
|
-
data: unknown
|
|
3377
|
-
}
|
|
3378
|
-
| {
|
|
3379
|
-
type: 'notify.focused'
|
|
3380
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3381
|
-
}
|
|
3382
|
-
| {
|
|
3383
|
-
type: 'notify.invalid value'
|
|
3384
|
-
resolution: InvalidValueResolution | null
|
|
3385
|
-
value: Array<PortableTextBlock> | undefined
|
|
3386
|
-
}
|
|
3387
|
-
| {
|
|
3388
|
-
type: 'notify.loading'
|
|
3389
|
-
}
|
|
3390
|
-
| {
|
|
3391
|
-
type: 'notify.read only'
|
|
3392
|
-
}
|
|
3393
|
-
| {
|
|
3394
|
-
type: 'notify.ready'
|
|
3395
|
-
}
|
|
3396
|
-
| {
|
|
3397
|
-
type: 'notify.selection'
|
|
3398
|
-
selection: EditorSelection
|
|
3399
|
-
}
|
|
3400
|
-
| {
|
|
3401
|
-
type: 'notify.value changed'
|
|
3402
|
-
value: Array<PortableTextBlock> | undefined
|
|
3403
|
-
}
|
|
3404
|
-
| {
|
|
3405
|
-
type: 'notify.unset'
|
|
3406
|
-
previousValue: Array<PortableTextBlock>
|
|
3407
|
-
}
|
|
3408
|
-
| {
|
|
3409
|
-
type: 'dragstart'
|
|
3410
|
-
origin: Pick<EventPosition, 'selection'>
|
|
3411
|
-
ghost?: HTMLElement
|
|
3412
|
-
}
|
|
3413
|
-
| {
|
|
3414
|
-
type: 'dragend'
|
|
3415
|
-
}
|
|
3416
|
-
| {
|
|
3417
|
-
type: 'drop'
|
|
3418
|
-
},
|
|
3419
|
-
undefined,
|
|
3420
|
-
never,
|
|
3421
|
-
never,
|
|
3422
|
-
never,
|
|
3423
|
-
never,
|
|
3424
|
-
| PatchEvent
|
|
3425
|
-
| InternalPatchEvent
|
|
3426
|
-
| MutationEvent
|
|
3427
|
-
| PatchesEvent
|
|
3428
|
-
| {
|
|
3429
|
-
type: 'blurred'
|
|
3430
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3431
|
-
}
|
|
3432
|
-
| {
|
|
3433
|
-
type: 'done loading'
|
|
3434
|
-
}
|
|
3435
|
-
| {
|
|
3436
|
-
type: 'editable'
|
|
3437
|
-
}
|
|
3438
|
-
| {
|
|
3439
|
-
type: 'error'
|
|
3440
|
-
name: string
|
|
3441
|
-
description: string
|
|
3442
|
-
data: unknown
|
|
3443
|
-
}
|
|
3444
|
-
| {
|
|
3445
|
-
type: 'focused'
|
|
3446
|
-
event: FocusEvent_2<HTMLDivElement, Element>
|
|
3447
|
-
}
|
|
3448
|
-
| {
|
|
3449
|
-
type: 'invalid value'
|
|
3450
|
-
resolution: InvalidValueResolution | null
|
|
3451
|
-
value: Array<PortableTextBlock> | undefined
|
|
3452
|
-
}
|
|
3453
|
-
| {
|
|
3454
|
-
type: 'loading'
|
|
3455
|
-
}
|
|
3456
|
-
| {
|
|
3457
|
-
type: 'read only'
|
|
3458
|
-
}
|
|
3459
|
-
| {
|
|
3460
|
-
type: 'ready'
|
|
3461
|
-
}
|
|
3462
|
-
| {
|
|
3463
|
-
type: 'selection'
|
|
3464
|
-
selection: EditorSelection
|
|
3465
|
-
}
|
|
3466
|
-
| {
|
|
3467
|
-
type: 'value changed'
|
|
3468
|
-
value: Array<PortableTextBlock> | undefined
|
|
3469
|
-
}
|
|
3470
|
-
| UnsetEvent
|
|
3471
|
-
>
|
|
3472
|
-
}
|
|
3473
3342
|
readonly 'update behaviors': {
|
|
3474
3343
|
readonly actions: 'assign behaviors'
|
|
3475
3344
|
}
|
|
@@ -3481,6 +3350,7 @@ declare const editorMachine: StateMachine<
|
|
|
3481
3350
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3482
3351
|
keyGenerator: () => string
|
|
3483
3352
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3353
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
3484
3354
|
schema: EditorSchema
|
|
3485
3355
|
initialReadOnly: boolean
|
|
3486
3356
|
maxBlocks: number | undefined
|
|
@@ -3498,6 +3368,7 @@ declare const editorMachine: StateMachine<
|
|
|
3498
3368
|
},
|
|
3499
3369
|
| InternalPatchEvent
|
|
3500
3370
|
| MutationEvent
|
|
3371
|
+
| PatchesEvent
|
|
3501
3372
|
| {
|
|
3502
3373
|
type: 'add behavior'
|
|
3503
3374
|
behavior: Behavior
|
|
@@ -3530,7 +3401,6 @@ declare const editorMachine: StateMachine<
|
|
|
3530
3401
|
type: 'update maxBlocks'
|
|
3531
3402
|
maxBlocks: number | undefined
|
|
3532
3403
|
}
|
|
3533
|
-
| PatchesEvent
|
|
3534
3404
|
| {
|
|
3535
3405
|
type: 'blur'
|
|
3536
3406
|
editor: PortableTextSlateEditor
|
|
@@ -3546,7 +3416,10 @@ declare const editorMachine: StateMachine<
|
|
|
3546
3416
|
type: 'done normalizing'
|
|
3547
3417
|
}
|
|
3548
3418
|
| {
|
|
3549
|
-
type: 'done syncing
|
|
3419
|
+
type: 'done syncing value'
|
|
3420
|
+
}
|
|
3421
|
+
| {
|
|
3422
|
+
type: 'syncing value'
|
|
3550
3423
|
}
|
|
3551
3424
|
| {
|
|
3552
3425
|
type: 'behavior event'
|
|
@@ -3642,6 +3515,7 @@ declare const editorMachine: StateMachine<
|
|
|
3642
3515
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3643
3516
|
keyGenerator: () => string
|
|
3644
3517
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3518
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
3645
3519
|
schema: EditorSchema
|
|
3646
3520
|
initialReadOnly: boolean
|
|
3647
3521
|
maxBlocks: number | undefined
|
|
@@ -3659,6 +3533,7 @@ declare const editorMachine: StateMachine<
|
|
|
3659
3533
|
},
|
|
3660
3534
|
| InternalPatchEvent
|
|
3661
3535
|
| MutationEvent
|
|
3536
|
+
| PatchesEvent
|
|
3662
3537
|
| {
|
|
3663
3538
|
type: 'add behavior'
|
|
3664
3539
|
behavior: Behavior
|
|
@@ -3691,7 +3566,6 @@ declare const editorMachine: StateMachine<
|
|
|
3691
3566
|
type: 'update maxBlocks'
|
|
3692
3567
|
maxBlocks: number | undefined
|
|
3693
3568
|
}
|
|
3694
|
-
| PatchesEvent
|
|
3695
3569
|
| {
|
|
3696
3570
|
type: 'blur'
|
|
3697
3571
|
editor: PortableTextSlateEditor
|
|
@@ -3707,7 +3581,10 @@ declare const editorMachine: StateMachine<
|
|
|
3707
3581
|
type: 'done normalizing'
|
|
3708
3582
|
}
|
|
3709
3583
|
| {
|
|
3710
|
-
type: 'done syncing
|
|
3584
|
+
type: 'done syncing value'
|
|
3585
|
+
}
|
|
3586
|
+
| {
|
|
3587
|
+
type: 'syncing value'
|
|
3711
3588
|
}
|
|
3712
3589
|
| {
|
|
3713
3590
|
type: 'behavior event'
|
|
@@ -3800,6 +3677,7 @@ declare const editorMachine: StateMachine<
|
|
|
3800
3677
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3801
3678
|
keyGenerator: () => string
|
|
3802
3679
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3680
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
3803
3681
|
schema: EditorSchema
|
|
3804
3682
|
initialReadOnly: boolean
|
|
3805
3683
|
maxBlocks: number | undefined
|
|
@@ -3817,6 +3695,7 @@ declare const editorMachine: StateMachine<
|
|
|
3817
3695
|
},
|
|
3818
3696
|
| InternalPatchEvent
|
|
3819
3697
|
| MutationEvent
|
|
3698
|
+
| PatchesEvent
|
|
3820
3699
|
| {
|
|
3821
3700
|
type: 'add behavior'
|
|
3822
3701
|
behavior: Behavior
|
|
@@ -3849,7 +3728,6 @@ declare const editorMachine: StateMachine<
|
|
|
3849
3728
|
type: 'update maxBlocks'
|
|
3850
3729
|
maxBlocks: number | undefined
|
|
3851
3730
|
}
|
|
3852
|
-
| PatchesEvent
|
|
3853
3731
|
| {
|
|
3854
3732
|
type: 'blur'
|
|
3855
3733
|
editor: PortableTextSlateEditor
|
|
@@ -3865,7 +3743,10 @@ declare const editorMachine: StateMachine<
|
|
|
3865
3743
|
type: 'done normalizing'
|
|
3866
3744
|
}
|
|
3867
3745
|
| {
|
|
3868
|
-
type: 'done syncing
|
|
3746
|
+
type: 'done syncing value'
|
|
3747
|
+
}
|
|
3748
|
+
| {
|
|
3749
|
+
type: 'syncing value'
|
|
3869
3750
|
}
|
|
3870
3751
|
| {
|
|
3871
3752
|
type: 'behavior event'
|
|
@@ -3970,6 +3851,7 @@ declare const editorMachine: StateMachine<
|
|
|
3970
3851
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
3971
3852
|
keyGenerator: () => string
|
|
3972
3853
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3854
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
3973
3855
|
schema: EditorSchema
|
|
3974
3856
|
initialReadOnly: boolean
|
|
3975
3857
|
maxBlocks: number | undefined
|
|
@@ -3995,7 +3877,7 @@ declare const editorMachine: StateMachine<
|
|
|
3995
3877
|
readonly states: {
|
|
3996
3878
|
readonly 'determine initial edit mode': {
|
|
3997
3879
|
readonly on: {
|
|
3998
|
-
readonly 'done syncing
|
|
3880
|
+
readonly 'done syncing value': readonly [
|
|
3999
3881
|
{
|
|
4000
3882
|
readonly target: '#editor.edit mode.read only.read only'
|
|
4001
3883
|
readonly guard: ({
|
|
@@ -4009,6 +3891,7 @@ declare const editorMachine: StateMachine<
|
|
|
4009
3891
|
pendingEvents: Array<
|
|
4010
3892
|
InternalPatchEvent | MutationEvent
|
|
4011
3893
|
>
|
|
3894
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4012
3895
|
schema: EditorSchema
|
|
4013
3896
|
initialReadOnly: boolean
|
|
4014
3897
|
maxBlocks: number | undefined
|
|
@@ -4021,7 +3904,7 @@ declare const editorMachine: StateMachine<
|
|
|
4021
3904
|
slateEditor?: PortableTextSlateEditor
|
|
4022
3905
|
},
|
|
4023
3906
|
{
|
|
4024
|
-
type: 'done syncing
|
|
3907
|
+
type: 'done syncing value'
|
|
4025
3908
|
}
|
|
4026
3909
|
>) => boolean
|
|
4027
3910
|
},
|
|
@@ -4043,6 +3926,7 @@ declare const editorMachine: StateMachine<
|
|
|
4043
3926
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4044
3927
|
keyGenerator: () => string
|
|
4045
3928
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3929
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4046
3930
|
schema: EditorSchema
|
|
4047
3931
|
initialReadOnly: boolean
|
|
4048
3932
|
maxBlocks: number | undefined
|
|
@@ -4078,6 +3962,7 @@ declare const editorMachine: StateMachine<
|
|
|
4078
3962
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4079
3963
|
keyGenerator: () => string
|
|
4080
3964
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
3965
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4081
3966
|
schema: EditorSchema
|
|
4082
3967
|
initialReadOnly: boolean
|
|
4083
3968
|
maxBlocks: number | undefined
|
|
@@ -4113,6 +3998,7 @@ declare const editorMachine: StateMachine<
|
|
|
4113
3998
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4114
3999
|
keyGenerator: () => string
|
|
4115
4000
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4001
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4116
4002
|
schema: EditorSchema
|
|
4117
4003
|
initialReadOnly: boolean
|
|
4118
4004
|
maxBlocks: number | undefined
|
|
@@ -4130,6 +4016,7 @@ declare const editorMachine: StateMachine<
|
|
|
4130
4016
|
},
|
|
4131
4017
|
| InternalPatchEvent
|
|
4132
4018
|
| MutationEvent
|
|
4019
|
+
| PatchesEvent
|
|
4133
4020
|
| {
|
|
4134
4021
|
type: 'add behavior'
|
|
4135
4022
|
behavior: Behavior
|
|
@@ -4162,7 +4049,6 @@ declare const editorMachine: StateMachine<
|
|
|
4162
4049
|
type: 'update maxBlocks'
|
|
4163
4050
|
maxBlocks: number | undefined
|
|
4164
4051
|
}
|
|
4165
|
-
| PatchesEvent
|
|
4166
4052
|
| {
|
|
4167
4053
|
type: 'blur'
|
|
4168
4054
|
editor: PortableTextSlateEditor
|
|
@@ -4178,7 +4064,10 @@ declare const editorMachine: StateMachine<
|
|
|
4178
4064
|
type: 'done normalizing'
|
|
4179
4065
|
}
|
|
4180
4066
|
| {
|
|
4181
|
-
type: 'done syncing
|
|
4067
|
+
type: 'done syncing value'
|
|
4068
|
+
}
|
|
4069
|
+
| {
|
|
4070
|
+
type: 'syncing value'
|
|
4182
4071
|
}
|
|
4183
4072
|
| {
|
|
4184
4073
|
type: 'behavior event'
|
|
@@ -4280,6 +4169,7 @@ declare const editorMachine: StateMachine<
|
|
|
4280
4169
|
pendingEvents: Array<
|
|
4281
4170
|
InternalPatchEvent | MutationEvent
|
|
4282
4171
|
>
|
|
4172
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4283
4173
|
schema: EditorSchema
|
|
4284
4174
|
initialReadOnly: boolean
|
|
4285
4175
|
maxBlocks: number | undefined
|
|
@@ -4298,6 +4188,7 @@ declare const editorMachine: StateMachine<
|
|
|
4298
4188
|
},
|
|
4299
4189
|
| InternalPatchEvent
|
|
4300
4190
|
| MutationEvent
|
|
4191
|
+
| PatchesEvent
|
|
4301
4192
|
| {
|
|
4302
4193
|
type: 'add behavior'
|
|
4303
4194
|
behavior: Behavior
|
|
@@ -4330,7 +4221,6 @@ declare const editorMachine: StateMachine<
|
|
|
4330
4221
|
type: 'update maxBlocks'
|
|
4331
4222
|
maxBlocks: number | undefined
|
|
4332
4223
|
}
|
|
4333
|
-
| PatchesEvent
|
|
4334
4224
|
| {
|
|
4335
4225
|
type: 'blur'
|
|
4336
4226
|
editor: PortableTextSlateEditor
|
|
@@ -4346,7 +4236,10 @@ declare const editorMachine: StateMachine<
|
|
|
4346
4236
|
type: 'done normalizing'
|
|
4347
4237
|
}
|
|
4348
4238
|
| {
|
|
4349
|
-
type: 'done syncing
|
|
4239
|
+
type: 'done syncing value'
|
|
4240
|
+
}
|
|
4241
|
+
| {
|
|
4242
|
+
type: 'syncing value'
|
|
4350
4243
|
}
|
|
4351
4244
|
| {
|
|
4352
4245
|
type: 'behavior event'
|
|
@@ -4470,6 +4363,7 @@ declare const editorMachine: StateMachine<
|
|
|
4470
4363
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4471
4364
|
keyGenerator: () => string
|
|
4472
4365
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4366
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4473
4367
|
schema: EditorSchema
|
|
4474
4368
|
initialReadOnly: boolean
|
|
4475
4369
|
maxBlocks: number | undefined
|
|
@@ -4483,6 +4377,7 @@ declare const editorMachine: StateMachine<
|
|
|
4483
4377
|
},
|
|
4484
4378
|
| InternalPatchEvent
|
|
4485
4379
|
| MutationEvent
|
|
4380
|
+
| PatchesEvent
|
|
4486
4381
|
| {
|
|
4487
4382
|
type: 'add behavior'
|
|
4488
4383
|
behavior: Behavior
|
|
@@ -4515,7 +4410,6 @@ declare const editorMachine: StateMachine<
|
|
|
4515
4410
|
type: 'update maxBlocks'
|
|
4516
4411
|
maxBlocks: number | undefined
|
|
4517
4412
|
}
|
|
4518
|
-
| PatchesEvent
|
|
4519
4413
|
| {
|
|
4520
4414
|
type: 'blur'
|
|
4521
4415
|
editor: PortableTextSlateEditor
|
|
@@ -4531,7 +4425,10 @@ declare const editorMachine: StateMachine<
|
|
|
4531
4425
|
type: 'done normalizing'
|
|
4532
4426
|
}
|
|
4533
4427
|
| {
|
|
4534
|
-
type: 'done syncing
|
|
4428
|
+
type: 'done syncing value'
|
|
4429
|
+
}
|
|
4430
|
+
| {
|
|
4431
|
+
type: 'syncing value'
|
|
4535
4432
|
}
|
|
4536
4433
|
| {
|
|
4537
4434
|
type: 'behavior event'
|
|
@@ -4610,6 +4507,7 @@ declare const editorMachine: StateMachine<
|
|
|
4610
4507
|
},
|
|
4611
4508
|
| InternalPatchEvent
|
|
4612
4509
|
| MutationEvent
|
|
4510
|
+
| PatchesEvent
|
|
4613
4511
|
| {
|
|
4614
4512
|
type: 'add behavior'
|
|
4615
4513
|
behavior: Behavior
|
|
@@ -4642,7 +4540,6 @@ declare const editorMachine: StateMachine<
|
|
|
4642
4540
|
type: 'update maxBlocks'
|
|
4643
4541
|
maxBlocks: number | undefined
|
|
4644
4542
|
}
|
|
4645
|
-
| PatchesEvent
|
|
4646
4543
|
| {
|
|
4647
4544
|
type: 'blur'
|
|
4648
4545
|
editor: PortableTextSlateEditor
|
|
@@ -4658,7 +4555,10 @@ declare const editorMachine: StateMachine<
|
|
|
4658
4555
|
type: 'done normalizing'
|
|
4659
4556
|
}
|
|
4660
4557
|
| {
|
|
4661
|
-
type: 'done syncing
|
|
4558
|
+
type: 'done syncing value'
|
|
4559
|
+
}
|
|
4560
|
+
| {
|
|
4561
|
+
type: 'syncing value'
|
|
4662
4562
|
}
|
|
4663
4563
|
| {
|
|
4664
4564
|
type: 'behavior event'
|
|
@@ -4743,6 +4643,7 @@ declare const editorMachine: StateMachine<
|
|
|
4743
4643
|
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4744
4644
|
keyGenerator: () => string
|
|
4745
4645
|
pendingEvents: Array<InternalPatchEvent | MutationEvent>
|
|
4646
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4746
4647
|
schema: EditorSchema
|
|
4747
4648
|
initialReadOnly: boolean
|
|
4748
4649
|
maxBlocks: number | undefined
|
|
@@ -4756,6 +4657,7 @@ declare const editorMachine: StateMachine<
|
|
|
4756
4657
|
},
|
|
4757
4658
|
| InternalPatchEvent
|
|
4758
4659
|
| MutationEvent
|
|
4660
|
+
| PatchesEvent
|
|
4759
4661
|
| {
|
|
4760
4662
|
type: 'add behavior'
|
|
4761
4663
|
behavior: Behavior
|
|
@@ -4788,7 +4690,6 @@ declare const editorMachine: StateMachine<
|
|
|
4788
4690
|
type: 'update maxBlocks'
|
|
4789
4691
|
maxBlocks: number | undefined
|
|
4790
4692
|
}
|
|
4791
|
-
| PatchesEvent
|
|
4792
4693
|
| {
|
|
4793
4694
|
type: 'blur'
|
|
4794
4695
|
editor: PortableTextSlateEditor
|
|
@@ -4804,7 +4705,10 @@ declare const editorMachine: StateMachine<
|
|
|
4804
4705
|
type: 'done normalizing'
|
|
4805
4706
|
}
|
|
4806
4707
|
| {
|
|
4807
|
-
type: 'done syncing
|
|
4708
|
+
type: 'done syncing value'
|
|
4709
|
+
}
|
|
4710
|
+
| {
|
|
4711
|
+
type: 'syncing value'
|
|
4808
4712
|
}
|
|
4809
4713
|
| {
|
|
4810
4714
|
type: 'behavior event'
|
|
@@ -4883,6 +4787,7 @@ declare const editorMachine: StateMachine<
|
|
|
4883
4787
|
},
|
|
4884
4788
|
| InternalPatchEvent
|
|
4885
4789
|
| MutationEvent
|
|
4790
|
+
| PatchesEvent
|
|
4886
4791
|
| {
|
|
4887
4792
|
type: 'add behavior'
|
|
4888
4793
|
behavior: Behavior
|
|
@@ -4915,7 +4820,6 @@ declare const editorMachine: StateMachine<
|
|
|
4915
4820
|
type: 'update maxBlocks'
|
|
4916
4821
|
maxBlocks: number | undefined
|
|
4917
4822
|
}
|
|
4918
|
-
| PatchesEvent
|
|
4919
4823
|
| {
|
|
4920
4824
|
type: 'blur'
|
|
4921
4825
|
editor: PortableTextSlateEditor
|
|
@@ -4931,7 +4835,10 @@ declare const editorMachine: StateMachine<
|
|
|
4931
4835
|
type: 'done normalizing'
|
|
4932
4836
|
}
|
|
4933
4837
|
| {
|
|
4934
|
-
type: 'done syncing
|
|
4838
|
+
type: 'done syncing value'
|
|
4839
|
+
}
|
|
4840
|
+
| {
|
|
4841
|
+
type: 'syncing value'
|
|
4935
4842
|
}
|
|
4936
4843
|
| {
|
|
4937
4844
|
type: 'behavior event'
|
|
@@ -5034,7 +4941,11 @@ declare const editorMachine: StateMachine<
|
|
|
5034
4941
|
readonly initial: 'setting up'
|
|
5035
4942
|
readonly states: {
|
|
5036
4943
|
readonly 'setting up': {
|
|
5037
|
-
readonly exit: readonly [
|
|
4944
|
+
readonly exit: readonly [
|
|
4945
|
+
'emit ready',
|
|
4946
|
+
'emit pending incoming patches',
|
|
4947
|
+
'clear pending incoming patches',
|
|
4948
|
+
]
|
|
5038
4949
|
readonly on: {
|
|
5039
4950
|
readonly 'internal.patch': {
|
|
5040
4951
|
readonly actions: 'defer event'
|
|
@@ -5042,58 +4953,308 @@ declare const editorMachine: StateMachine<
|
|
|
5042
4953
|
readonly 'mutation': {
|
|
5043
4954
|
readonly actions: 'defer event'
|
|
5044
4955
|
}
|
|
5045
|
-
readonly 'done syncing
|
|
5046
|
-
readonly target: '
|
|
4956
|
+
readonly 'done syncing value': {
|
|
4957
|
+
readonly target: 'set up'
|
|
4958
|
+
}
|
|
4959
|
+
readonly 'patches': {
|
|
4960
|
+
readonly actions: readonly ['defer incoming patches']
|
|
5047
4961
|
}
|
|
5048
4962
|
}
|
|
5049
4963
|
}
|
|
5050
|
-
readonly '
|
|
5051
|
-
readonly
|
|
4964
|
+
readonly 'set up': {
|
|
4965
|
+
readonly type: 'parallel'
|
|
5052
4966
|
readonly states: {
|
|
5053
|
-
readonly
|
|
5054
|
-
readonly
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
4967
|
+
readonly 'value sync': {
|
|
4968
|
+
readonly initial: 'idle'
|
|
4969
|
+
readonly states: {
|
|
4970
|
+
readonly 'idle': {
|
|
4971
|
+
readonly on: {
|
|
4972
|
+
readonly 'patches': {
|
|
4973
|
+
readonly actions: readonly [
|
|
4974
|
+
ActionFunction<
|
|
4975
|
+
{
|
|
4976
|
+
behaviors: Set<Behavior>
|
|
4977
|
+
converters: Set<Converter>
|
|
4978
|
+
getLegacySchema: () => PortableTextMemberSchemaTypes
|
|
4979
|
+
keyGenerator: () => string
|
|
4980
|
+
pendingEvents: Array<
|
|
4981
|
+
InternalPatchEvent | MutationEvent
|
|
4982
|
+
>
|
|
4983
|
+
pendingIncomingPatchesEvents: Array<PatchesEvent>
|
|
4984
|
+
schema: EditorSchema
|
|
4985
|
+
initialReadOnly: boolean
|
|
4986
|
+
maxBlocks: number | undefined
|
|
4987
|
+
selection: EditorSelection
|
|
4988
|
+
incomingValue:
|
|
4989
|
+
| Array<PortableTextBlock>
|
|
4990
|
+
| undefined
|
|
4991
|
+
internalDrag?: {
|
|
4992
|
+
ghost?: HTMLElement
|
|
4993
|
+
origin: Pick<EventPosition, 'selection'>
|
|
4994
|
+
}
|
|
4995
|
+
slateEditor?: PortableTextSlateEditor
|
|
4996
|
+
},
|
|
4997
|
+
PatchesEvent,
|
|
4998
|
+
| InternalPatchEvent
|
|
4999
|
+
| MutationEvent
|
|
5000
|
+
| PatchesEvent
|
|
5001
|
+
| {
|
|
5002
|
+
type: 'add behavior'
|
|
5003
|
+
behavior: Behavior
|
|
5004
|
+
}
|
|
5005
|
+
| {
|
|
5006
|
+
type: 'remove behavior'
|
|
5007
|
+
behavior: Behavior
|
|
5008
|
+
}
|
|
5009
|
+
| {
|
|
5010
|
+
type: 'update readOnly'
|
|
5011
|
+
readOnly: boolean
|
|
5012
|
+
}
|
|
5013
|
+
| {
|
|
5014
|
+
type: 'update schema'
|
|
5015
|
+
schema: EditorSchema
|
|
5016
|
+
}
|
|
5017
|
+
| {
|
|
5018
|
+
type: 'update behaviors'
|
|
5019
|
+
behaviors: Array<Behavior>
|
|
5020
|
+
}
|
|
5021
|
+
| {
|
|
5022
|
+
type: 'update key generator'
|
|
5023
|
+
keyGenerator: () => string
|
|
5024
|
+
}
|
|
5025
|
+
| {
|
|
5026
|
+
type: 'update value'
|
|
5027
|
+
value: Array<PortableTextBlock> | undefined
|
|
5028
|
+
}
|
|
5029
|
+
| {
|
|
5030
|
+
type: 'update maxBlocks'
|
|
5031
|
+
maxBlocks: number | undefined
|
|
5032
|
+
}
|
|
5033
|
+
| {
|
|
5034
|
+
type: 'blur'
|
|
5035
|
+
editor: PortableTextSlateEditor
|
|
5036
|
+
}
|
|
5037
|
+
| {
|
|
5038
|
+
type: 'focus'
|
|
5039
|
+
editor: PortableTextSlateEditor
|
|
5040
|
+
}
|
|
5041
|
+
| {
|
|
5042
|
+
type: 'normalizing'
|
|
5043
|
+
}
|
|
5044
|
+
| {
|
|
5045
|
+
type: 'done normalizing'
|
|
5046
|
+
}
|
|
5047
|
+
| {
|
|
5048
|
+
type: 'done syncing value'
|
|
5049
|
+
}
|
|
5050
|
+
| {
|
|
5051
|
+
type: 'syncing value'
|
|
5052
|
+
}
|
|
5053
|
+
| {
|
|
5054
|
+
type: 'behavior event'
|
|
5055
|
+
behaviorEvent: BehaviorEvent
|
|
5056
|
+
editor: PortableTextSlateEditor
|
|
5057
|
+
nativeEvent?: {
|
|
5058
|
+
preventDefault: () => void
|
|
5059
|
+
}
|
|
5060
|
+
}
|
|
5061
|
+
| {
|
|
5062
|
+
type: 'notify.patch'
|
|
5063
|
+
patch: Patch
|
|
5064
|
+
}
|
|
5065
|
+
| {
|
|
5066
|
+
type: 'notify.mutation'
|
|
5067
|
+
patches: Array<Patch>
|
|
5068
|
+
snapshot: Array<PortableTextBlock> | undefined
|
|
5069
|
+
value: Array<PortableTextBlock> | undefined
|
|
5070
|
+
}
|
|
5071
|
+
| {
|
|
5072
|
+
type: 'notify.blurred'
|
|
5073
|
+
event: FocusEvent_2<HTMLDivElement, Element>
|
|
5074
|
+
}
|
|
5075
|
+
| {
|
|
5076
|
+
type: 'notify.done loading'
|
|
5077
|
+
}
|
|
5078
|
+
| {
|
|
5079
|
+
type: 'notify.editable'
|
|
5080
|
+
}
|
|
5081
|
+
| {
|
|
5082
|
+
type: 'notify.error'
|
|
5083
|
+
name: string
|
|
5084
|
+
description: string
|
|
5085
|
+
data: unknown
|
|
5086
|
+
}
|
|
5087
|
+
| {
|
|
5088
|
+
type: 'notify.focused'
|
|
5089
|
+
event: FocusEvent_2<HTMLDivElement, Element>
|
|
5090
|
+
}
|
|
5091
|
+
| {
|
|
5092
|
+
type: 'notify.invalid value'
|
|
5093
|
+
resolution: InvalidValueResolution | null
|
|
5094
|
+
value: Array<PortableTextBlock> | undefined
|
|
5095
|
+
}
|
|
5096
|
+
| {
|
|
5097
|
+
type: 'notify.loading'
|
|
5098
|
+
}
|
|
5099
|
+
| {
|
|
5100
|
+
type: 'notify.read only'
|
|
5101
|
+
}
|
|
5102
|
+
| {
|
|
5103
|
+
type: 'notify.ready'
|
|
5104
|
+
}
|
|
5105
|
+
| {
|
|
5106
|
+
type: 'notify.selection'
|
|
5107
|
+
selection: EditorSelection
|
|
5108
|
+
}
|
|
5109
|
+
| {
|
|
5110
|
+
type: 'notify.value changed'
|
|
5111
|
+
value: Array<PortableTextBlock> | undefined
|
|
5112
|
+
}
|
|
5113
|
+
| {
|
|
5114
|
+
type: 'notify.unset'
|
|
5115
|
+
previousValue: Array<PortableTextBlock>
|
|
5116
|
+
}
|
|
5117
|
+
| {
|
|
5118
|
+
type: 'dragstart'
|
|
5119
|
+
origin: Pick<EventPosition, 'selection'>
|
|
5120
|
+
ghost?: HTMLElement
|
|
5121
|
+
}
|
|
5122
|
+
| {
|
|
5123
|
+
type: 'dragend'
|
|
5124
|
+
}
|
|
5125
|
+
| {
|
|
5126
|
+
type: 'drop'
|
|
5127
|
+
},
|
|
5128
|
+
undefined,
|
|
5129
|
+
never,
|
|
5130
|
+
never,
|
|
5131
|
+
never,
|
|
5132
|
+
never,
|
|
5133
|
+
| PatchEvent
|
|
5134
|
+
| InternalPatchEvent
|
|
5135
|
+
| MutationEvent
|
|
5136
|
+
| PatchesEvent
|
|
5137
|
+
| {
|
|
5138
|
+
type: 'blurred'
|
|
5139
|
+
event: FocusEvent_2<HTMLDivElement, Element>
|
|
5140
|
+
}
|
|
5141
|
+
| {
|
|
5142
|
+
type: 'done loading'
|
|
5143
|
+
}
|
|
5144
|
+
| {
|
|
5145
|
+
type: 'editable'
|
|
5146
|
+
}
|
|
5147
|
+
| {
|
|
5148
|
+
type: 'error'
|
|
5149
|
+
name: string
|
|
5150
|
+
description: string
|
|
5151
|
+
data: unknown
|
|
5152
|
+
}
|
|
5153
|
+
| {
|
|
5154
|
+
type: 'focused'
|
|
5155
|
+
event: FocusEvent_2<HTMLDivElement, Element>
|
|
5156
|
+
}
|
|
5157
|
+
| {
|
|
5158
|
+
type: 'invalid value'
|
|
5159
|
+
resolution: InvalidValueResolution | null
|
|
5160
|
+
value: Array<PortableTextBlock> | undefined
|
|
5161
|
+
}
|
|
5162
|
+
| {
|
|
5163
|
+
type: 'loading'
|
|
5164
|
+
}
|
|
5165
|
+
| {
|
|
5166
|
+
type: 'read only'
|
|
5167
|
+
}
|
|
5168
|
+
| {
|
|
5169
|
+
type: 'ready'
|
|
5170
|
+
}
|
|
5171
|
+
| {
|
|
5172
|
+
type: 'selection'
|
|
5173
|
+
selection: EditorSelection
|
|
5174
|
+
}
|
|
5175
|
+
| {
|
|
5176
|
+
type: 'value changed'
|
|
5177
|
+
value: Array<PortableTextBlock> | undefined
|
|
5178
|
+
}
|
|
5179
|
+
| UnsetEvent
|
|
5180
|
+
>,
|
|
5181
|
+
]
|
|
5182
|
+
}
|
|
5183
|
+
readonly 'syncing value': {
|
|
5184
|
+
readonly target: 'syncing value'
|
|
5185
|
+
}
|
|
5186
|
+
}
|
|
5061
5187
|
}
|
|
5062
|
-
readonly '
|
|
5063
|
-
readonly
|
|
5064
|
-
|
|
5188
|
+
readonly 'syncing value': {
|
|
5189
|
+
readonly exit: readonly [
|
|
5190
|
+
'emit pending incoming patches',
|
|
5191
|
+
'clear pending incoming patches',
|
|
5192
|
+
]
|
|
5193
|
+
readonly on: {
|
|
5194
|
+
readonly 'patches': {
|
|
5195
|
+
readonly actions: readonly ['defer incoming patches']
|
|
5196
|
+
}
|
|
5197
|
+
readonly 'done syncing value': {
|
|
5198
|
+
readonly target: 'idle'
|
|
5199
|
+
}
|
|
5200
|
+
}
|
|
5065
5201
|
}
|
|
5066
5202
|
}
|
|
5067
5203
|
}
|
|
5068
|
-
readonly
|
|
5069
|
-
readonly
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5204
|
+
readonly 'writing': {
|
|
5205
|
+
readonly initial: 'pristine'
|
|
5206
|
+
readonly states: {
|
|
5207
|
+
readonly pristine: {
|
|
5208
|
+
readonly initial: 'idle'
|
|
5209
|
+
readonly states: {
|
|
5210
|
+
readonly idle: {
|
|
5211
|
+
readonly on: {
|
|
5212
|
+
readonly 'normalizing': {
|
|
5213
|
+
readonly target: 'normalizing'
|
|
5214
|
+
}
|
|
5215
|
+
readonly 'internal.patch': {
|
|
5216
|
+
readonly actions: 'defer event'
|
|
5217
|
+
readonly target: '#editor.setup.set up.writing.dirty'
|
|
5218
|
+
}
|
|
5219
|
+
readonly 'mutation': {
|
|
5220
|
+
readonly actions: 'defer event'
|
|
5221
|
+
readonly target: '#editor.setup.set up.writing.dirty'
|
|
5222
|
+
}
|
|
5223
|
+
}
|
|
5224
|
+
}
|
|
5225
|
+
readonly normalizing: {
|
|
5226
|
+
readonly on: {
|
|
5227
|
+
readonly 'done normalizing': {
|
|
5228
|
+
readonly target: 'idle'
|
|
5229
|
+
}
|
|
5230
|
+
readonly 'internal.patch': {
|
|
5231
|
+
readonly actions: 'defer event'
|
|
5232
|
+
}
|
|
5233
|
+
readonly 'mutation': {
|
|
5234
|
+
readonly actions: 'defer event'
|
|
5235
|
+
}
|
|
5236
|
+
}
|
|
5237
|
+
}
|
|
5238
|
+
}
|
|
5075
5239
|
}
|
|
5076
|
-
readonly
|
|
5077
|
-
readonly
|
|
5240
|
+
readonly dirty: {
|
|
5241
|
+
readonly entry: readonly [
|
|
5242
|
+
'emit pending events',
|
|
5243
|
+
'clear pending events',
|
|
5244
|
+
]
|
|
5245
|
+
readonly on: {
|
|
5246
|
+
readonly 'internal.patch': {
|
|
5247
|
+
readonly actions: 'emit patch event'
|
|
5248
|
+
}
|
|
5249
|
+
readonly 'mutation': {
|
|
5250
|
+
readonly actions: 'emit mutation event'
|
|
5251
|
+
}
|
|
5252
|
+
}
|
|
5078
5253
|
}
|
|
5079
5254
|
}
|
|
5080
5255
|
}
|
|
5081
5256
|
}
|
|
5082
5257
|
}
|
|
5083
|
-
readonly 'dirty': {
|
|
5084
|
-
readonly entry: readonly [
|
|
5085
|
-
'emit pending events',
|
|
5086
|
-
'clear pending events',
|
|
5087
|
-
]
|
|
5088
|
-
readonly on: {
|
|
5089
|
-
readonly 'internal.patch': {
|
|
5090
|
-
readonly actions: 'emit patch event'
|
|
5091
|
-
}
|
|
5092
|
-
readonly 'mutation': {
|
|
5093
|
-
readonly actions: 'emit mutation event'
|
|
5094
|
-
}
|
|
5095
|
-
}
|
|
5096
|
-
}
|
|
5097
5258
|
}
|
|
5098
5259
|
}
|
|
5099
5260
|
}
|